Markdown extension: a classier syntax for admonitions
Project description
markdown-callouts
Extension for Python-Markdown: a classier syntax for admonitions
Installation
pip install markdown-callouts
If using MkDocs, enable the extension in mkdocs.yml:
markdown_extensions:
- callouts
Continue to the documentation site.
Usage
This adds a new block-level syntax to Markdown, to put a paragraph of text into a block that's specially highlighted and set apart from the rest of the text.
Example:
NOTE: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa.
Result, using mkdocs-material:
Graceful degradation
This extension produces the same results as the admonition extension, but with a syntax that is much less intrusive and has a very reasonable fallback look for "vanilla" renderers.
E.g. compare what you would've seen above if we actually wrote that Markdown and fed it to GitHub's Markdown parser:
"Callouts" syntax |
---|
NOTE: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa. |
"Admonition" syntax |
!!! note
|
Continue to the documentation site.
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
Built Distribution
File details
Details for the file markdown-callouts-0.2.0.tar.gz
.
File metadata
- Download URL: markdown-callouts-0.2.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.7 Linux/5.14.15-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff9da9f713ff784691e9e57ca10acf08d01fe9fea7546a745c831cfd83797f59 |
|
MD5 | 759efc04788694bdb888f025dc43e6f6 |
|
BLAKE2b-256 | 7682b97ec1a86c23a0be1cad2b674d84f18f467d3f86263f7737e2e69e75f015 |
Provenance
File details
Details for the file markdown_callouts-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: markdown_callouts-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.7 Linux/5.14.15-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d76b2ef1327ef75c2b5c9ee6e8dc1781aeace9f334b22b57716042a4051c61b7 |
|
MD5 | d9b499853ad6b27556a356e65a609573 |
|
BLAKE2b-256 | 1b553c35ee0d7aa6a8812114f27792de12ed0c54710e59baded37824c259fc82 |