/* # Moonchild Moonchild brings source code to life. The code below show some examples of what you can do with Moonchild: - You can parse **Markdown** and render it as HTML - You can link to symbols like `addOne` - Are you not _impressed_?!? */ var answer = 42; // To life, the universe, and everything. var HIGHLIGHT_COLOR = '#beef00'; /* Below is a widget that shows the status of your tests. Try editing the source code to make the test pass! */ function addOne(num) { return num + 2; } //^ { testFor: 'addOne' } function test_addOne() { assert.equal(addOne(41), 42); } //^ { type: 'template', sampleData: { greeting: 'Hello', name: 'Dolly', message: 'How do you do?' } } var template = '
{{ greeting }}, {{ name }}!
{{ message }}
';
All
Colors
Markdown
Linkify
Tests