add _extensions

This commit is contained in:
2026-05-21 13:37:53 +08:00
parent 6a9a5fc90e
commit 61bd0bea2f
252 changed files with 33972 additions and 1 deletions
@@ -0,0 +1,24 @@
-- Replace Chinese corner brackets with guillemets for Typst output.
-- The filter is run before citeproc to avoid touching bibliography
--- Copyright: © 2025Present Tom Ben
--- License: MIT License
function Str(el)
if not FORMAT:match('typst') then
return el
end
local replacements = {
[''] = '«',
[''] = '»',
[''] = '',
[''] = ''
}
for original, replacement in pairs(replacements) do
el.text = el.text:gsub(original, replacement)
end
return el
end