fixup! block: avoid panic on too short table line
This commit is contained in:
parent
d2df3eb8a1
commit
3425ad4189
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ impl IdentifiedBlock {
|
|||
'|' => {
|
||||
// FIXME: last byte may be pipe but end of prefixed unicode char
|
||||
((lt >= 2 && line.as_bytes()[lt - 1] == b'|')
|
||||
&& ((lt >= 3) && line.as_bytes()[lt - 2] != b'\\'))
|
||||
&& !((lt >= 3) && line.as_bytes()[lt - 2] == b'\\'))
|
||||
.then(|| (Kind::Table { caption: false }, Span::empty_at(indent)))
|
||||
}
|
||||
'[' => chars.as_str().find("]:").map(|l| {
|
||||
|
|
Loading…
Reference in a new issue