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:
parent
54aada824c
commit
08857ebe8e
6 changed files with 21 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue