Add "html_excerpts" flag to allow Atom <summary> tags to contain HTML #397
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This option should be useful in feeds where the summaries have more complex content or formatting, such as when the post's
description
andexcerpt
front matter options are not set, causing Jekyll to use the entire first paragraph of the post as the excerpt.It pairs really well with
excerpts_only
for sites which may not want to put the entirety of each post's content in the feed, but who want to preserve the excerpt's rich formatting and content.In my site, for example, post excerpts often have images. Its feed currently contains the entire post content, but I'm considering switching it to
excerpts_only
, and I'd very much prefer keeping those images intact in the feed if I do switch.Note that this passes the W3C validator with no warnings, since feed.xml already uses
type="html"
in its<summary>
tags. And since it's an option, and not a change in the default behaviour, it shouldn't break existing content.This PR also comes complete with tests and documentation!