@tanstack/markdown 0.0.5 → 0.0.6
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/html.js +19 -4
- package/dist/inline.js +5 -1
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +47 -14
- package/dist/react.js +24 -15
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/html.js
CHANGED
|
@@ -61,7 +61,7 @@ export function renderInline(node, options = {}) {
|
|
|
61
61
|
case 'strike':
|
|
62
62
|
return `<del>${renderInlines(node.children, options)}</del>`;
|
|
63
63
|
case 'footnoteReference':
|
|
64
|
-
return `<sup><a id="user-content-fnref-${escapeAttr(node
|
|
64
|
+
return `<sup><a id="user-content-fnref-${escapeAttr(footnoteReferenceId(node))}" data-footnote-ref="" aria-describedby="footnote-label" href="#user-content-fn-${escapeAttr(node.id)}">${node.number}</a></sup>`;
|
|
65
65
|
case 'link':
|
|
66
66
|
return `<a href="${escapeAttr(node.href)}"${node.title ? ` title="${escapeAttr(node.title)}"` : ''}>${renderInlines(node.children, options)}</a>`;
|
|
67
67
|
case 'image':
|
|
@@ -101,8 +101,11 @@ function renderCodeBlock(node, options) {
|
|
|
101
101
|
function renderListItemChildren(children, checked, loose, options) {
|
|
102
102
|
const first = children[0];
|
|
103
103
|
const task = checked === undefined ? '' : `<input type="checkbox" disabled${checked ? ' checked' : ''}> `;
|
|
104
|
-
if (
|
|
105
|
-
|
|
104
|
+
if (first?.type === 'paragraph') {
|
|
105
|
+
const content = `${task}${renderInlines(first.children, options)}`;
|
|
106
|
+
const rest = children.length > 1 ? `\n${children.slice(1).map(child => renderBlock(child, options)).join('\n')}` : '';
|
|
107
|
+
return `${loose ? `<p>${content}</p>` : content}${rest}`;
|
|
108
|
+
}
|
|
106
109
|
return `${task}${children.map(child => renderBlock(child, options)).join('\n')}`;
|
|
107
110
|
}
|
|
108
111
|
function renderCallout(node, options) {
|
|
@@ -115,7 +118,7 @@ function renderFootnotes(items, options) {
|
|
|
115
118
|
return `<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes${renderHeadingAnchor('footnote-label', options)}</h2>\n<ol>\n${renderedItems}\n</ol>\n</section>`;
|
|
116
119
|
}
|
|
117
120
|
function renderFootnoteItem(item, options) {
|
|
118
|
-
const backref =
|
|
121
|
+
const backref = renderFootnoteBackrefs(item);
|
|
119
122
|
const lastIndex = item.children.length - 1;
|
|
120
123
|
if (lastIndex < 0)
|
|
121
124
|
return `<p>${backref.trimStart()}</p>`;
|
|
@@ -128,6 +131,18 @@ function renderFootnoteItem(item, options) {
|
|
|
128
131
|
})
|
|
129
132
|
.join('\n');
|
|
130
133
|
}
|
|
134
|
+
function renderFootnoteBackrefs(item) {
|
|
135
|
+
let result = '';
|
|
136
|
+
for (let index = 1; index <= (item.referenceCount ?? 1); index++) {
|
|
137
|
+
const referenceId = index === 1 ? item.id : `${item.id}-${index}`;
|
|
138
|
+
const label = index === 1 ? `${item.number}` : `${item.number}-${index}`;
|
|
139
|
+
result += ` <a data-footnote-backref="" aria-label="Back to reference ${label}" class="data-footnote-backref" href="#user-content-fnref-${escapeAttr(referenceId)}">↩</a>`;
|
|
140
|
+
}
|
|
141
|
+
return result;
|
|
142
|
+
}
|
|
143
|
+
function footnoteReferenceId(node) {
|
|
144
|
+
return node.referenceIndex && node.referenceIndex > 1 ? `${node.id}-${node.referenceIndex}` : node.id;
|
|
145
|
+
}
|
|
131
146
|
function renderComponent(node, options) {
|
|
132
147
|
const tag = node.tagName ?? 'md-comment-component';
|
|
133
148
|
const attrs = renderComponentAttrs(node);
|
package/dist/inline.js
CHANGED
|
@@ -172,11 +172,15 @@ function parseFootnoteReference(value, open, options) {
|
|
|
172
172
|
options.footnoteOrder.push(key);
|
|
173
173
|
orderIndex = options.footnoteOrder.length - 1;
|
|
174
174
|
}
|
|
175
|
+
const referenceIndex = (options.footnoteCounts?.[key] ?? 0) + 1;
|
|
176
|
+
if (options.footnoteCounts)
|
|
177
|
+
options.footnoteCounts[key] = referenceIndex;
|
|
175
178
|
return {
|
|
176
179
|
node: {
|
|
177
180
|
type: 'footnoteReference',
|
|
178
|
-
id: footnoteId(definition.label),
|
|
181
|
+
id: definition.id ?? (footnoteId(definition.label) || 'footnote'),
|
|
179
182
|
number: orderIndex + 1,
|
|
183
|
+
...(referenceIndex > 1 ? { referenceIndex } : {}),
|
|
180
184
|
},
|
|
181
185
|
end: close + 1,
|
|
182
186
|
};
|
package/dist/parser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAQV,gBAAgB,EAChB,YAAY,EAGb,MAAM,YAAY,CAAA;AAKnB,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,gBAAgB,CAyC5F"}
|
package/dist/parser.js
CHANGED
|
@@ -15,13 +15,14 @@ export function parseMarkdown(markdown, options = {}) {
|
|
|
15
15
|
const definitions = extractDefinitions(lines);
|
|
16
16
|
lines = definitions.lines;
|
|
17
17
|
const footnoteOrder = [];
|
|
18
|
+
const footnoteCounts = Object.create(null);
|
|
18
19
|
const hasReferences = Object.keys(definitions.references).length > 0;
|
|
19
20
|
const hasFootnotes = Object.keys(definitions.footnotes).length > 0;
|
|
20
21
|
const parseOptions = hasReferences || hasFootnotes
|
|
21
22
|
? {
|
|
22
23
|
...options,
|
|
23
24
|
...(hasReferences ? { references: definitions.references } : {}),
|
|
24
|
-
...(hasFootnotes ? { footnotes: definitions.footnotes, footnoteOrder } : {}),
|
|
25
|
+
...(hasFootnotes ? { footnotes: definitions.footnotes, footnoteOrder, footnoteCounts } : {}),
|
|
25
26
|
}
|
|
26
27
|
: options;
|
|
27
28
|
const parser = new BlockParser(lines, parseOptions, createSlugger());
|
|
@@ -164,7 +165,7 @@ class BlockParser {
|
|
|
164
165
|
let loose = false;
|
|
165
166
|
while (this.index < this.lines.length) {
|
|
166
167
|
const marker = listMarker(this.current());
|
|
167
|
-
if (!marker || marker
|
|
168
|
+
if (!marker || !sameListType(marker, first) || marker.indent !== baseIndent)
|
|
168
169
|
break;
|
|
169
170
|
let firstLine = marker.content;
|
|
170
171
|
const task = firstLine.match(/^\[([ xX])\]\s+(.*)$/);
|
|
@@ -176,18 +177,32 @@ class BlockParser {
|
|
|
176
177
|
while (this.index < this.lines.length) {
|
|
177
178
|
const line = this.current();
|
|
178
179
|
const nextMarker = listMarker(line);
|
|
179
|
-
if (nextMarker && nextMarker.indent === baseIndent
|
|
180
|
+
if (nextMarker && nextMarker.indent === baseIndent)
|
|
180
181
|
break;
|
|
181
182
|
if (isBlank(line)) {
|
|
182
|
-
|
|
183
|
+
let nextIndex = this.index;
|
|
184
|
+
while (nextIndex < this.lines.length && isBlank(this.lines[nextIndex]))
|
|
185
|
+
nextIndex++;
|
|
186
|
+
const following = this.lines[nextIndex];
|
|
187
|
+
if (following === undefined)
|
|
188
|
+
break;
|
|
189
|
+
const followingMarker = listMarker(following);
|
|
190
|
+
if (followingMarker?.indent === baseIndent) {
|
|
191
|
+
if (!sameListType(followingMarker, first))
|
|
192
|
+
break;
|
|
193
|
+
loose = true;
|
|
194
|
+
this.index = nextIndex;
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
if (leadingSpaces(following) < marker.contentIndent)
|
|
183
198
|
break;
|
|
184
199
|
loose = true;
|
|
185
200
|
itemLines.push('');
|
|
186
|
-
this.index
|
|
201
|
+
this.index = nextIndex;
|
|
187
202
|
continue;
|
|
188
203
|
}
|
|
189
|
-
if (leadingSpaces(line)
|
|
190
|
-
itemLines.push(stripIndent(line,
|
|
204
|
+
if (leadingSpaces(line) >= marker.contentIndent) {
|
|
205
|
+
itemLines.push(stripIndent(line, marker.contentIndent));
|
|
191
206
|
this.index++;
|
|
192
207
|
continue;
|
|
193
208
|
}
|
|
@@ -295,8 +310,9 @@ function parseCodeInfo(info) {
|
|
|
295
310
|
};
|
|
296
311
|
}
|
|
297
312
|
function extractDefinitions(lines) {
|
|
298
|
-
const references =
|
|
299
|
-
const footnotes =
|
|
313
|
+
const references = Object.create(null);
|
|
314
|
+
const footnotes = Object.create(null);
|
|
315
|
+
const footnoteIds = new Map();
|
|
300
316
|
const remaining = [];
|
|
301
317
|
let fenceMarker;
|
|
302
318
|
let fenceSize = 0;
|
|
@@ -331,7 +347,13 @@ function extractDefinitions(lines) {
|
|
|
331
347
|
content.push(continuation.replace(/^(?: {4}|\t)/, ''));
|
|
332
348
|
index++;
|
|
333
349
|
}
|
|
334
|
-
|
|
350
|
+
const key = normalizeReferenceLabel(label);
|
|
351
|
+
if (!footnotes[key]) {
|
|
352
|
+
const baseId = footnoteId(label) || 'footnote';
|
|
353
|
+
const count = (footnoteIds.get(baseId) ?? 0) + 1;
|
|
354
|
+
footnoteIds.set(baseId, count);
|
|
355
|
+
footnotes[key] = { label, content: content.join('\n'), id: count === 1 ? baseId : `${baseId}-${count}` };
|
|
356
|
+
}
|
|
335
357
|
continue;
|
|
336
358
|
}
|
|
337
359
|
const definition = line.match(/^ {0,3}\[([^\]\n]+)\]:[ \t]*(\S+)[ \t]*$/);
|
|
@@ -349,15 +371,21 @@ function extractDefinitions(lines) {
|
|
|
349
371
|
function createFootnotesBlock(footnotes, footnoteOrder, options) {
|
|
350
372
|
const items = [];
|
|
351
373
|
for (let index = 0; index < footnoteOrder.length; index++) {
|
|
352
|
-
const
|
|
374
|
+
const key = footnoteOrder[index];
|
|
375
|
+
const definition = footnotes[key];
|
|
353
376
|
if (!definition)
|
|
354
377
|
continue;
|
|
355
378
|
items.push({
|
|
356
|
-
id: footnoteId(definition.label),
|
|
379
|
+
id: definition.id ?? (footnoteId(definition.label) || 'footnote'),
|
|
357
380
|
number: index + 1,
|
|
358
381
|
children: new BlockParser(normalizeInput(definition.content).split('\n'), options, createSlugger()).parse(),
|
|
359
382
|
});
|
|
360
383
|
}
|
|
384
|
+
for (const item of items) {
|
|
385
|
+
const count = options.footnoteCounts?.[footnoteOrder[item.number - 1]] ?? 1;
|
|
386
|
+
if (count > 1)
|
|
387
|
+
item.referenceCount = count;
|
|
388
|
+
}
|
|
361
389
|
return { type: 'footnotes', items };
|
|
362
390
|
}
|
|
363
391
|
function parseLineRanges(value) {
|
|
@@ -374,7 +402,7 @@ function parseLineRanges(value) {
|
|
|
374
402
|
return [...lines].sort((a, b) => a - b);
|
|
375
403
|
}
|
|
376
404
|
function listMarker(line) {
|
|
377
|
-
const match = line.match(/^(\s{0,8})([-+*]|\d{1,9}[.)])\
|
|
405
|
+
const match = line.match(/^(\s{0,8})([-+*]|\d{1,9}[.)])(?:([ \t]+)(.*))?$/);
|
|
378
406
|
if (!match)
|
|
379
407
|
return undefined;
|
|
380
408
|
const marker = match[2];
|
|
@@ -383,9 +411,14 @@ function listMarker(line) {
|
|
|
383
411
|
ordered,
|
|
384
412
|
...(ordered ? { number: Number.parseInt(marker, 10) } : {}),
|
|
385
413
|
indent: match[1].length,
|
|
386
|
-
|
|
414
|
+
marker: ordered ? marker.at(-1) : marker,
|
|
415
|
+
contentIndent: match[1].length + marker.length + (match[3]?.length ?? 1),
|
|
416
|
+
content: match[4] ?? '',
|
|
387
417
|
};
|
|
388
418
|
}
|
|
419
|
+
function sameListType(left, right) {
|
|
420
|
+
return left.ordered === right.ordered && left.marker === right.marker;
|
|
421
|
+
}
|
|
389
422
|
function leadingSpaces(line) {
|
|
390
423
|
return line.match(/^ */)?.[0].length ?? 0;
|
|
391
424
|
}
|
package/dist/react.js
CHANGED
|
@@ -51,7 +51,7 @@ export function renderInlineReact(node, options = {}, key) {
|
|
|
51
51
|
return h(options, 'del', { key }, renderInlines(node.children, options));
|
|
52
52
|
case 'footnoteReference':
|
|
53
53
|
return h(options, 'sup', { key }, h(options, 'a', {
|
|
54
|
-
id: `user-content-fnref-${node
|
|
54
|
+
id: `user-content-fnref-${footnoteReferenceId(node)}`,
|
|
55
55
|
'data-footnote-ref': '',
|
|
56
56
|
'aria-describedby': 'footnote-label',
|
|
57
57
|
href: `#user-content-fn-${node.id}`,
|
|
@@ -113,10 +113,10 @@ function renderListItemChildrenReact(children, checked, loose, options, key) {
|
|
|
113
113
|
}),
|
|
114
114
|
' ',
|
|
115
115
|
];
|
|
116
|
-
if (
|
|
116
|
+
if (first?.type === 'paragraph') {
|
|
117
|
+
const content = [...task, ...renderInlines(first.children, options)];
|
|
117
118
|
return [
|
|
118
|
-
...
|
|
119
|
-
...renderInlines(first.children, options),
|
|
119
|
+
...(loose ? [h(options, 'p', { key: `${key}:paragraph` }, content)] : content),
|
|
120
120
|
...rest.flatMap((child, childIndex) => renderListChildReact(child, loose, options, `${key}:${childIndex + 1}`)),
|
|
121
121
|
];
|
|
122
122
|
}
|
|
@@ -133,24 +133,33 @@ function renderFootnotesReact(items, options, key) {
|
|
|
133
133
|
}
|
|
134
134
|
function renderFootnoteItemReact(item, options) {
|
|
135
135
|
const lastIndex = item.children.length - 1;
|
|
136
|
-
const
|
|
136
|
+
const backrefs = renderFootnoteBackrefsReact(item, options);
|
|
137
137
|
if (lastIndex < 0)
|
|
138
|
-
return [h(options, 'p', { key: 'backref-wrapper' },
|
|
138
|
+
return [h(options, 'p', { key: 'backref-wrapper' }, backrefs.slice(1))];
|
|
139
139
|
return item.children.map((child, index) => {
|
|
140
140
|
if (index === lastIndex && child.type === 'paragraph') {
|
|
141
|
-
return h(options, 'p', { key: index }, renderInlines(child.children, options),
|
|
141
|
+
return h(options, 'p', { key: index }, renderInlines(child.children, options), backrefs);
|
|
142
142
|
}
|
|
143
143
|
return renderBlockReact(child, options, `${index}`);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
function renderFootnoteBackrefsReact(item, options) {
|
|
147
|
+
const result = [];
|
|
148
|
+
for (let index = 1; index <= (item.referenceCount ?? 1); index++) {
|
|
149
|
+
const referenceId = index === 1 ? item.id : `${item.id}-${index}`;
|
|
150
|
+
const label = index === 1 ? `${item.number}` : `${item.number}-${index}`;
|
|
151
|
+
result.push(' ', h(options, 'a', {
|
|
152
|
+
key: index,
|
|
153
|
+
'data-footnote-backref': '',
|
|
154
|
+
'aria-label': `Back to reference ${label}`,
|
|
155
|
+
className: 'data-footnote-backref',
|
|
156
|
+
href: `#user-content-fnref-${referenceId}`,
|
|
157
|
+
}, '\u21a9'));
|
|
158
|
+
}
|
|
159
|
+
return result;
|
|
160
|
+
}
|
|
161
|
+
function footnoteReferenceId(node) {
|
|
162
|
+
return node.referenceIndex && node.referenceIndex > 1 ? `${node.id}-${node.referenceIndex}` : node.id;
|
|
154
163
|
}
|
|
155
164
|
function h(options, tag, props, ...children) {
|
|
156
165
|
const component = typeof tag === 'string' ? options.components?.[tag] ?? tag : tag;
|
package/dist/types.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export interface FootnotesNode {
|
|
|
60
60
|
export interface FootnoteItemNode {
|
|
61
61
|
id: string;
|
|
62
62
|
number: number;
|
|
63
|
+
referenceCount?: number;
|
|
63
64
|
children: BlockNode[];
|
|
64
65
|
}
|
|
65
66
|
export interface ThematicBreakNode {
|
|
@@ -108,6 +109,7 @@ export interface FootnoteReferenceNode {
|
|
|
108
109
|
type: 'footnoteReference';
|
|
109
110
|
id: string;
|
|
110
111
|
number: number;
|
|
112
|
+
referenceIndex?: number;
|
|
111
113
|
}
|
|
112
114
|
export interface LinkNode {
|
|
113
115
|
type: 'link';
|
|
@@ -162,6 +164,7 @@ export interface ParseOptions {
|
|
|
162
164
|
references?: Record<string, LinkReferenceDefinition>;
|
|
163
165
|
footnotes?: Record<string, FootnoteDefinition>;
|
|
164
166
|
footnoteOrder?: string[];
|
|
167
|
+
footnoteCounts?: Record<string, number>;
|
|
165
168
|
}
|
|
166
169
|
export interface RenderOptions extends ParseOptions {
|
|
167
170
|
highlighter?: CodeHighlighter;
|
|
@@ -194,5 +197,6 @@ export interface LinkReferenceDefinition {
|
|
|
194
197
|
export interface FootnoteDefinition {
|
|
195
198
|
label: string;
|
|
196
199
|
content: string;
|
|
200
|
+
id?: string;
|
|
197
201
|
}
|
|
198
202
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,gBAAgB,CAAA;AAErD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC7B;AAED,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,aAAa,GACb,aAAa,GACb,QAAQ,GACR,cAAc,GACd,SAAS,GACT,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,WAAW,GACX,aAAa,CAAA;AAEjB,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CA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