Skip to content

Commit

Permalink
adding jupyblog version to rendered version, fixing mistune version
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Mar 25, 2024
1 parent 2417d05 commit 4f2dc24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def read(*names, **kwargs):
"jupytext",
"parso",
"pydantic",
"mistune>=2.0",
"mistune>=2.0,<3",
"ploomber-core>=0.0.4",
"nbformat",
]
Expand Down
5 changes: 5 additions & 0 deletions src/jupyblog/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
from jupyblog.exceptions import InvalidFrontMatter, InputPostException
from jupyblog.utm import add_utm_to_all_urls, add_utm_to_url
from jupyblog.ast import MarkdownAST, create_md_parser
from jupyblog import __version__


logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -322,6 +324,9 @@ def render(self, name, *, include_source_in_footer, metadata=None):
if date_existing:
metadata["date"] = date_existing

# add the jupyblog version
metadata["jupyblog"]["version_jupysql"] = __version__

if self._footer_template:
md_out = add_footer(
md_out,
Expand Down

0 comments on commit 4f2dc24

Please sign in to comment.