@dogsbay/format-openknowledge 0.2.0-beta.154 → 0.2.0-beta.155
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/serialize.js +5 -2
- package/package.json +4 -4
package/dist/serialize.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { walkInline, applyTextFlags, renderLeaf, indent, prefixLines, pickCodeFence, stripHtml, inlineHtmlToMarkdown, headingLevel, headingText, slugifyHeadingText, inlinePlainText, codeSpan, ExportLedger, escapeMarkdownText, isSafeHref, remarkMath, footnoteLabel, mapOutsideCodeSpans, renderAroundGroup, } from "@dogsbay/serialize-core";
|
|
1
|
+
import { walkInline, applyTextFlags, renderLeaf, indent, prefixLines, pickCodeFence, stripHtml, inlineHtmlToMarkdown, headingLevel, headingText, slugifyHeadingText, inlinePlainText, codeSpan, ExportLedger, escapeMarkdownText, isSafeHref, remarkMath, footnoteLabel, mapOutsideCodeSpans, renderAroundGroup, taskMarker, } from "@dogsbay/serialize-core";
|
|
2
2
|
/** GFM alert types OpenKnowledge renders natively (remark-github-alerts). */
|
|
3
3
|
const VARIANT_TO_ALERT = {
|
|
4
4
|
note: "note",
|
|
@@ -560,8 +560,11 @@ function unorderedListToMdx(node, ctx) {
|
|
|
560
560
|
}
|
|
561
561
|
function listItemToMdx(node, ctx) {
|
|
562
562
|
const parts = [];
|
|
563
|
+
const box = taskMarker(node);
|
|
563
564
|
if (node.inline?.length)
|
|
564
|
-
parts.push(inlineToMdx(node.inline, ctx));
|
|
565
|
+
parts.push(box + inlineToMdx(node.inline, ctx));
|
|
566
|
+
else if (box)
|
|
567
|
+
parts.push(box.trimEnd());
|
|
565
568
|
if (node.children)
|
|
566
569
|
parts.push(...node.children.map((c) => nodeToMdx(c, ctx)).filter(Boolean));
|
|
567
570
|
return parts.filter(Boolean).join("\n\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogsbay/format-openknowledge",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.155",
|
|
4
4
|
"description": "OpenKnowledge export for Dogsbay — a corpus that opens cleanly in Inkeep OpenKnowledge (MDX-JSX, Fumadocs vocabulary), via TreeNode[]",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"@types/node": "^25.9.5",
|
|
24
24
|
"typescript": "^5.9.3",
|
|
25
25
|
"vitest": "^4.1.10",
|
|
26
|
-
"@dogsbay/format-dogsbay-md": "0.2.0-beta.
|
|
26
|
+
"@dogsbay/format-dogsbay-md": "0.2.0-beta.155"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@dogsbay/
|
|
31
|
-
"@dogsbay/
|
|
30
|
+
"@dogsbay/serialize-core": "0.2.0-beta.155",
|
|
31
|
+
"@dogsbay/types": "0.2.0-beta.155"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|