HappenApps / Quiver

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

Characters being Escaped when changing cell type from Text to Markdown #1250

Open bemental opened 5 years ago

bemental commented 5 years ago

Hello!

Thanks for writing such a killer app, I’ve been using it daily to take notes while learning how to program.

Currently using 3.2.3 (188) on a 27” 5k iMac, late 2015 running 10.14.2 and am experiencing a reproducible bug regarding changing a text cell to a markdown cell.

While we (patiently!) wait for you to rework the writing engine to allow markdown to be spellchecked properly, I’ve taken habit to writing in text cells and converting them to markdown cells upon completion of the cell.

The bug comes into play specifically when typing in a small snippet of inline code enclosed in backticks, such as: imagePickerController(_:didFinishPickingMediaWithInfo:)

The first time I change the cell type from text -> markdown via keyboard shortcuts provided, the underscore character is escaped so the same snippet of code is displayed as: imagePickerController(\_:didFinishPickingMediaWithInfo:)

Let me know if you need more information.

Have a happy holidays and thank you again for such a great piece of software!

-Andrew

ylian commented 5 years ago

I see. This is indeed a bug. Special Markdown characters inside inline code shouldn't be escaped. Will fix.

bemental commented 5 years ago

Thanks for the response, sorry you're working on Christmas Day!

Probably related, the same escaping happens with markdown header (pound/number signs) when moving from a markdown field -> text field and back, the ## Header Name gets converted to \#\# Header Name

Thanks again, and take care! -Andrew