beerendlauwers / HaskAnything

Hask Anything! is a website aimed at collecting and organizing the collective knowledge of the Haskell community.
http://haskanything.com/
BSD 3-Clause "New" or "Revised" License
17 stars 7 forks source link

Add a preview for markdown content in submissions #29

Closed m0rphism closed 7 years ago

m0rphism commented 8 years ago

I think it would be convenient to display a rendered version of the markdown content before a submission via the website is performed. This would make it easier to improve the layout and detect syntax errors in the layout.

beerendlauwers commented 8 years ago

We're currently using Pandoc, which has been ported to JavaScript with GHCJS before. However, that might be a very heavy dependency (around 2.2MB last I checked). Perhaps we should use a simpler JavaScript-based Markdown renderer? Open to suggestions :)

m0rphism commented 8 years ago

That seems a bit heavy indeed :)

If people are contributing from mobile devices, something smaller would probably be good.

Unfortunately, I have almost no experience with web development, but here are two projects I've found multiple suggestions for:

I haven't used them yet, so I can not comment on their performance or correctness. Hope that helps.

beerendlauwers commented 7 years ago

The recent commits add Markdown preview support.

beerendlauwers commented 7 years ago

Markdown preview button added to the file preview text area as well in 67734b86fae9a29df1df8fdc9160cd3bdb86d45c. I think this concludes your reqest?