4

This question already has an answer here:

I would like to add bold (or italic) text to inline code (not a block of code). So in one **two** three, I would like "two" to be bold rather than surrounded by asterisks.

Note: This is a similar question to this question. However, that question uses a code block example (not inline), and the accepted (and highest voted) answer on that page only works for code blocks.

marked as duplicate by Pikachu the Watermelon Wizard, Ward, Nathan Tuggy, Sonic the Inclusive Hedgehog, Robert Longson Feb 15 at 7:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • this question is similar to this one, but I am interested in inline code, not a block of code. – wxyz Feb 15 at 0:14
  • 2
    This answer and this answer deal with inline code blocks. – a wizard arachnid Feb 15 at 1:11
  • @Ward I just edited my question with a note explaining why I believe my question is slightly different – wxyz Feb 15 at 3:39
6

You could do something like

<code>one **two** three</code>

one two three

or

<code>one <b>two</b> three</code>

one two three

4

It's not elegant, but it's possible: onetwothree.

Markdown:

`one `**`two`**` three`

(This trick works with any type of formatting.)

  • 5
    You can also just use <code></code> instead of backticks, and then any Markdown inside it will still be processed. (Note that the method in the answer loses the white space on mobile, and it all becomes one word.) – animuson Feb 15 at 0:41

Not the answer you're looking for? Browse other questions tagged .