mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
- Everything everywhere! - Blocks with curly braces: {} - Templates with brackets: [] - Function templates with hashtag: `#[f]` - Headings with equals sign: `= Introduction`
29 lines
404 B
XML
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
|