In the txtml.py file look at line 170, # Are we in a paragraph block?. At the end of this block just check for the h tags and append the correct number of *s.
Though instead of making this very specific why not create a new txt output generator that produces markdown text?
|