Skip to content

Commit

Permalink
Update footer select support material v8
Browse files Browse the repository at this point in the history
  • Loading branch information
samzong authored May 8, 2022
1 parent ccf20e5 commit 6649253
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mkdocs_with_pdf/themes/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def get_script_sources() -> list:
def inject_link(html: str, href: str) -> str:
soup = BeautifulSoup(html, 'html.parser')

footer = soup.select('.md-footer-copyright')
# footer = soup.select('.md-footer-copyright')
footer = soup.select('.md-copyright') # thanks of https://github.com/orzih/mkdocs-with-pdf/issues/88#issuecomment-1018590667
if footer and footer[0]:
container = footer[0]

Expand Down

0 comments on commit 6649253

Please sign in to comment.