File: fenced_code_blocks.md

package info (click to toggle)
ruby-maruku 0.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,296 kB
  • ctags: 492
  • sloc: ruby: 5,726; xml: 235; makefile: 2
file content (58 lines) | stat: -rw-r--r-- 2,073 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Fenced code blocks
*** Parameters: ***
{ :fenced_code_blocks => true, :html_use_syntax => false }
*** Markdown input: ***
```ruby
john = Twitter::Client.new(
  :oauth_token => "John's access token",
  :oauth_token_secret => "John's access secret"
)
```

```
john = Twitter::Client.new(
  :oauth_token => "John's access token",
  :oauth_token_secret => "John's access secret"
)
```

~~~~~ruby
john = Twitter::Client.new(
  :oauth_token => "John's access token",
  :oauth_token_secret => "John's access secret"
)
~~~~~~~

~~~~~
john = Twitter::Client.new(
  :oauth_token => "John's access token",
  :oauth_token_secret => "John's access secret"
)
~~~~~
*** Output of inspect ***
md_el(:document, [
	md_el(:code, [], {:raw_code=>"john = Twitter::Client.new(\n  :oauth_token => \"John's access token\",\n  :oauth_token_secret => \"John's access secret\"\n)", :lang=>"ruby"}),
	md_el(:code, [], {:raw_code=>"john = Twitter::Client.new(\n  :oauth_token => \"John's access token\",\n  :oauth_token_secret => \"John's access secret\"\n)", :lang=>nil}),
	md_el(:code, [], {:raw_code=>"john = Twitter::Client.new(\n  :oauth_token => \"John's access token\",\n  :oauth_token_secret => \"John's access secret\"\n)", :lang=>"ruby"}),
	md_el(:code, [], {:raw_code=>"john = Twitter::Client.new(\n  :oauth_token => \"John's access token\",\n  :oauth_token_secret => \"John's access secret\"\n)", :lang=>nil})
])
*** Output of to_html ***
<pre class="ruby"><code class="ruby">john = Twitter::Client.new(
  :oauth_token =&gt; "John's access token",
  :oauth_token_secret =&gt; "John's access secret"
)</code></pre>

<pre><code>john = Twitter::Client.new(
  :oauth_token =&gt; "John's access token",
  :oauth_token_secret =&gt; "John's access secret"
)</code></pre>

<pre class="ruby"><code class="ruby">john = Twitter::Client.new(
  :oauth_token =&gt; "John's access token",
  :oauth_token_secret =&gt; "John's access secret"
)</code></pre>

<pre><code>john = Twitter::Client.new(
  :oauth_token =&gt; "John's access token",
  :oauth_token_secret =&gt; "John's access secret"
)</code></pre>