@ai-matrx/content-ir 0.16.0 → 0.16.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/CHANGELOG.md +14 -0
- package/dist/index.cjs +14 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/source.cjs +14 -2
- package/dist/source.cjs.map +1 -1
- package/dist/source.js +14 -2
- package/dist/source.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.16.1
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/content-ir-core/v0.16.0..npm/content-ir-core/v0.16.1 -- apps/shared/content-ir-core`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## Unreleased
|
|
10
|
+
|
|
11
|
+
**`/source` — a callout or `:::` directive nested in a list item stays in the
|
|
12
|
+
list's prose block** (verify-RC-B8 round 2, SAFETY). Guard:
|
|
13
|
+
`source-markdown-syntax-islands.test.ts` (3 cases red before).
|
|
14
|
+
|
|
15
|
+
**Consumer action:** none.
|
|
16
|
+
|
|
3
17
|
## 0.16.0 — 2026-09-25
|
|
4
18
|
|
|
5
19
|
**`/source` — a deterministic attack suite, and streaming that only ever
|
package/dist/index.cjs
CHANGED
|
@@ -5897,7 +5897,8 @@ var Tokenizer = class {
|
|
|
5897
5897
|
const fm = this.frontMatter(li, t);
|
|
5898
5898
|
if (fm) return fm;
|
|
5899
5899
|
}
|
|
5900
|
-
|
|
5900
|
+
const listNested = indent > 0 && this.inListContinuation(li);
|
|
5901
|
+
if (indent <= 3 && !listNested && t.startsWith("::")) {
|
|
5901
5902
|
const directive = this.directive(p, li, t);
|
|
5902
5903
|
if (directive) return directive;
|
|
5903
5904
|
}
|
|
@@ -5905,7 +5906,7 @@ var Tokenizer = class {
|
|
|
5905
5906
|
const admonition = this.mkdocsAdmonition(p, li, t);
|
|
5906
5907
|
if (admonition) return admonition;
|
|
5907
5908
|
}
|
|
5908
|
-
if (indent <= 3 && t.startsWith(">")) {
|
|
5909
|
+
if (indent <= 3 && !listNested && t.startsWith(">")) {
|
|
5909
5910
|
const callout = this.callout(p, li, t);
|
|
5910
5911
|
if (callout) return callout;
|
|
5911
5912
|
}
|
|
@@ -5946,6 +5947,17 @@ var Tokenizer = class {
|
|
|
5946
5947
|
}
|
|
5947
5948
|
return null;
|
|
5948
5949
|
}
|
|
5950
|
+
/** True when line `li` continues a list item (the nearest non-blank line above is a list item or indented text under one). */
|
|
5951
|
+
inListContinuation(li) {
|
|
5952
|
+
for (let k = li - 1; k >= 0; k--) {
|
|
5953
|
+
const line = this.lineText(k);
|
|
5954
|
+
if (!NOT_WHITESPACE.test(line)) continue;
|
|
5955
|
+
if (/^[ \t]*(?:[-*+]|\d{1,9}[.)])[ \t]/.test(line)) return true;
|
|
5956
|
+
if (/^[ \t]/.test(line)) continue;
|
|
5957
|
+
return false;
|
|
5958
|
+
}
|
|
5959
|
+
return false;
|
|
5960
|
+
}
|
|
5949
5961
|
island(type, start, end, complete, meta = {}) {
|
|
5950
5962
|
return { type, start, end, complete, meta };
|
|
5951
5963
|
}
|