-
Notifications
You must be signed in to change notification settings - Fork 336
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
Disable hyphenation by default #2820
Comments
another example on your main site: |
Yikes, that is some aggressive hyphenation. We could disable, but I'm wondering if there's a better CSS approach for more conservative treatment of word breaks. |
I think it should also be straightforward with CSS to completely suppress hyphenation in code blocks, but what you pasted above is not a code block, per se. |
They're still As far as I can tell from a google search, the only middle ground between |
Maybe we could only enable auto hyphenation when the page width is particularly narrow? |
pkgdown 2.1.0's changelog contains the following item:
However, the actual change made seems to impact far more than just "very long words...on mobile". In fact, it seems to affect all content in the main body of any roxygen site page, and tends to be incredibly eager to hyphenate almost any word at the end of a line.
There are some fairly egregious examples in your own development docs:
And even worse, long variable or function names inside of code tags can still get hyphenated:
I think this loss in clarity and legibility is not at all worth it just to occasionally avoid horizontal scrollbars on mobile.
The text was updated successfully, but these errors were encountered: