added coding-age-ai, regenerated.
This commit is contained in:
@ -18,6 +18,9 @@ function BlockQuote(el)
|
||||
local firstline = stringify(start.content[1])
|
||||
local _, _, ctype = firstline:find("%[!(%w+)%]")
|
||||
local titlevar = stringify(start.content):match("^%[!%w+%](.-)$")
|
||||
if not ctype then
|
||||
ctype = "note"
|
||||
end
|
||||
if ctype:lower() == "info" then
|
||||
ctype = "note"
|
||||
end
|
||||
@ -29,11 +32,14 @@ function BlockQuote(el)
|
||||
end
|
||||
|
||||
if not has_value({ "note", "warning", "important", "tip", "caution" }, ctype:lower()) then
|
||||
print(ctype + " is no valid quarto-callout. Change or add special case to lua-script.\nForced to 'note'")
|
||||
print(ctype .. " is no valid quarto-callout. Change or add special case to lua-script.\nForced to 'note'")
|
||||
ctype = "note"
|
||||
end
|
||||
|
||||
el.content:remove(1)
|
||||
if #el.content == 0 then
|
||||
el.content = pandoc.List({ pandoc.Para({}) })
|
||||
end
|
||||
-- Create Quarto callout
|
||||
return quarto.Callout({
|
||||
type = ctype:lower(),
|
||||
|
Reference in New Issue
Block a user