I know this doesn't exactly answer your question, but an simpler markup than <nowiki>**</nowiki>, would be %%**%%. Does the trick, but looks cleaner and saves you some key presses. You could also make a custom toolbar button (
plugin) with the code in question to make it easier to insert.