aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils/renderer/markdown.ts
blob: ddf608d7be680fce14f7cda838e82ff214e0ceb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export const TEXT_RULES = [
  'linkify',
  'autolink',
  'emphasis',
  'link',
  'newline',
  'entity',
  'list'
]

export const TEXT_WITH_HTML_RULES = TEXT_RULES.concat([
  'html_inline',
  'html_block'
])

export const ENHANCED_RULES = TEXT_RULES.concat([ 'image' ])
export const ENHANCED_WITH_HTML_RULES = TEXT_WITH_HTML_RULES.concat([ 'image' ])

export const COMPLETE_RULES = ENHANCED_WITH_HTML_RULES.concat([
  'block',
  'inline',
  'heading',
  'paragraph'
])