Apache-2.0

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, DOCX, or Markdown. doclang shares its core — parser, AST, renderer — with slidelang, but treats headings as a nested section hierarchy rather than separate slides.

One flexible mode

doclang always parses in flex mode — Markdown-like, forgiving, good for LLM output and fast hand-authoring alike.

Office-ready output

HTML, PDF, DOCX (with table of contents and numbering), and Markdown — the same source, four destinations.

Same element set

Code, tables, images, charts, mermaid diagrams, maps — the same rich elements as slidelang, rendered as document content instead of slides.