[3.9.x] Markdown: Don't let Liquid objects interrupt paragraphs (#20087)

Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
Seiyaandfisker authored and GitHub committed 2026-09-18 05:02:50 +08:00
1 parent 5b142ed2bc
commit 5ec8db1745
4 files changed
+210 -2

No files matched your search

@@ -511,6 +511,163 @@ Inline {{ liquid }} stays inline.
================================================================================
`;
exports[`issue-20083.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
proseWrap: "always"
printWidth: 80 (default) |
=====================================input======================================
Taken from https://github.com/mdn/content/blob/3f221b9845703eb21db70cdc321f843d5c1c072b/files/en-us/webassembly/reference/javascript_interface/module/customsections_static/index.md?plain=1#L32-L33
If \`module\` is not a [\`WebAssembly.Module\`](/en-US/docs/WebAssembly/Reference/JavaScript_interface/Module) object instance, a
{{jsxref("TypeError")}} is thrown.
---
text
{% comment %} here is comment {% endcomment %}
---
text
{{ comment }} here is comment {{ endcomment }}
---
text
{% comment %} text
---
text
{{ comment }} text
---
text
{{abc}}
---
text
{% tag %}
=====================================output=====================================
Taken from
https://github.com/mdn/content/blob/3f221b9845703eb21db70cdc321f843d5c1c072b/files/en-us/webassembly/reference/javascript_interface/module/customsections_static/index.md?plain=1#L32-L33
If \`module\` is not a
[\`WebAssembly.Module\`](/en-US/docs/WebAssembly/Reference/JavaScript_interface/Module)
object instance, a {{jsxref("TypeError")}} is thrown.
---
text {% comment %} here is comment {% endcomment %}
---
text {{ comment }} here is comment {{ endcomment }}
---
text {% comment %} text
---
text {{ comment }} text
---
text
{{abc}}
---
text
{% tag %}
================================================================================
`;
exports[`issue-20083.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80 (default) |
=====================================input======================================
Taken from https://github.com/mdn/content/blob/3f221b9845703eb21db70cdc321f843d5c1c072b/files/en-us/webassembly/reference/javascript_interface/module/customsections_static/index.md?plain=1#L32-L33
If \`module\` is not a [\`WebAssembly.Module\`](/en-US/docs/WebAssembly/Reference/JavaScript_interface/Module) object instance, a
{{jsxref("TypeError")}} is thrown.
---
text
{% comment %} here is comment {% endcomment %}
---
text
{{ comment }} here is comment {{ endcomment }}
---
text
{% comment %} text
---
text
{{ comment }} text
---
text
{{abc}}
---
text
{% tag %}
=====================================output=====================================
Taken from https://github.com/mdn/content/blob/3f221b9845703eb21db70cdc321f843d5c1c072b/files/en-us/webassembly/reference/javascript_interface/module/customsections_static/index.md?plain=1#L32-L33
If \`module\` is not a [\`WebAssembly.Module\`](/en-US/docs/WebAssembly/Reference/JavaScript_interface/Module) object instance, a
{{jsxref("TypeError")}} is thrown.
---
text
{% comment %} here is comment {% endcomment %}
---
text
{{ comment }} here is comment {{ endcomment }}
---
text
{% comment %} text
---
text
{{ comment }} text
---
text
{{abc}}
---
text
{% tag %}
================================================================================
`;
exports[`unbalanced-mismatched-braces.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
@@ -0,0 +1,34 @@
Taken from https://github.com/mdn/content/blob/3f221b9845703eb21db70cdc321f843d5c1c072b/files/en-us/webassembly/reference/javascript_interface/module/customsections_static/index.md?plain=1#L32-L33
If `module` is not a [`WebAssembly.Module`](/en-US/docs/WebAssembly/Reference/JavaScript_interface/Module) object instance, a
{{jsxref("TypeError")}} is thrown.
---
text
{% comment %} here is comment {% endcomment %}
---
text
{{ comment }} here is comment {{ endcomment }}
---
text
{% comment %} text
---
text
{{ comment }} text
---
text
{{abc}}
---
text
{% tag %}