Open lread opened 1 year ago
Any tips on what flexmark-java extension points I would need to explore to add support for this syntax?
I stumbled on babelmark3 and noticed that it shows flexmark-java is rendering as I would expect, but it is using flexmark-java version 0.50.44
.
I'll retry my test above with this old version and report back.
Ah interesting:
expected:
<p><a href="http://www.example.com/index.html"><img src="https://picsum.photos/200" alt="alt text" /></a></p>
flex-mark v0.5.44 :heavy_check_mark:
<p><a href="http://www.example.com/index.html"><img src="https://picsum.photos/200" alt="alt text" /></a></p>
flex-mark v0.64.0 :x:
<p>[<img src="https://picsum.photos/200" alt="alt text" />]<a href="http://www.example.com/index.html">target-url</a></p>
I'll sample some other releases:
flexmark v0.50.50 :heavy_check_mark: (the last 0.50.x release)
<p><a href="http://www.example.com/index.html"><img src="https://picsum.photos/200" alt="alt text" /></a></p>
flexmark v0.60.0 :heavy_check_mark: (the first 0.60.x release)
<p><a href="http://www.example.com/index.html"><img src="https://picsum.photos/200" alt="alt text" /></a></p>
flexmark v0.60.2 :heavy_check_mark: (the last 0.60.x release)
<p><a href="http://www.example.com/index.html"><img src="https://picsum.photos/200" alt="alt text" /></a></p>
flexmark v0.61.0 :heavy_check_mark: (the fist 0.61.x release)
<p><a href="http://www.example.com/index.html"><img src="https://picsum.photos/200" alt="alt text" /></a></p>
flexmark v0.61.34 :x: (the last 0.61.x release)
<p>[<img src="https://picsum.photos/200" alt="alt text" />]<a href="http://www.example.com/index.html">target-url</a></p>
Ok, it looks like the expected behaviour last occurred for:
flexmark v0.61.24 :heavy_check_mark:
<p><a href="http://www.example.com/index.html"><img src="https://picsum.photos/200" alt="alt text" /></a></p>
And first changed to current behaviour for:
flexmark v0.61.26 :x:
<p>[<img src="https://picsum.photos/200" alt="alt text" />]<a href="http://www.example.com/index.html">target-url</a></p>
Relevant commit log: https://github.com/vsch/flexmark-java/compare/0.61.24...0.61.26
@vsch I am happy to help in any way that makes sense to you here. When you find a moment, please let me know what you think.
Oops me referencing this issue in a commit closed it, re-opening!
@vsch I'm wondering if I should take a stab at a PR here, but before I invest that effort:
Describe the bug
First, thanks so much for flexmark-java! We've been using it for ages to render markdown for cljdoc.
One of our users reported that an
.md
doc he had authored was rendering image links oddly.To Reproduce I thought maybe we might just not have the right options set for flexmark-java. And that might still be the case.
Here's a minimal reproduction of what we are seeing using
flexmark-all
v0.64.0:Expected behavior I would have expected to see:
This is how GitHub renders this (I pasted the example above here):
and also how the CommonMark demo/try-it feature does.
Resulting Output But I see instead:
What do you think? Are we missing some config option/extension? Is the markdown technically valid?
Many thanks in advance for any help you can provide.