Merge branch 'v3.9.x'
This commit is contained in:
commit
7b7d85f5b1
12 files changed
+327
-80
No files matched your search
@@ -1,5 +1,63 @@
|
||||
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
||||
|
||||
exports[`character-after-closing-tokens.md - {"proseWrap":"always"} format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
proseWrap: "always"
|
||||
printWidth: 80 (default) |
|
||||
=====================================input======================================
|
||||
{{ page.title
|
||||
}} a
|
||||
|
||||
---
|
||||
|
||||
{%
|
||||
if user
|
||||
%} Hello, {{ user }}!
|
||||
{% endif %}
|
||||
|
||||
=====================================output=====================================
|
||||
{{ page.title
|
||||
}} a
|
||||
|
||||
---
|
||||
|
||||
{%
|
||||
if user
|
||||
%} Hello, {{ user }}! {% endif %}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`character-after-closing-tokens.md format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
printWidth: 80 (default) |
|
||||
=====================================input======================================
|
||||
{{ page.title
|
||||
}} a
|
||||
|
||||
---
|
||||
|
||||
{%
|
||||
if user
|
||||
%} Hello, {{ user }}!
|
||||
{% endif %}
|
||||
|
||||
=====================================output=====================================
|
||||
{{ page.title
|
||||
}} a
|
||||
|
||||
---
|
||||
|
||||
{%
|
||||
if user
|
||||
%} Hello, {{ user }}!
|
||||
{% endif %}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`example-1.md - {"proseWrap":"always"} format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
@@ -216,6 +274,138 @@ parsers: ["markdown"]
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`issue-19488.md - {"proseWrap":"always"} format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
proseWrap: "always"
|
||||
printWidth: 80 (default) |
|
||||
=====================================input======================================
|
||||
{{% blocks/cover
|
||||
title="Welcome"
|
||||
%}}
|
||||
|
||||
This input uses Hugo shortcode. Prettier doesn't support this explicitly but it shouldn't break it either.
|
||||
|
||||
{{% /blocks/cover %}}
|
||||
|
||||
---
|
||||
|
||||
{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{% blocks/cover
|
||||
%%}}
|
||||
|
||||
{{% blocks/cover
|
||||
}}}
|
||||
|
||||
{{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{ blocks/cover
|
||||
%}}
|
||||
|
||||
=====================================output=====================================
|
||||
{{% blocks/cover
|
||||
title="Welcome"
|
||||
%}}
|
||||
|
||||
This input uses Hugo shortcode. Prettier doesn't support this explicitly but it
|
||||
shouldn't break it either.
|
||||
|
||||
{{% /blocks/cover %}}
|
||||
|
||||
---
|
||||
|
||||
{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{% blocks/cover
|
||||
%%}}
|
||||
|
||||
{{% blocks/cover
|
||||
}}}
|
||||
|
||||
{{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{ blocks/cover
|
||||
%}}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`issue-19488.md format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
printWidth: 80 (default) |
|
||||
=====================================input======================================
|
||||
{{% blocks/cover
|
||||
title="Welcome"
|
||||
%}}
|
||||
|
||||
This input uses Hugo shortcode. Prettier doesn't support this explicitly but it shouldn't break it either.
|
||||
|
||||
{{% /blocks/cover %}}
|
||||
|
||||
---
|
||||
|
||||
{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{% blocks/cover
|
||||
%%}}
|
||||
|
||||
{{% blocks/cover
|
||||
}}}
|
||||
|
||||
{{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{ blocks/cover
|
||||
%}}
|
||||
|
||||
=====================================output=====================================
|
||||
{{% blocks/cover
|
||||
title="Welcome"
|
||||
%}}
|
||||
|
||||
This input uses Hugo shortcode. Prettier doesn't support this explicitly but it shouldn't break it either.
|
||||
|
||||
{{% /blocks/cover %}}
|
||||
|
||||
---
|
||||
|
||||
{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{% blocks/cover
|
||||
%%}}
|
||||
|
||||
{{% blocks/cover
|
||||
}}}
|
||||
|
||||
{{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{ blocks/cover
|
||||
%}}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`unbalanced-mismatched-braces.md - {"proseWrap":"always"} format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["markdown"]
|
||||
@@ -226,8 +416,8 @@ proseWrap: "always"
|
||||
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* }}
|
||||
Braces {% doesn't match so these words should not be considered as _liquid node_
|
||||
}}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
@@ -241,7 +431,7 @@ parsers: ["markdown"]
|
||||
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* }}
|
||||
Braces {% doesn't match so these words should not be considered as _liquid node_ }}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{{ page.title
|
||||
}} a
|
||||
|
||||
---
|
||||
|
||||
{%
|
||||
if user
|
||||
%} Hello, {{ user }}!
|
||||
{% endif %}
|
||||
@@ -0,0 +1,27 @@
|
||||
{{% blocks/cover
|
||||
title="Welcome"
|
||||
%}}
|
||||
|
||||
This input uses Hugo shortcode. Prettier doesn't support this explicitly but it shouldn't break it either.
|
||||
|
||||
{{% /blocks/cover %}}
|
||||
|
||||
---
|
||||
|
||||
{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{% blocks/cover
|
||||
%%}}
|
||||
|
||||
{{% blocks/cover
|
||||
}}}
|
||||
|
||||
{{{% blocks/cover
|
||||
%}}
|
||||
|
||||
{% blocks/cover
|
||||
%}}
|
||||
|
||||
{{ blocks/cover
|
||||
%}}
|
||||
Reference in new issue
Block a user