We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<code>
1 parent 0e489e7 commit b21edc5Copy full SHA for b21edc5
helix-term/src/ui/markdown.rs
@@ -184,7 +184,9 @@ impl Markdown {
184
// Transform text in `<code>` blocks into `Event::Code`
185
let mut in_code = false;
186
let parser = parser.filter_map(|event| match event {
187
- Event::Html(tag) if *tag == *"<code>" => {
+ Event::Html(tag)
188
+ if tag.starts_with("<code") && matches!(tag.chars().nth(5), Some(' ' | '>')) =>
189
+ {
190
in_code = true;
191
None
192
}
0 commit comments