git.iko.soy/typeable/pandoc
on ca2bbaf help sign in
typeable/pandoc/plugins/WordPressPlugin.hs
10 lines 299 B history raw
1module WordPressPlugin (transform) where
2import Text.Pandoc
4-- This plugin (when used with -m) prints LaTeX math in the
5-- format required by WordPress blogs. $e=mc^2$ becomes
6-- $LaTeX e=mc^2$.
8transform :: Inline -> Inline
9transform (Math x y) = Math x $ "LaTeX " ++ y
10transform x = x