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

Inline <code> elements should use white-space: nowrap styling #1505

Open
dmartin opened this issue Oct 12, 2021 · 3 comments
Open

Inline <code> elements should use white-space: nowrap styling #1505

dmartin opened this issue Oct 12, 2021 · 3 comments

Comments

@dmartin
Copy link

dmartin commented Oct 12, 2021

When using single-backtick inline code elements, one is almost always writing the name of a variable or a command line invocation that should be treated as a single token and not split across multiple lines.

Here are some examples where adding white-space: nowrap; to rendered inline <code> elements greatly improves readability, reduces confusion, and simplifies copy & pasting:

Before:
Screen Shot 2021-10-12 at 12 51 35 PM

After:
Screen Shot 2021-10-12 at 12 52 39 PM

Before:
Screen Shot 2021-10-12 at 12 59 41 PM

After:
Screen Shot 2021-10-12 at 1 00 14 PM

@dmartin dmartin changed the title Inline <code> blocks should use white-space: nowrap styling Inline <code> elements should use white-space: nowrap styling Oct 12, 2021
@lczech
Copy link

lczech commented Mar 21, 2023

Agreed, this is making my GitHub wiki hard to read at times. Using nowrap would greatly improve this! I tried messing around with <style> myself, but that is all ignored/sanitized by GitHub Markdown :-(

If anyone has a quick fix on how to solve this locally for GitHub wikis, please share :-)

Copy link

Stale issue message

@lczech
Copy link

lczech commented Sep 17, 2024

I'm still interested in that, please don't close the issue, dear bot :-)

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

No branches or pull requests

2 participants