Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative image path for downloaded diagrams #16

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kroki/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _save_kroki_image_and_get_url(self, file_name, image_data, files):
mkdocs_file = File(get_url, self._tmp_dir.name, self._output_dir, False)
files.append(mkdocs_file)

return f'/{get_url}'
return f'./{get_url}'

def _replace_kroki_block(self, match_obj, files, page):
kroki_type = match_obj.group(1).lower()
Expand Down