mirror of https://github.com/mpastell/Weave.jl
Add `render_chunk` and `render_doc` methods
Add `render_chunk` and `render_doc` methods to `LaTeXMinted` Suppose to correct the error describes in [issue 389](https://github.com/JunoLab/Weave.jl/issues/389)pull/453/head
parent
381de22c7d
commit
02e41f3ab2
|
@ -173,6 +173,15 @@ Base.@kwdef mutable struct LaTeXMinted <: LaTeXFormat
|
|||
escape_closer = reverse(escape_starter)
|
||||
end
|
||||
register_format!("texminted", LaTeXMinted())
|
||||
|
||||
render_chunk(docformat::LaTeXMinted, chunk::DocChunk) = join((render_inline(c) for c in chunk.content))
|
||||
|
||||
function render_doc(docformat::LaTeXMinted, body, doc)
|
||||
return Mustache.render(
|
||||
mt"{{{ :body }}}";
|
||||
body = body
|
||||
)
|
||||
end
|
||||
|
||||
# Tex (directly to PDF)
|
||||
# ---------------------
|
||||
|
|
Loading…
Reference in New Issue