21 lines
889 B
HTML
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>
|