Category: Text

text/markdown

text/markdown is defined in RFC 7763 for plain text documents utilizing Markdown formatting syntax.

MIME / CONTENT-TYPE

text/markdown

ASSOCIATED EXTENSIONS

.md, .markdown

PRIMARY CATEGORY

Text

HTTP Headers & Web Server Configurations

Standard HTTP Response Header
Content-Type: text/markdown; charset=utf-8

Send this exact header in HTTP responses to instruct browsers how to decode and render the payload.

Node.js / Express / Web API
res.setHeader("Content-Type", "text/markdown; charset=utf-8"); res.send("# DevTransform Documentation\n\nWelcome to the API.");
NGINX Configuration (mime.types)
types { text/markdown md markdown; }
Apache (.htaccess / httpd.conf)
AddType text/markdown .md

Security Advisory & Hardening

When rendering Markdown to HTML, always pass it through a sanitizer (like DOMPurify) to neutralize malicious `<script>` or `javascript:` links.

Frequently Asked Questions

text/markdown Questions & Answers

Common questions regarding MIME types, Content-Type headers, and web server configurations.

The standard HTTP response header is: "Content-Type: text/markdown; charset=utf-8".