@tickernelz/paperclip-pro-server 2026.926.6 → 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 (213) hide show
  1. package/dist/build-info.json +1 -1
  2. package/dist/routes/agents.d.ts.map +1 -1
  3. package/dist/routes/agents.js +3 -2
  4. package/dist/routes/agents.js.map +1 -1
  5. package/dist/routes/issues.d.ts +2 -1
  6. package/dist/routes/issues.d.ts.map +1 -1
  7. package/dist/routes/issues.js +200 -52
  8. package/dist/routes/issues.js.map +1 -1
  9. package/dist/routes/openapi.d.ts.map +1 -1
  10. package/dist/routes/openapi.js +27 -3
  11. package/dist/routes/openapi.js.map +1 -1
  12. package/dist/routes/paperclip-mcp.d.ts.map +1 -1
  13. package/dist/routes/paperclip-mcp.js +4 -15
  14. package/dist/routes/paperclip-mcp.js.map +1 -1
  15. package/dist/services/instance-settings.d.ts.map +1 -1
  16. package/dist/services/instance-settings.js +3 -1
  17. package/dist/services/instance-settings.js.map +1 -1
  18. package/dist/services/teams-catalog.d.ts +1 -0
  19. package/dist/services/teams-catalog.d.ts.map +1 -1
  20. package/dist/services/teams-catalog.js +31 -1
  21. package/dist/services/teams-catalog.js.map +1 -1
  22. package/node_modules/mdast-util-to-markdown/index.d.ts +2 -0
  23. package/node_modules/mdast-util-to-markdown/lib/configure.d.ts +5 -0
  24. package/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -1
  25. package/node_modules/mdast-util-to-markdown/lib/configure.js +19 -0
  26. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +7 -0
  27. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -1
  28. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -1
  29. package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +7 -0
  30. package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -1
  31. package/node_modules/mdast-util-to-markdown/lib/handle/break.js +16 -5
  32. package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +7 -0
  33. package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -1
  34. package/node_modules/mdast-util-to-markdown/lib/handle/code.js +13 -2
  35. package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +7 -0
  36. package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -1
  37. package/node_modules/mdast-util-to-markdown/lib/handle/definition.js +7 -0
  38. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +30 -2
  39. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -1
  40. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +39 -41
  41. package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +7 -0
  42. package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -1
  43. package/node_modules/mdast-util-to-markdown/lib/handle/heading.js +11 -2
  44. package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +7 -0
  45. package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -1
  46. package/node_modules/mdast-util-to-markdown/lib/handle/html.js +7 -0
  47. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +10 -0
  48. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -1
  49. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +17 -2
  50. package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +10 -0
  51. package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -1
  52. package/node_modules/mdast-util-to-markdown/lib/handle/image.js +10 -0
  53. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +9 -0
  54. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -1
  55. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +14 -4
  56. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +10 -0
  57. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -1
  58. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +17 -2
  59. package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +13 -0
  60. package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -1
  61. package/node_modules/mdast-util-to-markdown/lib/handle/link.js +24 -9
  62. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +7 -0
  63. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -1
  64. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +12 -1
  65. package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +7 -0
  66. package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -1
  67. package/node_modules/mdast-util-to-markdown/lib/handle/list.js +7 -0
  68. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +7 -0
  69. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -1
  70. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  71. package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +7 -0
  72. package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -1
  73. package/node_modules/mdast-util-to-markdown/lib/handle/root.js +13 -2
  74. package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +30 -2
  75. package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -1
  76. package/node_modules/mdast-util-to-markdown/lib/handle/strong.js +39 -41
  77. package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +7 -0
  78. package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -1
  79. package/node_modules/mdast-util-to-markdown/lib/handle/text.js +7 -0
  80. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +6 -0
  81. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -1
  82. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +6 -0
  83. package/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -1
  84. package/node_modules/mdast-util-to-markdown/lib/index.js +34 -8
  85. package/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -1
  86. package/node_modules/mdast-util-to-markdown/lib/join.js +18 -1
  87. package/node_modules/mdast-util-to-markdown/lib/types.d.ts +50 -30
  88. package/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -1
  89. package/node_modules/mdast-util-to-markdown/lib/unsafe.js +15 -1
  90. package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
  91. package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
  92. package/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
  93. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +4 -0
  94. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -1
  95. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -0
  96. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +4 -0
  97. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -1
  98. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -0
  99. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +4 -0
  100. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -1
  101. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -0
  102. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +4 -0
  103. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -1
  104. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -0
  105. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +4 -0
  106. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -1
  107. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -0
  108. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +4 -0
  109. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -1
  110. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -0
  111. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +4 -0
  112. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -1
  113. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -0
  114. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +4 -0
  115. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -1
  116. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -0
  117. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +4 -0
  118. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -1
  119. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -0
  120. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +4 -0
  121. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -1
  122. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -0
  123. package/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +3 -1
  124. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +2 -0
  125. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -1
  126. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +9 -0
  127. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +95 -4
  128. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -1
  129. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +636 -57
  130. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +2 -2
  131. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -1
  132. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +1 -1
  133. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +5 -0
  134. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -1
  135. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +12 -7
  136. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +5 -0
  137. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -1
  138. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -2
  139. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +5 -0
  140. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -1
  141. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +20 -15
  142. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
  143. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
  144. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
  145. package/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +5 -0
  146. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +5 -0
  147. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -1
  148. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +11 -0
  149. package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +2 -2
  150. package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -1
  151. package/node_modules/mdast-util-to-markdown/lib/util/safe.js +71 -7
  152. package/node_modules/mdast-util-to-markdown/package.json +13 -57
  153. package/node_modules/mdast-util-to-markdown/readme.md +139 -84
  154. package/package.json +21 -20
  155. package/ui-dist/assets/{AgentAvatar-CnpBTXF0.js → AgentAvatar-PT82VwmU.js} +1 -1
  156. package/ui-dist/assets/{AgentIdentity-CV55DQtR.js → AgentIdentity-MCshmbhZ.js} +1 -1
  157. package/ui-dist/assets/{Agents.production-DVAeGpcj.js → Agents.production-M_NY58co.js} +2 -2
  158. package/ui-dist/assets/{CompanyActivity.production-CfhZMRXj.js → CompanyActivity.production-DYQKd80o.js} +1 -1
  159. package/ui-dist/assets/{CompanyExport-gwDWvzqx.js → CompanyExport-Ch4DvzDC.js} +1 -1
  160. package/ui-dist/assets/{CompanySkills.production-BT_6NNEX.js → CompanySkills.production-BGOAW-TP.js} +1 -1
  161. package/ui-dist/assets/{Costs.production-rBVKz6XI.js → Costs.production-AiD1rIrs.js} +1 -1
  162. package/ui-dist/assets/{EmptyState-DeVTy8IU.js → EmptyState-DPcc0zYh.js} +1 -1
  163. package/ui-dist/assets/{MarkdownBody-Da7yUIDf.js → MarkdownBody-D0eCfSWN.js} +1 -1
  164. package/ui-dist/assets/{MarkdownEditor-7JCtdEaZ.js → MarkdownEditor-Pip4OXiJ.js} +49 -49
  165. package/ui-dist/assets/{OrgChart.production-BUvWpHy6.js → OrgChart.production-WmGsXZUQ.js} +1 -1
  166. package/ui-dist/assets/{PageSkeleton-DRRnaWWU.js → PageSkeleton-DHjTwRT3.js} +1 -1
  167. package/ui-dist/assets/{RoutineDetail.production-DOdpoBuO.js → RoutineDetail.production-B8ydFpMP.js} +1 -1
  168. package/ui-dist/assets/{RoutineRunVariablesDialog-Bj-Q_Ua3.js → RoutineRunVariablesDialog-IRX4TLng.js} +1 -1
  169. package/ui-dist/assets/{Routines.production-DaUtfMFw.js → Routines.production-Bcb1R-Uu.js} +1 -1
  170. package/ui-dist/assets/{SidebarContext-CxjppFTY.js → SidebarContext-D01pu4wh.js} +1 -1
  171. package/ui-dist/assets/{StatusIcon-j05cEqDO.js → StatusIcon-BuUYMqqU.js} +1 -1
  172. package/ui-dist/assets/{agents-ZcIBncVi.js → agents-BlSzFh-1.js} +1 -1
  173. package/ui-dist/assets/{badge-B4sBXDQo.js → badge-Cf7ihb3q.js} +1 -1
  174. package/ui-dist/assets/{bot-CcFVz40n.js → bot-DZDpMzjD.js} +1 -1
  175. package/ui-dist/assets/{button-LkWt40cm.js → button-CAPbz11u.js} +1 -1
  176. package/ui-dist/assets/{card-DbvoJZ3K.js → card-dmVcp3AX.js} +1 -1
  177. package/ui-dist/assets/{check-CgfxcCMv.js → check-DDiXDm2i.js} +1 -1
  178. package/ui-dist/assets/{checkbox-CLAkJpms.js → checkbox-CmMbs2PZ.js} +1 -1
  179. package/ui-dist/assets/{chevron-down-CpKmud_n.js → chevron-down-F9aZv-V7.js} +1 -1
  180. package/ui-dist/assets/{chevron-right-IZydUoW5.js → chevron-right-B9JUOr38.js} +1 -1
  181. package/ui-dist/assets/{clipboard-CjMs5cp9.js → clipboard-CYJ5Q78m.js} +1 -1
  182. package/ui-dist/assets/{company-members-Dyq_pnza.js → company-members-BcZm1g8Q.js} +1 -1
  183. package/ui-dist/assets/createLucideIcon-r3v6fbGz.js +92 -0
  184. package/ui-dist/assets/{definition-6XjQ-LsW.js → definition-Irgr7mY_.js} +1 -1
  185. package/ui-dist/assets/{dist-pDmgIRxg.js → dist-5v80Jc6A.js} +1 -1
  186. package/ui-dist/assets/{dist-Cqh7BG-j.js → dist-D1zgkcBw.js} +1 -1
  187. package/ui-dist/assets/{environments-xbdxVBLT.js → environments-BVeNFanj.js} +1 -1
  188. package/ui-dist/assets/{external-link-BbeUY6zf.js → external-link-0lrOvZWO.js} +1 -1
  189. package/ui-dist/assets/{file-text-BMJQ4LZs.js → file-text-C9vgFckt.js} +1 -1
  190. package/ui-dist/assets/{health-Bj6kLXe5.js → health-DeeeogeJ.js} +1 -1
  191. package/ui-dist/assets/{heartbeats-DFiFf4Zf.js → heartbeats-CK_aXmx5.js} +1 -1
  192. package/ui-dist/assets/{index-Cf2CHzHP.js → index-F2pxxyIV.js} +153 -153
  193. package/ui-dist/assets/{input-a7SggR2b.js → input-DpsS9it-.js} +1 -1
  194. package/ui-dist/assets/{label-Dnc69R1W.js → label-C2ddSDJj.js} +1 -1
  195. package/ui-dist/assets/{loader-circle-Cu72DKdC.js → loader-circle-BD9wx-lw.js} +1 -1
  196. package/ui-dist/assets/{mention-chips-BEaOTvHT.js → mention-chips-DXumPrOR.js} +1 -1
  197. package/ui-dist/assets/{octagon-alert-DfqJ6RjK.js → octagon-alert-rGMwyrWA.js} +1 -1
  198. package/ui-dist/assets/{rotate-ccw-DiFaj3XM.js → rotate-ccw-CRAQ3Xng.js} +1 -1
  199. package/ui-dist/assets/{router-G1KztA90.js → router-DyZkoSkG.js} +2 -2
  200. package/ui-dist/assets/{save-D9PtvKKu.js → save-DUnPDT6R.js} +1 -1
  201. package/ui-dist/assets/{select-DSr2hsz2.js → select-mS22eY6T.js} +1 -1
  202. package/ui-dist/assets/{sheet-H27vJn3G.js → sheet-DeCxNmfl.js} +1 -1
  203. package/ui-dist/assets/{skeleton-CPVPMT4g.js → skeleton-CKir8TUW.js} +1 -1
  204. package/ui-dist/assets/{tabs-D8G3-AL7.js → tabs-DWRZjksg.js} +1 -1
  205. package/ui-dist/assets/{triangle-alert-DiD4Atur.js → triangle-alert-CgJcxSQX.js} +1 -1
  206. package/ui-dist/assets/{use-adapter-capabilities-D_QCYxa2.js → use-adapter-capabilities-BiWYK4zJ.js} +1 -1
  207. package/ui-dist/assets/{useHiddenSettings-vbDpbX0U.js → useHiddenSettings-2JpxuJV7.js} +1 -1
  208. package/ui-dist/assets/{zap-CCqZhqc3.js → zap-P-cXfK28.js} +1 -1
  209. package/ui-dist/index.html +45 -45
  210. package/ui-dist/sw.js +1 -1
  211. package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +0 -7
  212. package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +0 -1
  213. package/ui-dist/assets/createLucideIcon-CZEG6UJ7.js +0 -92
@@ -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 || '.'
@@ -1,6 +1,10 @@
1
1
  /**
2
+ * Checks the preferred alternate list bullet option.
3
+ *
2
4
  * @param {State} state
5
+ * Info passed around.
3
6
  * @returns {Exclude<Options['bullet'], null | undefined>}
7
+ * Preferred alternate list bullet.
4
8
  */
5
9
  export function checkBulletOther(state: State): Exclude<Options["bullet"], null | undefined>;
6
10
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-bullet-other.d.ts","sourceRoot":"","sources":["check-bullet-other.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CA6BxD;2BApCgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-bullet-other.d.ts","sourceRoot":"","sources":["check-bullet-other.js"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,wCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CA8BxD;2BAxCgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -5,8 +5,12 @@
5
5
  import {checkBullet} from './check-bullet.js'
6
6
 
7
7
  /**
8
+ * Checks the preferred alternate list bullet option.
9
+ *
8
10
  * @param {State} state
11
+ * Info passed around.
9
12
  * @returns {Exclude<Options['bullet'], null | undefined>}
13
+ * Preferred alternate list bullet.
10
14
  */
11
15
  export function checkBulletOther(state) {
12
16
  const bullet = checkBullet(state)
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred list bullet option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['bullet'], null | undefined>}
10
+ * Preferred list bullet.
7
11
  */
8
12
  export function checkBullet(state: State): Exclude<Options["bullet"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-bullet.d.ts","sourceRoot":"","sources":["check-bullet.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,mCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcxD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-bullet.d.ts","sourceRoot":"","sources":["check-bullet.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,mCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAexD;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred list bullet option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['bullet'], null | undefined>}
11
+ * Preferred list bullet.
8
12
  */
9
13
  export function checkBullet(state) {
10
14
  const marker = state.options.bullet || '*'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred emphasis option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['emphasis'], null | undefined>}
10
+ * Preferred emphasis marker.
7
11
  */
8
12
  export function checkEmphasis(state: State): Exclude<Options["emphasis"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-emphasis.d.ts","sourceRoot":"","sources":["check-emphasis.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,qCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAc1D;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-emphasis.d.ts","sourceRoot":"","sources":["check-emphasis.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,qCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAe1D;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred emphasis option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['emphasis'], null | undefined>}
11
+ * Preferred emphasis marker.
8
12
  */
9
13
  export function checkEmphasis(state) {
10
14
  const marker = state.options.emphasis || '*'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred fence option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['fence'], null | undefined>}
10
+ * Preferred fence marker.
7
11
  */
8
12
  export function checkFence(state: State): Exclude<Options["fence"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-fence.d.ts","sourceRoot":"","sources":["check-fence.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,kCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcvD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-fence.d.ts","sourceRoot":"","sources":["check-fence.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,kCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAevD;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred fence option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['fence'], null | undefined>}
11
+ * Preferred fence marker.
8
12
  */
9
13
  export function checkFence(state) {
10
14
  const marker = state.options.fence || '`'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred list item indent option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['listItemIndent'], null | undefined>}
10
+ * Preferred list item indent.
7
11
  */
8
12
  export function checkListItemIndent(state: State): Exclude<Options["listItemIndent"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-list-item-indent.d.ts","sourceRoot":"","sources":["check-list-item-indent.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,2CAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAchE;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-list-item-indent.d.ts","sourceRoot":"","sources":["check-list-item-indent.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,2CALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAehE;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred list item indent option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['listItemIndent'], null | undefined>}
11
+ * Preferred list item indent.
8
12
  */
9
13
  export function checkListItemIndent(state) {
10
14
  const style = state.options.listItemIndent || 'one'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred quote option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['quote'], null | undefined>}
10
+ * Preferred quote.
7
11
  */
8
12
  export function checkQuote(state: State): Exclude<Options["quote"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-quote.d.ts","sourceRoot":"","sources":["check-quote.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,kCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcvD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-quote.d.ts","sourceRoot":"","sources":["check-quote.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,kCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAevD;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred quote option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['quote'], null | undefined>}
11
+ * Preferred quote.
8
12
  */
9
13
  export function checkQuote(state) {
10
14
  const marker = state.options.quote || '"'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred rule repetition option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['ruleRepetition'], null | undefined>}
10
+ * Preferred rule repetition.
7
11
  */
8
12
  export function checkRuleRepetition(state: State): Exclude<Options["ruleRepetition"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-rule-repetition.d.ts","sourceRoot":"","sources":["check-rule-repetition.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,2CAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAchE;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-rule-repetition.d.ts","sourceRoot":"","sources":["check-rule-repetition.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,2CALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAehE;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred rule repetition option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['ruleRepetition'], null | undefined>}
11
+ * Preferred rule repetition.
8
12
  */
9
13
  export function checkRuleRepetition(state) {
10
14
  const repetition = state.options.ruleRepetition || 3
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred rule option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['rule'], null | undefined>}
10
+ * Preferred rule marker.
7
11
  */
8
12
  export function checkRule(state: State): Exclude<Options["rule"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-rule.d.ts","sourceRoot":"","sources":["check-rule.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,iCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CActD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-rule.d.ts","sourceRoot":"","sources":["check-rule.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,iCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAetD;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred rule option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['rule'], null | undefined>}
11
+ * Preferred rule marker.
8
12
  */
9
13
  export function checkRule(state) {
10
14
  const marker = state.options.rule || '*'