From aa61b6069f9552e765033e67223049bc2156916b Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 15 Feb 2023 22:25:57 +0100 Subject: Fix --- filters/code.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'filters') diff --git a/filters/code.lua b/filters/code.lua index 2d6e5a5..41da4d7 100644 --- a/filters/code.lua +++ b/filters/code.lua @@ -3,12 +3,12 @@ local common = require 'filters.lib.common' function CodeBlock(el) if el.classes[1] == "plain" then el = pandoc.Div({ el }, { class = 's-code' }) - elseif el.classes[1] then - local formatted = pandoc.pipe('pygmentize', { - '-l', el.classes[1], '-f', 'html', '-O', 'cssclass=s-code s-code--highlight', - }, el.text) - - if formatted then el = pandoc.RawBlock('html', formatted) end + -- elseif el.classes[1] then + -- local formatted = pandoc.pipe('pygmentize', { + -- '-l', el.classes[1], '-f', 'html', '-O', 'cssclass=s-code s-code--highlight', + -- }, el.text) + -- + -- if formatted then el = pandoc.RawBlock('html', formatted) end end return common.wide(el) -- cgit v1.2.3-70-g09d2