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 block = self.block(styles);
|
||||||
let html = TargetElem::target_in(styles).is_html();
|
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(
|
let quotes = SmartQuotes::get(
|
||||||
SmartQuoteElem::quotes_in(styles),
|
SmartQuoteElem::quotes_in(styles),
|
||||||
TextElem::lang_in(styles),
|
TextElem::lang_in(styles),
|
||||||
|
|
|
||||||
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])[
|
#quote(block: true, attribution: [The Test Author])[
|
||||||
A block-level quote.
|
A block-level quote.
|
||||||
]
|
]
|
||||||
|
|
||||||
|
--- issue-5536-quote-inline-quotes-false ---
|
||||||
|
Lorem #quote(block: false, quotes: false)[dolor].
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue