larzmarkdown
Markdown to HTML.
Markdown is how developers write READMEs, blog posts and docs, and turning it into HTML is something real apps do constantly. larzmarkdown converts a useful subset - headings, bold/italic, code, links, images, lists, blockquotes, fenced code - into clean, safely-escaped HTML.
larzscript pkg install markdown
What you get
- Headings, lists, blockquotes, rules
- Bold/italic/code, links, images
- Fenced code blocks
- Escapes text safely
Try it
import "markdown" as markdown
print(markdown.to_html("# Hi\n\nSome **bold** text and a [link](/x)."))Output
<h1>Hi</h1> <p>Some <strong>bold</strong> text and a <a href="/x">link</a>.</p>
Why it's in the Larz Stack
larzmarkdown is a real Larzscript package (larzscript pkg install markdown) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.