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

Fix generating html id with special characters #2495

Merged
merged 5 commits into from
Feb 23, 2024

Conversation

aleDsz
Copy link
Member

@aleDsz aleDsz commented Feb 23, 2024

If the section name has only special characters, we will use a hash:

image

If the section name has special characters and alphanumeric characters, we will replace special with empty string and space with -:

image

@aleDsz aleDsz self-assigned this Feb 23, 2024
Copy link

github-actions bot commented Feb 23, 2024

Uffizzi Preview deployment-47156 was deleted.

@aleDsz
Copy link
Member Author

aleDsz commented Feb 23, 2024

Oh, it breaks when the user wants to use an emoji

@jonatanklosko
Copy link
Member

@aleDsz ahh the test, I think we should remove these and not support emojis. GitHub strips emojis when generating heading URLs and it seems more sane :D

@aleDsz aleDsz merged commit bd3232d into livebook-dev:main Feb 23, 2024
6 of 7 checks passed
@aleDsz aleDsz deleted the ale-hotfix-section-href branch February 23, 2024 18:55
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.

Bug when opening a notebook from URL or from source
2 participants