summaryrefslogtreecommitdiff
path: root/data/pandoc.lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-10-17 21:45:27 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2017-10-17 21:45:27 +0200
commitcab4f982f3093da9173e452cf25dba455dca03cf (patch)
treed18944d1b2a438ce7561db7ee396a021c34e950b /data/pandoc.lua
parent8aa972d9df4446edc1e89c908556bb6aac2bb3b6 (diff)
pandoc.lua: destructure attr for Link and Image
Make Attr values accessible through through the keys `identifier`, `classes` and `attributes`. This is already used in other elements with attributes and is now fixed for Link and Image.
Diffstat (limited to 'data/pandoc.lua')
-rw-r--r--data/pandoc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua
index 32e593c22..b2e8f9edb 100644
--- a/data/pandoc.lua
+++ b/data/pandoc.lua
@@ -424,7 +424,7 @@ M.Image = M.Inline:create_constructor(
attr = attr or M.Attr()
return {c = {attr, caption, {src, title}}}
end,
- {"attributes", "caption", {"src", "title"}}
+ {{"identifier", "classes", "attributes"}, "caption", {"src", "title"}}
)
--- Create a LineBreak inline element
@@ -449,7 +449,7 @@ M.Link = M.Inline:create_constructor(
attr = attr or M.Attr()
return {c = {attr, content, {target, title}}}
end,
- {"attributes", "content", {"target", "title"}}
+ {{"identifier", "classes", "attributes"}, "content", {"target", "title"}}
)
--- Creates a Math element, either inline or displayed.