Files
mattermost-mobile/types/global/markdown.ts
Elias Nahum 22a173ec97 [Gekidou] Add Latex support (#6195)
* Add Latex support

* Markdown memoization

* feedback review

* feedback review 2
2022-04-28 12:27:10 -04:00

53 lines
1.1 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {TextStyle, ViewStyle} from 'react-native';
export type UserMentionKey= {
key: string;
caseSensitive?: boolean;
};
export type MarkdownBlockStyles = {
adjacentParagraph: ViewStyle;
horizontalRule: ViewStyle;
quoteBlockIcon: TextStyle;
};
export type MarkdownTextStyles = {
[key: string]: TextStyle;
};
export type MarkdownAtMentionRenderer = {
context: string[];
mentionName: string;
}
export type MarkdownBaseRenderer = {
context: string[];
literal: string;
}
export type MarkdownChannelMentionRenderer = {
context: string[];
channelName: string;
}
export type MarkdownEmojiRenderer = MarkdownBaseRenderer & {
emojiName: string;
}
export type MarkdownImageRenderer = {
linkDestination?: string;
context: string[];
src: string;
size?: {
width?: number;
height?: number;
};
}
export type MarkdownLatexRenderer = MarkdownBaseRenderer & {
latexCode: string;
}