md2gemini
md2gemini copied to clipboard
link containing an image loses alt text
input:
[](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]
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.
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.