Fix false positive for missing_backticks in footnote references
This commit is contained in:
parent
8f3cfb4974
commit
edca73003b
2 changed files with 13 additions and 2 deletions
|
|
@ -768,7 +768,7 @@ fn check_doc<'a, Events: Iterator<Item = (pulldown_cmark::Event<'a>, Range<usize
|
|||
);
|
||||
}
|
||||
},
|
||||
FootnoteReference(text) | Text(text) => {
|
||||
Text(text) => {
|
||||
paragraph_range.end = range.end;
|
||||
let range_ = range.clone();
|
||||
ticks_unbalanced |= text.contains('`')
|
||||
|
|
@ -812,7 +812,8 @@ fn check_doc<'a, Events: Iterator<Item = (pulldown_cmark::Event<'a>, Range<usize
|
|||
}
|
||||
text_to_check.push((text, range, code_level));
|
||||
}
|
||||
},
|
||||
}
|
||||
FootnoteReference(_) => {}
|
||||
}
|
||||
}
|
||||
headers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue