John MacFarlane
3122959064
Highlighting: Add language as class name.
...
This restores behavior of 1.8.2.1. Adjusted tests.
2011-12-27 22:24:31 -08:00
John MacFarlane
45958de0e1
Updated highlighting for highlighting-kate 0.4.
...
Text.Pandoc.Highlighting now exports just one new function,
'highlight', and reexports all the other functions from
highlighting-kate that are used in the writers. This should
make it easy to switch highlighting engines if that is ever
desired.
2011-12-26 22:49:50 -08:00
John MacFarlane
3fa98607db
LaTeX writer: Implemented syntax highlighting for CodeBlocks.
2011-12-23 18:05:14 -08:00
John MacFarlane
fca95bf43c
Removed highlighting flag. Highlighting support is now standard.
2011-12-22 13:24:43 -08:00
John MacFarlane
7046cef263
Changed types of highlighting functions.
...
* highlightLaTeX, highlightHtml now return Maybe, not Either.
* This is because h-k's higdlightAs no longer returns an Either.
2011-12-22 00:33:38 -08:00
John MacFarlane
569fc4c67a
Added highlightLaTeX stub when not compiled w/ highlighting.
2011-12-19 21:59:53 -08:00
John MacFarlane
a936e5d34f
Added highlightLaTeX to Text.Pandoc.Highlighting.
2011-12-19 11:51:17 -08:00
John MacFarlane
1a22e75352
HTML writer: Retain ID attribute in highlighted code blocks.
2011-12-18 12:33:11 -08:00
John MacFarlane
f0e0e1e5d4
Highlighting: Use reads instead of read.
...
Fixes crash on startNum="abc".
2011-12-18 11:42:24 -08:00
John MacFarlane
89c962a18c
Use blaze-html instead of xhtml for HTML generation.
...
* This is a breaking API change for `writeHtml`.
* It introduces a new dependency on blaze-html.
* Pandoc now depends on highlighting-kate >= 0.4, which
also uses blaze-html.
* The --ascii option has been removed, because of differences
in blaze-html's and xhtml's escaping.
* Pandoc will no longer transform leading newlines in code
blocks to `<br/>` tags.
2011-12-17 22:46:03 -08:00
John MacFarlane
caa091e810
Highlighting: Fixed non-highlighting-kate version of highlightHtml.
2011-01-29 23:08:29 -08:00
John MacFarlane
9f28acba9d
Fixed highlighting for inline code.
...
highlightHtml in Highlighting now has a boolean argument that
selects between inline and block content.
Revised tests for new highlighting-kate.
2011-01-29 16:04:07 -08:00
fiddlosopher
ca2bbafbb9
Removed redundant imports (found by ghc 6.12).
...
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1750 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31 16:48:36 +00:00
fiddlosopher
1b3d5896c7
Removed unneeded LANGUAGE pragmas.
...
(CPP is enabled globally in the cabal file.)
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1747 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31 16:48:14 +00:00
fiddlosopher
39f6af5de4
Modified html+lhs output to use 'haskell' highlighter.
...
The bird tracks are added in the highlighting module.
This makes sense, because the kate's haskell highlighter
is much better than the literateHaskell highlighter.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1620 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-21 04:40:59 +00:00
fiddlosopher
d3f4293725
Export languagesByExtension in Text.Pandoc.Highlighting.
...
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1585 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-07-03 02:33:43 +00:00
fiddlosopher
42aca57dee
Moved all haskell source to src subdirectory.
...
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1528 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 20:00:26 +00:00