Allow user to escape brackets with '\'#22
Allow user to escape brackets with '\'#22lookingfora wants to merge 2 commits intomshang:gh-pagesfrom kevin-albert:gh-pages
Conversation
|
Seems reasonable, but what do you think about making backslash escape everything and not just brackets, with double backslash being a literal backslash, like how it's done in most programming languages? |
I love this app! Please add this functionality to the canon branch! I also need it for tense etc. :) |
Hi, I forked this repo and included this PR since this seems to be abandoned, check it out if you'd like: https://github.com/joshsellers/syntree Here's the GitHub io page for quick access: https://joshsellers.github.io/syntree/ |
6c92188 to
d3364c4
Compare
Brackets are reserved by the syntax tree parser, but some users (such as myself) want to use brackets in node strings (such as to signify that a value is "virtual").
This will ignore brackets preceded with
\when building the tree, then remove backslashes preceding bracket characters before displaying text. Other backslashes will remain unchanged.