aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-10LaTeX reader: Improved warning messages for unknown commands.John MacFarlane1-19/+23
2017-02-10HTML reader: Added warnings for ignored material.John MacFarlane1-5/+14
See #3392.
2017-02-09LaTeX reader: Issue warnings when skipping unknown latex commands.John MacFarlane2-5/+11
See #3392.
2017-02-09Reverted deferred media bag code.John MacFarlane1-51/+6
This was not actually being used. Since it adds considerable complexity, it's best not to include it unless we are actually going to use it. The original thought was that we could do all loading in the readers, always deferred and thus costless. This was supposed to eliminate the need to traverse trees loading resources in the docx, epub, odt writers and in PDF and SelfContained. (It would also have the side effect that --extract-media could be used with all input formats. This wasn't an intended side effect, and it could be debated whether it's desirable, since --extract-media was originally designed to extract the media contained in a docx or odt or epub container.) However, we never actually took the step of moving all of this work to the readers, for a couple of reasons. The main reason is that we'd still need to fetch resources in the docx, epub, odt, pdf and self-contained writers, since the Pandoc AST might have been built programatically and hence not generated by a reader. So it's not clear that doing lazy loading in the readers would have any real advantage. I'm still not completely sure about this --- if we change our minds it would be easy to undo this commit. @jkr comments welcome.
2017-02-08LaTeX reader: support `\lstinputlisting`.John MacFarlane1-11/+34
Closes #2116.
2017-02-07RST reader: Improved admonition support.John MacFarlane1-6/+8
* We no longer add an "admonition" class, we just use the class for the type of admonition, "note" for example. * We put the word corresponding to the label in a paragraph inside a div at the beginning of the admonition with class "admonition-title". * This is about as close as we can get to RST's own output. See #223.
2017-02-07Refactored some files formerly in LaTeX reader.John MacFarlane4-37/+33
* Export readFileFromDirs from Class. * Export insertIncludedFile from Parsing. Simplified code in LaTeX/RST readers.
2017-02-07Moved readFileFromDirs to Text.Pandoc.Class.John MacFarlane3-32/+22
This can be used in several different modules, not just LaTeX reader.
2017-02-07Refactored include file handling in LaTeX reader.John MacFarlane1-14/+16
2017-02-07Makefile: make version overridable.John MacFarlane1-1/+1
2017-02-07Use latest pandoc-citeproc dev in stack builds.John MacFarlane3-3/+3
2017-02-07Update dev version of pandoc-citeproc in stack.yaml.John MacFarlane3-3/+3
2017-02-07Use latest dev version of pandoc-citeproc.John MacFarlane1-1/+1
2017-02-06Removed --parse-raw and readerParseRaw.John MacFarlane12-59/+66
These were confusing. Now we rely on the +raw_tex or +raw_html extension with latex or html input. Thus, instead of --parse-raw -f latex we use -f latex+raw_tex and instead of --parse-raw -f html we use -f html+raw_html
2017-02-06default.beamer changes (Thomas Hodgson):John MacFarlane2-7/+13
- Use dvipsnames options when colorlinks specified (otherwise we get an error for 'maroon') - Added titegraphic and logo variables.
2017-02-06Fix importJohn MacFarlane1-1/+1
2017-02-06Merge pull request #245 from twsh/titlegraphiclogoJohn MacFarlane1-0/+6
Add options for title graphic and logo
2017-02-06Merge pull request #244 from twsh/dvipsnamesJohn MacFarlane1-1/+1
Added dvipsnames option for colorlinks
2017-02-06Add options for title graphic and logoThomas Hodgson1-0/+6
Allow specification of a title graphic and/or logo for Beamer.
2017-02-06Added dvipsnames option for colorlinksThomas Hodgson1-1/+1
This defines Maroon, among other colours.
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