+++ Trent W. Buck [Apr 07 09 19:15 ]: > On Tue, Apr 07, 2009 at 01:13:46AM -0700, Jason Dagit wrote: > > On Tue, Apr 7, 2009 at 1:02 AM, Trent W. Buck <[email protected]> wrote: > > > [CCing the pandoc maintainer, because this might be a feature > > > request.] > > > > > > How do people feel about assuming man(1) is installed where they run > > > "darcs foo --help"? > > > > What do you propose for windows users? > > Excellent point; I hadn't considered that. > > > I like some of your other options better because they don't assume > > man is installed. > > Other options that occur to me are: > > - Get pandoc to have a plain text output format. > > - Dump it as HTML to a file, then call $BROWSER on it. > > - Emit markdown format if man(1) isn't installed. > > Unfortunately, apart from the (mostly unobtrusive) markdown text, > this appears to contain no wrapping, so you end up with lines > hundreds of characters long and they look ugly in less(1) or > whatever. Possibly pipe it through fmt(1) safely... but Windows > users won't have that either.
Pandoc can emit markdown with wrapped lines (in fact, it wraps lines by default). It would also be fairly easy to transform the native pandoc document after parsing but before writing, if you wanted a format that looked slightly different than markdown. For example, headers could be transformed into regular paragraphs with ALL CAPS. I could help with this if you told me what you needed. John _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
