aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-02-04Markdown reader: add newline when parsing blocks in YAML.John MacFarlane2-9/+22
Otherwise last block gets parsed as a Plain rather than a Para. This is a regression in pandoc 2.x. This patch restores pandoc 1.19 behavior. Closes #5271.
2019-02-02ipynb reader: handle images referring to attachments.John MacFarlane1-1/+9
Previously we didn't strip off the attachment: prefix, so even though the attachment is available in the mediabag, pandoc couldn't find it.
2019-02-02HTML5 template: Add role with ARIA doc-toc for table of contents.John MacFarlane1-1/+1
See #4213.
2019-02-02Update test for last commit.John MacFarlane1-3/+3
2019-02-02HTML5 writer: implement WAI-ARIA roles for (end)notes.John MacFarlane2-22/+35
See #4213.
2019-02-02Shared: withTempDir is no longer used in the codebase.John MacFarlane1-0/+2
Add comment to remove it in next major release.
2019-02-02PDF: More conservative solution to #777.John MacFarlane1-2/+11
Now, instead of always creating temp dirs in the home directory on Windows, we only do it if the system tempdir name contains tildes. (This will be the case for longer usernames only.) Closes #1192.
2019-02-02PDF: use system temp dir and set TEXMFOUTPUT.John MacFarlane1-8/+5
Previously the temp directory was created inside the working directory, so that programs like epstopdf.pl would be allowed to run in restricted mode. However, setting TEXMFOUTPUT allows these programs to run in the tmpdir inside the system temp directory. This is a better solution than cd51983. Using the system temp dir prevents problems when pandoc is run inside a synced directory (e.g. dropbox). Partially addresses #1192.
2019-02-02MIME: add WebPMauro Bieg1-0/+1
fixes #5267
2019-02-01LaTeX writer: use right fold for escapeString.John MacFarlane1-15/+13
This is more elegant than the explicit recursive we were using.
2019-02-01LaTeX writer: code simplification in escaping.John MacFarlane1-20/+21
2019-02-01Markdown writer: use markdown="1" when appropriate for Divs.John MacFarlane1-0/+6
When `native_divs` and `markdown_in_html_blocks` are disabled but `raw_html` and `markdown_attribute` are enabled...
2019-02-01LaTeX writer: avoid `{}` after control sequences when escaping.John MacFarlane4-32/+41
`\ldots{}.` doesn't behave as well as `\ldots.` with the latex ellipsis package. This patch causes pandoc to avoid emitting the `{}` when it is not necessary. Now `\ldots` and other control sequences used in escaping will be followed by either a `{}`, a space, or nothing, depending on context. Thanks to Elliott Slaughter for the suggestion.
2019-02-01doc/lua-filters.md: fix docs for OrderedList itemsAlbert Krewinkel1-3/+1
2019-01-31LaTeX reader: don't let `\egroup` match `{`.John MacFarlane2-3/+15
`braced` now actually requires nested braces. Otherwise some legitimate command and environment definitions can break (see test/command/tex-group.md).
2019-01-31Tests: avoid calling findPandoc multiple times.John MacFarlane3-194/+207
2019-01-31Old tests: remove need for temp files by using pipeProcess.John MacFarlane1-16/+6
2019-01-31More improvements on lua-filters docs.John MacFarlane1-342/+386
2019-01-30linux/Dockerfile : use default -O1 instead of -O2.John MacFarlane1-1/+1
2019-01-30stack.yaml - use latest texmath.John MacFarlane1-0/+1
2019-01-30Update manual.John MacFarlane2-958/+1296
2019-01-30Update changelog.John MacFarlane1-0/+3
2019-01-30Manual: document `date-meta` template variable (#5260)Tristan Stenner1-0/+10
In HTML based formats the `date` metadata variable is converted to ISO 8601 and available as `$date-meta`, but it's not documented at the moment.
2019-01-30Update copyright year in version.John MacFarlane1-1/+1
2019-01-30Use lts-13 in makefileJohn MacFarlane1-1/+1
2019-01-30Update stack.yaml to use lts-13.John MacFarlane1-9/+2
2019-01-30doc/lua-filters.md: use 3rd level headers for module fieldsAlbert Krewinkel1-664/+664
2019-01-30Update changelog.John MacFarlane1-43/+85
2019-01-30Org reader: add support for #+SELECT_TAGS.leungbk8-23/+107
2019-01-30Org reader: separate filtering logic from conversion function.leungbk2-8/+11
2019-01-28Add cpp to avoid warning.John MacFarlane1-1/+6
2019-01-27Add isPrefixOf to imports.John MacFarlane1-1/+1
2019-01-26Improve writing metadata for docx, pptx and odt (#5252)Agustín Martín Barbero45-24/+165
* docx writer: support custom properties. Solves the writer part of #3024. Also supports additional core properties: `subject`, `lang`, `category`, `description`. * odt writer: improve standard properties, including the following core properties: `generator` (Pandoc/VERSION), `description`, `subject`, `keywords`, `initial-creator` (from authors), `creation-date` (actual creation date). Also fix date. * pptx writer: support custom properties. Also supports additional core properties: `subject`, `category`, `description`. * Includes golden tests. * MANUAL: document metadata support for docx, odt, pptx writers
2019-01-26Normalize Windows paths to account for change in ghc 8.6.John MacFarlane1-9/+31
When pandoc is compiled with ghc 8.6, Windows paths are treated differently, and paths beginning `\\server` no longer work. This commit rewrites such patsh to `\\?\UNC\server` which works. The change operates at the level of argument parsing, so it only affects the command line program. See #5127 and the discussion there.
2019-01-25Texinfo writer: use header identifier for anchor if present.John MacFarlane1-2/+4
Previously we were overwriting an existing identifier with a new one. Closes #4731.
2019-01-25MediaWiki reader: use `_` instead of `-` in auto-identifiers.John MacFarlane2-17/+22
Partially addresses #4731. We may not still be exactly matching mediawiki's algorithm for identifiers.
2019-01-25LaTeX writer: add `#` special characeters for listings.John MacFarlane1-1/+1
This character needs special handling in lstinline. Closes #4939.
2019-01-25LaTeX template: Set default listings language for lua, assembler.John MacFarlane2-0/+4
Otherwise we get an error when trying to compile code with lua or assembler code. To change the default dialect (currenty 5.3 for lua and x86masm for assembler), you can use `--include-in-header` to inject something like \lstset{defaultdialect=[5.2]Lua} Closes #5227.
2019-01-25Update ipynb example in manual.John MacFarlane1-17/+19
2019-01-25Revert "CircleCI - use -O0 only for cabal-v2 builds."John MacFarlane1-5/+5
This reverts commit 062a8fb10bf3eb7b92d3b8b942f106293ef24902.
2019-01-25Revert "CircleCI - store artifact from stack build."John MacFarlane1-4/+0
This reverts commit ecccb69ec70b5453936cee106940dbec66daaae0.
2019-01-25Revert "circleci - use .gz for build artifact."John MacFarlane1-2/+2
This reverts commit f28d39efaef7f5d0066a217ac8b320080ca1f032.
2019-01-25circleci - use .gz for build artifact.John MacFarlane1-2/+2
2019-01-25CircleCI - store artifact from stack build.John MacFarlane1-0/+4
2019-01-25CircleCI - use -O0 only for cabal-v2 builds.John MacFarlane1-5/+5
Stack build will not disable optimizations; this way we can create a nightly.
2019-01-25Remove travis.yml.John MacFarlane1-200/+0
2019-01-25Regenerated README.md with CircleCI badge instead of travis.John MacFarlane2-3/+2
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