diff options
Diffstat (limited to 'library/src/visualize')
| -rw-r--r-- | library/src/visualize/image.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/library/src/visualize/image.rs b/library/src/visualize/image.rs index 78f477f6..29a04c96 100644 --- a/library/src/visualize/image.rs +++ b/library/src/visualize/image.rs @@ -11,11 +11,13 @@ use crate::prelude::*; /// /// ## Example /// ```example -/// #align(center)[ -/// #image("molecular.jpg", width: 80%) -/// *A step in the molecular testing -/// pipeline of our lab* -/// ] +/// #figure( +/// image("molecular.jpg", width: 80%), +/// caption: [ +/// A step in the molecular testing +/// pipeline of our lab. +/// ], +/// ) /// ``` /// /// Display: Image |
