Skip to content

Conversation

@brokul-dev
Copy link
Contributor

@brokul-dev brokul-dev commented Feb 11, 2021

This fixes html error (div inside pre tag). As discussed style tag inside body stays.

Fixes #280.

@westonruter westonruter requested a review from allejo February 11, 2021 18:34
Copy link
Contributor

@allejo allejo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍


Just for future documentation, I'm using the Twenty Twenty theme and it's the .wp-block-code class that plays a role in this (see #80 (comment)).

Without this extra DOM element of a display: block, a code block will render like this:

image

However, with the extra DOM element that is a display: block, it will look correctly like so:

image

Result: any DOM element with a display: block will fix the overflow issue.

@westonruter westonruter merged commit 639d7fc into westonruter:develop Feb 11, 2021
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 this pull request may close these issues.

HTML validation errors

3 participants