Also handle <blockquote>
and <q>
HTML tags
This commit is contained in:
parent
cd36b25c4f
commit
03d7ae8153
@ -611,6 +611,10 @@ fn check_doc<'a, Events: Iterator<Item = (pulldown_cmark::Event<'a>, Range<usize
|
||||
code_level += 1;
|
||||
} else if tag.starts_with("</code") {
|
||||
code_level -= 1;
|
||||
} else if tag.starts_with("<blockquote") || tag.starts_with("<q") {
|
||||
blockquote_level += 1;
|
||||
} else if tag.starts_with("</blockquote") || tag.starts_with("</q") {
|
||||
blockquote_level -= 1;
|
||||
}
|
||||
},
|
||||
Start(BlockQuote) => blockquote_level += 1,
|
||||
|
@ -5,4 +5,8 @@
|
||||
//~^ ERROR: item in documentation is missing backticks
|
||||
///
|
||||
/// > AvisynthPluginInit3 may be called more than once with different IScriptEnvironments.
|
||||
///
|
||||
/// <blockquote>bla AvisynthPluginInit3 bla</blockquote>
|
||||
///
|
||||
/// <q>bla AvisynthPluginInit3 bla</q>
|
||||
pub struct Foo;
|
||||
|
@ -5,4 +5,8 @@
|
||||
//~^ ERROR: item in documentation is missing backticks
|
||||
///
|
||||
/// > AvisynthPluginInit3 may be called more than once with different IScriptEnvironments.
|
||||
///
|
||||
/// <blockquote>bla AvisynthPluginInit3 bla</blockquote>
|
||||
///
|
||||
/// <q>bla AvisynthPluginInit3 bla</q>
|
||||
pub struct Foo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user