Skip to content

Commit 37f9059

Browse files
committed
Merge branch 'main' of github.com:quarto-dev/quarto-cli into main
2 parents a1c004b + ead5485 commit 37f9059

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/resources/filters/quarto-pre/callout.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ function latexCalloutBoxDefault(caption, type, icon)
297297

298298
-- generate options
299299
local options = {
300+
breakable = "",
300301
colframe = frameColor,
301302
colbacktitle = color ..'!10!white',
302303
coltitle = 'black',
@@ -320,7 +321,7 @@ function latexCalloutBoxDefault(caption, type, icon)
320321
end
321322

322323
-- the core latex for the box
323-
local beginInlines = { pandoc.RawInline('latex', '\\begin{tcolorbox}[standard jigsaw,' .. tColorOptions(options) .. ']\n') }
324+
local beginInlines = { pandoc.RawInline('latex', '\\begin{tcolorbox}[enhanced jigsaw, ' .. tColorOptions(options) .. ']\n') }
324325
local endInlines = { pandoc.RawInline('latex', '\n\\end{tcolorbox}') }
325326

326327
-- Add the captions and contents
@@ -348,6 +349,7 @@ function latexCalloutBoxSimple(caption, type, icon)
348349

349350
-- generate options
350351
local options = {
352+
breakable = "",
351353
colframe = colorFrame,
352354
colback = 'white',
353355
opacityback = 0,
@@ -360,7 +362,7 @@ function latexCalloutBoxSimple(caption, type, icon)
360362
}
361363

362364
-- the core latex for the box
363-
local beginInlines = { pandoc.RawInline('latex', '\\begin{tcolorbox}[standard jigsaw, ' .. tColorOptions(options) .. ']\n') }
365+
local beginInlines = { pandoc.RawInline('latex', '\\begin{tcolorbox}[enhanced jigsaw, ' .. tColorOptions(options) .. ']\n') }
364366
local endInlines = { pandoc.RawInline('latex', '\n\\end{tcolorbox}') }
365367

366368
-- generate the icon and use a minipage to position it
@@ -864,4 +866,4 @@ end
864866
function displayName(type)
865867
local defaultName = type:sub(1,1):upper()..type:sub(2)
866868
return param("callout-" .. type .. "-caption", defaultName)
867-
end
869+
end

0 commit comments

Comments
 (0)