I've experienced a problem with <kbd> tag and the asterisk * on Stack Overflow.

How to reproduce:

  1. <kbd>*</kbd> bug <kbd>*</kbd>

    which provides: bug

  2. <kbd>**</kbd> bug <kbd>*</kbd>
    which provides: ** bug *

  3. <kbd>**</kbd> bug <kbd>**</kbd>
    which provides bug

Example without the issue:

/ bug *

1 Answer 1


You need to escape the asterisks since they are involved in formatting in markdown.





Same applies to _ if you want to show the _ key.

You must log in to answer this question.

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