@mdsvex/parse 0.0.0 → 1.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2107) hide show
  1. package/CHANGELOG.md +234 -0
  2. package/LICENSE +21 -0
  3. package/PLUGINS.md +296 -0
  4. package/WIRE_FORMAT.md +690 -0
  5. package/dist/buf-utils.js +38 -0
  6. package/dist/buf_utils.d.ts +13 -0
  7. package/dist/constants.d.ts +68 -0
  8. package/dist/cursor.d.ts +83 -0
  9. package/dist/cursor.js +185 -0
  10. package/dist/main.d.ts +808 -0
  11. package/dist/main.js +7120 -0
  12. package/dist/node_view-bvM0i0-p.js +407 -0
  13. package/dist/node_view.d.ts +115 -0
  14. package/dist/opcodes.d.ts +92 -0
  15. package/dist/opcodes.js +1 -0
  16. package/dist/plugin_dispatch.d.ts +82 -0
  17. package/dist/plugin_types.d.ts +31 -0
  18. package/dist/tree-builder.js +219 -0
  19. package/dist/tree_builder.d.ts +62 -0
  20. package/dist/types.d.ts +25 -0
  21. package/dist/undo_log.d.ts +113 -0
  22. package/dist/utils.d.ts +268 -0
  23. package/dist/utils.js +931 -0
  24. package/dist/utils.spec.d.ts +1 -0
  25. package/dist/wire-tree-builder.js +168 -0
  26. package/dist/wire_emitter.d.ts +66 -0
  27. package/dist/wire_tree_builder.d.ts +55 -0
  28. package/package.json +57 -8
  29. package/src/buf_utils.ts +54 -0
  30. package/src/constants.ts +101 -0
  31. package/src/cursor.ts +212 -0
  32. package/src/main.ts +11991 -0
  33. package/src/node_view.ts +460 -0
  34. package/src/opcodes.ts +123 -0
  35. package/src/plugin_dispatch.ts +744 -0
  36. package/src/plugin_types.ts +36 -0
  37. package/src/tree_builder.ts +394 -0
  38. package/src/types.ts +30 -0
  39. package/src/undo_log.ts +336 -0
  40. package/src/utils.spec.ts +424 -0
  41. package/src/utils.ts +1369 -0
  42. package/src/wire_emitter.ts +475 -0
  43. package/src/wire_tree_builder.ts +324 -0
  44. package/test/ast_snapshots.spec.ts +155 -0
  45. package/test/atx_headings.spec.ts +260 -0
  46. package/test/autolinks.spec.ts +306 -0
  47. package/test/backslash_escapes.spec.ts +266 -0
  48. package/test/blank_lines.spec.ts +113 -0
  49. package/test/block_quotes.spec.ts +533 -0
  50. package/test/code_spans.spec.ts +862 -0
  51. package/test/crlf.spec.ts +173 -0
  52. package/test/directives.spec.ts +1305 -0
  53. package/test/emphasis.spec.ts +1892 -0
  54. package/test/fenced_code_blocks.spec.ts +375 -0
  55. package/test/fixtures/hybrid/code-escaping.svx +10 -0
  56. package/test/fixtures/hybrid/code-highlight-nesting.svx +6 -0
  57. package/test/fixtures/hybrid/component-children.svx +24 -0
  58. package/test/fixtures/hybrid/component-simple-00.svx +9 -0
  59. package/test/fixtures/hybrid/component-simple-01.svx +7 -0
  60. package/test/fixtures/hybrid/component-simple-02.svx +1 -0
  61. package/test/fixtures/hybrid/component-simple-03.svx +7 -0
  62. package/test/fixtures/hybrid/component-simple-04.svx +9 -0
  63. package/test/fixtures/hybrid/dollar-one-in-frontmatter.svx +5 -0
  64. package/test/fixtures/hybrid/error.svx +37 -0
  65. package/test/fixtures/hybrid/link-curlies.svx +22 -0
  66. package/test/fixtures/hybrid/tags-in-frontmatter.svx +3 -0
  67. package/test/fixtures/markdown/anchors-by-reference.md +11 -0
  68. package/test/fixtures/markdown/anchors-followed-by-brakets.md +7 -0
  69. package/test/fixtures/markdown/automatic-anchors.md +2 -0
  70. package/test/fixtures/markdown/blockquote-followed-by-code.md +10 -0
  71. package/test/fixtures/markdown/blockquote-inside-code.md +11 -0
  72. package/test/fixtures/markdown/blockquote-nested-markdown.md +10 -0
  73. package/test/fixtures/markdown/blockquote.md +4 -0
  74. package/test/fixtures/markdown/code-block-html-escape.md +6 -0
  75. package/test/fixtures/markdown/code-block-with-special-chars.md +8 -0
  76. package/test/fixtures/markdown/code-block.md +6 -0
  77. package/test/fixtures/markdown/double-emphasis.md +7 -0
  78. package/test/fixtures/markdown/doubline-list.md +4 -0
  79. package/test/fixtures/markdown/ellipsis.md +24 -0
  80. package/test/fixtures/markdown/emphasis-inside-inline-code.md +1 -0
  81. package/test/fixtures/markdown/emphasis.md +88 -0
  82. package/test/fixtures/markdown/encodeHTMLCodeTags.md +5 -0
  83. package/test/fixtures/markdown/escaped-html-taglikes.md +7 -0
  84. package/test/fixtures/markdown/escaped-number-period.md +1 -0
  85. package/test/fixtures/markdown/escaping.md +32 -0
  86. package/test/fixtures/markdown/github-style-at-start.md +7 -0
  87. package/test/fixtures/markdown/github-style-codeblock-inside-quote.md +13 -0
  88. package/test/fixtures/markdown/github-style-codeblock.md +34 -0
  89. package/test/fixtures/markdown/github-style-linebreaks.md +4 -0
  90. package/test/fixtures/markdown/h1-with-double-hash.md +1 -0
  91. package/test/fixtures/markdown/h1-with-equals.md +2 -0
  92. package/test/fixtures/markdown/h1-with-single-hash.md +1 -0
  93. package/test/fixtures/markdown/h2-with-dashes.md +2 -0
  94. package/test/fixtures/markdown/h2-with-double-hash.md +1 -0
  95. package/test/fixtures/markdown/h2-with-single-hash.md +1 -0
  96. package/test/fixtures/markdown/h3-with-double-hash.md +1 -0
  97. package/test/fixtures/markdown/h3-with-single-hash.md +1 -0
  98. package/test/fixtures/markdown/h4-with-single-hash.md +1 -0
  99. package/test/fixtures/markdown/h5-with-single-hash.md +1 -0
  100. package/test/fixtures/markdown/h6-with-single-hash.md +1 -0
  101. package/test/fixtures/markdown/horizontal-rules.md +10 -0
  102. package/test/fixtures/markdown/html-comments.md +8 -0
  103. package/test/fixtures/markdown/html-inside-listed-code.md +8 -0
  104. package/test/fixtures/markdown/html5-strutural-tags.md +68 -0
  105. package/test/fixtures/markdown/images-followed-by-brackets.md +3 -0
  106. package/test/fixtures/markdown/images.md +14 -0
  107. package/test/fixtures/markdown/implicit-anchors.md +7 -0
  108. package/test/fixtures/markdown/inline-anchors.md +3 -0
  109. package/test/fixtures/markdown/inline-code.md +13 -0
  110. package/test/fixtures/markdown/inline-escaped-chars.md +2 -0
  111. package/test/fixtures/markdown/inline-style-tag.md +5 -0
  112. package/test/fixtures/markdown/lazy-blockquote.md +3 -0
  113. package/test/fixtures/markdown/line-starts-with-html.md +3 -0
  114. package/test/fixtures/markdown/list-followed-by-blockquote.md +9 -0
  115. package/test/fixtures/markdown/list-followed-by-ghcode.md +13 -0
  116. package/test/fixtures/markdown/list-with-blockquote.md +4 -0
  117. package/test/fixtures/markdown/literal-html-tags.md +9 -0
  118. package/test/fixtures/markdown/multi-paragraph-list.md +5 -0
  119. package/test/fixtures/markdown/multiline-unordered-list.md +3 -0
  120. package/test/fixtures/markdown/nested-blockquote.md +5 -0
  121. package/test/fixtures/markdown/nested-gh-codeblocks.md +9 -0
  122. package/test/fixtures/markdown/obfuscated-emails.md +0 -0
  123. package/test/fixtures/markdown/ordered-list-same-number.md +3 -0
  124. package/test/fixtures/markdown/ordered-list-starting-number.md +10 -0
  125. package/test/fixtures/markdown/ordered-list-wrong-numbers.md +3 -0
  126. package/test/fixtures/markdown/ordered-list.md +3 -0
  127. package/test/fixtures/markdown/paragraphed-list-with-sublists.md +13 -0
  128. package/test/fixtures/markdown/pre-code-tags-inside-code-block.md +7 -0
  129. package/test/fixtures/markdown/pre-code-tags.md +19 -0
  130. package/test/fixtures/markdown/relative-anchors.md +1 -0
  131. package/test/fixtures/markdown/repeated-headers.md +5 -0
  132. package/test/fixtures/markdown/simple-paragraph.md +1 -0
  133. package/test/fixtures/markdown/strip-references.md +13 -0
  134. package/test/fixtures/markdown/strong.md +5 -0
  135. package/test/fixtures/markdown/unordered-list-asterisk.md +3 -0
  136. package/test/fixtures/markdown/unordered-list-minus.md +3 -0
  137. package/test/fixtures/markdown/unordered-list-plus.md +3 -0
  138. package/test/fixtures/markdown/url-with-parenthesis.md +1 -0
  139. package/test/fixtures/pfm/atx_headings/62.md +6 -0
  140. package/test/fixtures/pfm/atx_headings/63.md +1 -0
  141. package/test/fixtures/pfm/atx_headings/64.md +3 -0
  142. package/test/fixtures/pfm/atx_headings/65.md +1 -0
  143. package/test/fixtures/pfm/atx_headings/66.md +1 -0
  144. package/test/fixtures/pfm/atx_headings/67.md +1 -0
  145. package/test/fixtures/pfm/atx_headings/68.md +3 -0
  146. package/test/fixtures/pfm/atx_headings/69.md +1 -0
  147. package/test/fixtures/pfm/atx_headings/70.md +2 -0
  148. package/test/fixtures/pfm/atx_headings/71.md +2 -0
  149. package/test/fixtures/pfm/atx_headings/72.md +2 -0
  150. package/test/fixtures/pfm/atx_headings/73.md +1 -0
  151. package/test/fixtures/pfm/atx_headings/74.md +1 -0
  152. package/test/fixtures/pfm/atx_headings/75.md +1 -0
  153. package/test/fixtures/pfm/atx_headings/76.md +3 -0
  154. package/test/fixtures/pfm/atx_headings/77.md +3 -0
  155. package/test/fixtures/pfm/atx_headings/78.md +3 -0
  156. package/test/fixtures/pfm/atx_headings/79.md +3 -0
  157. package/test/fixtures/pfm/autolinks/594.md +1 -0
  158. package/test/fixtures/pfm/autolinks/595.md +1 -0
  159. package/test/fixtures/pfm/autolinks/596.md +1 -0
  160. package/test/fixtures/pfm/autolinks/597.md +1 -0
  161. package/test/fixtures/pfm/autolinks/598.md +1 -0
  162. package/test/fixtures/pfm/autolinks/599.md +1 -0
  163. package/test/fixtures/pfm/autolinks/600.md +1 -0
  164. package/test/fixtures/pfm/autolinks/601.md +1 -0
  165. package/test/fixtures/pfm/autolinks/602.md +1 -0
  166. package/test/fixtures/pfm/autolinks/603.md +1 -0
  167. package/test/fixtures/pfm/autolinks/604.md +1 -0
  168. package/test/fixtures/pfm/autolinks/605.md +1 -0
  169. package/test/fixtures/pfm/autolinks/606.md +1 -0
  170. package/test/fixtures/pfm/autolinks/607.md +1 -0
  171. package/test/fixtures/pfm/autolinks/608.md +1 -0
  172. package/test/fixtures/pfm/autolinks/609.md +1 -0
  173. package/test/fixtures/pfm/autolinks/610.md +1 -0
  174. package/test/fixtures/pfm/autolinks/611.md +1 -0
  175. package/test/fixtures/pfm/autolinks/612.md +1 -0
  176. package/test/fixtures/pfm/backslash_escapes/12.md +1 -0
  177. package/test/fixtures/pfm/backslash_escapes/13.md +1 -0
  178. package/test/fixtures/pfm/backslash_escapes/14.md +9 -0
  179. package/test/fixtures/pfm/backslash_escapes/15.md +1 -0
  180. package/test/fixtures/pfm/backslash_escapes/16.md +2 -0
  181. package/test/fixtures/pfm/backslash_escapes/17.md +1 -0
  182. package/test/fixtures/pfm/backslash_escapes/18.md +1 -0
  183. package/test/fixtures/pfm/backslash_escapes/19.md +3 -0
  184. package/test/fixtures/pfm/backslash_escapes/20.md +1 -0
  185. package/test/fixtures/pfm/backslash_escapes/21.md +1 -0
  186. package/test/fixtures/pfm/backslash_escapes/22.md +1 -0
  187. package/test/fixtures/pfm/backslash_escapes/23.md +3 -0
  188. package/test/fixtures/pfm/backslash_escapes/24.md +3 -0
  189. package/test/fixtures/pfm/blank_lines/227.md +8 -0
  190. package/test/fixtures/pfm/block_quotes/228.md +3 -0
  191. package/test/fixtures/pfm/block_quotes/229.md +3 -0
  192. package/test/fixtures/pfm/block_quotes/230.md +3 -0
  193. package/test/fixtures/pfm/block_quotes/231.md +3 -0
  194. package/test/fixtures/pfm/block_quotes/232.md +3 -0
  195. package/test/fixtures/pfm/block_quotes/233.md +3 -0
  196. package/test/fixtures/pfm/block_quotes/234.md +2 -0
  197. package/test/fixtures/pfm/block_quotes/235.md +2 -0
  198. package/test/fixtures/pfm/block_quotes/236.md +2 -0
  199. package/test/fixtures/pfm/block_quotes/237.md +3 -0
  200. package/test/fixtures/pfm/block_quotes/238.md +2 -0
  201. package/test/fixtures/pfm/block_quotes/239.md +1 -0
  202. package/test/fixtures/pfm/block_quotes/240.md +3 -0
  203. package/test/fixtures/pfm/block_quotes/241.md +3 -0
  204. package/test/fixtures/pfm/block_quotes/242.md +3 -0
  205. package/test/fixtures/pfm/block_quotes/243.md +2 -0
  206. package/test/fixtures/pfm/block_quotes/244.md +3 -0
  207. package/test/fixtures/pfm/block_quotes/245.md +2 -0
  208. package/test/fixtures/pfm/block_quotes/246.md +3 -0
  209. package/test/fixtures/pfm/block_quotes/247.md +2 -0
  210. package/test/fixtures/pfm/block_quotes/248.md +3 -0
  211. package/test/fixtures/pfm/block_quotes/249.md +3 -0
  212. package/test/fixtures/pfm/block_quotes/250.md +2 -0
  213. package/test/fixtures/pfm/block_quotes/251.md +3 -0
  214. package/test/fixtures/pfm/block_quotes/252.md +3 -0
  215. package/test/fixtures/pfm/block_quotes/pfm_fence_close.md +4 -0
  216. package/test/fixtures/pfm/block_quotes/pfm_fence_close_compact.md +4 -0
  217. package/test/fixtures/pfm/block_quotes/pfm_fence_close_end_quote.md +5 -0
  218. package/test/fixtures/pfm/block_quotes/pfm_fence_close_info.md +5 -0
  219. package/test/fixtures/pfm/block_quotes/pfm_fence_close_longer.md +4 -0
  220. package/test/fixtures/pfm/block_quotes/pfm_fence_close_nested.md +3 -0
  221. package/test/fixtures/pfm/block_quotes/pfm_fence_close_twice.md +6 -0
  222. package/test/fixtures/pfm/block_quotes/pfm_fence_info_eof.md +1 -0
  223. package/test/fixtures/pfm/block_quotes/pfm_fence_unclosed.md +2 -0
  224. package/test/fixtures/pfm/code_spans/328.md +1 -0
  225. package/test/fixtures/pfm/code_spans/329.md +1 -0
  226. package/test/fixtures/pfm/code_spans/330.md +1 -0
  227. package/test/fixtures/pfm/code_spans/331.md +1 -0
  228. package/test/fixtures/pfm/code_spans/332.md +1 -0
  229. package/test/fixtures/pfm/code_spans/333.md +1 -0
  230. package/test/fixtures/pfm/code_spans/334.md +2 -0
  231. package/test/fixtures/pfm/code_spans/335.md +5 -0
  232. package/test/fixtures/pfm/code_spans/336.md +3 -0
  233. package/test/fixtures/pfm/code_spans/337.md +2 -0
  234. package/test/fixtures/pfm/code_spans/338.md +1 -0
  235. package/test/fixtures/pfm/code_spans/339.md +1 -0
  236. package/test/fixtures/pfm/code_spans/340.md +1 -0
  237. package/test/fixtures/pfm/code_spans/341.md +1 -0
  238. package/test/fixtures/pfm/code_spans/342.md +1 -0
  239. package/test/fixtures/pfm/code_spans/343.md +1 -0
  240. package/test/fixtures/pfm/code_spans/344.md +1 -0
  241. package/test/fixtures/pfm/code_spans/345.md +1 -0
  242. package/test/fixtures/pfm/code_spans/346.md +1 -0
  243. package/test/fixtures/pfm/code_spans/347.md +1 -0
  244. package/test/fixtures/pfm/code_spans/348.md +1 -0
  245. package/test/fixtures/pfm/code_spans/349.md +1 -0
  246. package/test/fixtures/pfm/code_spans/pfm_328_1.md +1 -0
  247. package/test/fixtures/pfm/code_spans/pfm_328_2.md +1 -0
  248. package/test/fixtures/pfm/code_spans/pfm_328_3.md +1 -0
  249. package/test/fixtures/pfm/code_spans/pfm_328_4.md +1 -0
  250. package/test/fixtures/pfm/code_spans/pfm_328_5.md +1 -0
  251. package/test/fixtures/pfm/code_spans/pfm_328_6.md +1 -0
  252. package/test/fixtures/pfm/code_spans/pfm_328_7.md +1 -0
  253. package/test/fixtures/pfm/code_spans/pfm_328_8.md +1 -0
  254. package/test/fixtures/pfm/code_spans/pfm_328_9.md +2 -0
  255. package/test/fixtures/pfm/emphasis_and_strong_emphasis/350.md +1 -0
  256. package/test/fixtures/pfm/emphasis_and_strong_emphasis/351.md +1 -0
  257. package/test/fixtures/pfm/emphasis_and_strong_emphasis/352.md +1 -0
  258. package/test/fixtures/pfm/emphasis_and_strong_emphasis/353.md +1 -0
  259. package/test/fixtures/pfm/emphasis_and_strong_emphasis/354.md +5 -0
  260. package/test/fixtures/pfm/emphasis_and_strong_emphasis/355.md +1 -0
  261. package/test/fixtures/pfm/emphasis_and_strong_emphasis/356.md +1 -0
  262. package/test/fixtures/pfm/emphasis_and_strong_emphasis/357.md +1 -0
  263. package/test/fixtures/pfm/emphasis_and_strong_emphasis/358.md +1 -0
  264. package/test/fixtures/pfm/emphasis_and_strong_emphasis/359.md +1 -0
  265. package/test/fixtures/pfm/emphasis_and_strong_emphasis/360.md +1 -0
  266. package/test/fixtures/pfm/emphasis_and_strong_emphasis/361.md +1 -0
  267. package/test/fixtures/pfm/emphasis_and_strong_emphasis/362.md +1 -0
  268. package/test/fixtures/pfm/emphasis_and_strong_emphasis/363.md +1 -0
  269. package/test/fixtures/pfm/emphasis_and_strong_emphasis/364.md +1 -0
  270. package/test/fixtures/pfm/emphasis_and_strong_emphasis/365.md +1 -0
  271. package/test/fixtures/pfm/emphasis_and_strong_emphasis/366.md +1 -0
  272. package/test/fixtures/pfm/emphasis_and_strong_emphasis/367.md +2 -0
  273. package/test/fixtures/pfm/emphasis_and_strong_emphasis/368.md +1 -0
  274. package/test/fixtures/pfm/emphasis_and_strong_emphasis/369.md +1 -0
  275. package/test/fixtures/pfm/emphasis_and_strong_emphasis/370.md +1 -0
  276. package/test/fixtures/pfm/emphasis_and_strong_emphasis/371.md +1 -0
  277. package/test/fixtures/pfm/emphasis_and_strong_emphasis/372.md +1 -0
  278. package/test/fixtures/pfm/emphasis_and_strong_emphasis/373.md +1 -0
  279. package/test/fixtures/pfm/emphasis_and_strong_emphasis/374.md +1 -0
  280. package/test/fixtures/pfm/emphasis_and_strong_emphasis/375.md +1 -0
  281. package/test/fixtures/pfm/emphasis_and_strong_emphasis/376.md +1 -0
  282. package/test/fixtures/pfm/emphasis_and_strong_emphasis/377.md +1 -0
  283. package/test/fixtures/pfm/emphasis_and_strong_emphasis/378.md +1 -0
  284. package/test/fixtures/pfm/emphasis_and_strong_emphasis/379.md +1 -0
  285. package/test/fixtures/pfm/emphasis_and_strong_emphasis/380.md +1 -0
  286. package/test/fixtures/pfm/emphasis_and_strong_emphasis/381.md +1 -0
  287. package/test/fixtures/pfm/emphasis_and_strong_emphasis/382.md +1 -0
  288. package/test/fixtures/pfm/emphasis_and_strong_emphasis/383.md +1 -0
  289. package/test/fixtures/pfm/emphasis_and_strong_emphasis/384.md +2 -0
  290. package/test/fixtures/pfm/emphasis_and_strong_emphasis/385.md +1 -0
  291. package/test/fixtures/pfm/emphasis_and_strong_emphasis/386.md +1 -0
  292. package/test/fixtures/pfm/emphasis_and_strong_emphasis/387.md +1 -0
  293. package/test/fixtures/pfm/emphasis_and_strong_emphasis/388.md +1 -0
  294. package/test/fixtures/pfm/emphasis_and_strong_emphasis/389.md +1 -0
  295. package/test/fixtures/pfm/emphasis_and_strong_emphasis/390.md +1 -0
  296. package/test/fixtures/pfm/emphasis_and_strong_emphasis/391.md +1 -0
  297. package/test/fixtures/pfm/emphasis_and_strong_emphasis/392.md +1 -0
  298. package/test/fixtures/pfm/emphasis_and_strong_emphasis/393.md +1 -0
  299. package/test/fixtures/pfm/emphasis_and_strong_emphasis/394.md +2 -0
  300. package/test/fixtures/pfm/emphasis_and_strong_emphasis/395.md +1 -0
  301. package/test/fixtures/pfm/emphasis_and_strong_emphasis/396.md +1 -0
  302. package/test/fixtures/pfm/emphasis_and_strong_emphasis/397.md +1 -0
  303. package/test/fixtures/pfm/emphasis_and_strong_emphasis/398.md +1 -0
  304. package/test/fixtures/pfm/emphasis_and_strong_emphasis/399.md +1 -0
  305. package/test/fixtures/pfm/emphasis_and_strong_emphasis/400.md +1 -0
  306. package/test/fixtures/pfm/emphasis_and_strong_emphasis/401.md +1 -0
  307. package/test/fixtures/pfm/emphasis_and_strong_emphasis/402.md +1 -0
  308. package/test/fixtures/pfm/emphasis_and_strong_emphasis/403.md +1 -0
  309. package/test/fixtures/pfm/emphasis_and_strong_emphasis/404.md +1 -0
  310. package/test/fixtures/pfm/emphasis_and_strong_emphasis/405.md +2 -0
  311. package/test/fixtures/pfm/emphasis_and_strong_emphasis/406.md +1 -0
  312. package/test/fixtures/pfm/emphasis_and_strong_emphasis/407.md +1 -0
  313. package/test/fixtures/pfm/emphasis_and_strong_emphasis/408.md +1 -0
  314. package/test/fixtures/pfm/emphasis_and_strong_emphasis/409.md +1 -0
  315. package/test/fixtures/pfm/emphasis_and_strong_emphasis/410.md +1 -0
  316. package/test/fixtures/pfm/emphasis_and_strong_emphasis/411.md +1 -0
  317. package/test/fixtures/pfm/emphasis_and_strong_emphasis/412.md +1 -0
  318. package/test/fixtures/pfm/emphasis_and_strong_emphasis/413.md +1 -0
  319. package/test/fixtures/pfm/emphasis_and_strong_emphasis/414.md +1 -0
  320. package/test/fixtures/pfm/emphasis_and_strong_emphasis/415.md +1 -0
  321. package/test/fixtures/pfm/emphasis_and_strong_emphasis/416.md +1 -0
  322. package/test/fixtures/pfm/emphasis_and_strong_emphasis/417.md +1 -0
  323. package/test/fixtures/pfm/emphasis_and_strong_emphasis/418.md +1 -0
  324. package/test/fixtures/pfm/emphasis_and_strong_emphasis/419.md +1 -0
  325. package/test/fixtures/pfm/emphasis_and_strong_emphasis/420.md +1 -0
  326. package/test/fixtures/pfm/emphasis_and_strong_emphasis/421.md +1 -0
  327. package/test/fixtures/pfm/emphasis_and_strong_emphasis/422.md +1 -0
  328. package/test/fixtures/pfm/emphasis_and_strong_emphasis/423.md +2 -0
  329. package/test/fixtures/pfm/emphasis_and_strong_emphasis/424.md +1 -0
  330. package/test/fixtures/pfm/emphasis_and_strong_emphasis/425.md +1 -0
  331. package/test/fixtures/pfm/emphasis_and_strong_emphasis/426.md +1 -0
  332. package/test/fixtures/pfm/emphasis_and_strong_emphasis/427.md +1 -0
  333. package/test/fixtures/pfm/emphasis_and_strong_emphasis/428.md +1 -0
  334. package/test/fixtures/pfm/emphasis_and_strong_emphasis/429.md +1 -0
  335. package/test/fixtures/pfm/emphasis_and_strong_emphasis/430.md +1 -0
  336. package/test/fixtures/pfm/emphasis_and_strong_emphasis/431.md +1 -0
  337. package/test/fixtures/pfm/emphasis_and_strong_emphasis/432.md +2 -0
  338. package/test/fixtures/pfm/emphasis_and_strong_emphasis/433.md +1 -0
  339. package/test/fixtures/pfm/emphasis_and_strong_emphasis/434.md +1 -0
  340. package/test/fixtures/pfm/emphasis_and_strong_emphasis/435.md +1 -0
  341. package/test/fixtures/pfm/emphasis_and_strong_emphasis/436.md +1 -0
  342. package/test/fixtures/pfm/emphasis_and_strong_emphasis/437.md +1 -0
  343. package/test/fixtures/pfm/emphasis_and_strong_emphasis/438.md +1 -0
  344. package/test/fixtures/pfm/emphasis_and_strong_emphasis/439.md +1 -0
  345. package/test/fixtures/pfm/emphasis_and_strong_emphasis/440.md +1 -0
  346. package/test/fixtures/pfm/emphasis_and_strong_emphasis/441.md +1 -0
  347. package/test/fixtures/pfm/emphasis_and_strong_emphasis/442.md +1 -0
  348. package/test/fixtures/pfm/emphasis_and_strong_emphasis/443.md +1 -0
  349. package/test/fixtures/pfm/emphasis_and_strong_emphasis/444.md +1 -0
  350. package/test/fixtures/pfm/emphasis_and_strong_emphasis/445.md +1 -0
  351. package/test/fixtures/pfm/emphasis_and_strong_emphasis/446.md +1 -0
  352. package/test/fixtures/pfm/emphasis_and_strong_emphasis/447.md +1 -0
  353. package/test/fixtures/pfm/emphasis_and_strong_emphasis/448.md +1 -0
  354. package/test/fixtures/pfm/emphasis_and_strong_emphasis/449.md +1 -0
  355. package/test/fixtures/pfm/emphasis_and_strong_emphasis/450.md +1 -0
  356. package/test/fixtures/pfm/emphasis_and_strong_emphasis/451.md +1 -0
  357. package/test/fixtures/pfm/emphasis_and_strong_emphasis/452.md +1 -0
  358. package/test/fixtures/pfm/emphasis_and_strong_emphasis/453.md +1 -0
  359. package/test/fixtures/pfm/emphasis_and_strong_emphasis/454.md +1 -0
  360. package/test/fixtures/pfm/emphasis_and_strong_emphasis/455.md +1 -0
  361. package/test/fixtures/pfm/emphasis_and_strong_emphasis/456.md +1 -0
  362. package/test/fixtures/pfm/emphasis_and_strong_emphasis/457.md +1 -0
  363. package/test/fixtures/pfm/emphasis_and_strong_emphasis/458.md +1 -0
  364. package/test/fixtures/pfm/emphasis_and_strong_emphasis/459.md +1 -0
  365. package/test/fixtures/pfm/emphasis_and_strong_emphasis/460.md +1 -0
  366. package/test/fixtures/pfm/emphasis_and_strong_emphasis/461.md +1 -0
  367. package/test/fixtures/pfm/emphasis_and_strong_emphasis/462.md +1 -0
  368. package/test/fixtures/pfm/emphasis_and_strong_emphasis/463.md +1 -0
  369. package/test/fixtures/pfm/emphasis_and_strong_emphasis/464.md +1 -0
  370. package/test/fixtures/pfm/emphasis_and_strong_emphasis/465.md +1 -0
  371. package/test/fixtures/pfm/emphasis_and_strong_emphasis/466.md +1 -0
  372. package/test/fixtures/pfm/emphasis_and_strong_emphasis/467.md +1 -0
  373. package/test/fixtures/pfm/emphasis_and_strong_emphasis/468.md +1 -0
  374. package/test/fixtures/pfm/emphasis_and_strong_emphasis/469.md +1 -0
  375. package/test/fixtures/pfm/emphasis_and_strong_emphasis/470.md +1 -0
  376. package/test/fixtures/pfm/emphasis_and_strong_emphasis/471.md +1 -0
  377. package/test/fixtures/pfm/emphasis_and_strong_emphasis/472.md +1 -0
  378. package/test/fixtures/pfm/emphasis_and_strong_emphasis/473.md +1 -0
  379. package/test/fixtures/pfm/emphasis_and_strong_emphasis/474.md +1 -0
  380. package/test/fixtures/pfm/emphasis_and_strong_emphasis/475.md +1 -0
  381. package/test/fixtures/pfm/emphasis_and_strong_emphasis/476.md +1 -0
  382. package/test/fixtures/pfm/emphasis_and_strong_emphasis/477.md +1 -0
  383. package/test/fixtures/pfm/emphasis_and_strong_emphasis/478.md +1 -0
  384. package/test/fixtures/pfm/emphasis_and_strong_emphasis/479.md +1 -0
  385. package/test/fixtures/pfm/emphasis_and_strong_emphasis/480.md +1 -0
  386. package/test/fixtures/pfm/emphasis_and_strong_emphasis/481.md +1 -0
  387. package/test/fixtures/pfm/fenced_code_blocks/119.md +4 -0
  388. package/test/fixtures/pfm/fenced_code_blocks/121.md +3 -0
  389. package/test/fixtures/pfm/fenced_code_blocks/122.md +4 -0
  390. package/test/fixtures/pfm/fenced_code_blocks/124.md +4 -0
  391. package/test/fixtures/pfm/fenced_code_blocks/126.md +1 -0
  392. package/test/fixtures/pfm/fenced_code_blocks/127.md +4 -0
  393. package/test/fixtures/pfm/fenced_code_blocks/128.md +4 -0
  394. package/test/fixtures/pfm/fenced_code_blocks/130.md +2 -0
  395. package/test/fixtures/pfm/fenced_code_blocks/131.md +4 -0
  396. package/test/fixtures/pfm/fenced_code_blocks/132.md +5 -0
  397. package/test/fixtures/pfm/fenced_code_blocks/133.md +5 -0
  398. package/test/fixtures/pfm/fenced_code_blocks/134.md +3 -0
  399. package/test/fixtures/pfm/fenced_code_blocks/135.md +3 -0
  400. package/test/fixtures/pfm/fenced_code_blocks/136.md +3 -0
  401. package/test/fixtures/pfm/fenced_code_blocks/137.md +3 -0
  402. package/test/fixtures/pfm/fenced_code_blocks/138.md +2 -0
  403. package/test/fixtures/pfm/fenced_code_blocks/140.md +5 -0
  404. package/test/fixtures/pfm/fenced_code_blocks/142.md +5 -0
  405. package/test/fixtures/pfm/fenced_code_blocks/144.md +2 -0
  406. package/test/fixtures/pfm/fenced_code_blocks/145.md +2 -0
  407. package/test/fixtures/pfm/fenced_code_blocks/pfm_119_2.md +8 -0
  408. package/test/fixtures/pfm/fenced_code_blocks/pfm_119_3.md +5 -0
  409. package/test/fixtures/pfm/fenced_code_blocks/pfm_info_eof.md +1 -0
  410. package/test/fixtures/pfm/fenced_code_blocks/pfm_info_eof_no_lf.md +1 -0
  411. package/test/fixtures/pfm/frontmatter/1.md +5 -0
  412. package/test/fixtures/pfm/frontmatter/10.md +1 -0
  413. package/test/fixtures/pfm/frontmatter/2.md +2 -0
  414. package/test/fixtures/pfm/frontmatter/3.md +4 -0
  415. package/test/fixtures/pfm/frontmatter/4.md +5 -0
  416. package/test/fixtures/pfm/frontmatter/5.md +6 -0
  417. package/test/fixtures/pfm/frontmatter/6.md +8 -0
  418. package/test/fixtures/pfm/frontmatter/7.md +4 -0
  419. package/test/fixtures/pfm/frontmatter/8.md +5 -0
  420. package/test/fixtures/pfm/frontmatter/9.md +4 -0
  421. package/test/fixtures/pfm/generic_directives/001.md +1 -0
  422. package/test/fixtures/pfm/generic_directives/002.md +1 -0
  423. package/test/fixtures/pfm/generic_directives/003.md +1 -0
  424. package/test/fixtures/pfm/generic_directives/004.md +1 -0
  425. package/test/fixtures/pfm/generic_directives/005.md +1 -0
  426. package/test/fixtures/pfm/generic_directives/006.md +1 -0
  427. package/test/fixtures/pfm/generic_directives/007.md +1 -0
  428. package/test/fixtures/pfm/generic_directives/008.md +1 -0
  429. package/test/fixtures/pfm/generic_directives/009.md +1 -0
  430. package/test/fixtures/pfm/generic_directives/010.md +1 -0
  431. package/test/fixtures/pfm/generic_directives/011.md +1 -0
  432. package/test/fixtures/pfm/generic_directives/012.md +1 -0
  433. package/test/fixtures/pfm/generic_directives/013.md +1 -0
  434. package/test/fixtures/pfm/generic_directives/014.md +1 -0
  435. package/test/fixtures/pfm/generic_directives/015.md +3 -0
  436. package/test/fixtures/pfm/generic_directives/016.md +1 -0
  437. package/test/fixtures/pfm/generic_directives/017.md +1 -0
  438. package/test/fixtures/pfm/generic_directives/018.md +1 -0
  439. package/test/fixtures/pfm/generic_directives/019.md +2 -0
  440. package/test/fixtures/pfm/generic_directives/020.md +3 -0
  441. package/test/fixtures/pfm/generic_directives/021.md +3 -0
  442. package/test/fixtures/pfm/generic_directives/022.md +5 -0
  443. package/test/fixtures/pfm/generic_directives/023.md +2 -0
  444. package/test/fixtures/pfm/generic_directives/024.md +5 -0
  445. package/test/fixtures/pfm/generic_directives/025.md +2 -0
  446. package/test/fixtures/pfm/generic_directives/026.md +3 -0
  447. package/test/fixtures/pfm/generic_directives/027.md +5 -0
  448. package/test/fixtures/pfm/generic_directives/028.md +5 -0
  449. package/test/fixtures/pfm/generic_directives/029.md +7 -0
  450. package/test/fixtures/pfm/generic_directives/030.md +3 -0
  451. package/test/fixtures/pfm/generic_directives/031.md +4 -0
  452. package/test/fixtures/pfm/generic_directives/032.md +3 -0
  453. package/test/fixtures/pfm/generic_directives/033.md +3 -0
  454. package/test/fixtures/pfm/generic_directives/034.md +5 -0
  455. package/test/fixtures/pfm/generic_directives/035.md +3 -0
  456. package/test/fixtures/pfm/generic_directives/036.md +1 -0
  457. package/test/fixtures/pfm/generic_directives/037.md +1 -0
  458. package/test/fixtures/pfm/generic_directives/038.md +3 -0
  459. package/test/fixtures/pfm/generic_directives/039.md +5 -0
  460. package/test/fixtures/pfm/generic_directives/040.md +9 -0
  461. package/test/fixtures/pfm/generic_directives/041.md +1 -0
  462. package/test/fixtures/pfm/generic_directives/042.md +1 -0
  463. package/test/fixtures/pfm/generic_directives/043.md +1 -0
  464. package/test/fixtures/pfm/generic_directives/044.md +1 -0
  465. package/test/fixtures/pfm/generic_directives/045.md +1 -0
  466. package/test/fixtures/pfm/generic_directives/046.md +3 -0
  467. package/test/fixtures/pfm/generic_directives/047.md +5 -0
  468. package/test/fixtures/pfm/generic_directives/048.md +1 -0
  469. package/test/fixtures/pfm/generic_directives/049.md +1 -0
  470. package/test/fixtures/pfm/generic_directives/050.md +1 -0
  471. package/test/fixtures/pfm/generic_directives/051.md +1 -0
  472. package/test/fixtures/pfm/generic_directives/052.md +1 -0
  473. package/test/fixtures/pfm/generic_directives/053.md +1 -0
  474. package/test/fixtures/pfm/generic_directives/054.md +1 -0
  475. package/test/fixtures/pfm/generic_directives/055.md +1 -0
  476. package/test/fixtures/pfm/generic_directives/056.md +1 -0
  477. package/test/fixtures/pfm/generic_directives/057.md +1 -0
  478. package/test/fixtures/pfm/generic_directives/058.md +1 -0
  479. package/test/fixtures/pfm/generic_directives/059.md +1 -0
  480. package/test/fixtures/pfm/generic_directives/060.md +1 -0
  481. package/test/fixtures/pfm/generic_directives/061.md +1 -0
  482. package/test/fixtures/pfm/generic_directives/062.md +1 -0
  483. package/test/fixtures/pfm/generic_directives/063.md +1 -0
  484. package/test/fixtures/pfm/generic_directives/064.md +1 -0
  485. package/test/fixtures/pfm/generic_directives/065.md +2 -0
  486. package/test/fixtures/pfm/generic_directives/066.md +1 -0
  487. package/test/fixtures/pfm/generic_directives/067.md +1 -0
  488. package/test/fixtures/pfm/generic_directives/068.md +1 -0
  489. package/test/fixtures/pfm/generic_directives/069.md +1 -0
  490. package/test/fixtures/pfm/generic_directives/070.md +1 -0
  491. package/test/fixtures/pfm/generic_directives/071.md +1 -0
  492. package/test/fixtures/pfm/generic_directives/072.md +1 -0
  493. package/test/fixtures/pfm/generic_directives/073.md +1 -0
  494. package/test/fixtures/pfm/generic_directives/074.md +3 -0
  495. package/test/fixtures/pfm/generic_directives/075.md +1 -0
  496. package/test/fixtures/pfm/generic_directives/076.md +1 -0
  497. package/test/fixtures/pfm/generic_directives/077.md +1 -0
  498. package/test/fixtures/pfm/generic_directives/078.md +1 -0
  499. package/test/fixtures/pfm/generic_directives/079.md +1 -0
  500. package/test/fixtures/pfm/generic_directives/080.md +1 -0
  501. package/test/fixtures/pfm/generic_directives/081.md +1 -0
  502. package/test/fixtures/pfm/generic_directives/082.md +1 -0
  503. package/test/fixtures/pfm/generic_directives/083.md +1 -0
  504. package/test/fixtures/pfm/generic_directives/084.md +1 -0
  505. package/test/fixtures/pfm/generic_directives/085.md +1 -0
  506. package/test/fixtures/pfm/generic_directives/086.md +1 -0
  507. package/test/fixtures/pfm/generic_directives/087.md +1 -0
  508. package/test/fixtures/pfm/generic_directives/088.md +3 -0
  509. package/test/fixtures/pfm/generic_directives/089.md +1 -0
  510. package/test/fixtures/pfm/generic_directives/090.md +1 -0
  511. package/test/fixtures/pfm/generic_directives/091.md +1 -0
  512. package/test/fixtures/pfm/generic_directives/092.md +3 -0
  513. package/test/fixtures/pfm/generic_directives/093.md +1 -0
  514. package/test/fixtures/pfm/generic_directives/094.md +1 -0
  515. package/test/fixtures/pfm/generic_directives/095.md +2 -0
  516. package/test/fixtures/pfm/generic_directives/096.md +1 -0
  517. package/test/fixtures/pfm/generic_directives/097.md +1 -0
  518. package/test/fixtures/pfm/generic_directives/098.md +1 -0
  519. package/test/fixtures/pfm/generic_directives/099.md +1 -0
  520. package/test/fixtures/pfm/generic_directives/100.md +1 -0
  521. package/test/fixtures/pfm/generic_directives/101.md +1 -0
  522. package/test/fixtures/pfm/generic_directives/102.md +1 -0
  523. package/test/fixtures/pfm/generic_directives/103.md +5 -0
  524. package/test/fixtures/pfm/generic_directives/104.md +1 -0
  525. package/test/fixtures/pfm/generic_directives/105.md +1 -0
  526. package/test/fixtures/pfm/generic_directives/106.md +1 -0
  527. package/test/fixtures/pfm/generic_directives/107.md +3 -0
  528. package/test/fixtures/pfm/generic_directives/108.md +1 -0
  529. package/test/fixtures/pfm/generic_directives/109.md +1 -0
  530. package/test/fixtures/pfm/generic_directives/110.md +1 -0
  531. package/test/fixtures/pfm/generic_directives/111.md +1 -0
  532. package/test/fixtures/pfm/generic_directives/112.md +1 -0
  533. package/test/fixtures/pfm/generic_directives/113.md +1 -0
  534. package/test/fixtures/pfm/generic_directives/114.md +2 -0
  535. package/test/fixtures/pfm/generic_directives/115.md +1 -0
  536. package/test/fixtures/pfm/generic_directives/116.md +6 -0
  537. package/test/fixtures/pfm/generic_directives/117.md +3 -0
  538. package/test/fixtures/pfm/generic_directives/118.md +6 -0
  539. package/test/fixtures/pfm/generic_directives/119.md +3 -0
  540. package/test/fixtures/pfm/generic_directives/120.md +5 -0
  541. package/test/fixtures/pfm/generic_directives/121.md +3 -0
  542. package/test/fixtures/pfm/generic_directives/122.md +4 -0
  543. package/test/fixtures/pfm/generic_directives/123.md +2 -0
  544. package/test/fixtures/pfm/hard_line_breaks/633.md +2 -0
  545. package/test/fixtures/pfm/hard_line_breaks/634.md +2 -0
  546. package/test/fixtures/pfm/hard_line_breaks/635.md +2 -0
  547. package/test/fixtures/pfm/hard_line_breaks/636.md +2 -0
  548. package/test/fixtures/pfm/hard_line_breaks/637.md +2 -0
  549. package/test/fixtures/pfm/hard_line_breaks/638.md +2 -0
  550. package/test/fixtures/pfm/hard_line_breaks/639.md +2 -0
  551. package/test/fixtures/pfm/hard_line_breaks/640.md +2 -0
  552. package/test/fixtures/pfm/hard_line_breaks/641.md +2 -0
  553. package/test/fixtures/pfm/hard_line_breaks/642.md +2 -0
  554. package/test/fixtures/pfm/hard_line_breaks/643.md +2 -0
  555. package/test/fixtures/pfm/hard_line_breaks/644.md +1 -0
  556. package/test/fixtures/pfm/hard_line_breaks/645.md +1 -0
  557. package/test/fixtures/pfm/hard_line_breaks/646.md +1 -0
  558. package/test/fixtures/pfm/hard_line_breaks/647.md +1 -0
  559. package/test/fixtures/pfm/html/148.md +7 -0
  560. package/test/fixtures/pfm/html/149.md +9 -0
  561. package/test/fixtures/pfm/html/150.md +3 -0
  562. package/test/fixtures/pfm/html/151.md +2 -0
  563. package/test/fixtures/pfm/html/152.md +5 -0
  564. package/test/fixtures/pfm/html/153.md +3 -0
  565. package/test/fixtures/pfm/html/154.md +3 -0
  566. package/test/fixtures/pfm/html/155.md +4 -0
  567. package/test/fixtures/pfm/html/156.md +2 -0
  568. package/test/fixtures/pfm/html/157.md +2 -0
  569. package/test/fixtures/pfm/html/158.md +2 -0
  570. package/test/fixtures/pfm/html/159.md +1 -0
  571. package/test/fixtures/pfm/html/160.md +3 -0
  572. package/test/fixtures/pfm/html/161.md +4 -0
  573. package/test/fixtures/pfm/html/162.md +3 -0
  574. package/test/fixtures/pfm/html/163.md +3 -0
  575. package/test/fixtures/pfm/html/164.md +3 -0
  576. package/test/fixtures/pfm/html/165.md +2 -0
  577. package/test/fixtures/pfm/html/166.md +3 -0
  578. package/test/fixtures/pfm/html/167.md +5 -0
  579. package/test/fixtures/pfm/html/168.md +1 -0
  580. package/test/fixtures/pfm/html/169.md +7 -0
  581. package/test/fixtures/pfm/html/170.md +6 -0
  582. package/test/fixtures/pfm/html/171.md +7 -0
  583. package/test/fixtures/pfm/html/172.md +7 -0
  584. package/test/fixtures/pfm/html/173.md +4 -0
  585. package/test/fixtures/pfm/html/174.md +4 -0
  586. package/test/fixtures/pfm/html/175.md +2 -0
  587. package/test/fixtures/pfm/html/176.md +2 -0
  588. package/test/fixtures/pfm/html/177.md +2 -0
  589. package/test/fixtures/pfm/html/178.md +3 -0
  590. package/test/fixtures/pfm/html/179.md +5 -0
  591. package/test/fixtures/pfm/html/180.md +6 -0
  592. package/test/fixtures/pfm/html/181.md +1 -0
  593. package/test/fixtures/pfm/html/182.md +13 -0
  594. package/test/fixtures/pfm/html/183.md +3 -0
  595. package/test/fixtures/pfm/html/184.md +3 -0
  596. package/test/fixtures/pfm/html/185.md +4 -0
  597. package/test/fixtures/pfm/html/186.md +4 -0
  598. package/test/fixtures/pfm/html/187.md +3 -0
  599. package/test/fixtures/pfm/html/188.md +5 -0
  600. package/test/fixtures/pfm/html/189.md +3 -0
  601. package/test/fixtures/pfm/html/190.md +11 -0
  602. package/test/fixtures/pfm/html/191.md +11 -0
  603. package/test/fixtures/pfm/html/613.md +1 -0
  604. package/test/fixtures/pfm/html/614.md +1 -0
  605. package/test/fixtures/pfm/html/615.md +2 -0
  606. package/test/fixtures/pfm/html/616.md +2 -0
  607. package/test/fixtures/pfm/html/617.md +1 -0
  608. package/test/fixtures/pfm/html/618.md +1 -0
  609. package/test/fixtures/pfm/html/619.md +1 -0
  610. package/test/fixtures/pfm/html/620.md +1 -0
  611. package/test/fixtures/pfm/html/621.md +4 -0
  612. package/test/fixtures/pfm/html/622.md +1 -0
  613. package/test/fixtures/pfm/html/623.md +1 -0
  614. package/test/fixtures/pfm/html/624.md +1 -0
  615. package/test/fixtures/pfm/html/625.md +2 -0
  616. package/test/fixtures/pfm/html/626.md +3 -0
  617. package/test/fixtures/pfm/html/627.md +1 -0
  618. package/test/fixtures/pfm/html/628.md +1 -0
  619. package/test/fixtures/pfm/html/629.md +1 -0
  620. package/test/fixtures/pfm/html/630.md +1 -0
  621. package/test/fixtures/pfm/html/631.md +1 -0
  622. package/test/fixtures/pfm/html/632.md +1 -0
  623. package/test/fixtures/pfm/images/572.md +1 -0
  624. package/test/fixtures/pfm/images/573.md +3 -0
  625. package/test/fixtures/pfm/images/574.md +1 -0
  626. package/test/fixtures/pfm/images/575.md +1 -0
  627. package/test/fixtures/pfm/images/576.md +3 -0
  628. package/test/fixtures/pfm/images/577.md +3 -0
  629. package/test/fixtures/pfm/images/578.md +1 -0
  630. package/test/fixtures/pfm/images/579.md +1 -0
  631. package/test/fixtures/pfm/images/580.md +1 -0
  632. package/test/fixtures/pfm/images/581.md +1 -0
  633. package/test/fixtures/pfm/images/582.md +3 -0
  634. package/test/fixtures/pfm/images/583.md +3 -0
  635. package/test/fixtures/pfm/images/584.md +3 -0
  636. package/test/fixtures/pfm/images/585.md +3 -0
  637. package/test/fixtures/pfm/images/586.md +3 -0
  638. package/test/fixtures/pfm/images/587.md +4 -0
  639. package/test/fixtures/pfm/images/588.md +3 -0
  640. package/test/fixtures/pfm/images/589.md +3 -0
  641. package/test/fixtures/pfm/images/590.md +3 -0
  642. package/test/fixtures/pfm/images/591.md +3 -0
  643. package/test/fixtures/pfm/images/592.md +3 -0
  644. package/test/fixtures/pfm/images/593.md +3 -0
  645. package/test/fixtures/pfm/imports/1.md +3 -0
  646. package/test/fixtures/pfm/imports/10.md +1 -0
  647. package/test/fixtures/pfm/imports/11.md +3 -0
  648. package/test/fixtures/pfm/imports/2.md +4 -0
  649. package/test/fixtures/pfm/imports/3.md +4 -0
  650. package/test/fixtures/pfm/imports/4.md +3 -0
  651. package/test/fixtures/pfm/imports/5.md +3 -0
  652. package/test/fixtures/pfm/imports/6.md +5 -0
  653. package/test/fixtures/pfm/imports/7.md +3 -0
  654. package/test/fixtures/pfm/imports/8.md +3 -0
  655. package/test/fixtures/pfm/imports/9.md +1 -0
  656. package/test/fixtures/pfm/inlines/327.md +1 -0
  657. package/test/fixtures/pfm/link_reference_definitions/192.md +3 -0
  658. package/test/fixtures/pfm/link_reference_definitions/193.md +5 -0
  659. package/test/fixtures/pfm/link_reference_definitions/194.md +3 -0
  660. package/test/fixtures/pfm/link_reference_definitions/195.md +5 -0
  661. package/test/fixtures/pfm/link_reference_definitions/196.md +7 -0
  662. package/test/fixtures/pfm/link_reference_definitions/197.md +5 -0
  663. package/test/fixtures/pfm/link_reference_definitions/198.md +4 -0
  664. package/test/fixtures/pfm/link_reference_definitions/199.md +3 -0
  665. package/test/fixtures/pfm/link_reference_definitions/200.md +3 -0
  666. package/test/fixtures/pfm/link_reference_definitions/201.md +3 -0
  667. package/test/fixtures/pfm/link_reference_definitions/202.md +3 -0
  668. package/test/fixtures/pfm/link_reference_definitions/203.md +3 -0
  669. package/test/fixtures/pfm/link_reference_definitions/204.md +4 -0
  670. package/test/fixtures/pfm/link_reference_definitions/205.md +3 -0
  671. package/test/fixtures/pfm/link_reference_definitions/206.md +3 -0
  672. package/test/fixtures/pfm/link_reference_definitions/207.md +1 -0
  673. package/test/fixtures/pfm/link_reference_definitions/208.md +5 -0
  674. package/test/fixtures/pfm/link_reference_definitions/209.md +1 -0
  675. package/test/fixtures/pfm/link_reference_definitions/210.md +2 -0
  676. package/test/fixtures/pfm/link_reference_definitions/211.md +3 -0
  677. package/test/fixtures/pfm/link_reference_definitions/212.md +5 -0
  678. package/test/fixtures/pfm/link_reference_definitions/213.md +4 -0
  679. package/test/fixtures/pfm/link_reference_definitions/214.md +5 -0
  680. package/test/fixtures/pfm/link_reference_definitions/215.md +4 -0
  681. package/test/fixtures/pfm/link_reference_definitions/216.md +3 -0
  682. package/test/fixtures/pfm/link_reference_definitions/217.md +8 -0
  683. package/test/fixtures/pfm/link_reference_definitions/218.md +3 -0
  684. package/test/fixtures/pfm/links/482.md +1 -0
  685. package/test/fixtures/pfm/links/483.md +1 -0
  686. package/test/fixtures/pfm/links/484.md +1 -0
  687. package/test/fixtures/pfm/links/485.md +1 -0
  688. package/test/fixtures/pfm/links/486.md +1 -0
  689. package/test/fixtures/pfm/links/487.md +1 -0
  690. package/test/fixtures/pfm/links/488.md +1 -0
  691. package/test/fixtures/pfm/links/489.md +1 -0
  692. package/test/fixtures/pfm/links/490.md +2 -0
  693. package/test/fixtures/pfm/links/491.md +2 -0
  694. package/test/fixtures/pfm/links/492.md +1 -0
  695. package/test/fixtures/pfm/links/493.md +1 -0
  696. package/test/fixtures/pfm/links/494.md +3 -0
  697. package/test/fixtures/pfm/links/495.md +1 -0
  698. package/test/fixtures/pfm/links/496.md +1 -0
  699. package/test/fixtures/pfm/links/497.md +1 -0
  700. package/test/fixtures/pfm/links/498.md +1 -0
  701. package/test/fixtures/pfm/links/499.md +1 -0
  702. package/test/fixtures/pfm/links/500.md +1 -0
  703. package/test/fixtures/pfm/links/501.md +5 -0
  704. package/test/fixtures/pfm/links/502.md +1 -0
  705. package/test/fixtures/pfm/links/503.md +1 -0
  706. package/test/fixtures/pfm/links/504.md +1 -0
  707. package/test/fixtures/pfm/links/505.md +3 -0
  708. package/test/fixtures/pfm/links/506.md +1 -0
  709. package/test/fixtures/pfm/links/507.md +1 -0
  710. package/test/fixtures/pfm/links/508.md +1 -0
  711. package/test/fixtures/pfm/links/509.md +1 -0
  712. package/test/fixtures/pfm/links/510.md +2 -0
  713. package/test/fixtures/pfm/links/511.md +1 -0
  714. package/test/fixtures/pfm/links/512.md +1 -0
  715. package/test/fixtures/pfm/links/513.md +1 -0
  716. package/test/fixtures/pfm/links/514.md +1 -0
  717. package/test/fixtures/pfm/links/515.md +1 -0
  718. package/test/fixtures/pfm/links/516.md +1 -0
  719. package/test/fixtures/pfm/links/517.md +1 -0
  720. package/test/fixtures/pfm/links/518.md +1 -0
  721. package/test/fixtures/pfm/links/519.md +1 -0
  722. package/test/fixtures/pfm/links/520.md +1 -0
  723. package/test/fixtures/pfm/links/521.md +1 -0
  724. package/test/fixtures/pfm/links/522.md +1 -0
  725. package/test/fixtures/pfm/links/523.md +1 -0
  726. package/test/fixtures/pfm/links/524.md +1 -0
  727. package/test/fixtures/pfm/links/525.md +1 -0
  728. package/test/fixtures/pfm/links/526.md +1 -0
  729. package/test/fixtures/pfm/links/527.md +3 -0
  730. package/test/fixtures/pfm/links/528.md +3 -0
  731. package/test/fixtures/pfm/links/529.md +3 -0
  732. package/test/fixtures/pfm/links/530.md +3 -0
  733. package/test/fixtures/pfm/links/531.md +3 -0
  734. package/test/fixtures/pfm/links/532.md +3 -0
  735. package/test/fixtures/pfm/links/533.md +3 -0
  736. package/test/fixtures/pfm/links/534.md +3 -0
  737. package/test/fixtures/pfm/links/535.md +3 -0
  738. package/test/fixtures/pfm/links/536.md +3 -0
  739. package/test/fixtures/pfm/links/537.md +3 -0
  740. package/test/fixtures/pfm/links/538.md +3 -0
  741. package/test/fixtures/pfm/links/539.md +3 -0
  742. package/test/fixtures/pfm/links/540.md +3 -0
  743. package/test/fixtures/pfm/links/541.md +4 -0
  744. package/test/fixtures/pfm/links/542.md +3 -0
  745. package/test/fixtures/pfm/links/543.md +4 -0
  746. package/test/fixtures/pfm/links/544.md +5 -0
  747. package/test/fixtures/pfm/links/545.md +3 -0
  748. package/test/fixtures/pfm/links/546.md +3 -0
  749. package/test/fixtures/pfm/links/547.md +3 -0
  750. package/test/fixtures/pfm/links/548.md +3 -0
  751. package/test/fixtures/pfm/links/549.md +3 -0
  752. package/test/fixtures/pfm/links/550.md +3 -0
  753. package/test/fixtures/pfm/links/551.md +3 -0
  754. package/test/fixtures/pfm/links/552.md +5 -0
  755. package/test/fixtures/pfm/links/553.md +3 -0
  756. package/test/fixtures/pfm/links/554.md +3 -0
  757. package/test/fixtures/pfm/links/555.md +3 -0
  758. package/test/fixtures/pfm/links/556.md +4 -0
  759. package/test/fixtures/pfm/links/557.md +3 -0
  760. package/test/fixtures/pfm/links/558.md +3 -0
  761. package/test/fixtures/pfm/links/559.md +3 -0
  762. package/test/fixtures/pfm/links/560.md +3 -0
  763. package/test/fixtures/pfm/links/561.md +3 -0
  764. package/test/fixtures/pfm/links/562.md +3 -0
  765. package/test/fixtures/pfm/links/563.md +3 -0
  766. package/test/fixtures/pfm/links/564.md +3 -0
  767. package/test/fixtures/pfm/links/565.md +4 -0
  768. package/test/fixtures/pfm/links/566.md +3 -0
  769. package/test/fixtures/pfm/links/567.md +3 -0
  770. package/test/fixtures/pfm/links/568.md +3 -0
  771. package/test/fixtures/pfm/links/569.md +3 -0
  772. package/test/fixtures/pfm/links/570.md +4 -0
  773. package/test/fixtures/pfm/links/571.md +4 -0
  774. package/test/fixtures/pfm/list_items/253.md +6 -0
  775. package/test/fixtures/pfm/list_items/254.md +6 -0
  776. package/test/fixtures/pfm/list_items/255.md +3 -0
  777. package/test/fixtures/pfm/list_items/256.md +3 -0
  778. package/test/fixtures/pfm/list_items/257.md +3 -0
  779. package/test/fixtures/pfm/list_items/258.md +3 -0
  780. package/test/fixtures/pfm/list_items/259.md +3 -0
  781. package/test/fixtures/pfm/list_items/260.md +3 -0
  782. package/test/fixtures/pfm/list_items/261.md +3 -0
  783. package/test/fixtures/pfm/list_items/262.md +4 -0
  784. package/test/fixtures/pfm/list_items/263.md +9 -0
  785. package/test/fixtures/pfm/list_items/264.md +6 -0
  786. package/test/fixtures/pfm/list_items/265.md +1 -0
  787. package/test/fixtures/pfm/list_items/266.md +1 -0
  788. package/test/fixtures/pfm/list_items/267.md +1 -0
  789. package/test/fixtures/pfm/list_items/268.md +1 -0
  790. package/test/fixtures/pfm/list_items/269.md +1 -0
  791. package/test/fixtures/pfm/list_items/270.md +3 -0
  792. package/test/fixtures/pfm/list_items/271.md +3 -0
  793. package/test/fixtures/pfm/list_items/272.md +5 -0
  794. package/test/fixtures/pfm/list_items/273.md +5 -0
  795. package/test/fixtures/pfm/list_items/274.md +5 -0
  796. package/test/fixtures/pfm/list_items/275.md +3 -0
  797. package/test/fixtures/pfm/list_items/276.md +3 -0
  798. package/test/fixtures/pfm/list_items/277.md +3 -0
  799. package/test/fixtures/pfm/list_items/278.md +8 -0
  800. package/test/fixtures/pfm/list_items/279.md +2 -0
  801. package/test/fixtures/pfm/list_items/280.md +3 -0
  802. package/test/fixtures/pfm/list_items/281.md +3 -0
  803. package/test/fixtures/pfm/list_items/282.md +3 -0
  804. package/test/fixtures/pfm/list_items/283.md +3 -0
  805. package/test/fixtures/pfm/list_items/284.md +1 -0
  806. package/test/fixtures/pfm/list_items/285.md +5 -0
  807. package/test/fixtures/pfm/list_items/286.md +6 -0
  808. package/test/fixtures/pfm/list_items/287.md +6 -0
  809. package/test/fixtures/pfm/list_items/288.md +6 -0
  810. package/test/fixtures/pfm/list_items/289.md +6 -0
  811. package/test/fixtures/pfm/list_items/290.md +6 -0
  812. package/test/fixtures/pfm/list_items/291.md +2 -0
  813. package/test/fixtures/pfm/list_items/292.md +2 -0
  814. package/test/fixtures/pfm/list_items/293.md +2 -0
  815. package/test/fixtures/pfm/list_items/294.md +4 -0
  816. package/test/fixtures/pfm/list_items/295.md +4 -0
  817. package/test/fixtures/pfm/list_items/296.md +2 -0
  818. package/test/fixtures/pfm/list_items/297.md +2 -0
  819. package/test/fixtures/pfm/list_items/298.md +1 -0
  820. package/test/fixtures/pfm/list_items/299.md +1 -0
  821. package/test/fixtures/pfm/list_items/300.md +4 -0
  822. package/test/fixtures/pfm/lists/301.md +3 -0
  823. package/test/fixtures/pfm/lists/302.md +3 -0
  824. package/test/fixtures/pfm/lists/303.md +3 -0
  825. package/test/fixtures/pfm/lists/304.md +2 -0
  826. package/test/fixtures/pfm/lists/305.md +2 -0
  827. package/test/fixtures/pfm/lists/306.md +6 -0
  828. package/test/fixtures/pfm/lists/307.md +6 -0
  829. package/test/fixtures/pfm/lists/308.md +7 -0
  830. package/test/fixtures/pfm/lists/309.md +9 -0
  831. package/test/fixtures/pfm/lists/310.md +7 -0
  832. package/test/fixtures/pfm/lists/311.md +5 -0
  833. package/test/fixtures/pfm/lists/312.md +5 -0
  834. package/test/fixtures/pfm/lists/313.md +5 -0
  835. package/test/fixtures/pfm/lists/314.md +4 -0
  836. package/test/fixtures/pfm/lists/315.md +4 -0
  837. package/test/fixtures/pfm/lists/316.md +5 -0
  838. package/test/fixtures/pfm/lists/317.md +5 -0
  839. package/test/fixtures/pfm/lists/318.md +7 -0
  840. package/test/fixtures/pfm/lists/319.md +5 -0
  841. package/test/fixtures/pfm/lists/320.md +4 -0
  842. package/test/fixtures/pfm/lists/321.md +6 -0
  843. package/test/fixtures/pfm/lists/322.md +1 -0
  844. package/test/fixtures/pfm/lists/323.md +2 -0
  845. package/test/fixtures/pfm/lists/324.md +5 -0
  846. package/test/fixtures/pfm/lists/325.md +4 -0
  847. package/test/fixtures/pfm/lists/326.md +7 -0
  848. package/test/fixtures/pfm/paragraphs/219.md +3 -0
  849. package/test/fixtures/pfm/paragraphs/220.md +5 -0
  850. package/test/fixtures/pfm/paragraphs/221.md +4 -0
  851. package/test/fixtures/pfm/paragraphs/222.md +2 -0
  852. package/test/fixtures/pfm/paragraphs/223.md +3 -0
  853. package/test/fixtures/pfm/paragraphs/224.md +2 -0
  854. package/test/fixtures/pfm/paragraphs/225.md +2 -0
  855. package/test/fixtures/pfm/precedence/42.md +2 -0
  856. package/test/fixtures/pfm/setext_headings/100.md +2 -0
  857. package/test/fixtures/pfm/setext_headings/101.md +2 -0
  858. package/test/fixtures/pfm/setext_headings/102.md +2 -0
  859. package/test/fixtures/pfm/setext_headings/103.md +5 -0
  860. package/test/fixtures/pfm/setext_headings/104.md +6 -0
  861. package/test/fixtures/pfm/setext_headings/105.md +4 -0
  862. package/test/fixtures/pfm/setext_headings/106.md +4 -0
  863. package/test/fixtures/pfm/setext_headings/80.md +5 -0
  864. package/test/fixtures/pfm/setext_headings/81.md +3 -0
  865. package/test/fixtures/pfm/setext_headings/82.md +3 -0
  866. package/test/fixtures/pfm/setext_headings/83.md +5 -0
  867. package/test/fixtures/pfm/setext_headings/84.md +8 -0
  868. package/test/fixtures/pfm/setext_headings/85.md +5 -0
  869. package/test/fixtures/pfm/setext_headings/86.md +2 -0
  870. package/test/fixtures/pfm/setext_headings/87.md +2 -0
  871. package/test/fixtures/pfm/setext_headings/88.md +5 -0
  872. package/test/fixtures/pfm/setext_headings/89.md +2 -0
  873. package/test/fixtures/pfm/setext_headings/90.md +2 -0
  874. package/test/fixtures/pfm/setext_headings/91.md +7 -0
  875. package/test/fixtures/pfm/setext_headings/92.md +2 -0
  876. package/test/fixtures/pfm/setext_headings/93.md +3 -0
  877. package/test/fixtures/pfm/setext_headings/94.md +2 -0
  878. package/test/fixtures/pfm/setext_headings/95.md +3 -0
  879. package/test/fixtures/pfm/setext_headings/96.md +6 -0
  880. package/test/fixtures/pfm/setext_headings/97.md +2 -0
  881. package/test/fixtures/pfm/setext_headings/98.md +2 -0
  882. package/test/fixtures/pfm/setext_headings/99.md +2 -0
  883. package/test/fixtures/pfm/soft_line_breaks/648.md +2 -0
  884. package/test/fixtures/pfm/soft_line_breaks/649.md +2 -0
  885. package/test/fixtures/pfm/tabs/1.md +1 -0
  886. package/test/fixtures/pfm/tabs/10.md +1 -0
  887. package/test/fixtures/pfm/tabs/11.md +1 -0
  888. package/test/fixtures/pfm/tabs/12.md +2 -0
  889. package/test/fixtures/pfm/tabs/13.md +2 -0
  890. package/test/fixtures/pfm/tabs/14.md +3 -0
  891. package/test/fixtures/pfm/tabs/15.md +2 -0
  892. package/test/fixtures/pfm/tabs/16.md +2 -0
  893. package/test/fixtures/pfm/tabs/17.md +3 -0
  894. package/test/fixtures/pfm/tabs/2.md +1 -0
  895. package/test/fixtures/pfm/tabs/3.md +2 -0
  896. package/test/fixtures/pfm/tabs/4.md +3 -0
  897. package/test/fixtures/pfm/tabs/5.md +3 -0
  898. package/test/fixtures/pfm/tabs/6.md +1 -0
  899. package/test/fixtures/pfm/tabs/7.md +1 -0
  900. package/test/fixtures/pfm/tabs/8.md +2 -0
  901. package/test/fixtures/pfm/tabs/9.md +3 -0
  902. package/test/fixtures/pfm/textual_content/650.md +1 -0
  903. package/test/fixtures/pfm/textual_content/651.md +1 -0
  904. package/test/fixtures/pfm/textual_content/652.md +1 -0
  905. package/test/fixtures/pfm/thematic_breaks/43.md +3 -0
  906. package/test/fixtures/pfm/thematic_breaks/44.md +1 -0
  907. package/test/fixtures/pfm/thematic_breaks/45.md +1 -0
  908. package/test/fixtures/pfm/thematic_breaks/46.md +3 -0
  909. package/test/fixtures/pfm/thematic_breaks/47.md +3 -0
  910. package/test/fixtures/pfm/thematic_breaks/48.md +1 -0
  911. package/test/fixtures/pfm/thematic_breaks/49.md +2 -0
  912. package/test/fixtures/pfm/thematic_breaks/50.md +1 -0
  913. package/test/fixtures/pfm/thematic_breaks/51.md +1 -0
  914. package/test/fixtures/pfm/thematic_breaks/52.md +1 -0
  915. package/test/fixtures/pfm/thematic_breaks/53.md +1 -0
  916. package/test/fixtures/pfm/thematic_breaks/54.md +1 -0
  917. package/test/fixtures/pfm/thematic_breaks/55.md +5 -0
  918. package/test/fixtures/pfm/thematic_breaks/56.md +1 -0
  919. package/test/fixtures/pfm/thematic_breaks/57.md +3 -0
  920. package/test/fixtures/pfm/thematic_breaks/58.md +3 -0
  921. package/test/fixtures/pfm/thematic_breaks/59.md +3 -0
  922. package/test/fixtures/pfm/thematic_breaks/60.md +3 -0
  923. package/test/fixtures/pfm/thematic_breaks/61.md +2 -0
  924. package/test/fixtures/svelte/00-introduction/00-hello-world/App.svelte +5 -0
  925. package/test/fixtures/svelte/00-introduction/01-dynamic-attributes/App.svelte +7 -0
  926. package/test/fixtures/svelte/00-introduction/02-styling/App.svelte +9 -0
  927. package/test/fixtures/svelte/00-introduction/03-nested-components/App.svelte +14 -0
  928. package/test/fixtures/svelte/00-introduction/03-nested-components/Nested.svelte +1 -0
  929. package/test/fixtures/svelte/00-introduction/04-html-tags/App.svelte +5 -0
  930. package/test/fixtures/svelte/01-reactivity/00-reactive-assignments/App.svelte +11 -0
  931. package/test/fixtures/svelte/01-reactivity/01-reactive-declarations/App.svelte +18 -0
  932. package/test/fixtures/svelte/01-reactivity/02-reactive-statements/App.svelte +16 -0
  933. package/test/fixtures/svelte/02-props/00-declaring-props/App.svelte +5 -0
  934. package/test/fixtures/svelte/02-props/00-declaring-props/Nested.svelte +5 -0
  935. package/test/fixtures/svelte/02-props/01-default-values/App.svelte +6 -0
  936. package/test/fixtures/svelte/02-props/01-default-values/Nested.svelte +5 -0
  937. package/test/fixtures/svelte/02-props/02-spread-props/App.svelte +12 -0
  938. package/test/fixtures/svelte/02-props/02-spread-props/Info.svelte +12 -0
  939. package/test/fixtures/svelte/03-logic/00-if-blocks/App.svelte +19 -0
  940. package/test/fixtures/svelte/03-logic/01-else-blocks/App.svelte +17 -0
  941. package/test/fixtures/svelte/03-logic/02-else-if-blocks/App.svelte +11 -0
  942. package/test/fixtures/svelte/03-logic/03-each-blocks/App.svelte +17 -0
  943. package/test/fixtures/svelte/03-logic/04-keyed-each-blocks/App.svelte +35 -0
  944. package/test/fixtures/svelte/03-logic/04-keyed-each-blocks/Thing.svelte +24 -0
  945. package/test/fixtures/svelte/04-events/00-dom-events/App.svelte +16 -0
  946. package/test/fixtures/svelte/04-events/01-inline-handlers/App.svelte +11 -0
  947. package/test/fixtures/svelte/04-events/02-event-modifiers/App.svelte +9 -0
  948. package/test/fixtures/svelte/04-events/03-component-events/App.svelte +9 -0
  949. package/test/fixtures/svelte/04-events/03-component-events/Inner.svelte +15 -0
  950. package/test/fixtures/svelte/04-events/04-event-forwarding/App.svelte +9 -0
  951. package/test/fixtures/svelte/04-events/04-event-forwarding/Inner.svelte +15 -0
  952. package/test/fixtures/svelte/04-events/04-event-forwarding/Outer.svelte +5 -0
  953. package/test/fixtures/svelte/04-events/05-dom-event-forwarding/App.svelte +9 -0
  954. package/test/fixtures/svelte/04-events/05-dom-event-forwarding/FancyButton.svelte +15 -0
  955. package/test/fixtures/svelte/05-bindings/00-text-inputs/App.svelte +6 -0
  956. package/test/fixtures/svelte/05-bindings/01-numeric-inputs/App.svelte +16 -0
  957. package/test/fixtures/svelte/05-bindings/02-checkbox-inputs/App.svelte +18 -0
  958. package/test/fixtures/svelte/05-bindings/03-group-inputs/App.svelte +48 -0
  959. package/test/fixtures/svelte/05-bindings/04-textarea-inputs/App.svelte +12 -0
  960. package/test/fixtures/svelte/05-bindings/05-select-bindings/App.svelte +42 -0
  961. package/test/fixtures/svelte/05-bindings/06-multiple-select-bindings/App.svelte +49 -0
  962. package/test/fixtures/svelte/05-bindings/07-each-block-bindings/App.svelte +49 -0
  963. package/test/fixtures/svelte/05-bindings/08-media-elements/App.svelte +136 -0
  964. package/test/fixtures/svelte/05-bindings/09-dimensions/App.svelte +20 -0
  965. package/test/fixtures/svelte/05-bindings/10-bind-this/App.svelte +55 -0
  966. package/test/fixtures/svelte/05-bindings/11-component-bindings/App.svelte +14 -0
  967. package/test/fixtures/svelte/05-bindings/11-component-bindings/Keypad.svelte +40 -0
  968. package/test/fixtures/svelte/06-lifecycle/00-onmount/App.svelte +40 -0
  969. package/test/fixtures/svelte/06-lifecycle/01-ondestroy/App.svelte +11 -0
  970. package/test/fixtures/svelte/06-lifecycle/02-update/App.svelte +112 -0
  971. package/test/fixtures/svelte/06-lifecycle/03-tick/App.svelte +34 -0
  972. package/test/fixtures/svelte/07-stores/00-writable-stores/App.svelte +18 -0
  973. package/test/fixtures/svelte/07-stores/00-writable-stores/Decrementer.svelte +11 -0
  974. package/test/fixtures/svelte/07-stores/00-writable-stores/Incrementer.svelte +11 -0
  975. package/test/fixtures/svelte/07-stores/00-writable-stores/Resetter.svelte +11 -0
  976. package/test/fixtures/svelte/07-stores/01-auto-subscriptions/App.svelte +12 -0
  977. package/test/fixtures/svelte/07-stores/01-auto-subscriptions/Decrementer.svelte +11 -0
  978. package/test/fixtures/svelte/07-stores/01-auto-subscriptions/Incrementer.svelte +11 -0
  979. package/test/fixtures/svelte/07-stores/01-auto-subscriptions/Resetter.svelte +11 -0
  980. package/test/fixtures/svelte/07-stores/02-readable-stores/App.svelte +12 -0
  981. package/test/fixtures/svelte/07-stores/03-derived-stores/App.svelte +17 -0
  982. package/test/fixtures/svelte/07-stores/04-custom-stores/App.svelte +9 -0
  983. package/test/fixtures/svelte/08-motion/00-tweened/App.svelte +38 -0
  984. package/test/fixtures/svelte/08-motion/01-spring/App.svelte +38 -0
  985. package/test/fixtures/svelte/09-transitions/00-transition/App.svelte +15 -0
  986. package/test/fixtures/svelte/09-transitions/01-adding-parameters-to-transitions/App.svelte +15 -0
  987. package/test/fixtures/svelte/09-transitions/02-in-and-out/App.svelte +15 -0
  988. package/test/fixtures/svelte/09-transitions/03-custom-css-transitions/App.svelte +49 -0
  989. package/test/fixtures/svelte/09-transitions/04-custom-js-transitions/App.svelte +36 -0
  990. package/test/fixtures/svelte/09-transitions/05-transition-events/App.svelte +25 -0
  991. package/test/fixtures/svelte/10-animations/00-animate/App.svelte +147 -0
  992. package/test/fixtures/svelte/11-easing/00-easing/App.svelte +106 -0
  993. package/test/fixtures/svelte/11-easing/00-easing/Controls.svelte +186 -0
  994. package/test/fixtures/svelte/11-easing/00-easing/Grid.svelte +62 -0
  995. package/test/fixtures/svelte/12-svg/01-clock/App.svelte +104 -0
  996. package/test/fixtures/svelte/12-svg/02-bar-chart/App.svelte +118 -0
  997. package/test/fixtures/svelte/12-svg/03-area-chart/App.svelte +111 -0
  998. package/test/fixtures/svelte/12-svg/04-scatterplot/App.svelte +24 -0
  999. package/test/fixtures/svelte/12-svg/04-scatterplot/Scatterplot.svelte +91 -0
  1000. package/test/fixtures/svelte/12-svg/05-svg-transitions/App.svelte +74 -0
  1001. package/test/fixtures/svelte/13-actions/00-actions/App.svelte +54 -0
  1002. package/test/fixtures/svelte/13-actions/01-adding-parameters-to-actions/App.svelte +70 -0
  1003. package/test/fixtures/svelte/14-classes/00-classes/App.svelte +29 -0
  1004. package/test/fixtures/svelte/14-classes/01-class-shorthand/App.svelte +18 -0
  1005. package/test/fixtures/svelte/15-composition/00-slots/App.svelte +8 -0
  1006. package/test/fixtures/svelte/15-composition/00-slots/Box.svelte +14 -0
  1007. package/test/fixtures/svelte/15-composition/01-slot-fallbacks/App.svelte +10 -0
  1008. package/test/fixtures/svelte/15-composition/01-slot-fallbacks/Box.svelte +16 -0
  1009. package/test/fixtures/svelte/15-composition/02-named-slots/App.svelte +14 -0
  1010. package/test/fixtures/svelte/15-composition/02-named-slots/ContactCard.svelte +47 -0
  1011. package/test/fixtures/svelte/15-composition/03-slot-props/App.svelte +46 -0
  1012. package/test/fixtures/svelte/15-composition/03-slot-props/Hoverable.svelte +15 -0
  1013. package/test/fixtures/svelte/15-composition/04-modal/App.svelte +35 -0
  1014. package/test/fixtures/svelte/15-composition/04-modal/Modal.svelte +45 -0
  1015. package/test/fixtures/svelte/16-context/00-context-api/App.svelte +13 -0
  1016. package/test/fixtures/svelte/16-context/00-context-api/Map.svelte +50 -0
  1017. package/test/fixtures/svelte/16-context/00-context-api/MapMarker.svelte +18 -0
  1018. package/test/fixtures/svelte/17-special-elements/00-svelte-self/App.svelte +39 -0
  1019. package/test/fixtures/svelte/17-special-elements/00-svelte-self/File.svelte +14 -0
  1020. package/test/fixtures/svelte/17-special-elements/00-svelte-self/Folder.svelte +52 -0
  1021. package/test/fixtures/svelte/17-special-elements/01-svelte-component/App.svelte +21 -0
  1022. package/test/fixtures/svelte/17-special-elements/01-svelte-component/BlueThing.svelte +5 -0
  1023. package/test/fixtures/svelte/17-special-elements/01-svelte-component/GreenThing.svelte +5 -0
  1024. package/test/fixtures/svelte/17-special-elements/01-svelte-component/RedThing.svelte +5 -0
  1025. package/test/fixtures/svelte/17-special-elements/02-svelte-window/App.svelte +42 -0
  1026. package/test/fixtures/svelte/17-special-elements/03-svelte-window-bindings/App.svelte +88 -0
  1027. package/test/fixtures/svelte/17-special-elements/04-svelte-body/App.svelte +34 -0
  1028. package/test/fixtures/svelte/17-special-elements/05-svelte-head/App.svelte +5 -0
  1029. package/test/fixtures/svelte/18-module-context/01-module-exports/App.svelte +47 -0
  1030. package/test/fixtures/svelte/18-module-context/01-module-exports/AudioPlayer.svelte +52 -0
  1031. package/test/fixtures/svelte/19-debugging/00-debug/App.svelte +18 -0
  1032. package/test/fixtures/svelte/19-debugging/00-debug/Test.svelte +250 -0
  1033. package/test/fixtures/svelte/20-7guis/01-7guis-counter/App.svelte +7 -0
  1034. package/test/fixtures/svelte/20-7guis/02-7guis-temperature/App.svelte +24 -0
  1035. package/test/fixtures/svelte/20-7guis/03-7guis-flight-booker/App.svelte +59 -0
  1036. package/test/fixtures/svelte/20-7guis/04-7guis-timer/App.svelte +38 -0
  1037. package/test/fixtures/svelte/20-7guis/05-7guis-crud/App.svelte +97 -0
  1038. package/test/fixtures/svelte/20-7guis/06-7guis-circles/App.svelte +125 -0
  1039. package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/App.svelte +59 -0
  1040. package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/Comment.svelte +32 -0
  1041. package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/Item.svelte +39 -0
  1042. package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/List.svelte +46 -0
  1043. package/test/fixtures/svelte/21-miscellaneous/01-hacker-news/Summary.svelte +38 -0
  1044. package/test/fixtures/svelte/21-miscellaneous/02-immutable-data/App.svelte +38 -0
  1045. package/test/fixtures/svelte/21-miscellaneous/02-immutable-data/ImmutableTodo.svelte +28 -0
  1046. package/test/fixtures/svelte/21-miscellaneous/02-immutable-data/MutableTodo.svelte +26 -0
  1047. package/test/fixtures/svelte/22-bugs/CSS/App.svelte +45 -0
  1048. package/test/fixtures/svelte/99-embeds/20181225-blog-svelte-css-in-js/App.svelte +10 -0
  1049. package/test/fixtures/svelte/99-embeds/20181225-blog-svelte-css-in-js/Hero.svelte +15 -0
  1050. package/test/fixtures/svelte/99-embeds/20190420-blog-write-less-code/App.svelte +9 -0
  1051. package/test/frontmatter.spec.ts +133 -0
  1052. package/test/html.spec.ts +829 -0
  1053. package/test/html_block_containers.spec.ts +445 -0
  1054. package/test/images.spec.ts +106 -0
  1055. package/test/imports.spec.ts +166 -0
  1056. package/test/incremental.spec.ts +750 -0
  1057. package/test/line_breaks.spec.ts +166 -0
  1058. package/test/link_reference_definitions.spec.ts +422 -0
  1059. package/test/links.spec.ts +234 -0
  1060. package/test/lists.spec.ts +694 -0
  1061. package/test/opcodes.spec.ts +325 -0
  1062. package/test/paragraphs.spec.ts +211 -0
  1063. package/test/parser_reuse.spec.ts +40 -0
  1064. package/test/plugins.spec.ts +879 -0
  1065. package/test/print.ts +108 -0
  1066. package/test/run_bytecode.spec.ts +36 -0
  1067. package/test/snapshots/hybrid/code-escaping.snap.ast +13 -0
  1068. package/test/snapshots/hybrid/code-highlight-nesting.snap.ast +2 -0
  1069. package/test/snapshots/hybrid/component-children.snap.ast +37 -0
  1070. package/test/snapshots/hybrid/component-simple-00.snap.ast +18 -0
  1071. package/test/snapshots/hybrid/component-simple-01.snap.ast +15 -0
  1072. package/test/snapshots/hybrid/component-simple-02.snap.ast +3 -0
  1073. package/test/snapshots/hybrid/component-simple-03.snap.ast +16 -0
  1074. package/test/snapshots/hybrid/component-simple-04.snap.ast +23 -0
  1075. package/test/snapshots/hybrid/dollar-one-in-frontmatter.snap.ast +3 -0
  1076. package/test/snapshots/hybrid/error.snap.ast +24 -0
  1077. package/test/snapshots/hybrid/link-curlies.snap.ast +56 -0
  1078. package/test/snapshots/hybrid/tags-in-frontmatter.snap.ast +2 -0
  1079. package/test/snapshots/markdown/anchors-by-reference.snap.ast +28 -0
  1080. package/test/snapshots/markdown/anchors-followed-by-brakets.snap.ast +28 -0
  1081. package/test/snapshots/markdown/automatic-anchors.snap.ast +6 -0
  1082. package/test/snapshots/markdown/blockquote-followed-by-code.snap.ast +19 -0
  1083. package/test/snapshots/markdown/blockquote-inside-code.snap.ast +8 -0
  1084. package/test/snapshots/markdown/blockquote-nested-markdown.snap.ast +16 -0
  1085. package/test/snapshots/markdown/blockquote.snap.ast +9 -0
  1086. package/test/snapshots/markdown/code-block-html-escape.snap.ast +7 -0
  1087. package/test/snapshots/markdown/code-block-with-special-chars.snap.ast +2 -0
  1088. package/test/snapshots/markdown/code-block.snap.ast +7 -0
  1089. package/test/snapshots/markdown/double-emphasis.snap.ast +32 -0
  1090. package/test/snapshots/markdown/doubline-list.snap.ast +10 -0
  1091. package/test/snapshots/markdown/ellipsis.snap.ast +41 -0
  1092. package/test/snapshots/markdown/emphasis-inside-inline-code.snap.ast +5 -0
  1093. package/test/snapshots/markdown/emphasis.snap.ast +296 -0
  1094. package/test/snapshots/markdown/encodeHTMLCodeTags.snap.ast +18 -0
  1095. package/test/snapshots/markdown/escaped-html-taglikes.snap.ast +21 -0
  1096. package/test/snapshots/markdown/escaped-number-period.snap.ast +5 -0
  1097. package/test/snapshots/markdown/escaping.snap.ast +65 -0
  1098. package/test/snapshots/markdown/github-style-at-start.snap.ast +7 -0
  1099. package/test/snapshots/markdown/github-style-codeblock-inside-quote.snap.ast +13 -0
  1100. package/test/snapshots/markdown/github-style-codeblock.snap.ast +38 -0
  1101. package/test/snapshots/markdown/github-style-linebreaks.snap.ast +2 -0
  1102. package/test/snapshots/markdown/h1-with-double-hash.snap.ast +4 -0
  1103. package/test/snapshots/markdown/h1-with-equals.snap.ast +6 -0
  1104. package/test/snapshots/markdown/h1-with-single-hash.snap.ast +4 -0
  1105. package/test/snapshots/markdown/h2-with-dashes.snap.ast +5 -0
  1106. package/test/snapshots/markdown/h2-with-double-hash.snap.ast +4 -0
  1107. package/test/snapshots/markdown/h2-with-single-hash.snap.ast +4 -0
  1108. package/test/snapshots/markdown/h3-with-double-hash.snap.ast +4 -0
  1109. package/test/snapshots/markdown/h3-with-single-hash.snap.ast +4 -0
  1110. package/test/snapshots/markdown/h4-with-single-hash.snap.ast +4 -0
  1111. package/test/snapshots/markdown/h5-with-single-hash.snap.ast +4 -0
  1112. package/test/snapshots/markdown/h6-with-single-hash.snap.ast +4 -0
  1113. package/test/snapshots/markdown/horizontal-rules.snap.ast +11 -0
  1114. package/test/snapshots/markdown/html-comments.snap.ast +19 -0
  1115. package/test/snapshots/markdown/html-inside-listed-code.snap.ast +6 -0
  1116. package/test/snapshots/markdown/html5-strutural-tags.snap.ast +132 -0
  1117. package/test/snapshots/markdown/images-followed-by-brackets.snap.ast +12 -0
  1118. package/test/snapshots/markdown/images.snap.ast +35 -0
  1119. package/test/snapshots/markdown/implicit-anchors.snap.ast +22 -0
  1120. package/test/snapshots/markdown/inline-anchors.snap.ast +13 -0
  1121. package/test/snapshots/markdown/inline-code.snap.ast +41 -0
  1122. package/test/snapshots/markdown/inline-escaped-chars.snap.ast +10 -0
  1123. package/test/snapshots/markdown/inline-style-tag.snap.ast +7 -0
  1124. package/test/snapshots/markdown/lazy-blockquote.snap.ast +10 -0
  1125. package/test/snapshots/markdown/line-starts-with-html.snap.ast +11 -0
  1126. package/test/snapshots/markdown/list-followed-by-blockquote.snap.ast +23 -0
  1127. package/test/snapshots/markdown/list-followed-by-ghcode.snap.ast +20 -0
  1128. package/test/snapshots/markdown/list-with-blockquote.snap.ast +11 -0
  1129. package/test/snapshots/markdown/literal-html-tags.snap.ast +44 -0
  1130. package/test/snapshots/markdown/multi-paragraph-list.snap.ast +14 -0
  1131. package/test/snapshots/markdown/multiline-unordered-list.snap.ast +9 -0
  1132. package/test/snapshots/markdown/nested-blockquote.snap.ast +13 -0
  1133. package/test/snapshots/markdown/nested-gh-codeblocks.snap.ast +6 -0
  1134. package/test/snapshots/markdown/obfuscated-emails.snap.ast +1 -0
  1135. package/test/snapshots/markdown/ordered-list-same-number.snap.ast +9 -0
  1136. package/test/snapshots/markdown/ordered-list-starting-number.snap.ast +22 -0
  1137. package/test/snapshots/markdown/ordered-list-wrong-numbers.snap.ast +9 -0
  1138. package/test/snapshots/markdown/ordered-list.snap.ast +9 -0
  1139. package/test/snapshots/markdown/paragraphed-list-with-sublists.snap.ast +26 -0
  1140. package/test/snapshots/markdown/pre-code-tags-inside-code-block.snap.ast +6 -0
  1141. package/test/snapshots/markdown/pre-code-tags.snap.ast +32 -0
  1142. package/test/snapshots/markdown/relative-anchors.snap.ast +7 -0
  1143. package/test/snapshots/markdown/repeated-headers.snap.ast +12 -0
  1144. package/test/snapshots/markdown/simple-paragraph.snap.ast +5 -0
  1145. package/test/snapshots/markdown/strip-references.snap.ast +9 -0
  1146. package/test/snapshots/markdown/strong.snap.ast +17 -0
  1147. package/test/snapshots/markdown/unordered-list-asterisk.snap.ast +9 -0
  1148. package/test/snapshots/markdown/unordered-list-minus.snap.ast +9 -0
  1149. package/test/snapshots/markdown/unordered-list-plus.snap.ast +9 -0
  1150. package/test/snapshots/markdown/url-with-parenthesis.snap.ast +7 -0
  1151. package/test/snapshots/pfm/atx_headings/62.snap.ast +19 -0
  1152. package/test/snapshots/pfm/atx_headings/63.snap.ast +4 -0
  1153. package/test/snapshots/pfm/atx_headings/64.snap.ast +8 -0
  1154. package/test/snapshots/pfm/atx_headings/65.snap.ast +4 -0
  1155. package/test/snapshots/pfm/atx_headings/66.snap.ast +9 -0
  1156. package/test/snapshots/pfm/atx_headings/67.snap.ast +4 -0
  1157. package/test/snapshots/pfm/atx_headings/68.snap.ast +10 -0
  1158. package/test/snapshots/pfm/atx_headings/69.snap.ast +4 -0
  1159. package/test/snapshots/pfm/atx_headings/70.snap.ast +7 -0
  1160. package/test/snapshots/pfm/atx_headings/71.snap.ast +7 -0
  1161. package/test/snapshots/pfm/atx_headings/72.snap.ast +7 -0
  1162. package/test/snapshots/pfm/atx_headings/73.snap.ast +4 -0
  1163. package/test/snapshots/pfm/atx_headings/74.snap.ast +4 -0
  1164. package/test/snapshots/pfm/atx_headings/75.snap.ast +4 -0
  1165. package/test/snapshots/pfm/atx_headings/76.snap.ast +13 -0
  1166. package/test/snapshots/pfm/atx_headings/77.snap.ast +6 -0
  1167. package/test/snapshots/pfm/atx_headings/78.snap.ast +10 -0
  1168. package/test/snapshots/pfm/atx_headings/79.snap.ast +8 -0
  1169. package/test/snapshots/pfm/autolinks/594.snap.ast +5 -0
  1170. package/test/snapshots/pfm/autolinks/595.snap.ast +5 -0
  1171. package/test/snapshots/pfm/autolinks/596.snap.ast +5 -0
  1172. package/test/snapshots/pfm/autolinks/597.snap.ast +5 -0
  1173. package/test/snapshots/pfm/autolinks/598.snap.ast +5 -0
  1174. package/test/snapshots/pfm/autolinks/599.snap.ast +5 -0
  1175. package/test/snapshots/pfm/autolinks/600.snap.ast +5 -0
  1176. package/test/snapshots/pfm/autolinks/601.snap.ast +5 -0
  1177. package/test/snapshots/pfm/autolinks/602.snap.ast +4 -0
  1178. package/test/snapshots/pfm/autolinks/603.snap.ast +5 -0
  1179. package/test/snapshots/pfm/autolinks/604.snap.ast +4 -0
  1180. package/test/snapshots/pfm/autolinks/605.snap.ast +4 -0
  1181. package/test/snapshots/pfm/autolinks/606.snap.ast +4 -0
  1182. package/test/snapshots/pfm/autolinks/607.snap.ast +4 -0
  1183. package/test/snapshots/pfm/autolinks/608.snap.ast +4 -0
  1184. package/test/snapshots/pfm/autolinks/609.snap.ast +4 -0
  1185. package/test/snapshots/pfm/autolinks/610.snap.ast +4 -0
  1186. package/test/snapshots/pfm/autolinks/611.snap.ast +4 -0
  1187. package/test/snapshots/pfm/autolinks/612.snap.ast +4 -0
  1188. package/test/snapshots/pfm/backslash_escapes/12.snap.ast +35 -0
  1189. package/test/snapshots/pfm/backslash_escapes/13.snap.ast +4 -0
  1190. package/test/snapshots/pfm/backslash_escapes/14.snap.ast +25 -0
  1191. package/test/snapshots/pfm/backslash_escapes/15.snap.ast +6 -0
  1192. package/test/snapshots/pfm/backslash_escapes/16.snap.ast +6 -0
  1193. package/test/snapshots/pfm/backslash_escapes/17.snap.ast +4 -0
  1194. package/test/snapshots/pfm/backslash_escapes/18.snap.ast +5 -0
  1195. package/test/snapshots/pfm/backslash_escapes/19.snap.ast +10 -0
  1196. package/test/snapshots/pfm/backslash_escapes/20.snap.ast +5 -0
  1197. package/test/snapshots/pfm/backslash_escapes/21.snap.ast +4 -0
  1198. package/test/snapshots/pfm/backslash_escapes/22.snap.ast +5 -0
  1199. package/test/snapshots/pfm/backslash_escapes/23.snap.ast +6 -0
  1200. package/test/snapshots/pfm/backslash_escapes/24.snap.ast +2 -0
  1201. package/test/snapshots/pfm/blank_lines/227.snap.ast +13 -0
  1202. package/test/snapshots/pfm/block_quotes/228.snap.ast +9 -0
  1203. package/test/snapshots/pfm/block_quotes/229.snap.ast +9 -0
  1204. package/test/snapshots/pfm/block_quotes/230.snap.ast +9 -0
  1205. package/test/snapshots/pfm/block_quotes/231.snap.ast +9 -0
  1206. package/test/snapshots/pfm/block_quotes/232.snap.ast +10 -0
  1207. package/test/snapshots/pfm/block_quotes/233.snap.ast +12 -0
  1208. package/test/snapshots/pfm/block_quotes/234.snap.ast +6 -0
  1209. package/test/snapshots/pfm/block_quotes/235.snap.ast +10 -0
  1210. package/test/snapshots/pfm/block_quotes/236.snap.ast +8 -0
  1211. package/test/snapshots/pfm/block_quotes/237.snap.ast +9 -0
  1212. package/test/snapshots/pfm/block_quotes/238.snap.ast +9 -0
  1213. package/test/snapshots/pfm/block_quotes/239.snap.ast +3 -0
  1214. package/test/snapshots/pfm/block_quotes/240.snap.ast +5 -0
  1215. package/test/snapshots/pfm/block_quotes/241.snap.ast +6 -0
  1216. package/test/snapshots/pfm/block_quotes/242.snap.ast +10 -0
  1217. package/test/snapshots/pfm/block_quotes/243.snap.ast +7 -0
  1218. package/test/snapshots/pfm/block_quotes/244.snap.ast +8 -0
  1219. package/test/snapshots/pfm/block_quotes/245.snap.ast +8 -0
  1220. package/test/snapshots/pfm/block_quotes/246.snap.ast +10 -0
  1221. package/test/snapshots/pfm/block_quotes/247.snap.ast +8 -0
  1222. package/test/snapshots/pfm/block_quotes/248.snap.ast +9 -0
  1223. package/test/snapshots/pfm/block_quotes/249.snap.ast +9 -0
  1224. package/test/snapshots/pfm/block_quotes/250.snap.ast +10 -0
  1225. package/test/snapshots/pfm/block_quotes/251.snap.ast +12 -0
  1226. package/test/snapshots/pfm/block_quotes/252.snap.ast +10 -0
  1227. package/test/snapshots/pfm/block_quotes/pfm_fence_close.snap.ast +6 -0
  1228. package/test/snapshots/pfm/block_quotes/pfm_fence_close_compact.snap.ast +6 -0
  1229. package/test/snapshots/pfm/block_quotes/pfm_fence_close_end_quote.snap.ast +8 -0
  1230. package/test/snapshots/pfm/block_quotes/pfm_fence_close_info.snap.ast +4 -0
  1231. package/test/snapshots/pfm/block_quotes/pfm_fence_close_longer.snap.ast +6 -0
  1232. package/test/snapshots/pfm/block_quotes/pfm_fence_close_nested.snap.ast +5 -0
  1233. package/test/snapshots/pfm/block_quotes/pfm_fence_close_twice.snap.ast +5 -0
  1234. package/test/snapshots/pfm/block_quotes/pfm_fence_info_eof.snap.ast +3 -0
  1235. package/test/snapshots/pfm/block_quotes/pfm_fence_unclosed.snap.ast +3 -0
  1236. package/test/snapshots/pfm/code_spans/328.snap.ast +3 -0
  1237. package/test/snapshots/pfm/code_spans/329.snap.ast +4 -0
  1238. package/test/snapshots/pfm/code_spans/330.snap.ast +4 -0
  1239. package/test/snapshots/pfm/code_spans/331.snap.ast +4 -0
  1240. package/test/snapshots/pfm/code_spans/332.snap.ast +4 -0
  1241. package/test/snapshots/pfm/code_spans/333.snap.ast +4 -0
  1242. package/test/snapshots/pfm/code_spans/334.snap.ast +6 -0
  1243. package/test/snapshots/pfm/code_spans/335.snap.ast +4 -0
  1244. package/test/snapshots/pfm/code_spans/336.snap.ast +4 -0
  1245. package/test/snapshots/pfm/code_spans/337.snap.ast +4 -0
  1246. package/test/snapshots/pfm/code_spans/338.snap.ast +6 -0
  1247. package/test/snapshots/pfm/code_spans/339.snap.ast +4 -0
  1248. package/test/snapshots/pfm/code_spans/340.snap.ast +4 -0
  1249. package/test/snapshots/pfm/code_spans/341.snap.ast +6 -0
  1250. package/test/snapshots/pfm/code_spans/342.snap.ast +7 -0
  1251. package/test/snapshots/pfm/code_spans/343.snap.ast +6 -0
  1252. package/test/snapshots/pfm/code_spans/344.snap.ast +5 -0
  1253. package/test/snapshots/pfm/code_spans/345.snap.ast +6 -0
  1254. package/test/snapshots/pfm/code_spans/346.snap.ast +6 -0
  1255. package/test/snapshots/pfm/code_spans/347.snap.ast +2 -0
  1256. package/test/snapshots/pfm/code_spans/348.snap.ast +5 -0
  1257. package/test/snapshots/pfm/code_spans/349.snap.ast +6 -0
  1258. package/test/snapshots/pfm/code_spans/pfm_328_1.snap.ast +4 -0
  1259. package/test/snapshots/pfm/code_spans/pfm_328_2.snap.ast +4 -0
  1260. package/test/snapshots/pfm/code_spans/pfm_328_3.snap.ast +4 -0
  1261. package/test/snapshots/pfm/code_spans/pfm_328_4.snap.ast +4 -0
  1262. package/test/snapshots/pfm/code_spans/pfm_328_5.snap.ast +6 -0
  1263. package/test/snapshots/pfm/code_spans/pfm_328_6.snap.ast +6 -0
  1264. package/test/snapshots/pfm/code_spans/pfm_328_7.snap.ast +6 -0
  1265. package/test/snapshots/pfm/code_spans/pfm_328_8.snap.ast +8 -0
  1266. package/test/snapshots/pfm/code_spans/pfm_328_9.snap.ast +10 -0
  1267. package/test/snapshots/pfm/emphasis_and_strong_emphasis/350.snap.ast +5 -0
  1268. package/test/snapshots/pfm/emphasis_and_strong_emphasis/351.snap.ast +6 -0
  1269. package/test/snapshots/pfm/emphasis_and_strong_emphasis/352.snap.ast +6 -0
  1270. package/test/snapshots/pfm/emphasis_and_strong_emphasis/353.snap.ast +5 -0
  1271. package/test/snapshots/pfm/emphasis_and_strong_emphasis/354.snap.ast +18 -0
  1272. package/test/snapshots/pfm/emphasis_and_strong_emphasis/355.snap.ast +6 -0
  1273. package/test/snapshots/pfm/emphasis_and_strong_emphasis/356.snap.ast +6 -0
  1274. package/test/snapshots/pfm/emphasis_and_strong_emphasis/357.snap.ast +5 -0
  1275. package/test/snapshots/pfm/emphasis_and_strong_emphasis/358.snap.ast +5 -0
  1276. package/test/snapshots/pfm/emphasis_and_strong_emphasis/359.snap.ast +6 -0
  1277. package/test/snapshots/pfm/emphasis_and_strong_emphasis/360.snap.ast +6 -0
  1278. package/test/snapshots/pfm/emphasis_and_strong_emphasis/361.snap.ast +6 -0
  1279. package/test/snapshots/pfm/emphasis_and_strong_emphasis/362.snap.ast +6 -0
  1280. package/test/snapshots/pfm/emphasis_and_strong_emphasis/363.snap.ast +6 -0
  1281. package/test/snapshots/pfm/emphasis_and_strong_emphasis/364.snap.ast +6 -0
  1282. package/test/snapshots/pfm/emphasis_and_strong_emphasis/365.snap.ast +6 -0
  1283. package/test/snapshots/pfm/emphasis_and_strong_emphasis/366.snap.ast +6 -0
  1284. package/test/snapshots/pfm/emphasis_and_strong_emphasis/367.snap.ast +7 -0
  1285. package/test/snapshots/pfm/emphasis_and_strong_emphasis/368.snap.ast +6 -0
  1286. package/test/snapshots/pfm/emphasis_and_strong_emphasis/369.snap.ast +8 -0
  1287. package/test/snapshots/pfm/emphasis_and_strong_emphasis/370.snap.ast +6 -0
  1288. package/test/snapshots/pfm/emphasis_and_strong_emphasis/371.snap.ast +6 -0
  1289. package/test/snapshots/pfm/emphasis_and_strong_emphasis/372.snap.ast +6 -0
  1290. package/test/snapshots/pfm/emphasis_and_strong_emphasis/373.snap.ast +8 -0
  1291. package/test/snapshots/pfm/emphasis_and_strong_emphasis/374.snap.ast +6 -0
  1292. package/test/snapshots/pfm/emphasis_and_strong_emphasis/375.snap.ast +6 -0
  1293. package/test/snapshots/pfm/emphasis_and_strong_emphasis/376.snap.ast +7 -0
  1294. package/test/snapshots/pfm/emphasis_and_strong_emphasis/377.snap.ast +6 -0
  1295. package/test/snapshots/pfm/emphasis_and_strong_emphasis/378.snap.ast +5 -0
  1296. package/test/snapshots/pfm/emphasis_and_strong_emphasis/379.snap.ast +6 -0
  1297. package/test/snapshots/pfm/emphasis_and_strong_emphasis/380.snap.ast +6 -0
  1298. package/test/snapshots/pfm/emphasis_and_strong_emphasis/381.snap.ast +6 -0
  1299. package/test/snapshots/pfm/emphasis_and_strong_emphasis/382.snap.ast +5 -0
  1300. package/test/snapshots/pfm/emphasis_and_strong_emphasis/383.snap.ast +5 -0
  1301. package/test/snapshots/pfm/emphasis_and_strong_emphasis/384.snap.ast +7 -0
  1302. package/test/snapshots/pfm/emphasis_and_strong_emphasis/385.snap.ast +6 -0
  1303. package/test/snapshots/pfm/emphasis_and_strong_emphasis/386.snap.ast +6 -0
  1304. package/test/snapshots/pfm/emphasis_and_strong_emphasis/387.snap.ast +6 -0
  1305. package/test/snapshots/pfm/emphasis_and_strong_emphasis/388.snap.ast +6 -0
  1306. package/test/snapshots/pfm/emphasis_and_strong_emphasis/389.snap.ast +8 -0
  1307. package/test/snapshots/pfm/emphasis_and_strong_emphasis/390.snap.ast +6 -0
  1308. package/test/snapshots/pfm/emphasis_and_strong_emphasis/391.snap.ast +6 -0
  1309. package/test/snapshots/pfm/emphasis_and_strong_emphasis/392.snap.ast +6 -0
  1310. package/test/snapshots/pfm/emphasis_and_strong_emphasis/393.snap.ast +8 -0
  1311. package/test/snapshots/pfm/emphasis_and_strong_emphasis/394.snap.ast +12 -0
  1312. package/test/snapshots/pfm/emphasis_and_strong_emphasis/395.snap.ast +8 -0
  1313. package/test/snapshots/pfm/emphasis_and_strong_emphasis/396.snap.ast +6 -0
  1314. package/test/snapshots/pfm/emphasis_and_strong_emphasis/397.snap.ast +6 -0
  1315. package/test/snapshots/pfm/emphasis_and_strong_emphasis/398.snap.ast +6 -0
  1316. package/test/snapshots/pfm/emphasis_and_strong_emphasis/399.snap.ast +8 -0
  1317. package/test/snapshots/pfm/emphasis_and_strong_emphasis/400.snap.ast +6 -0
  1318. package/test/snapshots/pfm/emphasis_and_strong_emphasis/401.snap.ast +6 -0
  1319. package/test/snapshots/pfm/emphasis_and_strong_emphasis/402.snap.ast +7 -0
  1320. package/test/snapshots/pfm/emphasis_and_strong_emphasis/403.snap.ast +6 -0
  1321. package/test/snapshots/pfm/emphasis_and_strong_emphasis/404.snap.ast +7 -0
  1322. package/test/snapshots/pfm/emphasis_and_strong_emphasis/405.snap.ast +7 -0
  1323. package/test/snapshots/pfm/emphasis_and_strong_emphasis/406.snap.ast +8 -0
  1324. package/test/snapshots/pfm/emphasis_and_strong_emphasis/407.snap.ast +8 -0
  1325. package/test/snapshots/pfm/emphasis_and_strong_emphasis/408.snap.ast +7 -0
  1326. package/test/snapshots/pfm/emphasis_and_strong_emphasis/409.snap.ast +8 -0
  1327. package/test/snapshots/pfm/emphasis_and_strong_emphasis/410.snap.ast +8 -0
  1328. package/test/snapshots/pfm/emphasis_and_strong_emphasis/411.snap.ast +7 -0
  1329. package/test/snapshots/pfm/emphasis_and_strong_emphasis/412.snap.ast +6 -0
  1330. package/test/snapshots/pfm/emphasis_and_strong_emphasis/413.snap.ast +7 -0
  1331. package/test/snapshots/pfm/emphasis_and_strong_emphasis/414.snap.ast +7 -0
  1332. package/test/snapshots/pfm/emphasis_and_strong_emphasis/415.snap.ast +7 -0
  1333. package/test/snapshots/pfm/emphasis_and_strong_emphasis/416.snap.ast +8 -0
  1334. package/test/snapshots/pfm/emphasis_and_strong_emphasis/417.snap.ast +15 -0
  1335. package/test/snapshots/pfm/emphasis_and_strong_emphasis/418.snap.ast +11 -0
  1336. package/test/snapshots/pfm/emphasis_and_strong_emphasis/419.snap.ast +8 -0
  1337. package/test/snapshots/pfm/emphasis_and_strong_emphasis/420.snap.ast +5 -0
  1338. package/test/snapshots/pfm/emphasis_and_strong_emphasis/421.snap.ast +5 -0
  1339. package/test/snapshots/pfm/emphasis_and_strong_emphasis/422.snap.ast +7 -0
  1340. package/test/snapshots/pfm/emphasis_and_strong_emphasis/423.snap.ast +7 -0
  1341. package/test/snapshots/pfm/emphasis_and_strong_emphasis/424.snap.ast +8 -0
  1342. package/test/snapshots/pfm/emphasis_and_strong_emphasis/425.snap.ast +8 -0
  1343. package/test/snapshots/pfm/emphasis_and_strong_emphasis/426.snap.ast +7 -0
  1344. package/test/snapshots/pfm/emphasis_and_strong_emphasis/427.snap.ast +7 -0
  1345. package/test/snapshots/pfm/emphasis_and_strong_emphasis/428.snap.ast +8 -0
  1346. package/test/snapshots/pfm/emphasis_and_strong_emphasis/429.snap.ast +7 -0
  1347. package/test/snapshots/pfm/emphasis_and_strong_emphasis/430.snap.ast +7 -0
  1348. package/test/snapshots/pfm/emphasis_and_strong_emphasis/431.snap.ast +7 -0
  1349. package/test/snapshots/pfm/emphasis_and_strong_emphasis/432.snap.ast +12 -0
  1350. package/test/snapshots/pfm/emphasis_and_strong_emphasis/433.snap.ast +8 -0
  1351. package/test/snapshots/pfm/emphasis_and_strong_emphasis/434.snap.ast +4 -0
  1352. package/test/snapshots/pfm/emphasis_and_strong_emphasis/435.snap.ast +5 -0
  1353. package/test/snapshots/pfm/emphasis_and_strong_emphasis/436.snap.ast +7 -0
  1354. package/test/snapshots/pfm/emphasis_and_strong_emphasis/437.snap.ast +6 -0
  1355. package/test/snapshots/pfm/emphasis_and_strong_emphasis/438.snap.ast +6 -0
  1356. package/test/snapshots/pfm/emphasis_and_strong_emphasis/439.snap.ast +9 -0
  1357. package/test/snapshots/pfm/emphasis_and_strong_emphasis/440.snap.ast +6 -0
  1358. package/test/snapshots/pfm/emphasis_and_strong_emphasis/441.snap.ast +6 -0
  1359. package/test/snapshots/pfm/emphasis_and_strong_emphasis/442.snap.ast +6 -0
  1360. package/test/snapshots/pfm/emphasis_and_strong_emphasis/443.snap.ast +6 -0
  1361. package/test/snapshots/pfm/emphasis_and_strong_emphasis/444.snap.ast +6 -0
  1362. package/test/snapshots/pfm/emphasis_and_strong_emphasis/445.snap.ast +8 -0
  1363. package/test/snapshots/pfm/emphasis_and_strong_emphasis/446.snap.ast +6 -0
  1364. package/test/snapshots/pfm/emphasis_and_strong_emphasis/447.snap.ast +8 -0
  1365. package/test/snapshots/pfm/emphasis_and_strong_emphasis/448.snap.ast +7 -0
  1366. package/test/snapshots/pfm/emphasis_and_strong_emphasis/449.snap.ast +6 -0
  1367. package/test/snapshots/pfm/emphasis_and_strong_emphasis/450.snap.ast +6 -0
  1368. package/test/snapshots/pfm/emphasis_and_strong_emphasis/451.snap.ast +9 -0
  1369. package/test/snapshots/pfm/emphasis_and_strong_emphasis/452.snap.ast +6 -0
  1370. package/test/snapshots/pfm/emphasis_and_strong_emphasis/453.snap.ast +6 -0
  1371. package/test/snapshots/pfm/emphasis_and_strong_emphasis/454.snap.ast +6 -0
  1372. package/test/snapshots/pfm/emphasis_and_strong_emphasis/455.snap.ast +6 -0
  1373. package/test/snapshots/pfm/emphasis_and_strong_emphasis/456.snap.ast +6 -0
  1374. package/test/snapshots/pfm/emphasis_and_strong_emphasis/457.snap.ast +6 -0
  1375. package/test/snapshots/pfm/emphasis_and_strong_emphasis/458.snap.ast +6 -0
  1376. package/test/snapshots/pfm/emphasis_and_strong_emphasis/459.snap.ast +6 -0
  1377. package/test/snapshots/pfm/emphasis_and_strong_emphasis/460.snap.ast +5 -0
  1378. package/test/snapshots/pfm/emphasis_and_strong_emphasis/461.snap.ast +6 -0
  1379. package/test/snapshots/pfm/emphasis_and_strong_emphasis/462.snap.ast +5 -0
  1380. package/test/snapshots/pfm/emphasis_and_strong_emphasis/463.snap.ast +6 -0
  1381. package/test/snapshots/pfm/emphasis_and_strong_emphasis/464.snap.ast +6 -0
  1382. package/test/snapshots/pfm/emphasis_and_strong_emphasis/465.snap.ast +6 -0
  1383. package/test/snapshots/pfm/emphasis_and_strong_emphasis/466.snap.ast +8 -0
  1384. package/test/snapshots/pfm/emphasis_and_strong_emphasis/467.snap.ast +6 -0
  1385. package/test/snapshots/pfm/emphasis_and_strong_emphasis/468.snap.ast +12 -0
  1386. package/test/snapshots/pfm/emphasis_and_strong_emphasis/469.snap.ast +8 -0
  1387. package/test/snapshots/pfm/emphasis_and_strong_emphasis/470.snap.ast +10 -0
  1388. package/test/snapshots/pfm/emphasis_and_strong_emphasis/471.snap.ast +7 -0
  1389. package/test/snapshots/pfm/emphasis_and_strong_emphasis/472.snap.ast +7 -0
  1390. package/test/snapshots/pfm/emphasis_and_strong_emphasis/473.snap.ast +7 -0
  1391. package/test/snapshots/pfm/emphasis_and_strong_emphasis/474.snap.ast +8 -0
  1392. package/test/snapshots/pfm/emphasis_and_strong_emphasis/475.snap.ast +5 -0
  1393. package/test/snapshots/pfm/emphasis_and_strong_emphasis/476.snap.ast +5 -0
  1394. package/test/snapshots/pfm/emphasis_and_strong_emphasis/477.snap.ast +5 -0
  1395. package/test/snapshots/pfm/emphasis_and_strong_emphasis/478.snap.ast +6 -0
  1396. package/test/snapshots/pfm/emphasis_and_strong_emphasis/479.snap.ast +6 -0
  1397. package/test/snapshots/pfm/emphasis_and_strong_emphasis/480.snap.ast +7 -0
  1398. package/test/snapshots/pfm/emphasis_and_strong_emphasis/481.snap.ast +7 -0
  1399. package/test/snapshots/pfm/fenced_code_blocks/119.snap.ast +2 -0
  1400. package/test/snapshots/pfm/fenced_code_blocks/121.snap.ast +4 -0
  1401. package/test/snapshots/pfm/fenced_code_blocks/122.snap.ast +2 -0
  1402. package/test/snapshots/pfm/fenced_code_blocks/124.snap.ast +2 -0
  1403. package/test/snapshots/pfm/fenced_code_blocks/126.snap.ast +2 -0
  1404. package/test/snapshots/pfm/fenced_code_blocks/127.snap.ast +2 -0
  1405. package/test/snapshots/pfm/fenced_code_blocks/128.snap.ast +11 -0
  1406. package/test/snapshots/pfm/fenced_code_blocks/130.snap.ast +2 -0
  1407. package/test/snapshots/pfm/fenced_code_blocks/131.snap.ast +2 -0
  1408. package/test/snapshots/pfm/fenced_code_blocks/132.snap.ast +2 -0
  1409. package/test/snapshots/pfm/fenced_code_blocks/133.snap.ast +2 -0
  1410. package/test/snapshots/pfm/fenced_code_blocks/134.snap.ast +2 -0
  1411. package/test/snapshots/pfm/fenced_code_blocks/135.snap.ast +2 -0
  1412. package/test/snapshots/pfm/fenced_code_blocks/136.snap.ast +2 -0
  1413. package/test/snapshots/pfm/fenced_code_blocks/137.snap.ast +2 -0
  1414. package/test/snapshots/pfm/fenced_code_blocks/138.snap.ast +2 -0
  1415. package/test/snapshots/pfm/fenced_code_blocks/140.snap.ast +8 -0
  1416. package/test/snapshots/pfm/fenced_code_blocks/142.snap.ast +2 -0
  1417. package/test/snapshots/pfm/fenced_code_blocks/144.snap.ast +3 -0
  1418. package/test/snapshots/pfm/fenced_code_blocks/145.snap.ast +2 -0
  1419. package/test/snapshots/pfm/fenced_code_blocks/pfm_119_2.snap.ast +6 -0
  1420. package/test/snapshots/pfm/fenced_code_blocks/pfm_119_3.snap.ast +2 -0
  1421. package/test/snapshots/pfm/fenced_code_blocks/pfm_info_eof.snap.ast +2 -0
  1422. package/test/snapshots/pfm/fenced_code_blocks/pfm_info_eof_no_lf.snap.ast +2 -0
  1423. package/test/snapshots/pfm/frontmatter/1.snap.ast +6 -0
  1424. package/test/snapshots/pfm/frontmatter/10.snap.ast +4 -0
  1425. package/test/snapshots/pfm/frontmatter/2.snap.ast +2 -0
  1426. package/test/snapshots/pfm/frontmatter/3.snap.ast +2 -0
  1427. package/test/snapshots/pfm/frontmatter/4.snap.ast +2 -0
  1428. package/test/snapshots/pfm/frontmatter/5.snap.ast +7 -0
  1429. package/test/snapshots/pfm/frontmatter/6.snap.ast +9 -0
  1430. package/test/snapshots/pfm/frontmatter/7.snap.ast +2 -0
  1431. package/test/snapshots/pfm/frontmatter/8.snap.ast +6 -0
  1432. package/test/snapshots/pfm/frontmatter/9.snap.ast +7 -0
  1433. package/test/snapshots/pfm/generic_directives/001.snap.ast +5 -0
  1434. package/test/snapshots/pfm/generic_directives/002.snap.ast +4 -0
  1435. package/test/snapshots/pfm/generic_directives/003.snap.ast +5 -0
  1436. package/test/snapshots/pfm/generic_directives/004.snap.ast +5 -0
  1437. package/test/snapshots/pfm/generic_directives/005.snap.ast +5 -0
  1438. package/test/snapshots/pfm/generic_directives/006.snap.ast +7 -0
  1439. package/test/snapshots/pfm/generic_directives/007.snap.ast +8 -0
  1440. package/test/snapshots/pfm/generic_directives/008.snap.ast +4 -0
  1441. package/test/snapshots/pfm/generic_directives/009.snap.ast +5 -0
  1442. package/test/snapshots/pfm/generic_directives/010.snap.ast +6 -0
  1443. package/test/snapshots/pfm/generic_directives/011.snap.ast +4 -0
  1444. package/test/snapshots/pfm/generic_directives/012.snap.ast +5 -0
  1445. package/test/snapshots/pfm/generic_directives/013.snap.ast +2 -0
  1446. package/test/snapshots/pfm/generic_directives/014.snap.ast +7 -0
  1447. package/test/snapshots/pfm/generic_directives/015.snap.ast +8 -0
  1448. package/test/snapshots/pfm/generic_directives/016.snap.ast +4 -0
  1449. package/test/snapshots/pfm/generic_directives/017.snap.ast +5 -0
  1450. package/test/snapshots/pfm/generic_directives/018.snap.ast +4 -0
  1451. package/test/snapshots/pfm/generic_directives/019.snap.ast +7 -0
  1452. package/test/snapshots/pfm/generic_directives/020.snap.ast +7 -0
  1453. package/test/snapshots/pfm/generic_directives/021.snap.ast +5 -0
  1454. package/test/snapshots/pfm/generic_directives/022.snap.ast +9 -0
  1455. package/test/snapshots/pfm/generic_directives/023.snap.ast +5 -0
  1456. package/test/snapshots/pfm/generic_directives/024.snap.ast +6 -0
  1457. package/test/snapshots/pfm/generic_directives/025.snap.ast +2 -0
  1458. package/test/snapshots/pfm/generic_directives/026.snap.ast +5 -0
  1459. package/test/snapshots/pfm/generic_directives/027.snap.ast +10 -0
  1460. package/test/snapshots/pfm/generic_directives/028.snap.ast +3 -0
  1461. package/test/snapshots/pfm/generic_directives/029.snap.ast +12 -0
  1462. package/test/snapshots/pfm/generic_directives/030.snap.ast +7 -0
  1463. package/test/snapshots/pfm/generic_directives/031.snap.ast +8 -0
  1464. package/test/snapshots/pfm/generic_directives/032.snap.ast +8 -0
  1465. package/test/snapshots/pfm/generic_directives/033.snap.ast +3 -0
  1466. package/test/snapshots/pfm/generic_directives/034.snap.ast +10 -0
  1467. package/test/snapshots/pfm/generic_directives/035.snap.ast +6 -0
  1468. package/test/snapshots/pfm/generic_directives/036.snap.ast +6 -0
  1469. package/test/snapshots/pfm/generic_directives/037.snap.ast +10 -0
  1470. package/test/snapshots/pfm/generic_directives/038.snap.ast +8 -0
  1471. package/test/snapshots/pfm/generic_directives/039.snap.ast +11 -0
  1472. package/test/snapshots/pfm/generic_directives/040.snap.ast +17 -0
  1473. package/test/snapshots/pfm/generic_directives/041.snap.ast +4 -0
  1474. package/test/snapshots/pfm/generic_directives/042.snap.ast +5 -0
  1475. package/test/snapshots/pfm/generic_directives/043.snap.ast +5 -0
  1476. package/test/snapshots/pfm/generic_directives/044.snap.ast +4 -0
  1477. package/test/snapshots/pfm/generic_directives/045.snap.ast +2 -0
  1478. package/test/snapshots/pfm/generic_directives/046.snap.ast +7 -0
  1479. package/test/snapshots/pfm/generic_directives/047.snap.ast +6 -0
  1480. package/test/snapshots/pfm/generic_directives/048.snap.ast +5 -0
  1481. package/test/snapshots/pfm/generic_directives/049.snap.ast +5 -0
  1482. package/test/snapshots/pfm/generic_directives/050.snap.ast +5 -0
  1483. package/test/snapshots/pfm/generic_directives/051.snap.ast +5 -0
  1484. package/test/snapshots/pfm/generic_directives/052.snap.ast +5 -0
  1485. package/test/snapshots/pfm/generic_directives/053.snap.ast +6 -0
  1486. package/test/snapshots/pfm/generic_directives/054.snap.ast +6 -0
  1487. package/test/snapshots/pfm/generic_directives/055.snap.ast +6 -0
  1488. package/test/snapshots/pfm/generic_directives/056.snap.ast +6 -0
  1489. package/test/snapshots/pfm/generic_directives/057.snap.ast +6 -0
  1490. package/test/snapshots/pfm/generic_directives/058.snap.ast +6 -0
  1491. package/test/snapshots/pfm/generic_directives/059.snap.ast +6 -0
  1492. package/test/snapshots/pfm/generic_directives/060.snap.ast +7 -0
  1493. package/test/snapshots/pfm/generic_directives/061.snap.ast +7 -0
  1494. package/test/snapshots/pfm/generic_directives/062.snap.ast +7 -0
  1495. package/test/snapshots/pfm/generic_directives/063.snap.ast +6 -0
  1496. package/test/snapshots/pfm/generic_directives/064.snap.ast +7 -0
  1497. package/test/snapshots/pfm/generic_directives/065.snap.ast +8 -0
  1498. package/test/snapshots/pfm/generic_directives/066.snap.ast +9 -0
  1499. package/test/snapshots/pfm/generic_directives/067.snap.ast +16 -0
  1500. package/test/snapshots/pfm/generic_directives/068.snap.ast +7 -0
  1501. package/test/snapshots/pfm/generic_directives/069.snap.ast +6 -0
  1502. package/test/snapshots/pfm/generic_directives/070.snap.ast +9 -0
  1503. package/test/snapshots/pfm/generic_directives/071.snap.ast +7 -0
  1504. package/test/snapshots/pfm/generic_directives/072.snap.ast +8 -0
  1505. package/test/snapshots/pfm/generic_directives/073.snap.ast +6 -0
  1506. package/test/snapshots/pfm/generic_directives/074.snap.ast +10 -0
  1507. package/test/snapshots/pfm/generic_directives/075.snap.ast +8 -0
  1508. package/test/snapshots/pfm/generic_directives/076.snap.ast +8 -0
  1509. package/test/snapshots/pfm/generic_directives/077.snap.ast +7 -0
  1510. package/test/snapshots/pfm/generic_directives/078.snap.ast +8 -0
  1511. package/test/snapshots/pfm/generic_directives/079.snap.ast +5 -0
  1512. package/test/snapshots/pfm/generic_directives/080.snap.ast +5 -0
  1513. package/test/snapshots/pfm/generic_directives/081.snap.ast +6 -0
  1514. package/test/snapshots/pfm/generic_directives/082.snap.ast +11 -0
  1515. package/test/snapshots/pfm/generic_directives/083.snap.ast +9 -0
  1516. package/test/snapshots/pfm/generic_directives/084.snap.ast +8 -0
  1517. package/test/snapshots/pfm/generic_directives/085.snap.ast +7 -0
  1518. package/test/snapshots/pfm/generic_directives/086.snap.ast +4 -0
  1519. package/test/snapshots/pfm/generic_directives/087.snap.ast +6 -0
  1520. package/test/snapshots/pfm/generic_directives/088.snap.ast +10 -0
  1521. package/test/snapshots/pfm/generic_directives/089.snap.ast +8 -0
  1522. package/test/snapshots/pfm/generic_directives/090.snap.ast +5 -0
  1523. package/test/snapshots/pfm/generic_directives/091.snap.ast +5 -0
  1524. package/test/snapshots/pfm/generic_directives/092.snap.ast +16 -0
  1525. package/test/snapshots/pfm/generic_directives/093.snap.ast +6 -0
  1526. package/test/snapshots/pfm/generic_directives/094.snap.ast +8 -0
  1527. package/test/snapshots/pfm/generic_directives/095.snap.ast +7 -0
  1528. package/test/snapshots/pfm/generic_directives/096.snap.ast +5 -0
  1529. package/test/snapshots/pfm/generic_directives/097.snap.ast +5 -0
  1530. package/test/snapshots/pfm/generic_directives/098.snap.ast +5 -0
  1531. package/test/snapshots/pfm/generic_directives/099.snap.ast +8 -0
  1532. package/test/snapshots/pfm/generic_directives/100.snap.ast +9 -0
  1533. package/test/snapshots/pfm/generic_directives/101.snap.ast +7 -0
  1534. package/test/snapshots/pfm/generic_directives/102.snap.ast +8 -0
  1535. package/test/snapshots/pfm/generic_directives/103.snap.ast +13 -0
  1536. package/test/snapshots/pfm/generic_directives/104.snap.ast +6 -0
  1537. package/test/snapshots/pfm/generic_directives/105.snap.ast +8 -0
  1538. package/test/snapshots/pfm/generic_directives/106.snap.ast +9 -0
  1539. package/test/snapshots/pfm/generic_directives/107.snap.ast +9 -0
  1540. package/test/snapshots/pfm/generic_directives/108.snap.ast +5 -0
  1541. package/test/snapshots/pfm/generic_directives/109.snap.ast +4 -0
  1542. package/test/snapshots/pfm/generic_directives/110.snap.ast +10 -0
  1543. package/test/snapshots/pfm/generic_directives/111.snap.ast +7 -0
  1544. package/test/snapshots/pfm/generic_directives/112.snap.ast +18 -0
  1545. package/test/snapshots/pfm/generic_directives/113.snap.ast +7 -0
  1546. package/test/snapshots/pfm/generic_directives/114.snap.ast +12 -0
  1547. package/test/snapshots/pfm/generic_directives/115.snap.ast +10 -0
  1548. package/test/snapshots/pfm/generic_directives/116.snap.ast +13 -0
  1549. package/test/snapshots/pfm/generic_directives/117.snap.ast +9 -0
  1550. package/test/snapshots/pfm/generic_directives/118.snap.ast +10 -0
  1551. package/test/snapshots/pfm/generic_directives/119.snap.ast +9 -0
  1552. package/test/snapshots/pfm/generic_directives/120.snap.ast +12 -0
  1553. package/test/snapshots/pfm/generic_directives/121.snap.ast +3 -0
  1554. package/test/snapshots/pfm/generic_directives/122.snap.ast +3 -0
  1555. package/test/snapshots/pfm/generic_directives/123.snap.ast +3 -0
  1556. package/test/snapshots/pfm/hard_line_breaks/633.snap.ast +6 -0
  1557. package/test/snapshots/pfm/hard_line_breaks/634.snap.ast +6 -0
  1558. package/test/snapshots/pfm/hard_line_breaks/635.snap.ast +6 -0
  1559. package/test/snapshots/pfm/hard_line_breaks/636.snap.ast +6 -0
  1560. package/test/snapshots/pfm/hard_line_breaks/637.snap.ast +6 -0
  1561. package/test/snapshots/pfm/hard_line_breaks/638.snap.ast +7 -0
  1562. package/test/snapshots/pfm/hard_line_breaks/639.snap.ast +7 -0
  1563. package/test/snapshots/pfm/hard_line_breaks/640.snap.ast +4 -0
  1564. package/test/snapshots/pfm/hard_line_breaks/641.snap.ast +4 -0
  1565. package/test/snapshots/pfm/hard_line_breaks/642.snap.ast +4 -0
  1566. package/test/snapshots/pfm/hard_line_breaks/643.snap.ast +4 -0
  1567. package/test/snapshots/pfm/hard_line_breaks/644.snap.ast +4 -0
  1568. package/test/snapshots/pfm/hard_line_breaks/645.snap.ast +4 -0
  1569. package/test/snapshots/pfm/hard_line_breaks/646.snap.ast +4 -0
  1570. package/test/snapshots/pfm/hard_line_breaks/647.snap.ast +4 -0
  1571. package/test/snapshots/pfm/html/148.snap.ast +21 -0
  1572. package/test/snapshots/pfm/html/149.snap.ast +17 -0
  1573. package/test/snapshots/pfm/html/150.snap.ast +11 -0
  1574. package/test/snapshots/pfm/html/151.snap.ast +7 -0
  1575. package/test/snapshots/pfm/html/152.snap.ast +10 -0
  1576. package/test/snapshots/pfm/html/153.snap.ast +4 -0
  1577. package/test/snapshots/pfm/html/154.snap.ast +4 -0
  1578. package/test/snapshots/pfm/html/155.snap.ast +13 -0
  1579. package/test/snapshots/pfm/html/156.snap.ast +7 -0
  1580. package/test/snapshots/pfm/html/157.snap.ast +6 -0
  1581. package/test/snapshots/pfm/html/158.snap.ast +10 -0
  1582. package/test/snapshots/pfm/html/159.snap.ast +6 -0
  1583. package/test/snapshots/pfm/html/160.snap.ast +9 -0
  1584. package/test/snapshots/pfm/html/161.snap.ast +4 -0
  1585. package/test/snapshots/pfm/html/162.snap.ast +7 -0
  1586. package/test/snapshots/pfm/html/163.snap.ast +8 -0
  1587. package/test/snapshots/pfm/html/164.snap.ast +7 -0
  1588. package/test/snapshots/pfm/html/165.snap.ast +7 -0
  1589. package/test/snapshots/pfm/html/166.snap.ast +8 -0
  1590. package/test/snapshots/pfm/html/167.snap.ast +10 -0
  1591. package/test/snapshots/pfm/html/168.snap.ast +5 -0
  1592. package/test/snapshots/pfm/html/169.snap.ast +15 -0
  1593. package/test/snapshots/pfm/html/170.snap.ast +6 -0
  1594. package/test/snapshots/pfm/html/171.snap.ast +15 -0
  1595. package/test/snapshots/pfm/html/172.snap.ast +6 -0
  1596. package/test/snapshots/pfm/html/173.snap.ast +2 -0
  1597. package/test/snapshots/pfm/html/174.snap.ast +11 -0
  1598. package/test/snapshots/pfm/html/175.snap.ast +7 -0
  1599. package/test/snapshots/pfm/html/176.snap.ast +7 -0
  1600. package/test/snapshots/pfm/html/177.snap.ast +9 -0
  1601. package/test/snapshots/pfm/html/178.snap.ast +7 -0
  1602. package/test/snapshots/pfm/html/179.snap.ast +6 -0
  1603. package/test/snapshots/pfm/html/180.snap.ast +14 -0
  1604. package/test/snapshots/pfm/html/181.snap.ast +5 -0
  1605. package/test/snapshots/pfm/html/182.snap.ast +16 -0
  1606. package/test/snapshots/pfm/html/183.snap.ast +6 -0
  1607. package/test/snapshots/pfm/html/184.snap.ast +8 -0
  1608. package/test/snapshots/pfm/html/185.snap.ast +10 -0
  1609. package/test/snapshots/pfm/html/186.snap.ast +11 -0
  1610. package/test/snapshots/pfm/html/187.snap.ast +8 -0
  1611. package/test/snapshots/pfm/html/188.snap.ast +11 -0
  1612. package/test/snapshots/pfm/html/189.snap.ast +9 -0
  1613. package/test/snapshots/pfm/html/190.snap.ast +17 -0
  1614. package/test/snapshots/pfm/html/191.snap.ast +17 -0
  1615. package/test/snapshots/pfm/html/613.snap.ast +8 -0
  1616. package/test/snapshots/pfm/html/614.snap.ast +4 -0
  1617. package/test/snapshots/pfm/html/615.snap.ast +5 -0
  1618. package/test/snapshots/pfm/html/616.snap.ast +3 -0
  1619. package/test/snapshots/pfm/html/617.snap.ast +5 -0
  1620. package/test/snapshots/pfm/html/618.snap.ast +5 -0
  1621. package/test/snapshots/pfm/html/619.snap.ast +4 -0
  1622. package/test/snapshots/pfm/html/620.snap.ast +5 -0
  1623. package/test/snapshots/pfm/html/621.snap.ast +10 -0
  1624. package/test/snapshots/pfm/html/622.snap.ast +4 -0
  1625. package/test/snapshots/pfm/html/623.snap.ast +5 -0
  1626. package/test/snapshots/pfm/html/624.snap.ast +4 -0
  1627. package/test/snapshots/pfm/html/625.snap.ast +5 -0
  1628. package/test/snapshots/pfm/html/626.snap.ast +10 -0
  1629. package/test/snapshots/pfm/html/627.snap.ast +5 -0
  1630. package/test/snapshots/pfm/html/628.snap.ast +6 -0
  1631. package/test/snapshots/pfm/html/629.snap.ast +12 -0
  1632. package/test/snapshots/pfm/html/630.snap.ast +5 -0
  1633. package/test/snapshots/pfm/html/631.snap.ast +5 -0
  1634. package/test/snapshots/pfm/html/632.snap.ast +4 -0
  1635. package/test/snapshots/pfm/images/572.snap.ast +5 -0
  1636. package/test/snapshots/pfm/images/573.snap.ast +9 -0
  1637. package/test/snapshots/pfm/images/574.snap.ast +7 -0
  1638. package/test/snapshots/pfm/images/575.snap.ast +7 -0
  1639. package/test/snapshots/pfm/images/576.snap.ast +11 -0
  1640. package/test/snapshots/pfm/images/577.snap.ast +11 -0
  1641. package/test/snapshots/pfm/images/578.snap.ast +5 -0
  1642. package/test/snapshots/pfm/images/579.snap.ast +6 -0
  1643. package/test/snapshots/pfm/images/580.snap.ast +5 -0
  1644. package/test/snapshots/pfm/images/581.snap.ast +4 -0
  1645. package/test/snapshots/pfm/images/582.snap.ast +8 -0
  1646. package/test/snapshots/pfm/images/583.snap.ast +8 -0
  1647. package/test/snapshots/pfm/images/584.snap.ast +8 -0
  1648. package/test/snapshots/pfm/images/585.snap.ast +11 -0
  1649. package/test/snapshots/pfm/images/586.snap.ast +8 -0
  1650. package/test/snapshots/pfm/images/587.snap.ast +9 -0
  1651. package/test/snapshots/pfm/images/588.snap.ast +6 -0
  1652. package/test/snapshots/pfm/images/589.snap.ast +9 -0
  1653. package/test/snapshots/pfm/images/590.snap.ast +12 -0
  1654. package/test/snapshots/pfm/images/591.snap.ast +6 -0
  1655. package/test/snapshots/pfm/images/592.snap.ast +7 -0
  1656. package/test/snapshots/pfm/images/593.snap.ast +7 -0
  1657. package/test/snapshots/pfm/imports/1.snap.ast +6 -0
  1658. package/test/snapshots/pfm/imports/10.snap.ast +4 -0
  1659. package/test/snapshots/pfm/imports/11.snap.ast +6 -0
  1660. package/test/snapshots/pfm/imports/2.snap.ast +7 -0
  1661. package/test/snapshots/pfm/imports/3.snap.ast +7 -0
  1662. package/test/snapshots/pfm/imports/4.snap.ast +6 -0
  1663. package/test/snapshots/pfm/imports/5.snap.ast +6 -0
  1664. package/test/snapshots/pfm/imports/6.snap.ast +8 -0
  1665. package/test/snapshots/pfm/imports/7.snap.ast +6 -0
  1666. package/test/snapshots/pfm/imports/8.snap.ast +8 -0
  1667. package/test/snapshots/pfm/imports/9.snap.ast +2 -0
  1668. package/test/snapshots/pfm/inlines/327.snap.ast +6 -0
  1669. package/test/snapshots/pfm/link_reference_definitions/192.snap.ast +6 -0
  1670. package/test/snapshots/pfm/link_reference_definitions/193.snap.ast +6 -0
  1671. package/test/snapshots/pfm/link_reference_definitions/194.snap.ast +8 -0
  1672. package/test/snapshots/pfm/link_reference_definitions/195.snap.ast +6 -0
  1673. package/test/snapshots/pfm/link_reference_definitions/196.snap.ast +6 -0
  1674. package/test/snapshots/pfm/link_reference_definitions/197.snap.ast +16 -0
  1675. package/test/snapshots/pfm/link_reference_definitions/198.snap.ast +6 -0
  1676. package/test/snapshots/pfm/link_reference_definitions/199.snap.ast +12 -0
  1677. package/test/snapshots/pfm/link_reference_definitions/200.snap.ast +6 -0
  1678. package/test/snapshots/pfm/link_reference_definitions/201.snap.ast +14 -0
  1679. package/test/snapshots/pfm/link_reference_definitions/202.snap.ast +6 -0
  1680. package/test/snapshots/pfm/link_reference_definitions/203.snap.ast +6 -0
  1681. package/test/snapshots/pfm/link_reference_definitions/204.snap.ast +8 -0
  1682. package/test/snapshots/pfm/link_reference_definitions/205.snap.ast +6 -0
  1683. package/test/snapshots/pfm/link_reference_definitions/206.snap.ast +6 -0
  1684. package/test/snapshots/pfm/link_reference_definitions/207.snap.ast +1 -0
  1685. package/test/snapshots/pfm/link_reference_definitions/208.snap.ast +12 -0
  1686. package/test/snapshots/pfm/link_reference_definitions/209.snap.ast +5 -0
  1687. package/test/snapshots/pfm/link_reference_definitions/210.snap.ast +7 -0
  1688. package/test/snapshots/pfm/link_reference_definitions/211.snap.ast +6 -0
  1689. package/test/snapshots/pfm/link_reference_definitions/212.snap.ast +9 -0
  1690. package/test/snapshots/pfm/link_reference_definitions/213.snap.ast +14 -0
  1691. package/test/snapshots/pfm/link_reference_definitions/214.snap.ast +11 -0
  1692. package/test/snapshots/pfm/link_reference_definitions/215.snap.ast +9 -0
  1693. package/test/snapshots/pfm/link_reference_definitions/216.snap.ast +7 -0
  1694. package/test/snapshots/pfm/link_reference_definitions/217.snap.ast +14 -0
  1695. package/test/snapshots/pfm/link_reference_definitions/218.snap.ast +13 -0
  1696. package/test/snapshots/pfm/links/482.snap.ast +5 -0
  1697. package/test/snapshots/pfm/links/483.snap.ast +5 -0
  1698. package/test/snapshots/pfm/links/484.snap.ast +4 -0
  1699. package/test/snapshots/pfm/links/485.snap.ast +5 -0
  1700. package/test/snapshots/pfm/links/486.snap.ast +5 -0
  1701. package/test/snapshots/pfm/links/487.snap.ast +4 -0
  1702. package/test/snapshots/pfm/links/488.snap.ast +5 -0
  1703. package/test/snapshots/pfm/links/489.snap.ast +5 -0
  1704. package/test/snapshots/pfm/links/490.snap.ast +7 -0
  1705. package/test/snapshots/pfm/links/491.snap.ast +7 -0
  1706. package/test/snapshots/pfm/links/492.snap.ast +5 -0
  1707. package/test/snapshots/pfm/links/493.snap.ast +5 -0
  1708. package/test/snapshots/pfm/links/494.snap.ast +11 -0
  1709. package/test/snapshots/pfm/links/495.snap.ast +5 -0
  1710. package/test/snapshots/pfm/links/496.snap.ast +5 -0
  1711. package/test/snapshots/pfm/links/497.snap.ast +5 -0
  1712. package/test/snapshots/pfm/links/498.snap.ast +5 -0
  1713. package/test/snapshots/pfm/links/499.snap.ast +5 -0
  1714. package/test/snapshots/pfm/links/500.snap.ast +5 -0
  1715. package/test/snapshots/pfm/links/501.snap.ast +15 -0
  1716. package/test/snapshots/pfm/links/502.snap.ast +5 -0
  1717. package/test/snapshots/pfm/links/503.snap.ast +5 -0
  1718. package/test/snapshots/pfm/links/504.snap.ast +5 -0
  1719. package/test/snapshots/pfm/links/505.snap.ast +11 -0
  1720. package/test/snapshots/pfm/links/506.snap.ast +5 -0
  1721. package/test/snapshots/pfm/links/507.snap.ast +5 -0
  1722. package/test/snapshots/pfm/links/508.snap.ast +5 -0
  1723. package/test/snapshots/pfm/links/509.snap.ast +5 -0
  1724. package/test/snapshots/pfm/links/510.snap.ast +7 -0
  1725. package/test/snapshots/pfm/links/511.snap.ast +5 -0
  1726. package/test/snapshots/pfm/links/512.snap.ast +11 -0
  1727. package/test/snapshots/pfm/links/513.snap.ast +6 -0
  1728. package/test/snapshots/pfm/links/514.snap.ast +7 -0
  1729. package/test/snapshots/pfm/links/515.snap.ast +6 -0
  1730. package/test/snapshots/pfm/links/516.snap.ast +12 -0
  1731. package/test/snapshots/pfm/links/517.snap.ast +6 -0
  1732. package/test/snapshots/pfm/links/518.snap.ast +7 -0
  1733. package/test/snapshots/pfm/links/519.snap.ast +10 -0
  1734. package/test/snapshots/pfm/links/520.snap.ast +7 -0
  1735. package/test/snapshots/pfm/links/521.snap.ast +7 -0
  1736. package/test/snapshots/pfm/links/522.snap.ast +9 -0
  1737. package/test/snapshots/pfm/links/523.snap.ast +9 -0
  1738. package/test/snapshots/pfm/links/524.snap.ast +6 -0
  1739. package/test/snapshots/pfm/links/525.snap.ast +6 -0
  1740. package/test/snapshots/pfm/links/526.snap.ast +7 -0
  1741. package/test/snapshots/pfm/links/527.snap.ast +6 -0
  1742. package/test/snapshots/pfm/links/528.snap.ast +14 -0
  1743. package/test/snapshots/pfm/links/529.snap.ast +7 -0
  1744. package/test/snapshots/pfm/links/530.snap.ast +13 -0
  1745. package/test/snapshots/pfm/links/531.snap.ast +7 -0
  1746. package/test/snapshots/pfm/links/532.snap.ast +8 -0
  1747. package/test/snapshots/pfm/links/533.snap.ast +10 -0
  1748. package/test/snapshots/pfm/links/534.snap.ast +8 -0
  1749. package/test/snapshots/pfm/links/535.snap.ast +11 -0
  1750. package/test/snapshots/pfm/links/536.snap.ast +7 -0
  1751. package/test/snapshots/pfm/links/537.snap.ast +7 -0
  1752. package/test/snapshots/pfm/links/538.snap.ast +8 -0
  1753. package/test/snapshots/pfm/links/539.snap.ast +6 -0
  1754. package/test/snapshots/pfm/links/540.snap.ast +8 -0
  1755. package/test/snapshots/pfm/links/541.snap.ast +15 -0
  1756. package/test/snapshots/pfm/links/542.snap.ast +8 -0
  1757. package/test/snapshots/pfm/links/543.snap.ast +11 -0
  1758. package/test/snapshots/pfm/links/544.snap.ast +7 -0
  1759. package/test/snapshots/pfm/links/545.snap.ast +10 -0
  1760. package/test/snapshots/pfm/links/546.snap.ast +16 -0
  1761. package/test/snapshots/pfm/links/547.snap.ast +18 -0
  1762. package/test/snapshots/pfm/links/548.snap.ast +14 -0
  1763. package/test/snapshots/pfm/links/549.snap.ast +6 -0
  1764. package/test/snapshots/pfm/links/550.snap.ast +7 -0
  1765. package/test/snapshots/pfm/links/551.snap.ast +12 -0
  1766. package/test/snapshots/pfm/links/552.snap.ast +12 -0
  1767. package/test/snapshots/pfm/links/553.snap.ast +6 -0
  1768. package/test/snapshots/pfm/links/554.snap.ast +8 -0
  1769. package/test/snapshots/pfm/links/555.snap.ast +6 -0
  1770. package/test/snapshots/pfm/links/556.snap.ast +9 -0
  1771. package/test/snapshots/pfm/links/557.snap.ast +6 -0
  1772. package/test/snapshots/pfm/links/558.snap.ast +8 -0
  1773. package/test/snapshots/pfm/links/559.snap.ast +10 -0
  1774. package/test/snapshots/pfm/links/560.snap.ast +9 -0
  1775. package/test/snapshots/pfm/links/561.snap.ast +6 -0
  1776. package/test/snapshots/pfm/links/562.snap.ast +7 -0
  1777. package/test/snapshots/pfm/links/563.snap.ast +8 -0
  1778. package/test/snapshots/pfm/links/564.snap.ast +8 -0
  1779. package/test/snapshots/pfm/links/565.snap.ast +6 -0
  1780. package/test/snapshots/pfm/links/566.snap.ast +6 -0
  1781. package/test/snapshots/pfm/links/567.snap.ast +6 -0
  1782. package/test/snapshots/pfm/links/568.snap.ast +6 -0
  1783. package/test/snapshots/pfm/links/569.snap.ast +8 -0
  1784. package/test/snapshots/pfm/links/570.snap.ast +8 -0
  1785. package/test/snapshots/pfm/links/571.snap.ast +8 -0
  1786. package/test/snapshots/pfm/list_items/253.snap.ast +15 -0
  1787. package/test/snapshots/pfm/list_items/254.snap.ast +13 -0
  1788. package/test/snapshots/pfm/list_items/255.snap.ast +9 -0
  1789. package/test/snapshots/pfm/list_items/256.snap.ast +8 -0
  1790. package/test/snapshots/pfm/list_items/257.snap.ast +8 -0
  1791. package/test/snapshots/pfm/list_items/258.snap.ast +8 -0
  1792. package/test/snapshots/pfm/list_items/259.snap.ast +10 -0
  1793. package/test/snapshots/pfm/list_items/260.snap.ast +10 -0
  1794. package/test/snapshots/pfm/list_items/261.snap.ast +8 -0
  1795. package/test/snapshots/pfm/list_items/262.snap.ast +8 -0
  1796. package/test/snapshots/pfm/list_items/263.snap.ast +12 -0
  1797. package/test/snapshots/pfm/list_items/264.snap.ast +10 -0
  1798. package/test/snapshots/pfm/list_items/265.snap.ast +5 -0
  1799. package/test/snapshots/pfm/list_items/266.snap.ast +4 -0
  1800. package/test/snapshots/pfm/list_items/267.snap.ast +5 -0
  1801. package/test/snapshots/pfm/list_items/268.snap.ast +5 -0
  1802. package/test/snapshots/pfm/list_items/269.snap.ast +4 -0
  1803. package/test/snapshots/pfm/list_items/270.snap.ast +8 -0
  1804. package/test/snapshots/pfm/list_items/271.snap.ast +8 -0
  1805. package/test/snapshots/pfm/list_items/272.snap.ast +12 -0
  1806. package/test/snapshots/pfm/list_items/273.snap.ast +10 -0
  1807. package/test/snapshots/pfm/list_items/274.snap.ast +10 -0
  1808. package/test/snapshots/pfm/list_items/275.snap.ast +8 -0
  1809. package/test/snapshots/pfm/list_items/276.snap.ast +8 -0
  1810. package/test/snapshots/pfm/list_items/277.snap.ast +8 -0
  1811. package/test/snapshots/pfm/list_items/278.snap.ast +14 -0
  1812. package/test/snapshots/pfm/list_items/279.snap.ast +6 -0
  1813. package/test/snapshots/pfm/list_items/280.snap.ast +8 -0
  1814. package/test/snapshots/pfm/list_items/281.snap.ast +9 -0
  1815. package/test/snapshots/pfm/list_items/282.snap.ast +9 -0
  1816. package/test/snapshots/pfm/list_items/283.snap.ast +9 -0
  1817. package/test/snapshots/pfm/list_items/284.snap.ast +4 -0
  1818. package/test/snapshots/pfm/list_items/285.snap.ast +12 -0
  1819. package/test/snapshots/pfm/list_items/286.snap.ast +13 -0
  1820. package/test/snapshots/pfm/list_items/287.snap.ast +13 -0
  1821. package/test/snapshots/pfm/list_items/288.snap.ast +13 -0
  1822. package/test/snapshots/pfm/list_items/289.snap.ast +13 -0
  1823. package/test/snapshots/pfm/list_items/290.snap.ast +13 -0
  1824. package/test/snapshots/pfm/list_items/291.snap.ast +7 -0
  1825. package/test/snapshots/pfm/list_items/292.snap.ast +11 -0
  1826. package/test/snapshots/pfm/list_items/293.snap.ast +10 -0
  1827. package/test/snapshots/pfm/list_items/294.snap.ast +14 -0
  1828. package/test/snapshots/pfm/list_items/295.snap.ast +11 -0
  1829. package/test/snapshots/pfm/list_items/296.snap.ast +8 -0
  1830. package/test/snapshots/pfm/list_items/297.snap.ast +9 -0
  1831. package/test/snapshots/pfm/list_items/298.snap.ast +6 -0
  1832. package/test/snapshots/pfm/list_items/299.snap.ast +9 -0
  1833. package/test/snapshots/pfm/list_items/300.snap.ast +12 -0
  1834. package/test/snapshots/pfm/lists/301.snap.ast +11 -0
  1835. package/test/snapshots/pfm/lists/302.snap.ast +11 -0
  1836. package/test/snapshots/pfm/lists/303.snap.ast +10 -0
  1837. package/test/snapshots/pfm/lists/304.snap.ast +6 -0
  1838. package/test/snapshots/pfm/lists/305.snap.ast +8 -0
  1839. package/test/snapshots/pfm/lists/306.snap.ast +12 -0
  1840. package/test/snapshots/pfm/lists/307.snap.ast +14 -0
  1841. package/test/snapshots/pfm/lists/308.snap.ast +17 -0
  1842. package/test/snapshots/pfm/lists/309.snap.ast +18 -0
  1843. package/test/snapshots/pfm/lists/310.snap.ast +17 -0
  1844. package/test/snapshots/pfm/lists/311.snap.ast +12 -0
  1845. package/test/snapshots/pfm/lists/312.snap.ast +13 -0
  1846. package/test/snapshots/pfm/lists/313.snap.ast +12 -0
  1847. package/test/snapshots/pfm/lists/314.snap.ast +12 -0
  1848. package/test/snapshots/pfm/lists/315.snap.ast +11 -0
  1849. package/test/snapshots/pfm/lists/316.snap.ast +14 -0
  1850. package/test/snapshots/pfm/lists/317.snap.ast +15 -0
  1851. package/test/snapshots/pfm/lists/318.snap.ast +9 -0
  1852. package/test/snapshots/pfm/lists/319.snap.ast +13 -0
  1853. package/test/snapshots/pfm/lists/320.snap.ast +11 -0
  1854. package/test/snapshots/pfm/lists/321.snap.ast +11 -0
  1855. package/test/snapshots/pfm/lists/322.snap.ast +5 -0
  1856. package/test/snapshots/pfm/lists/323.snap.ast +8 -0
  1857. package/test/snapshots/pfm/lists/324.snap.ast +7 -0
  1858. package/test/snapshots/pfm/lists/325.snap.ast +11 -0
  1859. package/test/snapshots/pfm/lists/326.snap.ast +19 -0
  1860. package/test/snapshots/pfm/paragraphs/219.snap.ast +8 -0
  1861. package/test/snapshots/pfm/paragraphs/220.snap.ast +12 -0
  1862. package/test/snapshots/pfm/paragraphs/221.snap.ast +9 -0
  1863. package/test/snapshots/pfm/paragraphs/222.snap.ast +6 -0
  1864. package/test/snapshots/pfm/paragraphs/223.snap.ast +8 -0
  1865. package/test/snapshots/pfm/paragraphs/224.snap.ast +6 -0
  1866. package/test/snapshots/pfm/paragraphs/225.snap.ast +6 -0
  1867. package/test/snapshots/pfm/precedence/42.snap.ast +5 -0
  1868. package/test/snapshots/pfm/setext_headings/100.snap.ast +5 -0
  1869. package/test/snapshots/pfm/setext_headings/101.snap.ast +6 -0
  1870. package/test/snapshots/pfm/setext_headings/102.snap.ast +5 -0
  1871. package/test/snapshots/pfm/setext_headings/103.snap.ast +12 -0
  1872. package/test/snapshots/pfm/setext_headings/104.snap.ast +12 -0
  1873. package/test/snapshots/pfm/setext_headings/105.snap.ast +10 -0
  1874. package/test/snapshots/pfm/setext_headings/106.snap.ast +10 -0
  1875. package/test/snapshots/pfm/setext_headings/80.snap.ast +15 -0
  1876. package/test/snapshots/pfm/setext_headings/81.snap.ast +10 -0
  1877. package/test/snapshots/pfm/setext_headings/82.snap.ast +11 -0
  1878. package/test/snapshots/pfm/setext_headings/83.snap.ast +11 -0
  1879. package/test/snapshots/pfm/setext_headings/84.snap.ast +16 -0
  1880. package/test/snapshots/pfm/setext_headings/85.snap.ast +11 -0
  1881. package/test/snapshots/pfm/setext_headings/86.snap.ast +5 -0
  1882. package/test/snapshots/pfm/setext_headings/87.snap.ast +6 -0
  1883. package/test/snapshots/pfm/setext_headings/88.snap.ast +11 -0
  1884. package/test/snapshots/pfm/setext_headings/89.snap.ast +5 -0
  1885. package/test/snapshots/pfm/setext_headings/90.snap.ast +6 -0
  1886. package/test/snapshots/pfm/setext_headings/91.snap.ast +7 -0
  1887. package/test/snapshots/pfm/setext_headings/92.snap.ast +6 -0
  1888. package/test/snapshots/pfm/setext_headings/93.snap.ast +10 -0
  1889. package/test/snapshots/pfm/setext_headings/94.snap.ast +6 -0
  1890. package/test/snapshots/pfm/setext_headings/95.snap.ast +7 -0
  1891. package/test/snapshots/pfm/setext_headings/96.snap.ast +9 -0
  1892. package/test/snapshots/pfm/setext_headings/97.snap.ast +5 -0
  1893. package/test/snapshots/pfm/setext_headings/98.snap.ast +2 -0
  1894. package/test/snapshots/pfm/setext_headings/99.snap.ast +6 -0
  1895. package/test/snapshots/pfm/soft_line_breaks/648.snap.ast +6 -0
  1896. package/test/snapshots/pfm/soft_line_breaks/649.snap.ast +6 -0
  1897. package/test/snapshots/pfm/tabs/1.snap.ast +4 -0
  1898. package/test/snapshots/pfm/tabs/10.snap.ast +4 -0
  1899. package/test/snapshots/pfm/tabs/11.snap.ast +2 -0
  1900. package/test/snapshots/pfm/tabs/12.snap.ast +7 -0
  1901. package/test/snapshots/pfm/tabs/13.snap.ast +8 -0
  1902. package/test/snapshots/pfm/tabs/14.snap.ast +8 -0
  1903. package/test/snapshots/pfm/tabs/15.snap.ast +7 -0
  1904. package/test/snapshots/pfm/tabs/16.snap.ast +7 -0
  1905. package/test/snapshots/pfm/tabs/17.snap.ast +11 -0
  1906. package/test/snapshots/pfm/tabs/2.snap.ast +4 -0
  1907. package/test/snapshots/pfm/tabs/3.snap.ast +6 -0
  1908. package/test/snapshots/pfm/tabs/4.snap.ast +9 -0
  1909. package/test/snapshots/pfm/tabs/5.snap.ast +8 -0
  1910. package/test/snapshots/pfm/tabs/6.snap.ast +5 -0
  1911. package/test/snapshots/pfm/tabs/7.snap.ast +5 -0
  1912. package/test/snapshots/pfm/tabs/8.snap.ast +6 -0
  1913. package/test/snapshots/pfm/tabs/9.snap.ast +10 -0
  1914. package/test/snapshots/pfm/textual_content/650.snap.ast +4 -0
  1915. package/test/snapshots/pfm/textual_content/651.snap.ast +4 -0
  1916. package/test/snapshots/pfm/textual_content/652.snap.ast +4 -0
  1917. package/test/snapshots/pfm/thematic_breaks/43.snap.ast +4 -0
  1918. package/test/snapshots/pfm/thematic_breaks/44.snap.ast +4 -0
  1919. package/test/snapshots/pfm/thematic_breaks/45.snap.ast +4 -0
  1920. package/test/snapshots/pfm/thematic_breaks/46.snap.ast +10 -0
  1921. package/test/snapshots/pfm/thematic_breaks/47.snap.ast +4 -0
  1922. package/test/snapshots/pfm/thematic_breaks/48.snap.ast +2 -0
  1923. package/test/snapshots/pfm/thematic_breaks/49.snap.ast +8 -0
  1924. package/test/snapshots/pfm/thematic_breaks/50.snap.ast +2 -0
  1925. package/test/snapshots/pfm/thematic_breaks/51.snap.ast +2 -0
  1926. package/test/snapshots/pfm/thematic_breaks/52.snap.ast +2 -0
  1927. package/test/snapshots/pfm/thematic_breaks/53.snap.ast +2 -0
  1928. package/test/snapshots/pfm/thematic_breaks/54.snap.ast +2 -0
  1929. package/test/snapshots/pfm/thematic_breaks/55.snap.ast +15 -0
  1930. package/test/snapshots/pfm/thematic_breaks/56.snap.ast +5 -0
  1931. package/test/snapshots/pfm/thematic_breaks/57.snap.ast +10 -0
  1932. package/test/snapshots/pfm/thematic_breaks/58.snap.ast +8 -0
  1933. package/test/snapshots/pfm/thematic_breaks/59.snap.ast +8 -0
  1934. package/test/snapshots/pfm/thematic_breaks/60.snap.ast +10 -0
  1935. package/test/snapshots/pfm/thematic_breaks/61.snap.ast +6 -0
  1936. package/test/snapshots/svelte/00-introduction/00-hello-world/App.snap.ast +8 -0
  1937. package/test/snapshots/svelte/00-introduction/01-dynamic-attributes/App.snap.ast +7 -0
  1938. package/test/snapshots/svelte/00-introduction/02-styling/App.snap.ast +7 -0
  1939. package/test/snapshots/svelte/00-introduction/03-nested-components/App.snap.ast +11 -0
  1940. package/test/snapshots/svelte/00-introduction/03-nested-components/Nested.snap.ast +3 -0
  1941. package/test/snapshots/svelte/00-introduction/04-html-tags/App.snap.ast +6 -0
  1942. package/test/snapshots/svelte/01-reactivity/00-reactive-assignments/App.snap.ast +11 -0
  1943. package/test/snapshots/svelte/01-reactivity/01-reactive-declarations/App.snap.ast +22 -0
  1944. package/test/snapshots/svelte/01-reactivity/02-reactive-statements/App.snap.ast +11 -0
  1945. package/test/snapshots/svelte/02-props/00-declaring-props/App.snap.ast +5 -0
  1946. package/test/snapshots/svelte/02-props/00-declaring-props/Nested.snap.ast +7 -0
  1947. package/test/snapshots/svelte/02-props/01-default-values/App.snap.ast +7 -0
  1948. package/test/snapshots/svelte/02-props/01-default-values/Nested.snap.ast +7 -0
  1949. package/test/snapshots/svelte/02-props/02-spread-props/App.snap.ast +5 -0
  1950. package/test/snapshots/svelte/02-props/02-spread-props/Info.snap.ast +23 -0
  1951. package/test/snapshots/svelte/03-logic/00-if-blocks/App.snap.ast +22 -0
  1952. package/test/snapshots/svelte/03-logic/01-else-blocks/App.snap.ast +19 -0
  1953. package/test/snapshots/svelte/03-logic/02-else-if-blocks/App.snap.ast +23 -0
  1954. package/test/snapshots/svelte/03-logic/03-each-blocks/App.snap.ast +22 -0
  1955. package/test/snapshots/svelte/03-logic/04-keyed-each-blocks/App.snap.ast +37 -0
  1956. package/test/snapshots/svelte/03-logic/04-keyed-each-blocks/Thing.snap.ast +16 -0
  1957. package/test/snapshots/svelte/04-events/00-dom-events/App.snap.ast +15 -0
  1958. package/test/snapshots/svelte/04-events/01-inline-handlers/App.snap.ast +15 -0
  1959. package/test/snapshots/svelte/04-events/02-event-modifiers/App.snap.ast +8 -0
  1960. package/test/snapshots/svelte/04-events/03-component-events/App.snap.ast +5 -0
  1961. package/test/snapshots/svelte/04-events/03-component-events/Inner.snap.ast +8 -0
  1962. package/test/snapshots/svelte/04-events/04-event-forwarding/App.snap.ast +5 -0
  1963. package/test/snapshots/svelte/04-events/04-event-forwarding/Inner.snap.ast +8 -0
  1964. package/test/snapshots/svelte/04-events/04-event-forwarding/Outer.snap.ast +5 -0
  1965. package/test/snapshots/svelte/04-events/05-dom-event-forwarding/App.snap.ast +5 -0
  1966. package/test/snapshots/svelte/04-events/05-dom-event-forwarding/FancyButton.snap.ast +8 -0
  1967. package/test/snapshots/svelte/05-bindings/00-text-inputs/App.snap.ast +10 -0
  1968. package/test/snapshots/svelte/05-bindings/01-numeric-inputs/App.snap.ast +28 -0
  1969. package/test/snapshots/svelte/05-bindings/02-checkbox-inputs/App.snap.ast +30 -0
  1970. package/test/snapshots/svelte/05-bindings/03-group-inputs/App.snap.ast +75 -0
  1971. package/test/snapshots/svelte/05-bindings/04-textarea-inputs/App.snap.ast +11 -0
  1972. package/test/snapshots/svelte/05-bindings/05-select-bindings/App.snap.ast +40 -0
  1973. package/test/snapshots/svelte/05-bindings/06-multiple-select-bindings/App.snap.ast +76 -0
  1974. package/test/snapshots/svelte/05-bindings/07-each-block-bindings/App.snap.ast +40 -0
  1975. package/test/snapshots/svelte/05-bindings/08-media-elements/App.snap.ast +49 -0
  1976. package/test/snapshots/svelte/05-bindings/09-dimensions/App.snap.ast +25 -0
  1977. package/test/snapshots/svelte/05-bindings/10-bind-this/App.snap.ast +9 -0
  1978. package/test/snapshots/svelte/05-bindings/11-component-bindings/App.snap.ast +9 -0
  1979. package/test/snapshots/svelte/05-bindings/11-component-bindings/Keypad.snap.ast +56 -0
  1980. package/test/snapshots/svelte/06-lifecycle/00-onmount/App.snap.ast +33 -0
  1981. package/test/snapshots/svelte/06-lifecycle/01-ondestroy/App.snap.ast +13 -0
  1982. package/test/snapshots/svelte/06-lifecycle/02-update/App.snap.ast +29 -0
  1983. package/test/snapshots/svelte/06-lifecycle/03-tick/App.snap.ast +8 -0
  1984. package/test/snapshots/svelte/07-stores/00-writable-stores/App.snap.ast +14 -0
  1985. package/test/snapshots/svelte/07-stores/00-writable-stores/Decrementer.snap.ast +8 -0
  1986. package/test/snapshots/svelte/07-stores/00-writable-stores/Incrementer.snap.ast +8 -0
  1987. package/test/snapshots/svelte/07-stores/00-writable-stores/Resetter.snap.ast +8 -0
  1988. package/test/snapshots/svelte/07-stores/01-auto-subscriptions/App.snap.ast +14 -0
  1989. package/test/snapshots/svelte/07-stores/01-auto-subscriptions/Decrementer.snap.ast +8 -0
  1990. package/test/snapshots/svelte/07-stores/01-auto-subscriptions/Incrementer.snap.ast +8 -0
  1991. package/test/snapshots/svelte/07-stores/01-auto-subscriptions/Resetter.snap.ast +8 -0
  1992. package/test/snapshots/svelte/07-stores/02-readable-stores/App.snap.ast +7 -0
  1993. package/test/snapshots/svelte/07-stores/03-derived-stores/App.snap.ast +18 -0
  1994. package/test/snapshots/svelte/07-stores/04-custom-stores/App.snap.ast +17 -0
  1995. package/test/snapshots/svelte/08-motion/00-tweened/App.snap.ast +38 -0
  1996. package/test/snapshots/svelte/08-motion/01-spring/App.snap.ast +38 -0
  1997. package/test/snapshots/svelte/09-transitions/00-transition/App.snap.ast +20 -0
  1998. package/test/snapshots/svelte/09-transitions/01-adding-parameters-to-transitions/App.snap.ast +20 -0
  1999. package/test/snapshots/svelte/09-transitions/02-in-and-out/App.snap.ast +20 -0
  2000. package/test/snapshots/svelte/09-transitions/03-custom-css-transitions/App.snap.ast +25 -0
  2001. package/test/snapshots/svelte/09-transitions/04-custom-js-transitions/App.snap.ast +20 -0
  2002. package/test/snapshots/svelte/09-transitions/05-transition-events/App.snap.ast +25 -0
  2003. package/test/snapshots/svelte/10-animations/00-animate/App.snap.ast +58 -0
  2004. package/test/snapshots/svelte/11-easing/00-easing/App.snap.ast +36 -0
  2005. package/test/snapshots/svelte/11-easing/00-easing/Controls.snap.ast +108 -0
  2006. package/test/snapshots/svelte/11-easing/00-easing/Grid.snap.ast +31 -0
  2007. package/test/snapshots/svelte/12-svg/01-clock/App.snap.ast +48 -0
  2008. package/test/snapshots/svelte/12-svg/02-bar-chart/App.snap.ast +63 -0
  2009. package/test/snapshots/svelte/12-svg/03-area-chart/App.snap.ast +70 -0
  2010. package/test/snapshots/svelte/12-svg/04-scatterplot/App.snap.ast +24 -0
  2011. package/test/snapshots/svelte/12-svg/04-scatterplot/Scatterplot.snap.ast +59 -0
  2012. package/test/snapshots/svelte/12-svg/05-svg-transitions/App.snap.ast +43 -0
  2013. package/test/snapshots/svelte/13-actions/00-actions/App.snap.ast +8 -0
  2014. package/test/snapshots/svelte/13-actions/01-adding-parameters-to-actions/App.snap.ast +8 -0
  2015. package/test/snapshots/svelte/14-classes/00-classes/App.snap.ast +17 -0
  2016. package/test/snapshots/svelte/14-classes/01-class-shorthand/App.snap.ast +22 -0
  2017. package/test/snapshots/svelte/15-composition/00-slots/App.snap.ast +13 -0
  2018. package/test/snapshots/svelte/15-composition/00-slots/Box.snap.ast +8 -0
  2019. package/test/snapshots/svelte/15-composition/01-slot-fallbacks/App.snap.ast +16 -0
  2020. package/test/snapshots/svelte/15-composition/01-slot-fallbacks/Box.snap.ast +12 -0
  2021. package/test/snapshots/svelte/15-composition/02-named-slots/App.snap.ast +20 -0
  2022. package/test/snapshots/svelte/15-composition/02-named-slots/ContactCard.snap.ast +35 -0
  2023. package/test/snapshots/svelte/15-composition/03-slot-props/App.snap.ast +65 -0
  2024. package/test/snapshots/svelte/15-composition/03-slot-props/Hoverable.snap.ast +8 -0
  2025. package/test/snapshots/svelte/15-composition/04-modal/App.snap.ast +66 -0
  2026. package/test/snapshots/svelte/15-composition/04-modal/Modal.snap.ast +26 -0
  2027. package/test/snapshots/svelte/16-context/00-context-api/App.snap.ast +23 -0
  2028. package/test/snapshots/svelte/16-context/00-context-api/Map.snap.ast +15 -0
  2029. package/test/snapshots/svelte/16-context/00-context-api/MapMarker.snap.ast +2 -0
  2030. package/test/snapshots/svelte/17-special-elements/00-svelte-self/App.snap.ast +5 -0
  2031. package/test/snapshots/svelte/17-special-elements/00-svelte-self/File.snap.ast +9 -0
  2032. package/test/snapshots/svelte/17-special-elements/00-svelte-self/Folder.snap.ast +34 -0
  2033. package/test/snapshots/svelte/17-special-elements/01-svelte-component/App.snap.ast +16 -0
  2034. package/test/snapshots/svelte/17-special-elements/01-svelte-component/BlueThing.snap.ast +6 -0
  2035. package/test/snapshots/svelte/17-special-elements/01-svelte-component/GreenThing.snap.ast +6 -0
  2036. package/test/snapshots/svelte/17-special-elements/01-svelte-component/RedThing.snap.ast +6 -0
  2037. package/test/snapshots/svelte/17-special-elements/02-svelte-window/App.snap.ast +27 -0
  2038. package/test/snapshots/svelte/17-special-elements/03-svelte-window-bindings/App.snap.ast +37 -0
  2039. package/test/snapshots/svelte/17-special-elements/04-svelte-body/App.snap.ast +12 -0
  2040. package/test/snapshots/svelte/17-special-elements/05-svelte-head/App.snap.ast +10 -0
  2041. package/test/snapshots/svelte/18-module-context/01-module-exports/App.snap.ast +34 -0
  2042. package/test/snapshots/svelte/18-module-context/01-module-exports/AudioPlayer.snap.ast +24 -0
  2043. package/test/snapshots/svelte/19-debugging/00-debug/App.snap.ast +26 -0
  2044. package/test/snapshots/svelte/19-debugging/00-debug/Test.snap.ast +355 -0
  2045. package/test/snapshots/svelte/20-7guis/01-7guis-counter/App.snap.ast +10 -0
  2046. package/test/snapshots/svelte/20-7guis/02-7guis-temperature/App.snap.ast +16 -0
  2047. package/test/snapshots/svelte/20-7guis/03-7guis-flight-booker/App.snap.ast +27 -0
  2048. package/test/snapshots/svelte/20-7guis/04-7guis-timer/App.snap.ast +32 -0
  2049. package/test/snapshots/svelte/20-7guis/05-7guis-crud/App.snap.ast +47 -0
  2050. package/test/snapshots/svelte/20-7guis/06-7guis-circles/App.snap.ast +46 -0
  2051. package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/App.snap.ast +22 -0
  2052. package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/Comment.snap.ast +27 -0
  2053. package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/Item.snap.ast +40 -0
  2054. package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/List.snap.ast +26 -0
  2055. package/test/snapshots/svelte/21-miscellaneous/01-hacker-news/Summary.snap.ast +24 -0
  2056. package/test/snapshots/svelte/21-miscellaneous/02-immutable-data/App.snap.ast +26 -0
  2057. package/test/snapshots/svelte/21-miscellaneous/02-immutable-data/ImmutableTodo.snap.ast +20 -0
  2058. package/test/snapshots/svelte/21-miscellaneous/02-immutable-data/MutableTodo.snap.ast +17 -0
  2059. package/test/snapshots/svelte/22-bugs/CSS/App.snap.ast +3 -0
  2060. package/test/snapshots/svelte/99-embeds/20181225-blog-svelte-css-in-js/App.snap.ast +17 -0
  2061. package/test/snapshots/svelte/99-embeds/20181225-blog-svelte-css-in-js/Hero.snap.ast +23 -0
  2062. package/test/snapshots/svelte/99-embeds/20190420-blog-write-less-code/App.snap.ast +15 -0
  2063. package/test/strikethrough.spec.ts +114 -0
  2064. package/test/subscript.spec.ts +132 -0
  2065. package/test/superscript.spec.ts +139 -0
  2066. package/test/svelte_blocks.spec.ts +208 -0
  2067. package/test/svelte_expressions.spec.ts +264 -0
  2068. package/test/svelte_tags.spec.ts +140 -0
  2069. package/test/tables.spec.ts +1010 -0
  2070. package/test/thematic_breaks.spec.ts +274 -0
  2071. package/test/tree_builder.spec.ts +627 -0
  2072. package/test/unclosed_delimiters.spec.ts +529 -0
  2073. package/test/utils.ts +58 -0
  2074. package/test/wire_emitter.spec.ts +487 -0
  2075. package/tsc/buf_utils.d.ts +13 -0
  2076. package/tsc/buf_utils.js +49 -0
  2077. package/tsc/constants.d.ts +68 -0
  2078. package/tsc/constants.js +68 -0
  2079. package/tsc/cursor.d.ts +83 -0
  2080. package/tsc/cursor.js +177 -0
  2081. package/tsc/main.d.ts +808 -0
  2082. package/tsc/main.js +10415 -0
  2083. package/tsc/node_view.d.ts +115 -0
  2084. package/tsc/node_view.js +374 -0
  2085. package/tsc/opcodes.d.ts +92 -0
  2086. package/tsc/opcodes.js +1 -0
  2087. package/tsc/plugin_dispatch.d.ts +82 -0
  2088. package/tsc/plugin_dispatch.js +623 -0
  2089. package/tsc/plugin_types.d.ts +31 -0
  2090. package/tsc/plugin_types.js +1 -0
  2091. package/tsc/tree_builder.d.ts +62 -0
  2092. package/tsc/tree_builder.js +328 -0
  2093. package/tsc/types.d.ts +25 -0
  2094. package/tsc/types.js +1 -0
  2095. package/tsc/undo_log.d.ts +113 -0
  2096. package/tsc/undo_log.js +229 -0
  2097. package/tsc/utils.d.ts +268 -0
  2098. package/tsc/utils.js +1135 -0
  2099. package/tsc/utils.spec.d.ts +1 -0
  2100. package/tsc/utils.spec.js +354 -0
  2101. package/tsc/wire_emitter.d.ts +66 -0
  2102. package/tsc/wire_emitter.js +391 -0
  2103. package/tsc/wire_tree_builder.d.ts +55 -0
  2104. package/tsc/wire_tree_builder.js +273 -0
  2105. package/tsconfig.json +15 -0
  2106. package/vite.config.build.ts +28 -0
  2107. package/README.md +0 -3
@@ -0,0 +1,1305 @@
1
+ import { describe, expect, test } from 'vitest';
2
+
3
+ import { get_content, get_all_child_kinds } from './utils';
4
+ import { print_ast } from './print';
5
+ import {
6
+ NodeKind,
7
+ PFMParser,
8
+ WireEmitter,
9
+ parse_markdown_svelte,
10
+ } from '../src/main';
11
+ import type { Emitter } from '../src/opcodes';
12
+ import type { ParsePlugin } from '../src/plugin_types';
13
+ import { TreeBuilder } from '../src/tree_builder';
14
+ import { kind_to_string } from '../src/utils';
15
+ import type { NodeBuffer } from '../src/utils';
16
+ import { WireTreeBuilder } from '../src/wire_tree_builder';
17
+
18
+ /** Find first child of a given kind under a node. */
19
+ const find_child = (
20
+ nodes: ReturnType<typeof parse_markdown_svelte>['nodes'],
21
+ parent_idx: number,
22
+ kind: string
23
+ ) => {
24
+ const parent = nodes.get_node(parent_idx);
25
+ for (const idx of parent.children) {
26
+ const child = nodes.get_node(idx);
27
+ if (child.kind === kind) return child;
28
+ }
29
+ return null;
30
+ };
31
+
32
+ /** Find all children of a given kind under a node. */
33
+ const find_children = (
34
+ nodes: ReturnType<typeof parse_markdown_svelte>['nodes'],
35
+ parent_idx: number,
36
+ kind: string
37
+ ) => {
38
+ const parent = nodes.get_node(parent_idx);
39
+ const results: ReturnType<typeof nodes.get_node>[] = [];
40
+ for (const idx of parent.children) {
41
+ const child = nodes.get_node(idx);
42
+ if (child.kind === kind) results.push(child);
43
+ }
44
+ return results;
45
+ };
46
+
47
+ // ===========================================================
48
+ // Inline directives: :name[content]
49
+ // ===========================================================
50
+
51
+ describe('inline directives', () => {
52
+ test('basic inline directive', () => {
53
+ const input = 'hello :name[content] world\n';
54
+ const { nodes } = parse_markdown_svelte(input);
55
+
56
+ const root = nodes.get_node();
57
+ const paragraph = find_child(nodes, root.index, 'paragraph');
58
+ expect(paragraph).not.toBeNull();
59
+
60
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
61
+ expect(directive).not.toBeNull();
62
+ expect(directive!.metadata.name).toBe('name');
63
+ });
64
+
65
+ test('inline directive with empty content', () => {
66
+ const input = ':tag[]\n';
67
+ const { nodes } = parse_markdown_svelte(input);
68
+
69
+ const root = nodes.get_node();
70
+ const paragraph = find_child(nodes, root.index, 'paragraph');
71
+ expect(paragraph).not.toBeNull();
72
+
73
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
74
+ expect(directive).not.toBeNull();
75
+ expect(directive!.metadata.name).toBe('tag');
76
+ });
77
+
78
+ test('inline directive with hyphenated name', () => {
79
+ const input = ':my-directive[text]\n';
80
+ const { nodes } = parse_markdown_svelte(input);
81
+
82
+ const root = nodes.get_node();
83
+ const paragraph = find_child(nodes, root.index, 'paragraph');
84
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
85
+ expect(directive).not.toBeNull();
86
+ expect(directive!.metadata.name).toBe('my-directive');
87
+ });
88
+
89
+ test('inline directive with underscored name', () => {
90
+ const input = ':my_dir[stuff]\n';
91
+ const { nodes } = parse_markdown_svelte(input);
92
+
93
+ const root = nodes.get_node();
94
+ const paragraph = find_child(nodes, root.index, 'paragraph');
95
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
96
+ expect(directive).not.toBeNull();
97
+ expect(directive!.metadata.name).toBe('my_dir');
98
+ });
99
+
100
+ test('inline directive with numeric name chars', () => {
101
+ const input = ':h2o[water]\n';
102
+ const { nodes } = parse_markdown_svelte(input);
103
+
104
+ const root = nodes.get_node();
105
+ const paragraph = find_child(nodes, root.index, 'paragraph');
106
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
107
+ expect(directive).not.toBeNull();
108
+ expect(directive!.metadata.name).toBe('h2o');
109
+ });
110
+
111
+ test('inline directive has text children', () => {
112
+ const input = ':note[some content]\n';
113
+ const { nodes } = parse_markdown_svelte(input);
114
+
115
+ const root = nodes.get_node();
116
+ const paragraph = find_child(nodes, root.index, 'paragraph');
117
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
118
+ expect(directive).not.toBeNull();
119
+
120
+ const kinds = get_all_child_kinds(nodes, directive!.index);
121
+ expect(kinds).toContain('text');
122
+ });
123
+
124
+ test('colon without name is text', () => {
125
+ const input = 'hello: world\n';
126
+ const { nodes } = parse_markdown_svelte(input);
127
+
128
+ const root = nodes.get_node();
129
+ const paragraph = find_child(nodes, root.index, 'paragraph');
130
+ expect(paragraph).not.toBeNull();
131
+
132
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
133
+ expect(directive).toBeNull();
134
+ });
135
+
136
+ test('colon with name but no bracket is text', () => {
137
+ const input = 'see :thing here\n';
138
+ const { nodes } = parse_markdown_svelte(input);
139
+
140
+ const root = nodes.get_node();
141
+ const paragraph = find_child(nodes, root.index, 'paragraph');
142
+ expect(paragraph).not.toBeNull();
143
+
144
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
145
+ expect(directive).toBeNull();
146
+ });
147
+
148
+ test('multiple inline directives in one paragraph', () => {
149
+ const input = ':a[one] and :b[two]\n';
150
+ const { nodes } = parse_markdown_svelte(input);
151
+
152
+ const root = nodes.get_node();
153
+ const paragraph = find_child(nodes, root.index, 'paragraph');
154
+ const directives = find_children(
155
+ nodes,
156
+ paragraph!.index,
157
+ 'directive_inline'
158
+ );
159
+ expect(directives.length).toBe(2);
160
+ expect(directives[0].metadata.name).toBe('a');
161
+ expect(directives[1].metadata.name).toBe('b');
162
+ });
163
+
164
+ test('inline directive name must start with letter', () => {
165
+ const input = ':123[nope]\n';
166
+ const { nodes } = parse_markdown_svelte(input);
167
+
168
+ const root = nodes.get_node();
169
+ const paragraph = find_child(nodes, root.index, 'paragraph');
170
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
171
+ expect(directive).toBeNull();
172
+ });
173
+ });
174
+
175
+ // ===========================================================
176
+ // Leaf block directives: ::name[content]
177
+ // ===========================================================
178
+
179
+ describe('leaf block directives', () => {
180
+ test('basic leaf directive', () => {
181
+ const input = '::toc[Table of Contents]\n';
182
+ const { nodes } = parse_markdown_svelte(input);
183
+
184
+ const root = nodes.get_node();
185
+ const directive = find_child(nodes, root.index, 'directive_leaf');
186
+ expect(directive).not.toBeNull();
187
+ expect(directive!.metadata.name).toBe('toc');
188
+
189
+ const { value } = get_content(nodes, directive!.index, input);
190
+ expect(value).toBe('Table of Contents');
191
+ });
192
+
193
+ test('leaf directive without brackets is not a directive', () => {
194
+ const input = '::toc\n';
195
+ const { nodes } = parse_markdown_svelte(input);
196
+
197
+ const root = nodes.get_node();
198
+ const directive = find_child(nodes, root.index, 'directive_leaf');
199
+ expect(directive).toBeNull();
200
+ const paragraph = find_child(nodes, root.index, 'paragraph');
201
+ expect(paragraph).not.toBeNull();
202
+ });
203
+
204
+ test('leaf directive with empty brackets', () => {
205
+ const input = '::note[]\n';
206
+ const { nodes } = parse_markdown_svelte(input);
207
+
208
+ const root = nodes.get_node();
209
+ const directive = find_child(nodes, root.index, 'directive_leaf');
210
+ expect(directive).not.toBeNull();
211
+ expect(directive!.metadata.name).toBe('note');
212
+ });
213
+
214
+ test('leaf directive with trailing content is not a directive', () => {
215
+ const input = '::name[content] extra stuff\n';
216
+ const { nodes } = parse_markdown_svelte(input);
217
+
218
+ const root = nodes.get_node();
219
+ const directive = find_child(nodes, root.index, 'directive_leaf');
220
+ expect(directive).toBeNull();
221
+ // Should be a paragraph instead
222
+ const paragraph = find_child(nodes, root.index, 'paragraph');
223
+ expect(paragraph).not.toBeNull();
224
+ });
225
+
226
+ test('leaf directive interrupts paragraph', () => {
227
+ const input = 'hello\n::note[content]\n';
228
+ const { nodes } = parse_markdown_svelte(input);
229
+
230
+ const root = nodes.get_node();
231
+ const directive = find_child(nodes, root.index, 'directive_leaf');
232
+ expect(directive).not.toBeNull();
233
+ });
234
+
235
+ test('single colon at block level is paragraph', () => {
236
+ const input = ':notblock\n';
237
+ const { nodes } = parse_markdown_svelte(input);
238
+
239
+ const root = nodes.get_node();
240
+ const directive = find_child(nodes, root.index, 'directive_leaf');
241
+ expect(directive).toBeNull();
242
+ const paragraph = find_child(nodes, root.index, 'paragraph');
243
+ expect(paragraph).not.toBeNull();
244
+ });
245
+
246
+ test('leaf directive in block quote', () => {
247
+ const input = '> ::note[inside quote]\n';
248
+ const { nodes } = parse_markdown_svelte(input);
249
+
250
+ const root = nodes.get_node();
251
+ const bq = find_child(nodes, root.index, 'block_quote');
252
+ expect(bq).not.toBeNull();
253
+ const directive = find_child(nodes, bq!.index, 'directive_leaf');
254
+ expect(directive).not.toBeNull();
255
+ expect(directive!.metadata.name).toBe('note');
256
+ });
257
+ });
258
+
259
+ // ===========================================================
260
+ // Container block directives: :::name[content] ... :::
261
+ // ===========================================================
262
+
263
+ describe('container block directives', () => {
264
+ test('basic container directive', () => {
265
+ const input = ':::warning[Caution]\nBe careful here.\n:::\n';
266
+ const { nodes } = parse_markdown_svelte(input);
267
+
268
+ const root = nodes.get_node();
269
+ const directive = find_child(nodes, root.index, 'directive_container');
270
+ expect(directive).not.toBeNull();
271
+ expect(directive!.metadata.name).toBe('warning');
272
+
273
+ const { value } = get_content(nodes, directive!.index, input);
274
+ expect(value).toBe('Caution');
275
+
276
+ // Should contain a paragraph child
277
+ const paragraph = find_child(nodes, directive!.index, 'paragraph');
278
+ expect(paragraph).not.toBeNull();
279
+ });
280
+
281
+ test('container directive without brackets is not a directive', () => {
282
+ const input = ':::note\nSome text.\n:::\n';
283
+ const { nodes } = parse_markdown_svelte(input);
284
+
285
+ const root = nodes.get_node();
286
+ const directive = find_child(nodes, root.index, 'directive_container');
287
+ expect(directive).toBeNull();
288
+ const paragraph = find_child(nodes, root.index, 'paragraph');
289
+ expect(paragraph).not.toBeNull();
290
+ });
291
+
292
+ test('container directive with multiple block children', () => {
293
+ const input = ':::section[]\n# Heading\n\nParagraph text.\n:::\n';
294
+ const { nodes } = parse_markdown_svelte(input);
295
+
296
+ const root = nodes.get_node();
297
+ const directive = find_child(nodes, root.index, 'directive_container');
298
+ expect(directive).not.toBeNull();
299
+
300
+ const heading = find_child(nodes, directive!.index, 'heading');
301
+ expect(heading).not.toBeNull();
302
+
303
+ const paragraph = find_child(nodes, directive!.index, 'paragraph');
304
+ expect(paragraph).not.toBeNull();
305
+ });
306
+
307
+ test('container closes at EOF if no closing fence', () => {
308
+ const input = ':::note[]\nSome text.\n';
309
+ const { nodes } = parse_markdown_svelte(input);
310
+
311
+ const root = nodes.get_node();
312
+ const directive = find_child(nodes, root.index, 'directive_container');
313
+ expect(directive).not.toBeNull();
314
+ expect(directive!.metadata.name).toBe('note');
315
+ });
316
+
317
+ test('nested container directives', () => {
318
+ const input = '::::outer[]\n:::inner[]\nContent.\n:::\n::::\n';
319
+ const { nodes } = parse_markdown_svelte(input);
320
+
321
+ const root = nodes.get_node();
322
+ const outer = find_child(nodes, root.index, 'directive_container');
323
+ expect(outer).not.toBeNull();
324
+ expect(outer!.metadata.name).toBe('outer');
325
+
326
+ const inner = find_child(nodes, outer!.index, 'directive_container');
327
+ expect(inner).not.toBeNull();
328
+ expect(inner!.metadata.name).toBe('inner');
329
+ });
330
+
331
+ test('closing fence must have >= opening colons', () => {
332
+ // ::: opens with 3, so ::: closes it
333
+ const input = ':::note[]\nText.\n:::\n';
334
+ const { nodes } = parse_markdown_svelte(input);
335
+
336
+ const root = nodes.get_node();
337
+ const directive = find_child(nodes, root.index, 'directive_container');
338
+ expect(directive).not.toBeNull();
339
+ });
340
+
341
+ test('closing fence with more colons closes container', () => {
342
+ const input = ':::note[]\nText.\n:::::\n';
343
+ const { nodes } = parse_markdown_svelte(input);
344
+
345
+ const root = nodes.get_node();
346
+ const directive = find_child(nodes, root.index, 'directive_container');
347
+ expect(directive).not.toBeNull();
348
+ });
349
+
350
+ test('closing fence with fewer colons does not close', () => {
351
+ // :::: opens with 4, :: (2 colons) can't close it
352
+ // but :: is a leaf directive opener... let me use a line with just 2 colons and no name
353
+ // Actually 2 colons without a name won't parse as anything useful, it becomes paragraph
354
+ // Let me test with 4-colon opener and 3-colon closer
355
+ const input = '::::note[]\nText.\n:::\nMore text.\n::::\n';
356
+ const { nodes } = parse_markdown_svelte(input);
357
+
358
+ const root = nodes.get_node();
359
+ const directive = find_child(nodes, root.index, 'directive_container');
360
+ expect(directive).not.toBeNull();
361
+
362
+ // The ::: should NOT close the :::: container, so both text paragraphs should be inside
363
+ const paragraphs = find_children(nodes, directive!.index, 'paragraph');
364
+ expect(paragraphs.length).toBe(2);
365
+ });
366
+
367
+ test('container directive interrupts paragraph', () => {
368
+ const input = 'hello\n:::note[]\nContent.\n:::\n';
369
+ const { nodes } = parse_markdown_svelte(input);
370
+
371
+ const root = nodes.get_node();
372
+ const directive = find_child(nodes, root.index, 'directive_container');
373
+ expect(directive).not.toBeNull();
374
+ });
375
+
376
+ test('container with code fence inside', () => {
377
+ const input = ':::example[]\n```js\nconsole.log("hi")\n```\n:::\n';
378
+ const { nodes } = parse_markdown_svelte(input);
379
+
380
+ const root = nodes.get_node();
381
+ const directive = find_child(nodes, root.index, 'directive_container');
382
+ expect(directive).not.toBeNull();
383
+
384
+ const code = find_child(nodes, directive!.index, 'code_fence');
385
+ expect(code).not.toBeNull();
386
+ });
387
+
388
+ test('container with thematic break inside', () => {
389
+ const input = ':::section[]\nBefore.\n\n---\n\nAfter.\n:::\n';
390
+ const { nodes } = parse_markdown_svelte(input);
391
+
392
+ const root = nodes.get_node();
393
+ const directive = find_child(nodes, root.index, 'directive_container');
394
+ expect(directive).not.toBeNull();
395
+
396
+ const tb = find_child(nodes, directive!.index, 'thematic_break');
397
+ expect(tb).not.toBeNull();
398
+ });
399
+
400
+ test('empty container', () => {
401
+ const input = ':::note[]\n:::\n';
402
+ const { nodes } = parse_markdown_svelte(input);
403
+
404
+ const root = nodes.get_node();
405
+ const directive = find_child(nodes, root.index, 'directive_container');
406
+ expect(directive).not.toBeNull();
407
+ expect(directive!.metadata.name).toBe('note');
408
+ });
409
+
410
+ test('container in block quote', () => {
411
+ const input = '> :::note[]\n> Content.\n> :::\n';
412
+ const { nodes } = parse_markdown_svelte(input);
413
+
414
+ const root = nodes.get_node();
415
+ const bq = find_child(nodes, root.index, 'block_quote');
416
+ expect(bq).not.toBeNull();
417
+ const directive = find_child(nodes, bq!.index, 'directive_container');
418
+ expect(directive).not.toBeNull();
419
+ });
420
+
421
+ describe('fence ending at eof keeps the container label', () => {
422
+ for (const input of [
423
+ ':::q[lab]\n```\ncode',
424
+ ':::q[lab]\n```\ncode\n',
425
+ ':::q[lab]\n```\ncode\n```',
426
+ ':::q[lab]\n```js',
427
+ ':::q[lab]\n```js\n',
428
+ ]) {
429
+ test(JSON.stringify(input), () => {
430
+ for (const nodes of [
431
+ parse_markdown_svelte(input).nodes,
432
+ parse_fed(input, 1),
433
+ ]) {
434
+ const directive = find_child(nodes, 0, 'directive_container')!;
435
+ expect(get_content(nodes, directive.index, input).value).toBe('lab');
436
+ expect(directive.end).toBe(input.length);
437
+ const code = find_child(nodes, directive.index, 'code_fence')!;
438
+ expect(code.children).toEqual([]);
439
+ }
440
+ });
441
+ }
442
+ });
443
+ });
444
+
445
+ const shape_without_positions = (
446
+ nodes: ReturnType<typeof parse_markdown_svelte>['nodes'],
447
+ idx: number,
448
+ input: string
449
+ ): unknown => {
450
+ const node = nodes.get_node(idx);
451
+ return {
452
+ kind: node.kind,
453
+ metadata: node.metadata,
454
+ text: node.kind === 'text' ? input.slice(node.value[0], node.value[1]) : '',
455
+ children: node.children.map((c) =>
456
+ shape_without_positions(nodes, c, input)
457
+ ),
458
+ };
459
+ };
460
+
461
+ /** parses body at the root and inside a note container */
462
+ const root_and_container_lists = (body: string) => {
463
+ const at_root = parse_markdown_svelte(body);
464
+ const root_list = find_child(
465
+ at_root.nodes,
466
+ at_root.nodes.get_node().index,
467
+ 'list'
468
+ );
469
+ expect(root_list).not.toBeNull();
470
+
471
+ const input = `:::note[]\n${body}:::\n`;
472
+ const { nodes } = parse_markdown_svelte(input);
473
+ const container = find_child(
474
+ nodes,
475
+ nodes.get_node().index,
476
+ 'directive_container'
477
+ );
478
+ expect(container).not.toBeNull();
479
+ expect(find_children(nodes, container!.index, 'paragraph')).toEqual([]);
480
+ const list = find_child(nodes, container!.index, 'list');
481
+ expect(list).not.toBeNull();
482
+
483
+ return {
484
+ root: shape_without_positions(at_root.nodes, root_list!.index, body),
485
+ container: shape_without_positions(nodes, list!.index, input),
486
+ list: list!,
487
+ nodes,
488
+ };
489
+ };
490
+
491
+ describe('lists in container directives', () => {
492
+ test('bullet list', () => {
493
+ const { root, container, list, nodes } =
494
+ root_and_container_lists('- a\n- b\n');
495
+ expect(container).toEqual(root);
496
+ expect(list.metadata.ordered).toBe(false);
497
+ expect(find_children(nodes, list.index, 'list_item').length).toBe(2);
498
+ });
499
+
500
+ test('bullet list with * and + markers', () => {
501
+ for (const body of ['* a\n* b\n', '+ a\n+ b\n']) {
502
+ const { root, container } = root_and_container_lists(body);
503
+ expect(container).toEqual(root);
504
+ }
505
+ });
506
+
507
+ test('ordered list', () => {
508
+ const { root, container, list } = root_and_container_lists('3. a\n4. b\n');
509
+ expect(container).toEqual(root);
510
+ expect(list.metadata.ordered).toBe(true);
511
+ expect(list.metadata.start).toBe(3);
512
+ });
513
+
514
+ test('ordered list with ) delimiter', () => {
515
+ const { root, container } = root_and_container_lists('1) a\n2) b\n');
516
+ expect(container).toEqual(root);
517
+ });
518
+
519
+ test('task list items', () => {
520
+ const { root, container, list, nodes } =
521
+ root_and_container_lists('- [ ] a\n- [x] b\n');
522
+ expect(container).toEqual(root);
523
+ expect(find_children(nodes, list.index, 'list_item').length).toBe(2);
524
+ });
525
+
526
+ test('nested list', () => {
527
+ const { root, container } = root_and_container_lists(
528
+ '- a\n - b\n - c\n- d\n'
529
+ );
530
+ expect(container).toEqual(root);
531
+ });
532
+
533
+ test('loose list', () => {
534
+ const { root, container, list } = root_and_container_lists('- a\n\n- b\n');
535
+ expect(container).toEqual(root);
536
+ expect(list.metadata.tight).toBe(false);
537
+ });
538
+
539
+ test('list after a paragraph', () => {
540
+ const input = ':::note[]\nintro\n- a\n:::\n';
541
+ const { nodes } = parse_markdown_svelte(input);
542
+
543
+ const container = find_child(
544
+ nodes,
545
+ nodes.get_node().index,
546
+ 'directive_container'
547
+ );
548
+ const kinds = get_all_child_kinds(nodes, container!.index).filter(
549
+ (k) => k !== 'line_break'
550
+ );
551
+ expect(kinds).toEqual(['paragraph', 'list']);
552
+ });
553
+
554
+ test('closing fence ends the list and the container', () => {
555
+ const input = ':::note[]\n- a\n- b\n:::\nafter\n';
556
+ const { nodes } = parse_markdown_svelte(input);
557
+
558
+ const root = nodes.get_node();
559
+ const root_kinds = get_all_child_kinds(nodes, root.index).filter(
560
+ (k) => k !== 'line_break'
561
+ );
562
+ expect(root_kinds).toEqual(['directive_container', 'paragraph']);
563
+
564
+ const container = find_child(nodes, root.index, 'directive_container');
565
+ const list = find_child(nodes, container!.index, 'list');
566
+ const items = find_children(nodes, list!.index, 'list_item');
567
+ expect(items.length).toBe(2);
568
+ const text = find_child(nodes, items[1].index, 'text');
569
+ expect(get_content(nodes, text!.index, input).value).toBe('b');
570
+ });
571
+
572
+ test('list closes at eof without a closing fence', () => {
573
+ const input = ':::note[]\n- a\n- b';
574
+ const { nodes } = parse_markdown_svelte(input);
575
+
576
+ const container = find_child(
577
+ nodes,
578
+ nodes.get_node().index,
579
+ 'directive_container'
580
+ );
581
+ const list = find_child(nodes, container!.index, 'list');
582
+ expect(find_children(nodes, list!.index, 'list_item').length).toBe(2);
583
+ });
584
+
585
+ test('list in a nested container, then in the outer one', () => {
586
+ const input = '::::outer[]\n:::inner[]\n- a\n:::\n1. b\n::::\n';
587
+ const { nodes } = parse_markdown_svelte(input);
588
+
589
+ const outer = find_child(
590
+ nodes,
591
+ nodes.get_node().index,
592
+ 'directive_container'
593
+ );
594
+ const inner = find_child(nodes, outer!.index, 'directive_container');
595
+ expect(find_child(nodes, inner!.index, 'list')!.metadata.ordered).toBe(
596
+ false
597
+ );
598
+ expect(find_child(nodes, outer!.index, 'list')!.metadata.ordered).toBe(
599
+ true
600
+ );
601
+ });
602
+
603
+ test('thematic break is still a thematic break', () => {
604
+ const input = ':::note[]\n- - -\n:::\n';
605
+ const { nodes } = parse_markdown_svelte(input);
606
+
607
+ const container = find_child(
608
+ nodes,
609
+ nodes.get_node().index,
610
+ 'directive_container'
611
+ );
612
+ expect(
613
+ find_child(nodes, container!.index, 'thematic_break')
614
+ ).not.toBeNull();
615
+ expect(find_child(nodes, container!.index, 'list')).toBeNull();
616
+ });
617
+
618
+ test('number without a list delimiter is a paragraph', () => {
619
+ const input = ':::note[]\n2026 was a year\n:::\n';
620
+ const { nodes } = parse_markdown_svelte(input);
621
+
622
+ const container = find_child(
623
+ nodes,
624
+ nodes.get_node().index,
625
+ 'directive_container'
626
+ );
627
+ expect(find_child(nodes, container!.index, 'paragraph')).not.toBeNull();
628
+ expect(find_child(nodes, container!.index, 'list')).toBeNull();
629
+ });
630
+ });
631
+
632
+ // ===========================================================
633
+ // Interactions with other constructs
634
+ // ===========================================================
635
+
636
+ describe('directive interactions', () => {
637
+ test('inline directive inside container directive', () => {
638
+ const input = ':::note[]\nSee :ref[here] for details.\n:::\n';
639
+ const { nodes } = parse_markdown_svelte(input);
640
+
641
+ const root = nodes.get_node();
642
+ const container = find_child(nodes, root.index, 'directive_container');
643
+ expect(container).not.toBeNull();
644
+
645
+ const paragraph = find_child(nodes, container!.index, 'paragraph');
646
+ expect(paragraph).not.toBeNull();
647
+
648
+ const inline_dir = find_child(nodes, paragraph!.index, 'directive_inline');
649
+ expect(inline_dir).not.toBeNull();
650
+ expect(inline_dir!.metadata.name).toBe('ref');
651
+ });
652
+
653
+ test('leaf directive inside container directive', () => {
654
+ const input = ':::section[]\n::toc[]\n:::\n';
655
+ const { nodes } = parse_markdown_svelte(input);
656
+
657
+ const root = nodes.get_node();
658
+ const container = find_child(nodes, root.index, 'directive_container');
659
+ expect(container).not.toBeNull();
660
+
661
+ const leaf = find_child(nodes, container!.index, 'directive_leaf');
662
+ expect(leaf).not.toBeNull();
663
+ expect(leaf!.metadata.name).toBe('toc');
664
+ });
665
+
666
+ test('inline directive in emphasis', () => {
667
+ const input = '_:note[important] text_\n';
668
+ const { nodes } = parse_markdown_svelte(input);
669
+
670
+ const root = nodes.get_node();
671
+ const paragraph = find_child(nodes, root.index, 'paragraph');
672
+ expect(paragraph).not.toBeNull();
673
+
674
+ const emphasis = find_child(nodes, paragraph!.index, 'emphasis');
675
+ expect(emphasis).not.toBeNull();
676
+
677
+ const directive = find_child(nodes, emphasis!.index, 'directive_inline');
678
+ expect(directive).not.toBeNull();
679
+ });
680
+ });
681
+
682
+ // ===========================================================
683
+ // Directive arguments: :name[text](key=val, key2=val2)
684
+ // ===========================================================
685
+
686
+ describe('directive arguments', () => {
687
+ test('inline directive with args', () => {
688
+ const input = ':hello[text](arg_one=val_one, arg_two=val_two)\n';
689
+ const { nodes } = parse_markdown_svelte(input);
690
+
691
+ const root = nodes.get_node();
692
+ const paragraph = find_child(nodes, root.index, 'paragraph');
693
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
694
+ expect(directive).not.toBeNull();
695
+ expect(directive!.metadata.args).toEqual({
696
+ arg_one: 'val_one',
697
+ arg_two: 'val_two',
698
+ });
699
+ });
700
+
701
+ test('inline directive with empty text and args', () => {
702
+ const input = ':hello[](a=1)\n';
703
+ const { nodes } = parse_markdown_svelte(input);
704
+
705
+ const root = nodes.get_node();
706
+ const paragraph = find_child(nodes, root.index, 'paragraph');
707
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
708
+ expect(directive).not.toBeNull();
709
+ expect(directive!.metadata.args).toEqual({ a: '1' });
710
+ });
711
+
712
+ test('empty args are allowed but ignored', () => {
713
+ const input = ':hello[text]()\n';
714
+ const { nodes } = parse_markdown_svelte(input);
715
+
716
+ const root = nodes.get_node();
717
+ const paragraph = find_child(nodes, root.index, 'paragraph');
718
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
719
+ expect(directive).not.toBeNull();
720
+ expect(directive!.metadata.args).toBeUndefined();
721
+ // the () is consumed, not left as text
722
+ const kinds = get_all_child_kinds(nodes, paragraph!.index);
723
+ expect(kinds).toEqual(['directive_inline']);
724
+ });
725
+
726
+ test('leaf directive with args', () => {
727
+ const input = '::leaf[text](a=1, b=2)\n';
728
+ const { nodes } = parse_markdown_svelte(input);
729
+
730
+ const root = nodes.get_node();
731
+ const directive = find_child(nodes, root.index, 'directive_leaf');
732
+ expect(directive).not.toBeNull();
733
+ expect(directive!.metadata.args).toEqual({ a: '1', b: '2' });
734
+ });
735
+
736
+ test('container directive with args', () => {
737
+ const input = ':::box[Label](variant=warning)\nBody.\n:::\n';
738
+ const { nodes } = parse_markdown_svelte(input);
739
+
740
+ const root = nodes.get_node();
741
+ const directive = find_child(nodes, root.index, 'directive_container');
742
+ expect(directive).not.toBeNull();
743
+ expect(directive!.metadata.args).toEqual({ variant: 'warning' });
744
+
745
+ const paragraph = find_child(nodes, directive!.index, 'paragraph');
746
+ expect(paragraph).not.toBeNull();
747
+ });
748
+
749
+ test('quoted values may contain spaces, commas, and parens', () => {
750
+ const input = ':d[x](a="hello world", b=\'one, two\', c="(parens)")\n';
751
+ const { nodes } = parse_markdown_svelte(input);
752
+
753
+ const root = nodes.get_node();
754
+ const paragraph = find_child(nodes, root.index, 'paragraph');
755
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
756
+ expect(directive!.metadata.args).toEqual({
757
+ a: 'hello world',
758
+ b: 'one, two',
759
+ c: '(parens)',
760
+ });
761
+ });
762
+
763
+ test('quoted values keep backslash escapes raw', () => {
764
+ const input = ':d[x](msg="say \\"hi\\"")\n';
765
+ const { nodes } = parse_markdown_svelte(input);
766
+
767
+ const root = nodes.get_node();
768
+ const paragraph = find_child(nodes, root.index, 'paragraph');
769
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
770
+ expect(directive!.metadata.args).toEqual({ msg: 'say \\"hi\\"' });
771
+ });
772
+
773
+ test('whitespace around = and , is tolerated', () => {
774
+ const input = ':d[x]( a = 1 , b = 2 )\n';
775
+ const { nodes } = parse_markdown_svelte(input);
776
+
777
+ const root = nodes.get_node();
778
+ const paragraph = find_child(nodes, root.index, 'paragraph');
779
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
780
+ expect(directive!.metadata.args).toEqual({ a: '1', b: '2' });
781
+ });
782
+
783
+ test('bare values may contain = and url characters', () => {
784
+ const input = ':d[x](url=https://e.com/a?b=c&d=e, eq=a=b)\n';
785
+ const { nodes } = parse_markdown_svelte(input);
786
+
787
+ const root = nodes.get_node();
788
+ const paragraph = find_child(nodes, root.index, 'paragraph');
789
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
790
+ expect(directive!.metadata.args).toEqual({
791
+ url: 'https://e.com/a?b=c&d=e',
792
+ eq: 'a=b',
793
+ });
794
+ });
795
+
796
+ test('args on directive nested in link text', () => {
797
+ const input = '[see :d[x](k=v) here](https://example.com)\n';
798
+ const { nodes } = parse_markdown_svelte(input);
799
+
800
+ const root = nodes.get_node();
801
+ const paragraph = find_child(nodes, root.index, 'paragraph');
802
+ const link = find_child(nodes, paragraph!.index, 'link');
803
+ expect(link).not.toBeNull();
804
+ const directive = find_child(nodes, link!.index, 'directive_inline');
805
+ expect(directive).not.toBeNull();
806
+ expect(directive!.metadata.args).toEqual({ k: 'v' });
807
+ });
808
+ });
809
+
810
+ describe('malformed directive arguments', () => {
811
+ /** Expect the directive to close at ] with the raw paren text following. */
812
+ const expect_args_as_text = (input: string, trailing: string) => {
813
+ const { nodes, source } = parse_markdown_svelte(input);
814
+ const root = nodes.get_node();
815
+ const paragraph = find_child(nodes, root.index, 'paragraph');
816
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
817
+ expect(directive).not.toBeNull();
818
+ expect(directive!.metadata.args).toBeUndefined();
819
+ const text = nodes
820
+ .get_node(paragraph!.index)
821
+ .children.map((c) => {
822
+ const n = nodes.get_node(c);
823
+ return n.kind === 'text' ? source.slice(n.value[0], n.value[1]) : '';
824
+ })
825
+ .join('');
826
+ expect(text).toBe(trailing);
827
+ };
828
+
829
+ test('positional args are not allowed', () => {
830
+ expect_args_as_text(':d[x](positional)\n', '(positional)');
831
+ });
832
+
833
+ test('trailing comma is malformed', () => {
834
+ expect_args_as_text(':d[x](a=1,)\n', '(a=1,)');
835
+ });
836
+
837
+ test('duplicate keys are malformed', () => {
838
+ expect_args_as_text(':d[x](a=1, a=2)\n', '(a=1, a=2)');
839
+ });
840
+
841
+ test('empty value is malformed', () => {
842
+ expect_args_as_text(':d[x](a=)\n', '(a=)');
843
+ });
844
+
845
+ test('args must follow ] immediately', () => {
846
+ expect_args_as_text(':d[x] (a=1)\n', ' (a=1)');
847
+ });
848
+
849
+ test('unterminated quote is malformed', () => {
850
+ expect_args_as_text(':d[x](a="unclosed)\n', '(a="unclosed)');
851
+ });
852
+
853
+ test('newline inside args is malformed', () => {
854
+ const input = ':d[x](a=1,\nb=2)\n';
855
+ const { nodes } = parse_markdown_svelte(input);
856
+ const root = nodes.get_node();
857
+ const paragraph = find_child(nodes, root.index, 'paragraph');
858
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
859
+ expect(directive).not.toBeNull();
860
+ expect(directive!.metadata.args).toBeUndefined();
861
+ });
862
+
863
+ test('only the first args list is consumed', () => {
864
+ const input = ':d[x](a=1)(b=2)\n';
865
+ const { nodes } = parse_markdown_svelte(input);
866
+ const root = nodes.get_node();
867
+ const paragraph = find_child(nodes, root.index, 'paragraph');
868
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
869
+ expect(directive!.metadata.args).toEqual({ a: '1' });
870
+ });
871
+
872
+ test('malformed args on a leaf directive make it a paragraph', () => {
873
+ const input = '::leaf[x](positional)\n';
874
+ const { nodes } = parse_markdown_svelte(input);
875
+ const root = nodes.get_node();
876
+ expect(find_child(nodes, root.index, 'directive_leaf')).toBeNull();
877
+ expect(find_child(nodes, root.index, 'paragraph')).not.toBeNull();
878
+ });
879
+
880
+ test('trailing content after container args makes it a paragraph', () => {
881
+ const input = ':::box[x](a=1) junk\n';
882
+ const { nodes } = parse_markdown_svelte(input);
883
+ const root = nodes.get_node();
884
+ expect(find_child(nodes, root.index, 'directive_container')).toBeNull();
885
+ expect(find_child(nodes, root.index, 'paragraph')).not.toBeNull();
886
+ });
887
+ });
888
+
889
+ // ===========================================================
890
+ // Directive text content rules
891
+ // ===========================================================
892
+
893
+ describe('directive text content', () => {
894
+ test('emphasis and code spans are allowed', () => {
895
+ const input = ':d[_italic_ and `code`]\n';
896
+ const { nodes } = parse_markdown_svelte(input);
897
+
898
+ const root = nodes.get_node();
899
+ const paragraph = find_child(nodes, root.index, 'paragraph');
900
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
901
+ const kinds = get_all_child_kinds(nodes, directive!.index);
902
+ expect(kinds).toContain('emphasis');
903
+ expect(kinds).toContain('code_span');
904
+ });
905
+
906
+ test('links are not allowed and stay literal', () => {
907
+ const input = ':d[not a [link](url) here]\n';
908
+ const { nodes } = parse_markdown_svelte(input);
909
+
910
+ const root = nodes.get_node();
911
+ const paragraph = find_child(nodes, root.index, 'paragraph');
912
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
913
+ expect(directive).not.toBeNull();
914
+ const kinds = get_all_child_kinds(nodes, directive!.index);
915
+ expect(kinds).not.toContain('link');
916
+ // the directive closes at the final ], not at the link's ]
917
+ expect(get_all_child_kinds(nodes, paragraph!.index)).toEqual([
918
+ 'directive_inline',
919
+ ]);
920
+ });
921
+
922
+ test('images are not allowed and stay literal', () => {
923
+ const input = ':d[not an ![image](src) here]\n';
924
+ const { nodes } = parse_markdown_svelte(input);
925
+
926
+ const root = nodes.get_node();
927
+ const paragraph = find_child(nodes, root.index, 'paragraph');
928
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
929
+ expect(directive).not.toBeNull();
930
+ const kinds = get_all_child_kinds(nodes, directive!.index);
931
+ expect(kinds).not.toContain('image');
932
+ });
933
+
934
+ test('autolinks are not allowed and stay literal', () => {
935
+ const input = ':d[no <https://auto.link> here]\n';
936
+ const { nodes } = parse_markdown_svelte(input);
937
+
938
+ const root = nodes.get_node();
939
+ const paragraph = find_child(nodes, root.index, 'paragraph');
940
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
941
+ expect(directive).not.toBeNull();
942
+ const kinds = get_all_child_kinds(nodes, directive!.index);
943
+ expect(kinds).not.toContain('link');
944
+ });
945
+
946
+ test('balanced literal brackets stay inside the text', () => {
947
+ const input = ':d[a [b] c]\n';
948
+ const { nodes, source } = parse_markdown_svelte(input);
949
+
950
+ const root = nodes.get_node();
951
+ const paragraph = find_child(nodes, root.index, 'paragraph');
952
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
953
+ expect(directive).not.toBeNull();
954
+ // the directive spans through the final ]
955
+ const { content } = get_content(nodes, directive!.index, source);
956
+ expect(content).toBe(':d[a [b] c]');
957
+ expect(get_all_child_kinds(nodes, paragraph!.index)).toEqual([
958
+ 'directive_inline',
959
+ ]);
960
+ });
961
+
962
+ test('nested inline directives are allowed', () => {
963
+ const input = ':outer[has :inner[x](k=v) inside]\n';
964
+ const { nodes } = parse_markdown_svelte(input);
965
+
966
+ const root = nodes.get_node();
967
+ const paragraph = find_child(nodes, root.index, 'paragraph');
968
+ const outer = find_child(nodes, paragraph!.index, 'directive_inline');
969
+ expect(outer!.metadata.name).toBe('outer');
970
+ const inner = find_child(nodes, outer!.index, 'directive_inline');
971
+ expect(inner).not.toBeNull();
972
+ expect(inner!.metadata.name).toBe('inner');
973
+ expect(inner!.metadata.args).toEqual({ k: 'v' });
974
+ });
975
+
976
+ test('escaped brackets do not affect balancing', () => {
977
+ const input = ':d[escaped \\] close]\n';
978
+ const { nodes, source } = parse_markdown_svelte(input);
979
+
980
+ const root = nodes.get_node();
981
+ const paragraph = find_child(nodes, root.index, 'paragraph');
982
+ const directive = find_child(nodes, paragraph!.index, 'directive_inline');
983
+ expect(directive).not.toBeNull();
984
+ const { content } = get_content(nodes, directive!.index, source);
985
+ expect(content).toBe(':d[escaped \\] close]');
986
+ });
987
+
988
+ test('links work again after the directive closes', () => {
989
+ const input = ':d[x] then [a link](url)\n';
990
+ const { nodes } = parse_markdown_svelte(input);
991
+
992
+ const root = nodes.get_node();
993
+ const paragraph = find_child(nodes, root.index, 'paragraph');
994
+ const kinds = get_all_child_kinds(nodes, paragraph!.index);
995
+ expect(kinds).toContain('directive_inline');
996
+ expect(kinds).toContain('link');
997
+ });
998
+ });
999
+
1000
+ /** the tree under the root, as print_ast prints it */
1001
+ const ast = (input: string) => {
1002
+ const { nodes, source } = parse_markdown_svelte(input);
1003
+ return print_ast(nodes, source).split('\n').slice(1).join('\n');
1004
+ };
1005
+
1006
+ /** kinds and text of a buffer, text read from the source or a wire string */
1007
+ function shape(nodes: NodeBuffer, source: string | null, index = 0): unknown {
1008
+ const node = nodes.get_node(index);
1009
+ if (node.kind === 'text') {
1010
+ const text =
1011
+ source === null
1012
+ ? nodes._strings[index]
1013
+ : source.slice(node.value[0], node.value[1]);
1014
+ return 'text:' + text;
1015
+ }
1016
+ const kids = node.children
1017
+ .filter((c) => nodes.get_node(c).kind !== 'line_break')
1018
+ .map((c) => shape(nodes, source, c));
1019
+ return kids.length === 0 ? node.kind : [node.kind, ...kids];
1020
+ }
1021
+
1022
+ function parse_fed(source: string, chunk: number): NodeBuffer {
1023
+ const tree = new TreeBuilder(source.length);
1024
+ const parser = new PFMParser(tree);
1025
+ parser.init();
1026
+ for (let i = 0; i < source.length; i += chunk) {
1027
+ parser.feed(source.slice(i, i + chunk));
1028
+ }
1029
+ parser.finish();
1030
+ return tree.get_buffer();
1031
+ }
1032
+
1033
+ function parse_over_wire(source: string, chunk: number): NodeBuffer {
1034
+ const emitter = new WireEmitter();
1035
+ const parser = new PFMParser(emitter);
1036
+ const builder = new WireTreeBuilder();
1037
+ parser.init();
1038
+ for (let i = 0; i < source.length; i += chunk) {
1039
+ emitter.set_source(source.slice(0, i + chunk));
1040
+ parser.feed(source.slice(i, i + chunk));
1041
+ builder.apply(emitter.flush());
1042
+ }
1043
+ emitter.set_source(source);
1044
+ parser.finish();
1045
+ builder.apply(emitter.flush());
1046
+ return builder.get_buffer();
1047
+ }
1048
+
1049
+ describe('block directive labels', () => {
1050
+ test('a leaf label is a directive_label child holding inline nodes', () => {
1051
+ expect(ast('::note[Heads *up* and _soft_]\n')).toBe(
1052
+ [
1053
+ ' directive_leaf name="note"',
1054
+ ' directive_label',
1055
+ ' text "Heads "',
1056
+ ' strong_emphasis',
1057
+ ' text "up"',
1058
+ ' text " and "',
1059
+ ' emphasis',
1060
+ ' text "soft"',
1061
+ ].join('\n')
1062
+ );
1063
+ });
1064
+
1065
+ test('a container label comes first, the body blocks follow it', () => {
1066
+ const input = ':::Callout[Heads *up*](kind=warn)\nbody\n\n> quote\n:::\n';
1067
+ const { nodes, source } = parse_markdown_svelte(input);
1068
+ const box = find_child(nodes, 0, 'directive_container')!;
1069
+ expect(box.metadata.args).toEqual({ kind: 'warn' });
1070
+ expect(shape(nodes, source, box.index)).toEqual([
1071
+ 'directive_container',
1072
+ ['directive_label', 'text:Heads ', ['strong_emphasis', 'text:up']],
1073
+ ['paragraph', 'text:body'],
1074
+ ['block_quote', ['paragraph', 'text:quote']],
1075
+ ]);
1076
+ const kinds = get_all_child_kinds(nodes, box.index);
1077
+ expect(kinds.filter((k) => k === 'directive_label')).toHaveLength(1);
1078
+ });
1079
+
1080
+ test('the label spans its brackets, its value is the text between', () => {
1081
+ const input = '::x[a *b*](k=v)\n';
1082
+ const { nodes, source } = parse_markdown_svelte(input);
1083
+ const leaf = find_child(nodes, 0, 'directive_leaf')!;
1084
+ const label = find_child(nodes, leaf.index, 'directive_label')!;
1085
+ expect(get_content(nodes, label.index, source)).toEqual({
1086
+ content: '[a *b*]',
1087
+ value: 'a *b*',
1088
+ });
1089
+ expect(get_content(nodes, leaf.index, source).value).toBe('a *b*');
1090
+ const strong = find_child(nodes, label.index, 'strong_emphasis')!;
1091
+ expect(get_content(nodes, strong.index, source)).toEqual({
1092
+ content: '*b*',
1093
+ value: 'b',
1094
+ });
1095
+ });
1096
+
1097
+ test('empty brackets make no label', () => {
1098
+ expect(ast('::x[]\n')).toBe(' directive_leaf name="x"');
1099
+ expect(
1100
+ get_all_child_kinds(parse_markdown_svelte(':::x[]\na\n:::\n').nodes, 1)
1101
+ ).toEqual(['paragraph', 'line_break']);
1102
+ });
1103
+
1104
+ test('whitespace only text is still a label', () => {
1105
+ expect(ast('::x[ ]\n')).toBe(
1106
+ [
1107
+ ' directive_leaf name="x"',
1108
+ ' directive_label',
1109
+ ' text " "',
1110
+ ].join('\n')
1111
+ );
1112
+ });
1113
+
1114
+ test('an unclosed delimiter stays literal and never reaches the args', () => {
1115
+ expect(ast('::x[*open](k=*)\n')).toBe(
1116
+ [
1117
+ ' directive_leaf name="x" args.k="*"',
1118
+ ' directive_label',
1119
+ ' text "*open"',
1120
+ ].join('\n')
1121
+ );
1122
+ });
1123
+
1124
+ test('a delimiter cannot close past the ], the line stays a directive', () => {
1125
+ const { nodes } = parse_markdown_svelte('::x[a _b](c=d_)\n');
1126
+ const leaf = find_child(nodes, 0, 'directive_leaf')!;
1127
+ expect(leaf.metadata.args).toEqual({ c: 'd_' });
1128
+ const label = find_child(nodes, leaf.index, 'directive_label')!;
1129
+ expect(get_all_child_kinds(nodes, label.index)).not.toContain('emphasis');
1130
+ });
1131
+
1132
+ test('a code span keeps its brackets', () => {
1133
+ expect(ast('::x[`a]b` code]\n')).toBe(
1134
+ [
1135
+ ' directive_leaf name="x"',
1136
+ ' directive_label',
1137
+ ' code_span "a]b"',
1138
+ ' text " code"',
1139
+ ].join('\n')
1140
+ );
1141
+ const { nodes } = parse_markdown_svelte('::x[a `b] c\n');
1142
+ expect(get_all_child_kinds(nodes, 0)).toEqual(['paragraph', 'line_break']);
1143
+ });
1144
+
1145
+ test('links, images and autolinks stay literal text', () => {
1146
+ const { nodes } = parse_markdown_svelte(
1147
+ '::x[see [docs](/d) <https://x.y> ![i](s)]\n'
1148
+ );
1149
+ const leaf = find_child(nodes, 0, 'directive_leaf')!;
1150
+ const label = find_child(nodes, leaf.index, 'directive_label')!;
1151
+ const kinds = get_all_child_kinds(nodes, label.index);
1152
+ expect(kinds.every((k) => k === 'text')).toBe(true);
1153
+ });
1154
+
1155
+ test('an inline directive nests in a label', () => {
1156
+ expect(ast(':::x[a :y[b](k=v) c]\n:::\n')).toBe(
1157
+ [
1158
+ ' directive_container name="x"',
1159
+ ' directive_label',
1160
+ ' text "a "',
1161
+ ' directive_inline name="y" args.k="v"',
1162
+ ' text "b"',
1163
+ ' text " c"',
1164
+ ].join('\n')
1165
+ );
1166
+ });
1167
+
1168
+ test('links parse again in the body after a label', () => {
1169
+ const { nodes } = parse_markdown_svelte(':::x[a]\n[l](u)\n:::\n');
1170
+ const box = find_child(nodes, 0, 'directive_container')!;
1171
+ const para = find_child(nodes, box.index, 'paragraph')!;
1172
+ expect(get_all_child_kinds(nodes, para.index)).toEqual(['link']);
1173
+ });
1174
+
1175
+ test('labels in a block quote and a list', () => {
1176
+ const quoted = parse_markdown_svelte('> ::q[*a*]\n');
1177
+ expect(shape(quoted.nodes, quoted.source)).toEqual([
1178
+ 'root',
1179
+ [
1180
+ 'block_quote',
1181
+ ['directive_leaf', ['directive_label', ['strong_emphasis', 'text:a']]],
1182
+ ],
1183
+ ]);
1184
+ const { nodes, source } = parse_markdown_svelte(
1185
+ '- ::x[a *b*]\n- ::y[`c`]\n'
1186
+ );
1187
+ expect(shape(nodes, source)).toEqual([
1188
+ 'root',
1189
+ [
1190
+ 'list',
1191
+ [
1192
+ 'list_item',
1193
+ [
1194
+ 'directive_leaf',
1195
+ ['directive_label', 'text:a ', ['strong_emphasis', 'text:b']],
1196
+ ],
1197
+ ],
1198
+ ['list_item', ['directive_leaf', ['directive_label', 'code_span']]],
1199
+ ],
1200
+ ]);
1201
+ });
1202
+
1203
+ describe('incremental', () => {
1204
+ const cases = [
1205
+ '::note[Heads *up* and _soft_]\n',
1206
+ ':::Callout[Heads *up*](kind=warn)\nbody *x*\n:::\n',
1207
+ '::x[*open](k=*)\n',
1208
+ '::x[`a]b` and :y[c](k=v)]\nafter\n',
1209
+ 'text\n::x[~~s~~ ^up^ ~down~ \\*l\\* {e} <b>h</b>]\n',
1210
+ '> ::q[*a*]\n\n- ::x[a *b*]\n',
1211
+ ':::a[*o*]\n:::b[_i_]\nx\n:::\n:::\n',
1212
+ '::x[a',
1213
+ '::x[*a*]',
1214
+ ];
1215
+ for (const input of cases) {
1216
+ test(`fed in chunks matches the batch tree: ${JSON.stringify(input)}`, () => {
1217
+ const { nodes, source } = parse_markdown_svelte(input);
1218
+ const batch = print_ast(nodes, source);
1219
+ for (const chunk of [1, 2, 3, 5, 8, 64]) {
1220
+ expect(print_ast(parse_fed(input, chunk), source)).toBe(batch);
1221
+ }
1222
+ });
1223
+ }
1224
+
1225
+ test('the label opens and closes at the end of its line, before the body', () => {
1226
+ const ops: string[] = [];
1227
+ const rec: Emitter = {
1228
+ open: (_id, kind) => ops.push('open ' + kind_to_string(kind)),
1229
+ close: (id) => ops.push('close ' + id),
1230
+ text() {},
1231
+ attr() {},
1232
+ set_value_start() {},
1233
+ set_value_end() {},
1234
+ revoke: (id) => ops.push('revoke ' + id),
1235
+ commit() {},
1236
+ cursor() {},
1237
+ };
1238
+ const p = new PFMParser(rec);
1239
+ p.init();
1240
+ p.feed(':::box[*L*](k=v)');
1241
+ expect(ops).toEqual(['open root']);
1242
+ p.feed('\n');
1243
+ expect(ops).toEqual([
1244
+ 'open root',
1245
+ 'open directive_container',
1246
+ 'open directive_label',
1247
+ 'open strong_emphasis',
1248
+ 'open text',
1249
+ 'close 4',
1250
+ 'close 3',
1251
+ 'close 2',
1252
+ ]);
1253
+ p.feed('body\n:::\n');
1254
+ p.finish();
1255
+ expect(ops.slice(8, 10)).toEqual(['open paragraph', 'open text']);
1256
+ });
1257
+ });
1258
+
1259
+ describe('wire', () => {
1260
+ test('the schema names the label kind', () => {
1261
+ const emitter = new WireEmitter();
1262
+ emitter.set_source('::x[a]\n');
1263
+ new PFMParser(emitter).parse('::x[a]\n');
1264
+ const schema = emitter.flush()[0];
1265
+ expect(schema[0]).toBe('S');
1266
+ expect((schema[1] as string[])[NodeKind.directive_label]).toBe(
1267
+ 'directive_label'
1268
+ );
1269
+ });
1270
+
1271
+ const cases = [
1272
+ ':::Callout[Heads *up* `c`](kind=warn)\nbody\n:::\n',
1273
+ '::x[a :y[b] c]\n',
1274
+ '> ::q[_a_ b]\n',
1275
+ ];
1276
+ for (const input of cases) {
1277
+ test(`the wire tree matches the batch tree: ${JSON.stringify(input)}`, () => {
1278
+ const { nodes, source } = parse_markdown_svelte(input);
1279
+ const expected = shape(nodes, source);
1280
+ for (const chunk of [1, 4, input.length]) {
1281
+ expect(shape(parse_over_wire(input, chunk), null)).toEqual(expected);
1282
+ }
1283
+ });
1284
+ }
1285
+ });
1286
+
1287
+ test('a parse plugin can address the label', () => {
1288
+ const seen: string[] = [];
1289
+ const plugin: ParsePlugin = {
1290
+ directive_label: {
1291
+ parse(node) {
1292
+ seen.push(node.type);
1293
+ node.attrs.role = 'caption';
1294
+ },
1295
+ },
1296
+ };
1297
+ const { nodes } = parse_markdown_svelte(':::x[*a*]\nb\n:::\n', {
1298
+ plugins: [plugin],
1299
+ });
1300
+ expect(seen).toEqual(['directive_label']);
1301
+ const box = find_child(nodes, 0, 'directive_container')!;
1302
+ const label = find_child(nodes, box.index, 'directive_label')!;
1303
+ expect(label.metadata).toEqual({ role: 'caption' });
1304
+ });
1305
+ });