First off, thanks for this template. Really slick and useful.
I'm wondering if it is possible to have a separate file with the markdown source in it like mentioned in the remark.js documentation:
External Markdown
Depending on your preference, you might want to keep the Markdown source in a separate file. Using the sourceUrl
field, a URL may be specified which will get loaded synchronously and used instead of the two former options:
var slideshow = remark.create({
sourceUrl: 'markdown.md'
});
When working locally, with your slideshow HTML opened directly from disk, using the sourceUrl
won't work out of the box. This requires hosting your files using a web server, which can be accomplished in multiple ways, e.g. by running python3 -m http.server
in the directory of your index.html
file. With a web server up and running, say on port 8000, you should be able to access your files via http://localhost:8000.
Naively removing the <textarea> and sticking in sourceUrl as described above doesn't seem to work. Cheers!