Search code examples
markdowngithub-flavored-markdown

Nonbreaking space in inline code


I'm trying to write a regex, ^ call X *([(&]|$), into a README.md but it gets split at the end of a sentence:

some text ... ^ call X
*([(&]|$)

I think it's probably understandable that there is a space between X and * but it would still be better to display it continuously. Is it possible? It tried   but it seems not to be working in inline mode.


Solution

  • You must use HTML for this:

    <code>^&nbsp;call&nbsp;X&nbsp;*([(&]|$)</code>