fix no highlight style error on pandoc2(html|pdf) output

pull/347/head
Shuhei Kadowaki 2020-05-24 16:18:58 +09:00
parent 125d73982e
commit 39d3d8d91c
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ get_stylesheet(::Nothing) = get_stylesheet(normpath(STYLESHEET_DIR, "skeleton.cs
get_stylesheet(path::AbstractString) = read(path, String)
get_highlight_stylesheet(mime, highlight_theme) =
get_highlight_stylesheet(mime, get_highlight_theme(highlight_theme))
get_highlight_stylesheet(mime, highlight_theme::Type{<:Highlights.AbstractTheme}) =
sprint((io, x) -> Highlights.stylesheet(io, mime, x), highlight_theme)
const WEAVE_VERSION = try