Liquid parsing stops partway

I have a file called bound.md in which I want to render every page in the site with the “command” layout on a single webpage, in alphabetical order. Every page before bound.md in alphabetical order renders fine, but every page after bound.md stops parsing the internal Liquid and leaves it in plaintext curly braces and all. How can I get it to properly parse the internal Liquid for every page?

I have tried two approaches to writing bound.md, both below.

---
layout: bound
title: Bound
---
{% assign docs = site.pages | where_exp:"doc", "doc.layout == 'command'" %}
{{ docs }}
---
layout: bound
title: Bound
---
{% for doc in site.pages %}
{% if doc.layout == "command" %}
{{ doc.content }}
{% endif %}
{% endfor %}

what version of jekyll?

I vaguely remember having this issue years ago but don’t remember anything about it.

What happens if you rename bound.md to zbound.md?

Seems to be the same as this, which I am not sure has a solution?other than maybe using the latest version?

maybe this is has the fix?

I am using Jekyll 4.3.2. The GitHub issue you linked looks like the same problem. Right now I have renamed it zbound.md which works and is probably fine for me but not exactly an elegant solution.