@takazudo/zudo-doc 5.26.1 → 5.26.2
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/CHANGELOG.md +6 -0
- package/dist/home-intro/prepare.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ The format is based on Keep a Changelog, and release notes are generated from th
|
|
|
8
8
|
|
|
9
9
|
No unreleased changes.
|
|
10
10
|
|
|
11
|
+
## [5.26.2] - 2026-09-20
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- Homepage introductions now accept ordinary inline colon tokens such as `09:30`, `3:1`, and `word:word` without escaping. Actual directives and other unsupported Markdown constructs remain rejected. (1106bd884)
|
|
16
|
+
|
|
11
17
|
## [5.26.1] - 2026-09-20
|
|
12
18
|
|
|
13
19
|
### Other Changes
|
|
@@ -22,6 +22,7 @@ function resolveIntroUrl(value, settings, locale, image = false) {
|
|
|
22
22
|
return url;
|
|
23
23
|
}
|
|
24
24
|
function inspect(node, settings, locale, source = "") {
|
|
25
|
+
if (node.type === "textDirective" && source.slice(node.position.start.offset, node.position.end.offset) === `:${node.name}` && /[\p{L}\p{N}\p{M}_]$/u.test(source.slice(0, node.position.start.offset))) return;
|
|
25
26
|
if (node.type === "mdxTextExpression" && (source.slice(node.position.end.offset, node.position.end.offset + 2) === "^{" || source[node.position.start.offset - 1] === "^")) return;
|
|
26
27
|
if (node.type === "html" || node.type.startsWith("mdx") || node.type === "yaml" || node.type.endsWith("Directive")) {
|
|
27
28
|
throw new Error(`home.introMarkdown: unsupported ${node.type} at line ${node.position.start.line}; use plain Markdown, without HTML, JSX, imports, frontmatter or directives`);
|
|
@@ -68,7 +69,7 @@ async function prepareHomeIntro(source, settings, locale) {
|
|
|
68
69
|
});
|
|
69
70
|
const parsed = await parseToAst(source, { dialect: "markdown", directives: true, frontmatter: "node" });
|
|
70
71
|
if (!parsed.ast) throw new Error(`home.introMarkdown: ${parsed.diagnostics.map((d) => d.message).join("; ")}`);
|
|
71
|
-
inspect(parsed.ast, settings, locale);
|
|
72
|
+
inspect(parsed.ast, settings, locale, source);
|
|
72
73
|
const mdx = await parseToAst(source, { dialect: "mdx", frontmatter: "none" });
|
|
73
74
|
if (mdx.ast) inspect(mdx.ast, settings, locale, source);
|
|
74
75
|
const features = buildMarkdownFeatures(settings, {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zudo-doc",
|
|
3
|
-
"version": "5.26.
|
|
3
|
+
"version": "5.26.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "zudo-doc framework primitives layer that sits on top of zfb's engine — sidebar, theme, TOC, breadcrumb, layouts, head injection, View Transitions, SSR-skip wrappers (per ADR-003).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
"typescript": "^5.0.0",
|
|
772
772
|
"vitest": "^4.1.0",
|
|
773
773
|
"zod": "^4.3.6",
|
|
774
|
-
"@takazudo/zudo-doc-history-server": "5.26.
|
|
774
|
+
"@takazudo/zudo-doc-history-server": "5.26.2"
|
|
775
775
|
},
|
|
776
776
|
"scripts": {
|
|
777
777
|
"gen:search-widget-script": "node scripts/gen-search-widget-script.mjs",
|