Skip to content

Conversation

@nshcr
Copy link
Contributor

@nshcr nshcr commented May 3, 2025

The yaml-title rule adds a title key to the frontmatter or replaces it if it already exists.
I noticed that if other keys start with the title key (e.g., titleTemplate, one of the VitePress's frontmatter config), they might be incorrectly replaced — especially if they appear before title.
So I updated the regex to match the exact title key and avoid this issue.
Thanks for reviewing.

@pjkaufman
Copy link
Collaborator

@nshcr , this looks good to me. Thanks for taking the time to fix this. I will go ahead and merge this since it looks to be passing UTs and does not look like it would cause any issues.

@pjkaufman pjkaufman merged commit 162f0ac into platers:master May 10, 2025
1 check passed
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.

2 participants