A Python Markdown extension to convert inline block shorthand syntax into PyMdown Block Extension format
- Convert single-line inline block syntax into fully-formed block syntax.
- Supports modifiers for advanced block formatting.
- Simple and lightweight; integrates easily with Markdown or MkDocs.
The following markdown inline block syntax:

/// attribution: Unknown author
/// figure-caption | < ^1 : CaptionWill be converted to the following PyMdown Block syntax:

/// attribution
Unknown author
///
/// figure-caption | < ^1
Caption
///Install the extension via pip:
pip install pymdownx-inline-blocksTo use the extension, add it to your Markdown or MkDocs configuration:
md = markdown.Markdown(extensions=['inline_blocks'])or, if using MkDocs, add it to your mkdocs.yml:
markdown_extensions:
- inline_blocksThe extension supports the following options:
exclude_blocks: A list of block types to exclude from processing. Default is['html'].delimiter: The delimiter used to separate the block and the content. Default is:.