Sha256: df185c12696f6b3245b749e08219f25c9bc18b2d5b5e8f7c6212df993e1e41b8

Contents?: true

Size: 1.27 KB

Versions: 8

Compression:

Stored size: 1.27 KB

Contents

<h2>Literate CoffeeScript Test</h2>

<blockquote>
<p>Taken from https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee</p>
</blockquote>

<p>comment comment</p>

<pre><code>test &quot;basic literate CoffeeScript parsing&quot;, -&gt;
  ok yes
</code></pre>

<p>now with a...</p>

<pre><code>test &quot;broken up indentation&quot;, -&gt;
</code></pre>

<p>... broken up ...</p>

<pre><code>  do -&gt;
</code></pre>

<p>... nested block.</p>

<pre><code>    ok yes
</code></pre>

<p>Code must be separated from text by a blank line.</p>

<pre><code>test &quot;code blocks must be preceded by a blank line&quot;, -&gt;
</code></pre>

<p>The next line is part of the text and will not be executed.
      fail()</p>

<pre><code>  ok yes
</code></pre>

<p>Code in <code>backticks is not parsed</code> and...</p>

<pre><code>test &quot;comments in indented blocks work&quot;, -&gt;
  do -&gt;
    do -&gt;
      # Regular comment.

      ###
        Block comment.
      ###

      ok yes
</code></pre>

<p>Regular <a href="http://example.com/markdown">Markdown</a> features,
like links and unordered lists, are fine:</p>

<ul>
<li><p>I</p></li>
<li><p>Am</p></li>
<li><p>A</p></li>
<li><p>List</p></li>
</ul>

<p>Tabs work too:</p>

<p>test &quot;tabbed code&quot;, -&gt;
    ok yes</p>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
github-markup-1.3.1 test/markups/README.litcoffee.html
github-markup-1.3.0 test/markups/README.litcoffee.html
github-markup-1.2.1 test/markups/README.litcoffee.html
github-markup-1.2.0 test/markups/README.litcoffee.html
github-markup-1.1.2 test/markups/README.litcoffee.html
github-markup-1.1.1 test/markups/README.litcoffee.html
github-markup-1.1.0 test/markups/README.litcoffee.html
github-markup-1.0.3 test/markups/README.litcoffee.html