fullstackplus
fullstackplus

Reputation: 1071

How to make a GitHub README page display HTML code as is

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

Answers (2)

Siddhesh Agarwal
Siddhesh Agarwal

Reputation: 189

I think you are adding a tag by typing <tag> inside your markdown file. Instead, type this &lt;tag&gt;. Hope it works.

Upvotes: 0

Zombo
Zombo

Reputation: 1

It should be README.md

Example

I've got this small piece of HTML 

<blockquote>
    <p>
    </p>
    <footer>
    </footer>
</blockquote>

Upvotes: 1

Related Questions