Skip to content

Add text/markdown support - #227

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-226-markdown-support
Mar 22, 2026
Merged

melvincarvalho merged 1 commit into
gh-pagesfrom
issue-226-markdown-support

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Summary

  • Add .md -> text/markdown mapping to getContentType() in src/utils/url.js so .md files are served with the correct MIME type
  • Add text/markdown to the rdfTypes array in shouldServeMashlib() in src/mashlib/index.js so Mashlib renders markdown resources when accessed via browser

Fixes #226

Test plan

  • Verify .md files are served with Content-Type: text/markdown
  • Verify Mashlib intercepts and renders .md resources when browsing with Accept: text/html
  • Verify existing content type mappings and mashlib behavior are unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add text/markdown to content type mapping and mashlib intercept

1 participant