summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-05-17 11:39:29 +0200
committerGitHub <noreply@github.com>2024-05-17 09:39:29 +0000
commit6a1a58a2d49d0e56c907018593aeaa97e7f58470 (patch)
treee4f41f8c860e7021a9ed71594767de46741321f8 /crates
parent00f7588755faac7982fda54371e3f29662010d5f (diff)
Mention that raw and equation syntax works in both markup and code mode (#4164)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/text/raw.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/typst/src/text/raw.rs b/crates/typst/src/text/raw.rs
index ae7525be..1aa69fbf 100644
--- a/crates/typst/src/text/raw.rs
+++ b/crates/typst/src/text/raw.rs
@@ -59,6 +59,8 @@ type LineFn<'a> = &'a mut dyn FnMut(usize, Range<usize>, &mut Vec<Content>);
/// # Syntax
/// This function also has dedicated syntax. You can enclose text in 1 or 3+
/// backticks (`` ` ``) to make it raw. Two backticks produce empty raw text.
+/// This works both in markup and code.
+///
/// When you use three or more backticks, you can additionally specify a
/// language tag for syntax highlighting directly after the opening backticks.
/// Within raw blocks, everything (except for the language tag, if applicable)