You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add text/markdown to content type mapping and mashlib intercept #226
JSS should recognize .md files as text/markdown and serve the data browser for them, enabling rendered markdown viewing and editing.
Changes needed
Content type mapping (src/utils/url.js): Add .md → text/markdown to getContentType()
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
Add text/markdown to content type mapping and mashlib intercept. Fixes …