Skip to content

tuna2134/mizu

Repository files navigation

mizu 💧

Version Downloads Downloads Downloads

Documentation

Mizu written by rust and used pulldown-cmark.

Installation

pip install mizu

Or

pip install "mizu @ git+https://github.com/tuna2134/mizu"

Performance

These performance test codes are in tests.

  • 3.10: 26ms
  • 3.11: 0.32ms
  • 3.12: 0.002ms

Example

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
""")