Explorar o código

add html format to ack filter

George C. Privon %!s(int64=7) %!d(string=hai) anos
pai
achega
97b703e420
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      aastex62/filters/acknowledgments.lua

+ 2 - 0
aastex62/filters/acknowledgments.lua

@@ -23,6 +23,8 @@ return {
         if elem.text == "{{acknowledgments}}" then
             if string.find(FORMAT, "latex") then
                 return pandoc.RawInline("tex", "\\acknowledgements")
+            elseif string.find(FORMAT, "html") then
+                return pandoc.RawInline("html", "<h1>Acknowledgements</h1>")
             else
                 return elem
             end