Add support for double quotes in markdown codeblock attributes
This commit is contained in:
parent
d829fee6b5
commit
4ce17fa30e
5 changed files with 145 additions and 49 deletions
33
tests/rustdoc-ui/custom_code_classes_in_docs-warning3.stderr
Normal file
33
tests/rustdoc-ui/custom_code_classes_in_docs-warning3.stderr
Normal file
|
@ -0,0 +1,33 @@
|
|||
error: unclosed quote string: missing `"` at the end
|
||||
--> $DIR/custom_code_classes_in_docs-warning3.rs:9:1
|
||||
|
|
||||
LL | / /// ```{class="}
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
LL | |
|
||||
... |
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/custom_code_classes_in_docs-warning3.rs:5:9
|
||||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(warnings)]`
|
||||
|
||||
error: unclosed quote string: missing `"` at the end
|
||||
--> $DIR/custom_code_classes_in_docs-warning3.rs:9:1
|
||||
|
|
||||
LL | / /// ```{class="}
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
LL | |
|
||||
... |
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue