diff --git a/changelog.md b/changelog.md index 02e7031..ad16bd1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# 1.1.20 + +- Fix: bug where the `_adjust_links` duplicated the anchor. + # 1.1.19 - Add: anchor link parsing for the includes map. diff --git a/foliant/preprocessors/includes.py b/foliant/preprocessors/includes.py index 2bcd18c..f536e9e 100644 --- a/foliant/preprocessors/includes.py +++ b/foliant/preprocessors/includes.py @@ -658,7 +658,6 @@ def _sub(m): self.logger.debug( f'An error {exception} occurred when resolving the link: {m.group("path")}' ) - link = m.group('path') return f'[{caption}]({link}{anchor})' diff --git a/setup.py b/setup.py index 7c430a3..045dd20 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ description=SHORT_DESCRIPTION, long_description=LONG_DESCRIPTION, long_description_content_type='text/markdown', - version='1.1.19', + version='1.1.20', author='Konstantin Molchanov', author_email='moigagoo@live.com', url='https://github.com/foliant-docs/foliantcontrib.includes',