Skip to main content

Markdown extension to parse `pycon` code blocks without indentation or fences.

Project description

Markdown PyCon

ci documentation pypi version gitpod 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.

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

markdown_pycon-1.0.0.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

markdown_pycon-1.0.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file markdown_pycon-1.0.0.tar.gz.

File metadata

  • Download URL: markdown_pycon-1.0.0.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for markdown_pycon-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bc45650b95ff1a810d76203669fa817d4fd43fb9a4b60a2aaeb6c8ca79b14e07
MD5 1e862382a3ba4e3abda21c83210ee0e1
BLAKE2b-256 a99cc735919a6fc76065dd7f15b9228db49a4c57380239b7fbc99f24d485f566

See more details on using hashes here.

File details

Details for the file markdown_pycon-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for markdown_pycon-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7cef361bd3e4692f5ea1d062e9c457f76f363c2b432ee540c723025d82f472d1
MD5 42d0d983674e9f6b249b8f90065575b9
BLAKE2b-256 a147df8881d1018df93a476b2fcbc58c8bed79cb84629ac83334228217d13eff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page