diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-06 16:12:27 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-06 16:12:27 +0900 |
| commit | 21136ab8db7572c527726f93009b4b72bf00f9a9 (patch) | |
| tree | 34805d49d55af7ac58e5b87d224de43fb7819c73 /vhosts/blog/nuldoc-src/djot/djot2ndoc.ts | |
| parent | 83c58924bfd9f22ef4ff84fd3439535e4753ec53 (diff) | |
| download | nsfisis.dev-21136ab8db7572c527726f93009b4b72bf00f9a9.tar.gz nsfisis.dev-21136ab8db7572c527726f93009b4b72bf00f9a9.tar.zst nsfisis.dev-21136ab8db7572c527726f93009b4b72bf00f9a9.zip | |
feat(blog/nuldoc): implement codeblock filename
Diffstat (limited to 'vhosts/blog/nuldoc-src/djot/djot2ndoc.ts')
| -rw-r--r-- | vhosts/blog/nuldoc-src/djot/djot2ndoc.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vhosts/blog/nuldoc-src/djot/djot2ndoc.ts b/vhosts/blog/nuldoc-src/djot/djot2ndoc.ts index 07071441..55b63a0d 100644 --- a/vhosts/blog/nuldoc-src/djot/djot2ndoc.ts +++ b/vhosts/blog/nuldoc-src/djot/djot2ndoc.ts @@ -130,6 +130,9 @@ function processCodeBlock(node: DjotCodeBlock): Element { if (node.lang) { attributes.set("language", node.lang); } + if (node.attributes?.filename) { + attributes.set("filename", node.attributes.filename); + } return { kind: "element", name: "codeblock", |
