aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-01-25Tweaked circleci.John MacFarlane1-5/+6
2019-01-25Fix cabal.project.John MacFarlane1-2/+4
2019-01-25Add some ghc options in circleci config.John MacFarlane1-1/+1
2019-01-25CircleCI: Set workflow version to 2.1.John MacFarlane1-1/+1
2019-01-25Add .circleci config.John MacFarlane1-0/+123
2019-01-25Update pandoc-citeproc commit in stack.yaml.John MacFarlane1-1/+1
2019-01-25cabal.project - set flag defaults, revise pandoc-citeproc commit.John MacFarlane1-1/+5
2019-01-24Ipynb: Put all jupyter metadata under 'jupyter' key.John MacFarlane2-2/+7
2019-01-24Revert "Prepend `jupyter_` to jupyter metadata keys."John MacFarlane2-12/+0
This reverts commit 5eaff399d5d6dc30b0d453eff42c4101674d75ab.
2019-01-24Allow some command line options to take URL in addition to FILE.John MacFarlane2-5/+5
`--include-in-header`, `--include-before-body`, `--include-after-body`
2019-01-24Ms writer: ensure we have a newline after .EN in disply math.John MacFarlane1-1/+1
Closes #5251.
2019-01-24Prepend `jupyter_` to jupyter metadata keys.John MacFarlane2-0/+12
This avoids conflics with things like 'toc'.
2019-01-23Manual: Reorganize template variables (#5249)Andrew Dunning1-208/+305
Add additional headings to categorize variables, and alphabetize when there is large number; add more examples.
2019-01-23Update changelog.John MacFarlane1-3/+37
2019-01-23Update changelog for LaTeX template (#5247)Andrew Dunning1-11/+16
2019-01-23LaTeX template: Restrict `institute` to Beamer (#5219)Andrew Dunning2-7/+6
The `\institute` command is only standard in the Beamer class. Use a conditional to restrict this to Beamer output rather than output an empty command. To add this information to a LaTeX class providing an `\institute` command, use `header-includes`.
2019-01-23Removed superfluous import.John MacFarlane1-1/+0
2019-01-22Support ipynb (Jupyter notebook) as input and output format.John MacFarlane13-9/+638
[API change] * Depend on ipynb library. * Add `ipynb` as input and output format. * Added Text.Pandoc.Readers.Ipynb (supports both nbformat v3 and v4). * Added Text.Pandoc.Writers.Ipynb (supports nbformat v4). * Added ipynb readers and writers to T.P.Readers, T.P.Writers, and T.P.Extensions. Register the file extension .ipynb for this format. * Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error. * Note: there is no template for ipynb.
2019-01-22LaTeX reader: support `\endinput`. Closes #5233.John MacFarlane2-0/+10
2019-01-22LaTeX template: Use `footnotehyper` if available (#5234)Andrew Dunning2-6/+8
Use the [`footnotehyper`](https://ctan.org/pkg/footnotehyper/) package if available. This is a rewrite of `footnote` that is compatible with `hyperref` and `babel-frenchb`. This patch also addresses the incompatibility with `xcolor` noted in #4861, but the new package has only been available since 2016, so this template still loads `xcolor` earlier for compatibility with older distributions. Note that the `footnote` package is part of `collection-latexrecommended` in TeX Live, so there shouldn't be any problem loading it unconditionally as we now do if `footnotehyper` is not available.
2019-01-22LaTeX template: Respect `numbersections` for books (#5235)Andrew Dunning5-5/+5
Ensure that `\part` and `\chapter` are only numbered if `numbersections` is set. To return to the previous behaviour, use `-V numbersections -V secnumdepth=0`. Notes on secnumdepth: 1 = Number `\section` 0 = Number `\chapter` -1 = Number `\part` -2 = No numbering
2019-01-22Clarify that $ must come right before $. (#5243)Lev E. Givon1-0/+3
2019-01-22Man reader: fix typo. (#5245)Brian Leung1-3/+3
2019-01-22LaTeX template: Fix subtitle spacing (#5244)Andrew Dunning1-1/+1
The `\large` command does not reset the spacing without adding `\par` to the end, which caused `\subtitle` to use the same line spacing as `\title`.
2019-01-21HTML and markdown: treat textarea as a verbatim environment.John MacFarlane3-8/+22
We don't want to parse its contents as Markdown or HTML. Closes #5241.
2019-01-21Mention `raw_attribute` in documentation for `raw_html` and `raw_tex`.John MacFarlane1-0/+7
Thanks to @eiro. Closes #5240.
2019-01-20LaTeX reader: allow includes with dots like cc_by_4.0.John MacFarlane1-3/+5
Previously the `.0` was interpreted as a file extension, leading pandoc not to add `.tex` (and thus not to find the file). The new behavior matches tex more closely.
2019-01-20LaTeX reader: cleaned up 'input' code.John MacFarlane1-10/+5
2019-01-17odt writer: fix typo in custom properties (#5231)Agustín Martín Barbero1-2/+2
fixes #2839
2019-01-16Fix tests for sample custom writer tablesAlbert Krewinkel1-7/+7
2019-01-16sample.lua: Add a missing '>'MichaWiedenmann1-1/+1
2019-01-13data/pandoc.lua: auto-fix nested constructor argumentsAlbert Krewinkel3-10/+43
Incorrect types to pandoc element constructors are automatically converted to the correct types when possible. This was already done for most constructors, but conversions are now also done for nested types (like lists of lists).
2019-01-13changelog: clarify and fix task_lists descriptionMauro Bieg1-5/+5
2019-01-12Update changelog, AUTHORS.md.John MacFarlane2-0/+269
2019-01-12LaTeX template: Simplify fontspec usage (#5218)Andrew Dunning6-13/+19
Simplify the approach of #5212, ensuring that `mainfont` is used as the base font for scaling and that LuaLaTeX does not display the mono font with TeX ligatures (as it does not use the `Mapping=tex-ansi` option). With a modified version of `\defaultfontfeatures`, fontspec will continue to report scaling against the old default font in the log, but it nonetheless displays main font at the specified size. Using this rather than setting `Scale=MatchLowercase` for each family individually means that users will not lose scaling when upgrading to the new template if they were using other font options. Scaling can be disabled for an individual family by adding the option `Scale=1` to `sansfontoptions`, `monofontoptions`, etc. Remove the `\setromanfont` command added in #4665, as this is not documented in the fontspec manual and appears to be a deprecated alias for `\setmainfont`. For the release notes, I should also add that one can imitate the previous appearance with `-V mainfontoptions="Scale=MatchLowercase"`.
2019-01-11 LaTeX template: Render \subtitle (#5213)Andrew Dunning2-42/+37
Addresses closed issues #4675, #3896, #1327. This renders `\subtitle` using the `etoolbox` package if `\subtitle` is not already defined by the documentclass (as it is in beamer, KOMA, memoir classes). Based on an example from Enrico Gregorio, <https://tex.stackexchange.com/a/50186>. Update list of LaTeX packages. Note that `etoolbox` must be loaded outside the command definition. Putting it inside causes an error if `\title` is placed after `\begin{document}`. It's already loaded on LuaLaTeX/XeLaTeX in any case.
2019-01-10Make raw content marked `beamer` work in `beamer` output.John MacFarlane1-14/+18
See pandoc/lua-filters#40.
2019-01-10Make 'plain' RawBlocks work for 'plain' output.John MacFarlane1-0/+5
2019-01-10LaTeX template: Prevent scaling of main font (#5212)Andrew Dunning5-14/+9
When `Scale=MatchLowercase` is set as a default font option, this scales `mainfont` against the old default, meaning that it resizes whatever is set as the main font to match the metrics of Latin Modern. This can result, for example, in a document set to 12pt appearing in 11pt or 13pt. Setting this option for individual families allows everything to scale against the main font, and permits the user to override the setting if desired. Note that it is not necessary to specify `Ligatures=TeX`, as this is already set by default for the appropriate families. See the `fontspec` manual: <https://ctan.org/pkg/fontspec>. Those who specify font-options in metadata may need to add `Scale=MatchLowercase`, which will now only be provided if `(roman|sans|math|mono)fontoptions` aren't given explicitly.
2019-01-09RST reader: change treatment of `number-lines` directives. (#5207)Brian Leung5-17/+29
Directives of this type without numeric inputs should not have a `startFrom` attribute; with a blank value, the writers can produce extra whitespace.
2019-01-09Allow http-client 0.6.John MacFarlane1-1/+1
2019-01-09Beamer writer: avoid duplicated `fragile` property in some cases.John MacFarlane1-1/+3
Closes #5208.
2019-01-08EPUB writer: ensure that picture transforms are done on metadata too.John MacFarlane1-6/+6
2019-01-08Add zoomKey config to default.revealjs.John MacFarlane1-0/+4
Closes #4249. Thanks to @reagle.
2019-01-08Removed superfluous sourceCode class on code blocks.John MacFarlane12-29/+25
* These were added by the RST reader and, for literate Haskell, by the Markdown and LaTeX readers. There is no point to this class, and it is not applied consistently by all readers. See #5047. * Reverse order of `literate` and `haskell` classes on code blocks when parsing literate Haskell. Better if `haskell` comes first.
2019-01-08RST reader: handle sourcecode directive as synonynm for code.John MacFarlane1-1/+1
Closes #5204.
2019-01-07Asciidoc writer: shorter delimiters for tables, blockquotes.John MacFarlane4-35/+34
This matches asciidoctor reference docs. Closes #4364.
2019-01-07revealjs writer: fix some section nesting corner cases.John MacFarlane1-6/+13
* Ensure that we don't get > 2 levels of section nesting, even with slide level > 2. * If slide level == N but there is no N-level header, make sure the next header with level > N gets treated as a slide and put in a section, rather than remaining loose. Closes #5168.
2019-01-07Org reader: allow for case of :minlevel == 0.John MacFarlane1-1/+3
See #5190.
2019-01-07Org reader: handle `minlevel` option differently. (#5190)Brian Leung2-4/+7
When `minlevel` exceeds the original minimum level observed in the file to be included, every heading should be shifted rightward.