Skip to content
[menu]
Cutdown Specification v0.8.0
outline
index
Cutdown Markup Language Specification
Abstract
Table of Contents
1
Conventions
Identifier Character Set
Segment
Block Type
Inline Type
2
Comments
2.1
Single # is literal
2.2
## — Line Comment (Reflection)
Trailing inline ## (on a structural line)
Standalone ## comment line
2.3
### — CommentBlock (block comment)
2.4
Page assembly
2.5
Render policy
2.6
Interaction with attributes
3
Document Model
Document
Page
4
Block Segments
4.1
Paragraph
4.2
Section (Heading)
4.3
Meta (Front Matter)
4.4
CodeBlock
4.5
MathBlock
4.6
QuoteBlock
4.7
List
4.7.1
ListItem
4.7.2
TaskItem
4.8
Table
Header rows
Column alignment
Pipe table specifics
Multiline table specifics
Empty tables
Reflection
Caption and escaping
4.9
ImageBlock
4.10
PageBreak
4.11
FileRef
4.12
FileRefGroup
4.13
NamedBlock
4.14
RefDefinition
4.15
SpoilerBlock
4.16
CommentBlock
5
Inline Segments
5.1
Text
5.2
Emphasis
5.3
Strong
5.4
Highlight
5.5
Link
Link types and meaning
5.6
CodeInline
5.7
MathInline
5.8
QuoteInline
5.9
ImageInline
5.10
Span (NamedInline segment)
5.11
Variable
5.12
Spoiler
5.13
TextBreak
5.14
Line Comment (##)
6
Universal Attributes and Captions
6.1
Syntax
6.2
Placement
Block Opening Lines — Last-Attr Rule
Per-segment placement rules
Scope-chain rule (Rule B)
Trailing attr lines and loose-list detection
6.3
Orphan Attributes
6.4
Attribute Inside Link Text
6.5
Caption Line
7
Input Interpretation
8
Escaping
8.1
Special Characters
8.2
Block-Opener Escapes
8.3
Opaque-Block Closer Escapes
9
Parsing Algorithm
9.1
Phase 1 — Input Interpretation
9.2
Phase 2 — Block Identification
9.3
Phase 3 — Block Classification
9.4
Phase 4 — Inline Parsing
9.4.1
Degradation classes
9.5
Derived Structure
9.5.1
Sectionization fold
9.5.2
Pagination fold
9.6
PageBreak
10
Block Structure and Block Boundaries
10.1
Block Boundaries
10.2
Leading and Trailing Whitespace
10.3
Block Classification
10.4
Syntax Primitives
10.4.1
Doubled-symbol inline delimiter
10.4.2
Tripled-symbol block delimiter
10.4.3
Delimiter placement
10.4.4
Symbol repetition
10.4.5
Delimiter collisions
10.5
List Indentation Model
10.6
Container-Edge Blank Lines
11
Precedence Rules
12
Whitespace Rules
12.2
Inline Block Whitespace
13
Special Character Reference
14
AST Node (Segment) Reference
Root Segments
Block Segments
Synthetic Segments
Inline Segments
Special Nodes
Location Type
Reflection Type
Attributes Type
15
Name and Compliance
Readme
Specification
Syntax summary
Policies
Conformance corpus
Contributing
License
Changelog
Readme
\
Conformance corpus
\
document-empty
document-empty
Empty document produces exactly one Ghost Page (null meta, empty children)
§3
Input
Pages
- {}