Add tests of edge cases around liquid (#16078)

This commit is contained in:
Seiya authored and GitHub committed 2024-02-16 22:22:27 +08:00
1 parent 17002562d6
commit d631cc9907
6 files changed
+182

No files matched your search

@@ -71,3 +71,171 @@ where does it end }}
================================================================================
`;
exports[`unbalanced-mismatched-braces.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
Braces {% doesn't match so these words should not be considered as *liquid node* }}
=====================================output=====================================
Braces {% doesn't match so these words should not be considered as _liquid node_
}}
================================================================================
`;
exports[`unbalanced-mismatched-braces.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
| printWidth
=====================================input======================================
Braces {% doesn't match so these words should not be considered as *liquid node* }}
=====================================output=====================================
Braces {% doesn't match so these words should not be considered as _liquid node_ }}
================================================================================
`;
exports[`unbalanced-object-close-only.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
Following brace doesn't open so these words should not be considered as *liquid node* }}
=====================================output=====================================
Following brace doesn't open so these words should not be considered as _liquid
node_ }}
================================================================================
`;
exports[`unbalanced-object-close-only.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
| printWidth
=====================================input======================================
Following brace doesn't open so these words should not be considered as *liquid node* }}
=====================================output=====================================
Following brace doesn't open so these words should not be considered as _liquid node_ }}
================================================================================
`;
exports[`unbalanced-object-open-only.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
This brace {{ doesn't close so these words should not be considered as *liquid node*
=====================================output=====================================
This brace {{ doesn't close so these words should not be considered as _liquid
node_
================================================================================
`;
exports[`unbalanced-object-open-only.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
| printWidth
=====================================input======================================
This brace {{ doesn't close so these words should not be considered as *liquid node*
=====================================output=====================================
This brace {{ doesn't close so these words should not be considered as _liquid node_
================================================================================
`;
exports[`unbalanced-template-close-only.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
Following brace doesn't open so these words should not be considered as *liquid node* %}
=====================================output=====================================
Following brace doesn't open so these words should not be considered as _liquid
node_ %}
================================================================================
`;
exports[`unbalanced-template-close-only.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
| printWidth
=====================================input======================================
Following brace doesn't open so these words should not be considered as *liquid node* %}
=====================================output=====================================
Following brace doesn't open so these words should not be considered as _liquid node_ %}
================================================================================
`;
exports[`unbalanced-template-open-only.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
This brace {% doesn't close so these words should not be considered as *liquid node*
=====================================output=====================================
This brace {% doesn't close so these words should not be considered as _liquid
node_
================================================================================
`;
exports[`unbalanced-template-open-only.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
| printWidth
=====================================input======================================
This brace {% doesn't close so these words should not be considered as *liquid node*
=====================================output=====================================
This brace {% doesn't close so these words should not be considered as _liquid node_
================================================================================
`;
@@ -0,0 +1,2 @@
Braces {% doesn't match so these words should not be considered as *liquid node* }}
@@ -0,0 +1,3 @@
Following brace doesn't open so these words should not be considered as *liquid node* }}
@@ -0,0 +1,3 @@
This brace {{ doesn't close so these words should not be considered as *liquid node*
@@ -0,0 +1,3 @@
Following brace doesn't open so these words should not be considered as *liquid node* %}
@@ -0,0 +1,3 @@
This brace {% doesn't close so these words should not be considered as *liquid node*