-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AMP: Render amp-gist from gist shortcode/oEmbed during AMP requests (#…
…10053) #### Changes proposed in this Pull Request: * Return `amp-gist` from a `gist` shortcode or oEmbed when in an AMP response. #### Testing instructions: 1. Install the [AMP plugin](https://github.com/Automattic/amp-wp). 2. Add a `gist` shortcode or gist oEmbed URL to a post. Then view that post in AMP. 3. View the AMP version of the post. Example content: ```html oEmbed: Full gist: https://gist.github.com/sebastianbenz/1d449dee039202d8b7464f1131eae449 oEmbed: Linking to a file via in a Gist: https://gist.github.com/sebastianbenz/1d449dee039202d8b7464f1131eae449#file-sw-html oEmbed: Linking to file without username in URL. https://gist.github.com/1d449dee039202d8b7464f1131eae449#file-sw-html Example from WordPress.com docs: [gist https://gist.github.com/2314628 /] Second example from WordPress.com docs: [gist]2314628[/gist] ``` Originally proposed in ampproject/amp-wp#375 See also ampproject/amphtml#17738 for details on the `amp-gist`'s `height` attribute. #### Proposed changelog entry for your changes: * Add Gist support for AMP responses.
- Loading branch information
1 parent
1526b40
commit 45551d8
Showing
2 changed files
with
100 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters