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.7.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for nr.markdown-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e1977a79a41a076787275b064cedf40299dcdc56e28befdd55b0c63ad2207b |
|
MD5 | 3aac598a5f7f80a998a331e10b72e156 |
|
BLAKE2b-256 | 2e5bfc8658dc6424923b6a9d14e3b667f0d636cd83ef95bf943bf90715ba83cc |