The markdown specification recommends using asterisks specifically for that. It is not exactly intended, but left to the interpreter. Most markdown interpreters leave the underscores intact if they’re inside a word.
https://www.markdownguide.org/basic-syntax/#italic-best-practices