diff --git a/src/block.rs b/src/block.rs index 99082c5..01e32da 100644 --- a/src/block.rs +++ b/src/block.rs @@ -254,8 +254,8 @@ impl Block { '`' }; let mut c = line.chars(); - !((&mut c).take((fence_length).into()).all(|c| c == ':') - && c.next().map_or(false, char::is_whitespace)) + !((&mut c).take((fence_length).into()).all(|c| c == fence) + && c.next().map_or(true, char::is_whitespace)) } } }