3

If you enclose text with two asterisks, it will be displayed in bold letters. This shouldn't be the case in code blocks (I assume). When you edit or ask a question, the preview is displayed as expected. But the question is displayed differently after you finished editing it. The asterisks are still shown in the code block, but the text is displayed in bold letters.

I cannot reproduce this here on meta. Example:

**bold**
not bold

But have a look at the code block of this question. Screenshot for future reference (it happens on light and dark theme btw.):

enter image description here

2
  • 1
    Duplicate of: What is syntax highlighting and how does it work? - See the "How do I report a bug or request a new language?" section.
    – 41686d6564
    Oct 14, 2021 at 9:39
  • "the preview is displayed as expected. But the question is displayed differently after you finished editing it" It still looked bold/strong for me even while editing.
    – 41686d6564
    Oct 14, 2021 at 9:42

1 Answer 1

4

The bold came from the syntax highlighting. I updated the question to use no syntax highlighting using the following notation and the bold went away.

```none 
the code...
```

The system was guessing that that code was markdown. ** indicates something that is bold in markdown, so bolding for that flavor of syntax highlighting seems appropriate.

You can verify it with:

```markdown
**bold**
not bold
```
**bold**
not bold
5

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