mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Add strings
option to enable file-less scenarios.
This commit is contained in:
parent
fde1947031
commit
548e3d35cb
4 changed files with 176 additions and 87 deletions
|
@ -3,7 +3,11 @@
|
|||
var markdownlint = require("../lib/markdownlint");
|
||||
|
||||
var options = {
|
||||
"files": [ "good.md", "bad.md" ]
|
||||
"files": [ "good.md", "bad.md" ],
|
||||
"strings": {
|
||||
"good.string": "# good.string\n\nThis string passes all rules.",
|
||||
"bad.string": "#bad.string\n\n#This string fails\tsome rules."
|
||||
}
|
||||
};
|
||||
|
||||
// Uses result.toString for pretty formatting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue