You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
338 B
23 lines
338 B
13 years ago
|
require 'haml/filters'
|
||
|
require 'haml/helpers'
|
||
|
|
||
|
module Haml
|
||
|
module Filters
|
||
|
module Eqnarray
|
||
|
include Base
|
||
|
|
||
|
def render(text)
|
||
|
<<END
|
||
|
<div class="eqnarray">
|
||
|
$$
|
||
|
\\begin{eqnarray}
|
||
|
#{Haml::Helpers.html_escape(text).rstrip.gsub("\n", "\n ")}
|
||
|
\\end{eqnarray}
|
||
|
$$
|
||
|
</div>
|
||
|
END
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|