import tomd tomd.Tomd('

h1

').markdown # or tomd.convert('

h1

')