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

BUG: prevent automatic inline conversion by class #9873

Merged
merged 2 commits into from Nov 22, 2021

Conversation

ebolyen
Copy link
Contributor

@ebolyen ebolyen commented Nov 19, 2021

Feature or Bugfix

  • Bugfix

Purpose

To prevent inline nodes from being automatically coerced into specific HTML 5 elements.

This was a new feature added in docutils 0.17 and conflicts with some of the short class names added in #9023, namely "s" which is automatically coerced into a strike-through element.

Relates

See #9872 for motivation.


This is largely a drive-by effort. I don't know if this is the way you all would prefer to solve this, but I was able to get it working, and it seems like a very mild change. No hard feelings if this isn't the way you want to go.

Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

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

Good catch! I've never noticed such a behavior. LGTM with nits.

sphinx/writers/html5.py Outdated Show resolved Hide resolved
@tk0miya
Copy link
Member

tk0miya commented Nov 21, 2021

I think this is a critical bug. So could you rebase this into the 4.3.x branch? Then I'll release a new package including this fix as 4.3.1 soon.

@ebolyen
Copy link
Contributor Author

ebolyen commented Nov 21, 2021

@tk0miya thanks for the review! I'll update to a class-var and rebase first thing Monday :)

@ebolyen ebolyen changed the base branch from 4.x to 4.3.x November 22, 2021 16:30
@ebolyen
Copy link
Contributor Author

ebolyen commented Nov 22, 2021

@tk0miya ready for re-review, thanks!

@ebolyen
Copy link
Contributor Author

ebolyen commented Nov 22, 2021

Just kidding...

@ebolyen
Copy link
Contributor Author

ebolyen commented Nov 22, 2021

Ok, copy-paste error fixed. All set.

@tk0miya tk0miya merged commit a6ac73b into sphinx-doc:4.3.x Nov 22, 2021
@tk0miya
Copy link
Member

tk0miya commented Nov 22, 2021

Merged. Thank you for your contribution!

tk0miya added a commit that referenced this pull request Nov 22, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants