2761a38e53
Instead of taking the whole inline element, forcing users to destructure it themselves, the components of the elements are passed to the filtering functions.
11 lines
198 B
Lua
11 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,
|
|
}
|
|
}
|