7

According to this announcement (is this the last announcement on the matter?), Markdown emphasis (bold or italics) inside a word is possible, as long as it does not happen directly next to a punctiation sign:

  1. If a single or double asterisk is supposed to be interpreted as intra-word emphasis, it cannot have punctuation on one side; it actually must be inside a word. An example of an edge case this solves is [...]

However, in posts (questions or answers), SE will happily render emphasized text after a dot:

  • A /8 broadcast IPv4 address should end in 255. For example, 192.168.1.255

This does not work in comments, as can be seen in this picture: bold text after a dot is not possible in comments

Is there a way to emphasize text directly after a punctuation sign in a comment?

(Note: my initial use case for this feature was this comment, where I copied a line of HTML code and wanted to highlight la in <span class="i1">la</span>. It would be great to have a solution for that too, but I understand that that might be too much to ask from comment formatting).

5
  • .**example that it does not work in comments**
    – wimi
    Commented Jun 27, 2020 at 9:00
  • 2
    the comment markdown is different / has a limited set of features it supports and that is unlikely to change. You can't achieve what you want with comment markdown.
    – rene Mod
    Commented Jun 27, 2020 at 9:02
  • Use some spaces
    – Luuklag
    Commented Jun 27, 2020 at 9:16
  • Intra-word emphasis doesn't work in comments, only in posts. Commented Jun 27, 2020 at 9:59
  • 1
    . example that it does not work in comments. Ideally, there should be a space after full stops. Commented Jun 27, 2020 at 10:29

1 Answer 1

4

There is a workaround for this specific situation.

I just verified it worked by posting it as a comment below the question—but then removed the comment in order to turn it into this answer.

Use the Bold Text Generator website, and generate the text you want in bold, then copy and paste that into the comment.

In this case, 192.168.1.255 will appear in the comment as:

192.168.1.𝟮𝟱𝟱

(You can copy and paste the above into a comment to test it.)


One thing to note about this is that not all devices display Unicode characters in the same way. It's possible that doing this would have the number in bold show up in an unexpected way for some people. But, in most cases, it should work.

You must log in to answer this question.

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