updated docs and tests for backtick codeblocks

This commit is contained in:
Brandon Mathis 2011-08-01 09:43:54 -04:00
parent d30c8c7f36
commit e21c2bc12d
3 changed files with 41 additions and 0 deletions

View File

@ -10,6 +10,8 @@ With the `backtick_codeblock` filter you can use Github's lovely back tick synta
Simply start a line with three back ticks followed by a space and the language you're using. Tab in four spaces Simply start a line with three back ticks followed by a space and the language you're using. Tab in four spaces
for your code snippets, and then finish your code block with three more back ticks. for your code snippets, and then finish your code block with three more back ticks.
**Note: Back tick code blocks are only supported in HTML and Markdown. With the Textile markup language, use the [codeblocks](/docs/plugins/codeblock/) instead.**
#### Syntax #### Syntax
{% codeblock %} {% codeblock %}

View File

@ -0,0 +1,19 @@
---
layout: page
title: "Code"
date: 2011-07-30 08:45
footer: false
sidebar: false
---
``` coffeescript
Tweets = 1
module.exports = Tweets
```
``` coffeescript
Tweets = 1
foo && bar
module.exports = Tweets
```

View File

@ -0,0 +1,20 @@
---
layout: page
title: "Textile"
date: 2011-08-01 08:13
comments: true
sharing: true
footer: true
---
``` coffeescript
_Tweets_ = 1
module.exports = Tweets
```
``` coffeescript
Tweets = 1
foo && bar
module.exports = Tweets
```