Skip to content

feat: add inject_css filter for styling feed content - #172

Merged
shouya merged 1 commit into
shouya:masterfrom
TickTockBent:feat/inject-css
Feb 28, 2026
Merged

feat: add inject_css filter for styling feed content#172
shouya merged 1 commit into
shouya:masterfrom
TickTockBent:feat/inject-css

Conversation

@TickTockBent

Copy link
Copy Markdown
Contributor

Adds a new inject_css filter that prepends a <style> block to the body of each post in a feed. Useful for RSS readers that render HTML content but don't provide styling control.

Configuration:

filters:
  - inject_css: "body { max-width: 40em; font-size: 16px; }"

Follows the existing filter architecture: InjectCssConfig implements FeedFilterConfig, InjectCss implements FeedFilter, registered via define_filters! macro.

Closes #164

(Split from #171 per maintainer feedback.)

Adds a new `inject_css` filter that prepends a <style> block to the
body of each post in a feed. This is useful for RSS readers that
render HTML content but don't provide styling control — users can
inject custom CSS to improve readability of specific feeds.

Configuration is a simple string value:

    filters:
      - inject_css: "body { max-width: 40em; font-size: 16px; }"

Follows the existing filter architecture: InjectCssConfig implements
FeedFilterConfig, InjectCss implements FeedFilter, registered via
define_filters! macro.

Closes #164
@shouya
shouya merged commit b310a56 into shouya:master Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inject css filter

2 participants