Include support for (a subset of?) Textile (http://www.hobix.com/textile) as an input and output format.
Comment #1
Posted on Jan 23, 2008 by Quick BearWould have created this as an "Enhancement" if I could figure out how, sorry. Anyway, it appears that to convert the Markdown reader for basic Textile features would in some cases be a matter of changing which characters are interpreted as strong, emph, bulleted lists, ordered lists, etc. I may use this particular desire of mine as an impetus to learn some Haskell and work on it myself. ;-)
Comment #2
Posted on Jan 24, 2008 by Grumpy DogI agree, this would be nice (both a reader and a writer). Textile supports some features that are not currently possible in Pandoc, and vice versa, but most things should work fine, and in many ways Textile syntax will be easier to parse than Markdown.
It's not a high priority for me, because I never use Textile. But if you want to give it a shot, feel free! I can answer questions you might have in understanding the code.
Comment #3
Posted on Nov 11, 2008 by Grumpy DogThe easiest way to do this would be to modify the MediaWiki writer. MediaWiki treats lists similarly, and like the MediaWiki writer, a Textile writer would have to revert to HTML for complicated nested things. All the logic is already in place in the MediaWiki writer, so producing a Textile writer should be pretty easy.
Comment #4
Posted on Sep 16, 2010 by Massive MonkeyTextile reader available on this branch :
http://github.com/paul-r-ml/pandoc/tree/textile-reader
(not fully complete as of today)
Comment #5
Posted on Sep 25, 2010 by Grumpy DogGlad to see there's progress! A test suite will be essential if this is to be included in pandoc. You can use the existing reader and writer tests as a model.
Comment #6
Posted on Oct 5, 2010 by Massive MonkeyI have pushed the thing a bit further, and it now handles most of the syntax, with the notable exception of footnotes. I may add support anytime soon if someone asks for it, I just avoided it so far because I don't know yet how to play well with the parser threaded state.
Also, I am not sure I really understand how to use the test suite, but at least there is something to test. Let me know if it must be more polished.
Comment #7
Posted on Dec 7, 2010 by Grumpy DogReader and writer have both been added to master. There is still room for improvement -- some features remain to be implemented in the reader -- but since this bug was for adding textile support, I'll close it.
Status: Fixed
Labels:
Type-Enhancement
Priority-Medium