Simple Python package for creating Markdown documents in code.
- Headers
- Lists
- Checkbox
- Ordered
- Unordered
- Tables
- Paragraphs
- Links
To start building Markdown documents in code, we must first create a MarkdownBuilder
instance.
md = MarkdownBuilder()
This serves as the entrypoint for all Markdown elements to be added to the document. From here we begin adding new elements.
md.addHeader(level=1, text="Test Header")
The above command will generate to following syntax:
# Test Header
md = MarkdownBuilder()
uol = UnorderedList(["one", "two", UnorderedList(["four", "five"]), "three"])
md.addList(uol)