laktek / punch

A fun and easy way to build modern websites
http://laktek.github.com/punch
MIT License
1.17k stars 107 forks source link

Tutorial: markdown output fails to render as HTML #56

Open DivineDominion opened 11 years ago

DivineDominion commented 11 years ago

When using intro.markdown, the tutorial won't continue. I guess it's because the generated HTML is escaped. I can read <p>This is some intro text.</p> including HTML Tags. The tutorial JS seems to expect <p> tags, not CDATA-like text with <p> in it, so I suppose something's broken.

pruman commented 11 years ago

Same issue here, on Windows. I used http://daringfireball.net/projects/markdown/dingus to generate the markdown, which I saved using Notepad++. I really want to finish the tutorial and am excited by punch so I welcome a fix here. Thanks.

laktek commented 11 years ago

@DivineDominion @pruman Are you both on Windows 8? If so, it seems to be related to the issue #52.

I'll try to figure out where the issue is as soon as I get access to a windows 8 box.

DivineDominion commented 11 years ago

Sorry, no :) I'm on a Mac, got node.js via Homebrew, and I'm using Chrome.

laktek commented 11 years ago

@DivineDominion You should use the tag with three parentheses to ge the unescaped output ({{{intro}}} instead of {{intro}}). Check whether it is the issue.

DivineDominion commented 11 years ago

Yeah, indeed that helped. :) Thanks for pointing that out.

Didn't know about that Mustache syntax part. Would be cool if you were able to introduce a switch in the Tutorial which detect usage of {{...}} instead of {{{...}}} (maybe checking againgst occurences of &gt;?).