diff --git a/crates/markdown/src/parser.rs b/crates/markdown/src/parser.rs index 7c18a1200127eae20cd8779a7ef85dc550d33f76..e5e584728942e40267c547bb3d0cf57826affbdc 100644 --- a/crates/markdown/src/parser.rs +++ b/crates/markdown/src/parser.rs @@ -80,8 +80,8 @@ pub fn parse_markdown( content_range.start + range.start..content_range.end + range.start; let line_count = text[content_range.clone()] - .bytes() - .filter(|c| *c == b'\n') + .chars() + .filter(|c| *c == '\n') .count(); let metadata = CodeBlockMetadata { content_range,