justinvh / Markdown-LaTeX

This Markdown extension adds inline LaTeX support without the need for external images.
Other
127 stars 15 forks source link

Plugin not found on Python 3.8 #24

Open vanrein opened 3 years ago

vanrein commented 3 years ago

A simple copy of latex.py into the markdown/extensions/ directory is not enough in Markdown 3.1.1 on Python 3.8. The module is not found.

It looks like you are using an old registration method, perhaps that is the cause; the current procedure invokes registerExtension() on another class, markdown.extension.Extension, than you are using.

vanrein commented 3 years ago

FWIW, I ruled out the absense of the module in __pycache__ as a cause by importing the module as root, and seeing it added to that directory.