diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/foundations/mod.rs | 3 | ||||
| -rw-r--r-- | crates/typst/src/text/raw.rs | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/crates/typst/src/foundations/mod.rs b/crates/typst/src/foundations/mod.rs index 543fb774..f9e15bec 100644 --- a/crates/typst/src/foundations/mod.rs +++ b/crates/typst/src/foundations/mod.rs @@ -257,7 +257,8 @@ pub fn eval( engine: &mut Engine, /// A string of Typst code to evaluate. source: Spanned<String>, - /// The syntactical mode in which the string is parsed. + /// The [syntactical mode]($reference/syntax/#modes) in which the string is + /// parsed. /// /// ```example /// #eval("= Heading", mode: "markup") diff --git a/crates/typst/src/text/raw.rs b/crates/typst/src/text/raw.rs index e6918a7d..bcaefe26 100644 --- a/crates/typst/src/text/raw.rs +++ b/crates/typst/src/text/raw.rs @@ -141,8 +141,9 @@ pub struct RawElem { /// The language to syntax-highlight in. /// /// Apart from typical language tags known from Markdown, this supports the - /// `{"typ"}` and `{"typc"}` tags for Typst markup and Typst code, - /// respectively. + /// `{"typ"}` and `{"typc"}` tags for + /// [Typst markup]($reference/syntax/#markup) and + /// [Typst code]($reference/syntax/#code), respectively. /// /// ````example /// ```typ |
