Forum Archive

Markdown to Latex

tedsvo2

Hi all, I'm hoping you can help me figure out how to get this markdown to latex extension to work (I'm pretty new to Python coding) the module is here, but when I try to run it I get the error "object does not contain attribute 'Postprocessor' on the following line:

class LaTeXPostProcessor(markdown.Postprocessor):

http://pypi.python.org/pypi/markdown2latex/

Any pointers would be appreciated!

Westacular129

That module hasn't been updated in over 3 years. At some point since then, the markdown module's extensions API was changed to use markdown.postprocessors.Postprocessor. (No idea what other problems that markdown2latex module might have, but I wouldn't be surprised if there's more.)

tedsvo2

Wow, thanks for the heads up. I've been trying to correct everything as much as I can, but still getting an error about how my string input doesn't contain attribute 'pattern'. I'll keep trying but if there is an obvious mistake I'd love some help.