function Str(el) quarto.log.output("Found text: " .. el.text) -- Debug line if el.text:find("Leandre") then quarto.log.output("Found Leandre!") -- Debug line el.text = el.text:gsub("Leandre", "Léandre") end return el end return { {'Str', Str} }