Improve image raw pixel data format documentation

This commit is contained in:
Malo 2025-02-05 20:05:35 +01:00
parent b92bc9dd4b
commit 904ee72db6

View File

@ -46,10 +46,11 @@ use crate::text::LocalName;
/// ```
#[elem(scope, Show, LocalName, Figurable)]
pub struct ImageElem {
/// A path to an image file or raw bytes making up an image in one of the
/// supported [formats]($image.format).
/// A [path]($syntax/#paths) to an image file or raw bytes making up an
/// image in one of the supported [formats]($image.format).
///
/// For more details about paths, see the [Paths section]($syntax/#paths).
/// Bytes can be used to specify raw pixel data in a row-major,
/// left-to-right, top-to-bottom format.
///
/// ```example
/// #let original = read("diagram.svg")