typst/tests/typ/markup/escape.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

36 lines
538 B
XML

// Test escape sequences.
---
// Escapable symbols.
\\ \/ \[ \] \{ \} \# \* \_ \= \~ \` \$
// No need to escape.
( ) ; < >
// Unescapable.
\a \: \; \( \)
// Escaped comments.
\//
\/\* \*\/
\/* \*/ *
// Unicode escape sequence.
\u{1F3D5} == 🏕
// Escaped escape sequence.
\u{41} vs. \\u\{41\}
// Some code stuff in text.
let f() , ; : | + - /= == 12 "string"
---
// Unicode codepoint does not exist.
// Error: 1-11 invalid unicode escape sequence
\u{FFFFFF}
---
// Unterminated.
// Error: 6 expected closing brace
\u{41[*Bold*]