@e-llm-studio/citation 0.0.92 → 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 (267) hide show
  1. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js +2 -0
  2. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js.map +1 -0
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/node_modules/ccount/index.js +2 -0
  5. package/dist/cjs/node_modules/ccount/index.js.map +1 -0
  6. package/dist/cjs/node_modules/longest-streak/index.js +2 -0
  7. package/dist/cjs/node_modules/longest-streak/index.js.map +1 -0
  8. package/dist/cjs/node_modules/markdown-table/index.js +2 -0
  9. package/dist/cjs/node_modules/markdown-table/index.js.map +1 -0
  10. package/dist/cjs/node_modules/mdast-util-gfm/lib/index.js +2 -0
  11. package/dist/cjs/node_modules/mdast-util-gfm/lib/index.js.map +1 -0
  12. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +2 -0
  13. package/dist/cjs/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +1 -0
  14. package/dist/cjs/node_modules/mdast-util-gfm-footnote/lib/index.js +2 -0
  15. package/dist/cjs/node_modules/mdast-util-gfm-footnote/lib/index.js.map +1 -0
  16. package/dist/cjs/node_modules/mdast-util-gfm-strikethrough/lib/index.js +2 -0
  17. package/dist/cjs/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +1 -0
  18. package/dist/cjs/node_modules/mdast-util-gfm-table/lib/index.js +2 -0
  19. package/dist/cjs/node_modules/mdast-util-gfm-table/lib/index.js.map +1 -0
  20. package/dist/cjs/node_modules/mdast-util-gfm-task-list-item/lib/index.js +2 -0
  21. package/dist/cjs/node_modules/mdast-util-gfm-task-list-item/lib/index.js.map +1 -0
  22. package/dist/cjs/node_modules/mdast-util-phrasing/lib/index.js +2 -0
  23. package/dist/cjs/node_modules/mdast-util-phrasing/lib/index.js.map +1 -0
  24. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +2 -0
  25. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +1 -0
  26. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/break.js +2 -0
  27. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +1 -0
  28. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/code.js +2 -0
  29. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +1 -0
  30. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/definition.js +2 -0
  31. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +1 -0
  32. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +2 -0
  33. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +1 -0
  34. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/heading.js +2 -0
  35. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +1 -0
  36. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/html.js +2 -0
  37. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +1 -0
  38. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +2 -0
  39. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +1 -0
  40. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/image.js +2 -0
  41. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +1 -0
  42. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/index.js +2 -0
  43. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +1 -0
  44. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +2 -0
  45. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +1 -0
  46. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +2 -0
  47. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +1 -0
  48. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/link.js +2 -0
  49. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +1 -0
  50. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +2 -0
  51. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +1 -0
  52. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/list.js +2 -0
  53. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +1 -0
  54. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -0
  55. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +1 -0
  56. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/root.js +2 -0
  57. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +1 -0
  58. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/strong.js +2 -0
  59. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +1 -0
  60. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -0
  61. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +1 -0
  62. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +2 -0
  63. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +1 -0
  64. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -0
  65. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +1 -0
  66. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +2 -0
  67. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +1 -0
  68. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -0
  69. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +1 -0
  70. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -0
  71. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +1 -0
  72. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -0
  73. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +1 -0
  74. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -0
  75. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +1 -0
  76. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -0
  77. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +1 -0
  78. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -0
  79. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +1 -0
  80. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -0
  81. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +1 -0
  82. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -0
  83. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +1 -0
  84. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -0
  85. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +1 -0
  86. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +2 -0
  87. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +1 -0
  88. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -0
  89. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +1 -0
  90. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +2 -0
  91. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +1 -0
  92. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +2 -0
  93. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +1 -0
  94. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +2 -0
  95. package/dist/cjs/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +1 -0
  96. package/dist/cjs/node_modules/mdast-util-to-string/lib/index.js +2 -0
  97. package/dist/cjs/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  98. package/dist/cjs/node_modules/micromark-core-commonmark/lib/blank-line.js +2 -0
  99. package/dist/cjs/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  100. package/dist/cjs/node_modules/micromark-extension-gfm/index.js +2 -0
  101. package/dist/cjs/node_modules/micromark-extension-gfm/index.js.map +1 -0
  102. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +2 -0
  103. package/dist/cjs/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +1 -0
  104. package/dist/cjs/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +2 -0
  105. package/dist/cjs/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +1 -0
  106. package/dist/cjs/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +2 -0
  107. package/dist/cjs/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +1 -0
  108. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/edit-map.js +2 -0
  109. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/edit-map.js.map +1 -0
  110. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -0
  111. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/infer.js.map +1 -0
  112. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/syntax.js +2 -0
  113. package/dist/cjs/node_modules/micromark-extension-gfm-table/lib/syntax.js.map +1 -0
  114. package/dist/cjs/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +2 -0
  115. package/dist/cjs/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +1 -0
  116. package/dist/cjs/node_modules/micromark-factory-space/index.js +2 -0
  117. package/dist/cjs/node_modules/micromark-factory-space/index.js.map +1 -0
  118. package/dist/cjs/node_modules/micromark-util-character/index.js +2 -0
  119. package/dist/cjs/node_modules/micromark-util-character/index.js.map +1 -0
  120. package/dist/cjs/node_modules/micromark-util-chunked/index.js +2 -0
  121. package/dist/cjs/node_modules/micromark-util-chunked/index.js.map +1 -0
  122. package/dist/cjs/node_modules/micromark-util-classify-character/index.js +2 -0
  123. package/dist/cjs/node_modules/micromark-util-classify-character/index.js.map +1 -0
  124. package/dist/cjs/node_modules/micromark-util-combine-extensions/index.js +2 -0
  125. package/dist/cjs/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  126. package/dist/cjs/node_modules/micromark-util-normalize-identifier/index.js +2 -0
  127. package/dist/cjs/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  128. package/dist/cjs/node_modules/micromark-util-resolve-all/index.js +2 -0
  129. package/dist/cjs/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  130. package/dist/cjs/node_modules/remark-gfm/lib/index.js +2 -0
  131. package/dist/cjs/node_modules/remark-gfm/lib/index.js.map +1 -0
  132. package/dist/features/CitationRenderer/MarkdownRenderer.js +2 -0
  133. package/dist/features/CitationRenderer/MarkdownRenderer.js.map +1 -0
  134. package/dist/index.js +1 -1
  135. package/dist/node_modules/ccount/index.js +2 -0
  136. package/dist/node_modules/ccount/index.js.map +1 -0
  137. package/dist/node_modules/longest-streak/index.js +2 -0
  138. package/dist/node_modules/longest-streak/index.js.map +1 -0
  139. package/dist/node_modules/markdown-table/index.js +2 -0
  140. package/dist/node_modules/markdown-table/index.js.map +1 -0
  141. package/dist/node_modules/mdast-util-gfm/lib/index.js +2 -0
  142. package/dist/node_modules/mdast-util-gfm/lib/index.js.map +1 -0
  143. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +2 -0
  144. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +1 -0
  145. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +2 -0
  146. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js.map +1 -0
  147. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +2 -0
  148. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +1 -0
  149. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +2 -0
  150. package/dist/node_modules/mdast-util-gfm-table/lib/index.js.map +1 -0
  151. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +2 -0
  152. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js.map +1 -0
  153. package/dist/node_modules/mdast-util-phrasing/lib/index.js +2 -0
  154. package/dist/node_modules/mdast-util-phrasing/lib/index.js.map +1 -0
  155. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +2 -0
  156. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +1 -0
  157. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +2 -0
  158. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +1 -0
  159. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +2 -0
  160. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +1 -0
  161. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +2 -0
  162. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +1 -0
  163. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +2 -0
  164. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +1 -0
  165. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +2 -0
  166. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +1 -0
  167. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +2 -0
  168. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +1 -0
  169. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +2 -0
  170. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +1 -0
  171. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +2 -0
  172. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +1 -0
  173. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +2 -0
  174. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +1 -0
  175. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +2 -0
  176. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +1 -0
  177. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +2 -0
  178. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +1 -0
  179. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +2 -0
  180. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +1 -0
  181. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +2 -0
  182. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +1 -0
  183. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +2 -0
  184. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +1 -0
  185. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -0
  186. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +1 -0
  187. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +2 -0
  188. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +1 -0
  189. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +2 -0
  190. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +1 -0
  191. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -0
  192. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +1 -0
  193. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +2 -0
  194. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +1 -0
  195. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -0
  196. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +1 -0
  197. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +2 -0
  198. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +1 -0
  199. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -0
  200. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +1 -0
  201. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -0
  202. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +1 -0
  203. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -0
  204. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +1 -0
  205. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -0
  206. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +1 -0
  207. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -0
  208. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +1 -0
  209. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -0
  210. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +1 -0
  211. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -0
  212. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +1 -0
  213. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -0
  214. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +1 -0
  215. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -0
  216. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +1 -0
  217. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +2 -0
  218. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +1 -0
  219. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -0
  220. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +1 -0
  221. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +2 -0
  222. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +1 -0
  223. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +2 -0
  224. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +1 -0
  225. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +2 -0
  226. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +1 -0
  227. package/dist/node_modules/mdast-util-to-string/lib/index.js +2 -0
  228. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  229. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +2 -0
  230. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  231. package/dist/node_modules/micromark-extension-gfm/index.js +2 -0
  232. package/dist/node_modules/micromark-extension-gfm/index.js.map +1 -0
  233. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +2 -0
  234. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +1 -0
  235. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +2 -0
  236. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +1 -0
  237. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +2 -0
  238. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +1 -0
  239. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +2 -0
  240. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js.map +1 -0
  241. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -0
  242. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js.map +1 -0
  243. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +2 -0
  244. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js.map +1 -0
  245. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +2 -0
  246. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +1 -0
  247. package/dist/node_modules/micromark-factory-space/index.js +2 -0
  248. package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
  249. package/dist/node_modules/micromark-util-character/index.js +2 -0
  250. package/dist/node_modules/micromark-util-character/index.js.map +1 -0
  251. package/dist/node_modules/micromark-util-chunked/index.js +2 -0
  252. package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
  253. package/dist/node_modules/micromark-util-classify-character/index.js +2 -0
  254. package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
  255. package/dist/node_modules/micromark-util-combine-extensions/index.js +2 -0
  256. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  257. package/dist/node_modules/micromark-util-normalize-identifier/index.js +2 -0
  258. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  259. package/dist/node_modules/micromark-util-resolve-all/index.js +2 -0
  260. package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  261. package/dist/node_modules/remark-gfm/lib/index.js +2 -0
  262. package/dist/node_modules/remark-gfm/lib/index.js.map +1 -0
  263. package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts +9 -0
  264. package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts.map +1 -0
  265. package/dist/types/src/index.d.ts +1 -0
  266. package/dist/types/src/index.d.ts.map +1 -1
  267. package/package.json +1 -1
@@ -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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-rule.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-rule.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['rule'], null | undefined>}\n */\nexport function checkRule(state) {\n const marker = state.options.rule || '*'\n\n if (marker !== '*' && marker !== '-' && marker !== '_') {\n throw new Error(\n 'Cannot serialize rules with `' +\n marker +\n '` for `options.rule`, expected `*`, `-`, or `_`'\n )\n }\n\n return marker\n}\n"],"names":["checkRule","state","marker","options","rule","Error"],"mappings":"AAQO,SAASA,EAAUC,GACxB,MAAMC,EAASD,EAAME,QAAQC,MAAQ,IAErC,GAAe,MAAXF,GAA6B,MAAXA,GAA6B,MAAXA,EACtC,MAAM,IAAIG,MACR,gCACEH,EACA,mDAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ function o(o){const r=o.options.strong||"*";if("*"!==r&&"_"!==r)throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}export{o as checkStrong};
2
+ //# sourceMappingURL=check-strong.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-strong.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/check-strong.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['strong'], null | undefined>}\n */\nexport function checkStrong(state) {\n const marker = state.options.strong || '*'\n\n if (marker !== '*' && marker !== '_') {\n throw new Error(\n 'Cannot serialize strong with `' +\n marker +\n '` for `options.strong`, expected `*`, or `_`'\n )\n }\n\n return marker\n}\n"],"names":["checkStrong","state","marker","options","strong","Error"],"mappings":"AAQO,SAASA,EAAYC,GAC1B,MAAMC,EAASD,EAAME,QAAQC,QAAU,IAEvC,GAAe,MAAXF,GAA6B,MAAXA,EACpB,MAAM,IAAIG,MACR,iCACEH,EACA,gDAIN,OAAOA,CACT"}
@@ -0,0 +1,2 @@
1
+ function t(t){return"&#x"+t.toString(16).toUpperCase()+";"}export{t as encodeCharacterReference};
2
+ //# sourceMappingURL=encode-character-reference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode-character-reference.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js"],"sourcesContent":["/**\n * Encode a code point as a character reference.\n *\n * @param {number} code\n * Code point to encode.\n * @returns {string}\n * Encoded character reference.\n */\nexport function encodeCharacterReference(code) {\n return '&#x' + code.toString(16).toUpperCase() + ';'\n}\n"],"names":["encodeCharacterReference","code","toString","toUpperCase"],"mappings":"AAQO,SAASA,EAAyBC,GACvC,MAAO,MAAQA,EAAKC,SAAS,IAAIC,cAAgB,GACnD"}
@@ -0,0 +1,2 @@
1
+ import{classifyCharacter as i}from"../../../micromark-util-classify-character/index.js";function d(d,e,s){const o=i(d),t=i(e);return void 0===o?void 0===t?"_"===s?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===t?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===o?void 0===t?{inside:!1,outside:!1}:1===t?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===t?{inside:!1,outside:!1}:1===t?{inside:!0,outside:!1}:{inside:!1,outside:!1}}export{d as encodeInfo};
2
+ //# sourceMappingURL=encode-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode-info.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/encode-info.js"],"sourcesContent":["/**\n * @import {EncodeSides} from '../types.js'\n */\n\nimport {classifyCharacter} from 'micromark-util-classify-character'\n\n/**\n * Check whether to encode (as a character reference) the characters\n * surrounding an attention run.\n *\n * Which characters are around an attention run influence whether it works or\n * not.\n *\n * See <https://github.com/orgs/syntax-tree/discussions/60> for more info.\n * See this markdown in a particular renderer to see what works:\n *\n * ```markdown\n * | | A (letter inside) | B (punctuation inside) | C (whitespace inside) | D (nothing inside) |\n * | ----------------------- | ----------------- | ---------------------- | --------------------- | ------------------ |\n * | 1 (letter outside) | x*y*z | x*.*z | x* *z | x**z |\n * | 2 (punctuation outside) | .*y*. | .*.*. | .* *. | .**. |\n * | 3 (whitespace outside) | x *y* z | x *.* z | x * * z | x ** z |\n * | 4 (nothing outside) | *x* | *.* | * * | ** |\n * ```\n *\n * @param {number} outside\n * Code point on the outer side of the run.\n * @param {number} inside\n * Code point on the inner side of the run.\n * @param {'*' | '_'} marker\n * Marker of the run.\n * Underscores are handled more strictly (they form less often) than\n * asterisks.\n * @returns {EncodeSides}\n * Whether to encode characters.\n */\n// Important: punctuation must never be encoded.\n// Punctuation is solely used by markdown constructs.\n// And by encoding itself.\n// Encoding them will break constructs or double encode things.\nexport function encodeInfo(outside, inside, marker) {\n const outsideKind = classifyCharacter(outside)\n const insideKind = classifyCharacter(inside)\n\n // Letter outside:\n if (outsideKind === undefined) {\n return insideKind === undefined\n ? // Letter inside:\n // we have to encode *both* letters for `_` as it is looser.\n // it already forms for `*` (and GFMs `~`).\n marker === '_'\n ? {inside: true, outside: true}\n : {inside: false, outside: false}\n : insideKind === 1\n ? // Whitespace inside: encode both (letter, whitespace).\n {inside: true, outside: true}\n : // Punctuation inside: encode outer (letter)\n {inside: false, outside: true}\n }\n\n // Whitespace outside:\n if (outsideKind === 1) {\n return insideKind === undefined\n ? // Letter inside: already forms.\n {inside: false, outside: false}\n : insideKind === 1\n ? // Whitespace inside: encode both (whitespace).\n {inside: true, outside: true}\n : // Punctuation inside: already forms.\n {inside: false, outside: false}\n }\n\n // Punctuation outside:\n return insideKind === undefined\n ? // Letter inside: already forms.\n {inside: false, outside: false}\n : insideKind === 1\n ? // Whitespace inside: encode inner (whitespace).\n {inside: true, outside: false}\n : // Punctuation inside: already forms.\n {inside: false, outside: false}\n}\n"],"names":["encodeInfo","outside","inside","marker","outsideKind","classifyCharacter","insideKind","undefined"],"mappings":"wFAwCO,SAASA,EAAWC,EAASC,EAAQC,GAC1C,MAAMC,EAAcC,EAAkBJ,GAChCK,EAAaD,EAAkBH,GAGrC,YAAoBK,IAAhBH,OACoBG,IAAfD,EAIQ,MAAXH,EACE,CAACD,QAAQ,EAAMD,SAAS,GACxB,CAACC,QAAQ,EAAOD,SAAS,GACZ,IAAfK,EAEE,CAACJ,QAAQ,EAAMD,SAAS,GAExB,CAACC,QAAQ,EAAOD,SAAS,GAIb,IAAhBG,OACoBG,IAAfD,EAEH,CAACJ,QAAQ,EAAOD,SAAS,GACV,IAAfK,EAEE,CAACJ,QAAQ,EAAMD,SAAS,GAExB,CAACC,QAAQ,EAAOD,SAAS,QAIXM,IAAfD,EAEH,CAACJ,QAAQ,EAAOD,SAAS,GACV,IAAfK,EAEE,CAACJ,QAAQ,EAAMD,SAAS,GAExB,CAACC,QAAQ,EAAOD,SAAS,EACjC"}
@@ -0,0 +1,2 @@
1
+ function e(e,n){return Boolean(!1===n.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}export{e as formatCodeAsIndented};
2
+ //# sourceMappingURL=format-code-as-indented.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-code-as-indented.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js"],"sourcesContent":["/**\n * @import {State} from 'mdast-util-to-markdown'\n * @import {Code} from 'mdast'\n */\n\n/**\n * @param {Code} node\n * @param {State} state\n * @returns {boolean}\n */\nexport function formatCodeAsIndented(node, state) {\n return Boolean(\n state.options.fences === false &&\n node.value &&\n // If there’s no info…\n !node.lang &&\n // And there’s a non-whitespace character…\n /[^ \\r\\n]/.test(node.value) &&\n // And the value doesn’t start or end in a blank…\n !/^[\\t ]*(?:[\\r\\n]|$)|(?:^|[\\r\\n])[\\t ]*$/.test(node.value)\n )\n}\n"],"names":["formatCodeAsIndented","node","state","Boolean","options","fences","value","lang","test"],"mappings":"AAUO,SAASA,EAAqBC,EAAMC,GACzC,OAAOC,SACoB,IAAzBD,EAAME,QAAQC,QACZJ,EAAKK,QAEJL,EAAKM,MAEN,WAAWC,KAAKP,EAAKK,SAEpB,0CAA0CE,KAAKP,EAAKK,OAE3D"}
@@ -0,0 +1,2 @@
1
+ import{visit as t}from"../../../unist-util-visit/lib/index.js";import{toString as i}from"../../../mdast-util-to-string/lib/index.js";import{EXIT as e}from"../../../unist-util-visit-parents/lib/index.js";function n(n,r){let o=!1;return t(n,(function(t){if("value"in t&&/\r?\n|\r/.test(t.value)||"break"===t.type)return o=!0,e})),Boolean((!n.depth||n.depth<3)&&i(n)&&(r.options.setext||o))}export{n as formatHeadingAsSetext};
2
+ //# sourceMappingURL=format-heading-as-setext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-heading-as-setext.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js"],"sourcesContent":["/**\n * @import {State} from 'mdast-util-to-markdown'\n * @import {Heading} from 'mdast'\n */\n\nimport {EXIT, visit} from 'unist-util-visit'\nimport {toString} from 'mdast-util-to-string'\n\n/**\n * @param {Heading} node\n * @param {State} state\n * @returns {boolean}\n */\nexport function formatHeadingAsSetext(node, state) {\n let literalWithBreak = false\n\n // Look for literals with a line break.\n // Note that this also\n visit(node, function (node) {\n if (\n ('value' in node && /\\r?\\n|\\r/.test(node.value)) ||\n node.type === 'break'\n ) {\n literalWithBreak = true\n return EXIT\n }\n })\n\n return Boolean(\n (!node.depth || node.depth < 3) &&\n toString(node) &&\n (state.options.setext || literalWithBreak)\n )\n}\n"],"names":["formatHeadingAsSetext","node","state","literalWithBreak","visit","test","value","type","EXIT","Boolean","depth","toString","options","setext"],"mappings":"2MAaO,SAASA,EAAsBC,EAAMC,GAC1C,IAAIC,GAAmB,EAcvB,OAVAC,EAAMH,GAAM,SAAUA,GACpB,GACG,UAAWA,GAAQ,WAAWI,KAAKJ,EAAKK,QAC3B,UAAdL,EAAKM,KAGL,OADAJ,GAAmB,EACZK,CAEb,IAESC,UACHR,EAAKS,OAAST,EAAKS,MAAQ,IAC3BC,EAASV,KACRC,EAAMU,QAAQC,QAAUV,GAE/B"}
@@ -0,0 +1,2 @@
1
+ import{toString as t}from"../../../mdast-util-to-string/lib/index.js";function r(r,e){const i=t(r);return Boolean(!e.options.resourceLink&&r.url&&!r.title&&r.children&&1===r.children.length&&"text"===r.children[0].type&&(i===r.url||"mailto:"+i===r.url)&&/^[a-z][a-z+.-]+:/i.test(r.url)&&!/[\0- <>\u007F]/.test(r.url))}export{r as formatLinkAsAutolink};
2
+ //# sourceMappingURL=format-link-as-autolink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-link-as-autolink.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js"],"sourcesContent":["/**\n * @import {State} from 'mdast-util-to-markdown'\n * @import {Link} from 'mdast'\n */\n\nimport {toString} from 'mdast-util-to-string'\n\n/**\n * @param {Link} node\n * @param {State} state\n * @returns {boolean}\n */\nexport function formatLinkAsAutolink(node, state) {\n const raw = toString(node)\n\n return Boolean(\n !state.options.resourceLink &&\n // If there’s a url…\n node.url &&\n // And there’s a no title…\n !node.title &&\n // And the content of `node` is a single text node…\n node.children &&\n node.children.length === 1 &&\n node.children[0].type === 'text' &&\n // And if the url is the same as the content…\n (raw === node.url || 'mailto:' + raw === node.url) &&\n // And that starts w/ a protocol…\n /^[a-z][a-z+.-]+:/i.test(node.url) &&\n // And that doesn’t contain ASCII control codes (character escapes and\n // references don’t work), space, or angle brackets…\n !/[\\0- <>\\u007F]/.test(node.url)\n )\n}\n"],"names":["formatLinkAsAutolink","node","state","raw","toString","Boolean","options","resourceLink","url","title","children","length","type","test"],"mappings":"sEAYO,SAASA,EAAqBC,EAAMC,GACzC,MAAMC,EAAMC,EAASH,GAErB,OAAOI,SACJH,EAAMI,QAAQC,cAEbN,EAAKO,MAEJP,EAAKQ,OAENR,EAAKS,UACoB,IAAzBT,EAAKS,SAASC,QACY,SAA1BV,EAAKS,SAAS,GAAGE,OAEhBT,IAAQF,EAAKO,KAAO,UAAYL,IAAQF,EAAKO,MAE9C,oBAAoBK,KAAKZ,EAAKO,OAG7B,iBAAiBK,KAAKZ,EAAKO,KAElC"}
@@ -0,0 +1,2 @@
1
+ function n(n,r){return t(n,r.inConstruct,!0)&&!t(n,r.notInConstruct,!1)}function t(n,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let e=-1;for(;++e<t.length;)if(n.includes(t[e]))return!0;return!1}export{n as patternInScope};
2
+ //# sourceMappingURL=pattern-in-scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pattern-in-scope.js","sources":["../../../../../node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js"],"sourcesContent":["/**\n * @import {ConstructName, Unsafe} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {Array<ConstructName>} stack\n * @param {Unsafe} pattern\n * @returns {boolean}\n */\nexport function patternInScope(stack, pattern) {\n return (\n listInScope(stack, pattern.inConstruct, true) &&\n !listInScope(stack, pattern.notInConstruct, false)\n )\n}\n\n/**\n * @param {Array<ConstructName>} stack\n * @param {Unsafe['inConstruct']} list\n * @param {boolean} none\n * @returns {boolean}\n */\nfunction listInScope(stack, list, none) {\n if (typeof list === 'string') {\n list = [list]\n }\n\n if (!list || list.length === 0) {\n return none\n }\n\n let index = -1\n\n while (++index < list.length) {\n if (stack.includes(list[index])) {\n return true\n }\n }\n\n return false\n}\n"],"names":["patternInScope","stack","pattern","listInScope","inConstruct","notInConstruct","list","none","length","index","includes"],"mappings":"AASO,SAASA,EAAeC,EAAOC,GACpC,OACEC,EAAYF,EAAOC,EAAQE,aAAa,KACvCD,EAAYF,EAAOC,EAAQG,gBAAgB,EAEhD,CAQA,SAASF,EAAYF,EAAOK,EAAMC,GAKhC,GAJoB,iBAATD,IACTA,EAAO,CAACA,KAGLA,GAAwB,IAAhBA,EAAKE,OAChB,OAAOD,EAGT,IAAIE,GAAS,EAEb,OAASA,EAAQH,EAAKE,QACpB,GAAIP,EAAMS,SAASJ,EAAKG,IACtB,OAAO,EAIX,OAAO,CACT"}
@@ -0,0 +1,2 @@
1
+ const n={};function t(t,r){const l=r||n;return e(t,"boolean"!=typeof l.includeImageAlt||l.includeImageAlt,"boolean"!=typeof l.includeHtml||l.includeHtml)}function e(n,t,e){if(function(n){return Boolean(n&&"object"==typeof n)}(n)){if("value"in n)return"html"!==n.type||e?n.value:"";if(t&&"alt"in n&&n.alt)return n.alt;if("children"in n)return r(n.children,t,e)}return Array.isArray(n)?r(n,t,e):""}function r(n,t,r){const l=[];let o=-1;for(;++o<n.length;)l[o]=e(n[o],t,r);return l.join("")}export{t as toString};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/mdast-util-to-string/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Nodes} Nodes\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [includeImageAlt=true]\n * Whether to use `alt` for `image`s (default: `true`).\n * @property {boolean | null | undefined} [includeHtml=true]\n * Whether to use `value` of HTML (default: `true`).\n */\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Get the text content of a node or list of nodes.\n *\n * Prefers the node’s plain-text fields, otherwise serializes its children,\n * and if the given value is an array, serialize the nodes in it.\n *\n * @param {unknown} [value]\n * Thing to serialize, typically `Node`.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized `value`.\n */\nexport function toString(value, options) {\n const settings = options || emptyOptions\n const includeImageAlt =\n typeof settings.includeImageAlt === 'boolean'\n ? settings.includeImageAlt\n : true\n const includeHtml =\n typeof settings.includeHtml === 'boolean' ? settings.includeHtml : true\n\n return one(value, includeImageAlt, includeHtml)\n}\n\n/**\n * One node or several nodes.\n *\n * @param {unknown} value\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized node.\n */\nfunction one(value, includeImageAlt, includeHtml) {\n if (node(value)) {\n if ('value' in value) {\n return value.type === 'html' && !includeHtml ? '' : value.value\n }\n\n if (includeImageAlt && 'alt' in value && value.alt) {\n return value.alt\n }\n\n if ('children' in value) {\n return all(value.children, includeImageAlt, includeHtml)\n }\n }\n\n if (Array.isArray(value)) {\n return all(value, includeImageAlt, includeHtml)\n }\n\n return ''\n}\n\n/**\n * Serialize a list of nodes.\n *\n * @param {Array<unknown>} values\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized nodes.\n */\nfunction all(values, includeImageAlt, includeHtml) {\n /** @type {Array<string>} */\n const result = []\n let index = -1\n\n while (++index < values.length) {\n result[index] = one(values[index], includeImageAlt, includeHtml)\n }\n\n return result.join('')\n}\n\n/**\n * Check if `value` looks like a node.\n *\n * @param {unknown} value\n * Thing.\n * @returns {value is Nodes}\n * Whether `value` is a node.\n */\nfunction node(value) {\n return Boolean(value && typeof value === 'object')\n}\n"],"names":["emptyOptions","toString","value","options","settings","one","includeImageAlt","includeHtml","Boolean","node","type","alt","all","children","Array","isArray","values","result","index","length","join"],"mappings":"AAYA,MAAMA,EAAe,CAAE,EAehB,SAASC,EAASC,EAAOC,GAC9B,MAAMC,EAAWD,GAAWH,EAQ5B,OAAOK,EAAIH,EAN2B,kBAA7BE,EAASE,iBACZF,EAASE,gBAGmB,kBAAzBF,EAASG,aAA4BH,EAASG,YAGzD,CAcA,SAASF,EAAIH,EAAOI,EAAiBC,GACnC,GAqDF,SAAcL,GACZ,OAAOM,QAAQN,GAA0B,iBAAVA,EACjC,CAvDMO,CAAKP,GAAQ,CACf,GAAI,UAAWA,EACb,MAAsB,SAAfA,EAAMQ,MAAoBH,EAAmBL,EAAMA,MAAX,GAGjD,GAAII,GAAmB,QAASJ,GAASA,EAAMS,IAC7C,OAAOT,EAAMS,IAGf,GAAI,aAAcT,EAChB,OAAOU,EAAIV,EAAMW,SAAUP,EAAiBC,EAE/C,CAED,OAAIO,MAAMC,QAAQb,GACTU,EAAIV,EAAOI,EAAiBC,GAG9B,EACT,CAcA,SAASK,EAAII,EAAQV,EAAiBC,GAEpC,MAAMU,EAAS,GACf,IAAIC,GAAS,EAEb,OAASA,EAAQF,EAAOG,QACtBF,EAAOC,GAASb,EAAIW,EAAOE,GAAQZ,EAAiBC,GAGtD,OAAOU,EAAOG,KAAK,GACrB"}
@@ -0,0 +1,2 @@
1
+ import{factorySpace as r}from"../../micromark-factory-space/index.js";import{markdownSpace as n,markdownLineEnding as t}from"../../micromark-util-character/index.js";const i={partial:!0,tokenize:function(i,o,e){return function(t){return n(t)?r(i,c,"linePrefix")(t):c(t)};function c(r){return null===r||t(r)?o(r):e(r)}}};export{i as blankLine};
2
+ //# sourceMappingURL=blank-line.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blank-line.js","sources":["../../../../node_modules/micromark-core-commonmark/lib/blank-line.js"],"sourcesContent":["/**\n * @import {\n * Construct,\n * State,\n * TokenizeContext,\n * Tokenizer\n * } from 'micromark-util-types'\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding, markdownSpace } from 'micromark-util-character';\n/** @type {Construct} */\nexport const blankLine = {\n partial: true,\n tokenize: tokenizeBlankLine\n};\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeBlankLine(effects, ok, nok) {\n return start;\n\n /**\n * Start of blank line.\n *\n * > 👉 **Note**: `␠` represents a space character.\n *\n * ```markdown\n * > | ␠␠␊\n * ^\n * > | ␊\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n return markdownSpace(code) ? factorySpace(effects, after, \"linePrefix\")(code) : after(code);\n }\n\n /**\n * At eof/eol, after optional whitespace.\n *\n * > 👉 **Note**: `␠` represents a space character.\n *\n * ```markdown\n * > | ␠␠␊\n * ^\n * > | ␊\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n return code === null || markdownLineEnding(code) ? ok(code) : nok(code);\n }\n}"],"names":["blankLine","partial","tokenize","effects","ok","nok","code","markdownSpace","factorySpace","after","markdownLineEnding"],"mappings":"sKAYY,MAACA,EAAY,CACvBC,SAAS,EACTC,SAQF,SAA2BC,EAASC,EAAIC,GACtC,OAgBA,SAAeC,GACb,OAAOC,EAAcD,GAAQE,EAAaL,EAASM,EAAO,aAA7BD,CAA2CF,GAAQG,EAAMH,EACvF,EAgBD,SAASG,EAAMH,GACb,OAAgB,OAATA,GAAiBI,EAAmBJ,GAAQF,EAAGE,GAAQD,EAAIC,EACnE,CACH"}
@@ -0,0 +1,2 @@
1
+ import{combineExtensions as i}from"../micromark-util-combine-extensions/index.js";import{gfmAutolinkLiteral as o}from"../micromark-extension-gfm-autolink-literal/lib/syntax.js";import{gfmFootnote as m}from"../micromark-extension-gfm-footnote/lib/syntax.js";import{gfmStrikethrough as t}from"../micromark-extension-gfm-strikethrough/lib/syntax.js";import{gfmTable as r}from"../micromark-extension-gfm-table/lib/syntax.js";import{gfmTaskListItem as n}from"../micromark-extension-gfm-task-list-item/lib/syntax.js";function e(e){return i([o(),m(),t(e),r(),n()])}export{e as gfm};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../node_modules/micromark-extension-gfm/index.js"],"sourcesContent":["/**\n * @typedef {import('micromark-extension-gfm-footnote').HtmlOptions} HtmlOptions\n * @typedef {import('micromark-extension-gfm-strikethrough').Options} Options\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension\n */\n\nimport {\n combineExtensions,\n combineHtmlExtensions\n} from 'micromark-util-combine-extensions'\nimport {\n gfmAutolinkLiteral,\n gfmAutolinkLiteralHtml\n} from 'micromark-extension-gfm-autolink-literal'\nimport {gfmFootnote, gfmFootnoteHtml} from 'micromark-extension-gfm-footnote'\nimport {\n gfmStrikethrough,\n gfmStrikethroughHtml\n} from 'micromark-extension-gfm-strikethrough'\nimport {gfmTable, gfmTableHtml} from 'micromark-extension-gfm-table'\nimport {gfmTagfilterHtml} from 'micromark-extension-gfm-tagfilter'\nimport {\n gfmTaskListItem,\n gfmTaskListItemHtml\n} from 'micromark-extension-gfm-task-list-item'\n\n/**\n * Create an extension for `micromark` to enable GFM syntax.\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n *\n * Passed to `micromark-extens-gfm-strikethrough`.\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to enable GFM\n * syntax.\n */\nexport function gfm(options) {\n return combineExtensions([\n gfmAutolinkLiteral(),\n gfmFootnote(),\n gfmStrikethrough(options),\n gfmTable(),\n gfmTaskListItem()\n ])\n}\n\n/**\n * Create an extension for `micromark` to support GFM when serializing to HTML.\n *\n * @param {HtmlOptions | null | undefined} [options]\n * Configuration (optional).\n *\n * Passed to `micromark-extens-gfm-footnote`.\n * @returns {HtmlExtension}\n * Extension for `micromark` that can be passed in `htmlExtensions` to\n * support GFM when serializing to HTML.\n */\nexport function gfmHtml(options) {\n return combineHtmlExtensions([\n gfmAutolinkLiteralHtml(),\n gfmFootnoteHtml(options),\n gfmStrikethroughHtml(),\n gfmTableHtml(),\n gfmTagfilterHtml(),\n gfmTaskListItemHtml()\n ])\n}\n"],"names":["gfm","options","combineExtensions","gfmAutolinkLiteral","gfmFootnote","gfmStrikethrough","gfmTable","gfmTaskListItem"],"mappings":"+fAsCO,SAASA,EAAIC,GAClB,OAAOC,EAAkB,CACvBC,IACAC,IACAC,EAAiBJ,GACjBK,IACAC,KAEJ"}
@@ -0,0 +1,2 @@
1
+ import{asciiAlphanumeric as n,asciiAlpha as t,markdownLineEndingOrSpace as e,asciiControl as r,unicodeWhitespace as u,unicodePunctuation as i}from"../../micromark-util-character/index.js";const o={tokenize:function(n,t,e){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,n.consume(i),t;if(46===i&&3===r)return n.consume(i),u;return e(i)};function u(n){return null===n?e(n):t(n)}},partial:!0},l={tokenize:function(n,t,r){let o,l,c;return a;function a(t){return 46===t||95===t?n.check(f,m,s)(t):null===t||e(t)||u(t)||45!==t&&i(t)?m(t):(c=!0,n.consume(t),a)}function s(t){return 95===t?o=!0:(l=o,o=void 0),n.consume(t),a}function m(n){return l||o||!c?r(n):t(n)}},partial:!0},c={tokenize:function(n,t){let r=0,i=0;return o;function o(c){return 40===c?(r++,n.consume(c),o):41===c&&i<r?l(c):33===c||34===c||38===c||39===c||41===c||42===c||44===c||46===c||58===c||59===c||60===c||63===c||93===c||95===c||126===c?n.check(f,t,l)(c):null===c||e(c)||u(c)?t(c):(n.consume(c),o)}function l(t){return 41===t&&i++,n.consume(t),o}},partial:!0},f={tokenize:function(n,r,i){return o;function o(t){return 33===t||34===t||39===t||41===t||42===t||44===t||46===t||58===t||59===t||63===t||95===t||126===t?(n.consume(t),o):38===t?(n.consume(t),c):93===t?(n.consume(t),l):60===t||null===t||e(t)||u(t)?r(t):i(t)}function l(n){return null===n||40===n||91===n||e(n)||u(n)?r(n):o(n)}function c(n){return t(n)?f(n):i(n)}function f(e){return 59===e?(n.consume(e),o):t(e)?(n.consume(e),f):i(e)}},partial:!0},a={tokenize:function(t,e,r){return function(n){return t.consume(n),u};function u(t){return n(t)?r(t):e(t)}},partial:!0},s={name:"wwwAutolink",tokenize:function(n,t,e){const r=this;return function(t){if(87!==t&&119!==t||!v.call(r,r.previous)||z(r.events))return e(t);return n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(o,n.attempt(l,n.attempt(c,u),e),e)(t)};function u(e){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),t(e)}},previous:v},m={name:"protocolAutolink",tokenize:function(n,o,f){const a=this;let s="",m=!1;return function(t){if((72===t||104===t)&&g.call(a,a.previous)&&!z(a.events))return n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(t),n.consume(t),k;return f(t)};function k(e){if(t(e)&&s.length<5)return s+=String.fromCodePoint(e),n.consume(e),k;if(58===e){const t=s.toLowerCase();if("http"===t||"https"===t)return n.consume(e),p}return f(e)}function p(t){return 47===t?(n.consume(t),m?A:(m=!0,p)):f(t)}function A(t){return null===t||r(t)||e(t)||u(t)||i(t)?f(t):n.attempt(l,n.attempt(c,h),f)(t)}function h(t){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),o(t)}},previous:g},k={name:"emailAutolink",tokenize:function(e,r,u){const i=this;let o,l;return function(n){if(!w(n)||!x.call(i,i.previous)||z(i.events))return u(n);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(n)};function c(n){return w(n)?(e.consume(n),c):64===n?(e.consume(n),f):u(n)}function f(t){return 46===t?e.check(a,m,s)(t):45===t||95===t||n(t)?(l=!0,e.consume(t),f):m(t)}function s(n){return e.consume(n),o=!0,f}function m(n){return l&&o&&t(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(n)):u(n)}},previous:x},p={};function A(){return{text:p}}let h=48;for(;h<123;)p[h]=k,h++,58===h?h=65:91===h&&(h=97);function v(n){return null===n||40===n||42===n||95===n||91===n||93===n||126===n||e(n)}function g(n){return!t(n)}function x(n){return!(47===n||w(n))}function w(t){return 43===t||45===t||46===t||95===t||n(t)}function z(n){let t=n.length,e=!1;for(;t--;){const r=n[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){e=!0;break}if(r._gfmAutolinkLiteralWalkedInto){e=!1;break}}return n.length>0&&!e&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}p[43]=k,p[45]=k,p[46]=k,p[95]=k,p[72]=[k,m],p[104]=[k,m],p[87]=[k,s],p[119]=[k,s];export{A as gfmAutolinkLiteral};
2
+ //# sourceMappingURL=syntax.js.map