e1e3b0a85b
- Bump astro@5, @astrojs/mdx@4, @astrojs/rss@4, @astrojs/sitemap@3 - Add @astrojs/tailwind, @astrojs/svelte, tailwindcss, svelte - Add patch-package + patches for mdast-util-wikirefs and mdast-util-caml to fix getData/setData → this.data.key and this.exit() return value for mdast-util-from-markdown v2 API compatibility - Fix wikirefs.ts resolveEmbedContent signature for new 3-arg call - Fix backrefs.ts: guard wikirefs.scan() against non-iterable return - Add Base.astro layout with bincio dark/light theme tokens, nav, Inter font - Replace global.css with bincio CSS variables + wiki-specific prose styles - Update Entry.astro, BlogPost.astro, index.astro, map.astro, blog/index.astro to use Base.astro layout with Tailwind utility classes - Add tailwind.config.mjs (Inter + JetBrains Mono, zinc palette) - Update SITE_TITLE to BincioWiki, site URL to wiki.bincio.com
55 lines
2.2 KiB
Diff
55 lines
2.2 KiB
Diff
diff --git a/node_modules/mdast-util-wikirefs/dist/index.js b/node_modules/mdast-util-wikirefs/dist/index.js
|
|
index 2ca356d..7b2a919 100644
|
|
--- a/node_modules/mdast-util-wikirefs/dist/index.js
|
|
+++ b/node_modules/mdast-util-wikirefs/dist/index.js
|
|
@@ -278,9 +278,9 @@ function fromMarkdownWikiAttrs(opts) {
|
|
// is accessible via 'this.stack' (see below)
|
|
this.enter(attrBoxDataNode, token);
|
|
// current key
|
|
- var curKey = this.getData('curKey');
|
|
+ var curKey = this.data.curKey;
|
|
if (curKey === undefined) {
|
|
- this.setData('curKey', '');
|
|
+ this.data.curKey = '';
|
|
}
|
|
}
|
|
function exitWikiAttrKey(token) {
|
|
@@ -289,7 +289,7 @@ function fromMarkdownWikiAttrs(opts) {
|
|
if (current.data && current.data.items && !Object.keys(current.data.items).includes(attrtype)) {
|
|
current.data.items[attrtype] = [];
|
|
}
|
|
- this.setData('curKey', attrtype);
|
|
+ this.data.curKey = attrtype;
|
|
}
|
|
function exitWikiAttrVal(token) {
|
|
var filename = this.sliceSerialize(token);
|
|
@@ -320,7 +320,7 @@ function fromMarkdownWikiAttrs(opts) {
|
|
baseUrl: baseUrl
|
|
};
|
|
if (current.data && current.data.items) {
|
|
- var curKey = this.getData('curKey');
|
|
+ var curKey = this.data.curKey;
|
|
if (curKey !== undefined) {
|
|
current.data.items[curKey].push(item);
|
|
}
|
|
@@ -411,7 +411,8 @@ function fromMarkdownWikiLinks(opts) {
|
|
// <a class="wiki link doctype__doctype" href="/tests/fixtures/fname-a" data-href="/tests/fixtures/fname-a">title a</a>
|
|
|
|
function exitWikiLink(token) {
|
|
- var wikiLink = this.exit(token);
|
|
+ var wikiLink = this.stack[this.stack.length - 1];
|
|
+ this.exit(token);
|
|
|
|
// html-text
|
|
var labelText = wikiLink.data.item.label;
|
|
@@ -596,7 +597,8 @@ function fromMarkdownWikiEmbeds(opts) {
|
|
|
|
function exitWikiEmbed(token) {
|
|
var _wikiEmbed$data$item$;
|
|
- var wikiEmbed = this.exit(token);
|
|
+ var wikiEmbed = this.stack[this.stack.length - 1];
|
|
+ this.exit(token);
|
|
// init vars (guard: filename can be unset if token stream omits it)
|
|
var filename = (_wikiEmbed$data$item$ = wikiEmbed.data.item.filename) !== null && _wikiEmbed$data$item$ !== void 0 ? _wikiEmbed$data$item$ : '';
|
|
var header = wikiEmbed.data.item.header;
|