Skip to main content

Marked, for Markdown-IT-py

Project description

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.

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_marked-1.0.0.tar.gz (16.9 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_marked-1.0.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file minchin_md_it_marked-1.0.0.tar.gz.

File metadata

  • Download URL: minchin_md_it_marked-1.0.0.tar.gz
  • Upload date:
  • Size: 16.9 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_marked-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8f90087edce0459571f29e815d7bd4f7a9578ae4c3d2344c37f09bd0075e16df
MD5 6c71d555b68dd8c2d79ff96eb6f3cc39
BLAKE2b-256 6e63a3de1d96093e719fa8732ef24f25999e34bd70e7121b444e5f4a48a6f26b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for minchin_md_it_marked-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a61980581654d7504fb58c9d4c7b404724e587039856322988a69ec281ca2013
MD5 32561f188e7b58192f02e494d3e6fe59
BLAKE2b-256 1a080ab60cfe2aca253e9611cd761059641995eb6676ffa9a9fbef63287d4288

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