cristianvasquez / obsidian-prettify

A markdown prettifier for obsidian
GNU General Public License v3.0
129 stars 12 forks source link

Prettifier is removing escape characters #49

Open jjspace opened 3 years ago

jjspace commented 3 years ago

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.

dariuszkowalski-com commented 3 years ago

+1

SirSpidey commented 3 years ago

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 commented 3 years ago

It also removes escape character from \_.

jjspace commented 3 years ago

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

Icelk commented 2 years ago

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