Metadata-Version: 2.1
Name: markdown-toolkit
Version: 0.1.0
Summary: Utility package for programmatically creating markdown documents
Home-page: https://github.com/danielloader/markdown-toolkit/
License: MIT
Keywords: markdown
Author: Daniel Loader
Author-email: hello@danielloader.uk
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Project-URL: Repository, https://github.com/danielloader/markdown-toolkit/
Description-Content-Type: text/markdown

# 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


```python
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)
```


