mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Respect quotes: false
in inline quote (#5991)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
parent
9a6ffbc7db
commit
8820a00beb
@ -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),
|
||||
|
BIN
tests/ref/issue-5536-quote-inline-quotes-false.png
Normal file
BIN
tests/ref/issue-5536-quote-inline-quotes-false.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 389 B |
@ -118,3 +118,6 @@ An inline #quote[quote.]
|
||||
#quote(block: true, attribution: [The Test Author])[
|
||||
A block-level quote.
|
||||
]
|
||||
|
||||
--- issue-5536-quote-inline-quotes-false ---
|
||||
Lorem #quote(block: false, quotes: false)[dolor].
|
||||
|
Loading…
x
Reference in New Issue
Block a user