Skip to main content

No project description provided

Reason this release was yanked:

Hay un error en el readme file

Project description

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 ezmarkdownparser

Usage

from ezmarkdownparser 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ez_markdown_parser-0.0.2.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

ez_markdown_parser-0.0.2-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page