@mdsvex/parse 1.0.0-next.1 → 1.0.0-next.3
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/PLUGINS.md +867 -18
- package/WIRE_FORMAT.md +56 -14
- package/dist/buf-utils.js +142 -30
- package/dist/buf_utils.d.ts +64 -1
- package/dist/constants.d.ts +2 -0
- package/dist/cursor.d.ts +5 -1
- package/dist/cursor.js +15 -4
- package/dist/heading_ids.d.ts +101 -0
- package/dist/main.d.ts +415 -82
- package/dist/main.js +7402 -3913
- package/dist/node_view-DEZDLDFD.js +710 -0
- package/dist/node_view.d.ts +158 -10
- package/dist/opcodes.d.ts +37 -3
- package/dist/plugin_data.d.ts +84 -0
- package/dist/plugin_dispatch.d.ts +392 -30
- package/dist/plugin_tasks.d.ts +190 -0
- package/dist/plugin_types.d.ts +224 -6
- package/dist/text_run.d.ts +77 -0
- package/dist/tree-builder.js +192 -121
- package/dist/tree_builder.d.ts +40 -10
- package/dist/types.d.ts +28 -3
- package/dist/undo_log.d.ts +99 -6
- package/dist/unicode_punctuation.d.ts +5 -0
- package/dist/utils.d.ts +147 -5
- package/dist/utils.js +640 -319
- package/dist/wire-tree-builder.js +99 -66
- package/dist/wire_emitter.d.ts +9 -2
- package/dist/wire_tree_builder.d.ts +23 -5
- package/package.json +12 -5
- package/CHANGELOG.md +0 -234
- package/dist/node_view-bvM0i0-p.js +0 -407
- package/src/buf_utils.ts +0 -54
- package/src/constants.ts +0 -101
- package/src/cursor.ts +0 -212
- package/src/main.ts +0 -11991
- package/src/node_view.ts +0 -460
- package/src/opcodes.ts +0 -123
- package/src/plugin_dispatch.ts +0 -744
- package/src/plugin_types.ts +0 -36
- package/src/tree_builder.ts +0 -394
- package/src/types.ts +0 -30
- package/src/undo_log.ts +0 -336
- package/src/utils.spec.ts +0 -424
- package/src/utils.ts +0 -1369
- package/src/wire_emitter.ts +0 -475
- package/src/wire_tree_builder.ts +0 -324
- package/test/ast_snapshots.spec.ts +0 -155
- package/test/atx_headings.spec.ts +0 -260
- package/test/autolinks.spec.ts +0 -306
- package/test/backslash_escapes.spec.ts +0 -266
- package/test/blank_lines.spec.ts +0 -113
- package/test/block_quotes.spec.ts +0 -533
- package/test/code_spans.spec.ts +0 -862
- package/test/crlf.spec.ts +0 -173
- package/test/directives.spec.ts +0 -1305
- package/test/emphasis.spec.ts +0 -1892
- package/test/fenced_code_blocks.spec.ts +0 -375
- package/test/fixtures/hybrid/code-escaping.svx +0 -10
- package/test/fixtures/hybrid/code-highlight-nesting.svx +0 -6
- package/test/fixtures/hybrid/component-children.svx +0 -24
- package/test/fixtures/hybrid/component-simple-00.svx +0 -9
- package/test/fixtures/hybrid/component-simple-01.svx +0 -7
- package/test/fixtures/hybrid/component-simple-02.svx +0 -1
- package/test/fixtures/hybrid/component-simple-03.svx +0 -7
- package/test/fixtures/hybrid/component-simple-04.svx +0 -9
- package/test/fixtures/hybrid/dollar-one-in-frontmatter.svx +0 -5
- package/test/fixtures/hybrid/error.svx +0 -37
- package/test/fixtures/hybrid/link-curlies.svx +0 -22
- package/test/fixtures/hybrid/tags-in-frontmatter.svx +0 -3
- package/test/fixtures/markdown/anchors-by-reference.md +0 -11
- package/test/fixtures/markdown/anchors-followed-by-brakets.md +0 -7
- package/test/fixtures/markdown/automatic-anchors.md +0 -2
- package/test/fixtures/markdown/blockquote-followed-by-code.md +0 -10
- package/test/fixtures/markdown/blockquote-inside-code.md +0 -11
- package/test/fixtures/markdown/blockquote-nested-markdown.md +0 -10
- package/test/fixtures/markdown/blockquote.md +0 -4
- package/test/fixtures/markdown/code-block-html-escape.md +0 -6
- package/test/fixtures/markdown/code-block-with-special-chars.md +0 -8
- package/test/fixtures/markdown/code-block.md +0 -6
- package/test/fixtures/markdown/double-emphasis.md +0 -7
- package/test/fixtures/markdown/doubline-list.md +0 -4
- package/test/fixtures/markdown/ellipsis.md +0 -24
- package/test/fixtures/markdown/emphasis-inside-inline-code.md +0 -1
- package/test/fixtures/markdown/emphasis.md +0 -88
- package/test/fixtures/markdown/encodeHTMLCodeTags.md +0 -5
- package/test/fixtures/markdown/escaped-html-taglikes.md +0 -7
- package/test/fixtures/markdown/escaped-number-period.md +0 -1
- package/test/fixtures/markdown/escaping.md +0 -32
- package/test/fixtures/markdown/github-style-at-start.md +0 -7
- package/test/fixtures/markdown/github-style-codeblock-inside-quote.md +0 -13
- package/test/fixtures/markdown/github-style-codeblock.md +0 -34
- package/test/fixtures/markdown/github-style-linebreaks.md +0 -4
- package/test/fixtures/markdown/h1-with-double-hash.md +0 -1
- package/test/fixtures/markdown/h1-with-equals.md +0 -2
- package/test/fixtures/markdown/h1-with-single-hash.md +0 -1
- package/test/fixtures/markdown/h2-with-dashes.md +0 -2
- package/test/fixtures/markdown/h2-with-double-hash.md +0 -1
- package/test/fixtures/markdown/h2-with-single-hash.md +0 -1
- package/test/fixtures/markdown/h3-with-double-hash.md +0 -1
- package/test/fixtures/markdown/h3-with-single-hash.md +0 -1
- package/test/fixtures/markdown/h4-with-single-hash.md +0 -1
- package/test/fixtures/markdown/h5-with-single-hash.md +0 -1
- package/test/fixtures/markdown/h6-with-single-hash.md +0 -1
- package/test/fixtures/markdown/horizontal-rules.md +0 -10
- package/test/fixtures/markdown/html-comments.md +0 -8
- package/test/fixtures/markdown/html-inside-listed-code.md +0 -8
- package/test/fixtures/markdown/html5-strutural-tags.md +0 -68
- package/test/fixtures/markdown/images-followed-by-brackets.md +0 -3
- package/test/fixtures/markdown/images.md +0 -14
- package/test/fixtures/markdown/implicit-anchors.md +0 -7
- package/test/fixtures/markdown/inline-anchors.md +0 -3
- package/test/fixtures/markdown/inline-code.md +0 -13
- package/test/fixtures/markdown/inline-escaped-chars.md +0 -2
- package/test/fixtures/markdown/inline-style-tag.md +0 -5
- package/test/fixtures/markdown/lazy-blockquote.md +0 -3
- package/test/fixtures/markdown/line-starts-with-html.md +0 -3
- package/test/fixtures/markdown/list-followed-by-blockquote.md +0 -9
- package/test/fixtures/markdown/list-followed-by-ghcode.md +0 -13
- package/test/fixtures/markdown/list-with-blockquote.md +0 -4
- package/test/fixtures/markdown/literal-html-tags.md +0 -9
- package/test/fixtures/markdown/multi-paragraph-list.md +0 -5
- package/test/fixtures/markdown/multiline-unordered-list.md +0 -3
- package/test/fixtures/markdown/nested-blockquote.md +0 -5
- package/test/fixtures/markdown/nested-gh-codeblocks.md +0 -9
- package/test/fixtures/markdown/obfuscated-emails.md +0 -0
- package/test/fixtures/markdown/ordered-list-same-number.md +0 -3
- package/test/fixtures/markdown/ordered-list-starting-number.md +0 -10
- package/test/fixtures/markdown/ordered-list-wrong-numbers.md +0 -3
- package/test/fixtures/markdown/ordered-list.md +0 -3
- package/test/fixtures/markdown/paragraphed-list-with-sublists.md +0 -13
- package/test/fixtures/markdown/pre-code-tags-inside-code-block.md +0 -7
- package/test/fixtures/markdown/pre-code-tags.md +0 -19
- package/test/fixtures/markdown/relative-anchors.md +0 -1
- package/test/fixtures/markdown/repeated-headers.md +0 -5
- package/test/fixtures/markdown/simple-paragraph.md +0 -1
- package/test/fixtures/markdown/strip-references.md +0 -13
- package/test/fixtures/markdown/strong.md +0 -5
- package/test/fixtures/markdown/unordered-list-asterisk.md +0 -3
- package/test/fixtures/markdown/unordered-list-minus.md +0 -3
- package/test/fixtures/markdown/unordered-list-plus.md +0 -3
- package/test/fixtures/markdown/url-with-parenthesis.md +0 -1
- package/test/fixtures/pfm/atx_headings/62.md +0 -6
- package/test/fixtures/pfm/atx_headings/63.md +0 -1
- package/test/fixtures/pfm/atx_headings/64.md +0 -3
- package/test/fixtures/pfm/atx_headings/65.md +0 -1
- package/test/fixtures/pfm/atx_headings/66.md +0 -1
- package/test/fixtures/pfm/atx_headings/67.md +0 -1
- package/test/fixtures/pfm/atx_headings/68.md +0 -3
- package/test/fixtures/pfm/atx_headings/69.md +0 -1
- package/test/fixtures/pfm/atx_headings/70.md +0 -2
- package/test/fixtures/pfm/atx_headings/71.md +0 -2
- package/test/fixtures/pfm/atx_headings/72.md +0 -2
- package/test/fixtures/pfm/atx_headings/73.md +0 -1
- package/test/fixtures/pfm/atx_headings/74.md +0 -1
- package/test/fixtures/pfm/atx_headings/75.md +0 -1
- package/test/fixtures/pfm/atx_headings/76.md +0 -3
- package/test/fixtures/pfm/atx_headings/77.md +0 -3
- package/test/fixtures/pfm/atx_headings/78.md +0 -3
- package/test/fixtures/pfm/atx_headings/79.md +0 -3
- package/test/fixtures/pfm/autolinks/594.md +0 -1
- package/test/fixtures/pfm/autolinks/595.md +0 -1
- package/test/fixtures/pfm/autolinks/596.md +0 -1
- package/test/fixtures/pfm/autolinks/597.md +0 -1
- package/test/fixtures/pfm/autolinks/598.md +0 -1
- package/test/fixtures/pfm/autolinks/599.md +0 -1
- package/test/fixtures/pfm/autolinks/600.md +0 -1
- package/test/fixtures/pfm/autolinks/601.md +0 -1
- package/test/fixtures/pfm/autolinks/602.md +0 -1
- package/test/fixtures/pfm/autolinks/603.md +0 -1
- package/test/fixtures/pfm/autolinks/604.md +0 -1
- package/test/fixtures/pfm/autolinks/605.md +0 -1
- package/test/fixtures/pfm/autolinks/606.md +0 -1
- package/test/fixtures/pfm/autolinks/607.md +0 -1
- package/test/fixtures/pfm/autolinks/608.md +0 -1
- package/test/fixtures/pfm/autolinks/609.md +0 -1
- package/test/fixtures/pfm/autolinks/610.md +0 -1
- package/test/fixtures/pfm/autolinks/611.md +0 -1
- package/test/fixtures/pfm/autolinks/612.md +0 -1
- package/test/fixtures/pfm/backslash_escapes/12.md +0 -1
- package/test/fixtures/pfm/backslash_escapes/13.md +0 -1
- package/test/fixtures/pfm/backslash_escapes/14.md +0 -9
- package/test/fixtures/pfm/backslash_escapes/15.md +0 -1
- package/test/fixtures/pfm/backslash_escapes/16.md +0 -2
- package/test/fixtures/pfm/backslash_escapes/17.md +0 -1
- package/test/fixtures/pfm/backslash_escapes/18.md +0 -1
- package/test/fixtures/pfm/backslash_escapes/19.md +0 -3
- package/test/fixtures/pfm/backslash_escapes/20.md +0 -1
- package/test/fixtures/pfm/backslash_escapes/21.md +0 -1
- package/test/fixtures/pfm/backslash_escapes/22.md +0 -1
- package/test/fixtures/pfm/backslash_escapes/23.md +0 -3
- package/test/fixtures/pfm/backslash_escapes/24.md +0 -3
- package/test/fixtures/pfm/blank_lines/227.md +0 -8
- package/test/fixtures/pfm/block_quotes/228.md +0 -3
- package/test/fixtures/pfm/block_quotes/229.md +0 -3
- package/test/fixtures/pfm/block_quotes/230.md +0 -3
- package/test/fixtures/pfm/block_quotes/231.md +0 -3
- package/test/fixtures/pfm/block_quotes/232.md +0 -3
- package/test/fixtures/pfm/block_quotes/233.md +0 -3
- package/test/fixtures/pfm/block_quotes/234.md +0 -2
- package/test/fixtures/pfm/block_quotes/235.md +0 -2
- package/test/fixtures/pfm/block_quotes/236.md +0 -2
- package/test/fixtures/pfm/block_quotes/237.md +0 -3
- package/test/fixtures/pfm/block_quotes/238.md +0 -2
- package/test/fixtures/pfm/block_quotes/239.md +0 -1
- package/test/fixtures/pfm/block_quotes/240.md +0 -3
- package/test/fixtures/pfm/block_quotes/241.md +0 -3
- package/test/fixtures/pfm/block_quotes/242.md +0 -3
- package/test/fixtures/pfm/block_quotes/243.md +0 -2
- package/test/fixtures/pfm/block_quotes/244.md +0 -3
- package/test/fixtures/pfm/block_quotes/245.md +0 -2
- package/test/fixtures/pfm/block_quotes/246.md +0 -3
- package/test/fixtures/pfm/block_quotes/247.md +0 -2
- package/test/fixtures/pfm/block_quotes/248.md +0 -3
- package/test/fixtures/pfm/block_quotes/249.md +0 -3
- package/test/fixtures/pfm/block_quotes/250.md +0 -2
- package/test/fixtures/pfm/block_quotes/251.md +0 -3
- package/test/fixtures/pfm/block_quotes/252.md +0 -3
- package/test/fixtures/pfm/block_quotes/pfm_fence_close.md +0 -4
- package/test/fixtures/pfm/block_quotes/pfm_fence_close_compact.md +0 -4
- package/test/fixtures/pfm/block_quotes/pfm_fence_close_end_quote.md +0 -5
- package/test/fixtures/pfm/block_quotes/pfm_fence_close_info.md +0 -5
- package/test/fixtures/pfm/block_quotes/pfm_fence_close_longer.md +0 -4
- package/test/fixtures/pfm/block_quotes/pfm_fence_close_nested.md +0 -3
- package/test/fixtures/pfm/block_quotes/pfm_fence_close_twice.md +0 -6
- package/test/fixtures/pfm/block_quotes/pfm_fence_info_eof.md +0 -1
- package/test/fixtures/pfm/block_quotes/pfm_fence_unclosed.md +0 -2
- package/test/fixtures/pfm/code_spans/328.md +0 -1
- package/test/fixtures/pfm/code_spans/329.md +0 -1
- package/test/fixtures/pfm/code_spans/330.md +0 -1
- package/test/fixtures/pfm/code_spans/331.md +0 -1
- package/test/fixtures/pfm/code_spans/332.md +0 -1
- package/test/fixtures/pfm/code_spans/333.md +0 -1
- package/test/fixtures/pfm/code_spans/334.md +0 -2
- package/test/fixtures/pfm/code_spans/335.md +0 -5
- package/test/fixtures/pfm/code_spans/336.md +0 -3
- package/test/fixtures/pfm/code_spans/337.md +0 -2
- package/test/fixtures/pfm/code_spans/338.md +0 -1
- package/test/fixtures/pfm/code_spans/339.md +0 -1
- package/test/fixtures/pfm/code_spans/340.md +0 -1
- package/test/fixtures/pfm/code_spans/341.md +0 -1
- package/test/fixtures/pfm/code_spans/342.md +0 -1
- package/test/fixtures/pfm/code_spans/343.md +0 -1
- package/test/fixtures/pfm/code_spans/344.md +0 -1
- package/test/fixtures/pfm/code_spans/345.md +0 -1
- package/test/fixtures/pfm/code_spans/346.md +0 -1
- package/test/fixtures/pfm/code_spans/347.md +0 -1
- package/test/fixtures/pfm/code_spans/348.md +0 -1
- package/test/fixtures/pfm/code_spans/349.md +0 -1
- package/test/fixtures/pfm/code_spans/pfm_328_1.md +0 -1
- package/test/fixtures/pfm/code_spans/pfm_328_2.md +0 -1
- package/test/fixtures/pfm/code_spans/pfm_328_3.md +0 -1
- package/test/fixtures/pfm/code_spans/pfm_328_4.md +0 -1
- package/test/fixtures/pfm/code_spans/pfm_328_5.md +0 -1
- package/test/fixtures/pfm/code_spans/pfm_328_6.md +0 -1
- package/test/fixtures/pfm/code_spans/pfm_328_7.md +0 -1
- package/test/fixtures/pfm/code_spans/pfm_328_8.md +0 -1
- package/test/fixtures/pfm/code_spans/pfm_328_9.md +0 -2
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/350.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/351.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/352.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/353.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/354.md +0 -5
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/355.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/356.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/357.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/358.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/359.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/360.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/361.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/362.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/363.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/364.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/365.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/366.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/367.md +0 -2
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/368.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/369.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/370.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/371.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/372.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/373.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/374.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/375.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/376.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/377.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/378.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/379.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/380.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/381.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/382.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/383.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/384.md +0 -2
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/385.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/386.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/387.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/388.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/389.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/390.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/391.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/392.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/393.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/394.md +0 -2
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/395.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/396.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/397.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/398.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/399.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/400.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/401.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/402.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/403.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/404.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/405.md +0 -2
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/406.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/407.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/408.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/409.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/410.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/411.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/412.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/413.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/414.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/415.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/416.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/417.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/418.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/419.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/420.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/421.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/422.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/423.md +0 -2
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/424.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/425.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/426.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/427.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/428.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/429.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/430.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/431.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/432.md +0 -2
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/433.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/434.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/435.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/436.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/437.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/438.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/439.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/440.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/441.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/442.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/443.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/444.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/445.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/446.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/447.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/448.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/449.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/450.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/451.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/452.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/453.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/454.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/455.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/456.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/457.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/458.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/459.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/460.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/461.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/462.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/463.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/464.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/465.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/466.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/467.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/468.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/469.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/470.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/471.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/472.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/473.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/474.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/475.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/476.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/477.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/478.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/479.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/480.md +0 -1
- package/test/fixtures/pfm/emphasis_and_strong_emphasis/481.md +0 -1
- package/test/fixtures/pfm/fenced_code_blocks/119.md +0 -4
- package/test/fixtures/pfm/fenced_code_blocks/121.md +0 -3
- package/test/fixtures/pfm/fenced_code_blocks/122.md +0 -4
- package/test/fixtures/pfm/fenced_code_blocks/124.md +0 -4
- package/test/fixtures/pfm/fenced_code_blocks/126.md +0 -1
- package/test/fixtures/pfm/fenced_code_blocks/127.md +0 -4
- package/test/fixtures/pfm/fenced_code_blocks/128.md +0 -4
- package/test/fixtures/pfm/fenced_code_blocks/130.md +0 -2
- package/test/fixtures/pfm/fenced_code_blocks/131.md +0 -4
- package/test/fixtures/pfm/fenced_code_blocks/132.md +0 -5
- package/test/fixtures/pfm/fenced_code_blocks/133.md +0 -5
- package/test/fixtures/pfm/fenced_code_blocks/134.md +0 -3
- package/test/fixtures/pfm/fenced_code_blocks/135.md +0 -3
- package/test/fixtures/pfm/fenced_code_blocks/136.md +0 -3
- package/test/fixtures/pfm/fenced_code_blocks/137.md +0 -3
- package/test/fixtures/pfm/fenced_code_blocks/138.md +0 -2
- package/test/fixtures/pfm/fenced_code_blocks/140.md +0 -5
- package/test/fixtures/pfm/fenced_code_blocks/142.md +0 -5
- package/test/fixtures/pfm/fenced_code_blocks/144.md +0 -2
- package/test/fixtures/pfm/fenced_code_blocks/145.md +0 -2
- package/test/fixtures/pfm/fenced_code_blocks/pfm_119_2.md +0 -8
- package/test/fixtures/pfm/fenced_code_blocks/pfm_119_3.md +0 -5
- package/test/fixtures/pfm/fenced_code_blocks/pfm_info_eof.md +0 -1
- package/test/fixtures/pfm/fenced_code_blocks/pfm_info_eof_no_lf.md +0 -1
- package/test/fixtures/pfm/frontmatter/1.md +0 -5
- package/test/fixtures/pfm/frontmatter/10.md +0 -1
- package/test/fixtures/pfm/frontmatter/2.md +0 -2
- package/test/fixtures/pfm/frontmatter/3.md +0 -4
- package/test/fixtures/pfm/frontmatter/4.md +0 -5
- package/test/fixtures/pfm/frontmatter/5.md +0 -6
- package/test/fixtures/pfm/frontmatter/6.md +0 -8
- package/test/fixtures/pfm/frontmatter/7.md +0 -4
- package/test/fixtures/pfm/frontmatter/8.md +0 -5
- package/test/fixtures/pfm/frontmatter/9.md +0 -4
- package/test/fixtures/pfm/generic_directives/001.md +0 -1
- package/test/fixtures/pfm/generic_directives/002.md +0 -1
- package/test/fixtures/pfm/generic_directives/003.md +0 -1
- package/test/fixtures/pfm/generic_directives/004.md +0 -1
- package/test/fixtures/pfm/generic_directives/005.md +0 -1
- package/test/fixtures/pfm/generic_directives/006.md +0 -1
- package/test/fixtures/pfm/generic_directives/007.md +0 -1
- package/test/fixtures/pfm/generic_directives/008.md +0 -1
- package/test/fixtures/pfm/generic_directives/009.md +0 -1
- package/test/fixtures/pfm/generic_directives/010.md +0 -1
- package/test/fixtures/pfm/generic_directives/011.md +0 -1
- package/test/fixtures/pfm/generic_directives/012.md +0 -1
- package/test/fixtures/pfm/generic_directives/013.md +0 -1
- package/test/fixtures/pfm/generic_directives/014.md +0 -1
- package/test/fixtures/pfm/generic_directives/015.md +0 -3
- package/test/fixtures/pfm/generic_directives/016.md +0 -1
- package/test/fixtures/pfm/generic_directives/017.md +0 -1
- package/test/fixtures/pfm/generic_directives/018.md +0 -1
- package/test/fixtures/pfm/generic_directives/019.md +0 -2
- package/test/fixtures/pfm/generic_directives/020.md +0 -3
- package/test/fixtures/pfm/generic_directives/021.md +0 -3
- package/test/fixtures/pfm/generic_directives/022.md +0 -5
- package/test/fixtures/pfm/generic_directives/023.md +0 -2
- package/test/fixtures/pfm/generic_directives/024.md +0 -5
- package/test/fixtures/pfm/generic_directives/025.md +0 -2
- package/test/fixtures/pfm/generic_directives/026.md +0 -3
- package/test/fixtures/pfm/generic_directives/027.md +0 -5
- package/test/fixtures/pfm/generic_directives/028.md +0 -5
- package/test/fixtures/pfm/generic_directives/029.md +0 -7
- package/test/fixtures/pfm/generic_directives/030.md +0 -3
- package/test/fixtures/pfm/generic_directives/031.md +0 -4
- package/test/fixtures/pfm/generic_directives/032.md +0 -3
- package/test/fixtures/pfm/generic_directives/033.md +0 -3
- package/test/fixtures/pfm/generic_directives/034.md +0 -5
- package/test/fixtures/pfm/generic_directives/035.md +0 -3
- package/test/fixtures/pfm/generic_directives/036.md +0 -1
- package/test/fixtures/pfm/generic_directives/037.md +0 -1
- package/test/fixtures/pfm/generic_directives/038.md +0 -3
- package/test/fixtures/pfm/generic_directives/039.md +0 -5
- package/test/fixtures/pfm/generic_directives/040.md +0 -9
- package/test/fixtures/pfm/generic_directives/041.md +0 -1
- package/test/fixtures/pfm/generic_directives/042.md +0 -1
- package/test/fixtures/pfm/generic_directives/043.md +0 -1
- package/test/fixtures/pfm/generic_directives/044.md +0 -1
- package/test/fixtures/pfm/generic_directives/045.md +0 -1
- package/test/fixtures/pfm/generic_directives/046.md +0 -3
- package/test/fixtures/pfm/generic_directives/047.md +0 -5
- package/test/fixtures/pfm/generic_directives/048.md +0 -1
- package/test/fixtures/pfm/generic_directives/049.md +0 -1
- package/test/fixtures/pfm/generic_directives/050.md +0 -1
- package/test/fixtures/pfm/generic_directives/051.md +0 -1
- package/test/fixtures/pfm/generic_directives/052.md +0 -1
- package/test/fixtures/pfm/generic_directives/053.md +0 -1
- package/test/fixtures/pfm/generic_directives/054.md +0 -1
- package/test/fixtures/pfm/generic_directives/055.md +0 -1
- package/test/fixtures/pfm/generic_directives/056.md +0 -1
- package/test/fixtures/pfm/generic_directives/057.md +0 -1
- package/test/fixtures/pfm/generic_directives/058.md +0 -1
- package/test/fixtures/pfm/generic_directives/059.md +0 -1
- package/test/fixtures/pfm/generic_directives/060.md +0 -1
- package/test/fixtures/pfm/generic_directives/061.md +0 -1
- package/test/fixtures/pfm/generic_directives/062.md +0 -1
- package/test/fixtures/pfm/generic_directives/063.md +0 -1
- package/test/fixtures/pfm/generic_directives/064.md +0 -1
- package/test/fixtures/pfm/generic_directives/065.md +0 -2
- package/test/fixtures/pfm/generic_directives/066.md +0 -1
- package/test/fixtures/pfm/generic_directives/067.md +0 -1
- package/test/fixtures/pfm/generic_directives/068.md +0 -1
- package/test/fixtures/pfm/generic_directives/069.md +0 -1
- package/test/fixtures/pfm/generic_directives/070.md +0 -1
- package/test/fixtures/pfm/generic_directives/071.md +0 -1
- package/test/fixtures/pfm/generic_directives/072.md +0 -1
- package/test/fixtures/pfm/generic_directives/073.md +0 -1
- package/test/fixtures/pfm/generic_directives/074.md +0 -3
- package/test/fixtures/pfm/generic_directives/075.md +0 -1
- package/test/fixtures/pfm/generic_directives/076.md +0 -1
- package/test/fixtures/pfm/generic_directives/077.md +0 -1
- package/test/fixtures/pfm/generic_directives/078.md +0 -1
- package/test/fixtures/pfm/generic_directives/079.md +0 -1
- package/test/fixtures/pfm/generic_directives/080.md +0 -1
- package/test/fixtures/pfm/generic_directives/081.md +0 -1
- package/test/fixtures/pfm/generic_directives/082.md +0 -1
- package/test/fixtures/pfm/generic_directives/083.md +0 -1
- package/test/fixtures/pfm/generic_directives/084.md +0 -1
- package/test/fixtures/pfm/generic_directives/085.md +0 -1
- package/test/fixtures/pfm/generic_directives/086.md +0 -1
- package/test/fixtures/pfm/generic_directives/087.md +0 -1
- package/test/fixtures/pfm/generic_directives/088.md +0 -3
- package/test/fixtures/pfm/generic_directives/089.md +0 -1
- package/test/fixtures/pfm/generic_directives/090.md +0 -1
- package/test/fixtures/pfm/generic_directives/091.md +0 -1
- package/test/fixtures/pfm/generic_directives/092.md +0 -3
- package/test/fixtures/pfm/generic_directives/093.md +0 -1
- package/test/fixtures/pfm/generic_directives/094.md +0 -1
- package/test/fixtures/pfm/generic_directives/095.md +0 -2
- package/test/fixtures/pfm/generic_directives/096.md +0 -1
- package/test/fixtures/pfm/generic_directives/097.md +0 -1
- package/test/fixtures/pfm/generic_directives/098.md +0 -1
- package/test/fixtures/pfm/generic_directives/099.md +0 -1
- package/test/fixtures/pfm/generic_directives/100.md +0 -1
- package/test/fixtures/pfm/generic_directives/101.md +0 -1
- package/test/fixtures/pfm/generic_directives/102.md +0 -1
- package/test/fixtures/pfm/generic_directives/103.md +0 -5
- package/test/fixtures/pfm/generic_directives/104.md +0 -1
- package/test/fixtures/pfm/generic_directives/105.md +0 -1
- package/test/fixtures/pfm/generic_directives/106.md +0 -1
- package/test/fixtures/pfm/generic_directives/107.md +0 -3
- package/test/fixtures/pfm/generic_directives/108.md +0 -1
- package/test/fixtures/pfm/generic_directives/109.md +0 -1
- package/test/fixtures/pfm/generic_directives/110.md +0 -1
- package/test/fixtures/pfm/generic_directives/111.md +0 -1
- package/test/fixtures/pfm/generic_directives/112.md +0 -1
- package/test/fixtures/pfm/generic_directives/113.md +0 -1
- package/test/fixtures/pfm/generic_directives/114.md +0 -2
- package/test/fixtures/pfm/generic_directives/115.md +0 -1
- package/test/fixtures/pfm/generic_directives/116.md +0 -6
- package/test/fixtures/pfm/generic_directives/117.md +0 -3
- package/test/fixtures/pfm/generic_directives/118.md +0 -6
- package/test/fixtures/pfm/generic_directives/119.md +0 -3
- package/test/fixtures/pfm/generic_directives/120.md +0 -5
- package/test/fixtures/pfm/generic_directives/121.md +0 -3
- package/test/fixtures/pfm/generic_directives/122.md +0 -4
- package/test/fixtures/pfm/generic_directives/123.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/633.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/634.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/635.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/636.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/637.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/638.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/639.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/640.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/641.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/642.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/643.md +0 -2
- package/test/fixtures/pfm/hard_line_breaks/644.md +0 -1
- package/test/fixtures/pfm/hard_line_breaks/645.md +0 -1
- package/test/fixtures/pfm/hard_line_breaks/646.md +0 -1
- package/test/fixtures/pfm/hard_line_breaks/647.md +0 -1
- package/test/fixtures/pfm/html/148.md +0 -7
- package/test/fixtures/pfm/html/149.md +0 -9
- package/test/fixtures/pfm/html/150.md +0 -3
- package/test/fixtures/pfm/html/151.md +0 -2
- package/test/fixtures/pfm/html/152.md +0 -5
- package/test/fixtures/pfm/html/153.md +0 -3
- package/test/fixtures/pfm/html/154.md +0 -3
- package/test/fixtures/pfm/html/155.md +0 -4
- package/test/fixtures/pfm/html/156.md +0 -2
- package/test/fixtures/pfm/html/157.md +0 -2
- package/test/fixtures/pfm/html/158.md +0 -2
- package/test/fixtures/pfm/html/159.md +0 -1
- package/test/fixtures/pfm/html/160.md +0 -3
- package/test/fixtures/pfm/html/161.md +0 -4
- package/test/fixtures/pfm/html/162.md +0 -3
- package/test/fixtures/pfm/html/163.md +0 -3
- package/test/fixtures/pfm/html/164.md +0 -3
- package/test/fixtures/pfm/html/165.md +0 -2
- package/test/fixtures/pfm/html/166.md +0 -3
- package/test/fixtures/pfm/html/167.md +0 -5
- package/test/fixtures/pfm/html/168.md +0 -1
- package/test/fixtures/pfm/html/169.md +0 -7
- package/test/fixtures/pfm/html/170.md +0 -6
- package/test/fixtures/pfm/html/171.md +0 -7
- package/test/fixtures/pfm/html/172.md +0 -7
- package/test/fixtures/pfm/html/173.md +0 -4
- package/test/fixtures/pfm/html/174.md +0 -4
- package/test/fixtures/pfm/html/175.md +0 -2
- package/test/fixtures/pfm/html/176.md +0 -2
- package/test/fixtures/pfm/html/177.md +0 -2
- package/test/fixtures/pfm/html/178.md +0 -3
- package/test/fixtures/pfm/html/179.md +0 -5
- package/test/fixtures/pfm/html/180.md +0 -6
- package/test/fixtures/pfm/html/181.md +0 -1
- package/test/fixtures/pfm/html/182.md +0 -13
- package/test/fixtures/pfm/html/183.md +0 -3
- package/test/fixtures/pfm/html/184.md +0 -3
- package/test/fixtures/pfm/html/185.md +0 -4
- package/test/fixtures/pfm/html/186.md +0 -4
- package/test/fixtures/pfm/html/187.md +0 -3
- package/test/fixtures/pfm/html/188.md +0 -5
- package/test/fixtures/pfm/html/189.md +0 -3
- package/test/fixtures/pfm/html/190.md +0 -11
- package/test/fixtures/pfm/html/191.md +0 -11
- package/test/fixtures/pfm/html/613.md +0 -1
- package/test/fixtures/pfm/html/614.md +0 -1
- package/test/fixtures/pfm/html/615.md +0 -2
- package/test/fixtures/pfm/html/616.md +0 -2
- package/test/fixtures/pfm/html/617.md +0 -1
- package/test/fixtures/pfm/html/618.md +0 -1
- package/test/fixtures/pfm/html/619.md +0 -1
- package/test/fixtures/pfm/html/620.md +0 -1
- package/test/fixtures/pfm/html/621.md +0 -4
- package/test/fixtures/pfm/html/622.md +0 -1
- package/test/fixtures/pfm/html/623.md +0 -1
- package/test/fixtures/pfm/html/624.md +0 -1
- package/test/fixtures/pfm/html/625.md +0 -2
- package/test/fixtures/pfm/html/626.md +0 -3
- package/test/fixtures/pfm/html/627.md +0 -1
- package/test/fixtures/pfm/html/628.md +0 -1
- package/test/fixtures/pfm/html/629.md +0 -1
- package/test/fixtures/pfm/html/630.md +0 -1
- package/test/fixtures/pfm/html/631.md +0 -1
- package/test/fixtures/pfm/html/632.md +0 -1
- package/test/fixtures/pfm/images/572.md +0 -1
- package/test/fixtures/pfm/images/573.md +0 -3
- package/test/fixtures/pfm/images/574.md +0 -1
- package/test/fixtures/pfm/images/575.md +0 -1
- package/test/fixtures/pfm/images/576.md +0 -3
- package/test/fixtures/pfm/images/577.md +0 -3
- package/test/fixtures/pfm/images/578.md +0 -1
- package/test/fixtures/pfm/images/579.md +0 -1
- package/test/fixtures/pfm/images/580.md +0 -1
- package/test/fixtures/pfm/images/581.md +0 -1
- package/test/fixtures/pfm/images/582.md +0 -3
- package/test/fixtures/pfm/images/583.md +0 -3
- package/test/fixtures/pfm/images/584.md +0 -3
- package/test/fixtures/pfm/images/585.md +0 -3
- package/test/fixtures/pfm/images/586.md +0 -3
- package/test/fixtures/pfm/images/587.md +0 -4
- package/test/fixtures/pfm/images/588.md +0 -3
- package/test/fixtures/pfm/images/589.md +0 -3
- package/test/fixtures/pfm/images/590.md +0 -3
- package/test/fixtures/pfm/images/591.md +0 -3
- package/test/fixtures/pfm/images/592.md +0 -3
- package/test/fixtures/pfm/images/593.md +0 -3
- package/test/fixtures/pfm/imports/1.md +0 -3
- package/test/fixtures/pfm/imports/10.md +0 -1
- package/test/fixtures/pfm/imports/11.md +0 -3
- package/test/fixtures/pfm/imports/2.md +0 -4
- package/test/fixtures/pfm/imports/3.md +0 -4
- package/test/fixtures/pfm/imports/4.md +0 -3
- package/test/fixtures/pfm/imports/5.md +0 -3
- package/test/fixtures/pfm/imports/6.md +0 -5
- package/test/fixtures/pfm/imports/7.md +0 -3
- package/test/fixtures/pfm/imports/8.md +0 -3
- package/test/fixtures/pfm/imports/9.md +0 -1
- package/test/fixtures/pfm/inlines/327.md +0 -1
- package/test/fixtures/pfm/link_reference_definitions/192.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/193.md +0 -5
- package/test/fixtures/pfm/link_reference_definitions/194.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/195.md +0 -5
- package/test/fixtures/pfm/link_reference_definitions/196.md +0 -7
- package/test/fixtures/pfm/link_reference_definitions/197.md +0 -5
- package/test/fixtures/pfm/link_reference_definitions/198.md +0 -4
- package/test/fixtures/pfm/link_reference_definitions/199.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/200.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/201.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/202.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/203.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/204.md +0 -4
- package/test/fixtures/pfm/link_reference_definitions/205.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/206.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/207.md +0 -1
- package/test/fixtures/pfm/link_reference_definitions/208.md +0 -5
- package/test/fixtures/pfm/link_reference_definitions/209.md +0 -1
- package/test/fixtures/pfm/link_reference_definitions/210.md +0 -2
- package/test/fixtures/pfm/link_reference_definitions/211.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/212.md +0 -5
- package/test/fixtures/pfm/link_reference_definitions/213.md +0 -4
- package/test/fixtures/pfm/link_reference_definitions/214.md +0 -5
- package/test/fixtures/pfm/link_reference_definitions/215.md +0 -4
- package/test/fixtures/pfm/link_reference_definitions/216.md +0 -3
- package/test/fixtures/pfm/link_reference_definitions/217.md +0 -8
- package/test/fixtures/pfm/link_reference_definitions/218.md +0 -3
- package/test/fixtures/pfm/links/482.md +0 -1
- package/test/fixtures/pfm/links/483.md +0 -1
- package/test/fixtures/pfm/links/484.md +0 -1
- package/test/fixtures/pfm/links/485.md +0 -1
- package/test/fixtures/pfm/links/486.md +0 -1
- package/test/fixtures/pfm/links/487.md +0 -1
- package/test/fixtures/pfm/links/488.md +0 -1
- package/test/fixtures/pfm/links/489.md +0 -1
- package/test/fixtures/pfm/links/490.md +0 -2
- package/test/fixtures/pfm/links/491.md +0 -2
- package/test/fixtures/pfm/links/492.md +0 -1
- package/test/fixtures/pfm/links/493.md +0 -1
- package/test/fixtures/pfm/links/494.md +0 -3
- package/test/fixtures/pfm/links/495.md +0 -1
- package/test/fixtures/pfm/links/496.md +0 -1
- package/test/fixtures/pfm/links/497.md +0 -1
- package/test/fixtures/pfm/links/498.md +0 -1
- package/test/fixtures/pfm/links/499.md +0 -1
- package/test/fixtures/pfm/links/500.md +0 -1
- package/test/fixtures/pfm/links/501.md +0 -5
- package/test/fixtures/pfm/links/502.md +0 -1
- package/test/fixtures/pfm/links/503.md +0 -1
- package/test/fixtures/pfm/links/504.md +0 -1
- package/test/fixtures/pfm/links/505.md +0 -3
- package/test/fixtures/pfm/links/506.md +0 -1
- package/test/fixtures/pfm/links/507.md +0 -1
- package/test/fixtures/pfm/links/508.md +0 -1
- package/test/fixtures/pfm/links/509.md +0 -1
- package/test/fixtures/pfm/links/510.md +0 -2
- package/test/fixtures/pfm/links/511.md +0 -1
- package/test/fixtures/pfm/links/512.md +0 -1
- package/test/fixtures/pfm/links/513.md +0 -1
- package/test/fixtures/pfm/links/514.md +0 -1
- package/test/fixtures/pfm/links/515.md +0 -1
- package/test/fixtures/pfm/links/516.md +0 -1
- package/test/fixtures/pfm/links/517.md +0 -1
- package/test/fixtures/pfm/links/518.md +0 -1
- package/test/fixtures/pfm/links/519.md +0 -1
- package/test/fixtures/pfm/links/520.md +0 -1
- package/test/fixtures/pfm/links/521.md +0 -1
- package/test/fixtures/pfm/links/522.md +0 -1
- package/test/fixtures/pfm/links/523.md +0 -1
- package/test/fixtures/pfm/links/524.md +0 -1
- package/test/fixtures/pfm/links/525.md +0 -1
- package/test/fixtures/pfm/links/526.md +0 -1
- package/test/fixtures/pfm/links/527.md +0 -3
- package/test/fixtures/pfm/links/528.md +0 -3
- package/test/fixtures/pfm/links/529.md +0 -3
- package/test/fixtures/pfm/links/530.md +0 -3
- package/test/fixtures/pfm/links/531.md +0 -3
- package/test/fixtures/pfm/links/532.md +0 -3
- package/test/fixtures/pfm/links/533.md +0 -3
- package/test/fixtures/pfm/links/534.md +0 -3
- package/test/fixtures/pfm/links/535.md +0 -3
- package/test/fixtures/pfm/links/536.md +0 -3
- package/test/fixtures/pfm/links/537.md +0 -3
- package/test/fixtures/pfm/links/538.md +0 -3
- package/test/fixtures/pfm/links/539.md +0 -3
- package/test/fixtures/pfm/links/540.md +0 -3
- package/test/fixtures/pfm/links/541.md +0 -4
- package/test/fixtures/pfm/links/542.md +0 -3
- package/test/fixtures/pfm/links/543.md +0 -4
- package/test/fixtures/pfm/links/544.md +0 -5
- package/test/fixtures/pfm/links/545.md +0 -3
- package/test/fixtures/pfm/links/546.md +0 -3
- package/test/fixtures/pfm/links/547.md +0 -3
- package/test/fixtures/pfm/links/548.md +0 -3
- package/test/fixtures/pfm/links/549.md +0 -3
- package/test/fixtures/pfm/links/550.md +0 -3
- package/test/fixtures/pfm/links/551.md +0 -3
- package/test/fixtures/pfm/links/552.md +0 -5
- package/test/fixtures/pfm/links/553.md +0 -3
- package/test/fixtures/pfm/links/554.md +0 -3
- package/test/fixtures/pfm/links/555.md +0 -3
- package/test/fixtures/pfm/links/556.md +0 -4
- package/test/fixtures/pfm/links/557.md +0 -3
- package/test/fixtures/pfm/links/558.md +0 -3
- package/test/fixtures/pfm/links/559.md +0 -3
- package/test/fixtures/pfm/links/560.md +0 -3
- package/test/fixtures/pfm/links/561.md +0 -3
- package/test/fixtures/pfm/links/562.md +0 -3
- package/test/fixtures/pfm/links/563.md +0 -3
- package/test/fixtures/pfm/links/564.md +0 -3
- package/test/fixtures/pfm/links/565.md +0 -4
- package/test/fixtures/pfm/links/566.md +0 -3
- package/test/fixtures/pfm/links/567.md +0 -3
- package/test/fixtures/pfm/links/568.md +0 -3
- package/test/fixtures/pfm/links/569.md +0 -3
- package/test/fixtures/pfm/links/570.md +0 -4
- package/test/fixtures/pfm/links/571.md +0 -4
- package/test/fixtures/pfm/list_items/253.md +0 -6
- package/test/fixtures/pfm/list_items/254.md +0 -6
- package/test/fixtures/pfm/list_items/255.md +0 -3
- package/test/fixtures/pfm/list_items/256.md +0 -3
- package/test/fixtures/pfm/list_items/257.md +0 -3
- package/test/fixtures/pfm/list_items/258.md +0 -3
- package/test/fixtures/pfm/list_items/259.md +0 -3
- package/test/fixtures/pfm/list_items/260.md +0 -3
- package/test/fixtures/pfm/list_items/261.md +0 -3
- package/test/fixtures/pfm/list_items/262.md +0 -4
- package/test/fixtures/pfm/list_items/263.md +0 -9
- package/test/fixtures/pfm/list_items/264.md +0 -6
- package/test/fixtures/pfm/list_items/265.md +0 -1
- package/test/fixtures/pfm/list_items/266.md +0 -1
- package/test/fixtures/pfm/list_items/267.md +0 -1
- package/test/fixtures/pfm/list_items/268.md +0 -1
- package/test/fixtures/pfm/list_items/269.md +0 -1
- package/test/fixtures/pfm/list_items/270.md +0 -3
- package/test/fixtures/pfm/list_items/271.md +0 -3
- package/test/fixtures/pfm/list_items/272.md +0 -5
- package/test/fixtures/pfm/list_items/273.md +0 -5
- package/test/fixtures/pfm/list_items/274.md +0 -5
- package/test/fixtures/pfm/list_items/275.md +0 -3
- package/test/fixtures/pfm/list_items/276.md +0 -3
- package/test/fixtures/pfm/list_items/277.md +0 -3
- package/test/fixtures/pfm/list_items/278.md +0 -8
- package/test/fixtures/pfm/list_items/279.md +0 -2
- package/test/fixtures/pfm/list_items/280.md +0 -3
- package/test/fixtures/pfm/list_items/281.md +0 -3
- package/test/fixtures/pfm/list_items/282.md +0 -3
- package/test/fixtures/pfm/list_items/283.md +0 -3
- package/test/fixtures/pfm/list_items/284.md +0 -1
- package/test/fixtures/pfm/list_items/285.md +0 -5
- package/test/fixtures/pfm/list_items/286.md +0 -6
- package/test/fixtures/pfm/list_items/287.md +0 -6
- package/test/fixtures/pfm/list_items/288.md +0 -6
- package/test/fixtures/pfm/list_items/289.md +0 -6
- package/test/fixtures/pfm/list_items/290.md +0 -6
- package/test/fixtures/pfm/list_items/291.md +0 -2
- package/test/fixtures/pfm/list_items/292.md +0 -2
- package/test/fixtures/pfm/list_items/293.md +0 -2
- package/test/fixtures/pfm/list_items/294.md +0 -4
- package/test/fixtures/pfm/list_items/295.md +0 -4
- package/test/fixtures/pfm/list_items/296.md +0 -2
- package/test/fixtures/pfm/list_items/297.md +0 -2
- package/test/fixtures/pfm/list_items/298.md +0 -1
- package/test/fixtures/pfm/list_items/299.md +0 -1
- package/test/fixtures/pfm/list_items/300.md +0 -4
- package/test/fixtures/pfm/lists/301.md +0 -3
- package/test/fixtures/pfm/lists/302.md +0 -3
- package/test/fixtures/pfm/lists/303.md +0 -3
- package/test/fixtures/pfm/lists/304.md +0 -2
- package/test/fixtures/pfm/lists/305.md +0 -2
- package/test/fixtures/pfm/lists/306.md +0 -6
- package/test/fixtures/pfm/lists/307.md +0 -6
- package/test/fixtures/pfm/lists/308.md +0 -7
- package/test/fixtures/pfm/lists/309.md +0 -9
- package/test/fixtures/pfm/lists/310.md +0 -7
- package/test/fixtures/pfm/lists/311.md +0 -5
- package/test/fixtures/pfm/lists/312.md +0 -5
- package/test/fixtures/pfm/lists/313.md +0 -5
- package/test/fixtures/pfm/lists/314.md +0 -4
- package/test/fixtures/pfm/lists/315.md +0 -4
- package/test/fixtures/pfm/lists/316.md +0 -5
- package/test/fixtures/pfm/lists/317.md +0 -5
- package/test/fixtures/pfm/lists/318.md +0 -7
- package/test/fixtures/pfm/lists/319.md +0 -5
- package/test/fixtures/pfm/lists/320.md +0 -4
- package/test/fixtures/pfm/lists/321.md +0 -6
- package/test/fixtures/pfm/lists/322.md +0 -1
- package/test/fixtures/pfm/lists/323.md +0 -2
- package/test/fixtures/pfm/lists/324.md +0 -5
- package/test/fixtures/pfm/lists/325.md +0 -4
- package/test/fixtures/pfm/lists/326.md +0 -7
- package/test/fixtures/pfm/paragraphs/219.md +0 -3
- package/test/fixtures/pfm/paragraphs/220.md +0 -5
- package/test/fixtures/pfm/paragraphs/221.md +0 -4
- package/test/fixtures/pfm/paragraphs/222.md +0 -2
- package/test/fixtures/pfm/paragraphs/223.md +0 -3
- package/test/fixtures/pfm/paragraphs/224.md +0 -2
- package/test/fixtures/pfm/paragraphs/225.md +0 -2
- package/test/fixtures/pfm/precedence/42.md +0 -2
- package/test/fixtures/pfm/setext_headings/100.md +0 -2
- package/test/fixtures/pfm/setext_headings/101.md +0 -2
- package/test/fixtures/pfm/setext_headings/102.md +0 -2
- package/test/fixtures/pfm/setext_headings/103.md +0 -5
- package/test/fixtures/pfm/setext_headings/104.md +0 -6
- package/test/fixtures/pfm/setext_headings/105.md +0 -4
- package/test/fixtures/pfm/setext_headings/106.md +0 -4
- package/test/fixtures/pfm/setext_headings/80.md +0 -5
- package/test/fixtures/pfm/setext_headings/81.md +0 -3
- package/test/fixtures/pfm/setext_headings/82.md +0 -3
- package/test/fixtures/pfm/setext_headings/83.md +0 -5
- package/test/fixtures/pfm/setext_headings/84.md +0 -8
- package/test/fixtures/pfm/setext_headings/85.md +0 -5
- package/test/fixtures/pfm/setext_headings/86.md +0 -2
- package/test/fixtures/pfm/setext_headings/87.md +0 -2
- package/test/fixtures/pfm/setext_headings/88.md +0 -5
- package/test/fixtures/pfm/setext_headings/89.md +0 -2
- package/test/fixtures/pfm/setext_headings/90.md +0 -2
- package/test/fixtures/pfm/setext_headings/91.md +0 -7
- package/test/fixtures/pfm/setext_headings/92.md +0 -2
- package/test/fixtures/pfm/setext_headings/93.md +0 -3
- package/test/fixtures/pfm/setext_headings/94.md +0 -2
- package/test/fixtures/pfm/setext_headings/95.md +0 -3
- package/test/fixtures/pfm/setext_headings/96.md +0 -6
- package/test/fixtures/pfm/setext_headings/97.md +0 -2
- package/test/fixtures/pfm/setext_headings/98.md +0 -2
- package/test/fixtures/pfm/setext_headings/99.md +0 -2
- package/test/fixtures/pfm/soft_line_breaks/648.md +0 -2
- package/test/fixtures/pfm/soft_line_breaks/649.md +0 -2
- package/test/fixtures/pfm/tabs/1.md +0 -1
- package/test/fixtures/pfm/tabs/10.md +0 -1
- package/test/fixtures/pfm/tabs/11.md +0 -1
- package/test/fixtures/pfm/tabs/12.md +0 -2
- package/test/fixtures/pfm/tabs/13.md +0 -2
- package/test/fixtures/pfm/tabs/14.md +0 -3
- package/test/fixtures/pfm/tabs/15.md +0 -2
- package/test/fixtures/pfm/tabs/16.md +0 -2
- package/test/fixtures/pfm/tabs/17.md +0 -3
- package/test/fixtures/pfm/tabs/2.md +0 -1
- package/test/fixtures/pfm/tabs/3.md +0 -2
- package/test/fixtures/pfm/tabs/4.md +0 -3
- package/test/fixtures/pfm/tabs/5.md +0 -3
- package/test/fixtures/pfm/tabs/6.md +0 -1
- package/test/fixtures/pfm/tabs/7.md +0 -1
- package/test/fixtures/pfm/tabs/8.md +0 -2
- package/test/fixtures/pfm/tabs/9.md +0 -3
- package/test/fixtures/pfm/textual_content/650.md +0 -1
- package/test/fixtures/pfm/textual_content/651.md +0 -1
- package/test/fixtures/pfm/textual_content/652.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/43.md +0 -3
- package/test/fixtures/pfm/thematic_breaks/44.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/45.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/46.md +0 -3
- package/test/fixtures/pfm/thematic_breaks/47.md +0 -3
- package/test/fixtures/pfm/thematic_breaks/48.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/49.md +0 -2
- package/test/fixtures/pfm/thematic_breaks/50.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/51.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/52.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/53.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/54.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/55.md +0 -5
- package/test/fixtures/pfm/thematic_breaks/56.md +0 -1
- package/test/fixtures/pfm/thematic_breaks/57.md +0 -3
- package/test/fixtures/pfm/thematic_breaks/58.md +0 -3
- package/test/fixtures/pfm/thematic_breaks/59.md +0 -3
- package/test/fixtures/pfm/thematic_breaks/60.md +0 -3
- package/test/fixtures/pfm/thematic_breaks/61.md +0 -2
- package/test/fixtures/svelte/00-introduction/00-hello-world/App.svelte +0 -5
- package/test/fixtures/svelte/00-introduction/01-dynamic-attributes/App.svelte +0 -7
- package/test/fixtures/svelte/00-introduction/02-styling/App.svelte +0 -9
- package/test/fixtures/svelte/00-introduction/03-nested-components/App.svelte +0 -14
- package/test/fixtures/svelte/00-introduction/03-nested-components/Nested.svelte +0 -1
- package/test/fixtures/svelte/00-introduction/04-html-tags/App.svelte +0 -5
- package/test/fixtures/svelte/01-reactivity/00-reactive-assignments/App.svelte +0 -11
- package/test/fixtures/svelte/01-reactivity/01-reactive-declarations/App.svelte +0 -18
- package/test/fixtures/svelte/01-reactivity/02-reactive-statements/App.svelte +0 -16
- package/test/fixtures/svelte/02-props/00-declaring-props/App.svelte +0 -5
- package/test/fixtures/svelte/02-props/00-declaring-props/Nested.svelte +0 -5
- package/test/fixtures/svelte/02-props/01-default-values/App.svelte +0 -6
- package/test/fixtures/svelte/02-props/01-default-values/Nested.svelte +0 -5
- package/test/fixtures/svelte/02-props/02-spread-props/App.svelte +0 -12
- package/test/fixtures/svelte/02-props/02-spread-props/Info.svelte +0 -12
- package/test/fixtures/svelte/03-logic/00-if-blocks/App.svelte +0 -19
- package/test/fixtures/svelte/03-logic/01-else-blocks/App.svelte +0 -17
- package/test/fixtures/svelte/03-logic/02-else-if-blocks/App.svelte +0 -11
- package/test/fixtures/svelte/03-logic/03-each-blocks/App.svelte +0 -17
- package/test/fixtures/svelte/03-logic/04-keyed-each-blocks/App.svelte +0 -35
- package/test/fixtures/svelte/03-logic/04-keyed-each-blocks/Thing.svelte +0 -24
- package/test/fixtures/svelte/04-events/00-dom-events/App.svelte +0 -16
- package/test/fixtures/svelte/04-events/01-inline-handlers/App.svelte +0 -11
- package/test/fixtures/svelte/04-events/02-event-modifiers/App.svelte +0 -9
- package/test/fixtures/svelte/04-events/03-component-events/App.svelte +0 -9
- package/test/fixtures/svelte/04-events/03-component-events/Inner.svelte +0 -15
- package/test/fixtures/svelte/04-events/04-event-forwarding/App.svelte +0 -9
- package/test/fixtures/svelte/04-events/04-event-forwarding/Inner.svelte +0 -15
- package/test/fixtures/svelte/04-events/04-event-forwarding/Outer.svelte +0 -5
- package/test/fixtures/svelte/04-events/05-dom-event-forwarding/App.svelte +0 -9
- package/test/fixtures/svelte/04-events/05-dom-event-forwarding/FancyButton.svelte +0 -15
- package/test/fixtures/svelte/05-bindings/00-text-inputs/App.svelte +0 -6
- package/test/fixtures/svelte/05-bindings/01-numeric-inputs/App.svelte +0 -16
- package/test/fixtures/svelte/05-bindings/02-checkbox-inputs/App.svelte +0 -18
- package/test/fixtures/svelte/05-bindings/03-group-inputs/App.svelte +0 -48
- package/test/fixtures/svelte/05-bindings/04-textarea-inputs/App.svelte +0 -12
- package/test/fixtures/svelte/05-bindings/05-select-bindings/App.svelte +0 -42
- package/test/fixtures/svelte/05-bindings/06-multiple-select-bindings/App.svelte +0 -49
- package/test/fixtures/svelte/05-bindings/07-each-block-bindings/App.svelte +0 -49
- package/test/fixtures/svelte/05-bindings/08-media-elements/App.svelte +0 -136
- package/test/fixtures/svelte/05-bindings/09-dimensions/App.svelte +0 -20
- package/test/fixtures/svelte/05-bindings/10-bind-this/App.svelte +0 -55
- package/test/fixtures/svelte/05-bindings/11-component-bindings/App.svelte +0 -14
- package/test/fixtures/svelte/05-bindings/11-component-bindings/Keypad.svelte +0 -40
- package/test/fixtures/svelte/06-lifecycle/00-onmount/App.svelte +0 -40
- package/test/fixtures/svelte/06-lifecycle/01-ondestroy/App.svelte +0 -11
- package/test/fixtures/svelte/06-lifecycle/02-update/App.svelte +0 -112
- package/test/fixtures/svelte/06-lifecycle/03-tick/App.svelte +0 -34
- package/test/fixtures/svelte/07-stores/00-writable-stores/App.svelte +0 -18
- package/test/fixtures/svelte/07-stores/00-writable-stores/Decrementer.svelte +0 -11
- package/test/fixtures/svelte/07-stores/00-writable-stores/Incrementer.svelte +0 -11
- package/test/fixtures/svelte/07-stores/00-writable-stores/Resetter.svelte +0 -11
- package/test/fixtures/svelte/07-stores/01-auto-subscriptions/App.svelte +0 -12
- package/test/fixtures/svelte/07-stores/01-auto-subscriptions/Decrementer.svelte +0 -11
- package/test/fixtures/svelte/07-stores/01-auto-subscriptions/Incrementer.svelte +0 -11
- package/test/fixtures/svelte/07-stores/01-auto-subscriptions/Resetter.svelte +0 -11
- package/test/fixtures/svelte/07-stores/02-readable-stores/App.svelte +0 -12
- package/test/fixtures/svelte/07-stores/03-derived-stores/App.svelte +0 -17
- package/test/fixtures/svelte/07-stores/04-custom-stores/App.svelte +0 -9
- package/test/fixtures/svelte/08-motion/00-tweened/App.svelte +0 -38
- package/test/fixtures/svelte/08-motion/01-spring/App.svelte +0 -38
- package/test/fixtures/svelte/09-transitions/00-transition/App.svelte +0 -15
- package/test/fixtures/svelte/09-transitions/01-adding-parameters-to-transitions/App.svelte +0 -15
- package/test/fixtures/svelte/09-transitions/02-in-and-out/App.svelte +0 -15
- package/test/fixtures/svelte/09-transitions/03-custom-css-transitions/App.svelte +0 -49
- package/test/fixtures/svelte/09-transitions/04-custom-js-transitions/App.svelte +0 -36
- package/test/fixtures/svelte/09-transitions/05-transition-events/App.svelte +0 -25
- package/test/fixtures/svelte/10-animations/00-animate/App.svelte +0 -147
- package/test/fixtures/svelte/11-easing/00-easing/App.svelte +0 -106
- package/test/fixtures/svelte/11-easing/00-easing/Controls.svelte +0 -186
- package/test/fixtures/svelte/11-easing/00-easing/Grid.svelte +0 -62
- package/test/fixtures/svelte/12-svg/01-clock/App.svelte +0 -104
- package/test/fixtures/svelte/12-svg/02-bar-chart/App.svelte +0 -118
- package/test/fixtures/svelte/12-svg/03-area-chart/App.svelte +0 -111
- package/test/fixtures/svelte/12-svg/04-scatterplot/App.svelte +0 -24
- package/test/fixtures/svelte/12-svg/04-scatterplot/Scatterplot.svelte +0 -91
- package/test/fixtures/svelte/12-svg/05-svg-transitions/App.svelte +0 -74
- package/test/fixtures/svelte/13-actions/00-actions/App.svelte +0 -54
- package/test/fixtures/svelte/13-actions/01-adding-parameters-to-actions/App.svelte +0 -70
- package/test/fixtures/svelte/14-classes/00-classes/App.svelte +0 -29
- package/test/fixtures/svelte/14-classes/01-class-shorthand/App.svelte +0 -18
- package/test/fixtures/svelte/15-composition/00-slots/App.svelte +0 -8
- package/test/fixtures/svelte/15-composition/00-slots/Box.svelte +0 -14
- package/test/fixtures/svelte/15-composition/01-slot-fallbacks/App.svelte +0 -10
- package/test/fixtures/svelte/15-composition/01-slot-fallbacks/Box.svelte +0 -16
- package/test/fixtures/svelte/15-composition/02-named-slots/App.svelte +0 -14
- package/test/fixtures/svelte/15-composition/02-named-slots/ContactCard.svelte +0 -47
- package/test/fixtures/svelte/15-composition/03-slot-props/App.svelte +0 -46
- package/test/fixtures/svelte/15-composition/03-slot-props/Hoverable.svelte +0 -15
- package/test/fixtures/svelte/15-composition/04-modal/App.svelte +0 -35
- package/test/fixtures/svelte/15-composition/04-modal/Modal.svelte +0 -45
- package/test/fixtures/svelte/16-context/00-context-api/App.svelte +0 -13
- package/test/fixtures/svelte/16-context/00-context-api/Map.svelte +0 -50
- package/test/fixtures/svelte/16-context/00-context-api/MapMarker.svelte +0 -18
- package/test/fixtures/svelte/17-special-elements/00-svelte-self/App.svelte +0 -39
- package/test/fixtures/svelte/17-special-elements/00-svelte-self/File.svelte +0 -14
- package/test/fixtures/svelte/17-special-elements/00-svelte-self/Folder.svelte +0 -52
- package/test/fixtures/svelte/17-special-elements/01-svelte-component/App.svelte +0 -21
- package/test/fixtures/svelte/17-special-elements/01-svelte-component/BlueThing.svelte +0 -5
- package/test/fixtures/svelte/17-special-elements/01-svelte-component/GreenThing.svelte +0 -5
- package/test/fixtures/svelte/17-special-elements/01-svelte-component/RedThing.svelte +0 -5
- package/test/fixtures/svelte/17-special-elements/02-svelte-window/App.svelte +0 -42
- package/test/fixtures/svelte/17-special-elements/03-svelte-window-bindings/App.svelte +0 -88
- package/test/fixtures/svelte/17-special-elements/04-svelte-body/App.svelte +0 -34
- package/test/fixtures/svelte/17-special-elements/05-svelte-head/App.svelte +0 -5
- package/test/fixtures/svelte/18-module-context/01-module-exports/App.svelte +0 -47
- package/test/fixtures/svelte/18-module-context/01-module-exports/AudioPlayer.svelte +0 -52
- package/test/fixtures/svelte/19-debugging/00-debug/App.svelte +0 -18
- package/test/fixtures/svelte/19-debugging/00-debug/Test.svelte +0 -250
- package/test/fixtures/svelte/20-7guis/01-7guis-counter/App.svelte +0 -7
- package/test/fixtures/svelte/20-7guis/02-7guis-temperature/App.svelte +0 -24
- package/test/fixtures/svelte/20-7guis/03-7guis-flight-booker/App.svelte +0 -59
- package/test/fixtures/svelte/20-7guis/04-7guis-timer/App.svelte +0 -38
- package/test/fixtures/svelte/20-7guis/05-7guis-crud/App.svelte +0 -97
- package/test/fixtures/svelte/20-7guis/06-7guis-circles/App.svelte +0 -125
- package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/App.svelte +0 -59
- package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/Comment.svelte +0 -32
- package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/Item.svelte +0 -39
- package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/List.svelte +0 -46
- package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/Summary.svelte +0 -38
- package/test/fixtures/svelte/21-miscellaneous/02-immutable-data/App.svelte +0 -38
- package/test/fixtures/svelte/21-miscellaneous/02-immutable-data/ImmutableTodo.svelte +0 -28
- package/test/fixtures/svelte/21-miscellaneous/02-immutable-data/MutableTodo.svelte +0 -26
- package/test/fixtures/svelte/22-bugs/CSS/App.svelte +0 -45
- package/test/fixtures/svelte/99-embeds/20181225-blog-svelte-css-in-js/App.svelte +0 -10
- package/test/fixtures/svelte/99-embeds/20181225-blog-svelte-css-in-js/Hero.svelte +0 -15
- package/test/fixtures/svelte/99-embeds/20190420-blog-write-less-code/App.svelte +0 -9
- package/test/frontmatter.spec.ts +0 -133
- package/test/html.spec.ts +0 -829
- package/test/html_block_containers.spec.ts +0 -445
- package/test/images.spec.ts +0 -106
- package/test/imports.spec.ts +0 -166
- package/test/incremental.spec.ts +0 -750
- package/test/line_breaks.spec.ts +0 -166
- package/test/link_reference_definitions.spec.ts +0 -422
- package/test/links.spec.ts +0 -234
- package/test/lists.spec.ts +0 -694
- package/test/opcodes.spec.ts +0 -325
- package/test/paragraphs.spec.ts +0 -211
- package/test/parser_reuse.spec.ts +0 -40
- package/test/plugins.spec.ts +0 -879
- package/test/print.ts +0 -108
- package/test/run_bytecode.spec.ts +0 -36
- package/test/snapshots/hybrid/code-escaping.snap.ast +0 -13
- package/test/snapshots/hybrid/code-highlight-nesting.snap.ast +0 -2
- package/test/snapshots/hybrid/component-children.snap.ast +0 -37
- package/test/snapshots/hybrid/component-simple-00.snap.ast +0 -18
- package/test/snapshots/hybrid/component-simple-01.snap.ast +0 -15
- package/test/snapshots/hybrid/component-simple-02.snap.ast +0 -3
- package/test/snapshots/hybrid/component-simple-03.snap.ast +0 -16
- package/test/snapshots/hybrid/component-simple-04.snap.ast +0 -23
- package/test/snapshots/hybrid/dollar-one-in-frontmatter.snap.ast +0 -3
- package/test/snapshots/hybrid/error.snap.ast +0 -24
- package/test/snapshots/hybrid/link-curlies.snap.ast +0 -56
- package/test/snapshots/hybrid/tags-in-frontmatter.snap.ast +0 -2
- package/test/snapshots/markdown/anchors-by-reference.snap.ast +0 -28
- package/test/snapshots/markdown/anchors-followed-by-brakets.snap.ast +0 -28
- package/test/snapshots/markdown/automatic-anchors.snap.ast +0 -6
- package/test/snapshots/markdown/blockquote-followed-by-code.snap.ast +0 -19
- package/test/snapshots/markdown/blockquote-inside-code.snap.ast +0 -8
- package/test/snapshots/markdown/blockquote-nested-markdown.snap.ast +0 -16
- package/test/snapshots/markdown/blockquote.snap.ast +0 -9
- package/test/snapshots/markdown/code-block-html-escape.snap.ast +0 -7
- package/test/snapshots/markdown/code-block-with-special-chars.snap.ast +0 -2
- package/test/snapshots/markdown/code-block.snap.ast +0 -7
- package/test/snapshots/markdown/double-emphasis.snap.ast +0 -32
- package/test/snapshots/markdown/doubline-list.snap.ast +0 -10
- package/test/snapshots/markdown/ellipsis.snap.ast +0 -41
- package/test/snapshots/markdown/emphasis-inside-inline-code.snap.ast +0 -5
- package/test/snapshots/markdown/emphasis.snap.ast +0 -296
- package/test/snapshots/markdown/encodeHTMLCodeTags.snap.ast +0 -18
- package/test/snapshots/markdown/escaped-html-taglikes.snap.ast +0 -21
- package/test/snapshots/markdown/escaped-number-period.snap.ast +0 -5
- package/test/snapshots/markdown/escaping.snap.ast +0 -65
- package/test/snapshots/markdown/github-style-at-start.snap.ast +0 -7
- package/test/snapshots/markdown/github-style-codeblock-inside-quote.snap.ast +0 -13
- package/test/snapshots/markdown/github-style-codeblock.snap.ast +0 -38
- package/test/snapshots/markdown/github-style-linebreaks.snap.ast +0 -2
- package/test/snapshots/markdown/h1-with-double-hash.snap.ast +0 -4
- package/test/snapshots/markdown/h1-with-equals.snap.ast +0 -6
- package/test/snapshots/markdown/h1-with-single-hash.snap.ast +0 -4
- package/test/snapshots/markdown/h2-with-dashes.snap.ast +0 -5
- package/test/snapshots/markdown/h2-with-double-hash.snap.ast +0 -4
- package/test/snapshots/markdown/h2-with-single-hash.snap.ast +0 -4
- package/test/snapshots/markdown/h3-with-double-hash.snap.ast +0 -4
- package/test/snapshots/markdown/h3-with-single-hash.snap.ast +0 -4
- package/test/snapshots/markdown/h4-with-single-hash.snap.ast +0 -4
- package/test/snapshots/markdown/h5-with-single-hash.snap.ast +0 -4
- package/test/snapshots/markdown/h6-with-single-hash.snap.ast +0 -4
- package/test/snapshots/markdown/horizontal-rules.snap.ast +0 -11
- package/test/snapshots/markdown/html-comments.snap.ast +0 -19
- package/test/snapshots/markdown/html-inside-listed-code.snap.ast +0 -6
- package/test/snapshots/markdown/html5-strutural-tags.snap.ast +0 -132
- package/test/snapshots/markdown/images-followed-by-brackets.snap.ast +0 -12
- package/test/snapshots/markdown/images.snap.ast +0 -35
- package/test/snapshots/markdown/implicit-anchors.snap.ast +0 -22
- package/test/snapshots/markdown/inline-anchors.snap.ast +0 -13
- package/test/snapshots/markdown/inline-code.snap.ast +0 -41
- package/test/snapshots/markdown/inline-escaped-chars.snap.ast +0 -10
- package/test/snapshots/markdown/inline-style-tag.snap.ast +0 -7
- package/test/snapshots/markdown/lazy-blockquote.snap.ast +0 -10
- package/test/snapshots/markdown/line-starts-with-html.snap.ast +0 -11
- package/test/snapshots/markdown/list-followed-by-blockquote.snap.ast +0 -23
- package/test/snapshots/markdown/list-followed-by-ghcode.snap.ast +0 -20
- package/test/snapshots/markdown/list-with-blockquote.snap.ast +0 -11
- package/test/snapshots/markdown/literal-html-tags.snap.ast +0 -44
- package/test/snapshots/markdown/multi-paragraph-list.snap.ast +0 -14
- package/test/snapshots/markdown/multiline-unordered-list.snap.ast +0 -9
- package/test/snapshots/markdown/nested-blockquote.snap.ast +0 -13
- package/test/snapshots/markdown/nested-gh-codeblocks.snap.ast +0 -6
- package/test/snapshots/markdown/obfuscated-emails.snap.ast +0 -1
- package/test/snapshots/markdown/ordered-list-same-number.snap.ast +0 -9
- package/test/snapshots/markdown/ordered-list-starting-number.snap.ast +0 -22
- package/test/snapshots/markdown/ordered-list-wrong-numbers.snap.ast +0 -9
- package/test/snapshots/markdown/ordered-list.snap.ast +0 -9
- package/test/snapshots/markdown/paragraphed-list-with-sublists.snap.ast +0 -26
- package/test/snapshots/markdown/pre-code-tags-inside-code-block.snap.ast +0 -6
- package/test/snapshots/markdown/pre-code-tags.snap.ast +0 -32
- package/test/snapshots/markdown/relative-anchors.snap.ast +0 -7
- package/test/snapshots/markdown/repeated-headers.snap.ast +0 -12
- package/test/snapshots/markdown/simple-paragraph.snap.ast +0 -5
- package/test/snapshots/markdown/strip-references.snap.ast +0 -9
- package/test/snapshots/markdown/strong.snap.ast +0 -17
- package/test/snapshots/markdown/unordered-list-asterisk.snap.ast +0 -9
- package/test/snapshots/markdown/unordered-list-minus.snap.ast +0 -9
- package/test/snapshots/markdown/unordered-list-plus.snap.ast +0 -9
- package/test/snapshots/markdown/url-with-parenthesis.snap.ast +0 -7
- package/test/snapshots/pfm/atx_headings/62.snap.ast +0 -19
- package/test/snapshots/pfm/atx_headings/63.snap.ast +0 -4
- package/test/snapshots/pfm/atx_headings/64.snap.ast +0 -8
- package/test/snapshots/pfm/atx_headings/65.snap.ast +0 -4
- package/test/snapshots/pfm/atx_headings/66.snap.ast +0 -9
- package/test/snapshots/pfm/atx_headings/67.snap.ast +0 -4
- package/test/snapshots/pfm/atx_headings/68.snap.ast +0 -10
- package/test/snapshots/pfm/atx_headings/69.snap.ast +0 -4
- package/test/snapshots/pfm/atx_headings/70.snap.ast +0 -7
- package/test/snapshots/pfm/atx_headings/71.snap.ast +0 -7
- package/test/snapshots/pfm/atx_headings/72.snap.ast +0 -7
- package/test/snapshots/pfm/atx_headings/73.snap.ast +0 -4
- package/test/snapshots/pfm/atx_headings/74.snap.ast +0 -4
- package/test/snapshots/pfm/atx_headings/75.snap.ast +0 -4
- package/test/snapshots/pfm/atx_headings/76.snap.ast +0 -13
- package/test/snapshots/pfm/atx_headings/77.snap.ast +0 -6
- package/test/snapshots/pfm/atx_headings/78.snap.ast +0 -10
- package/test/snapshots/pfm/atx_headings/79.snap.ast +0 -8
- package/test/snapshots/pfm/autolinks/594.snap.ast +0 -5
- package/test/snapshots/pfm/autolinks/595.snap.ast +0 -5
- package/test/snapshots/pfm/autolinks/596.snap.ast +0 -5
- package/test/snapshots/pfm/autolinks/597.snap.ast +0 -5
- package/test/snapshots/pfm/autolinks/598.snap.ast +0 -5
- package/test/snapshots/pfm/autolinks/599.snap.ast +0 -5
- package/test/snapshots/pfm/autolinks/600.snap.ast +0 -5
- package/test/snapshots/pfm/autolinks/601.snap.ast +0 -5
- package/test/snapshots/pfm/autolinks/602.snap.ast +0 -4
- package/test/snapshots/pfm/autolinks/603.snap.ast +0 -5
- package/test/snapshots/pfm/autolinks/604.snap.ast +0 -4
- package/test/snapshots/pfm/autolinks/605.snap.ast +0 -4
- package/test/snapshots/pfm/autolinks/606.snap.ast +0 -4
- package/test/snapshots/pfm/autolinks/607.snap.ast +0 -4
- package/test/snapshots/pfm/autolinks/608.snap.ast +0 -4
- package/test/snapshots/pfm/autolinks/609.snap.ast +0 -4
- package/test/snapshots/pfm/autolinks/610.snap.ast +0 -4
- package/test/snapshots/pfm/autolinks/611.snap.ast +0 -4
- package/test/snapshots/pfm/autolinks/612.snap.ast +0 -4
- package/test/snapshots/pfm/backslash_escapes/12.snap.ast +0 -35
- package/test/snapshots/pfm/backslash_escapes/13.snap.ast +0 -4
- package/test/snapshots/pfm/backslash_escapes/14.snap.ast +0 -25
- package/test/snapshots/pfm/backslash_escapes/15.snap.ast +0 -6
- package/test/snapshots/pfm/backslash_escapes/16.snap.ast +0 -6
- package/test/snapshots/pfm/backslash_escapes/17.snap.ast +0 -4
- package/test/snapshots/pfm/backslash_escapes/18.snap.ast +0 -5
- package/test/snapshots/pfm/backslash_escapes/19.snap.ast +0 -10
- package/test/snapshots/pfm/backslash_escapes/20.snap.ast +0 -5
- package/test/snapshots/pfm/backslash_escapes/21.snap.ast +0 -4
- package/test/snapshots/pfm/backslash_escapes/22.snap.ast +0 -5
- package/test/snapshots/pfm/backslash_escapes/23.snap.ast +0 -6
- package/test/snapshots/pfm/backslash_escapes/24.snap.ast +0 -2
- package/test/snapshots/pfm/blank_lines/227.snap.ast +0 -13
- package/test/snapshots/pfm/block_quotes/228.snap.ast +0 -9
- package/test/snapshots/pfm/block_quotes/229.snap.ast +0 -9
- package/test/snapshots/pfm/block_quotes/230.snap.ast +0 -9
- package/test/snapshots/pfm/block_quotes/231.snap.ast +0 -9
- package/test/snapshots/pfm/block_quotes/232.snap.ast +0 -10
- package/test/snapshots/pfm/block_quotes/233.snap.ast +0 -12
- package/test/snapshots/pfm/block_quotes/234.snap.ast +0 -6
- package/test/snapshots/pfm/block_quotes/235.snap.ast +0 -10
- package/test/snapshots/pfm/block_quotes/236.snap.ast +0 -8
- package/test/snapshots/pfm/block_quotes/237.snap.ast +0 -9
- package/test/snapshots/pfm/block_quotes/238.snap.ast +0 -9
- package/test/snapshots/pfm/block_quotes/239.snap.ast +0 -3
- package/test/snapshots/pfm/block_quotes/240.snap.ast +0 -5
- package/test/snapshots/pfm/block_quotes/241.snap.ast +0 -6
- package/test/snapshots/pfm/block_quotes/242.snap.ast +0 -10
- package/test/snapshots/pfm/block_quotes/243.snap.ast +0 -7
- package/test/snapshots/pfm/block_quotes/244.snap.ast +0 -8
- package/test/snapshots/pfm/block_quotes/245.snap.ast +0 -8
- package/test/snapshots/pfm/block_quotes/246.snap.ast +0 -10
- package/test/snapshots/pfm/block_quotes/247.snap.ast +0 -8
- package/test/snapshots/pfm/block_quotes/248.snap.ast +0 -9
- package/test/snapshots/pfm/block_quotes/249.snap.ast +0 -9
- package/test/snapshots/pfm/block_quotes/250.snap.ast +0 -10
- package/test/snapshots/pfm/block_quotes/251.snap.ast +0 -12
- package/test/snapshots/pfm/block_quotes/252.snap.ast +0 -10
- package/test/snapshots/pfm/block_quotes/pfm_fence_close.snap.ast +0 -6
- package/test/snapshots/pfm/block_quotes/pfm_fence_close_compact.snap.ast +0 -6
- package/test/snapshots/pfm/block_quotes/pfm_fence_close_end_quote.snap.ast +0 -8
- package/test/snapshots/pfm/block_quotes/pfm_fence_close_info.snap.ast +0 -4
- package/test/snapshots/pfm/block_quotes/pfm_fence_close_longer.snap.ast +0 -6
- package/test/snapshots/pfm/block_quotes/pfm_fence_close_nested.snap.ast +0 -5
- package/test/snapshots/pfm/block_quotes/pfm_fence_close_twice.snap.ast +0 -5
- package/test/snapshots/pfm/block_quotes/pfm_fence_info_eof.snap.ast +0 -3
- package/test/snapshots/pfm/block_quotes/pfm_fence_unclosed.snap.ast +0 -3
- package/test/snapshots/pfm/code_spans/328.snap.ast +0 -3
- package/test/snapshots/pfm/code_spans/329.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/330.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/331.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/332.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/333.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/334.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/335.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/336.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/337.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/338.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/339.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/340.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/341.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/342.snap.ast +0 -7
- package/test/snapshots/pfm/code_spans/343.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/344.snap.ast +0 -5
- package/test/snapshots/pfm/code_spans/345.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/346.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/347.snap.ast +0 -2
- package/test/snapshots/pfm/code_spans/348.snap.ast +0 -5
- package/test/snapshots/pfm/code_spans/349.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/pfm_328_1.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/pfm_328_2.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/pfm_328_3.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/pfm_328_4.snap.ast +0 -4
- package/test/snapshots/pfm/code_spans/pfm_328_5.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/pfm_328_6.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/pfm_328_7.snap.ast +0 -6
- package/test/snapshots/pfm/code_spans/pfm_328_8.snap.ast +0 -8
- package/test/snapshots/pfm/code_spans/pfm_328_9.snap.ast +0 -10
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/350.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/351.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/352.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/353.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/354.snap.ast +0 -18
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/355.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/356.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/357.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/358.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/359.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/360.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/361.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/362.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/363.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/364.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/365.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/366.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/367.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/368.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/369.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/370.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/371.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/372.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/373.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/374.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/375.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/376.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/377.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/378.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/379.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/380.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/381.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/382.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/383.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/384.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/385.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/386.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/387.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/388.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/389.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/390.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/391.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/392.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/393.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/394.snap.ast +0 -12
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/395.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/396.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/397.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/398.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/399.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/400.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/401.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/402.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/403.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/404.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/405.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/406.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/407.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/408.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/409.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/410.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/411.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/412.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/413.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/414.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/415.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/416.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/417.snap.ast +0 -15
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/418.snap.ast +0 -11
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/419.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/420.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/421.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/422.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/423.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/424.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/425.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/426.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/427.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/428.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/429.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/430.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/431.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/432.snap.ast +0 -12
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/433.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/434.snap.ast +0 -4
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/435.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/436.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/437.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/438.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/439.snap.ast +0 -9
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/440.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/441.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/442.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/443.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/444.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/445.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/446.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/447.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/448.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/449.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/450.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/451.snap.ast +0 -9
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/452.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/453.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/454.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/455.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/456.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/457.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/458.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/459.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/460.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/461.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/462.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/463.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/464.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/465.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/466.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/467.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/468.snap.ast +0 -12
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/469.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/470.snap.ast +0 -10
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/471.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/472.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/473.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/474.snap.ast +0 -8
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/475.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/476.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/477.snap.ast +0 -5
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/478.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/479.snap.ast +0 -6
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/480.snap.ast +0 -7
- package/test/snapshots/pfm/emphasis_and_strong_emphasis/481.snap.ast +0 -7
- package/test/snapshots/pfm/fenced_code_blocks/119.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/121.snap.ast +0 -4
- package/test/snapshots/pfm/fenced_code_blocks/122.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/124.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/126.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/127.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/128.snap.ast +0 -11
- package/test/snapshots/pfm/fenced_code_blocks/130.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/131.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/132.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/133.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/134.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/135.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/136.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/137.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/138.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/140.snap.ast +0 -8
- package/test/snapshots/pfm/fenced_code_blocks/142.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/144.snap.ast +0 -3
- package/test/snapshots/pfm/fenced_code_blocks/145.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/pfm_119_2.snap.ast +0 -6
- package/test/snapshots/pfm/fenced_code_blocks/pfm_119_3.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/pfm_info_eof.snap.ast +0 -2
- package/test/snapshots/pfm/fenced_code_blocks/pfm_info_eof_no_lf.snap.ast +0 -2
- package/test/snapshots/pfm/frontmatter/1.snap.ast +0 -6
- package/test/snapshots/pfm/frontmatter/10.snap.ast +0 -4
- package/test/snapshots/pfm/frontmatter/2.snap.ast +0 -2
- package/test/snapshots/pfm/frontmatter/3.snap.ast +0 -2
- package/test/snapshots/pfm/frontmatter/4.snap.ast +0 -2
- package/test/snapshots/pfm/frontmatter/5.snap.ast +0 -7
- package/test/snapshots/pfm/frontmatter/6.snap.ast +0 -9
- package/test/snapshots/pfm/frontmatter/7.snap.ast +0 -2
- package/test/snapshots/pfm/frontmatter/8.snap.ast +0 -6
- package/test/snapshots/pfm/frontmatter/9.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/001.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/002.snap.ast +0 -4
- package/test/snapshots/pfm/generic_directives/003.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/004.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/005.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/006.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/007.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/008.snap.ast +0 -4
- package/test/snapshots/pfm/generic_directives/009.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/010.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/011.snap.ast +0 -4
- package/test/snapshots/pfm/generic_directives/012.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/013.snap.ast +0 -2
- package/test/snapshots/pfm/generic_directives/014.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/015.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/016.snap.ast +0 -4
- package/test/snapshots/pfm/generic_directives/017.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/018.snap.ast +0 -4
- package/test/snapshots/pfm/generic_directives/019.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/020.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/021.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/022.snap.ast +0 -9
- package/test/snapshots/pfm/generic_directives/023.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/024.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/025.snap.ast +0 -2
- package/test/snapshots/pfm/generic_directives/026.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/027.snap.ast +0 -10
- package/test/snapshots/pfm/generic_directives/028.snap.ast +0 -3
- package/test/snapshots/pfm/generic_directives/029.snap.ast +0 -12
- package/test/snapshots/pfm/generic_directives/030.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/031.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/032.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/033.snap.ast +0 -3
- package/test/snapshots/pfm/generic_directives/034.snap.ast +0 -10
- package/test/snapshots/pfm/generic_directives/035.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/036.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/037.snap.ast +0 -10
- package/test/snapshots/pfm/generic_directives/038.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/039.snap.ast +0 -11
- package/test/snapshots/pfm/generic_directives/040.snap.ast +0 -17
- package/test/snapshots/pfm/generic_directives/041.snap.ast +0 -4
- package/test/snapshots/pfm/generic_directives/042.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/043.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/044.snap.ast +0 -4
- package/test/snapshots/pfm/generic_directives/045.snap.ast +0 -2
- package/test/snapshots/pfm/generic_directives/046.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/047.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/048.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/049.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/050.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/051.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/052.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/053.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/054.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/055.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/056.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/057.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/058.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/059.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/060.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/061.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/062.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/063.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/064.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/065.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/066.snap.ast +0 -9
- package/test/snapshots/pfm/generic_directives/067.snap.ast +0 -16
- package/test/snapshots/pfm/generic_directives/068.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/069.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/070.snap.ast +0 -9
- package/test/snapshots/pfm/generic_directives/071.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/072.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/073.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/074.snap.ast +0 -10
- package/test/snapshots/pfm/generic_directives/075.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/076.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/077.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/078.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/079.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/080.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/081.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/082.snap.ast +0 -11
- package/test/snapshots/pfm/generic_directives/083.snap.ast +0 -9
- package/test/snapshots/pfm/generic_directives/084.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/085.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/086.snap.ast +0 -4
- package/test/snapshots/pfm/generic_directives/087.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/088.snap.ast +0 -10
- package/test/snapshots/pfm/generic_directives/089.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/090.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/091.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/092.snap.ast +0 -16
- package/test/snapshots/pfm/generic_directives/093.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/094.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/095.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/096.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/097.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/098.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/099.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/100.snap.ast +0 -9
- package/test/snapshots/pfm/generic_directives/101.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/102.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/103.snap.ast +0 -13
- package/test/snapshots/pfm/generic_directives/104.snap.ast +0 -6
- package/test/snapshots/pfm/generic_directives/105.snap.ast +0 -8
- package/test/snapshots/pfm/generic_directives/106.snap.ast +0 -9
- package/test/snapshots/pfm/generic_directives/107.snap.ast +0 -9
- package/test/snapshots/pfm/generic_directives/108.snap.ast +0 -5
- package/test/snapshots/pfm/generic_directives/109.snap.ast +0 -4
- package/test/snapshots/pfm/generic_directives/110.snap.ast +0 -10
- package/test/snapshots/pfm/generic_directives/111.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/112.snap.ast +0 -18
- package/test/snapshots/pfm/generic_directives/113.snap.ast +0 -7
- package/test/snapshots/pfm/generic_directives/114.snap.ast +0 -12
- package/test/snapshots/pfm/generic_directives/115.snap.ast +0 -10
- package/test/snapshots/pfm/generic_directives/116.snap.ast +0 -13
- package/test/snapshots/pfm/generic_directives/117.snap.ast +0 -9
- package/test/snapshots/pfm/generic_directives/118.snap.ast +0 -10
- package/test/snapshots/pfm/generic_directives/119.snap.ast +0 -9
- package/test/snapshots/pfm/generic_directives/120.snap.ast +0 -12
- package/test/snapshots/pfm/generic_directives/121.snap.ast +0 -3
- package/test/snapshots/pfm/generic_directives/122.snap.ast +0 -3
- package/test/snapshots/pfm/generic_directives/123.snap.ast +0 -3
- package/test/snapshots/pfm/hard_line_breaks/633.snap.ast +0 -6
- package/test/snapshots/pfm/hard_line_breaks/634.snap.ast +0 -6
- package/test/snapshots/pfm/hard_line_breaks/635.snap.ast +0 -6
- package/test/snapshots/pfm/hard_line_breaks/636.snap.ast +0 -6
- package/test/snapshots/pfm/hard_line_breaks/637.snap.ast +0 -6
- package/test/snapshots/pfm/hard_line_breaks/638.snap.ast +0 -7
- package/test/snapshots/pfm/hard_line_breaks/639.snap.ast +0 -7
- package/test/snapshots/pfm/hard_line_breaks/640.snap.ast +0 -4
- package/test/snapshots/pfm/hard_line_breaks/641.snap.ast +0 -4
- package/test/snapshots/pfm/hard_line_breaks/642.snap.ast +0 -4
- package/test/snapshots/pfm/hard_line_breaks/643.snap.ast +0 -4
- package/test/snapshots/pfm/hard_line_breaks/644.snap.ast +0 -4
- package/test/snapshots/pfm/hard_line_breaks/645.snap.ast +0 -4
- package/test/snapshots/pfm/hard_line_breaks/646.snap.ast +0 -4
- package/test/snapshots/pfm/hard_line_breaks/647.snap.ast +0 -4
- package/test/snapshots/pfm/html/148.snap.ast +0 -21
- package/test/snapshots/pfm/html/149.snap.ast +0 -17
- package/test/snapshots/pfm/html/150.snap.ast +0 -11
- package/test/snapshots/pfm/html/151.snap.ast +0 -7
- package/test/snapshots/pfm/html/152.snap.ast +0 -10
- package/test/snapshots/pfm/html/153.snap.ast +0 -4
- package/test/snapshots/pfm/html/154.snap.ast +0 -4
- package/test/snapshots/pfm/html/155.snap.ast +0 -13
- package/test/snapshots/pfm/html/156.snap.ast +0 -7
- package/test/snapshots/pfm/html/157.snap.ast +0 -6
- package/test/snapshots/pfm/html/158.snap.ast +0 -10
- package/test/snapshots/pfm/html/159.snap.ast +0 -6
- package/test/snapshots/pfm/html/160.snap.ast +0 -9
- package/test/snapshots/pfm/html/161.snap.ast +0 -4
- package/test/snapshots/pfm/html/162.snap.ast +0 -7
- package/test/snapshots/pfm/html/163.snap.ast +0 -8
- package/test/snapshots/pfm/html/164.snap.ast +0 -7
- package/test/snapshots/pfm/html/165.snap.ast +0 -7
- package/test/snapshots/pfm/html/166.snap.ast +0 -8
- package/test/snapshots/pfm/html/167.snap.ast +0 -10
- package/test/snapshots/pfm/html/168.snap.ast +0 -5
- package/test/snapshots/pfm/html/169.snap.ast +0 -15
- package/test/snapshots/pfm/html/170.snap.ast +0 -6
- package/test/snapshots/pfm/html/171.snap.ast +0 -15
- package/test/snapshots/pfm/html/172.snap.ast +0 -6
- package/test/snapshots/pfm/html/173.snap.ast +0 -2
- package/test/snapshots/pfm/html/174.snap.ast +0 -11
- package/test/snapshots/pfm/html/175.snap.ast +0 -7
- package/test/snapshots/pfm/html/176.snap.ast +0 -7
- package/test/snapshots/pfm/html/177.snap.ast +0 -9
- package/test/snapshots/pfm/html/178.snap.ast +0 -7
- package/test/snapshots/pfm/html/179.snap.ast +0 -6
- package/test/snapshots/pfm/html/180.snap.ast +0 -14
- package/test/snapshots/pfm/html/181.snap.ast +0 -5
- package/test/snapshots/pfm/html/182.snap.ast +0 -16
- package/test/snapshots/pfm/html/183.snap.ast +0 -6
- package/test/snapshots/pfm/html/184.snap.ast +0 -8
- package/test/snapshots/pfm/html/185.snap.ast +0 -10
- package/test/snapshots/pfm/html/186.snap.ast +0 -11
- package/test/snapshots/pfm/html/187.snap.ast +0 -8
- package/test/snapshots/pfm/html/188.snap.ast +0 -11
- package/test/snapshots/pfm/html/189.snap.ast +0 -9
- package/test/snapshots/pfm/html/190.snap.ast +0 -17
- package/test/snapshots/pfm/html/191.snap.ast +0 -17
- package/test/snapshots/pfm/html/613.snap.ast +0 -8
- package/test/snapshots/pfm/html/614.snap.ast +0 -4
- package/test/snapshots/pfm/html/615.snap.ast +0 -5
- package/test/snapshots/pfm/html/616.snap.ast +0 -3
- package/test/snapshots/pfm/html/617.snap.ast +0 -5
- package/test/snapshots/pfm/html/618.snap.ast +0 -5
- package/test/snapshots/pfm/html/619.snap.ast +0 -4
- package/test/snapshots/pfm/html/620.snap.ast +0 -5
- package/test/snapshots/pfm/html/621.snap.ast +0 -10
- package/test/snapshots/pfm/html/622.snap.ast +0 -4
- package/test/snapshots/pfm/html/623.snap.ast +0 -5
- package/test/snapshots/pfm/html/624.snap.ast +0 -4
- package/test/snapshots/pfm/html/625.snap.ast +0 -5
- package/test/snapshots/pfm/html/626.snap.ast +0 -10
- package/test/snapshots/pfm/html/627.snap.ast +0 -5
- package/test/snapshots/pfm/html/628.snap.ast +0 -6
- package/test/snapshots/pfm/html/629.snap.ast +0 -12
- package/test/snapshots/pfm/html/630.snap.ast +0 -5
- package/test/snapshots/pfm/html/631.snap.ast +0 -5
- package/test/snapshots/pfm/html/632.snap.ast +0 -4
- package/test/snapshots/pfm/images/572.snap.ast +0 -5
- package/test/snapshots/pfm/images/573.snap.ast +0 -9
- package/test/snapshots/pfm/images/574.snap.ast +0 -7
- package/test/snapshots/pfm/images/575.snap.ast +0 -7
- package/test/snapshots/pfm/images/576.snap.ast +0 -11
- package/test/snapshots/pfm/images/577.snap.ast +0 -11
- package/test/snapshots/pfm/images/578.snap.ast +0 -5
- package/test/snapshots/pfm/images/579.snap.ast +0 -6
- package/test/snapshots/pfm/images/580.snap.ast +0 -5
- package/test/snapshots/pfm/images/581.snap.ast +0 -4
- package/test/snapshots/pfm/images/582.snap.ast +0 -8
- package/test/snapshots/pfm/images/583.snap.ast +0 -8
- package/test/snapshots/pfm/images/584.snap.ast +0 -8
- package/test/snapshots/pfm/images/585.snap.ast +0 -11
- package/test/snapshots/pfm/images/586.snap.ast +0 -8
- package/test/snapshots/pfm/images/587.snap.ast +0 -9
- package/test/snapshots/pfm/images/588.snap.ast +0 -6
- package/test/snapshots/pfm/images/589.snap.ast +0 -9
- package/test/snapshots/pfm/images/590.snap.ast +0 -12
- package/test/snapshots/pfm/images/591.snap.ast +0 -6
- package/test/snapshots/pfm/images/592.snap.ast +0 -7
- package/test/snapshots/pfm/images/593.snap.ast +0 -7
- package/test/snapshots/pfm/imports/1.snap.ast +0 -6
- package/test/snapshots/pfm/imports/10.snap.ast +0 -4
- package/test/snapshots/pfm/imports/11.snap.ast +0 -6
- package/test/snapshots/pfm/imports/2.snap.ast +0 -7
- package/test/snapshots/pfm/imports/3.snap.ast +0 -7
- package/test/snapshots/pfm/imports/4.snap.ast +0 -6
- package/test/snapshots/pfm/imports/5.snap.ast +0 -6
- package/test/snapshots/pfm/imports/6.snap.ast +0 -8
- package/test/snapshots/pfm/imports/7.snap.ast +0 -6
- package/test/snapshots/pfm/imports/8.snap.ast +0 -8
- package/test/snapshots/pfm/imports/9.snap.ast +0 -2
- package/test/snapshots/pfm/inlines/327.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/192.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/193.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/194.snap.ast +0 -8
- package/test/snapshots/pfm/link_reference_definitions/195.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/196.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/197.snap.ast +0 -16
- package/test/snapshots/pfm/link_reference_definitions/198.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/199.snap.ast +0 -12
- package/test/snapshots/pfm/link_reference_definitions/200.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/201.snap.ast +0 -14
- package/test/snapshots/pfm/link_reference_definitions/202.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/203.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/204.snap.ast +0 -8
- package/test/snapshots/pfm/link_reference_definitions/205.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/206.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/207.snap.ast +0 -1
- package/test/snapshots/pfm/link_reference_definitions/208.snap.ast +0 -12
- package/test/snapshots/pfm/link_reference_definitions/209.snap.ast +0 -5
- package/test/snapshots/pfm/link_reference_definitions/210.snap.ast +0 -7
- package/test/snapshots/pfm/link_reference_definitions/211.snap.ast +0 -6
- package/test/snapshots/pfm/link_reference_definitions/212.snap.ast +0 -9
- package/test/snapshots/pfm/link_reference_definitions/213.snap.ast +0 -14
- package/test/snapshots/pfm/link_reference_definitions/214.snap.ast +0 -11
- package/test/snapshots/pfm/link_reference_definitions/215.snap.ast +0 -9
- package/test/snapshots/pfm/link_reference_definitions/216.snap.ast +0 -7
- package/test/snapshots/pfm/link_reference_definitions/217.snap.ast +0 -14
- package/test/snapshots/pfm/link_reference_definitions/218.snap.ast +0 -13
- package/test/snapshots/pfm/links/482.snap.ast +0 -5
- package/test/snapshots/pfm/links/483.snap.ast +0 -5
- package/test/snapshots/pfm/links/484.snap.ast +0 -4
- package/test/snapshots/pfm/links/485.snap.ast +0 -5
- package/test/snapshots/pfm/links/486.snap.ast +0 -5
- package/test/snapshots/pfm/links/487.snap.ast +0 -4
- package/test/snapshots/pfm/links/488.snap.ast +0 -5
- package/test/snapshots/pfm/links/489.snap.ast +0 -5
- package/test/snapshots/pfm/links/490.snap.ast +0 -7
- package/test/snapshots/pfm/links/491.snap.ast +0 -7
- package/test/snapshots/pfm/links/492.snap.ast +0 -5
- package/test/snapshots/pfm/links/493.snap.ast +0 -5
- package/test/snapshots/pfm/links/494.snap.ast +0 -11
- package/test/snapshots/pfm/links/495.snap.ast +0 -5
- package/test/snapshots/pfm/links/496.snap.ast +0 -5
- package/test/snapshots/pfm/links/497.snap.ast +0 -5
- package/test/snapshots/pfm/links/498.snap.ast +0 -5
- package/test/snapshots/pfm/links/499.snap.ast +0 -5
- package/test/snapshots/pfm/links/500.snap.ast +0 -5
- package/test/snapshots/pfm/links/501.snap.ast +0 -15
- package/test/snapshots/pfm/links/502.snap.ast +0 -5
- package/test/snapshots/pfm/links/503.snap.ast +0 -5
- package/test/snapshots/pfm/links/504.snap.ast +0 -5
- package/test/snapshots/pfm/links/505.snap.ast +0 -11
- package/test/snapshots/pfm/links/506.snap.ast +0 -5
- package/test/snapshots/pfm/links/507.snap.ast +0 -5
- package/test/snapshots/pfm/links/508.snap.ast +0 -5
- package/test/snapshots/pfm/links/509.snap.ast +0 -5
- package/test/snapshots/pfm/links/510.snap.ast +0 -7
- package/test/snapshots/pfm/links/511.snap.ast +0 -5
- package/test/snapshots/pfm/links/512.snap.ast +0 -11
- package/test/snapshots/pfm/links/513.snap.ast +0 -6
- package/test/snapshots/pfm/links/514.snap.ast +0 -7
- package/test/snapshots/pfm/links/515.snap.ast +0 -6
- package/test/snapshots/pfm/links/516.snap.ast +0 -12
- package/test/snapshots/pfm/links/517.snap.ast +0 -6
- package/test/snapshots/pfm/links/518.snap.ast +0 -7
- package/test/snapshots/pfm/links/519.snap.ast +0 -10
- package/test/snapshots/pfm/links/520.snap.ast +0 -7
- package/test/snapshots/pfm/links/521.snap.ast +0 -7
- package/test/snapshots/pfm/links/522.snap.ast +0 -9
- package/test/snapshots/pfm/links/523.snap.ast +0 -9
- package/test/snapshots/pfm/links/524.snap.ast +0 -6
- package/test/snapshots/pfm/links/525.snap.ast +0 -6
- package/test/snapshots/pfm/links/526.snap.ast +0 -7
- package/test/snapshots/pfm/links/527.snap.ast +0 -6
- package/test/snapshots/pfm/links/528.snap.ast +0 -14
- package/test/snapshots/pfm/links/529.snap.ast +0 -7
- package/test/snapshots/pfm/links/530.snap.ast +0 -13
- package/test/snapshots/pfm/links/531.snap.ast +0 -7
- package/test/snapshots/pfm/links/532.snap.ast +0 -8
- package/test/snapshots/pfm/links/533.snap.ast +0 -10
- package/test/snapshots/pfm/links/534.snap.ast +0 -8
- package/test/snapshots/pfm/links/535.snap.ast +0 -11
- package/test/snapshots/pfm/links/536.snap.ast +0 -7
- package/test/snapshots/pfm/links/537.snap.ast +0 -7
- package/test/snapshots/pfm/links/538.snap.ast +0 -8
- package/test/snapshots/pfm/links/539.snap.ast +0 -6
- package/test/snapshots/pfm/links/540.snap.ast +0 -8
- package/test/snapshots/pfm/links/541.snap.ast +0 -15
- package/test/snapshots/pfm/links/542.snap.ast +0 -8
- package/test/snapshots/pfm/links/543.snap.ast +0 -11
- package/test/snapshots/pfm/links/544.snap.ast +0 -7
- package/test/snapshots/pfm/links/545.snap.ast +0 -10
- package/test/snapshots/pfm/links/546.snap.ast +0 -16
- package/test/snapshots/pfm/links/547.snap.ast +0 -18
- package/test/snapshots/pfm/links/548.snap.ast +0 -14
- package/test/snapshots/pfm/links/549.snap.ast +0 -6
- package/test/snapshots/pfm/links/550.snap.ast +0 -7
- package/test/snapshots/pfm/links/551.snap.ast +0 -12
- package/test/snapshots/pfm/links/552.snap.ast +0 -12
- package/test/snapshots/pfm/links/553.snap.ast +0 -6
- package/test/snapshots/pfm/links/554.snap.ast +0 -8
- package/test/snapshots/pfm/links/555.snap.ast +0 -6
- package/test/snapshots/pfm/links/556.snap.ast +0 -9
- package/test/snapshots/pfm/links/557.snap.ast +0 -6
- package/test/snapshots/pfm/links/558.snap.ast +0 -8
- package/test/snapshots/pfm/links/559.snap.ast +0 -10
- package/test/snapshots/pfm/links/560.snap.ast +0 -9
- package/test/snapshots/pfm/links/561.snap.ast +0 -6
- package/test/snapshots/pfm/links/562.snap.ast +0 -7
- package/test/snapshots/pfm/links/563.snap.ast +0 -8
- package/test/snapshots/pfm/links/564.snap.ast +0 -8
- package/test/snapshots/pfm/links/565.snap.ast +0 -6
- package/test/snapshots/pfm/links/566.snap.ast +0 -6
- package/test/snapshots/pfm/links/567.snap.ast +0 -6
- package/test/snapshots/pfm/links/568.snap.ast +0 -6
- package/test/snapshots/pfm/links/569.snap.ast +0 -8
- package/test/snapshots/pfm/links/570.snap.ast +0 -8
- package/test/snapshots/pfm/links/571.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/253.snap.ast +0 -15
- package/test/snapshots/pfm/list_items/254.snap.ast +0 -13
- package/test/snapshots/pfm/list_items/255.snap.ast +0 -9
- package/test/snapshots/pfm/list_items/256.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/257.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/258.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/259.snap.ast +0 -10
- package/test/snapshots/pfm/list_items/260.snap.ast +0 -10
- package/test/snapshots/pfm/list_items/261.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/262.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/263.snap.ast +0 -12
- package/test/snapshots/pfm/list_items/264.snap.ast +0 -10
- package/test/snapshots/pfm/list_items/265.snap.ast +0 -5
- package/test/snapshots/pfm/list_items/266.snap.ast +0 -4
- package/test/snapshots/pfm/list_items/267.snap.ast +0 -5
- package/test/snapshots/pfm/list_items/268.snap.ast +0 -5
- package/test/snapshots/pfm/list_items/269.snap.ast +0 -4
- package/test/snapshots/pfm/list_items/270.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/271.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/272.snap.ast +0 -12
- package/test/snapshots/pfm/list_items/273.snap.ast +0 -10
- package/test/snapshots/pfm/list_items/274.snap.ast +0 -10
- package/test/snapshots/pfm/list_items/275.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/276.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/277.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/278.snap.ast +0 -14
- package/test/snapshots/pfm/list_items/279.snap.ast +0 -6
- package/test/snapshots/pfm/list_items/280.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/281.snap.ast +0 -9
- package/test/snapshots/pfm/list_items/282.snap.ast +0 -9
- package/test/snapshots/pfm/list_items/283.snap.ast +0 -9
- package/test/snapshots/pfm/list_items/284.snap.ast +0 -4
- package/test/snapshots/pfm/list_items/285.snap.ast +0 -12
- package/test/snapshots/pfm/list_items/286.snap.ast +0 -13
- package/test/snapshots/pfm/list_items/287.snap.ast +0 -13
- package/test/snapshots/pfm/list_items/288.snap.ast +0 -13
- package/test/snapshots/pfm/list_items/289.snap.ast +0 -13
- package/test/snapshots/pfm/list_items/290.snap.ast +0 -13
- package/test/snapshots/pfm/list_items/291.snap.ast +0 -7
- package/test/snapshots/pfm/list_items/292.snap.ast +0 -11
- package/test/snapshots/pfm/list_items/293.snap.ast +0 -10
- package/test/snapshots/pfm/list_items/294.snap.ast +0 -14
- package/test/snapshots/pfm/list_items/295.snap.ast +0 -11
- package/test/snapshots/pfm/list_items/296.snap.ast +0 -8
- package/test/snapshots/pfm/list_items/297.snap.ast +0 -9
- package/test/snapshots/pfm/list_items/298.snap.ast +0 -6
- package/test/snapshots/pfm/list_items/299.snap.ast +0 -9
- package/test/snapshots/pfm/list_items/300.snap.ast +0 -12
- package/test/snapshots/pfm/lists/301.snap.ast +0 -11
- package/test/snapshots/pfm/lists/302.snap.ast +0 -11
- package/test/snapshots/pfm/lists/303.snap.ast +0 -10
- package/test/snapshots/pfm/lists/304.snap.ast +0 -6
- package/test/snapshots/pfm/lists/305.snap.ast +0 -8
- package/test/snapshots/pfm/lists/306.snap.ast +0 -12
- package/test/snapshots/pfm/lists/307.snap.ast +0 -14
- package/test/snapshots/pfm/lists/308.snap.ast +0 -17
- package/test/snapshots/pfm/lists/309.snap.ast +0 -18
- package/test/snapshots/pfm/lists/310.snap.ast +0 -17
- package/test/snapshots/pfm/lists/311.snap.ast +0 -12
- package/test/snapshots/pfm/lists/312.snap.ast +0 -13
- package/test/snapshots/pfm/lists/313.snap.ast +0 -12
- package/test/snapshots/pfm/lists/314.snap.ast +0 -12
- package/test/snapshots/pfm/lists/315.snap.ast +0 -11
- package/test/snapshots/pfm/lists/316.snap.ast +0 -14
- package/test/snapshots/pfm/lists/317.snap.ast +0 -15
- package/test/snapshots/pfm/lists/318.snap.ast +0 -9
- package/test/snapshots/pfm/lists/319.snap.ast +0 -13
- package/test/snapshots/pfm/lists/320.snap.ast +0 -11
- package/test/snapshots/pfm/lists/321.snap.ast +0 -11
- package/test/snapshots/pfm/lists/322.snap.ast +0 -5
- package/test/snapshots/pfm/lists/323.snap.ast +0 -8
- package/test/snapshots/pfm/lists/324.snap.ast +0 -7
- package/test/snapshots/pfm/lists/325.snap.ast +0 -11
- package/test/snapshots/pfm/lists/326.snap.ast +0 -19
- package/test/snapshots/pfm/paragraphs/219.snap.ast +0 -8
- package/test/snapshots/pfm/paragraphs/220.snap.ast +0 -12
- package/test/snapshots/pfm/paragraphs/221.snap.ast +0 -9
- package/test/snapshots/pfm/paragraphs/222.snap.ast +0 -6
- package/test/snapshots/pfm/paragraphs/223.snap.ast +0 -8
- package/test/snapshots/pfm/paragraphs/224.snap.ast +0 -6
- package/test/snapshots/pfm/paragraphs/225.snap.ast +0 -6
- package/test/snapshots/pfm/precedence/42.snap.ast +0 -5
- package/test/snapshots/pfm/setext_headings/100.snap.ast +0 -5
- package/test/snapshots/pfm/setext_headings/101.snap.ast +0 -6
- package/test/snapshots/pfm/setext_headings/102.snap.ast +0 -5
- package/test/snapshots/pfm/setext_headings/103.snap.ast +0 -12
- package/test/snapshots/pfm/setext_headings/104.snap.ast +0 -12
- package/test/snapshots/pfm/setext_headings/105.snap.ast +0 -10
- package/test/snapshots/pfm/setext_headings/106.snap.ast +0 -10
- package/test/snapshots/pfm/setext_headings/80.snap.ast +0 -15
- package/test/snapshots/pfm/setext_headings/81.snap.ast +0 -10
- package/test/snapshots/pfm/setext_headings/82.snap.ast +0 -11
- package/test/snapshots/pfm/setext_headings/83.snap.ast +0 -11
- package/test/snapshots/pfm/setext_headings/84.snap.ast +0 -16
- package/test/snapshots/pfm/setext_headings/85.snap.ast +0 -11
- package/test/snapshots/pfm/setext_headings/86.snap.ast +0 -5
- package/test/snapshots/pfm/setext_headings/87.snap.ast +0 -6
- package/test/snapshots/pfm/setext_headings/88.snap.ast +0 -11
- package/test/snapshots/pfm/setext_headings/89.snap.ast +0 -5
- package/test/snapshots/pfm/setext_headings/90.snap.ast +0 -6
- package/test/snapshots/pfm/setext_headings/91.snap.ast +0 -7
- package/test/snapshots/pfm/setext_headings/92.snap.ast +0 -6
- package/test/snapshots/pfm/setext_headings/93.snap.ast +0 -10
- package/test/snapshots/pfm/setext_headings/94.snap.ast +0 -6
- package/test/snapshots/pfm/setext_headings/95.snap.ast +0 -7
- package/test/snapshots/pfm/setext_headings/96.snap.ast +0 -9
- package/test/snapshots/pfm/setext_headings/97.snap.ast +0 -5
- package/test/snapshots/pfm/setext_headings/98.snap.ast +0 -2
- package/test/snapshots/pfm/setext_headings/99.snap.ast +0 -6
- package/test/snapshots/pfm/soft_line_breaks/648.snap.ast +0 -6
- package/test/snapshots/pfm/soft_line_breaks/649.snap.ast +0 -6
- package/test/snapshots/pfm/tabs/1.snap.ast +0 -4
- package/test/snapshots/pfm/tabs/10.snap.ast +0 -4
- package/test/snapshots/pfm/tabs/11.snap.ast +0 -2
- package/test/snapshots/pfm/tabs/12.snap.ast +0 -7
- package/test/snapshots/pfm/tabs/13.snap.ast +0 -8
- package/test/snapshots/pfm/tabs/14.snap.ast +0 -8
- package/test/snapshots/pfm/tabs/15.snap.ast +0 -7
- package/test/snapshots/pfm/tabs/16.snap.ast +0 -7
- package/test/snapshots/pfm/tabs/17.snap.ast +0 -11
- package/test/snapshots/pfm/tabs/2.snap.ast +0 -4
- package/test/snapshots/pfm/tabs/3.snap.ast +0 -6
- package/test/snapshots/pfm/tabs/4.snap.ast +0 -9
- package/test/snapshots/pfm/tabs/5.snap.ast +0 -8
- package/test/snapshots/pfm/tabs/6.snap.ast +0 -5
- package/test/snapshots/pfm/tabs/7.snap.ast +0 -5
- package/test/snapshots/pfm/tabs/8.snap.ast +0 -6
- package/test/snapshots/pfm/tabs/9.snap.ast +0 -10
- package/test/snapshots/pfm/textual_content/650.snap.ast +0 -4
- package/test/snapshots/pfm/textual_content/651.snap.ast +0 -4
- package/test/snapshots/pfm/textual_content/652.snap.ast +0 -4
- package/test/snapshots/pfm/thematic_breaks/43.snap.ast +0 -4
- package/test/snapshots/pfm/thematic_breaks/44.snap.ast +0 -4
- package/test/snapshots/pfm/thematic_breaks/45.snap.ast +0 -4
- package/test/snapshots/pfm/thematic_breaks/46.snap.ast +0 -10
- package/test/snapshots/pfm/thematic_breaks/47.snap.ast +0 -4
- package/test/snapshots/pfm/thematic_breaks/48.snap.ast +0 -2
- package/test/snapshots/pfm/thematic_breaks/49.snap.ast +0 -8
- package/test/snapshots/pfm/thematic_breaks/50.snap.ast +0 -2
- package/test/snapshots/pfm/thematic_breaks/51.snap.ast +0 -2
- package/test/snapshots/pfm/thematic_breaks/52.snap.ast +0 -2
- package/test/snapshots/pfm/thematic_breaks/53.snap.ast +0 -2
- package/test/snapshots/pfm/thematic_breaks/54.snap.ast +0 -2
- package/test/snapshots/pfm/thematic_breaks/55.snap.ast +0 -15
- package/test/snapshots/pfm/thematic_breaks/56.snap.ast +0 -5
- package/test/snapshots/pfm/thematic_breaks/57.snap.ast +0 -10
- package/test/snapshots/pfm/thematic_breaks/58.snap.ast +0 -8
- package/test/snapshots/pfm/thematic_breaks/59.snap.ast +0 -8
- package/test/snapshots/pfm/thematic_breaks/60.snap.ast +0 -10
- package/test/snapshots/pfm/thematic_breaks/61.snap.ast +0 -6
- package/test/snapshots/svelte/00-introduction/00-hello-world/App.snap.ast +0 -8
- package/test/snapshots/svelte/00-introduction/01-dynamic-attributes/App.snap.ast +0 -7
- package/test/snapshots/svelte/00-introduction/02-styling/App.snap.ast +0 -7
- package/test/snapshots/svelte/00-introduction/03-nested-components/App.snap.ast +0 -11
- package/test/snapshots/svelte/00-introduction/03-nested-components/Nested.snap.ast +0 -3
- package/test/snapshots/svelte/00-introduction/04-html-tags/App.snap.ast +0 -6
- package/test/snapshots/svelte/01-reactivity/00-reactive-assignments/App.snap.ast +0 -11
- package/test/snapshots/svelte/01-reactivity/01-reactive-declarations/App.snap.ast +0 -22
- package/test/snapshots/svelte/01-reactivity/02-reactive-statements/App.snap.ast +0 -11
- package/test/snapshots/svelte/02-props/00-declaring-props/App.snap.ast +0 -5
- package/test/snapshots/svelte/02-props/00-declaring-props/Nested.snap.ast +0 -7
- package/test/snapshots/svelte/02-props/01-default-values/App.snap.ast +0 -7
- package/test/snapshots/svelte/02-props/01-default-values/Nested.snap.ast +0 -7
- package/test/snapshots/svelte/02-props/02-spread-props/App.snap.ast +0 -5
- package/test/snapshots/svelte/02-props/02-spread-props/Info.snap.ast +0 -23
- package/test/snapshots/svelte/03-logic/00-if-blocks/App.snap.ast +0 -22
- package/test/snapshots/svelte/03-logic/01-else-blocks/App.snap.ast +0 -19
- package/test/snapshots/svelte/03-logic/02-else-if-blocks/App.snap.ast +0 -23
- package/test/snapshots/svelte/03-logic/03-each-blocks/App.snap.ast +0 -22
- package/test/snapshots/svelte/03-logic/04-keyed-each-blocks/App.snap.ast +0 -37
- package/test/snapshots/svelte/03-logic/04-keyed-each-blocks/Thing.snap.ast +0 -16
- package/test/snapshots/svelte/04-events/00-dom-events/App.snap.ast +0 -15
- package/test/snapshots/svelte/04-events/01-inline-handlers/App.snap.ast +0 -15
- package/test/snapshots/svelte/04-events/02-event-modifiers/App.snap.ast +0 -8
- package/test/snapshots/svelte/04-events/03-component-events/App.snap.ast +0 -5
- package/test/snapshots/svelte/04-events/03-component-events/Inner.snap.ast +0 -8
- package/test/snapshots/svelte/04-events/04-event-forwarding/App.snap.ast +0 -5
- package/test/snapshots/svelte/04-events/04-event-forwarding/Inner.snap.ast +0 -8
- package/test/snapshots/svelte/04-events/04-event-forwarding/Outer.snap.ast +0 -5
- package/test/snapshots/svelte/04-events/05-dom-event-forwarding/App.snap.ast +0 -5
- package/test/snapshots/svelte/04-events/05-dom-event-forwarding/FancyButton.snap.ast +0 -8
- package/test/snapshots/svelte/05-bindings/00-text-inputs/App.snap.ast +0 -10
- package/test/snapshots/svelte/05-bindings/01-numeric-inputs/App.snap.ast +0 -28
- package/test/snapshots/svelte/05-bindings/02-checkbox-inputs/App.snap.ast +0 -30
- package/test/snapshots/svelte/05-bindings/03-group-inputs/App.snap.ast +0 -75
- package/test/snapshots/svelte/05-bindings/04-textarea-inputs/App.snap.ast +0 -11
- package/test/snapshots/svelte/05-bindings/05-select-bindings/App.snap.ast +0 -40
- package/test/snapshots/svelte/05-bindings/06-multiple-select-bindings/App.snap.ast +0 -76
- package/test/snapshots/svelte/05-bindings/07-each-block-bindings/App.snap.ast +0 -40
- package/test/snapshots/svelte/05-bindings/08-media-elements/App.snap.ast +0 -49
- package/test/snapshots/svelte/05-bindings/09-dimensions/App.snap.ast +0 -25
- package/test/snapshots/svelte/05-bindings/10-bind-this/App.snap.ast +0 -9
- package/test/snapshots/svelte/05-bindings/11-component-bindings/App.snap.ast +0 -9
- package/test/snapshots/svelte/05-bindings/11-component-bindings/Keypad.snap.ast +0 -56
- package/test/snapshots/svelte/06-lifecycle/00-onmount/App.snap.ast +0 -33
- package/test/snapshots/svelte/06-lifecycle/01-ondestroy/App.snap.ast +0 -13
- package/test/snapshots/svelte/06-lifecycle/02-update/App.snap.ast +0 -29
- package/test/snapshots/svelte/06-lifecycle/03-tick/App.snap.ast +0 -8
- package/test/snapshots/svelte/07-stores/00-writable-stores/App.snap.ast +0 -14
- package/test/snapshots/svelte/07-stores/00-writable-stores/Decrementer.snap.ast +0 -8
- package/test/snapshots/svelte/07-stores/00-writable-stores/Incrementer.snap.ast +0 -8
- package/test/snapshots/svelte/07-stores/00-writable-stores/Resetter.snap.ast +0 -8
- package/test/snapshots/svelte/07-stores/01-auto-subscriptions/App.snap.ast +0 -14
- package/test/snapshots/svelte/07-stores/01-auto-subscriptions/Decrementer.snap.ast +0 -8
- package/test/snapshots/svelte/07-stores/01-auto-subscriptions/Incrementer.snap.ast +0 -8
- package/test/snapshots/svelte/07-stores/01-auto-subscriptions/Resetter.snap.ast +0 -8
- package/test/snapshots/svelte/07-stores/02-readable-stores/App.snap.ast +0 -7
- package/test/snapshots/svelte/07-stores/03-derived-stores/App.snap.ast +0 -18
- package/test/snapshots/svelte/07-stores/04-custom-stores/App.snap.ast +0 -17
- package/test/snapshots/svelte/08-motion/00-tweened/App.snap.ast +0 -38
- package/test/snapshots/svelte/08-motion/01-spring/App.snap.ast +0 -38
- package/test/snapshots/svelte/09-transitions/00-transition/App.snap.ast +0 -20
- package/test/snapshots/svelte/09-transitions/01-adding-parameters-to-transitions/App.snap.ast +0 -20
- package/test/snapshots/svelte/09-transitions/02-in-and-out/App.snap.ast +0 -20
- package/test/snapshots/svelte/09-transitions/03-custom-css-transitions/App.snap.ast +0 -25
- package/test/snapshots/svelte/09-transitions/04-custom-js-transitions/App.snap.ast +0 -20
- package/test/snapshots/svelte/09-transitions/05-transition-events/App.snap.ast +0 -25
- package/test/snapshots/svelte/10-animations/00-animate/App.snap.ast +0 -58
- package/test/snapshots/svelte/11-easing/00-easing/App.snap.ast +0 -36
- package/test/snapshots/svelte/11-easing/00-easing/Controls.snap.ast +0 -108
- package/test/snapshots/svelte/11-easing/00-easing/Grid.snap.ast +0 -31
- package/test/snapshots/svelte/12-svg/01-clock/App.snap.ast +0 -48
- package/test/snapshots/svelte/12-svg/02-bar-chart/App.snap.ast +0 -63
- package/test/snapshots/svelte/12-svg/03-area-chart/App.snap.ast +0 -70
- package/test/snapshots/svelte/12-svg/04-scatterplot/App.snap.ast +0 -24
- package/test/snapshots/svelte/12-svg/04-scatterplot/Scatterplot.snap.ast +0 -59
- package/test/snapshots/svelte/12-svg/05-svg-transitions/App.snap.ast +0 -43
- package/test/snapshots/svelte/13-actions/00-actions/App.snap.ast +0 -8
- package/test/snapshots/svelte/13-actions/01-adding-parameters-to-actions/App.snap.ast +0 -8
- package/test/snapshots/svelte/14-classes/00-classes/App.snap.ast +0 -17
- package/test/snapshots/svelte/14-classes/01-class-shorthand/App.snap.ast +0 -22
- package/test/snapshots/svelte/15-composition/00-slots/App.snap.ast +0 -13
- package/test/snapshots/svelte/15-composition/00-slots/Box.snap.ast +0 -8
- package/test/snapshots/svelte/15-composition/01-slot-fallbacks/App.snap.ast +0 -16
- package/test/snapshots/svelte/15-composition/01-slot-fallbacks/Box.snap.ast +0 -12
- package/test/snapshots/svelte/15-composition/02-named-slots/App.snap.ast +0 -20
- package/test/snapshots/svelte/15-composition/02-named-slots/ContactCard.snap.ast +0 -35
- package/test/snapshots/svelte/15-composition/03-slot-props/App.snap.ast +0 -65
- package/test/snapshots/svelte/15-composition/03-slot-props/Hoverable.snap.ast +0 -8
- package/test/snapshots/svelte/15-composition/04-modal/App.snap.ast +0 -66
- package/test/snapshots/svelte/15-composition/04-modal/Modal.snap.ast +0 -26
- package/test/snapshots/svelte/16-context/00-context-api/App.snap.ast +0 -23
- package/test/snapshots/svelte/16-context/00-context-api/Map.snap.ast +0 -15
- package/test/snapshots/svelte/16-context/00-context-api/MapMarker.snap.ast +0 -2
- package/test/snapshots/svelte/17-special-elements/00-svelte-self/App.snap.ast +0 -5
- package/test/snapshots/svelte/17-special-elements/00-svelte-self/File.snap.ast +0 -9
- package/test/snapshots/svelte/17-special-elements/00-svelte-self/Folder.snap.ast +0 -34
- package/test/snapshots/svelte/17-special-elements/01-svelte-component/App.snap.ast +0 -16
- package/test/snapshots/svelte/17-special-elements/01-svelte-component/BlueThing.snap.ast +0 -6
- package/test/snapshots/svelte/17-special-elements/01-svelte-component/GreenThing.snap.ast +0 -6
- package/test/snapshots/svelte/17-special-elements/01-svelte-component/RedThing.snap.ast +0 -6
- package/test/snapshots/svelte/17-special-elements/02-svelte-window/App.snap.ast +0 -27
- package/test/snapshots/svelte/17-special-elements/03-svelte-window-bindings/App.snap.ast +0 -37
- package/test/snapshots/svelte/17-special-elements/04-svelte-body/App.snap.ast +0 -12
- package/test/snapshots/svelte/17-special-elements/05-svelte-head/App.snap.ast +0 -10
- package/test/snapshots/svelte/18-module-context/01-module-exports/App.snap.ast +0 -34
- package/test/snapshots/svelte/18-module-context/01-module-exports/AudioPlayer.snap.ast +0 -24
- package/test/snapshots/svelte/19-debugging/00-debug/App.snap.ast +0 -26
- package/test/snapshots/svelte/19-debugging/00-debug/Test.snap.ast +0 -355
- package/test/snapshots/svelte/20-7guis/01-7guis-counter/App.snap.ast +0 -10
- package/test/snapshots/svelte/20-7guis/02-7guis-temperature/App.snap.ast +0 -16
- package/test/snapshots/svelte/20-7guis/03-7guis-flight-booker/App.snap.ast +0 -27
- package/test/snapshots/svelte/20-7guis/04-7guis-timer/App.snap.ast +0 -32
- package/test/snapshots/svelte/20-7guis/05-7guis-crud/App.snap.ast +0 -47
- package/test/snapshots/svelte/20-7guis/06-7guis-circles/App.snap.ast +0 -46
- package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/App.snap.ast +0 -22
- package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/Comment.snap.ast +0 -27
- package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/Item.snap.ast +0 -40
- package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/List.snap.ast +0 -26
- package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/Summary.snap.ast +0 -24
- package/test/snapshots/svelte/21-miscellaneous/02-immutable-data/App.snap.ast +0 -26
- package/test/snapshots/svelte/21-miscellaneous/02-immutable-data/ImmutableTodo.snap.ast +0 -20
- package/test/snapshots/svelte/21-miscellaneous/02-immutable-data/MutableTodo.snap.ast +0 -17
- package/test/snapshots/svelte/22-bugs/CSS/App.snap.ast +0 -3
- package/test/snapshots/svelte/99-embeds/20181225-blog-svelte-css-in-js/App.snap.ast +0 -17
- package/test/snapshots/svelte/99-embeds/20181225-blog-svelte-css-in-js/Hero.snap.ast +0 -23
- package/test/snapshots/svelte/99-embeds/20190420-blog-write-less-code/App.snap.ast +0 -15
- package/test/strikethrough.spec.ts +0 -114
- package/test/subscript.spec.ts +0 -132
- package/test/superscript.spec.ts +0 -139
- package/test/svelte_blocks.spec.ts +0 -208
- package/test/svelte_expressions.spec.ts +0 -264
- package/test/svelte_tags.spec.ts +0 -140
- package/test/tables.spec.ts +0 -1010
- package/test/thematic_breaks.spec.ts +0 -274
- package/test/tree_builder.spec.ts +0 -627
- package/test/unclosed_delimiters.spec.ts +0 -529
- package/test/utils.ts +0 -58
- package/test/wire_emitter.spec.ts +0 -487
- package/tsc/buf_utils.d.ts +0 -13
- package/tsc/buf_utils.js +0 -49
- package/tsc/constants.d.ts +0 -68
- package/tsc/constants.js +0 -68
- package/tsc/cursor.d.ts +0 -83
- package/tsc/cursor.js +0 -177
- package/tsc/main.d.ts +0 -808
- package/tsc/main.js +0 -10415
- package/tsc/node_view.d.ts +0 -115
- package/tsc/node_view.js +0 -374
- package/tsc/opcodes.d.ts +0 -92
- package/tsc/opcodes.js +0 -1
- package/tsc/plugin_dispatch.d.ts +0 -82
- package/tsc/plugin_dispatch.js +0 -623
- package/tsc/plugin_types.d.ts +0 -31
- package/tsc/plugin_types.js +0 -1
- package/tsc/tree_builder.d.ts +0 -62
- package/tsc/tree_builder.js +0 -328
- package/tsc/types.d.ts +0 -25
- package/tsc/types.js +0 -1
- package/tsc/undo_log.d.ts +0 -113
- package/tsc/undo_log.js +0 -229
- package/tsc/utils.d.ts +0 -268
- package/tsc/utils.js +0 -1135
- package/tsc/utils.spec.d.ts +0 -1
- package/tsc/utils.spec.js +0 -354
- package/tsc/wire_emitter.d.ts +0 -66
- package/tsc/wire_emitter.js +0 -391
- package/tsc/wire_tree_builder.d.ts +0 -55
- package/tsc/wire_tree_builder.js +0 -273
- package/tsconfig.json +0 -15
- package/vite.config.build.ts +0 -28
package/src/utils.ts
DELETED
|
@@ -1,1369 +0,0 @@
|
|
|
1
|
-
/** default number of token entries to preallocate. */
|
|
2
|
-
const DEFAULT_TOKEN_CAPACITY = 128;
|
|
3
|
-
|
|
4
|
-
/** under 2 kb of slab, cheaper than a resize for a slightly larger document */
|
|
5
|
-
const MIN_NODE_CAPACITY = 32;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* a buffer past the carve cap is its own ArrayBuffer, far costlier than a
|
|
9
|
-
* carve, so small documents should fit the slab
|
|
10
|
-
*/
|
|
11
|
-
const SLAB_BYTES = 1048576;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* caps the tail a full slab can waste at a quarter, high since a one shot
|
|
15
|
-
* parse gives back what it does not use
|
|
16
|
-
*/
|
|
17
|
-
const SLAB_MAX_CARVE = 262144;
|
|
18
|
-
|
|
19
|
-
const EMPTY_U32 = new Uint32Array(0);
|
|
20
|
-
|
|
21
|
-
/** most documents set no metadata, the first set_metadata swaps in a real array */
|
|
22
|
-
const NO_META: any[] = Object.freeze([]) as unknown as any[];
|
|
23
|
-
|
|
24
|
-
/** push writes and the cursor reads fields together, so they share one stride */
|
|
25
|
-
export const enum NodeField {
|
|
26
|
-
/** kind in the low byte, extra in the sixteen bits above it */
|
|
27
|
-
kind = 0,
|
|
28
|
-
start = 1,
|
|
29
|
-
end = 2,
|
|
30
|
-
value_start = 3,
|
|
31
|
-
value_end = 4,
|
|
32
|
-
parent = 5,
|
|
33
|
-
next = 6,
|
|
34
|
-
prev = 7,
|
|
35
|
-
first_child = 8,
|
|
36
|
-
last_child = 9,
|
|
37
|
-
/** one while the node may still be revoked */
|
|
38
|
-
pending = 10,
|
|
39
|
-
/** one plus the slot in NodeBuffer._meta, zero without metadata */
|
|
40
|
-
meta = 11,
|
|
41
|
-
stride = 12,
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const NODE_BYTES = NodeField.stride * 4;
|
|
45
|
-
|
|
46
|
-
/** shared empty strings until own_strings, never written */
|
|
47
|
-
const NO_STRINGS: (string | undefined)[] = [];
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* uninitialized where the host allows, the template and a push write every
|
|
51
|
-
* word of a node before anything reads it
|
|
52
|
-
*/
|
|
53
|
-
const host_buffer: any = (globalThis as any).Buffer;
|
|
54
|
-
const unzeroed =
|
|
55
|
-
host_buffer !== undefined &&
|
|
56
|
-
typeof host_buffer.allocUnsafeSlow === 'function';
|
|
57
|
-
function new_storage(bytes: number): ArrayBuffer {
|
|
58
|
-
return unzeroed
|
|
59
|
-
? (host_buffer.allocUnsafeSlow(bytes).buffer as ArrayBuffer)
|
|
60
|
-
: new ArrayBuffer(bytes);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/** a template copy repeats at most this many nodes, a longer source falls out of cache */
|
|
64
|
-
const TEMPLATE_BLOCK = 512;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* template slots from up to to, no end, value, links, pending or meta, so a
|
|
68
|
-
* push writes only kind, start, parent and the links it makes
|
|
69
|
-
*/
|
|
70
|
-
function fill_template(n: Uint32Array, from: number, to: number): void {
|
|
71
|
-
// a copy is a runtime call, stores beat it for the few nodes a small document has
|
|
72
|
-
const short = to - from <= 64 ? to : from + 64;
|
|
73
|
-
for (let b = from * NodeField.stride; b < short * NodeField.stride; ) {
|
|
74
|
-
n[b + NodeField.end] = 0xffffffff;
|
|
75
|
-
n[b + NodeField.value_start] = 0;
|
|
76
|
-
n[b + NodeField.value_end] = 0;
|
|
77
|
-
n[b + NodeField.next] = 0xffffffff;
|
|
78
|
-
n[b + NodeField.prev] = 0xffffffff;
|
|
79
|
-
n[b + NodeField.first_child] = 0xffffffff;
|
|
80
|
-
n[b + NodeField.last_child] = 0xffffffff;
|
|
81
|
-
n[b + NodeField.pending] = 0;
|
|
82
|
-
n[b + NodeField.meta] = 0;
|
|
83
|
-
b += NodeField.stride;
|
|
84
|
-
}
|
|
85
|
-
let done = short;
|
|
86
|
-
while (done < to) {
|
|
87
|
-
let count = done - from;
|
|
88
|
-
if (count > TEMPLATE_BLOCK) count = TEMPLATE_BLOCK;
|
|
89
|
-
if (count > to - done) count = to - done;
|
|
90
|
-
n.copyWithin(
|
|
91
|
-
done * NodeField.stride,
|
|
92
|
-
from * NodeField.stride,
|
|
93
|
-
(from + count) * NodeField.stride
|
|
94
|
-
);
|
|
95
|
-
done += count;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
const SLAB_NODES = (SLAB_BYTES / NODE_BYTES) | 0;
|
|
100
|
-
|
|
101
|
-
const FILL_CHUNK = 4096;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* a carve costs one view not a backing store but keeps its whole slab alive,
|
|
105
|
-
* a slab holds the template from slab_used on, a trim returns only unwritten slots
|
|
106
|
-
*/
|
|
107
|
-
let slab = new ArrayBuffer(0);
|
|
108
|
-
let slab_used = SLAB_BYTES;
|
|
109
|
-
/** the view whose region ends at slab_used, it can grow in place or shrink */
|
|
110
|
-
let last_carve: Uint32Array | null = null;
|
|
111
|
-
|
|
112
|
-
/** default number of error entries to preallocate. */
|
|
113
|
-
const DEFAULT_ERROR_CAPACITY = 32;
|
|
114
|
-
|
|
115
|
-
export const enum NodeKind {
|
|
116
|
-
root = 0,
|
|
117
|
-
text = 1,
|
|
118
|
-
html = 2,
|
|
119
|
-
heading = 3,
|
|
120
|
-
mustache = 4,
|
|
121
|
-
code_fence = 5,
|
|
122
|
-
line_break = 6,
|
|
123
|
-
paragraph = 7,
|
|
124
|
-
code_span = 8,
|
|
125
|
-
emphasis = 9,
|
|
126
|
-
strong_emphasis = 10,
|
|
127
|
-
thematic_break = 11,
|
|
128
|
-
link = 12,
|
|
129
|
-
image = 13,
|
|
130
|
-
block_quote = 14,
|
|
131
|
-
list = 15,
|
|
132
|
-
list_item = 16,
|
|
133
|
-
hard_break = 17,
|
|
134
|
-
soft_break = 18,
|
|
135
|
-
strikethrough = 19,
|
|
136
|
-
superscript = 20,
|
|
137
|
-
subscript = 21,
|
|
138
|
-
table = 22,
|
|
139
|
-
table_header = 23,
|
|
140
|
-
table_row = 24,
|
|
141
|
-
table_cell = 25,
|
|
142
|
-
html_comment = 26,
|
|
143
|
-
svelte_tag = 27,
|
|
144
|
-
svelte_block = 28,
|
|
145
|
-
svelte_branch = 29,
|
|
146
|
-
directive_inline = 30,
|
|
147
|
-
directive_leaf = 31,
|
|
148
|
-
directive_container = 32,
|
|
149
|
-
frontmatter = 33,
|
|
150
|
-
import_statement = 34,
|
|
151
|
-
directive_label = 35,
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* calculate the next power-of-two capacity for typed array storage.
|
|
156
|
-
* @param value minimum desired capacity.
|
|
157
|
-
* @returns smallest power of two greater than or equal to `value`.
|
|
158
|
-
*/
|
|
159
|
-
function next_power_of_two(value: number): number {
|
|
160
|
-
let result = 1;
|
|
161
|
-
while (result < value) {
|
|
162
|
-
result <<= 1;
|
|
163
|
-
}
|
|
164
|
-
return result;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* convert a node kind to a string
|
|
169
|
-
* @param kind node kind
|
|
170
|
-
* @returns string
|
|
171
|
-
*/
|
|
172
|
-
export const kind_to_string = (kind: NodeKind): string => {
|
|
173
|
-
switch (kind) {
|
|
174
|
-
case NodeKind.root:
|
|
175
|
-
return 'root';
|
|
176
|
-
case NodeKind.text:
|
|
177
|
-
return 'text';
|
|
178
|
-
case NodeKind.html:
|
|
179
|
-
return 'html';
|
|
180
|
-
case NodeKind.heading:
|
|
181
|
-
return 'heading';
|
|
182
|
-
case NodeKind.mustache:
|
|
183
|
-
return 'mustache';
|
|
184
|
-
case NodeKind.code_fence:
|
|
185
|
-
return 'code_fence';
|
|
186
|
-
case NodeKind.line_break:
|
|
187
|
-
return 'line_break';
|
|
188
|
-
case NodeKind.paragraph:
|
|
189
|
-
return 'paragraph';
|
|
190
|
-
case NodeKind.code_span:
|
|
191
|
-
return 'code_span';
|
|
192
|
-
case NodeKind.emphasis:
|
|
193
|
-
return 'emphasis';
|
|
194
|
-
case NodeKind.strong_emphasis:
|
|
195
|
-
return 'strong_emphasis';
|
|
196
|
-
case NodeKind.thematic_break:
|
|
197
|
-
return 'thematic_break';
|
|
198
|
-
case NodeKind.link:
|
|
199
|
-
return 'link';
|
|
200
|
-
case NodeKind.image:
|
|
201
|
-
return 'image';
|
|
202
|
-
case NodeKind.block_quote:
|
|
203
|
-
return 'block_quote';
|
|
204
|
-
case NodeKind.list:
|
|
205
|
-
return 'list';
|
|
206
|
-
case NodeKind.list_item:
|
|
207
|
-
return 'list_item';
|
|
208
|
-
case NodeKind.hard_break:
|
|
209
|
-
return 'hard_break';
|
|
210
|
-
case NodeKind.soft_break:
|
|
211
|
-
return 'soft_break';
|
|
212
|
-
case NodeKind.strikethrough:
|
|
213
|
-
return 'strikethrough';
|
|
214
|
-
case NodeKind.superscript:
|
|
215
|
-
return 'superscript';
|
|
216
|
-
case NodeKind.subscript:
|
|
217
|
-
return 'subscript';
|
|
218
|
-
case NodeKind.table:
|
|
219
|
-
return 'table';
|
|
220
|
-
case NodeKind.table_header:
|
|
221
|
-
return 'table_header';
|
|
222
|
-
case NodeKind.table_row:
|
|
223
|
-
return 'table_row';
|
|
224
|
-
case NodeKind.table_cell:
|
|
225
|
-
return 'table_cell';
|
|
226
|
-
case NodeKind.html_comment:
|
|
227
|
-
return 'html_comment';
|
|
228
|
-
case NodeKind.svelte_tag:
|
|
229
|
-
return 'svelte_tag';
|
|
230
|
-
case NodeKind.svelte_block:
|
|
231
|
-
return 'svelte_block';
|
|
232
|
-
case NodeKind.svelte_branch:
|
|
233
|
-
return 'svelte_branch';
|
|
234
|
-
case NodeKind.directive_inline:
|
|
235
|
-
return 'directive_inline';
|
|
236
|
-
case NodeKind.directive_leaf:
|
|
237
|
-
return 'directive_leaf';
|
|
238
|
-
case NodeKind.directive_container:
|
|
239
|
-
return 'directive_container';
|
|
240
|
-
case NodeKind.frontmatter:
|
|
241
|
-
return 'frontmatter';
|
|
242
|
-
case NodeKind.import_statement:
|
|
243
|
-
return 'import_statement';
|
|
244
|
-
case NodeKind.directive_label:
|
|
245
|
-
return 'directive_label';
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
/** reverse mapping from string name to numeric NodeKind. built once at module load. */
|
|
250
|
-
const _string_to_kind = new Map<string, NodeKind>();
|
|
251
|
-
for (let i = 0; i <= 35; i++) {
|
|
252
|
-
_string_to_kind.set(kind_to_string(i as NodeKind), i as NodeKind);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* convert a string name to a NodeKind value.
|
|
257
|
-
* @param name node kind name (e.g. 'heading', 'paragraph').
|
|
258
|
-
* @returns the numeric kind, or undefined if unknown.
|
|
259
|
-
*/
|
|
260
|
-
export const string_to_kind = (name: string): NodeKind | undefined => {
|
|
261
|
-
return _string_to_kind.get(name);
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* convert a node extra to a string
|
|
266
|
-
* @param kind node extra
|
|
267
|
-
* @returns string
|
|
268
|
-
*/
|
|
269
|
-
const extra_to_string = (kind: NodeKind): string | undefined => {
|
|
270
|
-
switch (kind) {
|
|
271
|
-
case NodeKind.heading:
|
|
272
|
-
return 'depth';
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* a computed key literal takes a slow generic define, so known keys get
|
|
278
|
-
* constant key literals and other keys a store into an empty literal
|
|
279
|
-
*/
|
|
280
|
-
export function make_meta(key: string, value: any): Record<string, any> {
|
|
281
|
-
switch (key) {
|
|
282
|
-
case 'tag':
|
|
283
|
-
return { tag: value };
|
|
284
|
-
case 'href':
|
|
285
|
-
return { href: value };
|
|
286
|
-
case 'src':
|
|
287
|
-
return { src: value };
|
|
288
|
-
case 'ordered':
|
|
289
|
-
return { ordered: value };
|
|
290
|
-
case 'info_start':
|
|
291
|
-
return { info_start: value };
|
|
292
|
-
case 'name':
|
|
293
|
-
return { name: value };
|
|
294
|
-
case 'alignments':
|
|
295
|
-
return { alignments: value };
|
|
296
|
-
case 'attributes':
|
|
297
|
-
return { attributes: value };
|
|
298
|
-
case 'self_closing':
|
|
299
|
-
return { self_closing: value };
|
|
300
|
-
case 'title':
|
|
301
|
-
return { title: value };
|
|
302
|
-
case 'start':
|
|
303
|
-
return { start: value };
|
|
304
|
-
case 'tight':
|
|
305
|
-
return { tight: value };
|
|
306
|
-
case 'info_end':
|
|
307
|
-
return { info_end: value };
|
|
308
|
-
case 'args':
|
|
309
|
-
return { args: value };
|
|
310
|
-
case 'col_count':
|
|
311
|
-
return { col_count: value };
|
|
312
|
-
default: {
|
|
313
|
-
// a set would change the prototype, a literal defines an own property
|
|
314
|
-
if (key === '__proto__') return { [key]: value };
|
|
315
|
-
const meta: Record<string, any> = {};
|
|
316
|
-
meta[key] = value;
|
|
317
|
-
return meta;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/** named stores stay monomorphic, a keyed store goes megamorphic across shapes */
|
|
323
|
-
export function merge_meta(
|
|
324
|
-
meta: Record<string, any>,
|
|
325
|
-
key: string,
|
|
326
|
-
value: any
|
|
327
|
-
): void {
|
|
328
|
-
switch (key) {
|
|
329
|
-
case 'attributes':
|
|
330
|
-
meta.attributes = value;
|
|
331
|
-
return;
|
|
332
|
-
case 'start':
|
|
333
|
-
meta.start = value;
|
|
334
|
-
return;
|
|
335
|
-
case 'tight':
|
|
336
|
-
meta.tight = value;
|
|
337
|
-
return;
|
|
338
|
-
case 'title':
|
|
339
|
-
meta.title = value;
|
|
340
|
-
return;
|
|
341
|
-
case 'self_closing':
|
|
342
|
-
meta.self_closing = value;
|
|
343
|
-
return;
|
|
344
|
-
case 'info_end':
|
|
345
|
-
meta.info_end = value;
|
|
346
|
-
return;
|
|
347
|
-
case 'col_count':
|
|
348
|
-
meta.col_count = value;
|
|
349
|
-
return;
|
|
350
|
-
case 'args':
|
|
351
|
-
meta.args = value;
|
|
352
|
-
return;
|
|
353
|
-
case 'tag':
|
|
354
|
-
meta.tag = value;
|
|
355
|
-
return;
|
|
356
|
-
case 'href':
|
|
357
|
-
meta.href = value;
|
|
358
|
-
return;
|
|
359
|
-
case 'src':
|
|
360
|
-
meta.src = value;
|
|
361
|
-
return;
|
|
362
|
-
case 'ordered':
|
|
363
|
-
meta.ordered = value;
|
|
364
|
-
return;
|
|
365
|
-
case 'info_start':
|
|
366
|
-
meta.info_start = value;
|
|
367
|
-
return;
|
|
368
|
-
case 'name':
|
|
369
|
-
meta.name = value;
|
|
370
|
-
return;
|
|
371
|
-
case 'alignments':
|
|
372
|
-
meta.alignments = value;
|
|
373
|
-
return;
|
|
374
|
-
default:
|
|
375
|
-
meta[key] = value;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
export class NodeBuffer {
|
|
380
|
-
// v8 sizes in-object slots from constructor stores, so every field is
|
|
381
|
-
// initialized here, not only in alloc, or the tail fields spill out of line
|
|
382
|
-
/** @internal */
|
|
383
|
-
_capacity = 0;
|
|
384
|
-
/** @internal do not mutate externally */
|
|
385
|
-
_n: Uint32Array = EMPTY_U32;
|
|
386
|
-
/** @internal */
|
|
387
|
-
_meta: any[] = NO_META;
|
|
388
|
-
/** @internal pre-materialized text strings (used by wiretreebuilder). index -> string. */
|
|
389
|
-
_strings: (string | undefined)[] = NO_STRINGS;
|
|
390
|
-
|
|
391
|
-
/** @internal read by TreeBuilder to check ids against indices */
|
|
392
|
-
_size = 0;
|
|
393
|
-
/** slots from _size up to here hold the template */
|
|
394
|
-
private _filled = 0;
|
|
395
|
-
|
|
396
|
-
constructor(initial_capacity = DEFAULT_TOKEN_CAPACITY) {
|
|
397
|
-
// the comparison also sends a nan capacity to the floor
|
|
398
|
-
let n = this.alloc(
|
|
399
|
-
next_power_of_two(
|
|
400
|
-
initial_capacity > MIN_NODE_CAPACITY
|
|
401
|
-
? initial_capacity
|
|
402
|
-
: MIN_NODE_CAPACITY
|
|
403
|
-
)
|
|
404
|
-
);
|
|
405
|
-
// the root push by hand, an inlined push_node would count against the
|
|
406
|
-
// inlining budget of every new TreeBuilder caller
|
|
407
|
-
if (this._filled === 0) n = this.fill(0);
|
|
408
|
-
n[0] = NodeKind.root;
|
|
409
|
-
n[NodeField.start] = 0;
|
|
410
|
-
n[NodeField.parent] = 0xffffffff;
|
|
411
|
-
this._size = 1;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
private alloc(capacity: number): Uint32Array {
|
|
415
|
-
// a node is a whole number of words, so every carve stays word aligned
|
|
416
|
-
const bytes = capacity * NODE_BYTES;
|
|
417
|
-
let buffer: ArrayBuffer;
|
|
418
|
-
let base = 0;
|
|
419
|
-
if (bytes <= SLAB_MAX_CARVE) {
|
|
420
|
-
if (slab_used + bytes > SLAB_BYTES) {
|
|
421
|
-
slab = new_storage(SLAB_BYTES);
|
|
422
|
-
slab_used = 0;
|
|
423
|
-
fill_template(new Uint32Array(slab), 0, SLAB_NODES);
|
|
424
|
-
}
|
|
425
|
-
buffer = slab;
|
|
426
|
-
base = slab_used;
|
|
427
|
-
slab_used = base + bytes;
|
|
428
|
-
} else {
|
|
429
|
-
buffer = new_storage(bytes);
|
|
430
|
-
}
|
|
431
|
-
const n = new Uint32Array(buffer, base, capacity * NodeField.stride);
|
|
432
|
-
if (buffer === slab) {
|
|
433
|
-
last_carve = n;
|
|
434
|
-
this._filled = capacity;
|
|
435
|
-
} else this._filled = 0;
|
|
436
|
-
this._capacity = capacity;
|
|
437
|
-
this._n = n;
|
|
438
|
-
return n;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
/** @internal */
|
|
442
|
-
own_strings(): (string | undefined)[] {
|
|
443
|
-
const strings = this._strings;
|
|
444
|
-
return strings === NO_STRINGS ? (this._strings = []) : strings;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
/** gives the unused tail of the last slab carve back, a later push resizes */
|
|
448
|
-
trim(): void {
|
|
449
|
-
if (this._n !== last_carve) return;
|
|
450
|
-
slab_used -= (this._capacity - this._size) * NODE_BYTES;
|
|
451
|
-
this._capacity = this._size;
|
|
452
|
-
this._filled = this._size;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
/** clear nodes without reallocating storage */
|
|
456
|
-
reset(): void {
|
|
457
|
-
// push writes every word of a node, so stale words need no clearing
|
|
458
|
-
// a length store is a runtime call even when already empty
|
|
459
|
-
if (this._meta.length !== 0) this._meta.length = 0;
|
|
460
|
-
if (this._strings.length !== 0) this._strings.length = 0;
|
|
461
|
-
// make the pushed slots template again, copying the template above them
|
|
462
|
-
// when there is enough, one copy costs about what stores for eight nodes do
|
|
463
|
-
const size = this._size;
|
|
464
|
-
if (size !== 0) {
|
|
465
|
-
if (size > 8 && size << 1 <= this._filled) {
|
|
466
|
-
const n = this._n;
|
|
467
|
-
for (let done = 0; done < size; ) {
|
|
468
|
-
let count = size - done;
|
|
469
|
-
if (count > TEMPLATE_BLOCK) count = TEMPLATE_BLOCK;
|
|
470
|
-
n.copyWithin(
|
|
471
|
-
done * NodeField.stride,
|
|
472
|
-
size * NodeField.stride,
|
|
473
|
-
(size + count) * NodeField.stride
|
|
474
|
-
);
|
|
475
|
-
done += count;
|
|
476
|
-
}
|
|
477
|
-
} else fill_template(this._n, 0, size);
|
|
478
|
-
this._size = 0;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
get size(): number {
|
|
483
|
-
return this._size;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* push a node as the last child of parent
|
|
488
|
-
* @param kind node category.
|
|
489
|
-
* @param cursor cursor position
|
|
490
|
-
* @param parent index of the parent node, or 0xffffffff for none.
|
|
491
|
-
* @param extra extra metadata stored alongside the node.
|
|
492
|
-
* @param metadata optional metadata associated with the node.
|
|
493
|
-
*/
|
|
494
|
-
push(
|
|
495
|
-
kind: NodeKind,
|
|
496
|
-
cursor: number,
|
|
497
|
-
parent = 0xffffffff,
|
|
498
|
-
extra = 0,
|
|
499
|
-
metadata?: any
|
|
500
|
-
): number {
|
|
501
|
-
const index = this.push_node(kind, cursor, parent, extra, false);
|
|
502
|
-
if (metadata !== undefined) this.set_metadata(index, metadata);
|
|
503
|
-
return index;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
push_pending(
|
|
507
|
-
kind: NodeKind,
|
|
508
|
-
cursor: number,
|
|
509
|
-
parent = 0xffffffff,
|
|
510
|
-
extra = 0,
|
|
511
|
-
metadata?: any
|
|
512
|
-
): number {
|
|
513
|
-
const index = this.push_node(kind, cursor, parent, extra, true);
|
|
514
|
-
if (metadata !== undefined) this.set_metadata(index, metadata);
|
|
515
|
-
return index;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
/** one body for every open so the builder inlines a single copy */
|
|
519
|
-
push_node(
|
|
520
|
-
kind: NodeKind,
|
|
521
|
-
cursor: number,
|
|
522
|
-
parent: number,
|
|
523
|
-
extra: number,
|
|
524
|
-
pending: boolean
|
|
525
|
-
): number {
|
|
526
|
-
const index = this._size;
|
|
527
|
-
let n = this._n;
|
|
528
|
-
if (index >= this._filled) n = this.fill(index);
|
|
529
|
-
|
|
530
|
-
// the template holds every other word
|
|
531
|
-
const b = index * NodeField.stride;
|
|
532
|
-
n[b] = (kind & 0xff) | ((extra & 0xffff) << 8);
|
|
533
|
-
n[b + NodeField.start] = cursor;
|
|
534
|
-
n[b + NodeField.parent] = parent;
|
|
535
|
-
if (pending) n[b + NodeField.pending] = 1;
|
|
536
|
-
this._size = index + 1;
|
|
537
|
-
|
|
538
|
-
if (parent !== 0xffffffff) {
|
|
539
|
-
const p = parent * NodeField.stride;
|
|
540
|
-
const last = n[p + NodeField.last_child];
|
|
541
|
-
if (last === 0xffffffff) {
|
|
542
|
-
// first child
|
|
543
|
-
n[p + NodeField.first_child] = index;
|
|
544
|
-
} else {
|
|
545
|
-
// append after last child, o(1)
|
|
546
|
-
n[last * NodeField.stride + NodeField.next] = index;
|
|
547
|
-
n[b + NodeField.prev] = last;
|
|
548
|
-
}
|
|
549
|
-
n[p + NodeField.last_child] = index;
|
|
550
|
-
}
|
|
551
|
-
return index;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
/** parent must be a node, not 0xffffffff */
|
|
555
|
-
push_text(start: number, end: number, parent: number): number {
|
|
556
|
-
const index = this._size;
|
|
557
|
-
let n = this._n;
|
|
558
|
-
if (index >= this._filled) n = this.fill(index);
|
|
559
|
-
|
|
560
|
-
const b = index * NodeField.stride;
|
|
561
|
-
n[b] = NodeKind.text;
|
|
562
|
-
n[b + NodeField.start] = start;
|
|
563
|
-
n[b + NodeField.end] = end;
|
|
564
|
-
n[b + NodeField.value_start] = start;
|
|
565
|
-
n[b + NodeField.value_end] = end;
|
|
566
|
-
n[b + NodeField.parent] = parent;
|
|
567
|
-
this._size = index + 1;
|
|
568
|
-
|
|
569
|
-
const p = parent * NodeField.stride;
|
|
570
|
-
const last = n[p + NodeField.last_child];
|
|
571
|
-
if (last === 0xffffffff) {
|
|
572
|
-
n[p + NodeField.first_child] = index;
|
|
573
|
-
} else {
|
|
574
|
-
n[last * NodeField.stride + NodeField.next] = index;
|
|
575
|
-
n[b + NodeField.prev] = last;
|
|
576
|
-
}
|
|
577
|
-
n[p + NodeField.last_child] = index;
|
|
578
|
-
return index;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
/** a closed node with no extra and a value range, as open, value and close would leave it */
|
|
582
|
-
push_leaf(
|
|
583
|
-
kind: NodeKind,
|
|
584
|
-
start: number,
|
|
585
|
-
value_start: number,
|
|
586
|
-
value_end: number,
|
|
587
|
-
end: number,
|
|
588
|
-
parent: number
|
|
589
|
-
): number {
|
|
590
|
-
const index = this._size;
|
|
591
|
-
let n = this._n;
|
|
592
|
-
if (index >= this._filled) n = this.fill(index);
|
|
593
|
-
|
|
594
|
-
const b = index * NodeField.stride;
|
|
595
|
-
n[b] = kind;
|
|
596
|
-
n[b + NodeField.start] = start;
|
|
597
|
-
n[b + NodeField.end] = end;
|
|
598
|
-
n[b + NodeField.value_start] = value_start;
|
|
599
|
-
n[b + NodeField.value_end] = value_end;
|
|
600
|
-
n[b + NodeField.parent] = parent;
|
|
601
|
-
this._size = index + 1;
|
|
602
|
-
|
|
603
|
-
const p = parent * NodeField.stride;
|
|
604
|
-
const last = n[p + NodeField.last_child];
|
|
605
|
-
if (last === 0xffffffff) {
|
|
606
|
-
n[p + NodeField.first_child] = index;
|
|
607
|
-
} else {
|
|
608
|
-
n[last * NodeField.stride + NodeField.next] = index;
|
|
609
|
-
n[b + NodeField.prev] = last;
|
|
610
|
-
}
|
|
611
|
-
n[p + NodeField.last_child] = index;
|
|
612
|
-
return index;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
private fill(index: number): Uint32Array {
|
|
616
|
-
let n = this._n;
|
|
617
|
-
if (index >= this._capacity) n = this.grow();
|
|
618
|
-
let filled = this._filled;
|
|
619
|
-
if (index >= filled) {
|
|
620
|
-
let to = filled + (filled > FILL_CHUNK ? filled : FILL_CHUNK);
|
|
621
|
-
if (to > this._capacity) to = this._capacity;
|
|
622
|
-
fill_template(n, filled, to);
|
|
623
|
-
this._filled = filled = to;
|
|
624
|
-
}
|
|
625
|
-
return n;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* allocate a node slot without linking it into any parent's child list.
|
|
630
|
-
* the caller is responsible for setting the parent and linking into the
|
|
631
|
-
* sibling chain manually. used by plugin structural mutations (prepend).
|
|
632
|
-
* @param kind node kind.
|
|
633
|
-
* @param cursor source position.
|
|
634
|
-
* @param extra kind-specific extra value.
|
|
635
|
-
* @param metadata optional metadata.
|
|
636
|
-
* @returns buffer index of the new node.
|
|
637
|
-
*/
|
|
638
|
-
push_unlinked(
|
|
639
|
-
kind: NodeKind,
|
|
640
|
-
cursor: number,
|
|
641
|
-
extra = 0,
|
|
642
|
-
metadata?: any
|
|
643
|
-
): number {
|
|
644
|
-
return this.push(kind, cursor, 0xffffffff, extra, metadata);
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* insert a new wrapper node between a parent and all its current children.
|
|
649
|
-
* the new node becomes the sole child of parent, and all prior children
|
|
650
|
-
* become children of the new wrapper.
|
|
651
|
-
*
|
|
652
|
-
* @param parent_idx buffer index of the parent node.
|
|
653
|
-
* @param new_kind kind for the wrapper node.
|
|
654
|
-
* @param extra kind-specific extra value for the wrapper.
|
|
655
|
-
* @param metadata optional metadata for the wrapper.
|
|
656
|
-
* @returns buffer index of the new wrapper node.
|
|
657
|
-
*/
|
|
658
|
-
wrap_children(
|
|
659
|
-
parent_idx: number,
|
|
660
|
-
new_kind: NodeKind,
|
|
661
|
-
extra = 0,
|
|
662
|
-
metadata?: any
|
|
663
|
-
): number {
|
|
664
|
-
const first_child = this.first_child_at(parent_idx);
|
|
665
|
-
const last_child = this.last_child_at(parent_idx);
|
|
666
|
-
|
|
667
|
-
// detach children from parent
|
|
668
|
-
this.set_first_child(parent_idx, 0xffffffff);
|
|
669
|
-
this.set_last_child(parent_idx, 0xffffffff);
|
|
670
|
-
|
|
671
|
-
// push wrapper as sole child of parent (auto-links via push)
|
|
672
|
-
const wrapper_idx = this.push(new_kind, 0, parent_idx, extra, metadata);
|
|
673
|
-
|
|
674
|
-
// reattach old children to wrapper
|
|
675
|
-
if (first_child !== 0xffffffff) {
|
|
676
|
-
this.set_first_child(wrapper_idx, first_child);
|
|
677
|
-
this.set_last_child(wrapper_idx, last_child);
|
|
678
|
-
|
|
679
|
-
// update parent pointers on all moved children
|
|
680
|
-
let child = first_child;
|
|
681
|
-
while (child !== 0xffffffff && this.parent_at(child) === parent_idx) {
|
|
682
|
-
this.set_parent(child, wrapper_idx);
|
|
683
|
-
child = this.next_at(child);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
return wrapper_idx;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
commit_node(index: number): void {
|
|
691
|
-
this._n[index * NodeField.stride + NodeField.pending] = 0;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
get_pending(): number[] {
|
|
695
|
-
const result: number[] = [];
|
|
696
|
-
const n = this._n;
|
|
697
|
-
for (let i = 0; i < this._size; i++) {
|
|
698
|
-
if (n[i * NodeField.stride + NodeField.pending] !== 0) {
|
|
699
|
-
result.push(i);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
return result;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* repair a revoked (pending) node.
|
|
707
|
-
*
|
|
708
|
-
* all repair logic lives here, treebuilder and wiretreebuilder
|
|
709
|
-
* both delegate to this method. the strategy depends on context:
|
|
710
|
-
*
|
|
711
|
-
* **inline revocation** (parent is paragraph, emphasis, link, etc.):
|
|
712
|
-
* convert the node to text (the delimiter), reparent children to grandparent.
|
|
713
|
-
*
|
|
714
|
-
* **block-level revocation** (parent is root, block_quote, list_item):
|
|
715
|
-
* convert the node to a paragraph, create a text child with the raw source.
|
|
716
|
-
* existing children (e.g. line_breaks from html block parsing) are discarded.
|
|
717
|
-
*
|
|
718
|
-
* @param index buffer index of the node to repair.
|
|
719
|
-
* @param delimiter_text optional pre-resolved delimiter string (wire path).
|
|
720
|
-
* if provided, stored in _strings. if absent, value range is set from
|
|
721
|
-
* the node's start position.
|
|
722
|
-
* @param text_start source offset of delimiter_text, at the node start the
|
|
723
|
-
* repaired range slices the same text so it is not stored
|
|
724
|
-
*/
|
|
725
|
-
handle_repair(
|
|
726
|
-
index: number,
|
|
727
|
-
delimiter_text?: string,
|
|
728
|
-
text_start?: number
|
|
729
|
-
): void {
|
|
730
|
-
const parent = this.parent_at(index);
|
|
731
|
-
const kind = this.kind_at(index);
|
|
732
|
-
const parent_kind =
|
|
733
|
-
parent !== 0xffffffff ? this.kind_at(parent) : undefined;
|
|
734
|
-
|
|
735
|
-
// a revoked paragraph is a wrapper a tight list item or a paragraph of only tags does not need
|
|
736
|
-
// a revoked table cell was a merge marker, the cell it joined spans its column
|
|
737
|
-
if (kind === NodeKind.paragraph || kind === NodeKind.table_cell) {
|
|
738
|
-
this.unwrap_node(index);
|
|
739
|
-
return;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
// block-level repair
|
|
743
|
-
// if the parent is a block container, the revoked node (typically an
|
|
744
|
-
// unclosed html block) is replaced by a paragraph containing the literal
|
|
745
|
-
// open-tag text. children that were parsed inside are reparented to the
|
|
746
|
-
// grandparent so already-recognized structure is preserved.
|
|
747
|
-
if (
|
|
748
|
-
parent_kind === NodeKind.root ||
|
|
749
|
-
parent_kind === NodeKind.block_quote ||
|
|
750
|
-
parent_kind === NodeKind.list_item
|
|
751
|
-
) {
|
|
752
|
-
const start = this.start_at(index);
|
|
753
|
-
let end: number;
|
|
754
|
-
|
|
755
|
-
if (delimiter_text !== undefined) {
|
|
756
|
-
// wire path: delimiter_text is the literal open-tag source
|
|
757
|
-
end = start + delimiter_text.length;
|
|
758
|
-
} else {
|
|
759
|
-
// source path: prefer the node's recorded end; fall back to the
|
|
760
|
-
// nearest meaningful child position so we never collapse to start.
|
|
761
|
-
end = this.end_at(index);
|
|
762
|
-
if (end === 0xffffffff) {
|
|
763
|
-
let child = this.first_child_at(index);
|
|
764
|
-
while (child !== 0xffffffff && this.parent_at(child) === index) {
|
|
765
|
-
if (this.kind_at(child) === NodeKind.line_break) {
|
|
766
|
-
const lb_start = this.start_at(child);
|
|
767
|
-
if (lb_start > 0 && (end === 0xffffffff || lb_start > end)) {
|
|
768
|
-
end = lb_start;
|
|
769
|
-
}
|
|
770
|
-
} else {
|
|
771
|
-
const child_end = this.end_at(child);
|
|
772
|
-
if (
|
|
773
|
-
child_end !== 0xffffffff &&
|
|
774
|
-
(end === 0xffffffff || child_end > end)
|
|
775
|
-
) {
|
|
776
|
-
end = child_end;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
child = this.next_at(child);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
if (end === 0xffffffff || end <= start) {
|
|
783
|
-
this.unwrap_node(index);
|
|
784
|
-
return;
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
// reparent children to the grandparent so trailing parsed content
|
|
789
|
-
// (e.g. block elements that followed the unclosed open tag) is kept.
|
|
790
|
-
const child_chain = this.first_child_at(index);
|
|
791
|
-
this.set_first_child(index, 0xffffffff);
|
|
792
|
-
this.set_last_child(index, 0xffffffff);
|
|
793
|
-
|
|
794
|
-
// convert this node into a paragraph holding the literal open-tag text.
|
|
795
|
-
this.set_kind(index, NodeKind.paragraph);
|
|
796
|
-
this.delete_metadata(index);
|
|
797
|
-
this.set_end(index, end);
|
|
798
|
-
|
|
799
|
-
const text_idx = this.push(NodeKind.text, start, index);
|
|
800
|
-
this.set_value(text_idx, start, end);
|
|
801
|
-
this.set_end(text_idx, end);
|
|
802
|
-
if (delimiter_text !== undefined && text_start !== start) {
|
|
803
|
-
this.own_strings()[text_idx] = delimiter_text;
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
// splice the original children in after the rewritten node so they
|
|
807
|
-
// appear as siblings under the parent.
|
|
808
|
-
if (child_chain !== 0xffffffff) {
|
|
809
|
-
const original_next = this.next_at(index);
|
|
810
|
-
let last_child = child_chain;
|
|
811
|
-
let scan = child_chain;
|
|
812
|
-
while (scan !== 0xffffffff && this.parent_at(scan) === index) {
|
|
813
|
-
this.set_parent(scan, parent);
|
|
814
|
-
last_child = scan;
|
|
815
|
-
scan = this.next_at(scan);
|
|
816
|
-
}
|
|
817
|
-
this.set_next(last_child, original_next);
|
|
818
|
-
if (original_next !== 0xffffffff) {
|
|
819
|
-
this.set_prev(original_next, last_child);
|
|
820
|
-
} else if (
|
|
821
|
-
parent !== 0xffffffff &&
|
|
822
|
-
this.last_child_at(parent) === index
|
|
823
|
-
) {
|
|
824
|
-
this.set_last_child(parent, last_child);
|
|
825
|
-
}
|
|
826
|
-
this.set_next(index, child_chain);
|
|
827
|
-
this.set_prev(child_chain, index);
|
|
828
|
-
}
|
|
829
|
-
return;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
// inline repair
|
|
833
|
-
const first_child = this.first_child_at(index);
|
|
834
|
-
|
|
835
|
-
// convert the wrapper to a plain text node whose value is the
|
|
836
|
-
// literal delimiter (e.g. "~" for subscript, "<div>" for an
|
|
837
|
-
// inline html open tag). any children stay in the document,
|
|
838
|
-
// they are reparented to the grandparent so the streamed
|
|
839
|
-
// content is preserved after revocation.
|
|
840
|
-
this.set_kind(index, NodeKind.text);
|
|
841
|
-
|
|
842
|
-
if (delimiter_text !== undefined) {
|
|
843
|
-
const start = this.start_at(index);
|
|
844
|
-
if (text_start !== start) this.own_strings()[index] = delimiter_text;
|
|
845
|
-
const end = start + delimiter_text.length;
|
|
846
|
-
this.set_value(index, start, end);
|
|
847
|
-
this.set_end(index, end);
|
|
848
|
-
|
|
849
|
-
if (first_child === 0xffffffff) {
|
|
850
|
-
this.set_first_child(index, 0xffffffff);
|
|
851
|
-
this.set_last_child(index, 0xffffffff);
|
|
852
|
-
return;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
// reparent children and splice them in after this text node.
|
|
856
|
-
let child = first_child;
|
|
857
|
-
let last_child = first_child;
|
|
858
|
-
while (child !== 0xffffffff && this.parent_at(child) === index) {
|
|
859
|
-
this.set_parent(child, parent);
|
|
860
|
-
last_child = child;
|
|
861
|
-
child = this.next_at(child);
|
|
862
|
-
}
|
|
863
|
-
const node_next = this.next_at(index);
|
|
864
|
-
this.set_next(index, first_child);
|
|
865
|
-
this.set_prev(first_child, index);
|
|
866
|
-
if (node_next !== 0xffffffff && this.parent_at(node_next) === parent) {
|
|
867
|
-
this.set_next(last_child, node_next);
|
|
868
|
-
this.set_prev(node_next, last_child);
|
|
869
|
-
} else {
|
|
870
|
-
this.set_next(last_child, 0xffffffff);
|
|
871
|
-
}
|
|
872
|
-
if (this.last_child_at(parent) === index) {
|
|
873
|
-
this.set_last_child(parent, last_child);
|
|
874
|
-
}
|
|
875
|
-
this.set_first_child(index, 0xffffffff);
|
|
876
|
-
this.set_last_child(index, 0xffffffff);
|
|
877
|
-
return;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
// source-based fallback, derive the delimiter byte range from
|
|
881
|
-
// the node's own start offset.
|
|
882
|
-
if (first_child === 0xffffffff) {
|
|
883
|
-
this.set_first_child(index, 0xffffffff);
|
|
884
|
-
this.set_last_child(index, 0xffffffff);
|
|
885
|
-
const start = this.start_at(index);
|
|
886
|
-
if (this.end_at(index) === 0xffffffff) {
|
|
887
|
-
// an opener that records where its content starts ends there
|
|
888
|
-
const content_start = this.value_start_at(index);
|
|
889
|
-
const end = content_start > start ? content_start : start + 1;
|
|
890
|
-
this.set_value(index, start, end);
|
|
891
|
-
this.set_end(index, end);
|
|
892
|
-
} else {
|
|
893
|
-
this.set_value_start(index, start);
|
|
894
|
-
this.set_value_end(index, this.end_at(index));
|
|
895
|
-
}
|
|
896
|
-
return;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
// walk sibling chain and reparent only direct children
|
|
900
|
-
let child = first_child;
|
|
901
|
-
let last_child = first_child;
|
|
902
|
-
|
|
903
|
-
while (child !== 0xffffffff && this.parent_at(child) === index) {
|
|
904
|
-
this.set_parent(child, parent);
|
|
905
|
-
last_child = child;
|
|
906
|
-
child = this.next_at(child);
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
// merge a lone text child into the delimiter, a cell text ends at the pipe past its value
|
|
910
|
-
if (
|
|
911
|
-
last_child === first_child &&
|
|
912
|
-
this.kind_at(first_child) === NodeKind.text
|
|
913
|
-
) {
|
|
914
|
-
this.set_value(
|
|
915
|
-
index,
|
|
916
|
-
this.start_at(index),
|
|
917
|
-
this.value_end_at(first_child)
|
|
918
|
-
);
|
|
919
|
-
this.set_end(index, this.end_at(first_child));
|
|
920
|
-
|
|
921
|
-
// skip the child in the sibling chain
|
|
922
|
-
const after = this.next_at(first_child);
|
|
923
|
-
this.set_next(index, after);
|
|
924
|
-
if (after !== 0xffffffff) {
|
|
925
|
-
this.set_prev(after, index);
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
this.set_first_child(index, 0xffffffff);
|
|
929
|
-
this.set_last_child(index, 0xffffffff);
|
|
930
|
-
return;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
// insert converted node as sibling before first_child, reparent rest
|
|
934
|
-
const first_child_prev = this.prev_at(first_child);
|
|
935
|
-
|
|
936
|
-
this.set_next(index, first_child);
|
|
937
|
-
this.set_prev(first_child, index);
|
|
938
|
-
|
|
939
|
-
if (first_child_prev !== 0xffffffff) {
|
|
940
|
-
this.set_next(first_child_prev, index);
|
|
941
|
-
this.set_prev(index, first_child_prev);
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
if (this.last_child_at(parent) === index) {
|
|
945
|
-
this.set_last_child(parent, last_child);
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
// clear children references
|
|
949
|
-
this.set_first_child(index, 0xffffffff);
|
|
950
|
-
this.set_last_child(index, 0xffffffff);
|
|
951
|
-
|
|
952
|
-
// use start, a soft_break child has no value range
|
|
953
|
-
const value_start = this.start_at(index);
|
|
954
|
-
const value_end = this.start_at(first_child);
|
|
955
|
-
this.set_value(index, value_start, value_end);
|
|
956
|
-
this.set_end(index, value_end);
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
repair(): void {
|
|
960
|
-
const n = this._n;
|
|
961
|
-
for (let i = 0; i < this._size; i++) {
|
|
962
|
-
if (n[i * NodeField.stride + NodeField.pending] !== 0) {
|
|
963
|
-
this.handle_repair(i);
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
pop(): void {
|
|
969
|
-
const i = --this._size;
|
|
970
|
-
// the popped slot is the template again, as a push expects
|
|
971
|
-
fill_template(this._n, i, i + 1);
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* remove a node from the tree and reparent its children to its parent.
|
|
976
|
-
* the node is effectively "unwrapped", its children take its place
|
|
977
|
-
* in the parent's child list.
|
|
978
|
-
*/
|
|
979
|
-
unwrap_node(index: number): void {
|
|
980
|
-
const parent = this.parent_at(index);
|
|
981
|
-
const first_child = this.first_child_at(index);
|
|
982
|
-
|
|
983
|
-
if (first_child === 0xffffffff) {
|
|
984
|
-
// no children, remove from sibling chain
|
|
985
|
-
const prev_sib = this.prev_at(index);
|
|
986
|
-
const next_sib = this.next_at(index);
|
|
987
|
-
if (prev_sib !== 0xffffffff) {
|
|
988
|
-
this.set_next(prev_sib, next_sib);
|
|
989
|
-
} else if (parent !== 0xffffffff) {
|
|
990
|
-
this.set_first_child(parent, next_sib);
|
|
991
|
-
}
|
|
992
|
-
if (next_sib !== 0xffffffff) {
|
|
993
|
-
this.set_prev(next_sib, prev_sib);
|
|
994
|
-
}
|
|
995
|
-
// update parent's last child if we removed the tail
|
|
996
|
-
if (parent !== 0xffffffff && this.last_child_at(parent) === index) {
|
|
997
|
-
this.set_last_child(parent, prev_sib); // 0xffffffff if was only child
|
|
998
|
-
}
|
|
999
|
-
return;
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
// reparent all children and find last child
|
|
1003
|
-
let child = first_child;
|
|
1004
|
-
let last_child = first_child;
|
|
1005
|
-
while (child !== 0xffffffff && this.parent_at(child) === index) {
|
|
1006
|
-
this.set_parent(child, parent);
|
|
1007
|
-
last_child = child;
|
|
1008
|
-
child = this.next_at(child);
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
// splice children into parent's child list where this node was
|
|
1012
|
-
const prev_sib = this.prev_at(index);
|
|
1013
|
-
|
|
1014
|
-
// the actual next sibling of the unwrapped node (not of last_child)
|
|
1015
|
-
const node_next = this.next_at(index);
|
|
1016
|
-
|
|
1017
|
-
if (prev_sib !== 0xffffffff) {
|
|
1018
|
-
this.set_next(prev_sib, first_child);
|
|
1019
|
-
this.set_prev(first_child, prev_sib);
|
|
1020
|
-
} else if (parent !== 0xffffffff) {
|
|
1021
|
-
this.set_first_child(parent, first_child);
|
|
1022
|
-
this.set_prev(first_child, 0xffffffff);
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
// link last child to the unwrapped node's next sibling
|
|
1026
|
-
if (node_next !== 0xffffffff && node_next !== first_child) {
|
|
1027
|
-
this.set_next(last_child, node_next);
|
|
1028
|
-
this.set_prev(node_next, last_child);
|
|
1029
|
-
} else {
|
|
1030
|
-
this.set_next(last_child, 0xffffffff);
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
// update parent's last child if we replaced the tail
|
|
1034
|
-
if (parent !== 0xffffffff && this.last_child_at(parent) === index) {
|
|
1035
|
-
this.set_last_child(parent, last_child);
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
// clear the unwrapped node's links
|
|
1039
|
-
this.set_first_child(index, 0xffffffff);
|
|
1040
|
-
this.set_last_child(index, 0xffffffff);
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
set_parent_kind(index: number, kind: NodeKind): void {
|
|
1044
|
-
const parent_index = this.parent_at(index);
|
|
1045
|
-
if (parent_index !== 0xffffffff) {
|
|
1046
|
-
this.set_kind(parent_index, kind);
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
/** return indices of all nodes matching the given kind (lazy scan). */
|
|
1051
|
-
get_kinds(kind: NodeKind): number[] {
|
|
1052
|
-
const result: number[] = [];
|
|
1053
|
-
const n = this._n;
|
|
1054
|
-
for (let i = 0; i < this._size; i++) {
|
|
1055
|
-
if ((n[i * NodeField.stride] & 0xff) === kind) result.push(i);
|
|
1056
|
-
}
|
|
1057
|
-
return result;
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
kind_at(index: number): NodeKind {
|
|
1061
|
-
return (this._n[index * NodeField.stride] & 0xff) as NodeKind;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
/**
|
|
1065
|
-
* set the kind of the node at the given index
|
|
1066
|
-
* @param index index of the node whose kind to update
|
|
1067
|
-
* @param kind new kind
|
|
1068
|
-
*/
|
|
1069
|
-
set_kind(index: number, kind: NodeKind): void {
|
|
1070
|
-
const n = this._n;
|
|
1071
|
-
const b = index * NodeField.stride;
|
|
1072
|
-
n[b] = (n[b] & 0xffff00) | (kind & 0xff);
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
extra_at(index: number): number {
|
|
1076
|
-
return this._n[index * NodeField.stride] >>> 8;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
/**
|
|
1080
|
-
* set the extra of the node at the given index
|
|
1081
|
-
* @param index index of the node whose extra to update
|
|
1082
|
-
* @param extra new extra
|
|
1083
|
-
*/
|
|
1084
|
-
set_extra(index: number, extra: number): void {
|
|
1085
|
-
const n = this._n;
|
|
1086
|
-
const b = index * NodeField.stride;
|
|
1087
|
-
n[b] = (n[b] & 0xff) | ((extra & 0xffff) << 8);
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
start_at(index: number): number {
|
|
1091
|
-
return this._n[index * NodeField.stride + NodeField.start];
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
/** 0xffffffff while open */
|
|
1095
|
-
end_at(index: number): number {
|
|
1096
|
-
return this._n[index * NodeField.stride + NodeField.end];
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
/**
|
|
1100
|
-
* set the end position of the node at the given index
|
|
1101
|
-
* @param index index of the node whose end position to update
|
|
1102
|
-
* @param end new end position
|
|
1103
|
-
*/
|
|
1104
|
-
set_end(index: number, end: number): void {
|
|
1105
|
-
this._n[index * NodeField.stride + NodeField.end] = end >>> 0;
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
gently_set_end(index: number, end: number): void {
|
|
1109
|
-
const i = index * NodeField.stride + NodeField.end;
|
|
1110
|
-
if (this._n[i] !== 0xffffffff) return;
|
|
1111
|
-
this._n[i] = end >>> 0;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
value_start_at(index: number): number {
|
|
1115
|
-
return this._n[index * NodeField.stride + NodeField.value_start];
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
value_end_at(index: number): number {
|
|
1119
|
-
return this._n[index * NodeField.stride + NodeField.value_end];
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
set_value(index: number, value_start: number, value_end: number): void {
|
|
1123
|
-
const n = this._n;
|
|
1124
|
-
const b = index * NodeField.stride;
|
|
1125
|
-
n[b + NodeField.value_start] = value_start;
|
|
1126
|
-
n[b + NodeField.value_end] = value_end;
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
set_value_start(index: number, value_start: number): void {
|
|
1130
|
-
this._n[index * NodeField.stride + NodeField.value_start] = value_start;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
set_value_end(index: number, value_end: number): void {
|
|
1134
|
-
this._n[index * NodeField.stride + NodeField.value_end] = value_end;
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
gently_set_value_end(index: number, end: number): void {
|
|
1138
|
-
const i = index * NodeField.stride + NodeField.value_end;
|
|
1139
|
-
if (this._n[i] !== 0xffffffff) return;
|
|
1140
|
-
this._n[i] = end >>> 0;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
parent_at(index: number): number {
|
|
1144
|
-
return this._n[index * NodeField.stride + NodeField.parent];
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
set_parent(index: number, parent: number): void {
|
|
1148
|
-
this._n[index * NodeField.stride + NodeField.parent] = parent;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
next_at(index: number): number {
|
|
1152
|
-
return this._n[index * NodeField.stride + NodeField.next];
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
set_next(index: number, next: number): void {
|
|
1156
|
-
this._n[index * NodeField.stride + NodeField.next] = next;
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
prev_at(index: number): number {
|
|
1160
|
-
return this._n[index * NodeField.stride + NodeField.prev];
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
set_prev(index: number, prev: number): void {
|
|
1164
|
-
this._n[index * NodeField.stride + NodeField.prev] = prev;
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
first_child_at(index: number): number {
|
|
1168
|
-
return this._n[index * NodeField.stride + NodeField.first_child];
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
set_first_child(index: number, child: number): void {
|
|
1172
|
-
this._n[index * NodeField.stride + NodeField.first_child] = child;
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
last_child_at(index: number): number {
|
|
1176
|
-
return this._n[index * NodeField.stride + NodeField.last_child];
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
set_last_child(index: number, child: number): void {
|
|
1180
|
-
this._n[index * NodeField.stride + NodeField.last_child] = child;
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
pending_at(index: number): number {
|
|
1184
|
-
return this._n[index * NodeField.stride + NodeField.pending];
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
/** pre-grow to avoid repeated resizes when the final size is estimable. */
|
|
1188
|
-
ensure_capacity(needed: number): void {
|
|
1189
|
-
let next = this._capacity;
|
|
1190
|
-
if (next >= needed) return;
|
|
1191
|
-
while (next < needed) next <<= 1;
|
|
1192
|
-
this.resize(next);
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
/** double the backing storage when capacity is exhausted. */
|
|
1196
|
-
private grow(): Uint32Array {
|
|
1197
|
-
return this.resize(this._capacity << 1);
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
private resize(next: number): Uint32Array {
|
|
1201
|
-
const old = this._n;
|
|
1202
|
-
const words = this._capacity * NodeField.stride;
|
|
1203
|
-
if (old === last_carve) {
|
|
1204
|
-
// nothing was carved since, so extend the region in place
|
|
1205
|
-
const base = slab_used - words * 4;
|
|
1206
|
-
const bytes = next * NODE_BYTES;
|
|
1207
|
-
if (bytes <= SLAB_MAX_CARVE && base + bytes <= SLAB_BYTES) {
|
|
1208
|
-
const n = new Uint32Array(slab, base, next * NodeField.stride);
|
|
1209
|
-
slab_used = base + bytes;
|
|
1210
|
-
last_carve = n;
|
|
1211
|
-
this._capacity = next;
|
|
1212
|
-
this._filled = next;
|
|
1213
|
-
this._n = n;
|
|
1214
|
-
return n;
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
const n = this.alloc(next);
|
|
1218
|
-
// slots from _size on are template in both, a carve has it already
|
|
1219
|
-
const size = this._size;
|
|
1220
|
-
n.set(
|
|
1221
|
-
old.length === size * NodeField.stride
|
|
1222
|
-
? old
|
|
1223
|
-
: old.subarray(0, size * NodeField.stride)
|
|
1224
|
-
);
|
|
1225
|
-
if (this._filled < size) this._filled = size;
|
|
1226
|
-
return n;
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
set_metadata(index: number, metadata: any): void {
|
|
1230
|
-
const n = this._n;
|
|
1231
|
-
const i = index * NodeField.stride + NodeField.meta;
|
|
1232
|
-
const slot = n[i];
|
|
1233
|
-
if (slot !== 0) this._meta[slot - 1] = metadata;
|
|
1234
|
-
else {
|
|
1235
|
-
const meta = this._meta;
|
|
1236
|
-
// a literal holds one slot, a push onto an empty array reserves seventeen
|
|
1237
|
-
if (meta === NO_META) {
|
|
1238
|
-
this._meta = [metadata];
|
|
1239
|
-
n[i] = 1;
|
|
1240
|
-
} else n[i] = meta.push(metadata);
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
metadata_at(index: number): any | undefined {
|
|
1245
|
-
const slot = this._n[index * NodeField.stride + NodeField.meta];
|
|
1246
|
-
// an index past the storage reads undefined, which indexes _meta at nan
|
|
1247
|
-
return slot === 0 ? undefined : this._meta[slot - 1];
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
delete_metadata(index: number): void {
|
|
1251
|
-
this._n[index * NodeField.stride + NodeField.meta] = 0;
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
/**
|
|
1255
|
-
* get the node at the given index or the root node if no index is provided
|
|
1256
|
-
* @param index index of the node to get
|
|
1257
|
-
* @returns node
|
|
1258
|
-
*/
|
|
1259
|
-
get_node(index: number = 0): {
|
|
1260
|
-
kind: string;
|
|
1261
|
-
start: number;
|
|
1262
|
-
end: number;
|
|
1263
|
-
metadata: any;
|
|
1264
|
-
parent: number | null;
|
|
1265
|
-
next: number | null;
|
|
1266
|
-
prev: number | null;
|
|
1267
|
-
children: number[];
|
|
1268
|
-
value: [number, number];
|
|
1269
|
-
index: number;
|
|
1270
|
-
} {
|
|
1271
|
-
const kind = this.kind_at(index);
|
|
1272
|
-
const extra_string = extra_to_string(kind);
|
|
1273
|
-
const extras_object = extra_string
|
|
1274
|
-
? { [extra_string]: this.extra_at(index) }
|
|
1275
|
-
: {};
|
|
1276
|
-
|
|
1277
|
-
const _children = [];
|
|
1278
|
-
|
|
1279
|
-
// walk sibling chain to get all direct children
|
|
1280
|
-
let child = this.first_child_at(index);
|
|
1281
|
-
while (child !== 0xffffffff && this.parent_at(child) === index) {
|
|
1282
|
-
_children.push(child);
|
|
1283
|
-
child = this.next_at(child);
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
const parent = this.parent_at(index);
|
|
1287
|
-
const next = this.next_at(index);
|
|
1288
|
-
const prev = this.prev_at(index);
|
|
1289
|
-
return {
|
|
1290
|
-
kind: kind_to_string(kind),
|
|
1291
|
-
start: this.start_at(index),
|
|
1292
|
-
end: this.end_at(index),
|
|
1293
|
-
metadata: {
|
|
1294
|
-
...this.metadata_at(index),
|
|
1295
|
-
...extras_object,
|
|
1296
|
-
},
|
|
1297
|
-
parent: parent === 0xffffffff ? null : parent,
|
|
1298
|
-
next: next === 0xffffffff ? null : next,
|
|
1299
|
-
prev: prev === 0xffffffff ? null : prev,
|
|
1300
|
-
value: [this.value_start_at(index), this.value_end_at(index)],
|
|
1301
|
-
children: _children,
|
|
1302
|
-
index: index,
|
|
1303
|
-
};
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
/** collects indices for parse errors encountered during tokenization. */
|
|
1308
|
-
export class ErrorCollector {
|
|
1309
|
-
private capacity: number;
|
|
1310
|
-
private indices: Uint32Array;
|
|
1311
|
-
private _size: number;
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* create a collector that records error indices encountered while parsing.
|
|
1315
|
-
* @param initial_capacity requested starting capacity for error indices.
|
|
1316
|
-
*/
|
|
1317
|
-
constructor(initial_capacity = DEFAULT_ERROR_CAPACITY) {
|
|
1318
|
-
const capacity = next_power_of_two(initial_capacity);
|
|
1319
|
-
this.capacity = capacity;
|
|
1320
|
-
this.indices = new Uint32Array(capacity);
|
|
1321
|
-
this._size = 0;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
/** clear previously stored errors. */
|
|
1325
|
-
reset(): void {
|
|
1326
|
-
this._size = 0;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
/** number of errors recorded so far. */
|
|
1330
|
-
get size(): number {
|
|
1331
|
-
return this._size;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
/**
|
|
1335
|
-
* append an error position to the collector, growing storage as needed.
|
|
1336
|
-
* @param index offset in the source string where the error occurred.
|
|
1337
|
-
*/
|
|
1338
|
-
push(index: number): void {
|
|
1339
|
-
const next_index = this._size;
|
|
1340
|
-
if (next_index >= this.capacity) {
|
|
1341
|
-
this.grow();
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
this.indices[next_index] = index >>> 0;
|
|
1345
|
-
this._size = next_index + 1;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
/**
|
|
1349
|
-
* get the stored error index at the given position.
|
|
1350
|
-
* @param position position within the collector.
|
|
1351
|
-
*/
|
|
1352
|
-
at(position: number): number {
|
|
1353
|
-
return this.indices[position];
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
/** create a view over the recorded errors. */
|
|
1357
|
-
slice(): Uint32Array {
|
|
1358
|
-
return this.indices.subarray(0, this._size);
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
/** double the backing storage when capacity is exhausted. */
|
|
1362
|
-
private grow(): void {
|
|
1363
|
-
const next = this.capacity << 1;
|
|
1364
|
-
const next_indices = new Uint32Array(next);
|
|
1365
|
-
next_indices.set(this.indices);
|
|
1366
|
-
this.capacity = next;
|
|
1367
|
-
this.indices = next_indices;
|
|
1368
|
-
}
|
|
1369
|
-
}
|