I’m trying to use Markdown to apply bold and italic to the same text. I’ve tried wrapping the text in three asterisks, and also two asterisks that are in turn wrapped in underscores.
I just tried to share my code here in the forum, but even the code blocks render the markdown (both of which render correctly on the forum, btw)
Both of these render correctly when I preview the the HTML, but the source text doesn’t update the way bold text or italic text on its own would.
Is there a way to apply Markdown correctly so it will look bold and italic in the editor?
I suspect that the Markdown parser is at fault here - some of them can handle this and some can’t, this may not be in the original Markdown spec hence it not being present in all
On the topic of code blocks:
_**hello**_
***hello***
I can create code blocks fine (I’m using three backticks - ` - above and below my code).
And a lot of editors don’t handle bold/italic in Markdown exactly the way you’d expect. E.g. Markdown Mode in Emacs, which has been around nearly 15 years, will apply either bold or italic, depending on how you format your code.
At the end of the day, the in-editor highlighting is just a convenience, especially since it exports correctly.