Replies: 3 comments
-
Ok I've found there is also InlineImageProvider and when I implemented it do parse base64 using SVGkit it started to work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @michzio, MarkdownUI is correctly parsing image references. This code works as expected: Markdown {
"""
![Puppy][ref]
[ref]: https://picsum.photos/id/237/200/300
"""
} I will see how I can add support for base64 images. Thanks for your feedback! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, can you tell me more about how you implemented Base64ImageProivder using SVGKit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have such markdown like:
The Markdown view doesn't render this image at all.
[UPDATE]
Ok MarkdownUI doesn't support base64 images by default but it can be achived by writing custom ImageProvider in MarkdownUI 2.0
like Base64ImageProivder and using some library like SVGKit.
But I've encounter another problem, i.e. MarkdownUI detects only images defined in place like in above markdown
but it doesn't parse images defined via reference like below
Is it possible to fix it this way the above image will be detected and base64 data uri returned to ImageProvider makeImage() function?
Beta Was this translation helpful? Give feedback.
All reactions