featherdown 0.1.2 → 0.2.0
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 +394 -51
- package/dist/chunk-3D4JFT3A.js +552 -0
- package/dist/chunk-3D4JFT3A.js.map +1 -0
- package/dist/index.d.ts +81 -3
- package/dist/index.js +229 -9
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +9 -1
- package/dist/node.js +17 -2
- package/dist/node.js.map +1 -1
- package/dist/types-BuSz3Zo6.d.ts +139 -0
- package/package.json +2 -1
- package/dist/chunk-CVZY5VWM.js +0 -243
- package/dist/chunk-CVZY5VWM.js.map +0 -1
- package/dist/types-DlRranpy.d.ts +0 -20
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
import { visit } from 'unist-util-visit';
|
|
2
|
+
import { toText } from 'hast-util-to-text';
|
|
3
|
+
import { defaultSchema } from 'rehype-sanitize';
|
|
4
|
+
|
|
5
|
+
// src/internal/rehypeCodeBlockTitles.ts
|
|
6
|
+
var CHART_LANGUAGE_PREFIX = "language-chart-";
|
|
7
|
+
var WRAPPER_CLASS = "code-block";
|
|
8
|
+
var COPYABLE_CLASS = "code-block-copyable";
|
|
9
|
+
var COPY_BUTTON_CLASS = "code-block-copy-button";
|
|
10
|
+
function hasChartLanguage(className) {
|
|
11
|
+
const values = Array.isArray(className) ? className : typeof className === "string" ? [className] : [];
|
|
12
|
+
return values.some((value) => typeof value === "string" && value.startsWith(CHART_LANGUAGE_PREFIX));
|
|
13
|
+
}
|
|
14
|
+
var rehypeCodeBlockTitles = function rehypeCodeBlockTitles2() {
|
|
15
|
+
return (tree) => {
|
|
16
|
+
let copyTargetCount = 0;
|
|
17
|
+
visit(tree, "element", (node, index, parent) => {
|
|
18
|
+
if (node.tagName !== "pre") return;
|
|
19
|
+
if (!parent || typeof index !== "number") return;
|
|
20
|
+
const code = node.children[0];
|
|
21
|
+
if (!code || code.type !== "element" || code.tagName !== "code") return;
|
|
22
|
+
if (hasChartLanguage(code.properties.className)) return;
|
|
23
|
+
const title = code.properties.dataCodeBlockTitle;
|
|
24
|
+
delete code.properties.dataCodeBlockTitle;
|
|
25
|
+
const hasCopyButton = code.properties.dataCodeCopyButton === true || code.properties.dataCodeCopyButton === "true" || code.properties.dataCodeCopyButton === "";
|
|
26
|
+
delete code.properties.dataCodeCopyButton;
|
|
27
|
+
if (typeof title !== "string" && !hasCopyButton) return;
|
|
28
|
+
const children = [];
|
|
29
|
+
if (typeof title === "string") {
|
|
30
|
+
children.push({
|
|
31
|
+
type: "element",
|
|
32
|
+
tagName: "div",
|
|
33
|
+
properties: { className: ["code-block-title"] },
|
|
34
|
+
children: [{ type: "text", value: title }]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const wrapperClassName = hasCopyButton ? [WRAPPER_CLASS, COPYABLE_CLASS] : [WRAPPER_CLASS];
|
|
38
|
+
if (hasCopyButton) {
|
|
39
|
+
copyTargetCount += 1;
|
|
40
|
+
const copyTargetId = `code-copy-target-${String(copyTargetCount)}`;
|
|
41
|
+
code.properties.dataCodeCopyTarget = copyTargetId;
|
|
42
|
+
children.push({
|
|
43
|
+
type: "element",
|
|
44
|
+
tagName: "button",
|
|
45
|
+
properties: {
|
|
46
|
+
type: "button",
|
|
47
|
+
className: [COPY_BUTTON_CLASS],
|
|
48
|
+
dataCodeCopy: "",
|
|
49
|
+
dataCodeCopyTarget: copyTargetId
|
|
50
|
+
},
|
|
51
|
+
children: [{ type: "text", value: "Copy" }]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
children.push(node);
|
|
55
|
+
const wrapped = {
|
|
56
|
+
type: "element",
|
|
57
|
+
tagName: "div",
|
|
58
|
+
properties: { className: wrapperClassName },
|
|
59
|
+
children
|
|
60
|
+
};
|
|
61
|
+
parent.children[index] = wrapped;
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
var rehypeCodeBlockTitles_default = rehypeCodeBlockTitles;
|
|
66
|
+
var CHART_LANGUAGE_PREFIX2 = "language-chart-";
|
|
67
|
+
var CODE_LINE_CLASS = "code-line";
|
|
68
|
+
var CODE_LINE_HIGHLIGHTED_CLASS = "code-line-highlighted";
|
|
69
|
+
var CODE_LINE_NUMBERED_CLASS = "code-line-numbered";
|
|
70
|
+
var CODE_LINE_NUMBER_CLASS = "code-line-number";
|
|
71
|
+
function hasChartLanguage2(className) {
|
|
72
|
+
const values = Array.isArray(className) ? className : typeof className === "string" ? [className] : [];
|
|
73
|
+
return values.some((value) => typeof value === "string" && value.startsWith(CHART_LANGUAGE_PREFIX2));
|
|
74
|
+
}
|
|
75
|
+
function getHighlightLines(value) {
|
|
76
|
+
const lines = /* @__PURE__ */ new Set();
|
|
77
|
+
if (Array.isArray(value)) {
|
|
78
|
+
for (const item of value) {
|
|
79
|
+
if (typeof item === "number" && Number.isInteger(item) && item > 0) {
|
|
80
|
+
lines.add(item);
|
|
81
|
+
}
|
|
82
|
+
if (typeof item === "string" && /^\d+$/.test(item)) {
|
|
83
|
+
lines.add(Number(item));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return lines;
|
|
87
|
+
}
|
|
88
|
+
if (typeof value === "string") {
|
|
89
|
+
for (const fragment of value.split(/[^\d]+/)) {
|
|
90
|
+
const trimmed = fragment.trim();
|
|
91
|
+
if (/^\d+$/.test(trimmed)) {
|
|
92
|
+
lines.add(Number(trimmed));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return lines;
|
|
97
|
+
}
|
|
98
|
+
function getShowLineNumbers(value) {
|
|
99
|
+
return value === true || value === "true" || value === "";
|
|
100
|
+
}
|
|
101
|
+
function ensureClassNameList(className) {
|
|
102
|
+
if (Array.isArray(className)) {
|
|
103
|
+
return className.filter((entry) => typeof entry === "string");
|
|
104
|
+
}
|
|
105
|
+
if (typeof className === "string") {
|
|
106
|
+
return [className];
|
|
107
|
+
}
|
|
108
|
+
return [];
|
|
109
|
+
}
|
|
110
|
+
function splitCodeChildrenIntoLines(children) {
|
|
111
|
+
const lines = [[]];
|
|
112
|
+
for (const child of children) {
|
|
113
|
+
if (child.type !== "text") {
|
|
114
|
+
const current = lines[lines.length - 1];
|
|
115
|
+
if (!current) {
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
current.push(child);
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
const segments = child.value.split("\n");
|
|
122
|
+
for (let i = 0; i < segments.length; i += 1) {
|
|
123
|
+
const segment = segments[i];
|
|
124
|
+
if (segment && segment.length > 0) {
|
|
125
|
+
const current = lines[lines.length - 1];
|
|
126
|
+
if (!current) {
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
current.push({ type: "text", value: segment });
|
|
130
|
+
}
|
|
131
|
+
if (i < segments.length - 1) {
|
|
132
|
+
lines.push([]);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return lines;
|
|
137
|
+
}
|
|
138
|
+
function isEmptyLine(line) {
|
|
139
|
+
return line.length === 0 || line.every((node) => node.type === "text" && node.value.length === 0);
|
|
140
|
+
}
|
|
141
|
+
var rehypeCodeLineHighlights = function rehypeCodeLineHighlights2() {
|
|
142
|
+
return (tree) => {
|
|
143
|
+
visit(tree, "element", (node) => {
|
|
144
|
+
if (node.tagName !== "code") return;
|
|
145
|
+
if (hasChartLanguage2(node.properties.className)) return;
|
|
146
|
+
const highlightLines = getHighlightLines(node.properties.dataCodeLineHighlights);
|
|
147
|
+
delete node.properties.dataCodeLineHighlights;
|
|
148
|
+
const showLineNumbers = getShowLineNumbers(node.properties.dataCodeLineNumbers);
|
|
149
|
+
delete node.properties.dataCodeLineNumbers;
|
|
150
|
+
if (highlightLines.size === 0 && !showLineNumbers) return;
|
|
151
|
+
if (showLineNumbers) {
|
|
152
|
+
const classNames = ensureClassNameList(node.properties.className);
|
|
153
|
+
if (!classNames.includes(CODE_LINE_NUMBERED_CLASS)) {
|
|
154
|
+
classNames.push(CODE_LINE_NUMBERED_CLASS);
|
|
155
|
+
}
|
|
156
|
+
node.properties.className = classNames;
|
|
157
|
+
}
|
|
158
|
+
const splitLines = splitCodeChildrenIntoLines(node.children);
|
|
159
|
+
const lastLine = splitLines[splitLines.length - 1];
|
|
160
|
+
const hasTrailingNewline = splitLines.length > 0 && !!lastLine && isEmptyLine(lastLine);
|
|
161
|
+
const contentLines = hasTrailingNewline ? splitLines.slice(0, -1) : splitLines;
|
|
162
|
+
const children = [];
|
|
163
|
+
for (let i = 0; i < contentLines.length; i += 1) {
|
|
164
|
+
const lineNumber = i + 1;
|
|
165
|
+
const className = highlightLines.has(lineNumber) ? [CODE_LINE_CLASS, CODE_LINE_HIGHLIGHTED_CLASS] : [CODE_LINE_CLASS];
|
|
166
|
+
const lineChildren = [];
|
|
167
|
+
if (showLineNumbers) {
|
|
168
|
+
lineChildren.push({
|
|
169
|
+
type: "element",
|
|
170
|
+
tagName: "span",
|
|
171
|
+
properties: { className: [CODE_LINE_NUMBER_CLASS] },
|
|
172
|
+
children: [{ type: "text", value: String(lineNumber) }]
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
lineChildren.push(...contentLines[i] ?? []);
|
|
176
|
+
const lineSpan = {
|
|
177
|
+
type: "element",
|
|
178
|
+
tagName: "span",
|
|
179
|
+
properties: { className },
|
|
180
|
+
children: lineChildren
|
|
181
|
+
};
|
|
182
|
+
children.push(lineSpan);
|
|
183
|
+
if (i < contentLines.length - 1 || hasTrailingNewline) {
|
|
184
|
+
const newline = { type: "text", value: "\n" };
|
|
185
|
+
children.push(newline);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
node.children = children;
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
var rehypeCodeLineHighlights_default = rehypeCodeLineHighlights;
|
|
193
|
+
|
|
194
|
+
// src/internal/chartTypes.ts
|
|
195
|
+
var CHART_BLOCK_TYPES = [
|
|
196
|
+
"line",
|
|
197
|
+
"bar",
|
|
198
|
+
"radar",
|
|
199
|
+
"doughnut",
|
|
200
|
+
"pie",
|
|
201
|
+
"polarArea",
|
|
202
|
+
"bubble",
|
|
203
|
+
"scatter"
|
|
204
|
+
];
|
|
205
|
+
var CHART_BLOCK_TYPE_SET = new Set(CHART_BLOCK_TYPES);
|
|
206
|
+
|
|
207
|
+
// src/internal/rehypeChartBlocks.ts
|
|
208
|
+
var LANG_PREFIX = "language-chart-";
|
|
209
|
+
function chartTypeFromClassName(className) {
|
|
210
|
+
const list = Array.isArray(className) ? className : typeof className === "string" ? [className] : [];
|
|
211
|
+
for (const c of list) {
|
|
212
|
+
if (typeof c === "string" && c.startsWith(LANG_PREFIX)) {
|
|
213
|
+
return c.slice(LANG_PREFIX.length);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return void 0;
|
|
217
|
+
}
|
|
218
|
+
var rehypeChartBlocks = function rehypeChartBlocks2(options) {
|
|
219
|
+
const emitDiagnostic = options?.emitDiagnostic;
|
|
220
|
+
return (tree) => {
|
|
221
|
+
visit(tree, "element", (node, index, parent) => {
|
|
222
|
+
if (node.tagName !== "pre") return;
|
|
223
|
+
if (!parent || typeof index !== "number") return;
|
|
224
|
+
const code = node.children[0];
|
|
225
|
+
if (!code || code.type !== "element" || code.tagName !== "code") return;
|
|
226
|
+
const chartType = chartTypeFromClassName(code.properties.className);
|
|
227
|
+
if (!chartType || !CHART_BLOCK_TYPE_SET.has(chartType)) return;
|
|
228
|
+
const raw = toText(code, { whitespace: "pre" }).trim();
|
|
229
|
+
try {
|
|
230
|
+
const parsed = JSON.parse(raw);
|
|
231
|
+
const jsonStr = JSON.stringify(parsed);
|
|
232
|
+
const div = {
|
|
233
|
+
type: "element",
|
|
234
|
+
tagName: "div",
|
|
235
|
+
properties: {
|
|
236
|
+
className: ["chart-mount"],
|
|
237
|
+
dataChart: chartType,
|
|
238
|
+
dataChartData: jsonStr
|
|
239
|
+
},
|
|
240
|
+
children: []
|
|
241
|
+
};
|
|
242
|
+
parent.children[index] = div;
|
|
243
|
+
} catch {
|
|
244
|
+
emitDiagnostic?.({
|
|
245
|
+
code: "chart.invalid_json",
|
|
246
|
+
message: `Chart JSON could not be parsed for type "${chartType}".`,
|
|
247
|
+
severity: "warning",
|
|
248
|
+
source: "chart"
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
var rehypeChartBlocks_default = rehypeChartBlocks;
|
|
255
|
+
var REMOTE_SRC_PATTERN = /^(https?:\/\/|data:|blob:)/;
|
|
256
|
+
function getClassList(className) {
|
|
257
|
+
if (Array.isArray(className)) {
|
|
258
|
+
return className.filter((value) => typeof value === "string");
|
|
259
|
+
}
|
|
260
|
+
if (typeof className === "string") {
|
|
261
|
+
return [className];
|
|
262
|
+
}
|
|
263
|
+
return [];
|
|
264
|
+
}
|
|
265
|
+
function ensureInlineClass(node) {
|
|
266
|
+
const classes = getClassList(node.properties.className);
|
|
267
|
+
if (!classes.includes("markdown-inline-img")) {
|
|
268
|
+
classes.push("markdown-inline-img");
|
|
269
|
+
}
|
|
270
|
+
node.properties.className = classes;
|
|
271
|
+
}
|
|
272
|
+
function rehypeCdnImages(options) {
|
|
273
|
+
const kind = options?.kind;
|
|
274
|
+
const slug = options?.slug;
|
|
275
|
+
const map = options?.manifest?.map;
|
|
276
|
+
const remote = options?.manifest?.remote;
|
|
277
|
+
const emitDiagnostic = options?.emitDiagnostic;
|
|
278
|
+
return (tree) => {
|
|
279
|
+
visit(tree, "element", (node) => {
|
|
280
|
+
if (node.tagName !== "img") return;
|
|
281
|
+
ensureInlineClass(node);
|
|
282
|
+
if (!kind || !slug) return;
|
|
283
|
+
const src = node.properties.src;
|
|
284
|
+
if (typeof src !== "string") return;
|
|
285
|
+
if (REMOTE_SRC_PATTERN.test(src)) {
|
|
286
|
+
const nextSrc2 = remote?.[src]?.url;
|
|
287
|
+
if (nextSrc2) node.properties.src = nextSrc2;
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
if (src.startsWith("/")) return;
|
|
291
|
+
const cleanPath = src.replace(/^\.\/+/, "");
|
|
292
|
+
const key = `${kind}/${slug}/${cleanPath}`;
|
|
293
|
+
const nextSrc = map?.[key]?.url;
|
|
294
|
+
if (nextSrc) {
|
|
295
|
+
node.properties.src = nextSrc;
|
|
296
|
+
} else {
|
|
297
|
+
emitDiagnostic?.({
|
|
298
|
+
code: "images.manifest_miss",
|
|
299
|
+
message: `No manifest entry found for "${key}".`,
|
|
300
|
+
severity: "warning",
|
|
301
|
+
source: "images"
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
var TRAILING_ID = /\s+\{#([\w-]+)\}\s*$/;
|
|
308
|
+
function remarkHeadingIds() {
|
|
309
|
+
return function(tree) {
|
|
310
|
+
visit(tree, "heading", (node) => {
|
|
311
|
+
const last = node.children[node.children.length - 1];
|
|
312
|
+
if (!last || last.type !== "text") return;
|
|
313
|
+
const match = TRAILING_ID.exec(last.value);
|
|
314
|
+
if (!match?.[1]) return;
|
|
315
|
+
if (!node.data) node.data = {};
|
|
316
|
+
if (!node.data.hProperties) node.data.hProperties = {};
|
|
317
|
+
const id = match[1];
|
|
318
|
+
const data = node.data;
|
|
319
|
+
data.id = id;
|
|
320
|
+
data.hProperties.id = id;
|
|
321
|
+
data.hProperties.dataHeadingCustomId = "true";
|
|
322
|
+
last.value = last.value.slice(0, match.index).replace(/\s+$/, "");
|
|
323
|
+
});
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
var CHART_LANGUAGE_PREFIX3 = "chart-";
|
|
327
|
+
var TITLE_META_PATTERN = /(?:^|\s)title="([^"]*)"(?:\s|$)/;
|
|
328
|
+
var LINE_HIGHLIGHT_PATTERN = /\{([^}]*)\}/;
|
|
329
|
+
var LINE_NUMBERS_PATTERN = /(?:^|\s)(?:showLineNumbers|lineNumbers)(?:\s|$)/;
|
|
330
|
+
var COPY_BUTTON_PATTERN = /(?:^|\s)(?:showCopyButton|copyButton)(?:\s|$)/;
|
|
331
|
+
function getCodeBlockTitle(meta) {
|
|
332
|
+
if (typeof meta !== "string") {
|
|
333
|
+
return void 0;
|
|
334
|
+
}
|
|
335
|
+
const match = TITLE_META_PATTERN.exec(meta);
|
|
336
|
+
if (!match) {
|
|
337
|
+
return void 0;
|
|
338
|
+
}
|
|
339
|
+
return match[1];
|
|
340
|
+
}
|
|
341
|
+
function getCodeBlockHighlightLines(meta) {
|
|
342
|
+
if (typeof meta !== "string") {
|
|
343
|
+
return [];
|
|
344
|
+
}
|
|
345
|
+
const match = LINE_HIGHLIGHT_PATTERN.exec(meta);
|
|
346
|
+
const raw = match?.[1];
|
|
347
|
+
if (!raw) {
|
|
348
|
+
return [];
|
|
349
|
+
}
|
|
350
|
+
const highlights = /* @__PURE__ */ new Set();
|
|
351
|
+
const fragments = raw.split(",");
|
|
352
|
+
for (const fragment of fragments) {
|
|
353
|
+
const value = fragment.trim();
|
|
354
|
+
if (/^\d+$/.test(value)) {
|
|
355
|
+
const line = Number(value);
|
|
356
|
+
if (line > 0) {
|
|
357
|
+
highlights.add(line);
|
|
358
|
+
}
|
|
359
|
+
continue;
|
|
360
|
+
}
|
|
361
|
+
const rangeMatch = /^(\d+)-(\d+)$/.exec(value);
|
|
362
|
+
if (!rangeMatch) {
|
|
363
|
+
continue;
|
|
364
|
+
}
|
|
365
|
+
const start = Number(rangeMatch[1]);
|
|
366
|
+
const end = Number(rangeMatch[2]);
|
|
367
|
+
if (start <= 0 || end <= 0 || start > end) {
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
for (let line = start; line <= end; line += 1) {
|
|
371
|
+
highlights.add(line);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return Array.from(highlights).sort((a, b) => a - b);
|
|
375
|
+
}
|
|
376
|
+
function hasCodeBlockLineNumbers(meta) {
|
|
377
|
+
return typeof meta === "string" && LINE_NUMBERS_PATTERN.test(meta);
|
|
378
|
+
}
|
|
379
|
+
function hasCodeBlockCopyButton(meta) {
|
|
380
|
+
return typeof meta === "string" && COPY_BUTTON_PATTERN.test(meta);
|
|
381
|
+
}
|
|
382
|
+
var remarkCodeBlockTitles = function remarkCodeBlockTitles2() {
|
|
383
|
+
return (tree) => {
|
|
384
|
+
visit(tree, "code", (node) => {
|
|
385
|
+
if (typeof node.lang === "string" && node.lang.startsWith(CHART_LANGUAGE_PREFIX3)) {
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
const title = getCodeBlockTitle(node.meta);
|
|
389
|
+
const highlights = getCodeBlockHighlightLines(node.meta);
|
|
390
|
+
const hasLineNumbers = hasCodeBlockLineNumbers(node.meta);
|
|
391
|
+
const hasCopyButton = hasCodeBlockCopyButton(node.meta);
|
|
392
|
+
if (title === void 0 && highlights.length === 0 && !hasLineNumbers && !hasCopyButton) {
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
node.data ??= {};
|
|
396
|
+
node.data.hProperties ??= {};
|
|
397
|
+
if (title !== void 0) {
|
|
398
|
+
node.data.hProperties.dataCodeBlockTitle = title;
|
|
399
|
+
}
|
|
400
|
+
if (highlights.length > 0) {
|
|
401
|
+
node.data.hProperties.dataCodeLineHighlights = highlights;
|
|
402
|
+
}
|
|
403
|
+
if (hasLineNumbers) {
|
|
404
|
+
node.data.hProperties.dataCodeLineNumbers = true;
|
|
405
|
+
}
|
|
406
|
+
if (hasCopyButton) {
|
|
407
|
+
node.data.hProperties.dataCodeCopyButton = true;
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
var baseAttrs = defaultSchema.attributes ?? {};
|
|
413
|
+
var baseStar = baseAttrs["*"] ?? [];
|
|
414
|
+
var baseSpan = baseAttrs.span ?? [];
|
|
415
|
+
var baseDiv = baseAttrs.div ?? [];
|
|
416
|
+
var baseCode = baseAttrs.code ?? [];
|
|
417
|
+
var baseButton = baseAttrs.button ?? [];
|
|
418
|
+
var baseH1 = baseAttrs.h1 ?? [];
|
|
419
|
+
var baseH2 = baseAttrs.h2 ?? [];
|
|
420
|
+
var baseH3 = baseAttrs.h3 ?? [];
|
|
421
|
+
var baseH4 = baseAttrs.h4 ?? [];
|
|
422
|
+
var baseH5 = baseAttrs.h5 ?? [];
|
|
423
|
+
var baseH6 = baseAttrs.h6 ?? [];
|
|
424
|
+
var baseTags = defaultSchema.tagNames ?? [];
|
|
425
|
+
var calloutClassNames = [
|
|
426
|
+
"callout",
|
|
427
|
+
"callout-note",
|
|
428
|
+
"callout-tip",
|
|
429
|
+
"callout-warning",
|
|
430
|
+
"callout-info",
|
|
431
|
+
"callout-success",
|
|
432
|
+
"callout-danger",
|
|
433
|
+
"callout-error",
|
|
434
|
+
"callout-caution",
|
|
435
|
+
"callout-important",
|
|
436
|
+
"callout-title",
|
|
437
|
+
"chart-mount",
|
|
438
|
+
"code-block",
|
|
439
|
+
"code-block-title",
|
|
440
|
+
"code-block-copyable"
|
|
441
|
+
];
|
|
442
|
+
var buttonClassNames = ["code-block-copy-button"];
|
|
443
|
+
var markdownSanitizeSchema = {
|
|
444
|
+
...defaultSchema,
|
|
445
|
+
tagNames: [...baseTags, "button"],
|
|
446
|
+
attributes: {
|
|
447
|
+
...baseAttrs,
|
|
448
|
+
"*": [...baseStar, "className"],
|
|
449
|
+
span: [...baseSpan, "style"],
|
|
450
|
+
code: [...baseCode, "className", "dataCodeCopyTarget", "dataCodeLineHighlights", "dataCodeLineNumbers"],
|
|
451
|
+
button: [...baseButton, ["className", ...buttonClassNames], "type", "dataCodeCopy", "dataCodeCopyTarget"],
|
|
452
|
+
h1: [...baseH1, "dataHeadingCustomId"],
|
|
453
|
+
h2: [...baseH2, "dataHeadingCustomId"],
|
|
454
|
+
h3: [...baseH3, "dataHeadingCustomId"],
|
|
455
|
+
h4: [...baseH4, "dataHeadingCustomId"],
|
|
456
|
+
h5: [...baseH5, "dataHeadingCustomId"],
|
|
457
|
+
h6: [...baseH6, "dataHeadingCustomId"],
|
|
458
|
+
div: [
|
|
459
|
+
...baseDiv,
|
|
460
|
+
["className", ...calloutClassNames],
|
|
461
|
+
["dataChart", ...CHART_BLOCK_TYPES],
|
|
462
|
+
"dataChartData"
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
var svgTags = [
|
|
467
|
+
"svg",
|
|
468
|
+
"g",
|
|
469
|
+
"path",
|
|
470
|
+
"marker",
|
|
471
|
+
"rect",
|
|
472
|
+
"circle",
|
|
473
|
+
"line",
|
|
474
|
+
"polygon",
|
|
475
|
+
"text",
|
|
476
|
+
"tspan",
|
|
477
|
+
"style",
|
|
478
|
+
"foreignObject",
|
|
479
|
+
"defs",
|
|
480
|
+
"symbol"
|
|
481
|
+
];
|
|
482
|
+
var svgSharedAttributes = [
|
|
483
|
+
"style",
|
|
484
|
+
"transform",
|
|
485
|
+
"fill",
|
|
486
|
+
"stroke",
|
|
487
|
+
"strokeWidth",
|
|
488
|
+
"strokeDasharray",
|
|
489
|
+
"id",
|
|
490
|
+
"className"
|
|
491
|
+
];
|
|
492
|
+
var schemaWithSvg = {
|
|
493
|
+
...markdownSanitizeSchema,
|
|
494
|
+
tagNames: [...markdownSanitizeSchema.tagNames ?? [], ...svgTags],
|
|
495
|
+
attributes: {
|
|
496
|
+
...markdownSanitizeSchema.attributes ?? {},
|
|
497
|
+
div: [
|
|
498
|
+
...baseDiv,
|
|
499
|
+
"style",
|
|
500
|
+
"xmlns",
|
|
501
|
+
["className", ...calloutClassNames],
|
|
502
|
+
["dataChart", ...CHART_BLOCK_TYPES],
|
|
503
|
+
"dataChartData"
|
|
504
|
+
],
|
|
505
|
+
svg: [
|
|
506
|
+
...svgSharedAttributes,
|
|
507
|
+
"ariaRoleDescription",
|
|
508
|
+
"role",
|
|
509
|
+
"viewBox",
|
|
510
|
+
"width",
|
|
511
|
+
"xmlns"
|
|
512
|
+
],
|
|
513
|
+
g: [
|
|
514
|
+
...svgSharedAttributes,
|
|
515
|
+
"dataId",
|
|
516
|
+
"dataNode"
|
|
517
|
+
],
|
|
518
|
+
path: [...svgSharedAttributes, "d", "markerEnd"],
|
|
519
|
+
marker: [
|
|
520
|
+
...svgSharedAttributes,
|
|
521
|
+
"markerHeight",
|
|
522
|
+
"markerUnits",
|
|
523
|
+
"markerWidth",
|
|
524
|
+
"orient",
|
|
525
|
+
"refX",
|
|
526
|
+
"refY",
|
|
527
|
+
"viewBox"
|
|
528
|
+
],
|
|
529
|
+
rect: [...svgSharedAttributes, "height", "rx", "ry", "width", "x", "y", "name"],
|
|
530
|
+
circle: [...svgSharedAttributes, "cx", "cy", "r"],
|
|
531
|
+
line: [...svgSharedAttributes, "markerEnd", "x1", "x2", "y1", "y2"],
|
|
532
|
+
polygon: [...svgSharedAttributes, "points"],
|
|
533
|
+
text: [
|
|
534
|
+
...svgSharedAttributes,
|
|
535
|
+
"alignmentBaseline",
|
|
536
|
+
"dominantBaseline",
|
|
537
|
+
"dy",
|
|
538
|
+
"textAnchor",
|
|
539
|
+
"x",
|
|
540
|
+
"y"
|
|
541
|
+
],
|
|
542
|
+
tspan: [...svgSharedAttributes, "dy", "x"],
|
|
543
|
+
foreignObject: ["height", "width"],
|
|
544
|
+
symbol: ["clipRule", "fillRule", "height", "id", "width"],
|
|
545
|
+
defs: [],
|
|
546
|
+
style: []
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
export { markdownSanitizeSchema, rehypeCdnImages, rehypeChartBlocks_default, rehypeCodeBlockTitles_default, rehypeCodeLineHighlights_default, remarkCodeBlockTitles, remarkHeadingIds, schemaWithSvg };
|
|
551
|
+
//# sourceMappingURL=chunk-3D4JFT3A.js.map
|
|
552
|
+
//# sourceMappingURL=chunk-3D4JFT3A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/internal/rehypeCodeBlockTitles.ts","../src/internal/rehypeCodeLineHighlights.ts","../src/internal/chartTypes.ts","../src/internal/rehypeChartBlocks.ts","../src/internal/rehypeCdnImages.ts","../src/internal/headingIdsRemark.ts","../src/internal/remarkCodeBlockTitles.ts","../src/internal/sanitizeSchema.ts"],"names":["rehypeCodeBlockTitles","CHART_LANGUAGE_PREFIX","hasChartLanguage","rehypeCodeLineHighlights","visit","rehypeChartBlocks","nextSrc","remarkCodeBlockTitles"],"mappings":";;;;;AAIA,IAAM,qBAAA,GAAwB,iBAAA;AAC9B,IAAM,aAAA,GAAgB,YAAA;AACtB,IAAM,cAAA,GAAiB,qBAAA;AACvB,IAAM,iBAAA,GAAoB,wBAAA;AAE1B,SAAS,iBAAiB,SAAA,EAA6B;AACrD,EAAA,MAAM,MAAA,GAAS,KAAA,CAAM,OAAA,CAAQ,SAAS,CAAA,GAClC,SAAA,GACA,OAAO,SAAA,KAAc,QAAA,GACnB,CAAC,SAAS,CAAA,GACV,EAAC;AACP,EAAA,OAAO,MAAA,CAAO,IAAA,CAAK,CAAC,KAAA,KAAU,OAAO,UAAU,QAAA,IAAY,KAAA,CAAM,UAAA,CAAW,qBAAqB,CAAC,CAAA;AACpG;AAKA,IAAM,qBAAA,GAA0C,SAASA,sBAAAA,GAAwB;AAC/E,EAAA,OAAO,CAAC,IAAA,KAAoB;AAC1B,IAAA,IAAI,eAAA,GAAkB,CAAA;AACtB,IAAA,KAAA,CAAM,IAAA,EAAM,SAAA,EAAW,CAAC,IAAA,EAAM,OAAO,MAAA,KAAW;AAC9C,MAAA,IAAI,IAAA,CAAK,YAAY,KAAA,EAAO;AAC5B,MAAA,IAAI,CAAC,MAAA,IAAU,OAAO,KAAA,KAAU,QAAA,EAAU;AAE1C,MAAA,MAAM,IAAA,GAAO,IAAA,CAAK,QAAA,CAAS,CAAC,CAAA;AAC5B,MAAA,IAAI,CAAC,IAAA,IAAQ,IAAA,CAAK,SAAS,SAAA,IAAa,IAAA,CAAK,YAAY,MAAA,EAAQ;AACjE,MAAA,IAAI,gBAAA,CAAiB,I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AA,EAAS,GAAA,EAAK,GAAA,EAAK,MAAM,CAAA;AAAA,IAC9E,QAAQ,CAAC,GAAG,mBAAA,EAAqB,IAAA,EAAM,MAAM,GAAG,CAAA;AAAA,IAChD,IAAA,EAAM,CAAC,GAAG,mBAAA,EAAqB,aAAa,IAAA,EAAM,IAAA,EAAM,MAAM,IAAI,CAAA;AAAA,IAClE,OAAA,EAAS,CAAC,GAAG,mBAAA,EAAqB,QAAQ,CAAA;AAAA,IAC1C,IAAA,EAAM;AAAA,MACJ,GAAG,mBAAA;AAAA,MACH,mBAAA;AAAA,MACA,kBAAA;AAAA,MACA,IAAA;AAAA,MACA,YAAA;AAAA,MACA,GAAA;AAAA,MACA;AAAA,KACF;AAAA,IACA,KAAA,EAAO,CAAC,GAAG,mBAAA,EAAqB,MAAM,GAAG,CAAA;AAAA,IACzC,aAAA,EAAe,CAAC,QAAA,EAAU,OAAO,CAAA;AAAA,IACjC,QAAQ,CAAC,UAAA,EAAY,UAAA,EAAY,QAAA,EAAU,MAAM,OAAO,CAAA;AAAA,IACxD,MAAM,EAAC;AAAA,IACP,OAAO;AAAC;AAEZ","file":"chunk-3D4JFT3A.js","sourcesContent":["import type { Element, Root } from 'hast';\nimport { visit } from 'unist-util-visit';\nimport type { Plugin } from 'unified';\n\nconst CHART_LANGUAGE_PREFIX = 'language-chart-';\nconst WRAPPER_CLASS = 'code-block';\nconst COPYABLE_CLASS = 'code-block-copyable';\nconst COPY_BUTTON_CLASS = 'code-block-copy-button';\n\nfunction hasChartLanguage(className: unknown): boolean {\n const values = Array.isArray(className)\n ? className\n : typeof className === 'string'\n ? [className]\n : [];\n return values.some((value) => typeof value === 'string' && value.startsWith(CHART_LANGUAGE_PREFIX));\n}\n\n/**\n * Wraps code blocks with stable title and copy-button markup.\n */\nconst rehypeCodeBlockTitles: Plugin<[], Root> = function rehypeCodeBlockTitles() {\n return (tree): undefined => {\n let copyTargetCount = 0;\n visit(tree, 'element', (node, index, parent) => {\n if (node.tagName !== 'pre') return;\n if (!parent || typeof index !== 'number') return;\n\n const code = node.children[0];\n if (!code || code.type !== 'element' || code.tagName !== 'code') return;\n if (hasChartLanguage(code.properties.className)) return;\n\n const title = code.properties.dataCodeBlockTitle;\n delete code.properties.dataCodeBlockTitle;\n const hasCopyButton =\n code.properties.dataCodeCopyButton === true ||\n code.properties.dataCodeCopyButton === 'true' ||\n code.properties.dataCodeCopyButton === '';\n delete code.properties.dataCodeCopyButton;\n\n if (typeof title !== 'string' && !hasCopyButton) return;\n\n const children: Element['children'] = [];\n if (typeof title === 'string') {\n children.push({\n type: 'element',\n tagName: 'div',\n properties: { className: ['code-block-title'] },\n children: [{ type: 'text', value: title }],\n });\n }\n\n const wrapperClassName = hasCopyButton ? [WRAPPER_CLASS, COPYABLE_CLASS] : [WRAPPER_CLASS];\n if (hasCopyButton) {\n copyTargetCount += 1;\n const copyTargetId = `code-copy-target-${String(copyTargetCount)}`;\n code.properties.dataCodeCopyTarget = copyTargetId;\n children.push({\n type: 'element',\n tagName: 'button',\n properties: {\n type: 'button',\n className: [COPY_BUTTON_CLASS],\n dataCodeCopy: '',\n dataCodeCopyTarget: copyTargetId,\n },\n children: [{ type: 'text', value: 'Copy' }],\n });\n }\n children.push(node);\n\n const wrapped: Element = {\n type: 'element',\n tagName: 'div',\n properties: { className: wrapperClassName },\n children,\n };\n\n parent.children[index] = wrapped;\n });\n };\n};\n\nexport default rehypeCodeBlockTitles;\n","import type { Element, ElementContent, Root, Text } from 'hast';\nimport { visit } from 'unist-util-visit';\nimport type { Plugin } from 'unified';\n\nconst CHART_LANGUAGE_PREFIX = 'language-chart-';\nconst CODE_LINE_CLASS = 'code-line';\nconst CODE_LINE_HIGHLIGHTED_CLASS = 'code-line-highlighted';\nconst CODE_LINE_NUMBERED_CLASS = 'code-line-numbered';\nconst CODE_LINE_NUMBER_CLASS = 'code-line-number';\n\nfunction hasChartLanguage(className: unknown): boolean {\n const values = Array.isArray(className)\n ? className\n : typeof className === 'string'\n ? [className]\n : [];\n return values.some((value) => typeof value === 'string' && value.startsWith(CHART_LANGUAGE_PREFIX));\n}\n\nfunction getHighlightLines(value: unknown): Set<number> {\n const lines = new Set<number>();\n\n if (Array.isArray(value)) {\n for (const item of value) {\n if (typeof item === 'number' && Number.isInteger(item) && item > 0) {\n lines.add(item);\n }\n if (typeof item === 'string' && /^\\d+$/.test(item)) {\n lines.add(Number(item));\n }\n }\n return lines;\n }\n\n if (typeof value === 'string') {\n for (const fragment of value.split(/[^\\d]+/)) {\n const trimmed = fragment.trim();\n if (/^\\d+$/.test(trimmed)) {\n lines.add(Number(trimmed));\n }\n }\n }\n return lines;\n}\n\nfunction getShowLineNumbers(value: unknown): boolean {\n return value === true || value === 'true' || value === '';\n}\n\nfunction ensureClassNameList(className: unknown): string[] {\n if (Array.isArray(className)) {\n return className.filter((entry): entry is string => typeof entry === 'string');\n }\n if (typeof className === 'string') {\n return [className];\n }\n return [];\n}\n\nfunction splitCodeChildrenIntoLines(children: ElementContent[]): ElementContent[][] {\n const lines: ElementContent[][] = [[]];\n for (const child of children) {\n if (child.type !== 'text') {\n const current = lines[lines.length - 1];\n if (!current) {\n continue;\n }\n current.push(child);\n continue;\n }\n\n const segments = child.value.split('\\n');\n for (let i = 0; i < segments.length; i += 1) {\n const segment = segments[i];\n if (segment && segment.length > 0) {\n const current = lines[lines.length - 1];\n if (!current) {\n continue;\n }\n current.push({ type: 'text', value: segment });\n }\n if (i < segments.length - 1) {\n lines.push([]);\n }\n }\n }\n return lines;\n}\n\nfunction isEmptyLine(line: ElementContent[]): boolean {\n return line.length === 0 || line.every((node) => node.type === 'text' && node.value.length === 0);\n}\n\n/**\n * Adds line-level wrappers and highlight classes for configured code ranges.\n */\nconst rehypeCodeLineHighlights: Plugin<[], Root> = function rehypeCodeLineHighlights() {\n return (tree): undefined => {\n visit(tree, 'element', (node) => {\n if (node.tagName !== 'code') return;\n if (hasChartLanguage(node.properties.className)) return;\n\n const highlightLines = getHighlightLines(node.properties.dataCodeLineHighlights);\n delete node.properties.dataCodeLineHighlights;\n const showLineNumbers = getShowLineNumbers(node.properties.dataCodeLineNumbers);\n delete node.properties.dataCodeLineNumbers;\n if (highlightLines.size === 0 && !showLineNumbers) return;\n\n if (showLineNumbers) {\n const classNames = ensureClassNameList(node.properties.className);\n if (!classNames.includes(CODE_LINE_NUMBERED_CLASS)) {\n classNames.push(CODE_LINE_NUMBERED_CLASS);\n }\n node.properties.className = classNames;\n }\n\n const splitLines = splitCodeChildrenIntoLines(node.children);\n const lastLine = splitLines[splitLines.length - 1];\n const hasTrailingNewline = splitLines.length > 0 && !!lastLine && isEmptyLine(lastLine);\n const contentLines = hasTrailingNewline ? splitLines.slice(0, -1) : splitLines;\n\n const children: ElementContent[] = [];\n for (let i = 0; i < contentLines.length; i += 1) {\n const lineNumber = i + 1;\n const className = highlightLines.has(lineNumber)\n ? [CODE_LINE_CLASS, CODE_LINE_HIGHLIGHTED_CLASS]\n : [CODE_LINE_CLASS];\n const lineChildren: ElementContent[] = [];\n if (showLineNumbers) {\n lineChildren.push({\n type: 'element',\n tagName: 'span',\n properties: { className: [CODE_LINE_NUMBER_CLASS] },\n children: [{ type: 'text', value: String(lineNumber) }],\n });\n }\n lineChildren.push(...(contentLines[i] ?? []));\n const lineSpan: Element = {\n type: 'element',\n tagName: 'span',\n properties: { className },\n children: lineChildren,\n };\n children.push(lineSpan);\n\n if (i < contentLines.length - 1 || hasTrailingNewline) {\n const newline: Text = { type: 'text', value: '\\n' };\n children.push(newline);\n }\n }\n\n node.children = children;\n });\n };\n};\n\nexport default rehypeCodeLineHighlights;\n","/** Supported `language-chart-<type>` fence identifiers for chart placeholder blocks. */\nexport const CHART_BLOCK_TYPES = [\n 'line',\n 'bar',\n 'radar',\n 'doughnut',\n 'pie',\n 'polarArea',\n 'bubble',\n 'scatter',\n] as const;\n\n/** Lookup set for fast chart type membership checks. */\nexport const CHART_BLOCK_TYPE_SET: ReadonlySet<string> = new Set(CHART_BLOCK_TYPES);\n","import { toText } from 'hast-util-to-text';\nimport type { Element, Root } from 'hast';\nimport { visit } from 'unist-util-visit';\nimport type { Plugin } from 'unified';\nimport { CHART_BLOCK_TYPE_SET } from './chartTypes.js';\nimport type { DiagnosticEmitter } from './diagnostics.js';\n\nconst LANG_PREFIX = 'language-chart-';\n\nfunction chartTypeFromClassName(className: unknown): string | undefined {\n const list = Array.isArray(className)\n ? className\n : typeof className === 'string'\n ? [className]\n : [];\n for (const c of list) {\n if (typeof c === 'string' && c.startsWith(LANG_PREFIX)) {\n return c.slice(LANG_PREFIX.length);\n }\n }\n return undefined;\n}\n\n/**\n * Turns ` ```chart-<type> ` fenced JSON into a mount placeholder `div`.\n * Invalid JSON leaves the original `<pre><code>` unchanged.\n */\nconst rehypeChartBlocks: Plugin<\n [{ emitDiagnostic?: DiagnosticEmitter }?],\n Root\n> = function rehypeChartBlocks(options) {\n const emitDiagnostic = options?.emitDiagnostic;\n return (tree): undefined => {\n visit(tree, 'element', (node, index, parent) => {\n if (node.tagName !== 'pre') return;\n if (!parent || typeof index !== 'number') return;\n const code = node.children[0];\n if (!code || code.type !== 'element' || code.tagName !== 'code') return;\n\n const chartType = chartTypeFromClassName(code.properties.className);\n if (!chartType || !CHART_BLOCK_TYPE_SET.has(chartType)) return;\n\n const raw = toText(code, { whitespace: 'pre' }).trim();\n try {\n const parsed: unknown = JSON.parse(raw);\n const jsonStr = JSON.stringify(parsed);\n const div: Element = {\n type: 'element',\n tagName: 'div',\n properties: {\n className: ['chart-mount'],\n dataChart: chartType,\n dataChartData: jsonStr,\n },\n children: [],\n };\n parent.children[index] = div;\n } catch {\n emitDiagnostic?.({\n code: 'chart.invalid_json',\n message: `Chart JSON could not be parsed for type \"${chartType}\".`,\n severity: 'warning',\n source: 'chart',\n });\n /* keep original pre/code */\n }\n });\n };\n};\n\nexport default rehypeChartBlocks;\n","import type { Element, Root } from 'hast';\nimport { visit } from 'unist-util-visit';\nimport type { DiagnosticEmitter } from './diagnostics.js';\n\ntype ManifestEntry = { url: string };\n\ntype RehypeCdnImagesOptions = {\n kind?: string;\n slug?: string;\n manifest?: {\n map?: Record<string, ManifestEntry>;\n remote?: Record<string, ManifestEntry>;\n };\n emitDiagnostic?: DiagnosticEmitter;\n};\n\nconst REMOTE_SRC_PATTERN = /^(https?:\\/\\/|data:|blob:)/;\n\nfunction getClassList(className: unknown): string[] {\n if (Array.isArray(className)) {\n return className.filter((value): value is string => typeof value === 'string');\n }\n if (typeof className === 'string') {\n return [className];\n }\n return [];\n}\n\nfunction ensureInlineClass(node: Element): void {\n const classes = getClassList(node.properties.className);\n if (!classes.includes('markdown-inline-img')) {\n classes.push('markdown-inline-img');\n }\n node.properties.className = classes;\n}\n\n/**\n * Rehype plugin that annotates image classes and rewrites image URLs via\n * optional manifest maps.\n */\nexport default function rehypeCdnImages(options?: RehypeCdnImagesOptions) {\n const kind = options?.kind;\n const slug = options?.slug;\n const map = options?.manifest?.map;\n const remote = options?.manifest?.remote;\n const emitDiagnostic = options?.emitDiagnostic;\n\n return (tree: Root): undefined => {\n visit(tree, 'element', (node) => {\n if (node.tagName !== 'img') return;\n\n ensureInlineClass(node);\n\n if (!kind || !slug) return;\n\n const src = node.properties.src;\n if (typeof src !== 'string') return;\n\n if (REMOTE_SRC_PATTERN.test(src)) {\n const nextSrc = remote?.[src]?.url;\n if (nextSrc) node.properties.src = nextSrc;\n return;\n }\n\n if (src.startsWith('/')) return;\n\n const cleanPath = src.replace(/^\\.\\/+/, '');\n const key = `${kind}/${slug}/${cleanPath}`;\n const nextSrc = map?.[key]?.url;\n if (nextSrc) {\n node.properties.src = nextSrc;\n } else {\n emitDiagnostic?.({\n code: 'images.manifest_miss',\n message: `No manifest entry found for \"${key}\".`,\n severity: 'warning',\n source: 'images',\n });\n }\n });\n };\n}\n","import type { Heading, Root } from 'mdast';\nimport { visit } from 'unist-util-visit';\n\nconst TRAILING_ID = /\\s+\\{#([\\w-]+)\\}\\s*$/;\n\n/**\n * Remark plugin: strips ` {#custom-id}` from heading text and sets `hProperties.id`\n * so remark-rehype puts `id` on the heading in hast before `rehype-sanitize`.\n * `rehype-slug` runs after sanitize and only fills in missing ids, so it does not\n * overwrite these (see `!node.properties.id` in rehype-slug).\n */\nexport function remarkHeadingIds(): (tree: Root) => undefined {\n return function (tree: Root): undefined {\n visit(tree, 'heading', (node: Heading) => {\n const last = node.children[node.children.length - 1];\n if (!last || last.type !== 'text') return;\n\n const match = TRAILING_ID.exec(last.value);\n if (!match?.[1]) return;\n\n if (!node.data) node.data = {};\n if (!node.data.hProperties) node.data.hProperties = {};\n const id = match[1];\n const data = node.data as typeof node.data & {\n id?: string;\n hProperties: Record<string, string | undefined>;\n };\n data.id = id;\n data.hProperties.id = id;\n data.hProperties.dataHeadingCustomId = 'true';\n\n last.value = last.value.slice(0, match.index).replace(/\\s+$/, '');\n });\n };\n}\n","import type { Code, Root } from 'mdast';\nimport { visit } from 'unist-util-visit';\nimport type { Plugin } from 'unified';\n\nconst CHART_LANGUAGE_PREFIX = 'chart-';\nconst TITLE_META_PATTERN = /(?:^|\\s)title=\"([^\"]*)\"(?:\\s|$)/;\nconst LINE_HIGHLIGHT_PATTERN = /\\{([^}]*)\\}/;\nconst LINE_NUMBERS_PATTERN = /(?:^|\\s)(?:showLineNumbers|lineNumbers)(?:\\s|$)/;\nconst COPY_BUTTON_PATTERN = /(?:^|\\s)(?:showCopyButton|copyButton)(?:\\s|$)/;\n\nfunction getCodeBlockTitle(meta: unknown): string | undefined {\n if (typeof meta !== 'string') {\n return undefined;\n }\n const match = TITLE_META_PATTERN.exec(meta);\n if (!match) {\n return undefined;\n }\n return match[1];\n}\n\nfunction getCodeBlockHighlightLines(meta: unknown): number[] {\n if (typeof meta !== 'string') {\n return [];\n }\n const match = LINE_HIGHLIGHT_PATTERN.exec(meta);\n const raw = match?.[1];\n if (!raw) {\n return [];\n }\n\n const highlights = new Set<number>();\n const fragments = raw.split(',');\n for (const fragment of fragments) {\n const value = fragment.trim();\n if (/^\\d+$/.test(value)) {\n const line = Number(value);\n if (line > 0) {\n highlights.add(line);\n }\n continue;\n }\n\n const rangeMatch = /^(\\d+)-(\\d+)$/.exec(value);\n if (!rangeMatch) {\n continue;\n }\n\n const start = Number(rangeMatch[1]);\n const end = Number(rangeMatch[2]);\n if (start <= 0 || end <= 0 || start > end) {\n continue;\n }\n for (let line = start; line <= end; line += 1) {\n highlights.add(line);\n }\n }\n\n return Array.from(highlights).sort((a, b) => a - b);\n}\n\nfunction hasCodeBlockLineNumbers(meta: unknown): boolean {\n return typeof meta === 'string' && LINE_NUMBERS_PATTERN.test(meta);\n}\n\nfunction hasCodeBlockCopyButton(meta: unknown): boolean {\n return typeof meta === 'string' && COPY_BUTTON_PATTERN.test(meta);\n}\n\n/**\n * Extracts supported fenced code metadata and stores it on hProperties.\n */\nexport const remarkCodeBlockTitles: Plugin<[], Root> = function remarkCodeBlockTitles() {\n return (tree): undefined => {\n visit(tree, 'code', (node: Code) => {\n if (typeof node.lang === 'string' && node.lang.startsWith(CHART_LANGUAGE_PREFIX)) {\n return;\n }\n\n const title = getCodeBlockTitle(node.meta);\n const highlights = getCodeBlockHighlightLines(node.meta);\n const hasLineNumbers = hasCodeBlockLineNumbers(node.meta);\n const hasCopyButton = hasCodeBlockCopyButton(node.meta);\n if (title === undefined && highlights.length === 0 && !hasLineNumbers && !hasCopyButton) {\n return;\n }\n\n node.data ??= {};\n node.data.hProperties ??= {};\n\n if (title !== undefined) {\n node.data.hProperties.dataCodeBlockTitle = title;\n }\n if (highlights.length > 0) {\n node.data.hProperties.dataCodeLineHighlights = highlights;\n }\n if (hasLineNumbers) {\n node.data.hProperties.dataCodeLineNumbers = true;\n }\n if (hasCopyButton) {\n node.data.hProperties.dataCodeCopyButton = true;\n }\n });\n };\n};\n","import type { Schema } from 'hast-util-sanitize';\nimport { defaultSchema } from 'rehype-sanitize';\nimport { CHART_BLOCK_TYPES } from './chartTypes.js';\n\n/**\n * Extends the GitHub-style default sanitizer for this pipeline:\n *\n * - **`className` on `*`** — highlight.js and KaTeX mark up nested spans (and raw HTML\n * may set classes on other allowed tags). The base schema does not allow\n * arbitrary classes without this.\n * - **`style` on `span` only** — KaTeX `output: 'html'` uses inline `style` on spans for\n * layout; samples from KaTeX do not attach `style` to other tag names. Allowing\n * `style` on every element would broaden XSS surface for author-controlled raw HTML.\n * - **Chart placeholders** — `div.chart-mount` with `dataChart` / `dataChartData` (narrow\n * allowed chart type strings; data payload is the JSON string).\n *\n * Scripts remain stripped (`strip: ['script']`).\n */\nconst baseAttrs = defaultSchema.attributes ?? {};\nconst baseStar = baseAttrs['*'] ?? [];\nconst baseSpan = baseAttrs.span ?? [];\nconst baseDiv = baseAttrs.div ?? [];\nconst baseCode = baseAttrs.code ?? [];\nconst baseButton = baseAttrs.button ?? [];\nconst baseH1 = baseAttrs.h1 ?? [];\nconst baseH2 = baseAttrs.h2 ?? [];\nconst baseH3 = baseAttrs.h3 ?? [];\nconst baseH4 = baseAttrs.h4 ?? [];\nconst baseH5 = baseAttrs.h5 ?? [];\nconst baseH6 = baseAttrs.h6 ?? [];\nconst baseTags = defaultSchema.tagNames ?? [];\nconst calloutClassNames = [\n 'callout',\n 'callout-note',\n 'callout-tip',\n 'callout-warning',\n 'callout-info',\n 'callout-success',\n 'callout-danger',\n 'callout-error',\n 'callout-caution',\n 'callout-important',\n 'callout-title',\n 'chart-mount',\n 'code-block',\n 'code-block-title',\n 'code-block-copyable',\n] as const;\nconst buttonClassNames = ['code-block-copy-button'] as const;\n\nexport const markdownSanitizeSchema: Schema = {\n ...defaultSchema,\n tagNames: [...baseTags, 'button'],\n attributes: {\n ...baseAttrs,\n '*': [...baseStar, 'className'],\n span: [...baseSpan, 'style'],\n code: [...baseCode, 'className', 'dataCodeCopyTarget', 'dataCodeLineHighlights', 'dataCodeLineNumbers'],\n button: [...baseButton, ['className', ...buttonClassNames], 'type', 'dataCodeCopy', 'dataCodeCopyTarget'],\n h1: [...baseH1, 'dataHeadingCustomId'],\n h2: [...baseH2, 'dataHeadingCustomId'],\n h3: [...baseH3, 'dataHeadingCustomId'],\n h4: [...baseH4, 'dataHeadingCustomId'],\n h5: [...baseH5, 'dataHeadingCustomId'],\n h6: [...baseH6, 'dataHeadingCustomId'],\n div: [\n ...baseDiv,\n ['className', ...calloutClassNames],\n ['dataChart', ...CHART_BLOCK_TYPES],\n 'dataChartData',\n ],\n },\n};\n\nconst svgTags = [\n 'svg',\n 'g',\n 'path',\n 'marker',\n 'rect',\n 'circle',\n 'line',\n 'polygon',\n 'text',\n 'tspan',\n 'style',\n 'foreignObject',\n 'defs',\n 'symbol',\n] as const;\n\nconst svgSharedAttributes = [\n 'style',\n 'transform',\n 'fill',\n 'stroke',\n 'strokeWidth',\n 'strokeDasharray',\n 'id',\n 'className',\n] as const;\n\n/**\n * Mermaid-capable sanitizer schema for the Node-only rendering path.\n * It extends the browser-safe schema with a narrow SVG allowlist used by\n * inline Mermaid output.\n */\nexport const schemaWithSvg: Schema = {\n ...markdownSanitizeSchema,\n tagNames: [...(markdownSanitizeSchema.tagNames ?? []), ...svgTags],\n attributes: {\n ...(markdownSanitizeSchema.attributes ?? {}),\n div: [\n ...baseDiv,\n 'style',\n 'xmlns',\n ['className', ...calloutClassNames],\n ['dataChart', ...CHART_BLOCK_TYPES],\n 'dataChartData',\n ],\n svg: [\n ...svgSharedAttributes,\n 'ariaRoleDescription',\n 'role',\n 'viewBox',\n 'width',\n 'xmlns',\n ],\n g: [\n ...svgSharedAttributes,\n 'dataId',\n 'dataNode',\n ],\n path: [...svgSharedAttributes, 'd', 'markerEnd'],\n marker: [\n ...svgSharedAttributes,\n 'markerHeight',\n 'markerUnits',\n 'markerWidth',\n 'orient',\n 'refX',\n 'refY',\n 'viewBox',\n ],\n rect: [...svgSharedAttributes, 'height', 'rx', 'ry', 'width', 'x', 'y', 'name'],\n circle: [...svgSharedAttributes, 'cx', 'cy', 'r'],\n line: [...svgSharedAttributes, 'markerEnd', 'x1', 'x2', 'y1', 'y2'],\n polygon: [...svgSharedAttributes, 'points'],\n text: [\n ...svgSharedAttributes,\n 'alignmentBaseline',\n 'dominantBaseline',\n 'dy',\n 'textAnchor',\n 'x',\n 'y',\n ],\n tspan: [...svgSharedAttributes, 'dy', 'x'],\n foreignObject: ['height', 'width'],\n symbol: ['clipRule', 'fillRule', 'height', 'id', 'width'],\n defs: [],\n style: [],\n },\n};\n"]}
|