Taken from https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee
comment comment
test "basic literate CoffeeScript parsing", ->
ok yes
now with a...
test "broken up indentation", ->
... broken up ...
do ->
... nested block.
ok yes
Code must be separated from text by a blank line.
test "code blocks must be preceded by a blank line", ->
The next line is part of the text and will not be executed. fail()
ok yes
Code in backticks is not parsed
and...
test "comments in indented blocks work", ->
do ->
do ->
# Regular comment.
###
Block comment.
###
ok yes
Regular Markdown features, like links and unordered lists, are fine:
I
Am
A
List
Tabs work too:
test "tabbed code", -> ok yes