@e-llm-studio/citation 0.0.91 → 0.0.93

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 (279) hide show
  1. package/dist/cjs/features/BookCitation/BookCitation.module.css.js +1 -1
  2. package/dist/cjs/features/CitationRenderer/CitationRenderer.module.css.js +1 -1
  3. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js +2 -0
  4. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js.map +1 -0
  5. package/dist/cjs/features/CodeCitation/CodeCitation.module.css.js +1 -1
  6. package/dist/cjs/features/PaginatedTable/paginatedTable.module.css.js +1 -1
  7. package/dist/cjs/features/PdfEditorCitation/PdfEditorCitation.module.css.js +1 -1
  8. package/dist/cjs/features/ProjectAccordion/ProjectAccordion.module.css.js +1 -1
  9. package/dist/cjs/index.js +1 -1
  10. package/dist/cjs/node_modules/ccount/index.js +2 -0
  11. package/dist/cjs/node_modules/ccount/index.js.map +1 -0
  12. package/dist/cjs/node_modules/longest-streak/index.js +2 -0
  13. package/dist/cjs/node_modules/longest-streak/index.js.map +1 -0
  14. package/dist/cjs/node_modules/markdown-table/index.js +2 -0
  15. package/dist/cjs/node_modules/markdown-table/index.js.map +1 -0
  16. package/dist/cjs/node_modules/mdast-util-gfm/lib/index.js +2 -0
  17. package/dist/cjs/node_modules/mdast-util-gfm/lib/index.js.map +1 -0
  18. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +2 -0
  19. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +1 -0
  20. package/dist/cjs/node_modules/mdast-util-gfm-footnote/lib/index.js +2 -0
  21. package/dist/cjs/node_modules/mdast-util-gfm-footnote/lib/index.js.map +1 -0
  22. package/dist/cjs/node_modules/mdast-util-gfm-strikethrough/lib/index.js +2 -0
  23. package/dist/cjs/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +1 -0
  24. package/dist/cjs/node_modules/mdast-util-gfm-table/lib/index.js +2 -0
  25. package/dist/cjs/node_modules/mdast-util-gfm-table/lib/index.js.map +1 -0
  26. package/dist/cjs/node_modules/mdast-util-gfm-task-list-item/lib/index.js +2 -0
  27. package/dist/cjs/node_modules/mdast-util-gfm-task-list-item/lib/index.js.map +1 -0
  28. package/dist/cjs/node_modules/mdast-util-phrasing/lib/index.js +2 -0
  29. package/dist/cjs/node_modules/mdast-util-phrasing/lib/index.js.map +1 -0
  30. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +2 -0
  31. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +1 -0
  32. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/break.js +2 -0
  33. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +1 -0
  34. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/code.js +2 -0
  35. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +1 -0
  36. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/definition.js +2 -0
  37. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +1 -0
  38. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +2 -0
  39. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +1 -0
  40. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/heading.js +2 -0
  41. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +1 -0
  42. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/html.js +2 -0
  43. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +1 -0
  44. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +2 -0
  45. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +1 -0
  46. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/image.js +2 -0
  47. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +1 -0
  48. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/index.js +2 -0
  49. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +1 -0
  50. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +2 -0
  51. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +1 -0
  52. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +2 -0
  53. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +1 -0
  54. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/link.js +2 -0
  55. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +1 -0
  56. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +2 -0
  57. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +1 -0
  58. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/list.js +2 -0
  59. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +1 -0
  60. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -0
  61. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +1 -0
  62. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/root.js +2 -0
  63. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +1 -0
  64. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/strong.js +2 -0
  65. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +1 -0
  66. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -0
  67. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +1 -0
  68. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +2 -0
  69. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +1 -0
  70. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -0
  71. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +1 -0
  72. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +2 -0
  73. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +1 -0
  74. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -0
  75. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +1 -0
  76. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -0
  77. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +1 -0
  78. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -0
  79. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +1 -0
  80. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -0
  81. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +1 -0
  82. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -0
  83. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +1 -0
  84. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -0
  85. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +1 -0
  86. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -0
  87. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +1 -0
  88. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -0
  89. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +1 -0
  90. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -0
  91. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +1 -0
  92. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +2 -0
  93. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +1 -0
  94. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -0
  95. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +1 -0
  96. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +2 -0
  97. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +1 -0
  98. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +2 -0
  99. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +1 -0
  100. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +2 -0
  101. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +1 -0
  102. package/dist/cjs/node_modules/mdast-util-to-string/lib/index.js +2 -0
  103. package/dist/cjs/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  104. package/dist/cjs/node_modules/micromark-core-commonmark/lib/blank-line.js +2 -0
  105. package/dist/cjs/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  106. package/dist/cjs/node_modules/micromark-extension-gfm/index.js +2 -0
  107. package/dist/cjs/node_modules/micromark-extension-gfm/index.js.map +1 -0
  108. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +2 -0
  109. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +1 -0
  110. package/dist/cjs/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +2 -0
  111. package/dist/cjs/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +1 -0
  112. package/dist/cjs/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +2 -0
  113. package/dist/cjs/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +1 -0
  114. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/edit-map.js +2 -0
  115. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/edit-map.js.map +1 -0
  116. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -0
  117. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/infer.js.map +1 -0
  118. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/syntax.js +2 -0
  119. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/syntax.js.map +1 -0
  120. package/dist/cjs/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +2 -0
  121. package/dist/cjs/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +1 -0
  122. package/dist/cjs/node_modules/micromark-factory-space/index.js +2 -0
  123. package/dist/cjs/node_modules/micromark-factory-space/index.js.map +1 -0
  124. package/dist/cjs/node_modules/micromark-util-character/index.js +2 -0
  125. package/dist/cjs/node_modules/micromark-util-character/index.js.map +1 -0
  126. package/dist/cjs/node_modules/micromark-util-chunked/index.js +2 -0
  127. package/dist/cjs/node_modules/micromark-util-chunked/index.js.map +1 -0
  128. package/dist/cjs/node_modules/micromark-util-classify-character/index.js +2 -0
  129. package/dist/cjs/node_modules/micromark-util-classify-character/index.js.map +1 -0
  130. package/dist/cjs/node_modules/micromark-util-combine-extensions/index.js +2 -0
  131. package/dist/cjs/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  132. package/dist/cjs/node_modules/micromark-util-normalize-identifier/index.js +2 -0
  133. package/dist/cjs/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  134. package/dist/cjs/node_modules/micromark-util-resolve-all/index.js +2 -0
  135. package/dist/cjs/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  136. package/dist/cjs/node_modules/remark-gfm/lib/index.js +2 -0
  137. package/dist/cjs/node_modules/remark-gfm/lib/index.js.map +1 -0
  138. package/dist/features/BookCitation/BookCitation.module.css.js +1 -1
  139. package/dist/features/CitationRenderer/CitationRenderer.module.css.js +1 -1
  140. package/dist/features/CitationRenderer/MarkdownRenderer.js +2 -0
  141. package/dist/features/CitationRenderer/MarkdownRenderer.js.map +1 -0
  142. package/dist/features/CodeCitation/CodeCitation.module.css.js +1 -1
  143. package/dist/features/PaginatedTable/paginatedTable.module.css.js +1 -1
  144. package/dist/features/PdfEditorCitation/PdfEditorCitation.module.css.js +1 -1
  145. package/dist/features/ProjectAccordion/ProjectAccordion.module.css.js +1 -1
  146. package/dist/index.js +1 -1
  147. package/dist/node_modules/ccount/index.js +2 -0
  148. package/dist/node_modules/ccount/index.js.map +1 -0
  149. package/dist/node_modules/longest-streak/index.js +2 -0
  150. package/dist/node_modules/longest-streak/index.js.map +1 -0
  151. package/dist/node_modules/markdown-table/index.js +2 -0
  152. package/dist/node_modules/markdown-table/index.js.map +1 -0
  153. package/dist/node_modules/mdast-util-gfm/lib/index.js +2 -0
  154. package/dist/node_modules/mdast-util-gfm/lib/index.js.map +1 -0
  155. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +2 -0
  156. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +1 -0
  157. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +2 -0
  158. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js.map +1 -0
  159. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +2 -0
  160. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +1 -0
  161. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +2 -0
  162. package/dist/node_modules/mdast-util-gfm-table/lib/index.js.map +1 -0
  163. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +2 -0
  164. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js.map +1 -0
  165. package/dist/node_modules/mdast-util-phrasing/lib/index.js +2 -0
  166. package/dist/node_modules/mdast-util-phrasing/lib/index.js.map +1 -0
  167. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +2 -0
  168. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +1 -0
  169. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +2 -0
  170. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +1 -0
  171. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +2 -0
  172. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +1 -0
  173. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +2 -0
  174. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +1 -0
  175. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +2 -0
  176. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +1 -0
  177. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +2 -0
  178. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +1 -0
  179. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +2 -0
  180. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +1 -0
  181. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +2 -0
  182. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +1 -0
  183. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +2 -0
  184. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +1 -0
  185. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +2 -0
  186. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +1 -0
  187. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +2 -0
  188. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +1 -0
  189. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +2 -0
  190. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +1 -0
  191. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +2 -0
  192. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +1 -0
  193. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +2 -0
  194. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +1 -0
  195. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +2 -0
  196. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +1 -0
  197. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -0
  198. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +1 -0
  199. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +2 -0
  200. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +1 -0
  201. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +2 -0
  202. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +1 -0
  203. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -0
  204. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +1 -0
  205. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +2 -0
  206. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +1 -0
  207. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -0
  208. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +1 -0
  209. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +2 -0
  210. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +1 -0
  211. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -0
  212. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +1 -0
  213. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -0
  214. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +1 -0
  215. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -0
  216. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +1 -0
  217. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -0
  218. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +1 -0
  219. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -0
  220. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +1 -0
  221. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -0
  222. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +1 -0
  223. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -0
  224. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +1 -0
  225. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -0
  226. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +1 -0
  227. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -0
  228. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +1 -0
  229. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +2 -0
  230. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +1 -0
  231. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -0
  232. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +1 -0
  233. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +2 -0
  234. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +1 -0
  235. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +2 -0
  236. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +1 -0
  237. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +2 -0
  238. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +1 -0
  239. package/dist/node_modules/mdast-util-to-string/lib/index.js +2 -0
  240. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  241. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +2 -0
  242. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  243. package/dist/node_modules/micromark-extension-gfm/index.js +2 -0
  244. package/dist/node_modules/micromark-extension-gfm/index.js.map +1 -0
  245. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +2 -0
  246. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +1 -0
  247. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +2 -0
  248. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +1 -0
  249. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +2 -0
  250. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +1 -0
  251. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +2 -0
  252. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js.map +1 -0
  253. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -0
  254. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js.map +1 -0
  255. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +2 -0
  256. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js.map +1 -0
  257. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +2 -0
  258. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +1 -0
  259. package/dist/node_modules/micromark-factory-space/index.js +2 -0
  260. package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
  261. package/dist/node_modules/micromark-util-character/index.js +2 -0
  262. package/dist/node_modules/micromark-util-character/index.js.map +1 -0
  263. package/dist/node_modules/micromark-util-chunked/index.js +2 -0
  264. package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
  265. package/dist/node_modules/micromark-util-classify-character/index.js +2 -0
  266. package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
  267. package/dist/node_modules/micromark-util-combine-extensions/index.js +2 -0
  268. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  269. package/dist/node_modules/micromark-util-normalize-identifier/index.js +2 -0
  270. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  271. package/dist/node_modules/micromark-util-resolve-all/index.js +2 -0
  272. package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  273. package/dist/node_modules/remark-gfm/lib/index.js +2 -0
  274. package/dist/node_modules/remark-gfm/lib/index.js.map +1 -0
  275. package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts +9 -0
  276. package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts.map +1 -0
  277. package/dist/types/src/index.d.ts +1 -0
  278. package/dist/types/src/index.d.ts.map +1 -1
  279. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/mdast-util-gfm-autolink-literal/lib/index.js"],"sourcesContent":["/**\n * @import {RegExpMatchObject, ReplaceFunction} from 'mdast-util-find-and-replace'\n * @import {CompileContext, Extension as FromMarkdownExtension, Handle as FromMarkdownHandle, Transform as FromMarkdownTransform} from 'mdast-util-from-markdown'\n * @import {ConstructName, Options as ToMarkdownExtension} from 'mdast-util-to-markdown'\n * @import {Link, PhrasingContent} from 'mdast'\n */\n\nimport {ccount} from 'ccount'\nimport {ok as assert} from 'devlop'\nimport {unicodePunctuation, unicodeWhitespace} from 'micromark-util-character'\nimport {findAndReplace} from 'mdast-util-find-and-replace'\n\n/** @type {ConstructName} */\nconst inConstruct = 'phrasing'\n/** @type {Array<ConstructName>} */\nconst notInConstruct = ['autolink', 'link', 'image', 'label']\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM autolink\n * literals in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.\n */\nexport function gfmAutolinkLiteralFromMarkdown() {\n return {\n transforms: [transformGfmAutolinkLiterals],\n enter: {\n literalAutolink: enterLiteralAutolink,\n literalAutolinkEmail: enterLiteralAutolinkValue,\n literalAutolinkHttp: enterLiteralAutolinkValue,\n literalAutolinkWww: enterLiteralAutolinkValue\n },\n exit: {\n literalAutolink: exitLiteralAutolink,\n literalAutolinkEmail: exitLiteralAutolinkEmail,\n literalAutolinkHttp: exitLiteralAutolinkHttp,\n literalAutolinkWww: exitLiteralAutolinkWww\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM autolink\n * literals in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.\n */\nexport function gfmAutolinkLiteralToMarkdown() {\n return {\n unsafe: [\n {\n character: '@',\n before: '[+\\\\-.\\\\w]',\n after: '[\\\\-.\\\\w]',\n inConstruct,\n notInConstruct\n },\n {\n character: '.',\n before: '[Ww]',\n after: '[\\\\-.\\\\w]',\n inConstruct,\n notInConstruct\n },\n {\n character: ':',\n before: '[ps]',\n after: '\\\\/',\n inConstruct,\n notInConstruct\n }\n ]\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterLiteralAutolink(token) {\n this.enter({type: 'link', title: null, url: '', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterLiteralAutolinkValue(token) {\n this.config.enter.autolinkProtocol.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkHttp(token) {\n this.config.exit.autolinkProtocol.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkWww(token) {\n this.config.exit.data.call(this, token)\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'link')\n node.url = 'http://' + this.sliceSerialize(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkEmail(token) {\n this.config.exit.autolinkEmail.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolink(token) {\n this.exit(token)\n}\n\n/** @type {FromMarkdownTransform} */\nfunction transformGfmAutolinkLiterals(tree) {\n findAndReplace(\n tree,\n [\n [/(https?:\\/\\/|www(?=\\.))([-.\\w]+)([^ \\t\\r\\n]*)/gi, findUrl],\n [/(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)/gu, findEmail]\n ],\n {ignore: ['link', 'linkReference']}\n )\n}\n\n/**\n * @type {ReplaceFunction}\n * @param {string} _\n * @param {string} protocol\n * @param {string} domain\n * @param {string} path\n * @param {RegExpMatchObject} match\n * @returns {Array<PhrasingContent> | Link | false}\n */\n// eslint-disable-next-line max-params\nfunction findUrl(_, protocol, domain, path, match) {\n let prefix = ''\n\n // Not an expected previous character.\n if (!previous(match)) {\n return false\n }\n\n // Treat `www` as part of the domain.\n if (/^w/i.test(protocol)) {\n domain = protocol + domain\n protocol = ''\n prefix = 'http://'\n }\n\n if (!isCorrectDomain(domain)) {\n return false\n }\n\n const parts = splitUrl(domain + path)\n\n if (!parts[0]) return false\n\n /** @type {Link} */\n const result = {\n type: 'link',\n title: null,\n url: prefix + protocol + parts[0],\n children: [{type: 'text', value: protocol + parts[0]}]\n }\n\n if (parts[1]) {\n return [result, {type: 'text', value: parts[1]}]\n }\n\n return result\n}\n\n/**\n * @type {ReplaceFunction}\n * @param {string} _\n * @param {string} atext\n * @param {string} label\n * @param {RegExpMatchObject} match\n * @returns {Link | false}\n */\nfunction findEmail(_, atext, label, match) {\n if (\n // Not an expected previous character.\n !previous(match, true) ||\n // Label ends in not allowed character.\n /[-\\d_]$/.test(label)\n ) {\n return false\n }\n\n return {\n type: 'link',\n title: null,\n url: 'mailto:' + atext + '@' + label,\n children: [{type: 'text', value: atext + '@' + label}]\n }\n}\n\n/**\n * @param {string} domain\n * @returns {boolean}\n */\nfunction isCorrectDomain(domain) {\n const parts = domain.split('.')\n\n if (\n parts.length < 2 ||\n (parts[parts.length - 1] &&\n (/_/.test(parts[parts.length - 1]) ||\n !/[a-zA-Z\\d]/.test(parts[parts.length - 1]))) ||\n (parts[parts.length - 2] &&\n (/_/.test(parts[parts.length - 2]) ||\n !/[a-zA-Z\\d]/.test(parts[parts.length - 2])))\n ) {\n return false\n }\n\n return true\n}\n\n/**\n * @param {string} url\n * @returns {[string, string | undefined]}\n */\nfunction splitUrl(url) {\n const trailExec = /[!\"&'),.:;<>?\\]}]+$/.exec(url)\n\n if (!trailExec) {\n return [url, undefined]\n }\n\n url = url.slice(0, trailExec.index)\n\n let trail = trailExec[0]\n let closingParenIndex = trail.indexOf(')')\n const openingParens = ccount(url, '(')\n let closingParens = ccount(url, ')')\n\n while (closingParenIndex !== -1 && openingParens > closingParens) {\n url += trail.slice(0, closingParenIndex + 1)\n trail = trail.slice(closingParenIndex + 1)\n closingParenIndex = trail.indexOf(')')\n closingParens++\n }\n\n return [url, trail]\n}\n\n/**\n * @param {RegExpMatchObject} match\n * @param {boolean | null | undefined} [email=false]\n * @returns {boolean}\n */\nfunction previous(match, email) {\n const code = match.input.charCodeAt(match.index - 1)\n\n return (\n (match.index === 0 ||\n unicodeWhitespace(code) ||\n unicodePunctuation(code)) &&\n // If it’s an email, the previous character should not be a slash.\n (!email || code !== 47)\n )\n}\n"],"names":["inConstruct","notInConstruct","gfmAutolinkLiteralFromMarkdown","transforms","transformGfmAutolinkLiterals","enter","literalAutolink","enterLiteralAutolink","literalAutolinkEmail","enterLiteralAutolinkValue","literalAutolinkHttp","literalAutolinkWww","exit","exitLiteralAutolink","exitLiteralAutolinkEmail","exitLiteralAutolinkHttp","exitLiteralAutolinkWww","gfmAutolinkLiteralToMarkdown","unsafe","character","before","after","token","this","type","title","url","children","config","autolinkProtocol","call","data","node","stack","length","assert","sliceSerialize","autolinkEmail","tree","findAndReplace","findUrl","findEmail","ignore","_","protocol","domain","path","match","prefix","previous","test","parts","split","isCorrectDomain","trailExec","exec","undefined","slice","index","trail","closingParenIndex","indexOf","openingParens","ccount","closingParens","splitUrl","result","value","atext","label","email","code","input","charCodeAt","unicodeWhitespace","unicodePunctuation"],"mappings":"oRAaA,MAAMA,EAAc,WAEdC,EAAiB,CAAC,WAAY,OAAQ,QAAS,SAS9C,SAASC,IACd,MAAO,CACLC,WAAY,CAACC,GACbC,MAAO,CACLC,gBAAiBC,EACjBC,qBAAsBC,EACtBC,oBAAqBD,EACrBE,mBAAoBF,GAEtBG,KAAM,CACJN,gBAAiBO,EACjBL,qBAAsBM,EACtBJ,oBAAqBK,EACrBJ,mBAAoBK,GAG1B,CASO,SAASC,IACd,MAAO,CACLC,OAAQ,CACN,CACEC,UAAW,IACXC,OAAQ,aACRC,MAAO,YACPrB,cACAC,kBAEF,CACEkB,UAAW,IACXC,OAAQ,OACRC,MAAO,YACPrB,cACAC,kBAEF,CACEkB,UAAW,IACXC,OAAQ,OACRC,MAAO,MACPrB,cACAC,mBAIR,CAMA,SAASM,EAAqBe,GAC5BC,KAAKlB,MAAM,CAACmB,KAAM,OAAQC,MAAO,KAAMC,IAAK,GAAIC,SAAU,IAAKL,EACjE,CAMA,SAASb,EAA0Ba,GACjCC,KAAKK,OAAOvB,MAAMwB,iBAAiBC,KAAKP,KAAMD,EAChD,CAMA,SAASP,EAAwBO,GAC/BC,KAAKK,OAAOhB,KAAKiB,iBAAiBC,KAAKP,KAAMD,EAC/C,CAMA,SAASN,EAAuBM,GAC9BC,KAAKK,OAAOhB,KAAKmB,KAAKD,KAAKP,KAAMD,GACjC,MAAMU,EAAOT,KAAKU,MAAMV,KAAKU,MAAMC,OAAS,GAC5CC,EAAqB,SAAdH,EAAKR,MACZQ,EAAKN,IAAM,UAAYH,KAAKa,eAAed,EAC7C,CAMA,SAASR,EAAyBQ,GAChCC,KAAKK,OAAOhB,KAAKyB,cAAcP,KAAKP,KAAMD,EAC5C,CAMA,SAAST,EAAoBS,GAC3BC,KAAKX,KAAKU,EACZ,CAGA,SAASlB,EAA6BkC,GACpCC,EACED,EACA,CACE,CAAC,kDAAmDE,GACpD,CAAC,0DAA2DC,IAE9D,CAACC,OAAQ,CAAC,OAAQ,kBAEtB,CAYA,SAASF,EAAQG,EAAGC,EAAUC,EAAQC,EAAMC,GAC1C,IAAIC,EAAS,GAGb,IAAKC,EAASF,GACZ,OAAO,EAUT,GANI,MAAMG,KAAKN,KACbC,EAASD,EAAWC,EACpBD,EAAW,GACXI,EAAS,YAwDb,SAAyBH,GACvB,MAAMM,EAAQN,EAAOO,MAAM,KAE3B,GACED,EAAMjB,OAAS,GACdiB,EAAMA,EAAMjB,OAAS,KACnB,IAAIgB,KAAKC,EAAMA,EAAMjB,OAAS,MAC5B,aAAagB,KAAKC,EAAMA,EAAMjB,OAAS,MAC3CiB,EAAMA,EAAMjB,OAAS,KACnB,IAAIgB,KAAKC,EAAMA,EAAMjB,OAAS,MAC5B,aAAagB,KAAKC,EAAMA,EAAMjB,OAAS,KAE5C,OAAO,EAGT,OAAO,CACT,CArEOmB,CAAgBR,GACnB,OAAO,EAGT,MAAMM,EAuER,SAAkBzB,GAChB,MAAM4B,EAAY,sBAAsBC,KAAK7B,GAE7C,IAAK4B,EACH,MAAO,CAAC5B,OAAK8B,GAGf9B,EAAMA,EAAI+B,MAAM,EAAGH,EAAUI,OAE7B,IAAIC,EAAQL,EAAU,GAClBM,EAAoBD,EAAME,QAAQ,KACtC,MAAMC,EAAgBC,EAAOrC,EAAK,KAClC,IAAIsC,EAAgBD,EAAOrC,EAAK,KAEhC,MAA8B,IAAvBkC,GAA4BE,EAAgBE,GACjDtC,GAAOiC,EAAMF,MAAM,EAAGG,EAAoB,GAC1CD,EAAQA,EAAMF,MAAMG,EAAoB,GACxCA,EAAoBD,EAAME,QAAQ,KAClCG,IAGF,MAAO,CAACtC,EAAKiC,EACf,CA7FgBM,CAASpB,EAASC,GAEhC,IAAKK,EAAM,GAAI,OAAO,EAGtB,MAAMe,EAAS,CACb1C,KAAM,OACNC,MAAO,KACPC,IAAKsB,EAASJ,EAAWO,EAAM,GAC/BxB,SAAU,CAAC,CAACH,KAAM,OAAQ2C,MAAOvB,EAAWO,EAAM,MAGpD,OAAIA,EAAM,GACD,CAACe,EAAQ,CAAC1C,KAAM,OAAQ2C,MAAOhB,EAAM,KAGvCe,CACT,CAUA,SAASzB,EAAUE,EAAGyB,EAAOC,EAAOtB,GAClC,SAEGE,EAASF,GAAO,IAEjB,UAAUG,KAAKmB,KAKV,CACL7C,KAAM,OACNC,MAAO,KACPC,IAAK,UAAY0C,EAAQ,IAAMC,EAC/B1C,SAAU,CAAC,CAACH,KAAM,OAAQ2C,MAAOC,EAAQ,IAAMC,IAEnD,CAyDA,SAASpB,EAASF,EAAOuB,GACvB,MAAMC,EAAOxB,EAAMyB,MAAMC,WAAW1B,EAAMW,MAAQ,GAElD,OACmB,IAAhBX,EAAMW,OACLgB,EAAkBH,IAClBI,EAAmBJ,OAEnBD,GAAkB,KAATC,EAEf"}
@@ -0,0 +1,2 @@
1
+ import{ok as e}from"../../devlop/lib/default.js";import{normalizeIdentifier as t}from"../../micromark-util-normalize-identifier/index.js";function n(){this.buffer()}function o(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i(){this.buffer()}function r(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function f(n){const o=this.resume(),i=this.stack[this.stack.length-1];e("footnoteReference"===i.type),i.identifier=t(this.sliceSerialize(n)).toLowerCase(),i.label=o}function c(e){this.exit(e)}function s(n){const o=this.resume(),i=this.stack[this.stack.length-1];e("footnoteDefinition"===i.type),i.identifier=t(this.sliceSerialize(n)).toLowerCase(),i.label=o}function l(e){this.exit(e)}function a(e,t,n,o){const i=n.createTracker(o);let r=i.move("[^");const f=n.enter("footnoteReference"),c=n.enter("reference");return r+=i.move(n.safe(n.associationId(e),{after:"]",before:r})),c(),f(),r+=i.move("]"),r}function u(){return{enter:{gfmFootnoteCallString:n,gfmFootnoteCall:o,gfmFootnoteDefinitionLabelString:i,gfmFootnoteDefinition:r},exit:{gfmFootnoteCallString:f,gfmFootnoteCall:c,gfmFootnoteDefinitionLabelString:s,gfmFootnoteDefinition:l}}}function h(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,o,i){const r=o.createTracker(i);let f=r.move("[^");const c=o.enter("footnoteDefinition"),s=o.enter("label");f+=r.move(o.safe(o.associationId(e),{before:f,after:"]"})),s(),f+=r.move("]:"),e.children&&e.children.length>0&&(r.shift(4),f+=r.move((t?"\n":" ")+o.indentLines(o.containerFlow(e,r.current()),t?g:m)));return c(),f},footnoteReference:a},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function m(e,t,n){return 0===t?e:g(e,t,n)}function g(e,t,n){return(n?"":" ")+e}a.peek=function(){return"["};export{u as gfmFootnoteFromMarkdown,h as gfmFootnoteToMarkdown};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/mdast-util-gfm-footnote/lib/index.js"],"sourcesContent":["/**\n * @import {\n * CompileContext,\n * Extension as FromMarkdownExtension,\n * Handle as FromMarkdownHandle\n * } from 'mdast-util-from-markdown'\n * @import {ToMarkdownOptions} from 'mdast-util-gfm-footnote'\n * @import {\n * Handle as ToMarkdownHandle,\n * Map,\n * Options as ToMarkdownExtension\n * } from 'mdast-util-to-markdown'\n * @import {FootnoteDefinition, FootnoteReference} from 'mdast'\n */\n\nimport {ok as assert} from 'devlop'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\n\nfootnoteReference.peek = footnoteReferencePeek\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteCallString() {\n this.buffer()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteCall(token) {\n this.enter({type: 'footnoteReference', identifier: '', label: ''}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteDefinitionLabelString() {\n this.buffer()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteDefinition(token) {\n this.enter(\n {type: 'footnoteDefinition', identifier: '', label: '', children: []},\n token\n )\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteCallString(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'footnoteReference')\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n node.label = label\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteCall(token) {\n this.exit(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteDefinitionLabelString(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'footnoteDefinition')\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n node.label = label\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteDefinition(token) {\n this.exit(token)\n}\n\n/** @type {ToMarkdownHandle} */\nfunction footnoteReferencePeek() {\n return '['\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {FootnoteReference} node\n */\nfunction footnoteReference(node, _, state, info) {\n const tracker = state.createTracker(info)\n let value = tracker.move('[^')\n const exit = state.enter('footnoteReference')\n const subexit = state.enter('reference')\n value += tracker.move(\n state.safe(state.associationId(node), {after: ']', before: value})\n )\n subexit()\n exit()\n value += tracker.move(']')\n return value\n}\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM footnotes\n * in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown`.\n */\nexport function gfmFootnoteFromMarkdown() {\n return {\n enter: {\n gfmFootnoteCallString: enterFootnoteCallString,\n gfmFootnoteCall: enterFootnoteCall,\n gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,\n gfmFootnoteDefinition: enterFootnoteDefinition\n },\n exit: {\n gfmFootnoteCallString: exitFootnoteCallString,\n gfmFootnoteCall: exitFootnoteCall,\n gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,\n gfmFootnoteDefinition: exitFootnoteDefinition\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM footnotes\n * in markdown.\n *\n * @param {ToMarkdownOptions | null | undefined} [options]\n * Configuration (optional).\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown`.\n */\nexport function gfmFootnoteToMarkdown(options) {\n // To do: next major: change default.\n let firstLineBlank = false\n\n if (options && options.firstLineBlank) {\n firstLineBlank = true\n }\n\n return {\n handlers: {footnoteDefinition, footnoteReference},\n // This is on by default already.\n unsafe: [{character: '[', inConstruct: ['label', 'phrasing', 'reference']}]\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {FootnoteDefinition} node\n */\n function footnoteDefinition(node, _, state, info) {\n const tracker = state.createTracker(info)\n let value = tracker.move('[^')\n const exit = state.enter('footnoteDefinition')\n const subexit = state.enter('label')\n value += tracker.move(\n state.safe(state.associationId(node), {before: value, after: ']'})\n )\n subexit()\n\n value += tracker.move(']:')\n\n if (node.children && node.children.length > 0) {\n tracker.shift(4)\n\n value += tracker.move(\n (firstLineBlank ? '\\n' : ' ') +\n state.indentLines(\n state.containerFlow(node, tracker.current()),\n firstLineBlank ? mapAll : mapExceptFirst\n )\n )\n }\n\n exit()\n\n return value\n }\n}\n\n/** @type {Map} */\nfunction mapExceptFirst(line, index, blank) {\n return index === 0 ? line : mapAll(line, index, blank)\n}\n\n/** @type {Map} */\nfunction mapAll(line, index, blank) {\n return (blank ? '' : ' ') + line\n}\n"],"names":["enterFootnoteCallString","this","buffer","enterFootnoteCall","token","enter","type","identifier","label","enterFootnoteDefinitionLabelString","enterFootnoteDefinition","children","exitFootnoteCallString","resume","node","stack","length","assert","normalizeIdentifier","sliceSerialize","toLowerCase","exitFootnoteCall","exit","exitFootnoteDefinitionLabelString","exitFootnoteDefinition","footnoteReference","_","state","info","tracker","createTracker","value","move","subexit","safe","associationId","after","before","gfmFootnoteFromMarkdown","gfmFootnoteCallString","gfmFootnoteCall","gfmFootnoteDefinitionLabelString","gfmFootnoteDefinition","gfmFootnoteToMarkdown","options","firstLineBlank","handlers","footnoteDefinition","shift","indentLines","containerFlow","current","mapAll","mapExceptFirst","unsafe","character","inConstruct","line","index","blank","peek"],"mappings":"0IAwBA,SAASA,IACPC,KAAKC,QACP,CAMA,SAASC,EAAkBC,GACzBH,KAAKI,MAAM,CAACC,KAAM,oBAAqBC,WAAY,GAAIC,MAAO,IAAKJ,EACrE,CAMA,SAASK,IACPR,KAAKC,QACP,CAMA,SAASQ,EAAwBN,GAC/BH,KAAKI,MACH,CAACC,KAAM,qBAAsBC,WAAY,GAAIC,MAAO,GAAIG,SAAU,IAClEP,EAEJ,CAMA,SAASQ,EAAuBR,GAC9B,MAAMI,EAAQP,KAAKY,SACbC,EAAOb,KAAKc,MAAMd,KAAKc,MAAMC,OAAS,GAC5CC,EAAqB,sBAAdH,EAAKR,MACZQ,EAAKP,WAAaW,EAChBjB,KAAKkB,eAAef,IACpBgB,cACFN,EAAKN,MAAQA,CACf,CAMA,SAASa,EAAiBjB,GACxBH,KAAKqB,KAAKlB,EACZ,CAMA,SAASmB,EAAkCnB,GACzC,MAAMI,EAAQP,KAAKY,SACbC,EAAOb,KAAKc,MAAMd,KAAKc,MAAMC,OAAS,GAC5CC,EAAqB,uBAAdH,EAAKR,MACZQ,EAAKP,WAAaW,EAChBjB,KAAKkB,eAAef,IACpBgB,cACFN,EAAKN,MAAQA,CACf,CAMA,SAASgB,EAAuBpB,GAC9BH,KAAKqB,KAAKlB,EACZ,CAWA,SAASqB,EAAkBX,EAAMY,EAAGC,EAAOC,GACzC,MAAMC,EAAUF,EAAMG,cAAcF,GACpC,IAAIG,EAAQF,EAAQG,KAAK,MACzB,MAAMV,EAAOK,EAAMtB,MAAM,qBACnB4B,EAAUN,EAAMtB,MAAM,aAO5B,OANA0B,GAASF,EAAQG,KACfL,EAAMO,KAAKP,EAAMQ,cAAcrB,GAAO,CAACsB,MAAO,IAAKC,OAAQN,KAE7DE,IACAX,IACAS,GAASF,EAAQG,KAAK,KACfD,CACT,CASO,SAASO,IACd,MAAO,CACLjC,MAAO,CACLkC,sBAAuBvC,EACvBwC,gBAAiBrC,EACjBsC,iCAAkChC,EAClCiC,sBAAuBhC,GAEzBY,KAAM,CACJiB,sBAAuB3B,EACvB4B,gBAAiBnB,EACjBoB,iCAAkClB,EAClCmB,sBAAuBlB,GAG7B,CAWO,SAASmB,EAAsBC,GAEpC,IAAIC,GAAiB,EAMrB,OAJID,GAAWA,EAAQC,iBACrBA,GAAiB,GAGZ,CACLC,SAAU,CAACC,mBASb,SAA4BjC,EAAMY,EAAGC,EAAOC,GAC1C,MAAMC,EAAUF,EAAMG,cAAcF,GACpC,IAAIG,EAAQF,EAAQG,KAAK,MACzB,MAAMV,EAAOK,EAAMtB,MAAM,sBACnB4B,EAAUN,EAAMtB,MAAM,SAC5B0B,GAASF,EAAQG,KACfL,EAAMO,KAAKP,EAAMQ,cAAcrB,GAAO,CAACuB,OAAQN,EAAOK,MAAO,OAE/DH,IAEAF,GAASF,EAAQG,KAAK,MAElBlB,EAAKH,UAAYG,EAAKH,SAASK,OAAS,IAC1Ca,EAAQmB,MAAM,GAEdjB,GAASF,EAAQG,MACda,EAAiB,KAAO,KACvBlB,EAAMsB,YACJtB,EAAMuB,cAAcpC,EAAMe,EAAQsB,WAClCN,EAAiBO,EAASC,KAOlC,OAFA/B,IAEOS,CACR,EApCgCN,qBAE/B6B,OAAQ,CAAC,CAACC,UAAW,IAAKC,YAAa,CAAC,QAAS,WAAY,eAmCjE,CAGA,SAASH,EAAeI,EAAMC,EAAOC,GACnC,OAAiB,IAAVD,EAAcD,EAAOL,EAAOK,EAAMC,EAAOC,EAClD,CAGA,SAASP,EAAOK,EAAMC,EAAOC,GAC3B,OAAQA,EAAQ,GAAK,QAAUF,CACjC,CAjMAhC,EAAkBmC,KAkFlB,WACE,MAAO,GACT"}
@@ -0,0 +1,2 @@
1
+ const e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function t(){return{canContainEols:["delete"],enter:{strikethrough:r},exit:{strikethrough:i}}}function n(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:e}],handlers:{delete:o}}}function r(e){this.enter({type:"delete",children:[]},e)}function i(e){this.exit(e)}function o(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let c=i.move("~~");return c+=n.containerPhrasing(e,{...i.current(),before:c,after:"~"}),c+=i.move("~~"),o(),c}o.peek=function(){return"~"};export{t as gfmStrikethroughFromMarkdown,n as gfmStrikethroughToMarkdown};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/mdast-util-gfm-strikethrough/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Delete} Delete\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n *\n * @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n */\n\n/**\n * List of constructs that occur in phrasing (paragraphs, headings), but cannot\n * contain strikethrough.\n * So they sort of cancel each other out.\n * Note: could use a better name.\n *\n * Note: keep in sync with: <https://github.com/syntax-tree/mdast-util-to-markdown/blob/8ce8dbf/lib/unsafe.js#L14>\n *\n * @type {Array<ConstructName>}\n */\nconst constructsWithoutStrikethrough = [\n 'autolink',\n 'destinationLiteral',\n 'destinationRaw',\n 'reference',\n 'titleQuote',\n 'titleApostrophe'\n]\n\nhandleDelete.peek = peekDelete\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM\n * strikethrough in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM strikethrough.\n */\nexport function gfmStrikethroughFromMarkdown() {\n return {\n canContainEols: ['delete'],\n enter: {strikethrough: enterStrikethrough},\n exit: {strikethrough: exitStrikethrough}\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM\n * strikethrough in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM strikethrough.\n */\nexport function gfmStrikethroughToMarkdown() {\n return {\n unsafe: [\n {\n character: '~',\n inConstruct: 'phrasing',\n notInConstruct: constructsWithoutStrikethrough\n }\n ],\n handlers: {delete: handleDelete}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterStrikethrough(token) {\n this.enter({type: 'delete', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitStrikethrough(token) {\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {Delete} node\n */\nfunction handleDelete(node, _, state, info) {\n const tracker = state.createTracker(info)\n const exit = state.enter('strikethrough')\n let value = tracker.move('~~')\n value += state.containerPhrasing(node, {\n ...tracker.current(),\n before: value,\n after: '~'\n })\n value += tracker.move('~~')\n exit()\n return value\n}\n\n/** @type {ToMarkdownHandle} */\nfunction peekDelete() {\n return '~'\n}\n"],"names":["constructsWithoutStrikethrough","gfmStrikethroughFromMarkdown","canContainEols","enter","strikethrough","enterStrikethrough","exit","exitStrikethrough","gfmStrikethroughToMarkdown","unsafe","character","inConstruct","notInConstruct","handlers","delete","handleDelete","token","this","type","children","node","_","state","info","tracker","createTracker","value","move","containerPhrasing","current","before","after","peek"],"mappings":"AAsBA,MAAMA,EAAiC,CACrC,WACA,qBACA,iBACA,YACA,aACA,mBAYK,SAASC,IACd,MAAO,CACLC,eAAgB,CAAC,UACjBC,MAAO,CAACC,cAAeC,GACvBC,KAAM,CAACF,cAAeG,GAE1B,CASO,SAASC,IACd,MAAO,CACLC,OAAQ,CACN,CACEC,UAAW,IACXC,YAAa,WACbC,eAAgBZ,IAGpBa,SAAU,CAACC,OAAQC,GAEvB,CAMA,SAASV,EAAmBW,GAC1BC,KAAKd,MAAM,CAACe,KAAM,SAAUC,SAAU,IAAKH,EAC7C,CAMA,SAAST,EAAkBS,GACzBC,KAAKX,KAAKU,EACZ,CAMA,SAASD,EAAaK,EAAMC,EAAGC,EAAOC,GACpC,MAAMC,EAAUF,EAAMG,cAAcF,GAC9BjB,EAAOgB,EAAMnB,MAAM,iBACzB,IAAIuB,EAAQF,EAAQG,KAAK,MAQzB,OAPAD,GAASJ,EAAMM,kBAAkBR,EAAM,IAClCI,EAAQK,UACXC,OAAQJ,EACRK,MAAO,MAETL,GAASF,EAAQG,KAAK,MACtBrB,IACOoB,CACT,CArEAX,EAAaiB,KAwEb,WACE,MAAO,GACT"}
@@ -0,0 +1,2 @@
1
+ import{ok as e}from"../../devlop/lib/default.js";import{markdownTable as t}from"../../markdown-table/index.js";import{handle as n}from"../../mdast-util-to-markdown/lib/handle/index.js";import"../../decode-named-character-reference/index.dom.js";function a(){return{enter:{table:r,tableData:o,tableHeader:o,tableRow:l},exit:{codeText:s,table:i,tableData:c,tableHeader:c,tableRow:c}}}function r(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function i(e){this.exit(e),this.data.inTable=void 0}function l(e){this.enter({type:"tableRow",children:[]},e)}function c(e){this.exit(e)}function o(e){this.enter({type:"tableCell",children:[]},e)}function s(t){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,u));const a=this.stack[this.stack.length-1];e("inlineCode"===a.type),a.value=n,this.exit(t)}function u(e,t){return"|"===t?t:e}function d(e){const a=e||{},r=a.tableCellPadding,i=a.tablePipeAlign,l=a.stringLength,c=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,a){let r=n.inlineCode(e,t,a);a.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,a){return s(function(e,t,n){const a=e.children;let r=-1;const i=[],l=t.enter("table");for(;++r<a.length;)i[r]=u(a[r],t,n);return l(),i}(e,n,a),e.align)},tableCell:o,tableRow:function(e,t,n,a){const r=s([u(e,n,a)]);return r.slice(0,r.indexOf("\n"))}}};function o(e,t,n,a){const r=n.enter("tableCell"),i=n.enter("phrasing"),l=n.containerPhrasing(e,{...a,before:c,after:c});return i(),r(),l}function s(e,n){return t(e,{align:n,alignDelimiters:i,padding:r,stringLength:l})}function u(e,t,n){const a=e.children;let r=-1;const i=[],l=t.enter("tableRow");for(;++r<a.length;)i[r]=o(a[r],0,t,n);return l(),i}}export{a as gfmTableFromMarkdown,d as gfmTableToMarkdown};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/mdast-util-gfm-table/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Table} Table\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('mdast').TableRow} TableRow\n *\n * @typedef {import('markdown-table').Options} MarkdownTableOptions\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n *\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').State} State\n * @typedef {import('mdast-util-to-markdown').Info} Info\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [tableCellPadding=true]\n * Whether to add a space of padding between delimiters and cells (default:\n * `true`).\n * @property {boolean | null | undefined} [tablePipeAlign=true]\n * Whether to align the delimiters (default: `true`).\n * @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]\n * Function to detect the length of table cell content, used when aligning\n * the delimiters between cells (optional).\n */\n\nimport {ok as assert} from 'devlop'\nimport {markdownTable} from 'markdown-table'\nimport {defaultHandlers} from 'mdast-util-to-markdown'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM tables in\n * markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM tables.\n */\nexport function gfmTableFromMarkdown() {\n return {\n enter: {\n table: enterTable,\n tableData: enterCell,\n tableHeader: enterCell,\n tableRow: enterRow\n },\n exit: {\n codeText: exitCodeText,\n table: exitTable,\n tableData: exit,\n tableHeader: exit,\n tableRow: exit\n }\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterTable(token) {\n const align = token._align\n assert(align, 'expected `_align` on table')\n this.enter(\n {\n type: 'table',\n align: align.map(function (d) {\n return d === 'none' ? null : d\n }),\n children: []\n },\n token\n )\n this.data.inTable = true\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitTable(token) {\n this.exit(token)\n this.data.inTable = undefined\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterRow(token) {\n this.enter({type: 'tableRow', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exit(token) {\n this.exit(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterCell(token) {\n this.enter({type: 'tableCell', children: []}, token)\n}\n\n// Overwrite the default code text data handler to unescape escaped pipes when\n// they are in tables.\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitCodeText(token) {\n let value = this.resume()\n\n if (this.data.inTable) {\n value = value.replace(/\\\\([\\\\|])/g, replace)\n }\n\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'inlineCode')\n node.value = value\n this.exit(token)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @returns {string}\n */\nfunction replace($0, $1) {\n // Pipes work, backslashes don’t (but can’t escape pipes).\n return $1 === '|' ? $1 : $0\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM tables in\n * markdown.\n *\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM tables.\n */\nexport function gfmTableToMarkdown(options) {\n const settings = options || {}\n const padding = settings.tableCellPadding\n const alignDelimiters = settings.tablePipeAlign\n const stringLength = settings.stringLength\n const around = padding ? ' ' : '|'\n\n return {\n unsafe: [\n {character: '\\r', inConstruct: 'tableCell'},\n {character: '\\n', inConstruct: 'tableCell'},\n // A pipe, when followed by a tab or space (padding), or a dash or colon\n // (unpadded delimiter row), could result in a table.\n {atBreak: true, character: '|', after: '[\\t :-]'},\n // A pipe in a cell must be encoded.\n {character: '|', inConstruct: 'tableCell'},\n // A colon must be followed by a dash, in which case it could start a\n // delimiter row.\n {atBreak: true, character: ':', after: '-'},\n // A delimiter row can also start with a dash, when followed by more\n // dashes, a colon, or a pipe.\n // This is a stricter version than the built in check for lists, thematic\n // breaks, and setex heading underlines though:\n // <https://github.com/syntax-tree/mdast-util-to-markdown/blob/51a2038/lib/unsafe.js#L57>\n {atBreak: true, character: '-', after: '[:|-]'}\n ],\n handlers: {\n inlineCode: inlineCodeWithTable,\n table: handleTable,\n tableCell: handleTableCell,\n tableRow: handleTableRow\n }\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {Table} node\n */\n function handleTable(node, _, state, info) {\n return serializeData(handleTableAsData(node, state, info), node.align)\n }\n\n /**\n * This function isn’t really used normally, because we handle rows at the\n * table level.\n * But, if someone passes in a table row, this ensures we make somewhat sense.\n *\n * @type {ToMarkdownHandle}\n * @param {TableRow} node\n */\n function handleTableRow(node, _, state, info) {\n const row = handleTableRowAsData(node, state, info)\n const value = serializeData([row])\n // `markdown-table` will always add an align row\n return value.slice(0, value.indexOf('\\n'))\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {TableCell} node\n */\n function handleTableCell(node, _, state, info) {\n const exit = state.enter('tableCell')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...info,\n before: around,\n after: around\n })\n subexit()\n exit()\n return value\n }\n\n /**\n * @param {Array<Array<string>>} matrix\n * @param {Array<string | null | undefined> | null | undefined} [align]\n */\n function serializeData(matrix, align) {\n return markdownTable(matrix, {\n align,\n // @ts-expect-error: `markdown-table` types should support `null`.\n alignDelimiters,\n // @ts-expect-error: `markdown-table` types should support `null`.\n padding,\n // @ts-expect-error: `markdown-table` types should support `null`.\n stringLength\n })\n }\n\n /**\n * @param {Table} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array<Array<string>>} */\n const result = []\n const subexit = state.enter('table')\n\n while (++index < children.length) {\n result[index] = handleTableRowAsData(children[index], state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @param {TableRow} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableRowAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array<string>} */\n const result = []\n const subexit = state.enter('tableRow')\n\n while (++index < children.length) {\n // Note: the positional info as used here is incorrect.\n // Making it correct would be impossible due to aligning cells?\n // And it would need copy/pasting `markdown-table` into this project.\n result[index] = handleTableCell(children[index], node, state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {InlineCode} node\n */\n function inlineCodeWithTable(node, parent, state) {\n let value = defaultHandlers.inlineCode(node, parent, state)\n\n if (state.stack.includes('tableCell')) {\n value = value.replace(/\\|/g, '\\\\$&')\n }\n\n return value\n }\n}\n"],"names":["gfmTableFromMarkdown","enter","table","enterTable","tableData","enterCell","tableHeader","tableRow","enterRow","exit","codeText","exitCodeText","exitTable","token","align","_align","this","type","map","d","children","data","inTable","undefined","value","resume","replace","node","stack","length","assert","$0","$1","gfmTableToMarkdown","options","settings","padding","tableCellPadding","alignDelimiters","tablePipeAlign","stringLength","around","unsafe","character","inConstruct","atBreak","after","handlers","inlineCode","parent","state","defaultHandlers","includes","_","info","serializeData","index","result","subexit","handleTableRowAsData","handleTableAsData","tableCell","handleTableCell","slice","indexOf","containerPhrasing","before","matrix","markdownTable"],"mappings":"qPA0CO,SAASA,IACd,MAAO,CACLC,MAAO,CACLC,MAAOC,EACPC,UAAWC,EACXC,YAAaD,EACbE,SAAUC,GAEZC,KAAM,CACJC,SAAUC,EACVT,MAAOU,EACPR,UAAWK,EACXH,YAAaG,EACbF,SAAUE,GAGhB,CAMA,SAASN,EAAWU,GAClB,MAAMC,EAAQD,EAAME,OAEpBC,KAAKf,MACH,CACEgB,KAAM,QACNH,MAAOA,EAAMI,KAAI,SAAUC,GACzB,MAAa,SAANA,EAAe,KAAOA,CACrC,IACMC,SAAU,IAEZP,GAEFG,KAAKK,KAAKC,SAAU,CACtB,CAMA,SAASV,EAAUC,GACjBG,KAAKP,KAAKI,GACVG,KAAKK,KAAKC,aAAUC,CACtB,CAMA,SAASf,EAASK,GAChBG,KAAKf,MAAM,CAACgB,KAAM,WAAYG,SAAU,IAAKP,EAC/C,CAMA,SAASJ,EAAKI,GACZG,KAAKP,KAAKI,EACZ,CAMA,SAASR,EAAUQ,GACjBG,KAAKf,MAAM,CAACgB,KAAM,YAAaG,SAAU,IAAKP,EAChD,CAQA,SAASF,EAAaE,GACpB,IAAIW,EAAQR,KAAKS,SAEbT,KAAKK,KAAKC,UACZE,EAAQA,EAAME,QAAQ,aAAcA,IAGtC,MAAMC,EAAOX,KAAKY,MAAMZ,KAAKY,MAAMC,OAAS,GAC5CC,EAAqB,eAAdH,EAAKV,MACZU,EAAKH,MAAQA,EACbR,KAAKP,KAAKI,EACZ,CAOA,SAASa,EAAQK,EAAIC,GAEnB,MAAc,MAAPA,EAAaA,EAAKD,CAC3B,CAWO,SAASE,EAAmBC,GACjC,MAAMC,EAAWD,GAAW,CAAE,EACxBE,EAAUD,EAASE,iBACnBC,EAAkBH,EAASI,eAC3BC,EAAeL,EAASK,aACxBC,EAASL,EAAU,IAAM,IAE/B,MAAO,CACLM,OAAQ,CACN,CAACC,UAAW,KAAMC,YAAa,aAC/B,CAACD,UAAW,KAAMC,YAAa,aAG/B,CAACC,SAAS,EAAMF,UAAW,IAAKG,MAAO,WAEvC,CAACH,UAAW,IAAKC,YAAa,aAG9B,CAACC,SAAS,EAAMF,UAAW,IAAKG,MAAO,KAMvC,CAACD,SAAS,EAAMF,UAAW,IAAKG,MAAO,UAEzCC,SAAU,CACRC,WAgHJ,SAA6BrB,EAAMsB,EAAQC,GACzC,IAAI1B,EAAQ2B,EAAgBH,WAAWrB,EAAMsB,EAAQC,GAEjDA,EAAMtB,MAAMwB,SAAS,eACvB5B,EAAQA,EAAME,QAAQ,MAAO,SAG/B,OAAOF,CACR,EAvHGtB,MAUJ,SAAqByB,EAAM0B,EAAGH,EAAOI,GACnC,OAAOC,EAwDT,SAA2B5B,EAAMuB,EAAOI,GACtC,MAAMlC,EAAWO,EAAKP,SACtB,IAAIoC,GAAS,EAEb,MAAMC,EAAS,GACTC,EAAUR,EAAMjD,MAAM,SAE5B,OAASuD,EAAQpC,EAASS,QACxB4B,EAAOD,GAASG,EAAqBvC,EAASoC,GAAQN,EAAOI,GAK/D,OAFAI,IAEOD,CACR,CAtEsBG,CAAkBjC,EAAMuB,EAAOI,GAAO3B,EAAKb,MACjE,EAXG+C,UAAWC,EACXvD,SAoBJ,SAAwBoB,EAAM0B,EAAGH,EAAOI,GACtC,MACM9B,EAAQ+B,EAAc,CADhBI,EAAqBhC,EAAMuB,EAAOI,KAG9C,OAAO9B,EAAMuC,MAAM,EAAGvC,EAAMwC,QAAQ,MACrC,IAMD,SAASF,EAAgBnC,EAAM0B,EAAGH,EAAOI,GACvC,MAAM7C,EAAOyC,EAAMjD,MAAM,aACnByD,EAAUR,EAAMjD,MAAM,YACtBuB,EAAQ0B,EAAMe,kBAAkBtC,EAAM,IACvC2B,EACHY,OAAQzB,EACRK,MAAOL,IAIT,OAFAiB,IACAjD,IACOe,CACR,CAMD,SAAS+B,EAAcY,EAAQrD,GAC7B,OAAOsD,EAAcD,EAAQ,CAC3BrD,QAEAwB,kBAEAF,UAEAI,gBAEH,CA4BD,SAASmB,EAAqBhC,EAAMuB,EAAOI,GACzC,MAAMlC,EAAWO,EAAKP,SACtB,IAAIoC,GAAS,EAEb,MAAMC,EAAS,GACTC,EAAUR,EAAMjD,MAAM,YAE5B,OAASuD,EAAQpC,EAASS,QAIxB4B,EAAOD,GAASM,EAAgB1C,EAASoC,GAAQ7B,EAAMuB,EAAOI,GAKhE,OAFAI,IAEOD,CACR,CAeH"}
@@ -0,0 +1,2 @@
1
+ import{ok as t}from"../../devlop/lib/default.js";import{handle as e}from"../../mdast-util-to-markdown/lib/handle/index.js";import"../../decode-named-character-reference/index.dom.js";function n(){return{exit:{taskListCheckValueChecked:s,taskListCheckValueUnchecked:s,paragraph:a}}}function i(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:c}}}function s(e){const n=this.stack[this.stack.length-2];t("listItem"===n.type),n.checked="taskListCheckValueChecked"===e.type}function a(e){const n=this.stack[this.stack.length-2];if(n&&"listItem"===n.type&&"boolean"==typeof n.checked){const e=this.stack[this.stack.length-1];t("paragraph"===e.type);const i=e.children[0];if(i&&"text"===i.type){const t=n.children;let s,a=-1;for(;++a<t.length;){const e=t[a];if("paragraph"===e.type){s=e;break}}s===e&&(i.value=i.value.slice(1),0===i.value.length?e.children.shift():e.position&&i.position&&"number"==typeof i.position.start.offset&&(i.position.start.column++,i.position.start.offset++,e.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function c(t,n,i,s){const a=t.children[0],c="boolean"==typeof t.checked&&a&&"paragraph"===a.type,r="["+(t.checked?"x":" ")+"] ",o=i.createTracker(s);c&&o.move(r);let h=e.listItem(t,n,i,{...s,...o.current()});return c&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+r}))),h}export{n as gfmTaskListItemFromMarkdown,i as gfmTaskListItemToMarkdown};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/mdast-util-gfm-task-list-item/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n */\n\nimport {ok as assert} from 'devlop'\nimport {defaultHandlers} from 'mdast-util-to-markdown'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM task\n * list items in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM task list items.\n */\nexport function gfmTaskListItemFromMarkdown() {\n return {\n exit: {\n taskListCheckValueChecked: exitCheck,\n taskListCheckValueUnchecked: exitCheck,\n paragraph: exitParagraphWithTaskListItem\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM task list\n * items in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM task list items.\n */\nexport function gfmTaskListItemToMarkdown() {\n return {\n unsafe: [{atBreak: true, character: '-', after: '[:|-]'}],\n handlers: {listItem: listItemWithTaskListItem}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitCheck(token) {\n // We’re always in a paragraph, in a list item.\n const node = this.stack[this.stack.length - 2]\n assert(node.type === 'listItem')\n node.checked = token.type === 'taskListCheckValueChecked'\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitParagraphWithTaskListItem(token) {\n const parent = this.stack[this.stack.length - 2]\n\n if (\n parent &&\n parent.type === 'listItem' &&\n typeof parent.checked === 'boolean'\n ) {\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'paragraph')\n const head = node.children[0]\n\n if (head && head.type === 'text') {\n const siblings = parent.children\n let index = -1\n /** @type {Paragraph | undefined} */\n let firstParaghraph\n\n while (++index < siblings.length) {\n const sibling = siblings[index]\n if (sibling.type === 'paragraph') {\n firstParaghraph = sibling\n break\n }\n }\n\n if (firstParaghraph === node) {\n // Must start with a space or a tab.\n head.value = head.value.slice(1)\n\n if (head.value.length === 0) {\n node.children.shift()\n } else if (\n node.position &&\n head.position &&\n typeof head.position.start.offset === 'number'\n ) {\n head.position.start.column++\n head.position.start.offset++\n node.position.start = Object.assign({}, head.position.start)\n }\n }\n }\n }\n\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {ListItem} node\n */\nfunction listItemWithTaskListItem(node, parent, state, info) {\n const head = node.children[0]\n const checkable =\n typeof node.checked === 'boolean' && head && head.type === 'paragraph'\n const checkbox = '[' + (node.checked ? 'x' : ' ') + '] '\n const tracker = state.createTracker(info)\n\n if (checkable) {\n tracker.move(checkbox)\n }\n\n let value = defaultHandlers.listItem(node, parent, state, {\n ...info,\n ...tracker.current()\n })\n\n if (checkable) {\n value = value.replace(/^(?:[*+-]|\\d+\\.)([\\r\\n]| {1,3})/, check)\n }\n\n return value\n\n /**\n * @param {string} $0\n * @returns {string}\n */\n function check($0) {\n return $0 + checkbox\n }\n}\n"],"names":["gfmTaskListItemFromMarkdown","exit","taskListCheckValueChecked","exitCheck","taskListCheckValueUnchecked","paragraph","exitParagraphWithTaskListItem","gfmTaskListItemToMarkdown","unsafe","atBreak","character","after","handlers","listItem","listItemWithTaskListItem","token","node","this","stack","length","assert","type","checked","parent","head","children","siblings","firstParaghraph","index","sibling","value","slice","shift","position","start","offset","column","Object","assign","state","info","checkable","checkbox","tracker","createTracker","move","defaultHandlers","current","replace","$0"],"mappings":"uLAoBO,SAASA,IACd,MAAO,CACLC,KAAM,CACJC,0BAA2BC,EAC3BC,4BAA6BD,EAC7BE,UAAWC,GAGjB,CASO,SAASC,IACd,MAAO,CACLC,OAAQ,CAAC,CAACC,SAAS,EAAMC,UAAW,IAAKC,MAAO,UAChDC,SAAU,CAACC,SAAUC,GAEzB,CAMA,SAASX,EAAUY,GAEjB,MAAMC,EAAOC,KAAKC,MAAMD,KAAKC,MAAMC,OAAS,GAC5CC,EAAqB,aAAdJ,EAAKK,MACZL,EAAKM,QAAyB,8BAAfP,EAAMM,IACvB,CAMA,SAASf,EAA8BS,GACrC,MAAMQ,EAASN,KAAKC,MAAMD,KAAKC,MAAMC,OAAS,GAE9C,GACEI,GACgB,aAAhBA,EAAOF,MACmB,kBAAnBE,EAAOD,QACd,CACA,MAAMN,EAAOC,KAAKC,MAAMD,KAAKC,MAAMC,OAAS,GAC5CC,EAAqB,cAAdJ,EAAKK,MACZ,MAAMG,EAAOR,EAAKS,SAAS,GAE3B,GAAID,GAAsB,SAAdA,EAAKH,KAAiB,CAChC,MAAMK,EAAWH,EAAOE,SACxB,IAEIE,EAFAC,GAAS,EAIb,OAASA,EAAQF,EAASP,QAAQ,CAChC,MAAMU,EAAUH,EAASE,GACzB,GAAqB,cAAjBC,EAAQR,KAAsB,CAChCM,EAAkBE,EAClB,KACD,CACF,CAEGF,IAAoBX,IAEtBQ,EAAKM,MAAQN,EAAKM,MAAMC,MAAM,GAEJ,IAAtBP,EAAKM,MAAMX,OACbH,EAAKS,SAASO,QAEdhB,EAAKiB,UACLT,EAAKS,UACiC,iBAA/BT,EAAKS,SAASC,MAAMC,SAE3BX,EAAKS,SAASC,MAAME,SACpBZ,EAAKS,SAASC,MAAMC,SACpBnB,EAAKiB,SAASC,MAAQG,OAAOC,OAAO,GAAId,EAAKS,SAASC,QAG3D,CACF,CAEDjB,KAAKhB,KAAKc,EACZ,CAMA,SAASD,EAAyBE,EAAMO,EAAQgB,EAAOC,GACrD,MAAMhB,EAAOR,EAAKS,SAAS,GACrBgB,EACoB,kBAAjBzB,EAAKM,SAAyBE,GAAsB,cAAdA,EAAKH,KAC9CqB,EAAW,KAAO1B,EAAKM,QAAU,IAAM,KAAO,KAC9CqB,EAAUJ,EAAMK,cAAcJ,GAEhCC,GACFE,EAAQE,KAAKH,GAGf,IAAIZ,EAAQgB,EAAgBjC,SAASG,EAAMO,EAAQgB,EAAO,IACrDC,KACAG,EAAQI,YAOb,OAJIN,IACFX,EAAQA,EAAMkB,QAAQ,mCASxB,SAAeC,GACb,OAAOA,EAAKP,CACb,KARMZ,CAST"}
@@ -0,0 +1,2 @@
1
+ import{convert as e}from"../../unist-util-is/lib/index.js";const t=e(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);export{t as phrasing};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/mdast-util-phrasing/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Html} Html\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n */\n\nimport {convert} from 'unist-util-is'\n\n/**\n * Check if the given value is *phrasing content*.\n *\n * > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.\n *\n * @param node\n * Thing to check, typically `Node`.\n * @returns\n * Whether `value` is phrasing content.\n */\n\nexport const phrasing =\n /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */\n (\n convert([\n 'break',\n 'delete',\n 'emphasis',\n // To do: next major: removed since footnotes were added to GFM.\n 'footnote',\n 'footnoteReference',\n 'image',\n 'imageReference',\n 'inlineCode',\n // Enabled by `mdast-util-math`:\n 'inlineMath',\n 'link',\n 'linkReference',\n // Enabled by `mdast-util-mdx`:\n 'mdxJsxTextElement',\n // Enabled by `mdast-util-mdx`:\n 'mdxTextExpression',\n 'strong',\n 'text',\n // Enabled by `mdast-util-directive`:\n 'textDirective'\n ])\n )\n"],"names":["phrasing","convert"],"mappings":"2DAkBY,MAACA,EAGTC,EAAQ,CACN,QACA,SACA,WAEA,WACA,oBACA,QACA,iBACA,aAEA,aACA,OACA,gBAEA,oBAEA,oBACA,SACA,OAEA"}
@@ -0,0 +1,2 @@
1
+ function n(n,t,r,o){const c=r.enter("blockquote"),i=r.createTracker(o);i.move("> "),i.shift(2);const u=r.indentLines(r.containerFlow(n,i.current()),e);return c(),u}function e(n,e,t){return">"+(t?"":" ")+n}export{n as blockquote};
2
+ //# sourceMappingURL=blockquote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockquote.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/blockquote.js"],"sourcesContent":["/**\n * @import {Blockquote, Parents} from 'mdast'\n * @import {Info, Map, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {Blockquote} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function blockquote(node, _, state, info) {\n const exit = state.enter('blockquote')\n const tracker = state.createTracker(info)\n tracker.move('> ')\n tracker.shift(2)\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return '>' + (blank ? '' : ' ') + line\n}\n"],"names":["blockquote","node","_","state","info","exit","enter","tracker","createTracker","move","shift","value","indentLines","containerFlow","current","map","line","blank"],"mappings":"AAYO,SAASA,EAAWC,EAAMC,EAAGC,EAAOC,GACzC,MAAMC,EAAOF,EAAMG,MAAM,cACnBC,EAAUJ,EAAMK,cAAcJ,GACpCG,EAAQE,KAAK,MACbF,EAAQG,MAAM,GACd,MAAMC,EAAQR,EAAMS,YAClBT,EAAMU,cAAcZ,EAAMM,EAAQO,WAClCC,GAGF,OADAV,IACOM,CACT,CAGA,SAASI,EAAIC,EAAMd,EAAGe,GACpB,MAAO,KAAOA,EAAQ,GAAK,KAAOD,CACpC"}
@@ -0,0 +1,2 @@
1
+ import{patternInScope as t}from"../util/pattern-in-scope.js";function e(e,n,r,f){let a=-1;for(;++a<r.unsafe.length;)if("\n"===r.unsafe[a].character&&t(r.stack,r.unsafe[a]))return/[ \t]/.test(f.before)?"":" ";return"\\\n"}export{e as hardBreak};
2
+ //# sourceMappingURL=break.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"break.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/break.js"],"sourcesContent":["/**\n * @import {Break, Parents} from 'mdast'\n * @import {Info, State} from 'mdast-util-to-markdown'\n */\n\nimport {patternInScope} from '../util/pattern-in-scope.js'\n\n/**\n * @param {Break} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function hardBreak(_, _1, state, info) {\n let index = -1\n\n while (++index < state.unsafe.length) {\n // If we can’t put eols in this construct (setext headings, tables), use a\n // space instead.\n if (\n state.unsafe[index].character === '\\n' &&\n patternInScope(state.stack, state.unsafe[index])\n ) {\n return /[ \\t]/.test(info.before) ? '' : ' '\n }\n }\n\n return '\\\\\\n'\n}\n"],"names":["hardBreak","_","_1","state","info","index","unsafe","length","character","patternInScope","stack","test","before"],"mappings":"6DAcO,SAASA,EAAUC,EAAGC,EAAIC,EAAOC,GACtC,IAAIC,GAAS,EAEb,OAASA,EAAQF,EAAMG,OAAOC,QAG5B,GACoC,OAAlCJ,EAAMG,OAAOD,GAAOG,WACpBC,EAAeN,EAAMO,MAAOP,EAAMG,OAAOD,IAEzC,MAAO,QAAQM,KAAKP,EAAKQ,QAAU,GAAK,IAI5C,MAAO,MACT"}
@@ -0,0 +1,2 @@
1
+ import{longestStreak as e}from"../../../longest-streak/index.js";import{formatCodeAsIndented as n}from"../util/format-code-as-indented.js";import{checkFence as t}from"../util/check-fence.js";function o(o,c,a,d){const m=t(a),f=o.value||"",i="`"===m?"GraveAccent":"Tilde";if(n(o,a)){const e=a.enter("codeIndented"),n=a.indentLines(f,r);return e(),n}const s=a.createTracker(d),u=m.repeat(Math.max(e(f,m)+1,3)),l=a.enter("codeFenced");let v=s.move(u);if(o.lang){const e=a.enter(`codeFencedLang${i}`);v+=s.move(a.safe(o.lang,{before:v,after:" ",encode:["`"],...s.current()})),e()}if(o.lang&&o.meta){const e=a.enter(`codeFencedMeta${i}`);v+=s.move(" "),v+=s.move(a.safe(o.meta,{before:v,after:"\n",encode:["`"],...s.current()})),e()}return v+=s.move("\n"),f&&(v+=s.move(f+"\n")),v+=s.move(u),l(),v}function r(e,n,t){return(t?"":" ")+e}export{o as code};
2
+ //# sourceMappingURL=code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/code.js"],"sourcesContent":["/**\n * @import {Info, Map, State} from 'mdast-util-to-markdown'\n * @import {Code, Parents} from 'mdast'\n */\n\nimport {longestStreak} from 'longest-streak'\nimport {formatCodeAsIndented} from '../util/format-code-as-indented.js'\nimport {checkFence} from '../util/check-fence.js'\n\n/**\n * @param {Code} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function code(node, _, state, info) {\n const marker = checkFence(state)\n const raw = node.value || ''\n const suffix = marker === '`' ? 'GraveAccent' : 'Tilde'\n\n if (formatCodeAsIndented(node, state)) {\n const exit = state.enter('codeIndented')\n const value = state.indentLines(raw, map)\n exit()\n return value\n }\n\n const tracker = state.createTracker(info)\n const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3))\n const exit = state.enter('codeFenced')\n let value = tracker.move(sequence)\n\n if (node.lang) {\n const subexit = state.enter(`codeFencedLang${suffix}`)\n value += tracker.move(\n state.safe(node.lang, {\n before: value,\n after: ' ',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n if (node.lang && node.meta) {\n const subexit = state.enter(`codeFencedMeta${suffix}`)\n value += tracker.move(' ')\n value += tracker.move(\n state.safe(node.meta, {\n before: value,\n after: '\\n',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n value += tracker.move('\\n')\n\n if (raw) {\n value += tracker.move(raw + '\\n')\n }\n\n value += tracker.move(sequence)\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return (blank ? '' : ' ') + line\n}\n"],"names":["code","node","_","state","info","marker","checkFence","raw","value","suffix","formatCodeAsIndented","exit","enter","indentLines","map","tracker","createTracker","sequence","repeat","Math","max","longestStreak","move","lang","subexit","safe","before","after","encode","current","meta","line","blank"],"mappings":"+LAgBO,SAASA,EAAKC,EAAMC,EAAGC,EAAOC,GACnC,MAAMC,EAASC,EAAWH,GACpBI,EAAMN,EAAKO,OAAS,GACpBC,EAAoB,MAAXJ,EAAiB,cAAgB,QAEhD,GAAIK,EAAqBT,EAAME,GAAQ,CACrC,MAAMQ,EAAOR,EAAMS,MAAM,gBACnBJ,EAAQL,EAAMU,YAAYN,EAAKO,GAErC,OADAH,IACOH,CACR,CAED,MAAMO,EAAUZ,EAAMa,cAAcZ,GAC9Ba,EAAWZ,EAAOa,OAAOC,KAAKC,IAAIC,EAAcd,EAAKF,GAAU,EAAG,IAClEM,EAAOR,EAAMS,MAAM,cACzB,IAAIJ,EAAQO,EAAQO,KAAKL,GAEzB,GAAIhB,EAAKsB,KAAM,CACb,MAAMC,EAAUrB,EAAMS,MAAM,iBAAiBH,KAC7CD,GAASO,EAAQO,KACfnB,EAAMsB,KAAKxB,EAAKsB,KAAM,CACpBG,OAAQlB,EACRmB,MAAO,IACPC,OAAQ,CAAC,QACNb,EAAQc,aAGfL,GACD,CAED,GAAIvB,EAAKsB,MAAQtB,EAAK6B,KAAM,CAC1B,MAAMN,EAAUrB,EAAMS,MAAM,iBAAiBH,KAC7CD,GAASO,EAAQO,KAAK,KACtBd,GAASO,EAAQO,KACfnB,EAAMsB,KAAKxB,EAAK6B,KAAM,CACpBJ,OAAQlB,EACRmB,MAAO,KACPC,OAAQ,CAAC,QACNb,EAAQc,aAGfL,GACD,CAUD,OARAhB,GAASO,EAAQO,KAAK,MAElBf,IACFC,GAASO,EAAQO,KAAKf,EAAM,OAG9BC,GAASO,EAAQO,KAAKL,GACtBN,IACOH,CACT,CAGA,SAASM,EAAIiB,EAAM7B,EAAG8B,GACpB,OAAQA,EAAQ,GAAK,QAAUD,CACjC"}
@@ -0,0 +1,2 @@
1
+ import{checkQuote as e}from"../util/check-quote.js";function t(t,r,o,n){const a=e(o),i='"'===a?"Quote":"Apostrophe",f=o.enter("definition");let l=o.enter("label");const u=o.createTracker(n);let s=u.move("[");return s+=u.move(o.safe(o.associationId(t),{before:s,after:"]",...u.current()})),s+=u.move("]: "),l(),!t.url||/[\0- \u007F]/.test(t.url)?(l=o.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(o.safe(t.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(l=o.enter("destinationRaw"),s+=u.move(o.safe(t.url,{before:s,after:t.title?" ":"\n",...u.current()}))),l(),t.title&&(l=o.enter(`title${i}`),s+=u.move(" "+a),s+=u.move(o.safe(t.title,{before:s,after:a,...u.current()})),s+=u.move(a),l()),f(),s}export{t as definition};
2
+ //# sourceMappingURL=definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/definition.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Definition, Parents} from 'mdast'\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\n/**\n * @param {Definition} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function definition(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('definition')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n value += tracker.move(\n state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n )\n value += tracker.move(']: ')\n\n subexit()\n\n if (\n // If there’s no url, or…\n !node.url ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : '\\n',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n exit()\n\n return value\n}\n"],"names":["definition","node","_","state","info","quote","checkQuote","suffix","exit","enter","subexit","tracker","createTracker","value","move","safe","associationId","before","after","current","url","test","title"],"mappings":"oDAcO,SAASA,EAAWC,EAAMC,EAAGC,EAAOC,GACzC,MAAMC,EAAQC,EAAWH,GACnBI,EAAmB,MAAVF,EAAgB,QAAU,aACnCG,EAAOL,EAAMM,MAAM,cACzB,IAAIC,EAAUP,EAAMM,MAAM,SAC1B,MAAME,EAAUR,EAAMS,cAAcR,GACpC,IAAIS,EAAQF,EAAQG,KAAK,KAsDzB,OArDAD,GAASF,EAAQG,KACfX,EAAMY,KAAKZ,EAAMa,cAAcf,GAAO,CACpCgB,OAAQJ,EACRK,MAAO,OACJP,EAAQQ,aAGfN,GAASF,EAAQG,KAAK,OAEtBJ,KAIGT,EAAKmB,KAEN,eAAeC,KAAKpB,EAAKmB,MAEzBV,EAAUP,EAAMM,MAAM,sBACtBI,GAASF,EAAQG,KAAK,KACtBD,GAASF,EAAQG,KACfX,EAAMY,KAAKd,EAAKmB,IAAK,CAACH,OAAQJ,EAAOK,MAAO,OAAQP,EAAQQ,aAE9DN,GAASF,EAAQG,KAAK,OAGtBJ,EAAUP,EAAMM,MAAM,kBACtBI,GAASF,EAAQG,KACfX,EAAMY,KAAKd,EAAKmB,IAAK,CACnBH,OAAQJ,EACRK,MAAOjB,EAAKqB,MAAQ,IAAM,QACvBX,EAAQQ,cAKjBT,IAEIT,EAAKqB,QACPZ,EAAUP,EAAMM,MAAM,QAAQF,KAC9BM,GAASF,EAAQG,KAAK,IAAMT,GAC5BQ,GAASF,EAAQG,KACfX,EAAMY,KAAKd,EAAKqB,MAAO,CACrBL,OAAQJ,EACRK,MAAOb,KACJM,EAAQQ,aAGfN,GAASF,EAAQG,KAAKT,GACtBK,KAGFF,IAEOK,CACT"}
@@ -0,0 +1,2 @@
1
+ import{checkEmphasis as e}from"../util/check-emphasis.js";import{encodeCharacterReference as o}from"../util/encode-character-reference.js";import{encodeInfo as r}from"../util/encode-info.js";function t(t,n,i,c){const s=e(i),a=i.enter("emphasis"),f=i.createTracker(c),d=f.move(s);let h=f.move(i.containerPhrasing(t,{after:s,before:d,...f.current()}));const m=h.charCodeAt(0),u=r(c.before.charCodeAt(c.before.length-1),m,s);u.inside&&(h=o(m)+h.slice(1));const p=h.charCodeAt(h.length-1),l=r(c.after.charCodeAt(0),p,s);l.inside&&(h=h.slice(0,-1)+o(p));const b=f.move(s);return a(),i.attentionEncodeSurroundingInfo={after:l.outside,before:u.outside},d+h+b}t.peek=function(e,o,r){return r.options.emphasis||"*"};export{t as emphasis};
2
+ //# sourceMappingURL=emphasis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emphasis.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/emphasis.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Emphasis, Parents} from 'mdast'\n */\n\nimport {checkEmphasis} from '../util/check-emphasis.js'\nimport {encodeCharacterReference} from '../util/encode-character-reference.js'\nimport {encodeInfo} from '../util/encode-info.js'\n\nemphasis.peek = emphasisPeek\n\n/**\n * @param {Emphasis} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function emphasis(node, _, state, info) {\n const marker = checkEmphasis(state)\n const exit = state.enter('emphasis')\n const tracker = state.createTracker(info)\n const before = tracker.move(marker)\n\n let between = tracker.move(\n state.containerPhrasing(node, {\n after: marker,\n before,\n ...tracker.current()\n })\n )\n const betweenHead = between.charCodeAt(0)\n const open = encodeInfo(\n info.before.charCodeAt(info.before.length - 1),\n betweenHead,\n marker\n )\n\n if (open.inside) {\n between = encodeCharacterReference(betweenHead) + between.slice(1)\n }\n\n const betweenTail = between.charCodeAt(between.length - 1)\n const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker)\n\n if (close.inside) {\n between = between.slice(0, -1) + encodeCharacterReference(betweenTail)\n }\n\n const after = tracker.move(marker)\n\n exit()\n\n state.attentionEncodeSurroundingInfo = {\n after: close.outside,\n before: open.outside\n }\n return before + between + after\n}\n\n/**\n * @param {Emphasis} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction emphasisPeek(_, _1, state) {\n return state.options.emphasis || '*'\n}\n"],"names":["emphasis","node","_","state","info","marker","checkEmphasis","exit","enter","tracker","createTracker","before","move","between","containerPhrasing","after","current","betweenHead","charCodeAt","open","encodeInfo","length","inside","encodeCharacterReference","slice","betweenTail","close","attentionEncodeSurroundingInfo","outside","peek","_1","options"],"mappings":"+LAkBO,SAASA,EAASC,EAAMC,EAAGC,EAAOC,GACvC,MAAMC,EAASC,EAAcH,GACvBI,EAAOJ,EAAMK,MAAM,YACnBC,EAAUN,EAAMO,cAAcN,GAC9BO,EAASF,EAAQG,KAAKP,GAE5B,IAAIQ,EAAUJ,EAAQG,KACpBT,EAAMW,kBAAkBb,EAAM,CAC5Bc,MAAOV,EACPM,YACGF,EAAQO,aAGf,MAAMC,EAAcJ,EAAQK,WAAW,GACjCC,EAAOC,EACXhB,EAAKO,OAAOO,WAAWd,EAAKO,OAAOU,OAAS,GAC5CJ,EACAZ,GAGEc,EAAKG,SACPT,EAAUU,EAAyBN,GAAeJ,EAAQW,MAAM,IAGlE,MAAMC,EAAcZ,EAAQK,WAAWL,EAAQQ,OAAS,GAClDK,EAAQN,EAAWhB,EAAKW,MAAMG,WAAW,GAAIO,EAAapB,GAE5DqB,EAAMJ,SACRT,EAAUA,EAAQW,MAAM,GAAI,GAAKD,EAAyBE,IAG5D,MAAMV,EAAQN,EAAQG,KAAKP,GAQ3B,OANAE,IAEAJ,EAAMwB,+BAAiC,CACrCZ,MAAOW,EAAME,QACbjB,OAAQQ,EAAKS,SAERjB,EAASE,EAAUE,CAC5B,CAjDAf,EAAS6B,KAyDT,SAAsB3B,EAAG4B,EAAI3B,GAC3B,OAAOA,EAAM4B,QAAQ/B,UAAY,GACnC"}
@@ -0,0 +1,2 @@
1
+ import{encodeCharacterReference as e}from"../util/encode-character-reference.js";import{formatHeadingAsSetext as t}from"../util/format-heading-as-setext.js";function r(r,n,a,o){const i=Math.max(Math.min(6,r.depth||1),1),c=a.createTracker(o);if(t(r,a)){const e=a.enter("headingSetext"),t=a.enter("phrasing"),n=a.containerPhrasing(r,{...c.current(),before:"\n",after:"\n"});return t(),e(),n+"\n"+(1===i?"=":"-").repeat(n.length-(Math.max(n.lastIndexOf("\r"),n.lastIndexOf("\n"))+1))}const s="#".repeat(i),h=a.enter("headingAtx"),f=a.enter("phrasing");c.move(s+" ");let m=a.containerPhrasing(r,{before:"# ",after:"\n",...c.current()});return/^[\t ]/.test(m)&&(m=e(m.charCodeAt(0))+m.slice(1)),m=m?s+" "+m:s,a.options.closeAtx&&(m+=" "+s),f(),h(),m}export{r as heading};
2
+ //# sourceMappingURL=heading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/heading.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Heading, Parents} from 'mdast'\n */\n\nimport {encodeCharacterReference} from '../util/encode-character-reference.js'\nimport {formatHeadingAsSetext} from '../util/format-heading-as-setext.js'\n\n/**\n * @param {Heading} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function heading(node, _, state, info) {\n const rank = Math.max(Math.min(6, node.depth || 1), 1)\n const tracker = state.createTracker(info)\n\n if (formatHeadingAsSetext(node, state)) {\n const exit = state.enter('headingSetext')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...tracker.current(),\n before: '\\n',\n after: '\\n'\n })\n subexit()\n exit()\n\n return (\n value +\n '\\n' +\n (rank === 1 ? '=' : '-').repeat(\n // The whole size…\n value.length -\n // Minus the position of the character after the last EOL (or\n // 0 if there is none)…\n (Math.max(value.lastIndexOf('\\r'), value.lastIndexOf('\\n')) + 1)\n )\n )\n }\n\n const sequence = '#'.repeat(rank)\n const exit = state.enter('headingAtx')\n const subexit = state.enter('phrasing')\n\n // Note: for proper tracking, we should reset the output positions when there\n // is no content returned, because then the space is not output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n tracker.move(sequence + ' ')\n\n let value = state.containerPhrasing(node, {\n before: '# ',\n after: '\\n',\n ...tracker.current()\n })\n\n if (/^[\\t ]/.test(value)) {\n // To do: what effect has the character reference on tracking?\n value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1)\n }\n\n value = value ? sequence + ' ' + value : sequence\n\n if (state.options.closeAtx) {\n value += ' ' + sequence\n }\n\n subexit()\n exit()\n\n return value\n}\n"],"names":["heading","node","_","state","info","rank","Math","max","min","depth","tracker","createTracker","formatHeadingAsSetext","exit","enter","subexit","value","containerPhrasing","current","before","after","repeat","length","lastIndexOf","sequence","move","test","encodeCharacterReference","charCodeAt","slice","options","closeAtx"],"mappings":"6JAeO,SAASA,EAAQC,EAAMC,EAAGC,EAAOC,GACtC,MAAMC,EAAOC,KAAKC,IAAID,KAAKE,IAAI,EAAGP,EAAKQ,OAAS,GAAI,GAC9CC,EAAUP,EAAMQ,cAAcP,GAEpC,GAAIQ,EAAsBX,EAAME,GAAQ,CACtC,MAAMU,EAAOV,EAAMW,MAAM,iBACnBC,EAAUZ,EAAMW,MAAM,YACtBE,EAAQb,EAAMc,kBAAkBhB,EAAM,IACvCS,EAAQQ,UACXC,OAAQ,KACRC,MAAO,OAKT,OAHAL,IACAF,IAGEG,EACA,MACU,IAATX,EAAa,IAAM,KAAKgB,OAEvBL,EAAMM,QAGHhB,KAAKC,IAAIS,EAAMO,YAAY,MAAOP,EAAMO,YAAY,OAAS,GAGrE,CAED,MAAMC,EAAW,IAAIH,OAAOhB,GACtBQ,EAAOV,EAAMW,MAAM,cACnBC,EAAUZ,EAAMW,MAAM,YAM5BJ,EAAQe,KAAKD,EAAW,KAExB,IAAIR,EAAQb,EAAMc,kBAAkBhB,EAAM,CACxCkB,OAAQ,KACRC,MAAO,QACJV,EAAQQ,YAiBb,MAdI,SAASQ,KAAKV,KAEhBA,EAAQW,EAAyBX,EAAMY,WAAW,IAAMZ,EAAMa,MAAM,IAGtEb,EAAQA,EAAQQ,EAAW,IAAMR,EAAQQ,EAErCrB,EAAM2B,QAAQC,WAChBf,GAAS,IAAMQ,GAGjBT,IACAF,IAEOG,CACT"}
@@ -0,0 +1,2 @@
1
+ function e(e){return e.value||""}e.peek=function(){return"<"};export{e as html};
2
+ //# sourceMappingURL=html.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/html.js"],"sourcesContent":["/**\n * @import {Html} from 'mdast'\n */\n\nhtml.peek = htmlPeek\n\n/**\n * @param {Html} node\n * @returns {string}\n */\nexport function html(node) {\n return node.value || ''\n}\n\n/**\n * @returns {string}\n */\nfunction htmlPeek() {\n return '<'\n}\n"],"names":["html","node","value","peek"],"mappings":"AAUO,SAASA,EAAKC,GACnB,OAAOA,EAAKC,OAAS,EACvB,CARAF,EAAKG,KAaL,WACE,MAAO,GACT"}
@@ -0,0 +1,2 @@
1
+ function e(e,t,r,c){const n=e.referenceType,o=r.enter("imageReference");let a=r.enter("label");const s=r.createTracker(c);let f=s.move("![");const l=r.safe(e.alt,{before:f,after:"]",...s.current()});f+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const i=r.safe(r.associationId(e),{before:f,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==n&&l&&l===i?"shortcut"===n?f=f.slice(0,-1):f+=s.move("]"):f+=s.move(i+"]"),f}e.peek=function(){return"!"};export{e as imageReference};
2
+ //# sourceMappingURL=image-reference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-reference.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/image-reference.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {ImageReference, Parents} from 'mdast'\n */\n\nimageReference.peek = imageReferencePeek\n\n/**\n * @param {ImageReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function imageReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('imageReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n const alt = state.safe(node.alt, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(alt + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !alt || alt !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imageReferencePeek() {\n return '!'\n}\n"],"names":["imageReference","node","_","state","info","type","referenceType","exit","enter","subexit","tracker","createTracker","value","move","alt","safe","before","after","current","stack","reference","associationId","slice","peek"],"mappings":"AAcO,SAASA,EAAeC,EAAMC,EAAGC,EAAOC,GAC7C,MAAMC,EAAOJ,EAAKK,cACZC,EAAOJ,EAAMK,MAAM,kBACzB,IAAIC,EAAUN,EAAMK,MAAM,SAC1B,MAAME,EAAUP,EAAMQ,cAAcP,GACpC,IAAIQ,EAAQF,EAAQG,KAAK,MACzB,MAAMC,EAAMX,EAAMY,KAAKd,EAAKa,IAAK,CAC/BE,OAAQJ,EACRK,MAAO,OACJP,EAAQQ,YAEbN,GAASF,EAAQG,KAAKC,EAAM,MAE5BL,IAEA,MAAMU,EAAQhB,EAAMgB,MACpBhB,EAAMgB,MAAQ,GACdV,EAAUN,EAAMK,MAAM,aAKtB,MAAMY,EAAYjB,EAAMY,KAAKZ,EAAMkB,cAAcpB,GAAO,CACtDe,OAAQJ,EACRK,MAAO,OACJP,EAAQQ,YAeb,OAbAT,IACAN,EAAMgB,MAAQA,EACdZ,IAEa,SAATF,GAAoBS,GAAOA,IAAQM,EAEnB,aAATf,EAETO,EAAQA,EAAMU,MAAM,GAAI,GAExBV,GAASF,EAAQG,KAAK,KALtBD,GAASF,EAAQG,KAAKO,EAAY,KAQ7BR,CACT,CAlDAZ,EAAeuB,KAuDf,WACE,MAAO,GACT"}
@@ -0,0 +1,2 @@
1
+ import{checkQuote as e}from"../util/check-quote.js";function t(t,r,o,n){const a=e(o),l='"'===a?"Quote":"Apostrophe",u=o.enter("image");let f=o.enter("label");const i=o.createTracker(n);let m=i.move("![");return m+=i.move(o.safe(t.alt,{before:m,after:"]",...i.current()})),m+=i.move("]("),f(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(f=o.enter("destinationLiteral"),m+=i.move("<"),m+=i.move(o.safe(t.url,{before:m,after:">",...i.current()})),m+=i.move(">")):(f=o.enter("destinationRaw"),m+=i.move(o.safe(t.url,{before:m,after:t.title?" ":")",...i.current()}))),f(),t.title&&(f=o.enter(`title${l}`),m+=i.move(" "+a),m+=i.move(o.safe(t.title,{before:m,after:a,...i.current()})),m+=i.move(a),f()),m+=i.move(")"),u(),m}t.peek=function(){return"!"};export{t as image};
2
+ //# sourceMappingURL=image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/image.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Image, Parents} from 'mdast'\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\nimage.peek = imagePeek\n\n/**\n * @param {Image} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function image(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('image')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n value += tracker.move(\n state.safe(node.alt, {before: value, after: ']', ...tracker.current()})\n )\n value += tracker.move('](')\n\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n exit()\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imagePeek() {\n return '!'\n}\n"],"names":["image","node","_","state","info","quote","checkQuote","suffix","exit","enter","subexit","tracker","createTracker","value","move","safe","alt","before","after","current","url","title","test","peek"],"mappings":"oDAgBO,SAASA,EAAMC,EAAMC,EAAGC,EAAOC,GACpC,MAAMC,EAAQC,EAAWH,GACnBI,EAAmB,MAAVF,EAAgB,QAAU,aACnCG,EAAOL,EAAMM,MAAM,SACzB,IAAIC,EAAUP,EAAMM,MAAM,SAC1B,MAAME,EAAUR,EAAMS,cAAcR,GACpC,IAAIS,EAAQF,EAAQG,KAAK,MAmDzB,OAlDAD,GAASF,EAAQG,KACfX,EAAMY,KAAKd,EAAKe,IAAK,CAACC,OAAQJ,EAAOK,MAAO,OAAQP,EAAQQ,aAE9DN,GAASF,EAAQG,KAAK,MAEtBJ,KAIIT,EAAKmB,KAAOnB,EAAKoB,OAEnB,eAAeC,KAAKrB,EAAKmB,MAEzBV,EAAUP,EAAMM,MAAM,sBACtBI,GAASF,EAAQG,KAAK,KACtBD,GAASF,EAAQG,KACfX,EAAMY,KAAKd,EAAKmB,IAAK,CAACH,OAAQJ,EAAOK,MAAO,OAAQP,EAAQQ,aAE9DN,GAASF,EAAQG,KAAK,OAGtBJ,EAAUP,EAAMM,MAAM,kBACtBI,GAASF,EAAQG,KACfX,EAAMY,KAAKd,EAAKmB,IAAK,CACnBH,OAAQJ,EACRK,MAAOjB,EAAKoB,MAAQ,IAAM,OACvBV,EAAQQ,cAKjBT,IAEIT,EAAKoB,QACPX,EAAUP,EAAMM,MAAM,QAAQF,KAC9BM,GAASF,EAAQG,KAAK,IAAMT,GAC5BQ,GAASF,EAAQG,KACfX,EAAMY,KAAKd,EAAKoB,MAAO,CACrBJ,OAAQJ,EACRK,MAAOb,KACJM,EAAQQ,aAGfN,GAASF,EAAQG,KAAKT,GACtBK,KAGFG,GAASF,EAAQG,KAAK,KACtBN,IAEOK,CACT,CAnEAb,EAAMuB,KAwEN,WACE,MAAO,GACT"}
@@ -0,0 +1,2 @@
1
+ import{blockquote as r}from"./blockquote.js";import{hardBreak as o}from"./break.js";import{code as m}from"./code.js";import{definition as i}from"./definition.js";import{emphasis as e}from"./emphasis.js";import{heading as t}from"./heading.js";import{html as s}from"./html.js";import{image as p}from"./image.js";import{imageReference as f}from"./image-reference.js";import{inlineCode as a}from"./inline-code.js";import{link as n}from"./link.js";import{linkReference as j}from"./link-reference.js";import{list as l}from"./list.js";import{listItem as c}from"./list-item.js";import{paragraph as h}from"./paragraph.js";import{root as k}from"./root.js";import{strong as g}from"./strong.js";import{text as d}from"./text.js";import{thematicBreak as b}from"./thematic-break.js";const x={blockquote:r,break:o,code:m,definition:i,emphasis:e,hardBreak:o,heading:t,html:s,image:p,imageReference:f,inlineCode:a,link:n,linkReference:j,list:l,listItem:c,paragraph:h,root:k,strong:g,text:d,thematicBreak:b};export{x as handle};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/index.js"],"sourcesContent":["import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {definition} from './definition.js'\nimport {emphasis} from './emphasis.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {image} from './image.js'\nimport {imageReference} from './image-reference.js'\nimport {inlineCode} from './inline-code.js'\nimport {link} from './link.js'\nimport {linkReference} from './link-reference.js'\nimport {list} from './list.js'\nimport {listItem} from './list-item.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default (CommonMark) handlers.\n */\nexport const handle = {\n blockquote,\n break: hardBreak,\n code,\n definition,\n emphasis,\n hardBreak,\n heading,\n html,\n image,\n imageReference,\n inlineCode,\n link,\n linkReference,\n list,\n listItem,\n paragraph,\n root,\n strong,\n text,\n thematicBreak\n}\n"],"names":["handle","blockquote","break","hardBreak","code","definition","emphasis","heading","html","image","imageReference","inlineCode","link","linkReference","list","listItem","paragraph","root","strong","text","thematicBreak"],"mappings":"gwBAuBY,MAACA,EAAS,CACpBC,aACAC,MAAOC,EACPC,OACAC,aACAC,WACAH,YACAI,UACAC,OACAC,QACAC,iBACAC,aACAC,OACAC,gBACAC,OACAC,WACAC,YACAC,OACAC,SACAC,OACAC"}
@@ -0,0 +1,2 @@
1
+ function e(e,t,n){let r=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const e=n.unsafe[s],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}e.peek=function(){return"`"};export{e as inlineCode};
2
+ //# sourceMappingURL=inline-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inline-code.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/inline-code.js"],"sourcesContent":["/**\n * @import {State} from 'mdast-util-to-markdown'\n * @import {InlineCode, Parents} from 'mdast'\n */\n\ninlineCode.peek = inlineCodePeek\n\n/**\n * @param {InlineCode} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nexport function inlineCode(node, _, state) {\n let value = node.value || ''\n let sequence = '`'\n let index = -1\n\n // If there is a single grave accent on its own in the code, use a fence of\n // two.\n // If there are two in a row, use one.\n while (new RegExp('(^|[^`])' + sequence + '([^`]|$)').test(value)) {\n sequence += '`'\n }\n\n // If this is not just spaces or eols (tabs don’t count), and either the\n // first or last character are a space, eol, or tick, then pad with spaces.\n if (\n /[^ \\r\\n]/.test(value) &&\n ((/^[ \\r\\n]/.test(value) && /[ \\r\\n]$/.test(value)) || /^`|`$/.test(value))\n ) {\n value = ' ' + value + ' '\n }\n\n // We have a potential problem: certain characters after eols could result in\n // blocks being seen.\n // For example, if someone injected the string `'\\n# b'`, then that would\n // result in an ATX heading.\n // We can’t escape characters in `inlineCode`, but because eols are\n // transformed to spaces when going from markdown to HTML anyway, we can swap\n // them out.\n while (++index < state.unsafe.length) {\n const pattern = state.unsafe[index]\n const expression = state.compilePattern(pattern)\n /** @type {RegExpExecArray | null} */\n let match\n\n // Only look for `atBreak`s.\n // Btw: note that `atBreak` patterns will always start the regex at LF or\n // CR.\n if (!pattern.atBreak) continue\n\n while ((match = expression.exec(value))) {\n let position = match.index\n\n // Support CRLF (patterns only look for one of the characters).\n if (\n value.charCodeAt(position) === 10 /* `\\n` */ &&\n value.charCodeAt(position - 1) === 13 /* `\\r` */\n ) {\n position--\n }\n\n value = value.slice(0, position) + ' ' + value.slice(match.index + 1)\n }\n }\n\n return sequence + value + sequence\n}\n\n/**\n * @returns {string}\n */\nfunction inlineCodePeek() {\n return '`'\n}\n"],"names":["inlineCode","node","_","state","value","sequence","index","RegExp","test","unsafe","length","pattern","expression","compilePattern","match","atBreak","exec","position","charCodeAt","slice","peek"],"mappings":"AAaO,SAASA,EAAWC,EAAMC,EAAGC,GAClC,IAAIC,EAAQH,EAAKG,OAAS,GACtBC,EAAW,IACXC,GAAS,EAKb,KAAO,IAAIC,OAAO,WAAaF,EAAW,YAAYG,KAAKJ,IACzDC,GAAY,IAmBd,IAbE,WAAWG,KAAKJ,KACd,WAAWI,KAAKJ,IAAU,WAAWI,KAAKJ,IAAW,QAAQI,KAAKJ,MAEpEA,EAAQ,IAAMA,EAAQ,OAUfE,EAAQH,EAAMM,OAAOC,QAAQ,CACpC,MAAMC,EAAUR,EAAMM,OAAOH,GACvBM,EAAaT,EAAMU,eAAeF,GAExC,IAAIG,EAKJ,GAAKH,EAAQI,QAEb,KAAQD,EAAQF,EAAWI,KAAKZ,IAAS,CACvC,IAAIa,EAAWH,EAAMR,MAIY,KAA/BF,EAAMc,WAAWD,IACkB,KAAnCb,EAAMc,WAAWD,EAAW,IAE5BA,IAGFb,EAAQA,EAAMe,MAAM,EAAGF,GAAY,IAAMb,EAAMe,MAAML,EAAMR,MAAQ,EACpE,CACF,CAED,OAAOD,EAAWD,EAAQC,CAC5B,CA/DAL,EAAWoB,KAoEX,WACE,MAAO,GACT"}
@@ -0,0 +1,2 @@
1
+ function e(e,r,t,n){const c=e.referenceType,o=t.enter("linkReference");let s=t.enter("label");const a=t.createTracker(n);let f=a.move("[");const i=t.containerPhrasing(e,{before:f,after:"]",...a.current()});f+=a.move(i+"]["),s();const l=t.stack;t.stack=[],s=t.enter("reference");const u=t.safe(t.associationId(e),{before:f,after:"]",...a.current()});return s(),t.stack=l,o(),"full"!==c&&i&&i===u?"shortcut"===c?f=f.slice(0,-1):f+=a.move("]"):f+=a.move(u+"]"),f}e.peek=function(){return"["};export{e as linkReference};
2
+ //# sourceMappingURL=link-reference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-reference.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/link-reference.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {LinkReference, Parents} from 'mdast'\n */\n\nlinkReference.peek = linkReferencePeek\n\n/**\n * @param {LinkReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function linkReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('linkReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n const text = state.containerPhrasing(node, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(text + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !text || text !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction linkReferencePeek() {\n return '['\n}\n"],"names":["linkReference","node","_","state","info","type","referenceType","exit","enter","subexit","tracker","createTracker","value","move","text","containerPhrasing","before","after","current","stack","reference","safe","associationId","slice","peek"],"mappings":"AAcO,SAASA,EAAcC,EAAMC,EAAGC,EAAOC,GAC5C,MAAMC,EAAOJ,EAAKK,cACZC,EAAOJ,EAAMK,MAAM,iBACzB,IAAIC,EAAUN,EAAMK,MAAM,SAC1B,MAAME,EAAUP,EAAMQ,cAAcP,GACpC,IAAIQ,EAAQF,EAAQG,KAAK,KACzB,MAAMC,EAAOX,EAAMY,kBAAkBd,EAAM,CACzCe,OAAQJ,EACRK,MAAO,OACJP,EAAQQ,YAEbN,GAASF,EAAQG,KAAKC,EAAO,MAE7BL,IAEA,MAAMU,EAAQhB,EAAMgB,MACpBhB,EAAMgB,MAAQ,GACdV,EAAUN,EAAMK,MAAM,aAKtB,MAAMY,EAAYjB,EAAMkB,KAAKlB,EAAMmB,cAAcrB,GAAO,CACtDe,OAAQJ,EACRK,MAAO,OACJP,EAAQQ,YAeb,OAbAT,IACAN,EAAMgB,MAAQA,EACdZ,IAEa,SAATF,GAAoBS,GAAQA,IAASM,EAErB,aAATf,EAETO,EAAQA,EAAMW,MAAM,GAAI,GAExBX,GAASF,EAAQG,KAAK,KALtBD,GAASF,EAAQG,KAAKO,EAAY,KAQ7BR,CACT,CAlDAZ,EAAcwB,KAuDd,WACE,MAAO,GACT"}
@@ -0,0 +1,2 @@
1
+ import{checkQuote as e}from"../util/check-quote.js";import{formatLinkAsAutolink as t}from"../util/format-link-as-autolink.js";function r(r,o,n,a){const i=e(n),l='"'===i?"Quote":"Apostrophe",u=n.createTracker(a);let f,m;if(t(r,n)){const e=n.stack;n.stack=[],f=n.enter("autolink");let t=u.move("<");return t+=u.move(n.containerPhrasing(r,{before:t,after:">",...u.current()})),t+=u.move(">"),f(),n.stack=e,t}f=n.enter("link"),m=n.enter("label");let c=u.move("[");return c+=u.move(n.containerPhrasing(r,{before:c,after:"](",...u.current()})),c+=u.move("]("),m(),!r.url&&r.title||/[\0- \u007F]/.test(r.url)?(m=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(r.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(m=n.enter("destinationRaw"),c+=u.move(n.safe(r.url,{before:c,after:r.title?" ":")",...u.current()}))),m(),r.title&&(m=n.enter(`title${l}`),c+=u.move(" "+i),c+=u.move(n.safe(r.title,{before:c,after:i,...u.current()})),c+=u.move(i),m()),c+=u.move(")"),f(),c}r.peek=function(e,r,o){return t(e,o)?"<":"["};export{r as link};
2
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/link.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Link, Parents} from 'mdast'\n * @import {Exit} from '../types.js'\n */\n\nimport {checkQuote} from '../util/check-quote.js'\nimport {formatLinkAsAutolink} from '../util/format-link-as-autolink.js'\n\nlink.peek = linkPeek\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function link(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const tracker = state.createTracker(info)\n /** @type {Exit} */\n let exit\n /** @type {Exit} */\n let subexit\n\n if (formatLinkAsAutolink(node, state)) {\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n exit = state.enter('autolink')\n let value = tracker.move('<')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '>',\n ...tracker.current()\n })\n )\n value += tracker.move('>')\n exit()\n state.stack = stack\n return value\n }\n\n exit = state.enter('link')\n subexit = state.enter('label')\n let value = tracker.move('[')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '](',\n ...tracker.current()\n })\n )\n value += tracker.move('](')\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n\n exit()\n return value\n}\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nfunction linkPeek(node, _, state) {\n return formatLinkAsAutolink(node, state) ? '<' : '['\n}\n"],"names":["link","node","_","state","info","quote","checkQuote","suffix","tracker","createTracker","exit","subexit","formatLinkAsAutolink","stack","enter","value","move","containerPhrasing","before","after","current","url","title","test","safe","peek"],"mappings":"8HAkBO,SAASA,EAAKC,EAAMC,EAAGC,EAAOC,GACnC,MAAMC,EAAQC,EAAWH,GACnBI,EAAmB,MAAVF,EAAgB,QAAU,aACnCG,EAAUL,EAAMM,cAAcL,GAEpC,IAAIM,EAEAC,EAEJ,GAAIC,EAAqBX,EAAME,GAAQ,CAErC,MAAMU,EAAQV,EAAMU,MACpBV,EAAMU,MAAQ,GACdH,EAAOP,EAAMW,MAAM,YACnB,IAAIC,EAAQP,EAAQQ,KAAK,KAWzB,OAVAD,GAASP,EAAQQ,KACfb,EAAMc,kBAAkBhB,EAAM,CAC5BiB,OAAQH,EACRI,MAAO,OACJX,EAAQY,aAGfL,GAASP,EAAQQ,KAAK,KACtBN,IACAP,EAAMU,MAAQA,EACPE,CACR,CAEDL,EAAOP,EAAMW,MAAM,QACnBH,EAAUR,EAAMW,MAAM,SACtB,IAAIC,EAAQP,EAAQQ,KAAK,KAsDzB,OArDAD,GAASP,EAAQQ,KACfb,EAAMc,kBAAkBhB,EAAM,CAC5BiB,OAAQH,EACRI,MAAO,QACJX,EAAQY,aAGfL,GAASP,EAAQQ,KAAK,MACtBL,KAIIV,EAAKoB,KAAOpB,EAAKqB,OAEnB,eAAeC,KAAKtB,EAAKoB,MAEzBV,EAAUR,EAAMW,MAAM,sBACtBC,GAASP,EAAQQ,KAAK,KACtBD,GAASP,EAAQQ,KACfb,EAAMqB,KAAKvB,EAAKoB,IAAK,CAACH,OAAQH,EAAOI,MAAO,OAAQX,EAAQY,aAE9DL,GAASP,EAAQQ,KAAK,OAGtBL,EAAUR,EAAMW,MAAM,kBACtBC,GAASP,EAAQQ,KACfb,EAAMqB,KAAKvB,EAAKoB,IAAK,CACnBH,OAAQH,EACRI,MAAOlB,EAAKqB,MAAQ,IAAM,OACvBd,EAAQY,cAKjBT,IAEIV,EAAKqB,QACPX,EAAUR,EAAMW,MAAM,QAAQP,KAC9BQ,GAASP,EAAQQ,KAAK,IAAMX,GAC5BU,GAASP,EAAQQ,KACfb,EAAMqB,KAAKvB,EAAKqB,MAAO,CACrBJ,OAAQH,EACRI,MAAOd,KACJG,EAAQY,aAGfL,GAASP,EAAQQ,KAAKX,GACtBM,KAGFI,GAASP,EAAQQ,KAAK,KAEtBN,IACOK,CACT,CA9FAf,EAAKyB,KAsGL,SAAkBxB,EAAMC,EAAGC,GACzB,OAAOS,EAAqBX,EAAME,GAAS,IAAM,GACnD"}
@@ -0,0 +1,2 @@
1
+ import{checkBullet as t}from"../util/check-bullet.js";import{checkListItemIndent as e}from"../util/check-list-item-indent.js";function r(r,n,i,l){const s=e(i);let o=i.bulletCurrent||t(i);n&&"list"===n.type&&n.ordered&&(o=("number"==typeof n.start&&n.start>-1?n.start:1)+(!1===i.options.incrementListMarker?0:n.children.indexOf(r))+o);let c=o.length+1;("tab"===s||"mixed"===s&&(n&&"list"===n.type&&n.spread||r.spread))&&(c=4*Math.ceil(c/4));const a=i.createTracker(l);a.move(o+" ".repeat(c-o.length)),a.shift(c);const p=i.enter("listItem"),u=i.indentLines(i.containerFlow(r,a.current()),(function(t,e,r){if(e)return(r?"":" ".repeat(c))+t;return(r?o:o+" ".repeat(c-o.length))+t}));return p(),u}export{r as listItem};
2
+ //# sourceMappingURL=list-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-item.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/list-item.js"],"sourcesContent":["/**\n * @import {Info, Map, State} from 'mdast-util-to-markdown'\n * @import {ListItem, Parents} from 'mdast'\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkListItemIndent} from '../util/check-list-item-indent.js'\n\n/**\n * @param {ListItem} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function listItem(node, parent, state, info) {\n const listItemIndent = checkListItemIndent(state)\n let bullet = state.bulletCurrent || checkBullet(state)\n\n // Add the marker value for ordered lists.\n if (parent && parent.type === 'list' && parent.ordered) {\n bullet =\n (typeof parent.start === 'number' && parent.start > -1\n ? parent.start\n : 1) +\n (state.options.incrementListMarker === false\n ? 0\n : parent.children.indexOf(node)) +\n bullet\n }\n\n let size = bullet.length + 1\n\n if (\n listItemIndent === 'tab' ||\n (listItemIndent === 'mixed' &&\n ((parent && parent.type === 'list' && parent.spread) || node.spread))\n ) {\n size = Math.ceil(size / 4) * 4\n }\n\n const tracker = state.createTracker(info)\n tracker.move(bullet + ' '.repeat(size - bullet.length))\n tracker.shift(size)\n const exit = state.enter('listItem')\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n\n return value\n\n /** @type {Map} */\n function map(line, index, blank) {\n if (index) {\n return (blank ? '' : ' '.repeat(size)) + line\n }\n\n return (blank ? bullet : bullet + ' '.repeat(size - bullet.length)) + line\n }\n}\n"],"names":["listItem","node","parent","state","info","listItemIndent","checkListItemIndent","bullet","bulletCurrent","checkBullet","type","ordered","start","options","incrementListMarker","children","indexOf","size","length","spread","Math","ceil","tracker","createTracker","move","repeat","shift","exit","enter","value","indentLines","containerFlow","current","line","index","blank"],"mappings":"8HAeO,SAASA,EAASC,EAAMC,EAAQC,EAAOC,GAC5C,MAAMC,EAAiBC,EAAoBH,GAC3C,IAAII,EAASJ,EAAMK,eAAiBC,EAAYN,GAG5CD,GAA0B,SAAhBA,EAAOQ,MAAmBR,EAAOS,UAC7CJ,GAC2B,iBAAjBL,EAAOU,OAAsBV,EAAOU,OAAS,EACjDV,EAAOU,MACP,KACmC,IAAtCT,EAAMU,QAAQC,oBACX,EACAZ,EAAOa,SAASC,QAAQf,IAC5BM,GAGJ,IAAIU,EAAOV,EAAOW,OAAS,GAGN,QAAnBb,GACoB,UAAnBA,IACGH,GAA0B,SAAhBA,EAAOQ,MAAmBR,EAAOiB,QAAWlB,EAAKkB,WAE/DF,EAA6B,EAAtBG,KAAKC,KAAKJ,EAAO,IAG1B,MAAMK,EAAUnB,EAAMoB,cAAcnB,GACpCkB,EAAQE,KAAKjB,EAAS,IAAIkB,OAAOR,EAAOV,EAAOW,SAC/CI,EAAQI,MAAMT,GACd,MAAMU,EAAOxB,EAAMyB,MAAM,YACnBC,EAAQ1B,EAAM2B,YAClB3B,EAAM4B,cAAc9B,EAAMqB,EAAQU,YAQpC,SAAaC,EAAMC,EAAOC,GACxB,GAAID,EACF,OAAQC,EAAQ,GAAK,IAAIV,OAAOR,IAASgB,EAG3C,OAAQE,EAAQ5B,EAASA,EAAS,IAAIkB,OAAOR,EAAOV,EAAOW,SAAWe,CACvE,IATD,OAFAN,IAEOE,CAUT"}
@@ -0,0 +1,2 @@
1
+ import{checkBullet as t}from"../util/check-bullet.js";import{checkBulletOther as e}from"../util/check-bullet-other.js";import{checkBulletOrdered as l}from"../util/check-bullet-ordered.js";import{checkRule as r}from"../util/check-rule.js";function c(c,n,i,s){const d=i.enter("list"),o=i.bulletCurrent;let h=c.ordered?l(i):t(i);const a=c.ordered?"."===h?")":".":e(i);let k=!(!n||!i.bulletLastUsed)&&h===i.bulletLastUsed;if(!c.ordered){const t=c.children?c.children[0]:void 0;if("*"!==h&&"-"!==h||!t||t.children&&t.children[0]||"list"!==i.stack[i.stack.length-1]||"listItem"!==i.stack[i.stack.length-2]||"list"!==i.stack[i.stack.length-3]||"listItem"!==i.stack[i.stack.length-4]||0!==i.indexStack[i.indexStack.length-1]||0!==i.indexStack[i.indexStack.length-2]||0!==i.indexStack[i.indexStack.length-3]||(k=!0),r(i)===h&&t){let t=-1;for(;++t<c.children.length;){const e=c.children[t];if(e&&"listItem"===e.type&&e.children&&e.children[0]&&"thematicBreak"===e.children[0].type){k=!0;break}}}}k&&(h=a),i.bulletCurrent=h;const u=i.containerFlow(c,s);return i.bulletLastUsed=h,i.bulletCurrent=o,d(),u}export{c as list};
2
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/list.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {List, Parents} from 'mdast'\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkBulletOther} from '../util/check-bullet-other.js'\nimport {checkBulletOrdered} from '../util/check-bullet-ordered.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {List} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function list(node, parent, state, info) {\n const exit = state.enter('list')\n const bulletCurrent = state.bulletCurrent\n /** @type {string} */\n let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state)\n /** @type {string} */\n const bulletOther = node.ordered\n ? bullet === '.'\n ? ')'\n : '.'\n : checkBulletOther(state)\n let useDifferentMarker =\n parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false\n\n if (!node.ordered) {\n const firstListItem = node.children ? node.children[0] : undefined\n\n // If there’s an empty first list item directly in two list items,\n // we have to use a different bullet:\n //\n // ```markdown\n // * - *\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (\n // Bullet could be used as a thematic break marker:\n (bullet === '*' || bullet === '-') &&\n // Empty first list item:\n firstListItem &&\n (!firstListItem.children || !firstListItem.children[0]) &&\n // Directly in two other list items:\n state.stack[state.stack.length - 1] === 'list' &&\n state.stack[state.stack.length - 2] === 'listItem' &&\n state.stack[state.stack.length - 3] === 'list' &&\n state.stack[state.stack.length - 4] === 'listItem' &&\n // That are each the first child.\n state.indexStack[state.indexStack.length - 1] === 0 &&\n state.indexStack[state.indexStack.length - 2] === 0 &&\n state.indexStack[state.indexStack.length - 3] === 0\n ) {\n useDifferentMarker = true\n }\n\n // If there’s a thematic break at the start of the first list item,\n // we have to use a different bullet:\n //\n // ```markdown\n // * ---\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (checkRule(state) === bullet && firstListItem) {\n let index = -1\n\n while (++index < node.children.length) {\n const item = node.children[index]\n\n if (\n item &&\n item.type === 'listItem' &&\n item.children &&\n item.children[0] &&\n item.children[0].type === 'thematicBreak'\n ) {\n useDifferentMarker = true\n break\n }\n }\n }\n }\n\n if (useDifferentMarker) {\n bullet = bulletOther\n }\n\n state.bulletCurrent = bullet\n const value = state.containerFlow(node, info)\n state.bulletLastUsed = bullet\n state.bulletCurrent = bulletCurrent\n exit()\n return value\n}\n"],"names":["list","node","parent","state","info","exit","enter","bulletCurrent","bullet","ordered","checkBulletOrdered","checkBullet","bulletOther","checkBulletOther","useDifferentMarker","bulletLastUsed","firstListItem","children","undefined","stack","length","indexStack","checkRule","index","item","type","value","containerFlow"],"mappings":"8OAiBO,SAASA,EAAKC,EAAMC,EAAQC,EAAOC,GACxC,MAAMC,EAAOF,EAAMG,MAAM,QACnBC,EAAgBJ,EAAMI,cAE5B,IAAIC,EAASP,EAAKQ,QAAUC,EAAmBP,GAASQ,EAAYR,GAEpE,MAAMS,EAAcX,EAAKQ,QACV,MAAXD,EACE,IACA,IACFK,EAAiBV,GACrB,IAAIW,KACFZ,IAAUC,EAAMY,iBAAiBP,IAAWL,EAAMY,eAEpD,IAAKd,EAAKQ,QAAS,CACjB,MAAMO,EAAgBf,EAAKgB,SAAWhB,EAAKgB,SAAS,QAAKC,EAqCzD,GAzBc,MAAXV,GAA6B,MAAXA,IAEnBQ,GACEA,EAAcC,UAAaD,EAAcC,SAAS,IAEZ,SAAxCd,EAAMgB,MAAMhB,EAAMgB,MAAMC,OAAS,IACO,aAAxCjB,EAAMgB,MAAMhB,EAAMgB,MAAMC,OAAS,IACO,SAAxCjB,EAAMgB,MAAMhB,EAAMgB,MAAMC,OAAS,IACO,aAAxCjB,EAAMgB,MAAMhB,EAAMgB,MAAMC,OAAS,IAEiB,IAAlDjB,EAAMkB,WAAWlB,EAAMkB,WAAWD,OAAS,IACO,IAAlDjB,EAAMkB,WAAWlB,EAAMkB,WAAWD,OAAS,IACO,IAAlDjB,EAAMkB,WAAWlB,EAAMkB,WAAWD,OAAS,KAE3CN,GAAqB,GAWnBQ,EAAUnB,KAAWK,GAAUQ,EAAe,CAChD,IAAIO,GAAS,EAEb,OAASA,EAAQtB,EAAKgB,SAASG,QAAQ,CACrC,MAAMI,EAAOvB,EAAKgB,SAASM,GAE3B,GACEC,GACc,aAAdA,EAAKC,MACLD,EAAKP,UACLO,EAAKP,SAAS,IACY,kBAA1BO,EAAKP,SAAS,GAAGQ,KACjB,CACAX,GAAqB,EACrB,KACD,CACF,CACF,CACF,CAEGA,IACFN,EAASI,GAGXT,EAAMI,cAAgBC,EACtB,MAAMkB,EAAQvB,EAAMwB,cAAc1B,EAAMG,GAIxC,OAHAD,EAAMY,eAAiBP,EACvBL,EAAMI,cAAgBA,EACtBF,IACOqB,CACT"}
@@ -0,0 +1,2 @@
1
+ function n(n,r,e,t){const a=e.enter("paragraph"),i=e.enter("phrasing"),o=e.containerPhrasing(n,t);return i(),a(),o}export{n as paragraph};
2
+ //# sourceMappingURL=paragraph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraph.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/paragraph.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Paragraph, Parents} from 'mdast'\n */\n\n/**\n * @param {Paragraph} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function paragraph(node, _, state, info) {\n const exit = state.enter('paragraph')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, info)\n subexit()\n exit()\n return value\n}\n"],"names":["paragraph","node","_","state","info","exit","enter","subexit","value","containerPhrasing"],"mappings":"AAYO,SAASA,EAAUC,EAAMC,EAAGC,EAAOC,GACxC,MAAMC,EAAOF,EAAMG,MAAM,aACnBC,EAAUJ,EAAMG,MAAM,YACtBE,EAAQL,EAAMM,kBAAkBR,EAAMG,GAG5C,OAFAG,IACAF,IACOG,CACT"}
@@ -0,0 +1,2 @@
1
+ import{phrasing as n}from"../../../mdast-util-phrasing/lib/index.js";function r(r,i,t,o){return(r.children.some((function(r){return n(r)}))?t.containerPhrasing:t.containerFlow).call(t,r,o)}export{r as root};
2
+ //# sourceMappingURL=root.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/root.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Parents, Root} from 'mdast'\n */\n\nimport {phrasing} from 'mdast-util-phrasing'\n\n/**\n * @param {Root} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function root(node, _, state, info) {\n // Note: `html` nodes are ambiguous.\n const hasPhrasing = node.children.some(function (d) {\n return phrasing(d)\n })\n\n const container = hasPhrasing ? state.containerPhrasing : state.containerFlow\n return container.call(state, node, info)\n}\n"],"names":["root","node","_","state","info","children","some","d","phrasing","containerPhrasing","containerFlow","call"],"mappings":"qEAcO,SAASA,EAAKC,EAAMC,EAAGC,EAAOC,GAOnC,OALoBH,EAAKI,SAASC,MAAK,SAAUC,GAC/C,OAAOC,EAASD,EACpB,IAEkCJ,EAAMM,kBAAoBN,EAAMO,eAC/CC,KAAKR,EAAOF,EAAMG,EACrC"}
@@ -0,0 +1,2 @@
1
+ import{checkStrong as e}from"../util/check-strong.js";import{encodeCharacterReference as o}from"../util/encode-character-reference.js";import{encodeInfo as r}from"../util/encode-info.js";function t(t,n,c,i){const s=e(c),f=c.enter("strong"),a=c.createTracker(i),d=a.move(s+s);let u=a.move(c.containerPhrasing(t,{after:s,before:d,...a.current()}));const h=u.charCodeAt(0),m=r(i.before.charCodeAt(i.before.length-1),h,s);m.inside&&(u=o(h)+u.slice(1));const l=u.charCodeAt(u.length-1),g=r(i.after.charCodeAt(0),l,s);g.inside&&(u=u.slice(0,-1)+o(l));const p=a.move(s+s);return f(),c.attentionEncodeSurroundingInfo={after:g.outside,before:m.outside},d+u+p}t.peek=function(e,o,r){return r.options.strong||"*"};export{t as strong};
2
+ //# sourceMappingURL=strong.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strong.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/strong.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Parents, Strong} from 'mdast'\n */\n\nimport {checkStrong} from '../util/check-strong.js'\nimport {encodeCharacterReference} from '../util/encode-character-reference.js'\nimport {encodeInfo} from '../util/encode-info.js'\n\nstrong.peek = strongPeek\n\n/**\n * @param {Strong} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function strong(node, _, state, info) {\n const marker = checkStrong(state)\n const exit = state.enter('strong')\n const tracker = state.createTracker(info)\n const before = tracker.move(marker + marker)\n\n let between = tracker.move(\n state.containerPhrasing(node, {\n after: marker,\n before,\n ...tracker.current()\n })\n )\n const betweenHead = between.charCodeAt(0)\n const open = encodeInfo(\n info.before.charCodeAt(info.before.length - 1),\n betweenHead,\n marker\n )\n\n if (open.inside) {\n between = encodeCharacterReference(betweenHead) + between.slice(1)\n }\n\n const betweenTail = between.charCodeAt(between.length - 1)\n const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker)\n\n if (close.inside) {\n between = between.slice(0, -1) + encodeCharacterReference(betweenTail)\n }\n\n const after = tracker.move(marker + marker)\n\n exit()\n\n state.attentionEncodeSurroundingInfo = {\n after: close.outside,\n before: open.outside\n }\n return before + between + after\n}\n\n/**\n * @param {Strong} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction strongPeek(_, _1, state) {\n return state.options.strong || '*'\n}\n"],"names":["strong","node","_","state","info","marker","checkStrong","exit","enter","tracker","createTracker","before","move","between","containerPhrasing","after","current","betweenHead","charCodeAt","open","encodeInfo","length","inside","encodeCharacterReference","slice","betweenTail","close","attentionEncodeSurroundingInfo","outside","peek","_1","options"],"mappings":"2LAkBO,SAASA,EAAOC,EAAMC,EAAGC,EAAOC,GACrC,MAAMC,EAASC,EAAYH,GACrBI,EAAOJ,EAAMK,MAAM,UACnBC,EAAUN,EAAMO,cAAcN,GAC9BO,EAASF,EAAQG,KAAKP,EAASA,GAErC,IAAIQ,EAAUJ,EAAQG,KACpBT,EAAMW,kBAAkBb,EAAM,CAC5Bc,MAAOV,EACPM,YACGF,EAAQO,aAGf,MAAMC,EAAcJ,EAAQK,WAAW,GACjCC,EAAOC,EACXhB,EAAKO,OAAOO,WAAWd,EAAKO,OAAOU,OAAS,GAC5CJ,EACAZ,GAGEc,EAAKG,SACPT,EAAUU,EAAyBN,GAAeJ,EAAQW,MAAM,IAGlE,MAAMC,EAAcZ,EAAQK,WAAWL,EAAQQ,OAAS,GAClDK,EAAQN,EAAWhB,EAAKW,MAAMG,WAAW,GAAIO,EAAapB,GAE5DqB,EAAMJ,SACRT,EAAUA,EAAQW,MAAM,GAAI,GAAKD,EAAyBE,IAG5D,MAAMV,EAAQN,EAAQG,KAAKP,EAASA,GAQpC,OANAE,IAEAJ,EAAMwB,+BAAiC,CACrCZ,MAAOW,EAAME,QACbjB,OAAQQ,EAAKS,SAERjB,EAASE,EAAUE,CAC5B,CAjDAf,EAAO6B,KAyDP,SAAoB3B,EAAG4B,EAAI3B,GACzB,OAAOA,EAAM4B,QAAQ/B,QAAU,GACjC"}
@@ -0,0 +1,2 @@
1
+ function e(e,n,r,t){return r.safe(e.value,t)}export{e as text};
2
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/text.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Parents, Text} from 'mdast'\n */\n\n/**\n * @param {Text} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function text(node, _, state, info) {\n return state.safe(node.value, info)\n}\n"],"names":["text","node","_","state","info","safe","value"],"mappings":"AAYO,SAASA,EAAKC,EAAMC,EAAGC,EAAOC,GACnC,OAAOD,EAAME,KAAKJ,EAAKK,MAAOF,EAChC"}
@@ -0,0 +1,2 @@
1
+ import{checkRuleRepetition as e}from"../util/check-rule-repetition.js";import{checkRule as r}from"../util/check-rule.js";function t(t,o,i){const c=(r(i)+(i.options.ruleSpaces?" ":"")).repeat(e(i));return i.options.ruleSpaces?c.slice(0,-1):c}export{t as thematicBreak};
2
+ //# sourceMappingURL=thematic-break.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thematic-break.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js"],"sourcesContent":["/**\n * @import {State} from 'mdast-util-to-markdown'\n * @import {Parents, ThematicBreak} from 'mdast'\n */\n\nimport {checkRuleRepetition} from '../util/check-rule-repetition.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {ThematicBreak} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nexport function thematicBreak(_, _1, state) {\n const value = (\n checkRule(state) + (state.options.ruleSpaces ? ' ' : '')\n ).repeat(checkRuleRepetition(state))\n\n return state.options.ruleSpaces ? value.slice(0, -1) : value\n}\n"],"names":["thematicBreak","_","_1","state","value","checkRule","options","ruleSpaces","repeat","checkRuleRepetition","slice"],"mappings":"yHAcO,SAASA,EAAcC,EAAGC,EAAIC,GACnC,MAAMC,GACJC,EAAUF,IAAUA,EAAMG,QAAQC,WAAa,IAAM,KACrDC,OAAOC,EAAoBN,IAE7B,OAAOA,EAAMG,QAAQC,WAAaH,EAAMM,MAAM,GAAI,GAAKN,CACzD"}
@@ -0,0 +1,2 @@
1
+ function e(e){const r=e.options.bulletOrdered||".";if("."!==r&&")"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}export{e as checkBulletOrdered};
2
+ //# sourceMappingURL=check-bullet-ordered.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-bullet-ordered.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['bulletOrdered'], null | undefined>}\n */\nexport function checkBulletOrdered(state) {\n const marker = state.options.bulletOrdered || '.'\n\n if (marker !== '.' && marker !== ')') {\n throw new Error(\n 'Cannot serialize items with `' +\n marker +\n '` for `options.bulletOrdered`, expected `.` or `)`'\n )\n }\n\n return marker\n}\n"],"names":["checkBulletOrdered","state","marker","options","bulletOrdered","Error"],"mappings":"AAQO,SAASA,EAAmBC,GACjC,MAAMC,EAASD,EAAME,QAAQC,eAAiB,IAE9C,GAAe,MAAXF,GAA6B,MAAXA,EACpB,MAAM,IAAIG,MACR,gCACEH,EACA,sDAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ import{checkBullet as e}from"./check-bullet.js";function t(t){const r=e(t),o=t.options.bulletOther;if(!o)return"*"===r?"-":"*";if("*"!==o&&"+"!==o&&"-"!==o)throw new Error("Cannot serialize items with `"+o+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(o===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+o+"`) to be different");return o}export{t as checkBulletOther};
2
+ //# sourceMappingURL=check-bullet-other.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-bullet-other.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\nimport {checkBullet} from './check-bullet.js'\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['bullet'], null | undefined>}\n */\nexport function checkBulletOther(state) {\n const bullet = checkBullet(state)\n const bulletOther = state.options.bulletOther\n\n if (!bulletOther) {\n return bullet === '*' ? '-' : '*'\n }\n\n if (bulletOther !== '*' && bulletOther !== '+' && bulletOther !== '-') {\n throw new Error(\n 'Cannot serialize items with `' +\n bulletOther +\n '` for `options.bulletOther`, expected `*`, `+`, or `-`'\n )\n }\n\n if (bulletOther === bullet) {\n throw new Error(\n 'Expected `bullet` (`' +\n bullet +\n '`) and `bulletOther` (`' +\n bulletOther +\n '`) to be different'\n )\n }\n\n return bulletOther\n}\n"],"names":["checkBulletOther","state","bullet","checkBullet","bulletOther","options","Error"],"mappings":"gDAUO,SAASA,EAAiBC,GAC/B,MAAMC,EAASC,EAAYF,GACrBG,EAAcH,EAAMI,QAAQD,YAElC,IAAKA,EACH,MAAkB,MAAXF,EAAiB,IAAM,IAGhC,GAAoB,MAAhBE,GAAuC,MAAhBA,GAAuC,MAAhBA,EAChD,MAAM,IAAIE,MACR,gCACEF,EACA,0DAIN,GAAIA,IAAgBF,EAClB,MAAM,IAAII,MACR,uBACEJ,EACA,0BACAE,EACA,sBAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ function t(t){const o=t.options.bullet||"*";if("*"!==o&&"+"!==o&&"-"!==o)throw new Error("Cannot serialize items with `"+o+"` for `options.bullet`, expected `*`, `+`, or `-`");return o}export{t as checkBullet};
2
+ //# sourceMappingURL=check-bullet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-bullet.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-bullet.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['bullet'], null | undefined>}\n */\nexport function checkBullet(state) {\n const marker = state.options.bullet || '*'\n\n if (marker !== '*' && marker !== '+' && marker !== '-') {\n throw new Error(\n 'Cannot serialize items with `' +\n marker +\n '` for `options.bullet`, expected `*`, `+`, or `-`'\n )\n }\n\n return marker\n}\n"],"names":["checkBullet","state","marker","options","bullet","Error"],"mappings":"AAQO,SAASA,EAAYC,GAC1B,MAAMC,EAASD,EAAME,QAAQC,QAAU,IAEvC,GAAe,MAAXF,GAA6B,MAAXA,GAA6B,MAAXA,EACtC,MAAM,IAAIG,MACR,gCACEH,EACA,qDAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ function o(o){const e=o.options.emphasis||"*";if("*"!==e&&"_"!==e)throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}export{o as checkEmphasis};
2
+ //# sourceMappingURL=check-emphasis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-emphasis.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['emphasis'], null | undefined>}\n */\nexport function checkEmphasis(state) {\n const marker = state.options.emphasis || '*'\n\n if (marker !== '*' && marker !== '_') {\n throw new Error(\n 'Cannot serialize emphasis with `' +\n marker +\n '` for `options.emphasis`, expected `*`, or `_`'\n )\n }\n\n return marker\n}\n"],"names":["checkEmphasis","state","marker","options","emphasis","Error"],"mappings":"AAQO,SAASA,EAAcC,GAC5B,MAAMC,EAASD,EAAME,QAAQC,UAAY,IAEzC,GAAe,MAAXF,GAA6B,MAAXA,EACpB,MAAM,IAAIG,MACR,mCACEH,EACA,kDAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ function e(e){const o=e.options.fence||"`";if("`"!==o&&"~"!==o)throw new Error("Cannot serialize code with `"+o+"` for `options.fence`, expected `` ` `` or `~`");return o}export{e as checkFence};
2
+ //# sourceMappingURL=check-fence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-fence.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-fence.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['fence'], null | undefined>}\n */\nexport function checkFence(state) {\n const marker = state.options.fence || '`'\n\n if (marker !== '`' && marker !== '~') {\n throw new Error(\n 'Cannot serialize code with `' +\n marker +\n '` for `options.fence`, expected `` ` `` or `~`'\n )\n }\n\n return marker\n}\n"],"names":["checkFence","state","marker","options","fence","Error"],"mappings":"AAQO,SAASA,EAAWC,GACzB,MAAMC,EAASD,EAAME,QAAQC,OAAS,IAEtC,GAAe,MAAXF,GAA6B,MAAXA,EACpB,MAAM,IAAIG,MACR,+BACEH,EACA,kDAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ function t(t){const e=t.options.listItemIndent||"one";if("tab"!==e&&"one"!==e&&"mixed"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}export{t as checkListItemIndent};
2
+ //# sourceMappingURL=check-list-item-indent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-list-item-indent.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['listItemIndent'], null | undefined>}\n */\nexport function checkListItemIndent(state) {\n const style = state.options.listItemIndent || 'one'\n\n if (style !== 'tab' && style !== 'one' && style !== 'mixed') {\n throw new Error(\n 'Cannot serialize items with `' +\n style +\n '` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`'\n )\n }\n\n return style\n}\n"],"names":["checkListItemIndent","state","style","options","listItemIndent","Error"],"mappings":"AAQO,SAASA,EAAoBC,GAClC,MAAMC,EAAQD,EAAME,QAAQC,gBAAkB,MAE9C,GAAc,QAAVF,GAA6B,QAAVA,GAA6B,UAAVA,EACxC,MAAM,IAAIG,MACR,gCACEH,EACA,qEAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ function o(o){const t=o.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}export{o as checkQuote};
2
+ //# sourceMappingURL=check-quote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-quote.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-quote.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['quote'], null | undefined>}\n */\nexport function checkQuote(state) {\n const marker = state.options.quote || '\"'\n\n if (marker !== '\"' && marker !== \"'\") {\n throw new Error(\n 'Cannot serialize title with `' +\n marker +\n '` for `options.quote`, expected `\"`, or `\\'`'\n )\n }\n\n return marker\n}\n"],"names":["checkQuote","state","marker","options","quote","Error"],"mappings":"AAQO,SAASA,EAAWC,GACzB,MAAMC,EAASD,EAAME,QAAQC,OAAS,IAEtC,GAAe,MAAXF,GAA6B,MAAXA,EACpB,MAAM,IAAIG,MACR,gCACEH,EACA,gDAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ function e(e){const o=e.options.ruleRepetition||3;if(o<3)throw new Error("Cannot serialize rules with repetition `"+o+"` for `options.ruleRepetition`, expected `3` or more");return o}export{e as checkRuleRepetition};
2
+ //# sourceMappingURL=check-rule-repetition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-rule-repetition.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['ruleRepetition'], null | undefined>}\n */\nexport function checkRuleRepetition(state) {\n const repetition = state.options.ruleRepetition || 3\n\n if (repetition < 3) {\n throw new Error(\n 'Cannot serialize rules with repetition `' +\n repetition +\n '` for `options.ruleRepetition`, expected `3` or more'\n )\n }\n\n return repetition\n}\n"],"names":["checkRuleRepetition","state","repetition","options","ruleRepetition","Error"],"mappings":"AAQO,SAASA,EAAoBC,GAClC,MAAMC,EAAaD,EAAME,QAAQC,gBAAkB,EAEnD,GAAIF,EAAa,EACf,MAAM,IAAIG,MACR,2CACEH,EACA,wDAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ function r(r){const o=r.options.rule||"*";if("*"!==o&&"-"!==o&&"_"!==o)throw new Error("Cannot serialize rules with `"+o+"` for `options.rule`, expected `*`, `-`, or `_`");return o}export{r as checkRule};
2
+ //# sourceMappingURL=check-rule.js.map