Skip to content

Commit cfdc173

Browse files
committed
gs scheme implies markdown for viewing files
SQUASHED: AUTO-COMMIT-src-components-tools-lively-container.js,
1 parent 5bd4c2b commit cfdc173

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/tools/lively-container.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ export default class Container extends Morph {
363363
if (format == "html") {
364364
headers["content-type"] = "text/html" // maybe we can convice the url to return html
365365
}
366+
if (path.match(/gs\:/)) {
367+
format = "md"
368+
}
366369

367370
headers['cache-control'] = 'no-cache'
368371
// #deprecated since we now use no-ache
@@ -431,7 +434,6 @@ export default class Container extends Morph {
431434
this.content = content
432435
this.showNavbar();
433436

434-
435437
if (format == "html" || this.contentType.match("text/html")) {
436438
this.sourceContent = content;
437439
if (render) return this.appendHtml(content), renderTimeStamp;

0 commit comments

Comments
 (0)