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.
26ms
0.32ms
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
""")