mirror of https://github.com/mpastell/Weave.jl
preserve header for pandoc formats
parent
2a509d8f96
commit
676ecc64f9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue