Fix Markdown (non-math) Engine, Tweak Themes

More tweaks to the supplied S5 themes.
Fixed a minor regression in the non-Math Markdown engine.
This commit is contained in:
Jacques Distler 2007-09-14 18:09:24 -05:00
parent 54aada824c
commit 08857ebe8e
6 changed files with 21 additions and 16 deletions

View file

@ -52,8 +52,9 @@ module Engines
@content.options[:renderer].s5_theme = my_content.s5_theme
sanitize_xhtml(my_content.to_s5)
else
sanitize_rexml(Maruku.new(@content.delete("\r"),
html = sanitize_rexml(Maruku.new(@content.delete("\r"),
{:math_enabled => false}).to_html_tree)
html.gsub(/\A<div class="maruku_wrapper_div">\n?(.*?)\n?<\/div>\Z/m, '\1')
end
end