[Gekidou] commonmark feature parity (#6303)

* Initial attempt at search highlighting for Markdown

* Remove fonts from highlighted text so that it can be bolded

* Add initial task list support

* Render markdown checkbox

* Switch to Commonmark fork

* Use searchPatterns prop

* searchPatterns prop at post level

* Update app/components/markdown/transform.ts

Co-authored-by: Jason Frerich <jason.frerich@mattermost.com>

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Co-authored-by: Jason Frerich <jason.frerich@mattermost.com>
This commit is contained in:
Elias Nahum
2022-05-27 14:30:34 -04:00
committed by GitHub
parent efeab53d0b
commit 4ab7a6baa6
11 changed files with 234 additions and 88 deletions

View File

@@ -3,7 +3,12 @@
import {TextStyle, ViewStyle} from 'react-native';
export type UserMentionKey= {
export type SearchPattern = {
pattern: RegExp;
term: string;
};
export type UserMentionKey = {
key: string;
caseSensitive?: boolean;
};