Skip to main content

Extends the misaka Markdown parser and renderer for some nifty features.

Project description

nr.markdown

Extends the misaka Markdown library for a couple of extensions.

  • inside-html: Support Markdown inside HTML tags. Requires the bs4 package
  • smartypants: Automatically apply misaka.smartypants() on the input Markdown. Enabled by default
  • pygments: Highlight code blocks with Pygments. Requires the pygments package
  • url-transform: Transform links and image URLs with a callback function. Enabled by default, but only actually does something if the url_transform_callback option is set
  • toc: Generates a table of contents while rendering, but does not actually render a TOC into the output. The generated TOC data structure can be accessed via the Markdown.toc attribute. Enabled by default

Copyright © 2020 Niklas Rosenstein

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

nr.markdown-1.0.7.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

nr.markdown-1.0.7-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page