Skip to content

Inline style elements can erroneously get contents displayed #96

@westonruter

Description

@westonruter

I tried deploying the latest state of the plugin to a dev environment for blog.amp.dev, and something surprising resulted:

Screen Shot 2020-05-06 at 11 07 18

This is due to the site's theme having this style:

.page-content>*, .entry-content>*, .entry-summary>* {
    display: block;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    max-width: calc(45 * 1rem);
}

To help mitigate this, I think we perhaps need to inject the link and style elements into the pre tag as opposed to preceding that tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions