diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-04-26 13:46:42 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-04-26 15:37:21 +0200 |
| commit | 3680c854a21db665d64cdb8f31aa0f9a1af16ceb (patch) | |
| tree | 39dfa33059293251f1e2890f9b3d0e3dc178ed03 /library/src/text | |
| parent | 59957746e91c1322a8ca6d228bcaa0f31941ee1b (diff) | |
Touch up docs
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/raw.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index 1c216483..091026b1 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -9,19 +9,11 @@ use crate::layout::BlockElem; use crate::meta::{Figurable, LocalName}; use crate::prelude::*; -/// Raw text with optional syntax highlighting. +/// Raw text with optionalw syntax highlighting. /// /// Displays the text verbatim and in a monospace font. This is typically used /// to embed computer code into your document. /// -/// ## 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. -/// 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 is rendered as is, in particular, there are no -/// escape sequences. -/// /// ## Example /// ````example /// Adding `rbx` to `rcx` gives @@ -34,6 +26,14 @@ use crate::prelude::*; /// ``` /// ```` /// +/// ## 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. +/// 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 is rendered as is, in particular, there are no +/// escape sequences. +/// /// Display: Raw Text / Code /// Category: text #[element(Synthesize, Show, Finalize, LocalName, Figurable)] |
