Mistune
概要
Python の Markdown Parser実装の一つ
割にカスタマイズ性が良い
昔はドキュメントが微妙だったようだが、現在はちゃんとドキュメントが存在しており、サンプルもちゃんとあるので、Pythonの実装が読めるなら問題なく利用できる
他にも選択肢がある中でこれを利用しているのは、自分が利用している Sphinxのtheme である Shibuya 、や 認証用ライブラリのAuthlib と同じ作者の物であるから。
ドキュメンテーションとか実装とかのポイントが似ていて使いやすい。
公式サイト
https://mistune.lepture.com/en/latest/index.html
その他のPython Markdown Parser
Python でのMarkdown Parser は他にもいろいろある
2025年現在時点でメンテナンスされている物には以下等がある
- marko: https://github.com/frostming/marko
- mistletoe: https://github.com/miyuchina/mistletoe
- Python-Markdown: https://python-markdown.github.io/
- markdown-it-py: https://github.com/executablebooks/markdown-it-py
