doclang
The open, AST-backed format for documents — reports, specs, papers.
---
title: My First Document
author: Your Name
---
# Introduction
This is a paragraph. Headings nest into sections instead of
becoming separate slides.
## Background
More detail goes here.doclang build compiles that file to HTML, PDF, Markdown, or DOCX — see the output formats below for where each one stands today. doclang shares its core — parser, AST, renderer — with slidelang, but treats headings as a nested section hierarchy rather than separate slides.
Two dialects, one output
Flex is Markdown-like and forgiving — good for LLM output and fast hand-authoring. Strict declares every block and never normalizes, so the committed version is one you can review and sign off on. Both render identically.
Office-ready output
HTML, PDF, and Markdown Available, DOCX In progress — the same source, four destinations. DOCX output ships today, with known limitations documented.
Same element set
Code, tables, images, charts, mermaid diagrams, maps — the same rich elements as slidelang, rendered as document content instead of slides.