diff --git a/crates/markdown/src/parser.rs b/crates/markdown/src/parser.rs index 7c18a12001..e5e5847289 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,