securemark 0.299.4 → 0.300.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/design.md +0 -6
- package/dist/index.js +2847 -1993
- package/index.d.ts +2 -1
- package/markdown.d.ts +209 -183
- package/package.json +1 -1
- package/src/api/bind.test.ts +0 -22
- package/src/api/bind.ts +15 -10
- package/src/api/header.ts +8 -5
- package/src/api/parse.test.ts +118 -122
- package/src/api/parse.ts +13 -31
- package/src/api/run.ts +6 -0
- package/src/api.ts +1 -0
- package/src/combinator/control/inits.ts +35 -0
- package/src/combinator/control/sequence.test.ts +38 -0
- package/src/combinator/control/sequence.ts +19 -0
- package/src/combinator/control/some.test.ts +41 -0
- package/src/combinator/{data/parser → control}/some.ts +39 -26
- package/src/combinator/control/state.ts +33 -0
- package/src/combinator/control/subsequence.test.ts +47 -0
- package/src/combinator/control/subsequence.ts +16 -0
- package/src/combinator/control/tails.ts +8 -0
- package/src/combinator/control/union.test.ts +37 -0
- package/src/combinator/control/union.ts +31 -0
- package/src/combinator/{data/delimiter.ts → delimiter.ts} +40 -60
- package/src/combinator/effect/backtrack.ts +64 -0
- package/src/combinator/effect/clock.ts +10 -0
- package/src/combinator/effect/precedence.ts +50 -0
- package/src/combinator/effect/recursion.ts +30 -0
- package/src/combinator/effect/scope.ts +100 -0
- package/src/combinator/effect/state.ts +72 -0
- package/src/combinator/{data/list → parser}/list.ts +35 -10
- package/src/combinator/parser.ts +303 -0
- package/src/combinator/process/bind.ts +34 -0
- package/src/combinator/process/block.test.ts +20 -0
- package/src/combinator/process/block.ts +33 -0
- package/src/combinator/process/clear.ts +16 -0
- package/src/combinator/process/contract.ts +35 -0
- package/src/combinator/process/duplicate.ts +7 -0
- package/src/combinator/process/error.ts +13 -0
- package/src/combinator/{control/manipulation → process}/fallback.ts +3 -3
- package/src/combinator/process/fence.ts +59 -0
- package/src/combinator/process/fmap.ts +10 -0
- package/src/combinator/process/indent.test.ts +31 -0
- package/src/combinator/process/indent.ts +51 -0
- package/src/combinator/process/lazy.ts +8 -0
- package/src/combinator/process/line.test.ts +21 -0
- package/src/combinator/process/line.ts +55 -0
- package/src/combinator/process/match.ts +37 -0
- package/src/combinator/process/reverse.ts +7 -0
- package/src/combinator/process/scope.ts +102 -0
- package/src/combinator/process/surround.ts +273 -0
- package/src/combinator.ts +28 -24
- package/src/debug.test.ts +11 -8
- package/src/parser/autolink.test.ts +17 -18
- package/src/parser/block/blockquote.test.ts +78 -79
- package/src/parser/block/blockquote.ts +32 -25
- package/src/parser/block/codeblock.test.ts +54 -57
- package/src/parser/block/codeblock.ts +44 -26
- package/src/parser/block/dlist.test.ts +56 -57
- package/src/parser/block/dlist.ts +5 -5
- package/src/parser/block/extension/aside.test.ts +7 -9
- package/src/parser/block/extension/aside.ts +76 -47
- package/src/parser/block/extension/example.test.ts +16 -19
- package/src/parser/block/extension/example.ts +88 -48
- package/src/parser/block/extension/fig.test.ts +37 -36
- package/src/parser/block/extension/fig.ts +20 -25
- package/src/parser/block/extension/figbase.test.ts +18 -19
- package/src/parser/block/extension/figbase.ts +3 -3
- package/src/parser/block/extension/figure.test.ts +58 -63
- package/src/parser/block/extension/figure.ts +23 -21
- package/src/parser/block/extension/message.test.ts +12 -14
- package/src/parser/block/extension/message.ts +52 -39
- package/src/parser/block/extension/placeholder.test.ts +13 -13
- package/src/parser/block/extension/placeholder.ts +23 -21
- package/src/parser/block/extension/table.test.ts +69 -71
- package/src/parser/block/extension/table.ts +43 -31
- package/src/parser/block/extension.test.ts +24 -24
- package/src/parser/block/extension.ts +3 -3
- package/src/parser/block/heading.test.ts +58 -59
- package/src/parser/block/heading.ts +19 -18
- package/src/parser/block/ilist.test.ts +8 -8
- package/src/parser/block/ilist.ts +9 -7
- package/src/parser/block/mathblock.test.ts +29 -32
- package/src/parser/block/mathblock.ts +24 -23
- package/src/parser/block/mediablock.ts +7 -7
- package/src/parser/block/olist.test.ts +102 -103
- package/src/parser/block/olist.ts +11 -12
- package/src/parser/block/pagebreak.test.ts +15 -16
- package/src/parser/block/pagebreak.ts +5 -5
- package/src/parser/block/paragraph.test.ts +57 -58
- package/src/parser/block/paragraph.ts +1 -1
- package/src/parser/block/reply/cite.test.ts +39 -40
- package/src/parser/block/reply/cite.ts +5 -5
- package/src/parser/block/reply/quote.test.ts +50 -51
- package/src/parser/block/reply/quote.ts +8 -7
- package/src/parser/block/reply.test.ts +19 -20
- package/src/parser/block/reply.ts +2 -2
- package/src/parser/block/sidefence.test.ts +41 -48
- package/src/parser/block/sidefence.ts +17 -11
- package/src/parser/block/table.test.ts +48 -49
- package/src/parser/block/table.ts +10 -9
- package/src/parser/block/ulist.test.ts +52 -53
- package/src/parser/block/ulist.ts +9 -8
- package/src/parser/block.ts +63 -51
- package/src/parser/context.ts +40 -40
- package/src/parser/document.ts +48 -0
- package/src/parser/header.test.ts +19 -20
- package/src/parser/header.ts +31 -25
- package/src/parser/inline/annotation.test.ts +49 -50
- package/src/parser/inline/annotation.ts +14 -16
- package/src/parser/inline/autolink/account.test.ts +32 -33
- package/src/parser/inline/autolink/account.ts +18 -19
- package/src/parser/inline/autolink/anchor.test.ts +21 -22
- package/src/parser/inline/autolink/anchor.ts +7 -8
- package/src/parser/inline/autolink/channel.test.ts +14 -15
- package/src/parser/inline/autolink/email.test.ts +36 -37
- package/src/parser/inline/autolink/email.ts +6 -6
- package/src/parser/inline/autolink/hashnum.test.ts +32 -33
- package/src/parser/inline/autolink/hashnum.ts +7 -8
- package/src/parser/inline/autolink/hashtag.test.ts +59 -60
- package/src/parser/inline/autolink/hashtag.ts +8 -9
- package/src/parser/inline/autolink/url.test.ts +75 -76
- package/src/parser/inline/autolink/url.ts +17 -18
- package/src/parser/inline/autolink.ts +24 -11
- package/src/parser/inline/bracket.test.ts +73 -74
- package/src/parser/inline/bracket.ts +88 -63
- package/src/parser/inline/code.test.ts +30 -31
- package/src/parser/inline/code.ts +6 -6
- package/src/parser/inline/deletion.test.ts +27 -28
- package/src/parser/inline/deletion.ts +5 -5
- package/src/parser/inline/emphasis.test.ts +39 -40
- package/src/parser/inline/emphasis.ts +5 -5
- package/src/parser/inline/emstrong.test.ts +101 -102
- package/src/parser/inline/emstrong.ts +103 -85
- package/src/parser/inline/extension/index.test.ts +91 -92
- package/src/parser/inline/extension/index.ts +17 -13
- package/src/parser/inline/extension/indexee.ts +4 -4
- package/src/parser/inline/extension/indexer.test.ts +23 -24
- package/src/parser/inline/extension/indexer.ts +6 -5
- package/src/parser/inline/extension/label.test.ts +32 -33
- package/src/parser/inline/extension/label.ts +14 -5
- package/src/parser/inline/extension/placeholder.test.ts +42 -43
- package/src/parser/inline/extension/placeholder.ts +8 -9
- package/src/parser/inline/html.test.ts +109 -109
- package/src/parser/inline/html.ts +27 -27
- package/src/parser/inline/htmlentity.test.ts +37 -38
- package/src/parser/inline/htmlentity.ts +6 -7
- package/src/parser/inline/insertion.test.ts +27 -28
- package/src/parser/inline/insertion.ts +5 -5
- package/src/parser/inline/italic.test.ts +55 -56
- package/src/parser/inline/italic.ts +5 -5
- package/src/parser/inline/link.test.ts +186 -187
- package/src/parser/inline/link.ts +29 -30
- package/src/parser/inline/mark.test.ts +31 -32
- package/src/parser/inline/mark.ts +6 -6
- package/src/parser/inline/math.test.ts +140 -141
- package/src/parser/inline/math.ts +7 -8
- package/src/parser/inline/media.test.ts +92 -93
- package/src/parser/inline/media.ts +35 -41
- package/src/parser/inline/reference.test.ts +111 -112
- package/src/parser/inline/reference.ts +61 -32
- package/src/parser/inline/remark.test.ts +49 -50
- package/src/parser/inline/remark.ts +13 -13
- package/src/parser/inline/ruby.test.ts +49 -50
- package/src/parser/inline/ruby.ts +100 -52
- package/src/parser/inline/shortmedia.test.ts +9 -10
- package/src/parser/inline/shortmedia.ts +11 -9
- package/src/parser/inline/strong.test.ts +36 -37
- package/src/parser/inline/strong.ts +5 -5
- package/src/parser/inline/template.test.ts +22 -23
- package/src/parser/inline/template.ts +17 -20
- package/src/parser/inline.test.ts +225 -226
- package/src/parser/inline.ts +68 -34
- package/src/parser/parser.ts +51 -0
- package/src/parser/repeat.ts +118 -91
- package/src/parser/segment.test.ts +0 -11
- package/src/parser/segment.ts +25 -28
- package/src/parser/source/escapable.test.ts +23 -24
- package/src/parser/source/escapable.ts +19 -20
- package/src/parser/source/line.test.ts +17 -18
- package/src/parser/source/line.ts +19 -24
- package/src/parser/source/str.ts +17 -10
- package/src/parser/source/text.test.ts +88 -89
- package/src/parser/source/text.ts +32 -62
- package/src/parser/source/unescapable.test.ts +23 -24
- package/src/parser/source/unescapable.ts +15 -16
- package/src/parser/source/whitespace.ts +36 -0
- package/src/parser/source.ts +1 -0
- package/src/parser/util.ts +1 -1
- package/src/parser/visibility.ts +37 -15
- package/src/processor/figure.test.ts +20 -20
- package/src/processor/figure.ts +18 -10
- package/src/processor/note.test.ts +13 -13
- package/src/processor/note.ts +4 -2
- package/src/renderer/render/media/pdf.ts +2 -2
- package/src/renderer/render/media/twitter.ts +2 -2
- package/src/renderer/render/media.test.ts +12 -12
- package/src/renderer/render.test.ts +11 -11
- package/src/util/info.test.ts +2 -2
- package/src/util/quote.test.ts +3 -3
- package/src/util/quote.ts +6 -5
- package/src/util/toc.test.ts +12 -12
- package/src/combinator/control/constraint/block.test.ts +0 -20
- package/src/combinator/control/constraint/block.ts +0 -28
- package/src/combinator/control/constraint/contract.ts +0 -27
- package/src/combinator/control/constraint/line.test.ts +0 -21
- package/src/combinator/control/constraint/line.ts +0 -42
- package/src/combinator/control/manipulation/clear.ts +0 -5
- package/src/combinator/control/manipulation/convert.ts +0 -22
- package/src/combinator/control/manipulation/duplicate.ts +0 -7
- package/src/combinator/control/manipulation/fence.ts +0 -54
- package/src/combinator/control/manipulation/indent.test.ts +0 -31
- package/src/combinator/control/manipulation/indent.ts +0 -39
- package/src/combinator/control/manipulation/lazy.ts +0 -8
- package/src/combinator/control/manipulation/match.ts +0 -27
- package/src/combinator/control/manipulation/recovery.ts +0 -18
- package/src/combinator/control/manipulation/reverse.ts +0 -8
- package/src/combinator/control/manipulation/scope.ts +0 -61
- package/src/combinator/control/manipulation/surround.ts +0 -223
- package/src/combinator/control/monad/bind.ts +0 -26
- package/src/combinator/control/monad/fmap.ts +0 -10
- package/src/combinator/data/parser/context.ts +0 -96
- package/src/combinator/data/parser/inits.ts +0 -20
- package/src/combinator/data/parser/sequence.test.ts +0 -33
- package/src/combinator/data/parser/sequence.ts +0 -20
- package/src/combinator/data/parser/some.test.ts +0 -37
- package/src/combinator/data/parser/subsequence.test.ts +0 -41
- package/src/combinator/data/parser/subsequence.ts +0 -13
- package/src/combinator/data/parser/tails.ts +0 -8
- package/src/combinator/data/parser/union.test.ts +0 -33
- package/src/combinator/data/parser/union.ts +0 -18
- package/src/combinator/data/parser.ts +0 -144
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { table } from './table';
|
|
2
2
|
import { some } from '../../../combinator';
|
|
3
|
-
import { input } from '
|
|
4
|
-
import { Context } from '../../context';
|
|
3
|
+
import { input } from '../../context';
|
|
5
4
|
import { inspect } from '../../../debug.test';
|
|
6
5
|
import { html } from 'typed-dom/dom';
|
|
7
6
|
|
|
@@ -10,31 +9,30 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
10
9
|
const parser = some(table);
|
|
11
10
|
|
|
12
11
|
it('invalid', () => {
|
|
13
|
-
assert.deepStrictEqual(inspect(parser, input('~~~table a\n-\n~~~'
|
|
14
|
-
assert.deepStrictEqual(inspect(parser, input(`~~~table\n0${'\n'.repeat(10001)}~~~`, new Context()), '>'), [['<pre class="invalid" translate="no">'], '']);
|
|
12
|
+
assert.deepStrictEqual(inspect(parser, input('~~~table a\n-\n~~~')), [['<pre class="invalid" translate="no">~~~table a\n-\n~~~</pre>'], '']);
|
|
15
13
|
});
|
|
16
14
|
|
|
17
15
|
it('data', () => {
|
|
18
16
|
assert.deepStrictEqual(
|
|
19
|
-
inspect(parser, input('~~~table\n~~~'
|
|
17
|
+
inspect(parser, input('~~~table\n~~~')),
|
|
20
18
|
[[html('table').outerHTML], '']);
|
|
21
19
|
assert.deepStrictEqual(
|
|
22
|
-
inspect(parser, input('~~~table\n\n~~~\n'
|
|
20
|
+
inspect(parser, input('~~~table\n\n~~~\n')),
|
|
23
21
|
[[html('table', [html('thead', [html('tr')]), html('tbody'), html('tfoot')]).outerHTML], '']);
|
|
24
22
|
assert.deepStrictEqual(
|
|
25
|
-
inspect(parser, input('~~~table\n-\n~~~'
|
|
23
|
+
inspect(parser, input('~~~table\n-\n~~~')),
|
|
26
24
|
[[html('table', [html('thead', [html('tr')]), html('tbody'), html('tfoot')]).outerHTML], '']);
|
|
27
25
|
assert.deepStrictEqual(
|
|
28
|
-
inspect(parser, input('~~~table\n-\n\n~~~'
|
|
26
|
+
inspect(parser, input('~~~table\n-\n\n~~~')),
|
|
29
27
|
[[html('table', [html('thead', [html('tr')]), html('tbody'), html('tfoot')]).outerHTML], '']);
|
|
30
28
|
assert.deepStrictEqual(
|
|
31
|
-
inspect(parser, input('~~~table\n0\n\n~~~'
|
|
29
|
+
inspect(parser, input('~~~table\n0\n\n~~~')),
|
|
32
30
|
[[html('table', [html('thead'), html('tbody', [html('tr', [html('td', '0')])]), html('tfoot')]).outerHTML], '']);
|
|
33
31
|
assert.deepStrictEqual(
|
|
34
|
-
inspect(parser, input('~~~table\n:\n~~~'
|
|
32
|
+
inspect(parser, input('~~~table\n:\n~~~')),
|
|
35
33
|
[[html('table', [html('thead'), html('tbody', [html('tr', [html('td')])]), html('tfoot'),]).outerHTML], '']);
|
|
36
34
|
assert.deepStrictEqual(
|
|
37
|
-
inspect(parser, input('~~~table\n1.1\n~~~'
|
|
35
|
+
inspect(parser, input('~~~table\n1.1\n~~~')),
|
|
38
36
|
[[html('table', [
|
|
39
37
|
html('thead'),
|
|
40
38
|
html('tbody', [
|
|
@@ -43,7 +41,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
43
41
|
html('tfoot'),
|
|
44
42
|
]).outerHTML], '']);
|
|
45
43
|
assert.deepStrictEqual(
|
|
46
|
-
inspect(parser, input('~~~table\n1.1\n1.2\n\n1.3\n~~~'
|
|
44
|
+
inspect(parser, input('~~~table\n1.1\n1.2\n\n1.3\n~~~')),
|
|
47
45
|
[[html('table', [
|
|
48
46
|
html('thead'),
|
|
49
47
|
html('tbody', [
|
|
@@ -52,7 +50,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
52
50
|
html('tfoot'),
|
|
53
51
|
]).outerHTML], '']);
|
|
54
52
|
assert.deepStrictEqual(
|
|
55
|
-
inspect(parser, input('~~~table\n1.1\n-\n2.1\n~~~'
|
|
53
|
+
inspect(parser, input('~~~table\n1.1\n-\n2.1\n~~~')),
|
|
56
54
|
[[html('table', [
|
|
57
55
|
html('thead'),
|
|
58
56
|
html('tbody', [
|
|
@@ -62,7 +60,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
62
60
|
html('tfoot'),
|
|
63
61
|
]).outerHTML], '']);
|
|
64
62
|
assert.deepStrictEqual(
|
|
65
|
-
inspect(parser, input('~~~table\n: 1.1\n0\n~~~'
|
|
63
|
+
inspect(parser, input('~~~table\n: 1.1\n0\n~~~')),
|
|
66
64
|
[[html('table', [
|
|
67
65
|
html('thead'),
|
|
68
66
|
html('tbody', [
|
|
@@ -71,7 +69,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
71
69
|
html('tfoot'),
|
|
72
70
|
]).outerHTML], '']);
|
|
73
71
|
assert.deepStrictEqual(
|
|
74
|
-
inspect(parser, input('~~~table\n: 1.1\n: 1.2\n~~~'
|
|
72
|
+
inspect(parser, input('~~~table\n: 1.1\n: 1.2\n~~~')),
|
|
75
73
|
[[html('table', [
|
|
76
74
|
html('thead'),
|
|
77
75
|
html('tbody', [
|
|
@@ -80,7 +78,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
80
78
|
html('tfoot'),
|
|
81
79
|
]).outerHTML], '']);
|
|
82
80
|
assert.deepStrictEqual(
|
|
83
|
-
inspect(parser, input('~~~table\n: 1.1\n\n1.2\n~~~'
|
|
81
|
+
inspect(parser, input('~~~table\n: 1.1\n\n1.2\n~~~')),
|
|
84
82
|
[[html('table', [
|
|
85
83
|
html('thead'),
|
|
86
84
|
html('tbody', [
|
|
@@ -89,7 +87,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
89
87
|
html('tfoot'),
|
|
90
88
|
]).outerHTML], '']);
|
|
91
89
|
assert.deepStrictEqual(
|
|
92
|
-
inspect(parser, input('~~~table\n1.1\n: 1.2\n:1:1 1.3\n\n: 1.4\n~~~'
|
|
90
|
+
inspect(parser, input('~~~table\n1.1\n: 1.2\n:1:1 1.3\n\n: 1.4\n~~~')),
|
|
93
91
|
[[html('table', [
|
|
94
92
|
html('thead'),
|
|
95
93
|
html('tbody', [
|
|
@@ -98,7 +96,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
98
96
|
html('tfoot'),
|
|
99
97
|
]).outerHTML], '']);
|
|
100
98
|
assert.deepStrictEqual(
|
|
101
|
-
inspect(parser, input('~~~table\n:\n1\n~~~'
|
|
99
|
+
inspect(parser, input('~~~table\n:\n1\n~~~')),
|
|
102
100
|
[[html('table', [
|
|
103
101
|
html('thead'),
|
|
104
102
|
html('tbody', [
|
|
@@ -107,7 +105,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
107
105
|
html('tfoot'),
|
|
108
106
|
]).outerHTML], '']);
|
|
109
107
|
assert.deepStrictEqual(
|
|
110
|
-
inspect(parser, input('~~~table\n: \n1\n~~~'
|
|
108
|
+
inspect(parser, input('~~~table\n: \n1\n~~~')),
|
|
111
109
|
[[html('table', [
|
|
112
110
|
html('thead'),
|
|
113
111
|
html('tbody', [
|
|
@@ -116,7 +114,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
116
114
|
html('tfoot'),
|
|
117
115
|
]).outerHTML], '']);
|
|
118
116
|
assert.deepStrictEqual(
|
|
119
|
-
inspect(parser, input('~~~table\n: \n 1\n~~~'
|
|
117
|
+
inspect(parser, input('~~~table\n: \n 1\n~~~')),
|
|
120
118
|
[[html('table', [
|
|
121
119
|
html('thead'),
|
|
122
120
|
html('tbody', [
|
|
@@ -125,7 +123,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
125
123
|
html('tfoot'),
|
|
126
124
|
]).outerHTML], '']);
|
|
127
125
|
assert.deepStrictEqual(
|
|
128
|
-
inspect(parser, input('~~~table\n: \n\n1\n~~~'
|
|
126
|
+
inspect(parser, input('~~~table\n: \n\n1\n~~~')),
|
|
129
127
|
[[html('table', [
|
|
130
128
|
html('thead'),
|
|
131
129
|
html('tbody', [
|
|
@@ -134,7 +132,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
134
132
|
html('tfoot'),
|
|
135
133
|
]).outerHTML], '']);
|
|
136
134
|
assert.deepStrictEqual(
|
|
137
|
-
inspect(parser, input('~~~table\n\\ \n\\ \n~~~'
|
|
135
|
+
inspect(parser, input('~~~table\n\\ \n\\ \n~~~')),
|
|
138
136
|
[[html('table', [
|
|
139
137
|
html('thead'),
|
|
140
138
|
html('tbody', [
|
|
@@ -143,7 +141,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
143
141
|
html('tfoot'),
|
|
144
142
|
]).outerHTML], '']);
|
|
145
143
|
assert.deepStrictEqual(
|
|
146
|
-
inspect(parser, input('~~~table\n: \\ \n\\ \n0\n~~~'
|
|
144
|
+
inspect(parser, input('~~~table\n: \\ \n\\ \n0\n~~~')),
|
|
147
145
|
[[html('table', [
|
|
148
146
|
html('thead'),
|
|
149
147
|
html('tbody', [
|
|
@@ -155,16 +153,16 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
155
153
|
|
|
156
154
|
it('align', () => {
|
|
157
155
|
assert.deepStrictEqual(
|
|
158
|
-
inspect(parser, input('~~~table\n-=<>\n~~~'
|
|
156
|
+
inspect(parser, input('~~~table\n-=<>\n~~~')),
|
|
159
157
|
[[html('table', [html('thead', [html('tr')]), html('tbody'), html('tfoot')]).outerHTML], '']);
|
|
160
158
|
assert.deepStrictEqual(
|
|
161
|
-
inspect(parser, input('~~~table\n-=<>/-=^v\n~~~'
|
|
159
|
+
inspect(parser, input('~~~table\n-=<>/-=^v\n~~~')),
|
|
162
160
|
[[html('table', [html('thead', [html('tr')]), html('tbody'), html('tfoot')]).outerHTML], '']);
|
|
163
161
|
assert.deepStrictEqual(
|
|
164
|
-
inspect(parser, input('~~~table\n-/-=^v\n~~~'
|
|
162
|
+
inspect(parser, input('~~~table\n-/-=^v\n~~~')),
|
|
165
163
|
[[html('table', [html('thead', [html('tr')]), html('tbody'), html('tfoot')]).outerHTML], '']);
|
|
166
164
|
assert.deepStrictEqual(
|
|
167
|
-
inspect(parser, input('~~~table\n-=^v\n~~~'
|
|
165
|
+
inspect(parser, input('~~~table\n-=^v\n~~~')),
|
|
168
166
|
[[html('table', [
|
|
169
167
|
html('thead'),
|
|
170
168
|
html('tbody', [
|
|
@@ -172,7 +170,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
172
170
|
]),
|
|
173
171
|
html('tfoot')]).outerHTML], '']);
|
|
174
172
|
assert.deepStrictEqual(
|
|
175
|
-
inspect(parser, input('~~~table\n=-<>\n1.1\n1.2\n1.3\n1.4\n1.5\n1.6\n~~~'
|
|
173
|
+
inspect(parser, input('~~~table\n=-<>\n1.1\n1.2\n1.3\n1.4\n1.5\n1.6\n~~~')),
|
|
176
174
|
[[html('table', [
|
|
177
175
|
html('thead'),
|
|
178
176
|
html('tbody', [
|
|
@@ -188,7 +186,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
188
186
|
html('tfoot'),
|
|
189
187
|
]).outerHTML], '']);
|
|
190
188
|
assert.deepStrictEqual(
|
|
191
|
-
inspect(parser, input('~~~table\n=<\n-\n2.1\n2.2\n2.3\n~~~'
|
|
189
|
+
inspect(parser, input('~~~table\n=<\n-\n2.1\n2.2\n2.3\n~~~')),
|
|
192
190
|
[[html('table', [
|
|
193
191
|
html('thead', [html('tr')]),
|
|
194
192
|
html('tbody', [
|
|
@@ -201,7 +199,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
201
199
|
html('tfoot'),
|
|
202
200
|
]).outerHTML], '']);
|
|
203
201
|
assert.deepStrictEqual(
|
|
204
|
-
inspect(parser, input('~~~table\n=<\n=\n2.1\n2.2\n2.3\n~~~'
|
|
202
|
+
inspect(parser, input('~~~table\n=<\n=\n2.1\n2.2\n2.3\n~~~')),
|
|
205
203
|
[[html('table', [
|
|
206
204
|
html('thead', [html('tr')]),
|
|
207
205
|
html('tbody', [
|
|
@@ -214,7 +212,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
214
212
|
html('tfoot'),
|
|
215
213
|
]).outerHTML], '']);
|
|
216
214
|
assert.deepStrictEqual(
|
|
217
|
-
inspect(parser, input('~~~table\n=<\n=-\n2.1\n2.2\n2.3\n~~~'
|
|
215
|
+
inspect(parser, input('~~~table\n=<\n=-\n2.1\n2.2\n2.3\n~~~')),
|
|
218
216
|
[[html('table', [
|
|
219
217
|
html('thead', [html('tr')]),
|
|
220
218
|
html('tbody', [
|
|
@@ -227,7 +225,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
227
225
|
html('tfoot'),
|
|
228
226
|
]).outerHTML], '']);
|
|
229
227
|
assert.deepStrictEqual(
|
|
230
|
-
inspect(parser, input('~~~table\n-/=-^v\n1.1\n1.2\n1.3\n1.4\n1.5\n1.6\n~~~'
|
|
228
|
+
inspect(parser, input('~~~table\n-/=-^v\n1.1\n1.2\n1.3\n1.4\n1.5\n1.6\n~~~')),
|
|
231
229
|
[[html('table', [
|
|
232
230
|
html('thead'),
|
|
233
231
|
html('tbody', [
|
|
@@ -243,7 +241,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
243
241
|
html('tfoot'),
|
|
244
242
|
]).outerHTML], '']);
|
|
245
243
|
assert.deepStrictEqual(
|
|
246
|
-
inspect(parser, input('~~~table\n-/=^\n-/-\n2.1\n2.2\n2.3\n~~~'
|
|
244
|
+
inspect(parser, input('~~~table\n-/=^\n-/-\n2.1\n2.2\n2.3\n~~~')),
|
|
247
245
|
[[html('table', [
|
|
248
246
|
html('thead', [html('tr')]),
|
|
249
247
|
html('tbody', [
|
|
@@ -259,10 +257,10 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
259
257
|
|
|
260
258
|
it('head', () => {
|
|
261
259
|
assert.deepStrictEqual(
|
|
262
|
-
inspect(parser, input('~~~table\n#\n~~~'
|
|
260
|
+
inspect(parser, input('~~~table\n#\n~~~')),
|
|
263
261
|
[[html('table', [html('thead', [html('tr', [html('th')])]), html('tbody'), html('tfoot'),]).outerHTML], '']);
|
|
264
262
|
assert.deepStrictEqual(
|
|
265
|
-
inspect(parser, input('~~~table\n-\n# 1.1\n~~~'
|
|
263
|
+
inspect(parser, input('~~~table\n-\n# 1.1\n~~~')),
|
|
266
264
|
[[html('table', [
|
|
267
265
|
html('thead', [
|
|
268
266
|
html('tr', [html('th', '1.1')]),
|
|
@@ -270,7 +268,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
270
268
|
html('tbody'),
|
|
271
269
|
html('tfoot')]).outerHTML], '']);
|
|
272
270
|
assert.deepStrictEqual(
|
|
273
|
-
inspect(parser, input('~~~table\n-/-\n# 1.1\n~~~'
|
|
271
|
+
inspect(parser, input('~~~table\n-/-\n# 1.1\n~~~')),
|
|
274
272
|
[[html('table', [
|
|
275
273
|
html('thead', [
|
|
276
274
|
html('tr', [html('th', '1.1')]),
|
|
@@ -278,7 +276,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
278
276
|
html('tbody'),
|
|
279
277
|
html('tfoot')]).outerHTML], '']);
|
|
280
278
|
assert.deepStrictEqual(
|
|
281
|
-
inspect(parser, input('~~~table\n# 1.1\n~~~'
|
|
279
|
+
inspect(parser, input('~~~table\n# 1.1\n~~~')),
|
|
282
280
|
[[html('table', [
|
|
283
281
|
html('thead', [
|
|
284
282
|
html('tr', [html('th', '1.1')]),
|
|
@@ -286,7 +284,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
286
284
|
html('tbody'),
|
|
287
285
|
html('tfoot')]).outerHTML], '']);
|
|
288
286
|
assert.deepStrictEqual(
|
|
289
|
-
inspect(parser, input('~~~table\n# 1.1\n: 1.2\n~~~'
|
|
287
|
+
inspect(parser, input('~~~table\n# 1.1\n: 1.2\n~~~')),
|
|
290
288
|
[[html('table', [
|
|
291
289
|
html('thead'),
|
|
292
290
|
html('tbody', [
|
|
@@ -297,7 +295,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
297
295
|
|
|
298
296
|
it('foot', () => {
|
|
299
297
|
assert.deepStrictEqual(
|
|
300
|
-
inspect(parser, input('~~~table\n1.1\n-\n# 2.1\n~~~'
|
|
298
|
+
inspect(parser, input('~~~table\n1.1\n-\n# 2.1\n~~~')),
|
|
301
299
|
[[html('table', [
|
|
302
300
|
html('thead'),
|
|
303
301
|
html('tbody', [
|
|
@@ -310,7 +308,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
310
308
|
|
|
311
309
|
it('highlight', () => {
|
|
312
310
|
assert.deepStrictEqual(
|
|
313
|
-
inspect(parser, input('~~~table\n#! 1.1\n~~~'
|
|
311
|
+
inspect(parser, input('~~~table\n#! 1.1\n~~~')),
|
|
314
312
|
[[html('table', [
|
|
315
313
|
html('thead', [
|
|
316
314
|
html('tr', [html('th', { class: 'highlight' }, '1.1')]),
|
|
@@ -319,7 +317,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
319
317
|
html('tfoot'),
|
|
320
318
|
]).outerHTML], '']);
|
|
321
319
|
assert.deepStrictEqual(
|
|
322
|
-
inspect(parser, input('~~~table\n:! 1.1\n~~~'
|
|
320
|
+
inspect(parser, input('~~~table\n:! 1.1\n~~~')),
|
|
323
321
|
[[html('table', [
|
|
324
322
|
html('thead'),
|
|
325
323
|
html('tbody', [
|
|
@@ -328,7 +326,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
328
326
|
html('tfoot'),
|
|
329
327
|
]).outerHTML], '']);
|
|
330
328
|
assert.deepStrictEqual(
|
|
331
|
-
inspect(parser, input('~~~table\n#! 1.1\n: 1.2\n~~~'
|
|
329
|
+
inspect(parser, input('~~~table\n#! 1.1\n: 1.2\n~~~')),
|
|
332
330
|
[[html('table', [
|
|
333
331
|
html('thead'),
|
|
334
332
|
html('tbody', [
|
|
@@ -340,7 +338,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
340
338
|
html('tfoot'),
|
|
341
339
|
]).outerHTML], '']);
|
|
342
340
|
assert.deepStrictEqual(
|
|
343
|
-
inspect(parser, input('~~~table\n: 1.1\n#! 1.2\n~~~'
|
|
341
|
+
inspect(parser, input('~~~table\n: 1.1\n#! 1.2\n~~~')),
|
|
344
342
|
[[html('table', [
|
|
345
343
|
html('thead'),
|
|
346
344
|
html('tbody', [
|
|
@@ -352,7 +350,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
352
350
|
html('tfoot'),
|
|
353
351
|
]).outerHTML], '']);
|
|
354
352
|
assert.deepStrictEqual(
|
|
355
|
-
inspect(parser, input('~~~table\n#! 1.1\n-\n: 2.1\n~~~'
|
|
353
|
+
inspect(parser, input('~~~table\n#! 1.1\n-\n: 2.1\n~~~')),
|
|
356
354
|
[[html('table', [
|
|
357
355
|
html('thead', [
|
|
358
356
|
html('tr', [html('th', { class: 'highlight' }, '1.1')]),
|
|
@@ -363,7 +361,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
363
361
|
html('tfoot'),
|
|
364
362
|
]).outerHTML], '']);
|
|
365
363
|
assert.deepStrictEqual(
|
|
366
|
-
inspect(parser, input('~~~table\n#! 1.1\n-\n:!+ 2.1\n~~~'
|
|
364
|
+
inspect(parser, input('~~~table\n#! 1.1\n-\n:!+ 2.1\n~~~')),
|
|
367
365
|
[[html('table', [
|
|
368
366
|
html('thead', [
|
|
369
367
|
html('tr', [html('th', { class: 'highlight' }, '1.1')]),
|
|
@@ -374,7 +372,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
374
372
|
html('tfoot'),
|
|
375
373
|
]).outerHTML], '']);
|
|
376
374
|
assert.deepStrictEqual(
|
|
377
|
-
inspect(parser, input('~~~table\n#!+ 1.1\n-\n: 2.1\n~~~'
|
|
375
|
+
inspect(parser, input('~~~table\n#!+ 1.1\n-\n: 2.1\n~~~')),
|
|
378
376
|
[[html('table', [
|
|
379
377
|
html('thead', [
|
|
380
378
|
html('tr', [html('th', { class: 'highlight', 'data-highlight-extension': '+' }, '1.1')]),
|
|
@@ -385,7 +383,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
385
383
|
html('tfoot'),
|
|
386
384
|
]).outerHTML], '']);
|
|
387
385
|
assert.deepStrictEqual(
|
|
388
|
-
inspect(parser, input('~~~table\n#!+ 1.1\n# 1.2\n: 1.3\n~~~'
|
|
386
|
+
inspect(parser, input('~~~table\n#!+ 1.1\n# 1.2\n: 1.3\n~~~')),
|
|
389
387
|
[[html('table', [
|
|
390
388
|
html('thead'),
|
|
391
389
|
html('tbody', [
|
|
@@ -398,7 +396,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
398
396
|
html('tfoot'),
|
|
399
397
|
]).outerHTML], '']);
|
|
400
398
|
assert.deepStrictEqual(
|
|
401
|
-
inspect(parser, input('~~~table\n: 1.1\n# 1.2\n#!+ 1.3\n~~~'
|
|
399
|
+
inspect(parser, input('~~~table\n: 1.1\n# 1.2\n#!+ 1.3\n~~~')),
|
|
402
400
|
[[html('table', [
|
|
403
401
|
html('thead'),
|
|
404
402
|
html('tbody', [
|
|
@@ -411,7 +409,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
411
409
|
html('tfoot'),
|
|
412
410
|
]).outerHTML], '']);
|
|
413
411
|
assert.deepStrictEqual(
|
|
414
|
-
inspect(parser, input('~~~table\n#!+ 1.1\n-\n# 2.1\n-\n: 3.1\n~~~'
|
|
412
|
+
inspect(parser, input('~~~table\n#!+ 1.1\n-\n# 2.1\n-\n: 3.1\n~~~')),
|
|
415
413
|
[[html('table', [
|
|
416
414
|
html('thead', [
|
|
417
415
|
html('tr', [html('th', { class: 'highlight', 'data-highlight-extension': '+' }, '1.1')]),
|
|
@@ -423,7 +421,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
423
421
|
html('tfoot'),
|
|
424
422
|
]).outerHTML], '']);
|
|
425
423
|
assert.deepStrictEqual(
|
|
426
|
-
inspect(parser, input('~~~table\n#:2!+ 1.1\n: 1.3\n~~~'
|
|
424
|
+
inspect(parser, input('~~~table\n#:2!+ 1.1\n: 1.3\n~~~')),
|
|
427
425
|
[[html('table', [
|
|
428
426
|
html('thead'),
|
|
429
427
|
html('tbody', [
|
|
@@ -435,7 +433,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
435
433
|
html('tfoot'),
|
|
436
434
|
]).outerHTML], '']);
|
|
437
435
|
assert.deepStrictEqual(
|
|
438
|
-
inspect(parser, input('~~~table\n#2:!+ 1.1\n-\n: 3.1\n~~~'
|
|
436
|
+
inspect(parser, input('~~~table\n#2:!+ 1.1\n-\n: 3.1\n~~~')),
|
|
439
437
|
[[html('table', [
|
|
440
438
|
html('thead', [
|
|
441
439
|
html('tr', [html('th', { class: 'highlight', rowspan: '2', 'data-highlight-extension': '+' }, '1.1')]),
|
|
@@ -446,7 +444,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
446
444
|
html('tfoot'),
|
|
447
445
|
]).outerHTML], '']);
|
|
448
446
|
assert.deepStrictEqual(
|
|
449
|
-
inspect(parser, input('~~~table\n-\n# \n#!+ 1.2\n-\n#!+ 2.1\n: 2.2\n~~~'
|
|
447
|
+
inspect(parser, input('~~~table\n-\n# \n#!+ 1.2\n-\n#!+ 2.1\n: 2.2\n~~~')),
|
|
450
448
|
[[html('table', [
|
|
451
449
|
html('thead', [
|
|
452
450
|
html('tr', [
|
|
@@ -463,7 +461,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
463
461
|
html('tfoot'),
|
|
464
462
|
]).outerHTML], '']);
|
|
465
463
|
assert.deepStrictEqual(
|
|
466
|
-
inspect(parser, input('~~~table\n-\n# \n#!+ 1.2\n-\n#!+ 2.1\n:! 2.2\n~~~'
|
|
464
|
+
inspect(parser, input('~~~table\n-\n# \n#!+ 1.2\n-\n#!+ 2.1\n:! 2.2\n~~~')),
|
|
467
465
|
[[html('table', [
|
|
468
466
|
html('thead', [
|
|
469
467
|
html('tr', [
|
|
@@ -480,7 +478,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
480
478
|
html('tfoot'),
|
|
481
479
|
]).outerHTML], '']);
|
|
482
480
|
assert.deepStrictEqual(
|
|
483
|
-
inspect(parser, input('~~~table\n-\n# 1.1\n#!+ 1.2\n-\n# 2.1\n:2:2 2.2\n: 2.4\n-\n#!+ 3.1\n: 3.4\n-\n# 4.1\n: 4.2\n~~~'
|
|
481
|
+
inspect(parser, input('~~~table\n-\n# 1.1\n#!+ 1.2\n-\n# 2.1\n:2:2 2.2\n: 2.4\n-\n#!+ 3.1\n: 3.4\n-\n# 4.1\n: 4.2\n~~~')),
|
|
484
482
|
[[html('table', [
|
|
485
483
|
html('thead', [
|
|
486
484
|
html('tr', [
|
|
@@ -506,7 +504,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
506
504
|
html('tfoot'),
|
|
507
505
|
]).outerHTML], '']);
|
|
508
506
|
assert.deepStrictEqual(
|
|
509
|
-
inspect(parser, input('~~~table\n-\n# 1.1\n#:2!+ 1.2\n-\n#2:!+ 2.1\n: 2.2\n-\n3.2\n3.3\n~~~'
|
|
507
|
+
inspect(parser, input('~~~table\n-\n# 1.1\n#:2!+ 1.2\n-\n#2:!+ 2.1\n: 2.2\n-\n3.2\n3.3\n~~~')),
|
|
510
508
|
[[html('table', [
|
|
511
509
|
html('thead', [
|
|
512
510
|
html('tr', [
|
|
@@ -532,7 +530,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
532
530
|
`-\n# 1\n${[...Array(32)].map((_, i) => `: ${i + 2}`).join('\n')}`,
|
|
533
531
|
`-\n#!+ 1\n${[...Array(32)].map((_, i) => `: ${i + 2}`).join('\n')}`,
|
|
534
532
|
'~~~'
|
|
535
|
-
].join('\n')
|
|
533
|
+
].join('\n'))),
|
|
536
534
|
[[html('table', [
|
|
537
535
|
html('thead'),
|
|
538
536
|
html('tbody', [
|
|
@@ -552,7 +550,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
552
550
|
`-\n${[...Array(32)].map((_, i) => `: ${i + 1}`).join('\n')}\n# 33`,
|
|
553
551
|
`-\n${[...Array(32)].map((_, i) => `: ${i + 1}`).join('\n')}\n#!+ 33`,
|
|
554
552
|
'~~~'
|
|
555
|
-
].join('\n')
|
|
553
|
+
].join('\n'))),
|
|
556
554
|
[[html('table', [
|
|
557
555
|
html('thead'),
|
|
558
556
|
html('tbody', [
|
|
@@ -572,7 +570,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
572
570
|
`-\n${[...Array(32)].map((_, i) => `# ${i + 1}`).join('\n')}\n#!+ 33`,
|
|
573
571
|
`-\n${[...Array(33)].map((_, i) => `: ${i + 1}`).join('\n')}`,
|
|
574
572
|
'~~~'
|
|
575
|
-
].join('\n')
|
|
573
|
+
].join('\n'))),
|
|
576
574
|
[[html('table', [
|
|
577
575
|
html('thead', [
|
|
578
576
|
html('tr', [
|
|
@@ -592,7 +590,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
592
590
|
'~~~table',
|
|
593
591
|
`${[...Array(7)].map((_, i) => `#${'!'.repeat(i + 1)} ${i + 1}`).join('\n')}`,
|
|
594
592
|
'~~~'
|
|
595
|
-
].join('\n')
|
|
593
|
+
].join('\n'))),
|
|
596
594
|
[[html('table', [
|
|
597
595
|
html('thead', [
|
|
598
596
|
html('tr', [
|
|
@@ -609,7 +607,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
609
607
|
'~~~table',
|
|
610
608
|
`${[...Array(7)].map((_, i) => `:${'!'.repeat(i + 1)} ${i + 1}`).join('\n')}`,
|
|
611
609
|
'~~~'
|
|
612
|
-
].join('\n')
|
|
610
|
+
].join('\n'))),
|
|
613
611
|
[[html('table', [
|
|
614
612
|
html('thead'),
|
|
615
613
|
html('tbody', [
|
|
@@ -622,7 +620,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
622
620
|
html('tfoot'),
|
|
623
621
|
]).outerHTML], '']);
|
|
624
622
|
assert.deepStrictEqual(
|
|
625
|
-
inspect(parser, input('~~~table\n#!+ 1\n: 2\n:! 3\n~~~'
|
|
623
|
+
inspect(parser, input('~~~table\n#!+ 1\n: 2\n:! 3\n~~~')),
|
|
626
624
|
[[html('table', [
|
|
627
625
|
html('thead'),
|
|
628
626
|
html('tbody', [
|
|
@@ -635,7 +633,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
635
633
|
html('tfoot'),
|
|
636
634
|
]).outerHTML], '']);
|
|
637
635
|
assert.deepStrictEqual(
|
|
638
|
-
inspect(parser, input('~~~table\n! 1.1\n!!!!!! 1.2\n!!!!!!! 1.3\n~~~'
|
|
636
|
+
inspect(parser, input('~~~table\n! 1.1\n!!!!!! 1.2\n!!!!!!! 1.3\n~~~')),
|
|
639
637
|
[[html('table', [
|
|
640
638
|
html('thead'),
|
|
641
639
|
html('tbody', [
|
|
@@ -651,7 +649,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
651
649
|
|
|
652
650
|
it('merge', () => {
|
|
653
651
|
assert.deepStrictEqual(
|
|
654
|
-
inspect(parser, input('~~~table\n:: 1.1\n~~~'
|
|
652
|
+
inspect(parser, input('~~~table\n:: 1.1\n~~~')),
|
|
655
653
|
[[html('table', [
|
|
656
654
|
html('thead'),
|
|
657
655
|
html('tbody', [
|
|
@@ -660,7 +658,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
660
658
|
html('tfoot'),
|
|
661
659
|
]).outerHTML], '']);
|
|
662
660
|
assert.deepStrictEqual(
|
|
663
|
-
inspect(parser, input('~~~table\n:0:0 1.1\n~~~'
|
|
661
|
+
inspect(parser, input('~~~table\n:0:0 1.1\n~~~')),
|
|
664
662
|
[[html('table', [
|
|
665
663
|
html('thead'),
|
|
666
664
|
html('tbody', [
|
|
@@ -669,7 +667,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
669
667
|
html('tfoot'),
|
|
670
668
|
]).outerHTML], '']);
|
|
671
669
|
assert.deepStrictEqual(
|
|
672
|
-
inspect(parser, input('~~~table\n:01:01 1.1\n~~~'
|
|
670
|
+
inspect(parser, input('~~~table\n:01:01 1.1\n~~~')),
|
|
673
671
|
[[html('table', [
|
|
674
672
|
html('thead'),
|
|
675
673
|
html('tbody', [
|
|
@@ -678,7 +676,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
678
676
|
html('tfoot'),
|
|
679
677
|
]).outerHTML], '']);
|
|
680
678
|
assert.deepStrictEqual(
|
|
681
|
-
inspect(parser, input('~~~table\n:1:1 1.1\n~~~'
|
|
679
|
+
inspect(parser, input('~~~table\n:1:1 1.1\n~~~')),
|
|
682
680
|
[[html('table', [
|
|
683
681
|
html('thead'),
|
|
684
682
|
html('tbody', [
|
|
@@ -687,7 +685,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
687
685
|
html('tfoot'),
|
|
688
686
|
]).outerHTML], '']);
|
|
689
687
|
assert.deepStrictEqual(
|
|
690
|
-
inspect(parser, input('~~~table\n:2: 1.1\n~~~'
|
|
688
|
+
inspect(parser, input('~~~table\n:2: 1.1\n~~~')),
|
|
691
689
|
[[html('table', [
|
|
692
690
|
html('thead'),
|
|
693
691
|
html('tbody', [
|
|
@@ -696,7 +694,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
696
694
|
html('tfoot'),
|
|
697
695
|
]).outerHTML], '']);
|
|
698
696
|
assert.deepStrictEqual(
|
|
699
|
-
inspect(parser, input('~~~table\n::2 1.1\n~~~'
|
|
697
|
+
inspect(parser, input('~~~table\n::2 1.1\n~~~')),
|
|
700
698
|
[[html('table', [
|
|
701
699
|
html('thead'),
|
|
702
700
|
html('tbody', [
|
|
@@ -705,7 +703,7 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
705
703
|
html('tfoot'),
|
|
706
704
|
]).outerHTML], '']);
|
|
707
705
|
assert.deepStrictEqual(
|
|
708
|
-
inspect(parser, input('~~~table\n:2:3 1.1\n~~~'
|
|
706
|
+
inspect(parser, input('~~~table\n:2:3 1.1\n~~~')),
|
|
709
707
|
[[html('table', [
|
|
710
708
|
html('thead'),
|
|
711
709
|
html('tbody', [
|
|
@@ -717,10 +715,10 @@ describe('Unit: parser/block/extension/table', () => {
|
|
|
717
715
|
|
|
718
716
|
it('type', () => {
|
|
719
717
|
assert.deepStrictEqual(
|
|
720
|
-
inspect(parser, input('~~~table/invalid\n~~~'
|
|
718
|
+
inspect(parser, input('~~~table/invalid\n~~~')),
|
|
721
719
|
[['<pre class="invalid" translate="no">~~~table/invalid\n~~~</pre>'], '']);
|
|
722
720
|
assert.deepStrictEqual(
|
|
723
|
-
inspect(parser, input('~~~table/grid\n~~~'
|
|
721
|
+
inspect(parser, input('~~~table/grid\n~~~')),
|
|
724
722
|
[[html('table', { 'data-type': 'grid' }).outerHTML], '']);
|
|
725
723
|
});
|
|
726
724
|
|