mirror of
https://github.com/typst/typst
synced 2025-05-18 02:55:28 +08:00
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
14 lines
322 B
XML
14 lines
322 B
XML
// Test the `paragraph` function.
|
|
|
|
---
|
|
// Test configuring paragraph properties.
|
|
|
|
#par(spacing: 10pt, leading: 25%, word-spacing: 1pt)
|
|
|
|
But, soft! what light through yonder window breaks? It is the east, and Juliet
|
|
is the sun.
|
|
|
|
---
|
|
// Test that it finishes an existing paragraph.
|
|
Hello #par(word-spacing: 0pt) t h e r e !
|