Skip to main content

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


Download files

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

Source Distribution

minchin_md_it_insert-1.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

minchin_md_it_insert-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for minchin_md_it_insert-1.0.0.tar.gz
Algorithm Hash digest
SHA256 23999e35150397faddbb2022492f4fbcdf792c7076a16a141b7c3d23ce7e230c
MD5 589f72e66244c8af99e2c5e15487c2ac
BLAKE2b-256 3e8d5b1b89124dbd0d7958c9340787cdbfff3b0f5b91220cab27912f20332e92

See more details on using hashes here.

File details

Details for the file minchin_md_it_insert-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for minchin_md_it_insert-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b40879128ee1dde192d9d36dc08a4790dd38352234982251cbe89b3ebf0ea1a
MD5 5d983b91dd578e96ec1c32483421a4b9
BLAKE2b-256 ee87220fc2c9a3b4f403c8b38cf20a380db0f727d04e70e8f73e22493142b0f2

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