orecht / MarkdownHttpHandler

Display makrdown .md files in IIS.
10 stars 3 forks source link

.md passes through handler, but displays a **blank page** on the browser side. #2

Open prep-gh opened 6 years ago

prep-gh commented 6 years ago

.md passes through handler, but displays a blank page on the browser side.

It is correctly wrapping the .md text; as view source on the browser shows.

<!DOCTYPE html>

... md stuff here

Same behavior on:

OS = Windows Server 2008

prep-gh commented 6 years ago

ps - should we add a mime type of text/html in IIS for .md files as well?

I did -- but without effect.

prep-gh commented 6 years ago

This might be the opera warning source:

https://strapdownjs.com gives:

This Connection is Untrusted

You have asked Pale Moon to connect securely to strapdownjs.com, but we can't confirm that your connection is secure.

Normally, when you try to connect securely, sites will present trusted identification to prove that you are going to the right place. However, this site's identity can't be verified. What Should I Do?

orecht commented 6 years ago

https://strapdownjs.com has a wrong certificate: strapdownjs.com uses an invalid security certificate. The certificate is only valid for the following names: .github.com, github.com, .github.io, github.io Error code: SSL_ERROR_BAD_CERT_DOMAIN

This sounds like a Github pages configuration issue in strapdown project. I have submitted an issue for this: https://github.com/arturadib/strapdown/issues/92

prep-gh commented 6 years ago

Yes, leave it open.

I copied strapdown.js directly into the .md stream; bypassing their website; and I still get a blank page (everything is there via view source) when retrieving the .md file through IIS and the MarkdownHttpHandler handler.


the .md contains only this:

tester

test!

This is what markdown looks like to others

prep-gh commented 6 years ago
tester 
# test! 
This *is what* markdown looks like **to others**
orecht commented 5 years ago

I have added a test project in test. I have carried out these steps:

  1. open the solution test/ORecht.MarkdownHandler.Test.sln with Visual Studio 2017
  2. build it
  3. run the project with IIS Express
  4. browse to http://localhost:55143/content/test.md (port number might change on you machine).

The markdown is displayed as expected.

orecht commented 5 years ago

https://strapdownjs.com have resolved issue arturadib/strapdown#92. Can you test again, please?