Reputation: 1071
I've got this small piece of HTML (a blockquote element containing a p and a footer) that I want to display on a GitHub README page as code. I've tried indenting it 4 spaces, but then it just displays what's inside the HTML, not the entire markup snippet. I also tried wrapping it around in pre and code tags and quoting it with (```). 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.
Upvotes: 0
Views: 5593
Reputation: 189
I think you are adding a tag by typing <tag>
inside your markdown file. Instead, type this <tag>
. Hope it works.
Upvotes: 0
Reputation: 1
It should be README.md
Example
I've got this small piece of HTML
<blockquote>
<p>
</p>
<footer>
</footer>
</blockquote>
Upvotes: 1