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

Add text/markdown to content type mapping and mashlib intercept · Issue #226 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Repository navigation

Add text/markdown to content type mapping and mashlib intercept #226

Closed

Description

Summary

JSS should recognize .md files as text/markdown and serve the data browser for them, enabling rendered markdown viewing and editing.

Changes needed

  1. Content type mapping (src/utils/url.js): Add .md → text/markdown to getContentType()
  2. Mashlib intercept (src/mashlib/index.js): Add text/markdown to the rdfTypes list in shouldServeMashlib()

Context

The losos data browser now includes a markdown pane that renders .md files with marked, supports wiki-style [[links]] with auto-creation, and provides a debounced edit mode with PUT-based saving.

Without these JSS changes, .md files are served as application/octet-stream (triggering a download) and bypass the data browser entirely.

Currently patched manually on melvincarvalho.com and melvin.me.

Activity

  1. added a commit that references this issue on Mar 22, 2026
    b639811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL