Welcome to the Pythonista Community Forums!

Pythonista is a Python programming environment for iOS. To learn more, head over to the Pythonista Website.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter
Markdown to Latex
  • 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!
  • 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.)
  • 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.