aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-08-12Change to yaml for translation files.John MacFarlane6-29/+45
2017-08-12Set user data dir at beginning, so readDataFile has access to it.John MacFarlane1-1/+2
2017-08-12Fixed data-dir on translations tests.John MacFarlane1-3/+3
2017-08-11More translation tests.John MacFarlane1-0/+8
2017-08-11Fixed import.John MacFarlane1-1/+1
2017-08-11Added simple test for translations.John MacFarlane1-0/+13
2017-08-11Added de.trans.John MacFarlane1-0/+19
2017-08-11More redundant imports.John MacFarlane1-2/+1
2017-08-11Avoid some warnings when compiled wo/ embed_data_files flag.John MacFarlane1-2/+3
2017-08-11Add getFileName to PandocMonad.John MacFarlane1-2/+16
We need this for getDefaultDataFile.
2017-08-11Travis: try a cabal build without embed_data_files.John MacFarlane1-6/+6
2017-08-11Removed redundant import.John MacFarlane1-1/+0
2017-08-11Added support for translations (localization) (see #3559).John MacFarlane16-358/+682
* 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`.
2017-08-11Command tests; print stderr when a test fails.John MacFarlane1-1/+4
2017-08-11Makefile - disable parallel build on 'make quick'.John MacFarlane1-1/+1
Interleaved error messages too confusing.
2017-08-10Fixed writer tests not to use writerUserDataDir.John MacFarlane1-3/+3
2017-08-10Remove writerUserDataDir from WriterOptions.John MacFarlane3-4/+0
It is now carried in CommonState in PandocMonad instances. (And thus it can be used by readers too.)
2017-08-10Removed datadir param from readDataFile and getDefaultTemplate.John MacFarlane6-37/+45
In Text.Pandoc.Class and Text.Pandoc.Template, resp. We now get the datadir from CommonState.
2017-08-10Class: add setUserDataDir and getUserDataDir.John MacFarlane1-5/+21
* Add stUserDataDir to CommonState. * Rename stUserDataDir/stCabalDataDir in PureState to stUserDataFiles/stCabalDataFiles.
2017-08-10Expose getDefaultDataFile in both Shared and Class.John MacFarlane4-7/+18
2017-08-10Added data file to pandoc.cabal.John MacFarlane1-0/+1
2017-08-10RST reader: implement csv-table directive.John MacFarlane4-48/+120
Most attributes are supported, including `:file:` and `:url:`. A (probably insufficient) test case has been added. Closes #3533.
2017-08-10RST reader: Basic support for csv-table directive.John MacFarlane3-1/+157
* Added Text.Pandoc.CSV, simple CSV parser. * Options still not supported, and we need tests. See #3533.
2017-08-10Slidy writer: use h1 for all slides...John MacFarlane1-1/+5
even if they were originally level 2 headers. Otherwise the built-in table of contents in Slidy breaks. Closes #3566.
2017-08-09RST reader: reorganize block parsers for ~20% faster parsing.John MacFarlane1-3/+4
2017-08-09RST writer: don't wrap term in definition list.John MacFarlane1-1/+1
Wrapping is not allowed.
2017-08-09Removed spurious comments.John MacFarlane1-4/+0
2017-08-09EPUB writer: don't strip formatting in TOC.John MacFarlane1-10/+23
Closes #1611.
2017-08-09Reorganized Makefile.John MacFarlane1-6/+8
2017-08-09Makefile: use nightly + colored output for quick.John MacFarlane1-1/+1
2017-08-09Makefile: use nightly.John MacFarlane1-1/+1
2017-08-09Use haddock-library 1.4.3, since 1.4.5 requirse cabal 2.John MacFarlane2-2/+2
2017-08-09Added haddock-library-1.4.5 to stack.yaml for nightly.John MacFarlane2-0/+2
2017-08-09Build config that works with lts-9.0 and nightly.John MacFarlane3-6/+8
2017-08-09Support svg in PDF output, converting with rsvg2pdf.John MacFarlane1-3/+12
Closes #1793.
2017-08-09stack.pkg.yaml - add cmark-gfm.John MacFarlane1-1/+1
2017-08-09Remove cmark from stack.yaml.John MacFarlane1-1/+0
2017-08-09Org reader: use org-language attribute rather than data-org-language.John MacFarlane2-10/+10
2017-08-09Org reader: use tag-name attribute instead of data-tag-name.John MacFarlane2-2/+2
2017-08-09LaTeX reader: Use `label` instead of `data-label` for label in caption.John MacFarlane2-2/+2
See d441e656db576f266c4866e65ff9e4705d376381, #3639.
2017-08-09HTML reader: parse <main> like <div role=main>. (#3791)bucklereed2-7/+26
* HTML reader: parse <main> like <div role=main>. * <main> closes <p> and behaves like a block element generally
2017-08-09Muse reader: simplify tableCell implementation (#3846)Alexander1-3/+1
2017-08-08Travis: more options tweaks.John MacFarlane1-3/+3
2017-08-08Don't put fancy warnings in pandoc.cabal ghc-options.John MacFarlane1-1/+1
2017-08-08Travis: don't use -Wincomplete-uni-patterns.John MacFarlane1-1/+1
2017-08-08Travis: Don't use -Wcompat.John MacFarlane1-1/+1
2017-08-08Travis: only use fancy warnings for recent ghc.John MacFarlane1-6/+6
2017-08-08RST reader: support :widths: attribute for table directive.John MacFarlane1-3/+13
2017-08-08Use extra ghc warnings.John MacFarlane2-3/+3
In addition to `-Wall`: `-Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances`
2017-08-08Parsing: added gobbleSpaces.John MacFarlane1-0/+12
This is a utility function to use in list parsing.