Skip to content

Commit

Permalink
fix: usr: fixed caching with png diagrams without hyperlinks (fixes #27)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikitex70 committed Apr 22, 2024
1 parent 3c4f843 commit ff45d1c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# Changelog


## 3.9.4 (2023-03-26)
## 3.9.5 (2024-04-22)

### Fix

* Fixed caching with png diagrams with no links (fixes #27) [Michele Tessaro]

### Other

* @łip. [Michele Tessaro]


## 3.9.4 (2024-03-26)

### Changes

* Updated the CHANGELOG.md. [Michele Tessaro]

### Other

Expand Down
2 changes: 1 addition & 1 deletion plantuml_markdown/plantuml_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def _render_diagram(self, code: str, requested_format: str) -> Tuple[Optional[by
with open(cached_diagram_file, 'rb') as f:
diagram = f.read()

if diagram:
if diagram is not None:
# if cache found then end this function here
return diagram, None

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setuptools.setup(
name="plantuml-markdown",
version="3.9.4",
version="3.9.5",
author="Michele Tessaro",
author_email="michele.tessaro.tex@gmail.com",
description="A PlantUML plugin for Markdown",
Expand Down

0 comments on commit ff45d1c

Please sign in to comment.