snoyberg / markdown

Convert Markdown to HTML, with XSS protection
BSD 3-Clause "New" or "Revised" License
69 stars 401 forks source link

code fencing #3

Closed gregwebs closed 12 years ago

gregwebs commented 12 years ago

I had a lot of troubles trying to figure out how to get my Haskell code syntax highlighted.

snoyberg commented 12 years ago

Triple tilde is supported, what's not working?

gregwebs commented 12 years ago

I had problems with triple tilde, not sure if they were supposed to be indented or not. You can see my failed efforts in the blog commits: https://github.com/yesodweb/yesodweb.com-content/commit/8ef878c3558d396965f1f758021ee578e440e4e8

Pandoc supports an infinite amount of tildes from the left and then the code does not need to be indented. Github markdown supports 3 ticks.

snoyberg commented 12 years ago

I believe this is now supported properly, both the triple tilde and triple backtick version. I can't guarantee precise adherence to what both Pandoc and Github provide, but it seems to work the same for the cases I've tried.

gregwebs commented 12 years ago

ok, thanks!