summaryrefslogtreecommitdiff
path: root/pandoc.cabal
Commit message (Collapse)AuthorAge
* Use latest skylighting.John MacFarlane2017-11-03
|
* 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.
* Bump tasty upper bound.John MacFarlane2017-11-02
|
* Merge pull request #4001 from labdsf/fb2-testsJohn MacFarlane2017-11-01
|\ | | | | Add new style FB2 tests
| * Add new style FB2 testsAlexander Krotov2017-10-28
| |
* | Version to 2.0.1.John MacFarlane2017-10-31
| |
* | Bump to 2.0.0.1.John MacFarlane2017-10-30
| |
* | Added creole reader test files to pandoc.cabal.John MacFarlane2017-10-29
|/
* Removed unnecessary build-deps.John MacFarlane2017-10-27
|
* Use CamelCase for JavaScript for uniformityKolen Cheung2017-10-26
| | | other instances when javascript is refered to in pandoc is also in CamelCase, the official casing of JavaScript.
* Bring MANUAL, README, and pandoc.cabal description in sync.John MacFarlane2017-10-26
|
* Creole reader (#3994)Sascha Wilde2017-10-26
| | | | This is feature complete but not very thoroughly tested yet.
* Use skylighting 0.4.2.John MacFarlane2017-10-26
| | | | | | | | | This prevents the problem with extra space around highlighted code blocks (closes #3996). Note that we no longer put an enclosing div around highlighted code blocks. The pre is the outer element, just as for unhighlighted blocks.
* Updated Glob upper bound.John MacFarlane2017-10-23
|
* Use doctemplates 0.2.1: allows `$--` line comments in templates.John MacFarlane2017-10-20
| | | | Closes #3806.
* Export Text.Pandoc.BCP47John MacFarlane2017-10-17
|
* Split list of authors from MANUAL.txt into separate file, AUTHORS.md.John MacFarlane2017-10-17
| | | | It was getting too long for a man page.
* Improved handling of include files in LaTeX reader.John MacFarlane2017-10-16
| | | | | | | | | | | | | Previously `\include` wouldn't work if the included file contained, e.g., a begin without a matching end. We've changed the Tok type so that it stores a full SourcePos, rather than just a line and column. So tokens keeep track of the file they came from. This allows us to use a simpler method for includes, which doesn't require parsing the included document as a whole. Closes #3971.
* Remove openURL from Shared (API change).John MacFarlane2017-10-15
| | | | | | | | Now all the guts of openURL have been put into openURL from Class. openURL is now sensitive to stRequestHeaders in CommonState and will add these custom headers when making a request. It no longer looks at the USER_AGENT environment variable, since you can now set the `User-Agent` header directly.
* Use hslua v0.9.0Albert Krewinkel2017-10-05
|
* Added ghc 8.2.1 to tested-with stanza.John MacFarlane2017-09-24
|
* Require pandoc-types 1.17.2.John MacFarlane2017-09-24
|
* Use skylighting 0.4.John MacFarlane2017-09-15
|
* FromJSON/ToJSON instances for Reader, WriterOptions.John MacFarlane2017-09-14
| | | | Depends on skylighting 0.3.5.
* Require skylighting 0.3.4.1 or higher.John MacFarlane2017-09-09
|
* Removed old beamer template.John MacFarlane2017-09-08
| | | | | | | We now use the default.latex template for both latex and beamer. It contains conditionals for the beamer-specific things. `pandoc -D beamer` will return this template.
* cabal: add custom-setup stanza, lowercase field names.John MacFarlane2017-09-07
|
* Add 'static' Cabal flag, use it for linux statically linked.John MacFarlane2017-09-04
|
* RST reader: Fixed `..include::` directive.John MacFarlane2017-08-27
| | | | Closes #3880.
* Use pandoc-types 1.17.1. Tests updated for new simpleTable behavior...John MacFarlane2017-08-20
| | | | with empty headers.
* HTML reader: support column alignments.John MacFarlane2017-08-17
| | | | | | | These can be set either with a `width` attribute or with `text-width` in a `style` attribute. Closes #1881.
* Update to hslua-0.8.0Albert Krewinkel2017-08-16
| | | | | | hslua no longer provides lua stack instances for Int and Double, the necessary instances are added to the Custom writer and the lua filtering system.
* Changed command test for #2994 so it actually tests the writer.John MacFarlane2017-08-14
|
* Delete Text.Pandoc.Lua.SharedInstancesAlbert Krewinkel2017-08-13
| | | | | | | | | Stack instances for common data types are now provides by hslua. The instance for Either was useful only for a very specific case; the function that was using the `ToLuaStack Either` instance was rewritten to work without it. Closes: #3805
* Use hslua >= 0.7, update Lua codeAlbert Krewinkel2017-08-13
|
* Docx writer: pass through comments.John MacFarlane2017-08-12
| | | | | | | | | | | | | | We assume that comments are defined as parsed by the docx reader: I want <span class="comment-start" id="0" author="Jesse Rosenthal" date="2016-05-09T16:13:00Z">I left a comment.</span>some text to have a comment <span class="comment-end" id="0"></span>on it. We assume also that the id attributes are unique and properly matched between comment-start and comment-end. Closes #2994.
* Change to yaml for translation files.John MacFarlane2017-08-12
|
* Added support for translations (localization) (see #3559).John MacFarlane2017-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | * readDataFile, readDefaultDataFile, getReferenceDocx, getReferenceODT have been removed from Shared and moved into Class. They are now defined in terms of PandocMonad primitives, rather than being primitve methods of the class. * toLang has been moved from BCP47 to Class. * NoTranslation and CouldNotLoudTranslations have been added to LogMessage. * New module, Text.Pandoc.Translations, exporting Term, Translations, readTranslations. * New functions in Class: translateTerm, setTranslations. Note that nothing is loaded from data files until translateTerm is used; setTranslation just sets the language to be used. * Added two translation data files in data/translations. * LaTeX reader: Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia) and `\figurename`.
* Added data file to pandoc.cabal.John MacFarlane2017-08-10
|
* RST reader: Basic support for csv-table directive.John MacFarlane2017-08-10
| | | | | | | * Added Text.Pandoc.CSV, simple CSV parser. * Options still not supported, and we need tests. See #3533.
* Build config that works with lts-9.0 and nightly.John MacFarlane2017-08-09
|
* Don't put fancy warnings in pandoc.cabal ghc-options.John MacFarlane2017-08-08
|
* Use extra ghc warnings.John MacFarlane2017-08-08
| | | | | In addition to `-Wall`: `-Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances`
* Remove GFM modules; use CMarkGFM for both gfm and commonmark.John MacFarlane2017-08-07
| | | | | | | | | | We no longer have a separate readGFM and writeGFM; instead, we'll use readCommonMark and writeCommonMark with githubExtensions. It remains to implement these extensions conditionally. Closes #3841.
* Added gfm (GitHub-flavored CommonMark) as an input and output format.John MacFarlane2017-08-07
| | | | | | | | | | | | | | This uses bindings to GitHub's fork of cmark, so it should parse gfm exactly as GitHub does (excepting certain postprocessing steps, involving notifications, emojis, etc.). * Added Text.Pandoc.Readers.GFM (exporting readGFM) * Added Text.Pandoc.Writers.GFM (exporting writeGFM) * Added `gfm` as input and output forma Note that tables are currently always rendered as HTML in the writer; this can be improved when CMarkGFM supports tables in output.
* Added TikiWiki reader (#3800)rlpowell2017-07-21
| | | | | | | Added TikiWiki reader, including tests and documentation. It's probably not *complete*, but it works pretty well, handles all the basics (and some not-so-basics).
* Use foldrWithKey instead of deprecated foldWithKey.John MacFarlane2017-07-13
|
* Rewrote LaTeX reader with proper tokenization.John MacFarlane2017-07-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This rewrite is primarily motivated by the need to get macros working properly. A side benefit is that the reader is significantly faster (27s -> 19s in one benchmark, and there is a lot of room for further optimization). We now tokenize the input text, then parse the token stream. Macros modify the token stream, so they should now be effective in any context, including math. Thus, we no longer need the clunky macro processing capacities of texmath. A custom state LaTeXState is used instead of ParserState. This, plus the tokenization, will require some rewriting of the exported functions rawLaTeXInline, inlineCommand, rawLaTeXBlock. * Added Text.Pandoc.Readers.LaTeX.Types (new exported module). Exports Macro, Tok, TokType, Line, Column. [API change] * Text.Pandoc.Parsing: adjusted type of `insertIncludedFile` so it can be used with token parser. * Removed old texmath macro stuff from Parsing. Use Macro from Text.Pandoc.Readers.LaTeX.Types instead. * Removed texmath macro material from Markdown reader. * Changed types for Text.Pandoc.Readers.LaTeX's rawLaTeXInline and rawLaTeXBlock. (Both now return a String, and they are polymorphic in state.) * Added orgMacros field to OrgState. [API change] * Removed readerApplyMacros from ReaderOptions. Now we just check the `latex_macros` reader extension. * Allow `\newcommand\foo{blah}` without braces. Fixes #1390. Fixes #2118. Fixes #3236. Fixes #3779. Fixes #934. Fixes #982.
* Use latest texmath.John MacFarlane2017-06-30
|
* Moved BCP47 specific functions from Writers.Shared to new module.John MacFarlane2017-06-25
| | | | | Text.Pandoc.BCP47 (unexported, internal module). `getLang`, `Lang(..)`, `parseBCP47`.