satsuki-thyme / mdparse.js

Markdown を HTML に変換する JavaScript のライブラリです。 (A JavaScript library that converts Markdown to HTML.)
GNU General Public License v3.0
0 stars 0 forks source link

Image file names containing underscore (and perhaps other codes) converts to <em> #2

Open pzelchenko opened 1 month ago

pzelchenko commented 1 month ago

I found that if you specify an image like this, with underscores in the file name:

![Description](this_is_an_image_file.bmp)

it will parse to:

<img src="this<em>is</em>an<em>image</em>file.bmp" alt="Description"> :before </img>

And of course it will not find the file, for obvious reasons. Perhaps the check for emphasis should come after the check for file names? A temporary workaround is to escape underscores in file names like \_ but it's a pain.

satsuki-thyme commented 1 day ago

We are aware of the problem, please be patient while we work to fix it, and of course we appreciate your feedback.