forked from rehypejs/rehype-minify
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblock.js
61 lines (61 loc) · 1.82 KB
/
block.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// See: <https://html.spec.whatwg.org/#the-css-user-agent-style-sheet-and-presentational-hints>
export const blocks = [
'address', // Flow content.
'article', // Sections and headings.
'aside', // Sections and headings.
'blockquote', // Flow content.
'body', // Page.
'br', // Contribute whitespace intrinsically.
'caption', // Similar to block.
'center', // Flow content, legacy.
'col', // Similar to block.
'colgroup', // Similar to block.
'dd', // Lists.
'dialog', // Flow content.
'dir', // Lists, legacy.
'div', // Flow content.
'dl', // Lists.
'dt', // Lists.
'figcaption', // Flow content.
'figure', // Flow content.
'footer', // Flow content.
'form', // Flow content.
'h1', // Sections and headings.
'h2', // Sections and headings.
'h3', // Sections and headings.
'h4', // Sections and headings.
'h5', // Sections and headings.
'h6', // Sections and headings.
'head', // Page.
'header', // Flow content.
'hgroup', // Sections and headings.
'hr', // Flow content.
'html', // Page.
'legend', // Flow content.
'li', // Block-like.
'li', // Similar to block.
'listing', // Flow content, legacy
'main', // Flow content.
'menu', // Lists.
'nav', // Sections and headings.
'ol', // Lists.
'optgroup', // Similar to block.
'option', // Similar to block.
'p', // Flow content.
'plaintext', // Flow content, legacy
'pre', // Flow content.
'section', // Sections and headings.
'summary', // Similar to block.
'table', // Similar to block.
'tbody', // Similar to block.
'td', // Block-like.
'td', // Similar to block.
'tfoot', // Similar to block.
'th', // Block-like.
'th', // Similar to block.
'thead', // Similar to block.
'tr', // Similar to block.
'ul', // Lists.
'wbr', // Contribute whitespace intrinsically.
'xmp' // Flow content, legacy
]