From bc93fa20d44baf31a11e222e567d994d6ae19858 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 1 Apr 2023 20:03:16 +0900 Subject: feat(nuldoc): support tag --- nuldoc-src/docbook/to_html.ts | 1 + nuldoc-src/renderers/html.ts | 2 ++ 2 files changed, 3 insertions(+) (limited to 'nuldoc-src') diff --git a/nuldoc-src/docbook/to_html.ts b/nuldoc-src/docbook/to_html.ts index 5b6dfa1..4add912 100644 --- a/nuldoc-src/docbook/to_html.ts +++ b/nuldoc-src/docbook/to_html.ts @@ -26,6 +26,7 @@ export default function toHtml(doc: Document): Document { transformElementNames(doc, "literal", "code"); transformElementNames(doc, "orderedlist", "ol"); transformElementNames(doc, "para", "p"); + transformElementNames(doc, "superscript", "sup"); transformAttributeNames(doc, "xml:id", "id"); transformAttributeNames(doc, "xl:href", "href"); transformSectionIdAttribute(doc); diff --git a/nuldoc-src/renderers/html.ts b/nuldoc-src/renderers/html.ts index 6cf632c..e4261a3 100644 --- a/nuldoc-src/renderers/html.ts +++ b/nuldoc-src/renderers/html.ts @@ -83,6 +83,8 @@ function getDtd(name: string): Dtd { return { type: "block" }; case "span": return { type: "inline" }; + case "sup": + return { type: "inline" }; case "table": return { type: "block" }; case "tbody": -- cgit v1.2.3-70-g09d2