idan / gistio

A gist-backed pretty display for markdown.
https://gist.io
MIT License
486 stars 41 forks source link

Support literal haskell! #22

Open Najaf opened 12 years ago

Najaf commented 12 years ago

Ahoy there!

Literal haskell is a fantastic writing medium, it also helps that it's markdown compatible. This issue description is in literal haskell, and can be compiled by any haskell compiler (as a file with a .lhs extension).

Code to compile is in markdown blockquotes like so:

factorial' :: [Int] -> Int factorial' [] = 0 factorial' (x:xs) = x * factorial xs

In theory all you should have to do is add .lhs to your list of supported file types somewhere and it should just work. I totally get that there probably won't be much demand for this though.

ghost commented 12 years ago

+1 for this, I just published a literate Haskell gist and was confused when it didn't show up.

ghost commented 11 years ago

This is not exactly compatible with Markdown; the Haskell code should be highlighted and in monospace font. Blockquotes obviously don't do this.

idan commented 11 years ago

I'd like to support alternative rendering engines in the future, but this is very much in the "someday" category.

Potherca commented 5 years ago

🤔 Is still an issue?

Unless I'm mistaken, there is no longer any Haskell in this repo?