pegdown
pegdown copied to clipboard
Invalid links clumped together kill all links
In this example, the invalid link is separated from the well-formed link by one newline. When rendered with pegdown, neither links render.
# Test
This has [two][1] [links][2] defined without a line between them. One is invalid.
[1]: invalid link
[2]: https://www.refheap.com/
In this example, the links are separated by two newlines. When rendered with pegdown, the second link renders properly and the first one does not (as expected).
# Test
This has [two][1] [links][2] defined with a line between them. One is invalid.
[1]: invalid link
[2]: https://www.refheap.com/
I use pegdown for rendering markdown on refheap and recently noticed this. Here are a couple of pastes exhibiting the issue:
- https://www.refheap.com/15300 bad
- https://www.refheap.com/15302 good
Click the 'raw' link to see the raw text for each paste.
Blah, github is eating some of the above markdown despite my best efforts to prevent it. Not sure how to fix it. I guess just look at the pastes or click edit on the issue.