Extension 2.10.0, study field, German "Abschnitt" for sections; rebuild

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MatsuneMikuroiandClaude Opus 5.5 committed 2026-10-16 23:59:30 +02:00
1 parent f047b9c7ae
commit d74a2e90b4
88 files changed
+874 -437

No files matched your search

+9
View File
@@ -395,6 +395,15 @@ function Meta(m)
stylesheets = { "theme.css", "high-contrast.css", "calc-notes.css", "narrow.css" },
scripts = { "calc-notes.js" },
})
-- The book's study field (`field: math`), for the notes pipeline: the
-- book's badge on the index takes the colour of its field.
if m.field ~= nil then
local field = pandoc.utils.stringify(m.field):lower()
if field:match("^[a-z0-9%-]+$") then
quarto.doc.include_text("in-header",
'<meta name="notes-field" content="' .. field .. '">')
end
end
-- `-src` holds the book's own colour, which theme.css lifts for a dark
-- page rather than replacing; `-dark` is a book's explicit override.
quarto.doc.include_text("in-header", table.concat({