Hi,
I want to convert pages in the Wiki syntax used by Trac to markdown. Is there a good solution?
I found a few very shorts scripts that attempt to do so, but none that really looked promising. I've also considered using WikiParser from trac.wiki to get a DOM tree of the trac wiki and then write code that will convert it to markdown, but I've ran into problems using WikiParser.
I've tried:
from trac.wiki import WikiParser
from trac.core import ComponentManager
wp = WikiParser(ComponentManager())
wp.parse(my_wiki_text)
But the last line simply returns my_wiki_text as is, instead of a WikiDOM tree as the documentations says. Any idea what I did wrong?
Thanks,
Guy
---
http://www.guyrutenberg.com/