Respect quotes: false in inline quote (#5991)

Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
3w36zj6 2025-03-03 20:50:47 +09:00 committed by GitHub
parent 9a6ffbc7db
commit 8820a00beb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View File

@ -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),

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

View File

@ -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].