aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-08-25Add support for $toc-title$ to LaTeX (and PDF). (#4853)Wandmalfarbe2-1/+4
2018-08-24FB2 writer: put coverpage element between title and date...John MacFarlane1-2/+3
...rather than in document-info element. Closes #4854.
2018-08-24HTML reader: allow enabling `raw_tex` extension.John MacFarlane3-4/+59
This now allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed (which is helpful for translation HTML documents using MathJaX). Closes #1126.
2018-08-24PDF: fix reference to rsvg-convert (#4855)Antonio Terceiro1-1/+1
When rsvg-convert is not available, pandoc would tell the user to check for rsvg2pdf instead
2018-08-22Use yaml-0.9.0 in stack.yaml.John MacFarlane2-0/+2
2018-08-22Use latest pandoc-citeproc.John MacFarlane2-2/+2
This should fix build failure on appveyor.
2018-08-22HTML reader: extract spaces inside links instead of trimming themAlexander Krotov2-3/+9
Fixes #4845
2018-08-21LaTeX reader: support blockcquote, foreignblockquote from csquotes.John MacFarlane2-8/+23
Also foreigncblockquote, hyphenblockquote, hyphencblockquote. Closes #4848. But note: currently foreignquote will be parsed as a regular Quoted inline (not using the quotes appropriate to the foreign language).
2018-08-21Fix mistake in REPL instructions for stack. (#4849)Brian Leung1-1/+1
2018-08-21LaTeX reader: support enquote*, foreignquote, hypphenquote...John MacFarlane2-6/+82
from csquotes. See #4848. Still TBD: blockquote, blockcquote, foreignblockquote.
2018-08-19Markdown writer: escape `~` if strikeout extension enabled.John MacFarlane1-1/+2
See #4840.
2018-08-18Added chocolatey installation method (#4844)Miodrag Milić1-0/+3
2018-08-18Fix compiler warning.John MacFarlane1-1/+1
2018-08-17LaTeX reader: Support more text-mode accents.John MacFarlane2-5/+95
Add support for `\|`, `\b`, `\G`, `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`, `\textcircled`. Also fall back to combining characters when composed characters are not available. Closes #4652.
2018-08-17LaTeX reader: use combining characters when needed for accents.John MacFarlane1-1/+4
For example, there is no unicode code point corresponding to \"{X}, so we use a combining accent.
2018-08-17Docx writer: properly handle display math in spans.John MacFarlane2-6/+10
Closes #4826. This isn't a complete solution, since other nestings of display math may still cause problems, but it should work for what is by far the most common case. Note that this also involves an API change: `isDisplayMath` is now exported from Text.Pandoc.Writers.Shared.
2018-08-17Add support for latex mintinline (#4365)Marc Schreiber2-0/+33
2018-08-17Haddock Writer: Use proper format for latex math in haddock (#4571).Joe Hermaszewski2-13/+11
Inline math in `\(..\)`, display math in `\[..\]`, tex is now used. Previously we'd "fake it with unicode" and fall back to tex when that didn't work. But as of https://github.com/haskell/haddock/commit/3f50b955324bd4b42f88a421f0203bc46a3ccf64 haddock supports latex math.
2018-08-17LaTeX reader: fix siunitx unit commands...John MacFarlane2-174/+188
...they should only be recognized in siunitx contexts. For example, `\l` outside of an siunitx context should be l-slash, not l (for liter)! Closes #4842.
2018-08-17Add latest hs-bibutils to stack.yaml.John MacFarlane3-1/+3
2018-08-16stack.lts11.yaml - use git head for pandoc-citeproc.John MacFarlane1-0/+2
2018-08-16Revert "appveyor.yml: use regular stack.yaml, not stack.lts11.yaml."John MacFarlane1-2/+2
This reverts commit 0a93d33566c9ee9e11a6b8951c9b847c581df3d9.
2018-08-16appveyor.yml: use regular stack.yaml, not stack.lts11.yaml.John MacFarlane1-2/+2
2018-08-16stack.yaml: use lts 12.6 and latest git pandoc-citeproc.John MacFarlane1-2/+3
2018-08-16LaTeX reader: fix double `unnumbered` class.John MacFarlane1-21/+20
The `unnumbered` class was being included twice for starred sections. Closes #4838.
2018-08-16TEI template: improve publicationStmt.John MacFarlane2-3/+17
Add support for publisher, address, pubPlace, and date variables.
2018-08-16TEI improvements.John MacFarlane2-17/+2
- Ensure that title element is always present, even if empty. - Put author tags in the template, rather than adding them in the writer. Closes #4839.
2018-08-16LaTeX writer/template: be sensitive to `filecolor` variable.John MacFarlane3-7/+11
`linkcolor` only affects internal links, and `urlcolor` only affects linked URLs. For external links, the option to use is `filecolor`. Closes #4822.
2018-08-15Markdown reader: Use "tex" instead of "latex" for raw tex-ish content.John MacFarlane17-36/+37
We can't always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to use "tex" always. Also changed: ConTeXt writer: now outputs raw "tex" blocks as well as "context". (Closes #969). RST writer: uses ".. raw:: latex" for "tex" content. (RST doesn't support raw context anyway.) Note that if "context" or "latex" specifically is desired, you can still force that in a markdown document by using the raw attribute (see MANUAL.txt): ```{=latex} \foo ``` Note that this change may affect some filters, if they assume that raw tex parsed by the Markdown reader will be RawBlock (Format "latex"). In most cases it should be trivial to modify the filters to accept "tex" as well.
2018-08-15Support "toc-title" in the beamer template. (#4835)Cyril Roelandt2-1/+4
It is a bit awkward to have a title for every frame, but not for the one that holds the table of contents. Allow users to specify a title if they wish.
2018-08-14Bump version to 2.3, because of breaking API change to Macro.John MacFarlane1-1/+1
2018-08-14ODT reader: deal gracefully with missing `<office:font-face-decls/>`.John MacFarlane1-1/+1
This allows pandoc to parse ODT document produced by KDE's Calligra. Closes #4336.
2018-08-14LaTeX reader: handle parameter patterns for `\def`.John MacFarlane3-23/+57
For example: `\def\foo#1[#2]{#1 and #2}`. Closes #4768. Also fixes #4771. API change: in Text.Pandoc.Readers.LaTeX.Types, new type ArgSpec added. Second parameter of Macro constructor is now `[ArgSpec]` instead of `Int`.
2018-08-13RST writer: render Divs with admonition classes as admonitions.John MacFarlane2-3/+32
Also omit Div with class "admonition-title". These are generated by the RST reader and should be omitted on round-trip. Closes #4833.
2018-08-13RST writer: use `.. container` for generic Divs, instead of raw HTML.John MacFarlane2-72/+24
2018-08-13Makefile: ghc options to speed compilation for 'make quick'.John MacFarlane1-1/+1
2018-08-12LaTeX reader: Allow `%` characters in URLs.John MacFarlane2-13/+52
This affects `\href` and `\url`. Closes #4832.
2018-08-12Muse reader: don't allow digits after closing marker in lightweight markupAlexander Krotov2-2/+6
This change makes reader more compatible with Emacs Muse
2018-08-12Lua: cleanup Lua utils, remove unused functions.Albert Krewinkel5-104/+75
2018-08-11MANUAL: more detail on customization in syntax highlighting section.John MacFarlane1-3/+21
2018-08-10Travis: use more compiler warnings.John MacFarlane1-4/+4
2018-08-10Avoid non-exhaustive pattern match.John MacFarlane1-2/+4
2018-08-10Avoid incomplete pattern patch.John MacFarlane1-5/+8
2018-08-10Makefile: add some warnings to GHCOPTS.John MacFarlane1-1/+5
2018-08-10Avoid non-exhaustive pattern match.John MacFarlane1-11/+5
2018-08-10Avoid non-exhaustive pattern match.John MacFarlane1-7/+8
2018-08-10Avoid non-exhaustive pattern match.John MacFarlane1-3/+1
2018-08-10Avoid non-exhaustive pattern matches.John MacFarlane1-4/+6
2018-08-10Avoid non-exhaustive pattern match.John MacFarlane1-11/+12
2018-08-10Avoid non-exhaustive pattern match.John MacFarlane1-10/+12