mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-09 21:42:15 +00:00
Using a Data URI as an image source doesn't work #129
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JeroenVogelpoel on GitHub (Aug 2, 2017).
As shown here, Markdig does not render an image with a data URI as an actual image.
The expected output is an IMG tag with the SRC attribute set to the non-URI contents given in the example and an ALT text of 'hello'.
Would it be possible and realistic that the support of data URIs for images can be enabled in Markdig?
Thanks in advance!
@xoofx commented on GitHub (Aug 2, 2017):
The problem is that CommonMark specs are not allowing any spaces/linebreaks in the URL. If you remove spaces from your data url, it will just work. So I'm afraid that this cannot be supported.
@JeroenVogelpoel commented on GitHub (Aug 3, 2017):
Yep, removing the whitespace seems to fix it.
Works good for me, thanks!