Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix <code> in header ids #15159

Merged
merged 1 commit into from
Jan 7, 2025
Merged

docs: fix <code> in header ids #15159

merged 1 commit into from
Jan 7, 2025

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