added coding-age-ai, regenerated.

This commit is contained in:
Nicole Dresselhaus
2025-06-26 23:06:34 +02:00
parent e3166c01ae
commit 2ba3c00de4
41 changed files with 6378 additions and 744 deletions

View File

@ -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(),