aboutsummaryrefslogtreecommitdiff
path: root/plugins/WordPressPlugin.hs
blob: 85b7ca72b10df3e892f6947463365432a167feea (plain)
1
2
3
4
5
6
7
8
9
10
module WordPressPlugin (transform) where
import Text.Pandoc

-- This plugin (when used with -m) prints LaTeX math in the
-- format required by WordPress blogs.  $e=mc^2$ becomes
-- $LaTeX e=mc^2$.

transform :: Inline -> Inline
transform (Math x y) = Math x $ "LaTeX " ++ y
transform x          = x