Mizu written by rust and used pulldown-cmark.
pip install mizu
Or
pip install "mizu @ git+https://github.com/tuna2134/mizu"
These performance test codes are in tests.
- 3.10:
26ms
- 3.11:
0.32ms
- 3.12:
0.002ms
Basic:
from mizu import Mizu
md = Mizu()
md.parse("# Hello tuna2134")
Extension:
from mizu import Mizu, Options
md = Mizu(Options(tasklists=True))
md.parse("""
[ ] - hello
[ ] - hi
""")