mirror of https://github.com/stelzo/typst.git
parent
4c4bee9845
commit
407d8a3ab2
|
|
@ -568,6 +568,11 @@ fn collect<'a>(
|
||||||
let region = TextElem::region_in(styles);
|
let region = TextElem::region_in(styles);
|
||||||
let quotes = Quotes::from_lang(lang, region);
|
let quotes = Quotes::from_lang(lang, region);
|
||||||
let peeked = iter.peek().and_then(|child| {
|
let peeked = iter.peek().and_then(|child| {
|
||||||
|
let child = if let Some((child, _)) = child.to_styled() {
|
||||||
|
child
|
||||||
|
} else {
|
||||||
|
child
|
||||||
|
};
|
||||||
if let Some(elem) = child.to::<TextElem>() {
|
if let Some(elem) = child.to::<TextElem>() {
|
||||||
elem.text().chars().next()
|
elem.text().chars().next()
|
||||||
} else if child.is::<SmartQuoteElem>() {
|
} else if child.is::<SmartQuoteElem>() {
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
|
|
@ -0,0 +1,4 @@
|
||||||
|
#set page(width: 15em)
|
||||||
|
#outline()
|
||||||
|
|
||||||
|
= "This" "is" "a" "test"
|
||||||
Loading…
Reference in New Issue