]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/core-utils/renderer/markdown.ts
Support mailto for custom markup
[github/Chocobozzz/PeerTube.git] / shared / core-utils / renderer / markdown.ts
1 export const TEXT_RULES = [
2 'linkify',
3 'autolink',
4 'emphasis',
5 'link',
6 'newline',
7 'entity',
8 'list'
9 ]
10
11 export const TEXT_WITH_HTML_RULES = TEXT_RULES.concat([
12 'html_inline',
13 'html_block'
14 ])
15
16 export const ENHANCED_RULES = TEXT_RULES.concat([ 'image' ])
17 export const ENHANCED_WITH_HTML_RULES = TEXT_WITH_HTML_RULES.concat([ 'image' ])
18
19 export const COMPLETE_RULES = ENHANCED_WITH_HTML_RULES.concat([
20 'block',
21 'inline',
22 'heading',
23 'paragraph'
24 ])