Skip to content

Conversation

@stasadev
Copy link
Member

@stasadev stasadev commented Jan 6, 2026

The Issue

Astro generates broken anchors such as:

## Understanding Docker and Podman becomes #understanding-docker-andpodman

I noticed this in Podman PR #476, and in #500 (where TOC didn't work because of this)

How This PR Solves The Issue

  • Removes rehype-widont, which caused this behavior, it replaced last space in header with non-breaking space (U+00A0), which broke the anchor.

  • Adds text-wrap: pretty; as recommended in https://github.com/radiojhero/rehype-widont

  • Replaces existing broken anchors.

  • Adds missing code types in markdown blogs.

Manual Testing Instructions

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

@stasadev stasadev changed the title fix: replace rehype-widont with text-wrap: pretty to fix broken anchors fix: replace rehype-widont with text-wrap: pretty to fix broken anchors Jan 6, 2026
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

🌐 Fork Preview for PR #507

https://pr-507.ddev-com-fork-previews.pages.dev

This preview updates automatically when you push changes to your fork.

@stasadev stasadev merged commit d413803 into ddev:main Jan 6, 2026
4 checks passed
@stasadev stasadev deleted the 20260107_stasadev_broken_anchors branch January 6, 2026 23:09
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

PR closed. The Cloudflare Pages preview is no longer updated.

@stasadev stasadev mentioned this pull request Jan 6, 2026
18 tasks
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