From 09c6b3c2bbb61dee90e8aaab5cc5fb238623045e Mon Sep 17 00:00:00 2001 From: mitchelloharawild Date: Mon, 11 Dec 2023 16:54:27 +1100 Subject: [PATCH] Added explicit handling of category metadata Resolves #24 --- inst/question.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/inst/question.lua b/inst/question.lua index 4671866..c58d548 100644 --- a/inst/question.lua +++ b/inst/question.lua @@ -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([[%s]], v) end + if k=='category' then v = string.format([[$course$/%s]], v) end table.insert(question, pandoc.RawBlock('html', string.format([[<%s>%s]], k, v, k))) end end