There is a requirement in the plugin.py file that the define_env() function should be present in the module file (main.py).
This was correct in the past, but nowadays it could also be on _pre_page_macros and others.
Workaround
Just add this function to the module file:
def define_env(env):
pass
There is a requirement in the plugin.py file that the
define_env()function should be present in the module file (main.py).This was correct in the past, but nowadays it could also be
on _pre_page_macrosand others.Workaround
Just add this function to the module file: