Markdown: Fix parse error in liquid plugin (#19411)
Co-authored-by: Codex <noreply@openai.com> Co-authored-by: fisker Cheung <lionkay@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
4 files changed
+220
-16
No files matched your search
@@ -70,6 +70,152 @@ where does it end }}
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`example-2.md - {"proseWrap":"always"} format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
proseWrap: "always"
|
||||
printWidth: 80 (default) |
|
||||
=====================================input======================================
|
||||
# linebreak after opening brace
|
||||
|
||||
{
|
||||
|
||||
---
|
||||
|
||||
# including empty lines
|
||||
|
||||
{{ foo
|
||||
|
||||
bar baz
|
||||
|
||||
qux }}
|
||||
|
||||
---
|
||||
|
||||
# line break after %
|
||||
|
||||
{% foo %
|
||||
|
||||
bar baz %}
|
||||
|
||||
=====================================output=====================================
|
||||
# linebreak after opening brace
|
||||
|
||||
{
|
||||
|
||||
---
|
||||
|
||||
# including empty lines
|
||||
|
||||
{{ foo
|
||||
|
||||
bar baz
|
||||
|
||||
qux }}
|
||||
|
||||
---
|
||||
|
||||
# line break after %
|
||||
|
||||
{% foo %
|
||||
|
||||
bar baz %}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`example-2.md format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
printWidth: 80 (default) |
|
||||
=====================================input======================================
|
||||
# linebreak after opening brace
|
||||
|
||||
{
|
||||
|
||||
---
|
||||
|
||||
# including empty lines
|
||||
|
||||
{{ foo
|
||||
|
||||
bar baz
|
||||
|
||||
qux }}
|
||||
|
||||
---
|
||||
|
||||
# line break after %
|
||||
|
||||
{% foo %
|
||||
|
||||
bar baz %}
|
||||
|
||||
=====================================output=====================================
|
||||
# linebreak after opening brace
|
||||
|
||||
{
|
||||
|
||||
---
|
||||
|
||||
# including empty lines
|
||||
|
||||
{{ foo
|
||||
|
||||
bar baz
|
||||
|
||||
qux }}
|
||||
|
||||
---
|
||||
|
||||
# line break after %
|
||||
|
||||
{% foo %
|
||||
|
||||
bar baz %}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`issue-19386.md - {"proseWrap":"always"} format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
proseWrap: "always"
|
||||
printWidth: 80 (default) |
|
||||
=====================================input======================================
|
||||
{{ rule({
|
||||
categories: {
|
||||
}
|
||||
}) }}
|
||||
|
||||
=====================================output=====================================
|
||||
{{ rule({
|
||||
categories: {
|
||||
}
|
||||
}) }}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`issue-19386.md format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
printWidth: 80 (default) |
|
||||
=====================================input======================================
|
||||
{{ rule({
|
||||
categories: {
|
||||
}
|
||||
}) }}
|
||||
|
||||
=====================================output=====================================
|
||||
{{ rule({
|
||||
categories: {
|
||||
}
|
||||
}) }}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`unbalanced-mismatched-braces.md - {"proseWrap":"always"} format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# linebreak after opening brace
|
||||
|
||||
{
|
||||
|
||||
---
|
||||
|
||||
# including empty lines
|
||||
|
||||
{{ foo
|
||||
|
||||
bar baz
|
||||
|
||||
qux }}
|
||||
|
||||
---
|
||||
|
||||
# line break after %
|
||||
|
||||
{% foo %
|
||||
|
||||
bar baz %}
|
||||
@@ -0,0 +1,4 @@
|
||||
{{ rule({
|
||||
categories: {
|
||||
}
|
||||
}) }}
|
||||
Reference in new issue
Block a user