Skip to content

fix: wrap code block in raw tags to prevent Jekyll Liquid syntax error#14

Open
thebenmerlin wants to merge 1 commit intofinos:mainfrom
thebenmerlin:fix/jekyll-liquid-syntax-error
Open

fix: wrap code block in raw tags to prevent Jekyll Liquid syntax error#14
thebenmerlin wants to merge 1 commit intofinos:mainfrom
thebenmerlin:fix/jekyll-liquid-syntax-error

Conversation

@thebenmerlin
Copy link
Copy Markdown

Summary

Fixes the Jekyll/GitHub Pages build failure caused by a Liquid syntax error in AGENTS.md.

Problem

The actions/jekyll-build-pages step fails with:
Liquid syntax error (line 148): Variable '{{ {', '.join(field_strs)}'

The Pattern Matching code example contains Python f-string syntax with double curly braces ({{ }}) that Jekyll's Liquid template engine misinterprets as template variables.

Fix

Wrapped the code block in {% raw %}{% endraw %} tags to prevent Liquid processing of the Python code example. The rendered markdown is unchanged.

The Pattern Matching code example contains Python f-string syntax with double
curly braces ({{ }}) that Jekyll's Liquid template engine misinterprets as
template variables, causing the build to fail. Wrapped the block in {% raw %} tags
to skip Liquid processing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant