insert, for Markdown-IT-py
Project description
This is a plugin for the Python implementation of Markdown-IT (a CommonMark parser) that provides insert (<ins>) via double pluses (++).
Example usage:
>>> from markdown_it import MarkdownIt
>>> from minchin.md_it.insert import insert_plugin
>>> md = MarkdownIt().use(insert_plugin)
>>> md.render("I ++added++ this")
'<p>I <ins>added</ins> this</p>\\n'
>>> md.render("this++text\\\\ has\\\\ spaces++")
'<p>this<ins>text\\ has\\ spaces</ins></p>\\n'
Tests can be run using pytest.
This is ported from hasgeek’s Funnel, under the AGPL-3.0 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minchin_md_it_insert-1.0.0.tar.gz.
File metadata
- Download URL: minchin_md_it_insert-1.0.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23999e35150397faddbb2022492f4fbcdf792c7076a16a141b7c3d23ce7e230c
|
|
| MD5 |
589f72e66244c8af99e2c5e15487c2ac
|
|
| BLAKE2b-256 |
3e8d5b1b89124dbd0d7958c9340787cdbfff3b0f5b91220cab27912f20332e92
|
File details
Details for the file minchin_md_it_insert-1.0.0-py3-none-any.whl.
File metadata
- Download URL: minchin_md_it_insert-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b40879128ee1dde192d9d36dc08a4790dd38352234982251cbe89b3ebf0ea1a
|
|
| MD5 |
5d983b91dd578e96ec1c32483421a4b9
|
|
| BLAKE2b-256 |
ee87220fc2c9a3b4f403c8b38cf20a380db0f727d04e70e8f73e22493142b0f2
|