all repos — markup @ 819fa6024eaf2e5fe4854c81cf1d5834a793f113

The code we use to render README.your_favorite_markup

test/markups/README.litcoffee.html (view raw)

 1<h2>Literate CoffeeScript Test</h2>
 2
 3<blockquote>
 4<p>Taken from https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee</p>
 5</blockquote>
 6
 7<p>comment comment</p>
 8
 9<pre><code>test &quot;basic literate CoffeeScript parsing&quot;, ->
10  ok yes
11</code></pre>
12
13<p>now with a...</p>
14
15<pre><code>test &quot;broken up indentation&quot;, ->
16</code></pre>
17
18<p>... broken up ...</p>
19
20<pre><code>  do ->
21</code></pre>
22
23<p>... nested block.</p>
24
25<pre><code>    ok yes
26</code></pre>
27
28<p>Code must be separated from text by a blank line.</p>
29
30<pre><code>test &quot;code blocks must be preceded by a blank line&quot;, ->
31</code></pre>
32
33<p>The next line is part of the text and will not be executed.
34      fail()</p>
35
36<pre><code>  ok yes
37</code></pre>
38
39<p>Code in <code>backticks is not parsed</code> and...</p>
40
41<pre><code>test &quot;comments in indented blocks work&quot;, ->
42  do ->
43    do ->
44      # Regular comment.
45
46      ###
47        Block comment.
48      ###
49
50      ok yes
51</code></pre>
52
53<p>Regular <a href="http://example.com/markdown">Markdown</a> features,
54like links and unordered lists, are fine:</p>
55
56<ul>
57<li><p>I</p></li>
58<li><p>Am</p></li>
59<li><p>A</p></li>
60<li><p>List</p></li>
61</ul>
62
63<p>Tabs work too:</p>
64
65<p>test &quot;tabbed code&quot;, ->
66    ok yes</p>