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

Issue/643 heading emphasis classic #645

Merged
merged 2 commits into from
Oct 25, 2021

Conversation

AlanFCMV
Copy link
Member

@AlanFCMV AlanFCMV commented Sep 9, 2021

For UDOIT classic allows headings to be colored as long as the whole heading is colored, as the heading itself provides an alternate form of emphasis independent of the color of the text. A subsection of a heading having a different color is still considered an error.

Copy link
Contributor

@jasonmatos23-git jasonmatos23-git left a comment

Choose a reason for hiding this comment

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

The check works for the intuitive case of <h2>Hello, <span style="color: ...">World</span></h2> but not for when we have nested spans. Consider:

<h2>Head <span style="font-weight: normal; font-style: normal;"><span style="font-weight: normal; font-style: normal; color: #993300;">Again</span> Again</span></h2>
<p>Content</p>

This is not detected.

Copy link
Member

@bagofarms bagofarms left a comment

Choose a reason for hiding this comment

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

Chris's point is valid, but that limitation existed already, and isn't necessarily part of this fix.

@bagofarms bagofarms merged commit cc061ee into classic Oct 25, 2021
@bagofarms bagofarms deleted the issue/643-heading-emphasis-classic branch October 25, 2021 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants