Skip to main content

Extended markdown features for mistletoe, including subscript, superscript, highlighting, emojis, footnotes, task lists, and more.

Project description

mistlefoot

Installation

pip install mistlefoot

Features

  • Subscript & Superscript: H~2~O and E=mc^2^
  • Highlighting: ==marked text==
  • Strikethrough: ~~deleted text~~
  • Emojis: :smile: :rocket: :heart: (50+ supported)
  • Auto-linking: URLs automatically become clickable links
  • Footnotes: Reference[^1] with definitions
  • Task lists: GitHub-style checkboxes
  • Heading attributes: Add IDs, classes, and custom attributes to headings

Usage

from IPython.display import HTML,Markdown,display
from mistletoe import markdown
markdown('**aa**', ExtendedHtmlRenderer)
'<p><strong>aa</strong></p>\n'
def render_md(md): return HTML(markdown(md, ExtendedHtmlRenderer))
def  print_md(md):       print(markdown(md, ExtendedHtmlRenderer))
markdown_text = """
#### My Document {#intro .important}

This is **H~2~O** and ==highlighted text==.

Check out https://fast.ai :rocket:

- [x] Done
- [ ] Todo
"""

render_md(markdown_text)

My Document

This is H2O and highlighted text.

Check out https://fast.ai 🚀

  • Done
  • Todo

Examples

Scientific notation:

render_md("H~2~O and E=mc^2^")

H2O and E=mc2

Emojis:

render_md("Great work! :tada: :100:")

Great work! 🎉 💯

Footnotes:

render_md("""Here's a claim[^1].

[^1]: This is the supporting reference.""")

Here's a claim[1].

1 This is the supporting reference.

Heading attributes:

print_md('#### Section {#my-id .important data-level=\"1\"}')
<h4 id="my-id" class="important" data-level="1">Section</h4>

Contributing

By Jeremy Howard. Copyright ©️ fast.ai 2026 onwards. Contributions welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mistlefoot-0.0.9.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mistlefoot-0.0.9-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file mistlefoot-0.0.9.tar.gz.

File metadata

  • Download URL: mistlefoot-0.0.9.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for mistlefoot-0.0.9.tar.gz
Algorithm Hash digest
SHA256 b458ff1a2dddec1a1cc057e51c230e50224183d7c2a339a3edcd35559a4c6d9f
MD5 623d29fc0ff996bd854d3e50cb919c6d
BLAKE2b-256 47110f8498e80c5f7be9bc0683f38bcde4944d042cbe4f860f4aefe49a83f871

See more details on using hashes here.

File details

Details for the file mistlefoot-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: mistlefoot-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for mistlefoot-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 7c7f11c98362ba4c5c5fb24d962c5cb94ea330ee4e6f957271c8960c8bd2ec8d
MD5 3d3ddc93f9008d6ccbfbaf848f28e7a2
BLAKE2b-256 405a3b5b7ef2076df3380dbfbd84055a92dc28a4981f9a3b2f2c54b7413985d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page