* Sat Jan 23 2016 mimi.vxAATTgmail.com- update to 1.16.0.2- very long changelog again. For details please see changelog file or https://hackage.haskell.org/package/pandoc-1.16.0.2/changelog * Wed Dec 23 2015 mimi.vxAATTgmail.com- create placeholder package for pdf support * Mon Nov 16 2015 mimi.vxAATTgmail.com- update to 1.15.2.1- correct license to GPL-2.0+- very long changelog again, for details please see changelog file or https://hackage.haskell.org/package/pandoc-1.15.2.1/changelog * Sun Oct 25 2015 mimi.vxAATTgmail.com- update to 1.15.1.1 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators. + add Suggests: texlive-latex-bin-bin * Sun Oct 18 2015 mimi.vxAATTgmail.com- update to 1.15.1 * `pandocVersion` is now defined in `Text.Pandoc.Shared` and reexported from `Text.Pandoc` (Alex Vong). This allows writers to access it. (Alex Vong) (API change) * For `markdown_mmd`, add: `implicit_figures`, `superscripts`, `subscripts` (#2401). * Added `odt` as input format (MarLinn). Added new module `Text.Pandoc.Reader.ODT` (API change). Fully implemented features: Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists, External Links, Internal Links, Footnotes, Endnotes, Blockquotes. Partly implemented features: Citations, Tables. * Markdown Reader: + Add basic tests for each header style (Ophir Lifshitz). + Add implicit header ref tests for headers with spaces (Ophir Lifshitz). + Skip spaces in headers (Ophir Lifshitz). + Handle \'id\' and \'class\' in parsing key/value attributes (#2396). `# Header {id=\"myid\" class=\"foo bar\"}` is now equivalent to `# Header {#myid .foo .bar}`. + Use \'=\' instead of \'#\' for atx-style headers in markdown+lhs. (Kristof Bastiaensen) + Pipe tables: allow indented columns. Previously the left-hand column could not start with 4 or more spaces indent. This was inconvenient for right-aligned left columns. Note that the first (header column) must still have 3 or fewer spaces indentation, or the table will be treated as an indented code block. + Fix regression: allow HTML comments containing `--`. Technically this isn\'t allowed in an HTML comment, but we\'ve always allowed it, and so do most other implementations. It is handy if e.g. you want to put command line arguments in HTML comments. * LaTeX reader: + Don\'t eat excess whitespace after macros with only optional arguments (#2446). + Support longtable (#2411). + Implement `\\Cite` (#2335). + Support abstract environment. The abstract populates an `abstract` metadata field. + Properly handle booktabs lines. Lines aren\'t part of the pandoc table model, so we just ignore them (#2307). * HTML reader: + Handle type attribute on ol, e.g. `` (#2313). + Updated for new automatic header attributes. + Add auto identifiers if not present on headers. This makes TOC linking work properly. + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz). + Test `` type, class, and inline list-style(-type) CSS (Ophir Lifshitz). + Better handling of \"section\" elements (#2438). Previously `` tags were just parsed as raw HTML blocks. With this change, section elements are parsed as Div elements with the class \"section\". * MediaWiki reader: handle unquoted table attributes (#2355). * DocBook reader: + Added proper support for DocBook `xref` elements (Frerich Raabe). Added `dbContent` field to reader state, so we can lookup cross refs. + Handle `informalexample` (#2319). * Docx Reader: + Create special punctuation test (Ophir Lifshitz). + Parse soft, no-break hyphen elements (Ophir Lifshitz). + Updated headers test (Ophir Lifshitz). Replaced `styles.xml` in `headers.docx` with pandoc\'s current `styles.xml`, which contains styles for Heading 1 through 6. Added Heading 4 through 7 to the test document. Note that Heading 7 is not parsed as a Heading because there is no Heading 7 style. * RST reader: better handling of indirect roles. Previously the parser failed on this kind of case .. role:: indirect(code) .. role:: py(indirect) :language: python :py:`hi` Now it correctly recognizes `:py:` as a code role. * Org reader: + Add auto identifiers if not present on headers (#2354, Juliusz Gonera). + Allow verse blocks to contain empty lines (#2402, Albert Krewinkel). * EPUB reader: stop mangling external URLs (#2284). * RST writer: + Don\'t insert `\\ ` when complex expression in matched pairs. E.g. `` [:sup:`3`] `` is okay; you don\'t need `` [:sup:`3`\\ ] ``. + Ensure that `\\ ` is inserted when needed before Cite and Span elements that begin with a \"complex\" element (jgm/pandoc-citeproc#157). + Normalize headers only in \"standalone\" mode (#2394). * Haddock writer: escape ` *` and `^` (G. Bataille). * Markdown writer: + In TOC, add links to headers (#829). + Use unicode super/subscripts for digits in plain output (when the `superscripts` and `subscripts` extensions are not enabled). * Docx writer: + Moved invalid character stripping to `formattedString`. This avoids an inefficient generic traversal (#2356). + Use user data directory for `reference.docx` archive. This allows the test suite to work without installing pandoc first. It also brings the docx writer in line with the odt writer. + Tests: docx writer tests now use `../data` for data directory. This allows tests to be run without installing first. + Tests: Use real jpg (not empty) for docx tests to avoid warning. * LaTeX writer: + Fixed detection of \'chapters\' from template. If a documentclass isn\'t specified in metadata, but the template has a hardwired bookish documentclass, act as if `--chapters` was used. This was the default in earlier versions, but it has been broken for a little while. + Correctly recognize book documentclass in metadata (#2395). + Set language-related variables automatically, depending on the value of the `lang` field, which is now always assumed to be in BCP47 format (mb21, #1614, #2437). + Add `\\protect` to `\\hyperdef` in inline context. This way we don\'t get an error when this is used as a moveable argument (#2136). + Support all frame attributes in Beamer. + Percent-encode more special characters in URLs (#1640, #2377). The special characters are \'<\',\'>\',\'|\',\'\"\',\'{\',\'}\',\'[\',\']\',\'^\', \'`\'. * HTML writer: + Update KaTeX JS and CSS versions (Emily Eisenberg). + For dzslides, add `role=\"note\"` for speaker notes (#1693). + Percent-encode more special characters in URLs (#1640, #2377). The special characters are \'<\',\'>\',\'|\',\'\"\',\'{\',\'}\',\'[\',\']\',\'^\', \'`\'. + Render Div with class `section` as `` in HTML5. * EPUB writer: + In TOC, replace literal \" \" with space (#2105). + With `--webtex`, include image file rather than `data:` URI (#2363). * Native writer: format Div properly, with blocks separated. * Support bidirectional text output with XeLaTeX, ConTeXt and HTML * Reference Docx: + Add missing Header 6 style (steel blue) (Ophir Lifshitz). + Correct `outlineLvl` for Header styles (Ophir Lifshitz). * Templates + Beamer: Add `innertheme`, `outertheme` variables (Guilhem Bonnefille, #121). Add space after colon in figure caption. Integrate recent font and language updates from LaTeX template; allow use of `mainfont` variable for changing the slide text in XeTeX and LuaTeX (Andrew Dunning, #131). + LaTeX: Add `mainfontoptions`, `sansfontoptions`, `monofontoptions`, `mathfontoptions`, `fontfamilyoptions` (Andrew Dunning, #122). Support handling of bidirectional text (mb21, #120). Improve reliability of superscripts/subscripts under XeTeX and prevent letters and numbers from appearing on a different baseline by removing use of the `realscripts` package (via `xltxtra`). To restore use of OpenType characters for these features under XeTeX or LuaTeX, add `\\usepackage{realscripts}` to `header-includes` (Andrew Dunning, #130). Remove redundant reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`, `indent`, `subparagraph` variables (Andrew Dunning). Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy, [#113]). Prevent package clash with `tufte-latex` and other classes that include `hyperref` or `color` (Xavier Olive, #115). + ConTeXt: Support handling of bidirectional text (mb21, #120). + LaTeX and ConTeXt: Use more specific language variables. Instead of directly using `lang`, we now use `babel-lang` and `polyglossia-lang` and `context-lang`. These variables are set by the writers to the necessary values, based on the `lang` variable (which now always takes a value in BCP47 format). (mb21, #114, #129). + HTML: Support handling of bidirectional text (mb21, #120). Move HTML5 shiv after CSS and fix URL (Andrew Dunning). Add dir attribute in html5 (Andrew Dunning). + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127). Add `width`, `height` variables (Anrew Dunning). Update template from 3.1 source (Andrew Dunning). All configuration options are now available as variables, but are only be included if set (reveal.js uses defaults otherwise). + man: Added comment stating that the page is autogenerated by pandoc, giving version. Added `adjusting` and `hyphenate` variables (Alex Vong, #123). * epub.css: added selectors for nested emphasis (Pablo Rodriguez). * MediaBag: ensure that `/` is always used as path separator. * `sample.lua`: define `CaptionedImage`, add newline at end (#2393). * Added `--bash-completion` option. This generates a bash completion script. To use: `eval \"$(pandoc --bash-completion)\"`. * Text.Pandoc.Error: Define Typeable and Exception instances for PandocError (#2386). * Text.Pandoc.Parsing: `toKey`: strip off outer brackets. This makes keys with extra space at the beginning and end work: e.g. [foo]: bar [ foo ] will now be a link to bar (it wasn\'t before). * Text.Pandoc: disable `auto_identifiers` for epub. The epub writer inserts its own auto identifiers; this is more complex due to splitting into \"chapter\" files. * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time. It now reexports Data.Time. * Use custom Prelude to avoid compiler warnings. + The (non-exported) prelude is in prelude/Prelude.hs. + It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. + It exports (<>) for mappend. + It hides \'catch\' on older base versions. * Added a `stack.ymal` and stack install instructions to INSTALL. * Clarified what is \"out of scope\" in README and CONTRIBUTING.md. * Added note to CONTRIBUTING.md about ghc versions and travis. * Clarify docs on block quotes. The space after `>` is optional (#2346). * Removed obsolete reference to default.csl (#2372). * List all styles in manual for `--reference-docx` (Chris Black) * Don\'t capitalize header links in man page. * Added section on repl to CONTRIBUTING.md. * README: Added space after backslash in image example (#2329). * Document details of citation locator terms (Nick Bart). * Fixed some internal links in README (#2309). * Improve CSL documentation, variables documentations, links, and cross-references in README. (Andrew Dunning) * Fix build failure with `--flags=-https` (Sergei Trofimovich). * Use `newManager` instead of `withManager` in recent `http-client`. This avoids a deprecation warning. * Allow building with latest versions of http-types, HUnit, criterion, syb, aeson. * Setup.hs: rewrite so as not to use process, directory, filepath. Using anything outside base is dangerous, since older versions of ghc may link against two different versions. * Tue Jul 28 2015 mimi.vxAATTgmail.com- update to 1.15.0.6- removed man.patch , pandoc.1.gz and pandoc_markdown.5.gz * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286). Previously `--self-contained` wiped out all spaces in CSS, including semantically significant spaces. This was a regression from 1.14.x. * Markdown reader: don\'t allow bare URI links or autolinks in link label (#2300). Added test cases. * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299). Previously we disallowed `-` at the end of an autolink, and disallowed the combination `=-`. This commit liberalizes the rules for allowing punctuation in a bare URI, and adds test cases. One potential drawback is that you can no longer put a bare URI in em dashes like this: `this uri---http://example.com---is an example.` But in this respect we now match github\'s treatment of bare URIs. * HTML writer: support speaker notes in dzslides. With this change `
` and also `
` will be output if `-t dzslides` is used. So we can have speaker notes in dzslides too. Thanks to maybegeek. * Updated dzslides template. * Improved documentation of options to print system default files (#2298). `--print-default-data-file` and `--print-default-template`. * DokuWiki writer: use `$..$` for Math instead of `` (Tiziano Müller). MathJax seems currently to be the only maintained math rendering extension for DokuWiki. * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references div as top-level header (#2294). This fixes a bug with `--section-divs`, where the final references section added by pandoc-citeproc, enclosed in its own div, got nested in the div for the section previous to it. * Allow vector 0.11. * Require cmark > 0.4. * HTML writer: Fixed email javascript obfuscation with `mailto:` URLs (#2280). This fixes a potential security issue. Because single quotes weren\'t being escaped in the link portion, a specially crafted email address could allow javascript code injection. * Markdown/HTML readers: Avoid parsing partial URLs like `` as HTML tags (#2277). * RST reader: allow inline formatting in definition list field names (Lars-Dominik Braun). * PDF: Make sure `--latex-engine-opt` goes before the filename on the command line. LaTeX needs the argument to come after the options (#1779). * CommonMark writer: fixed tags used for super/subscript. * ConTeXt template: activate hanging indent for definition lists (mb21). * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified. This is done by adding `hookedPrograms` in `Setup.hs`, which allows us to include `hsb2hs` in Build-Tools in cabal. + Admin privileges are no longer required for a per-user install * Travis: unpack sdist for build to catch packaging bugs. * Improved documentation on where user templates go (#2272). * Added pandoc.1 man page to the repository. It is no longer built as part of the cabal build process. (This proved too fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`) when `README` is changed. * Copying of the man page now respects `--destdir` (#2262). * Improved error messages for filters. User is now informed if the filter requires an interpreter that isn\'t found in the path, or if the filter returns an error status. * Ensure target directory is created when installing man page. * Added files needed for building man page to Extra-Source-Files. * Man page is now built and installed as part of the cabal build process. Removed Makefile target for man page. * Man page changes: + Removed `--man1`, `--man5` options (breaking change). + Removed `Text.Pandoc.ManPages` module (breaking API change). + Makefile target for `man/man1/pandoc.1`. This uses pandoc to create the man page from README using a custom template and filters. + Added `man/` directory with template and filters needed to build man page. + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`. Now there is just pandoc.1, which has all the content from README. This change was needed because of the extensive cross-references between parts of the README. + Removed old `data/pandoc.1.template` and `data/pandoc_markdown.5.template`. * OpenDocument writer: Do not add a carriage return after a hard line break (Michael Chladek). * ConTeXt writer: + use `\\goto` for internal links. + Added a `%` at end for `\\reference` to avoid spurious space. * Ignore sandbox on \'make quick\' * Added new unexported module: `Text.Pandoc.ManPages`. * `README` now acts like a data file (even though it isn\'t in `data/`). So, for example, `pandoc --print-default-data-file README` will produce the README.) This change was required for the `--man1` and `--man5` options, since the man pages are produced from the README, but it may be useful for other purposes as well. * Allow `reference.docx` and `reference.odt` to be used with `--print-default-data-file` and to shadow defaults if placed in the user data directory. Note that as of 1.14, we no longer include these files as data files; instead, we include their components. This change causes pandoc to behave as if it has these data files; they are constructed on demand when needed using `getDefaultReferenceDocx` and `getDefaultReferenceODT`. * Fixed regression in CSS parsing with `--self-contained` (#2224). Pandoc 1.14.0.x used css-text to parse the CSS, but its parser silently drops big sections of CSS. This commit replaces the use of css-text with a small but principled CSS preprocessor, which removes whitespace and comments and replaces `url()` with base 64 data when possible. * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920). This will allow math to work when pages are being viewed locally. * `Text.Pandoc.Options`: Export `plainExtensions`. These are the extensions used in `plain` output. * LaTeX reader: Don\'t parse `_` and `^` as sub/superscript outside of math mode; treat them as regular inline text. Normally these will cause an error in LaTeX, but there are contexts (e.g. `alltt` environments) where they are allowed. * HTML reader: allow `` to close ``. * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21). * RST reader: Fix reference names with special characters (Lars-Dominik Braun). * Textile writer: escape `+` and `-` as entities (#2225). * DokuWiki writer: Use proper `` tags for code blocks (#2213). * Plain writer: don\'t use symbols for super/subscript (#2237). Simplified code by using `plainExtensions`. * InDesign writer: Properly escape URLs containing more than one colon character (gohai). * Docx writer: Make sure we use dist version of `reference.docx` (and not the user\'s version) for certain settings. Taking some settings values from a user-supplied reference.docx can lead to corruption. This fixes a regression from the last release (#2249). * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and `getDefaultReferenceODT` (API change). These functions have been removed from the Docx and ODT writers. * LaTeX template (Xavier Olive): + Added `CJKmainfont` and `CJKoptions` variables. + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive). * Epub templates: use `author.role`, not `author.type`. * Bump cmark version to >= 0.3.4. * Improved Windows installer (#2205, thanks to nkalvi). Users can now select a per-user or systemwide install, and can set the installation path. At the end of installation, the install location is given. The install location is also now given in the list of installed programs in Control Panel. Cleaner WiX syntax is used for setting the path. * Added `download_stats` target to Makefile. * Thu Jun 04 2015 mimi.vxAATTgmail.com- update to 1.14.0.4 * Added missing commonmark template. * Tue Jun 02 2015 mimi.vxAATTgmail.com- update to 1.14.0.3 * Allow compilation with syb 0.5. *. * Custom writer: fixed some compiler warnings for ghc < 7.10. * Tue Jun 02 2015 mimi.vxAATTgmail.com- reworked man patch * Sun May 31 2015 mimi.vxAATTgmail.com- update to 1.14.0.2- man.patch to remove generating of man pages * for changes please see upstream \'changelog\' file * Thu May 14 2015 mimi.vxAATTgmail.com- disable old-locale support * Sun Apr 26 2015 mimi.vxAATTgmail.com- correct ghc-http-client-tls dep * Fri Apr 24 2015 mimi.vxAATTgmail.com- update to 1.13.2.1 pandoc (1.13.2) =============== * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian). * Markdown reader: + Better handling of paragraph in div (#1591). Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. + Don\'t treat a citation as a reference link label (#1763). + Fix autolinks with following punctuation (#1811). The price of this is that autolinked bare URIs can no longer contain `>` characters, but this is not a big issue. + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom). + Allow `startnum` to work without `fancy_lists`. Formerly `pandoc -f markdown-fancy_lists+startnum` did not work properly. * RST reader (all Daniel Bergey): + Parse quoted literal blocks (#65). RST quoted literal blocks are the same as indented literal blocks (which pandoc already supports) except that the quote character is preserved in each line. + Parse RST class directives. The class directive accepts one or more class names, and creates a Div value with those classes. If the directive has an indented body, the body is parsed as the children of the Div. If not, the first block folowing the directive is made a child of the Div. This differs from the behavior of rst2xml, which does not create a Div element. Instead, the specified classes are applied to each child of the directive. However, most Pandoc Block constructors to not take an Attr argument, so we can\'t duplicate this behavior. + Warn about skipped directives. + Literal role now produces Code. Code role should have \"code\" class. + Improved support for custom roles - Added `sourceCode` to classes for `:code:` role, and anything inheriting from it. - Add the name of the custom role to classes if the Inline constructor supports Attr. - If the custom role directive does not specify a parent role, inherit from the `:span:` role. This differs somewhat from the `rst2xml.py` behavior. If a custom role inherits from another custom role, Pandoc will attach both roles\' names as classes. `rst2xml.py` will only use the class of the directly invoked role (though in the case of inheriting from a `:code:` role with a `:language:` defined, it will also provide the inherited language as a class). + Warn about ignored fields in role directives. * LaTeX reader: + Parse label after caption into a span instead of inserting an additional paragraph of bracketed text (#1747). + Parse math environments as inline when possible (#1821). + Better handling of `\ oindent` and `\\greektext` (#1783). + Handle `\\texorpdfstring` more gracefully. + Handle `\\cref` and `\\sep` (Wikiwide). + Support `\\smartcite` and `\\Smartcite` from biblatex. * HTML reader: + Retain display type of MathML output (#1719, Matthew Pickering). + Recognise ` ` tags inside `
` and ``. + Added `audio` and `source` in `eitherBlockOrInline`. + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from `blockTags` to `eitherBlockOrInline`. + `map` and `object` were mistakenly in both lists; they have been removed from `blockTags`. + Ignore `DOCTYPE` and `xml` declarations. * MediaWiki reader: + Don\'t parse backslash escapes inside `