Relock: record the >= pin form
8260f4ae
A CommonMark-style Markdown parser for Sigil with YAML front matter support. Produces SXML output for use with (sigil sxml).
| Element | Syntax | |||
|---|---|---|---|---|
| Headers | # H1 through ###### H6 | |||
| Paragraphs | Blank-line separated text | |||
| Code blocks | Fenced (```) or indented (4 spaces) | |||
| Blockquotes | > quoted text | |||
| Unordered lists | - item, * item, + item | |||
| Ordered lists | 1. item, 2. item | |||
| Horizontal rule | ---, ***, ___ | |||
| Tables | ` | col | col | ` with separator |
| Inline code | ` code ` | |||
| Bold | **bold** or __bold__ | |||
| Italic | *italic* or _italic_ | |||
| Links | [text](url) | |||
| Images |  |
(import (sigil markdown))
;; Parse a Markdown string to SXML
(markdown->sxml "# Hello\n\nWorld")
;; => (document (h1 "Hello") (p "World"))
;; Parse a Markdown file
(markdown-file->sxml "README.md")
;; Front matter is parsed into SXML attributes
(markdown->sxml "---\ntitle: Hello\n---\n\n# Content")
;; => (document (@ (title "Hello")) (h1 "Content"))markdown->sxml - Parse a Markdown string to SXMLmarkdown-file->sxml - Parse a Markdown file to SXMLparse-front-matter - Extract YAML front matter from textparse-blocks - Lower-level block parserparse-inline - Lower-level inline parsersigil deps install
sigil build
sigil testBSD-3-Clause
$ git clone https://codeberg.org/sigil/sigil-markdown
v0.9.5 — latest by version, released 2 Aug 2026
All releases — 5 tags in this repository.
One page per file, and every line has a permalink.
Relock: record the >= pin form
8260f4ae
552fdb41
The last 20 commits keep a page here. Everything older lives in the clone.