summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-06-14 18:33:21 +0900
committernsfisis <nsfisis@gmail.com>2025-06-14 18:33:21 +0900
commitdae57f7361eaa6cbbea5b90d64364b0815bcd6cc (patch)
tree41eef7628ace97f5a549dc62d53797a9882b9280
parent19882782f72184cecea8d9007ea1a68a88362071 (diff)
downloadnsfisis.dev-dae57f7361eaa6cbbea5b90d64364b0815bcd6cc.tar.gz
nsfisis.dev-dae57f7361eaa6cbbea5b90d64364b0815bcd6cc.tar.zst
nsfisis.dev-dae57f7361eaa6cbbea5b90d64364b0815bcd6cc.zip
refactor(blog/nuldoc): remove dead code
-rw-r--r--vhosts/blog/nuldoc-src/djot/to_html.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/vhosts/blog/nuldoc-src/djot/to_html.ts b/vhosts/blog/nuldoc-src/djot/to_html.ts
index e2d6a9b6..c765cb07 100644
--- a/vhosts/blog/nuldoc-src/djot/to_html.ts
+++ b/vhosts/blog/nuldoc-src/djot/to_html.ts
@@ -20,7 +20,6 @@ export default async function toHtml(doc: Document): Promise<Document> {
transformSectionTitleElement(doc);
transformNoteElement(doc);
addAttributesToExternalLinkElement(doc);
- setDefaultLangAttribute(doc);
traverseFootnotes(doc);
removeUnnecessaryParagraphNode(doc);
await transformAndHighlightCodeBlockElement(doc);
@@ -242,13 +241,6 @@ function addAttributesToExternalLinkElement(doc: Document) {
});
}
-function setDefaultLangAttribute(_doc: Document) {
- // TODO
- // if (!e.attributes.has("lang")) {
- // e.attributes.set("lang", "ja-JP");
- // }
-}
-
function traverseFootnotes(doc: Document) {
let footnoteCounter = 0;
const footnoteMap = new Map<string, number>();