From 45d923821de94697881941b45b500caecd81649a Mon Sep 17 00:00:00 2001 From: Timur Osmanov Date: Wed, 24 Sep 2025 10:34:54 +0300 Subject: [PATCH 1/2] fix: double anchor --- foliant/preprocessors/includes.py | 1 - 1 file changed, 1 deletion(-) 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})' From dcc77eb2c8c259af2ebb58e37d5770d2734047a9 Mon Sep 17 00:00:00 2001 From: Timur Osmanov Date: Wed, 24 Sep 2025 10:44:03 +0300 Subject: [PATCH 2/2] update: version and changelog.md --- changelog.md | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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/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',