git.iko.soy/typeable/pandoc
on master help sign in
Recognize .roff extension as ms format.
7182543John MacFarlane
src/Text/Pandoc/App.hs+1
@@ -696,6 +696,7 @@ defaultWriterName x =
696 ".tei.xml" -> "tei"
696 ".tei.xml" -> "tei"
697 ".tei" -> "tei"
697 ".tei" -> "tei"
698 ".ms" -> "ms"
698 ".ms" -> "ms"
699+ ".roff" -> "ms"
699 ['.',y] | y `elem` ['1'..'9'] -> "man"
700 ['.',y] | y `elem` ['1'..'9'] -> "man"
700 _ -> "html"
701 _ -> "html"
701
702
src/Text/Pandoc/Writers/Ms.hs+9
@@ -29,6 +29,10 @@ Conversion of 'Pandoc' documents to groff man page format.
29
29
30TODO:
30TODO:
31
31
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?)
32[ ] is there a better way to do strikeout?
36[ ] is there a better way to do strikeout?
33[ ] options for hyperlink rendering (currently footnote)
37[ ] options for hyperlink rendering (currently footnote)
34[ ] can we get prettier output using .B, etc. instead of
38[ ] can we get prettier output using .B, etc. instead of
@@ -41,6 +45,11 @@ TODO:
41[ ] support for images? gropdf (and maybe pdfroff) supports the tag
45[ ] support for images? gropdf (and maybe pdfroff) supports the tag
42 \X'pdf: pdfpic file alignment width height line-length'
46 \X'pdf: pdfpic file alignment width height line-length'
43 and also seems to support bookmarks.
47 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
44-}
53-}
45
54
46module Text.Pandoc.Writers.Ms ( writeMs ) where
55module Text.Pandoc.Writers.Ms ( writeMs ) where