udata
udata copied to clipboard
Change markdown parser
Currently udata parses markdown according to the the "original" spec by John Gruber
This implies some ambiguities, as pointed out in the GFM spec here, and lacks some potentially cool features such as tables.
In order to solve the aforementioned ambiguities and implement cool stuff such as better static pages, improved dataset descriptions, etc., I propose a migration towards GitHub Flavoured Markdown (GFM) github/cmark-gfm (spec here)
https://github.com/opendatateam/udata/pull/2341 we might be are already parsing using GFM as a standard
I can confirm that, just tested one example (n°198) from the GFM spec and it does render a table in a post article
Then why on the (old version of the) inventory page on machine learning, lists were not rendered correctly ?
Do you mean that what you see on the backend is different from what is rendered on the front-end ? I don't have access to the production backend
I know that there are at least two markdown parsers, that might be the reason you're seeing a difference. As to why the front-end parser doesn't understand this list, it might be that its GFM implementation is wrong or incomplete.
However it does support tables ! ✨ I can't really help further but thanks to you I'll be styling the tables for the redesigned version