问题
This may seem to defeat the purpose of a code block, but I'd like to be able to bold something within a code block. For example, if I wanted to bold the return line:
int main(void) {
**return 0;**
}
回答1:
You would have to do this in HTML, by design.
However, inside Markdown code spans and blocks, angle brackets and ampersands are always encoded automatically.
<pre>
int main(void) {
<b>return 0;</b>
}
</pre>
来源:https://stackoverflow.com/questions/10063896/how-do-i-add-markdown-formatting-in-a-code-pre-block