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 AMP #5

Closed
westonruter opened this issue Dec 26, 2018 · 1 comment · Fixed by #32
Closed

Add support for AMP #5

westonruter opened this issue Dec 26, 2018 · 1 comment · Fixed by #32

Comments

@westonruter
Copy link
Contributor

westonruter commented Dec 26, 2018

It would be nice if the block would output an amp-mathml element when is_amp_endpoint. This could be done via a "conditionally-dynamic" block, for example at the template_redirect action it could check if is_amp_endpoint() and if so, then register a mathml/mathmlblock block in PHP with a render_callback that takes the static markup saved in the editor and convert it to amp-mathml. (Idea comes from conversation with @youknowriad.)

In the same way, potentially_add_front_end_mathjax_script() could short-circuit when is_amp_endpoint().

@adamsilverstein
Copy link
Owner

👍 thanks for the suggestion

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 a pull request may close this issue.

2 participants