Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettifier is removing escape characters #49

Open
jjspace opened this issue Feb 22, 2021 · 5 comments
Open

Prettifier is removing escape characters #49

jjspace opened this issue Feb 22, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@jjspace
Copy link

jjspace commented Feb 22, 2021

If I intentionally escape the asterisk like \* because I want a plaintext * in my file, running the Prettifier removes this causing it to become an emphasis character thus changing the formatting of my file.

@cristianvasquez cristianvasquez added the bug Something isn't working label Feb 24, 2021
@dariuszkowalski-com
Copy link

+1

@SirSpidey
Copy link

It appears to also do this for # and then puts the text after that hash into the frontmatter when you run update.

For example, body has \#12 of 36

  1. Run Update fields
  2. The backslash escape is removed, leaving #12 of 36.
  3. Run Update fields again
  4. - '#12' is added to the tags frontmatter

@danil-tolkachev
Copy link

It also removes escape character from \_.

@jjspace
Copy link
Author

jjspace commented Apr 14, 2021

Also applies to the \| escape which can be used in table links to provide an alias as reported in #20

@Icelk
Copy link

Icelk commented Sep 28, 2021

Should removing \ be completely removed?
It also happens here: \[\[, when you want to have [[ in the document without ruining syntax highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants