RedClothはmarkdownの出力には使えない?
markdownにはBlueClothを使えばいいみたいなんだけど。
RedClothの3.0.4、4.0.1で確認。
require 'rubygems' # gem 'RedCloth', '< 4.0.0' require 'redcloth' require 'bluecloth' [RedCloth, BlueCloth].each do |c| puts c.to_s + " " + "-" * 60 puts c.new(<<EOT).to_html(:markdown) See my [About](/about/) page for details. * abc * def * ghi ### abc EOT end
4.0.1ではリンクとh3がレンダリングできてない。
RedCloth ------------------------------------------------------------
<p>See my [About](/about/) page for details.</p>
<ul>
<li>abc</li>
<li>def</li>
<li>ghi</li>
</ul>
<ol>
<li>abc</li>
</ol>
BlueCloth ------------------------------------------------------------
<p>See my <a href="/about/">About</a> page for details. </p>
<ul>
<li>abc</li>
<li>def</li>
<li>ghi</li>
</ul>
<h3>abc</h3>
3.0.4だと、
gem 'RedCloth', '< 4.0.0'
リストがレンダリングできない。
RedCloth ------------------------------------------------------------
<p>See my <a href="/about/">About</a> page for details.</p>
<p>* abc
* def
* ghi</p>
<h3>abc</h3>
BlueCloth ------------------------------------------------------------
<p>See my <a href="/about/">About</a> page for details. </p>
<ul>
<li>abc</li>
<li>def</li>
<li>ghi</li>
</ul>
<h3>abc</h3>