Skip to content

Commit

Permalink
Update highlight.js call in prerender to use highlight 10.7.0 (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira authored Mar 25, 2021
1 parent 1fd22cc commit 12728fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converter/html/prerender.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function js_prerender_highlight(hs::String)::String
# un-escape code string
cs = html_unescape(cs) |> escape_string
# add to content of jsbuffer
write(jsbuffer, """console.log("<pre><code class=\\"$lang hljs\\">" + hljs.highlight("$lang", "$cs").value + "</code></pre>");""")
write(jsbuffer, """console.log("<pre><code class=\\"$lang hljs\\">" + hljs.highlight("$cs", {'language': "$lang"}).value + "</code></pre>");""")
# in between every block, write $splitter so that output can be split easily
i == length(matches)-1 || write(jsbuffer, """console.log('$splitter');""")
end
Expand Down

0 comments on commit 12728fb

Please sign in to comment.