我不太确定在哪里提出这个问题以及StackOverflow是否是正确的地方,所以如果不是,请道歉。 无论如何,虽然我的问题与编程本身没有直接关系,但它涉及与编程相关的任务:编写文档。
我使用GitHub-Flavored Markdown编写文档,在一个关于Web服务的文档中,我使用术语WS-* 。 现在我想通过使它成斜体来强调这个术语,所以通常我这样做:
*foo*WS-*现在的问题是它已经以星号结束,所以我得到:
*WS-**我的Markdown解析器无法正确识别,因为它将此解释为open italic并close bold 。
如何在与标准兼容的有效Markdown中正确地编写它(因此可以与符合标准的解析器一起使用)?
I'm not quite sure where to ask this question and whether StackOverflow is the right place, so please apologize if it is not. Anyway, although my question is not directly related to programming itself, it concerns a task that is related to programming: Writing documentation.
I write documentation using GitHub-Flavored Markdown, and in one document on web services I am using the term WS-*. Now I want to emphasize this term by making it italic, so usually I do this like this:
*foo*The problem with WS-* now is that it already ends with a star, so I get:
*WS-**Which is not correctly recognized by my Markdown parser, as it interpretes this as open italic and close bold.
How can I correctly write this in valid Markdown, that is compatible to the standard (and hence works with standard-compliant parsers)?
最满意答案
像这样使用_single underscores_ :
_WS-*_它导致了
<em>WS-*</em>它符合标准 。
Use _single underscores_ like this:
_WS-*_It results in
<em>WS-*</em>It's standard-compliant.
更多推荐
发布评论