lightgallery-markdown
lightgallery-markdown copied to clipboard
DeprecationWarning: 'etree' is deprecated. Use 'xml.etree.ElementTree' instead.
Getting the following error related to this plugin
INFO - DeprecationWarning: Using the add method to register a processor or pattern is deprecated. Use the
`register` method instead.
File "c:\python38\lib\site-packages\lightgallery.py", line 57, in extendMarkdown
md.treeprocessors.add("lightbox", ImagesTreeprocessor(config, md), "_end")
File "c:\python38\lib\site-packages\markdown\util.py", line 462, in add
warnings.warn(
INFO - DeprecationWarning: The 'md_globals' parameter of 'lightgallery.LightGalleryExtension.extendMarkdown' is
deprecated.
File "c:\python38\lib\site-packages\markdown\core.py", line 125, in registerExtensions
ext._extendMarkdown(self)
File "c:\python38\lib\site-packages\markdown\extensions\__init__.py", line 82, in _extendMarkdown
warnings.warn(
I recommend switching to https://github.com/blueswen/mkdocs-glightbox instead
@Stanzilla
thanks for the hint, quick and painless.
-
pip install mkdocs-glightbox
-
- glightbox
under plugins inmkdocs.yml
-
lighthouse
can be removed undermarkdown_extensions