mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 19:56:43 +00:00
Instead of taking the whole inline element, forcing users to destructure it themselves, the components of the elements are passed to the filtering functions.
12 lines
198 B
Lua
12 lines
198 B
Lua
return {
|
|
{
|
|
Str = function (str)
|
|
if str == "{{helloworld}}" then
|
|
return pandoc.Emph {pandoc.Str "Hello, World"}
|
|
else
|
|
return pandoc.Str(str)
|
|
end
|
|
end,
|
|
}
|
|
}
|