diff options
| -rw-r--r-- | vhosts/blog/TODO | 1 | ||||
| -rw-r--r-- | vhosts/blog/nuldoc-src/ndoc/to_html.ts | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/vhosts/blog/TODO b/vhosts/blog/TODO deleted file mode 100644 index 5fc3ca6e..00000000 --- a/vhosts/blog/TODO +++ /dev/null @@ -1 +0,0 @@ -`./content/posts/<date>/<slug>/` 以下に置いた画像が `./public/` にコピーされない。 diff --git a/vhosts/blog/nuldoc-src/ndoc/to_html.ts b/vhosts/blog/nuldoc-src/ndoc/to_html.ts index ddb041d5..2ca11a93 100644 --- a/vhosts/blog/nuldoc-src/ndoc/to_html.ts +++ b/vhosts/blog/nuldoc-src/ndoc/to_html.ts @@ -27,7 +27,7 @@ export default function toHtml(doc: Document): Document { } function removeUnnecessaryTextNode(doc: Document) { - const g = (n: Node) => { + forEachChildRecursively(doc.root, (n) => { if (n.kind !== "element") { return; } @@ -52,10 +52,7 @@ function removeUnnecessaryTextNode(doc: Document) { changed = true; } } - - forEachChild(n, g); - }; - forEachChild(doc.root, g); + }); } function transformSectionIdAttribute(doc: Document) { |
