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
{{ message }}
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
At the minute, arguments within template files are not subject to escaping. This ultimately hurts the user as the user may genuinely want to include {path} within their template file and not have it replaced by an argument.
Current Behaviour
Given template file foo.md
Article written by \\{author}
and article bar.md
{{#template foo.md author=bar}}
When the above example is compiled, the resulting bar.md looks like
Article written by \\bar
Expected Behaviour
Given template file foo.md
Article written by \\{author}
and article bar.md
{{#template foo.md author=bar}}
When the above example is compiled, the resulting bar.mdshould look like
Article written by {author}
Proposed Changes
Unfortunately, I'm not sure how to implement this behaviour without completely replacing the current replace_all() method from the AhoCorasick crate with another regex that is similar to the way {{#template ...}} is implemented.
The text was updated successfully, but these errors were encountered:
What's the Issue?
At the minute, arguments within template files are not subject to escaping. This ultimately hurts the user as the user may genuinely want to include
{path}
within their template file and not have it replaced by an argument.Current Behaviour
Given template file
foo.md
Article written by \\{author}
and article
bar.md
When the above example is compiled, the resulting
bar.md
looks likeArticle written by \\bar
Expected Behaviour
Given template file
foo.md
Article written by \\{author}
and article
bar.md
When the above example is compiled, the resulting
bar.md
should look likeProposed Changes
Unfortunately, I'm not sure how to implement this behaviour without completely replacing the current
replace_all()
method from theAhoCorasick
crate with another regex that is similar to the way{{#template ...}}
is implemented.The text was updated successfully, but these errors were encountered: