alexandre-perrin / mkdocs-pandoc-plugin

The plugin is based on mkdocs-mk2pdf-plugin and aims to use pandoc as a generic engine to convert to many document format that pandoc suports.
https://github.com/HaoLiuHust/mkdocs-mk2pdf-plugin
MIT License
6 stars 4 forks source link

Stale link generated when combined is true. #2

Closed koffeiniker closed 3 years ago

koffeiniker commented 3 years ago

In plugin.py about line 110 the indentation is wrong. The modify_html-call must be indented one level further to be part of the else-branch. Otherwise, when combined is true, both links will be injected, one being stale as with combined on the individual page-pdfs do not get generated.

alexandre-perrin commented 3 years ago

Thanks for spotting this issue @koffeiniker.

This is now resolved.