md2gemini icon indicating copy to clipboard operation
md2gemini copied to clipboard

link containing an image loses alt text

Open boringcactus opened this issue 5 years ago • 2 comments

input:

[![example](https://placekitten.com/200/300)](https://example.com)

current output:

=> https://example.com
=> https://placekitten.com/200/300 example [IMG]

ideal output:

=> https://example.com example
=> https://placekitten.com/200/300 example [IMG]

boringcactus avatar Oct 12 '20 18:10 boringcactus

Thanks for filing this! I agree that would be better. I would gladly accept a PR for this, with test cases. Otherwise I will get to it when I can.

makew0rld avatar Oct 12 '20 19:10 makew0rld

after a bit of experimentation, it seems like the LINK_DELIM approach you've taken doesn't gracefully handle what are in this case nested links. i'll throw in a pull request with the test case i drew up, but it seems like it'll take either some clever hack or a deep design change to fix this.

boringcactus avatar Oct 12 '20 20:10 boringcactus