Omit styles in RSS feeds and REST API responses#93
Conversation
Solely out of curiosity, is the reason we're still marking up code with highlight.php so RSS readers or REST consumers can add their own |
Co-authored-by: Vladimir Jimenez <[email protected]>
…ode-block into update/style-printing * 'master' of github.com:westonruter/syntax-highlighting-code-block: Rename parseSelectedLines as parseHighlightedLines Migrate our deprecated Gutenberg settings Run build during install Bump @wordpress/scripts from 8.0.1 to 9.0.0 Bump @wordpress/i18n from 3.11.0 to 3.12.0 Bump @wordpress/editor from 9.14.1 to 9.15.0 Rename attributes Bump @wordpress/components from 9.4.1 to 9.5.0
Yes, that would be a good reason. But also when there are highlighted lines, those will now be displayed in feed readers even without styles since they're using the |
Closes #9.
Now that the
markelement is being used to indicate highlighted lines, there is graceful degradation when stylesheets omitted. This means that when rendering code blocks in RSS feeds or the REST API, it makes sense to go ahead and render the Code blocks with highlight.php, as opposed to skipping entirely.