3 ms·
MediaWiki has one of the worst syntaxes and formalisations out there. I've been trying to render wikipedia pages on and off for more than 10 years and there is
by ysleepy 2y ago
MediaWiki has one of the worst syntaxes and formalisations out there.
I've been trying to render wikipedia pages on and off for more than 10 years and there is no independent parser covering the whole syntax and magic behaviour.
https://www.mediawiki.org/wiki/Alternative_parsers https://www.mediawiki.org/wiki/Alternative_parsers
There is only parsoid, developed for the visual editor and that took pretty much a decade to build with much pain and suffering.
This is not the answer.
- geokon 2y agoYeah, sorry.. i didn't mean to endorse MediaWiki. It did look kinda ugly as well.. haha What do you recommend? It does actually seem that djot has a grammar of sorts.. https://github.com/treeman/tree-sitter-djot/blob/master/grammar.js https://github.com/treeman/tree-sitter-djot/blob/master/gram... (it's designed for a tree sitter.. I'm not super clear if it's globally usable)
- account42 2y agoIt also doesn't help that in practice most wikis install at least some parser extensions.