Sha256: 2882dd84f67ecc6550dd9eacc9c6bfea2906cfb3030ef7a48e85fb8033d39d1b

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

<h2>Literate CoffeeScript Test</h2>
<blockquote>
<p>Taken from <a href="https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee">https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee</a></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

3 entries across 3 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/github-markup-5.0.1/test/markups/README.litcoffee.html
github-markup-5.0.1 test/markups/README.litcoffee.html
github-markup-5.0.0 test/markups/README.litcoffee.html