Skip to main content

Markdown PyCon

ci documentation pypi version gitter

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)

Source distribution for markdown-pycon 1.0.2
File Size Uploaded
markdown_pycon-1.0.2.tar.gz 28.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for markdown-pycon 1.0.2
File Interpreter ABI Platform
markdown_pycon-1.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page