| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f2c0258 commit f1ea2c8
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49667,6 +49667,11 @@ function validateMeta(node, file, meta) { | |||
| 49667 | 49667 | ||
| 49668 | 49668 | function validateYAMLComments(tree, file) { | |
| 49669 | 49669 | unistUtilVisit(tree, "html", function visitor(node) { | |
| 49670 | + if (node.value.startsWith("<!--YAML\n")) | ||
| 49671 | + file.message( | ||
| 49672 | + "Expected `<!-- YAML`, found `<!--YAML`. Please add a space", | ||
| 49673 | + node | ||
| 49674 | + ); | ||
| 49670 | 49675 | if (!node.value.startsWith("<!-- YAML\n")) return; | |
| 49671 | 49676 | try { | |
| 49672 | 49677 | const meta = jsYaml$2.load("#" + node.value.slice(0, -"-->".length)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments