arturadib / strapdown

Instant and elegant Markdown documents in the browser
http://strapdownjs.com
MIT License
2.48k stars 410 forks source link

Serving Strapdown Files #28

Closed jamiejackson closed 9 years ago

jamiejackson commented 10 years ago

I usually open local files in a browser, and that works fine (xmp content is rendered).

However, if I try to serve the file (it has an html extension) over Apache, I get the page and can view all the source I'd expect, but the rendered page is completely blank. If I inspect the request, I don't see the JS get requested by the browser at all.

Is there something I'm missing? I'm having a hard time understanding why I'm seeing this behavior.

HowBowers commented 10 years ago

I've noticed the same behavior serving from a IIS server, but only when the page is rendered in IE8 (IE10 works fine).

I added and tags into the HTML markup and then the page appeared as expected.

jamiejackson commented 9 years ago

I tried placing the strapdown code on an HTTPS server, and it works. So it was just an HTTP/HTTPS mismatch, and if I get an answer to #53, it will solve this problem.