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! 🚀
Metadata
Release files for python-markdown 0.1.0
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 |
|---|---|---|---|---|
| python_markdown-0.1.0.tar.gz | 3.6 kB | Without provenance | Details for python_markdown-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_markdown-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for python_markdown-0.1.0-py3-none-any.whl |
Total release size: 7.6 kB
Release files / python_markdown-0.1.0.tar.gz
| Download URL | python_markdown-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
123d551dfa37cb515688931311bd0129b59208755a0ee5f3c44527b1cee7d780
|
|
BLAKE2b-256 checksum How to use checksums |
6cb94d09c79afd2a6e1c475848552519f8b22bae6bf40e0117fbfbb8ff21d849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / python_markdown-0.1.0-py3-none-any.whl
| Download URL | python_markdown-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bd8991f16549d4bf5572e117d05a419a461361d06b923d5cb6dde44252d0e1a
|
|
BLAKE2b-256 checksum How to use checksums |
082946bda42bd3be2fd39b0f504c925d46d1e4d38f7411fdfc74667e3ef85f2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for python-markdown 0.1.0
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.