@mdwrk/markdown-renderer-core 1.0.0 → 1.1.1
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 +45 -11
- package/dist/class-names.d.ts.map +1 -1
- package/dist/class-names.js +12 -0
- package/dist/class-names.js.map +1 -1
- package/dist/engine.d.ts +150 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +0 -0
- package/dist/engine.js.map +1 -0
- package/dist/frontmatter.d.ts +7 -4
- package/dist/frontmatter.d.ts.map +1 -1
- package/dist/frontmatter.js +2 -13
- package/dist/frontmatter.js.map +1 -1
- package/dist/headings.d.ts +1 -2
- package/dist/headings.d.ts.map +1 -1
- package/dist/headings.js +2 -26
- package/dist/headings.js.map +1 -1
- package/dist/html.d.ts +3 -3
- package/dist/html.d.ts.map +1 -1
- package/dist/html.js +18 -6
- package/dist/html.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/pipeline.d.ts +4 -8
- package/dist/pipeline.d.ts.map +1 -1
- package/dist/pipeline.js +4 -203
- package/dist/pipeline.js.map +1 -1
- package/dist/profiles.d.ts +59 -0
- package/dist/profiles.d.ts.map +1 -0
- package/dist/profiles.js +83 -0
- package/dist/profiles.js.map +1 -0
- package/dist/types.d.ts +96 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +17 -21
package/dist/html.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html.js","sourceRoot":"","sources":["../src/html.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../src/html.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC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,QAAQ,aAAa,GAAG;QACxB,OAAO,CAAC,QAAQ;QAChB,SAAS;QACT,SAAS;KACV,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,QAAQ,EAAE,OAAO;IAClE,MAAM,QAAQ,GAAG,MAAM,oBAAoB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/D,OAAO,kBAAkB,CAAC;QACxB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,QAAQ;QACR,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,QAAQ,EAAE,OAAO;IAChE,MAAM,QAAQ,GAAG,wBAAwB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAO,kBAAkB,CAAC;QACxB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,QAAQ;QACR,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from "./version.js";
|
|
2
2
|
export * from "./types.js";
|
|
3
3
|
export * from "./class-names.js";
|
|
4
|
+
export * from "./profiles.js";
|
|
4
5
|
export * from "./slug.js";
|
|
5
6
|
export * from "./frontmatter.js";
|
|
6
7
|
export * from "./headings.js";
|
|
7
8
|
export * from "./pipeline.js";
|
|
8
9
|
export * from "./html.js";
|
|
10
|
+
export { getDefaultMarkdownRendererClassNames } from "./engine.js";
|
|
9
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from "./version.js";
|
|
2
2
|
export * from "./types.js";
|
|
3
3
|
export * from "./class-names.js";
|
|
4
|
+
export * from "./profiles.js";
|
|
4
5
|
export * from "./slug.js";
|
|
5
6
|
export * from "./frontmatter.js";
|
|
6
7
|
export * from "./headings.js";
|
|
7
8
|
export * from "./pipeline.js";
|
|
8
9
|
export * from "./html.js";
|
|
10
|
+
export { getDefaultMarkdownRendererClassNames } from "./engine.js";
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/pipeline.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
export
|
|
5
|
-
processor: ReturnType<typeof unified>;
|
|
6
|
-
classNames: MarkdownRendererClassNames;
|
|
7
|
-
};
|
|
8
|
-
export declare function renderMarkdownToHtml(markdown: string, options?: RenderMarkdownToHtmlOptions): Promise<string>;
|
|
1
|
+
import { createMarkdownProcessor as createProcessor, getDefaultMarkdownRemarkPlugins as getDefaultPlugins, parseMarkdownToAst, renderAstToHtml, renderMarkdownToHtml, renderMarkdownToHtmlSync } from "./engine.js";
|
|
2
|
+
export declare const createMarkdownProcessor: typeof createProcessor;
|
|
3
|
+
export declare const getDefaultMarkdownRemarkPlugins: typeof getDefaultPlugins;
|
|
4
|
+
export { parseMarkdownToAst, renderAstToHtml, renderMarkdownToHtml, renderMarkdownToHtmlSync };
|
|
9
5
|
//# sourceMappingURL=pipeline.d.ts.map
|
package/dist/pipeline.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,IAAI,eAAe,EAC1C,+BAA+B,IAAI,iBAAiB,EACpD,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,uBAAuB,wBAAkB,CAAC;AACvD,eAAO,MAAM,+BAA+B,0BAAoB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,CAAC"}
|
package/dist/pipeline.js
CHANGED
|
@@ -1,204 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import rehypeStringify from "rehype-stringify";
|
|
6
|
-
import { unified } from "unified";
|
|
7
|
-
import { visit } from "unist-util-visit";
|
|
8
|
-
import { slugifyHeading } from "./slug.js";
|
|
9
|
-
import { resolveMarkdownRendererClassNames } from "./class-names.js";
|
|
10
|
-
function appendClassName(node, className) {
|
|
11
|
-
if (!className)
|
|
12
|
-
return;
|
|
13
|
-
const properties = (node.properties ??= {});
|
|
14
|
-
const current = properties.className;
|
|
15
|
-
if (Array.isArray(current)) {
|
|
16
|
-
if (!current.includes(className))
|
|
17
|
-
current.push(className);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
if (typeof current === "string" && current.length > 0) {
|
|
21
|
-
properties.className = Array.from(new Set(`${current} ${className}`.split(/\s+/g))).filter(Boolean);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
properties.className = [className];
|
|
25
|
-
}
|
|
26
|
-
function isExternalHref(href) {
|
|
27
|
-
return Boolean(href && /^(https?:)?\/\//i.test(href));
|
|
28
|
-
}
|
|
29
|
-
function textFromChildren(children) {
|
|
30
|
-
return (children ?? [])
|
|
31
|
-
.map((child) => {
|
|
32
|
-
if (typeof child?.value === "string")
|
|
33
|
-
return child.value;
|
|
34
|
-
if (Array.isArray(child?.children))
|
|
35
|
-
return textFromChildren(child.children);
|
|
36
|
-
return "";
|
|
37
|
-
})
|
|
38
|
-
.join(" ")
|
|
39
|
-
.trim();
|
|
40
|
-
}
|
|
41
|
-
function rehypeApplyMarkdownClasses(classNames) {
|
|
42
|
-
return function applyMarkdownClassesPlugin() {
|
|
43
|
-
return (tree) => {
|
|
44
|
-
visit(tree, "element", (node) => {
|
|
45
|
-
switch (node.tagName) {
|
|
46
|
-
case "h1":
|
|
47
|
-
appendClassName(node, classNames.heading1);
|
|
48
|
-
node.properties.id ??= slugifyHeading(textFromChildren(node.children));
|
|
49
|
-
break;
|
|
50
|
-
case "h2":
|
|
51
|
-
appendClassName(node, classNames.heading2);
|
|
52
|
-
node.properties.id ??= slugifyHeading(textFromChildren(node.children));
|
|
53
|
-
break;
|
|
54
|
-
case "h3":
|
|
55
|
-
appendClassName(node, classNames.heading3);
|
|
56
|
-
node.properties.id ??= slugifyHeading(textFromChildren(node.children));
|
|
57
|
-
break;
|
|
58
|
-
case "h4":
|
|
59
|
-
appendClassName(node, classNames.heading4);
|
|
60
|
-
node.properties.id ??= slugifyHeading(textFromChildren(node.children));
|
|
61
|
-
break;
|
|
62
|
-
case "h5":
|
|
63
|
-
appendClassName(node, classNames.heading5);
|
|
64
|
-
node.properties.id ??= slugifyHeading(textFromChildren(node.children));
|
|
65
|
-
break;
|
|
66
|
-
case "h6":
|
|
67
|
-
appendClassName(node, classNames.heading6);
|
|
68
|
-
node.properties.id ??= slugifyHeading(textFromChildren(node.children));
|
|
69
|
-
break;
|
|
70
|
-
case "p":
|
|
71
|
-
appendClassName(node, classNames.paragraph);
|
|
72
|
-
break;
|
|
73
|
-
case "strong":
|
|
74
|
-
appendClassName(node, classNames.strong);
|
|
75
|
-
break;
|
|
76
|
-
case "em":
|
|
77
|
-
appendClassName(node, classNames.emphasis);
|
|
78
|
-
break;
|
|
79
|
-
case "hr":
|
|
80
|
-
appendClassName(node, classNames.hr);
|
|
81
|
-
break;
|
|
82
|
-
case "blockquote":
|
|
83
|
-
appendClassName(node, classNames.blockquote);
|
|
84
|
-
break;
|
|
85
|
-
case "ul":
|
|
86
|
-
appendClassName(node, classNames.listUnordered);
|
|
87
|
-
break;
|
|
88
|
-
case "ol":
|
|
89
|
-
appendClassName(node, classNames.listOrdered);
|
|
90
|
-
break;
|
|
91
|
-
case "li": {
|
|
92
|
-
appendClassName(node, classNames.listItem);
|
|
93
|
-
const firstChild = node.children?.[0];
|
|
94
|
-
const looksTask = firstChild?.tagName === "input" && firstChild?.properties?.type === "checkbox";
|
|
95
|
-
if (looksTask)
|
|
96
|
-
appendClassName(node, classNames.taskListItem);
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
case "input":
|
|
100
|
-
if (node.properties?.type === "checkbox")
|
|
101
|
-
appendClassName(node, classNames.checkbox);
|
|
102
|
-
break;
|
|
103
|
-
case "a": {
|
|
104
|
-
appendClassName(node, classNames.link);
|
|
105
|
-
const href = typeof node.properties?.href === "string" ? node.properties.href : undefined;
|
|
106
|
-
if (isExternalHref(href)) {
|
|
107
|
-
node.properties.target ??= "_blank";
|
|
108
|
-
node.properties.rel ??= "noopener noreferrer";
|
|
109
|
-
}
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
case "code":
|
|
113
|
-
appendClassName(node, classNames.inlineCode);
|
|
114
|
-
break;
|
|
115
|
-
case "table":
|
|
116
|
-
appendClassName(node, classNames.table);
|
|
117
|
-
break;
|
|
118
|
-
case "thead":
|
|
119
|
-
appendClassName(node, classNames.tableHead);
|
|
120
|
-
break;
|
|
121
|
-
case "tbody":
|
|
122
|
-
appendClassName(node, classNames.tableBody);
|
|
123
|
-
break;
|
|
124
|
-
case "tr":
|
|
125
|
-
appendClassName(node, classNames.tableRow);
|
|
126
|
-
break;
|
|
127
|
-
case "th":
|
|
128
|
-
appendClassName(node, classNames.tableHeader);
|
|
129
|
-
break;
|
|
130
|
-
case "td":
|
|
131
|
-
appendClassName(node, classNames.tableCell);
|
|
132
|
-
break;
|
|
133
|
-
case "caption":
|
|
134
|
-
appendClassName(node, classNames.tableCaption);
|
|
135
|
-
break;
|
|
136
|
-
case "colgroup":
|
|
137
|
-
appendClassName(node, classNames.tableColumns);
|
|
138
|
-
break;
|
|
139
|
-
case "col":
|
|
140
|
-
appendClassName(node, classNames.tableColumn);
|
|
141
|
-
break;
|
|
142
|
-
case "pre": {
|
|
143
|
-
const codeChild = node.children?.find((child) => child.tagName === "code");
|
|
144
|
-
const className = Array.isArray(codeChild?.properties?.className)
|
|
145
|
-
? codeChild.properties.className.join(" ")
|
|
146
|
-
: typeof codeChild?.properties?.className === "string"
|
|
147
|
-
? codeChild.properties.className
|
|
148
|
-
: "";
|
|
149
|
-
const language = className.match(/language-([a-z0-9_-]+)/i)?.[1];
|
|
150
|
-
appendClassName(node, classNames.codeBlock);
|
|
151
|
-
if (language) {
|
|
152
|
-
node.children = [
|
|
153
|
-
{
|
|
154
|
-
type: "element",
|
|
155
|
-
tagName: "div",
|
|
156
|
-
properties: { className: [classNames.codeHeader] },
|
|
157
|
-
children: [{ type: "text", value: language }],
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
type: "element",
|
|
161
|
-
tagName: "div",
|
|
162
|
-
properties: { className: [classNames.codeSurface] },
|
|
163
|
-
children: node.children,
|
|
164
|
-
},
|
|
165
|
-
];
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
appendClassName(node, classNames.codeSurface);
|
|
169
|
-
}
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
default:
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
export function getDefaultMarkdownRemarkPlugins() {
|
|
180
|
-
return [remarkGfm, remarkSupersub];
|
|
181
|
-
}
|
|
182
|
-
export function createMarkdownProcessor(options = {}) {
|
|
183
|
-
const classNames = resolveMarkdownRendererClassNames(options.classNames);
|
|
184
|
-
const processor = unified()
|
|
185
|
-
.use(remarkParse)
|
|
186
|
-
.use(remarkGfm)
|
|
187
|
-
.use(remarkSupersub);
|
|
188
|
-
for (const plugin of options.remarkPlugins ?? []) {
|
|
189
|
-
processor.use(plugin);
|
|
190
|
-
}
|
|
191
|
-
processor.use(remarkRehype);
|
|
192
|
-
for (const plugin of options.rehypePlugins ?? []) {
|
|
193
|
-
processor.use(plugin);
|
|
194
|
-
}
|
|
195
|
-
processor.use(rehypeApplyMarkdownClasses(classNames));
|
|
196
|
-
processor.use(rehypeStringify, { allowDangerousHtml: false });
|
|
197
|
-
return { processor, classNames };
|
|
198
|
-
}
|
|
199
|
-
export async function renderMarkdownToHtml(markdown, options = {}) {
|
|
200
|
-
const { processor, classNames } = createMarkdownProcessor(options);
|
|
201
|
-
const file = await processor.process(markdown);
|
|
202
|
-
return `<div class="${classNames.root}">${String(file)}</div>`;
|
|
203
|
-
}
|
|
1
|
+
import { createMarkdownProcessor as createProcessor, getDefaultMarkdownRemarkPlugins as getDefaultPlugins, parseMarkdownToAst, renderAstToHtml, renderMarkdownToHtml, renderMarkdownToHtmlSync, } from "./engine.js";
|
|
2
|
+
export const createMarkdownProcessor = createProcessor;
|
|
3
|
+
export const getDefaultMarkdownRemarkPlugins = getDefaultPlugins;
|
|
4
|
+
export { parseMarkdownToAst, renderAstToHtml, renderMarkdownToHtml, renderMarkdownToHtmlSync };
|
|
204
5
|
//# sourceMappingURL=pipeline.js.map
|
package/dist/pipeline.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,IAAI,eAAe,EAC1C,+BAA+B,IAAI,iBAAiB,EACpD,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,uBAAuB,GAAG,eAAe,CAAC;AACvD,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { MarkdownOptionalProfileId } from './types.js';
|
|
2
|
+
export interface MarkdownOptionalProfileDefinition {
|
|
3
|
+
readonly id: MarkdownOptionalProfileId;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly status: 'in-scope' | 'experimental' | 'out-of-scope';
|
|
6
|
+
readonly previewRequiresTrustedHtml?: boolean;
|
|
7
|
+
readonly exportRequiresTrustedHtml?: boolean;
|
|
8
|
+
readonly notes?: readonly string[];
|
|
9
|
+
}
|
|
10
|
+
export declare const MARKDOWN_OPTIONAL_PROFILE_DEFINITIONS: readonly [{
|
|
11
|
+
readonly id: "front-matter";
|
|
12
|
+
readonly name: "Metadata / Front Matter";
|
|
13
|
+
readonly status: "in-scope";
|
|
14
|
+
readonly notes: readonly ["Front matter is parsed into document metadata and omitted from rendered Markdown output."];
|
|
15
|
+
}, {
|
|
16
|
+
readonly id: "footnotes";
|
|
17
|
+
readonly name: "Footnotes";
|
|
18
|
+
readonly status: "in-scope";
|
|
19
|
+
readonly notes: readonly ["Footnote references and definitions render into linked footnote sections."];
|
|
20
|
+
}, {
|
|
21
|
+
readonly id: "definition-lists";
|
|
22
|
+
readonly name: "Definition Lists";
|
|
23
|
+
readonly status: "in-scope";
|
|
24
|
+
readonly notes: readonly ["Definition lists render into <dl>/<dt>/<dd> structures."];
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: "math";
|
|
27
|
+
readonly name: "Math";
|
|
28
|
+
readonly status: "in-scope";
|
|
29
|
+
readonly notes: readonly ["Math rendering is structural in this checkpoint; equations are not typeset with KaTeX/MathJax."];
|
|
30
|
+
}, {
|
|
31
|
+
readonly id: "citations";
|
|
32
|
+
readonly name: "Citations";
|
|
33
|
+
readonly status: "experimental";
|
|
34
|
+
readonly notes: readonly ["Citation keys render structurally, but bibliography resolution remains outside the certification boundary."];
|
|
35
|
+
}, {
|
|
36
|
+
readonly id: "superscript";
|
|
37
|
+
readonly name: "Superscript";
|
|
38
|
+
readonly status: "in-scope";
|
|
39
|
+
}, {
|
|
40
|
+
readonly id: "subscript";
|
|
41
|
+
readonly name: "Subscript";
|
|
42
|
+
readonly status: "in-scope";
|
|
43
|
+
}, {
|
|
44
|
+
readonly id: "smart-punctuation";
|
|
45
|
+
readonly name: "Smart Punctuation";
|
|
46
|
+
readonly status: "in-scope";
|
|
47
|
+
}, {
|
|
48
|
+
readonly id: "markdown-in-html";
|
|
49
|
+
readonly name: "Markdown in HTML";
|
|
50
|
+
readonly status: "experimental";
|
|
51
|
+
readonly previewRequiresTrustedHtml: true;
|
|
52
|
+
readonly exportRequiresTrustedHtml: true;
|
|
53
|
+
readonly notes: readonly ["Only trusted HTML containers explicitly marked with markdown/data-markdown are interpreted in this checkpoint."];
|
|
54
|
+
}];
|
|
55
|
+
export declare const MARKDOWN_OPTIONAL_PROFILE_IDS: readonly MarkdownOptionalProfileId[];
|
|
56
|
+
export declare function isMarkdownOptionalProfileId(value: unknown): value is MarkdownOptionalProfileId;
|
|
57
|
+
export declare function resolveMarkdownOptionalProfiles(value: readonly MarkdownOptionalProfileId[] | null | undefined): readonly MarkdownOptionalProfileId[];
|
|
58
|
+
export declare function getMarkdownOptionalProfileDefinition(id: MarkdownOptionalProfileId): MarkdownOptionalProfileDefinition | undefined;
|
|
59
|
+
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../src/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,EAAE,EAAE,yBAAyB,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,cAAc,GAAG,cAAc,CAAC;IAC9D,QAAQ,CAAC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAC9C,QAAQ,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAC7C,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEgB,CAAC;AAEnE,eAAO,MAAM,6BAA6B,EAErC,SAAS,yBAAyB,EAAE,CAAC;AAI1C,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,yBAAyB,CAE9F;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,SAAS,yBAAyB,EAAE,GAAG,IAAI,GAAG,SAAS,GAC7D,SAAS,yBAAyB,EAAE,CAMtC;AAED,wBAAgB,oCAAoC,CAAC,EAAE,EAAE,yBAAyB,GAAG,iCAAiC,GAAG,SAAS,CAEjI"}
|
package/dist/profiles.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export const MARKDOWN_OPTIONAL_PROFILE_DEFINITIONS = Object.freeze([
|
|
2
|
+
{
|
|
3
|
+
id: 'front-matter',
|
|
4
|
+
name: 'Metadata / Front Matter',
|
|
5
|
+
status: 'in-scope',
|
|
6
|
+
notes: [
|
|
7
|
+
'Front matter is parsed into document metadata and omitted from rendered Markdown output.',
|
|
8
|
+
],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: 'footnotes',
|
|
12
|
+
name: 'Footnotes',
|
|
13
|
+
status: 'in-scope',
|
|
14
|
+
notes: [
|
|
15
|
+
'Footnote references and definitions render into linked footnote sections.',
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'definition-lists',
|
|
20
|
+
name: 'Definition Lists',
|
|
21
|
+
status: 'in-scope',
|
|
22
|
+
notes: [
|
|
23
|
+
'Definition lists render into <dl>/<dt>/<dd> structures.',
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'math',
|
|
28
|
+
name: 'Math',
|
|
29
|
+
status: 'in-scope',
|
|
30
|
+
notes: [
|
|
31
|
+
'Math rendering is structural in this checkpoint; equations are not typeset with KaTeX/MathJax.',
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'citations',
|
|
36
|
+
name: 'Citations',
|
|
37
|
+
status: 'experimental',
|
|
38
|
+
notes: [
|
|
39
|
+
'Citation keys render structurally, but bibliography resolution remains outside the certification boundary.',
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 'superscript',
|
|
44
|
+
name: 'Superscript',
|
|
45
|
+
status: 'in-scope',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 'subscript',
|
|
49
|
+
name: 'Subscript',
|
|
50
|
+
status: 'in-scope',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: 'smart-punctuation',
|
|
54
|
+
name: 'Smart Punctuation',
|
|
55
|
+
status: 'in-scope',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'markdown-in-html',
|
|
59
|
+
name: 'Markdown in HTML',
|
|
60
|
+
status: 'experimental',
|
|
61
|
+
previewRequiresTrustedHtml: true,
|
|
62
|
+
exportRequiresTrustedHtml: true,
|
|
63
|
+
notes: [
|
|
64
|
+
'Only trusted HTML containers explicitly marked with markdown/data-markdown are interpreted in this checkpoint.',
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
]);
|
|
68
|
+
export const MARKDOWN_OPTIONAL_PROFILE_IDS = Object.freeze(MARKDOWN_OPTIONAL_PROFILE_DEFINITIONS.map((definition) => definition.id));
|
|
69
|
+
const OPTIONAL_PROFILE_ID_SET = new Set(MARKDOWN_OPTIONAL_PROFILE_IDS);
|
|
70
|
+
export function isMarkdownOptionalProfileId(value) {
|
|
71
|
+
return typeof value === 'string' && OPTIONAL_PROFILE_ID_SET.has(value);
|
|
72
|
+
}
|
|
73
|
+
export function resolveMarkdownOptionalProfiles(value) {
|
|
74
|
+
if (!value || value.length === 0) {
|
|
75
|
+
return Object.freeze([]);
|
|
76
|
+
}
|
|
77
|
+
const deduped = Array.from(new Set(value.filter(isMarkdownOptionalProfileId)));
|
|
78
|
+
return Object.freeze(deduped);
|
|
79
|
+
}
|
|
80
|
+
export function getMarkdownOptionalProfileDefinition(id) {
|
|
81
|
+
return MARKDOWN_OPTIONAL_PROFILE_DEFINITIONS.find((definition) => definition.id === id);
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=profiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../src/profiles.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,qCAAqC,GAAG,MAAM,CAAC,MAAM,CAAC;IACjE;QACE,EAAE,EAAE,cAAc;QAClB,IAAI,EAAE,yBAAyB;QAC/B,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE;YACL,0FAA0F;SAC3F;KACF;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE;YACL,2EAA2E;SAC5E;KACF;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE;YACL,yDAAyD;SAC1D;KACF;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE;YACL,gGAAgG;SACjG;KACF;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,cAAc;QACtB,KAAK,EAAE;YACL,4GAA4G;SAC7G;KACF;IACD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE,UAAU;KACnB;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,UAAU;KACnB;IACD;QACE,EAAE,EAAE,mBAAmB;Q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: string;
|
|
5
5
|
readonly index: number;
|
|
6
6
|
}
|
|
7
|
+
export interface MarkdownPositionPoint {
|
|
8
|
+
readonly line: number;
|
|
9
|
+
readonly column: number;
|
|
10
|
+
readonly offset?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface MarkdownPosition {
|
|
13
|
+
readonly start: MarkdownPositionPoint;
|
|
14
|
+
readonly end: MarkdownPositionPoint;
|
|
15
|
+
}
|
|
16
|
+
export interface MarkdownInlineNode {
|
|
17
|
+
readonly type: string;
|
|
18
|
+
readonly value?: string;
|
|
19
|
+
readonly alt?: string;
|
|
20
|
+
readonly url?: string;
|
|
21
|
+
readonly title?: string;
|
|
22
|
+
readonly identifier?: string;
|
|
23
|
+
readonly label?: string;
|
|
24
|
+
readonly children?: readonly MarkdownInlineNode[];
|
|
25
|
+
readonly position?: MarkdownPosition;
|
|
26
|
+
}
|
|
27
|
+
export interface MarkdownBlockNode {
|
|
28
|
+
readonly type: string;
|
|
29
|
+
readonly depth?: number;
|
|
30
|
+
readonly text?: string;
|
|
31
|
+
readonly term?: string;
|
|
32
|
+
readonly info?: string;
|
|
33
|
+
readonly value?: string;
|
|
34
|
+
readonly identifier?: string;
|
|
35
|
+
readonly fenced?: boolean;
|
|
36
|
+
readonly ordered?: boolean;
|
|
37
|
+
readonly start?: number;
|
|
38
|
+
readonly tight?: boolean;
|
|
39
|
+
readonly task?: boolean;
|
|
40
|
+
readonly checked?: boolean;
|
|
41
|
+
readonly children?: readonly MarkdownBlockNode[] | readonly MarkdownInlineNode[];
|
|
42
|
+
readonly items?: readonly MarkdownBlockNode[];
|
|
43
|
+
readonly header?: readonly Readonly<{
|
|
44
|
+
text: string;
|
|
45
|
+
align?: 'left' | 'center' | 'right';
|
|
46
|
+
}>[];
|
|
47
|
+
readonly rows?: readonly (readonly string[])[];
|
|
48
|
+
readonly position?: MarkdownPosition;
|
|
49
|
+
}
|
|
50
|
+
export interface MarkdownFootnoteDefinition {
|
|
51
|
+
readonly identifier: string;
|
|
52
|
+
readonly label: string;
|
|
53
|
+
readonly children: readonly MarkdownBlockNode[];
|
|
54
|
+
readonly position?: MarkdownPosition;
|
|
55
|
+
}
|
|
56
|
+
export interface MarkdownProcessingWarning {
|
|
57
|
+
readonly profileId: MarkdownOptionalProfileId;
|
|
58
|
+
readonly severity: 'info' | 'warning';
|
|
59
|
+
readonly code: string;
|
|
60
|
+
readonly message: string;
|
|
61
|
+
}
|
|
62
|
+
export interface MarkdownAstRoot {
|
|
63
|
+
readonly type: 'root';
|
|
64
|
+
readonly children: readonly MarkdownBlockNode[];
|
|
65
|
+
readonly references: Readonly<Record<string, {
|
|
66
|
+
readonly url: string;
|
|
67
|
+
readonly title?: string;
|
|
68
|
+
}>>;
|
|
69
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
70
|
+
readonly footnotes?: readonly MarkdownFootnoteDefinition[];
|
|
71
|
+
readonly activeExtensions?: readonly MarkdownOptionalProfileId[];
|
|
72
|
+
readonly warnings?: readonly MarkdownProcessingWarning[];
|
|
73
|
+
readonly position?: MarkdownPosition;
|
|
74
|
+
}
|
|
75
|
+
export type MarkdownBaseProfileId = 'commonmark-core' | 'gfm-default';
|
|
76
|
+
export type MarkdownOptionalProfileId = 'front-matter' | 'footnotes' | 'definition-lists' | 'math' | 'citations' | 'superscript' | 'subscript' | 'smart-punctuation' | 'markdown-in-html';
|
|
77
|
+
export type MarkdownProfileId = MarkdownBaseProfileId;
|
|
7
78
|
export interface ParseMarkdownDocumentOptions {
|
|
8
79
|
readonly excerptSeparator?: string;
|
|
80
|
+
readonly htmlHandling?: MarkdownHtmlHandlingMode;
|
|
81
|
+
readonly profile?: MarkdownProfileId;
|
|
82
|
+
readonly extensions?: readonly MarkdownOptionalProfileId[];
|
|
9
83
|
}
|
|
10
84
|
export interface ParsedMarkdownDocument {
|
|
11
85
|
readonly raw: string;
|
|
@@ -29,6 +103,18 @@ export type MarkdownRendererClassNames = Readonly<{
|
|
|
29
103
|
paragraph: string;
|
|
30
104
|
strong: string;
|
|
31
105
|
emphasis: string;
|
|
106
|
+
strikethrough: string;
|
|
107
|
+
superscript: string;
|
|
108
|
+
subscript: string;
|
|
109
|
+
citation: string;
|
|
110
|
+
footnoteReference: string;
|
|
111
|
+
footnotes: string;
|
|
112
|
+
footnoteBacklink: string;
|
|
113
|
+
definitionList: string;
|
|
114
|
+
definitionTerm: string;
|
|
115
|
+
definitionDescription: string;
|
|
116
|
+
mathInline: string;
|
|
117
|
+
mathBlock: string;
|
|
32
118
|
hr: string;
|
|
33
119
|
blockquote: string;
|
|
34
120
|
listUnordered: string;
|
|
@@ -51,12 +137,22 @@ export type MarkdownRendererClassNames = Readonly<{
|
|
|
51
137
|
codeHeader: string;
|
|
52
138
|
codeSurface: string;
|
|
53
139
|
}>;
|
|
140
|
+
export type MarkdownHtmlHandlingMode = 'escape' | 'sanitize' | 'allow-trusted';
|
|
141
|
+
export interface MarkdownLinkAttributeResult {
|
|
142
|
+
readonly target?: string;
|
|
143
|
+
readonly rel?: string;
|
|
144
|
+
}
|
|
54
145
|
export interface MarkdownRenderHooks {
|
|
55
146
|
readonly remarkPlugins?: readonly unknown[];
|
|
56
147
|
readonly rehypePlugins?: readonly unknown[];
|
|
57
148
|
}
|
|
58
149
|
export interface RenderMarkdownToHtmlOptions extends MarkdownRenderHooks {
|
|
59
150
|
readonly classNames?: Partial<MarkdownRendererClassNames>;
|
|
151
|
+
readonly htmlHandling?: MarkdownHtmlHandlingMode;
|
|
152
|
+
readonly profile?: MarkdownProfileId;
|
|
153
|
+
readonly extensions?: readonly MarkdownOptionalProfileId[];
|
|
154
|
+
readonly sourcePositionAttributes?: boolean;
|
|
155
|
+
readonly getLinkAttributes?: (href?: string) => MarkdownLinkAttributeResult | undefined;
|
|
60
156
|
}
|
|
61
157
|
export interface HtmlDocumentOptions {
|
|
62
158
|
readonly title: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"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C,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const MARKDOWN_RENDERER_CORE_VERSION = "1.0.
|
|
1
|
+
export declare const MARKDOWN_RENDERER_CORE_VERSION = "1.1.0-rc.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,eAAe,CAAC"}
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const MARKDOWN_RENDERER_CORE_VERSION = "1.0.
|
|
1
|
+
export const MARKDOWN_RENDERER_CORE_VERSION = "1.1.0-rc.1";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAY,CAAC"}
|