jaspervdj / hakyll

A static website compiler library in Haskell
jaspervdj.be/hakyll
Other
2.68k stars 409 forks source link

Syntax highlighting doesn't work SOMETIMES #70

Closed ghost closed 12 years ago

ghost commented 12 years ago

And I don't understand why and when.

for example:

markdown : https://github.com/Bridgit/Bridgit/blob/master/posts/2010-12-16-FS3.md

html : https://github.com/Bridgit/bridgit.github.com/blob/master/posts/2010-12-16-FS3.html

as you see there is

``` fsharp ....

or sometimes when I add several code snippets it highlights correct only one of them.

pandoc 1.9.3 Compiled with citeproc-hs 0.3.4, texmath 0.6.0.6, highlighting-kate 0.5.1. Syntax highlighting is supported for the following languages: Actionscript, Ada, Alert, Alert_indent, Apache, Asn1, Asp, Awk, Bash, Bibtex, Boo, C, Changelog, Clojure, Cmake, Coffeescript, Coldfusion, Commonlisp, Cpp, Cs, Css, D, Diff, Djangotemplate, Doxygen, Dtd, Eiffel, Email, Erlang, Fortran, Fsharp, Gnuassembler, Go, Haskell, Haxe, Html, Ini, Java, Javadoc, Javascript, Json, Jsp, Latex, Lex, LiterateHaskell, Lua, Makefile, Mandoc, Matlab, Maxima, Metafont, Mips, Modula2, Modula3, Monobasic, Nasm, Noweb, Objectivec, Objectivecpp, Ocaml, Octave, Pascal, Perl, Php, Pike, Postscript, Prolog, Python, R, Relaxngcompact, Rhtml, Ruby, Scala, Scheme, Sci, Sed, Sgml, Sql, SqlMysql, SqlPostgresql, Tcl, Texinfo, Verilog, Vhdl, Xml, Xorg, Xslt, Xul, Yacc, Yaml Copyright (C) 2006-2012 John MacFarlane Web: http://johnmacfarlane.net/pandoc This is free software; see the source for copying conditions. There is no warranty, not even for merchantability or fitness for a particular purpose

[ebuild R ] dev-haskell/hakyll-3.3.0.0::nengraphy USE="-doc -hscolour -profile -test"

ghost commented 12 years ago

Does syntax alike

Hello :
``` c

Breaks highlighting because of ':' ?

ghost commented 12 years ago

very often highlighting is broken with reason I can't understand is there some strong rules for it?

jaspervdj commented 12 years ago

I think there must be a blank line at least, if I remember correctly:

Hello:

``` c
ghost commented 12 years ago

Need to add newline after closing ```

ghost commented 12 years ago

yes new line after closing and blank line before open ... so tricky