Merge pull request #376 from JunoLab/avi/preserveheader

preserve header for pandoc formats
avi/docs
Shuhei Kadowaki 2020-06-14 21:33:30 +09:00 committed by GitHub
commit ba5bc9ca08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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