Indent quote blocks in the route-D preview
This commit is contained in:
1 parent
4772985ffe
commit
ccda740476
3 files changed
+32
-2
No files matched your search
@@ -137,6 +137,21 @@ fn parse_blocks(raw: &str) -> Vec<SourceParagraph> {
|
||||
return items;
|
||||
}
|
||||
}
|
||||
if let Some(body) = raw
|
||||
.strip_prefix("\\begin{quote}")
|
||||
.and_then(|text| text.strip_suffix("\\end{quote}"))
|
||||
{
|
||||
let text = body.trim();
|
||||
if !text.is_empty() {
|
||||
return vec![SourceParagraph {
|
||||
text: text.to_string(),
|
||||
font: ParagraphFont::Roman,
|
||||
line_height: 12,
|
||||
math: false,
|
||||
left_skip: 12,
|
||||
}];
|
||||
}
|
||||
}
|
||||
if let Some(body) = raw
|
||||
.strip_prefix("\\begin{description}")
|
||||
.and_then(|text| text.strip_suffix("\\end{description}"))
|
||||
|
||||
Reference in new issue
Block a user