rf-web/vendor/bundle/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.html
2019-10-21 10:18:17 +02:00

21 lines
889 B
HTML

<p>normal</p>
<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">require</span> <span class="s1">'kramdown'</span>
<span class="no">Kramdown</span><span class="o">::</span><span class="no">Document</span><span class="p">.</span><span class="nf">new</span><span class="p">(</span><span class="n">text</span><span class="p">).</span><span class="nf">to_html</span>
</code></pre></div></div>
<p>indent with tab</p>
<pre><code>```ruby
require 'kramdown'
Kramdown::Document.new(text).to_html
```
</code></pre>
<p>indent with 2 spaces</p>
<div class="language-js highlighter-rouge"><div class="highlight"><pre class="highlight"><code> <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s2">"hello"</span><span class="p">);</span>
</code></pre></div></div>