<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Melroch @ Random &#187; Markdown</title>
	<atom:link href="http://blog.melroch.se/tag/markdown/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.melroch.se</link>
	<description>Random ideas and thoughts of Benct Philip Jonsson</description>
	<lastBuildDate>Sat, 31 Oct 2009 17:32:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Markdown Extra guide</title>
		<link>http://blog.melroch.se/markdown-extra-guide/</link>
		<comments>http://blog.melroch.se/markdown-extra-guide/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 11:56:43 +0000</pubDate>
		<dc:creator>melroch</dc:creator>
				<category><![CDATA[Editing]]></category>
		<category><![CDATA[Markdown]]></category>

		<guid isPermaLink="false">http://blog.melroch.se/?page_id=25</guid>
		<description><![CDATA[N.B. Where id appears in this document it 
should be replaced with a unique identifier string!

Inline elements



Links

There are two ways to make a link:

This is an [inline](http://melroch.se "Optional title") link.


This is an inline link.

This is a [definition][id] link.


Then on its own line anywhere in the text:

[id]: http://melroch.se "Optional title"


This is a definition link.

If you leave [...]]]></description>
			<content:encoded><![CDATA[<p><strong>N.B.</strong> Where <code>id</code> appears in this document it 
should be replaced with a unique identifier string!</p>

<h2>Inline elements</h2>

<p><span id="more-25"></span></p>

<h3>Links</h3>

<h4>There are two ways to make a link:</h4>

<pre><code>This is an [inline](http://melroch.se "Optional title") link.
</code></pre>

<p>This is an <a href="http://melroch.se">inline</a> link.</p>

<pre><code>This is a [definition][id] link.
</code></pre>

<p>Then on its own line anywhere in the text:</p>

<pre><code>[id]: http://melroch.se "Optional title"
</code></pre>

<p>This is a <a href="http://melroch.se" title="My homepage">definition</a> link.</p>

<h4>If you leave the ID empty you can use the linked text as ID:</h4>

<pre><code>This is [another][] definition link

[another]: http://melroch.se "Same thing!"
</code></pre>

<p>This is <a href="http://melroch.se" title="Same thing!">another</a> definition link</p>

<h4>Automatic links:</h4>

<pre><code>&lt;http://melroch.se&gt;
</code></pre>

<p><a href="http://melroch.se">http://melroch.se</a></p>

<pre><code>&lt;foo@bar.baz&gt;
</code></pre>

<p><a href="&#109;&#97;&#x69;&#x6c;&#116;&#111;&#x3a;&#x66;&#111;&#111;&#x40;&#x62;&#97;&#114;&#x2e;&#x62;a&#122;">&#x66;&#111;&#111;&#x40;&#x62;&#97;&#114;&#x2e;&#x62;a&#122;</a></p>

<h3>Images</h3>

<h4>Images can also be linked in two ways:</h4>

<pre><code>![alt text](http://blog.melroch.se/some/path/melrochrandom.png "Optional title")
</code></pre>

<p><img src="http://tinyurl.com/2ww37v" alt="alt text" title="Optional title" /></p>

<pre><code>![alt text][id]

[id]: http://blog.melroch.se/some/path/melrochrandom.png "Optional title"
</code></pre>

<p><img src="http://tinyurl.com/2ww37v" alt="alt text" title="Optional title" /></p>

<p>or:</p>

<pre><code>![alt text][]

[alt text]: http://blog.melroch.se/some/path/melrochrandom.png "Optional title"
</code></pre>

<p><img src="http://tinyurl.com/2ww37v" alt="alt text" title="Optional title" /></p>

<h3>Footnotes <em>(<a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> Extra only)</em></h3>

<p>Put a <em>footnote reference</em> somewhere in the document:</p>

<pre><code>There is an orange fruit[^id] in the fridge.
</code></pre>

<p>and then the identifier followed by the footnote text in its
own paragraph anywhere in the document:</p>

<pre><code>[^id]: Not an orange, but some other fruit of that color.
</code></pre>

<p>And the footnotes will be placed in order at the end of the output:</p>

<blockquote>
  <p>There is an orange fruit<sup id="fnref:fnote"><a href="#fn:fnote" rel="footnote">1</a></sup> in the fridge.</p>
</blockquote>

<p><strong>N.B.</strong> you can only have one reference to each footnote.</p>

<h3>Abbreviations <em>(<a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> Extra only)</em></h3>

<p>If you write put a declaration of the form</p>

<pre><code>*[abbr]: definition
</code></pre>

<p>anywhere in your text every occurrence of <em>abbr</em> will 
be wrapped in <code>&lt;abbr&gt;</code> tags and given a <code>title</code> attribute 
consisting of <em>definition</em>:</p>

<pre><code>&lt;abbr title="definition"&gt;abbr&lt;/abbr&gt;
</code></pre>

<p>E.g.</p>

<pre><code>There is a sharon fruit in the fridge

*[sharon fruit]: an orange colored fruit
</code></pre>

<p>There is a <abbr title="an orange colored fruit">sharon fruit</abbr> in the fridge</p>

<h3>Emphasis</h3>

<h4><code>&lt;em&gt;</code> tag (usually rendered as <i>italics</i>):</h4>

<pre><code>*One asterisk* or _underscore_ before and after the emphasized span.
</code></pre>

<p><em>asterisk</em> or <em>underscore</em></p>

<h4><code>&lt;strong&gt;</code> tag (usually rendered as <b>bold</b>):</h4>

<pre><code>**Two asterisks** or __underscores__ before and after the strong span.
</code></pre>

<p><strong>asterisks</strong> or <strong>underscores</strong></p>

<p><strong>N.B</strong> This differs from the common usage in email where <code>_single underscores_</code> mark <u>underline</u> or <i>&#8216;italics&#8217;</i> (c.f. how underline was commonly used as handwriting equivalent of italics) and <code>*single asterisks*</code> marks <b>&#8216;bold&#8217;</b>.  Even though the traditional handwriting equivalent of <b>bold</b> was <span style="border-bottom: 3pt double #000;">double underline</span> I consider this a misfeature of <a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a>!</p>

<h3>Inline code</h3>

<h4>Enclose in backticks:</h4>

<pre><code>Entities like to `&amp;ouml;` make <acronym title="HyperText Markup Language">HTML</acronym> unreadable!
</code></pre>

<p>Entities like to <code>&amp;ouml;</code> make <acronym title="HyperText Markup Language">HTML</acronym> unreadable!</p>

<h2>Block elements</h2>

<h3>Paragraph</h3>

<p>One or more lines of text, separated by one or more blank lines.</p>

<h4><code>&lt;br /&gt;</code> tag</h4>

<p>End a line inside a paragraph with two or more spaces.</p>

<h3>Inline <acronym title="HyperText Markup Language">HTML</acronym></h3>

<h4>You can use any <acronym title="HyperText Markup Language">HTML</acronym> inside <a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a></h4>

<ul>
<li>Indent opening tag by no more than three spaces.</li>
<li>Inside a list, indent to the same level as the list.</li>
</ul>

<h3>Code blocks</h3>

<p>Indent 4 spaces or 1 tab</p>

<h3><a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> inside <acronym title="HyperText Markup Language">HTML</acronym> blocks <em>(<a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> Extra only)</em></h3>

<pre><code>&lt;div <a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">markdown</a>="1"&gt;
 This text *will* be processed by <a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">markdown</a>
 &lt;/div&gt;
</code></pre>

<div>

<p>This text <em>will</em> be processed by <a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">markdown</a></p>

</div>

<h3>Blockquotes</h3>

<p>Right angles in the left margin, like in email:</p>

<pre><code>&gt; Vides ut alta stet
 &gt; nive candidum Soracte
</code></pre>

<blockquote>
  <p>Vides ut alta stet
  nive candidum Soracte</p>
</blockquote>

<h3>Horizontal rules:</h3>

<p>At least three astersiks or dashs or underscores 
with an optional space between
with blank lines before and after:</p>

<pre><code>***

---

___

----------------------------

* * * 

- - - 

_ _ _ 
</code></pre>

<hr />

<hr />

<hr />

<hr />

<hr />

<hr />

<hr />

<h3>Headers</h3>

<div style="font-size: small;">

<p>In this section all headers which illustrate output
rather than belong to the structure of this document
are shown in blockquotes.  The blockquote indicators are
of course not part of the output of the header markup!</p>

</div>

<h4>There are two styles of H1 and H2:</h4>

<pre><code># Header 1 #

or

Header 1
 ========


## Header 2 ##

or

Header 2
 --------
</code></pre>

<blockquote>
  <h1>Header 1</h1>
  
  <p>or</p>
  
  <h1>Header 1</h1>
  
  <h2>Header 2</h2>
  
  <p>or</p>
  
  <h2>Header 2</h2>
</blockquote>

<h4>Lower level headers</h4>

<pre><code>### Header 3 ###

#### Header 4 ####

##### Header 5 #####

##### Header 6 #####
</code></pre>

<blockquote>
  <h3>Header 3</h3>
  
  <h4>Header 4</h4>
  
  <h5>Header 5</h5>
  
  <h5>Header 6</h5>
</blockquote>

<p>Closing hashes are optional</p>

<pre><code>## Header 2 ##
</code></pre>

<p>and</p>

<pre><code>## Header 2
</code></pre>

<p>give the same thing.</p>

<blockquote>
  <h2>Header 2</h2>
</blockquote>

<h4>Header ID attribute <em>(<a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> Extra only)</em></h4>

<pre><code># Header 1 {#header1}

or

Header 2 {#header2}
 --------
</code></pre>

<blockquote>
  <h1 id="header1">Header 1</h1>
  
  <p>or</p>
  
  <h2 id="header2">Header 2</h2>
</blockquote>

<h4>Link back to header <em>(<a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> Extra only)</em></h4>

<pre><code>[Link back to header 1](#header1)
</code></pre>

<p><a href="#header1">Link back to header 1</a></p>

<h3>Lists</h3>

<h4>Unordered lists</h4>

<p>Asterisks, plus signs or dashes:</p>

<pre><code>* Tic    + Tic    - Tic
 * Tac    + Tac    - Tac
 * Toe    + Toe    - Toe
</code></pre>

<ul>
<li>Tic</li>
<li>Tac</li>
<li>Toe</li>
</ul>

<h4>Ordered lists</h4>

<p>Ordered or unordered digits followed by a period</p>

<pre><code>1. Tic    1. Tic
 2. Tac    1. Tac
 3. Toe    1. Toe
</code></pre>

<ol>
<li>Tic</li>
<li>Tac</li>
<li>Toe</li>
</ol>

<h4>Definition lists</h4>

<pre><code>Term
:   Definition
</code></pre>

<dl>
<dt>Term</dt>
<dd>Definition</dd>
</dl>

<p><em>Multiple definitions:</em></p>

<pre><code>Orange
 :   A city in France
 :   A fruit
</code></pre>

<dl>
<dt>Orange</dt>
<dd>A city in France</dd>

<dd>A fruit</dd>
</dl>

<p><em>Multiple terms:</em></p>

<dl>
<dt>Orange</dt>
<dt>Naranja</dt>
<dt>Apelsin</dt>
<dd>
<p>The same fruit in three languages</p>

<dl>
Orange
 Naranja
 Apelsin
<dd>The same fruit in three languages</dd>
</dl>
</dd>
</dl>

<h3>Tables <em>(<a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> Extra only)</em></h3>

<pre><code>Header A   | Header B 
 -----------|-----------
 Content 1a | Content 1b
 Content 2a | Content 2b
</code></pre>

<p>or:</p>

<pre><code>| Header A   | Header B   | 
 | -----------|------------| 
 | Content 1a | Content 1b | 
 | Content 2a | Content 2b | 
</code></pre>

<table>
<thead>
<tr>
  <th>Header A</th>
  <th>Header B</th>
</tr>
</thead>
<tbody>
<tr>
  <td>Content 1a</td>
  <td>Content 1b</td>
</tr>
<tr>
  <td>Content 2a</td>
  <td>Content 2b</td>
</tr>
</tbody>
</table>

<h4>Text alignment within columns</h4>

<p>Uses the <acronym title="HyperText Markup Language">HTML</acronym> ALIGN attribute</p>

<pre><code>| Unspecified | Left | Center | Right |
 |-------------|:-----|:------:|------:|
 | Number      | 10   | 20     | 30    |
</code></pre>

<table>
<thead>
<tr>
  <th>Unspecified</th>
  <th align="left">Left</th>
  <th align="center">Center</th>
  <th align="right">Right</th>
</tr>
</thead>
<tbody>
<tr>
  <td>Number</td>
  <td align="left">10</td>
  <td align="center">20</td>
  <td align="right">30</td>
</tr>
</tbody>
</table>

<h2>Literal characters</h2>

<p>LITERAL CHARACTERS
Use backslash escape to insert the following characters literally:
<table>
<thead>
<tr>
  <th>To get</th>
  <th>Type</th>
  <th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
  <td>&#92;</td>
  <td><code>\\</code></td>
  <td>backslash</td>
</tr>
<tr>
  <td>&#96;</td>
  <td><code>&#92;&#96;</code></td>
  <td>backtick</td>
</tr>
<tr>
  <td>&#42;</td>
  <td><code>\*</code></td>
  <td>asterisk</td>
</tr>
<tr>
  <td>&#95;</td>
  <td><code>\_</code></td>
  <td>underscore</td>
</tr>
<tr>
  <td>&#123;&#125;</td>
  <td><code>\{\}</code></td>
  <td>curly braces</td>
</tr>
<tr>
  <td>&#91;&#93;</td>
  <td><code>\[\]</code></td>
  <td>square brackets</td>
</tr>
<tr>
  <td>&#40;&#41;</td>
  <td><code>\(\)</code></td>
  <td>parentheses</td>
</tr>
<tr>
  <td>&#35;</td>
  <td><code>\#</code></td>
  <td>hash mark</td>
</tr>
<tr>
  <td>&#43;</td>
  <td><code>\+</code></td>
  <td>plus sign</td>
</tr>
<tr>
  <td>&#45;</td>
  <td><code>\-</code></td>
  <td>minus sign (hyphen)</td>
</tr>
<tr>
  <td>&#46;</td>
  <td><code>\.</code></td>
  <td>dot</td>
</tr>
<tr>
  <td>&#33;</td>
  <td><code>\!</code></td>
  <td>exclamation mark</td>
</tr>
<tr>
  <td>&#58;</td>
  <td><code>\:</code></td>
  <td>colon <em>(<a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> Extra only)</em></td>
</tr>
<tr>
  <td>&#124;</td>
  <td><code>\|</code></td>
  <td>pipe <em>(<a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> Extra only)</em></td>
</tr>
</tbody>
</table></p>

<pre><code>\\ \`    \*  \_  \{\} \[\] \(\) \#   \+  \-  \.  \!  \:  \| 
</code></pre>

<p>&#92; &#96;    &#42;  &#95;  &#123;&#125; &#91;&#93; &#40;&#41; &#35;   &#43;  &#45;  &#46;  &#33;  &#58;  &#124;</p>

<ul>
<li><a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a>: <a href="http://daringfireball.net/projects/markdown/syntax">http://daringfireball.net/projects/markdown/syntax</a></li>
<li><acronym title="Pre-Hypertext Processing">PHP</acronym> <a href="http://blog.melroch.se/tag/markdown/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Markdown">Markdown</a> Extra: <a href="http://www.michelf.com/projects/php-markdown/extra/">http://www.michelf.com/projects/php-markdown/extra/</a></li>
<li>This page was based on: <a href="http://www.thingoid.com/2006/01/markdown-cheat-sheet/">http://www.thingoid.com/2006/01/markdown-cheat-sheet/</a></li>
</ul>

<div class="footnotes">
<hr />
<ol>

<li id="fn:fnote">
<p>Not an <em>orange</em>, but some other fruit of that color.&#160;<a href="#fnref:fnote" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
	Tags: <a href="http://blog.melroch.se/topic/editing/" title="Editing" rel="tag">Editing</a>, <a href="http://blog.melroch.se/tag/editing/" title="Editing" rel="tag">Editing</a>, <a href="http://blog.melroch.se/tag/markdown/" title="Markdown" rel="tag">Markdown</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.melroch.se/markdown-extra-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
