Update doc

This commit is contained in:
Laurenz Stampfl 2025-07-22 11:55:12 +02:00
parent 2cd6c13be3
commit e38ce05f6c

View File

@ -83,9 +83,8 @@ pub struct ImageElem {
/// [`source`]($image.source) (even then, Typst will try to figure out the
/// format automatically, but that's not always possible).
///
/// Supported formats are `{"png"}`, `{"jpg"}`, `{"gif"}`, `{"svg"}`,
/// `{"webp"}` as well as raw pixel data. Embedding PDFs as images is
/// [not currently supported](https://github.com/typst/typst/issues/145).
/// Supported formats are `{"png"}`, `{"jpg"}`, `{"gif"}`, `{"svg"}`, `{"pdf"}`,
/// `{"webp"}` as well as raw pixel data.
///
/// When providing raw pixel data as the `source`, you must specify a
/// dictionary with the following keys as the `format`: