Skip to content

Commit

Permalink
Added explicit handling of category metadata
Browse files Browse the repository at this point in the history
Resolves #24
  • Loading branch information
mitchelloharawild committed Dec 11, 2023
1 parent 7f3ff05 commit 09c6b3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inst/question.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function Div (elem)
for k,v in pairs(elem.attributes) do
if k~='type' then
if k=='name' then v = string.format([[<text>%s</text>]], v) end
if k=='category' then v = string.format([[<text>$course$/%s</text>]], v) end
table.insert(question, pandoc.RawBlock('html', string.format([[<%s>%s</%s>]], k, v, k)))
end
end
Expand Down

0 comments on commit 09c6b3c

Please sign in to comment.