File: README.litcoffee.html

package info (click to toggle)
ruby-github-markup 1.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 316 kB
  • ctags: 65
  • sloc: ruby: 281; python: 85; sh: 15; makefile: 13
file content (66 lines) | stat: -rw-r--r-- 1,304 bytes parent folder | download
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
56
57
58
59
60
61
62
63
64
65
66
<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>