11ty / eleventy-plugin-rss

A pack of Eleventy plugins for generating an RSS feed.
https://www.11ty.dev/docs/plugins/rss/
MIT License
92 stars 23 forks source link

Nunjucks parsing <link /> issue #6

Closed Heydon closed 3 years ago

Heydon commented 5 years ago

Here's a weird one 😅.

When I parse feed.njk each <link> has its self-closing / removed, breaking the XML.

error in Firefox about tags not matching

The outputted code looks like the following (note the removed /). This applies to each link tag in the feed.xml file.

<link href="http://127.0.0.1:8080/feed.xml" rel="self">
Heydon commented 5 years ago

This appears to be an issue with liquid too. Or maybe it's not related to the template engine.

Heydon commented 5 years ago

Yeah, looks more like an issue with posthtml.

Note that <link>[x]</link> (RSS syntax instead of Atom) is also converted, to <link>[x].

zachleat commented 3 years ago

I did finally figure this one out! More info at https://github.com/11ty/eleventy-plugin-rss/issues/12

This will be fixed with 1.1.0

Heydon commented 3 years ago

@zachleat w00t!