A python markdown extension for add HTML escaped symbols support
Project description
markdown_escaped
A python markdown extension for add HTML escaped symbols support
Extends the Python Markdown.
Adds the possibility to use escaped HTML caracters for markdown syntax, such as > instead of > for blockquote.
Install through pip:
pip install markdown_escaped
To enable the markdown_escaped package and use it in your markdown generation just add it like so:
import markdown
result = markdown.markdown(textToRender, extensions=["markdown_escaped",])
List of supported caracters
>who is>for blockquote
If you want an other caracter, open an issue or make a PR.
Test string
It is a test:
Yes it works! Really good.
The real test:
> And now ? All is good!
Yeah !
Raw string
'It is a test:\n> Yes it works!\nReally good.\n\nThe real test:\n\n> And now ?\nAll is good!\n\nYeah !'
Expected result
'<p>It is a test:</p>\n<blockquote>\n<p>Yes it works!\nReally good.</p>\n</blockquote>\n<p>The real test:</p>\n<blockquote>\n<p>And now ?\nAll is good!</p>\n</blockquote>\n<p>Yeah !</p>'
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markdown_escaped-0.0.1.tar.gz.
File metadata
- Download URL: markdown_escaped-0.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a4d048899469f2f9e3df6482a74a7e16377684bbe79a0e3e20c57ce3232686f
|
|
| MD5 |
7c12cbe00fa2a64918eb47a35004f444
|
|
| BLAKE2b-256 |
39c7720184bcdf004fe7e4a9850cc0e6224f9a784fea32c94825ee9938850227
|
File details
Details for the file markdown_escaped-0.0.1-py3-none-any.whl.
File metadata
- Download URL: markdown_escaped-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
849c2bcfd1cae2e0e0549e41138c6dfe06187c86a5d1904101aa2eb4ca20a6b9
|
|
| MD5 |
3a17b926653ddc9cf0972dd0115cfb57
|
|
| BLAKE2b-256 |
02934483dce6913554954dabd9f9b2628b1d1c9ce428d6e425f08570769317ec
|