rustacean-station / rustacean-station.org

Home of the Rustacean Station podcast
https://rustacean-station.org
209 stars 27 forks source link

work around Kramdown parsing bug #177

Closed ericseppanen closed 1 year ago

ericseppanen commented 1 year ago

Certain patterns within links get eaten by some markdown parsers. Usually the offending text are links which contain square brackets and colons, that occur alone in a list item. If you look at the page for this episode, this text and its link are currently missing.

Work around the bug by introducing a zero-length space character at the beginning of the list item. I verified that this seems to work on some versions of Kramdown (1.2.0 as used by babelmark; 1.10.0 as used by trykramdown.herokuapp.com).

This is my second try (previous), and I'm still somewhat unsure whether this will work because I don't know how to test with exactly the same version that might be used to generate the site.

Is there more testing that should be done? Or does this seem plausible enough to just merge and see if it works on the live site?

I could also search for more instances of this glitch, but it would be nice to figure out a way to fix this instead of inserting gross workarounds wherever it occurs.