aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-03-23EPUB writer: ensure that pagetitle is always set...John MacFarlane1-6/+12
even when structured titles are used. This prevents spurious warnings about empty title elements. Closes #4486.
2018-03-23Powepoint writer: Simplify speaker notesJesse Rosenthal1-27/+31
We now pull the filtered blocks and speaker notes out at the top of the `blocksToSlide` function, and then make SpeakerNotes into a parameter of the `blocksToSlide'` subfunction. The output is the same, but the logic should be easier to follow now.
2018-03-23Powerpoint writer: change notes state to a simpler per-slide valueJesse Rosenthal1-18/+7
We used to keep a map of the slideId-to-notes for each slide. Since we now extract them at the slide level, this is overcomplicated, and we can just extract them before converting a slide and then clear the state after.
2018-03-23Powerpoint writer: Remove `Maybe` from `SpeakerNotes` in `Slide`.Jesse Rosenthal2-71/+71
Previously, we had treated it as a `Maybe`. But there is no difference between not having speaker notes and having empty speaker notes. So we make the SpeakerNotes newtype into a monoid, and test for memptiness instead of testing for Just/Nothing.
2018-03-21MANUAL.txt fix raw content example (#4479)Mauro Bieg1-1/+2
2018-03-21Parsing: Fix romanNumeral parser.John MacFarlane1-3/+3
We previously accepted 'DDC' as 1100. Closes #4480.
2018-03-21Muse writer: don't align ordered list itemsAlexander Krotov3-13/+10
It leads to problems with round-trip test, because aligned line blocks can't be read back.
2018-03-21Powerpoint writer: add tests for improved speaker notes.Jesse Rosenthal4-0/+37
Tests speaker notes appearing after (and inside of) separating blocks. Output checked on Windows10 (archlinux virtualbox), PowerPoint 2013. Not corrupted, and output as expected.
2018-03-21Powerpoint writer: handle speaker notes earlier in the conversion processJesse Rosenthal1-15/+23
Internal change: We were getting bad results with the empty text box created by the conversion of notes into an empty paragraph. So we now convert the notes at the `blocksToSlide` stage, by `walkM`ing a function over the blocks that returns `()`, and then filters the notes out. This avoids the need to have a return value for speaker notes, and thus avoids the empty TextBox. Together with the previous commit (256f14c5a), closes #4477.
2018-03-21Powerpoint writer: Keep notes with related blocksJesse Rosenthal1-8/+17
Some blocks automatically split slides (imgs, tables, `column` divs). We assume that any speaker notes immediately following these are connected to these elements, and keep them with the related blocks, splitting after them.
2018-03-20Update stack.yaml to work with stackage nightly.John MacFarlane2-1/+4
We now compile on nightly.
2018-03-20Muse writer: escape "]" in image titleAlexander Krotov2-1/+3
2018-03-20Muse writer: remove key-value pairs from attributes before normalizationAlexander Krotov1-1/+8
2018-03-20Muse writer: escape ";" to avoid accidental commentsAlexander Krotov2-1/+3
2018-03-20Muse writer: escape "]" brackets in URLs as "%5D"Alexander Krotov2-2/+22
2018-03-19Use pandoc-citeproc 0.14.3.John MacFarlane2-2/+2
2018-03-19Fix example in lua-filters docs. Fixes #4459 (#4476)HeirOfNorton1-1/+1
2018-03-19MANUAL: specify that you use html for raw output in epub.John MacFarlane1-3/+4
2018-03-19Removed old lib directory.John MacFarlane3-302/+0
This was used for something long ago, but plays no role now.
2018-03-19Small improvement of doc change in #4472.John MacFarlane1-1/+4
Mention other formats as well where a different name is needed.
2018-03-19Add examples for raw docx blocks (#4472)Tristan Stenner1-1/+12
The documentation states that the target format name should match the output format, which isn't the case for `docx`/`openxml`. This PR adds a remark and a frequently requested example (inserting a pagebreak in docx output) to the documentation.
2018-03-18Bumped some versions in stack.yaml.John MacFarlane2-8/+10
2018-03-18Fixed duplicate entry in stack.lts9.yaml.John MacFarlane1-1/+0
2018-03-18Ms writer: don't escape hyphens.John MacFarlane3-13/+15
Previously we escaped hyphens as `\-`, but that's a minus sign. Closes #4467. Updated changelog.
2018-03-18Comment out Muse reader round-trip test.John MacFarlane1-3/+4
It fails too often. Perhaps a separate test program should be used to hunt for round-trip bugs.
2018-03-18Removed unnecessary import.John MacFarlane1-2/+0
2018-03-18Update changelog.John MacFarlane1-3/+22
2018-03-18Make 'weigh-pandoc' into a benchmark program.John MacFarlane1-14/+7
Remove 'weigh-pandoc' flag. This is now built (and run) automatically when you build (and run) benchmarks.
2018-03-18Added Prelude imports to sources in benchmark and trypandoc.John MacFarlane3-0/+6
2018-03-18Missing backticks (#4462)Björn Buckwalter1-1/+1
2018-03-18EPUB writer: remove notes from TOC in nav.xhtml (#4463)Mauro Bieg1-4/+5
fixes #4453
2018-03-18Removed old-locale flag and Text.Pandoc.Compat.Time.John MacFarlane12-68/+12
This is no longer necessary since we no longer support ghc 7.8.
2018-03-18Use NoImplicitPrelude and explicitly import Prelude.John MacFarlane177-11/+353
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2018-03-18pandoc.cabal: fix up other-extensions and language fields.John MacFarlane1-13/+11
language is now consistently Haskell2010, and other-extensions is consistently NoImplicitPrelude. Everything else to be specified in the module header as needed.
2018-03-18Fix what was missing in last commit.John MacFarlane1-14/+8
2018-03-18New approach to custom Prelude.John MacFarlane2-14/+38
We use no custom Prelude with the latest ghc version (8.4.1), so we don't have problems with ghci. See https://ghc.haskell.org/trac/ghc/ticket/10920 https://www.reddit.com/r/haskell/comments/3ryf2p/how_can_you_use_a_custom_prelude_with_ghci/ This may help with #4464.
2018-03-18Man page update.John MacFarlane1-0/+10
2018-03-17Use pandoc-citeproc 0.14.2.John MacFarlane2-2/+2
2018-03-17hlint fixes.John MacFarlane18-41/+40
2018-03-17stack.yaml - don't force latest haddock-library.John MacFarlane2-2/+0
2018-03-17Manual formatting tweaks.John MacFarlane1-11/+14
2018-03-17Update changelog.John MacFarlane1-1/+13
2018-03-17ConTeXt template: pdfa variable to generate PDF/A (#4294)Henri Menke2-0/+17
The resulting PDF can be verified using the Apache PDFBox preflight app. ``` $ java -jar preflight-app-2.0.8.jar test.pdf The file test.pdf is a valid PDF/A-1b file ``` Instructions on how to install the ICC profiles on ConTeXt standalone can be found in the wiki: <http://wiki.contextgarden.net/PDFX#ICC_profiles>. If the ICC profiles are not available the log will contain messages like these ``` backend > profiles > profile specification 'sRGB.icc' loaded from '/usr/local/texlive/2017/texmf-dist/tex/context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'srgb.icc' backend > profiles > no default profile 'srgb.icc' for colorspace 'rgb' backend > profiles > profile specification 'sRGB IEC61966-2.1' loaded from '/usr/local/texlive/2017/texmf-dist/tex/context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'srgb.icc' backend > profiles > invalid output intent 'sRGB IEC61966-2.1' ``` and the resulting PDF will not be valid PDF/A: ``` $ java -jar preflight-app-2.0.8.jar test.pdf The file test.pdf is not a valid PDF/A-1b file, error(s) : 2.4.3 : Invalid Color space, The operator "g" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "G" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "g" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "G" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 ``` However, the PDF will still be generated and the "errors" shown in the log do not break anything.
2018-03-17Add support to parse unit string of \SI command (closes #4296).Marc Schreiber2-1/+50
2018-03-17Update changelog.John MacFarlane2-0/+23
2018-03-17Fixed typo introduced in merge.John MacFarlane1-1/+1
2018-03-17Update man page.John MacFarlane2-2/+45
2018-03-17RST writer: filter out empty inline containers (#4434).Francesco Occhipinti2-10/+29
There is nothing in RST that corresponds to e.g. `Emph []`, so we just filter out elements like this.
2018-03-17Don't wrap lines in grid tables when `--wrap=none` (#4320)Francesco Occhipinti2-12/+45
* Annotate gridTable code with comments and abstract small functions * Don't wrap lines in tables when `--wrap=none`. Instead, expand cells, even if it results in cells that don't respect relative widths or surpass page column width. * This change affects RST, Markdown, and Haddock writers.
2018-03-17Provide `bidi` package's option using `\PassOptionsToPackage` (#4357).Václav Haisman2-8/+5
* Provide `bidi` package's option using `\PassOptionsToPackage`. This avoid clash when `polyglossia` loads it first and then it is loaded again for XeLaTeX when `latex-dir-rtl` defined. * Adjust test suite for LaTeX template change.