fixup! fixup! block: fix container indent trim on enter
This commit is contained in:
parent
7b632bf853
commit
f03f905788
1 changed files with 9 additions and 1 deletions
10
src/block.rs
10
src/block.rs
|
@ -426,7 +426,15 @@ impl<'s> TreeParser<'s> {
|
|||
let src_t = src.trim();
|
||||
let spaces = src.len() - src.trim_start().len();
|
||||
let skip = match c {
|
||||
Blockquote => spaces + "> ".len(),
|
||||
Blockquote => {
|
||||
if src_t == ">" {
|
||||
spaces + 1
|
||||
} else if src_t.starts_with("> ") {
|
||||
spaces + "> ".len()
|
||||
} else {
|
||||
0
|
||||
}
|
||||
}
|
||||
ListItem(..) | Footnote | Div => spaces.min(indent),
|
||||
List { .. } | DescriptionList | Table | TableRow { .. } => {
|
||||
panic!()
|
||||
|
|
Loading…
Reference in a new issue