]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/core-utils/renderer/markdown.ts
Refactor markdown/sanitize html code
[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 'list'
8 ]
9
10 export const TEXT_WITH_HTML_RULES = TEXT_RULES.concat([
11 'html_inline',
12 'html_block'
13 ])
14
15 export const ENHANCED_RULES = TEXT_RULES.concat([ 'image' ])
16 export const ENHANCED_WITH_HTML_RULES = TEXT_WITH_HTML_RULES.concat([ 'image' ])
17
18 export const COMPLETE_RULES = ENHANCED_WITH_HTML_RULES.concat([
19 'block',
20 'inline',
21 'heading',
22 'paragraph'
23 ])