git.iko.soy/typeable/pandoc
on master help sign in
Set the template variable $pandoc-version$ to pandocVersion by default.
319832cAlex Vong
src/Text/Pandoc/Writers/Man.hs+1
@@ -86,6 +86,7 @@ pandocToMan opts (Pandoc meta blocks) = do
86 $ setFieldsFromTitle
86 $ setFieldsFromTitle
87 $ defField "has-tables" hasTables
87 $ defField "has-tables" hasTables
88 $ defField "hyphenate" True
88 $ defField "hyphenate" True
89+ $ defField "pandoc-version" pandocVersion
89 $ metadata
90 $ metadata
90 if writerStandalone opts
91 if writerStandalone opts
91 then return $ renderTemplate' (writerTemplate opts) context
92 then return $ renderTemplate' (writerTemplate opts) context