typst/tests/typ/markup/emph-strong.typ
Laurenz 8d1ce390e2 Rework strong and emph
- Star and underscore not parsed as strong/emph inside of words
- Stars/underscores must be balanced and they cannot go over paragraph break
- New `strong` and `emph` classes
2022-01-30 22:46:59 +01:00

34 lines
539 B
XML

// Test emph and strong.
---
// Basic.
_Emphasized and *strong* words!_
// Inside of a word it's a normal underscore or star.
hello_world Nutzer*innen
// Can contain paragraph in child template.
_Still [
] emphasized._
---
// Inside of words can still use the functions.
P#strong[art]ly em#emph[phas]ized.
---
// Error: 13 expected underscore
#box[_Scoped] to body.
---
// Ends at paragraph break.
// Error: 7 expected underscore
_Hello
World
---
// Error: 1:12 expected star
// Error: 2:1 expected star
_Cannot *be_ interleaved*