Downloads files on localhost #124
Answered
by
Heroor
axelhuizinga
asked this question in
Q&A
-
|
While display of your example.md works well Mozilla downloads a copy of this file put on localhost or https://econet4.me/doc/example.md |
Beta Was this translation helpful? Give feedback.
Answered by
Heroor
Mar 8, 2026
Replies: 1 comment 3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
axelhuizinga
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

The URL cannot be previewed because the response header's Content-Type is not a browser-displayable text type. Consequently, the browser treats the file as a download, even without a Markdown viewer extension installed.
Please try changing the response header for xxx.md to:
Content-Type: text/markdown; charset=utf-8If you're using a development framework, refer to its documentation for how to configure the response header for
xxx.mdURL.Hope this helps!