Closed orbikm closed 3 years ago
To interested developers, since this project seems unmaintained at this point, and had a few bugs that were preventing me from using it in production, I have created a replacement plugin, mkdocs-ezlinks-plugin.
It is currently in alpha while I sort out some minor bugs and add a few additional feature enhancements.
The following issues are addressed in mkdocs-ezlinks-plugin
Please note that this currently results in the following error:
File "<...>\appdata\local\programs\python\python37-32\lib\site-packages\mkdocs_autolinks_plugin\plugin.py", line 15
AUTOLINK_RE = r'(?:\!\[\]|\[([^\]]+)\])\((([^)/]+\.(md|png|jpg|jpeg|bmp|gif))(#.*)*)\)"
^
SyntaxError: EOL while scanning string literal
presumably due to the unmatching single/double quotes in https://github.com/midnightprioriem/mkdocs-autolinks-plugin/pull/14/files#diff-4b4c0255135a5ee371839e4bc09886107e798b2f6654779aa135ded21daad8a0R15
Thanks for that. Fixed in f78aa02ba60af1dc3beb7a1ba31374b3728cbd42
Support empty alt text in an image tag. e.g.
![](my-image.png)
This fix simply modifies the link capture regex to conditionally scan for either explicitly an Image tag with empty braces, but not a Link with empty braces. Although a new capture group is added, it is discarded, so the group structure remains unaltered.
Issue: #13