Add test to ensure that "invalid HTML tag" lint isn't fired in code blocks
This commit is contained in:
parent
7986bb8c46
commit
bbd302bab4
1 changed files with 21 additions and 0 deletions
|
|
@ -87,3 +87,24 @@ pub fn h() {}
|
|||
/// <!--
|
||||
//~^ ERROR Unclosed HTML comment
|
||||
pub fn i() {}
|
||||
|
||||
/// hello
|
||||
///
|
||||
/// ```
|
||||
/// uiapp.run(&env::args().collect::<Vec<_>>());
|
||||
/// ```
|
||||
pub fn j() {}
|
||||
|
||||
// Check that nested codeblocks are working as well
|
||||
/// hello
|
||||
///
|
||||
/// ``````markdown
|
||||
/// normal markdown
|
||||
///
|
||||
/// ```
|
||||
/// uiapp.run(&env::args().collect::<Vec<_>>());
|
||||
/// ```
|
||||
///
|
||||
/// <Vec<_> shouldn't warn!
|
||||
/// ``````
|
||||
pub fn k() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue