diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-04-01 20:03:16 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-04-01 20:03:16 +0900 |
| commit | bc93fa20d44baf31a11e222e567d994d6ae19858 (patch) | |
| tree | 39e1beed0a2b34494aa26257fa3298f28f0369d2 | |
| parent | 45a3b3d41e3637f49b5bb200de66aebd0d5f0a2f (diff) | |
| download | blog.nsfisis.dev-bc93fa20d44baf31a11e222e567d994d6ae19858.tar.gz blog.nsfisis.dev-bc93fa20d44baf31a11e222e567d994d6ae19858.tar.zst blog.nsfisis.dev-bc93fa20d44baf31a11e222e567d994d6ae19858.zip | |
feat(nuldoc): support <sup> tag
| -rw-r--r-- | nuldoc-src/docbook/to_html.ts | 1 | ||||
| -rw-r--r-- | nuldoc-src/renderers/html.ts | 2 |
2 files changed, 3 insertions, 0 deletions
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": |
