@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.
- package/dist/build-info.json +1 -1
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/agents.js +3 -2
- package/dist/routes/agents.js.map +1 -1
- package/dist/routes/issues.d.ts +2 -1
- package/dist/routes/issues.d.ts.map +1 -1
- package/dist/routes/issues.js +200 -52
- package/dist/routes/issues.js.map +1 -1
- package/dist/routes/openapi.d.ts.map +1 -1
- package/dist/routes/openapi.js +27 -3
- package/dist/routes/openapi.js.map +1 -1
- package/dist/routes/paperclip-mcp.d.ts.map +1 -1
- package/dist/routes/paperclip-mcp.js +4 -15
- package/dist/routes/paperclip-mcp.js.map +1 -1
- package/dist/services/instance-settings.d.ts.map +1 -1
- package/dist/services/instance-settings.js +3 -1
- package/dist/services/instance-settings.js.map +1 -1
- package/dist/services/teams-catalog.d.ts +1 -0
- package/dist/services/teams-catalog.d.ts.map +1 -1
- package/dist/services/teams-catalog.js +31 -1
- package/dist/services/teams-catalog.js.map +1 -1
- package/node_modules/mdast-util-to-markdown/index.d.ts +2 -0
- package/node_modules/mdast-util-to-markdown/lib/configure.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/configure.js +19 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/break.js +16 -5
- package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/code.js +13 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/definition.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +30 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +39 -41
- package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/heading.js +11 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/html.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +10 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +17 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +10 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/image.js +10 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +9 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +14 -4
- package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +10 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +17 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/link.js +24 -9
- package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +12 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/list.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/root.js +13 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +30 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/strong.js +39 -41
- package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/text.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +6 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +6 -0
- package/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/index.js +34 -8
- package/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/join.js +18 -1
- package/node_modules/mdast-util-to-markdown/lib/types.d.ts +50 -30
- package/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/unsafe.js +15 -1
- package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
- package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +3 -1
- package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +2 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +9 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +95 -4
- package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +636 -57
- package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +2 -2
- package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +12 -7
- package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -2
- package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +20 -15
- package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
- package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
- package/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +2 -2
- package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/safe.js +71 -7
- package/node_modules/mdast-util-to-markdown/package.json +13 -57
- package/node_modules/mdast-util-to-markdown/readme.md +139 -84
- package/package.json +21 -20
- package/ui-dist/assets/{AgentAvatar-CnpBTXF0.js → AgentAvatar-PT82VwmU.js} +1 -1
- package/ui-dist/assets/{AgentIdentity-CV55DQtR.js → AgentIdentity-MCshmbhZ.js} +1 -1
- package/ui-dist/assets/{Agents.production-DVAeGpcj.js → Agents.production-M_NY58co.js} +2 -2
- package/ui-dist/assets/{CompanyActivity.production-CfhZMRXj.js → CompanyActivity.production-DYQKd80o.js} +1 -1
- package/ui-dist/assets/{CompanyExport-gwDWvzqx.js → CompanyExport-Ch4DvzDC.js} +1 -1
- package/ui-dist/assets/{CompanySkills.production-BT_6NNEX.js → CompanySkills.production-BGOAW-TP.js} +1 -1
- package/ui-dist/assets/{Costs.production-rBVKz6XI.js → Costs.production-AiD1rIrs.js} +1 -1
- package/ui-dist/assets/{EmptyState-DeVTy8IU.js → EmptyState-DPcc0zYh.js} +1 -1
- package/ui-dist/assets/{MarkdownBody-Da7yUIDf.js → MarkdownBody-D0eCfSWN.js} +1 -1
- package/ui-dist/assets/{MarkdownEditor-7JCtdEaZ.js → MarkdownEditor-Pip4OXiJ.js} +49 -49
- package/ui-dist/assets/{OrgChart.production-BUvWpHy6.js → OrgChart.production-WmGsXZUQ.js} +1 -1
- package/ui-dist/assets/{PageSkeleton-DRRnaWWU.js → PageSkeleton-DHjTwRT3.js} +1 -1
- package/ui-dist/assets/{RoutineDetail.production-DOdpoBuO.js → RoutineDetail.production-B8ydFpMP.js} +1 -1
- package/ui-dist/assets/{RoutineRunVariablesDialog-Bj-Q_Ua3.js → RoutineRunVariablesDialog-IRX4TLng.js} +1 -1
- package/ui-dist/assets/{Routines.production-DaUtfMFw.js → Routines.production-Bcb1R-Uu.js} +1 -1
- package/ui-dist/assets/{SidebarContext-CxjppFTY.js → SidebarContext-D01pu4wh.js} +1 -1
- package/ui-dist/assets/{StatusIcon-j05cEqDO.js → StatusIcon-BuUYMqqU.js} +1 -1
- package/ui-dist/assets/{agents-ZcIBncVi.js → agents-BlSzFh-1.js} +1 -1
- package/ui-dist/assets/{badge-B4sBXDQo.js → badge-Cf7ihb3q.js} +1 -1
- package/ui-dist/assets/{bot-CcFVz40n.js → bot-DZDpMzjD.js} +1 -1
- package/ui-dist/assets/{button-LkWt40cm.js → button-CAPbz11u.js} +1 -1
- package/ui-dist/assets/{card-DbvoJZ3K.js → card-dmVcp3AX.js} +1 -1
- package/ui-dist/assets/{check-CgfxcCMv.js → check-DDiXDm2i.js} +1 -1
- package/ui-dist/assets/{checkbox-CLAkJpms.js → checkbox-CmMbs2PZ.js} +1 -1
- package/ui-dist/assets/{chevron-down-CpKmud_n.js → chevron-down-F9aZv-V7.js} +1 -1
- package/ui-dist/assets/{chevron-right-IZydUoW5.js → chevron-right-B9JUOr38.js} +1 -1
- package/ui-dist/assets/{clipboard-CjMs5cp9.js → clipboard-CYJ5Q78m.js} +1 -1
- package/ui-dist/assets/{company-members-Dyq_pnza.js → company-members-BcZm1g8Q.js} +1 -1
- package/ui-dist/assets/createLucideIcon-r3v6fbGz.js +92 -0
- package/ui-dist/assets/{definition-6XjQ-LsW.js → definition-Irgr7mY_.js} +1 -1
- package/ui-dist/assets/{dist-pDmgIRxg.js → dist-5v80Jc6A.js} +1 -1
- package/ui-dist/assets/{dist-Cqh7BG-j.js → dist-D1zgkcBw.js} +1 -1
- package/ui-dist/assets/{environments-xbdxVBLT.js → environments-BVeNFanj.js} +1 -1
- package/ui-dist/assets/{external-link-BbeUY6zf.js → external-link-0lrOvZWO.js} +1 -1
- package/ui-dist/assets/{file-text-BMJQ4LZs.js → file-text-C9vgFckt.js} +1 -1
- package/ui-dist/assets/{health-Bj6kLXe5.js → health-DeeeogeJ.js} +1 -1
- package/ui-dist/assets/{heartbeats-DFiFf4Zf.js → heartbeats-CK_aXmx5.js} +1 -1
- package/ui-dist/assets/{index-Cf2CHzHP.js → index-F2pxxyIV.js} +153 -153
- package/ui-dist/assets/{input-a7SggR2b.js → input-DpsS9it-.js} +1 -1
- package/ui-dist/assets/{label-Dnc69R1W.js → label-C2ddSDJj.js} +1 -1
- package/ui-dist/assets/{loader-circle-Cu72DKdC.js → loader-circle-BD9wx-lw.js} +1 -1
- package/ui-dist/assets/{mention-chips-BEaOTvHT.js → mention-chips-DXumPrOR.js} +1 -1
- package/ui-dist/assets/{octagon-alert-DfqJ6RjK.js → octagon-alert-rGMwyrWA.js} +1 -1
- package/ui-dist/assets/{rotate-ccw-DiFaj3XM.js → rotate-ccw-CRAQ3Xng.js} +1 -1
- package/ui-dist/assets/{router-G1KztA90.js → router-DyZkoSkG.js} +2 -2
- package/ui-dist/assets/{save-D9PtvKKu.js → save-DUnPDT6R.js} +1 -1
- package/ui-dist/assets/{select-DSr2hsz2.js → select-mS22eY6T.js} +1 -1
- package/ui-dist/assets/{sheet-H27vJn3G.js → sheet-DeCxNmfl.js} +1 -1
- package/ui-dist/assets/{skeleton-CPVPMT4g.js → skeleton-CKir8TUW.js} +1 -1
- package/ui-dist/assets/{tabs-D8G3-AL7.js → tabs-DWRZjksg.js} +1 -1
- package/ui-dist/assets/{triangle-alert-DiD4Atur.js → triangle-alert-CgJcxSQX.js} +1 -1
- package/ui-dist/assets/{use-adapter-capabilities-D_QCYxa2.js → use-adapter-capabilities-BiWYK4zJ.js} +1 -1
- package/ui-dist/assets/{useHiddenSettings-vbDpbX0U.js → useHiddenSettings-2JpxuJV7.js} +1 -1
- package/ui-dist/assets/{zap-CCqZhqc3.js → zap-P-cXfK28.js} +1 -1
- package/ui-dist/index.html +45 -45
- package/ui-dist/sw.js +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +0 -7
- package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +0 -1
- package/ui-dist/assets/createLucideIcon-CZEG6UJ7.js +0 -92
|
@@ -6,11 +6,18 @@
|
|
|
6
6
|
linkReference.peek = linkReferencePeek
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
+
* Serialize a link reference node.
|
|
10
|
+
*
|
|
9
11
|
* @param {LinkReference} 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 linkReference(node, _, state, info) {
|
|
16
23
|
const type = node.referenceType
|
|
@@ -26,9 +33,14 @@ export function linkReference(node, _, state, info) {
|
|
|
26
33
|
value += tracker.move(text + '][')
|
|
27
34
|
|
|
28
35
|
subexit()
|
|
29
|
-
// Hide
|
|
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 linkReference(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 linkReferencePeek() {
|
|
62
77
|
return '['
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Serialize a link node.
|
|
3
|
+
*
|
|
2
4
|
* @param {Link} 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 link(node: Link, _: Parents | undefined, state: State, info: Info): string;
|
|
9
16
|
export namespace link {
|
|
@@ -14,10 +21,16 @@ 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
|
* @param {Link} node
|
|
27
|
+
* Node to peek at.
|
|
18
28
|
* @param {Parents | undefined} _
|
|
29
|
+
* Parent node.
|
|
19
30
|
* @param {State} state
|
|
31
|
+
* Info passed around.
|
|
20
32
|
* @returns {string}
|
|
33
|
+
* Start of the serialized markdown.
|
|
21
34
|
*/
|
|
22
35
|
declare function linkPeek(node: Link, _: Parents | undefined, state: State): string;
|
|
23
36
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["link.js"],"names":[],"mappings":"AAWA
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["link.js"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;GAaG;AACH,2BAXW,IAAI,KAEJ,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CA0FlB;;;;0BA9G+B,OAAO;6BAAP,OAAO;2BADT,wBAAwB;0BAAxB,wBAAwB;AAiHtD;;;;;;;;;;;GAWG;AACH,gCATW,IAAI,KAEJ,OAAO,GAAG,SAAS,SAEnB,KAAK,GAEH,MAAM,CAKlB"}
|
|
@@ -10,26 +10,35 @@ import {formatLinkAsAutolink} from '../util/format-link-as-autolink.js'
|
|
|
10
10
|
link.peek = linkPeek
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
+
* Serialize a link node.
|
|
14
|
+
*
|
|
13
15
|
* @param {Link} node
|
|
16
|
+
* Node to serialize.
|
|
14
17
|
* @param {Parents | undefined} _
|
|
18
|
+
* Parent node.
|
|
15
19
|
* @param {State} state
|
|
20
|
+
* Info passed around.
|
|
16
21
|
* @param {Info} info
|
|
22
|
+
* Info on surrounding context.
|
|
17
23
|
* @returns {string}
|
|
24
|
+
* Serialized markdown.
|
|
18
25
|
*/
|
|
19
26
|
export function link(node, _, state, info) {
|
|
20
27
|
const quote = checkQuote(state)
|
|
21
28
|
const suffix = quote === '"' ? 'Quote' : 'Apostrophe'
|
|
22
29
|
const tracker = state.createTracker(info)
|
|
23
|
-
/** @type {Exit} */
|
|
24
|
-
let exit
|
|
25
|
-
/** @type {Exit} */
|
|
26
|
-
let subexit
|
|
27
30
|
|
|
28
31
|
if (formatLinkAsAutolink(node, state)) {
|
|
29
|
-
// Hide
|
|
32
|
+
// Hide that we’re in phrasing as things like attention or code cannot form
|
|
33
|
+
// in autolinks.
|
|
34
|
+
// Character escapes also don’t work (nor character references),
|
|
35
|
+
// but that is a different matter, which `safe.js` handles for `autolink`.
|
|
36
|
+
// It is important to know about other constructs, such as table cells.
|
|
30
37
|
const stack = state.stack
|
|
31
|
-
state.stack =
|
|
32
|
-
|
|
38
|
+
state.stack = stack.filter(function (d) {
|
|
39
|
+
return d !== 'phrasing'
|
|
40
|
+
})
|
|
41
|
+
const exit = state.enter('autolink')
|
|
33
42
|
let value = tracker.move('<')
|
|
34
43
|
value += tracker.move(
|
|
35
44
|
state.containerPhrasing(node, {
|
|
@@ -44,8 +53,8 @@ export function link(node, _, state, info) {
|
|
|
44
53
|
return value
|
|
45
54
|
}
|
|
46
55
|
|
|
47
|
-
exit = state.enter('link')
|
|
48
|
-
subexit = state.enter('label')
|
|
56
|
+
const exit = state.enter('link')
|
|
57
|
+
let subexit = state.enter('label')
|
|
49
58
|
let value = tracker.move('[')
|
|
50
59
|
value += tracker.move(
|
|
51
60
|
state.containerPhrasing(node, {
|
|
@@ -104,10 +113,16 @@ export function link(node, _, state, info) {
|
|
|
104
113
|
}
|
|
105
114
|
|
|
106
115
|
/**
|
|
116
|
+
* Peek at this node.
|
|
117
|
+
*
|
|
107
118
|
* @param {Link} node
|
|
119
|
+
* Node to peek at.
|
|
108
120
|
* @param {Parents | undefined} _
|
|
121
|
+
* Parent node.
|
|
109
122
|
* @param {State} state
|
|
123
|
+
* Info passed around.
|
|
110
124
|
* @returns {string}
|
|
125
|
+
* Start of the serialized markdown.
|
|
111
126
|
*/
|
|
112
127
|
function linkPeek(node, _, state) {
|
|
113
128
|
return formatLinkAsAutolink(node, state) ? '<' : '['
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Serialize a list item node.
|
|
3
|
+
*
|
|
2
4
|
* @param {ListItem} node
|
|
5
|
+
* Node to serialize.
|
|
3
6
|
* @param {Parents | undefined} parent
|
|
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 listItem(node: ListItem, parent: Parents | undefined, state: State, info: Info): string;
|
|
9
16
|
import type { ListItem } from 'mdast';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["list-item.js"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["list-item.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AACH,+BAXW,QAAQ,UAER,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAqDlB;8BAtEmC,OAAO;6BAAP,OAAO;2BADR,wBAAwB;0BAAxB,wBAAwB"}
|
|
@@ -7,11 +7,18 @@ import {checkBullet} from '../util/check-bullet.js'
|
|
|
7
7
|
import {checkListItemIndent} from '../util/check-list-item-indent.js'
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
+
* Serialize a list item node.
|
|
11
|
+
*
|
|
10
12
|
* @param {ListItem} node
|
|
13
|
+
* Node to serialize.
|
|
11
14
|
* @param {Parents | undefined} parent
|
|
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 listItem(node, parent, state, info) {
|
|
17
24
|
const listItemIndent = checkListItemIndent(state)
|
|
@@ -51,7 +58,11 @@ export function listItem(node, parent, state, info) {
|
|
|
51
58
|
|
|
52
59
|
return value
|
|
53
60
|
|
|
54
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Indent lines of the list item.
|
|
63
|
+
*
|
|
64
|
+
* @type {Map}
|
|
65
|
+
*/
|
|
55
66
|
function map(line, index, blank) {
|
|
56
67
|
if (index) {
|
|
57
68
|
return (blank ? '' : ' '.repeat(size)) + line
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Serialize a list node.
|
|
3
|
+
*
|
|
2
4
|
* @param {List} node
|
|
5
|
+
* Node to serialize.
|
|
3
6
|
* @param {Parents | undefined} parent
|
|
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 list(node: List, parent: Parents | undefined, state: State, info: Info): string;
|
|
9
16
|
import type { List } from 'mdast';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.js"],"names":[],"mappings":"AAUA
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;GAaG;AACH,2BAXW,IAAI,UAEJ,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAqFlB;0BAxG+B,OAAO;6BAAP,OAAO;2BADT,wBAAwB;0BAAxB,wBAAwB"}
|
|
@@ -9,11 +9,18 @@ import {checkBulletOrdered} from '../util/check-bullet-ordered.js'
|
|
|
9
9
|
import {checkRule} from '../util/check-rule.js'
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
+
* Serialize a list node.
|
|
13
|
+
*
|
|
12
14
|
* @param {List} node
|
|
15
|
+
* Node to serialize.
|
|
13
16
|
* @param {Parents | undefined} parent
|
|
17
|
+
* Parent node.
|
|
14
18
|
* @param {State} state
|
|
19
|
+
* Info passed around.
|
|
15
20
|
* @param {Info} info
|
|
21
|
+
* Info on surrounding context.
|
|
16
22
|
* @returns {string}
|
|
23
|
+
* Serialized markdown.
|
|
17
24
|
*/
|
|
18
25
|
export function list(node, parent, state, info) {
|
|
19
26
|
const exit = state.enter('list')
|
|
@@ -3,11 +3,18 @@
|
|
|
3
3
|
* @import {Paragraph, Parents} from 'mdast'
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
+
* Serialize a paragraph node.
|
|
7
|
+
*
|
|
6
8
|
* @param {Paragraph} 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 paragraph(node: Paragraph, _: Parents | undefined, state: State, info: Info): string;
|
|
13
20
|
import type { Paragraph } from 'mdast';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["paragraph.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["paragraph.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AACH,gCAXW,SAAS,KAET,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAUlB;+BAxBoC,OAAO;6BAAP,OAAO;2BADd,wBAAwB;0BAAxB,wBAAwB"}
|
|
@@ -4,11 +4,18 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* Serialize a paragraph node.
|
|
8
|
+
*
|
|
7
9
|
* @param {Paragraph} 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 paragraph(node, _, state, info) {
|
|
14
21
|
const exit = state.enter('paragraph')
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Serialize a root node.
|
|
3
|
+
*
|
|
2
4
|
* @param {Root} 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 root(node: Root, _: Parents | undefined, state: State, info: Info): string;
|
|
9
16
|
import type { Root } from 'mdast';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["root.js"],"names":[],"mappings":"AAOA
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["root.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,2BAXW,IAAI,KAEJ,OAAO,GAAG,SAAS,SAEnB,KAAK,QAEL,IAAI,GAEF,MAAM,CAelB;0BA/B+B,OAAO;6BAAP,OAAO;2BADT,wBAAwB;0BAAxB,wBAAwB"}
|
|
@@ -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
|
-
|
|
22
|
-
|
|
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 {
|
|
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
|
|
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":"
|
|
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.
|
|
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
|
|
21
|
-
const
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
|
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
|
|
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
|
|
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":"
|
|
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"}
|