diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-03-21 17:46:09 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-03-21 17:50:56 +0100 |
| commit | 5e08028fb36aa766957cba64c5c665edf9b96fb7 (patch) | |
| tree | 912799dad3c1e25b7032f3e3bee009537c6f555b /tests/typ/markup/emph.typ | |
| parent | 898728f260923a91444eb23b522d0abf01a4299b (diff) | |
Syntax functions 🚀
This adds overridable functions that markup desugars into. Specifically:
- \ desugars into linebreak
- Two newlines desugar into parbreak
- * desugars into strong
- _ desugars into emph
- = .. desugars into heading
- `..` desugars into raw
Diffstat (limited to 'tests/typ/markup/emph.typ')
| -rw-r--r-- | tests/typ/markup/emph.typ | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/typ/markup/emph.typ b/tests/typ/markup/emph.typ index 500381c1..8e25e7d3 100644 --- a/tests/typ/markup/emph.typ +++ b/tests/typ/markup/emph.typ @@ -10,5 +10,14 @@ Partly em_phas_ized. // Scoped to body. #rect[_Scoped] to body. -// Unterminated is fine. -_The End +--- +#let emph = strong +_Strong_ + +#let emph() = "Hi" +_, _! + +#let emph = "hi" + +// Error: 1-2 expected function, found string +_ |
