diff options
| author | 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> | 2025-03-03 20:50:47 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-03 11:50:47 +0000 |
| commit | 8820a00beb08b7253a99a7cf66bb752cd181bb03 (patch) | |
| tree | fa7727f70b7a9c94dc6da802f71b977d812c2160 /crates/typst-library/src/model/quote.rs | |
| parent | 9a6ffbc7db95eff2aedd8028b8969a744717aaa4 (diff) | |
Respect `quotes: false` in inline quote (#5991)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'crates/typst-library/src/model/quote.rs')
| -rw-r--r-- | crates/typst-library/src/model/quote.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/model/quote.rs b/crates/typst-library/src/model/quote.rs index 919ab12c..cd45eec8 100644 --- a/crates/typst-library/src/model/quote.rs +++ b/crates/typst-library/src/model/quote.rs @@ -161,7 +161,7 @@ impl Show for Packed<QuoteElem> { let block = self.block(styles); let html = TargetElem::target_in(styles).is_html(); - if self.quotes(styles) == Smart::Custom(true) || !block { + if self.quotes(styles).unwrap_or(!block) { let quotes = SmartQuotes::get( SmartQuoteElem::quotes_in(styles), TextElem::lang_in(styles), |
