pull/453/merge
Likan Zhan 2022-06-21 09:06:11 +02:00 committed by GitHub
commit 73752ac5ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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)
# ---------------------