@tanstack/markdown 0.0.12 → 0.0.13
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/dist/inline.js +10 -2
- package/package.json +23 -25
- package/skills/custom-extensions/SKILL.md +1 -1
- package/skills/docs-features/SKILL.md +1 -1
- package/skills/octane-rendering/SKILL.md +1 -1
- package/skills/production-pipelines/SKILL.md +2 -2
- package/skills/react-rendering/SKILL.md +1 -1
- package/skills/render-markdown/SKILL.md +1 -1
- package/skills/render-markdown/references/ast-and-options.md +1 -1
package/dist/inline.js
CHANGED
|
@@ -319,12 +319,20 @@ function findDelimiter(value, start, delimiter, budget) {
|
|
|
319
319
|
return -1;
|
|
320
320
|
if (value[index - 1] === '\\')
|
|
321
321
|
continue;
|
|
322
|
+
if (!value.startsWith(delimiter, index))
|
|
323
|
+
continue;
|
|
324
|
+
if (value[index + 1] === delimiter) {
|
|
325
|
+
const close = findDelimiter(value, index + 2, delimiter + delimiter, budget);
|
|
326
|
+
if (close > index + 2) {
|
|
327
|
+
index = close + 1;
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
322
331
|
if (delimiter === '~~' && (value[index - 1] === '~' || value[index + 2] === '~'))
|
|
323
332
|
continue;
|
|
324
333
|
if (delimiter[0] === '_' && !canUseUnderscore(value, index, delimiter.length, false))
|
|
325
334
|
continue;
|
|
326
|
-
|
|
327
|
-
return index;
|
|
335
|
+
return index;
|
|
328
336
|
}
|
|
329
337
|
return -1;
|
|
330
338
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/markdown",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A tiny, fast, deterministic Markdown renderer for blogs and documentation.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/TanStack/markdown/issues"
|
|
14
14
|
},
|
|
15
|
-
"packageManager": "pnpm@11.4.0",
|
|
16
15
|
"sideEffects": false,
|
|
17
16
|
"files": [
|
|
18
17
|
"dist",
|
|
@@ -71,27 +70,6 @@
|
|
|
71
70
|
"import": "./dist/extensions/tabs.js"
|
|
72
71
|
}
|
|
73
72
|
},
|
|
74
|
-
"scripts": {
|
|
75
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
76
|
-
"typecheck": "tsc --noEmit",
|
|
77
|
-
"test": "vitest run",
|
|
78
|
-
"test:corpus": "vitest run tests/corpus.test.tsx",
|
|
79
|
-
"corpus:audit": "tsx scripts/audit-corpus.ts",
|
|
80
|
-
"corpus:audit:tanstack": "tsx scripts/audit-tanstack-corpus.ts",
|
|
81
|
-
"corpus:audit:external": "tsx scripts/audit-external-corpus.ts",
|
|
82
|
-
"docs:verify": "node scripts/verify-docs.mjs",
|
|
83
|
-
"test:skills": "intent validate skills --check && pnpm run skills:check-version",
|
|
84
|
-
"skills:check-version": "node scripts/sync-skill-version.mjs --check",
|
|
85
|
-
"skills:sync-version": "node scripts/sync-skill-version.mjs",
|
|
86
|
-
"skills:stale": "intent stale",
|
|
87
|
-
"conformance": "tsx scripts/conformance.ts",
|
|
88
|
-
"bench": "tsx scripts/bench.ts",
|
|
89
|
-
"size": "tsx scripts/measure-size.ts",
|
|
90
|
-
"research": "pnpm run conformance && pnpm run size && pnpm run bench",
|
|
91
|
-
"verify": "pnpm test && pnpm run typecheck && pnpm run build && pnpm run docs:verify && pnpm run test:skills && pnpm run research && pnpm pack --dry-run",
|
|
92
|
-
"prepublishOnly": "pnpm run verify",
|
|
93
|
-
"version": "pnpm run skills:sync-version"
|
|
94
|
-
},
|
|
95
73
|
"publishConfig": {
|
|
96
74
|
"access": "public"
|
|
97
75
|
},
|
|
@@ -133,5 +111,25 @@
|
|
|
133
111
|
},
|
|
134
112
|
"keywords": [
|
|
135
113
|
"tanstack-intent"
|
|
136
|
-
]
|
|
137
|
-
|
|
114
|
+
],
|
|
115
|
+
"scripts": {
|
|
116
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
117
|
+
"typecheck": "tsc --noEmit",
|
|
118
|
+
"test": "vitest run",
|
|
119
|
+
"test:corpus": "vitest run tests/corpus.test.tsx",
|
|
120
|
+
"corpus:audit": "tsx scripts/audit-corpus.ts",
|
|
121
|
+
"corpus:audit:tanstack": "tsx scripts/audit-tanstack-corpus.ts",
|
|
122
|
+
"corpus:audit:external": "tsx scripts/audit-external-corpus.ts",
|
|
123
|
+
"docs:verify": "node scripts/verify-docs.mjs",
|
|
124
|
+
"test:skills": "intent validate skills --check && pnpm run skills:check-version",
|
|
125
|
+
"skills:check-version": "node scripts/sync-skill-version.mjs --check",
|
|
126
|
+
"skills:sync-version": "node scripts/sync-skill-version.mjs",
|
|
127
|
+
"skills:stale": "intent stale",
|
|
128
|
+
"conformance": "tsx scripts/conformance.ts",
|
|
129
|
+
"bench": "tsx scripts/bench.ts",
|
|
130
|
+
"size": "tsx scripts/measure-size.ts",
|
|
131
|
+
"research": "pnpm run conformance && pnpm run size && pnpm run bench",
|
|
132
|
+
"verify": "pnpm test && pnpm run typecheck && pnpm run build && pnpm run docs:verify && pnpm run test:skills && pnpm run research && pnpm pack --dry-run",
|
|
133
|
+
"version": "pnpm run skills:sync-version"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -8,7 +8,7 @@ description: >
|
|
|
8
8
|
metadata:
|
|
9
9
|
type: lifecycle
|
|
10
10
|
library: '@tanstack/markdown'
|
|
11
|
-
library_version: '0.0.
|
|
11
|
+
library_version: '0.0.13'
|
|
12
12
|
requires:
|
|
13
13
|
- 'render-markdown'
|
|
14
14
|
sources:
|
|
@@ -127,7 +127,7 @@ import { parseMarkdown } from '@tanstack/markdown/parser'
|
|
|
127
127
|
const cache = new Map<string, MarkdownDocument>()
|
|
128
128
|
|
|
129
129
|
export function renderCachedArticle(key: string, source: string): string {
|
|
130
|
-
const cacheKey = `markdown-0.0.
|
|
130
|
+
const cacheKey = `markdown-0.0.13:${key}`
|
|
131
131
|
let document = cache.get(cacheKey)
|
|
132
132
|
if (!document) {
|
|
133
133
|
document = parseMarkdown(source, {
|