Web & Protocols · zero-dependency · MIT

larzmark

Markdown to HTML + static SEO.

A Markdown-to-HTML renderer (GFM tables, sanitized links) plus a static-site generator with front matter, full SEO head, JSON-LD and sitemaps — content sites without a build toolchain.

larzscript pkg install mark
View on GitHub →Learn the stack

What you get

Try it

import "mark" as mark
let src = "---\ntitle: Hello\ndescription: A first post\nurl: /hello/\n---\n# Hi\n\nBody **text**."
let page = mark.render(src, "https://example.com")
print(page["url"])
print(page["front"])
let site = mark.build_site([page], "https://example.com")
print(site["sitemap"])
Output
/hello/
{title: Hello, description: A first post, url: /hello/}
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://example.com/hello/</loc></url>
</urlset>

Why it's in the Larz Stack

larzmark is a real Larzscript package (larzscript pkg install mark) - 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.