benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.7k stars 2.72k forks source link

Help: The input (p) is transcoded #1660

Open jackercc opened 4 years ago

jackercc commented 4 years ago

When input '(p)', the result is not i want get. How can i get original sample?

image

jackercc commented 4 years ago

i can use span to avoid this like (\<span>p\<\/span>) , but why it happen?

jeremyredhead commented 4 years ago

It looks like (p) is one of the "typographic replacements" performed used by stackedit's markdown library, markdown-it It is similar to conversion of (c) to ©, (TM) to ™, etc. It could be disabled in File Properties (in the top-right menu), by adding something like this:

extensions:
  markdown:
    # Disable "typographic replacements" such as (c), (tm), (p)
    typographer: false