You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell the escaping needs to be done for Text and [inline] Code AST nodes. CodeBlock must not be escaped.
I tried to write a lua filter to do this:
function Str (str)
str.text = str.text:gsub('+', '{plus}')
return str
end
-- this is an inline code. Standalone code blocks don't need escaping
function Code (code)
code.text = code.text:gsub('+', '{plus}')
return code
end
However, pandoc [correctly] escapes the { with a backslash so you get literal {plus} in the output.
The text was updated successfully, but these errors were encountered:
Pairs of plus signs are used to indicate an "Inline Passthrough" in asciidoc.
Current output:
Correct output:
Here is how asciidoc renders the current incorrect output:
Here is how it should look:
(renderings done with the editor at https://asciidoc.org/)
As far as I can tell the escaping needs to be done for Text and [inline] Code AST nodes. CodeBlock must not be escaped.
I tried to write a lua filter to do this:
However, pandoc [correctly] escapes the
{
with a backslash so you get literal{plus}
in the output.The text was updated successfully, but these errors were encountered: