diff options
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/App.hs | 1 | ||||
-rw-r--r-- | src/Text/Pandoc/Writers/Ms.hs | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index 29a8add3d..0fc883792 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -696,6 +696,7 @@ defaultWriterName x = ".tei.xml" -> "tei" ".tei" -> "tei" ".ms" -> "ms" + ".roff" -> "ms" ['.',y] | y `elem` ['1'..'9'] -> "man" _ -> "html" diff --git a/src/Text/Pandoc/Writers/Ms.hs b/src/Text/Pandoc/Writers/Ms.hs index eb56611ba..84b911e35 100644 --- a/src/Text/Pandoc/Writers/Ms.hs +++ b/src/Text/Pandoc/Writers/Ms.hs @@ -29,6 +29,10 @@ Conversion of 'Pandoc' documents to groff man page format. TODO: +[ ] for links, emails, consider using macros from www: man groff_www + alo has a raw html macro and support for images. +[ ] consider using a custom macro package for pandoc (perhaps if + a variable is set?) [ ] is there a better way to do strikeout? [ ] options for hyperlink rendering (currently footnote) [ ] can we get prettier output using .B, etc. instead of @@ -41,6 +45,11 @@ TODO: [ ] support for images? gropdf (and maybe pdfroff) supports the tag \X'pdf: pdfpic file alignment width height line-length' and also seems to support bookmarks. + note that in the groff_www macros, .PIMG allows a png to + be specified and converts it automatically to eps for + ps output + NB. -U (unsafe mode) is needed for groff invocations if this + functionality is used -} module Text.Pandoc.Writers.Ms ( writeMs ) where |