mendicant-original / puzzlenode

Quiz application inspired by Project Euler and the Internet Problem Solving Contest (IPSC)
puzzlenode.com
81 stars 43 forks source link

Add "Preview" to all Markdown fields #42

Closed madebydna closed 13 years ago

madebydna commented 13 years ago

For example for puzzle descriptions in admin pages.

gjp commented 13 years ago

Working on this one per an earlier conversation with Jordon.

Preview code from university-web works here, though I'll need to add styles, and the javascript ought to be changed not to create duplicate IDs when more than one preview is created per page (puzzle edit).

gjp commented 13 years ago

:sparkles: Woo, working and styled! :sparkles:

Now for the bad news: Unlike redcarpet, showdown.js does not support backtick-fenced code blocks. This is causing rendering inconsistencies. I'll make another attempt to find a patched showdown.js or see how difficult it would be to hack it in myself before submitting a pull request.