4 ms·
There is a test suite [1] available, though. Furthermore, the core of MMD is in the PEG grammar [2], which is enough of a specification for me. Compatibility of
by mvzink 14y ago
There is a test suite [1] available, though. Furthermore, the core of MMD is in the PEG grammar [2], which is enough of a specification for me. Compatibility of language subsets is even provable, so specifying a MMD-lite version (which might be the vanilla Markdown features) would be simple. On the other hand, I think its flexibility/sanity is actually a disadvantage for MMD: with the confusion and variability of a spec-free language that is still roughly familiar (i.e. Markdown), people seem more likely to adopt it with their own implementations and customizations.
[1]: https://github.com/fletcher/MMD-Test-Suite https://github.com/fletcher/MMD-Test-Suite
[2]: https://github.com/fletcher/peg-multimarkdown/blob/master/markdown_parser.leg https://github.com/fletcher/peg-multimarkdown/blob/master/ma...
- qznc 14y agoThe grammar is not enough. You also need to specify the output of the HTML transformation.
- Groxx 14y agoThat's just a grammar though. It's meaningless without defining what the result is, because you could use that grammar to output anything. A spec should also (ideally) define all possible behavior, so you know if something is conforming or not.