@tickernelz/paperclip-pro-server 2026.927.0 → 2026.927.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/build-info.json +1 -1
  2. package/dist/routes/issues.d.ts.map +1 -1
  3. package/dist/routes/issues.js +174 -45
  4. package/dist/routes/issues.js.map +1 -1
  5. package/dist/routes/openapi.d.ts.map +1 -1
  6. package/dist/routes/openapi.js +1 -0
  7. package/dist/routes/openapi.js.map +1 -1
  8. package/dist/services/instance-settings.d.ts.map +1 -1
  9. package/dist/services/instance-settings.js +3 -1
  10. package/dist/services/instance-settings.js.map +1 -1
  11. package/node_modules/mdast-util-to-markdown/index.d.ts +2 -0
  12. package/node_modules/mdast-util-to-markdown/lib/configure.d.ts +5 -0
  13. package/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -1
  14. package/node_modules/mdast-util-to-markdown/lib/configure.js +19 -0
  15. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +7 -0
  16. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -1
  17. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -1
  18. package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +7 -0
  19. package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -1
  20. package/node_modules/mdast-util-to-markdown/lib/handle/break.js +16 -5
  21. package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +7 -0
  22. package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -1
  23. package/node_modules/mdast-util-to-markdown/lib/handle/code.js +13 -2
  24. package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +7 -0
  25. package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -1
  26. package/node_modules/mdast-util-to-markdown/lib/handle/definition.js +7 -0
  27. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +30 -2
  28. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -1
  29. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +39 -41
  30. package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +7 -0
  31. package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -1
  32. package/node_modules/mdast-util-to-markdown/lib/handle/heading.js +11 -2
  33. package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +7 -0
  34. package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -1
  35. package/node_modules/mdast-util-to-markdown/lib/handle/html.js +7 -0
  36. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +10 -0
  37. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -1
  38. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +17 -2
  39. package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +10 -0
  40. package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -1
  41. package/node_modules/mdast-util-to-markdown/lib/handle/image.js +10 -0
  42. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +9 -0
  43. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -1
  44. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +14 -4
  45. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +10 -0
  46. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -1
  47. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +17 -2
  48. package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +13 -0
  49. package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -1
  50. package/node_modules/mdast-util-to-markdown/lib/handle/link.js +24 -9
  51. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +7 -0
  52. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -1
  53. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +12 -1
  54. package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +7 -0
  55. package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -1
  56. package/node_modules/mdast-util-to-markdown/lib/handle/list.js +7 -0
  57. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +7 -0
  58. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -1
  59. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  60. package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +7 -0
  61. package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -1
  62. package/node_modules/mdast-util-to-markdown/lib/handle/root.js +13 -2
  63. package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +30 -2
  64. package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -1
  65. package/node_modules/mdast-util-to-markdown/lib/handle/strong.js +39 -41
  66. package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +7 -0
  67. package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -1
  68. package/node_modules/mdast-util-to-markdown/lib/handle/text.js +7 -0
  69. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +6 -0
  70. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -1
  71. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +6 -0
  72. package/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -1
  73. package/node_modules/mdast-util-to-markdown/lib/index.js +34 -8
  74. package/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -1
  75. package/node_modules/mdast-util-to-markdown/lib/join.js +18 -1
  76. package/node_modules/mdast-util-to-markdown/lib/types.d.ts +50 -30
  77. package/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -1
  78. package/node_modules/mdast-util-to-markdown/lib/unsafe.js +15 -1
  79. package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
  80. package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
  81. package/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
  82. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +4 -0
  83. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -1
  84. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -0
  85. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +4 -0
  86. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -1
  87. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -0
  88. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +4 -0
  89. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -1
  90. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -0
  91. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +4 -0
  92. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -1
  93. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -0
  94. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +4 -0
  95. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -1
  96. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -0
  97. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +4 -0
  98. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -1
  99. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -0
  100. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +4 -0
  101. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -1
  102. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -0
  103. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +4 -0
  104. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -1
  105. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -0
  106. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +4 -0
  107. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -1
  108. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -0
  109. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +4 -0
  110. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -1
  111. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -0
  112. package/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +3 -1
  113. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +2 -0
  114. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -1
  115. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +9 -0
  116. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +95 -4
  117. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -1
  118. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +636 -57
  119. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +2 -2
  120. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -1
  121. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +1 -1
  122. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +5 -0
  123. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -1
  124. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +12 -7
  125. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +5 -0
  126. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -1
  127. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -2
  128. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +5 -0
  129. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -1
  130. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +20 -15
  131. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
  132. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
  133. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
  134. package/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +5 -0
  135. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +5 -0
  136. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -1
  137. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +11 -0
  138. package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +2 -2
  139. package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -1
  140. package/node_modules/mdast-util-to-markdown/lib/util/safe.js +71 -7
  141. package/node_modules/mdast-util-to-markdown/package.json +13 -57
  142. package/node_modules/mdast-util-to-markdown/readme.md +139 -84
  143. package/package.json +21 -21
  144. package/ui-dist/assets/{AgentAvatar-RxjiAwO8.js → AgentAvatar-PT82VwmU.js} +1 -1
  145. package/ui-dist/assets/{AgentIdentity-D4BY0hNL.js → AgentIdentity-MCshmbhZ.js} +1 -1
  146. package/ui-dist/assets/{Agents.production-gcp98JXS.js → Agents.production-M_NY58co.js} +2 -2
  147. package/ui-dist/assets/{CompanyActivity.production-CWlPErYS.js → CompanyActivity.production-DYQKd80o.js} +1 -1
  148. package/ui-dist/assets/{CompanyExport-JunkVVGm.js → CompanyExport-Ch4DvzDC.js} +1 -1
  149. package/ui-dist/assets/{CompanySkills.production-DvSrjYfs.js → CompanySkills.production-BGOAW-TP.js} +1 -1
  150. package/ui-dist/assets/{Costs.production-zx6HrqRG.js → Costs.production-AiD1rIrs.js} +1 -1
  151. package/ui-dist/assets/{EmptyState-DfjPe-d3.js → EmptyState-DPcc0zYh.js} +1 -1
  152. package/ui-dist/assets/{MarkdownBody-CsD5-bu_.js → MarkdownBody-D0eCfSWN.js} +1 -1
  153. package/ui-dist/assets/{MarkdownEditor-p2rnT0Be.js → MarkdownEditor-Pip4OXiJ.js} +49 -49
  154. package/ui-dist/assets/{OrgChart.production-C-wrmuDn.js → OrgChart.production-WmGsXZUQ.js} +1 -1
  155. package/ui-dist/assets/{PageSkeleton-CFPaR2xk.js → PageSkeleton-DHjTwRT3.js} +1 -1
  156. package/ui-dist/assets/{RoutineDetail.production-Skb6CK8y.js → RoutineDetail.production-B8ydFpMP.js} +1 -1
  157. package/ui-dist/assets/{RoutineRunVariablesDialog-BWeOhxiO.js → RoutineRunVariablesDialog-IRX4TLng.js} +1 -1
  158. package/ui-dist/assets/{Routines.production-TpFNwHyG.js → Routines.production-Bcb1R-Uu.js} +1 -1
  159. package/ui-dist/assets/{SidebarContext-bqQ25oRc.js → SidebarContext-D01pu4wh.js} +1 -1
  160. package/ui-dist/assets/{StatusIcon-BJoaLFpW.js → StatusIcon-BuUYMqqU.js} +1 -1
  161. package/ui-dist/assets/{agents-D79f8ubB.js → agents-BlSzFh-1.js} +1 -1
  162. package/ui-dist/assets/{badge-Dtq5g7E6.js → badge-Cf7ihb3q.js} +1 -1
  163. package/ui-dist/assets/{bot-CuAIZ3O7.js → bot-DZDpMzjD.js} +1 -1
  164. package/ui-dist/assets/{button-BvVFpN4P.js → button-CAPbz11u.js} +1 -1
  165. package/ui-dist/assets/{card-Dt_3k83X.js → card-dmVcp3AX.js} +1 -1
  166. package/ui-dist/assets/{check-IIwgETIo.js → check-DDiXDm2i.js} +1 -1
  167. package/ui-dist/assets/{checkbox-Dt_GoRUY.js → checkbox-CmMbs2PZ.js} +1 -1
  168. package/ui-dist/assets/{chevron-down-UBZnuvt1.js → chevron-down-F9aZv-V7.js} +1 -1
  169. package/ui-dist/assets/{chevron-right-B0AHub3v.js → chevron-right-B9JUOr38.js} +1 -1
  170. package/ui-dist/assets/{clipboard-Bj5QAqRq.js → clipboard-CYJ5Q78m.js} +1 -1
  171. package/ui-dist/assets/{company-members-DEqvhrMC.js → company-members-BcZm1g8Q.js} +1 -1
  172. package/ui-dist/assets/createLucideIcon-r3v6fbGz.js +92 -0
  173. package/ui-dist/assets/{definition-wrbKkF1t.js → definition-Irgr7mY_.js} +1 -1
  174. package/ui-dist/assets/{dist-FWFKwYyU.js → dist-5v80Jc6A.js} +1 -1
  175. package/ui-dist/assets/{dist-VxTJitj7.js → dist-D1zgkcBw.js} +1 -1
  176. package/ui-dist/assets/{environments-CkEnfa1n.js → environments-BVeNFanj.js} +1 -1
  177. package/ui-dist/assets/{external-link-B35J81lc.js → external-link-0lrOvZWO.js} +1 -1
  178. package/ui-dist/assets/{file-text-CD47Bznz.js → file-text-C9vgFckt.js} +1 -1
  179. package/ui-dist/assets/{health-CfAQPRgq.js → health-DeeeogeJ.js} +1 -1
  180. package/ui-dist/assets/{heartbeats-DLceYe5K.js → heartbeats-CK_aXmx5.js} +1 -1
  181. package/ui-dist/assets/{index-qzns_tVc.js → index-F2pxxyIV.js} +153 -153
  182. package/ui-dist/assets/{input-CFI8T_fr.js → input-DpsS9it-.js} +1 -1
  183. package/ui-dist/assets/{label-JgSsn_gH.js → label-C2ddSDJj.js} +1 -1
  184. package/ui-dist/assets/{loader-circle-AYbv_YhN.js → loader-circle-BD9wx-lw.js} +1 -1
  185. package/ui-dist/assets/{mention-chips-DPVE_n2N.js → mention-chips-DXumPrOR.js} +1 -1
  186. package/ui-dist/assets/{octagon-alert-2PgnRbAG.js → octagon-alert-rGMwyrWA.js} +1 -1
  187. package/ui-dist/assets/{rotate-ccw-D72kg6zn.js → rotate-ccw-CRAQ3Xng.js} +1 -1
  188. package/ui-dist/assets/{router-BrCMx2mP.js → router-DyZkoSkG.js} +2 -2
  189. package/ui-dist/assets/{save-fTBYxOC9.js → save-DUnPDT6R.js} +1 -1
  190. package/ui-dist/assets/{select-BidMsZcD.js → select-mS22eY6T.js} +1 -1
  191. package/ui-dist/assets/{sheet-BAx2-UjA.js → sheet-DeCxNmfl.js} +1 -1
  192. package/ui-dist/assets/{skeleton-CYELISHD.js → skeleton-CKir8TUW.js} +1 -1
  193. package/ui-dist/assets/{tabs-D5oWPScx.js → tabs-DWRZjksg.js} +1 -1
  194. package/ui-dist/assets/{triangle-alert-DFzcyeFH.js → triangle-alert-CgJcxSQX.js} +1 -1
  195. package/ui-dist/assets/{use-adapter-capabilities-aPQHbB6R.js → use-adapter-capabilities-BiWYK4zJ.js} +1 -1
  196. package/ui-dist/assets/{useHiddenSettings-jRtbaks6.js → useHiddenSettings-2JpxuJV7.js} +1 -1
  197. package/ui-dist/assets/{zap-B3DNfTNV.js → zap-P-cXfK28.js} +1 -1
  198. package/ui-dist/index.html +45 -45
  199. package/ui-dist/sw.js +1 -1
  200. package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +0 -7
  201. package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +0 -1
  202. package/ui-dist/assets/createLucideIcon-eTR0JqwS.js +0 -92
@@ -6,11 +6,18 @@
6
6
  import {phrasing} from 'mdast-util-phrasing'
7
7
 
8
8
  /**
9
+ * Serialize a root node.
10
+ *
9
11
  * @param {Root} node
12
+ * Node to serialize.
10
13
  * @param {Parents | undefined} _
14
+ * Parent node.
11
15
  * @param {State} state
16
+ * Info passed around.
12
17
  * @param {Info} info
18
+ * Info on surrounding context.
13
19
  * @returns {string}
20
+ * Serialized markdown.
14
21
  */
15
22
  export function root(node, _, state, info) {
16
23
  // Note: `html` nodes are ambiguous.
@@ -18,6 +25,10 @@ export function root(node, _, state, info) {
18
25
  return phrasing(d)
19
26
  })
20
27
 
21
- const container = hasPhrasing ? state.containerPhrasing : state.containerFlow
22
- return container.call(state, node, info)
28
+ if (!hasPhrasing) return state.containerFlow(node, info)
29
+
30
+ const exit = state.enter('phrasing')
31
+ const value = state.containerPhrasing(node, info)
32
+ exit()
33
+ return value
23
34
  }
@@ -1,24 +1,52 @@
1
1
  /**
2
+ * Serialize a strong node.
3
+ *
4
+ * Attention is properly handled by `containerPhrasing`.
5
+ *
2
6
  * @param {Strong} node
7
+ * Node to serialize.
3
8
  * @param {Parents | undefined} _
9
+ * Parent node.
4
10
  * @param {State} state
11
+ * Info passed around.
5
12
  * @param {Info} info
13
+ * Info on surrounding context.
6
14
  * @returns {string}
15
+ * Serialized markdown.
7
16
  */
8
17
  export function strong(node: Strong, _: Parents | undefined, state: State, info: Info): string;
9
18
  export namespace strong {
10
- export { strongPeek as peek };
19
+ export { attention };
20
+ export { peek };
11
21
  }
12
22
  import type { Strong } from 'mdast';
13
23
  import type { Parents } from 'mdast';
14
24
  import type { State } from 'mdast-util-to-markdown';
15
25
  import type { Info } from 'mdast-util-to-markdown';
16
26
  /**
27
+ * Serialize a strong node as attention.
28
+ *
17
29
  * @param {Strong} _
30
+ * Node to serialize.
31
+ * @param {State} state
32
+ * Info passed around.
33
+ * @returns {AttentionInfo}
34
+ * Info on how to serialize the node.
35
+ */
36
+ declare function attention(_: Strong, state: State): AttentionInfo;
37
+ /**
38
+ * Peek at this node.
39
+ *
40
+ * @param {Strong} _
41
+ * Node to serialize.
18
42
  * @param {Parents | undefined} _1
43
+ * Parent node.
19
44
  * @param {State} state
45
+ * Info passed around.
20
46
  * @returns {string}
47
+ * Start of the serialized markdown.
21
48
  */
22
- declare function strongPeek(_: Strong, _1: Parents | undefined, state: State): string;
49
+ declare function peek(_: Strong, _1: Parents | undefined, state: State): string;
50
+ import type { AttentionInfo } from 'mdast-util-to-markdown';
23
51
  export {};
24
52
  //# sourceMappingURL=strong.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"strong.d.ts","sourceRoot":"","sources":["strong.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,6BANW,MAAM,KACN,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA0ClB;;;;4BAxDiC,OAAO;6BAAP,OAAO;2BADX,wBAAwB;0BAAxB,wBAAwB;AA2DtD;;;;;GAKG;AACH,+BALW,MAAM,MACN,OAAO,GAAG,SAAS,SACnB,KAAK,GACH,MAAM,CAIlB"}
1
+ {"version":3,"file":"strong.d.ts","sourceRoot":"","sources":["strong.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;GAeG;AACH,6BAXW,MAAM,KAEN,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAQlB;;;;;4BA7BiC,OAAO;6BAAP,OAAO;2BADI,wBAAwB;0BAAxB,wBAAwB;AAgCrE;;;;;;;;;GASG;AACH,8BAPW,MAAM,SAEN,KAAK,GAEH,aAAa,CAUzB;AAED;;;;;;;;;;;GAWG;AACH,yBATW,MAAM,MAEN,OAAO,GAAG,SAAS,SAEnB,KAAK,GAEH,MAAM,CAKlB;mCAjE4C,wBAAwB"}
@@ -1,69 +1,67 @@
1
1
  /**
2
- * @import {Info, State} from 'mdast-util-to-markdown'
2
+ * @import {AttentionInfo, Info, State} from 'mdast-util-to-markdown'
3
3
  * @import {Parents, Strong} from 'mdast'
4
4
  */
5
5
 
6
6
  import {checkStrong} from '../util/check-strong.js'
7
- import {encodeCharacterReference} from '../util/encode-character-reference.js'
8
- import {encodeInfo} from '../util/encode-info.js'
9
7
 
10
- strong.peek = strongPeek
8
+ strong.attention = attention
9
+ strong.peek = peek
11
10
 
12
11
  /**
12
+ * Serialize a strong node.
13
+ *
14
+ * Attention is properly handled by `containerPhrasing`.
15
+ *
13
16
  * @param {Strong} node
17
+ * Node to serialize.
14
18
  * @param {Parents | undefined} _
19
+ * Parent node.
15
20
  * @param {State} state
21
+ * Info passed around.
16
22
  * @param {Info} info
23
+ * Info on surrounding context.
17
24
  * @returns {string}
25
+ * Serialized markdown.
18
26
  */
19
27
  export function strong(node, _, state, info) {
20
- const marker = checkStrong(state)
21
- const exit = state.enter('strong')
22
- const tracker = state.createTracker(info)
23
- const before = tracker.move(marker + marker)
24
-
25
- let between = tracker.move(
26
- state.containerPhrasing(node, {
27
- after: marker,
28
- before,
29
- ...tracker.current()
30
- })
31
- )
32
- const betweenHead = between.charCodeAt(0)
33
- const open = encodeInfo(
34
- info.before.charCodeAt(info.before.length - 1),
35
- betweenHead,
36
- marker
37
- )
38
-
39
- if (open.inside) {
40
- between = encodeCharacterReference(betweenHead) + between.slice(1)
41
- }
42
-
43
- const betweenTail = between.charCodeAt(between.length - 1)
44
- const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker)
45
-
46
- if (close.inside) {
47
- between = between.slice(0, -1) + encodeCharacterReference(betweenTail)
48
- }
49
-
50
- const after = tracker.move(marker + marker)
51
-
28
+ const exit = state.enter('phrasing')
29
+ const value = state.containerPhrasing({type: 'root', children: [node]}, info)
52
30
  exit()
31
+ return value
32
+ }
53
33
 
54
- state.attentionEncodeSurroundingInfo = {
55
- after: close.outside,
56
- before: open.outside
34
+ /**
35
+ * Serialize a strong node as attention.
36
+ *
37
+ * @param {Strong} _
38
+ * Node to serialize.
39
+ * @param {State} state
40
+ * Info passed around.
41
+ * @returns {AttentionInfo}
42
+ * Info on how to serialize the node.
43
+ */
44
+ function attention(_, state) {
45
+ const marker = checkStrong(state)
46
+ return {
47
+ construct: 'strong',
48
+ markers: marker === '*' ? ['*', '_'] : ['_', '*'],
49
+ sizes: [2]
57
50
  }
58
- return before + between + after
59
51
  }
60
52
 
61
53
  /**
54
+ * Peek at this node.
55
+ *
62
56
  * @param {Strong} _
57
+ * Node to serialize.
63
58
  * @param {Parents | undefined} _1
59
+ * Parent node.
64
60
  * @param {State} state
61
+ * Info passed around.
65
62
  * @returns {string}
63
+ * Start of the serialized markdown.
66
64
  */
67
- function strongPeek(_, _1, state) {
65
+ function peek(_, _1, state) {
68
66
  return state.options.strong || '*'
69
67
  }
@@ -3,11 +3,18 @@
3
3
  * @import {Parents, Text} from 'mdast'
4
4
  */
5
5
  /**
6
+ * Serialize a text node.
7
+ *
6
8
  * @param {Text} node
9
+ * Node to serialize.
7
10
  * @param {Parents | undefined} _
11
+ * Parent node.
8
12
  * @param {State} state
13
+ * Info passed around.
9
14
  * @param {Info} info
15
+ * Info on surrounding context.
10
16
  * @returns {string}
17
+ * Serialized markdown.
11
18
  */
12
19
  export function text(node: Text, _: Parents | undefined, state: State, info: Info): string;
13
20
  import type { Text } from 'mdast';
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["text.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AACH,2BANW,IAAI,KACJ,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CAIlB;0BAZ+B,OAAO;6BAAP,OAAO;2BADT,wBAAwB;0BAAxB,wBAAwB"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["text.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AACH,2BAXW,IAAI,KAEJ,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAKlB;0BAnB+B,OAAO;6BAAP,OAAO;2BADT,wBAAwB;0BAAxB,wBAAwB"}
@@ -4,11 +4,18 @@
4
4
  */
5
5
 
6
6
  /**
7
+ * Serialize a text node.
8
+ *
7
9
  * @param {Text} node
10
+ * Node to serialize.
8
11
  * @param {Parents | undefined} _
12
+ * Parent node.
9
13
  * @param {State} state
14
+ * Info passed around.
10
15
  * @param {Info} info
16
+ * Info on surrounding context.
11
17
  * @returns {string}
18
+ * Serialized markdown.
12
19
  */
13
20
  export function text(node, _, state, info) {
14
21
  return state.safe(node.value, info)
@@ -1,8 +1,14 @@
1
1
  /**
2
+ * Serialize a thematic break node.
3
+ *
2
4
  * @param {ThematicBreak} _
5
+ * Node to serialize.
3
6
  * @param {Parents | undefined} _1
7
+ * Parent node.
4
8
  * @param {State} state
9
+ * Info passed around.
5
10
  * @returns {string}
11
+ * Serialized markdown.
6
12
  */
7
13
  export function thematicBreak(_: ThematicBreak, _1: Parents | undefined, state: State): string;
8
14
  import type { ThematicBreak } from 'mdast';
@@ -1 +1 @@
1
- {"version":3,"file":"thematic-break.d.ts","sourceRoot":"","sources":["thematic-break.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,iCALW,aAAa,MACb,OAAO,GAAG,SAAS,SACnB,KAAK,GACH,MAAM,CAQlB;mCAlBwC,OAAO;6BAAP,OAAO;2BADxB,wBAAwB"}
1
+ {"version":3,"file":"thematic-break.d.ts","sourceRoot":"","sources":["thematic-break.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;GAWG;AACH,iCATW,aAAa,MAEb,OAAO,GAAG,SAAS,SAEnB,KAAK,GAEH,MAAM,CASlB;mCAxBwC,OAAO;6BAAP,OAAO;2BADxB,wBAAwB"}
@@ -7,10 +7,16 @@ import {checkRuleRepetition} from '../util/check-rule-repetition.js'
7
7
  import {checkRule} from '../util/check-rule.js'
8
8
 
9
9
  /**
10
+ * Serialize a thematic break node.
11
+ *
10
12
  * @param {ThematicBreak} _
13
+ * Node to serialize.
11
14
  * @param {Parents | undefined} _1
15
+ * Parent node.
12
16
  * @param {State} state
17
+ * Info passed around.
13
18
  * @returns {string}
19
+ * Serialized markdown.
14
20
  */
15
21
  export function thematicBreak(_, _1, state) {
16
22
  const value = (
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAmBA;;;;;;;;;GASG;AACH,iCAPW,KAAK,YAEL,OAAO,GAAG,IAAI,GAAG,SAAS,GAExB,MAAM,CAoElB;2BA5FuB,OAAO;6BAD0B,wBAAwB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAoBA;;;;;;;;;GASG;AACH,iCAPW,KAAK,YAEL,OAAO,GAAG,IAAI,GAAG,SAAS,GAExB,MAAM,CA6ElB;2BAtGuB,OAAO;6BAD0B,wBAAwB"}
@@ -4,6 +4,7 @@
4
4
  * @import {Enter, FlowParents, PhrasingParents, TrackFields} from './types.js'
5
5
  */
6
6
 
7
+ import {phrasing} from 'mdast-util-phrasing'
7
8
  import {zwitch} from 'zwitch'
8
9
  import {configure} from './configure.js'
9
10
  import {handle as handlers} from './handle/index.js'
@@ -32,6 +33,8 @@ export function toMarkdown(tree, options) {
32
33
  /** @type {State} */
33
34
  const state = {
34
35
  associationId: association,
36
+ bulletCurrent: undefined,
37
+ bulletLastUsed: undefined,
35
38
  containerPhrasing: containerPhrasingBound,
36
39
  containerFlow: containerFlowBound,
37
40
  createTracker: track,
@@ -63,12 +66,12 @@ export function toMarkdown(tree, options) {
63
66
  handlers: state.handlers
64
67
  })
65
68
 
66
- let result = state.handle(tree, undefined, state, {
67
- before: '\n',
68
- after: '\n',
69
- now: {line: 1, column: 1},
70
- lineShift: 0
71
- })
69
+ let result = state.handle(
70
+ phrasing(tree) ? {type: 'root', children: [tree]} : tree,
71
+ undefined,
72
+ state,
73
+ {before: '\n', after: '\n', now: {line: 1, column: 1}, lineShift: 0}
74
+ )
72
75
 
73
76
  if (
74
77
  result &&
@@ -80,13 +83,20 @@ export function toMarkdown(tree, options) {
80
83
 
81
84
  return result
82
85
 
83
- /** @type {Enter} */
86
+ /**
87
+ * Enter a construct.
88
+ *
89
+ * @type {Enter}
90
+ */
84
91
  function enter(name) {
85
92
  state.stack.push(name)
86
93
  return exit
87
94
 
88
95
  /**
96
+ * Exit a construct.
97
+ *
89
98
  * @returns {undefined}
99
+ * Nothing.
90
100
  */
91
101
  function exit() {
92
102
  state.stack.pop()
@@ -95,16 +105,28 @@ export function toMarkdown(tree, options) {
95
105
  }
96
106
 
97
107
  /**
108
+ * Handle an invalid value that cannot be processed.
109
+ *
98
110
  * @param {unknown} value
111
+ * Value.
99
112
  * @returns {never}
113
+ * Never.
114
+ * @throws {Error}
115
+ * Always.
100
116
  */
101
117
  function invalid(value) {
102
118
  throw new Error('Cannot handle value `' + value + '`, expected node')
103
119
  }
104
120
 
105
121
  /**
122
+ * Handle an unknown node.
123
+ *
106
124
  * @param {unknown} value
125
+ * Value.
107
126
  * @returns {never}
127
+ * Never.
128
+ * @throws {Error}
129
+ * Always.
108
130
  */
109
131
  function unknown(value) {
110
132
  // Always a node.
@@ -112,7 +134,11 @@ function unknown(value) {
112
134
  throw new Error('Cannot handle unknown node `' + node.type + '`')
113
135
  }
114
136
 
115
- /** @type {Join} */
137
+ /**
138
+ * Join function for `tightDefinitions` option.
139
+ *
140
+ * @type {Join}
141
+ */
116
142
  function joinDefinition(left, right) {
117
143
  // No blank line between adjacent definitions.
118
144
  if (left.type === 'definition' && left.type === right.type) {
@@ -1 +1 @@
1
- {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["join.js"],"names":[],"mappings":"AAOA,0BAA0B;AAC1B,mBADW,KAAK,CAAC,IAAI,CAAC,CACY;0BAPX,wBAAwB"}
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["join.js"],"names":[],"mappings":"AAQA,0BAA0B;AAC1B,mBADW,KAAK,CAAC,IAAI,CAAC,CACY;0BARX,wBAAwB"}
@@ -4,11 +4,16 @@
4
4
 
5
5
  import {formatCodeAsIndented} from './util/format-code-as-indented.js'
6
6
  import {formatHeadingAsSetext} from './util/format-heading-as-setext.js'
7
+ import {htmlKind} from './util/html-kind.js'
7
8
 
8
9
  /** @type {Array<Join>} */
9
10
  export const join = [joinDefaults]
10
11
 
11
- /** @type {Join} */
12
+ /**
13
+ * Default join function.
14
+ *
15
+ * @type {Join}
16
+ */
12
17
  function joinDefaults(left, right, parent, state) {
13
18
  // Indented code after list or another indented code.
14
19
  if (
@@ -34,6 +39,18 @@ function joinDefaults(left, right, parent, state) {
34
39
  return
35
40
  }
36
41
 
42
+ // HTML that only ends at a blank line followed by something.
43
+ if (left.type === 'html') {
44
+ const kind = htmlKind(left.value)
45
+ if (kind === undefined || kind === 6 || kind === 7) return 1
46
+ }
47
+
48
+ // HTML that cannot interrupt a paragraph (kind 7) after one.
49
+ if (left.type === 'paragraph' && right.type === 'html') {
50
+ const kind = htmlKind(right.value)
51
+ if (kind === undefined || kind === 7) return 1
52
+ }
53
+
37
54
  return parent.spread ? 1 : 0
38
55
  }
39
56
  }
@@ -392,22 +392,6 @@ export type ContainerPhrasing = (parent: PhrasingParents, info: Info) => string
392
392
  */
393
393
  export type CreateTracker = (info: TrackFields) => Tracker
394
394
 
395
- /**
396
- * Whether to encode things — with fields representing the surrounding of a
397
- * whole.
398
- */
399
- export interface EncodeSurrounding {
400
- /**
401
- * Whether to encode after.
402
- */
403
- after: boolean
404
-
405
- /**
406
- * Whether to encode before.
407
- */
408
- before: boolean
409
- }
410
-
411
395
  /**
412
396
  * Whether to encode things — with fields representing the relationship to a
413
397
  * whole.
@@ -482,12 +466,54 @@ export type Handlers = Record<Nodes['type'], Handle>
482
466
  * Serialized markdown representing `node`.
483
467
  */
484
468
  export type Handle = (
469
+ // type-coverage:ignore-next-line
485
470
  node: any,
486
471
  parent: Parents | undefined,
487
472
  state: State,
488
473
  Info: Info
489
474
  ) => string
490
475
 
476
+ /**
477
+ * Serialize a node as attention (emphasis, strong, strikethrough).
478
+ *
479
+ * Set as the `attention` field of a handler (`handle.attention = x`).
480
+ * This switches to a different algorithm,
481
+ * where attention is properly handled by `containerPhrasing`.
482
+ *
483
+ * @param node
484
+ * Expected mdast node.
485
+ * @param state
486
+ * Info passed around about the current state.
487
+ * @returns
488
+ * Info on how to serialize `node`.
489
+ */
490
+ export type Attention = (
491
+ // type-coverage:ignore-next-line
492
+ node: any,
493
+ state: State
494
+ ) => AttentionInfo
495
+
496
+ /**
497
+ * Info on how to serialize attention.
498
+ */
499
+ export interface AttentionInfo {
500
+ /**
501
+ * Construct to enter (such as `'emphasis'`).
502
+ */
503
+ construct: ConstructName
504
+ /**
505
+ * Markers that can be used in order of preference (such as `['*', '_']`);
506
+ * one or more strings, each just one ASCII punctuation character.
507
+ */
508
+ markers: Array<string>
509
+ /**
510
+ * Sizes of sequences that can be used in order of preference (such as `[2]`
511
+ * for strong or `[2, 1]` for GFM strikethrough);
512
+ * one or more numbers, each a positive integer.
513
+ */
514
+ sizes: Array<number>
515
+ }
516
+
491
517
  /**
492
518
  * Pad serialized markdown.
493
519
  *
@@ -610,7 +636,10 @@ export interface Options {
610
636
  */
611
637
  closeAtx?: boolean | null | undefined
612
638
  /**
613
- * Marker to use for emphasis (default: `'*'`).
639
+ * Preferred marker to use for emphasis (default: `'*'`).
640
+ *
641
+ * The other marker is sometimes used, to form for example emphasis next to
642
+ * or inside of other emphasis (`*a*_b_`).
614
643
  */
615
644
  emphasis?: '*' | '_' | null | undefined
616
645
  /**
@@ -687,7 +716,10 @@ export interface Options {
687
716
  */
688
717
  setext?: boolean | null | undefined
689
718
  /**
690
- * Marker to use for strong (default: `'*'`).
719
+ * Preferred marker to use for strong (default: `'*'`).
720
+ *
721
+ * The other marker is sometimes used, to form for example strong next to or
722
+ * inside of other strong (`**a**__b__`).
691
723
  */
692
724
  strong?: '*' | '_' | null | undefined
693
725
  /**
@@ -786,18 +818,6 @@ export interface State {
786
818
  * Get an identifier from an association to match it to others.
787
819
  */
788
820
  associationId: AssociationId
789
- /**
790
- * Info on whether to encode the surrounding of *attention*.
791
- *
792
- * Whether attention (emphasis, strong, strikethrough) forms
793
- * depends on the characters inside and outside them.
794
- * The characters inside can be handled by *attention* itself.
795
- * However the outside characters are already handled.
796
- * Or handled afterwards.
797
- * This field can be used to signal from *attention* that some parent
798
- * function (practically `containerPhrasing`) has to handle the surrounding.
799
- */
800
- attentionEncodeSurroundingInfo: EncodeSurrounding | undefined
801
821
  /**
802
822
  * List marker currently in use.
803
823
  */
@@ -1 +1 @@
1
- {"version":3,"file":"unsafe.d.ts","sourceRoot":"","sources":["unsafe.js"],"names":[],"mappings":"AAqBA,4BAA4B;AAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CA4HvB;4BAhJuC,wBAAwB"}
1
+ {"version":3,"file":"unsafe.d.ts","sourceRoot":"","sources":["unsafe.js"],"names":[],"mappings":"AAqBA,4BAA4B;AAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CAmIvB;4BAvJuC,wBAAwB"}
@@ -49,6 +49,10 @@ export const unsafe = [
49
49
  'headingAtx'
50
50
  ]
51
51
  },
52
+ {character: '\r', before: '[\\r\\n]', inConstruct: 'phrasing'},
53
+ {character: '\r', after: '\\r', inConstruct: 'phrasing'},
54
+ {character: '\n', before: '\\n', inConstruct: 'phrasing'},
55
+ {character: '\n', after: '[\\r\\n]', inConstruct: 'phrasing'},
52
56
  {character: ' ', after: '[\\r\\n]', inConstruct: 'phrasing'},
53
57
  {character: ' ', before: '[\\r\\n]', inConstruct: 'phrasing'},
54
58
  {
@@ -142,5 +146,15 @@ export const unsafe = [
142
146
  // Left brace, vertical bar, right brace are not used in markdown for
143
147
  // constructs.
144
148
  // A tilde can start code (fenced).
145
- {atBreak: true, character: '~'}
149
+ {atBreak: true, character: '~'},
150
+ {character: '<', inConstruct: 'autolink'},
151
+ {character: '>', inConstruct: 'autolink'},
152
+ {character: '\u007F', inConstruct: 'autolink'}
146
153
  ]
154
+
155
+ // Also the low ASCII control characters including space.
156
+ let code = -1
157
+
158
+ while (++code < 33) {
159
+ unsafe.push({character: String.fromCharCode(code), inConstruct: 'autolink'})
160
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Get the first character of a value.
3
+ *
4
+ * Is aware of astral characters (such as emoji).
5
+ *
6
+ * @param {string} value
7
+ * Value.
8
+ * @returns {string}
9
+ * First character; empty if `value` is empty.
10
+ */
11
+ export function firstCharacter(value: string): string;
12
+ /**
13
+ * Get the last character of a value.
14
+ *
15
+ * Is aware of astral characters (such as emoji).
16
+ *
17
+ * @param {string} value
18
+ * Value.
19
+ * @returns {string}
20
+ * Last character; empty if `value` is empty.
21
+ */
22
+ export function lastCharacter(value: string): string;
23
+ //# sourceMappingURL=character.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"character.d.ts","sourceRoot":"","sources":["character.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,sCALW,MAAM,GAEJ,MAAM,CAMlB;AAED;;;;;;;;;GASG;AACH,qCALW,MAAM,GAEJ,MAAM,CASlB"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Get the first character of a value.
3
+ *
4
+ * Is aware of astral characters (such as emoji).
5
+ *
6
+ * @param {string} value
7
+ * Value.
8
+ * @returns {string}
9
+ * First character; empty if `value` is empty.
10
+ */
11
+ export function firstCharacter(value) {
12
+ const code = value.codePointAt(0)
13
+ return code === undefined ? '' : String.fromCodePoint(code)
14
+ }
15
+
16
+ /**
17
+ * Get the last character of a value.
18
+ *
19
+ * Is aware of astral characters (such as emoji).
20
+ *
21
+ * @param {string} value
22
+ * Value.
23
+ * @returns {string}
24
+ * Last character; empty if `value` is empty.
25
+ */
26
+ export function lastCharacter(value) {
27
+ // Only a surrogate pair gives a code point above the BMP.
28
+ const code = value.codePointAt(value.length - 2)
29
+ return code !== undefined && code > 0xff_ff
30
+ ? value.slice(-2)
31
+ : value.slice(-1)
32
+ }
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred ordered list bullet option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['bulletOrdered'], null | undefined>}
10
+ * Preferred ordered list bullet.
7
11
  */
8
12
  export function checkBulletOrdered(state: State): Exclude<Options["bulletOrdered"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-bullet-ordered.d.ts","sourceRoot":"","sources":["check-bullet-ordered.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,0CAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAc/D;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-bullet-ordered.d.ts","sourceRoot":"","sources":["check-bullet-ordered.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,0CALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAe/D;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred ordered list bullet option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['bulletOrdered'], null | undefined>}
11
+ * Preferred ordered list bullet.
8
12
  */
9
13
  export function checkBulletOrdered(state) {
10
14
  const marker = state.options.bulletOrdered || '.'