let Gollum::Markup handle code blocks instead of RedCarpet

This commit is contained in:
rick
2011-09-29 11:02:35 -06:00
parent 6887c89d5c
commit 8c1f82d894
2 changed files with 34 additions and 3 deletions
+2 -1
View File
@@ -449,6 +449,7 @@ module Gollum
@wiki.sanitizer
data = extract_tex(@data.dup)
data = extract_code(data)
data = extract_tags(data)
flags = [
@@ -457,11 +458,11 @@ module Gollum
:tables,
:strikethrough,
:lax_htmlblock,
:gh_blockcode,
:no_intraemphasis
]
data = Redcarpet.new(data, *flags).to_html
data = process_tags(data)
data = process_code(data)
doc = Nokogiri::HTML::DocumentFragment.parse(data)