mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Add keywords for emph
and strong
functions (#3980)
This commit is contained in:
parent
6e73406244
commit
c8cc252a45
@ -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]
|
||||
|
@ -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.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user