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: Suporting unicode id's #2199

Closed
wants to merge 1 commit into from
Closed

Conversation

vokimon
Copy link

@vokimon vokimon commented Jul 23, 2018

Reveal should'nt care about the actual content of the slide id (filtering chars which are not ascii letters, numbers or some simbols). HTML4 cares, but html5 does not.

Even, in html4, there is no point in manufacturing a new id to a target that does not exist. If searching for unicode ids does not work, the effect would be the current behavior (going back to the first page).

What it is needed is to urldecode the given hash.

It fixes #2198. About failing to reload slides with Pandoc generated ids, which are based on titles that might contain unicode.

Don't care about the actual content of id. HTML4 cares, but html5 does not. Even, in html4, is pointless manufacturing a new id to target that indeed it is not there. If the id is not legal searching for it will fail and the effect would be the current behavior.

It fixes  hakimel#2198. About pandoc generated ids based on unicode titles.
@vokimon vokimon changed the title Suporting unicode id's Fix: Suporting unicode id's Jul 25, 2018
@hakimel
Copy link
Owner

hakimel commented Aug 1, 2018

Thanks for the PR but this had already been addressed by someone else in fa8a7334ce2ea99a736dd5e72734b08fc01c6fdca. The change was in the dev branch, but I've released it in reveal.js 3.7.0 now. Please give it a shot and let me know if you encounter any issues.

@vokimon
Copy link
Author

vokimon commented Aug 20, 2018

Super. Works like a charm. Even better than my patch. Thanks for the release!

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.

unicode in section ids do not reload properly
2 participants