Don't strip details

This commit is contained in:
Alicia Sykes
2026-05-20 12:14:35 +01:00
parent 9ff8b4220f
commit d7bc0623a3

View File

@@ -71,10 +71,6 @@ def fix_markdown_file(filepath):
content = re.sub(r'\[!\[Stargazers\].*?starchart\.cc.*?\)', '', content, flags=re.DOTALL)
content = re.sub(r'\[!\[Contributors\].*?contrib\.rocks.*?\)', '', content, flags=re.DOTALL)
# Remove details tags, convert to headings
content = re.sub(r'<details[^>]*>\s*<summary>([^<]+)</summary>\s*', r'### \1\n\n', content)
content = re.sub(r'</details>', '', content)
# Back to top links
content = re.sub(r'\[⬆️ Back to Top\]\([^)]*\)', '**[⬆️ Back to Top](#)**', content)
content = re.sub(r'<p[^>]*>\s*<a[^>]*>⬆️ Back to Top</a>\s*</p>', '**[⬆️ Back to Top](#)**', content)