wip: inline diagram SVG

This commit is contained in:
2026-01-12 18:32:47 +00:00
parent 4b72967556
commit 5739a3c998
35 changed files with 99 additions and 104 deletions

View File

@@ -32,7 +32,6 @@ export interface SpecSection {
}
export interface ParsedSpec {
svgPath: string;
introduction: string;
summary: string;
terminology: string;
@@ -340,10 +339,7 @@ function buildTocItems(parsed: Partial<ParsedSpec>): TocItem[] {
*/
export async function parseSpecContent(
markdown: string,
version: string,
): Promise<ParsedSpec> {
const svgPath = `/spec/${version}.svg`;
// Parse markdown to AST
const tree = unified().use(remarkParse).parse(markdown) as Root;
@@ -423,7 +419,6 @@ export async function parseSpecContent(
}));
const parsed: ParsedSpec = {
svgPath,
introduction,
summary,
terminology,