simonw / museums

A website recommending niche museums to visit

Home Page:https://www.niche-museums.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rogue <div style="white-space: normal"> in feeds

simonw opened this issue · comments

It looks like a change to Datasette has caused datasette-atom to start outputting feed items like this:

https://www.niche-museums.com/browse/feed.atom

<content type="html">
&lt;img src="https://niche-museums.imgix.net/hearst-castle.jpeg?w=800&amp;amp;h=400&amp;amp;fit=crop&amp;amp;auto=compress"&gt;
&amp;lt;div style="white-space: normal"&amp;gt;&lt;p&gt;In 1919 press baron William Randolph Hearst commissioned ...

That &amp;lt;div style="white-space: normal"&amp;gt; should not be there!

Hmm... maybe this only happens when used with the render_markdown() SQL function?

This isn't a datasette-atom bug - it's caused by this change in datasette-render-markdown: simonw/datasette-render-markdown@3311bd2 for simonw/datasette-render-markdown#9

That fixed it.