mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
- 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
30 lines
625 B
Typst
30 lines
625 B
Typst
// Test wrap.
|
|
|
|
---
|
|
#set page(height: 130pt)
|
|
#set text(70%)
|
|
|
|
#align(center)[
|
|
#text(130%)[*Essay on typography*] \
|
|
T. Ypst
|
|
]
|
|
|
|
#wrap body in columns(2, body)
|
|
Great typography is at the essence of great storytelling. It is the medium that
|
|
transports meaning from parchment to reader, the wave that sparks a flame
|
|
in booklovers and the great fulfiller of human need.
|
|
|
|
---
|
|
// Test wrap in template.
|
|
A [_B #wrap c in [*#c*]; C_] D
|
|
|
|
---
|
|
// Test wrap style precedence.
|
|
#set text(fill: eastern, size: 150%)
|
|
#wrap body in text(fill: forest, body)
|
|
Forest
|
|
|
|
---
|
|
// Error: 6-17 wrap is only allowed directly in markup
|
|
{1 + wrap x in y}
|