pfalcon / zim-desktop-wiki-markdown

pfalcon's fork of Zim desktop wiki project - quick Markdown format support for notebooks, usability improvements, etc. Everything WIP.
http://zim-wiki.org
GNU General Public License v2.0
29 stars 3 forks source link

Making this text italic adds a superfluous slash at the end #8

Open Korodny opened 3 years ago

Korodny commented 3 years ago

Copy/Paste the following text to a page:

(Quelle: https://www.dell.com/support/kbdoc/de-de/000131486/aktualisieren-des-dell-bios-in-einer-linux-oder-ubuntu-umgebung#UpdateBIOS)

Now select that line and make the text italic. The page's sourcecode now looks like this:

*(Quelle: https://www.dell.com/support/kbdoc/de-de/000131486/aktualisieren-des-dell-bios-in-einer-linux-oder-ubuntu-umgebung#UpdateBIOS)*/

That slash at the end shouldn't be there.

pfalcon commented 3 years ago

Ack, I've seen artifacts something like that too (especially on pages converted from Trac). Would be nice if someone fixed that, yeah. The (likely) problem is that Markdown parser used is very adhoc - it's just Zim's original parser repatched to recognize markdown syntax. Instead, one of "industrial-grade" Markdown parser module should be used.