markup icon indicating copy to clipboard operation
markup copied to clipboard

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

Open dmartin opened this issue 4 years ago • 3 comments

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 avatar Oct 12 '21 20:10 dmartin

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 :-)

lczech avatar Mar 21 '23 09:03 lczech

Stale issue message

github-actions[bot] avatar Sep 17 '24 12:09 github-actions[bot]

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

lczech avatar Sep 17 '24 12:09 lczech

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 18 '24 12:11 github-actions[bot]

...

lczech avatar Nov 19 '24 00:11 lczech

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 18 '25 12:02 github-actions[bot]

Disappointing. Any explanation as to why this is not planned?

lczech avatar Feb 25 '25 14:02 lczech