Skip to content

Conversation

tneotia
Copy link
Contributor

@tneotia tneotia commented Jun 28, 2021

Title, fixes #747.

//Return the correct InlineSpan based on the element type.
if (tree.style.display == Display.BLOCK && tree.children.isNotEmpty) {
if (tree.style.display == Display.BLOCK &&
(tree.children.isNotEmpty || tree.element?.localName == "hr")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Note to self: I don't think there are any other tags that render as block yet have no children. cf https://developer.mozilla.org/en-US/docs/Glossary/Empty_element

@erickok erickok merged commit 5e73279 into Sub6Resources:master Jul 23, 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.

[BUG] <hr> no longer works as of 2.1.0
2 participants