aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Highlighting.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-12-03Add support to GAPRaniere Silva1-1/+2
2015-11-22hlint changesJohn MacFarlane1-3/+1
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane1-1/+0
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane1-0/+1
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2015-04-26Updated copyright notices to -2015. Closes #2111.John MacFarlane1-2/+2
2014-06-17Highlighting: Let .numberLines work even if no language given.John MacFarlane1-1/+6
Closes #1287, jgm/highlighting-kate#40.
2014-05-09Update copyright notices for 2014, add missing noticesAlbert Krewinkel1-2/+2
2013-03-05LaTeX reader: Handle language attribute for lstlistings.John MacFarlane1-1/+2
Convert it to a highlighting-kate language name.
2013-03-05Hide Text.Pandoc.Highlighting.John MacFarlane1-0/+70
* Moved code for translating listings language names to highlighting-kate names and back from LaTeX reader to Highlighting. * Text.Pandoc.Highlighting no longer exposed (API change) * Text.Pandoc.Highlighting exports toListingsLang, fromListingsLang
2012-08-09Use safeRead instead of using reads directly (various modules).John MacFarlane1-3/+4
2012-05-17Added 'zenburn' highlight style from highlighting-kate.John MacFarlane1-0/+1
Depend on h-k 0.5.0.6.
2012-01-25Depend on highlighting-kate 0.5.John MacFarlane1-1/+1
This uses styleToCss instead of styleToHtml.
2011-12-28Preserve attributes in highlighted HTML.John MacFarlane1-1/+2
The container element will have the classes, id, and key-value attributes you specified in the delimited code block. Previously these were stripped off.
2011-12-27Added `--highlight-style` and `--no-highlight` options.John MacFarlane1-0/+6
2011-12-27Highlighting: Add language as class name.John MacFarlane1-1/+1
This restores behavior of 1.8.2.1. Adjusted tests.
2011-12-26Updated highlighting for highlighting-kate 0.4.John MacFarlane1-40/+24
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-23LaTeX writer: Implemented syntax highlighting for CodeBlocks.John MacFarlane1-1/+3
2011-12-22Removed highlighting flag. Highlighting support is now standard.John MacFarlane1-17/+0
2011-12-22Changed types of highlighting functions.John MacFarlane1-12/+12
* highlightLaTeX, highlightHtml now return Maybe, not Either. * This is because h-k's higdlightAs no longer returns an Either.
2011-12-19Added highlightLaTeX stub when not compiled w/ highlighting.John MacFarlane1-0/+3
2011-12-19Added highlightLaTeX to Text.Pandoc.Highlighting.John MacFarlane1-11/+29
2011-12-18HTML writer: Retain ID attribute in highlighted code blocks.John MacFarlane1-2/+5
2011-12-18Highlighting: Use reads instead of read.John MacFarlane1-3/+5
Fixes crash on startNum="abc".
2011-12-17Use blaze-html instead of xhtml for HTML generation.John MacFarlane1-5/+5
* 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-01-29Highlighting: Fixed non-highlighting-kate version of highlightHtml.John MacFarlane1-2/+2
2011-01-29Fixed highlighting for inline code.John MacFarlane1-2/+6
highlightHtml in Highlighting now has a boolean argument that selects between inline and block content. Revised tests for new highlighting-kate.
2009-12-31Removed redundant imports (found by ghc 6.12).fiddlosopher1-1/+1
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1750 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31Removed unneeded LANGUAGE pragmas.fiddlosopher1-1/+0
(CPP is enabled globally in the cabal file.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1747 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-21Modified html+lhs output to use 'haskell' highlighter.fiddlosopher1-1/+5
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-07-03Export languagesByExtension in Text.Pandoc.Highlighting.fiddlosopher1-2/+5
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1585 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24Moved all haskell source to src subdirectory.fiddlosopher1-0/+64
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1528 788f1e2b-df1e-0410-8736-df70ead52e1b