🐞 Describe the bug
Currently some configuration options for Nunjucks are hardcoded into the action.
|
nunjucks.configure({ autoescape: true, trimBlocks: true, lstripBlocks: true }) |
These can be incompatible with the needs of a project. For example, in a YAML project, autoescape can cause single quotes (') to be replaced with HTML entity codes (').
📚 To reproduce
Use a template-based approach to write YAML containing single quotes.
💡 Expected behavior
Nunjucks should be configurable by setting some options on the action that are passed into the nunjucks.configure function.
🖼️ Screenshots
No response
⚙️ Environment
v1.18.0
📋 Additional context
I'd be happy to open a PR to resolve this.
🐞 Describe the bug
Currently some configuration options for Nunjucks are hardcoded into the action.
repo-file-sync-action/src/helpers.js
Line 8 in 27113d1
These can be incompatible with the needs of a project. For example, in a YAML project,
autoescapecan cause single quotes (') to be replaced with HTML entity codes (').📚 To reproduce
Use a template-based approach to write YAML containing single quotes.
💡 Expected behavior
Nunjucks should be configurable by setting some options on the action that are passed into the
nunjucks.configurefunction.🖼️ Screenshots
No response
⚙️ Environment
v1.18.0
📋 Additional context
I'd be happy to open a PR to resolve this.