Archiving a bunch of old stuff

This commit is contained in:
Dan Buch
2015-06-22 13:15:42 -05:00
parent a6ec1d560e
commit bd1abd8734
395 changed files with 1 additions and 76 deletions

View File

@@ -0,0 +1,22 @@
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