test/markups/README.litcoffee (view raw)
1Literate CoffeeScript Test
2--------------------------
3
4> Taken from https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee
5
6comment comment
7
8 test "basic literate CoffeeScript parsing", ->
9 ok yes
10
11now with a...
12
13 test "broken up indentation", ->
14
15... broken up ...
16
17 do ->
18
19... nested block.
20
21 ok yes
22
23Code must be separated from text by a blank line.
24
25 test "code blocks must be preceded by a blank line", ->
26
27The next line is part of the text and will not be executed.
28 fail()
29
30 ok yes
31
32Code in `backticks is not parsed` and...
33
34 test "comments in indented blocks work", ->
35 do ->
36 do ->
37 # Regular comment.
38
39 ###
40 Block comment.
41 ###
42
43 ok yes
44
45Regular [Markdown](http://example.com/markdown) features,
46like links and unordered lists, are fine:
47
48 * I
49
50 * Am
51
52 * A
53
54 * List
55
56Tabs work too:
57
58 test "tabbed code", ->
59 ok yes