summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/renderers/html.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-12 01:12:44 +0900
committernsfisis <nsfisis@gmail.com>2025-05-12 01:12:44 +0900
commit7d7d518843c4a8681d0e42cd04bad15f3c876015 (patch)
treed606f9e6d879d9816560e01cd64180c5fd127056 /vhosts/blog/nuldoc-src/renderers/html.ts
parent9c5a5ca26a4b2cd7cef1eda65c06de14e45f56e3 (diff)
downloadnsfisis.dev-7d7d518843c4a8681d0e42cd04bad15f3c876015.tar.gz
nsfisis.dev-7d7d518843c4a8681d0e42cd04bad15f3c876015.tar.zst
nsfisis.dev-7d7d518843c4a8681d0e42cd04bad15f3c876015.zip
feat(blog/nuldoc): support more HTML elements
Diffstat (limited to 'vhosts/blog/nuldoc-src/renderers/html.ts')
-rw-r--r--vhosts/blog/nuldoc-src/renderers/html.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/vhosts/blog/nuldoc-src/renderers/html.ts b/vhosts/blog/nuldoc-src/renderers/html.ts
index b9336b53..6c8170ed 100644
--- a/vhosts/blog/nuldoc-src/renderers/html.ts
+++ b/vhosts/blog/nuldoc-src/renderers/html.ts
@@ -31,8 +31,12 @@ function getDtd(name: string): Dtd {
return { type: "block" };
case "canvas":
return { type: "block" };
+ case "caption":
+ return { type: "block" };
case "code":
return { type: "inline" };
+ case "del":
+ return { type: "block" };
case "div":
return { type: "block" };
case "em":
@@ -61,14 +65,18 @@ function getDtd(name: string): Dtd {
return { type: "block" };
case "i":
return { type: "inline" };
- case "img":
- return { type: "block" };
case "li":
return { type: "block" };
case "link":
return { type: "block", auto_closing: true };
+ case "img":
+ return { type: "block" };
+ case "ins":
+ return { type: "block" };
case "main":
return { type: "block" };
+ case "mark":
+ return { type: "inline" };
case "meta":
return { type: "block", auto_closing: true };
case "nav":
@@ -101,6 +109,8 @@ function getDtd(name: string): Dtd {
return { type: "block" };
case "tfoot":
return { type: "block" };
+ case "th":
+ return { type: "block" };
case "thead":
return { type: "block" };
case "time":