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

Emoji shortcodes not rendered as emojis in in-page TOC #5604

Open
hkosova opened this issue Jan 14, 2025 · 0 comments
Open

Emoji shortcodes not rendered as emojis in in-page TOC #5604

hkosova opened this issue Jan 14, 2025 · 0 comments
Labels
bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site

Comments

@hkosova
Copy link

hkosova commented Jan 14, 2025

CLI Version (from fern.config.json)

0.46.22

Minimal API Specification

n/a

Actual UI Behavior

If header text includes an emoji shortcode such as :eu:, the header itself renders that emoji but the in-page table of contents displays the shortcode as is.

Expected UI Behavior

Emojis are rendered in the in-page TOC.

Steps to Reproduce

Sample .mdx page to reproduce the issue:

---
title: Test
---

## :eu: EU

## :uk: UK

## :us: US

{/* But the following headers are displayed correctly in in-page TOC */}

## 🇪🇺 EU

## 🇪🇺 EU

Workaround

Either insert the emoji character as-is into Markdown, or use HTML character codes &#....

Environment Details

Chrome, Safari on macOS 15

@hkosova hkosova added bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site
Development

No branches or pull requests

1 participant