feat: complete rule evidence and frozen review fixtures
This commit is contained in:
1 parent
1f4e120a53
commit
344ef28870
27 files changed
+1992
-356
No files matched your search
+23
-12
@@ -1,22 +1,33 @@
|
||||
use std::{fs, path::Path};
|
||||
|
||||
use comrak::{markdown_to_html, Options};
|
||||
use comrak::markdown_to_html;
|
||||
use marqdo_lint::input::profile_options;
|
||||
|
||||
fn main() {
|
||||
let manifest = Path::new(env!("CARGO_MANIFEST_DIR"));
|
||||
let fixtures = [
|
||||
("examples/good/branches.mq.md", "examples/rendered/branches.html"),
|
||||
("examples/bad/branch-single-item.mq.md", "examples/rendered/branch-single-item.html"),
|
||||
("examples/nested/inventory.mq.md", "examples/rendered/inventory.html"),
|
||||
("examples/knowledge/discount.mq.md", "examples/rendered/discount.html"),
|
||||
(
|
||||
"examples/good/branches.mq.md",
|
||||
"examples/rendered/branches.html",
|
||||
),
|
||||
(
|
||||
"examples/bad/branch-single-item.mq.md",
|
||||
"examples/rendered/branch-single-item.html",
|
||||
),
|
||||
(
|
||||
"examples/bad/branches-unlisted.mq.md",
|
||||
"examples/rendered/branches-unlisted.html",
|
||||
),
|
||||
(
|
||||
"examples/nested/inventory.mq.md",
|
||||
"examples/rendered/inventory.html",
|
||||
),
|
||||
(
|
||||
"examples/knowledge/discount.mq.md",
|
||||
"examples/rendered/discount.html",
|
||||
),
|
||||
];
|
||||
let mut options = Options::default();
|
||||
options.extension.table = true;
|
||||
options.extension.strikethrough = true;
|
||||
options.extension.tasklist = true;
|
||||
options.extension.math_dollars = true;
|
||||
options.extension.math_dollars_block = true;
|
||||
options.extension.front_matter_delimiter = Some("---".to_string());
|
||||
let options = profile_options();
|
||||
|
||||
for (source, target) in fixtures {
|
||||
let source_path = manifest.join(source);
|
||||
|
||||
Reference in new issue
Block a user