Sha256: 1ce639eee861dd09b78de08d783bec485eda542a4745129b684c57ad9f500c30

Contents?: true

Size: 1.22 KB

Versions: 25

Compression:

Stored size: 1.22 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 "basic literate CoffeeScript parsing", -&gt;
  ok yes
</code></pre>

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

<pre><code>test "broken up indentation", -&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 "code blocks must be preceded by a blank line", -&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 "comments in indented blocks work", -&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 "tabbed code", -&gt;
    ok yes</p>

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
gitlab-markup-2.0.0 test/markups/README.litcoffee.html
gitlab-markup-1.10.0 test/markups/README.litcoffee.html
gitlab-markup-1.9.0 test/markups/README.litcoffee.html
gitlab-markup-1.8.1 test/markups/README.litcoffee.html
gitlab-markup-1.8.0 test/markups/README.litcoffee.html
gitlab-markup-1.7.1 test/markups/README.litcoffee.html
gitlab-markup-1.7.0 test/markups/README.litcoffee.html
gitlab-markup-1.6.5 test/markups/README.litcoffee.html
gitlab-markup-1.6.4 test/markups/README.litcoffee.html
gitlab-markup-1.6.3 test/markups/README.litcoffee.html
gitlab-markup-1.6.2 test/markups/README.litcoffee.html
gitlab-markup-1.6.1 test/markups/README.litcoffee.html
gitlab-markup-1.6.0 test/markups/README.litcoffee.html
github-markup-1.4.7 test/markups/README.litcoffee.html
github-markup-1.4.6 test/markups/README.litcoffee.html
github-markup-1.4.4 test/markups/README.litcoffee.html
github-markup-1.4.3 test/markups/README.litcoffee.html
github-markup-1.4.2 test/markups/README.litcoffee.html
github-markup-1.4.1 test/markups/README.litcoffee.html
gitlab-markup-1.5.1 test/markups/README.litcoffee.html