Markdown extension to parse `pycon` code blocks without indentation or fences.
Project description
Markdown PyCon
Markdown extension to parse pycon
code blocks without indentation or fences.
Installation
pip install markdown-pycon
Configuration
This extension relies on the Highlight extension of PyMdown Extensions.
Configure from Python:
from markdown import Markdown
Markdown(extensions=["pycon"])
...or in MkDocs configuration file, as a Markdown extension:
# mkdocs.yml
markdown_extensions:
- pycon
Usage
In your Markdown documents, simply write your pycon
code blocks
without indentation or fences (triple backticks):
>>> print("This is a pycon code block")
This is a pycon code block
This will get rendered as:
>>> print("This is a pycon code block")
This is a pycon code block
Doctest flags will be removed from the code lines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
markdown_pycon-1.0.1.tar.gz
(33.4 kB
view details)
Built Distribution
File details
Details for the file markdown_pycon-1.0.1.tar.gz
.
File metadata
- Download URL: markdown_pycon-1.0.1.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02089b53b2056fd844e90e0c0ecd5c5b6f28d24daf313ddbea736fb90e066c32 |
|
MD5 | 890bc9ddf5bb6d3d9278b498b408943c |
|
BLAKE2b-256 | f444bc5b35c24a475b46eb64ca0da6d482bda073cb0a4f189a05d637663c9bde |
File details
Details for the file markdown_pycon-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: markdown_pycon-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 938ac2595c0056c10f497c2bde3e5add06797e485fc83b187b0eacc29a9ef7b2 |
|
MD5 | 52605d47e8a3132b032717d8e262e2a8 |
|
BLAKE2b-256 | 80cb105897f8a5ad9b0d1b41b2175b350f8476c400f65ed232da80879516dadb |