webmasterish / vuepress-plugin-feed

RSS, Atom, and JSON feeds generator plugin for VuePress 1.x
MIT License
48 stars 13 forks source link

feat: Add full-text content output #7

Open Maecenas opened 5 years ago

Maecenas commented 5 years ago

Add full-text content output.

Description

Add as a default option to export full-text content.

Checklist

You may preview the sample feed output at my blog. One thing to notice is that I haven't exported the canonical src for <img> tags. Local development with Reeder 4 would correctly display the result (<img src='/pic.jpg'></img>), while Reeder 3 wouldn't. The default heading anchor (#) from VuePress also didn't been removed from the output.

Development (Reeder 4) Development on Reeder 4 Development (Reeder 3) Development on Reeder 3

webmasterish commented 5 years ago

Hi @Maecenas,

It needs to support any feed reader, that's why the paths need to be absolute.

Maecenas commented 5 years ago

Hi @webmasterish, The images on third-party CDN work there. The images with absolute src can be addressed by calling url.resolve(path: string): string. But for those images with relative src (./test.jpg, those placed in the same folder with markdown), I have no idea for now, as plugins like this are applied before the minification started.