summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalo <57839069+MDLC01@users.noreply.github.com>2024-04-30 14:22:20 +0200
committerGitHub <noreply@github.com>2024-04-30 12:22:20 +0000
commitc8cc252a4564369abcfaa81ee2d5e0bf453a7cbc (patch)
treead76ae0d54e1d7924151fc297bbd5596d7362aa3
parent6e73406244f9744bf817fb301f3e23a8af1efd12 (diff)
Add keywords for `emph` and `strong` functions (#3980)
-rw-r--r--crates/typst/src/model/emph.rs2
-rw-r--r--crates/typst/src/model/strong.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst/src/model/emph.rs b/crates/typst/src/model/emph.rs
index a4c916ed..e36e5ef7 100644
--- a/crates/typst/src/model/emph.rs
+++ b/crates/typst/src/model/emph.rs
@@ -26,7 +26,7 @@ use crate::text::{ItalicToggle, TextElem};
/// This function also has dedicated syntax: To emphasize content, simply
/// enclose it in underscores (`_`). Note that this only works at word
/// boundaries. To emphasize part of a word, you have to use the function.
-#[elem(title = "Emphasis", Show)]
+#[elem(title = "Emphasis", keywords = ["italic"], Show)]
pub struct EmphElem {
/// The content to emphasize.
#[required]
diff --git a/crates/typst/src/model/strong.rs b/crates/typst/src/model/strong.rs
index 95d1575a..0e23179e 100644
--- a/crates/typst/src/model/strong.rs
+++ b/crates/typst/src/model/strong.rs
@@ -21,7 +21,7 @@ use crate::text::{TextElem, WeightDelta};
/// simply enclose it in stars/asterisks (`*`). Note that this only works at
/// word boundaries. To strongly emphasize part of a word, you have to use the
/// function.
-#[elem(title = "Strong Emphasis", Show)]
+#[elem(title = "Strong Emphasis", keywords = ["bold", "weight"], Show)]
pub struct StrongElem {
/// The delta to apply on the font weight.
///