summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Highlighting.hs
Commit message (Collapse)AuthorAge
* Update copyright notices to include 2018Albert Krewinkel2018-01-05
|
* Support `lineAnchors` (or `line-anchors`) in code blocks, for HTML.John MacFarlane2017-11-02
|
* Use latest skylighting; ensure no duplicate ids on code lines.John MacFarlane2017-11-02
| | | | | | | | The line identifiers are built using the code block's identifier as a prefix. If the code block has null identifier, we use "cb1", "cb2", etc. Closes #4031.
* hlint suggestions.John MacFarlane2017-10-27
|
* hlint suggestions.John MacFarlane2017-06-02
|
* Update dates in copyright noticesAlbert Krewinkel2017-05-13
| | | | | This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
* Allow dynamic loading of syntax definitions.John MacFarlane2017-03-30
| | | | | | | | | | | | | | | | | See #3334. * Add writerSyntaxMap to WriterOptions. * Highlighting: added parameter for SyntaxMap to highlight. * Implemented --syntax-definition option. TODO: [ ] Figure out whether we want to have the xml parsing depend on the dtd (it currently does, and fails unless the language.dtd is found in the same directory). [ ] Add an option to read a KDE syntax highlighting theme as a custom style. [ ] Add tests.
* Highlighting: highlighting now returns an Either rather than Maybe.John MacFarlane2017-03-13
| | | | | | | This allows us to display error information returned by the skylighting library. Display a warning if the highlighting library throws an error.
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* Split pandoc.hs into a module, Text.Pandoc.App, and a small program.John MacFarlane2017-02-05
| | | | | | | | | | | | | | | The App module provides a function that does a pandoc conversion, based on option settings. The program (pandoc.hs) now does nothing more than parse options and pass them to this function, which can easily be used by other applications (e.g. a GUI wrapper). The Opt structure has been further simplified. API changes: * New exposed module Text.Pandoc.App * Text.Pandoc.Highlighting has been exposed. * highlightingStyles has been moved to Text.Pandoc.Highlighting.
* Removed unneeded imports.John MacFarlane2017-01-29
|
* Update list of listings languages in Highlighting.John MacFarlane2017-01-25
| | | | | | | This allows more languages to be used when using the `--listings` option. Closes #3374.
* Updates to use skylighting rather than highlighting-kate.John MacFarlane2016-12-23
| | | | | | | | So far this just reproduces capacity. Later we'll be able to add features like warning messages, dynamic loading of xml syntax definitions, and dynamic loading of themes.
* Updated copyright dates to include 2016.John MacFarlane2016-03-22
|
* Make language extensions trigger highlighting.John MacFarlane2016-01-24
| | | | | For example, `py` will now work as well as `python`. Closes jgm/highlighting-kate#83.
* Add support to GAPRaniere Silva2015-12-03
|
* hlint changesJohn MacFarlane2015-11-22
|
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Highlighting: Let .numberLines work even if no language given.John MacFarlane2014-06-17
| | | | Closes #1287, jgm/highlighting-kate#40.
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* LaTeX reader: Handle language attribute for lstlistings.John MacFarlane2013-03-05
| | | | Convert it to a highlighting-kate language name.
* Hide Text.Pandoc.Highlighting.John MacFarlane2013-03-05
| | | | | | | * 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
* Use safeRead instead of using reads directly (various modules).John MacFarlane2012-08-09
|
* Added 'zenburn' highlight style from highlighting-kate.John MacFarlane2012-05-17
| | | | Depend on h-k 0.5.0.6.
* Depend on highlighting-kate 0.5.John MacFarlane2012-01-25
| | | | This uses styleToCss instead of styleToHtml.
* Preserve attributes in highlighted HTML.John MacFarlane2011-12-28
| | | | | | | | The container element will have the classes, id, and key-value attributes you specified in the delimited code block. Previously these were stripped off.
* Added `--highlight-style` and `--no-highlight` options.John MacFarlane2011-12-27
|
* Highlighting: Add language as class name.John MacFarlane2011-12-27
| | | | This restores behavior of 1.8.2.1. Adjusted tests.
* Updated highlighting for highlighting-kate 0.4.John MacFarlane2011-12-26
| | | | | | | | 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.
* LaTeX writer: Implemented syntax highlighting for CodeBlocks.John MacFarlane2011-12-23
|
* Removed highlighting flag. Highlighting support is now standard.John MacFarlane2011-12-22
|
* Changed types of highlighting functions.John MacFarlane2011-12-22
| | | | | * highlightLaTeX, highlightHtml now return Maybe, not Either. * This is because h-k's higdlightAs no longer returns an Either.
* Added highlightLaTeX stub when not compiled w/ highlighting.John MacFarlane2011-12-19
|
* Added highlightLaTeX to Text.Pandoc.Highlighting.John MacFarlane2011-12-19
|
* HTML writer: Retain ID attribute in highlighted code blocks.John MacFarlane2011-12-18
|
* Highlighting: Use reads instead of read.John MacFarlane2011-12-18
| | | | Fixes crash on startNum="abc".
* Use blaze-html instead of xhtml for HTML generation.John MacFarlane2011-12-17
| | | | | | | | | | | * 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.
* Highlighting: Fixed non-highlighting-kate version of highlightHtml.John MacFarlane2011-01-29
|
* Fixed highlighting for inline code.John MacFarlane2011-01-29
| | | | | | | highlightHtml in Highlighting now has a boolean argument that selects between inline and block content. Revised tests for new highlighting-kate.
* Removed redundant imports (found by ghc 6.12).fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1750 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed unneeded LANGUAGE pragmas.fiddlosopher2009-12-31
| | | | | | (CPP is enabled globally in the cabal file.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1747 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified html+lhs output to use 'haskell' highlighter.fiddlosopher2009-11-21
| | | | | | | | 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
* Export languagesByExtension in Text.Pandoc.Highlighting.fiddlosopher2009-07-03
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1585 788f1e2b-df1e-0410-8736-df70ead52e1b
* Moved all haskell source to src subdirectory.fiddlosopher2009-01-24
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1528 788f1e2b-df1e-0410-8736-df70ead52e1b