Markdown: less sign and back slash interpretation

I'm writing a README.md file on GitHub. In my project explanation I would like to refer to a Windows user path, in particular:

C:Users<username>AppDataLocal

I just see here on SO that the formatting is working fine. On Github, instead, that row is shown like this:

C:Users<username>AppDataLocal

even if the md file contains the correct format. It seems that the and the < are (due to some rule I don't know) simply converted into < .

Do you have any clue why is happening?


Markdown allowd HTML entities in it, so '<' is &lt; , '' is eg &#92; (also works for me on GitHub) and '>' is &gt; etc.; search for HTML special characters if you need more. you can encode verything in UTF8 easily by the notation with &#dddd; where d stands for a digit.

unfortunately often in code segments or other interpreters it is different.

examples working in GitHub editor with preview:

C:Users<username>AppDataLocal

C:Users&lt;username&gt;AppDataLocal

C:&#92;Users&#92;&lt;username&gt;&#92;AppData&#92;Local

all result to the same output.

链接地址: http://www.djcxy.com/p/20184.html

上一篇: 如何知道我的应用显示通知是否被禁用?

下一篇: Markdown:减号和反斜杠解释