Skip to content

Commit 594968c

Browse files
authored
Improve treatment of plain and Markdown files (#7)
* Preview Markdown files by default * Treat files without extension as plain text files
1 parent 153a6c0 commit 594968c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

jupyter-lite.json

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
"@jupyterlite/pyodide-kernel-extension:kernel": {
1111
"pyodideUrl": "/static/pyodide/pyodide.js"
1212
}
13+
},
14+
"fileTypes": {
15+
"plain": {
16+
"extensions": [".txt", ""],
17+
"fileFormat": "text",
18+
"mimeTypes": ["text/plain"],
19+
"name": "plain"
20+
}
1321
}
1422
}
1523
}

overrides.json

+5
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@
1010
"rank": 50
1111
}
1212
]
13+
},
14+
"@jupyterlab/docmanager-extension:plugin": {
15+
"defaultViewers": {
16+
"markdown": "Markdown Preview"
17+
}
1318
}
1419
}

0 commit comments

Comments
 (0)