A Python Markdown parser and converter
Project description
Python Markdown (PMD) - Class Documentation
PMD stands for Python Markdown.
This class is a blueprint for parsing and converting Markdown syntax to HTML using Python. Each method represents a Markdown element and will be implemented in the future.
🛠️ Note: All methods are currently placeholders and will be developed with actual logic soon.
Methods Overview
1. Heading()
Handles Markdown headings using #, ##, ###, etc., converting them into corresponding <h1> to <h6> HTML tags.
2. Paragraphs()
Detects and wraps blocks of text as paragraphs (<p> tags).
3. LineBreak()
Handles line breaks using two spaces or a backslash at the end of a line.
4. Emphasis()
Parses bold (**bold**, __bold__) and italic (*italic*, _italic_) text.
5. Blockquote()
Processes blockquotes using > and wraps them in <blockquote>.
6. Lists()
Supports ordered (1.) and unordered (-, *, +) lists, converting them into <ol> or <ul> with <li> items.
7. Code()
Handles inline code with backticks (`code`) and code blocks with triple backticks (```).
8. HorizontalRule()
Parses horizontal lines (---, ***, ___) into <hr>.
9. Links()
Handles links like [text](url) and converts them to HTML <a href="">.
10. Images()
Processes images with  and converts to <img src="" alt="">.
11. EscapingCharacters()
Handles escaping special Markdown characters using the backslash (\).
12. Tables()
Supports simple Markdown tables and converts them into <table>, <thead>, <tbody>, etc.
13. Footnotes()
Handles footnote references ([^1]) and definitions ([^1]: Footnote text).
14. HeadingIDs()
Allows setting custom IDs for headings using {#id} after the heading.
15. DefinitionLists()
Processes definition lists using Term and : Definition format.
16. Strikethrough()
Handles ~~text~~ syntax to render <del> tags.
17. TaskLists()
Supports task list items (- [x], - [ ]) often used in GitHub-flavored Markdown.
18. Emoji()
Converts emoji shortcodes like :smile: into real emoji characters 😄.
19. Highlight()
Handles highlighting using ==text==, which may render with <mark> in HTML.
20. Subscript()
Parses subscript text like H~2~O into H<sub>2</sub>O.
21. Superscript()
Parses superscript text like E=mc^2^ into E=mc<sup>2</sup>.
22. AutomaticURL_Linking()
Auto-detects plain URLs (e.g., https://example.com) and converts them into clickable links.
23. DisablingAutomaticURL_Linking()
Provides a way to disable auto-linking behavior for raw URLs.
🔜 Coming Soon...
All the above methods will be implemented with full logic to convert Markdown into proper HTML using Python.
Stay tuned for updates! 🚀
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 python_markdown-0.1.0.tar.gz.
File metadata
- Download URL: python_markdown-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
123d551dfa37cb515688931311bd0129b59208755a0ee5f3c44527b1cee7d780
|
|
| MD5 |
36fe71e3409d494d00f07b559398a638
|
|
| BLAKE2b-256 |
6cb94d09c79afd2a6e1c475848552519f8b22bae6bf40e0117fbfbb8ff21d849
|
File details
Details for the file python_markdown-0.1.0-py3-none-any.whl.
File metadata
- Download URL: python_markdown-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bd8991f16549d4bf5572e117d05a419a461361d06b923d5cb6dde44252d0e1a
|
|
| MD5 |
007c2bc677bfa81cf9314b819484560c
|
|
| BLAKE2b-256 |
082946bda42bd3be2fd39b0f504c925d46d1e4d38f7411fdfc74667e3ef85f2f
|