https://github.com/answerdotai/mistlefoot
Extended markdown features for mistletoe, including subscript, superscript, highlighting, emojis, footnotes, task lists, and more.
https://github.com/answerdotai/mistlefoot
Last synced: 7 days ago
JSON representation
Extended markdown features for mistletoe, including subscript, superscript, highlighting, emojis, footnotes, task lists, and more.
- Host: GitHub
- URL: https://github.com/answerdotai/mistlefoot
- Owner: AnswerDotAI
- License: apache-2.0
- Created: 2026-01-19T21:54:07.000Z (24 days ago)
- Default Branch: main
- Last Pushed: 2026-01-28T07:16:32.000Z (16 days ago)
- Last Synced: 2026-01-28T19:31:08.489Z (15 days ago)
- Language: Jupyter Notebook
- Homepage: https://answerdotai.github.io/mistlefoot/
- Size: 397 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# mistlefoot
## Installation
``` bash
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
``` python
from IPython.display import HTML,Markdown,display
from mistletoe import markdown
```
``` python
markdown('**aa**', ExtendedHtmlRenderer)
```
'
aa
\n'
``` python
def render_md(md): return HTML(markdown(md, ExtendedHtmlRenderer))
def print_md(md): print(markdown(md, ExtendedHtmlRenderer))
```
``` python
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:**
``` python
render_md("H~2~O and E=mc^2^")
```
H2O and E=mc2
**Emojis:**
``` python
render_md("Great work! :tada: :100:")
```
Great work! đ đ¯
**Footnotes:**
``` python
render_md("""Here's a claim[^1].
[^1]: This is the supporting reference.""")
```
Here's a claim[1].
**Heading attributes:**
``` python
print_md('#### Section {#my-id .important data-level=\"1\"}')
```
Section
## Contributing
By Jeremy Howard. Copyright ÂŠī¸ fast.ai 2026 onwards. Contributions
welcome.