mkmd
Make Markdown Documents in Python.
Features
- Heading
- Paragraph
- Code Block
- Horizontal Rule
- Reference
- Image
- Unordered List
- Ordered List
Installation
pip install mkmd
Basic Usage
import mkmd
from mkmd.utils import *
md = mkmd.Markdown()
(md
.add_heading(f"Hello {bold_and_italic('MKMD')}",)
.add_paragraph(f"""
This markdown document was generated by using
{refer('mkmd', '1')}. This is a quick example showing how to
use it:
""", wrapped = True)
.add_codeblock("""
import mkmd
md = mkmd.Markdown()
md.add_heading("Hello World")
md.add_paragraph("Lorem ipsum dolor sit amet.")
""", language = "python")
.add_ordered_list(
*"So many things are possible!".split()
)
.add_reference("1", "http://example.org", "Look at this")
.add_image("Linux Mascot",
"https://mdg.imgix.net/assets/images/tux.png?auto=format&fit=clip&q=40&w=100"
)
)
if __name__ == "__main__":
md.save("example_result.md")
Links
Metadata
Release files for mkmd 0.0.1
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 |
|---|---|---|---|---|
| mkmd-0.0.1.tar.gz | 5.4 kB | Without provenance | Details for mkmd-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkmd-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for mkmd-0.0.1-py3-none-any.whl |
Total release size: 11.0 kB
Release files / mkmd-0.0.1.tar.gz
| Download URL | mkmd-0.0.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
216647915b615d78e137caf5466c2dc4328415ed222cf0de5fde875c47103f38
|
|
BLAKE2b-256 checksum How to use checksums |
724326c859023059502971636b7832f5094243803f0a39a1b217901b1f4129a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / mkmd-0.0.1-py3-none-any.whl
| Download URL | mkmd-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eecf57bd69e2ec7bf9f610a1e8645af1ed09f8ce8267115209bfab22a909a247
|
|
BLAKE2b-256 checksum How to use checksums |
ef05768ba613fb52f5f296ec95d3a64210e744ef45ed3560c03aa76bf4e7e608
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for mkmd 0.0.1
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.