on master help sign in
Update comment in script
commit8ca15accbada035e35bda92727d79ba98e472cd3 authorYaseen <yaseen.nvt@gmail.com> dateThu 21 Jan 2021, 15:54 (6 years ago) parent3bce308
1 file changed+2−1
anchors.py+2−1
anchors.py+2−1
@@ -34,7 +34,8 @@ def validate_entry(setting: str, file: str):
3434
3535
3636def find_all_mds() -> List[str]:
37− return [str(p) for p in Path('./').rglob('*.md')]
37+ # **/_index.md for all index files
38+ return [str(p) for p in Path('./').rglob('*.md')] # only applicable on `_index.md` files (i.e. sections)
3839
3940def setting_from_frontmatter(lines: List[str]) -> str:
4041 # 'insert_anchor_links = "none"' -> 'none'