[英]How to make a GitHub README page display HTML code as is
I've got this small piece of HTML (a blockquote element containing ap and a footer) that I want to display on a GitHub README page as code.我有一小段 HTML(一个包含 ap 和页脚的块引用元素),我想将它作为代码显示在 GitHub README 页面上。 I've tried indenting it 4 spaces, but then it just displays what's inside the HTML, not the entire markup snippet.
我试过将它缩进 4 个空格,但它只显示 HTML 中的内容,而不是整个标记片段。 I also tried wrapping it around in pre and code tags and quoting it with (```).
我还尝试将它包装在 pre 和 code 标签中并用 (```) 引用它。 No avail.
徒劳无功。
I've used 4-space indenting in a different README so I'm really puzzled why it doesn't work this time around.我在不同的自述文件中使用了 4 个空格缩进,所以我真的很困惑为什么这次它不起作用。
It should be README.md
应该是
README.md
Example 例
I've got this small piece of HTML
<blockquote>
<p>
</p>
<footer>
</footer>
</blockquote>
I think you are adding a tag by typing <tag>
inside your markdown file.我认为您是通过在 Markdown 文件中键入
<tag>
来添加标签的。 Instead, type this <tag>
相反,键入此
<tag>
. . Hope it works.
希望它有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.