The Python Markdown module, perhaps outdated, but the one that I use, can be extended using plugins. Here is a plugin I needed and built. It adds a user-specified CSS class to the generated P tags. It draws heavily on the examples at the above website. (I also had to read the code.) # the …