Closed ludeeus closed 5 months ago
src/tools/markdown.ts (3)
`8-12`: Refactor GitHub URL handling to differentiate between markdown and other file types. The updated regex captures the repository owner, name, and file path more accurately, and the conditional check for markdown files ensures that only appropriate files are converted to raw URLs. This should help in reducing unnecessary conversions and improve performance. --- `17-25`: Ensure correct handling of relative links in markdown. The updated regex for relative links now correctly identifies links that are not absolute URLs or anchor references. This change should prevent incorrect URL conversions and improve the reliability of link handling in markdown content. --- `30-30`: Refactor anchor reference handling to improve navigation within markdown. The updated handling of anchor references ensures consistent processing and improves user navigation within markdown documents. This change is crucial for enhancing the user experience in documentation-heavy repositories.
Fixes hacs/integration#3671