EzMarkdownParser
EzMarkdownParser is a very simple Python package that converts Markdown text to HTML strings with its htmlify function. It is designed to handle basic Markdown elements such as paragraphs, headings, list items, bold text, and links.
This parser was made for cs50w project #1 Wiki on 2024, so it only supports the tags required by the project specifications, wich are mentioned above.
Installation
Install EzMarkdownParser using pip:
pip install ez-markdown-parser
Usage
from ez_markdown_parser import EzMarkdownParser
md_text = """
# Heading 1
This is a paragraph with some **bold text** and a [link](https://example.com).
## Heading 2
- List item 1
- List item 2
"""
parser = EzMarkdownParser()
html_text = parser.htmlify(md_text)
print(html_text)
Features
- Convert Markdown headings to HTML
<h1>to<h6>tags. - Process list items (
*and-) and convert them to HTML<li>tags. - Wrap paragraphs with HTML
<p>tags. - Recognize and convert double asterisk (
**) for bold text. - Recognize and convert links in the format
[text](URL).
Limitations
- The parser is not complete nor optimized yet, it doesnt support advanced markdown features. Use it with caution.
Contributing
Contributions are welcome, as long as the project remains fun enough! If you find an issue or have suggestions for improvements, please open an issue or submit a pull request.
License
This project is dedicated to the public domain. You are free to use, modify, and distribute the code without any restrictions. See the UNLICENSE file for more details.
Metadata
Release files for ez-markdown-parser 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ez_markdown_parser-0.0.3.tar.gz | 3.2 kB | Without provenance | Details for ez_markdown_parser-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ez_markdown_parser-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for ez_markdown_parser-0.0.3-py3-none-any.whl |
Total release size: 6.7 kB
Release files / ez_markdown_parser-0.0.3.tar.gz
| Download URL | ez_markdown_parser-0.0.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b09cf4ffea3e6d56ccde3795f396185496ad964e1f3e082d5f4acaf823201bf2
|
|
BLAKE2b-256 checksum How to use checksums |
3afbcd9ec39fbb7f2dd6fd4914c7f0832399006646749a1c5e9fe472e4644d35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / ez_markdown_parser-0.0.3-py3-none-any.whl
| Download URL | ez_markdown_parser-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22608b33887fc725deaa76613f1a6219c0581950a873412784b25b3179872370
|
|
BLAKE2b-256 checksum How to use checksums |
1468375b7d512e277d8496cad629375d3bfb039e5817092834b2963996feb6fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for ez-markdown-parser 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.