Live data from Hacker News

Strapdown.js – Instant and elegant Markdown documents

strapdownjs.com

31–40 of 41 posts

Re: Strapdown.js – Instant and elegant Markdown documents

#35
post #31
post #2

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

I don't think it has any FOUT, because the whole element is styled with "display: none;". Only after the JS is parsed, it formats the Markdown code and then re-display it.

I'm definitely getting FOUT. Disabling all javascript does get me a blank page (also a problem IMO), so it seems to be in the script.

Re: Strapdown.js – Instant and elegant Markdown documents

#36
post #27

Earlier quoted context omitted.

I wish browsers would include a basic Markdown renderer.

But not everyone likes Markdown, it would possibly be bloated! Maybe we should add a scripting language so that sites can use any source format they want? Oh wait.

Or we could build a big tool ecosystem around a single markup language that everything understands.

Re: Strapdown.js – Instant and elegant Markdown documents

#37
post #19

How is this remotely elegant? You're including a script to render simple formatted text, something that can be accomplished by statically compiling from markdown to HTML before serving. If you can serve static HTML, why not just do that?

It could be useful if you just want to edit a file in notepad and drop it on a CDN or fileshare without any tooling. I don't run a blog but it could be nice. I'd definitely call it elegant, though not exactly minimal. I helped run a fraternity website for a bit. If I could say, hey just download the source from chrome, tweak the bulletin in notepad, and upload it back to the ftp page that would have been great. It al…

> If you browse without JS it still works!

How does it, given that all the markdown is inside that

    
block?

Re: Strapdown.js – Instant and elegant Markdown documents

#40

Strapdown isn't in active development. PRs haven't been merged in over a few years. Strapdown-Zeta (a fork) has the ability to load MD files from src and stuff: https://github.com/chaitin/strapdown-zeta/blob/master/README...

Thanks for the comment!

FYI, if you want to src attribute to load markdown files you need to build js files yourself as the js file in the CDN doesn't have the feature for some reason.

I've created an issue for this https://github.com/chaitin/strapdown-zeta/issues/119

Post reply on HN