summaryrefslogtreecommitdiff
path: root/library/src/math/attach.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-05-17 14:38:03 +0200
committerLaurenz <laurmaedje@gmail.com>2023-05-17 14:38:03 +0200
commit42afa410ae561eb5b267080d088bca529a5d0b54 (patch)
treebdea7348daef7409490ba542f9bdec5d52732d03 /library/src/math/attach.rs
parent8971588486b6ffa9269344b4bda71de86af9d908 (diff)
Better documentation outlines
Diffstat (limited to 'library/src/math/attach.rs')
-rw-r--r--library/src/math/attach.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/math/attach.rs b/library/src/math/attach.rs
index f9ac4aa0..67331908 100644
--- a/library/src/math/attach.rs
+++ b/library/src/math/attach.rs
@@ -2,7 +2,7 @@ use super::*;
/// A base with optional attachments.
///
-/// ## Example
+/// ## Example { #example }
/// ```example
/// // With syntax.
/// $ sum_(i=0)^n a_i = 2^(1+i) $
@@ -14,7 +14,7 @@ use super::*;
/// ) $
/// ```
///
-/// ## Syntax
+/// ## Syntax { #syntax }
/// This function also has dedicated syntax for attachments after the base: Use
/// the underscore (`_`) to indicate a subscript i.e. bottom attachment and the
/// hat (`^`) to indicate a superscript i.e. top attachment.
@@ -99,7 +99,7 @@ impl LayoutMath for AttachElem {
/// Force a base to display attachments as scripts.
///
-/// ## Example
+/// ## Example { #example }
/// ```example
/// $ scripts(sum)_1^2 != sum_1^2 $
/// ```
@@ -122,7 +122,7 @@ impl LayoutMath for ScriptsElem {
/// Force a base to display attachments as limits.
///
-/// ## Example
+/// ## Example { #example }
/// ```example
/// $ limits(A)_1^2 != A_1^2 $
/// ```