JoelOtter / kajero

Interactive JavaScript notebooks with clever graphing
Other
1.87k stars 110 forks source link

Editor not keeping escaped characters #40

Closed tvand7093 closed 8 years ago

tvand7093 commented 8 years ago

First off, AMAZING project! 👍

While playing around with the editor today I noticed that if I typed a letter that would need escaping, such as '[' then it would display in the editor just fine. However, when it would show me the markdown it would create, it removed the backslashes thus unescaping the character and breaking the page.

Example

This code is what my markdown file contains.

1. **start** → _program_ EOF
2. **program** → _block_ ENDL
3. **block** → LBRACE \[ _stmts_ \] RBRACE

After generating the html page, I get the following while in edit mode: image

Finally, if I select save and view as markdown, I get the same as what I saw in editor mode.

Expected

I would have expected the square brackets to remain escaped like the original source was, but it seems to remove the backslashes, which causes the page to break if I attempt to regenerate the page.

JoelOtter commented 8 years ago

Confirmed, will look into this.

JoelOtter commented 8 years ago

OK, @tvand7093 this should be fixed now. Let me know if you have any more issues.