mirror of
https://github.com/typst/typst
synced 2025-08-25 20:24:14 +08:00
Reduce example size
This commit is contained in:
parent
2edb44c6e3
commit
98c19fc1c8
@ -144,17 +144,13 @@
|
|||||||
```example
|
```example
|
||||||
#let par = [My special paragraph.]
|
#let par = [My special paragraph.]
|
||||||
#let special(text) = {
|
#let special(text) = {
|
||||||
set std.text(style: "italic", weight: "bold")
|
set std.text(style: "italic")
|
||||||
set std.par.line(numbering: "1")
|
set std.par.line(numbering: "1")
|
||||||
parbreak()
|
|
||||||
text
|
text
|
||||||
parbreak()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#lorem(10)
|
#special(par)
|
||||||
#special[
|
|
||||||
#par
|
|
||||||
]
|
|
||||||
#lorem(10)
|
#lorem(10)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user