4 ms·
I think this article shoots itself in the foot by suggesting markdown. Wikipedia predates markdown by several years. The only truly “universal” markup language
by kayodelycaon 6y ago
I think this article shoots itself in the foot by suggesting markdown.
Wikipedia predates markdown by several years. The only truly “universal” markup language I know of at the time was bbcode.
Even if markdown has been designed, it’s lacking support for templates and tables that wikis make heavy use of.
Every wiki software I’ve used has had a custom language for one reason or another. Usually good reasons.
- burnte 6y agoAnd also that it says that WikiPedia articles are in an impenetrable, UNPARSABLE format that you can't run scripts against. This is absurd. If it's unparsable, how does Mediawiki manage? because it IS parsable! oh my, in order to work with the content you need to either use the MW parser or write your own. Well, literally everything is like that. just because there aren't 5 different MW parser engines out there doesn't mean it's unparsable. I stopped reading the article early on.
- detaro 6y agoMediawiki manages by having defined "whatever our code does is how it is", and when they needed a second parser for their new WYSIWG editor (because the one in the main Mediawiki code base isn't really usable for other purposes) it added a lot of extra effort and pain. So no, it's not literally "impossible", but a large hurdle to working with it. When I had to deal with mediawiki markup I built all kinds of really ugly tricks that fed markup snippets into a mediawiki instance, parsed the HTML, adjusted the snippets based on that, repeat...
- dredmorbius 6y agoPOSIWID meet POMLIWIR https://en.wikipedia.org/wiki/The_purpose_of_a_system_is_what_it_does https://en.wikipedia.org/wiki/The_purpose_of_a_system_is_wha...
- jwilk 6y agoWhat's POMLIWIR?
- dredmorbius 6y agoThe purpose of a markup language is what it renders.
- deleted 6y ago[deleted]
- anoncake 6y agoIt's imparsable in a similar way to TeX and Perl: There is a program that can process it, good luck creating another.
- bawolff 6y agoThere are two official parsers (original mw, and parsoid, with parsoid being much more of a "real" parser), so people did create another.
- sllabres 6y agonot a bad example nevertheless, but as we are talking about grammar https://github.com/Perl/perl5/blob/blead/perly.y https://github.com/Perl/perl5/blob/blead/perly.y
- karmakaze 6y agoIf there's no grammar for the content that it accepts, I would consider this to be a failing, not fatal but certainly a good point being made.
- msla 6y agoThe problem isn't a lack of grammar, the problem is not having a grammar factored out of one specific codebase which implements the grammar, such that you can't be sure the existing code is doing the right thing except from the trivial standpoint of "this code is defined to be correct" which doesn't provide much of a basis for discussion.
- ChrisLomont 6y agoYou can have unparseable structures that are built upon using special, one time hacks for various cases and things you want out. "Parsing ... is the process of analyzing a string of symbols ... conforming to a formal grammar." [1] Wikipedia content is most definitely not a formal grammar in any usable meaning of the terms. This is why it's a nightmare to work with, and why it's not parseable using the correct meaning of parseable. [1] https://en.wikipedia.org/wiki/Parsing https://en.wikipedia.org/wiki/Parsing
- tinus_hn 6y agoIf you conform to the limitations imposed by markdown Mediawiki syntax is trivially parseable. The hard part is in things that are impossible in markdown.
- blindm 6y ago> Even if markdown has been designed, it’s lacking support for templates and tables that wikis make heavy use of Yeah it would be cool if you could 'inject' arbitrary HTML into markdown to make up for its lack of support for tables
- kayodelycaon 6y agoIf arbitrary html was so great an idea, it would be used a lot more.
- biryani_chicken 6y agoSkip the middleman and just use html directly.
- blindm 6y agoI always liked the Ghost[0] editor, where you write your blogpost with markdown, and then for more trickier stuff, you could add HTML and it would still render beautifully. More of this please! [0] https://en.wikipedia.org/wiki/Ghost_(blogging_platform) https://en.wikipedia.org/wiki/Ghost_(blogging_platform)
- petre 6y agoGhost ditched Markdown long ago. Now it uses some JSON based markup which is awful.
- SmokeyHamster 6y agoMarkdown has supported tables for a very long time... https://riptutorial.com/markdown/example/1741/creating-a-table https://riptutorial.com/markdown/example/1741/creating-a-tab...
- kayodelycaon 6y agoTables were not part of the original spec and are not standardized across all implementations that support them. Once you start extending markdown to support all of the features Wikimedia supports, you end up with the same problem. If mediawiki syntax was as feature-limited as markdown, it would be equally trivial to parse.