Changes
7 changed files (+13/-5)
-
-
@@ -22,12 +22,14 @@ - [[Overview|Alternative Title]]- [[Overview]] - [[Overview#Arbitrary document tree]] - [[GitHub Flavored Markdown#^alert-callout-compat]] - [[#Block identifier]] ``` - [[Overview|Alternative Title]] - [[Overview]] - [[Overview#Arbitrary document tree]] - [[GitHub Flavored Markdown#^alert-callout-compat]] - [[#Block identifier]] ### Block identifier
-
-
-
@@ -1,6 +1,6 @@--- createdAt: 2024-04-15T23:00:00+09:00 updatedAt: 2024-05-26T13:10:00+09:00 updatedAt: 2024-05-26T18:50:00+09:00 --- ## v1.0
-
@@ -25,7 +25,7 @@- [x] CLI for opinionated build - [x] JSON/JSONC config for CLI - [x] Usage document for CLI - [ ] Wikilink internal hash reference - [x] Wikilink internal hash reference - [ ] Option to set base URL or path ## v0.1.1
-
-
-
@@ -79,6 +79,7 @@ // Document embedif (hasDocumentToken(node)) { const { document, fragments } = context.documentTree.exchangeToken( node.data.macanaDocumentToken, context.document, ); const hast = buildDocumentContent(document, fragments);
-
-
-
@@ -93,6 +93,7 @@ }const { document, fragments } = context.documentTree.exchangeToken( node.data.macanaDocumentToken, context.document, ); const hash = fragments.length > 0
-
-
-
@@ -328,6 +328,7 @@ if (isDocumentToken(node.file)) {const { document, fragments } = context.documentTree .exchangeToken( node.file, target, ); return {
-
@@ -470,6 +471,7 @@if (isDocumentToken(node.file)) { const { document, fragments } = tree.exchangeToken( node.file, item, ); return {
-
-
-
@@ -525,7 +525,7 @@ type: "tree",nodes, defaultDocument, defaultLanguage: this.#defaultLanguage, exchangeToken: ((token) => { exchangeToken: ((token, importer) => { if (isAssetToken(token)) { const found = assetTokensToFiles.get(token); if (!found) {
-
@@ -545,7 +545,9 @@ `DefaultTreeBuilder: No document path registered for the Document Token ${token}`,); } const doc = pathToDocuments.get(ref.internalPath); const doc = ref.internalPath ? pathToDocuments.get(ref.internalPath) : importer; if (!doc) { throw new Error( `DefaultTreeBuilder: No document at the path ${ref.internalPath}, referenced by token ${token}`,
-
-
-
@@ -159,7 +159,7 @@ /*** Get a document in exchange for the token. * Throws an error if the token is invalid or target document is missing. */ exchangeToken(token: DocumentToken): { exchangeToken(token: DocumentToken, importer?: Document): { document: Document; fragments: readonly string[]; };
-