Strip more unneeded markup

parent 155514bc
......@@ -21,7 +21,7 @@ Span = function (element)
end
Div = function (element)
if (#element.classes == 1 and hasClass(element, { "mnote" })) then
if (#element.classes == 1 and hasClass(element, { "mnote", "book-content" })) then
return element.content
end
return element
......@@ -30,3 +30,12 @@ end
LineBreak = function ()
return {}
end
Header = function (element)
-- element.attr = {}
return pandoc.Header(element.level, element.content)
end
HorizontalRule = function ()
return {}
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment