Skip to content

Commit

Permalink
Push of missing files for #215
Browse files Browse the repository at this point in the history
  Files were missing
  • Loading branch information
Laurent Franceschetti committed Mar 2, 2024
1 parent da337b9 commit 814205a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions mkdocs_macros/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,13 @@ def on_page_markdown(self, markdown, page, config,
)
# Convert macros in the title from render (if exists)
# to answer 144
page.title = self.render(markdown=page.title,
force_rendering=force_rendering)
# There is a bizarre issue #215 where setting the title
# prevents interpretation of icons with pymdownx.emoji
debug("Page title:",page.title)
if "{" in page.title:
page.title = self.render(markdown=page.title,
force_rendering=force_rendering)
debug("Page title after macro rendering:",page.title)

# execute the post-macro functions in the various modules
for func in self.post_macro_functions:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Initialization
# --------------------

VERSION_NUMBER = '1.1.0'
VERSION_NUMBER = '1.1.1'

# required if you want to run document/test
# pip install 'mkdocs-macros-plugin[test]'
Expand Down

0 comments on commit 814205a

Please sign in to comment.