summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/Cargo.toml5
-rw-r--r--library/src/meta/figure.rs12
2 files changed, 5 insertions, 12 deletions
diff --git a/library/Cargo.toml b/library/Cargo.toml
index 294c86fe..335a6001 100644
--- a/library/Cargo.toml
+++ b/library/Cargo.toml
@@ -1,14 +1,15 @@
[package]
name = "typst-library"
+description = "The standard library for Typst."
+categories = ["compilers", "science"]
+keywords = ["typst"]
version.workspace = true
rust-version.workspace = true
authors.workspace = true
edition.workspace = true
-description = "The standard library for Typst."
homepage.workspace = true
repository.workspace = true
license.workspace = true
-keywords.workspace = true
[lib]
test = false
diff --git a/library/src/meta/figure.rs b/library/src/meta/figure.rs
index 5476b367..945a812a 100644
--- a/library/src/meta/figure.rs
+++ b/library/src/meta/figure.rs
@@ -95,21 +95,13 @@ pub struct FigureElem {
/// automatic detection. This can be useful if
/// - you wish to create a custom figure type that is not an
/// [image]($func/image), a [table]($func/table) or [code]($func/raw),
- /// - you want to force the figure to use a counter regardless of its
- /// content.
+ /// - you want to force the figure to use a specific counter regardless of
+ /// its content.
///
/// You can set the kind to be an element function or a string. If you set
/// it to an element function that is not supported by the figure, you will
/// need to manually specify the figure's supplement.
///
- /// The figure's automatic detection is based on a priority list to select
- /// the element that is likely to be the most important one. If the figure's
- /// body contains multiple valid elements, the one with the highest priority
- /// is selected. The priority list is as follows:
- /// - [image]($func/image) is the most important,
- /// - [code]($func/raw) is the second most important,
- /// - [table]($func/table) is the least important one.
- ///
/// ```example
/// #figure(
/// circle(radius: 10pt),