diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-24 09:40:02 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-24 09:40:13 +0100 |
commit | 718254340fb73d75cf8f6fc322631c1c72db0e47 (patch) | |
tree | a737d64bb297753f388ff8b976fa3171243fb98b /src/Text | |
parent | 7de9a6ef5fd89c0aded82acc7f037d9a98e243be (diff) | |
download | pandoc-718254340fb73d75cf8f6fc322631c1c72db0e47.tar.gz |
Recognize .roff extension as ms format.
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 |