Use fenced code blocks for bash commands, and mark them as bash commands
Install packages Monokai Extended and Markdown Extended, and enable both by default in settings