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 thebs4
packagesmartypants
: Automatically applymisaka.smartypants()
on the input Markdown. Enabled by defaultpygments
: Highlight code blocks with Pygments. Requires thepygments
packageurl-transform
: Transform links and image URLs with a callback function. Enabled by default, but only actually does something if theurl_transform_callback
option is settoc
: 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 theMarkdown.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.6.tar.gz
(6.2 kB
view details)
File details
Details for the file nr.markdown-1.0.6.tar.gz
.
File metadata
- Download URL: nr.markdown-1.0.6.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd775af105fcb8ed04ec077afa95d54643e83ebbfee55690c90c2921f3315603 |
|
MD5 | 14812eecbe2d89ce54fac0bed7515574 |
|
BLAKE2b-256 | 26eb900b4e0b66061fb1379db7979f7e2f3c34a6490a5cb0b3735a87c0dc9e31 |