aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-05-03metaToJSON: treat digits starting with 0 as a string...John MacFarlane1-0/+3
not a number. Closes #5479.
2019-05-03EPUB2/3 templates: Move inline styles to default epub.css.John MacFarlane3-18/+5
Those who use a custom CSS stylesheet with EPUB should add these lines: ```css code{ white-space: pre-wrap; } span.smallcaps{ font-variant: small-caps; } span.underline{ text-decoration: underline; } q { quotes: "“" "”" "‘" "’"; } div.column{ display: inline-block; vertical-align: top; width: 50%; } ``` See #5466.
2019-05-04Epub3 stylesheet link compatible with kindlegen (#5466)Eric Schrijver1-1/+1
daamien@411119b removes `type="text/css"` from both `<style>` and `<rel="stylesheet">` elements in all templates. However, Amazon’s kindlegen software relies on this attribute on `<link>` elements when detecting stylesheets to include.
2019-05-04Lua: add `pandoc.system` module (#5468)Albert Krewinkel7-0/+153
The `system` Lua module provides utility functions to interact with the operating- and file system. E.g. print(pandoc.system.get_current_directory()) or pandoc.system.with_temporary_directory('tikz', function (dir) -- write and compile a TikZ file with pdflatex end)
2019-05-03LaTeX reader: Allow newlines in `\mintinline`.John MacFarlane1-3/+7
2019-05-01MediaWiki reader: handle multiple attributes in table row (#5471)chinapedia1-2/+2
2019-05-01Fix broken links in documents (#5473)Shim Myeongseob6-40/+40
Fix broken links in doc/epub.md, doc/getting-started.md, doc/customizing-pandoc.md, doc/using-the-pandoc-api.md. Also, use absolute links to pandoc.org when possible, so that the links can be followed by people viewing these documents on GitHub.
2019-05-01Fix footnote in image caption.John MacFarlane2-10/+28
Regression! The fix for #4683 broke this case.
2019-05-01Remove reference to head.min.js (#5448)Winnie Hellmann1-1/+0
This file has been removed in 3.8.0: https://github.com/hakimel/reveal.js/commit/29b0e86089eb3ec0d4bb5811c9b723dfcf36703c Add a note in the changelog that users will need to update reveal.js to at least 3.8.0 for their presentations generated with this version of pandoc to work correctly.
2019-05-01CI: test with GHC 8.6.5Albert Krewinkel2-5/+5
2019-04-30HTML: prevent gratuitious emojification on iOS.John MacFarlane4-12/+21
iOS chooses to render a number of Unicode entities, including '↩', as big colorful emoji. This can be defeated by appending Unicode VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this character when escaping strings, for both '↩' and '↔'. If other characters prove problematic, they can simply be added to needsVariationSelector. Closes #5469.
2019-04-28Muse writer tests: compare Text without converting to [Char]Alexander Krotov1-6/+6
2019-04-25Fix --self-contained so it works when output format has extensions.John MacFarlane1-4/+4
Previously if you used `--self-contained` with `html-smart` or `html+smart`, it wouldn't work.
2019-04-23Allow use of -output-directory in --pdf-engine-opt.John MacFarlane1-4/+6
This is currently possible with `mklatex` and `-outdir`, but was not yet possible with xelatex and `-output-directory`. Closes #5462.
2019-04-23EPUB writer: Ensure unique ids for styleesheets in content.opf.John MacFarlane1-3/+3
Closes #5463.
2019-04-20HTML writer: Add class="heading" to level 7+ Headers...John MacFarlane1-1/+1
rendered as p tags. Closes #5457.
2019-04-18Update stack.yaml, use latest pandoc-citeproc and lts-13.John MacFarlane1-5/+2
2019-04-17Don't advertise base-4.8 support anymore (#5455)Herbert Valerio Riedel1-1/+1
Problem is that blaze-html provides the Semigroup instance for Html conditionally only for base >= 4.9
2019-04-17Allow QuickCheck 2.13.John MacFarlane1-1/+1
2019-04-16Text.Pandoc.PDF: replace `</>` with literal "/".John MacFarlane1-2/+2
We use forward-slash for a directory separator in tmpDir, even on Windows (because that's what tex likes). So we should not put a backslash between the tmpDir and the filename on Windows. This is harmless enough in normal Windows setups, but it breaks on Cygwin. Closes #5451. Thanks to @cc2x for noticing and diagnosing the problem.
2019-04-16Tigthen up fix to #5446.John MacFarlane1-2/+2
We only treat Span as transparent if it has no attributes.
2019-04-15Improved sample lua tikz filter in lua-filters docs (#5445)Matthew Doty1-12/+21
There are three changes: - It only processes elements which begin with \begin{tikzpicture} - It uses pdf2svg instead of imagemagick to preserve fidelity - The images produced have transparent backgrounds
2019-04-15RST writer: treat Span as transparent.John MacFarlane2-0/+9
Previously an Emph inside a Span was being treated as nested markup and ignored. With this patch, the Span is just ignored. Closes #5446.
2019-04-11LaTeX template: Add pdflang to hypersetup if lang is set.John MacFarlane2-0/+4
Closes #5443.
2019-04-10LaTeX reader: add braces when resolving `\DeclareMathOperator`.John MacFarlane1-1/+2
These seem to be needed for xelatex but not pdflatex. Closes #5441.
2019-04-09Update copyright yearJohn MacFarlane1-1/+1
2019-04-09Use cmark-gfm 0.2.0.John MacFarlane2-2/+2
2019-04-07update: default.revealjs follow revealjs 3.8.0 (#5435)ebiiim1-0/+1
2019-04-07Asciify.hs: add Turkish undotted-i (#5434)Mauro Bieg1-0/+1
fixes #5433
2019-04-05Add Derek Chen-Becker to AUTHORS.mdJohn MacFarlane1-0/+1
2019-04-05clarify PowerPoint templating changes in changelog.Jesse Rosenthal1-2/+4
2019-04-05Update man page and README.John MacFarlane3-133/+199
2019-04-05Bump to 2.7.2, update changelog.John MacFarlane2-1/+164
2019-04-05More fixes to beamer table footnotes.John MacFarlane1-14/+19
2019-04-05LaTeX writer: rename stInMinipage -> stExternalNotesJohn MacFarlane1-13/+14
2019-04-05Make footnotes work properly in beamer tables.John MacFarlane1-0/+6
This fixes a regression in beamer due to the fix to #5367. We put table footnotes outside the table in beamer, because footnote/footnotehyper don't work with beamer.
2019-04-05Vimwiki reader: improve handling of internal links.John MacFarlane2-13/+20
1) Don't append `.html` 2) Add `wikilink` title This mirrors behavior of other wiki readers. Generally the `.html` extension is not wanted. It may be important for output to HTML in certain circumstances, but it can always be added using a filter that matches on links with title `wikilink`. Note that if you have a workflow that uses pandoc to convert vimwiki to readable HTML pages, you may need to add such a filter to reproduce current behavior. Here is a filter that does the job: ```lua function Link(el) if el.title == 'wikilink' then el.target = el.target .. ".html" end return el end ``` Save this as `fixlinks.lua` and use with `--lua-filter fixlinks.lua`. Closes #5414.
2019-04-05PowerPoint writer code style fixJesse Rosenthal1-30/+14
I had been using record syntax in an ADT, is bad style, since it means that each record produces a partial function. Fortunately we weren't using the partial functions anywhere, so this changes it to positional syntax.
2019-04-05Update pandoc.cabal with new pptx files.Jesse Rosenthal1-0/+4
2019-04-05PowerPoint writer: expand builtin reference doc to model all layoutsJesse Rosenthal47-20/+32
The previous built-in reference doc had only title and content layouts. Add in a section-header slide and a two-content slide, so users can more easily modify it to build their own templates. Golden files needed to be regenerated. Checked on MS PowerPoint 2013.
2019-04-04PowerPoint tests: Regenerate golden filesJesse Rosenthal36-0/+0
Due to viewProps change in 61dc0f9f. Golden files checked on PowerPoint 2013 (Win 10 on virtualbox).
2019-04-04PowerPoint writer: Always open up in slide viewJesse Rosenthal1-8/+26
When editing a template/reference-doc, the user might be in Master view, but when producing a slide show, it is assumed that slide view will be desired. This removes the "lastView" attr from the viewProps.xml slide so that the presentation will always open up in slide view. Note this requires creating a new "ppt/viewProps.xml" instead of just moving over the old one from the viewProps file. Since this produces a slightly different order of xml files in the content manifest, the golden files will have to be rebuilt.
2019-04-03Add templates/default.xwiki to cabal data files.John MacFarlane1-0/+1
2019-04-03Add support for go with --listings.John MacFarlane1-0/+1
Closes #5427.
2019-04-02Update command test #5416 to make it windows friendlyJohn MacFarlane1-2/+4
2019-04-02Manual: Improve 'header' and 'heading' usage (#5424)Andrew Dunning1-112/+112
Corrects usage of 'heading' and 'header' in text (but does not change programmed names). Partially addresses #5423.
2019-04-02LaTeX template: Ensure correct heading/table order (#5421)Andrew Dunning6-61/+54
Improve the workaround for #1658, adapting a solution by @u-fischer in <https://github.com/latex3/latex2e/issues/131> that works whether or not the `indent` variable is enabled. Remove `subparagraph` variable in LaTeX template. The default is now to use run-in style for level 4 and 5 headings (`\paragraph` and `\subparagraph`). To get the previous default behavior (where these were formatted as blocks, like `\subsubsection`), set the `block-headings` variable. An example is given in the manual of reformatting the appearance of headings more thoroughly using KOMA-Script. Closes #5365.
2019-04-02Actually run the xwiki writer tests.John MacFarlane1-1/+2
2019-04-02Add test/writer.xwiki to cabal extra-source-files.John MacFarlane1-0/+1
2019-04-02Add xwiki to cabal descriptionJohn MacFarlane1-4/+5