Converging on S5 support.

This commit is contained in:
Jacques Distler 2007-03-01 03:05:35 -06:00
parent 02c6ed2fa0
commit 41ff4724b8
9 changed files with 41 additions and 32 deletions

View file

@ -292,7 +292,8 @@ class WikiController < ApplicationController
if @web.markup == :markdownMML or @web.markup == :markdown
# @s5_content = sanitize_html(Maruku.new(@page.content.delete("\r\x01-\x08\x0B\x0C\x0E-\x1F"), {:raw => true}).to_s5)
@s5_content = sanitize_html(Maruku.new(@page.content.delete("\r\x01-\x08\x0B\x0C\x0E-\x1F"),
{:math_enabled => true, :math_numbered => ['\\[','\\begin{equation}'], :content_only => true}).to_s5)
{:math_enabled => true, :math_numbered => ['\\[','\\begin{equation}'], :content_only => true,
:author => @page.author, :title => @page.plain_name}).to_s5)
end
end