HappenApps / Quiver

Quiver documentation and issue tracker
2.26k stars 109 forks source link

Text to markdown operation unnecessarily converts characters #1220

Open PatrickF1 opened 5 years ago

PatrickF1 commented 5 years ago

I've been converting many of my text notes to markdown and noticed that for the most part, the conversion works fine but some characters get backslash-escaped unnecessarily. I understand that # and * are part of markdown syntax so need to be escaped. But why < > and \ ?It's not a huge deal but I I have about 400 text notes left to convert so...Also I imagine people will use these symbols quite regularly in their notes, e.g. in math courses.

Repro: paste the following into a text cell and convert it to markdown. Everything should get escaped.

>
<
\

Thanks for reading Yaogang!

ylian commented 5 years ago

These symbols are all part of the Markdown syntax, and that's why they are escaped.

But of course that's not what the user wants in this case. Quiver should detect that the cell content is actually plain-text thus shouldn't do any conversion at all.

ylian commented 5 years ago

Actually there is an easy solution in this case: export the notes as plain-text, then import them as Markdown.