typst/tests/typ/lang/headings.typ
2021-01-14 16:47:29 +01:00

39 lines
426 B
XML

// Test different numbers of hashtags.
# One
### Three
###### Six
// Warning: 1:1-1:8 section depth should not exceed 6
####### Seven
---
// Test heading vs. no heading.
/**/ # Heading
{[## Heading]}
[box][### Heading]
\# No heading
Text with # hashtag
Nr#1
// Error: 1:1-1:6 unexpected invalid token
#nope
---
// Heading continuation over linebreak.
# This {
"works"
}
# [box][
This
] too
# This
does not