mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-23 16:08:53 -05:00
updated docs and tests for backtick codeblocks
This commit is contained in:
parent
d30c8c7f36
commit
e21c2bc12d
@ -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
|
||||
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
|
||||
|
||||
{% codeblock %}
|
||||
|
19
source/test/code/markdown/index.markdown
Normal file
19
source/test/code/markdown/index.markdown
Normal 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
|
||||
```
|
20
source/test/code/textile/index.textile
Normal file
20
source/test/code/textile/index.textile
Normal 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user