{"repo":"frostming/marko","free":true,"listed":false,"github":"https://github.com/frostming/marko","clone":"git clone https://github.com/frostming/marko.git","description":"A markdown parser with high extensibility.","language":"Python","stars":463,"topics":["markdown","commonmark","parser","regexp","extensible"],"license":"MIT","category":"productivity","readme_excerpt":"𝓜𝓪𝓻𝓴𝓸 A markdown parser with high extensibility. [ ][spec] Marko is a pure Python markdown parser that adheres to the specifications of [CommonMark's spec v0.31.2][spec]. It has been designed with high extensibility in mind, as detailed in the Extensions section. Marko requires Python 3.9 or higher. Why Marko Of all the Python markdown parsers available, a common issue is the difficulty for users to add their own features. Additionally, both [Python-Markdown][pymd] and [mistune][mistune] do not comply with CommonMark specifications. This has prompted me to develop a new markdown parser. Marko's compliance with the complex CommonMark specification can impact its performance. However, using a parser that does not adhere to this spec may result in unexpected rendering outcomes. According to benchmark results, Marko is three times slower than Python-Markdown but slightly faster than Commonmark-py and significantly slower than mistune. If prioritizing performance over spec compliance is crucial for you, it would be best to opt for another parser. [spec]: https://spec.commonmark.org/0.31.2/ [pymd]: https://github.com/waylan/Python-Markdown [mistune]: https://github.com/lepture/mistune [cmpy]: https://github.com/rtfd/CommonMark-py Use Marko The installation is very simple: $ pip install marko And to use it: Marko also provides a simple CLI, for example, to render a document and output to a html file: $ cat my article.md marko my article.html Extensions It is super easy to use a","default_branch":null,"files":null,"tree":[],"storefront":"/r/frostming","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/frostming/marko/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}