[openstreetmap/openstreetmap-website] Nested lists are incorrectly displayed in user messaging interface (#2103)

Andy Allan notifications at github.com
Wed Jan 9 09:01:07 UTC 2019


> We use https://rubygems.org/gems/redcarpet for our markdown formatting so any issues with it are largely outside our control.

Unfortunately redcarpet appears to be largely unmaintained, and it contains multiple unfixed bugs regarding parsing markdown lists (e.g. https://github.com/vmg/redcarpet/issues/655 and https://github.com/vmg/redcarpet/issues/623).

> Also everybody knows that there is no "one" markdown - what we link to is just a convenience for some hints because there is no definitive spec.

Indeed, but there's a difference between different interpretations of markdown, and bugs in the parsing library. For example, the gist posted by @nachanon renders fine with the original markdown, and also the commonmark parser at https://spec.commonmark.org/dingus/ - so I think that our broken parsing is something that we should try to fix.

Jekyll (and therefore github pages) no longer use redcarpet but instead use [kramdown](https://github.com/gettalong/kramdown) as their default markdown parser. Perhaps we could do the same?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2103#issuecomment-452621142
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190109/2d6fa401/attachment-0001.html>


More information about the rails-dev mailing list