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 }}
Repository navigation
$ sequences in special variable values are mangled by preProcessTemplateBody #184
When the replacement is a string, String.prototype.replace treats $$, $&, $` and $' as special patterns. So a $ sequence in a special variable value is rewritten before the frontmatter is parsed.
---
template_title: Budget $$ report
---
creates a note titled Budget $ report, and
---
template_title: Price in $& dollars
---
creates a note titled Price in template_title: Price in $& dollars dollars, because $& inserts the whole matched line.
Passing a function instead, definitionsBlock.replace(firstMatch, () => wrappedString), inserts the string as is.
Activity