function Div(el)
if el.attributes.macro == nil then
return el
end
if el.attributes.macro == 'refs' and el.content[1].tag == 'BulletList' then
local newchildren = pandoc.List()
newchildren:insert(pandoc.RawBlock('html', '
'))
for k, children in ipairs(el.content[1].content) do
newchildren:insert(pandoc.RawBlock('html', '- '))
newchildren:extend(children)
newchildren:insert(pandoc.RawBlock('html', '
'))
end
newchildren:insert(pandoc.RawBlock('html', '
'))
el.content = newchildren
end
return el.content
end