@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
@@ -8,16 +8,22 @@ import {formatCodeAsIndented} from '../util/format-code-as-indented.js'
8
8
  import {checkFence} from '../util/check-fence.js'
9
9
 
10
10
  /**
11
+ * Serialize a code node.
12
+ *
11
13
  * @param {Code} node
14
+ * Node to serialize.
12
15
  * @param {Parents | undefined} _
16
+ * Parent node.
13
17
  * @param {State} state
18
+ * Info passed around.
14
19
  * @param {Info} info
20
+ * Info on surrounding context.
15
21
  * @returns {string}
22
+ * Serialized markdown.
16
23
  */
17
24
  export function code(node, _, state, info) {
18
25
  const marker = checkFence(state)
19
26
  const raw = node.value || ''
20
- const suffix = marker === '`' ? 'GraveAccent' : 'Tilde'
21
27
 
22
28
  if (formatCodeAsIndented(node, state)) {
23
29
  const exit = state.enter('codeIndented')
@@ -29,6 +35,7 @@ export function code(node, _, state, info) {
29
35
  const tracker = state.createTracker(info)
30
36
  const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3))
31
37
  const exit = state.enter('codeFenced')
38
+ const suffix = marker === '`' ? 'GraveAccent' : 'Tilde'
32
39
  let value = tracker.move(sequence)
33
40
 
34
41
  if (node.lang) {
@@ -69,7 +76,11 @@ export function code(node, _, state, info) {
69
76
  return value
70
77
  }
71
78
 
72
- /** @type {Map} */
79
+ /**
80
+ * Indent lines w/ code indent.
81
+ *
82
+ * @type {Map}
83
+ */
73
84
  function map(line, _, blank) {
74
85
  return (blank ? '' : ' ') + line
75
86
  }
@@ -1,9 +1,16 @@
1
1
  /**
2
+ * Serialize a definition node.
3
+ *
2
4
  * @param {Definition} node
5
+ * Node to serialize.
3
6
  * @param {Parents | undefined} _
7
+ * Parent node.
4
8
  * @param {State} state
9
+ * Info passed around.
5
10
  * @param {Info} info
11
+ * Info on surrounding context.
6
12
  * @returns {string}
13
+ * Serialized markdown.
7
14
  */
8
15
  export function definition(node: Definition, _: Parents | undefined, state: State, info: Info): string;
9
16
  import type { Definition } from 'mdast';
@@ -1 +1 @@
1
- {"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["definition.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,iCANW,UAAU,KACV,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA+DlB;gCAzEqC,OAAO;6BAAP,OAAO;2BADf,wBAAwB;0BAAxB,wBAAwB"}
1
+ {"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["definition.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,iCAXW,UAAU,KAEV,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAgElB;gCAhFqC,OAAO;6BAAP,OAAO;2BADf,wBAAwB;0BAAxB,wBAAwB"}
@@ -6,11 +6,18 @@
6
6
  import {checkQuote} from '../util/check-quote.js'
7
7
 
8
8
  /**
9
+ * Serialize a definition node.
10
+ *
9
11
  * @param {Definition} 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 definition(node, _, state, info) {
16
23
  const quote = checkQuote(state)
@@ -1,24 +1,52 @@
1
1
  /**
2
+ * Serialize an emphasis node.
3
+ *
4
+ * Attention is properly handled by `containerPhrasing`.
5
+ *
2
6
  * @param {Emphasis} 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 emphasis(node: Emphasis, _: Parents | undefined, state: State, info: Info): string;
9
18
  export namespace emphasis {
10
- export { emphasisPeek as peek };
19
+ export { attention };
20
+ export { peek };
11
21
  }
12
22
  import type { Emphasis } 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 an emphasis node as attention.
28
+ *
17
29
  * @param {Emphasis} _
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(_: Emphasis, state: State): AttentionInfo;
37
+ /**
38
+ * Peek at this node.
39
+ *
40
+ * @param {Emphasis} _
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 emphasisPeek(_: Emphasis, _1: Parents | undefined, state: State): string;
49
+ declare function peek(_: Emphasis, _1: Parents | undefined, state: State): string;
50
+ import type { AttentionInfo } from 'mdast-util-to-markdown';
23
51
  export {};
24
52
  //# sourceMappingURL=emphasis.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emphasis.d.ts","sourceRoot":"","sources":["emphasis.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,+BANW,QAAQ,KACR,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA0ClB;;;;8BAxDmC,OAAO;6BAAP,OAAO;2BADb,wBAAwB;0BAAxB,wBAAwB;AA2DtD;;;;;GAKG;AACH,iCALW,QAAQ,MACR,OAAO,GAAG,SAAS,SACnB,KAAK,GACH,MAAM,CAIlB"}
1
+ {"version":3,"file":"emphasis.d.ts","sourceRoot":"","sources":["emphasis.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;GAeG;AACH,+BAXW,QAAQ,KAER,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAQlB;;;;;8BA7BmC,OAAO;6BAAP,OAAO;2BADE,wBAAwB;0BAAxB,wBAAwB;AAgCrE;;;;;;;;;GASG;AACH,8BAPW,QAAQ,SAER,KAAK,GAEH,aAAa,CAUzB;AAED;;;;;;;;;;;GAWG;AACH,yBATW,QAAQ,MAER,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 {Emphasis, Parents} from 'mdast'
4
4
  */
5
5
 
6
6
  import {checkEmphasis} from '../util/check-emphasis.js'
7
- import {encodeCharacterReference} from '../util/encode-character-reference.js'
8
- import {encodeInfo} from '../util/encode-info.js'
9
7
 
10
- emphasis.peek = emphasisPeek
8
+ emphasis.attention = attention
9
+ emphasis.peek = peek
11
10
 
12
11
  /**
12
+ * Serialize an emphasis node.
13
+ *
14
+ * Attention is properly handled by `containerPhrasing`.
15
+ *
13
16
  * @param {Emphasis} 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 emphasis(node, _, state, info) {
20
- const marker = checkEmphasis(state)
21
- const exit = state.enter('emphasis')
22
- const tracker = state.createTracker(info)
23
- const before = tracker.move(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)
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 an emphasis node as attention.
36
+ *
37
+ * @param {Emphasis} _
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 = checkEmphasis(state)
46
+ return {
47
+ construct: 'emphasis',
48
+ markers: marker === '*' ? ['*', '_'] : ['_', '*'],
49
+ sizes: [1]
57
50
  }
58
- return before + between + after
59
51
  }
60
52
 
61
53
  /**
54
+ * Peek at this node.
55
+ *
62
56
  * @param {Emphasis} _
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 emphasisPeek(_, _1, state) {
65
+ function peek(_, _1, state) {
68
66
  return state.options.emphasis || '*'
69
67
  }
@@ -1,9 +1,16 @@
1
1
  /**
2
+ * Serialize a heading node.
3
+ *
2
4
  * @param {Heading} node
5
+ * Node to serialize.
3
6
  * @param {Parents | undefined} _
7
+ * Parent node.
4
8
  * @param {State} state
9
+ * Info passed around.
5
10
  * @param {Info} info
11
+ * Info on surrounding context.
6
12
  * @returns {string}
13
+ * Serialized markdown.
7
14
  */
8
15
  export function heading(node: Heading, _: Parents | undefined, state: State, info: Info): string;
9
16
  import type { Heading } from 'mdast';
@@ -1 +1 @@
1
- {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["heading.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,8BANW,OAAO,KACP,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA6DlB;6BAxEkC,OAAO;6BAAP,OAAO;2BADZ,wBAAwB;0BAAxB,wBAAwB"}
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["heading.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AACH,8BAXW,OAAO,KAEP,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAgElB;6BAjFkC,OAAO;6BAAP,OAAO;2BADZ,wBAAwB;0BAAxB,wBAAwB"}
@@ -7,11 +7,18 @@ import {encodeCharacterReference} from '../util/encode-character-reference.js'
7
7
  import {formatHeadingAsSetext} from '../util/format-heading-as-setext.js'
8
8
 
9
9
  /**
10
+ * Serialize a heading node.
11
+ *
10
12
  * @param {Heading} node
13
+ * Node to serialize.
11
14
  * @param {Parents | undefined} _
15
+ * Parent node.
12
16
  * @param {State} state
17
+ * Info passed around.
13
18
  * @param {Info} info
19
+ * Info on surrounding context.
14
20
  * @returns {string}
21
+ * Serialized markdown.
15
22
  */
16
23
  export function heading(node, _, state, info) {
17
24
  const rank = Math.max(Math.min(6, node.depth || 1), 1)
@@ -57,9 +64,11 @@ export function heading(node, _, state, info) {
57
64
  ...tracker.current()
58
65
  })
59
66
 
60
- if (/^[\t ]/.test(value)) {
67
+ const head = value.charCodeAt(0)
68
+
69
+ if (head === 9 /* `\t` */ || head === 32 /* ` ` */) {
61
70
  // To do: what effect has the character reference on tracking?
62
- value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1)
71
+ value = encodeCharacterReference(head) + value.slice(1)
63
72
  }
64
73
 
65
74
  value = value ? sequence + ' ' + value : sequence
@@ -1,6 +1,10 @@
1
1
  /**
2
+ * Serialize an HTML node.
3
+ *
2
4
  * @param {Html} node
5
+ * Node to serialize.
3
6
  * @returns {string}
7
+ * Serialized markdown.
4
8
  */
5
9
  export function html(node: Html): string;
6
10
  export namespace html {
@@ -8,7 +12,10 @@ export namespace html {
8
12
  }
9
13
  import type { Html } from 'mdast';
10
14
  /**
15
+ * Peek at this node.
16
+ *
11
17
  * @returns {string}
18
+ * Start of the serialized markdown.
12
19
  */
13
20
  declare function htmlPeek(): string;
14
21
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["html.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH,2BAHW,IAAI,GACF,MAAM,CAIlB;;;;0BAXsB,OAAO;AAa9B;;GAEG;AACH,6BAFa,MAAM,CAIlB"}
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["html.js"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,2BALW,IAAI,GAEF,MAAM,CAKlB;;;;0BAfsB,OAAO;AAiB9B;;;;;GAKG;AACH,6BAHa,MAAM,CAKlB"}
@@ -5,15 +5,22 @@
5
5
  html.peek = htmlPeek
6
6
 
7
7
  /**
8
+ * Serialize an HTML node.
9
+ *
8
10
  * @param {Html} node
11
+ * Node to serialize.
9
12
  * @returns {string}
13
+ * Serialized markdown.
10
14
  */
11
15
  export function html(node) {
12
16
  return node.value || ''
13
17
  }
14
18
 
15
19
  /**
20
+ * Peek at this node.
21
+ *
16
22
  * @returns {string}
23
+ * Start of the serialized markdown.
17
24
  */
18
25
  function htmlPeek() {
19
26
  return '<'
@@ -1,9 +1,16 @@
1
1
  /**
2
+ * Serialize an image reference node.
3
+ *
2
4
  * @param {ImageReference} node
5
+ * Node to serialize.
3
6
  * @param {Parents | undefined} _
7
+ * Parent node.
4
8
  * @param {State} state
9
+ * Info passed around.
5
10
  * @param {Info} info
11
+ * Info on surrounding context.
6
12
  * @returns {string}
13
+ * Serialized markdown.
7
14
  */
8
15
  export function imageReference(node: ImageReference, _: Parents | undefined, state: State, info: Info): string;
9
16
  export namespace imageReference {
@@ -14,7 +21,10 @@ import type { Parents } from 'mdast';
14
21
  import type { State } from 'mdast-util-to-markdown';
15
22
  import type { Info } from 'mdast-util-to-markdown';
16
23
  /**
24
+ * Peek at this node.
25
+ *
17
26
  * @returns {string}
27
+ * Start of the serialized markdown.
18
28
  */
19
29
  declare function imageReferencePeek(): string;
20
30
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"image-reference.d.ts","sourceRoot":"","sources":["image-reference.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,qCANW,cAAc,KACd,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA2ClB;;;;oCArDyC,OAAO;6BAAP,OAAO;2BADnB,wBAAwB;0BAAxB,wBAAwB;AAwDtD;;GAEG;AACH,uCAFa,MAAM,CAIlB"}
1
+ {"version":3,"file":"image-reference.d.ts","sourceRoot":"","sources":["image-reference.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,qCAXW,cAAc,KAEd,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAiDlB;;;;oCAjEyC,OAAO;6BAAP,OAAO;2BADnB,wBAAwB;0BAAxB,wBAAwB;AAoEtD;;;;;GAKG;AACH,uCAHa,MAAM,CAKlB"}
@@ -6,11 +6,18 @@
6
6
  imageReference.peek = imageReferencePeek
7
7
 
8
8
  /**
9
+ * Serialize an image reference node.
10
+ *
9
11
  * @param {ImageReference} 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 imageReference(node, _, state, info) {
16
23
  const type = node.referenceType
@@ -26,9 +33,14 @@ export function imageReference(node, _, state, info) {
26
33
  value += tracker.move(alt + '][')
27
34
 
28
35
  subexit()
29
- // Hide the fact that we’re in phrasing, because escapes don’t work.
36
+ // Hide that we’re in phrasing as things like attention or code cannot form
37
+ // in references.
38
+ // Character escapes and references *do* work.
39
+ // It is important to know about other constructs, such as table cells.
30
40
  const stack = state.stack
31
- state.stack = []
41
+ state.stack = stack.filter(function (d) {
42
+ return d !== 'phrasing'
43
+ })
32
44
  subexit = state.enter('reference')
33
45
  // Note: for proper tracking, we should reset the output positions when we end
34
46
  // up making a `shortcut` reference, because then there is no brace output.
@@ -56,7 +68,10 @@ export function imageReference(node, _, state, info) {
56
68
  }
57
69
 
58
70
  /**
71
+ * Peek at this node.
72
+ *
59
73
  * @returns {string}
74
+ * Start of the serialized markdown.
60
75
  */
61
76
  function imageReferencePeek() {
62
77
  return '!'
@@ -1,9 +1,16 @@
1
1
  /**
2
+ * Serialize an image node.
3
+ *
2
4
  * @param {Image} node
5
+ * Node to serialize.
3
6
  * @param {Parents | undefined} _
7
+ * Parent node.
4
8
  * @param {State} state
9
+ * Info passed around.
5
10
  * @param {Info} info
11
+ * Info on surrounding context.
6
12
  * @returns {string}
13
+ * Serialized markdown.
7
14
  */
8
15
  export function image(node: Image, _: Parents | undefined, state: State, info: Info): string;
9
16
  export namespace image {
@@ -14,7 +21,10 @@ import type { Parents } from 'mdast';
14
21
  import type { State } from 'mdast-util-to-markdown';
15
22
  import type { Info } from 'mdast-util-to-markdown';
16
23
  /**
24
+ * Peek at this node.
25
+ *
17
26
  * @returns {string}
27
+ * Start of the serialized markdown.
18
28
  */
19
29
  declare function imagePeek(): string;
20
30
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["image.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,4BANW,KAAK,KACL,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA4DlB;;;;2BAxEgC,OAAO;6BAAP,OAAO;2BADV,wBAAwB;0BAAxB,wBAAwB;AA2EtD;;GAEG;AACH,8BAFa,MAAM,CAIlB"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["image.js"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,4BAXW,KAAK,KAEL,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CA6DlB;;;;2BA/EgC,OAAO;6BAAP,OAAO;2BADV,wBAAwB;0BAAxB,wBAAwB;AAkFtD;;;;;GAKG;AACH,8BAHa,MAAM,CAKlB"}
@@ -8,11 +8,18 @@ import {checkQuote} from '../util/check-quote.js'
8
8
  image.peek = imagePeek
9
9
 
10
10
  /**
11
+ * Serialize an image node.
12
+ *
11
13
  * @param {Image} node
14
+ * Node to serialize.
12
15
  * @param {Parents | undefined} _
16
+ * Parent node.
13
17
  * @param {State} state
18
+ * Info passed around.
14
19
  * @param {Info} info
20
+ * Info on surrounding context.
15
21
  * @returns {string}
22
+ * Serialized markdown.
16
23
  */
17
24
  export function image(node, _, state, info) {
18
25
  const quote = checkQuote(state)
@@ -75,7 +82,10 @@ export function image(node, _, state, info) {
75
82
  }
76
83
 
77
84
  /**
85
+ * Peek at this node.
86
+ *
78
87
  * @returns {string}
88
+ * Start of the serialized markdown.
79
89
  */
80
90
  function imagePeek() {
81
91
  return '!'
@@ -1,8 +1,14 @@
1
1
  /**
2
+ * Serialize an inline code node.
3
+ *
2
4
  * @param {InlineCode} node
5
+ * Node to serialize.
3
6
  * @param {Parents | undefined} _
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 inlineCode(node: InlineCode, _: Parents | undefined, state: State): string;
8
14
  export namespace inlineCode {
@@ -12,7 +18,10 @@ import type { InlineCode } from 'mdast';
12
18
  import type { Parents } from 'mdast';
13
19
  import type { State } from 'mdast-util-to-markdown';
14
20
  /**
21
+ * Peek at this node.
22
+ *
15
23
  * @returns {string}
24
+ * Start of the serialized markdown.
16
25
  */
17
26
  declare function inlineCodePeek(): string;
18
27
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"inline-code.d.ts","sourceRoot":"","sources":["inline-code.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,iCALW,UAAU,KACV,OAAO,GAAG,SAAS,SACnB,KAAK,GACH,MAAM,CAyDlB;;;;gCAlEqC,OAAO;6BAAP,OAAO;2BADrB,wBAAwB;AAqEhD;;GAEG;AACH,mCAFa,MAAM,CAIlB"}
1
+ {"version":3,"file":"inline-code.d.ts","sourceRoot":"","sources":["inline-code.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;GAWG;AACH,iCATW,UAAU,KAEV,OAAO,GAAG,SAAS,SAEnB,KAAK,GAEH,MAAM,CA2DlB;;;;gCAzEqC,OAAO;6BAAP,OAAO;2BADrB,wBAAwB;AA4EhD;;;;;GAKG;AACH,mCAHa,MAAM,CAKlB"}
@@ -6,10 +6,16 @@
6
6
  inlineCode.peek = inlineCodePeek
7
7
 
8
8
  /**
9
+ * Serialize an inline code node.
10
+ *
9
11
  * @param {InlineCode} node
12
+ * Node to serialize.
10
13
  * @param {Parents | undefined} _
14
+ * Parent node.
11
15
  * @param {State} state
16
+ * Info passed around.
12
17
  * @returns {string}
18
+ * Serialized markdown.
13
19
  */
14
20
  export function inlineCode(node, _, state) {
15
21
  let value = node.value || ''
@@ -26,8 +32,8 @@ export function inlineCode(node, _, state) {
26
32
  // If this is not just spaces or eols (tabs don’t count), and either the
27
33
  // first or last character are a space, eol, or tick, then pad with spaces.
28
34
  if (
29
- /[^ \r\n]/.test(value) &&
30
- ((/^[ \r\n]/.test(value) && /[ \r\n]$/.test(value)) || /^`|`$/.test(value))
35
+ /[^\n\r ]/.test(value) &&
36
+ ((/^[\n\r ]/.test(value) && /[\n\r ]$/.test(value)) || /^`|`$/.test(value))
31
37
  ) {
32
38
  value = ' ' + value + ' '
33
39
  }
@@ -42,14 +48,15 @@ export function inlineCode(node, _, state) {
42
48
  while (++index < state.unsafe.length) {
43
49
  const pattern = state.unsafe[index]
44
50
  const expression = state.compilePattern(pattern)
45
- /** @type {RegExpExecArray | null} */
46
- let match
47
51
 
48
52
  // Only look for `atBreak`s.
49
53
  // Btw: note that `atBreak` patterns will always start the regex at LF or
50
54
  // CR.
51
55
  if (!pattern.atBreak) continue
52
56
 
57
+ /** @type {RegExpExecArray | null} */
58
+ let match
59
+
53
60
  while ((match = expression.exec(value))) {
54
61
  let position = match.index
55
62
 
@@ -69,7 +76,10 @@ export function inlineCode(node, _, state) {
69
76
  }
70
77
 
71
78
  /**
79
+ * Peek at this node.
80
+ *
72
81
  * @returns {string}
82
+ * Start of the serialized markdown.
73
83
  */
74
84
  function inlineCodePeek() {
75
85
  return '`'
@@ -1,9 +1,16 @@
1
1
  /**
2
+ * Serialize a link reference node.
3
+ *
2
4
  * @param {LinkReference} node
5
+ * Node to serialize.
3
6
  * @param {Parents | undefined} _
7
+ * Parent node.
4
8
  * @param {State} state
9
+ * Info passed around.
5
10
  * @param {Info} info
11
+ * Info on surrounding context.
6
12
  * @returns {string}
13
+ * Serialized markdown.
7
14
  */
8
15
  export function linkReference(node: LinkReference, _: Parents | undefined, state: State, info: Info): string;
9
16
  export namespace linkReference {
@@ -14,7 +21,10 @@ import type { Parents } from 'mdast';
14
21
  import type { State } from 'mdast-util-to-markdown';
15
22
  import type { Info } from 'mdast-util-to-markdown';
16
23
  /**
24
+ * Peek at this node.
25
+ *
17
26
  * @returns {string}
27
+ * Start of the serialized markdown.
18
28
  */
19
29
  declare function linkReferencePeek(): string;
20
30
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"link-reference.d.ts","sourceRoot":"","sources":["link-reference.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,oCANW,aAAa,KACb,OAAO,GAAG,SAAS,SACnB,KAAK,QACL,IAAI,GACF,MAAM,CA2ClB;;;;mCArDwC,OAAO;6BAAP,OAAO;2BADlB,wBAAwB;0BAAxB,wBAAwB;AAwDtD;;GAEG;AACH,sCAFa,MAAM,CAIlB"}
1
+ {"version":3,"file":"link-reference.d.ts","sourceRoot":"","sources":["link-reference.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,oCAXW,aAAa,KAEb,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAiDlB;;;;mCAjEwC,OAAO;6BAAP,OAAO;2BADlB,wBAAwB;0BAAxB,wBAAwB;AAoEtD;;;;;GAKG;AACH,sCAHa,MAAM,CAKlB"}