File: README.litcoffee.html

package info (click to toggle)
ruby-github-markup 1.7.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 372 kB
  • sloc: ruby: 441; python: 170; sh: 26; makefile: 18; perl: 12
file content (55 lines) | stat: -rw-r--r-- 1,326 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<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>