mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix typo in 4-template.md (#6047)
This commit is contained in:
parent
0214320087
commit
24b2f98bf9
@ -44,7 +44,7 @@ I am #amazed(color: purple)[amazed]!
|
|||||||
Templates now work by wrapping our whole document in a custom function like
|
Templates now work by wrapping our whole document in a custom function like
|
||||||
`amazed`. But wrapping a whole document in a giant function call would be
|
`amazed`. But wrapping a whole document in a giant function call would be
|
||||||
cumbersome! Instead, we can use an "everything" show rule to achieve the same
|
cumbersome! Instead, we can use an "everything" show rule to achieve the same
|
||||||
with cleaner code. To write such a show rule, put a colon directly behind the
|
with cleaner code. To write such a show rule, put a colon directly after the
|
||||||
show keyword and then provide a function. This function is given the rest of the
|
show keyword and then provide a function. This function is given the rest of the
|
||||||
document as a parameter. The function can then do anything with this content.
|
document as a parameter. The function can then do anything with this content.
|
||||||
Since the `amazed` function can be called with a single content argument, we can
|
Since the `amazed` function can be called with a single content argument, we can
|
||||||
|
Loading…
x
Reference in New Issue
Block a user