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

Unicode characters mangled when viewing .mdx in a browser #5677

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

Unicode characters mangled when viewing .mdx in a browser #5677

hkosova opened this issue Jan 21, 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 21, 2025

CLI Version (from fern.config.json)

0.50.13, also 0.46.22

Minimal API Specification

n/a

Actual UI Behavior

When you append .mdx at the end of a page URL to view its Markdown, Unicode characters are mangled. You can see this in Fern documentation: https://buildwithfern.com/learn/docs/building-and-customizing-your-docs/versioning.mdx

llms-full.txt does not have this problem:

Image



If you download the .mdx file locally and view it in a text editor or IDE, it's displayed correctly. This probably means the file itself is OK but its charset it not properly communicated to the browser.

Those .mdx URLs have HTTP response header Content-Type: text/mdx. Maybe it should be Content-Type: text/mdx; charset=utf-8 instead.

Expected UI Behavior

Unicode characters are displayed correctly when viewing <page-url>.mdx in a browser.

Steps to Reproduce

Navigate to https://buildwithfern.com/learn/docs/building-and-customizing-your-docs/versioning.mdx

Environment Details

  • Chrome, Safari on macOS
  • Chrome, Firefox, Edge on Windows 10
  • Chrome on Android
@hkosova hkosova added bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site labels Jan 21, 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