remark icon indicating copy to clipboard operation
remark copied to clipboard

boilerplate-local.html with sourceURL displays blank screen

Open jmjamison opened this issue 5 years ago • 4 comments

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.

jmjamison avatar Aug 05 '19 17:08 jmjamison

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?

arinbasu avatar Aug 17 '19 00:08 arinbasu

No news since august? @jmjamison do you have more info for us?

abelards avatar Dec 30 '19 09:12 abelards

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

sphaero avatar Apr 14 '21 10:04 sphaero

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.

sphaero avatar Apr 14 '21 10:04 sphaero