typst/tests/lang/typ/raw.typ
Laurenz 89eb8bae49 New syntax 💎
- Everything everywhere!
  - Blocks with curly braces: {}
  - Templates with brackets: []
  - Function templates with hashtag: `#[f]`
- Headings with equals sign: `= Introduction`
2021-01-30 12:09:26 +01:00

29 lines
404 B
XML

#[font 8pt]
// Typst syntax inside.
`#let x = 1``[f 1]`
// Space between "rust" and "let" is trimmed.
The keyword ``rust let``.
// Trimming depends on number backticks.
<` untrimmed `> \
<`` trimmed ``>
// Multiline trimming.
``py
import this
def say_hi():
print("Hi!")
``
// Lots of backticks inside.
````
```backticks```
````
// Unterminated.
// Error: 2:1-2:1 expected backtick(s)
`endless