Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for syntax highlighting in AMP Reader mode #7

Closed
westonruter opened this issue Jul 31, 2019 · 1 comment
Closed

Add support for syntax highlighting in AMP Reader mode #7

westonruter opened this issue Jul 31, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@westonruter
Copy link
Owner

The stylesheet for colorizing the code is not currently loaded in AMP Reader mode template.

This should probably wait until the entire templates are sent through the post-processor so that we get tree-shaking: ampproject/amp-wp#2202

That being said, the default.css stylesheet is only 1.2KB, so it's not a big deal.

@allejo allejo added the enhancement New feature or request label Apr 18, 2020
@westonruter
Copy link
Owner Author

This is now supported automatically by AMP plugin v1.5+, as any block styles will automatically be added to the Reader mode template:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants