mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-20 19:09:12 +08:00
85 lines
1.5 KiB
Text
85 lines
1.5 KiB
Text
/**
|
||
* List of lowercase HTML tag names which when parsing HTML (flow), result
|
||
* in more relaxed rules (condition 6): because they are known blocks, the
|
||
* HTML-like syntax doesn’t have to be strictly parsed.
|
||
* For tag names not in this list, a more strict algorithm (condition 7) is used
|
||
* to detect whether the HTML-like syntax is seen as HTML (flow) or not.
|
||
*
|
||
* This is copied from:
|
||
* <https://spec.commonmark.org/0.30/#html-blocks>.
|
||
*/
|
||
export const htmlBlockNames = [
|
||
'address',
|
||
'article',
|
||
'aside',
|
||
'base',
|
||
'basefont',
|
||
'blockquote',
|
||
'body',
|
||
'caption',
|
||
'center',
|
||
'col',
|
||
'colgroup',
|
||
'dd',
|
||
'details',
|
||
'dialog',
|
||
'dir',
|
||
'div',
|
||
'dl',
|
||
'dt',
|
||
'fieldset',
|
||
'figcaption',
|
||
'figure',
|
||
'footer',
|
||
'form',
|
||
'frame',
|
||
'frameset',
|
||
'h1',
|
||
'h2',
|
||
'h3',
|
||
'h4',
|
||
'h5',
|
||
'h6',
|
||
'head',
|
||
'header',
|
||
'hr',
|
||
'html',
|
||
'iframe',
|
||
'legend',
|
||
'li',
|
||
'link',
|
||
'main',
|
||
'menu',
|
||
'menuitem',
|
||
'nav',
|
||
'noframes',
|
||
'ol',
|
||
'optgroup',
|
||
'option',
|
||
'p',
|
||
'param',
|
||
'section',
|
||
'summary',
|
||
'table',
|
||
'tbody',
|
||
'td',
|
||
'tfoot',
|
||
'th',
|
||
'thead',
|
||
'title',
|
||
'tr',
|
||
'track',
|
||
'ul'
|
||
]
|
||
|
||
/**
|
||
* List of lowercase HTML tag names which when parsing HTML (flow), result in
|
||
* HTML that can include lines w/o exiting, until a closing tag also in this
|
||
* list is found (condition 1).
|
||
*
|
||
* This module is copied from:
|
||
* <https://spec.commonmark.org/0.30/#html-blocks>.
|
||
*
|
||
* Note that `textarea` was added in `CommonMark@0.30`.
|
||
*/
|
||
export const htmlRawNames = ['pre', 'script', 'style', 'textarea']
|