A Python-Markdown extension to render line blocks.
Example:
| Normally these lines would
| Run together. But here
| They are separate
pip install markdown-lineblocks
import markdown
text = ... # your Markdown source
html = markdown.markdown(text, extensions='lineblocks')
To use with MkDocs, add the following to mkdocs.yml
:
markdown_extensions:
- lineblocks
markdown-lineblocks
is distributed under the terms of the MIT licence.