mirror of
https://github.com/typst/typst
synced 2025-07-27 14:27:56 +08:00
Update doc
This commit is contained in:
parent
2cd6c13be3
commit
e38ce05f6c
@ -83,9 +83,8 @@ pub struct ImageElem {
|
|||||||
/// [`source`]($image.source) (even then, Typst will try to figure out the
|
/// [`source`]($image.source) (even then, Typst will try to figure out the
|
||||||
/// format automatically, but that's not always possible).
|
/// format automatically, but that's not always possible).
|
||||||
///
|
///
|
||||||
/// Supported formats are `{"png"}`, `{"jpg"}`, `{"gif"}`, `{"svg"}`,
|
/// Supported formats are `{"png"}`, `{"jpg"}`, `{"gif"}`, `{"svg"}`, `{"pdf"}`,
|
||||||
/// `{"webp"}` as well as raw pixel data. Embedding PDFs as images is
|
/// `{"webp"}` as well as raw pixel data.
|
||||||
/// [not currently supported](https://github.com/typst/typst/issues/145).
|
|
||||||
///
|
///
|
||||||
/// When providing raw pixel data as the `source`, you must specify a
|
/// When providing raw pixel data as the `source`, you must specify a
|
||||||
/// dictionary with the following keys as the `format`:
|
/// dictionary with the following keys as the `format`:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user