gatsby-theme-carbon icon indicating copy to clipboard operation
gatsby-theme-carbon copied to clipboard

inline code word-wrapping at word boundaries

Open boneskull opened this issue 6 years ago • 0 comments
trafficstars

Detailed description

Inline code wants to wrap on what seems to be a "word boundary", which (IMO) is problematic, given the context.

Example:

image

What did you expect to happen? What happened instead? What would you like to see changed?

With the above example, --output should not wrap at the word boundary. In this particular case, it should not wrap at all.

It may make sense to allow wrapping at whitespace. I'm not sure how much control CSS provides over this behavior, however.

What browser are you working in?

Chromium-based

Steps to reproduce the issue

  1. Create a new paragraph in an MDX file using "default" layout. Here's the paragraph which reproduces the issue for me:

    By default, the `redact` command will print its output to `STDOUT` (the  terminal). Instead, let's use the `--output` option to write to a new file (smarties can also just ask their shell to redirect the output to a file):
    
  2. Reload the page and resize window if necessary to see wrapping of --output inline code

This might want to be tagged "usability" instead of "bug"; I'm not sure

boneskull avatar Sep 26 '19 19:09 boneskull