Utility package for programmatically creating markdown documents
Project description
Markdown Toolkit
INFO: This readme is dynamically generated via
generate_readme.py
.
A python library for creating markdown.
This library heavily utilises context managers
to encapsulate logical blocks in the markdown. Primarily this is used
to keep track of the heading levels, so nested Heading
context
managers will be aware of the parent header level.
Example Usage
from markdown_toolkit import MarkdownBuilder, Heading
with MarkdownBuilder() as doc:
with Heading(doc, "Markdown Toolkit"):
doc.paragraph("Example Paragraph.")
with Heading(doc, "Nested Header"):
doc.paragraph("Nested.")
with open("example.md", "w", encoding="UTF-8") as file:
doc.write(file)
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
markdown-toolkit-0.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for markdown_toolkit-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 044036896801cc4d8164cee8c94f85c9c2ec4ba578f376e1f245e6631ad7bd08 |
|
MD5 | 4bafd03d9e43e2c6bd5a05e70eeb2e87 |
|
BLAKE2b-256 | a97b36b86987d2f2378e56e6deefd011916ba38df95a53e939f225e0f437829b |