[BUILD BROKEN] BlueCloth the original distribution has some bugs. Digged out a patched-up version from Instiki 0.9

This commit is contained in:
Alexey Verkhovsky 2005-04-10 17:48:50 +00:00
parent 6f36e53290
commit a251b658f1
5 changed files with 1149 additions and 4 deletions

View file

@ -1,6 +1,7 @@
$: << File.dirname(__FILE__) + "../../lib"
require 'redcloth'
require 'bluecloth_tweaked'
require 'rdocsupport'
require 'chunks/chunk'
@ -27,7 +28,10 @@ module Engines
class Textile < AbstractEngine
def mask
RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts]).to_html(:textile)
redcloth = RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts])
redcloth.filter_html = false
redcloth.no_span_caps = false
redcloth.to_html(:textile)
end
end
@ -39,7 +43,8 @@ module Engines
class Mixed < AbstractEngine
def mask
RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts]).to_html
RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts]).to_html(
:textile, :markdown)
end
end