Emojis in URL fragment breaks navigation
See original GitHub issueHaveing the following Slide in my Presentation in RevealJS;
<section>
<h1>Disclaimer</h1>
<p class="fragment current-only">Cuztomized with ❤️</p>
</section>
Does not work and outputs the error:
Loading page http://localhost:3000 ...
Loading page finished with status: 200
Reveal JS plugin activated
Printing slide #/5 (6/6) ...not support cmap format:14
URIError: URI malformed
removing the emoji, everything works.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Emoji in header breaks generated link · Issue #36 - GitHub
I tried modifying the URL fragment on one of your broken links and it worked.
Read more >Animating URLs with Javascript and Emojis - Matthew Rayfield
You can use emoji (and other graphical unicode characters) in URLs. And wow is it great. But no one seems to do it....
Read more >html - In Markdown, what is the best way to link to a fragment ...
See this answer. In summary make a destination with <a name="sometext"></a>. inserted anywhere in your markdown markup (for example in a ...
Read more >target - CSS: Cascading Style Sheets - MDN Web Docs
The :target CSS pseudo-class represents a unique element (the target element) with an id matching the URL's fragment.
Read more >Chromium Docs - Guidelines for URL Display
Guidelines for URL Display. This document covers the best practices and pitfalls for building UI to display URLs in browsers and other apps....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve tried to pin down what’s causing the error. It doesn’t seem to be Puppeteer. It’s this line that causes the error:
To give a bit of context, here is a bit more code. It’s from
decktape.js
, starting at line 405.It’s this last line that gives the
not support cmap format:14
error. I checked what’s in the font dictionary as well:Does the
fonteditor-core
library have trouble working with SegoeUIEmoji and is that why @gabyx solution with theEmojiOne
font works? It’s all still a bit vague to me to be honest. I’m hoping someone (@astefanutti?) can shed some more light on this. Are there alternatives tofonteditor-core
we might be able to use?Thanks a lot for the input. I’m not entirely sure the
not support cmap format:14
message is the cause of theURIError: URI malformed
. I need to dig into it.fonteditor-core
was the most robust font parsing OSS library I could find a couple of years ago. It is possible to switch to another library if one exists that’s more robust.