Skip to content

Conversation

@pourmand1376
Copy link
Contributor

@pourmand1376 pourmand1376 commented Sep 9, 2025

This removes all the links that would lead to missing pages, ie. [[Missing link]] when Missing link.md does not exist.

If the code logic is accepted, it think I should also move the css code somewhere else. For now, let it be there.

This update introduces functionality to identify and mark links to non-existent pages as "dead links" within the content page emitter. The implementation utilizes the `unist-util-visit` library to traverse the document tree and modify link elements accordingly. Links that do not correspond to existing slugs are converted to spans with a "dead-link" class for better user feedback.
This commit introduces a new CSS class `.dead-link` to style links that point to missing pages. The styling includes a distinct color, background, and cursor to enhance user feedback when encountering dead links.
…etection

This commit cleans up the code in the content page emitter by removing unnecessary comments that referenced an external issue. The functionality for dead link detection remains intact, ensuring clarity and maintainability of the code.
@github-actions
Copy link

github-actions bot commented Sep 9, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
quartz ✅ Ready (View Log) Visit Preview 10f2e2e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant