Closed oniboni closed 6 months ago
We have tested this PR and can confirm that it fixes the downloaded image URLs. We use this plugin in our organization and would be grateful if you released a new version of the plugin containing this fix.
I can also confirm this plugin works for us. Would be nice to get this merged so we can switch from our fork to the upstream release.
@b-bittner any hopes of getting this in please?
Just an FYI here: This code change makes the plugin require a higher Python version than 3.8. Our techdocs fail to render with 3.8, but work with 3.10:
Failed example:
File "/usr/local/lib/python3.8/site-packages/kroki/plugin.py", line 17, in <module>
from kroki.config import KrokiDiagramTypes
File "/usr/local/lib/python3.8/site-packages/kroki/config.py", line 6, in <module>
class KrokiDiagramTypes:
File "/usr/local/lib/python3.8/site-packages/kroki/config.py", line 61, in KrokiDiagramTypes
file_types: list[str],
TypeError: 'type' object is not subscriptable
Thanks for your hint, just updated the dependencies.
fix: downloaded image handling
DownloadImages
->HttpMethod='POST'
realizes this functionality as wellDownloadDir
option to get rid of relative and absolute path issuesFixes #11, fixes #32, fixes #39, fixes #41