typst/tests/typ/markup/heading.typ
Laurenz 5afb42ad89 Lists with indent-based parsing
- Unordered lists with indent-based parsing and basic layout using stacks
- Headings are now also indent based
- Removes syntax functions since they will be superseded by select & transform
2021-06-09 00:37:13 +02:00

43 lines
574 B
XML

// Test headings.
---
// Different number of hashtags.
// Valid levels.
# Level 1
### Level 2
###### Level 6
// Too many hashtags.
// Warning: 1-8 should not exceed depth 6
####### Level 7
---
// Heading vs. no heading.
// Parsed as headings if at start of the context.
/**/ # Level 1
{[## Level 2]}
#rect[### Level 3]
// Not at the start of the context.
No # heading
// Escaped.
\# No heading
---
// While indented at least as much as the start, the heading continues.
# This
is
indented.
# This
is not.
// Code blocks continue heading.
# A {
"B"
}