> Ah, maybe I didn't see that because I was using pandoc-the-library not > pandoc-the-executable to turn hand-made pandoc objects into markdown. > (Unfortunately I have lost that draft, waah!)
The library should do the wrapping. You may have to set writerWrapText to True in writer options (though I think that's the default). > Basically I would like an output format that doesn't to markup things. > For example, it would not have backticks around `literal text`, > because that's not what those uninitiated in markdown would expect > when they ask for "darcs foo --help". > > I conceive of this as a distinct, lossy output target. It would not > need to be particularly complex, but it would need to e.g. know how to > indent lines twice if you had an itemized list within a blockquote. > Or another example of needing to be slightly smart would be an list > item that wraps across multiple lines: > > This is ugly: > > * Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed > do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim > ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut > aliquip ex ea commodo consequat. Duis aute irure dolor in > reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla > pariatur. Excepteur sint occaecat cupidatat non proident, sunt in > culpa qui officia deserunt mollit anim id est laborum. > > compared to this: > > * Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed > do eiusmod tempor incididunt ut labore et dolore magna aliqua. > Ut enim ad minim veniam, quis nostrud exercitation ullamco > laboris nisi ut aliquip ex ea commodo consequat. Duis aute > irure dolor in reprehenderit in voluptate velit esse cillum > dolore eu fugiat nulla pariatur. Excepteur sint occaecat > cupidatat non proident, sunt in culpa qui officia deserunt > mollit anim id est laborum. A new writer could be produced to do this. It would be a minor modification of the markdown writer (which already does what you want for the itemized list within a blockquote). But you wouldn't need a new writer. You could just transform the Pandoc document so that e.g. Code "literal text" got mapped to Str "literal text", and Header 1 "Bugs" to Para [Str "BUGS"], etc., and then use the markdown writer. This would require very little extra code and could be tuned to produce the results you want. Anyway, when you're ready to do this, let me know and I can help. John _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
