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.
Sponsors
Metadata
Release files for markdown-pycon 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| markdown_pycon-1.0.2.tar.gz | 28.1 kB | Without provenance | Details for markdown_pycon-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| markdown_pycon-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for markdown_pycon-1.0.2-py3-none-any.whl |
Total release size: 37.1 kB
Release files / markdown_pycon-1.0.2.tar.gz
| Download URL | markdown_pycon-1.0.2.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97460945758a3de47e513b6fa747e6c4640eac534ab4a1ff2cc2b71675813b6b
|
|
BLAKE2b-256 checksum How to use checksums |
6255264086a79564e4f5ee6516744efc811fec80a15a61b7c8933b9b843e9567
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / markdown_pycon-1.0.2-py3-none-any.whl
| Download URL | markdown_pycon-1.0.2-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6726863fe93df765d9f57e2bbbc0aef1cdf78185f3978d8a72ed19b2fd64694
|
|
BLAKE2b-256 checksum How to use checksums |
b5a7bb3194baf4d8ce80aea62466d45000c6e270c85be5e328265e9bb2269000
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for markdown-pycon 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.