Skip to content

Instantly share code, notes, and snippets.

@basicallydan
Created April 26, 2013 14:06
Show Gist options
  • Save basicallydan/5467605 to your computer and use it in GitHub Desktop.
Save basicallydan/5467605 to your computer and use it in GitHub Desktop.
This is an HTML File which shows all the features one can expect a good Markdown parser which supports v1.0.1 to be able to output. The purpose of this file is to use it as something to create stylesheets against for content which started as markdown.
<h1>First-level Headers are Supported</h1>
<p>Paragraphs are supported.</p>
<p>Paragraphs are definitely supported.</p>
<h2>Second-level Headers are Supported</h2>
<ul>
<li>Unordered lists are supported</li>
<li>They are one of my favourite things to do in Markdown</li>
<ul>
<li>And don't forget about nested lists</li>
</ul>
</ul>
<h3>Third-level Headers are Supported</h3>
<ol>
<li>Sometimes you need to order lists</li>
<li>Numbers are fun!</li>
</ol>
<h4>Fourth-level Headers are Supported</h4>
<blockquote>
<p>Blockquotes are supported</p>
<p>Don't forget that other HTML elements may appear in blockquotes</p>
<h4>Such as a Fourth-level Header</h4>
<ul>
<li>Gotta support them all!</li>
</ul>
<blockquote>
<p>Keep in mind somebody may have a quote within a quote.</p>
</blockquote>
</blockquote>
<h5>Fifth-level Headers are Supported</h5>
<p>
Sometimes line breaks will<br />
Find a home in paragraphs<br />
E.g. in Haikus
</p>
<p>...so make sure you support that.</p>
<p>I can't <em>emphasise</em> this <strong>strong</strong>ly enough</p>
<h6>Sixth-level Headers are Supported... that's as deep as headers go, though.</h6>
<pre>
Sometimes pre-formatted text will appear. The text here tends to be preformatted.
Plus, line breaks require no &lt;br /&gt; tag
</pre>
<pre><code>
In Markdown If you put four characters before your text, or a tab, then it will be wrapped in both &lt;pre&gt; and &lt;code&gt; blocks
</code></pre>
<p>But sometimes, code will be <code>print()</code>ed inline with some regular text</p>
<hr />
<p>Yes, our old friend &lt;hr /&gt; is supported</p>
<p>Naturally, you can put a <a href="http://link.com">link</a> into Markdown, and you can give it a <a href="http://link.com" title="optional title">optional title</a>.</p>
<p>Finally, images are a pretty common feature too.</p>
<img src="http://i.qkme.me/3u40bz.jpg" alt="The image!" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment