photogabble / eleventy-plugin-interlinker

Adds wikilink and wikilink embed support with tracking of backlinks.
https://photogabble.co.uk/projects/eleventyjs-interlink-plugin/
MIT License
17 stars 1 forks source link

BUG: Autodetect embed layout engine from template ext #36

Open carbontwelve opened 4 months ago

carbontwelve commented 4 months ago

In #35 I note that in my website, with the bug that #35 fixes, the embed compiler was being passed template content of my nunjucks file and then rendering it within liquid causing crashing due to syntax error.

The plugin should autodetect the embed layout engine from the file ext, subsequently it should only allow embedding markdown files as we pass the uncompiled file content into the render engine and tell it to do markdown and the emebed template's language.