aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-06Changed year on copyright message.John MacFarlane1-1/+1
2017-02-06Consolidated file arguments into Opt.John MacFarlane2-7/+8
2017-02-06Further refactoring of App.John MacFarlane2-750/+726
Moved option parsing code into App. pandoc.hs is now a 2-liner.
2017-02-06Use unicode-math by default in default.latex template.John MacFarlane6-39/+28
mathspec will be used in xelatex if the `mathspec` variable is set; otherwise unicode-math will be used. Thanks to Václav Haisman.
2017-02-06Merge pull request #234 from wilx/master-use-unicode-mathJohn MacFarlane1-1/+13
Use `unicode-math`.
2017-02-06Removed another redundant import.John MacFarlane1-1/+0
2017-02-06LaTeX: Add missing $endif$ after rebase.Vaclav Haisman1-0/+1
2017-02-06LaTeX: Don't load `fontspec` before `unicode-math`Vaclav Haisman1-2/+0
The `unicode-math` package loads `fontspec` so explict loading of `fontspec` before `unicode-math` is not necessary.
2017-02-06Use `unicode-math`.Vaclav Haisman1-0/+13
Use `mathspec` with only XeLaTeX on request.
2017-02-05Fix an unneeded import warning.John MacFarlane1-1/+1
2017-02-05Handle language in inline code with --listings.John MacFarlane2-4/+18
Closes #3422.
2017-02-05Split pandoc.hs into a module, Text.Pandoc.App, and a small program.John MacFarlane4-777/+826
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.
2017-02-05pandoc.hs: make reader and writer Maybe values in Opt.John MacFarlane1-13/+12
2017-02-05Makefile: added BRANCH variable for winpkgJohn MacFarlane1-1/+2
2017-02-05Removed redundant import.John MacFarlane1-1/+0
2017-02-05Allow user to specify User-Agent (#3421)Thenaesh Elango2-3/+16
This commit enables users to specify the User-Agent header used when pandoc requests a document from a URL. This is done by setting an environment variable. For instance, one can do: USER_AGENT="..." ./pandoc -f html -t markdown http://example.com Signed-off-by: Thenaesh Elango <thenaeshelango@gmail.com>
2017-02-05More simplification of pandoc.hs.John MacFarlane1-151/+130
Opt is now set up to contain only the basic content passed through the options -- further processing (lookup of styles, insertion of file contents, etc.) is now done later.
2017-02-04More simplification of Opt in pandoc.hs.John MacFarlane1-11/+15
We defer file reading til after option parsing.
2017-02-04Changed writerEpubMetadata to a Maybe String.John MacFarlane2-3/+3
API change.
2017-02-04More simplification of Opt in pandoc.hs.John MacFarlane1-9/+13
2017-02-04More smart escaping tests.John MacFarlane1-0/+20
2017-02-04Improved escaping in RST writer with smart option.John MacFarlane1-6/+20
2017-02-04Consolidated some common functions in Tests.Helper.John MacFarlane3-81/+52
2017-02-04Added first command test to cabal metadata and repo.John MacFarlane2-0/+26
2017-02-04Org writer: reduce to two spaces after bulletsAlbert Krewinkel2-86/+86
The org writer was inserting two spaces after list bullets. Emacs Org-mode defaults to a single space, so behavior is changed to reflect this. Closes: #3417
2017-02-04Added new test framework Tests.Command.John MacFarlane2-19/+59
Any files added under test/command will be treated as shell tests (see smart.md for an example). This makes it very easy to add regression tests etc.
2017-02-04Markdown writer: Better escaping when +smart.John MacFarlane1-17/+21
2017-02-04Expose setVerbosity in Text.PandocJohn MacFarlane1-0/+1
2017-02-04Added skeleton for Tests.Command.John MacFarlane3-0/+94
2017-02-04Moved tests/ -> test/.John MacFarlane327-107/+107
2017-02-04Implemented +/-smart in rst writer.John MacFarlane3-15/+29
Moved unsmartify to Writers.Shared.
2017-02-04Small revision to deprecation message for --old-dashes.John MacFarlane1-1/+1
2017-02-04Simplified Opt structure in cli option parsing.John MacFarlane1-9/+10
We should make this closer to the actual options, and do processing outside.
2017-02-04Better error messages for removed options.John MacFarlane1-9/+25
See #3416.
2017-02-04Added TODO comment.John MacFarlane1-0/+4
2017-02-03Docx reader: handle local namespace declarations.John MacFarlane2-107/+127
Previously we didn't recognize math, for example, when the xmlns declaration occured on the element and not the root. Now we recognize either. Closes #3365. This patch defines findChildByName, findChildrenByName, and findAttrByName in Util, and uses these in Parse.
2017-02-03Manual: Mention limitations of Literate Haskell Support (#3413)Joachim Breitner1-0/+4
This fixes #3410.
2017-02-03Docx reader: Don't drop smartTag contents.John MacFarlane2-0/+8
This just parses inside smartTags and yields their contents, ignoring the attributes of the smartTag. @jkr, you may want to adjust this, but I wanted to get a fix in as fast as possible for the dropped content. Closes #2242; see also #3412.
2017-02-03HTML and DocBook writers: fix internal links with writerIdentifierPrefix opt ↵Mauro Bieg3-8/+10
(#3398) closes #3397
2017-02-02Org.hs: remove misleading commentAlexander Krotov1-1/+0
This comment is likely copied from RST.hs where 'refs' variable indeed exists, but makes no sense here.
2017-02-01Added skeletons for docs on customizing pandoc and using pandoc API.John MacFarlane2-0/+46
See #3289 and #3288.
2017-02-01Added deb/.vagrant to gitignoreJohn MacFarlane1-0/+1
2017-02-01Reduce state in Org writer (#3404)Alexander Krotov1-8/+3
2017-01-31make_macos_package.sh - install cpphs if not present.John MacFarlane1-0/+1
2017-01-31stack.yaml - use latest skylighting.John MacFarlane3-3/+3
2017-01-31Name change OSX -> MacOS.John MacFarlane7-20/+18
Add a -MacOS suffix to mac package rather than -OSX. CHanged local names from osx to macos.
2017-01-31Version bounds: require skylighting 0.1.1.4, bump bounds for blaze-*.John MacFarlane2-6/+6
2017-01-31Update test output for skylighting >= 0.1.1.3.John MacFarlane1-31/+31
2017-01-30Windows builds: removed -S option from pandoc invocations.John MacFarlane2-4/+4
2017-01-30`--mathml` and MathML in HTMLMathMethod longer take an argument.John MacFarlane7-26/+15
The argument was for a bridge javascript that used to be necessary in 2004. We have removed the script already.