FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add text/markdown support by melvincarvalho · Pull Request #227 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Repository navigation

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

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL