git.iko.soy/typeable/pandoc
on master help sign in
Recognize .roff extension as ms format.
commit718254340fb73d75cf8f6fc322631c1c72db0e47 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 24 Mar 2017, 09:40 (10 years ago) parent7de9a6e
2 files changed+10
src/Text/Pandoc/App.hs+1 src/Text/Pandoc/Writers/Ms.hs+9
src/Text/Pandoc/App.hs+1
@@ -696,6 +696,7 @@ defaultWriterName x =
696696 ".tei.xml" -> "tei"
697697 ".tei" -> "tei"
698698 ".ms" -> "ms"
699+ ".roff" -> "ms"
699700 ['.',y] | y `elem` ['1'..'9'] -> "man"
700701 _ -> "html"
701702
src/Text/Pandoc/Writers/Ms.hs+9
@@ -29,6 +29,10 @@ Conversion of 'Pandoc' documents to groff man page format.
2929
3030TODO:
3131
32+[ ] for links, emails, consider using macros from www: man groff_www
33+ alo has a raw html macro and support for images.
34+[ ] consider using a custom macro package for pandoc (perhaps if
35+ a variable is set?)
3236[ ] is there a better way to do strikeout?
3337[ ] options for hyperlink rendering (currently footnote)
3438[ ] can we get prettier output using .B, etc. instead of
@@ -41,6 +45,11 @@ TODO:
4145[ ] support for images? gropdf (and maybe pdfroff) supports the tag
4246 \X'pdf: pdfpic file alignment width height line-length'
4347 and also seems to support bookmarks.
48+ note that in the groff_www macros, .PIMG allows a png to
49+ be specified and converts it automatically to eps for
50+ ps output
51+ NB. -U (unsafe mode) is needed for groff invocations if this
52+ functionality is used
4453-}
4554
4655module Text.Pandoc.Writers.Ms ( writeMs ) where