Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate local source for markdown? #6

Open
bielsnohr opened this issue Jan 31, 2021 · 1 comment
Open

Separate local source for markdown? #6

bielsnohr opened this issue Jan 31, 2021 · 1 comment

Comments

@bielsnohr
Copy link

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!

@bobthemighty
Copy link

Hi @bielsnohr - I always work that way - there are some examples on my personal account eg. https://github.com/bobthemighty/talk-eventbridge-is-so-hot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants