Open skn opened 3 years ago
If xml:base is added, another thing to keep in mind as per the feed validator is to handle Self Document Reference https://validator.w3.org/feed/docs/warning/SameDocumentReference.html
Even after the proposed changes though, it is only one part of the solution. The other part on the side of rss readers is a pain sometimes https://community.tt-rss.org/t/xml-base-not-honored-when-resolving-relative-uris-in-atom-entrys-content/4664
Any elegant way to force bluecloth to insert absolute path for inline images (line: 1087 bluecloth.rb) than to hardcode the base URL?
Yes, xml:base is ignored by many RSS readers. I don't have a solution for trivium, you can maybe reuse this ancient code from 2004: https://leahneukirchen.org/repos/nukumi2/_darcs/current/lib/nukumi2/rewritelinks.rb
Bluecloth does not add absolute path to the img src when parsing markdown (I guess it can't to it in a generic manner without some sort of extra wrapper support) for the content.
This means that xml:base need to be explicitly stated in the atom feed template at the highest level or per entry.