aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-11-20Docx writer: Fix bookmarks to headers with long titles.John MacFarlane3-5/+19
Word has a 40 character limit for bookmark names. In addition, bookmarks must begin with a letter. Since pandoc's auto-generated identifiers may not respect these constraints, some internal links did not work. With this change, pandoc uses a bookmark name based on the SHA1 hash of the identifier when the identifier isn't a legal bookmark name. Closes #5091.
2018-11-20Additional abbreviationsAndrew Dunning1-0/+29
Many of these borrowed from the Chicago Manual of Style 10.42, 'Scholarly abbreviations', <https://www.chicagomanualofstyle.org/book/ed17/part2/ch10/psec042.html>.
2018-11-19Fix compiler warning.John MacFarlane1-1/+1
2018-11-19AsciiDoc writer: improve ordered lists.John MacFarlane2-71/+83
Use `.`+ as list markers to support nested ordered lists. Closes #5087. Support list number styles. Closes #5089.
2018-11-19Lua filters: test AST object equality via HaskellAlbert Krewinkel3-5/+66
Equality of Lua objects representing pandoc AST elements is tested by unmarshalling the objects and comparing the result in Haskell. A new function `equals` which performs this test has been added to the `pandoc.utils` module. Closes: #5092
2018-11-19Asciidoc template: add :lang: to title header is lang is set in metadata.John MacFarlane1-0/+3
Closes #5088.
2018-11-19For bibliography match Div with id 'refs', not class 'references'.John MacFarlane6-12/+13
This was a mismatch between pandoc's docx, epub, latex, and markdown writers and the behavior of pandoc-citeproc, which actually looks for a div with id 'refs' rather than one with class 'references'.
2018-11-19MANUAL.txt: Clarified placement of bibliography.John MacFarlane1-4/+17
2018-11-19LaTeX reader: cleaned up handling of dimension arguments.John MacFarlane3-9/+15
Allow decimal points, preceding space. Also require text 1.1+.
2018-11-18LaTeX reader: don't allow arguments for verbatim, etc.John MacFarlane1-1/+0
2018-11-18LaTeX reader: Allow space before bracketed options.John MacFarlane1-1/+2
2018-11-18LaTeX reader: allow optional arguments after \\ in tables.John MacFarlane1-1/+2
2018-11-18LaTeX reader: improve parsing of `\tiny`, `scriptsize`, etc.John MacFarlane1-4/+18
Parse as raw, but know that these font changing commands take no arguments.
2018-11-19FB2 reader: do not throw error for unknown elements in <body>Alexander Krotov1-1/+1
Some libraries include custom elements in their FB2 files.
2018-11-17Lua Utils module: improve stringifyAlbert Krewinkel1-2/+9
Meta value strings (MetaString) and booleans (MetaBool) are now converted to the literal string and the lowercase boolean name, respectively. Previously, all values of these types were converted to the empty string.
2018-11-17cusomizing-pandoc.md: streamline template textMauro Bieg1-11/+3
2018-11-17customizing-templates.md: variable options tableMauro Bieg1-2/+21
2018-11-16HTML reader: allow tfoot before body rows.John MacFarlane2-2/+19
Closes #5079.
2018-11-15HTML reader: parse `<small>` as a Span with class "small".John MacFarlane2-0/+11
Closes #5080.
2018-11-15Asciidoc writer: Render Spans using `[#id .class]#contents#`.John MacFarlane2-3/+13
See #5080.
2018-11-15MANUAL: Under security, added note about +RTS option to limit heap size.John MacFarlane1-0/+3
See #5047.
2018-11-15Muse writer: output tables as grid tables if they have multi-line cellsAlexander Krotov1-1/+13
2018-11-14Muse reader: trim whitespace before parsing grid table cellsAlexander Krotov2-2/+13
2018-11-14Muse reader: add grid tables supportAlexander Krotov2-2/+74
2018-11-14Muse writer: indent simple tables only on the top levelAlexander Krotov2-4/+11
2018-11-14Muse writer: simplify "simpleTable"Alexander Krotov1-7/+4
2018-11-14Muse writer: remove outdated commentsAlexander Krotov1-3/+0
2018-11-13Fix test case for #5014.John MacFarlane1-1/+3
2018-11-13HTML reader: allow thead containing a row with td rather than th.John MacFarlane2-11/+28
See #5014. Note that this doesn't address the original issue in #5014, only an unrelated side-issue.
2018-11-13Remove stack.lts{9,10,11}.yaml.John MacFarlane3-99/+0
2018-11-13Clean up stack.yaml, allow latest pandoc-citeproc.John MacFarlane1-4/+3
2018-11-13Muse writer: output tables with one column as grid tablesAlexander Krotov2-1/+13
2018-11-13Fix note on curly brace syntx for locators.John MacFarlane1-2/+2
2018-11-12Document new explicit syntax for citeproc locators.John MacFarlane1-0/+7
2018-11-12LaTeX writer: don't emit `[<+->]` unless beamer output,John MacFarlane2-2/+17
even if `writerIncremental` is True. See #5072.
2018-11-11Exactly match GitHub's identifier generating algorithm.John MacFarlane2-2/+11
See #5057.
2018-11-11stack.yaml - use latest versions of packages.John MacFarlane1-3/+3
pandoc-citeproc, HsYaml, yaml.
2018-11-11Text.Pandoc.Shared: add parameter to uniqueIdent, inlineListToIdentifier.John MacFarlane15-83/+109
The parameter is Extensions. This allows these functions to be sensitive to the settings of `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`. This allows us to use `uniqueIdent` in the CommonMark reader, replacing some custom code. It also means that `gfm_auto_identifiers` can now be used in all formats. Semantically, `gfm_auto_identifiers` is now a modifier of `auto_identifiers`; for identifiers to be set, `auto_identifiers` must be turned on, and then the type of identifier produced depends on `gfm_auto_identifiers` and `ascii_identifiers` are set. Closes #5057.
2018-11-11Remove `ascii_identifiers` from `githubMarkdownExtensions`.John MacFarlane2-2/+1
GitHub doesn't seem to strip non-ascii characters.
2018-11-11Clean up toIdent in CommonMark reader.John MacFarlane1-8/+9
This partially addresses #5057, fixing a bad interaction between the `ascii_identifiers` extension and the `gfm_auto_identifiers` extension, and creating identifiers that match the ones GitHub produces. This code still needs to be put somewhere common, so the `gfm_auto_identifiers` extension will work with other formats.
2018-11-11Fix CPP conditional for TH pragmaAlbert Krewinkel3-4/+4
The condition was from an earlier version.
2018-11-08Remove Functor and Applicative constraints where Monad already existsAlexander Krotov1-14/+7
2018-11-07Merge pull request #5054 from lierdakil/docx-image-bookmarksJohn MacFarlane1-26/+17
Docx image and code block bookmarks
2018-11-07Texinfo writer: add blank line before `@menu` section.John MacFarlane2-1/+10
Closes #5055.
2018-11-07T.P.App: fix regression in output format heuristicsAlbert Krewinkel1-47/+5
This fix is necessary due to a rebasing error introduced in commit 418bd42df85b93016e50ba48042804e8f51341b5
2018-11-07T.P.App: extract submodule T.P.App.FormatHeuristicsAlbert Krewinkel3-57/+96
Format guessing is used for input and output options and should be shared.
2018-11-07[Docx Writer] Add bookmarks to code blocksNikolay Yakimov1-2/+2
2018-11-07[Docx Writer] Add bookmarks to imagesNikolay Yakimov1-2/+2
2018-11-07[Docx Writer] Refactor common bookmark creation code into a functionNikolay Yakimov1-22/+13
2018-11-07ICML writer: fix missing type signature warningAlbert Krewinkel1-3/+4