<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
<preclass="sourceCode haskell"><code>unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
unsplit = arr . uncurry
-- arr (\op (x,y) -> x `op` y)
</code></pre>
<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
<pre><code>f *** g = first f >>> second g
<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
<pre class="sourceCode literate haskell"><code>> unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
> unsplit = arr . uncurry
> -- arr (\op (x,y) -> x `op` y)
</code></pre>
<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
<pre><code>f *** g = first f >>> second g
<table><caption>Demonstration of simple table syntax.</caption><thead><trclass="header"><thalign="right">Right</th>
<thalign="left">Left</th>
<thalign="center">Center</th>
@ -69,9 +64,7 @@
<tdalign="left">1</td>
</tr>
</tbody></table>
<p>Multiline table with caption:</p>
<table><caption>Here's the caption. It may span multiple lines.</caption><colwidth="15%"/><colwidth="13%"/><colwidth="16%"/><colwidth="33%"/><thead><trclass="header"><thalign="center">Centered Header</th>
<thalign="left">Left Aligned</th>
<thalign="right">Right Aligned</th>
@ -88,9 +81,7 @@
<tdalign="left">Here's another one. Note the blank line between rows.</td>
<p>This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.</p>
<hr/>
<h1id="headers">Headers</h1>
<h2id="level-2-with-an-embedded-link">Level 2 with an <ahref="/url">embedded link</a></h2>
<h3id="level-3-with-emphasis">Level 3 with <em>emphasis</em></h3>
<h4id="level-4">Level 4</h4>
<h5id="level-5">Level 5</h5>
<h1id="level-1">Level 1</h1>
<h2id="level-2-with-emphasis">Level 2 with <em>emphasis</em></h2>
<h3id="level-3">Level 3</h3>
<p>with no blank line</p>
<h2id="level-2">Level 2</h2>
<p>with no blank line</p>
<hr/>
<h1id="paragraphs">Paragraphs</h1>
<p>Here’s a regular paragraph.</p>
<p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.</p>
<p>Here’s one with a bullet. * criminey.</p>
<p>There should be a hard line break<br/>here.</p>
<hr/>
<h1id="block-quotes">Block Quotes</h1>
<p>E-mail style:</p>
<blockquote>
<p>This is a block quote. It is pretty short.</p></blockquote>
<blockquote>
<p>Code in a block quote:</p>
<blockquote><p>This is a block quote. It is pretty short.</p></blockquote>
<p>Auto-links should not occur here: <code><http://example.com/></code></p>
<pre><code>or here: <http://example.com/>
</code></pre>
<hr/>
<h1id="images">Images</h1>
<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
<divclass="figure">
<imgsrc="lalune.jpg"title="Voyage dans la Lune"alt="lalune"/><pclass="caption">lalune</p>
</div>
<p>Here is a movie <imgsrc="movie.jpg"alt="movie"/> icon.</p>
<hr/>
<h1id="footnotes">Footnotes</h1>
<p>Here is a footnote reference,<sup><ahref="#fn1"class="footnoteRef"id="fnref1">1</a></sup> and another.<sup><ahref="#fn2"class="footnoteRef"id="fnref2">2</a></sup> This should <em>not</em> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<sup><ahref="#fn3"class="footnoteRef"id="fnref3">3</a></sup></p>
<blockquote>
<p>Notes can go in quotes.<sup><ahref="#fn4"class="footnoteRef"id="fnref4">4</a></sup></p></blockquote>
<blockquote><p>Notes can go in quotes.<sup><ahref="#fn4"class="footnoteRef"id="fnref4">4</a></sup></p></blockquote>
<olstyle="list-style-type: decimal">
<li>And in list items.<sup><ahref="#fn5"class="footnoteRef"id="fnref5">5</a></sup></li>
</ol>
<p>This paragraph should not be part of the note, as it is not indented.</p><divclass="footnotes">
<p>This paragraph should not be part of the note, as it is not indented.</p>
<divclass="footnotes">
<hr/>
<ol>
<liid="fn1">
<p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document. <ahref="#fnref1"class="footnoteBackLink"title="Jump back to footnote 1">↩</a></p></li>
<liid="fn2">
<p>Here’s the long note. This one contains multiple blocks.</p>
<liid="fn1"><p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document. <ahref="#fnref1"class="footnoteBackLink"title="Jump back to footnote 1">↩</a></p></li>
<liid="fn2"><p>Here’s the long note. This one contains multiple blocks.</p>
<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p>
<pre><code> { <code> }
</code></pre>
<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block. <ahref="#fnref2"class="footnoteBackLink"title="Jump back to footnote 2">↩</a></p></li>
<liid="fn3">
<p>This is <em>easier</em> to type. Inline notes may contain <ahref="http://google.com">links</a> and <code>]</code> verbatim characters, as well as [bracketed text]. <ahref="#fnref3"class="footnoteBackLink"title="Jump back to footnote 3">↩</a></p></li>
<liid="fn4">
<p>In quote. <ahref="#fnref4"class="footnoteBackLink"title="Jump back to footnote 4">↩</a></p></li>
<liid="fn5">
<p>In list. <ahref="#fnref5"class="footnoteBackLink"title="Jump back to footnote 5">↩</a></p></li>
</ol></div>
<liid="fn3"><p>This is <em>easier</em> to type. Inline notes may contain <ahref="http://google.com">links</a> and <code>]</code> verbatim characters, as well as [bracketed text]. <ahref="#fnref3"class="footnoteBackLink"title="Jump back to footnote 3">↩</a></p></li>
<liid="fn4"><p>In quote. <ahref="#fnref4"class="footnoteBackLink"title="Jump back to footnote 4">↩</a></p></li>
<liid="fn5"><p>In list. <ahref="#fnref5"class="footnoteBackLink"title="Jump back to footnote 5">↩</a></p></li>