Open edbrannin opened 4 years ago
I had a quick play around with this in this branch: https://github.com/lewisnyman/eleventy-plugin-rss/tree/universal-filters
The problem is that the posthtml plugin that htmlToAbsoluteUrls filter relies on is async, and nunjucks is the almost the only templating language that supports asynchronous filters.
Just as a related reminder, we do have a section on the docs about how to use these filters in other template languages: https://www.11ty.dev/docs/plugins/rss/#use-with-other-template-languages-new-in-rss-1.1.0
I would note that the use of Nunjucks here does give us a nice safe autoescape feature that some other template languages don‘t provide 👀
(and async filters work in Liquid as of Eleventy 1.x—fwiw)
https://www.11ty.io/docs/filters/#universal-filters