Skip to content

Preventing Jekyll from running liquid on imported content #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
furnstahl opened this issue Oct 2, 2023 · 0 comments
Open

Preventing Jekyll from running liquid on imported content #24

furnstahl opened this issue Oct 2, 2023 · 0 comments

Comments

@furnstahl
Copy link
Collaborator

When we read in bandsdk.md or other content from bandframework (or elsewhere), the imported content by default is rendered by liquid. This will cause a problem if there is syntax imported that is misinterpreted by liquid. This happened with markdown in bandsdk.md that used {{ in a BibTeX entry, which threw a liquid error. This has been fixed by changing {{ --> { { in that file, but a better solution would be to suppress the rendering when the file is included.

Note that one rendering problem was fixed by renaming _pages/submodules to _pages/_submodules, which tells liquid to not render all the files in _submodules (which it was doing).

But so far there is not a working fix for being able to do an include like:
{% include_relative _submodules/bandframework/resources/sdkpolicies/bandsdk.md %}
and keep it from being rendered by liquid. Attempts to use raw/endraw and capture/endcapture did not succeed.

mosesyhc added a commit that referenced this issue Oct 12, 2023
Similar patch for issue raised in #24
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

No branches or pull requests

1 participant