mirror of
https://github.com/typst/typst
synced 2025-08-10 13:17:55 +08:00
Two small docs improvements
This commit is contained in:
parent
776c6d1923
commit
1e641be5b2
@ -84,13 +84,22 @@ pub struct ImageElem {
|
||||
///
|
||||
/// ```example
|
||||
/// #image(
|
||||
/// read(
|
||||
/// "tetrahedron.svg",
|
||||
/// encoding: none,
|
||||
/// ),
|
||||
/// format: "svg",
|
||||
/// width: 2cm,
|
||||
/// )
|
||||
///
|
||||
/// #image(
|
||||
/// bytes(range(16).map(x => x * 16)),
|
||||
/// format: (
|
||||
/// encoding: "luma8",
|
||||
/// width: 4,
|
||||
/// height: 4,
|
||||
/// ),
|
||||
/// width: 1cm,
|
||||
/// width: 2cm,
|
||||
/// )
|
||||
/// ```
|
||||
pub format: Smart<ImageFormat>,
|
||||
|
@ -221,7 +221,8 @@ pub enum ExchangeFormat {
|
||||
Png,
|
||||
/// Lossy raster format suitable for photos.
|
||||
Jpg,
|
||||
/// Raster format that is typically used for short animated clips.
|
||||
/// Raster format that is typically used for short animated clips. Typst can
|
||||
/// load GIFs, but they will become static.
|
||||
Gif,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user