Skip to main content

This is a plugin for the Python implementation of Markdown-IT (a CommonMark parser) that provides marked text (<mark>) via double equals (==).

Example usage:

>>> from markdown_it import MarkdownIt
>>> from minchin.md_it.marked import marked_plugin
>>> md = MarkdownIt().use(marked_plugin)
>>> md.render("I ==marked== this")
'<p>I <mark>marked</mark> this</p>\\n'
>>> md.render("this==text\\\\ has\\\\ spaces==")
'<p>this<mark>text\\ has\\ spaces</mark></p>\\n'

Tests can be run using pytest.

This is ported from hasgeek’s Funnel, under the AGPL-3.0 license.

Metadata

Release files for minchin.md-it.marked 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minchin.md-it.marked 1.0.0
File Size Uploaded
minchin_md_it_marked-1.0.0.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for minchin.md-it.marked 1.0.0
File Interpreter ABI Platform
minchin_md_it_marked-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / minchin_md_it_marked-1.0.0.tar.gz

Download URL minchin_md_it_marked-1.0.0.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8f90087edce0459571f29e815d7bd4f7a9578ae4c3d2344c37f09bd0075e16df
BLAKE2b-256 checksum
How to use checksums
6e63a3de1d96093e719fa8732ef24f25999e34bd70e7121b444e5f4a48a6f26b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / minchin_md_it_marked-1.0.0-py3-none-any.whl

Download URL minchin_md_it_marked-1.0.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a61980581654d7504fb58c9d4c7b404724e587039856322988a69ec281ca2013
BLAKE2b-256 checksum
How to use checksums
1a080ab60cfe2aca253e9611cd761059641995eb6676ffa9a9fbef63287d4288
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page