You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Typst you have arbitrarily nested code and content blocks. A code block is introduced by #{...}, but there are also some shortcuts like #func(...) or #var or #show: ... (known as show-rules). Notice that special characters like # can be escaped as in \#. Comments are C-style, both // and /* ... */. There are also TeX-style math environments $inline$ and $ display $. Since the top-level is content, it's probably convenient to match code, comments and equations and treat everything else as the body.
The text was updated successfully, but these errors were encountered:
Jason3S
transferred this issue from streetsidesoftware/vscode-spell-checker
Jul 5, 2024
In Typst you have arbitrarily nested code and content blocks. A code block is introduced by
#{...}
, but there are also some shortcuts like#func(...)
or#var
or#show: ...
(known as show-rules). Notice that special characters like#
can be escaped as in\#
. Comments are C-style, both//
and/* ... */
. There are also TeX-style math environments$inline$
and$ display $
. Since the top-level is content, it's probably convenient to match code, comments and equations and treat everything else as the body.The text was updated successfully, but these errors were encountered: