aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2019-01-07TWiki reader: fix performance issue with underscores.John MacFarlane1-1/+3
Underscore emphasis can't cross table cell boundaries, but the parser wasn't respecting this, leading to exponential behavior in documents with table cells containing underscores. This fixes the original sample; it's possible that there are other performance issues involving underscores. Closes #3921.
2019-01-07Clarified automatic identifiers.John MacFarlane1-1/+3
We remove non-alphanumerics. This includes, e.g., emojis. Closes #5201.
2019-01-07appveyor - use ghc 8.6.2, cabal 2.4.1.0.John MacFarlane1-6/+6
See #5037.
2019-01-07tools/changelog-helper.sh: use %aN instead of %an to respect .mailmapAlexander Krotov1-1/+1
2019-01-07tools/changelog-helper.sh: remove [[ bashismAlexander Krotov1-1/+1
2019-01-07Add .mailmapAlexander Krotov1-0/+37
2019-01-06Add DokuWiki reader (#5108)Alexander6-2/+855
Closes #1792
2019-01-04Use toTableOfContents in Powerpoint writer....John MacFarlane1-16/+3
instead of duplicating code.
2019-01-04RTF writer: use toTableOfContents from T.P.W.Shared.John MacFarlane1-17/+2
2019-01-04Implement --toc in commonmark/gfm writers.John MacFarlane2-3/+14
Closes #5172.
2019-01-04T.P.Writers.Shared - add toTableOfContents (API change).John MacFarlane2-22/+25
This is refactored out from the Markdown writer. IT can be used in other writers to create a generic TOC.
2019-01-04Cleaned up findPandoc.John MacFarlane1-11/+5
2019-01-04Tests: Fix findPandoc to work with Windows.John MacFarlane2-0/+7
2019-01-04Fix findPandoc so it works with cabalv2.John MacFarlane2-9/+28
2019-01-03MANUAL: Update list of latex packages used.John MacFarlane1-1/+16
2019-01-03LaTeX Template: Improve package selections (#5193)John MacFarlane5-117/+145
* Use Babel for LuaTeX. There are a number of bugs in Polyglossia under LuaLaTeX with common languages, e.g. <https://github.com/reutenauer/polyglossia/issues/182>. * Load xcolor. The `xcolor` package must be loaded before the `footnote` package, which we load to fix foonotes in tables. Closes #4861. * Load xurl if available. This breaks URLs in more locations. Only available with TeX Live 2018 and later. * Remove obsolete fixltx2e package * Reindent. Use two spaces to be consistent internally and with other templates. * Use `bookmark` if available. The `bookmark` package can sometimes correct the levels of headings where `hyperref` cannot: see <https://komascript.de/release3.26>. * Update LaTeX tests
2019-01-02LaTeX template: Require xcolorAndrew Dunning5-5/+5
2019-01-02Removed custom Setup.hs, use build-type: simple.John MacFarlane2-41/+2
The only thing we gained from the custom build was automatic installation of the man page when using 'cabal install'. But custom builds cause problems, e.g., with cross-compilation. Installation of the man page is better handled by packagers. Note to packagers (e.g. Debian): it may be necessary to add a step installing the man page with the next release.
2019-01-02A trivial change to document the addition of `task_lists`.John MacFarlane1-1/+0
These notes should have been in the previous commit message. Added `task_list` extension. API changes: + Added constructor `Ext_task_lists` to `Extension`. + Added `taskListItemFromAscii` and `taskListItemToAscii` to Text.Pandoc.Shared. Task lists are supported form markdown and gfm input. They should work, to some degree, in all output formats, though in most formats you'll get an ordered list with a following task list box. In HTML and LaTeX/PDF output, the bullet will be suppressed for nicer output.
2019-01-02Implement task lists (#5139)Mauro Bieg11-20/+247
Closes #3051
2019-01-02EPUB writer: small fixes to nav.xhtml.John MacFarlane2-3/+5
* Add 'landmarks' id attribute to the landmarks nav. * Replace old default CSS removing numbers from ol.toc li with new rules that match `nav#toc ol, nav#landmarks ol`. * We keep the `toc` class on `ol` for backwards compatibility.
2019-01-02Commonmark writer: fix handling of SoftBreak with `hard_line_breaks`.John MacFarlane2-1/+8
This should be rendered as a space. Closes #5195.
2019-01-02Manual: make it clear that `hard_line_breaks` works in gfm.John MacFarlane1-4/+4
See #5195.
2019-01-01LaTeX template: Supply missing forAndrew Dunning1-1/+1
Partially addresses #5179
2019-01-01Update LaTeX testsAndrew Dunning4-64/+69
2019-01-01LaTeX template: Use `bookmark` if availableAndrew Dunning1-1/+1
The `bookmark` package can sometimes correct the levels of headings where `hyperref` cannot: see <https://komascript.de/release3.26>.
2019-01-01Zimwiki writer: remove automatic colon prefix before internal images (#5183)damien clochard2-8/+4
* FIX #5183 : zimwiki : remove automatic colon prefix before internal images ![](foo.png) should be converted to {{foo.png}} (relative path) ![](/foo.png] should be converted to {{/foo.png}} (absolute path) Therefore the ':' prefix is useless and must be removed. I never used the zimwiki, but i submitted the similar dokuwiki fix. 1. The zimwiki syntax is inspired by dokuwiki 2. The zimwiki documentation does not mention the colon character for images 3. The pandoc zimwiki writer seems to be a copy-paste for the dokuwiki writer If the PR #5184 is applied, I think this one should be applied too.