No project description provided
Project description
Markdown SmartBreaks
A slightly better nl2br
extension for Python Markdown.
Whats different?
- Won't break for html tags. (e.g. code blocks)
Installation
pip install markdown-smartbreaks
Usage
Markdown module
import markdown
import smartbreaks
data = markdown.markdown(
md,
extensions=[
smartbreaks.SmartBreaksExtension()
]
)
MkDocs mkdocs.yml
markdown_extensions:
- smartbreaks
License
Licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file markdown_smartbreaks-1.0.0.tar.gz
.
File metadata
- Download URL: markdown_smartbreaks-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ab267780065f5c7ac51e5b8c63b88e844992634d11ef0ea9cd3b33960cac36 |
|
MD5 | 849bd35cbb32e9be8009d68b0276276e |
|
BLAKE2b-256 | 9269cb26c3b3723a26bd62834a7b5d9b1a4c200aeb5fbab4f1a4678d67abb3a1 |
File details
Details for the file markdown_smartbreaks-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: markdown_smartbreaks-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a34d30ed52c0836ebdf686d5ebff9166f5a3d3dc3b14bb45c048cab8d2f97ed8 |
|
MD5 | 9b91942ac804f3e50863c5f82c925bce |
|
BLAKE2b-256 | ea7abd2489287cecb08d94ffc66d5d584d6f8d883c86ad9a13d08f0f36848b7d |