How to Ignore Liquid Syntax Errors
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 11.9k
- Forks
- 1.5k
- Avg merge
- 17h 55m
- Merged PRs (30d)
- 3
Description
Hi;
I have a Jekyll website and this is a partial json file quoted in the documentations: {{3478, udp}, ejabberd_stun, []},.
Since it is a single line of a JSON file, it seems to have a syntax error and it prevents Jekyll to render the web page::
Liquid Exception: Liquid syntax error (line 91): Variable '{{3478, udp}' was not properly terminated with regexp: /\}\}/ in wiki/Deploying-XMPP-STUN-TURN-Services.md
...error:
Error: Liquid syntax error (line 91): Variable '{{3478, udp}' was not properly terminated with regexp: /\}\}/
Error: Run jekyll build --trace for more information.
I was wondering if there is any way I can ignore these types of errors.
I have already tried changing Liquid error mode in _config.yml nut, it still throws the error.
liquid:
error_mode: warn
liquid:
error_mode: lax
Thanks,
Vahid
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with wiki/Deploying-XMPP-STUN-TURN-Services.md and the Liquid parsing path involved in the reported line 91 error. Review how _config.yml error_mode is handled and run the documented jekyll build --trace reproduction. Done means the shown syntax can be handled as requested without preventing the page from rendering, with coverage for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jekyll, ruby
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100