preserve header for pandoc formats

pull/376/head
Shuhei Kadowaki 2020-06-14 20:57:37 +09:00
parent 2a509d8f96
commit 676ecc64f9
2 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,7 @@ Base.@kwdef mutable struct Pandoc2HTML <: HTMLFormat
fig_pos = nothing
fig_env = nothing
# specials
preserve_header = true
template_path = nothing
stylesheet_path = nothing
highlight_theme = nothing

View File

@ -49,6 +49,8 @@ Base.@kwdef mutable struct Pandoc <: PandocFormat
out_height = nothing
fig_pos = nothing
fig_env = nothing
# specials
preserve_header = true
end
register_format!("pandoc", Pandoc())
@ -71,6 +73,7 @@ Base.@kwdef mutable struct Pandoc2PDF <: PandocFormat
fig_pos = nothing
fig_env = nothing
# specials
preserve_header = true
header_template = normpath(TEMPLATE_DIR, "pandoc2pdf_header.txt")
pandoc_options = DEFAULT_PANDOC_OPTIONS
end