remark
remark copied to clipboard
boilerplate-local.html with sourceURL displays blank screen
boilerplate-local.html is displaying a blank screen. I have used this before so I know is was working.
This is what I have for the script:
<script type="text/javascript">
var slideshow = remark.create({ sourceUrl: 'dataManagementAdvancedResearch.md' });
</script>
both js and md files are local.
if you are using an Apple Safari or a Mac/Macbook/iPad, and see the blank screen, how about adding
<meta name="apple-mobile-web-app-capable" content="yes">
to the head? Will that work?
No news since august? @jmjamison do you have more info for us?
Same happening here:
<script type="text/javascript">
var slideshow = remark.create({
sourceUrl: 'les1.md'
});
</script>
Error is:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///tmp/pres/les1.md. (Reason: CORS request not http).
Uncaught Error:
onerror file:///tmp/pres/remark-latest.min.js:17
Seems this is blocking nowadays: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp
Since firefox 68. Setting privacy.file_unique_origin to false works around this.
On chromium it blocks as well, btw.