Skip to content

Commit 6573efd

Browse files
committed
fix base case
1 parent 4bcd375 commit 6573efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/extensions/quarto/docusaurus/docusaurus_utils.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function code_block(code_block_slot, filename)
7676
if not lang then
7777
lang = 'text'
7878
end
79-
local backticks = string.rep("`", max_backticks(el) + 1)
79+
local backticks = string.rep("`", math.max(3, max_backticks(el) + 1))
8080
local code = "\n" .. backticks .. lang
8181
if codeLineNumbers then
8282
code = code .. " {" .. codeLineNumbers .. "}"

0 commit comments

Comments
 (0)