summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/djot/djot2ndoc.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vhosts/blog/nuldoc-src/djot/djot2ndoc.ts')
-rw-r--r--vhosts/blog/nuldoc-src/djot/djot2ndoc.ts3
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",