Skip to content

docs: fix <code> in header ids#15159

Merged
vkarpov15 merged 1 commit intomasterfrom
vkarpov15/link-fix
Jan 7, 2025
Merged

docs: fix <code> in header ids#15159
vkarpov15 merged 1 commit intomasterfrom
vkarpov15/link-fix

Conversation

@vkarpov15
Copy link
Collaborator

Summary

For example, "Using populatedDoc" currently becomes using-code>populateddoc</code> because 1) replace(/[^a-z0-9-_\s]/, '') is missing a global flag, 2) need to strip out <code> and </code>

Here's the live example: https://mongoosejs.com/docs/typescript/populate.html#using-code%3Epopulateddoc%3C/code%3E

Examples

@vkarpov15 vkarpov15 added this to the 8.9.4 milestone Jan 6, 2025
@hasezoey hasezoey added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Jan 6, 2025
@vkarpov15 vkarpov15 merged commit b5752f6 into master Jan 7, 2025
@vkarpov15 vkarpov15 deleted the vkarpov15/link-fix branch January 7, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs This issue is due to a mistake or omission in the mongoosejs.com documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants