We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to replace markdown-it with remark, and the docs currently state:
markdown-it
remark
Note that overriding md opts-out of the default pre-processing by another template language of Markdown Files.
It would be great if we had access to the Liquid/Nunjucks/etc. pre-processing to make a fully-fledged replacement.
Mimicking the this.mdLib API like florianeckerstorfer/eleventy-plugin-remark is currently doing.
this.mdLib
No response
The text was updated successfully, but these errors were encountered:
For a Nunjucks-specific workaround, you can promisify the event to wait for, and obtain, a reference to the library and associated environment:
const njk = new Promise(resolve => { config.events.on('eleventy.engine.njk', payload => resolve(payload)); });
Later edit: due to Node's architecture you can't reliably await njk in compile() 🫠
await njk
compile()
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
I'm trying to replace
markdown-it
withremark
, and the docs currently state:Describe the solution you'd like
It would be great if we had access to the Liquid/Nunjucks/etc. pre-processing to make a fully-fledged replacement.
Describe alternatives you've considered
Mimicking the
this.mdLib
API like florianeckerstorfer/eleventy-plugin-remark is currently doing.Additional context
No response
The text was updated successfully, but these errors were encountered: