asciidoc-abundant-tree 0.2.1 → 0.2.3
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/README.md +1 -1
- package/dist/animation-yaml-export/cli.mjs +1 -1
- package/dist/browser.d.mts +2 -1
- package/dist/browser.mjs +780 -893
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/{src-DMOLXZbF.mjs → src-DuMegO5s.mjs} +805 -910
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -295,7 +295,7 @@ const book = await parseAbundantTree({
|
|
|
295
295
|
});
|
|
296
296
|
```
|
|
297
297
|
|
|
298
|
-
`attributes` are the include attributes as Asciidoctor parses them, the same an Asciidoctor include processor receives, so the bookshelf build and this parser can register the same selector. A resolver that throws fails construction with `include.resolver-failed`; returned text that does not match its source leaves those lines without coordinates and reports `origin-map.selection-mismatch`.
|
|
298
|
+
`attributes` are the include attributes as Asciidoctor parses them, the same an Asciidoctor include processor receives, so the bookshelf build and this parser can register the same selector. A blank positional attribute is `null`: the first one in `[,beta]`, the second one in `[beta,,gamma]`. A resolver that throws fails construction with `include.resolver-failed`; returned text that does not match its source leaves those lines without coordinates and reports `origin-map.selection-mismatch`.
|
|
299
299
|
|
|
300
300
|
`parseAbundantTree` reads only the supplied source file. Interdocument xrefs keep their raw target and official href when Asciidoctor exposes one, but this package does not open the referenced `.adoc` file.
|
|
301
301
|
|
package/dist/browser.d.mts
CHANGED
|
@@ -154,7 +154,7 @@ type XrefOccurrenceNode = NodeBase & {
|
|
|
154
154
|
};
|
|
155
155
|
type AnchorOccurrenceNode = NodeBase & {
|
|
156
156
|
kind: "anchor";
|
|
157
|
-
syntax: "double-bracket" | "macro";
|
|
157
|
+
syntax: "double-bracket" | "macro" | "bibliography";
|
|
158
158
|
raw: string;
|
|
159
159
|
ids: string[];
|
|
160
160
|
reftext?: string;
|
|
@@ -179,6 +179,7 @@ type TargetNode = NodeBase & {
|
|
|
179
179
|
title?: string;
|
|
180
180
|
idOrigin: "source" | "asciidoctor-generated" | "unknown";
|
|
181
181
|
sourceSpan?: SourceSpan;
|
|
182
|
+
containingSectionId?: string;
|
|
182
183
|
};
|
|
183
184
|
type TextNode = NodeBase & {
|
|
184
185
|
kind: "text";
|