Skip to content

Commit

Permalink
fix: for index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TOsmanov committed Dec 12, 2024
1 parent c408fc8 commit 5e62479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foliant/preprocessors/includes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ def process_includes(

if self.includes_map_enable:
if donor_md_path:
if recipient_md_path in self.chapters:
if recipient_md_path in self.chapters or if "index.md" in recipient_md_path:
if not self._exist_in_includes_map(self.includes_map, recipient_md_path):
if not self.includes_map_anchors or len(donor_anchors) == 0:
self.includes_map.append({ 'file': recipient_md_path, "includes": []})
Expand Down

0 comments on commit 5e62479

Please sign in to comment.