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

use original tag name when slugified one is not valid #553

Merged
merged 2 commits into from
Jul 17, 2018

Conversation

woonmayer
Copy link
Contributor

The slugify function cannot return valid result when input is Unicode such as Korean, Chinese.. etc., so this occurs tag navigation and duplicated key error.

Copy link
Member

@RomanHotsiy RomanHotsiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slugify is also used in MarkdownRenderer.

Could you please create a wrapper function in utils and use it instead of raw slugify.

Thanks!

@woonmayer
Copy link
Contributor Author

@RomanGotsiy I wrote wrapper function and use it at all usages. Please check it out.
Thanks.

@RomanHotsiy RomanHotsiy merged commit 8817d9c into Redocly:master Jul 17, 2018
@RomanHotsiy
Copy link
Member

Nice!
Thanks for your efforts 🙌!

@woonmayer woonmayer deleted the tag-slugified branch July 18, 2018 09:31
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