Live data from Hacker News

Strapdown.js – Instant and elegant Markdown documents

strapdownjs.com

1–10 of 41 posts

Re: Strapdown.js – Instant and elegant Markdown documents

#5
post #4

Earlier quoted context omitted.

What's FOUT?

Might mean "flash of unstyled text" though I was not able to see it on my iPhone with chrome browser.

I noticed it, though my work PC is slow as molasses.

Based on how Strapdown appears to work, it appears to be the delayed CSS load that causes the problems.

I believe that the problem could be alleviated by adding the CSS link tags to the head of the document, when you're happy with the final product. Looks like you should only need bootstrap and whatever you choose from bootswatch.

Re: Strapdown.js – Instant and elegant Markdown documents

#7
post #2

I like this, but I hate the FOUT that it seems to create

Off topic but I never knew the term for this. The cbcnews.ca site got rebuilt in react recently and the result has this one bug where when loading, some headlines flash an entirely different but also valid headline for the same story for a split second. When it comes to news, a FOUT like that makes me rather paranoid about maybe I'm getting a tailored headline for my demographic.

Re: Strapdown.js – Instant and elegant Markdown documents

#9
This comes on top of Marked[1], so it is a dependency. Use with care.

From my experience any of the trio, Marked[1], Showdown[2] and Markdown-it[3], can be configured to just do it themselves.

As a side note, I built a markdown editor once that works client side and resides inside "real static" html.

Demo for the interested: http://public.docs.xstatic.site.s3-website-us-west-1.amazona...

[1] https://github.com/markedjs/marked

[2] https://github.com/showdownjs/showdown

[3] https://github.com/markdown-it/markdown-it

Post reply on HN