diff options
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/deco.rs | 6 | ||||
| -rw-r--r-- | library/src/text/misc.rs | 20 | ||||
| -rw-r--r-- | library/src/text/mod.rs | 2 | ||||
| -rw-r--r-- | library/src/text/quotes.rs | 4 | ||||
| -rw-r--r-- | library/src/text/raw.rs | 4 | ||||
| -rw-r--r-- | library/src/text/shift.rs | 4 |
6 files changed, 20 insertions, 20 deletions
diff --git a/library/src/text/deco.rs b/library/src/text/deco.rs index 49bd3971..9bc52b61 100644 --- a/library/src/text/deco.rs +++ b/library/src/text/deco.rs @@ -6,7 +6,7 @@ use crate::prelude::*; /// Underline text. /// -/// ## Example +/// ## Example { #example } /// ```example /// This is #underline[important]. /// ``` @@ -80,7 +80,7 @@ impl Show for UnderlineElem { /// Add a line over text. /// -/// ## Example +/// ## Example { #example } /// ```example /// #overline[A line over text.] /// ``` @@ -160,7 +160,7 @@ impl Show for OverlineElem { /// Strike through text. /// -/// ## Example +/// ## Example { #example } /// ```example /// This is #strike[not] relevant. /// ``` diff --git a/library/src/text/misc.rs b/library/src/text/misc.rs index fa3a99fa..5dafe4ac 100644 --- a/library/src/text/misc.rs +++ b/library/src/text/misc.rs @@ -28,14 +28,14 @@ impl PlainText for SpaceElem { /// end of a paragraph is ignored, but more than one creates additional empty /// lines. /// -/// ## Example +/// ## Example { #example } /// ```example /// *Date:* 26.12.2022 \ /// *Topic:* Infrastructure Test \ /// *Severity:* High \ /// ``` /// -/// ## Syntax +/// ## Syntax { #syntax } /// This function also has dedicated syntax: To insert a line break, simply write /// a backslash followed by whitespace. This always creates an unjustified /// break. @@ -71,7 +71,7 @@ impl Behave for LinebreakElem { /// /// Increases the current font weight by a given `delta`. /// -/// ## Example +/// ## Example { #example } /// ```example /// This is *strong.* \ /// This is #strong[too.] \ @@ -80,7 +80,7 @@ impl Behave for LinebreakElem { /// And this is *evermore.* /// ``` /// -/// ## Syntax +/// ## Syntax { #syntax } /// This function also has dedicated syntax: To strongly emphasize content, /// simply enclose it in stars/asterisks (`*`). Note that this only works at /// word boundaries. To strongly emphasize part of a word, you have to use the @@ -139,7 +139,7 @@ impl Fold for Delta { /// - If it is already `{"italic"}` or `{"oblique"}`, /// it turns it back to `{"normal"}`. /// -/// ## Example +/// ## Example { #example } /// ```example /// This is _emphasized._ \ /// This is #emph[too.] @@ -151,7 +151,7 @@ impl Fold for Delta { /// This is _emphasized_ differently. /// ``` /// -/// ## Syntax +/// ## Syntax { #syntax } /// This function also has dedicated syntax: To emphasize content, simply /// enclose it in underscores (`_`). Note that this only works at word /// boundaries. To emphasize part of a word, you have to use the function. @@ -195,7 +195,7 @@ impl Fold for Toggle { /// Convert text or content to lowercase. /// -/// ## Example +/// ## Example { #example } /// ```example /// #lower("ABC") \ /// #lower[*My Text*] \ @@ -215,7 +215,7 @@ pub fn lower( /// Convert text or content to uppercase. /// -/// ## Example +/// ## Example { #example } /// ```example /// #upper("abc") \ /// #upper[*my text*] \ @@ -280,7 +280,7 @@ impl Case { /// support selecting a dedicated smallcaps font as well as synthesizing /// smallcaps from normal letters, but this is not yet implemented. /// -/// ## Example +/// ## Example { #example } /// ```example /// #set par(justify: true) /// #set heading(numbering: "I.") @@ -313,7 +313,7 @@ pub fn smallcaps( /// the same but randomly chosen. As usual for blind texts, it does not make any /// sense. Use it as a placeholder to try layouts. /// -/// ## Example +/// ## Example { #example } /// ```example /// = Blind Text /// #lorem(30) diff --git a/library/src/text/mod.rs b/library/src/text/mod.rs index bd15cdd2..a7cf4fd7 100644 --- a/library/src/text/mod.rs +++ b/library/src/text/mod.rs @@ -47,7 +47,7 @@ pub(super) fn define(global: &mut Scope) { /// rule is often the simpler choice, calling the text function directly can be /// useful when passing text as an argument to another function. /// -/// ## Example +/// ## Example { #example } /// ```example /// #set text(18pt) /// With a set rule. diff --git a/library/src/text/quotes.rs b/library/src/text/quotes.rs index 31dbb81f..25d9cf88 100644 --- a/library/src/text/quotes.rs +++ b/library/src/text/quotes.rs @@ -7,7 +7,7 @@ use crate::prelude::*; /// Automatically turns into an appropriate opening or closing quote based on /// the active [text language]($func/text.lang). /// -/// ## Example +/// ## Example { #example } /// ```example /// "This is in quotes." /// @@ -18,7 +18,7 @@ use crate::prelude::*; /// "C'est entre guillemets." /// ``` /// -/// ## Syntax +/// ## Syntax { #syntax } /// This function also has dedicated syntax: The normal quote characters /// (`'` and `"`). Typst automatically makes your quotes smart. /// diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index db437481..796180b4 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -14,7 +14,7 @@ use crate::prelude::*; /// Displays the text verbatim and in a monospace font. This is typically used /// to embed computer code into your document. /// -/// ## Example +/// ## Example { #example } /// ````example /// Adding `rbx` to `rcx` gives /// the desired result. @@ -26,7 +26,7 @@ use crate::prelude::*; /// ``` /// ```` /// -/// ## Syntax +/// ## Syntax { #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 diff --git a/library/src/text/shift.rs b/library/src/text/shift.rs index 4eac5897..cdf18caf 100644 --- a/library/src/text/shift.rs +++ b/library/src/text/shift.rs @@ -5,7 +5,7 @@ use crate::prelude::*; /// /// The text is rendered smaller and its baseline is lowered. /// -/// ## Example +/// ## Example { #example } /// ```example /// Revenue#sub[yearly] /// ``` @@ -68,7 +68,7 @@ impl Show for SubElem { /// /// The text is rendered smaller and its baseline is raised. /// -/// ## Example +/// ## Example { #example } /// ```example /// 1#super[st] try! /// ``` |
