@tickernelz/paperclip-pro-server 2026.927.0 → 2026.927.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +1 -1
- package/dist/routes/issues.d.ts.map +1 -1
- package/dist/routes/issues.js +174 -45
- package/dist/routes/issues.js.map +1 -1
- package/dist/routes/openapi.d.ts.map +1 -1
- package/dist/routes/openapi.js +1 -0
- package/dist/routes/openapi.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/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 -21
- package/ui-dist/assets/{AgentAvatar-RxjiAwO8.js → AgentAvatar-PT82VwmU.js} +1 -1
- package/ui-dist/assets/{AgentIdentity-D4BY0hNL.js → AgentIdentity-MCshmbhZ.js} +1 -1
- package/ui-dist/assets/{Agents.production-gcp98JXS.js → Agents.production-M_NY58co.js} +2 -2
- package/ui-dist/assets/{CompanyActivity.production-CWlPErYS.js → CompanyActivity.production-DYQKd80o.js} +1 -1
- package/ui-dist/assets/{CompanyExport-JunkVVGm.js → CompanyExport-Ch4DvzDC.js} +1 -1
- package/ui-dist/assets/{CompanySkills.production-DvSrjYfs.js → CompanySkills.production-BGOAW-TP.js} +1 -1
- package/ui-dist/assets/{Costs.production-zx6HrqRG.js → Costs.production-AiD1rIrs.js} +1 -1
- package/ui-dist/assets/{EmptyState-DfjPe-d3.js → EmptyState-DPcc0zYh.js} +1 -1
- package/ui-dist/assets/{MarkdownBody-CsD5-bu_.js → MarkdownBody-D0eCfSWN.js} +1 -1
- package/ui-dist/assets/{MarkdownEditor-p2rnT0Be.js → MarkdownEditor-Pip4OXiJ.js} +49 -49
- package/ui-dist/assets/{OrgChart.production-C-wrmuDn.js → OrgChart.production-WmGsXZUQ.js} +1 -1
- package/ui-dist/assets/{PageSkeleton-CFPaR2xk.js → PageSkeleton-DHjTwRT3.js} +1 -1
- package/ui-dist/assets/{RoutineDetail.production-Skb6CK8y.js → RoutineDetail.production-B8ydFpMP.js} +1 -1
- package/ui-dist/assets/{RoutineRunVariablesDialog-BWeOhxiO.js → RoutineRunVariablesDialog-IRX4TLng.js} +1 -1
- package/ui-dist/assets/{Routines.production-TpFNwHyG.js → Routines.production-Bcb1R-Uu.js} +1 -1
- package/ui-dist/assets/{SidebarContext-bqQ25oRc.js → SidebarContext-D01pu4wh.js} +1 -1
- package/ui-dist/assets/{StatusIcon-BJoaLFpW.js → StatusIcon-BuUYMqqU.js} +1 -1
- package/ui-dist/assets/{agents-D79f8ubB.js → agents-BlSzFh-1.js} +1 -1
- package/ui-dist/assets/{badge-Dtq5g7E6.js → badge-Cf7ihb3q.js} +1 -1
- package/ui-dist/assets/{bot-CuAIZ3O7.js → bot-DZDpMzjD.js} +1 -1
- package/ui-dist/assets/{button-BvVFpN4P.js → button-CAPbz11u.js} +1 -1
- package/ui-dist/assets/{card-Dt_3k83X.js → card-dmVcp3AX.js} +1 -1
- package/ui-dist/assets/{check-IIwgETIo.js → check-DDiXDm2i.js} +1 -1
- package/ui-dist/assets/{checkbox-Dt_GoRUY.js → checkbox-CmMbs2PZ.js} +1 -1
- package/ui-dist/assets/{chevron-down-UBZnuvt1.js → chevron-down-F9aZv-V7.js} +1 -1
- package/ui-dist/assets/{chevron-right-B0AHub3v.js → chevron-right-B9JUOr38.js} +1 -1
- package/ui-dist/assets/{clipboard-Bj5QAqRq.js → clipboard-CYJ5Q78m.js} +1 -1
- package/ui-dist/assets/{company-members-DEqvhrMC.js → company-members-BcZm1g8Q.js} +1 -1
- package/ui-dist/assets/createLucideIcon-r3v6fbGz.js +92 -0
- package/ui-dist/assets/{definition-wrbKkF1t.js → definition-Irgr7mY_.js} +1 -1
- package/ui-dist/assets/{dist-FWFKwYyU.js → dist-5v80Jc6A.js} +1 -1
- package/ui-dist/assets/{dist-VxTJitj7.js → dist-D1zgkcBw.js} +1 -1
- package/ui-dist/assets/{environments-CkEnfa1n.js → environments-BVeNFanj.js} +1 -1
- package/ui-dist/assets/{external-link-B35J81lc.js → external-link-0lrOvZWO.js} +1 -1
- package/ui-dist/assets/{file-text-CD47Bznz.js → file-text-C9vgFckt.js} +1 -1
- package/ui-dist/assets/{health-CfAQPRgq.js → health-DeeeogeJ.js} +1 -1
- package/ui-dist/assets/{heartbeats-DLceYe5K.js → heartbeats-CK_aXmx5.js} +1 -1
- package/ui-dist/assets/{index-qzns_tVc.js → index-F2pxxyIV.js} +153 -153
- package/ui-dist/assets/{input-CFI8T_fr.js → input-DpsS9it-.js} +1 -1
- package/ui-dist/assets/{label-JgSsn_gH.js → label-C2ddSDJj.js} +1 -1
- package/ui-dist/assets/{loader-circle-AYbv_YhN.js → loader-circle-BD9wx-lw.js} +1 -1
- package/ui-dist/assets/{mention-chips-DPVE_n2N.js → mention-chips-DXumPrOR.js} +1 -1
- package/ui-dist/assets/{octagon-alert-2PgnRbAG.js → octagon-alert-rGMwyrWA.js} +1 -1
- package/ui-dist/assets/{rotate-ccw-D72kg6zn.js → rotate-ccw-CRAQ3Xng.js} +1 -1
- package/ui-dist/assets/{router-BrCMx2mP.js → router-DyZkoSkG.js} +2 -2
- package/ui-dist/assets/{save-fTBYxOC9.js → save-DUnPDT6R.js} +1 -1
- package/ui-dist/assets/{select-BidMsZcD.js → select-mS22eY6T.js} +1 -1
- package/ui-dist/assets/{sheet-BAx2-UjA.js → sheet-DeCxNmfl.js} +1 -1
- package/ui-dist/assets/{skeleton-CYELISHD.js → skeleton-CKir8TUW.js} +1 -1
- package/ui-dist/assets/{tabs-D5oWPScx.js → tabs-DWRZjksg.js} +1 -1
- package/ui-dist/assets/{triangle-alert-DFzcyeFH.js → triangle-alert-CgJcxSQX.js} +1 -1
- package/ui-dist/assets/{use-adapter-capabilities-aPQHbB6R.js → use-adapter-capabilities-BiWYK4zJ.js} +1 -1
- package/ui-dist/assets/{useHiddenSettings-jRtbaks6.js → useHiddenSettings-2JpxuJV7.js} +1 -1
- package/ui-dist/assets/{zap-B3DNfTNV.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-eTR0JqwS.js +0 -92
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
/[
|
|
30
|
-
((/^[
|
|
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
|
|
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"}
|
|
@@ -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"}
|