Urara-Blog/node_modules/.pnpm-store/v3/files/35/5598f25beeedcd33129a86ba4df683b6c37921ca00ecc5e51e13f2c0d4dc94f0f453207cf013b2a6973831152ea1bd104f93aff56e170abbf580a77793e336
2022-08-14 01:14:53 +08:00

85 lines
1.5 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 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 doesnt 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']