git.iko.soy/typeable/pandoc
on 2.1.3 help sign in
typeable/pandoc/changelog
14354 lines 620 kB history raw
1pandoc (2.1.3)
3 * Docx reader (Jesse Rosenthal):
5 + Add tests for nested smart tags.
6 + Parse nested smart tags.
7 + Make unwrapSDT into a general `unwrap` function that can unwrap both
8 nested SDT tags and smartTags. This makes the SmartTags constructor in
9 the Docx type unnecessary, so we remove it (#4446).
10 + Remove unused `docxWarnings` (Alexander Krotov).
12 * RST reader: Allow unicode bullet characters (#4454).
14 * Haddock reader: Better table handling, using haddock-library's
15 new table support, if compiled against a version that
16 includes it. Note that tables with col/rowspans will not
17 translate well into Pandoc.
19 * Muse reader (Alexander Krotov):
21 + Various internal improvements.
22 + Require closing tag to have the same indentation as opening.
23 + Do not reparse blocks inside unclosed block tag (#4425).
24 + Parse `<class>` tag (supported by Emacs Muse).
25 + Do not produce empty Str element for unindented verse lines.
27 * LaTeX reader:
29 + Add support to parse unit string of `\SI` command (closes #4296,
30 Marc Schreiber).
32 * Haddock writer: In the writer, we now render tables always as
33 grid tables, since Haddock supports these.
35 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
37 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
38 docx writer. We want decimal for the top level, not lower roman.
40 * RST writer:
42 + Strip whitespace at beginning and ending of inline containers
43 (#4327, Francesco Occhipinti).
44 + Filter out empty inline containers (#4434). There is nothing in
45 RST that corresponds to e.g. `Emph []`, so we just ignore elements
46 like this (Francesco Occhipinti).
48 * Muse writer (Alexander Krotov):
50 + Support spans with anchors.
51 + Replace smallcaps with emphasis before normalization.
52 + Output smallcaps as emphasis.
53 + Expand Cite before list normalization.
54 + Write empty inline lists as `<verbatim></verbatim>`.
55 + Remove empty Str from the beginning of inline lists during normalization.
56 + Escape "-" to avoid creating bullet lists.
57 + Fix math expansion for more than one expression per paragraph.
58 + Expand math before inline list normalization.
60 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
62 * Ms writer:
64 + Asciify pdf anchors, since unicode anchors don't work (#4436).
65 Internal links should be converted automatically, so this shouldn't
66 affect users directly.
67 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
69 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
70 (#4307). If it's in the title, then we get a titlebar on slides with
71 the `plain` attribute, when the id is non-null. This fixes a regression
72 in 2.0.
74 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
76 * JATS writer: Remove extraneous, significant whitespace (#4335,
77 Nokome Bentley).
79 * html2pdf: inject base tag wih current working directory (#4413, Mauro
80 Bieg). This helps ensure that linked resources are included.
82 * Add Semigroup instances for everything for which we defined a
83 Monoid instance previously (API change):
85 + Text.Pandoc.Class.FileTree.
86 + Text.Pandoc.Translations.Translations.
87 + Text.Pandoc.Extensions.Extensions.
88 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
89 + Text.Pandoc.Pretty.Doc.
90 + Text.Pandoc.MediaBag.MediaBag.
92 * Add custom Prelude to give clean code for Monoid and Semigroup
93 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
94 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
95 in all source files, and Prelude is explicitly imported
96 (this is necessary for ghci to work properly with the custom prelude).
98 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
100 + Export `stripLeadingTrailingSpace`.
101 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
102 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
103 expand cells, even if it results in cells that don't respect relative
104 widths or surpass page column width. This change affects RST,
105 Markdown, and Haddock writers.
107 * Raise error if someone tries to print docx, odt, etc. template (#4441).
109 * LaTeX template: Provide `bidi` package's option using
110 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
111 clash when `polyglossia` loads it first and then it is loaded again
112 for XeLaTeX.
114 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
115 Menke). Instructions on how to install the ICC profiles on ConTeXt
116 standalone can be found in the wiki:
117 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
118 If the ICC profiles are not available the log will contain error
119 messages.
121 * Use latest pandoc-types, skylighting
123 * Use latest pandoc-citeproc in binary package.
125 * Bump upper bound for time, criterion, haddock-library, exceptions,
126 http-types, aeson, haddock-library.
128 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
130 * pandoc.cabal: fix up other-extensions and language fields.
131 Language is now consistently `Haskell2010`, and other-extensions
132 is consistently `NoImplicitPrelude`. Everything else to be specified
133 in the module header as needed.
135 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
136 This is no longer necessary since we no longer support ghc 7.8.
138 * Make `weigh-pandoc` into a benchmark program.
139 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
140 automatically when you build (and run) benchmarks.
142 * MANUAL: add instructions for background images reveal.js (#4325, John
143 Muccigrosso).
145 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
148pandoc (2.1.2)
150 * Markdown reader:
152 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
153 "nonindent spaces" before the opening and closing `:::`, but this
154 interfered with list parsing, so now we require the fences to be flush with
155 the margin of the containing block.
157 * Commonmark reader:
159 + `raw_html` is now on by default. It can be disabled explicitly
160 using `-f commonmark-raw_html`.
162 * Org reader (Albert Krewinkel):
164 + Move citation tests to separate module.
165 + Allow changing emphasis syntax (#4378). The characters allowed before
166 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
167 `#+pandoc-emphasis-post`, respectively. This allows to change which
168 strings are recognized as emphasized text on a per-document or even
169 per-paragraph basis. Example:
171 #+pandoc-emphasis-pre: "-\t ('\"{"
172 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
174 * LaTeX reader:
176 + Fixed comments inside citations (#4374).
177 + Fix regression in package options including underscore (#4424).
178 + Make `--trace` work.
179 + Fixed parsing of `tabular*` environment (#4279).
181 * RST reader:
183 + Fix regression in parsing of headers with trailing space (#4280).
185 * Muse reader (Alexander Krotov):
187 + Enable `<literal>` tags even if amuse extension is enabled.
188 Amusewiki disables <literal> tags for security reasons.
189 If user wants similar behavior in pandoc, RawBlocks and RawInlines
190 can be removed or replaced with filters.
191 + Remove space prefix from `<literal>` tag contents.
192 + Do not consume whitespace while looking for closing end tag.
193 + Convert alphabetical list markers to decimal in round-trip test.
194 Alphabetical lists are an addition of Text::Amuse.
195 They are not present in Emacs Muse and can be ambiguous
196 when list starts with "i.", "c." etc.
197 + Allow `<quote>` and other tags to be indented.
198 + Allow single colon in definition list term.
199 + Fix parsing of verse in lists.
200 + Improved parsing efficiency. Avoid `parseFromString`.
201 Lists are parsed in linear instead of exponential time now.
202 + Replace ParserState with MuseState.
203 + Prioritize lists with roman numerals over alphabetical lists.
204 This is to make sure "i." starts a roman numbered list,
205 instead of a list with letter "i" (followed by "j", "k", ...").
206 + Fix directive parsing.
207 + Parse definition lists with multiple descriptions.
208 + Parse next list item before parsing more item contents.
209 + Fixed a bug: headers did not terminate lists.
210 + Move indentation parsing from `definitionListItem` to `definitionList`.
211 + Paragraph indentation does not indicate nested quote.
212 Muse allows indentation to indicate quotation or alignment,
213 but only on the top level, not within a <quote> or list.
214 + Require that block tags are on separate lines.
215 Text::Amuse already explicitly requires it anyway.
216 + Fix matching of closing inline tags.
217 + Various internal changes.
218 + Fix parsing of nested definition lists.
219 + Require only one space for nested definition list indentation.
220 + Do not remove trailing whitespace from `<code>`.
221 + Fix parsing of trailing whitespace. Newline after whitespace now
222 results in softbreak instead of space.
224 * Docx reader (Jesse Rosenthal, except where noted):
226 + Handle nested sdt tags (#4415).
227 + Don't look up dependant run styles if `+styles` is enabled.
228 + Move pandoc inline styling inside custom-style span.
229 + Read custom styles (#1843). This will read all paragraph and
230 character classes as divs and spans, respectively. Dependent styles
231 will still be resolved, but will be wrapped with appropriate style
232 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
233 This can be used in conjunction with the `custom-style` feature in the
234 docx writer for a pandoc-docx editing workflow. Users can convert from
235 an input docx, reading the custom-styles, and then use that same input
236 docx file as a reference-doc for producing an output docx file. Styles
237 will be maintained across the conversion, even if pandoc doesn't
238 understand them.
239 + Small change to Fields hyperlink parser. Previously, unquoted string
240 required a space at the end of the line (and consumed it). Now we
241 either take a space (and don't consume it), or end of input.
242 + Pick table width from the longest row or header (Francesco Occhipinti,
243 #4360).
245 * Muse writer (Alexander Krotov):
247 + Change verse markup: `> ` instead of `<verse>` tag.
248 + Remove empty strings during inline normalization.
249 + Don't indent nested definition lists.
250 + Use unicode quotes for quoted text.
251 + Write image width specified in percent in Text::Amuse mode.
252 + Don't wrap displayMath into `<verse>`.
253 + Escape nonbreaking space (`~~`).
254 + Join code with different attributes during normalization.
255 + Indent lists inside Div.
256 + Support definitions with multiple descriptions.
258 * Powerpoint writer (Jesse Rosenthal):
260 + Use table styles This will use the default table style in the
261 reference-doc file. As a result they will be easier when using
262 in a template, and match the color scheme.
263 + Remove empty slides. Because of the way that slides were split, these
264 could be accidentally produced by comments after images. When animations
265 are added, there will be a way to add an empty slide with either
266 incremental lists or pauses.
267 + Implement syntax highlighting. Note that background colors can't
268 be implemented in PowerPoint, so highlighting styles that require
269 these will be incomplete.
270 + New test framework for pptx. We now compare the output of the
271 Powerpoint writer with files that we know to (a) not be corrupt,
272 and (b) to show the desired output behavior (details below).
273 + Add `notesMaster` to `presentation.xml` if necessary.
274 + Ignore links and (end)notes in speaker notes.
275 + Output speaker notes.
276 + Read speaker note templates conditionally. If there are speaker
277 notes in the presentation, we read in the notesMasters templates
278 from the reference pptx file.
279 + Fix deletion track changes (#4303, Jesse Rosenthal).
281 * Markdown writer: properly escape @ to avoid capture as citation
282 (#4366).
284 * LaTeX writer:
286 + Put hypertarget inside figure environment (#4388).
287 This works around a problem with the endfloat package and
288 makes pandoc's output compatible with it.
289 + Fix image height with percentage (#4389). This previously caused
290 the image to be resized to a percentage of textwidth, rather than
291 textheight.
293 * ConTeXt writer (Henri Menke):
295 + New section syntax and support `--section-divs` (#2609).
296 `\section[my-header]{My Header}` ->
297 `\section[title={My Header},reference={my-header}]`.
298 The ConTeXt writer now supports the `--section-divs` option to
299 write sections in the fenced style, with `\startsection` and
300 `\stopsection`.
301 + xtables: correct wrong usage of caption (Henri Menke).
303 * Docx writer:
305 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
306 + Use new golden framework (Jesse Rosenthal).
307 + Make more deterministic to facilitate testing (Jesse Rosenthal).
308 - `getUniqueId` now calls to the state to get an incremented digit,
309 instead of calling to P.uniqueHash.
310 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
311 seed (1848), so our randoms should be the same each time.
312 + Fix ids in comment writing (Jesse Rosenthal). Comments from
313 `--track-changes=all` were producing corrupt docx, because the
314 writer was trying to get id from the `(ID,_,_)` field of
315 the attributes, and ignoring the "id" entry in the key-value pairs. We
316 now check both.
318 * Ms writer: Added papersize variable.
320 * TEI writer:
322 + Use `height` instead of `depth` for images (#4331).
323 + Ensure that id prefix is always used.
324 + Don't emit `role` attribute; that was a leftover from the
325 Docbook writer.
326 + Use 'xml:id', not 'id' attribute (#4371).
328 * AsciiDoc writer:
330 + Do not output implicit heading IDs (#4363, Alexander
331 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
333 * RST writer:
335 + Remove `blockToRST'` moving its logic into `fixBlocks`
336 (Francesco Occhipinti).
337 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
339 * RST template: remove definition of 'math' role as raw.
340 This used to be needed prior to v 0.8 of docutils, but
341 now math support is built-in.
343 * Slides: Use divs to set incremental/non-incremental (#4381,
344 Jesse Rosenthal). The old method (list inside blockquote) still
345 works, but we are encouraging the use of divs with class
346 `incremental` or `nonincremental`.
348 * Text.Pandoc.ImageSize:
350 + Make image size detection for PDFs more robust (#4322).
351 + Determine image size for PDFs (#4322).
352 + EMF Image size support (#4375, Andrew Pritchard).
354 * Text.Pandoc.Extensions:
356 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
357 the docx reader (defaulting to off) to read pargraph and character
358 styles not understood by pandoc (as divs and spans, respectively).
359 + Made `Ext_raw_html` default for `commonmark` format.
361 * Text.Pandoc.Parsing:
363 + Export `manyUntil` (Alexander Krotov, API change).
364 + Export improved `sepBy1` (Alexander Krotov).
365 + Export list marker parsers: `upperRoman`, `lowerRoman`,
366 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
368 * Tests/Lua: fix tests on windows (Albert Krewinkel).
370 * Lua: register script name in global variable (#4393). The name of the Lua
371 script which is executed is made available in the global Lua variable
372 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
374 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
375 There is very little pptx-specific in these tests, so we abstract out
376 the basic testing function so it can be used for docx as well. This
377 should allow us to catch some errors in the docx writer that slipped
378 by the roundtrip testing.
380 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
381 functions used to construct AST element values are stored in the Lua
382 registry for quicker access. Getting a value from the registry is much
383 faster than getting a global value (partly to idiosyncrasies of hslua);
384 this change results in a considerable performance boost.
386 * Documentation:
388 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
389 + `doc/lua-filters.md`: document global vars set for filters
390 (Albert Krewinkel).
391 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
392 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
393 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
394 Rosenthal). Blockquoted lists are still described, but fenced divs are
395 presented in preference.
396 + MANUAL.txt: document header and footer variables (newmana).
397 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
398 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
400 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
402 * Use latest texmath.
404 * Use latest pandoc-citeproc.
406 * Allow exceptions 0.9.
408 * Require aeson-pretty 0.8.5 (#4394).
410 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
412 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
414 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
416 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
417 jarlg).
420pandoc (2.1.1)
422 * Markdown reader:
424 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
425 blank line. See lierdakil/pandoc-crossref#160.
426 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
427 The change both improves performance and fixes a regression whereby
428 normal citations inside inline notes and figure captions were not
429 parsed correctly.
431 * RST reader:
433 + Better handling for headers with an anchor (#4240). Instead of creating a
434 Div containing the header, we put the id directly on the header.
435 This way header promotion will work properly.
436 + Add aligned environment when needed in math (#4254). `rst2latex.py`
437 uses an `align*` environment for math in `.. math::` blocks, so this
438 math may contain line breaks. If it does, we put the math in an
439 `aligned` environment to simulate `rst2latex.py`'s behavior.
441 * HTML reader:
443 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
445 * LaTeX reader:
447 + Advance source position at end of stream.
448 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
449 extension is set (#4246). This reverts to earlier behavior and is
450 probably safer on the whole, since some macros only modify things in
451 included packages, which pandoc's macro expansion can't modify.
452 + Fixed pos calculation in tokenizing escaped space.
453 + Allow macro definitions inside macros (#4253). Previously we went into
454 an infinite loop with
455 ```
456 \newcommand{\noop}[1]{#1}
457 \noop{\newcommand{\foo}[1]{#1}}
458 \foo{hi}
459 ```
460 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
461 widths for the body were different from widths for the header in some
462 tables.
464 * Docx reader (Jesse Rosenthal):
466 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
467 hyperlink found in older versions of word. The changes introduced for
468 this, though, create a framework for parsing further fields in MS Word
469 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
470 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
471 contains a simple parsec parser. At the moment, only simple hyperlink
472 fields are accepted, but that can be extended in the future.
474 * Muse reader (Alexander Krotov):
476 + Parse `~~` as non-breaking space in Text::Amuse mode.
477 + Refactor list parsing.
479 * Powerpoint writer (Jesse Rosenthal):
481 + Change reference to `notesSlide` to `endNotesSlide`.
482 + Move image sizing into `picProps`.
483 + Improve table placement.
484 + Make our own `_rels/.rels` file.
485 + Import reference-doc images properly.
486 + Move `Presentation.hs` out of `PandocMonad`.
487 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
488 defines the Presentation datatype and goes Pandoc->Presentation;
489 T.P.W.Pandoc.Output goes Presentation->Archive.
490 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
491 + Avoid overlapping blocks in column output.
492 + Position images correctly in two-column layout.
493 + Make content shape retrieval environment-aware.
494 + Improve image handling. We now determine image and caption placement
495 by getting the dimensions of the content box in a given layout.
496 This allows for images to be correctly sized and positioned in a
497 different template. Note that images without captions and headers are
498 no longer full-screened. We can't do this dependably in different
499 layouts, because we don't know where the header is (it could be to
500 the side of the content, for example).
501 + Read presentation size from reference file. Our presentation size is
502 now dependent on the reference/template file we use.
503 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
504 subheaders will be printed in bold and given a bit of extra space
505 before them. Note that at the moment, no distinction is made between
506 levels of headers above the slide header, though that can be changed.
507 + Check for required files. Since we now import from reference/dist
508 file by glob, we need to make sure that we're getting the files we
509 need to make a non-corrupt Powerpoint. This performs that check.
510 + Improve templating using `--reference-doc`. Templating should work
511 much more reliably now.
512 + Include Notes slide in TOC.
513 + Set notes slide header to slide-level.
514 + Add table of contents. This is triggered by the `--toc` flag. Note
515 that in a long slide deck this risks overrunning the text box. The user
516 can address this by setting `--toc-depth=1`.
517 + Set notes slide number correctly.
518 + Clean up adding metadata slide. We want to count the slide numbers
519 correctly if it's in there.
520 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
521 an anchor link. In powerpoint these are links to slides, so we keep
522 track of a map relating anchors to the slides they occur on.
523 + Make the slide number available to the blocks. For anchors,
524 block-processing functions need to know what slide number
525 they're in. We make the `envCurSlideId` available to blocks.
526 + Move `curSlideId` to environment.
527 + Allow setting `toc-title` in metadata.
528 + Link notes to endnotes slide.
530 * Markdown writer:
532 + Fix cell width calculation (#4265). Previously we could get
533 ever-lengthening cell widths when a table was run repeatedly through
534 `pandoc -f markdown -t markdown`.
536 * LaTeX writer:
538 + Escape `&` in lstinline (Robert Schütz).
540 * ConTeXt writer:
542 + Use xtables instead of Tables (#4223, Henri Menke).
543 Default to xtables for context output. Natural Tables are used
544 if the new `ntb` extension is set.
546 * HTML writer:
548 + Fixed footnote backlinks with `--id-prefix` (#4235).
550 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
551 Henri Menke).
553 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
554 (Jesse Rosenthal, API change).
556 * Lua filters (Albert Krewinkel):
558 + Make `PANDOC_READER_OPTIONS` available.
559 The options which were used to read the document are made available to
560 Lua filters via the `PANDOC_READER_OPTIONS` global.
561 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
562 on a Pandoc document.
563 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
564 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
565 + Improve error messages. Provide more context about the task
566 which caused an error.
568 * data/pandoc.lua (Albert Krewinkel):
570 + Accept singleton inline as a list. Every constructor which accepts a
571 list of inlines now also accepts a single inline element for
572 convenience.
573 + Accept single block as singleton list. Every constructor which accepts
574 a list of blocks now also accepts a single block element for
575 convenience. Furthermore, strings are accepted as shorthand for
576 `{pandoc.Str "text"}` in constructors.
577 + Add attr, listAttributes accessors. Elements with
578 attributes got an additional `attr` accessor. Attributes were
579 accessible only via the `identifier`, `classes`, and `attributes`,
580 which was in conflict with the documentation, which indirectly states
581 that such elements have the an `attr` property.
582 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
583 module is closely tied to the pandoc version, which is available via
584 `PANDOC_VERSION`.
585 + Fix access to Attr components. Accessing an Attr value (e.g.,
586 ` Attr().classes`) was broken; the more common case of accessing it via
587 an Inline or Block element was unaffected by this.
589 * Move `metaValueToInlines` to from Docx writer to
590 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
591 (Jesse Rosenthal).
593 * MANUAL.txt:
595 + Clarify otherlangs in LaTeX (#4072).
596 + Clarify `latex_macros` extension.
597 + Recommend use of `raw_attribute` extension in header includes (#4253).
599 * Allow latest QuickCheck, tasty, criterion.
601 * Remove custom prelude and ghc 7.8 support.
603 * Reduce compiler noise (exact paths for compiled modules).
605pandoc (2.1)
607 * Allow filters and lua filters to be interspersed (#4196). Previously
608 we ran all lua filters before JSON filters. Now we run filters in
609 the order they are presented on the command line, whether lua or JSON.
610 There are two incompatible API changes: The type of `applyFilters`
611 has changed, and `applyLuaFilters` has been removed. `Filter` is
612 also now exported.
614 * Use latest skylighting and omit the `missingIncludes` check, fixing
615 a major performance regression in earlier releases of the 2.x series
616 (#4226). Behavior change: If you use a custom syntax definition that
617 refers to a syntax you haven't loaded, pandoc will now complain when
618 it is highlighting the text, rather than doing a check at the start.
619 This change dramatically speeds up invocations of pandoc on short
620 inputs.
622 * Text.Pandoc.Class: make `FileTree` opaque (don't export
623 `FileTree` constructor). This forces users to interact with it using
624 `insertInFileTree` and `getFileInfo`, which normalize file names.
626 * Markdown reader:
628 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
629 direct, avoiding `parseFromString`. And it performs significantly
630 better; unfortunately, parsing time still increases exponentially
631 (see #1735).
632 + Avoid parsing raw tex unless `\` + letter seen. This seems to
633 help with the performance problem, #4216.
635 * LaTeX reader: Simplified a check for raw tex command.
637 * Muse reader (Alexander Krotov):
639 + Enable round trip test (#4107).
640 + Automatically translate `#cover` into `#cover-image`.
641 Amusewiki uses #cover directive to specify cover image.
643 * Docx reader (Jesse Rosenthal):
645 + Allow for insertion/deletion of paragraphs (#3927).
646 If the paragraph has a deleted or inserted paragraph break (depending
647 on the track-changes setting) we hold onto it until the next
648 paragraph. This takes care of accept and reject. For this we introduce
649 a new state which holds the ils from the previous para if necessary.
650 For `--track-changes=all`, we add an empty span with class
651 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
652 prior to the break to be inserted or deleted.
653 + Remove unused anchors (#3679). Docx produces a lot of anchors with
654 nothing pointing to them---we now remove these to produce cleaner
655 output. Note that this has to occur at the end of the process
656 because it has to follow link/anchor rewriting.
657 + Read multiple children of `w:sdtContents`.
658 + Combine adjacent anchors. There isn't any reason to have numerous
659 anchors in the same place, since we can't maintain docx's
660 non-nesting overlapping. So we reduce to a single anchor.
661 + Improved tests.
663 * Muse writer (Alexander Krotov): don't escape URIs from AST
665 * Docx writer:
667 + Removed redundant subtitle in title (Sebastian Talmon).
668 + `firstRow` table definition compatibility for Word 2016 (Sebastian
669 Talmon). Word 2016 seems to use a default value of "1" for table
670 headers, if there is no firstRow definition (although a default
671 value of 0 is documented), so all tables get the first Row formatted
672 as header. Setting the parameter to 0 if the table has no header
673 row fixes this for Word 2016
674 + Fix custom styles with spaces in the name (#3290).
676 * Powerpoint writer (Jesse Rosenthal):
678 + Ignore Notes div for parity with other slide outputs.
679 + Set default slidelevel correctly. We had previously defaulted to
680 slideLevel 2. Now we use the correct behavior of defaulting to the
681 highest level header followed by content. We change an expected test
682 result to match this behavior.
683 + Split blocks correctly for linked images.
684 + Combine adjacent runs.
685 + Make inline code inherit code size. Previously (a) the code size
686 wasn't set when we force size, and (b) the properties was set from
687 the default, instead of inheriting.
688 + Simplify `replaceNamedChildren` function.
689 + Allow linked images. The following markdown:
690 `[![Image Title](image.jpg)](http://www.example.com)`
691 will now produce a linked image in the resulting PowerPoint file.
692 + Fix error with empty table cell. We require an empty `<a:p>` tag,
693 even if the cell contains no paragraphs---otherwise PowerPoint
694 complains of corruption.
695 + Implement two-column slides. This uses the columns/column div
696 format described in the pandoc manual. At the moment, only two
697 columns (half the screen each) are allowed. Custom widths are not
698 supported.
699 + Added more tests.
701 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
703 * Lua filters (Albert Krewinkel):
705 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
706 + The current pandoc-types version is made available to Lua programs in
707 the global `PANDOC_API_VERSION`. It contains the version as a list of
708 numbers.
709 + The pandoc version available as a global `PANDOC_VERSION` (a list
710 of numbers).
711 + `data/pandoc.lua`: make `Attr` an `AstElement`.
712 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
713 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
714 not set a metatable on the returned value, which made it difficult
715 to amend objects of these types with new behavior. They are now
716 subtypes of AstElement, meaning that all their objects can gain
717 new features when a method is added to the behavior object
718 (e.g., `pandoc.Pandoc.behavior`).
719 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
720 between a type and the behavioral properties of an instance of that
721 type. The behavior of a type (and all its subtypes) can now be
722 amended by adding methods to that types `behavior` object, without
723 exposing the type objects internals. E.g.:
724 ```lua
725 pandoc.Inline.behavior.frob = function () print'42' end
726 local str = pandoc.Str'hello'
727 str.frob() -- outputs '42'
728 ```
729 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
730 of a given type (e.g., all inline elements) was difficult, as the
731 table used to lookup unknown methods would be reset every time a
732 new element of that type was created, preventing recursive property
733 lookup. This is was changed in that all methods and attributes of
734 supertypes are now available to their subtypes.
735 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
736 fields were named like the Haskell fields, not like the documented,
737 shorter version. The names are changed to match the documentation
738 and Citations are given a shared metatable to enable simple
739 extensibility.
740 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
741 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
742 difficult to handle failures while getting lists or a Map from Lua.
743 A bug in pandoc, which made it necessary to always pass a tag when
744 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
745 module's constructor functions for these values is now optional
746 (if still recommended).
747 + Stop exporting `pushPandocModule` (API change). The introduction
748 of `runPandocLua` renders direct use of this function obsolete.
749 + Update generation of module docs for lua filters.
750 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
751 MacFarlane). I'm sure this was intended in the first place,
752 but currently only `Meta` is supported.
754 * Improve benchmarks.
756 + Set the default extensions properly.
757 + Improve benchmark argument parsing. You can now say
758 `make bench BENCHARGS="markdown latex reader"` and both the
759 markdown and latex readers will be benchmarked.
761 * MANUAL.txt simplify and add more structure (Mauro Bieg).
763 * Generate README.md from template and MANUAL.txt.
764 `make README.md` will generate the README.md after changes
765 to MANUAL.txt have been made.
767 * Update copyright notices to include 2018 (Albert Krewinkel).
769pandoc (2.0.6)
771 * Added `jats` as an input format.
773 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
774 change) (Hamish Mackenzie).
775 + Improved citation handling in JATS reader. JATS citations
776 are now converted to pandoc citations, and JATS ref-lists
777 are converted into a `references` field in metadata, suitable
778 for use with pandoc-citeproc. Thus a JATS article with embedded
779 bibliographic information can be processed with pandoc and
780 pandoc-citeproc to produce a formatted bibliography.
782 * Allow `--list-extensions` to take an optional FORMAT argument.
783 This lists the extensions set by default for the selected FORMAT.
784 The extensions are now alphabetized, and the `+` or `-`
785 indicating the default setting comes before, rather than after,
786 the extension.
788 * Markdown reader:
790 + Preserve original whitespace between blocks.
791 + Recognize `\placeformula` as context.
792 + Be pickier about table captions. A caption starts with a `:` which
793 can't be followed by punctuation. Otherwise we can falsely interpret
794 the start of a fenced div, or even a table header line like
795 `:--:|:--:`, as a caption.
796 + Always use four space rule for example lists. It would be awkward
797 to indent example list contents to the first non-space character after
798 the label, since example list labels are often long. Thanks to
799 Bernhard Fisseni for the suggestion.
800 + Improve raw tex parsing. Note that the Markdown reader is also
801 affected by the `latex_macros` extension changes described below
802 under the LaTeX reader.
804 * LaTeX reader:
806 + `latex_macros` extension changes (#4179). Don't pass through macro
807 definitions themselves when `latex_macros` is set. The macros
808 have already been applied. If `latex_macros` is enabled, then
809 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
810 a macro definition, and will update pandoc's internal macro map
811 accordingly, but the empty string will be returned.
812 + Export `tokenize`, `untokenize` (API change).
813 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
814 + Refactored `inlineCommand`.
815 + Fix bug in tokenizer. Material following `^^` was
816 dropped if it wasn't a character escape. This only affected
817 invalid LaTeX, so we didn't see it in the wild, but it appeared
818 in a QuickCheck test failure.
819 + Fix regression in LateX tokenization (#4159). This mainly affects the
820 Markdown reader when parsing raw LaTeX with escaped spaces.
821 + Add tests of LaTeX tokenizer.
822 + Support `\foreignlanguage` from babel.
823 + Be more tolerant of `&` character (#4208). This allows us to parse
824 unknown tabular environments as raw LaTeX.
826 * Muse reader (Alexander Krotov):
828 + Parse anchors immediately after headings as IDs.
829 + Require that note references does not start with 0.
830 + Parse empty comments correctly.
832 * Org reader (Albert Krewinkel):
834 + Fix asterisks-related parsing error (#4180).
835 + Support minlevel option for includes (#4154). The level of headers
836 in included files can be shifted to a higher level by specifying a
837 minimum header level via the `:minlevel` parameter. E.g.
838 `#+include: "tour.org" :minlevel 1` will shift the headers in
839 tour.org such that the topmost headers become level 1 headers.
840 + Break-up org reader test file into multiple modules.
842 * OPML reader:
844 + Enable raw HTML and other extensions by default for notes
845 (#4164). This fixes a regression in 2.0. Note that extensions can
846 now be individually disabled, e.g. `-f opml-smart-raw_html`.
848 * RST reader:
850 + Allow empty list items (#4193).
851 + More accurate parsing of references (#4156). Previously we erroneously
852 included the enclosing backticks in a reference ID (#4156). This
853 change also disables interpretation of syntax inside references, as
854 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
856 * Docx reader:
858 + Continue lists after interruption (#4025, Jesse Rosenthal).
859 Docx expects that lists will continue where they left off after an
860 interruption and introduces a new id if a list is starting again. So
861 we keep track of the state of lists and use them to define a "start"
862 attribute, if necessary.
863 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
864 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
865 #4190).
867 * Plain writer:
869 + Don't linkify table of contents.
871 * RST writer:
873 + Fix anchors for headers (#4188). We were missing an `_`.
875 * PowerPoint writer (Jesse Rosenthal):
877 + Treat lists inside BlockQuotes as lists. We don't yet produce
878 incremental lists in PowerPoint, but we should at least treat lists
879 inside BlockQuotes as lists, for compatibility with other slide formats.
880 + Add ability to force size. This replaces the more specific
881 `blockQuote runProp`, which only affected the size of blockquotes. We
882 can use this for notes, etc.
883 + Implement notes. This currently prints all notes on a final slide.
884 Note that at the moment, there is a danger of text overflowing the
885 note slide, since there is no logic for adding further slides.
886 + Implement basic definition list functionality to PowerPoint writer.
887 + Don't look for default template file for Powerpoint (#4181).
888 + Add pptx to isTextFormat list. This is used to check standalone
889 and not writing to the terminal.
890 + Obey slide level option (Jesse Rosenthal).
891 + Introduce tests.
893 * Docx writer:
895 + Ensure that `distArchive` is the one that comes with pandoc
896 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
897 dir) would be used instead, and this could cause problems because a
898 user-modified docx sometimes lacks vital sections that we count
899 on the `distArchive` to supply.
901 * Org writer:
903 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
904 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
905 Alexander Krotov). Otherwise they can be interpreted as footnote
906 definitions.
908 * Muse writer (Alexander Krotov):
910 + Don't wrap note references to the next line (#4172).
912 * HTML writer:
914 + Use br elements in line blocks instead of relying on CSS
915 (#4162). HTML-based templates have had the custom CSS for
916 `div.line-block` removed. Those maintaining custom templates will want
917 to remove this too. We still enclose line blocks in a div with class
918 `line-block`.
920 * LaTeX writer:
922 + Use `\renewcommand` for `\textlatin` with babel (#4161).
923 This avoids a clash with a deprecated `\textlatin` command defined
924 in Babel.
925 + Allow fragile=singleslide attribute in beamer slides (#4169).
926 + Use `\endhead` after `\toprule` in headerless tables (#4207).
928 * FB2 writer:
930 + Add cover image specified by `cover-image` meta (Alexander Krotov,
931 #4195).
933 * JATS writer (Hamish Mackenzie):
935 + Support writing `<fig>` and `<table-wrap>` elements
936 with `<title>` and `<caption>` inside them by using Divs with class set
937 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
938 title is included as a Heading so the constraint on where Heading can
939 occur is also relaxed.
940 + Leave out empty alt attributes on links.
941 + Deduplicate image mime type code.
942 + Make `<p>` optional in `<td>` and `<th>` (#4178).
943 + Self closing tags for empty xref (#4187).
944 + Improve support for code language.
946 * Custom writer:
948 + Use init file to setup Lua interpreter (Albert Krewinkel).
949 The same init file (`data/init`) that is used to setup the Lua
950 interpreter for Lua filters is also used to setup the interpreter of
951 custom writers.lua.
952 + Define instances for newtype wrapper (Albert Krewinkel). The custom
953 writer used its own `ToLuaStack` instance definitions, which made
954 it difficult to share code with Lua filters, as this could result
955 in conflicting instances. A `Stringify` wrapper is introduced to
956 avoid this problem.
957 + Added tests for custom writer.
958 + Fixed definition lists and tables in `data/sample.lua`.
960 * Fixed regression: when target is PDF, writer extensions were being
961 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
962 did not work properly.
964 * Lua modules (Albert Krewinkel):
966 + Add `pandoc.utils` module, to hold utility functions.
967 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
968 define the `pandoc` lua module.
969 + Make a Haskell module for each Lua module. Move definitions for the
970 `pandoc.mediabag` modules to a separate Haskell module.
971 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
972 + Add function `pandoc.utils.hierarchicalize` (convert list of
973 Pandoc blocks into (hierarchical) list of Elements).
974 + Add function `pandoc.utils.normalize_date` (parses a date and
975 converts it (if possible) to "YYYY-MM-DD" format).
976 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
977 of numbers below 4000 into roman numerals).
978 + Add function `pandoc.utils.stringify` (converts any AST element
979 to a string with formatting removed).
980 + `data/init.lua`: load `pandoc.utils` by default
981 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
982 utility functions are converted from hybrid lua/haskell functions
983 into full Haskell functions. This avoids the need for intermediate
984 `_pipe`/`_read` helper functions, which have dropped.
985 + pandoc.lua: re-add missing MetaMap function. This was a bug
986 introduced in version 2.0.4.
988 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
989 a pure way to insert an ersatz file into a `FileTree`. In addition, we
990 normalize paths both on insertion and on lookup.
992 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
994 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
996 * Text.Pandoc.Extensions: Alphabetical order constructors for
997 `Extension`. This makes them appear in order in `--list-extensions`.
999 * Allow lenient decoding of latex error logs, which are not always
1000 properly UTF8-encoded (#4200).
1002 * Update latex template to work with recent versions of beamer.
1003 The old template produced numbered sections with some recent
1004 versions of beamer. Thanks to Thomas Hodgson.
1006 * Updated reference.docx (#4175). Instead of just "Hello, world", the
1007 document now contains exemplars of most of the styles that have an
1008 effect on pandoc documents. This makes it easier to see the effect
1009 of style changes.
1011 * Removed `default.theme` data file (#4096). It is no longer needed now
1012 that we have `--print-highlight-style`.
1014 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
1015 We still need this for the alpine static linux build, since
1016 we don't have ghc 8.2.2 for that yet.
1018 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
1019 can put flag settings for pandoc-citeproc there.
1021 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
1022 make releases easier.
1024 * MANUAL.txt:
1026 + Add note on what formats have `+smart` by default.
1027 + Use native syntax for custom-style (#4174, Mauro Bieg).
1028 + Introduce dedicated Extensions section, since some extensions
1029 affect formats other than markdown (Mauro Bieg, #4204).
1030 + Clarify default html output for `--section-divs` (Richard Edwards).
1032 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
1033 Closes jgm/pandoc-website#16.
1035 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
1037pandoc (2.0.5)
1039 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
1040 generated with `--print-highlight-style` (#4133). Improve JSON
1041 serialization of styles.
1043 * Fix CSS issues involving line numbers (#4128).
1044 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
1045 Highlighting CSS no longer sets a generic color for pre and code; we only
1046 set these for class `sourceCode`.
1048 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
1050 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
1051 It works following the standard Pandoc conventions for making other
1052 sorts of slides. Caveats:
1054 + Syntax highlighting is not yet implemented. (This is difficult
1055 because there are no character classes in Powerpoint.)
1056 + Footnotes and Definition lists are not yet implemented. (Notes will
1057 usually take the form of a final slide.
1058 + Image placement and auto-resizing has a few glitches.
1059 + Reference powerpoint files don't work dependably from the command
1060 line. This will be implemented, but at the moment users are advised
1061 to change themes from within Powerpoint.
1063 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
1064 This is for functions used by both Powerpoint and Docx writers.
1066 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
1068 * Add `empty_paragraphs` extension.
1070 + Deprecate `--strip-empty-paragraphs` option. Instead we now
1071 use an `empty_paragraphs` extension that can be enabled on
1072 the reader or writer. By default, disabled.
1073 + Add `Ext_empty_paragraphs` constructor to `Extension`.
1074 + Revert "Docx reader: don't strip out empty paragraphs."
1075 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
1076 + Implement `empty_paragraphs` extension in docx reader and writer,
1077 opendocument writer, HTML reader and writer.
1078 + Add tests for `empty_paragraphs` extension.
1080 * Markdown reader:
1082 + Don't parse native div as table caption (#4119).
1083 + Improved computation of column widths in pipe tables.
1084 Pipe tables with lines longer than the text width (as set
1085 by `--columns`) are now scaled to text width, with the relative
1086 widths of columns determined by the ratios between the
1087 header lines. Previously we computed column widths using
1088 the ratio of header line lengths to column width, so that
1089 tables with narrow header lines were extremely thin, which
1090 was very rarely the desired result.
1092 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
1093 as long as it's not followed by a blank line. This has been fixed at the
1094 tokenizer level.
1096 * Muse reader (Alexander Krotov):
1098 + Add test for `#disable-tables` directive in Emacs mode.
1099 + Don't allow emphasis to be preceded by letter.
1100 + Add underline support in Emacs Muse mode..
1101 + Support multiline directives in Amusewiki mode
1103 * Man writer: omit internal links (#4136). That is, just print the link
1104 text without the URL.
1106 * Markdown reader: accept processing instructions as raw HTML (#4125).
1108 * Lua filters (Albert Krewinkel):
1110 + Use script to initialize the interpreter. The file `init.lua` is
1111 used to initialize the Lua interpreter which is used in Lua filters.
1112 This gives users the option to require libraries which they want to
1113 use in all of their filters, and to extend default modules.
1114 + Fix package loading for Lua 5.1. The list of package searchers is
1115 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
1116 in Lua 5.2 and later.
1117 + Refactor lua module handling. The integration with Lua's package/module
1118 system is improved: A pandoc-specific package searcher is prepended to
1119 the searchers in `package.searchers`. The modules `pandoc` and
1120 `pandoc.mediabag` can now be loaded via `require`.
1121 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
1122 function which makes using Haskell functions as package loaders much
1123 easier.
1125 * reveal.js template: add title-slide identifier to title slide (#4120).
1126 This allows it to be styled more easily.
1128 * LaTeX template: Added support for `pagestyle` variable (#4135,
1129 Thomas Hodgson)
1131 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
1132 error on linux).
1135pandoc (2.0.4)
1137 * Add `--print-highlight-style` option. This generates a JSON version
1138 of a highlighting style, which can be saved as a `.theme` file, modified,
1139 and used with `--highlight-style` (#4106, #4096).
1141 * Add `--strip-empty-paragraphs` option. This works for any input format.
1142 It is primarily intended for use with docx and odt documents where
1143 empty paragraphs have been used for inter-paragraph spaces.
1145 * Support `--webtex` for `gfm` output.
1147 * Recognize `.muse` file extension.
1149 * Support beamer `\alert` in LaTeX reader. Closes #4091.
1151 * Docx reader: don't strip out empty paragraphs (#2252).
1152 Users who have a conversion pipeline from docx may want to consider adding
1153 `--strip-empty-paragraphs` to the command line.
1155 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
1157 * Muse reader (Alexander Krotov):
1159 + Parse markup in definition list terms.
1160 + Allow definition to end with EOF.
1161 + Make code blocks round trip.
1162 + Drop common space prefix from list items.
1163 + Add partial round trip test.
1164 + Don't interpret XML entities.
1165 + Remove `nested`.
1166 + Parse `~~` as non-breaking space in Emacs mode.
1167 + Correctly remove indentation from notes. Exactly one space is
1168 required and considered to be part of the marker.
1169 + Allow list items to be empty.
1170 + Add ordered list test.
1171 + Add more multiline definition tests.
1172 + Don't allow blockquotes within lists.
1173 + Fix reading of multiline definitions.
1174 + Add inline `<literal>` support.
1175 + Concatenate inlines of the same type
1177 * Docx writer: allow empty paragraphs (#2252).
1179 * CommonMark/gfm writer:
1181 + Use raw html for native divs/spans (#4113). This allows a pandoc
1182 markdown native div or span to be rendered in gfm using raw html tags.
1183 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
1184 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
1186 * Muse writer (Alexander Krotov):
1188 + Test that inline math conversion result is normalized.
1189 Without normalization this test produced
1190 `<em>a</em><em>b</em><em>c</em>`.
1191 + Improve inline list normalization and move to writer.
1192 + Escape hash symbol.
1193 + Escape `----` to avoid accidental horizontal rules.
1194 + Escape only `</code>` inside code tag.
1195 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
1197 * LaTeX writer:
1199 + Allow specifying just width or height for image size.
1200 Previously both needed to be specified (unless the image was
1201 being resized to be smaller than its original size).
1202 If height but not width is specified, we now set width to
1203 textwidth. If width but not height is specified, we now set
1204 height to textheight. Since we have `keepaspectratio`, this
1205 yields the desired result.
1206 + Escape `~` and `_` in code with `--listings` (#4111).
1208 * HTML writer: export `tagWithAttributes`. This is a helper allowing
1209 other writers to create single HTML tags.
1211 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
1212 converting the case as needed in LaTeX and ConTeXt writers.
1214 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
1215 so that it no longer produces empty `Para`'s as an artifact.
1217 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
1218 This gives us automatic normalization, so we don't get
1219 for example two consecutive Spaces.
1221 * Include default CSS for 'underline' class in HTML-based templates.
1223 * revealjs template: add `tex2jax` configuration for the
1224 math plugin. With the next release of reveal.js, this will
1225 fix the problem of `$`s outside of math contexts being
1226 interpreted as math delimiters (#4027).
1228 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
1230 + Add basic lua List module (#4099, #4081). The List module is
1231 automatically loaded, but not assigned to a global variable. It can be
1232 included in filters by calling `List = require 'List'`. Lists of blocks,
1233 lists of inlines, and lists of classes are now given `List` as a metatable,
1234 making working with them more convenient. E.g., it is now possible to
1235 concatenate lists of inlines using Lua's concatenation operator `..`
1236 (requires at least one of the operants to have `List` as a metatable):
1238 function Emph (emph)
1239 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
1240 return pandoc.Span(emph.content .. s)
1241 end
1243 The `List` metatable is assigned to the tables which get passed to
1244 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
1245 enables the use of the resulting objects as lists.
1246 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
1247 Pandoc and Meta elements are now pushed by calling the respective
1248 constructor functions of the pandoc Lua module. This makes serialization
1249 consistent with the way blocks and inlines are pushed to lua and allows
1250 to use List methods with the `blocks` value.
1251 + Add documentation for pandoc.List in `lua-filters.md`.
1253 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
1254 `&` (but not a valid entity) following them (#4094, #4088).
1256 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
1257 when `numberLines` is used (#4103).
1259 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
1260 requiring a leading 0 on single-digit days.
1262 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
1263 Bieg, #4095).
1265 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
1266 Previously we only mentioned `--latexmathml`, even if `-m` was
1267 used.
1269 * Changelog: fix description of lua filters in 2.0 release
1270 (Albert Krewinkel). Lua filters were initially run *after* conventional
1271 (JSON) filters. However, this was changed later to make it easier to deal
1272 with files in the mediabag. The changelog is updated to describe that
1273 feature of the 2.0 release correctly.
1275 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
1276 #4085). This reduces compile time and memory usage significantly.
1278 * `lua-filters.md`: Added tikz filter example.
1280 * Create alternative zip file for macOS binaries.
1282 * Create alternative zip file for Windows binaries.
1284 * Update INSTALL.md since we now provide zips for binaries.
1286 * Relax `http-types` dependency (Justus Sagemüller, #4084).
1288 * Add `epub.md`, `getting-started.md` to docs. These used to live in
1289 the website repo.
1291 * Add `packages` target to Makefile.
1293 * Bump bounds for binary, http-types, tasty-hunit
1295pandoc (2.0.3)
1297 * Lua filters: preload text module (Albert Krewinkel, #4077).
1298 The `text` module is preloaded in lua. The module contains some UTF-8
1299 aware string functions, implemented in Haskell. The module is loaded on
1300 request only, e.g.:
1302 text = require 'text'
1303 function Str (s)
1304 s.text = text.upper(s.text)
1305 return s
1306 end
1308 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
1309 #4071). Attribute lists are represented as associative lists in Lua. Pure
1310 associative lists are awkward to work with. A metatable is attached to
1311 attribute lists, allowing to access and use the associative list as if
1312 the attributes were stored in as normal key-value pair in table.
1313 Note that this changes the way `pairs` works on attribute lists. Instead
1314 of producing integer keys and two-element tables, the resulting iterator
1315 function now returns the key and value of those pairs. Use `ipairs` to
1316 get the old behavior. Warning: the new iteration mechanism only works if
1317 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
1319 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
1320 This fixes a bug where pandoc would stop parsing a URI with an
1321 empty attribute: for example, `&a=&b=` wolud stop at `a`.
1322 (The uri parser tries to guess which punctuation characters
1323 are part of the URI and which might be punctuation after it.)
1325 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
1327 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
1328 `WriterOptions`.
1329 + Reimplemented `isEnabled` function from `Options.hs` to accept both
1330 `ReaderOptions` and `WriterOptions`.
1331 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
1333 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
1334 behavior for `muse`. New `Ext_amuse` constructor for
1335 `Extension`. Note: this is switched on by default; for
1336 Emacs behavior, use `muse-amuse`.
1338 * Muse reader (Alexander Krotov):
1340 + Count only one space as part of list item marker.
1341 + Produce SoftBreaks on newlines. Now wrapping can be preserved
1342 with `--wrap=preserve`.
1343 + Add Text::Amuse footnote extensions. Footnote end is indicated by
1344 indentation, so footnotes can be placed anywhere in the text,
1345 not just at the end of it.
1346 + Accept Emacs Muse definition lists when `-amuse`.
1347 Emacs Muse does not require indentation.
1349 * HTML reader:
1351 + Ensure we don't produce level 0 headers (#4076), even for chapter
1352 sections in epubs. This causes problems because writers aren't set
1353 up to expect these.
1354 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
1355 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
1356 `markdown` or `html` `+tex_math_single_backslash`.
1357 + Parse div with class `line-block` as LineBlock.
1358 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
1360 * MANUAL: clarify that math extensions work with HTML.
1361 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
1362 will work with HTML as well as Markdown.
1364 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
1365 #4067).
1367 * RST reader: better support for 'container' directive (#4066).
1368 Create a div, incorporate name attribute and classes.
1370 * LaTeX reader:
1372 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
1373 `rr`. We now expand it like a macro.
1374 + Allow optional args for parbox (#4056).
1375 + Allow optional arguments on `\footnote` (#4062).
1377 * EPUB writer: Fixed path for cover image (#4069). It was previously
1378 `media/media/imagename`, and should have been `media/imagename`.
1380 * Markdown writer: fix bug with doubled footnotes in grid tables
1381 (#4061).
1383 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
1384 Otherwise we seem to get an error; biblatex wants polyglossia
1385 language to be defined.
1387 * Added examples to lua filters documentation.
1390pandoc (2.0.2)
1392 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
1393 `--mimetex`, `--jsmath`.
1395 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
1396 leading to invalid XML in default JATS output with pandoc-citeproc.
1398 * `lua-filters.md`: use real-world man page filter as example.
1400 * Add lua filter functions `walk_inline` and `walk_block`
1401 in the pandoc module, to apply filters inside particular
1402 inline and block elements.
1404 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
1405 into new internal module `Text.Pandoc.Lua.Filter`.
1407 * Markdown reader:
1409 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
1410 This brings our handling of them into alignment with CommonMark's.
1411 + Fix YAML metadata with "chomp" (`|-`). Previously if a
1412 YAML block under `|-` contained a blank line, pandoc would
1413 not parse it as metadata.
1415 * Removed `etc.` from abbreviations file. Often `etc.` ends a
1416 sentence, and we want the period to be treated as a
1417 sentence-ending period.
1419 * Fix regression with `--metadata` (#4054). Values specified with
1420 `--metadata` should replace a metadata value set in the document
1421 itself, rather than creating a list including a new value.
1423 * EPUB writer:
1425 + Fix EPUB OCF structure. #3720 had been improperly implemented.
1426 + Fix modified paths for raw HTML tags (src, poster, etc.)
1427 (#4050, #4055). This had not been updated for the new EPUB
1428 container layout, with a separate text/ subdirectory.
1429 + Fix image paths with empty `--epub-subdirectory`.
1431 * Miscellaneous code cleanup (Alexander Krotov).
1433 * Use pandoc-types 1.17.3, which adds `Walkable` instances
1434 for `[Block] Block` and `[Inline] Inline`.
1436 * Remove obsolete `stack.full.yaml` (#4052).
1438 * Change to using pandoc-citeproc 0.12.1 in binary packages.
1440 * Consolidate math output method documentation (#4049, Mauro Bieg).
1442 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
1444 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
1445 Haskell filters. This is easier and faster.
1447 * Improved `INSTALL.md`.
1449 * Update commands to extract deb archive on Linux (#4043, Salim B).
1452pandoc (2.0.1.1)
1454 * Improved fix to #3989 (parsing of HTML tags containing
1455 `>` in an attribute or comment). The previous fix (in 2.0.1) only
1456 worked in certain cases.
1458 * FB2 writer (Alexander Krotov):
1460 + Add `unrecognised` genre to `<title-info>`
1461 (Alexander Krotov). XML schema requires at least one genre.
1462 + Remove `<annotation>` from `<body>`.
1464 * CommonMark writer: fix strikethrough for `gfm` (#4038).
1466 * Use texmath 0.10, which adds support for a wider range of
1467 symbols and fixes default column alignments in MathML
1468 and OMML.
1470 * Highlighting fixes, using skylighting 0.4.3.2:
1472 + Fix invalid CSS.
1473 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
1474 + Ensure that code lines don't get duplicate identifiers (#4031).
1475 The line identifiers are built using the code block's identifier
1476 as a prefix. If the code block has null identifier, we use
1477 `cb1`, `cb2`, etc.
1479 * Added a few abbreviations to `data/abbreviations`,
1480 and sorted the list (#3984, Wandmalfarbe).
1482 * Improved support for columns in HTML writer (#4028).
1484 + Remove `width` attribute from the `div`.
1485 + Remove space between `<div class="column">` elements,
1486 since this prevents columns whose widths sum to 100%
1487 (the space takes up space).
1488 + Move as much as possible of the CSS to the template.
1489 + Ensure that all the HTML-based templates (including epub)
1490 contain the CSS for columns.
1491 + Columns default to 50% width unless they are given a width
1492 attribute. So if you want two equal-width columns, you
1493 can use a div with class `column` and no `width` attribute.
1495 * SelfContained: use `base64` for css links with media attribute (#4026).
1496 This fixes `--self-contained` with S5.
1498 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
1500 * Issue INFO, not WARNING, when a .sty file cannot be
1501 read in LaTeX reader. It is normally not an issue requiring
1502 a fix from the user if .sty files are not found.
1504 * INSTALL.md: MacOS instructions needed xar -f (adam234).
1506 * MANUAL.txt:
1508 + Clarify that --setext-headers doesn't affect gfm output (#4035).
1509 + Clarify what is needed to open and close a div in `fenced_divs`
1510 (#4039, Tristano Ajmone).
1511 + Removed reference to `default.beamer` in docs (#4024).
1512 Also added mention of other templates affecting PDF output
1513 with different settings.
1515pandoc (2.0.1)
1517 * Fixed regression in parsing of HTML comments in markdown and other
1518 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
1519 The parser stopped at the first `>` character, even if it wasn't
1520 the end of the comment.
1522 * Creole reader (Sascha Wilde):
1524 + Fix some minor typos and formatting.
1525 + Add additional test on nowiki-block after para.
1526 + Fix lists with trailing white space.
1528 * LaTeX reader: handle `%` comment right after command.
1529 For example, `\emph%`.
1531 * Markdown reader: make sure fenced div closers work in lists.
1532 Previously the following failed:
1534 ::: {.class}
1535 1. one
1536 2. two
1537 :::
1539 and you needed a blank line before the closing `:::`.
1541 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
1542 enabled, Divs will be rendered as fenced divs.
1544 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
1545 (#4016).
1547 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
1548 Note: this change may require some changes in CSS rules.
1549 `footnoteRef` has become `footnote-ref`, `titleslide` has
1550 become `title-slide`, and `footnoteBack` has become `footnote-back`.
1552 * JATS writer: Properly pass through author metadata (#4020).
1554 * FB2 writer (Alexander Krotov):
1556 + Write blocks outside of `<p>` in definitions.
1557 + Make bullet lists consistent with ordered lists, repeating
1558 the marker for the outer list rather than indenting sublists,
1559 since indentation does not work in readers.
1560 + Add new style FB2 tests.
1562 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
1563 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
1564 to 'cm'.
1566 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
1568 * Fix broken reference links in manual (Andrew Dunning, #4014)
1570 * Fixed example of slide columns structure in changelog (#4015).
1571 Also documented this feature in MANUAL.txt.
1574pandoc (2.0.0.1)
1576 * EPUB writer:
1578 + Fixed filepaths for nonstandard epub-subdirectory values.
1579 + Ensure that epub2 is recognized as a non-text format,
1580 so that a template is used.
1581 + Don't include "prefix" attribute for ibooks for epub2.
1582 It doesn't validate.
1583 + Fix stylesheet paths; previously we had an incorrect
1584 stylesheet path for the cover page and nav page.
1586 * LaTeX reader:
1588 + Insert space when needed in macro expansion (#4007).
1589 Sometimes we need to insert a space after a control sequence
1590 to prevent it merging with a following letter.
1591 + Allow unbraced arguments for macros (#4007).
1592 + Allow body of macro definition to be unbraced (#4007).
1594 * Linux package build: ensure that pandoc-citeproc is statically linked.
1596 * trypandoc: add native, ms.
1598pandoc (2.0)
1600 [new features]
1602 * New output format `ms` (groff ms). Complete support, including
1603 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
1604 texmath's new eqn writer to convert math to eqn format, so a ms file
1605 produced with this writer should be processed with `groff -ms -e` if
1606 it contains math.
1608 * New output format `jats` (Journal Article Tag Suite). This is an XML
1609 format used in archiving and publishing articles. Note that a
1610 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
1611 unless a stylesheet is specified using `--css`.
1613 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
1614 This uses bindings to GitHub's fork of cmark, so it should parse
1615 gfm exactly as GitHub does (excepting certain postprocessing
1616 steps, involving notifications, emojis, etc.). `markdown_github`
1617 has been deprecated in favor of `gfm`.
1619 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
1621 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
1622 This uses bindings to GitHub's fork of cmark. `markdown_github`
1623 has been deprecated in favor of `gfm`.
1625 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
1627 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
1629 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
1630 Note that there is a new data file, `data/vimwiki.css`, which can
1631 be used to display the HTML produced by this reader and
1632 pandoc's HTML writer in the style of vimwiki's own HTML
1633 export.
1635 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
1637 * New syntax for Divs, with `fenced_divs` extension enabled by
1638 default (#168). This gives an attractive, plain-text way to create
1639 containers for block-level content.
1641 * Added new syntax for including raw content in any output format,
1642 enabled by the `raw_attribute` extension (which is on by default
1643 for `markdown` and `multimarkdown`). The syntax is the same as
1644 for fenced code blocks or code inlines, only with `{=FORMAT}` for
1645 attributes, where `FORMAT` is the name of the output format
1646 (e.g., `ms`, `html`).
1648 * Implement multicolumn support for slide formats (#1710).
1649 The structure expected is:
1651 :::::::::::::: {.columns}
1652 ::: {.column width="40%"}
1653 contents...
1654 :::
1655 ::: {.column width="60%"}
1656 contents...
1657 :::
1658 ::::::::::::::
1660 Support has been added for beamer and all HTML slide formats.
1662 * Allows line comments in templates, beginning with `$--` (#3806).
1663 (Requires doctemplates 0.2.1.)
1665 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
1666 (Stefan Dresselhaus, #3663, #2097).
1668 * Add `--log` option to save log messages in JSON format to a file (#3392).
1670 * Add `--request-header` option, to set request headers when pandoc
1671 makes HTTP requests to fetch external resources. For example:
1672 `--request-header User-Agent:blah`.
1674 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
1675 option works like `--filter` but takes pathnames of special lua filters
1676 and uses the lua interpreter baked into pandoc, so that no external
1677 interpreter is needed. Note that lua filters are all applied before
1678 regular filters, regardless of their position on the command line.
1679 For documentation of lua filters, see `doc/lua-filters.md`.
1681 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
1682 This contains a JSON representation of `ReaderOptions`, so filters
1683 can access it.
1685 * Support creation of pdf via groff `ms` and pdfroff.
1686 `pandoc -t ms -o output.pdf input.txt`.
1688 * Support for PDF generation via HTML and `weasyprint` or `prince`
1689 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
1691 * Added `--epub-subdirectory` option (#3720). This specifies the
1692 subdirectory in the OCF container that holds the EPUB specific content.
1693 We now put all EPUB related content in an `EPUB/` subdirectory by default
1694 (later this will be configurable).
1696 ```
1697 mimetype
1698 META-INF/
1699 com.apple.ibooks.display-options.xml
1700 container.xml
1701 EPUB/ <<--configurable-->>
1702 fonts/ <<--static-->>
1703 font.otf
1704 media/ <<--static-->>
1705 cover.jpg
1706 fig1.jpg
1707 styles/ <<--static-->>
1708 stylesheet.css
1709 content.opf
1710 toc.ncx
1711 text/ <<--static-->>
1712 ch001.xhtml
1713 ```
1715 * Added `--resource-path=SEARCHPATH` command line option (#852).
1716 SEARCHPATH is separated by the usual character, depending on OS
1717 (: on unix, ; on windows). Default resource path is just working
1718 directory. However, the working directory must be explicitly
1719 specified if the `--resource-path` option is used.
1721 * Added `--abbreviations=FILE` option for custom abbreviations file
1722 (#256). Default abbreviations file (`data/abbreviations`) contains
1723 a list of strings that will be recognized by pandoc's
1724 Markdown parser as abbreviations. (A nonbreaking space will
1725 be inserted after the period, preventing a sentence space in
1726 formats like LaTeX.) Users can override the default by putting a file
1727 abbreviations in their user data directory (`~/.pandoc` on *nix).
1729 * Allow a theme file as argument to `--highlight-style`.
1730 Also include a sample, `default.theme`, in `data/`.
1732 * Allow `--syntax-definition` option for dynamic loading of syntax
1733 highlighting definitions (#3334).
1735 * Lists in `markdown` by default now use the CommonMark variable
1736 nesting rules (#3511). The indentation required for a block-level
1737 item to be included in a list item is no longer fixed, but is
1738 determined by the first line of the list item. To be included in
1739 the list item, a block must be indented to the level of the first
1740 non-space content after the list marker. Exception: if are 5 or more
1741 spaces after the list marker, then the content is interpreted as an
1742 indented code block, and continuation paragraphs must be indented
1743 two spaces beyond the end of the list marker. See the CommonMark
1744 spec for more details and examples.
1746 Documents that adhere to the four-space rule should, in most cases,
1747 be parsed the same way by the new rules. Here are some examples
1748 of texts that will be parsed differently:
1750 - a
1751 - b
1753 will be parsed as a list item with a sublist; under the four-space
1754 rule, it would be a list with two items.
1756 - a
1758 code
1760 Here we have an indented code block under the list item, even though it
1761 is only indented six spaces from the margin, because it is four spaces
1762 past the point where a continuation paragraph could begin. With the
1763 four-space rule, this would be a regular paragraph rather than a code
1764 block.
1766 - a
1768 code
1770 Here the code block will start with two spaces, whereas under
1771 the four-space rule, it would start with `code`. With the four-space
1772 rule, indented code under a list item always must be indented eight
1773 spaces from the margin, while the new rules require only that it
1774 be indented four spaces from the beginning of the first non-space
1775 text after the list marker (here, `a`).
1777 This change was motivated by a slew of bug reports from people
1778 who expected lists to work differently (#3125, #2367, #2575, #2210,
1779 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
1780 of CommonMark (now used by GitHub, for example). Those who
1781 prefer the old behavior can use `-f markdown+four_space_rule`.
1783 * Added `four_space_rule` extension. This triggers the old pandoc
1784 parsing rule for content nested under list items (the "four space
1785 rule").
1787 * Added `spaced_reference_links` extension (#2602). It allows whitespace
1788 between the two parts of a reference link: e.g.
1790 [a] [b]
1792 [b]: url
1794 This was previously enabled by default; it is now forbidden by default.
1796 * Add `space_in_atx_header` extension (#3512). This is enabled by default
1797 in pandoc and GitHub markdown but not the other flavors.
1798 This requires a space between the opening #'s and the header
1799 text in ATX headers (as CommonMark does but many other implementations
1800 do not). This is desirable to avoid falsely capturing things like
1802 #hashtag
1804 or
1806 #5
1808 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
1809 #3431).
1811 * Allow ibooks-specific metadata in epubs (#2693). You can now have
1812 the following fields in your YAML metadata, and it will be treated
1813 appropriately in the generated EPUB:
1815 ```
1816 ibooks:
1817 version: 1.3.4
1818 specified-fonts: false
1819 ipad-orientation-lock: portrait-only
1820 iphone-orientation-lock: landscape-only
1821 binding: true
1822 scroll-axis: vertical
1823 ```
1826 [behavior changes]
1828 * Reader functions no longer presuppose that CRs have been
1829 stripped from the input. (They strip CRs themselves, before
1830 parsing, to simplify the parsers.)
1832 * Added support for translations (localization) (#3559).
1833 Currently this only affects the LaTeX reader, for things
1834 like `\figurename`. Translation data files for 46 languages
1835 can be found in `data/translations`.
1837 * Make `--ascii` work with DocBook output too.
1839 * Rename `--latex-engine` to `--pdf-engine`,
1840 and `--latex-engine-opt` to `--pdf-engine-opt`.
1842 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
1843 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
1844 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
1845 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
1847 * With `--filter` R filters are now recognized, even if they are
1848 not executable (#3940, #3941, Andrie de Vries).
1850 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
1852 * Make epub an alias for epub3, not epub2.
1854 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
1855 Multiple stylesheets may be used. Stylesheets will be taken both from
1856 `--css` and from the `stylesheet` metadata field (which can contain
1857 either a file path or a list of them).
1859 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
1860 The argument was for a bridge JavaScript that used to be necessary
1861 in 2004. We have removed the script already.
1863 * `--katex` improvements. The latest version is used, and the
1864 autoload script is loaded by default.
1866 * Change MathJax CDN default since old one is shutting down (#3544).
1867 Note: The new URL requires a version number, which we'll have
1868 to update manually in subsequent pandoc releases in order to
1869 take advantage of mathjax improvements.
1871 * `--self-contained`: don't incorporate elements with `data-external="1"`
1872 (#2656). You can leave an external link as it is by adding the attribute
1873 data-external="1" to the element. Pandoc will then not try to
1874 incorporate its content when `--self-contained` is used. This is
1875 similar to a feature already supported by the EPUB writer.
1877 * Allow `--extract-media` to work with non-binary input formats
1878 (#1583, #2289). If `--extract-media` is supplied with a non-binary
1879 input format, pandoc will attempt to extract the contents of all
1880 linked images, whether in local files, data: uris, or external uris.
1881 They will be named based on the sha1 hash of the contents.
1883 * Make `papersize: a4` work regardless of the case of `a4`.
1884 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
1886 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
1888 * Underlined elements are now treated consistently by readers
1889 (#2270, hftf); they are always put in a Span with class `underline`.
1890 This allows the user to treat them differently from other emphasis,
1891 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
1892 have been changed.
1894 * Improved behavior of `auto_identifiers` when there are explicit ids
1895 (#1745). Previously only autogenerated ids were added to the list
1896 of header identifiers in state, so explicit ids weren't taken
1897 into account when generating unique identifiers. Duplicated
1898 identifiers could result. This simple fix ensures that explicitly given
1899 identifiers are also taken into account.
1901 * Use `table-of-contents` for contents of toc, make `toc` a boolean
1902 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
1903 This allows you to set `toc: true` in the metadata; this
1904 previously produced strange results in some output formats.
1905 For backwards compatibility, `toc` is still set to the
1906 toc contents. But it is recommended that you update templates
1907 to use `table-of-contents` for the toc contents and `toc`
1908 for a boolean flag.
1910 * Change behavior with binary format output to stdout.
1911 Previously, for binary formats, output to stdout was disabled
1912 unless we could detect that the output was being piped (and not
1913 sent to the terminal). Unfortunately, such detection is not
1914 possible on Windows, leaving windows users no way to pipe binary
1915 output. So we have changed the behavior in the following way:
1917 + Output to stdout is allowed when it can be determined that
1918 the output is being piped (on non-Windows platforms).
1919 + If the `-o` option is not used, binary output is never sent
1920 to stdout by default; instead, an error is raised.
1921 + If `-o -` is used, binary output is sent to stdout, regardless
1922 of whether it is being piped. This works on Windows too.
1924 * Better error behavior: uses of `error` have been replaced by
1925 raising of `PandocError`, which can be trapped and handled by the
1926 calling program.
1928 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
1929 GitHub has two Markdown modes, one for long-form documents like READMEs
1930 and one for short things like issue coments. In issue comments, a line
1931 break is treated as a hard line break. In README, wikis, etc., it is
1932 treated as a space as in regular Markdown. Since pandoc is more likely to
1933 be used to convert long-form documents from GitHub Markdown,
1934 `-hard_line_breaks` is a better default.
1936 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
1938 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
1939 Previously they would be transmitted to the template without any
1940 escaping. Note that `--M title='*foo*'` yields a different result from
1942 ---
1943 title: *foo*
1944 ---
1946 In the latter case, we have emphasis; in the former case, just
1947 a string with literal asterisks (which will be escaped
1948 in formats, like Markdown, that require it).
1950 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
1952 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
1953 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
1954 it is valid HTML5. HTML4 is not affected. This will allow us to use
1955 custom attributes in pandoc without producing invalid HTML. (With help
1956 from Wandmalfarbe, #3817.)
1958 * Plain writer: improved super/subscript rendering. We now
1959 handle more non-digit characters for which there are
1960 sub/superscripted unicode characters. When unicode
1961 sub/superscripted characters are not available, we use
1962 `_(..)` or `^(..)` (#3518).
1964 * Docbook, JATS, TEI writers: print INFO message when omitting interior
1965 header (#3750). This only applies to section headers inside list items,
1966 e.g., which were otherwise silently omitted.
1968 * Change to `--reference-links` in Markdown writer (#3701). With
1969 `--reference-location` of `section` or `block`, pandoc will now repeat
1970 references that have been used in earlier sections. The Markdown
1971 reader has also been modified, so that *exactly* repeated references
1972 do not generate a warning, only references with the same label but
1973 different targets. The idea is that, with references after every block,
1974 one might want to repeat references sometimes.
1976 * ODT/OpenDocument writer:
1978 + Support `lang` attribute (#1667).
1979 + Added support for `--toc` (#2836). Thanks to @anayrat.
1981 * Docx writer:
1983 + `lang` meta, see #1667 (Mauro Bieg, #3515).
1984 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
1985 + Use `Table` rather than `Table Normal` for table style (#3275).
1986 `Table Normal` is the default table style and can't be modified.
1987 + Pass through comments (#2994). We assume that comments are defined as
1988 parsed by the docx reader:
1990 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
1991 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
1992 have a comment <span class="comment-end" id="0"></span>on it.
1994 We assume also that the id attributes are unique and properly
1995 matched between comment-start and comment-end.
1996 + Bookmark improvements. Bookmark start/end now surrounds content rather
1997 than preceding it. Bookmarks generated for Div with id
1998 (jgm/pandoc-citeproc#205).
1999 + Add `keywords` metadata to docx document properties (Ian).
2001 * RST writer: support unknown interpreted text roles by
2002 parsing them as `Span` with `role` attributes (#3407). This
2003 way they can be manipulated in the AST.
2005 * HTML writer:
2007 + Line block: Use class instead of style attribute (#1623). We now
2008 issue `<div class="line-block">` and include a default definition
2009 for `line-block` in the default templates, instead of hard-coding a
2010 `style` on the div.
2011 + Add class `footnoteBack` to footnote back references (Timm Albers).
2012 This allows for easier CSS styling.
2013 + Render SmallCaps as span with smallcaps class (#1592), rather than
2014 using a style attribute directly. This gives the user more flexibility
2015 in styling small caps in CSS.
2016 + With reveal.js we use `data-src` instead of `src` for images for
2017 lazy loading.
2018 + Special-case `.stretch` class for images in reveal.js (#1291).
2019 Now in reveal.js, an image with class `stretch` in a paragraph
2020 by itself will stretch to fill the whole screen, with no
2021 caption or figure environment.
2023 * Added warnings for non-rendered blocks to writers.
2025 * Writers now raise an error on template failure.
2027 * When creating a PDF via LaTeX, warn if the font is missing some
2028 characters (#3742).
2030 * Remove initial check for PDF-creating program (#3819).
2031 Instead, just try running it and raise the exception if it
2032 isn't found at that point. This improves things for users of Cygwin
2033 on Windows, where the executable won't be found by `findExecutable`
2034 unless `.exe` is added. The same exception is raised as before, but
2035 at a later point.
2037 * Readers issue warning for duplicate header identifiers (#1745).
2038 Autogenerated header identifiers are given suffixes so as not to clash
2039 with previously used header identifiers. But they may still coincide with
2040 an explicit identifier that is given for a header later in the document,
2041 or with an identifier on a div, span, link, or image. We now issue
2042 a warning in this case, so users can supply an explicit identifier.
2044 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
2045 and `raw_html` extensions.
2047 * Markdown reader:
2049 + Don't allow backslash + newline to affect block structure (#3730).
2050 Note that as a result of this change, the following, which formerly
2051 produced a header with two lines separated by a line break, will
2052 now produce a header followed by a paragraph:
2054 # Hi\
2055 there
2057 This may affect some existing documents that relied on
2058 this undocumented and unintended behavior. This change makes pandoc
2059 more consistent with other Markdown implementations, and with itself
2060 (since the two-space version of a line break doesn't work inside ATX
2061 headers, and neither version works inside Setext headers).
2064 * Org reader (Albert Krewinkel, unless noted):
2066 + Support `table.el` tables (#3314).
2067 + Support macros (#3401).
2068 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
2069 Recognized include types are `example`, `export`, `src`, and
2070 normal org file inclusion. Advanced features like line numbers
2071 and level selection are not implemented yet.
2072 + Interpret more meta value as inlines. The values of the following
2073 meta variables are now interpreted using org-markup instead of
2074 treating them as pure strings: `keywords` (comma-separated list of
2075 inlines), `subtitle` (inline values), `nocite` (inline values, can
2076 be repeated).
2077 + Support `\n` export option (#3940). This turns all newlines in the
2078 text into hard linebreaks.
2080 * RST reader:
2082 + Improved admonition support (#223). We no longer add an
2083 `admonition` class, we just use the class for the type of admonition,
2084 `note` for example. We put the word corresponding to the label in
2085 a paragraph inside a `Div` at the beginning of the admonition with
2086 class `admonition-title`. This is about as close as we can get to
2087 RST's own output.
2088 + Initial support of `.. table` directive. This allows adding captions
2089 to tables.
2090 + Support `.. line-block` directive. This is deprecated but may still
2091 be in older documents.
2092 + Support scale and align attributes of images (#2662).
2093 + Implemented implicit internal header links (#3475).
2094 + Support RST-style citations (#853). The citations appear at the end
2095 of the document as a definition list in a special div with id
2096 `citations`. Citations link to the definitions.
2097 + Recurse into bodies of unknown directives (#3432).
2098 In most cases it's better to preserve the content than
2099 to emit it. This isn't guaranteed to have good results;
2100 it will fail spectacularly for unknown raw or verbatim directives.
2101 + Handle chained link definitions (#262). For example,
2103 .. _hello:
2104 .. _goodbye: example.com
2106 Here both `hello` and `goodbye` should link to `example.com`.
2107 + Support anchors (#262). E.g.
2109 `hello`
2111 .. _hello:
2113 paragraph
2115 This is supported by putting "paragraph" in a `Div` with id `hello`.
2116 + Support `:widths:` attribute for table directive.
2117 + Implement csv-table directive (#3533). Most attributes are supported,
2118 including `:file:` and `:url:`.
2119 + Support unknown interpreted text roles by parsing them as Span
2120 with "role" attributes (#3407). This way they can be manipulated in
2121 the AST.
2123 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
2125 * LaTeX reader:
2127 + Implemented `\graphicspath` (#736).
2128 + Properly handle column prefixes/suffixes. For example, in
2129 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
2130 each cell will be interpreted as if it has a `$`
2131 before its content and a `$` after (math mode).
2132 + Handle komascript `\dedication` (#1845). It now adds a
2133 `dedication` field to metadata. It is up to the user to supply
2134 a template that uses this variable.
2135 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
2136 `sf`, `bf` (#3488). Spans with a class are used when there is
2137 nothing better.
2138 + Expand `\newenvironment` macros (#987).
2139 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
2140 + Better support for subfigure package (#3577).
2141 A figure with two subfigures turns into two pandoc
2142 figures; the subcaptions are used and the main caption
2143 ignored, unless there are no subcaptions.
2144 + Add support for \vdots (Marc Schreiber, #3607).
2145 + Add basic support for hyphenat package (Marc Schreiber, #3603).
2146 + Add basic `\textcolor` support (Marc Schreiber).
2147 + Add support for `tabularx` environment (Marc Schreiber, #3632).
2148 + Better handling of comments inside math environments (#3113).
2149 This solves a problem with commented out `\end{eqnarray}` inside
2150 an eqnarray (among other things).
2151 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
2152 is selected (#3692). Otherwise skip with a warning. This is better
2153 than trying to parse it as text!
2154 + Add `\colorbox` support (Marc Schreiber).
2155 + Set identifiers on Spans used for `\label`.
2156 + Have `\setmainlanguage` set `lang` in metadata.
2157 + Support etoolbox's `\ifstrequal`.
2158 + Support `plainbreak`, `fancybreak` et al from the memoir class
2159 (bucklereed, #3833).
2160 + Support `\let`. Also, fix regular macros so they're expanded at the
2161 point of use, and NOT also the point of definition. `\let` macros,
2162 by contrast, are expanded at the point of definition. Added an
2163 `ExpansionPoint` field to `Macro` to track this difference.
2164 + Support simple `\def` macros. Note that we still don't support
2165 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
2166 + Support \chaptername, \partname, \abstractname, etc. (#3559,
2167 obsoletes #3560).
2168 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
2169 attributes, so they can be handled in filters (Marc Schreiber, #3639)
2170 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
2171 #3589). Acronyms are not resolved by the reader, but acronym and
2172 glossary information is put into attributes on Spans so that they
2173 can be processed in filters.
2174 + Use `Link` instead of `Span` for `\ref`. This makes more sense
2175 semantically and avoids unnecessary `Span [Link]` nestings when
2176 references are resolved.
2177 + Rudimentary support for `\hyperlink`.
2178 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
2179 + Support `\lq`, `\rq`.
2180 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
2181 (#3853).
2182 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
2183 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
2184 + Support `\k` ogonek accent.
2185 + Improve handling of accents. Handle ogonek, and fall back correctly
2186 with forms like `\"{}`.
2187 + Better support for ogonek accents.
2188 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
2189 + Support for `xspace` (Marc Schreiber, #3797).
2190 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
2191 and `\figurename`.
2192 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
2193 level 0 headers, and parts as level -1 headers. After parsing, we
2194 check for the lowest header level, and if it's less than 1 we bump
2195 everything up so that 1 is the lowest header level. So `\part` will
2196 always produce a header; no command-line options are needed.
2197 + Add block version of `\textcolor` (Marc Schreiber).
2198 + `\textcolor` works as inline and block command (Marc Schreiber).
2199 + `\textcolor` will be parse as span at the beginning of a paragraph
2200 (Marc Schreiber).
2201 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
2202 + Improved handling of include files in LaTeX reader (#3971).
2203 Previously `\include` wouldn't work if the included file
2204 contained, e.g., a begin without a matching end.
2205 + Support `\expandafter` (#3983).
2206 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
2207 as a synonym for `\newcommand`.
2208 + Handle `\lettrine` (Mauro Bieg).
2210 * Math improvements due to updates in texmath:
2212 + Improved handling of accents and upper/lower delimiters.
2213 + Support for output in GNU eqn format (used with *roff).
2214 + Allow `\boldsymbol` + a token without braces, and similarly
2215 with other styling commands.
2216 + Improve parsing of `\mathop` to allow multi-character operator names.
2217 + Add thin space after math operators when "faking it with
2218 unicode."
2220 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
2221 instance for `a -> [a]` (pandoc-types). Note that behavior
2222 will be slightly different, since `bottomUp`'s treatment of
2223 a function `[a] -> [a]` is to apply it to each sublist of a
2224 list, while walk applies it only to maximal sublists.
2225 Usually the latter behavior is what is wanted, and the
2226 former can be simulated when needed. But there may be
2227 existing filters that need to be rewritten in light of the
2228 new behavior. Performance should be improved.
2230 * There are some changes to syntax highlighting due to revisions
2231 in the `skylighting` library:
2233 + Support for `powershell` has been added, and many syntax
2234 definitions have been updated.
2235 + Background colors have been added to the `kate` style.
2236 + The way highlighted code blocks are formatted in HTML has
2237 been changed (David Baynard), in ways that may require
2238 changes in hard-coded CSS affecting highlighting.
2239 (If you haven't included hard-coded highlighting CSS in
2240 your template, you needn't change anything.)
2243 [API changes]
2245 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
2246 This contains definitions of the `PandocMonad` typeclass, the
2247 `PandocIO` and `PandocPure` monads, and associated functions.
2249 * Changed types of all writers and readers.
2251 + We now use `Text` instead of `String` in the interface (#3731).
2252 (We have not yet changed the internals of most readers to work
2253 with `Text`, but making this change in the API now opens up a
2254 path to doing that.)
2255 + The result is now of form `m a` with constraint `PandocMonad m`.
2256 Readers and writers can be combined to form monadic values which
2257 can be run using either `runIO` or `runPure`. If `runIO` is used,
2258 then both readers and writers will be able to do IO when needed
2259 (for include files, for example); if `runPure` is used,
2260 then the functions are pure and will not touch IO.
2261 + Where previously you used
2262 `writeRST def (readMarkdown def "[foo](url)")`, now you
2263 would use
2264 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
2266 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
2267 contains reader helper functions formerly defined in the
2268 top-level `Text.Pandoc` module.
2270 + Changed `StringReader` -> `TextReader`.
2271 + `getReader` now returns a pair of a reader and
2272 `Extensions`, instead of building the extensions into the
2273 reader (#3659). The calling code must explicitly set
2274 `readerExtensions` using the `Extensions` returned. The
2275 point of the change is to make it possible for the calling
2276 code to determine what extensions are being used.
2278 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
2279 This contains writer helper functions formerly defined in the
2280 top-level `Text.Pandoc` module.
2282 + Changed `StringWriter` -> `TextWriter`.
2283 + `getWriter` now retuns a pair of a reader and
2284 `Extensions`, instead of building the extensions into the
2285 reader (#3659). The calling code must explicitly set
2286 `readerExtensions` using the `Extensions` returned. The
2287 point of the change is to make it possible for the calling
2288 code to determine what extensions are being used.
2290 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
2291 #3514).
2293 * New module `Text.Pandoc.App`. This abstracts out the functionality
2294 of the command line program (`convertWithOpts`), so it can be reproduced
2295 e.g. in a desktop or web application. Instead of exiting, we throw errors
2296 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
2297 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
2298 The module also exports some utility functions for parsing options
2299 and running filters.
2301 * New module `Text.Pandoc.Logging` (exported module) (#3392).
2302 This now contains the `Verbosity` definition previously in
2303 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
2304 eventually be used instead of raw strings for warnings. This will enable
2305 us, among other things, to provide machine-readable warnings if desired.
2306 Include ToJSON instance and showLogMessage. This gives us the possibility
2307 of both machine-readable and human-readable output for log messages.
2309 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
2311 * New module `Text.Pandoc.Translations`, exporting `Term`,
2312 `Translations`, `readTranslations`.
2314 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
2315 `TokType`, `Line`, `Column`.
2317 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
2319 * Expose some previously private modules (#3260). These are often
2320 helpful to people writing their own reader or writer modules:
2322 + `Text.Pandoc.Writers.Shared`
2323 + `Text.Pandoc.Parsing`
2324 + `Text.Pandoc.Asciify`
2325 + `Text.Pandoc.Emoji`
2326 + `Text.Pandoc.ImageSize`
2327 + `Text.Pandoc.Highlighting`
2329 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
2330 Extension parsing and processing functions were defined in the top-level
2331 `Text.Pandoc` module. These functions are moved to the Extensions
2332 submodule as to enable reuse in other submodules.
2334 * Add `Ext_raw_attribute` constructor for `Extension`.
2336 * Add `Ext_fenced_divs` constructor for `Extension'.
2338 * Add `Ext_four_space_rule` constructor in `Extension`.
2340 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
2342 * Add `Monoid` instance for `Extensions`.
2344 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
2346 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
2348 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
2350 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
2352 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
2354 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
2356 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
2358 * Export `setVerbosity` from `Text.Pandoc`.
2360 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
2362 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
2364 * `Text.Pandoc.UTF8`:
2366 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
2367 Define `toString`, `toStringLazy` in terms of them.
2368 + Add new functions parameterized on `Newline`: `writeFileWith`,
2369 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
2371 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
2373 * `Text.Pandoc.Highlighting`:
2375 + `highlighting` now returns an Either rather than Maybe.
2376 This allows us to display error information returned by the skylighting
2377 library. Display a warning if the highlighting library throws an error.
2378 + Add parameter for `SyntaxMap` to `highlight`.
2380 * `Text.Pandoc.Writers.Math`:
2382 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
2383 we only need to update these in one place.
2385 * `Text.Pandoc.SelfContained`:
2387 + Removed `WriterOptions` parameter from `makeSelfContained`.
2388 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
2389 the need to pass MediaBag around and improves exceptions. It also
2390 opens up the possibility of using makeSelfContained purely.
2391 + Export `makeDataURI`.
2393 * `Text.Pandoc.ImageSize`:
2395 + Export `lengthToDim`, new function `scaleDimension`.
2396 + Export `inEm` from ImageSize (#3450).
2397 + Change `showFl` and `show` instance for `Dimension` so
2398 extra decimal places are omitted.
2399 + Added `Em` as a constructor of `Dimension`.
2400 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
2402 * `Text.Pandoc.Templates`:
2404 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
2405 and raises a proper `PandocTemplateError` if there are problems, rather
2406 than failing with uncatchable `error`.
2407 + Change signature of `getDefaultTemplate`. Now it runs in any instance
2408 of `PandocMonad`, and returns a `String` rather than an `Either` value.
2409 And it no longer takes a `datadir` parameter, since this can be
2410 retrieved from `CommonState`.
2412 * `Text.Pandoc.Options`:
2414 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
2415 The EPUB writer now takes its EPUB subdirectory from this option.
2416 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
2417 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
2418 + Add `writerSyntaxMap` to `WriterOptions`.
2419 + Removed `writerEpubStylesheet` from `WriterOptions`.
2420 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
2421 in `CommonState` in `PandocMonad` instances. (And thus it can be used
2422 by readers too.)
2423 + Changed `writerEpubMetadata` to a `Maybe String`.
2424 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
2425 the `latex_macros` reader extension.
2426 + FromJSON/ToJSON instances for `ReaderOptions`.
2427 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
2428 one string (for the KaTeX base URL), rather than two.
2429 + Removed `writerSourceURL` from `WriterOptions`. We now use
2430 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
2432 * `Text.Pandoc.Shared`:
2434 + `tabFilter` now takes a `Text`, not `String`.
2435 + `openURL`: Changed type from an Either. Now it will just raise
2436 an exception to be trapped later.
2437 + Remove `normalizeSpaces` (#1530).
2438 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
2439 + Export a new function `crFilter`.
2440 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
2441 + Provide custom `isURI` that rejects unknown schemes.
2442 (Albert Krewinkel, #2713). We also export the set of known
2443 `schemes`. The new function replaces the function of the same name
2444 from `Network.URI`, as the latter did not check whether a scheme is
2445 well-known. All official IANA schemes (as of 2017-05-22) are
2446 included in the set of known schemes. The four non-official schemes
2447 `doi`, `isbn`, `javascript`, and `pmid` are kept.
2448 + Remove `err`.
2449 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
2450 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
2451 where they are defined in terms of `PandocMonad`
2452 primitives and have different signatures.
2453 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
2454 + Add `underlineSpan`.
2456 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
2458 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
2459 With the new API one can simply use `getLog` after running
2460 the reader.
2462 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
2463 and `rawLaTeXBlock`. (Both now return a `String`, and they are
2464 polymorphic in state.)
2467 [bug fixes and under-the-hood improvements]
2469 * TEI writer: Added identifiers on `<div>` elements.
2471 * DokuWiki reader: Better handling for code block in list item (#3824).
2473 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
2475 * ZimWiki writer: Removed internal formatting from note and table cells,
2476 because ZimWiki does not support it (Alex Ivkin, #3446).
2478 * MediaWiki writer:
2480 + Updated list of syntax highlighting languages (#3461).
2481 Now `r` gets you `<source>` rather than `<code>` (among others).
2482 + Add display attribute on `<math>` tags (#3452). This allows display
2483 math to be rendered properly.
2484 + Remove newline before `</ref>` (#2652).
2485 + Don't softbreak lines inside list items (#3531).
2487 * Org writer:
2489 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
2490 + Add unit tests (Alexander Krotov).
2491 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
2492 + Do not strip `#` from Org anchor links (Alexander Krotov).
2494 * CommonMark writer:
2496 + Avoid excess blank lines at end of output.
2497 + Prefer pipe tables to HTML tables even if it means losing relative
2498 column width information (#3734).
2499 + Support table, strikethrough extensions, when enabled (as with gfm).
2500 Note that we bypass the commonmark writer from cmark and construct our
2501 own pipe tables, with better results.
2502 + Properly support `--wrap=none`.
2503 + Use smallcaps class for `SmallCaps` (#1592).
2504 + Omit "fig:" prefix in image titles. This is used internally to
2505 indicate internal figures.
2507 * RST writer:
2509 + Properly handle table captions.
2510 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
2511 + Implemented `+/-smart` and improved escaping with `+smart`.
2512 + Add empty comments when needed to avoid including a blockquote
2513 in the indented content of a preceding block (#3675).
2514 + Improve grid table output, fix bug with empty rows (#3516).
2515 Uses the new `gridTable` in Writers.Shared, which is here
2516 improved to better handle 0-width cells.
2517 + Remove space at beginning/end of RST code span (#3496). Otherwise
2518 we get invalid RST. There seems to be no way to escape the space.
2519 + Add header anchors when header has non-standard id (#3937).
2520 + Correctly handle inline code containing backticks, using a `:literal:`
2521 role (#3974).
2522 + Don't backslash-escape word-internal punctuation (#3978).
2524 * Markdown writer:
2526 + Don't include variables in metadata blocks. Previously variables set
2527 on the command line were included in e.g. YAML metadata, contrary to
2528 documentation and intentions.
2529 + Improved escaping with `+smart`.
2530 + Fixed grid tables embedded in grid tables (#2834).
2531 + Use span with class 'smallcaps' for SmallCaps, instead of a style
2532 attribute as before (#1592).
2533 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
2534 extension is enabled (#3454). Otherwise in a document starting with
2535 a literal `%` the first line is wrongly interpreted as a title.
2536 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
2537 properly escape things that would otherwise start ordered lists,
2538 such as
2540 ---
2541 title: 1. inline
2542 ...
2543 + Better handling of tables with empty columns (#3337). We now
2544 calculate the number of columns based on the longest row (or the
2545 length of aligns or widths).
2546 + Escape unordered list markers at beginning of paragraph (#3497), to
2547 avoid false interpretation as a list.
2548 + Escape `|` appropriately.
2549 + Ensure space before list at top level (#3487).
2550 + Avoid spurious blanklines at end of document after tables and list,
2551 for example.
2552 + Fixed bugs in simple/multiline list output (#3384).
2553 Previously we got overlong lists with `--wrap=none`. This is fixed.
2554 Previously a multiline list could become a simple list (and would
2555 always become one with `--wrap=none`).
2556 + Don't emit a simple table if `simple_tables` disabled (#3529).
2557 + Case-insensitive reference links (David A Roberts, #3616).
2558 Ensure that we do not generate reference links whose labels differ only
2559 by case. Also allow implicit reference links when the link
2560 text and label are identical up to case.
2561 + Put space before reference link definitions (Mauro Bieg, #3630).
2562 + Better escaping for links (David A. Roberts, #3619). Previously the
2563 Markdown writer would sometimes create links where there were none
2564 in the source. This is now avoided by selectively escaping bracket
2565 characters when they occur in a place where a link might be created.
2566 + Added missing `\n` (David A. Roberts, #3647).
2567 + Fixed duplicated reference links with `--reference-links`
2568 and `--reference-location=section` (#3674). Also ensure that there
2569 are no empty link references `[]`.
2570 + Avoid inline surround-marking with empty content (#3715).
2571 E.g. we don't want `<strong></strong>` to become `****`.
2572 Similarly for emphasis, super/subscript, strikeout.
2573 + Don't allow soft break in header (#3736).
2574 + Make sure `plain`, `markdown_github`, etc. work for raw.
2575 Previously only `markdown` worked. Note: currently a raw block labeled
2576 `markdown_github` will be printed for any `markdown` format.
2577 + Ensure that `+` and `-` are escaped properly so they don't cause
2578 spurious lists (#3773). Previously they were only
2579 if succeeded by a space, not if they were at end of line.
2580 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
2581 even if the table has relative width information (#3734).
2582 + Markdown writer: don't crash on `Str ""`.
2583 + Make `Span` with null attribute transparent. That is, we don't use
2584 brackets or `<span>` tags to mark spans when there are no attributes;
2585 we simply output the contents.
2586 + Escape pipe characters when `pipe_tables` enabled (#3887).
2587 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
2588 we backslash escape these. Otherwise we use entities as before.
2589 + When writing plain, don't use `&nbsp;` to separate list and indented
2590 code. There's no need for it in this context, since this isn't to be
2591 interpreted using Markdown rules.
2592 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
2593 HTML links containing classes originally now preserve them when using
2594 JavaScript email obfuscation.
2595 + Render `SmallCaps` as a native span when `native_spans` are enabled.
2596 + Always write attributes with `bracketed_spans` (d-dorazio).
2598 * Man writer:
2600 + Fix handling of nested font commands (#3568). Previously pandoc emitted
2601 incorrect markup for bold + italic, for example, or bold + code.
2602 + Avoid error for definition lists with no definitions (#3832).
2604 * DocBook writer:
2606 + Fix internal links with `writerIdentifierPrefix opt`
2607 (#3397, Mauro Bieg).
2609 * Docx writer:
2611 + Don't include bookmarks on headers unless non-null id (#3476).
2612 + Support 9 levels of headers (#1642).
2613 + Allow 9 list levels (#3519).
2614 + Don't take `distArchive` from datadir (#3322). The docx writer takes
2615 components from the distribution's version of `reference.docx` when it
2616 can't find them in a user's custom `reference.docx`. Previously, we
2617 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
2618 to be used as the distribution's reference.docx. This led to a
2619 bizarre situation where pandoc would produce a good docx using
2620 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
2621 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
2622 + Fixed handling of soft hyphen (0173) (#3691).
2623 + Better handling of keywords (#3719).
2624 + Cleaner code for handling dir and style attributes for `Div`.
2625 + Use `Set` for dynamic styles to avoid duplicates.
2626 + Removed redundant element from data/docx/word/numbering.xml.
2627 The elements we need are generated when the document is
2628 compiled; this didn't do anything.
2629 + Activate `evenAndOddHeaders` from reference docx (#3901,
2630 Augustín Martín Barbero).
2632 * ODT/OpenDocument writer:
2634 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
2635 + Use more widely available bullet characters (#1400). The old
2636 characters weren't available in some font sets. These seem to work
2637 well on Windows and Linux versions of LibreOffice.
2638 + Wider labels for lists (#2421). This avoids overly narrow labels for
2639 ordered lists with `()` delimiters. However, arguably it creates
2640 overly wide labels for bullets. Also, lists now start flush with
2641 the margin, rather than indented.
2642 + Fixed dropped elements in some ordered lists (#2434).
2644 * FB2 writer:
2646 + Don't render `RawBlock` as code.
2647 + Don't fail with an error on interior headers (e.g. in list) (#3750).
2648 Instead, omit them with an INFO message.
2649 + Add support for "lang" metadata (Alexander Krotov, #3625).
2650 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
2651 produced one paragraph with `<empty-line/>` elements, which are not
2652 allowed inside `<p>` according to FB2 schema.
2653 + Replace `concatMap` with `cMap` (Alexander Krotov).
2654 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
2655 Krotov, #4004)
2657 * HTML writer:
2659 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
2660 + Render raw inline environments when `--mathjax` used (#3816).
2661 We previously did this only with raw blocks, on the assumption
2662 that math environments would always be raw blocks. This has changed
2663 since we now parse them as inline environments.
2664 + Ensure we don't get two style attributes for width and height.
2665 + Report when not rendering raw inline/block.
2666 + Issue warning if no title specified and template used (#3473).
2667 + Info message if `lang` is unspecified (#3486).
2668 + Removed unused parameter in `dimensionsToAttributeList`.
2669 + Avoid two class attributes when adding `uri` class (#3716).
2670 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
2671 Bieg).
2672 + Use revealjs's math plugin for mathjax (#3743). This is a thin
2673 wrapper around mathjax that makes math look better on revealjs.
2674 + Slidy: use h1 for all slides, even if they were originally
2675 level 2 headers (#3566). Otherwise the built-in table of contents
2676 in Slidy breaks.
2678 * LaTeX writer:
2680 + Don't render LaTeX images with data: URIs (#3636). Note that
2681 `--extract-media` can be used when the input contains data: URIs.
2682 + Make highlighted code blocks work in footnotes (Timm Albers).
2683 + Don't use figure inside table cell (#3836).
2684 + Use proper code for list enumerators (#3891). This should fix problems
2685 with lists that don't use arabic numerals.
2686 + Always add hypertarget when there's a non-empty identifier (#2719).
2687 Previously the hypertargets were only added when there was actually
2688 a link to that identifier.
2689 + Use `%` after hypertarget before code block.
2690 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
2691 fixes formatting problems in beamer citations).
2692 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
2693 of item disappear or are misplaced. Use `\texttt` instead.
2694 + Fix problem with escaping in `lstinline` (#1629). Previously the
2695 LaTeX writer created invalid LaTeX when `--listings` was specified and
2696 a code span occured inside emphasis or another construction.
2697 + Fix error with line breaks after empty content (#2874). LaTeX
2698 requires something before a line break, so we insert a `~` if no
2699 printable content has yet been emitted.
2700 + Use BCP47 parser.
2701 + Fixed detection of otherlangs (#3770). We weren't recursing into
2702 inline contexts.
2703 + Handle language in inline code with `--listings` (#3422).
2704 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
2705 The textcomp package allows pdfLaTeX to parse `€` directly, making the
2706 `\euro` command unneeded.
2707 + Fixed footnotes in table captions (#2378). Note that if the table has
2708 a first page header and a continuation page header, the notes will
2709 appear only on the first occurrence of the header.
2710 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
2711 Previously you could link to a header above or below slide level but
2712 not *to* slide level. This commit changes that. Hypertargets are
2713 inserted inside frame titles; technically the reference is to just
2714 after the title, but in normal use (where slides are viewed full
2715 screen in a slide show), this does not matter.
2716 + Remove `\strut` at beginning of table cells (#3436). This fixes a
2717 problem with alignment of lists in table cells. The `\strut` at the
2718 end seems to be enough to avoid the too-close spacing that motivated
2719 addition of the strut in #1573.
2720 + Add partial siunitx Support (Marc Schreiber, #3588).
2722 * ConTeXt writer:
2724 + Refactored to use BCP47 module.
2725 + Remove unnecessary `$` (Alexander Krotov, #3482).
2726 + Use header identifiers for chapters (#3968).
2728 * EPUB writer:
2730 + `title_page.xhtml` is now put in `text/`.
2731 + Don't strip formatting in TOC (#1611).
2733 * Textile reader:
2735 + Fix bug for certain links in table cells (#3667).
2736 + Allow 'pre' code in list item (#3916).
2738 * HTML reader:
2740 + Added warnings for ignored material (#3392).
2741 + Better sanity checks to avoid parsing unintended things as
2742 raw HTML in the Markdown reader (#3257).
2743 + Revise treatment of `li` with `id` attribute (#3596). Previously we
2744 always added an empty div before the list item, but this created
2745 problems with spacing in tight lists. Now we do this: If the list
2746 item contents begin with a `Plain` block, we modify the `Plain`
2747 block by adding a `Span` around its contents. Otherwise, we add a
2748 `Div` around the contents of the list item (instead of adding an
2749 empty `Div` to the beginning, as before).
2750 + Add `details` tag to list of block tags (#3694).
2751 + Removed `button` from block tag list (#3717). It is already in the
2752 `eitherBlockOrInlineTag` list, and should be both places.
2753 + Use `Set`s instead of lists for block tag lookup.
2754 + Rewrote to use `Text` throughout. Effect on memory usage is modest
2755 (< 10%).
2756 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
2757 #3765).
2758 + Ensure that paragraphs are closed properly when the parent block
2759 element closes, even without `</p>` (#3794).
2760 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
2761 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
2762 `<main>` closes `<p>` and behaves like a block element generally
2763 + Support column alignments (#1881). These can be set either
2764 with a `width` attribute or with `text-width` in a `style` attribute.
2765 + Modified state type to be an instance of `HasLogMessages`, so
2766 `registerHeader` can issue warnings.
2767 + `</td>` or `</th>` should close any open block tag (#3991).
2768 + `<td>` should close an open `<th>` or `<td>`.
2769 + `htmlTag` improvements (#3989). We previously failed on cases
2770 where an attribute contained a `>` character. This patch fixes the
2771 bug, which especially affects raw HTML in Markdown.
2773 * Txt2Tags reader:
2775 + Newline is not indentation (Alexander Krotov).
2777 * MediaWiki reader:
2779 + Allow extra hyphens after `|-` in tables (#2649).
2780 + Allow blank line after table start (#2649).
2781 + Fixed more table issues (#2649).
2782 + Ensure that list starts begin at left margin (#2606). Including when
2783 they're in tables or other list items.
2784 + Make smart double quotes depend on `smart` extension (#3585).
2785 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
2786 + Modified state type to be an instance of `HasLogMessages`, so
2787 `registerHeader` can issue warnings.
2789 * TWiki reader (Alexander Krotov):
2791 + Remove unnecessary `$` (#3597).
2792 + Simplify `linkText` (#3605).
2794 * EPUB reader:
2796 + Minor refactoring, avoiding explicit MediaBag handling.
2797 This all works behind the scenes in CommonState plumbing.
2799 * Docx reader:
2801 + Don't drop smartTag contents (#2242).
2802 + Handle local namespace declarations (#3365). Previously we didn't
2803 recognize math, for example, when the xmlns declaration occured on
2804 the element and not the root.
2805 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
2806 does the work of `normalizeSpaces` as well, so we avoid the need for
2807 that function here.
2808 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
2809 paragraphs styled with "HeadingN" as "nth-level header." But if a
2810 document has a custom style named "Heading0", this will produce a
2811 0-level header, which shouldn't exist. We only parse this style
2812 if N>0. Otherwise we treat it as a normal style name, and
2813 follow its dependencies, if any.
2814 + Add tests for avoiding zero-level header (Jesse Rosenthal).
2816 * ODT reader:
2818 + Replaced `collectRights` with Rights from `Data.Either`.
2819 + Remove dead code (Albert Krewinkel).
2821 * Org reader (Albert Krewinkel, unless noted).
2823 + Don't allow tables inside list items (John MacFarlane, #3499).
2824 + Disallow tables on list marker lines (#3499).
2825 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
2826 + Allow emphasized text to be followed by `[` (#3577).
2827 + Handle line numbering switch for src blocks.
2828 The line-numbering switch that can be given to source blocks (`-n` with
2829 an start number as an optional parameter) is parsed and translated to a
2830 class/key-value combination used by highlighting and other readers and
2831 writers.
2832 + Stop adding rundoc prefix to src params. Source block parameter names
2833 are no longer prefixed with `rundoc`. This was intended to simplify
2834 working with the rundoc project, a babel runner. However, the rundoc
2835 project is unmaintained, and adding those markers is not the reader's
2836 job anyway. The original language that is specified for a source
2837 element is now retained as the `data-org-language` attribute and only
2838 added if it differs from the translated language.
2839 + Allow multi-word arguments to src block params (#3477). The reader now
2840 correctly parses src block parameter list even if parameter arguments
2841 contain multiple words.
2842 + Avoid creating `nullMeta` by applying `setMeta` directly
2843 (Alexander Krotov).
2844 + Replace `sequence . map` with `mapM`.
2845 + Fix smart parsing behavior. Parsing of smart quotes and special
2846 characters can either be enabled via the `smart` language extension or
2847 the `'` and `-` export options. Smart parsing is active if either the
2848 extension or export option is enabled. Only smart parsing of special
2849 characters (like ellipses and en and em dashes) is enabled by default,
2850 while smart quotes are disabled. Previously, all smart parsing was
2851 disabled unless the language extension was enabled.
2852 + Subject full doc tree to headline transformations (Albert Krewinkel,
2853 #3695). Emacs parses org documents into a tree structure, which is
2854 then post-processed during exporting. The reader is changed to do the
2855 same, turning the document into a single tree of headlines starting
2856 at level 0.
2857 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
2858 cite keys included special characters also at the end. This caused
2859 problems when citations occur right before colons or at the end of
2860 a sentence. With this change, all non alphanumeric characters at
2861 the end of a cite key are ignored. This also adds `,` to the list
2862 of special characters that are legal in cite keys to better mirror
2863 the behaviour of org-export.
2864 + Fix module names in haddock comments. Copy-pasting had lead to
2865 haddock module descriptions containing the wrong module names.
2866 + Recognize babel result blocks with attributes (#3706). Babel
2867 result blocks can have block attributes like captions and names.
2868 Result blocks with attributes were not recognized and were parsed
2869 as normal blocks without attributes.
2870 + Include tags in headlines. The Emacs default is to include tags in the
2871 headline when exporting. Instead of just empty spans, which contain the
2872 tag name as attribute, tags are rendered as small caps and wrapped in
2873 those spans. Non-breaking spaces serve as separators for multiple tags.
2874 + Respect export option for tags (#3713). Tags are appended to
2875 headlines by default, but will be omitted when the `tags` export option
2876 is set to nil.
2877 + Use `tag-name` attribute instead of `data-tag-name`.
2878 + Use `org-language` attribute rather than `data-org-language`.
2879 + Modified state type to be an instance of `HasLogMessages`, so
2880 `registerHeader` can issue warnings.
2881 + End footnotes after two blank lines. Footnotes can not only be
2882 terminated by the start of a new footnote or a header, but also by two
2883 consecutive blank lines.
2884 + Update emphasis border chars (#3933). The org reader was updated to
2885 match current org-mode behavior: the set of characters which are
2886 acceptable to occur as the first or last character in an org emphasis
2887 have been changed and now allows all non-whitespace chars at the
2888 inner border of emphasized text (see `org-emphasis-regexp-components`).
2890 * RST reader:
2892 + Fixed small bug in list parsing (#3432). Previously the parser didn't
2893 handle properly this case:
2895 * - a
2896 - b
2897 * - c
2898 - d
2899 + Handle multiline cells in simple tables (#1166).
2900 + Parse list table directive (Keiichiro Shikano, #3432).
2901 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
2902 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
2903 + Reorganize block parsers for ~20% faster parsing.
2904 + Fixed `..include::` directive (#3880).
2905 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
2906 Previously pandoc would sometimes combine two line blocks separated
2907 by blanks, and ignore trailing blank lines within the line block.
2908 + Fix indirect hyperlink targets (#512).
2910 * Markdown reader:
2912 + Allow attributes in reference links to start on next line (#3674).
2913 + Parse YAML metadata in a context that sees footnotes defined in
2914 the body of the document (#1279).
2915 + When splitting pipe table cells, skip tex math (#3481).
2916 You might have a `|` character inside math. (Or for that matter
2917 something that the parser might mistake for raw HTML.)
2918 + Treat span with class `smallcaps` as SmallCaps.
2919 This allows users to specify small caps in Markdown this way:
2920 `[my text]{.smallcaps}` (#1592).
2921 + Fixed internal header links (#2397).
2922 This patch also adds `shortcut_reference_links` to the list
2923 of mmd extensions.
2924 + Treat certain environments as inline
2925 when they occur without space surrounding them (#3309, #2171).
2926 E.g. equation, math. This avoids incorrect vertical space
2927 around equations.
2928 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
2929 + Allow latex macro definitions indented 1-3 spaces.
2930 Previously they only worked if nonindented.
2931 + Improved parsing of indented raw HTML blocks (#1841).
2932 Previously we inadvertently interpreted indented HTML as
2933 code blocks. This was a regression. We now seek to determine the
2934 indentation level of the contents of an HTML block, and (optionally)
2935 skip that much indentation. As a side effect, indentation may be
2936 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
2937 used. This is better than having things interpreted as indented
2938 code blocks.
2939 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
2940 + Warn for notes defined but not used (#1718).
2941 + Use `anyLineNewline` (Alexander Krotov).
2942 + Interpret YAML metadata as Inlines when possible (#3755). If
2943 the metadata field is all on one line, we try to interpret it as
2944 Inlines, and only try parsing as Blocks if that fails. If it
2945 extends over one line (including possibly the `|` or `>` character
2946 signaling an indented block), then we parse as Blocks. This was
2947 motivated by some German users finding that `date: '22. Juin 2017'`
2948 got parsed as an ordered list.
2949 + Fixed spurious parsing as citation as reference def (#3840).
2950 We now disallow reference keys starting with `@` if the
2951 `citations` extension is enabled.
2952 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
2953 Previously only `[-@roe]` (with brackets) was recognized as
2954 suppress-author, and `-@roe` was treated the same as `@roe`.
2955 + Fixed parsing of fenced code after list when there is no intervening
2956 blank line (#3733).
2957 + Allow raw latex commands starting with `\start` (#3558). Previously
2958 these weren't allowed because they were interpreted as starting
2959 ConTeXt environments, even without a corresponding `\stop`...
2960 + Added `inlines`, `inlines1`.
2961 + Require nonempty alt text for `implicit_figures` (#2844).
2962 A figure with an empty caption doesn't make sense.
2963 + Removed texmath macro material; now all this is handled
2964 in the LaTeX reader functions.
2965 + Fixed bug with indented code following raw LaTeX (#3947).
2967 * LaTeX reader:
2969 + Rewrote LaTeX reader with proper tokenization (#1390,
2970 #2118, #3236, #3779, #934, #982). This rewrite is primarily
2971 motivated by the need to get macros working properly. A side benefit
2972 is that the reader is significantly faster. We now tokenize the
2973 input text, then parse the token stream. Macros modify the token
2974 stream, so they should now be effective in any context, including
2975 math. Thus, we no longer need the clunky macro processing
2976 capacities of texmath.
2977 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
2978 + Allow `\newcommand\foo{blah}` without braces.
2979 + Support `\lstinputlisting` (#2116).
2980 + Issue warnings when skipping unknown latex commands (#3392).
2981 + Include contents of `\parbox`.
2982 + Allow `\hspace` and `\vspace` to count as raw block or inline.
2983 Previously we would refuse to parse anything as raw inline if
2984 it was in the `blockCommands` list. Now we allow exceptions
2985 if they're listed under ignoreInlines in inlineCommands.
2986 This should make it easier e.g. to include an `\hspace`
2987 between two side-by-side raw LaTeX tables.
2988 + Don't drop contents of `\hypertarget`.
2989 + Handle spaces before `\cite` arguments.
2990 + Allow newpage, clearpage, pagebreak in inline contexts as well as
2991 block contexts (#3494).
2992 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
2993 + Use `pMacroDefinition` in macro (for more direct parsing).
2994 Note that this means that `macro` will now parse one
2995 macro at a time, rather than parsing a whole group together.
2996 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
2997 commands are parsed as raw if `+raw_tex`; otherwise, their argument
2998 is parsed as a bracketed string.
2999 + Don't crash on empty `enumerate` environment (#3707).
3000 + Handle escaped `&` inside table cell (#3708).
3001 + Handle block structure inside table cells (#3709). `minipage` is no
3002 longer required.
3003 + Handle some width specifiers on table columns (#3709). Currently
3004 we only handle the form `0.9\linewidth`. Anything else would have
3005 to be converted to a percentage, using some kind arbitrary assumptions
3006 about line widths.
3007 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
3008 LaTeX reader's treatment of raw commands, but it also affects the
3009 Markdown reader.
3010 + Fixed regression with starred environment names (#3803).
3011 + Handle optional args in raw `\titleformat` (#3804).
3012 + Improved heuristic for raw block/inline. An unknown command at the
3013 beginning of the line that could be either block or inline is
3014 treated as block if we have a sequence of block commands followed by
3015 a newline or a `\startXXX` command (which might start a raw ConTeXt
3016 environment).
3017 + Don't remove macro definitions from the output, even if
3018 `Ext_latex_macros` is set, so that macros will be applied.
3019 Since they're only applied to math in Markdown, removing the macros
3020 can have bad effects. Even for math macros, keeping them should be
3021 harmless.
3022 + Removed `macro`. It is no longer necessary, since the
3023 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
3024 the need for a separate `latexMacro` parser in the Markdown reader.
3025 + Use `label` instead of `data-label` for label in caption (#3639).
3026 + Fixed space after \figurename etc.
3027 + Resolve references to section numbers.
3028 + Fix `\let\a=0` case, with single character token.
3029 + Allow `@` as a letter in control sequences. `@` is commonly used
3030 in macros using `\makeatletter`. Ideally we'd make the tokenizer
3031 sensitive to `\makeatletter` and `\makeatother`, but until then this
3032 seems a good change.
3033 + Track header numbers and correlate with labels.
3034 + Allow `]` inside group in option brackets (#3857).
3035 + lstinline with braces can be used (verb cannot be used with braces)
3036 (Marc Schreiber, #3535).
3037 + Fix keyval funtion: pandoc did not parse options in braces correctly
3038 (Marc Schreiber, #3642).
3039 + When parsing raw LaTeX commands, include trailing space (#1773).
3040 Otherwise things like `\noindent foo` break and turn into
3041 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
3042 formats that allow `raw_tex`).
3043 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
3044 `\texttt` contexts.
3045 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
3046 + Allow space before `=` in bracketd options (Ben Firshman).
3047 + Be more forgiving in parsing command options. This was needed, for
3048 example, to make some minted options work.
3049 + Strip off quotes in `\include` filenames.
3051 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
3053 * `Text.Pandoc.PDF`:
3055 + Got `--resource-path` working with PDF output (#852).
3056 + Fetch images when generating PDF via context (#3380).
3057 To do this, we create the temp directory as a subdirectory
3058 of the working directory. Since context mk IV by default looks
3059 for images in the parent directory, this works.
3060 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
3061 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
3062 This reduces code duplication.
3063 + `html2pdf`: use stdin instead of intermediate HTML file
3064 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
3065 doesn't use `TEXINPUTS`.
3067 * `Text.Pandoc.Pretty`:
3069 + Simplified definition of `realLength`.
3070 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
3072 * `Text.Pandoc.MIME`:
3074 + Use `application/javascript` (not `application/x-javascript`).
3075 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
3077 * `Text.Pandoc.ImageSize`:
3079 + Improve SVG image size code (Marc Schreiber, #3580).
3080 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
3082 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
3083 and reduction of memory usage in most of the writers.
3085 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
3087 * `Text.Pandoc.SelfContained`:
3089 + Fixed problem with embedded fonts (#3629).
3090 + Refactored getData from `getDataURI` in `SelfContained`.
3091 + Don't use data URIs for script or style (#3423). Instead, just use
3092 script or style tags with the content inside. The old method with
3093 data URIs prevents certain optimizations outside pandoc. Exception:
3094 data URIs are still used when a script contains `</script>` or a
3095 style contains `</`.
3096 + SelfContained: Handle URL inside material retrieved from a URL
3097 (#3629). This can happen e.g. with an @import of a google web font.
3098 (What is imported is some CSS which contains an url reference
3099 to the font itself.) Also, allow unescaped pipe (|) in URL.
3100 + Load resources from `data-src` (needed for lazy loading in
3101 reveal.js slide shows).
3102 + Handle `data-background-image` attribute on section (#3979).
3104 * `Text.Pandoc.Parsing`:
3106 + Added `indentWith` (Alexander Krotov, #3687).
3107 + Added `stateCitations` to `ParserState`.
3108 + Removed `stateChapters` from `ParserState`.
3109 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
3110 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
3111 + Adjusted type of `insertIncludedFile` so it can be used with token
3112 parser.
3113 + Replace old texmath macro stuff from Parsing. Use Macro from
3114 Text.Pandoc.Readers.LaTeX.Types instead.
3115 + Export `insertIncludedFile`.
3116 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
3117 + Replace partial with total function (Albert Krewinkel).
3118 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
3119 `insertIncludeFile` function is generalized to work with all parser
3120 states which are instances of that class.
3121 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
3122 The `insertIncludeFiles` function was generalized and renamed
3123 to `insertIncludedFiles'`; the specialized versions are based on that.
3124 + `many1Till`: Check for the end condition before parsing (Herwig
3125 Stuetz). By not checking for the end condition before the first
3126 parse, the parser was applied too often, consuming too much of the
3127 input. This only affects `many1Till p end` where `p` matches on a
3128 prefix of `end`.
3129 + Provide `parseFromString` (#3690). This is a verison of
3130 `parseFromString` specialied to ParserState, which resets
3131 `stateLastStrPos` at the end. This is almost always what we want.
3132 This fixes a bug where `_hi_` wasn't treated as emphasis in the
3133 following, because pandoc got confused about the position of the
3134 last word: `- [o] _hi_`.
3135 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
3136 + Fix `blanklines` documentation (Alexander Krotov, #3843).
3137 + Give less misleading line information with `parseWithString`.
3138 Previously positions would be reported past the end of the chunk.
3139 We now reset the source position within the chunk and report
3140 positions "in chunk."
3141 + Add `anyLineNewline` (Alexander Krotov).
3142 + Provide shared F monad functions for Markdown and Org readers
3143 (Albert Krewinkel). The `F` monads used for delayed evaluation
3144 of certain values in the Markdown and Org readers are based on a
3145 shared data type capturing the common pattern of both `F` types.
3146 + Add `returnF` (Alexander Krotov).
3147 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
3148 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
3149 + Added `readerAbbreviations` to `ParserState`. Markdown reader
3150 now consults this to determine what is an abbreviation.
3151 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
3152 parsers for markdown and rst was combined into one single
3153 parser `gridTable`, slightly changing parsing behavior of both
3154 parsers: (1) The markdown parser now compactifies block content
3155 cell-wise: pure text blocks in cells are now treated as paragraphs
3156 only if the cell contains multiple paragraphs, and as plain blocks
3157 otherwise. Before, this was true only for single-column tables. (2)
3158 The rst parser now accepts newlines and multiple blocks in header
3159 cells.
3160 + Generalize tableWith, gridTableWith (Albert Krewinkel).
3161 The parsing functions `tableWith` and `gridTableWith` are generalized
3162 to work with more parsers. The parser state only has to be an
3163 instance of the `HasOptions` class instead of requiring a concrete
3164 type. Block parsers are required to return blocks wrapped into a
3165 monad, as this makes it possible to use parsers returning results
3166 wrapped in `Future`s.
3168 * `Text.Pandoc.Shared`:
3170 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
3171 + `stringify`: handle Quoted better (#3958). Previously we were losing
3172 the quotation marks in Quoted elements.
3174 * `Text.Pandoc.Writers.Shared`:
3176 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
3177 This allows us to add the variables AFTER using the metadata
3178 to generate a YAML header (in the Markdown writer).
3179 + Added `unsmartify` (previously in RST writer).
3180 Undo literal double curly quotes. Previously we left these.
3181 + Generalize type of `metaToJSON` so it can take a Text. Previously a
3182 String was needed as argument; now any ToJSON instance will do.
3183 + Added `gridTable` (previously in Markdown writer).
3184 + `gridTable`: Refactored to use widths in chars.
3185 + `gridTable`: remove unnecessary extra space in cells.
3186 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
3187 values to become lists.
3188 + Pipe tables: impose minimum cell size (see #3526).
3191 [default template changes]
3193 * HTML templates (including EPUB and HTML slide show templates):
3195 + Make default.html5 polyglot markup conformant (John Luke Bentley,
3196 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
3197 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
3198 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
3199 + Regularized CSS in html/epub/html slide templates (#3485).
3200 All templates now include `code{white-space: pre-wrap}`
3201 and CSS for `q` if `--html-q-tags` is used. Previously some templates
3202 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
3203 included.
3204 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
3205 + `default.revealjs`: make `history` default to true.
3206 + `default.revealjs`: use lazy loading (#2283).
3207 + `default.revealjs`: add `mathjax` variable and some conditional code
3208 to use the MathJaX plugin.
3209 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
3210 + `default.dzslides`: Load Google Font using HTTPS by default
3211 (Yoan Blanc).
3213 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
3214 #3855).
3216 * LaTeX/Beamer template:
3218 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
3219 `default.beamer` has been removed; beamer now uses the
3220 `default.latex` template. Beamer-specific parts are conditional
3221 on the `beamer` variable set by the writer. Note that
3222 `pandoc -D beamer` will return this (combined) template.
3223 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
3224 Beamer loads `xcolor` rather than `color`, and thus the
3225 `dvipsnames` option doesn't take effect. This also provides a wider
3226 range of colour selections with the `svgnames` option.
3227 + Use starred versions of `xcolor` names (Andrew Dunning).
3228 Prevents changes to documents defined using the `dvipsnames` list (e.g.
3229 `Blue` gives a different result with svgnames enabled).
3230 + Load `polyglossia` after header-includes (#3898). It needs to be
3231 loaded as late as possible.
3232 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
3233 XeLaTeX on request.
3234 + Don't load `fontspec` before `unicode-math` (over there).
3235 The `unicode-math` package loads `fontspec` so explict loading of
3236 `fontspec` before `unicode-math` is not necessary.
3237 + Use `unicode-math` by default in default.latex template. mathspec will
3238 be used in xelatex if the `mathspec` variable is set; otherwise
3239 unicode-math will be used (Václav Haisman).
3240 + Use `dvipsnames` options when `colorlinks` specified (otherwise
3241 we get an error for `maroon`) (Thomas Hodgson).
3242 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
3243 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
3244 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
3245 clash when loading a package (e.g. `tufte-latex`) that uses
3246 `hyperref` settings different from those in the template.
3247 + Add `natbiboptions` variable (#3768).
3248 + Fix links inside captions in LaTeX output with links-as-notes
3249 (Václav Haisman, #3651). Declare our redefined `\href` robust.
3250 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
3251 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
3252 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
3253 packages. Use existing `CJKmainfont` and `CJKoptions` template
3254 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
3255 and `luatexjapresetoptions` for `luatexja-preset`.
3256 + Added `aspectratio` variable to beamer template (Václav Haisman,
3257 #3723).
3258 + Modified template.latex to fix XeLaTex being used with tables
3259 (lwolfsonkin, #3661). Reordered `lang` variable handling to
3260 immediately before `bidi`.
3262 * ConTeXt template: Improved font handling: `simplefonts` is now
3263 obsolete in ConTeXt (Pablo Rodríguez).
3266 [documentation improvements]
3268 * MANUAL.txt:
3270 + Add URL for Prince HTML > PDF engine (Ian, #3919).
3271 + Document that content above slide-level will be omitted in
3272 slide shows. See #3460, #2265.
3273 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
3274 + Small clarification in YAML metadata section.
3275 + Document that html4 is technically XHTML 1.0 transitional.
3276 + Remove refs to highlighting-kate (#3672).
3277 + Document ibooks specific epub metadata.
3278 + Clarify that mathml is used for ODT math.
3279 + Mention limitations of Literate Haskell Support (#3410,
3280 Joachim Breitner).
3281 + Add documentation of limitations of grid tables (Stephen
3282 McDowell, #3864).
3283 + Clarify that meta-json contains transformed values (Jakob Voß,
3284 #3491) Make clear that template variable `meta-json` does not
3285 contain plain text values or JSON output format but field values
3286 transformed to the selected output format.
3288 * COPYRIGHT:
3290 + Clarify that templates are dual-licensed.
3291 + Clarify that pandoc-types is BSD3 licensed.
3292 + List new files not written by jgm (Albert Krewinkel).
3293 + Update dates in copyright notices (Albert Krewinkel). This follows
3294 the suggestions given by the FSF for GPL licensed software.
3295 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
3297 * INSTALL.md:
3299 + Improved instructions for tests with patterns.
3300 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
3302 * CONTRIBUTING.md:
3304 + Fixed typos (Wandmalfarbe, #3479).
3305 + Add "ask on pandoc-discuss" (Mauro Bieg).
3307 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
3308 end of this document is autogenerated from `data/pandoc.lua`
3309 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
3310 (Albert Krewinkel).
3312 * Add `doc/filters.md`. This is the old scripting tutorial from
3313 the website.
3315 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
3316 to using pandoc as a Haskell library.
3319 [build infrastructure improvements]
3321 * Removed `data/templates` submodule. Templates are now a subtree
3322 in `data/templates`. This removes the need to do `git submodule
3323 update`.
3325 * Renamed `tests` -> `test`.
3327 * Remove `https` flag. Always build with HTTPS support.
3329 * Use `file-embed` instead of `hsb2hs` to embed data files when
3330 `embed_data_files` flag is set. `file-embed` gives us better dependency
3331 tracking: if a data file changes, ghc/stack/cabal know to recompile
3332 the Data module. This also removes `hsb2hs` as a build dependency.
3334 * Add `custom-setup` stanza to pandoc, lowercase field names.
3336 * Add `static` Cabal flag.
3338 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
3339 than -OSX. Changed local names from osx to macos.
3341 * make_macos_package.sh - Use strip to reduce executable size.
3343 * Revised binary linux package. Now a completely static executable
3344 is created, using Docker and alpine. We create both a deb and a
3345 tarball. The old `deb` directory has been replaced with a `linux`
3346 directory. Running `make` in the `linux` directory should
3347 perform the build, putting the binary packages in `artifacts/`.
3349 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
3350 pandoc-data packages will be uninstalled; this package provides
3351 both (#3822). Add latex packages as 'suggested', update
3352 description.
3354 * Remove cpphs build requirement -- it is no longer needed.
3356 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
3358 * Name change OSX -> macOS (ickc, #3869).
3360 * Fix casing of Linux, UNIX, and Windows (ickc).
3362 * `.travis.yml`: create a source dist and do cabal build and test there.
3363 That way we catch errors due to files missing from the data
3364 section of pandoc.cabal.
3366 * Makefile:
3368 + Split `make haddock` from `make full`.
3369 + Add BRANCH variable for winpkg.
3370 + Add `lint` target.
3371 + Improve `make full`. Disable optimizations.
3372 Build everything, inc. trypandoc and benchmarks. Use parallel build.
3373 + Allow `make test` to take `TESTARGS`.
3375 * Added new command tests (`Tests.Command`), using small text files
3376 in `test/command/`. Any files added in this directory will be treated
3377 as shell tests (see smart.md for an example). This makes it very easy
3378 to add regression tests etc.
3380 * Test fixes so we can find data files. In old tests & command tests,
3381 we now set the environment variable `pandoc_datadir`. In lua tests,
3382 we set the datadir explicitly.
3384 * Refactored `compareOutput` in docx writer test.
3386 * Consolidated some common functions in `Tests.Helper`.
3388 * Small change to unbalanced bracket test to speed up test suite.
3390 * Speed up Native writer quickcheck tests.
3392 * Use tasty for tests rather than test-framework.
3394 * Add simple Emacs mode to help with Pandoc templates editing.
3395 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
3398pandoc (1.19.2)
3400 * Use skylighting library instead of highlighting-kate for syntax
3401 highlighting. Skylighting is faster and more accurate (#3363).
3402 Later we'll be able to add features like warning messages, dynamic
3403 loading of xml syntax definitions, and dynamic loading of themes.
3405 * Added a new highlight style, `breezeDark`.
3407 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
3408 This allows more languages to be used when using the `--listings`
3409 option.
3411 * OpenDocument writer:
3413 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
3414 + Don't profilerate text styles unnecessarily (#3371).
3415 This change makes the writer create only as many temporary
3416 text styles as are absolutely necessary. It also consolidates
3417 adjacent nodes with the same style.
3419 * Org reader (Albert Krewinkel):
3421 + Allow short hand for single-line raw blocks (Albert Krewinkel,
3422 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
3423 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
3424 + Accept org-ref citations followed by commas (Albert Krewinkel).
3425 Bugfix for an issue which, whenever the citation was immediately
3426 followed by a comma, prevented correct parsing of org-ref citations.
3427 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
3428 `/*strong and emphasized*/`) was interpreted incorrectly in that the
3429 inner markup was not recognized.
3430 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
3432 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
3433 In the past, the docx reader wrote an empty header as an empty list. It
3434 should have the same width as a row (and be filled with empty cells).
3436 * MediaWiki reader:
3438 + Improved handling of display math (#3362). Sometimes display math is
3439 indented with more than one colon. Previously we handled these cases
3440 badly, generating definition lists and missing the math.
3441 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
3442 behavior when the smart option is parsed to match other readers'
3443 behavior.
3445 * Markdown reader:
3447 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
3448 (#3341). Previously this did not properly enable escaped line breaks.
3449 + Disallow space between inline code and attributes (#3326, #3323,
3450 Mauro Bieg).
3452 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
3454 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
3456 * LaTeX writer: allow tables with empty cells to count as "plain."
3457 This addresses a problem of too-wide tables when empty cells
3458 are used. Thanks to Joost Kremers for reporting the issue.
3460 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
3461 Unprefixed numbers where used by older org-mode versions, but are no
3462 longer supported.
3464 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
3465 Mauro Bieg).
3467 * Markdown writer: Fix display math with `--webtex` (#3298).
3469 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
3470 bumper314).
3472 * Templates:
3474 + default.latex: Moved geometry after hyperref (Václav Haisman).
3475 Otherwise PDF sizes can be wrong in some circumstances.
3476 + Copied a few changes from default.latex to default.beamer
3477 (Wandmalfarbe).
3478 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
3479 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
3480 that contain verbatim in notes (#3361). (Note: the beamer template
3481 was updated to match the LaTeX template, but at this point verbatim
3482 in notes seems not to work in beamer.)
3483 + default.latex: Allow passing `microtypeoptions` to microtype
3484 (Václav Haisman).
3485 + default.latex: Add hyphen option to url package.
3486 + default.docbook5: Fix namespace declarations (Mauro Bieg).
3488 * Moved `make_osx_package.sh` to `osx/` directory.
3490 * Travis continuous integration:
3492 + Fix false positives with dist build.
3493 + Speed improvements (Kolen Cheung, #3304, #3357).
3495 * MANUAL.txt:
3497 + Clarify that blank space is needed around footnotes (#3352).
3498 + Fixed typo (#3351, Alexey Rogechev).
3499 + Note that `--wrap=auto` does not work in HTML output.
3500 + Default `--columns` width is 72, not 80.
3501 + Fixed broken links (#3316, Kolen Cheung).
3502 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
3504 * INSTALL.md:
3506 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
3507 + Added instructions for extracting binary from OSX, Windows packages.
3509 * CONTRIBUTING.md: Describe labels currently used in issue tracker
3510 (Albert Krewinkel). The labels have changed over time, the list of
3511 labels is updated to reflect the current set of labels used in the
3512 issue tracker.
3514 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
3516 * Bumped version bounds for dependencies.
3519pandoc (1.19.1)
3521 * Set `PANDOC_VERSION` environment variable for filters (#2640).
3522 This allows filters to check the pandoc version that produced
3523 the JSON they are receiving.
3525 * Docx reader: Ensure one-row tables don't have header (#3285,
3526 Jesse Rosenthal). Tables in MS Word are set by default to have
3527 special first-row formatting, which pandoc uses to determine whether
3528 or not they have a header. This means that one-row tables will, by
3529 default, have only a header -- which we imagine is not what people
3530 want. This change ensures that a one-row table is not understood to
3531 be a header only. Note that this means that it is impossible to
3532 produce a header-only table from docx, even though it is legal
3533 pandoc. But we believe that in nearly all cases, it will be an
3534 accidental (and unwelcome) result
3536 * HTML reader:
3538 + Fixed some bad regressions in HTML table parser (#3280).
3539 This regression leads to the introduction of empty rows
3540 in some circumstances.
3541 + Understand `style=width:` as well as `width` in `col` (#3286).
3543 * RST reader:
3545 + Print warnings when keys, substitition, notes not found.
3546 Previously the parsers failed and we got raw text. Now we get a
3547 link with an empty URL, or empty inlines in the case of a note or
3548 substitution.
3550 + Fix hyperlink aliases (#3283).
3552 * Man writer: Ensure that periods are escaped at beginning of line
3553 (#3270).
3555 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
3556 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
3557 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
3558 are ensured to be written using stared commands (like `\subsection*{}`).
3560 * LaTeX template: use comma not semicolon to separate keywords for
3561 `pdfkeywords`. Thanks to Wandmalfarbe.
3563 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
3564 would sometimes wrap lines too early due to this bug.
3566 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
3567 possible to insert escape codes for content that needs escaping at the
3568 beginning of a line.
3570 * Removed old MathMLInHTML.js from 2004, which should no longer
3571 be needed for MathML with modern browsers.
3573 * Fixed tests with dynamic linking (#2709).
3575 * Makefile: Use stack instead of cabal for targets. This is just
3576 a convenience for developers.
3578 * Fixed bash completion of filenames with space (#2749).
3580 * MANUAL: improved documentation on how to create a custom `reference.docx`.
3582 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
3584pandoc (1.19)
3586 * Changed resolution of filter paths.
3588 + We now first treat the argument of `--filter` as a full (absolute
3589 or relative) path, looking for a program there. If it's found, we
3590 run it.
3591 + If not, and if it is a simple program name or a relative path, we
3592 try resolving it relative to `$DATADIR/filters`.
3593 + If this fails, then we treat it as a program name and look in the
3594 user's PATH.
3595 + Removed a hardcoded '/' that may have caused problems with
3596 Windows paths.
3598 Previously if you did `--filter foo` and you had `foo` in your path and
3599 also an executable `foo` in your working directory, the one in the path
3600 would be used. Now the one in the working directory is used.
3602 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
3603 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
3604 `foo/bar.hs` relative to the working directory.
3606 * Allow `file://` URIs as arguments (#3196). Also improved default reader
3607 format detection. Previously with a URI ending in .md or .markdown,
3608 pandoc would assume HTML input. Now it treats these as markdown.
3610 * Allow to overwrite top-level division type heuristics (#3258,
3611 Albert Krewinkel). Pandoc uses heuristics to determine the most
3612 reasonable top-level division type when emitting LaTeX or
3613 Docbook markup. It is now possible to overwrite this implicitly set
3614 top-level division via the `top-level-division` command line parameter.
3616 * Text.Pandoc.Options \[API changes\]:
3618 + Removed `writerStandalone` field in `WriterOptions`, made
3619 `writerTemplate` a `Maybe` value. Previously setting
3620 `writerStandalone = True` did nothing unless a template was provided
3621 in writerTemplate. Now a fragment will be generated if
3622 `writerTemplate` is `Nothing`; otherwise, the specified template
3623 will be used and standalone output generated.
3624 + `Division` has been renamed `TopLevelDivision` (#3197). The
3625 `Section`, `Chapter`, and `Part` constructors were renamed to
3626 `TopLevelSection`, `TopLevelChapter`, and
3627 `TopLevelPart`, respectively. An additional `TopLevelDefault`
3628 constructor was added, which is now also the new default value of
3629 the `writerTopLevelDivision` field in `WriterOptions`.
3631 * Improved error if they give wrong arg to `--top-level-division`.
3633 * Use new module from texmath to lookup MS font codepoints in Docx reader.
3634 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
3635 lives in texmath (0.9).
3637 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
3638 when the qnames lacked the docbook namespace URI.
3640 * HTML reader:
3642 + Improved table parsing (#3027). We now check explicitly for non-1
3643 rowspan or colspan attributes, and fail when we encounter them.
3644 Previously we checked that each row had the same number of cells,
3645 but that could be true even with rowspans/colspans. And there are
3646 cases where it isn't true in tables that we can handle fine -- e.g.
3647 when a tr element is empty. So now we just pad rows with empty cells
3648 when needed.
3649 + Treat `<math>` as MathML by default unless something else is
3650 explicitly specified in xmlns. Provided it parses as MathML,
3651 of course. Also fixed default which should be to inline math if no
3652 display attribute is used.
3653 + Only treat "a" element as link if it has href (#3226). Otherwise
3654 treat as span.
3656 * Docx reader (Jesse Rosenthal):
3658 + Add a placeholder value for CHART. We wrap `[CHART]` in a
3659 `<span class="chart">`. Note that it maps to inlines because, in
3660 docx, anything in a drawing tag can be part of a larger paragraph.
3661 + Be more specific in parsing images We not only want `w:drawing`,
3662 because that could also include charts. Now we specify
3663 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
3664 a first step toward allowing other sorts of drawing data as well.
3665 + Abstract out function to avoid code repetition.
3666 + Update tests for img title and alt (#3204).
3667 + Handle Alt text and titles in images. We use the "description" field
3668 as alt text and the "title" field as title. These can be accessed
3669 through the "Format Picture" dialog in Word.
3670 + Docx reader utils: handle empty namespace in `elemName`. Previously,
3671 if given an empty namespace `(elemName ns "" "foo")` `elemName`
3672 would output a QName with a `Just ""` namespace. This is never what
3673 we want. Now we output a `Nothing`. If someone *does* want a
3674 `Just ""` in the namespace, they can enter the QName
3675 value explicitly.
3677 * ODT reader/writer:
3679 + Inline code when text has a special style (Hubert Plociniczak). When
3680 a piece of text has a text `Source_Text` then we assume that this is
3681 a piece of the document that represents a code that needs to
3682 be inlined. Adapted the writer to also reflect that change.
3683 Previously it was just writing a 'preformatted' text using a
3684 non-distinguishable font style. Code blocks are still not recognized
3685 by the ODT reader. That's a separate issue.
3686 + Infer table's caption from the paragraph (#3224,
3687 Hubert Plociniczak). ODT's reader always put empty captions for the
3688 parsed tables. This commit
3690 1. checks paragraphs that follow the table definition
3691 2. treats specially a paragraph with a style named 'Table'
3692 3. does some postprocessing of the paragraphs that combines tables
3693 followed immediately by captions
3695 The ODT writer used the `TableCaption` style for the caption
3696 paragraph. This commit follows the OpenOffice approach which allows
3697 for appending captions to table but uses a built-in style named
3698 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
3699 should change the style's name from `TableCaption` to `Table`.
3701 * ODT reader: Infer tables' header props from rows (#3199,
3702 Hubert Plociniczak). ODT reader simply provided an empty header list
3703 which meant that the contents of the whole table, even if not empty, was
3704 simply ignored. While we still do not infer headers we at least have to
3705 provide default properties of columns.
3707 * Markdown reader:
3709 + Allow reference link labels starting with `@...` if `citations`
3710 extension disabled (#3209). Example: in
3712 \[link text\]\[@a\]
3714 `link text` isn't hyperlinked because `[@a]` is parsed as
3715 a citation. Previously this happened whether or not the `citations`
3716 extension was enabled. Now it happens only if the `citations`
3717 extension is enabled.
3718 + Allow alignments to be specified in Markdown grid tables. For
3719 example,
3721 +-------+---------------+--------------------+
3722 | Right | Left | Centered |
3723 +=========:+:=================+:=============:+
3724 | Bananas | $1.34 | built-in wrapper |
3725 +-------+---------------+--------------------+
3727 + Allow Small Caps elements to be created using bracketed spans (as
3728 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
3730 * LaTeX reader:
3732 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
3733 Fixed an error which came up, for example, with `\vspace` inside
3734 a caption. (Captions expect inlines.)
3735 + Improved table handling. We can now parse all of the tables emitted
3736 by pandoc in our tests. The only thing we don't get yet are
3737 alignments and column widths in more complex tables. See #2669.
3738 + Limited support for minipage.
3739 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
3740 + Handle BVerbatim from fancyvrb (#3203).
3741 + Handle hungarumlaut (#3201).
3742 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
3743 (#3184). This allows use of things like `\only<2,3>{my content}` in
3744 Markdown that is going to be converted to beamer.
3746 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
3747 overly long code will appear on every slide.
3749 * Org reader (Albert Krewinkel):
3751 + Respect column width settings (#3246). Table column properties can
3752 optionally specify a column's width with which it is displayed in
3753 the buffer. Some exporters, notably the ODT exporter in org-mode
3754 v9.0, use these values to calculate relative column widths. The org
3755 reader now implements the same behavior. Note that the org-mode
3756 LaTeX and HTML exporters in Emacs don't support this feature yet,
3757 which should be kept in mind by users who use the column
3758 widths parameters.
3759 + Allow HTML attribs on non-figure images (#3222). Images which are
3760 the only element in a paragraph can still be given HTML attributes,
3761 even if the image does not have a caption and is hence not a figure.
3762 The following will add set the `width` attribute of the image to
3763 `50%`:
3765 +ATTR\_HTML: :width 50%
3766 =======================
3768 \[\[file:image.jpg\]\]
3770 + Support `ATTR_HTML` for special blocks (#3182). Special
3771 blocks (i.e. blocks with unrecognized names) can be prefixed with an
3772 `ATTR_HTML` block attribute. The attributes defined in that
3773 meta-directive are added to the `Div` which is used to represent the
3774 special block.
3775 + Support the `todo` export option. The `todo` export option allows to
3776 toggle the inclusion of TODO keywords in the output. Setting this to
3777 `nil` causes TODO keywords to be dropped from headlines. The default
3778 is to include the keywords.
3779 + Add support for todo-markers. Headlines can have optional
3780 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
3781 or `#+TYP_TODO` meta directive. Multiple such directives can be
3782 given, each adding a new set of recognized todo-markers. If no
3783 custom todo-markers are defined, the default `TODO` and `DONE`
3784 markers are used. Todo-markers are conceptually separate from
3785 headline text and are hence excluded when autogenerating
3786 headline IDs. The markers are rendered as spans and labelled with
3787 two classes: One class is the markers name, the other signals the
3788 todo-state of the marker (either `todo` or `done`).
3790 * LaTeX writer:
3792 + Use `\autocites*` when "suppress-author" citation used.
3793 + Ensure that simple tables have simple cells (#2666). If cells
3794 contain more than a single Plain or Para, then we need to set
3795 nonzero widths and put contents into minipages.
3796 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
3798 * Markdown writer:
3800 + Fix calculation of column widths for aligned multiline tables
3801 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
3802 usage for tables when `--columns` is set in such a way that cells
3803 must be very tiny. Now cells are guaranteed to be big enough so that
3804 single words don't need to line break, even if this pushes the line
3805 length above the column width.
3806 + Use bracketed form for native spans when `bracketed_spans`
3807 enabled (#3229).
3808 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
3809 sublist got rendered with a blank line after, while a tight ordered
3810 sublist did not. Now we don't get the blank line in either case.
3811 + Fix escaping of spaces in super/subscript (#3225). Previously two
3812 backslashes were inserted, which gave a literal backslash.
3813 + Adjust widths in Markdown grid tables so that they match
3814 on round-trip.
3816 * Docx writer:
3818 + Give full detail when there are errors converting tex math.
3819 + Handle title text in images (Jesse Rosenthal). We already handled
3820 alt text. This just puts the image "title" into the docx
3821 "title" attr.
3822 + Fixed XML markup for empty cells (#3238). Previously the Compact
3823 style wasn't being applied properly to empty cells.
3825 * HTML writer:
3827 + Updated `renderHtml` import from blaze-html.
3829 * Text.Pandoc.Pretty:
3831 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
3832 caused spurious blank lines in grid tables when we had things like
3833 `blankline $$ blankline`.
3834 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
3835 + Added error message for illegal call to `block` (Björn Peemöller).
3837 * Text.Pandoc.Shared:
3839 + Put `warn` in MonadIO.
3840 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
3841 URL starts with `//` and there is no "base URL" (as there would be
3842 if a URL were used on the command line), then default to http:.
3844 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
3846 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
3847 fixes a crash with `pandoc --version` on unusual systems with no real
3848 user (e.g. SQL Server 2016).
3850 * Added weigh-pandoc for memory usage diagnostics (#3169).
3852 * Use correct mime types for woff and woff2 (#3228).
3854 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
3856 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
3857 1.18 section where it belongs.
3859 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
3860 Kolen Cheung).
3862 * Further revisions to manual for `--version` changes (#3244).
3865pandoc (1.18)
3867 * Added `--list-input-formats`, `--list-output-formats`,
3868 `--list-extensions`, `--list-highlight-languages`, and
3869 `--list-highlight-styles` (#3173). Removed list of highlighting
3870 languages from `--version` output. Removed list of input and output
3871 formats from default `--help` output.
3873 * Added `--reference-location=block|section|document` option
3874 (Jesse Rosenthal). This determines whether Markdown link references
3875 and footnotes are placed at the end of the document, the end of the
3876 section, or the end of the top-level block.
3878 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
3879 This determines what a level-1 header corresponds to in LaTeX,
3880 ConTeXt, DocBook, and TEI output. The default is `section`.
3881 The `--chapters` option has been deprecated in favor of
3882 `--top-level-division=chapter`.
3884 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
3885 is now used in parsing RST and Markdown line blocks, DocBook
3886 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
3887 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
3888 are handled specially in the following ouput formats: AsciiDoc
3889 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
3890 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
3891 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
3892 other output formats, a paragraph with hard linebreaks is emitted.
3894 * Allow binary formats to be written to stdout (but not to tty) (#2677).
3895 Only works on posix, since we use the unix library to check whether
3896 output is to tty. On Windows, pandoc works as before and always requires
3897 an output file parameter for binary formats.
3899 * Changed JSON output format (Jesse Rosenthal). Previously we used
3900 generically generated JSON, but this was subject to change depending
3901 on the version of aeson pandoc was compiled with. To ensure stability,
3902 we switched to using manually written ToJSON and FromJSON
3903 instances, and encoding the API version. **Note:** pandoc filter
3904 libraries will need to be revised to handle the format change.
3905 Here is a summary of the essential changes:
3907 + The toplevel JSON format is now `{"pandoc-api-version" :
3908 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
3909 instead of `[{"unMeta": META}, [BLOCKS]]`.
3910 Decoding fails if the major and minor version numbers don't
3911 match.
3912 + Leaf nodes no longer have an empty array for their "c" value.
3913 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
3914 rather than `{"t":"Space","c":[]}` as before.
3916 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
3917 module to pandoc-types (Jesse Rosenthal). This makes it easier
3918 to use QuickCheck with pandoc types outside of pandoc itself.
3920 * Add `bracketed_spans` Markdown extension, enabled by default
3921 in pandoc `markdown`. This allows you to create a native span
3922 using this syntax: `[Here is my span]{#id .class key="val"}`.
3924 * Added `angle_brackets_escapable` Markdown extension (#2846).
3925 This is needed because github flavored Markdown has a slightly
3926 different set of escapable symbols than original Markdown;
3927 it includes angle brackets.
3929 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
3931 * Print highlighting-kate version in `--version`.
3933 * `Text.Pandoc.Options`:
3935 + `Extension` has new constructors `Ext_brackted_spans` and
3936 `Ext_angle_brackets_escapable` [API change].
3937 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
3938 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
3939 Rosenthal).
3941 * `--filter`: we now check `$DATADIR/filters` for filters before
3942 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
3943 Voß for the idea). Filters placed in this directory need not
3944 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
3945 or `.rb`, pandoc will run the right interpreter.
3947 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
3948 default (Kolen Cheung).
3950 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
3952 * Execute .js filters with node (Jakob Voß).
3954 * Textile reader:
3956 + Support `bc..` extended code blocks (#3037). Also, remove trailing
3957 newline in code blocks (consistently with Markdown reader).
3958 + Improve table parsing. We now handle cell and row attributes, mostly
3959 by skipping them. However, alignments are now handled properly.
3960 Since in pandoc alignment is per-column, not per-cell, we
3961 try to devine column alignments from cell alignments.
3962 Table captions are also now parsed, and textile indicators
3963 for thead and tfoot no longer cause parse failure. (However,
3964 a row designated as tfoot will just be a regular row in pandoc.)
3965 + Improve definition list parsing. We now allow multiple terms
3966 (which we concatenate with linebreaks). An exponential parsing
3967 bug (#3020) is also fixed.
3968 + Disallow empty URL in explicit link (#3036).
3970 * RST reader:
3972 + Use Div instead of BlockQuote for admonitions (#3031).
3973 The Div has class `admonition` and (if relevant) one of the
3974 following: `attention`, `caution`, `danger`, `error`, `hint`,
3975 `important`, `note`, `tip`, `warning`. **Note:** This will change
3976 the rendering of some RST documents! The word ("Warning", "Attention",
3977 etc.) is no longer added; that must be done with CSS or a filter.
3978 + A Div is now used for `sidebar` as well.
3979 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
3980 space before a footnote marker. We discard those spaces so that footnotes
3981 will be adjacent to the text that comes before it. This is in line with
3982 what rst2latex does.
3983 + Allow empty lines when parsing line blocks (Albert Krewinkel).
3985 * Markdown reader:
3987 + Allow empty lines when parsing line blocks (Albert Krewinkel).
3988 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
3990 * LaTeX reader:
3992 + More robust parsing of unknown environments (#3026).
3993 We no longer fail on things like `^` inside options for tikz.
3994 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
3995 Some custom environments give these a meaning, so we should try not to
3996 fall over when we encounter them.
3997 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
3999 * MediaWiki reader:
4001 + Fix for unquoted attribute values in mediawiki tables (#3053).
4002 Previously an unquoted attribute value in a table row
4003 could cause parsing problems.
4004 + Improved treatment of verbatim constructions (#3055).
4005 Previously these yielded strings of alternating Code and Space
4006 elements; we now incorporate the spaces into the Code. Emphasis
4007 etc. is still possible inside these.
4008 + Properly interpret XML tags in pre environments (#3042). They are meant
4009 to be interpreted as literal text.
4011 * EPUB reader: don't add root path to data: URIs (#3150).
4012 Thanks to @lep for the bug report and patch.
4014 * Org reader (Albert Krewinkel):
4016 + Preserve indentation of verse lines (#3064). Leading spaces in verse
4017 lines are converted to non-breaking spaces, so indentation is preserved.
4018 + Ensure image sources are proper links. Image sources as those in plain
4019 images, image links, or figures, must be proper URIs or relative file
4020 paths to be recognized as images. This restriction is now enforced
4021 for all image sources. This also fixes the reader's usage of uncleaned
4022 image sources, leading to `file:` prefixes not being deleted from
4023 figure images. Thanks to @bsag for noticing this bug.
4024 + Trim verse lines properly (Albert Krewinkel).
4025 + Extract meta parsing code to module. Parsing of meta-data is well
4026 separable from other block parsing tasks. Moving into new module to
4027 get small files and clearly arranged code.
4028 + Read markup only for special meta keys. Most meta-keys should be read
4029 as normal string values, only a few are interpreted as marked-up text.
4030 + Allow multiple, comma-separated authors. Multiple authors can be
4031 specified in the `#+AUTHOR` meta line if they are given as a
4032 comma-separated list.
4033 + Give precedence to later meta lines. The last meta-line of any given
4034 type is the significant line. Previously the value of the first line
4035 was kept, even if more lines of the same type were encounterd.
4036 + Read LaTeX_header as header-includes. LaTeX-specific header commands
4037 can be defined in `#+LaTeX_header` lines. They are parsed as
4038 format-specific inlines to ensure that they will only show up in LaTeX
4039 output.
4040 + Set documentclass meta from LaTeX_class.
4041 + Set classoption meta from LaTeX_class_options.
4042 + Read HTML_head as header-includes. HTML-specific head content can be
4043 defined in `#+HTML_head` lines. They are parsed as format-specific
4044 inlines to ensure that they will only show up in HTML output.
4045 + Respect `author` export option. The `author` option controls whether
4046 the author should be included in the final markup. Setting
4047 `#+OPTIONS: author:nil` will drop the author from the final meta-data
4048 output.
4049 + Respect `email` export option. The `email` option controls whether the
4050 email meta-field should be included in the final markup. Setting
4051 `#+OPTIONS: email:nil` will drop the email field from the final
4052 meta-data output.
4053 + Respect `creator` export option. The `creator` option controls whether
4054 the creator meta-field should be included in the final markup. Setting
4055 `#+OPTIONS: creator:nil` will drop the creator field from the final
4056 meta-data output. Org-mode recognizes the special value `comment` for
4057 this field, causing the creator to be included in a comment. This is
4058 difficult to translate to Pandoc internals and is hence interpreted the
4059 same as other truish values (i.e. the meta field is kept if it's
4060 present).
4061 + Respect unnumbered header property (#3095). Sections the `unnumbered`
4062 property should, as the name implies, be excluded from the automatic
4063 numbering of section provided by some output formats. The Pandoc
4064 convention for this is to add an "unnumbered" class to the header. The
4065 reader treats properties as key-value pairs per default, so a special
4066 case is added to translate the above property to a class instead.
4067 + Allow figure with empty caption (Albert Krewinkel, #3161).
4068 A `#+CAPTION` attribute before an image is enough to turn an image into
4069 a figure. This wasn't the case because the `parseFromString` function,
4070 which processes the caption value, would fail on empty values. Adding
4071 a newline character to the caption value fixes this.
4073 * Docx reader:
4075 + Use XML convenience functions (Jesse Rosenthal).
4076 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
4077 the code a lot cleaner than the original XML.Light functions, but they
4078 had been used inconsistently. This puts them in wherever applicable.
4079 + Handle anchor spans with content in headers. Previously, we would only
4080 be able to figure out internal links to a header in a docx if the
4081 anchor span was empty. We change that to read the inlines out of the
4082 first anchor span in a header.
4083 + Let headers use exisiting id. Previously we always generated an id for
4084 headers (since they wouldn't bring one from Docx). Now we let it use an
4085 existing one if possible. This should allow us to recurs through anchor
4086 spans.
4087 + Use all anchor spans for header ids. Previously we only used the first
4088 anchor span to affect header ids. This allows us to use all the anchor
4089 spans in a header, whether they're nested or not (#3088).
4090 + Test for nested anchor spans in header. This ensures that anchor spans
4091 in header with content (or with other anchor spans inside) will resolve
4092 to links to a header id properly.
4094 * ODT reader (Hubert Plociniczak)
4096 + Include list's starting value. Previously the starting value of
4097 the lists' items has been hardcoded to 1. In reality ODT's list
4098 style definition can provide a new starting value in one of its
4099 attributes.
4100 + Infer caption from the text following the image.
4101 Frame can contain other frames with the text boxes.
4102 + Add `fig:` to title for Image with a caption (as expected
4103 by pandoc's writers).
4104 + Basic support for images in ODT documents.
4105 + Don't duplicate text for anchors (#3143). When creating an anchor
4106 element we were adding its representation as well as the original
4107 content, leading to text duplication.
4109 * DocBook writer:
4111 + Include an anchor element when a div or span has an id (#3102).
4112 Note that DocBook does not have a class attribute, but at least this
4113 provides an anchor for internal links.
4115 * LaTeX writer:
4117 + Don't use * for unnumbered paragraph, subparagraph. The starred
4118 variants don't exist. This helps with part of #3058...it gets rid of
4119 the spurious `*`s. But we still have numbers on the 4th and 5th level
4120 headers.
4121 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
4122 Otherwise they can cause unintended ligatures like `` ?` ``.
4123 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
4124 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
4125 This allows figure placement defaults to be changed by the user
4126 in the template.
4128 * HTML writer (slide show formats): In slide shows, don't change slide title
4129 to level 1 header (#2221).
4131 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
4132 TEI doesn't have `<book>` elements but only generic `<divN>` division
4133 elements. Checking the template for a trailing `</book>` is nonsensical.
4135 * MediaWiki writer: transform filename with underscores in images (#3052).
4136 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
4137 for internal links, but it also needs to happen for images.
4139 * ICML writer: replace partial function (!!) in table handling (#3175,
4140 Mauro Bieg).
4142 * Man writer: allow section numbers that are not a single digit (#3089).
4144 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
4145 (#3068). In AsciiDoc, you must use a special form of emphasis
4146 (double `__`) for intraword emphasis. Pandoc was previously using
4147 this more than necessary.
4149 * EPUB writer: use stringify instead of plain writer for metadata
4150 (#3066). This means that underscores won't be used for emphasis,
4151 or CAPS for bold. The metadata fields will just have unadorned
4152 text.
4154 * Docx Writer:
4156 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
4157 with a `custom-style` key in the attributes will apply the corresponding
4158 key to the contained blocks or inlines.
4159 + Add ReaderT env to the docx writer (Jesse Rosenthal).
4160 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
4161 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
4162 on the command line. For finer-grained control, you can set
4163 the `dir` attribute in Div or Span elements.
4165 * Org writer (Albert Krewinkel):
4167 + Remove blank line after figure caption. Org-mode only treats an image
4168 as a figure if it is directly preceded by a caption.
4169 + Ensure blank line after figure. An Org-mode figure should be surrounded
4170 by blank lines. The figure would be recognized regardless, but images
4171 in the following line would unintentionally be treated as figures as
4172 well.
4173 + Ensure link targets are paths or URLs. Org-mode treats links as
4174 document internal searches unless the link target looks like a URL or
4175 file path, either relative or absolute. This change ensures that this
4176 is always the case.
4177 + Translate language identifiers. Pandoc and Org-mode use different
4178 programming language identifiers. An additional translation between
4179 those identifiers is added to avoid unexpected behavior. This fixes a
4180 problem where language specific source code would sometimes be output
4181 as example code.
4182 + Drop space before footnote markers (Albert Krewinkel, #3162).
4183 The writer no longer adds an extra space before footnote markers.
4185 * Markdown writer:
4187 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
4188 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
4189 is disabled.
4190 + Check for the `raw_html` extension before emiting a raw HTML block.
4191 + Abstract out note/ref function (Jesse Rosenthal).
4192 + Add ReaderT monad for environment variables (Jesse Rosenthal).
4194 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
4195 subtitle, author, date (#3119). Note that, as a result of this change,
4196 authors may need to update CSS.
4198 * revealjs template: Added `notes-server` option
4199 (jgm/pandoc-templates#212, Yoan Blanc).
4201 * Beamer template:
4203 + Restore whitespace between paragraphs. This was
4204 a regression in the last release (jgm/pandoc-templates#207).
4205 + Added `themeoptions` variable (Carsten Gips).
4206 + Added `beamerarticle` variable. This causes the `beamerarticle`
4207 package to be loaded in beamer, to produce an article from beamer
4208 slides. (Carsten Gips)
4209 + Added support for `fontfamilies` structured variable
4210 (Artem Klevtsov).
4211 + Added hypersetup options (Jake Zimmerman).
4213 * LaTeX template:
4215 + Added dummy definition for `\institute`.
4216 This isn't a standard command, and we want to avoid a crash when
4217 `institute` is used with the default template.
4218 + Define default figure placement (Václav Haisman), since pandoc
4219 no longer includes `[htbp]` for figures. Users with custom templates
4220 will want to add this. See #3103.
4221 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
4222 Václav Haisman).
4224 * Moved template compiling/rendering code to a separate library.
4225 `doctemplates`. This allows the pandoc templating system to be
4226 used independently.
4228 * Text.Pandoc.Error: Fix out of index error in `handleError`
4229 (Matthew Pickering). The fix is to not try to show the exact line when
4230 it would cause an out-of-bounds error as a result of included files.
4232 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
4234 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
4235 addresses. Technically `**@user` is a valid email address, but if we
4236 allow things like this, we get bad results in markdown flavors
4237 that autolink raw email addresses (see #2940). So we exclude a few
4238 valid email addresses in order to avoid these more common bad cases.
4240 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
4241 emit the alt text, emphasized. This accords with what the ODT writer
4242 currently does. The user will still get a warning about a nonexistent
4243 image.
4245 * Fix example in API documentation (#3176, Thomas Weißschuh).
4247 * Tell where to get tarball in INSTALL (#3062).
4249 * Rename README to MANUAL.txt and add GitHub-friendly README.md
4250 (Albert Krewinkel, Kolen Cheung).
4252 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
4254 * MANUAL.txt:
4256 + Put note on structured vars in separate paragraph (#2148, Albert
4257 Krewinkel). Make it clearer that structured author variables require a
4258 custom template
4259 + Note that `--katex` works best with `html5` (#3077).
4260 + Fix the LaTeX and EPUB links in manual (Morton Fox).
4261 + Document `biblio-title` variable.
4263 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
4265 * Update KaTeX to v0.6.0 (Kolen Cheung).
4267 * Allow latest dependencies.
4269 * Use texmath 0.8.6.6 (#3040).
4271 * Allow http-client 0.4.30, which is the version in stackage lts.
4272 Previously we required 0.5.
4273 Remove CPP conditionals for earlier versions.
4275 * Remove support for GHC < 7.8 (Jesse Rosenthal).
4277 + Remove Compat.Monoid.
4278 + Remove an inline monad compatibility macro.
4279 + Remove Text.Pandoc.Compat.Except.
4280 + Remove directory compat.
4281 + Change constraint on mtl.
4282 + Remove unnecessary CPP condition in UTF8.
4283 + Bump base lower bound to 4.7.
4284 + Remove 7.6 build from .travis.yaml.
4285 + Bump supported ghc version in CONTRIBUTING.md.
4286 + Add note about GHC version support to INSTALL.
4287 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
4288 + Remove TagSoup compat.
4289 + Add EOL note to time compat module. Because time 1.4 is a boot library
4290 for GHC 7.8, we will support the compatibility module as long as we
4291 support 7.8. But we should be clear about when we will no longer need
4292 it.
4293 + Remove blaze-html CPP conditional.
4294 + Remove unnecessary CPP in custom Prelude.
4296pandoc (1.17.2)
4298 * Added Zim Wiki writer, template and tests. `zimwiki` is now
4299 a valid output format. (Alex Ivkin)
4301 * Changed email-obfuscation default to no obfuscation (#2988).
4302 + `writerEmailObfuscation` in `defaultWriterOptions` is now
4303 `NoObfuscation`.
4304 + the default for the command-line `--email-obfuscation` option is
4305 now `none`.
4307 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
4309 * Org writer:
4311 + Support arbitrary raw inlines (Albert Krewinkel).
4312 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
4313 parlance) to be included as `@@format:raw foreign format text@@`.
4314 + Improve Div handling (Albert Krewinkel). Div blocks handling is
4315 changed to make the output look more like idiomatic org mode:
4316 - Div-wrapped content is output as-is if the div's attribute is the
4317 null attribute.
4318 - Div containers with an id but neither classes nor key-value pairs
4319 are unwrapped and the id is added as an anchor.
4320 - Divs with classes associated with greater block elements are
4321 wrapped in a `#+BEGIN`...`#+END` block.
4322 - The old behavior for Divs with more complex attributes is kept.
4324 * HTML writer:
4326 + Better support for raw LaTeX environments (#2758).
4327 Previously we just passed all raw TeX through when MathJax was used for
4328 HTML math. This passed through too much. With this patch, only raw
4329 LaTeX environments that MathJax can handle get passed through.
4330 This patch also causes raw LaTeX environments to be treated
4331 as math, when possible, with MathML and WebTeX output.
4333 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
4334 (#2993). Markdown line breaks involve a newline, and simple and pipe
4335 tables can't contain one.
4337 * Make --webtex work with the Markdown writer (#1177).
4338 This is a convenient option for people using
4339 websites whose Markdown flavors don't provide for math.
4341 * Docx writer:
4343 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
4344 We treat display math like block quotes, and apply FirstParagraph style
4345 to paragraphs that follow them. These can be styled as the user
4346 wishes. (But, when the user is using indentation, this allows for
4347 paragraphs to continue after display math without indentation.)
4348 + Use actual creation time as doc prop (Jesse Rosenthal).
4349 Previously, we had used the user-supplied date, if available, for Word's
4350 document creation metadata. This could lead to weird results, as in
4351 cases where the user post-dates a document (so the modification might be
4352 prior to the creation). Here we use the actual computer time to set the
4353 document creation.
4355 * LaTeX writer:
4357 + Don't URI-escape image source (#2825). Usually this is a local file,
4358 and replacing spaces with `%20` ruins things.
4359 + Allow 'standout' as a beamer frame option (#3007).
4360 `## Slide title {.standout}`.
4362 * RST reader: Fixed links with no explicit link text. The link
4363 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
4364 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
4365 Closes Debian #828167 -- reported by Christian Heller.
4367 * Textile reader:
4369 + Fixed attributes (#2984). Attributes can't be followed by
4370 a space. So, `_(class)emph_` but `_(noclass) emph_`.
4371 + Fixed exponential parsing bug (#3020).
4372 + Fix overly aggressive interpretation as images (#2998).
4373 Spaces are not allowed in the image URL in textile.
4375 * LaTeX reader:
4377 + Fix `\cite` so it is a NormalCitation not AuthorInText.
4378 + Strip off double quotes around image source if present (#2825).
4379 Avoids interpreting these as part of the literal filename.
4381 * Org reader:
4383 + Add semicolon to list of special chars (Albert Krewinkel)
4384 Semicolons are used as special characters in citations syntax. This
4385 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
4386 suffix]`. Previously, parsing would have failed unless there was a space
4387 or other special character as the last <prefix> character.
4388 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
4389 A specification for an official Org-mode citation syntax was drafted by
4390 Richard Lawrence and enhanced with the help of others on the orgmode
4391 mailing list. Basic support for this citation style is added to the
4392 reader.
4393 + Support arbitrary raw inlines (Albert Krewinkel).
4394 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
4395 parlance) to be included as `@@format:raw foreign format text@@`.
4396 + Remove partial functions (Albert Krewinkel, #2991).
4397 Partial functions like `head` lead to avoidable errors and should be
4398 avoided. They are replaced with total functions.
4399 + Support figure labels (Albert Krewinkel, #2496, #2999).
4400 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
4401 respective image. This allows e.g. the LaTeX to add proper `\label`
4402 markup.
4403 + Improve tag and properties type safety (Albert Krewinkel).
4404 Specific newtype definitions are used to replace stringly typing of tags
4405 and properties. Type safety is increased while readability is improved.
4406 + Parse as headlines, convert to blocks (Albert Krewinkel).
4407 Emacs org-mode is based on outline-mode, which treats documents as trees
4408 with headlines are nodes. The reader is refactored to parse into a
4409 similar tree structure. This simplifies transformations acting on
4410 document (sub-)trees.
4411 * Refactor comment tree handling (Albert Krewinkel).
4412 Comment trees were handled after parsing, as pattern matching on lists
4413 is easier than matching on sequences. The new method of reading
4414 documents as trees allows for more elegant subtree removal.
4415 * Support archived trees export options (Albert Krewinkel).
4416 Handling of archived trees can be modified using the `arch` option.
4417 Archived trees are either dropped, exported completely, or collapsed to
4418 include just the header when the `arch` option is nil, non-nil, or
4419 `headline`, respectively.
4420 * Put export setting parser into module (Albert Krewinkel).
4421 Export option parsing is distinct enough from general block parsing to
4422 justify putting it into a separate module.
4423 * Support headline levels export setting (Albert Krewinkel).
4424 The depths of headlines can be modified using the `H` option. Deeper
4425 headlines will be converted to lists.
4426 * Replace ugly code with view pattern (Albert Krewinkel).
4427 Some less-than-smart code required a pragma switching of overlapping
4428 pattern warnings in order to compile seamlessly. Using view patterns
4429 makes the code easier to read and also doesn't require overlapping
4430 pattern checks to be disabled.
4431 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
4432 Org rules for allowed characters before or after markup chars were not
4433 checked for verbatim text. This resultet in wrong parsing outcomes of
4434 if the verbatim text contained e.g. space enclosed markup characters as
4435 part of the text (`=is_substr = True=`). Forcing the parser to update
4436 the positions of allowed/forbidden markup border characters fixes this.
4438 * LaTeX template: fix for obscure hyperref/xelatex issue.
4439 Here's a minimal case:
4441 \documentclass[]{article}
4442 \usepackage{hyperref}
4443 \begin{document}
4444 \section{\%á}
4445 \end{document}
4447 Without this change, this fails on the second invocation of xelatex.
4448 This affects inputs this like `# %á` with pdf output via xelatex.
4450 * trypandoc: call results 'html' instead of 'result'.
4451 This is for better compatibility with babelmark2.
4453 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
4454 MultiMarkdown was only mentioned as a supported Markdown dialect but not
4455 as a possible input or output format. A brief mention is added
4456 everywhere the other supported markdown dialects are mentioned.
4458 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
4459 Raw HTML is kept when the output format is Emacs Org mode.
4461 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
4463 * Text.Pandoc.Shared:
4465 + Introduce blocksToInlines function (Jesse Rosenthal).
4466 This is a lossy function for converting `[Block] -> [Inline]`. Its main
4467 use, at the moment, is for docx comments, which can contain arbitrary
4468 blocks (except for footnotes), but which will be converted to spans.
4469 This is, at the moment, pretty useless for everything but the basic
4470 `Para` and `Plain` comments. It can be improved, but the docx reader
4471 should probably emit a warning if the comment contains more than this.
4472 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
4473 + Add further formats for `normalizeDate` (Jesse Rosenthal).
4474 We want to avoid illegal dates -- in particular years with greater than
4475 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
4476 `%Y%m`, and finally `%Y`.
4477 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
4478 We only allow years between 1601 and 9999, inclusive. The ISO 8601
4479 actually says that years are supposed to start with 1583, but MS Word
4480 only allows 1601-9999. This should stop corrupted word files if the date
4481 is out of that range, or is parsed incorrectly.
4482 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
4483 Previously we parsed a list of dates, took the first one, and then
4484 tested its year range. That meant that if the first one failed, we
4485 returned nothing, regardless of what the others did. Now we test for
4486 sanity before running `msum` over the list of Maybe values. Anything
4487 failing the test will be Nothing, so will not be a candidate.
4489 * Docx reader:
4491 + Add simple comment functionality. (Jesse Rosenthal).
4492 This adds simple track-changes comment parsing to the docx reader. It is
4493 turned on with `--track-changes=all`. All comments are converted to
4494 inlines, which can list some information. In the future a warning will be
4495 added for comments with formatting that seems like it will be excessively
4496 denatured. Note that comments can extend across blocks. For that reason
4497 there are two spans: `comment-start` and `comment-end`. `comment-start`
4498 will contain the comment. `comment-end` will always be empty. The two
4499 will be associated by a numeric id.
4500 + Enable warnings in top-level reader (Jesse Rosenthal).
4501 Previously we had only allowed for warnings in the parser. Now we allow
4502 for them in the `Docx.hs` as well. The warnings are simply concatenated.
4503 + Add warning for advanced comment formatting. (Jesse Rosenthal).
4504 We can't guarantee we'll convert every comment correctly, though we'll
4505 do the best we can. This warns if the comment includes something other
4506 than Para or Plain.
4507 + Add tests for warnings. (Jesse Rosenthal).
4508 + Add tests for comments (Jesse Rosenthal).
4509 We test for comments, using all track-changes options. Note that we
4510 should only output comments if `--track-changes=all`. We also test for
4511 emitting warnings if there is complicated formatting.
4513 * README: update to include track-changes comments. (Jesse Rosenthal)
4515 * Improved Windows installer - don't ignore properties set on command-line.
4516 See #2708. Needs testing to see if this resolves the issue.
4517 Thanks to @nkalvi.
4519 * Process markdown extensions on command line in L->R order (#2995).
4520 Previously they were processed, very unintuitively, in R->L
4521 order, so that `markdown-tex_math_dollars+tex_math_dollars`
4522 had `tex_math_dollars` disabled.
4524 * Added `secnumdepth` variable to LaTeX template (#2920).
4526 * Include table of contents in README.html in Windows package.
4528 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
4529 In Writers.Shared, we strip leading and trailing spaces for display
4530 math. Since SoftBreak's are treated as spaces, we should strip those
4531 too.
4533 * beamer, latex templates: pass biblatexoptions directly in package load.
4534 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
4536 * CPP workaround for deprecation of `parseUrl` in http-client.
4538 * Removed some redundant class constraints.
4540 * make_oxs_package.sh - use OSX env variable.
4542 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
4543 old installing page from website.
4545 * Added `winpkg` target to Makefile. This downloads the windows package
4546 from appveyor and signs it using the key.
4548 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
4549 Raw TeX is kept verbatim when the output format is Emacs Org mode.
4551 * Support math with haddock-library >= 1.4.
4553 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
4554 wouldn't accept the package.
4556 * Update library dependency versions.
4558pandoc (1.17.1)
4560 * New output format: `docbook5` (Ivo Clarysse).
4562 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
4563 (API change).
4565 * Org writer:
4567 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
4568 This allows header attributes to be added to org documents in the form
4569 of `:PROPERTIES:` drawers. All available attributes are stored as
4570 key/value pairs. This reflects the way the org reader handles
4571 `:PROPERTIES:` blocks.
4572 + Add drawer capability (Carlos Sosa). For the implementation of the
4573 Drawer element in the Org Writer, we make use of a generic Block
4574 container with attributes. The presence of a `drawer` class defines
4575 that the `Div` constructor is a drawer. The first class defines the
4576 drawer name to use. The key-value list in the attributes defines
4577 the keys to add inside the Drawer. Lastly, the list of Block elements
4578 contains miscellaneous blocks elements to add inside of the Drawer.
4579 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
4580 reserved for internal use by Org-mode and should not be used.
4581 The `CUSTOM_ID` property is to be used instead, it is converted to the
4582 `ID` property for certain export format.
4584 * LaTeX writer:
4586 + Ignore `--incremental` unless output format is beamer (#2843).
4587 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
4588 Allow for optional argument in square brackets.
4589 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
4590 This allows one to access the hyphenation patterns in CTAN's
4591 hyph-utf8.
4592 + Add missing languages from hyph-utf8 (Andrew Dunning).
4593 + Improve use of `\strut` with `\minipage` inside tables
4594 (Jose Luis Duran). This improves spacing in multiline
4595 tables.
4596 + Use `{}` around options containing special chars (#2892).
4597 + Avoid lazy `foldl`.
4598 + Don't escape underscore in labels (#2921). Previously they were
4599 escaped as `ux5f`.
4600 + brazilian -> brazil for polyglossia (#2953).
4602 * HTML writer: Ensure mathjax link is added when math appears in footnote
4603 (#2881). Previously if a document only had math in a footnote, the
4604 MathJax link would not be added.
4606 * EPUB writer: set `navpage` variable on nav page.
4607 This allows templates to treat it differently.
4609 * DocBook writer:
4611 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
4612 + Properly handle `ulink`/`link` (Ivo Clarysse).
4614 * EPUB reader:
4616 + Unescape URIs in spine (#2924).
4617 + EPUB reader: normalise link id (Mauro Bieg).
4619 * Docx Reader:
4621 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
4622 `moveTo` and `moveFrom` are track-changes tags that are used when a
4623 block of text is moved in the document. We now recognize these tags and
4624 treat them the same as `insert` and `delete`, respectively. So,
4625 `--track-changes=accept` will show the moved version, while
4626 `--track-changes=reject` will show the original version.
4627 + Tests for track-changes moving (Jesse Rosenthal).
4629 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
4630 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
4631 would error out if zip-archive failed. We change the archive extraction
4632 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
4634 * Markdown, HTML readers: be more forgiving about unescaped `&` in
4635 HTML (#2410). We are now more forgiving about parsing invalid HTML with
4636 unescaped `&` as raw HTML. (Previously any unescaped `&`
4637 would cause pandoc not to recognize the string as raw HTML.)
4639 * Markdown reader:
4641 + Added bracket syntax for native spans (#168).
4642 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
4643 + Added `-s` to markdown-reader-more test.
4645 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
4646 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
4648 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
4649 (roblabla).
4651 * RST reader: Support `:class:` option for code block in RST reader
4652 (Sidharth Kapur).
4654 * Org reader (all Albert Krewinkel, except where noted otherwise):
4656 + Stop padding short table rows.
4657 Emacs Org-mode doesn't add any padding to table rows. The first
4658 row (header or first body row) is used to determine the column count,
4659 no other magic is performed.
4660 + Refactor rows-to-table conversion. This refactors
4661 the codes conversing a list table lines to an org table ADT.
4662 The old code was simplified and is now slightly less ugly.
4663 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
4664 This fixes Org mode parsing of some corner cases regarding empty cells
4665 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
4666 two empty cells, but would be parsed as a single cell containing a pipe
4667 character. Empty rows where parsed as alignment rows and dropped from
4668 the output.
4669 + Fix spacing after LaTeX-style symbols.
4670 The org-reader was droping space after unescaped LaTeX-style symbol
4671 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
4672 instead. This seems to be because the LaTeX-reader treats the
4673 command-terminating space as part of the command. Dropping the trailing
4674 space from the symbol-command fixes this issue.
4675 + Print empty table rows. Empty table rows should not
4676 be dropped from the output, so row-height is always set to be at least 1.
4677 + Move parser state into separate module.
4678 The org reader code has become large and confusing. Extracting smaller
4679 parts into submodules should help to clean things up.
4680 + Add support for sub/superscript export options.
4681 Org-mode allows to specify export settings via `#+OPTIONS` lines.
4682 Disabling simple sub- and superscripts is one of these export options,
4683 this options is now supported.
4684 + Support special strings export option Parsing of special strings
4685 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
4686 option.
4687 + Support emphasized text export option. Parsing of emphasized text can
4688 be toggled using the `*` option. This influences parsing of text marked
4689 as emphasized, strong, strikeout, and underline. Parsing of inline math,
4690 code, and verbatim text is not affected by this option.
4691 + Support smart quotes export option. Reading of smart quotes can be
4692 toggled using the `'` option.
4693 + Parse but ignore export options. All known export options are parsed
4694 but ignored.
4695 + Refactor block attribute handling. A parser state attribute was used
4696 to keep track of block attributes defined in meta-lines. Global state
4697 is undesirable, so block attributes are no longer saved as part of the
4698 parser state. Old functions and the respective part of the parser state
4699 are removed.
4700 + Use custom `anyLine`. Additional state changes need to be made after
4701 a newline is parsed, otherwise markup may not be recognized correctly.
4702 This fixes a bug where markup after certain block-types would not be
4703 recognized.
4704 + Add support for `ATTR_HTML` attributes (#1906).
4705 Arbitrary key-value pairs can be added to some block types using a
4706 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
4707 when exporting to HTML, but since we cannot make this distinction here,
4708 the attributes are always added. The functionality is now supported
4709 for figures.
4710 + Add `:PROPERTIES:` drawer support (#1877).
4711 Headers can have optional `:PROPERTIES:` drawers associated with them.
4712 These drawers contain key/value pairs like the header's `id`. The
4713 reader adds all listed pairs to the header's attributes; `id` and
4714 `class` attributes are handled specially to match the way `Attr` are
4715 defined. This also changes behavior of how drawers of unknown type
4716 are handled. Instead of including all unknown drawers, those are not
4717 read/exported, thereby matching current Emacs behavior.
4718 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
4719 + Respect drawer export setting. The `d` export option can be used
4720 to control which drawers are exported and which are discarded.
4721 Basic support for this option is added here.
4722 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
4723 Also fix up tab handling for leading whitespace in code blocks.
4724 + Support new syntax for export blocks. Org-mode version 9
4725 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
4726 where `<FORMAT>` is the format of the block's content, the new
4727 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
4728 supported.
4729 + Refactor `BEGIN...END` block parsing.
4730 + Fix handling of whitespace in blocks, allowing content to be indented
4731 less then the block header.
4732 + Support org-ref style citations. The *org-ref* package is an
4733 org-mode extension commonly used to manage citations in org
4734 documents. Basic support for the `cite:citeKey` and
4735 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
4736 + Split code into separate modules, making for cleaner code and
4737 better decoupling.
4739 * Added `docbook5` template.
4741 * `--mathjax` improvements:
4743 + Use new CommonHTML output for MathJax (updated default MathJax URL,
4744 #2858).
4745 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
4746 This is designed for cases where the input is always TeX and maximal
4747 conformity with TeX is desired. It seems to be smaller and load faster
4748 than what we used before. See #2858.
4749 + Load the full MathJax config to maximize loading speed (KolenCheung).
4751 * Bumped upper version bounds to allow use of latest packages
4752 and compilation with ghc 8.
4754 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
4755 #2310, #2310, #2824). This fixes behavior of roots, e.g.
4756 `\sqrt[3]{x}`, and issues with sub/superscript positioning
4757 and matrix column alignment in docx.
4759 * README:
4761 + Clarified documentation of `implicit_header_references` (#2904).
4762 + Improved documentation of `--columns` option.
4764 * Added appveyor setup, with artefacts (Jan Schulz).
4766 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
4768 * LaTeX template: support for custom font families (vladipus).
4769 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
4770 can find some other usages. Example usage in YAML metadata:
4772 fontfamilies:
4773 - name: \cyrillicfont
4774 font: Liberation Serif
4775 - name: \cyrillicfonttt
4776 options: Scale=MatchLowercase
4777 font: Liberation
4779 * Create unsigned msi as build artifact in appveyor build.
4781 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
4783pandoc (1.17.0.3)
4785 * LaTeX writer: Fixed position of label in figures (#2813).
4786 Previously the label wasn't in the right place, and `\ref`
4787 wouldn't work properly.
4788 * Added .tei test files to pandoc.cabal so they'll be included
4789 in tarball (#2811).
4790 * Updated copyright dates.
4792pandoc (1.17.0.2)
4794 * Fixed serious regression in `htmlInBalanced`, which caused
4795 newlines to be omitted in some raw HTML blocks in Markdown
4796 (#2804).
4798pandoc (1.17.0.1)
4800 * File scope is no longer used when there are no input files (i.e.,
4801 when input comes from stdin). Previously file scope was triggered
4802 when the `json` reader was specified and input came from `stdin`,
4803 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
4804 thanks to Fedor Sheremetyev for calling the bug to our attention.)
4805 * Improved documentation of templates (#2797).
4807pandoc (1.17)
4809 * Added `--file-scope` option (Jesse Rosenthal).
4810 By default pandoc operates on multiple files by first concatenating
4811 them (around extra line breaks) and then processing the joined file. So
4812 it only parses a multi-file document at the document scope. This has the
4813 benefit that footnotes and links can be in different files, but for
4814 some purposes it is useful to parse the individual files first
4815 and then combine their outputs (e.g. when the files use footnotes
4816 or links with the same labels). The `--file-scope` option causes
4817 pandoc to parse the files first, and then combine the parsed output,
4818 instead of combining before parsing. `--file-scope` is selected
4819 automatically for binary input files (which cannot be concatenated)
4820 and for pandoc json.
4822 * Add TEI Writer (Chris Forster) and `tei` output format.
4824 * Added a general `ByteStringReader` with warnings, used by the docx
4825 reader (API change, Jesse Rosenthal).
4827 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
4829 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
4830 to `Set String.` This avoids performance problems in documents with
4831 many identically named headers (API change, #2671).
4833 * Removed `tex_math_single_backslash` from `markdown_github` options
4834 (#2707).
4836 * Make language extensions as well as full language names
4837 trigger syntax highlighting. For example, `py` will now work as
4838 well as `python` (jgm/highlighting-kate#83).
4840 * Added `institute` variable to latex, beamer templates (Fraser
4841 Tweedale, Josef Svenningsson).
4843 * Docx reader (Jesse Rosenthal):
4845 + Handle alternate content. Some word functions (especially graphics)
4846 give various choices for content so there can be backwards compatibility.
4847 + Don't turn numbered headers into lists.
4848 + Docx Reader: Add state to the parser, for warnings
4849 + Update feature checklist in source code.
4850 + Get rid of `Modifiable` typeclass.
4851 + Add tests for adjacent hyperlinks.
4852 + Add a "Link" modifier to `Reducible`. We want to make sure that
4853 links have their spaces removed, and are appropriately smushed
4854 together (#2689).
4856 * HTML reader:
4858 + Fixed behavior of base tag (#2777).
4859 If the base path does not end with slash, the last component
4860 will be replaced. E.g. base = `http://example.com/foo`
4861 combines with `bar.html` to give `http://example.com/bar.html`.
4862 If the href begins with a slash, the whole path of the base
4863 is replaced. E.g. base = `http://example.com/foo/` combines
4864 with `/bar.html` to give `http://example.com/bar.html`.
4865 + Rewrote `htmlInBalanced`. This version avoids an exponential
4866 performance problem with `<script>` tags, and it should be faster
4867 in general (#2730).
4868 + Properly handle an empty cell in a simple table (#2718).
4869 + Handle multiple `<meta>` tags with same name. Put them in a list
4870 in the metadata so they are all preserved, rather than (as before)
4871 throwing out all but one..
4873 * Markdown reader:
4875 + Improved pipe table parsing (#2765).
4876 + Allow `+` separators in pipe table cells. We already allowed
4877 them in the header, but not in the body rows, for some reason.
4878 This gives compatibility with org-mode tables.
4879 + Don't cross line boundary parsing pipe table row.
4880 Previously an Emph element could be parsed across the newline
4881 at the end of the pipe table row.
4882 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
4883 performance (#2730).
4884 + Fixed bug with smart quotes around tex math.
4886 * LaTeX reader:
4888 + Handle interior `$` characters in math (#2743). For example,
4889 `$$\hbox{$i$}$$`.
4890 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
4891 This gives better results when people write e.g. `\TeX{}` in Markdown.
4892 + Properly handle LaTeX "math" environment as inline math (#2171).
4894 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
4895 Closes #2674.
4897 * Org reader (Albert Krewinkel):
4899 + Prefix even empty figure names with "fig:" (#2643). The
4900 convention used by pandoc for figures is to mark them by prefixing
4901 the name with `fig:`. The org reader failed to do this if a figure
4902 had no name.
4903 + Refactor link-target processing (#2684).
4905 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
4906 Thanks to @c-foster.
4908 * HTML writer: Don't include alignment attribute for default table columns.
4909 Previously these were given "left" alignment. Better to leave off
4910 alignment attributes altogether (#2694).
4912 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
4913 better compatibility with other Markdown flavors (Henrik Tramberend).
4915 * LaTeX writer:
4917 + Use image identifier to create a label and hypertarget for
4918 figures (Mauro Bieg).
4919 + Avoid double toprule in headerless table with caption (#2742).
4920 + Clean up options parser (Jesse Rosenthal).
4921 + Treat `memoir` template with `article` option as article, instead
4922 of treating all `memoir` templates as books.
4923 + Allow more flexible table alignment (Henrik Tramberend, #2665).
4924 New default is not to include `[c]` option (which is the default
4925 anyway if no positioning is specified). Now LaTeX emplates can
4926 control the overall table alignment in a document by setting the
4927 longtable length variables `LTleft` and `LTright`. For example,
4928 `\setlength\LTleft\parindent\setlength\LTright\fill`
4929 will create left-aligned tables that respect paragraph indentation.
4931 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
4933 * Org writer - pass through RawInline with format "org".
4935 * DokuWiki writer: use `$$` for display math.
4937 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
4939 * Make protocol-relative URIs work again (#2737).
4941 * make_osx_package.sh: Use env variable for developer id certs.
4943 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
4944 problems (#2734).
4946 * Allow `zip-archive` 0.3.
4948 * Allow `aeson` 0.11.
4950pandoc (1.16.0.2)
4952 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
4954 * Fixed regression in latex smart quote parsing (#2645).
4955 In cases where a match was not found for a quote, everything
4956 from the open quote to the end of the paragraph was being dropped.
4958pandoc (1.16.0.1)
4960 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
4961 raises an error if a full path is given.
4963 * Org reader: Fix function dropping subtrees tagged `:noexport`
4964 (Albert Krewinkel, #2628):
4966 * Markdown reader: renormalize table column widths if they exceed 100%
4967 (#2626).
4969 * Textile reader: don't allow block HTML tags in inline contexts.
4970 The reader previously did allow this, following redcloth,
4971 which happily parses
4973 Html blocks can be <div>inlined</div> as well.
4975 as
4977 <p>Html blocks can be <div>inlined</div> as well.</p>
4979 This is invalid HTML. The above sample now produces;
4981 <p>Html blocks can be</p>
4982 <div>
4983 <p>inlined</p>
4984 </div>
4985 <p>as well.</p>
4987 * Improved default template lookup for custom lua scripts (#2625).
4988 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
4989 pandoc would look for the template in
4990 `~/.pandoc/templates/default./path/to/lua/script.lua`.
4991 With this change it will look in the more reasonable
4992 `~/.pandoc/templates/default.script.lua`. This makes it possible to
4993 store default templates for custom writers.
4995 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
4996 (#2615).
4998 * LaTeX writer: restore old treatment of Span (#2624). A Span is
4999 now rendered with surrounding `{}`, as it was before 1.16.
5001 * Entity handling fixes: improved handling of entities like
5002 `&lang;` that require a trailing semicolon. Allow uppercase
5003 `x` in numerical hexidecimal character references, working
5004 around a tagsoup bug.
5006 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
5007 memory use on compile. With aeson 0.10 we were getting an out of
5008 memory error on a 2GB Ubuntu 64-bit VM.
5010 * Improved deb package creation script. Made `DPKGVER` work.
5011 Renamed `COMMIT` to `TREE`. You should now be able to do
5012 `TREE=1.16.0.1 DPKGVER=2 make deb`.
5015pandoc (1.16)
5017 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
5019 + Added syntax for link and image attributes to pandoc's Markdown.
5020 + Updated readers and writers to use link and image attributes
5021 when appropriate.
5022 + Support image attributes in Docx, Textile, RST readers.
5024 * Renamed link attribute extensions. The old `link_attributes` is
5025 now `mmd_link_attributes`, and `link_attributes` now enables the
5026 new pandoc-style link and image attributes (API change).
5027 Note: this change could break some existing workflows.
5029 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
5030 Added threefold wrapping option.
5032 + Command line option: deprecated `--no-wrap`, added
5033 `--wrap=[auto|none|preserve]`
5034 + Added `WrapOption`, exported from `Text.Pandoc.Options`
5035 + Changed type of `writerWrapText` in `WriterOptions` from
5036 `Bool` to `WrapOption`.
5037 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
5038 + Supported `SoftBreak` in readers and writers.
5040 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
5041 change, Mauro Bieg).
5043 * Added `--dpi` command-line option (Mauro Bieg).
5045 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
5046 This change makes `--no-tex-ligatures` affect the LaTeX reader
5047 as well as the LaTeX and ConTeXt writers. If it is used,
5048 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
5049 literally, rather than parsing ligatures for quotation marks
5050 and dashes. And the LaTeX writer will print unicode quotation
5051 mark and dash characters literally, rather than converting
5052 them to the standard ASCII ligatures. Note that `--smart` has
5053 no effect on the LaTeX reader. `--smart` is still the default
5054 for all input formats when LaTeX or ConTeXt is the output format,
5055 *unless* `--no-tex-ligatures` is used.
5057 Some examples to illustrate the logic:
5059 ```
5060 % echo "'hi'" | pandoc -t latex
5061 `hi'
5062 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
5063 'hi'
5064 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
5065 ‘hi’
5066 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
5067 <p>'hi'</p>
5068 % echo "'hi'" | pandoc -f latex
5069 <p>’hi’</p>
5070 ```
5072 * Removed deprecated options `--offline` and `--html5`.
5074 * Fixed language code for Czech (`cs` not `cz`) (#2597).
5076 * Implemented `east_asian_line_breaks` extension (#2586).
5077 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
5078 to `Extension` (API change). This extension is like
5079 `ignore_line_breaks`, but smarter -- it only ignores line breaks
5080 between two East Asian wide characters. This makes it better suited
5081 for writing with a mix of East Asian and non-East Asian scripts.
5083 * Added support for PDF creation via `wkhtmltopdf`.
5084 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
5085 if you have math.) Margins can be set using the variables
5086 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
5087 Other styling can be done through CSS.
5089 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
5090 We were capturing final colons as in `[@foo: bar]`; the citation id
5091 was being parsed as `@foo:`.
5093 * ICML writer:
5095 + Fixed image syntax for local files (#2589).
5096 + Changed type of `writeICML` (Mauro Bieg).
5097 API change: It is now `WriterOptions -> Pandoc -> IO String`.
5098 Also handle new image attributes.
5099 + Intersperse line breaks instead of appending them to
5100 every `ParagraphStyleRange` (Mauro Bieg, #2501).
5101 + Add `Cite` style to citations (Mauro Bieg).
5102 + Added figure handling (#2590, Mauro Bieg).
5103 + Better handling of math. Instead of just printing the raw tex,
5104 we now try to fake it with unicode characters.
5106 * HTML writer: Include `example` class for example lists (#2524).
5108 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
5110 + Support for percentage widths/heights
5111 + Use `Attr` instead of title to get dimensions from ODT walker
5112 to `writeOpenDocument`.
5114 * AsciiDoc writer:
5116 + Support anchors in spans and divs with id elements
5117 (jgm/pandoc-citeproc#143).
5118 + Fixed code blocks (#1861).
5120 * Haddock writer: omit formatting inside links, which isn't supported
5121 by Haddock (#2515).
5123 * MediaWiki writer: Fixed spacing issues in table cells.
5125 + Start cell on new line unless it's a single Para or Plain
5126 (#2606).
5127 + For single Para or Plain, insert a space after the `|` to
5128 avoid problems when the text begins with a character like
5129 `-` (#2604).
5131 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
5133 * LaTeX writer:
5135 + Add support for GAP highlighting using listings (Raniere Silva).
5136 + Consider `header-includes` content as well as templates
5137 when determining whether to use csquotes (Andreas Lööw).
5138 + Create defaults for geometry using `margin-left` etc.
5139 If `geometry` has no value, but `margin-left`, `margin-right`,
5140 `margin-top`, and/or `-margin-bottom` are given, a default value
5141 for `geometry` is created from these. Note that these variables
5142 already affect PDF production via HTML5 with `wkhtmltopdf`.
5144 * ConTeXt writer: set default layout based on `margin-left`, etc.
5145 This sets up `\setuplayout` based on the variables `margin-left`,
5146 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
5147 is given.
5149 * Docx writer: better handling of PDF images. Previously we tried
5150 to get the image size from the image even if an explicit size was
5151 specified. Since we still can't get image size for PDFs, this made
5152 it impossible to use PDF images in docx. Now we don't try to get
5153 the image size when a size is already explicitly specified.
5155 * Markdown writer: use raw HTML for link/image attributes when
5156 the `link_attributes` extension is unset and `raw_html` is set (#2554).
5158 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
5160 * LaTeX reader:
5162 + Improved smart quote parsing (#2555). This fixes redering of
5163 unmatched quotes.
5164 + Use curly quotes for unmatched ` (#2555).
5165 + Allow blank space between braced arguments of commands (#2592).
5167 * Markdown reader:
5169 + Improved pipe table relative widths. Previously pipe table
5170 columns got relative widths (based on the header underscore lines)
5171 when the source of one of the rows was greater in width than the
5172 column width. This gave bad results in some cases where much of
5173 the width of the row was due to nonprinting material (e.g. link
5174 URLs). Now pandoc only looks at printable width (the width of a
5175 plain string version of the source), which should give better results.
5176 Thanks to John Muccigrosso for bringing up the issue.
5177 + Fixed parsing bug with macros. Previously macro definitions in
5178 indented code blocks were being parsed as macro definitions, not code.
5180 * Textile reader: skip over attribute in image source (#2515).
5181 We don't have a place yet for styles or sizes on images, but
5182 we can skip the attributes rather than incorrectly taking them
5183 to be part of the filename.
5185 * Docx reader: Handle dummy list items (Jesse Rosenthal).
5186 These come up when people create a list item and then delete the
5187 bullet. It doesn't refer to any real list item, and we used to ignore
5188 it.
5190 * CommonMark reader/writer rewritten to use latest `cmark`.
5192 * Fixed Emoji character definitions (#2523). There were many bugs in the
5193 definitions.
5195 * `Text.Pandoc.CSS`:
5197 + Added `pickStylesToKVs` function to extract multiple properties at
5198 once (API change, Mauro Bieg).
5199 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
5201 * `trypandoc`: sort drop-down lists.
5203 * Beamer template:
5205 + Made `\euro` conditional on presence of character.
5206 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
5207 + Moved `header-includes` before setting of title (Thomas Hodgson),
5208 to match the LaTeX template (jgm/pandoc-templates#168).
5209 + Added `section-titles` variable (defaults to true)
5210 to enable/suppress section title pages in beamer
5211 slide shows (Thomas Hodgson).
5212 + Moved beamer themes after fonts, so that themes can
5213 change fonts. (Previously the fonts set were being
5214 clobbered by lmodern.sty.) (Thomas Hodgson).
5216 * Beamer/LaTeX template changes (Thomas Hodgson):
5217 + Added `thanks` variable
5218 + Use `parskip.sty` when `indent` isn't set (fall back to using
5219 `setlength` as before if `parskip.sty` isn't available).
5220 + Use `biblio-style` with biblatex.
5221 + Added `biblatexoptions` variable.
5223 * LaTeX template changes:
5225 + Added `paper` after `$papersize$` variable in latex template.
5226 Thus you can say `papersize: a4` and the latex will contain
5227 `a4paper`. This change may break some existing workflows; if
5228 you currently specify `a4paper`, you'll get `a4paperpaper` which
5229 is meaningless. However, the change seems worth it, as it will
5230 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
5231 and html->pdf via wkhtmltopdf.
5232 + Only pass options to color package if `colorlinks` is set
5233 (Andrew Dunning).
5234 + Make definition of `\euro` conditional in xelatex/lualatex,
5235 as it is already for pdflatex (Andrew Dunning).
5236 + Removed setting of `subject` in PDF metadata.
5237 This used to be set to the subtitle, but really the subtitle
5238 need not give the subject. Also, `subtitle` can contain formatting,
5239 so we'd need, at least, a plain text version for this.
5240 + Moved `header-includes` before setting of `\title`, `\author`,
5241 etc. This allows these macros to be redefined.
5242 + Use `\subtitle` command for `subtitle`, instead of tacking it
5243 on to the title as before. We give a no-op fallback definition if it
5244 is not defined. This change should produce much better results
5245 in classes that support `\subtitle`. With the default article
5246 class, which does not define `\subtitle`, subtitles will no
5247 longer be printed unless the user defines `\subtitle` and
5248 redefines `\maketitle`.
5249 + Moved redefinitions of `\paragraph` and `\subparagraph` to
5250 before header-includes.
5252 * Context template:
5254 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
5255 needed for things to work on ConTeXt stable from TeXLive 2015.
5256 + Revert use of `\setuphead` in title block (Andrew Dunning,
5257 Rik Kabel).
5259 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
5261 * Fixed man template so disabling hyphenation actually works.
5262 The command needs to come after .TH.
5264 * Added 'navigation' variable to beamer template (#2543).
5265 Valid values are `empty` (the default), `horizontal`, `vertical`,
5266 and `frame`. Note that this changes the default behavior from
5267 `horizontal` to `empty`. Closes #2543.
5269 * Added `toc` to HTML slide format templates (Andrew Dunning),
5270 so that `--toc` creates a contents slide.
5272 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
5274 * Allow pipe tables with no body rows (#2556).
5275 Previously this raised a runtime error.
5277 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
5278 as URL. The Haskell URI parsing routines will accept "C:" as a
5279 scheme, so we rule that out manually. This helps with
5280 `--self-contained` and absolute Windows paths.
5282 * Define a `meta-json` variable for all writers (#2019). This contains
5283 a JSON version of all the metadata, in the format selected for the
5284 writer. So, for example, to get just the YAML metadata, you can run
5285 pandoc with the following custom template: `$meta-json$`. The intent
5286 is to make it easier for static site generators and other tools to get
5287 at the metadata.
5289 * Document limitations of --self-contained (#2553).
5291 * Improved Citations section of README (#2551). Added information
5292 about `link-citations` and a link to the pandoc-citeproc man page.
5294 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
5295 in base < 4.6.
5297 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
5299 * Improved implicit pandoc-citeproc inclusion.
5300 The filter pandoc-citeproc is automatically used when
5301 `--bibliography` is specified on the command line, unless
5302 `--natbib` or `--biblatex` is used. However, previously this
5303 only worked if `--bibliography` was spelled out in full, and not
5304 if `--biblio` was used.
5306 * reveal.js: Interpret pauses correctly for all headers (#2530).
5307 Previously, when using headers below the slide level, pauses are left
5308 uninterpreted into pauses. In my opinion, unexpected behavior but
5309 intentional looking at the code.
5311 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
5313 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
5314 Bieg, API change).
5316 * ImageSize: Added functions for converting between image dimensions
5317 (Mauro Bieg).
5319 * Use lts-3.18 in stack.yaml. This avoids Windows build
5320 issues with the HTTP library.
5322 * Bump version bounds for dependencies.
5324pandoc (1.15.2.1)
5326 * Added two missing test files, and `stack.yaml`, to
5327 `extra-source-files` so they're included in the source tarball.
5329 * reveal.js template: Fixed parallaxBackground options.
5330 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
5331 need integer values, not strings. (Vaughn Iverson)
5333pandoc (1.15.2)
5335 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
5336 ConTeXt rather than LaTeX (#2463).
5338 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
5340 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
5341 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
5342 (API change).
5344 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
5345 parsing (#2469). Tightened up the inline HTML parser so it disallows
5346 TagWarnings.
5348 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
5350 * Org reader:
5352 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
5353 Paragraphs can be followed by lists, even if there is no blank line
5354 between the two blocks. However, this should only be true if the
5355 paragraph is not within a list, were the preceding block should be
5356 parsed as a plain instead of paragraph (to allow for compact lists).
5357 Thanks to @rgaiacs for bringing this up.
5358 + Allow toggling header args (Albert Krewinkel, #2269).
5359 Org-mode allows to skip the argument of a code block header argument if
5360 it's toggling a value. Argument-less headers are now recognized,
5361 avoiding weird parsing errors.
5362 + Fix markup parsing in headers (Albert Krewinkel, #2504).
5363 Markup as the very first item in a header wasn't recognized. This was
5364 caused by an incorrect parser state: positions at which inline markup
5365 can start need to be marked explicitly by changing the parser state.
5366 This wasn't done for headers. The proper function to update the state
5367 is now called at the beginning of the header parser, fixing this issue.
5368 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
5369 Smart quotes, ellipses, and dashes should behave like normal quotes,
5370 single dashes, and dots with respect to text markup parsing.
5371 + Require whitespace around definition list markers (#2518).
5372 This rule was not checked before, resulting in bugs with footnotes
5373 and some link types.
5375 * Markdown reader:
5377 + Pipe tables with long lines now get relative cell widths (#2471).
5378 If a pipe table contains a line longer than the column width (as set by
5379 `--columns` or 80 by default), relative widths are computed based on the
5380 widths of the separator lines relative to the column width. This should
5381 solve persistent problems with long pipe tables in LaTeX/PDF output, and
5382 give more flexibility for determining relative column widths in other
5383 formats, too. For narrower pipe tables, column widths of 0 are used,
5384 telling pandoc not to specify widths explicitly in output formats that
5385 permit this.
5386 + Improved parser for `mmd_title_block`. We now allow blank metadata
5387 fields. These were explicitly disallowed before.
5388 + Citation keys can now contain `://`, so URLs and DOIs can be used
5389 as citation keys (jgm/pandoc-citeproc#166).
5391 * Beamer template: fix incompatibility of section slides with natbib.
5392 Natbib (and presumably biblatex) bibliography commands create
5393 their own section. Since these are in frame environments,
5394 we have an incompatibility with the `\AtBeginSection` macro
5395 which creates a special frame when a new section occurs.
5396 (We can't have a frame inside another frame.) This change disables
5397 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
5398 bringing the problem to my attention. This supersedes #145. See
5399 discussion there.
5401 * Textile reader: don't do smart punctuation unless explicitly asked
5402 (#2480). Note that although smart punctuation is part of the textile
5403 spec, it's not always wanted when converting from textile
5404 to, say, Markdown. So it seems better to make this an option.
5406 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
5407 The `comment` environment is handled in a similar way to the
5408 `verbatim` environment, except that its content is discarded.
5410 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
5411 Jesse Rosenthal). This fixes a problem with links in notes.
5413 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
5414 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
5415 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
5416 they aren’t set already. See #895.
5418 * LaTeX writer:
5420 + Use proper command for `\textarabic` (Mauro Bieg).
5421 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
5422 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
5423 to link to Div or Span elements. We now don't bother defining `\label`
5424 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
5425 + Avoid footnotes in list of figures (#1506).
5426 + Properly handle footnotes in captions (#1506).
5427 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
5428 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
5429 `toccolor` is set (#2508).
5431 * Textile writer: support start number in ordered lists (#2465).
5433 * OpenDocument writer: Allow customization of opendocument
5434 automatic styles. Automatic styles can now be inserted in the
5435 template, which now provides the enclosing `<office:automatic-styles>`
5436 tags (#2520).
5438 * Docx writer: insert space between footnote reference and note (#2527).
5439 This matches Word's default behavior.
5441 * EPUB writer: don't download linked media when `data-external` attribute
5442 set (#2473). By default pandoc downloads all linked media and includes it
5443 in the EPUB container. This can be disabled by setting `data-external` on
5444 the tags linking to media that should not be downloaded. Example:
5446 <audio controls="1">
5447 <source src="http://example.com/music/toccata.mp3"
5448 data-external="1" type="audio/mpeg">
5449 </source>
5450 </audio>
5452 * HTML writer: use width on whole table if col widths sum to < 100%.
5453 Otherwise some browsers display the table with the columns
5454 separated far apart.
5456 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
5457 `abstract` (Andrew Dunning).
5459 * HTML-based templates (Andrew Dunning):
5461 + Use en dash instead of hyphen between title prefix and title.
5462 + Add `keywords` to metadata.
5463 + Add `lang`, `dir`, `quotes` where missing.
5464 + Always make author and date display conditional.
5465 + Updated dzslides template from source.
5467 * Man template: make "generated by" comment conditional.
5469 * LaTeX, Beamer templates:
5471 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
5472 filled by commands that make babel understand the polyglossia-style
5473 language directives (Mauro Bieg, #137).
5474 + Improved formatting of conditionals; `$for$` is always provided to allow
5475 multiple options (Andrew Dunning, #141).
5476 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
5477 to improve support for LuaTeX (Andrew Dunning, #135).
5478 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
5479 - use same options for all LaTeX engines;
5480 - add `subtitle` and `keywords` to PDF metadata;
5481 - do not override `hyperref` link coloring without user input, effectively making
5482 the `hidelinks` option the default (removed as a separate variable);
5483 - link colors can be enabled (using a slightly darker version of the old
5484 defaults) using a new `colorlinks` variable, automatically used by
5485 the LaTeX writer when custom colors are specified;
5486 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
5487 `colorlinks`, and is only applied if `colorlinks` is disabled.
5489 * ConTeXt template (Andrew Dunning):
5491 + New variables for controlling styles: `linkstyle`, `linkcolor`,
5492 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
5493 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
5494 `monofont`, `mathfont`, `fontsize`.
5495 + Default template no longer supports MkII.
5496 + Improve writing of title block (suppressing numbering of first page).
5497 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
5498 + Support `subtitle`, `abstract`.
5499 + Support list of figures (`lof`), list of tables (`lot`).
5500 + Disable link styling by default.
5501 + Define styles for all section types.
5502 + Enable microtype.
5503 + Improved formatting of conditionals.
5505 * Beamer template: added code to prevent slide breaks inside paragraphs
5506 (#2422, thanks to Nick Bart). This will matter, in practice, only when
5507 `allowframebreaks` is used. It is especially helpful for bibliography
5508 slides.
5510 * OpenDocument template: Add `<office:automatic-styles>` tag around
5511 automatic styles. The writer now longer provides this (see #2520).
5513 * Restored Text.Pandoc.Compat.Monoid.
5515 * Do not export (<>) from custom Prelude. The Prelude now matches
5516 base 4.8 Prelude's API.
5518 * Don't use custom prelude with ghc 7.10. Use the custom prelude
5519 only for earlier versions. This change makes `stack ghci` and
5520 `cabal repl` work (#2503), at least with ghc 7.10.
5522 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
5523 This prevents problems building haddocks with "C" locale.
5525 * Change default for old-locale flag to False.
5527 * Use stack in deb, osx, and Windows package generators.
5529 * Added Vagrantfile for building deb in vm.
5530 This should help in automating binary package creation. 'make package'
5531 will make the package. 'make package COMMIT=blah' will make the package
5532 from commit blah.
5534 * README:
5536 + Consistent capitalization for pandoc and Markdown.
5537 + Fixed `auto_identifiers` examples (Benoit Schweblin).
5538 + Improved documentation of template variables (Andrew Dunning).
5540pandoc (1.15.1.1)
5542 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
5543 This way we have uniform separators, whether on Windows or Linux.
5544 This should solve a problem where on some Windows versions
5545 the data files weren't being found (#2459).
5547pandoc (1.15.1)
5549 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
5550 and reexported from `Text.Pandoc` (Alex Vong). This allows
5551 writers to access it. (Alex Vong) (API change)
5553 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
5554 `subscripts` (#2401).
5556 * Added `odt` as input format (Martin Linnemann). Added new module
5557 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
5558 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
5559 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
5560 Partly implemented features: Citations, Tables.
5562 * Markdown Reader:
5564 + Add basic tests for each header style (Ophir Lifshitz).
5565 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
5566 + Skip spaces in headers (Ophir Lifshitz).
5567 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
5568 `# Header {id="myid" class="foo bar"}`
5569 is now equivalent to `# Header {#myid .foo .bar}`.
5570 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
5571 (Kristof Bastiaensen)
5572 + Pipe tables: allow indented columns. Previously the left-hand column
5573 could not start with 4 or more spaces indent. This was inconvenient
5574 for right-aligned left columns. Note that the first (header column)
5575 must still have 3 or fewer spaces indentation, or the table will be
5576 treated as an indented code block.
5577 + Fix regression: allow HTML comments containing `--`.
5578 Technically this isn't allowed in an HTML comment, but
5579 we've always allowed it, and so do most other implementations.
5580 It is handy if e.g. you want to put command line arguments
5581 in HTML comments.
5583 * LaTeX reader:
5585 + Don't eat excess whitespace after macros with only optional
5586 arguments (#2446).
5587 + Support longtable (#2411).
5588 + Implement `\Cite` (#2335).
5589 + Support abstract environment. The abstract populates an
5590 `abstract` metadata field.
5591 + Properly handle booktabs lines. Lines aren't part of the
5592 pandoc table model, so we just ignore them (#2307).
5594 * HTML reader:
5596 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
5597 + Updated for new automatic header attributes.
5598 + Add auto identifiers if not present on headers. This makes
5599 TOC linking work properly.
5600 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
5601 + Test `<ol>` type, class, and inline list-style(-type) CSS
5602 (Ophir Lifshitz).
5603 + Better handling of "section" elements (#2438). Previously
5604 `<section>` tags were just parsed as raw HTML blocks. With
5605 this change, section elements are parsed as Div elements with
5606 the class "section".
5608 * MediaWiki reader: handle unquoted table attributes (#2355).
5610 * DocBook reader:
5612 + Added proper support for DocBook `xref` elements (Frerich Raabe).
5613 Added `dbContent` field to reader state, so we can lookup
5614 cross refs.
5615 + Handle `informalexample` (#2319).
5617 * Docx Reader:
5619 + Create special punctuation test (Ophir Lifshitz).
5620 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
5621 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
5622 in `headers.docx` with pandoc's current `styles.xml`, which
5623 contains styles for Heading 1 through 6. Added Heading 4
5624 through 7 to the test document. Note that Heading 7 is not
5625 parsed as a Heading because there is no Heading 7 style.
5627 * RST reader: better handling of indirect roles.
5628 Previously the parser failed on this kind of case
5630 .. role:: indirect(code)
5632 .. role:: py(indirect)
5633 :language: python
5635 :py:`hi`
5637 Now it correctly recognizes `:py:` as a code role.
5639 * Org reader:
5641 + Add auto identifiers if not present on headers
5642 (#2354, Juliusz Gonera).
5643 + Allow verse blocks to contain empty lines (#2402,
5644 Albert Krewinkel).
5646 * EPUB reader: stop mangling external URLs (#2284).
5648 * RST writer:
5650 + Don't insert `\ ` when complex expression in matched pairs.
5651 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
5652 + Ensure that `\ ` is inserted when needed before Cite and Span
5653 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
5654 + Normalize headers only in "standalone" mode (#2394).
5656 * Haddock writer: escape `*` and `^` (G. Bataille).
5658 * Markdown writer:
5660 + In TOC, add links to headers (#829).
5661 + Use unicode super/subscripts for digits in plain output
5662 (when the `superscripts` and `subscripts` extensions are
5663 not enabled).
5665 * Docx writer:
5667 + Moved invalid character stripping to `formattedString`.
5668 This avoids an inefficient generic traversal (#2356).
5669 + Use user data directory for `reference.docx` archive.
5670 This allows the test suite to work without installing pandoc first.
5671 It also brings the docx writer in line with the odt writer.
5672 + Tests: docx writer tests now use `../data` for data directory.
5673 This allows tests to be run without installing first.
5674 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
5676 * LaTeX writer:
5678 + Fixed detection of 'chapters' from template.
5679 If a documentclass isn't specified in metadata, but the
5680 template has a hardwired bookish documentclass, act as if
5681 `--chapters` was used. This was the default in earlier
5682 versions, but it has been broken for a little while.
5683 + Correctly recognize book documentclass in metadata (#2395).
5684 + Set language-related variables automatically, depending
5685 on the value of the `lang` field, which is now always
5686 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
5687 + Add `\protect` to `\hyperdef` in inline context. This way we
5688 don't get an error when this is used as a moveable argument (#2136).
5689 + Support all frame attributes in Beamer.
5690 + Percent-encode more special characters in URLs (#1640, #2377).
5691 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
5693 * HTML writer:
5695 + Update KaTeX JS and CSS versions (Emily Eisenberg).
5696 + For dzslides, add `role="note"` for speaker notes (#1693).
5697 + Percent-encode more special characters in URLs (#1640, #2377).
5698 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
5699 + Render Div with class `section` as `<section>` in HTML5.
5701 * EPUB writer:
5703 + In TOC, replace literal `<br/>` with space (#2105).
5704 + With `--webtex`, include image file rather than `data:` URI (#2363).
5706 * Native writer: format Div properly, with blocks separated.
5708 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
5709 (#2191, Mauro Bieg).
5711 * Reference Docx:
5713 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
5714 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
5716 * Templates
5718 + Beamer: Add `innertheme`, `outertheme` variables
5719 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
5720 Integrate recent font and language updates from LaTeX template;
5721 allow use of `mainfont` variable for changing the slide text
5722 in XeTeX and LuaTeX (Andrew Dunning, #131).
5723 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
5724 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
5725 (Andrew Dunning, #122). Support handling of bidirectional
5726 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
5727 under XeTeX and prevent letters and numbers from appearing on a
5728 different baseline by removing use of the `realscripts` package
5729 (via `xltxtra`). To restore use of OpenType characters for these
5730 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
5731 `header-includes` (Andrew Dunning, #130). Remove redundant
5732 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
5733 `indent`, `subparagraph` variables (Andrew Dunning).
5734 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
5735 #113). Prevent package clash with `tufte-latex` and other classes that
5736 include `hyperref` or `color` (Xavier Olive, #115).
5737 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
5738 + LaTeX and ConTeXt: Use more specific language variables.
5739 Instead of directly using `lang`, we now use `babel-lang` and
5740 `polyglossia-lang` and `context-lang`. These variables are set by
5741 the writers to the necessary values, based on the `lang` variable
5742 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
5743 #129).
5744 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
5745 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
5746 Add dir attribute in html5 (Andrew Dunning).
5747 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
5748 Add `width`, `height` variables (Andrew Dunning). Update template
5749 from 3.1 source (Andrew Dunning). All configuration options are now
5750 available as variables, but are only be included if set (reveal.js
5751 uses defaults otherwise).
5752 + man: Added comment stating that the page is autogenerated by pandoc,
5753 giving version. Added `adjusting` and `hyphenate` variables
5754 (Alex Vong, #123).
5756 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
5758 * MediaBag: ensure that `/` is always used as path separator.
5760 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
5762 * Added `--bash-completion` option. This generates a bash completion
5763 script. To use: `eval "$(pandoc --bash-completion)"`.
5765 * Text.Pandoc.Error: Define Typeable and Exception instances
5766 for PandocError (#2386).
5768 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
5769 This makes keys with extra space at the beginning and end
5770 work: e.g.
5772 [foo]: bar
5774 [ foo ]
5776 will now be a link to bar (it wasn't before).
5778 * Text.Pandoc: disable `auto_identifiers` for epub.
5779 The epub writer inserts its own auto identifiers;
5780 this is more complex due to splitting into "chapter" files.
5782 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
5783 It now reexports Data.Time.
5785 * Use custom Prelude to avoid compiler warnings.
5787 + The (non-exported) prelude is in prelude/Prelude.hs.
5788 + It exports Monoid and Applicative, like base 4.8 prelude,
5789 but works with older base versions.
5790 + It exports (<>) for mappend.
5791 + It hides 'catch' on older base versions.
5793 * Added a `stack.ymal` and stack install instructions to INSTALL.
5795 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
5797 * Added note to CONTRIBUTING.md about ghc versions and travis.
5799 * Clarify docs on block quotes. The space after `>` is optional (#2346).
5801 * Removed obsolete reference to default.csl (#2372).
5803 * List all styles in manual for `--reference-docx` (Chris Black)
5805 * Don't capitalize header links in man page.
5807 * Added section on repl to CONTRIBUTING.md.
5809 * README: Added space after backslash in image example (#2329).
5811 * Document details of citation locator terms (Nick Bart).
5813 * Fixed some internal links in README (#2309).
5815 * Improve CSL documentation, variables documentations,
5816 links, and cross-references in README. (Andrew Dunning)
5818 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
5820 * Use `newManager` instead of `withManager` in recent `http-client`.
5821 This avoids a deprecation warning.
5823 * Allow building with latest versions of http-types,
5824 HUnit, criterion, syb, aeson.
5826 * Updated benchmark program for new criterion API.
5828 * Setup.hs: rewrite so as not to use process, directory, filepath.
5829 Using anything outside base is dangerous, since older
5830 versions of ghc may link against two different versions.
5832 * Added appveyor (Windows continuous integration) builds.
5834 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
5835 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
5836 `make .travis.yml` regenerates it based on the tested-with
5837 field of the cabal file.
5839pandoc (1.15.0.6)
5841 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
5842 Previously `--self-contained` wiped out all spaces in CSS,
5843 including semantically significant spaces. This was a regression
5844 from 1.14.x.
5846 * Markdown reader: don't allow bare URI links or autolinks in link
5847 label (#2300). Added test cases.
5849 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
5850 Previously we disallowed `-` at the end of an autolink,
5851 and disallowed the combination `=-`. This commit liberalizes the
5852 rules for allowing punctuation in a bare URI, and adds test cases.
5853 One potential drawback is that you can no longer put a bare
5854 URI in em dashes like this:
5855 `this uri---http://example.com---is an example.`
5856 But in this respect we now match github's treatment of bare URIs.
5858 * HTML writer: support speaker notes in dzslides.
5859 With this change `<div class="notes">` and also `<div class="notes"
5860 role="note">` will be output if `-t dzslides` is used. So we can
5861 have speaker notes in dzslides too. Thanks to maybegeek.
5863 * Updated dzslides template.
5865 * Improved documentation of options to print system default files (#2298).
5866 `--print-default-data-file` and `--print-default-template`.
5868 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
5869 (Tiziano Müller). MathJax seems currently to be the only maintained
5870 math rendering extension for DokuWiki.
5872 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
5873 div as top-level header (#2294). This fixes a bug with `--section-divs`,
5874 where the final references section added by pandoc-citeproc, enclosed in
5875 its own div, got nested in the div for the section previous to it.
5877 * Allow vector 0.11.
5879 * Require cmark > 0.4.
5881pandoc (1.15.0.5)
5883 * HTML writer: Fixed email javascript obfuscation with `mailto:`
5884 URLs (#2280). This fixes a potential security issue. Because
5885 single quotes weren't being escaped in the link portion, a
5886 specially crafted email address could allow javascript code injection.
5888 * Markdown/HTML readers: Avoid parsing partial URLs like
5889 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
5891 * RST reader: allow inline formatting in definition list field
5892 names (Lars-Dominik Braun).
5894 * PDF: Make sure `--latex-engine-opt` goes before the filename
5895 on the command line. LaTeX needs the argument to come after
5896 the options (#1779).
5898 * CommonMark writer: fixed tags used for super/subscript.
5900 * ConTeXt template: activate hanging indent for definition lists
5901 (Mauro Bieg).
5903 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
5904 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
5905 to include `hsb2hs` in Build-Tools in cabal.
5907 * Improved Windows installer (thanks to nkalvi).
5909 + When per-machine installation is chosen, the system path
5910 is updated instead of the user's.
5911 + An appropriate default is used for per-machine installation
5912 directory.
5913 + Admin privileges are no longer required for a per-user install
5915 * Travis: unpack sdist for build to catch packaging bugs.
5917 * Improved documentation on where user templates go (#2272).
5919pandoc (1.15.0.4)
5921 * Added pandoc.1 man page to the repository. It is no longer
5922 built as part of the cabal build process. (This proved too
5923 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
5924 when `README` is changed.
5926 * Copying of the man page now respects `--destdir` (#2262).
5928 * Improved error messages for filters. User is now informed if
5929 the filter requires an interpreter that isn't found in the path,
5930 or if the filter returns an error status.
5932pandoc (1.15.0.3)
5934 * Ensure target directory is created when installing man page.
5936pandoc (1.15.0.2)
5938 * Added files needed for building man page to Extra-Source-Files.
5940pandoc (1.15.0.1)
5942 * Man page is now built and installed as part of the cabal build
5943 process. Removed Makefile target for man page.
5945pandoc (1.15)
5947 * Man page changes:
5949 + Removed `--man1`, `--man5` options (breaking change).
5950 + Removed `Text.Pandoc.ManPages` module (breaking API change).
5951 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
5952 create the man page from README using a custom template and filters.
5953 + Added `man/` directory with template and filters needed to build
5954 man page.
5955 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
5956 Now there is just pandoc.1, which has all the content from README.
5957 This change was needed because of the extensive cross-references
5958 between parts of the README.
5959 + Removed old `data/pandoc.1.template` and
5960 `data/pandoc_markdown.5.template`.
5962 * OpenDocument writer: Do not add a carriage return after a hard
5963 line break (Michael Chladek).
5965 * ConTeXt writer:
5967 + use `\goto` for internal links.
5968 + Added a `%` at end for `\reference` to avoid spurious space.
5970 * Ignore sandbox on 'make quick'
5972pandoc (1.14.1)
5974 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
5975 to generate its own man pages. Man pages are no longer automatically
5976 generated in the build process (the process for this was too complex
5977 and prone to failure, #2190). The `make-pandoc-man-pages` executable
5978 has been removed. The `man/` directory has been removed, and man page
5979 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
5980 longer find pandoc's man pages in `man/`, but you can generate them using
5981 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
5983 * Added new unexported module: `Text.Pandoc.ManPages`.
5985 * `README` now acts like a data file (even though it isn't in
5986 `data/`). So, for example, `pandoc --print-default-data-file README`
5987 will produce the README.) This change was required for the `--man1`
5988 and `--man5` options, since the man pages are produced from the
5989 README, but it may be useful for other purposes as well.
5991 * Allow `reference.docx` and `reference.odt` to be used with
5992 `--print-default-data-file` and to shadow defaults if placed in
5993 the user data directory. Note that as of 1.14, we no longer
5994 include these files as data files; instead, we include their
5995 components. This change causes pandoc to behave as if it has
5996 these data files; they are constructed on demand when needed
5997 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
5999 * Fixed regression in CSS parsing with `--self-contained` (#2224).
6000 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
6001 silently drops big sections of CSS. This commit replaces the
6002 use of css-text with a small but principled CSS preprocessor,
6003 which removes whitespace and comments and replaces `url()` with
6004 base 64 data when possible.
6006 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
6007 This will allow math to work when pages are being viewed locally.
6009 * `Text.Pandoc.Options`: Export `plainExtensions`.
6010 These are the extensions used in `plain` output.
6012 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
6013 math mode; treat them as regular inline text. Normally these will
6014 cause an error in LaTeX, but there are contexts (e.g. `alltt`
6015 environments) where they are allowed.
6017 * HTML reader: allow `<body>` to close `<head>`.
6019 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
6021 * RST reader: Fix reference names with special characters
6022 (Lars-Dominik Braun).
6024 * Textile writer: escape `+` and `-` as entities (#2225).
6026 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
6028 * Plain writer: don't use symbols for super/subscript (#2237).
6029 Simplified code by using `plainExtensions`.
6031 * InDesign writer: Properly escape URLs containing more than one
6032 colon character (gohai).
6034 * Docx writer: Make sure we use dist version of `reference.docx`
6035 (and not the user's version) for certain settings. Taking some
6036 settings values from a user-supplied reference.docx can lead to
6037 corruption. This fixes a regression from the last release (#2249).
6039 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
6040 `getDefaultReferenceODT` (API change). These functions have been
6041 removed from the Docx and ODT writers.
6043 * LaTeX template (Xavier Olive):
6044 + Added `CJKmainfont` and `CJKoptions` variables.
6045 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
6047 * Epub templates: use `author.role`, not `author.type`.
6049 * Bump cmark version to >= 0.3.4.
6051 * Improved Windows installer (#2205, thanks to nkalvi).
6052 Users can now select a per-user or systemwide install, and can set
6053 the installation path. At the end of installation, the install location
6054 is given. The install location is also now given in the list of
6055 installed programs in Control Panel. Cleaner WiX syntax is used for
6056 setting the path.
6058 * Added `download_stats` target to Makefile.
6060pandoc (1.14.0.4)
6062 * Added missing commonmark template.
6064 * Improved try pandoc (moved button, show raw command).
6066pandoc (1.14.0.3)
6068 * Allow compilation with syb 0.5.*.
6070 * Custom writer: fixed some compiler warnings for ghc < 7.10.
6072pandoc (1.14.0.2)
6074 * Allow building with hslua 0.4.
6076pandoc (1.14.0.1)
6078 * Fixed problem with building of `reference.docx` and `reference.odt`
6079 when the `embed_data_files` flag is used. Instead of having a phase
6080 of the build where `reference.docx` and `reference.odt` are created
6081 from their constituent data files, we now construct these archives
6082 from their constituents when a `docx` or `odt` is built. The
6083 constituent files have been moved from `extra-source-files` to
6084 `data-files`, and `reference.docx` and `reference.odt` have been
6085 removed. Users can create their own `reference.docx` or
6086 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
6087 `make-reference-files.hs` has been removed, simplifying the build
6088 process (#2187)
6090 * Don't include generated man pages in extra-source-files (#2189).
6092 * Bumped upper bound for aeson.
6094 * ConTeXt writer: create internal link anchors for Div elements with
6095 identifiers. (This is needed for linked citations to work.)
6097pandoc (1.14)
6099 [new features]
6101 * Added `commonmark` as input and output format.
6103 * Added `--verbose` flag for debugging output in PDF production (#1840,
6104 #1653).
6106 * Allow wildcards in `--epub-embed-font` arguments (#1939).
6108 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
6110 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
6111 This is enabled by default for those markdown flavors that
6112 support reading shortcut reference links, namely: `markdown`,
6113 `markdown_strict`, `markdown_github`, `markdown_php`.
6114 If the extension is enabled, the reader parses shortcut reference
6115 links like `[foo]`, and the writer creates such links unless doing
6116 so would cause problems. Users of markdown flavors that support
6117 shortcut reference links should not notice a difference in reading
6118 markdown, but the markdown pandoc produces may differ.
6119 If shortcut links are not desired, the extension can be disabled
6120 in the normal way.
6122 [behavior changes]
6124 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
6125 A "dirty" TOC is created at the beginning of document.
6126 It can be regenerated after the document has been opened.
6128 * An implicit `--filter pandoc-citeproc` is now triggered only when the
6129 `--bibliography` option is used, and not when the `bibliography`
6130 field in metadata is specified (#1849).
6132 * Markdown reader:
6134 + Reference links with `implicit_header_references` are no longer
6135 case-sensitive (#1606).
6136 + Definition lists no longer require indentation for first line (#2087).
6137 Previously the body of the definition (after the `:` or `~` marker)
6138 needed to be in column 4. This commit relaxes that requirement,
6139 to better match the behavior of PHP Markdown Extra. So, now
6140 this is a valid definition list:
6142 foo
6143 : bar
6144 + Resolve a potentially ambiguity with table captions:
6146 foo
6148 : bar
6150 -----
6151 table
6152 -----
6154 Is "bar" a definition, or the caption for the table? We'll count
6155 it as a caption for the table.
6156 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
6157 Markdown Extra. Note: If you have been using headerless pipe tables,
6158 this change may cause existing tables to break.
6159 + Allow pipe tables with header but no body (#2017).
6160 + Allow a digit as first character of a citation key (Matthias Troffaes).
6161 See https://github.com/jgm/pandoc-citeproc/issues/97
6163 * LaTeX reader:
6165 + Don't limit includes to `.tex` extension (#1882).
6166 If the extension is not `.tex`, it must be given explicitly in
6167 the `\input` or `\include`.
6169 * Docx reader:
6171 + Allow numbering in the style file. This allows inherited styles
6172 with numbering (lists) (Jesse Rosenthal).
6174 * Org reader:
6176 + Support smart punctuation (Craig Bosma).
6177 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
6178 `:noexport:` tag set are not exported. This mirrors org-mode.
6179 + Put header tags into empty spans (Albert Krewinkel, #2160).
6180 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
6181 Instead of being interpreted as part of the headline, the tags are now
6182 put into the attributes of empty spans. Spans without textual content
6183 won't be visible by default, but they are detectable by filters. They
6184 can also be styled using CSS when written as HTML.
6185 + Generalize code block result parsing (Albert Krewinkel).
6186 Previously, only code blocks were recognized as result blocks;
6187 now, any kind of block can be the result.
6189 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
6190 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
6192 * HTML writer:
6194 + Add "inline" or "display" class to math spans (#1914).
6195 This allows inline and display math to be styled differently.
6196 + Include raw latex blocks if `--mathjax` specified (#1938).
6197 + Require highlighting-kate >= 0.5.14 (#1903).
6198 This ensures that all code blocks will be wrapped in a `div`
6199 with class `sourceCode`. Also, the default highlighting CSS
6200 now adds `div.sourceCode { x-overflow: auto; }`, which means
6201 that code blocks (even with line numbers) will acquire a scroll
6202 bar on screens too small to display them (e.g. mobile phones).
6203 See also jgm/highlighting-kate#65.
6205 * LaTeX writer:
6207 + Use a declaration for tight lists (Jose Luis Duran, Joseph
6208 Harriott). Previously, pandoc hard-coded some commands to make
6209 tight lists in LaTeX. Now we use a custom command instead,
6210 allowing the styling to be changed in a macro in the header.
6211 (Note: existing templates may need to be modified to include
6212 the definition of this macro. See the current template.)
6213 + Beamer output: if the header introducing a slide has the
6214 class `fragile`, add the `[fragile]` option to the slide (#2119).
6216 * MediaWiki writer:
6218 + Use `File:` instead of the deprecated `Image:` for images and
6219 other media files (Greg Rundlett).
6221 * DocBook writer:
6223 + Render a `Div (id,_,_) [Para _]` element as a `para` element
6224 with an `id` attribute. This makes links to citations work in
6225 DocBook with pandoc-citeproc.
6227 * RST writer:
6229 + Normalize headings to sequential levels (Nikolay Yakimov).
6230 This is pretty much required by docutils.
6231 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
6232 + Better handling of raw latex inline (#1961). We use
6233 `` :raw-latex:`...` `` and add a definition for this role to
6234 the template.
6236 * EPUB writer:
6238 + Remove `linear=no` from cover `itemref` (#1609).
6239 + Don't use `sup` element for epub footnotes (#1995).
6240 Instead, just use an a element with class `footnoteRef`.
6241 This allows more styling options, and provides better results
6242 in some readers (e.g. iBooks, where anything inside the a
6243 tag breaks popup footnotes).
6244 + Take TOC title from `toc-title` metadata field.
6246 * Docx writer:
6248 + Implemented `FirstParagraph` style (Jesse Rosenthal).
6249 Following the ODT writer, we add the `FirstParagraph` style to the
6250 first text paragraph following an image, blockquote, table, heading,
6251 or beginning of document. This allows it to be styled differently.
6252 The default is for it to be the same as `Normal`.
6253 + Added `BodyText` style (Jesse Rosenthal).
6254 We apply a `BodyText` style to all unstyled paragraphs. This is,
6255 essentially, the same as `Normal`, except that since not everything
6256 inherits from `BodyText` (the metadata won't, for example, or
6257 the headers or footnote numbers), we can change the text in the body
6258 without having to make exceptions for everything. If we do want to
6259 change *everything*, we can still do it through `Normal`.
6260 + Altered `Blockquote` style slightly (Jesse Rosenthal).
6261 Since `BlockQuote` derives from `BodyText`, we just want to specify
6262 by default that it won't indent, regardless of what `BodyText` does.
6263 Note that this will not produce any visible difference in the default
6264 configuration.
6265 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
6266 + Added a style to figure images (Nikolay Yakimov).
6267 Figures with empty captions use style `Figure`.
6268 Figures with nonempty captions use style `Figure with Caption`, which
6269 is based on `Figure`, and additionally has `keepNext` set.
6271 * ODT writer:
6273 + Added figure captions (Nikolay Yakimov). The following styles are
6274 used for figures:
6275 `Figure` -- for figure with empty caption),
6276 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
6277 `FigureCaption` (based on `Caption`) -- for figure captions.
6278 Also, `TableCaption` (based on `Caption`) is used for table captions.
6280 [API changes]
6282 * New `Text.Pandoc.Error` module with `PandocError` type
6283 (Matthew Pickering).
6285 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
6286 (Matthew Pickering). This allows better handling of errors.
6288 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
6290 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
6292 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
6293 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
6294 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
6295 Youssefi).
6297 * New `Ext_shortcut_reference_links` constructor for `Extension`
6298 (Konstantin Zudov).
6300 [bug fixes]
6302 * Markdown reader:
6304 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
6305 + Check for tex macros after indented code (#1973).
6306 + Rewrote `charsInBalancedBrackets` for efficiency.
6307 + Make sure a closing `</div>` doesn't get included in a
6308 definition list item (#2127).
6309 + Don't parse bracketed text as citation if it might be a link,
6310 image, or footnote (Nikolay Yakimov).
6311 + Require space after key in mmd title block (#2026, Nikolay
6312 Yakimov). Require space after key-value delimiter colon in mmd title
6313 block.
6314 + Require nonempty value in mmd title block (Nikolay Yakimov).
6315 + Disable all metadata block extensions when parsing
6316 metadata field values (#2026, Nikolay Yakimov). Otherwise we
6317 could get a mmd title block inside YAML metadata, for example.
6319 * HTML reader:
6321 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
6322 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
6323 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
6324 to see if the input starts with `<!--`. If not, it's bogus comment
6325 mode and we fail `htmlTag`.
6326 + Handle `base` tag; if it has an `href` value, this is added to
6327 all relative URLs in links and images.
6329 * DocBook reader:
6331 + Look inside "info" elements for section titles (#1931).
6333 * Docx reader:
6335 + Parse images in deprecated vml format (Jesse Rosenthal).
6336 + Allow sub/superscript verbatims (Jesse Rosenthal).
6337 Verbatim usually shuts off all other run styles, but we don't want it
6338 to shut off sub/superscript.
6340 * LaTeX reader:
6342 + Handle `tabular*` environment (#1850).
6343 Note that the table width is not actually parsed or taken into
6344 account, but pandoc no longer chokes on it.
6345 + Ignore options in `\lstinline` rather than raising error (#1997).
6346 + Add some test cases for simple tables (Mathias Schenner).
6347 + Handle valign argument in tables (Mathias Schenner) (currently
6348 we just ignore this).
6349 + Allow non-empty colsep in tables (Mathias Schenner).
6350 The `tabular` environment allows non-empty column separators
6351 with the "@{...}" syntax. Previously, pandoc would fail to
6352 parse tables if a non-empty colsep was present. With this
6353 commit, these separators are still ignored, but the table gets
6354 parsed. A test case is included.
6355 + Recognize `\newpage` as a block command.
6356 + Allow block content in \title{} (#2001).
6357 + Check for block-level newcommand aliases in blockCommand (Nikolay
6358 Yakimov).
6359 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
6360 + Properly gobble spaces after `\\` (#2007).
6362 * Textile reader:
6364 + Handle newlines in table cells, and empty cells (#1919).
6366 * Org reader:
6368 + Allow image links with non-image targets (Hans-Peter Deifel).
6369 This matches behavior of Org-Mode for links like
6370 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
6372 * Docbook writer:
6374 + Don't print empty id attributes (thanks to Steve Horne).
6376 * HTML writer:
6378 + Fixed list-style-type for numbered example lists.
6379 Should be "decimal," not "example" (#1902).
6380 + Do not omit missing `alt` attribute on `img` tag (#1131,
6381 Konstantin Zudov).
6382 + Allow multiple colgroups in table (#2122).
6383 + In revealjs, ensure that lists in speaker notes don't add "fragment"
6384 classes, which can cause additional keypresses to be needed to
6385 advance a slide (#1394).
6387 * LaTeX writer:
6389 + Don't escape `$` in URL (#1913).
6390 + Don't use listings in headers (Matthew Pickering, #1963).
6391 + Recognize book documentclass if set in metadata (#1971).
6392 This sets `--chapters` implicitly if the documentclass in metadata
6393 is a book documentclass. Previously this was done only if a book
6394 documentclass was set in a variable.
6395 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
6396 + Make `mainlang` work when `lang` is in metadata (#2174).
6398 * Texinfo writer:
6400 + Fix wrapping by using breakable spaces (Tim Lin).
6402 * RST writer:
6404 + Fixed toc depth in RST writer. Previously the depth was being
6405 rendered as a floating point number with a decimal point.
6407 * Markdown writer:
6409 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
6410 compatibility with original Markdown. We now escape `<` and `>`
6411 with entities. Also, we now backslash-escape square brackets.
6412 + Avoid introducing spurious list items through wrapping (#1946).
6413 + Don't emit span tags if plain or raw HTML disabled.
6415 * MediaWiki writer:
6417 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
6419 * AsciiDoc writer:
6421 + Insert some needed blank lines (#1860).
6422 + Avoid wrapping after list marker (#1858).
6424 * EPUB writer:
6426 + Properly handle internal links to IDs in spans, divs (#1884).
6427 + Use plain writer for metadata dc: fields (#2121).
6428 This gives better results when we have, e.g. multiple paragraphs.
6429 Note that tags aren't allowed in these fields.
6430 + Properly handle image links without an extension (#1855).
6431 + Improved chapter splitting and internal link rewriting (#1887,
6432 #2162, #2163). This will ensure that internal links work and
6433 that the references section produced by pandoc-citeproc is
6434 in its own chapter.
6435 + Fixed handling of svg images (#2183).
6437 * ICML writer:
6439 + Better handling of raw blocks and inlines (#1951).
6440 Previously these were always escaped and printed verbatim.
6441 Now they are ignored unless the format is `icml`, in which
6442 case they are passed through unescaped.
6443 + Fixed image URIs in ICML output (gohai).
6445 * Custom writer:
6447 + Raise error if loadstring returns an error status.
6448 + Raise `PandocLuaException` instead of using 'error'.
6449 Eventually we'll change the return type so that no exception
6450 is involved, but at least this can be trapped.
6451 + Use UTF-8 aware bytestring conversion.
6452 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
6453 Also factored out ByteString, since it's only used as an intermediate
6454 representation.
6456 * Docx writer:
6458 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
6459 + Filter out illegal XML characters (#1992, Matthew Pickering).
6460 + Added `noProof` to docx syntax highlighting `SourceCode` style.
6461 + Added footnotes id -1 and 0 (Jesse Rosenthal).
6462 Word uses, by default, footnotes with id -1 and 0 for separators. If a
6463 user modifies `reference.docx`, they will end up with a `settings.xml`
6464 file that references these footnotes, but no such footnotes in the
6465 document. This will produce a corruption error. Here we add these to the
6466 document and `settings.xml` file, so future modifications won't break
6467 the file.
6468 + Handle lists correctly inside table cells (Jesse Rosenthal).
6469 Previously we didn't transform lists inside table cells.
6470 + Set firstRow information in tables (Nikolay Yakimov).
6471 + Don't replace `SourceCode` style in `reference.docx` if it is defined
6472 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
6473 any `SourceCode` and `*Tok` styles in `reference.docx`.
6474 + Attempt to match international style names (#1607, Nikolay Yakimov).
6475 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
6476 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
6477 `Definition`, `First Paragraph`.
6478 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
6479 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
6480 `Footnote Ref -> Footnote Reference`.
6481 + Added `Caption` style (Nikolay Yakimov).
6482 + Changed these styles' inheritance (Nikolay Yakimov):
6483 `Image Caption <- Caption`, `Table Caption <- Caption`.
6484 + Remove `SourceCode` style from `reference.docx` (#1872).
6485 This is added automatically by the docx writer.
6486 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
6488 * `Text.Pandoc.PDF`
6490 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
6491 #1832).
6492 + More comprehensible errors on image conversion (#2067).
6493 EPS can't be supported without shelling out to something like
6494 ImageMagick, but at least we can avoid mysterious error messages.
6496 * `Text.Pandoc.Shared`:
6498 + Make safeRead safe (#1801, Matthew Pickering).
6499 + Addded `mapLeft`, `hush` (Matthew Pickering).
6501 * `Text.Pandoc.Pretty`:
6503 + Remove partial function (Matthew Pickering).
6505 * `Text.Pandoc.SelfContained`:
6507 + Add `;charset=utf-8` to script mime type if missing (#1842).
6508 + Improved building of data URIs (#1940). Now base64 is used except
6509 for `text/*` mime types.
6510 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
6511 + Properly handle data URIs in css urls (#2129).
6512 Use a proper CSS parser (adds dependency on `text-css`).
6514 * `Text.Pandoc.UTF8`:
6516 + Better handling of bare CRs in input files (#2132).
6517 Previously we just stripped them out; now we convert
6518 other line ending styles to LF line endings.
6520 * `Text.Pandoc.ImageSize`:
6522 + Fixed some exif header parsing bugs (#1834).
6523 + Make imageSize return an Either, not a Maybe (#1834).
6524 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
6525 parse failure (rather than `error`).
6526 + Improved warnings when image size can't be determined.
6527 + Removed error landmines (Matthew Pickering).
6529 * Added woff2 to MIME types (Alfred Wechselberger).
6531 * pandoc: When a binary input format is used, warn that file
6532 arguments past the first one are being ignored (Matthew Pickering).
6534 [template changes]
6536 * LaTeX template:
6538 + Degrade gracefully if `\paragraph` not defined.
6539 + Include `grffile` together with `graphicx` (#2074).
6540 This properly handles filenames containing spaces and dots.
6541 + Redefine `\paragraph`, `\subparagraph`... to behave more
6542 like section headers (#1658).
6543 + Import hyperref before polyglossia to avoid an error with xelatex,
6544 "please load package hyperref before bidi package" (Nick Bart).
6545 + Added `toccolor` variable to control link color in toc (Kaixhin).
6547 * LaTeX, Beamer templates:
6549 + Provide `\tightlist`, which is now used by the LaTeX writer.
6550 + Use polyglossia in beamer (#85).
6551 + Use `bibliography` instead of `biblio-files`
6552 (#1661). Also use `\addbibresource` instead of `\bibliography` for
6553 biblatex.
6554 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
6555 variable that is derived from a comma-separated list in `lang`;
6556 the last language is `mainlang` and the others are `otherlang`.
6558 * EPUB templates:
6560 + Use `div`, not `p`, for "rights" on title page.
6561 + Added header-includes, include-before, include-after (#1987).
6563 * OpenDocument template:
6565 + Use `text:p` instead of `text:h` for title.
6566 Using `text:h` causes problems with numbering. Closes #2059.
6567 Thansk to @nkalvi for diagnosing this.
6569 * reveal.js template:
6571 + Link to non-minified css, js. The minified versions no longer
6572 ship with the library.
6573 + Correctly include style CSS (#1949).
6574 + New configurable options options: `center`, `maxScale`, `slideNuber`
6575 (Dmitry Smirnov, pandoc-templates#89).
6576 + Moved custom CSS after theme. This allows custom CSS to modify
6577 themes, instead of being replaced by them.
6578 + Allow `center` to be set to false.
6580 [under the hood improvements]
6582 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
6583 Yakimov). Instead the repository now includes the component text files,
6584 and the zipped binaries are built from these using a helper
6585 program, `make-reference-files`. This should make maintenance of
6586 these components easier going forward.
6588 * `Text.Pandoc.Parsing`:
6590 + Added new `<+?>` combinator (Nikolay Yakimov).
6591 + Added `stateHeaderKeys` to `ParserState`.
6593 * `make_deb.sh` fixes:
6595 + Detect architecture.
6596 + Add Installed-Size to debian package control file (#1900).
6597 + Use `fakeroot` to get permissions right.
6598 + Use `mkdir` and `cp` instead of `install`.
6599 + Set permissions of directories to 755.
6600 + Install in `/usr` rather than `/usr/local`.
6601 + Compress man pages.
6602 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
6604 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
6605 to assist with transition to `time` 1.5.
6607 * Updated CONTRIBUTING.md with information about issue tags (Matthew
6608 Pickering).
6610 * Updated travis installs to the new sudo-less syntax (Tim Lin).
6612 * Updated dependency version bounds.
6614 * EPUB tests: don't use `joinPath`, which varies across platforms.
6615 Instead, use a forward-slash to join paths, regardless of the
6616 platform. This matches the way `MediaBag` now works.
6618 * Clarify JSON input and output in usage message (Caleb McDaniel).
6620 * Improved INSTALL instructions.
6622 * Always build man pages. Removed make-pandoc-man-pages flag.
6624 * Makefile: removed man target, now that we generate man pages by default.
6626 * README:
6628 + Fixed typos (J. Lewis Muir).
6629 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
6630 + Added note on in-field markup in biblio databases (Nick Bart).
6631 + Fixed misleading example of raw HTML block.
6632 + Various minor formatting and consistency fixes for the program
6633 options (Andreas Lööw).
6634 + Made definition lists for options all "loose" for consistency.
6635 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
6636 `--bib2json` and `--bib2yaml` options (Nick Bart).
6637 + Removed obsolete reference to `mods2yaml` (Nick Bart).
6638 + Added section on syntax highlighting.
6639 + Documented `toccolor` variable.
6641pandoc (1.13.2.1)
6643 * Updated to build with ghc 7.10.1.
6645 * Bumped package upper bounds for filepath, blaze-html,
6646 blaze-markup.
6648pandoc (1.13.2)
6650 * TWiki Reader: add new new twiki reader (API change, Alexander Sulfrian).
6652 * Markdown reader:
6654 + Better handling of paragraph in div (#1591).
6655 Previously text that ended a div would be parsed as Plain
6656 unless there was a blank line before the closing div tag.
6657 + Don't treat a citation as a reference link label (#1763).
6658 + Fix autolinks with following punctuation (#1811).
6659 The price of this is that autolinked bare URIs can no longer
6660 contain `>` characters, but this is not a big issue.
6661 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
6662 + Allow `startnum` to work without `fancy_lists`. Formerly
6663 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
6665 * RST reader (all Daniel Bergey):
6667 + Parse quoted literal blocks (#65). RST quoted literal blocks are
6668 the same as indented literal blocks (which pandoc already supports)
6669 except that the quote character is preserved in each line.
6670 + Parse RST class directives. The class directive accepts one or more
6671 class names, and creates a Div value with those classes. If the
6672 directive has an indented body, the body is parsed as the children of
6673 the Div. If not, the first block folowing the directive is made a
6674 child of the Div. This differs from the behavior of rst2xml, which
6675 does not create a Div element. Instead, the specified classes are
6676 applied to each child of the directive. However, most Pandoc Block
6677 constructors to not take an Attr argument, so we can't duplicate this
6678 behavior.
6679 + Warn about skipped directives.
6680 + Literal role now produces Code. Code role should have "code" class.
6681 + Improved support for custom roles
6683 - Added `sourceCode` to classes for `:code:` role, and anything
6684 inheriting from it.
6685 - Add the name of the custom role to classes if the Inline
6686 constructor supports Attr.
6687 - If the custom role directive does not specify a parent role,
6688 inherit from the `:span:` role.
6690 This differs somewhat from the `rst2xml.py` behavior. If a custom
6691 role inherits from another custom role, Pandoc will attach both
6692 roles' names as classes. `rst2xml.py` will only use the class of
6693 the directly invoked role (though in the case of inheriting from a
6694 `:code:` role with a `:language:` defined, it will also provide the
6695 inherited language as a class).
6696 + Warn about ignored fields in role directives.
6698 * LaTeX reader:
6700 + Parse label after caption into a span instead of
6701 inserting an additional paragraph of bracketed text (#1747).
6702 + Parse math environments as inline when possible (#1821).
6703 + Better handling of `\noindent` and `\greektext` (#1783).
6704 + Handle `\texorpdfstring` more gracefully.
6705 + Handle `\cref` and `\sep` (Wikiwide).
6706 + Support `\smartcite` and `\Smartcite` from biblatex.
6708 * HTML reader:
6710 + Retain display type of MathML output (#1719, Matthew Pickering).
6711 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
6712 + Make `embed` tag either block or inline (#1756).
6714 * DocBook reader:
6716 + Handle `keycombo`, `keycap` (#1815).
6717 + Get string content in inner tags for literal elements (#1816).
6718 + Handle `menuchoice` elements better, with a `>` between (#1817).
6719 + Include `id` on section headers (#1818).
6720 + Document/test "type" as implemented (Brian O'Sullivan).
6721 + Add support for calloutlist and callout (Brian O'Sullivan).
6722 We treat a calloutlist as a bulleted list. This works well in practice.
6723 + Add support for `classname` (Bryan O'Sullivan).
6725 * Docx reader:
6727 + Fix window path for image lookup (Jesse Rosenthal).
6728 Don't use os-sensitive "combine", since we always want the paths in our
6729 zip-archive to use forward-slashes.
6730 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
6731 When users number their headers, Word understands that as a single item
6732 enumerated list. We make the assumption that such a list is, in fact,
6733 a header.
6734 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
6735 There could be new top-level headers after making lists, so we have to
6736 rewrite links after that.
6737 + Use polyglot header list (Jesse Rosenthal).
6738 We're just keeping a list of header formats that different languages
6739 use as their default styles. At the moment, we have English, German,
6740 Danish, and French. We can continue to add to this.
6741 This is simpler than parsing the styles file, and perhaps less
6742 error-prone, since there seems to be some variations, even within a
6743 language, of how a style file will define headers.
6744 + Remove header class properly in other langs (Jesse Rosenthal).
6745 When we encounter one of the polyglot header styles, we want to remove
6746 that from the par styles after we convert to a header. To do that, we
6747 have to keep track of the style name, and remove it appropriately.
6748 + Account for external link URLs with anchors. Previously, if a URL
6749 had an anchor, the reader would incorrectly identify it as an
6750 internal link and return only the anchor as URL. (Caleb McDaniel)
6751 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
6753 * Org reader:
6755 + Added state changing blanklines (Jesse Rosenthal).
6756 This allows us to emphasize at the beginning of a new paragraph (or, in
6757 general, after blank lines).
6758 + Fixed bug with bulleted lists:
6760 - a
6761 - b
6762 * c
6764 was being parsed as a list, even though an unindented `*`
6765 should make a heading. See
6766 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
6767 + Org reader: absolute, relative paths in link (#1741, Albert
6768 Krewinkel). The org reader was too restrictive when parsing links;
6769 some relative links and links to files given as absolute paths
6770 were not recognized correctly.
6771 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
6772 This is important for use in gitit, which uses empty links
6773 for wikilinks.
6774 + Respect indent when parsing Org bullet lists (#1650, Timothy
6775 Humphries). Fixes issue with top-level bullet list parsing.
6776 + Fix indent issue for definition lists (Timothy Humphries,
6777 see #1650, #1698, #1680).
6778 + Parse multi-inline terms correctly in definition list (#1649,
6779 Matthew Pickering).
6780 + Fix rules for emphasis recognition (Albert Krewinkel).
6781 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
6782 strings. This is wrong, as `,` and `'` are forbidden border chars and
6783 may not occur on the inner border of emphasized text.
6784 + Drop COMMENT document trees (Albert Krewinkel).
6785 Document trees under a header starting with the word `COMMENT` are
6786 comment trees and should not be exported. Those trees are dropped
6787 silently (#1678).
6788 + Properly handle links to `file:target` (Albert Krewinkel).
6789 Org links like `[[file:target][title]]` were not handled correctly,
6790 parsing the link target verbatim. The org reader is changed such that
6791 the leading `file:` is dropped from the link target (see #756, #1812).
6792 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
6793 Org supports special symbols which can be included using LaTeX syntax,
6794 but are actually MathML entities. Examples for this are
6795 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
6796 or `\copy` (the copyright sign ©)
6798 * EPUB reader:
6800 + URI handling improvements. Now we outsource most of the work to
6801 `fetchItem'`. Also, do not include queries in file extensions (#1671).
6803 * LaTeX writer:
6805 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
6806 + Handle consecutive linebreaks (#1733).
6807 + Protect graphics in headers (Jesse Rosenthal).
6808 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
6809 + Put `~` before header in list item text (Jesse Rosenthal).
6810 Because of the built-in line skip, LaTeX can't handle a section header
6811 as the first element in a list item.
6812 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
6813 + Better handling of display math in simple tables (#1754).
6814 We convert display math to inline math in simple tables,
6815 since LaTeX can't deal with display math in simple tables.
6816 + Escape spaces in code (#1694, Bjorn Buckwalter).
6818 * MediaWiki writer:
6820 + Fixed links with URL = text. Previously these were rendered as bare
6821 words, even if the URL was not an absolute URL (#1825).
6823 * ICML writer:
6825 + Don't force all citations into footnotes.
6827 * RTF writer:
6829 + Add blankline at end of output (#1732, Matthew Pickering).
6831 * RST writer:
6833 + Ensure blank line after figure.
6834 + Avoid exces whitespace after last list item (#1777).
6835 + Wrap line blocks with spaces before continuations (#1656).
6836 + Fixed double-rendering of footnotes in RST tables (#1769).
6838 * DokuWiki writer:
6840 + Better handling of block quotes. This change ensures that
6841 multiple paragraph blockquotes are rendered using native `>`
6842 rather than as HTML (#1738).
6843 + Fix external images (#1739). Preface relative links with ":",
6844 absolute URIs without. (Timothy Humphries)
6846 * HTML writer:
6848 + Use protocol-relative URL for mathjax.
6849 + Put newline btw img and caption paragraph.
6850 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
6851 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
6852 This adds `KaTeX` to `HTMLMathMethod` (API change).
6853 + Don't double render when `email-obfuscation=none` (#1625, Matthew
6854 Pickering).
6855 + Make header attributes work outside top level (#1711).
6856 Previously they only appeared on top level header elements.
6857 Now they work e.g. in blockquotes.
6859 * ODT writer:
6861 + Correctly handle images without extensions (#1729).
6862 + Strip querystring in ODT write (#1682, Todd Sifleet).
6864 * FB2 writer:
6866 + Add newline to output.
6868 * EPUB writer:
6870 + Don't add `sourceURL` to absolute URIs (#1669).
6871 + Don't use unsupported `opf:title-type` for epub2.
6872 + Include "landmarks" section in nav document for epub3 (#1757).
6873 + Removed playOrder from navpoint elements in ncx file (#1760).
6874 These aren't required, and they make manual modification of epubs
6875 difficult.
6876 + Extract title even from structured title.
6877 + Don't include nav node in spine unless `--toc` was requested.
6878 Previously we included it in the spine with `linear="no"`, leading
6879 to odd results in some readers (#1593).
6880 + Fixed absolute URI detection (#1672).
6881 + Correctly resolve relative URIs (#1671).
6882 + Use regular page template for `nav.xhtml`, including doctype (#1759).
6884 * Docx writer:
6886 + Put docx table captions above tables (#1641, Nikolay Yakimov).
6887 + Get the page width from the reference docx file, and use
6888 it to scale images that are too large to fit (Grégory Bataille).
6889 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
6890 are inferred based on `<w:name val="heading #">` fallback, if there
6891 are no en-US "Heading#" styles
6892 + Look in user data dir for archive `reference.docx`.
6893 + Renumber header and footer relationships to avoid collisions (Jesse
6894 Rosenthal). We previously took the old relationship names of the
6895 headers and footer in secptr. That led to collisions. We now make
6896 a map of availabl names in the relationships file, and then rename
6897 in secptr.
6899 * ConTeXt writer:
6901 + Add function toLabel (Mark Szepieniec).
6902 This function can be used to sanitize reference labels so that
6903 they do not contain any of the illegal characters \#[]",{}%()|= .
6904 Currently only Links have their labels sanitized, because they
6905 are the only Elements that use passed labels.
6907 * `Text.Pandoc.Shared`:
6909 + Moved import of `toChunks` outside of CPP conditional (#1590).
6910 + Fix `inDirectory` to reset to the original directory in case
6911 an exception occurs (Freiric Barral).
6913 * Templates:
6915 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
6916 Thanks to bluebirch.
6917 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
6918 (#1616).
6919 + LaTeX template: Add shorthands=off to babel options (#1648).
6920 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
6921 This aids styling, making it possible for example to set 0 margins
6922 on the title page (#1758).
6923 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
6924 Previously we just expected 'title', 'subtitle', 'author', 'date'.
6925 Now we still support those, but also support the format recommended
6926 for epub metadata in the pandoc README:
6928 ---
6929 title:
6930 - type: main
6931 text: My Book
6932 - type: subtitle
6933 text: An investigation of metadata
6934 creator:
6935 - role: author
6936 text: John Smith
6937 - role: editor
6938 text: Sarah Jones
6939 identifier:
6940 - scheme: DOI
6941 text: doi:10.234234.234/33
6942 publisher: My Press
6943 rights: (c) 2007 John Smith, CC BY-NC
6944 ...
6946 * `Text.Pandoc.Templates.getDefaultTemplate`:
6947 don't fail when called with "fb2" (#1660).
6949 * `Text.Pandoc.Parsing`:
6951 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
6952 For example: `$x = \text{the $n$th root of $y$}` (#1677).
6953 + Change `parseFromString` to fail if not all input is consumed.
6954 (Matthew Pickering)
6955 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
6956 used by more readers (API change, Daniel Bergey).
6958 * `Text.Pandoc.Pretty`:
6960 + Improve performance of `realLength` (Matthew Pickering).
6961 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
6962 were getting at the end of markdown fragments (as well as rst, org,
6963 etc.) (#1705).
6965 * `Text.Pandoc.MIME`:
6967 + Add mime type for WebVTT (Jason Ronallo).
6968 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
6969 This is needed for epub3 validation.
6971 * `Text.Pandoc.MediaBag`:
6973 + Fix Windows specific path problems (#1597).
6975 * `Text.Pandoc.Shared`:
6977 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
6979 * Link the test suite using `-threaded`.
6980 This allows the test suite to be run using `+RTS -N`.
6982 * Added `network` dependency under `network-uri` flag in test section.
6984 * Give better error messages when someone tries to convert from
6985 pdf, doc, odt (#1683).
6987 * Added `track` to list of tags treated by `--self-contained` (#1664).
6989pandoc (1.13.1)
6991 * Fixed `--self-contained` with Windows paths (#1558).
6992 Previously `C:\foo.js` was being wrongly interpreted as a URI.
6994 * HTML reader: improved handling of tags that can be block or inline.
6995 Previously a section like this would be enclosed in a paragraph,
6996 with RawInline for the video tags (since video is a tag that can
6997 be either block or inline):
6999 <video controls="controls">
7000 <source src="../videos/test.mp4" type="video/mp4" />
7001 <source src="../videos/test.webm" type="video/webm" />
7002 <p>
7003 The videos can not be played back on your system.<br/>
7004 Try viewing on Youtube (requires Internet connection):
7005 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
7006 Youtube</a>.
7007 </p>
7008 </video>
7010 This change will cause the video and source tags to be parsed
7011 as RawBlock instead, giving better output.
7012 The general change is this: when we're parsing a "plain" sequence
7013 of inlines, we don't parse anything that COULD be a block-level tag.
7015 * Docx reader:
7017 + Be sensitive to user styles. Note that "Hyperlink" is
7018 "blacklisted," as we don't want the default underline styling to be
7019 inherited by all links by default (Jesse Rosenthal).
7020 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
7021 This makes to docx reader's native output fit with the way the markdown
7022 reader understands its markdown output.
7024 * Textile writer: Extended the range of cases where native textile
7025 tables will be used (as opposed to raw HTML): we now handle any
7026 alignment type, but only for simple tables with no captions.
7028 * Txt2Tags reader:
7030 + Header is now parsed only if standalone flag is set (Matthew Pickering).
7031 + The header is now parsed as meta information. The first line is the
7032 `title`, the second is the `author` and third line is the `date`
7033 (Matthew Pickering).
7034 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
7035 + Fixed crash when reading from stdin.
7037 * EPUB writer: Don't use page-progression-direction in EPUB2, which
7038 doesn't support it. Also, if page-progression-direction not specified
7039 in metadata, don't include the attribute even in EPUB3; not including it
7040 is the same as including it with the value "default", as we did before.
7041 (#1550)
7043 * Org writer: Accept example lines with indentation at the beginning
7044 (Calvin Beck).
7046 * DokuWiki writer:
7048 + Refactor to use Reader monad (Matthew Pickering).
7049 + Avoid using raw HTML in table cells; instead, use `\\`
7050 instead of newlines (Jesse Rosenthal).
7051 + Properly handle HTML table cell alignments, and use spacing
7052 to make the tables look prettier (#1566).
7054 * Docx writer:
7056 + Bibliography entries get `Bibliography` style (#1559).
7057 + Implement change tracking (Jesse Rosenthal).
7059 * LaTeX writer:
7061 + Fixed a bug that caused a table caption to repeat across all pages
7062 (Jose Luis Duran).
7063 + Improved vertical spacing in tables and made it customizable using
7064 standard lengths set by booktab. See
7065 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
7066 (Jose Luis Duran).
7067 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
7068 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
7069 + Made horizontal rules more flexible (Jose Luis Duran).
7071 * Text.Pandoc.MIME:
7073 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
7074 Code cleanups (Artyom Kazak).
7076 * Templates:
7078 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
7079 thanks lemzwerg).
7081 * Improved OSX build procedure.
7083 * Added `network-uri` flag, to deal with split of `network-uri` from
7084 `network`.
7086 * Fix build dependencies for the `trypandoc` flag, so that they are
7087 ignored if `trypandoc` flag is set to False (Gabor Pali).
7089 * Updated README to remove outdated claim that `--self-contained`
7090 looks in the user data directory for missing files.
7092pandoc (1.13.0.1)
7094 * Docx writer:
7096 + Fixed regression which bungled list numbering (#1544), causing
7097 all lists to appear as basic ordered lists.
7098 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
7099 Added a property to all table rows where the sum of column widths
7100 is specified in pct (fraction of 5000). This helps persuade Word
7101 to lay out the table with the widths we specify.
7103 * Fixed a bug in Windows 8 which caused pandoc not to find the
7104 `pandoc-citeproc` filter (#1542).
7106 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
7107 Most significantly, the reader now uses Builder, leading to some
7108 performance improvements.
7110 * HTML reader: Parse appropriately styled span as SmallCaps.
7112 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
7113 `superscript`, and `subscript` extensions, respectively, are
7114 deactivated (#1127).
7116 * Added `trypandoc` flag to build CGI executable used in the online
7117 demo.
7119 * Makefile: Added 'quick', 'osxpkg' targets.
7121 * Updated README in templates to indicate templates license.
7122 The templates are dual-licensed, BSD3 and GPL2+.
7124pandoc (1.13)
7126 [new features]
7128 * Added `docx` as an input format (Jesse Rosenthal). The docx
7129 reader includes conversion of native Word equations to pandoc
7130 LaTeX `Math` elements. Metadata is taken from paragraphs at the
7131 beginning of the document with styles `Author`, `Title`, `Subtitle`,
7132 `Date`, and `Abstract`.
7134 * Added `epub` as an input format (Matthew Pickering). The epub
7135 reader includes conversion of MathML to pandoc LaTeX `Math`
7136 elements.
7138 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
7139 Txt2tags is a lightweight markup format described at
7140 <http://txt2tags.org/>.
7142 * Added `dokuwiki` as an output format (Clare Macrae).
7144 * Added `haddock` as an output format.
7146 * Added `--extract-media` option to extract media contained in a zip
7147 container (docx or epub) while adjusting image paths to point to the
7148 extracted images.
7150 * Added a new markdown extension, `compact_definition_lists`, that
7151 restores the syntax for definition lists of pandoc 1.12.x, allowing
7152 tight definition lists with no blank space between items, and
7153 disallowing lazy wrapping. (See below under behavior changes.)
7155 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
7157 * Added extensions `native_spans` and `native_divs` to activate
7158 parsing of material in HTML span or div tags as Pandoc Span
7159 inlines or Div blocks.
7161 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
7162 Textile, and MediaWiki readers. This is an option intended
7163 for debugging parsing problems; ordinary users should not need
7164 to use it.
7166 [behavior changes]
7168 * Changed behavior of the `markdown_attribute` extension, to bring
7169 it in line with PHP markdown extra and multimarkdown. Setting
7170 `markdown="1"` on an outer tag affects all contained tags,
7171 recursively, until it is reversed with `markdown="0"` (#1378).
7173 * Revised markdown definition list syntax (#1429). Both the reader
7174 and writer are affected. This change brings pandoc's definition list
7175 syntax into alignment with that used in PHP markdown extra and
7176 multimarkdown (with the exception that pandoc is more flexible about
7177 the definition markers, allowing tildes as well as colons). Lazily
7178 wrapped definitions are now allowed. Blank space is required
7179 between list items. The space before a definition is used to determine
7180 whether it is a paragraph or a "plain" element. **WARNING: This change
7181 may break existing documents!** Either check your documents for
7182 definition lists without blank space between items, or use
7183 `markdown+compact_definition_lists` for the old behavior.
7185 * `.numberLines` now works in fenced code blocks even if no language
7186 is given (#1287, jgm/highlighting-kate#40).
7188 * Improvements to `--filter`:
7190 + Don't search PATH for a filter with an explicit path.
7191 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
7192 the system path, even if there was a `caps.py` in the working directory.
7193 + Respect shebang if filter is executable (#1389).
7194 + Don't print misleading error message.
7195 Previously pandoc would say that a filter was not found,
7196 even in a case where the filter had a syntax error.
7198 * HTML reader:
7200 + Parse `div` and `span` elements even without `--parse-raw`,
7201 provided `native_divs` and `native_spans` extensions are set.
7202 Motivation: these now generate native pandoc Div and Span
7203 elements, not raw HTML.
7204 + Parse EPUB-specific elements if the `epub_html_exts`
7205 extension is enabled. These include `switch`, `footnote`,
7206 `rearnote`, `noteref`.
7208 * Org reader:
7210 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
7211 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
7212 `\cite{Coffee}`), can be used without any further escaping (Albert
7213 Krewinkel).
7215 * Textile reader and writer:
7217 + The `raw_tex` extension is no longer set by default. You can
7218 enable it with `textile+raw_tex`.
7220 * DocBook reader:
7222 + Support `equation`, `informalequation`, `inlineequation` elements with
7223 `mml:math` content. This is converted into LaTeX and put into a Pandoc
7224 Math inline.
7226 * Revised `plain` output, largely following the style of Project
7227 Gutenberg:
7229 + Emphasis is rendered with `_underscores_`, strong emphasis
7230 with ALL CAPS.
7231 + Headings are rendered differently, with space to set them off,
7232 not with setext style underlines. Level 1 headers are ALL CAPS.
7233 + Math is rendered using unicode when possible, but without the
7234 distracting emphasis markers around variables.
7235 + Footnotes use a regular `[n]` style.
7237 * Markdown writer:
7239 + Horizontal rules are now a line across the whole page.
7240 + Prettier pipe tables. Columns are now aligned (#1323).
7241 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
7242 no longer emits any raw HTML, including span and div tags
7243 generated by Span and Div elements.
7244 + Use span with style for `SmallCaps` (#1360).
7246 * HTML writer:
7248 + Autolinks now have class `uri`, and email autolinks have class
7249 `email`, so they can be styled.
7251 * Docx writer:
7253 + Document formatting is carried over from `reference.docx`.
7254 This includes margins, page size, page orientation, header,
7255 and footer, including images in headers and footers.
7256 + Include abstract (if present) with `Abstract` style (#1451).
7257 + Include subtitle (if present) with `Subtitle` style, rather
7258 than tacking it on to the title (#1451).
7260 * Org writer:
7262 + Write empty span elements with an id attribute as org anchors.
7263 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
7265 * LaTeX writer:
7267 + Put table captions above tables, to match the conventional
7268 standard. (Previously they appeared below tables.)
7269 + Use `\(..\)` instead of `$..$` for inline math (#1464).
7270 + Use `\nolinkurl` in email autolinks. This allows them to be styled
7271 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
7272 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
7273 curly quotes in the PDF output (#1364).
7274 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
7275 do not appear before the overlays in which their markers appear
7276 (#1525).
7277 + Don't produce a `\label{..}` for a Div or Span element. Do produce
7278 a `\hyperdef{..}` (#1519).
7280 * EPUB writer:
7282 + If the metadata includes `page-progression-direction` (which can be
7283 `ltr` or `rtl`, the `page-progression-direction` attribute will
7284 be set in the EPUB spine (#1455).
7286 * Custom lua writers:
7288 + Custom writers now work with `--template`.
7289 + Removed HTML header scaffolding from `sample.lua`.
7290 + Made citation information available in lua writers.
7292 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
7293 adjacent `RawBlock`s when possible.
7295 [API changes]
7297 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
7299 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
7300 Pickering).
7302 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
7303 Pickering).
7305 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
7306 (Clare Macrae).
7308 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
7310 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
7311 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
7312 readers return a pair of a `Pandoc` document and a `MediaBag` with
7313 the media resources they contain. This can be extracted using
7314 `--extract-media`. Writers that incorporate media (PDF, Docx,
7315 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
7316 for resources in the `MediaBag` generated by the reader, in addition to
7317 the file system or web.
7319 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
7320 Renamed `readTeXMath'` to `texMathToInlines`.
7322 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
7323 `readers` now associates names of readers with `Reader`
7324 structures. This allows inclusion of readers, like the docx
7325 reader, that take binary rather than textual input.
7327 * `Text.Pandoc.Shared`:
7329 + Added `capitalize` (Artyom Kazak), and replaced uses of
7330 `map toUpper` (which give bad results for many languages).
7331 + Added `collapseFilePath`, which removes intermediate `.` and
7332 `..` from a path (Matthew Pickering).
7333 + Added `fetchItem'`, which works like `fetchItem` but searches
7334 a `MediaBag` before looking on the net or file system.
7335 + Added `withTempDir`.
7336 + Added `removeFormatting`.
7337 + Added `extractSpaces` (from HTML reader) and generalized its type
7338 so that it can be used by the docx reader (Matthew Pickering).
7339 + Added `ordNub`.
7340 + Added `normalizeInlines`, `normalizeBlocks`.
7341 + `normalize` is now `Pandoc -> Pandoc` instead of
7342 `Data a :: a -> a`. Some users may need to change their uses of
7343 `normalize` to the newly exported `normalizeInlines` or
7344 `normalizeBlocks`.
7346 * `Text.Pandoc.Options`:
7348 + Added `writerMediaBag` to `WriterOptions`.
7349 + Removed deprecated and no longer used `readerStrict` in
7350 `ReaderOptions`. This is handled by `readerExtensions` now.
7351 + Added `Ext_compact_definition_lists`.
7352 + Added `Ext_epub_html_exts`.
7353 + Added `Ext_native_divs` and `Ext_native_spans`.
7354 This allows users to turn off the default pandoc behavior of
7355 parsing contents of div and span tags in markdown and HTML
7356 as native pandoc Div blocks and Span inlines.
7358 * `Text.Pandoc.Parsing`:
7360 + Generalized `readWith` to `readWithM` (Matthew Pickering).
7361 + Export `runParserT` and `Stream` (Matthew Pickering).
7362 + Added `HasQuoteContext` type class (Matthew Pickering).
7363 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
7364 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
7365 `applyMacros` (Matthew Pickering).
7366 + Added custom `token` (Matthew Pickering).
7367 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
7368 track of the ending tag we're waiting for when we're parsing inside
7369 HTML block tags.
7370 + Added `stateMarkdownAttribute` to `ParserState`. This is used
7371 to keep track of whether the markdown attribute has been set in
7372 an enclosing tag.
7373 + Generalized type of `registerHeader`, using new type classes
7374 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
7375 Pickering). These allow certain common functions to be reused
7376 even in parsers that use custom state (instead of `ParserState`),
7377 such as the MediaWiki reader.
7378 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
7379 and generalized their types (Matthew Pickering).
7381 * `Text.Pandoc.Pretty`:
7383 + Added `nestle`.
7384 + Added `blanklines`, which guarantees a certain number of blank lines
7385 (and no more).
7387 [bug fixes]
7389 * Markdown reader:
7391 + Fixed parsing of indented code in list items. Indented code
7392 at the beginning of a list item must be indented eight spaces
7393 from the margin (or edge of the container), or four spaces
7394 from the list marker, whichever is greater.
7395 + Fixed small bug in HTML parsing with `markdown_attribute`, which
7396 caused incorrect tag nesting for input like
7397 `<aside markdown="1">*hi*</aside>`.
7398 + Fixed regression with intraword underscores (#1121).
7399 + Improved parsing of inline links containing quote characters (#1534).
7400 + Slight rewrite of `enclosure`/`emphOrStrong` code.
7401 + Revamped raw HTML block parsing in markdown (#1330).
7402 We no longer include trailing spaces and newlines in the
7403 raw blocks. We look for closing tags for elements (but without
7404 backtracking). Each block-level tag is its own `RawBlock`;
7405 we no longer try to consolidate them (though `--normalize` will do so).
7406 + Combine consecutive latex environments. This helps when you have
7407 two minipages which can't have blank lines between them (#690, #1196).
7408 + Support smallcaps through span.
7409 `<span style="font-variant:small-caps;">foo</span>` will be
7410 parsed as a `SmallCaps` inline, and will work in all output
7411 formats that support small caps (#1360).
7412 + Prevent spurious line breaks after list items (#1137). When the
7413 `hard_line_breaks` option was specified, pandoc would formerly
7414 produce a spurious line break after a tight list item.
7415 + Fixed table parsing bug (#1333).
7416 + Handle `c++` and `objective-c` as language identifiers in
7417 github-style fenced blocks (#1318).
7418 + Inline math must have nonspace before final `$` (#1313).
7420 * LaTeX reader:
7422 + Handle comments at the end of tables. This resolves the issue
7423 illustrated in <http://stackoverflow.com/questions/24009489>.
7424 + Correctly handle table rows with too few cells. LaTeX seems to
7425 treat them as if they have empty cells at the end (#241).
7426 + Handle leading/trailing spaces in `\emph` better.
7427 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
7428 so that we don't get things like `* hi *` in markdown output.
7429 Also applies to `\textbf` and some other constructions (#1146).
7430 + Don't assume preamble doesn't contain environments (#1338).
7431 + Allow (and discard) optional argument for `\caption` (James Aspnes).
7433 * HTML reader:
7435 + Fixed major parsing problem with HTML tables. Table cells were
7436 being combined into one cell (#1341).
7437 + Fixed performance issue with malformed HTML tables.
7438 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
7439 + Allow space between `<col>` and `</col>`.
7440 + Added `audio` and `source` in `eitherBlockOrInline`.
7441 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
7442 `blockTags` to `eitherBlockOrInline`.
7443 + `map` and `object` were mistakenly in both lists; they have been removed
7444 from `blockTags`.
7445 + Ignore `DOCTYPE` and `xml` declarations.
7447 * MediaWiki reader:
7449 + Don't parse backslash escapes inside `<source>` (#1445).
7450 + Tightened up template parsing.
7451 The opening `{{` must be followed by an alphanumeric or `:`.
7452 This prevents the exponential slowdown in #1033.
7453 + Support "Bild" for images.
7455 * DocBook reader:
7457 + Better handle elements inside code environments. Pandoc's document
7458 model does not allow structure inside code blocks, but at least this way
7459 we preserve the text (#1449).
7460 + Support `<?asciidoc-br?>` (#1236).
7462 * Textile reader:
7464 + Fixed list parsing. Lists can now start without an intervening
7465 blank line (#1513).
7466 + HTML block-level tags that do not start a line are parsed as
7467 inline HTML and do not interrupt paragraphs (as in RedCloth).
7469 * Org reader:
7471 + Make tildes create inline code (#1345). Also relabeled `code` and
7472 `verbatim` parsers to accord with the org-mode manual.
7473 + Respect `:exports` header argument in code blocks (Craig Bosma).
7474 + Fixed tight lists with sublists (#1437).
7476 * EPUB writer:
7478 + Avoid excess whitespace in `nav.xhtml`. This should improve
7479 TOC view in iBooks (#1392).
7480 + Fixed regression on cover image.
7481 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
7482 because the metadata id was not correct. Now we derive the id from the
7483 actual cover image filename, which we preserve rather than using
7484 "cover-image."
7485 + Keep newlines between block elements. This allows
7486 easier diff-ability (#1424).
7487 + Use `stringify` instead of custom `plainify`.
7488 + Use `renderTags'` for all tag rendering. This properly handles tags
7489 that should be self-closing. Previously `<hr/>` would appear in EPUB
7490 output as `<hr></hr>` (#1420).
7491 + Better handle HTML media tags.
7492 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
7493 can have only one dc:date, so only the first one is used.
7495 * LaTeX writer:
7497 + Correctly handle figures in notes. Notes can't contain figures in
7498 LaTeX, so we fake it to avoid an error (#1053).
7499 + Fixed strikeout + highlighted code (#1294).
7500 Previously strikeout highlighted code caused an error.
7502 * ConTeXt writer:
7504 + Improved detection of autolinks with URLs containing escapes.
7506 * RTF writer:
7508 + Improved image embedding: `fetchItem'` is now used to get the
7509 images, and calculated image sizes are indicated in the RTF.
7510 + Avoid extra paragraph tags in metadata (#1421).
7512 * HTML writer:
7514 + Deactivate "incremental" inside slide speaker notes (#1394).
7515 + Don't include empty items in the table of contents for
7516 slide shows. (These would result from creating a slide
7517 using a horizontal rule.)
7519 * MediaWiki writer:
7521 + Minor renaming of `st` prefixed names.
7523 * AsciiDoc writer:
7525 + Double up emphasis and strong emphasis markers in intraword
7526 contexts, as required by asciidoc (#1441).
7528 * Markdown writer:
7530 + Avoid wrapping that might start a list, blockquote, or header (#1013).
7531 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
7532 + Don't use braced attributes for fenced code (#1416).
7533 If `Ext_fenced_code_attributes` is not set, the first class
7534 attribute will be printed after the opening fence as a bare word.
7535 + Separate adjacent lists of the same kind with an HTML comment (#1458).
7537 * PDF writer:
7539 + Fixed treatment of data uris for images (#1062).
7541 * Docx writer:
7543 + Use Compact style for empty table cells (#1353).
7544 Otherwise we get overly tall lines when there are empty
7545 table cells and the other cells are compact.
7546 + Create overrides per-image for `media/` in reference docx.
7547 This should be somewhat more robust and cover more types of images.
7548 + Improved `entryFromArchive` to avoid an unneeded parse.
7549 + Section numbering carries over from reference.docx (#1305).
7550 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
7551 we assign numbers based on the list marker styles.
7553 * `Text.Pandoc.Options`:
7555 + Removed `Ext_fenced_code_attributes` from `markdown_github`
7556 extensions.
7558 * `Text.Pandoc.ImageSize`:
7560 + Use default instead of failing if image size not found
7561 in exif header (#1358).
7562 + ignore unknown exif header tag rather than crashing.
7563 Some images seem to have tag type of 256, which was causing
7564 a runtime error.
7566 * `Text.Pandoc.Shared`:
7568 + `fetchItem`: unescape URI encoding before reading local file (#1427).
7569 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
7570 doing mime lookup, to improve mime type guessing.
7571 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
7572 other things are treated as relative URIs if `sourceURL` is `Just _`,
7573 otherwise as file paths on the local file system.
7574 + `fetchItem` now properly handles links without a protocol (#1477).
7575 + `fetchItem` now escapes characters not allowed in URIs before trying
7576 to parse the URIs.
7577 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
7579 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
7580 needed to resolve relative URLs when we fetch resources (#750).
7582 * `Text.Pandoc.Parsing`
7584 + Simplified `dash` and `ellipsis` (#1419).
7585 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
7586 + Generalized functions to use `ParsecT` (Matthew Pickering).
7587 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
7588 Pickering).
7590 [template changes]
7592 * Added haddock template.
7593 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
7594 be "advisory" in HTML5, but kindlegen seems to require them.
7595 * EPUB3: Put title page in section with `epub:type="titlepage"`.
7596 * LaTeX: Made `\subtitle` work properly (#1327).
7597 * LaTeX/Beamer: remove conditional around date (#1321).
7598 * LaTeX: Added `lot` and `lof` variables, which can be set to
7599 get `\listoftables` and `\listoffigures` (#1407). Note that
7600 these variables can be set at the command line with `-Vlot -Vlof`
7601 or in YAML metadata.
7603 [under the hood improvements]
7605 * Rewrote normalize for efficiency (#1385).
7607 * Rewrote Haddock reader to use `haddock-library` (#1346).
7609 + This brings pandoc's rendering of haddock markup in line
7610 with the new haddock.
7611 + Fixed line breaks in `@` code blocks.
7612 + alex and happy are no longer build-depends.
7614 * Added `Text.Pandoc.Compat.Directory` to allow building against
7615 different versions of the `directory` library.
7617 + Added `Text.Pandoc.Compat.Except` to allow building against
7618 different verions of `mtl`.
7620 * Code cleanup in some writers, using Reader monad to avoid
7621 passing options parameter around (Matej Kollar).
7623 * Improved readability in `pandoc.hs`.
7625 * Miscellaneous code cleanups (Artyom Kazak).
7627 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
7628 Thompson).
7630 * Changed `http-conduit` flag to `https`. Depend on `http-client`
7631 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
7632 depends on `conduit` via `yaml`.)
7634 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
7635 This change to highlighting-kate means that PHP fragments no longer need
7636 to start with `<?php`. It also fixes a serious bug causing failures with
7637 ocaml and fsharp.
7639 * Require latest `texmath`. This fixes `\tilde{E}` and allows
7640 `\left` to be used with `]`, `)` etc. (#1319), among many other
7641 improvements.
7643 * Require latest `zip-archive`. This has fixes for unicode path names.
7645 * Added tests for plain writer.
7647 * `Text.Pandoc.Templates`:
7649 + Fail informatively on template syntax errors.
7650 With the move from parsec to attoparsec, we lost good error
7651 reporting. In fact, since we weren't testing for end of input,
7652 malformed templates would fail silently. Here we revert back to
7653 Parsec for better error messages.
7654 + Use `ordNub` (#1022).
7656 * Benchmarks:
7658 + Made benchmarks compile again (Artyom Kazak).
7659 + Fixed so that the failure of one benchmark does not prevent others
7660 from running (Artyom Kazak).
7661 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
7662 + Changed benchmark to use only the test suite, so that benchmarks
7663 run more quickly.
7665 * Windows build script:
7667 + Add `-windows` to file name.
7668 + Use one install command for pandoc, pandoc-citeproc.
7669 + Force install of pandoc-citeproc.
7671 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
7672 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
7673 will extract it into a folder named `SOMETHING.pkg`, which it
7674 will interpret as a defective package (#1308).
7676 * `README`:
7678 + Made headers for all extensions so they have IDs and can be
7679 linked to (Beni Cherniavsky-Paskin).
7680 + Fixed typos (Phillip Alday).
7681 + Fixed documentation of attributes (#1315).
7682 + Clarified documentation on small caps (#1360).
7683 + Better documentation for `fenced_code_attributes` extension
7684 (Caleb McDaniel).
7685 + Documented fact that you can put YAML metadata in a separate file
7686 (#1412).
7689pandoc (1.12.4.2)
7691 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
7693 * Shared: `addMetaValue` now behaves slightly differently:
7694 if both the new and old values are lists, it concatenates their
7695 contents to form a new list.
7697 * LaTeX reader:
7699 + Set `bibliography` in metadata from `\bibliography` or
7700 `\addbibresource` command.
7701 + Don't error on `%foo` with no trailing newline.
7703 * Org reader:
7705 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
7706 + Fix parsing of blank lines within blocks (Albert Krewinkel).
7707 + Support pandoc citation extension (Albert Krewinkel). This can
7708 be turned off by specifying `org-citations` as the input format.
7710 * Markdown reader:
7712 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
7713 other readers (Albert Krewinkel).
7715 * `Text.Pandoc.Parsing`:
7717 + Added `citeKey` (see above).
7718 + Added `HasLastStrPosition` type class and `updateLastStrPos`
7719 and `notAfterString` functions.
7721 * Updated copyright notices (Albert Krewinkel).
7723 * Added default.icml to data files so it installs with the package.
7725 * OSX package:
7727 + The binary is now built with options to ensure that it can be
7728 used with OSX 10.6+.
7729 + Moved OSX package materials to osx directory.
7730 + Added OSX package uninstall script, included in the zip container
7731 (thanks to Daniel T. Staal).
7733pandoc (1.12.4)
7735 * Made it possible to run filters that aren't executable (#1096).
7736 Pandoc first tries to find the executable (searching the path
7737 if path isn't given). If it fails, but the file exists and has
7738 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
7739 using the appropriate interpreter. This should make it easier to
7740 use filters on Windows, and make it more convenient for everyone.
7742 * Added Emacs org-mode reader (Albert Krewinkel).
7744 * Added InDesign ICML Writer (Mauro Bieg).
7746 * MediaWiki reader:
7748 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
7749 + Fixed bug in certain nested lists (#1213). If a level 2 list was
7750 followed by a level 1 list, the first item of the level 1 list
7751 would be lost.
7752 + Handle table rows containing just an HTML comment (#1230).
7754 * LaTeX reader:
7756 + Give better location information on errors, pointing to line
7757 numbers within included files (#1274).
7758 + LaTeX reader: Better handling of `table` environment (#1204).
7759 Positioning options no longer rendered verbatim.
7760 + Better handling of figure and table with caption (#1204).
7761 + Handle `@{}` and `p{length}` in tabular. The length is not actually
7762 recorded, but at least we get a table (#1180).
7763 + Properly handle `\nocite`. It now adds a `nocite` metadata
7764 field. Citations there will appear in the bibliography but not
7765 in the text (unless you explicitly put a `$nocite$` variable
7766 in your template).
7768 * Markdown reader:
7770 + Ensure that whole numbers in YAML metadata are rendered without
7771 decimal points. (This became necessary with changes to aeson
7772 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
7773 + Fixed regression on line breaks in strict mode (#1203).
7774 + Small efficiency improvements.
7775 + Improved parsing of nested `div`s. Formerly a closing `div` tag
7776 would be missed if it came right after other block-level tags.
7777 + Avoid backtracking when closing `</div>` not found.
7778 + Fixed bug in reference link parsing in `markdown_mmd`.
7779 + Fixed a bug in list parsing (#1154). When reading a raw list
7780 item, we now strip off up to 4 spaces.
7781 + Fixed parsing of empty reference link definitions (#1186).
7782 + Made one-column pipe tables work (#1218).
7784 * Textile reader:
7786 + Better support for attributes. Instead of being ignored, attributes
7787 are now parsed and included in Span inlines. The output will be a bit
7788 different from stock textile: e.g. for `*(foo)hi*`, we'll get
7789 `<em><span class="foo">hi</span></em>` instead of
7790 `<em class="foo">hi</em>`. But at least the data is not lost.
7791 + Improved treatment of HTML spans (%) (#1115).
7792 + Improved link parsing. In particular we now pick up on attributes.
7793 Since pandoc links can't have attributes, we enclose the whole link in
7794 a span if there are attributes (#1008).
7795 + Implemented correct parsing rules for inline markup (#1175, Matthew
7796 Pickering).
7797 + Use Builder (Matthew Pickering).
7798 + Fixed list parsing bug (#1500).
7799 + Don't allow inline formatting to extend over newlines.
7800 This matches the behavior of RedCarpet, avoids some ugly bugs,
7801 and improves performance.
7803 * DocBook reader:
7805 + Better treatment of `formalpara`. We now emit the title (if present)
7806 as a separate paragraph with boldface text (#1215).
7807 + Set metadata `author` not `authors`.
7808 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
7809 Matthew Pickering).
7810 + Converted current meta information parsing in DocBook to a more
7811 extensible version which is aware of the more recent meta
7812 representation (Matthew Pickering).
7814 * HTML reader:
7816 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
7817 (#1248).
7818 + Treat processing instructions & declarations as block. Previously
7819 these were treated as inline, and included in paragraph tags in HTML
7820 or DocBook output, which is generally not what is wanted (#1233).
7821 + Updated `closes` with rules from HTML5 spec.
7822 + Use Builder (Matthew Pickering, #1162).
7824 * RST reader:
7826 + Remove duplicate `http` in PEP links (Albert Krewinkel).
7827 + Make rst figures true figures (#1168, CasperVector)
7828 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
7829 rST parser now supports: all built-in rST roles, new role definition,
7830 role inheritance, though with some limitations.
7831 + Use `author` rather than `authors` in metadata.
7832 + Better handling of directives. We now correctly handle field
7833 lists that are indented more than three spaces. We treat an
7834 `aafig` directive as a code block with attributes, so it can be
7835 processed in a filter (#1212).
7837 * LaTeX writer:
7839 + Mark span contents with label if span has an ID (Albert Krewinkel).
7840 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
7841 + Handle line breaks in simple table cells (#1217).
7842 + Workaround for level 4-5 headers in quotes. These previously produced
7843 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
7844 This adds an `mbox{}` in these contexts to work around the problem.
7845 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
7846 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
7847 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
7848 ligature with LuaLaTeX but `\/` does.
7849 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
7851 * ConTeXt writer: Improved autolinks (#1270).
7853 * DocBook writer:
7855 + Improve handling of hard line breaks in Docbook writer
7856 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
7857 just for the newline character.
7858 + Don't let line breaks inside footnotes influence the enclosing
7859 paragraph (Neil Mayhew).
7860 + Distinguish tight and loose lists in DocBook output, using
7861 `spacing="compact"` (Neil Mayhew, #1250).
7863 * Docx writer: When needed files are not present in the user's
7864 `reference.docx`, fall back on the versions in the `reference.docx`
7865 in pandoc's data files. This fixes a bug that occurs when a
7866 `reference.docx` saved by LibreOffice is used. (#1185)
7868 * EPUB writer:
7870 + Include extension in epub ids. This fixes a problem with duplicate
7871 extensions for fonts and images with the same base name but different
7872 extensions (#1254).
7873 + Handle files linked in raw `img` tags (#1170).
7874 + Handle media in `audio` source tags (#1170).
7875 Note that we now use a `media` directory rather than `images`.
7876 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
7877 will both be incorporated into `content.opf` and the epub container.
7879 * HTML writer:
7881 + Add colgroup around col tags (#877). Also affects EPUB writer.
7882 + Fixed bug with unnumbered section headings. Unnumbered section
7883 headings (with class `unnumbered`) were getting numbers.
7884 + Improved detection of image links. Previously image links with
7885 queries were not recognized, causing `<embed>` to be used instead
7886 of `<img>`.
7888 * Man writer: Ensure that terms in definition lists aren't line wrapped
7889 (#1195).
7891 * Markdown writer:
7893 + Use proper escapes to avoid unwanted lists (#980). Previously we used
7894 0-width spaces, an ugly hack.
7895 + Use longer backtick fences if needed (#1206). If the content contains a
7896 backtick fence and there are attributes, make sure longer fences are
7897 used to delimit the code. Note: This works well in pandoc, but github
7898 markdown is more limited, and will interpret the first string of three
7899 or more backticks as ending the code block.
7901 * RST writer: Avoid stack overflow with certain tables (#1197).
7903 * RTF writer: Fixed table cells containing paragraphs.
7905 * Custom writer:
7907 + Correctly handle UTF-8 in custom lua scripts (#1189).
7908 + Fix bugs with lua scripts with mixed-case filenames and
7909 paths containing `+` or `-` (#1267). Note that `getWriter`
7910 in `Text.Pandoc` no longer returns a custom writer on input
7911 `foo.lua`.
7913 * AsciiDoc writer: Handle multiblock and empty table cells
7914 (#1245, #1246). Added tests.
7916 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
7918 * `Text.Pandoc.Shared`:
7920 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
7921 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
7922 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
7923 Jesse Rosenthal.
7924 + `openURL`: set proxy with value of http_proxy env variable (#1211).
7925 Note: proxies with non-root paths are not supported, due to
7926 limitations in `http-conduit`.
7928 * `Text.Pandoc.PDF`:
7930 + Ensure that temp directories deleted on Windows (#1192). The PDF is
7931 now read as a strict bytestring, ensuring that process ownership will
7932 be terminated, so the temp directory can be deleted.
7933 + Use `/` as path separators in a few places, even on Windows.
7934 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
7935 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
7936 + Changes to error reporting, to handle non-UTF8 error output.
7938 * `Text.Pandoc.Templates`:
7940 + Removed unneeded datatype context (Merijn Verstraaten).
7942 + YAML objects resolve to "true" in conditionals (#1133).
7943 Note: If `address` is a YAML object and you just have `$address$`
7944 in your template, the word `true` will appear, which may be
7945 unexpected. (Previously nothing would appear.)
7947 * `Text.Pandoc.SelfContained`:
7949 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
7950 the string.
7951 * It no longer looks in data files. This only made sense when we
7952 had copies of slidy and S5 code there.
7953 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
7954 + Handle `poster` attribute in `video` tags (#1188).
7956 * `Text.Pandoc.Parsing`:
7958 + Made `F` an instance of Applicative (#1138).
7959 + Added `stateCaption`.
7960 + Added `HasMacros`, simplified other typeclasses.
7961 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
7962 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
7963 + Changed the smart punctuation parser to return `Inlines`
7964 rather than `Inline` (Matthew Pickering).
7965 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
7966 from typeclasses of monads to typeclasses of states. This simplifies
7967 the instance definitions and provides more flexibility. Generalized
7968 type of `getOption` and added a default definition. Removed
7969 `askReaderOption`. Added `extractReaderOption`. Added
7970 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
7971 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
7972 `modifyHeaderMap`. Added `extractIdentifierList` and
7973 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
7974 for `getIdentifierList`, `putIdentifierList`, and
7975 `modifyIdentifierList`. The ultimate goal here is to allow different
7976 parsers to use their own, tailored parser states (instead of
7977 `ParserState`) while still using shared functions.
7979 * Template changes:
7981 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
7982 + LaTeX template: Add `linestretch` and `fontfamily` variables.
7983 + LaTeX template: Conditionalize author and date commands.
7984 + Beamer template: Consistent styles for figure and table captions
7985 (aaronwolen).
7986 + LaTeX and beamer template: Adjust widths correctly for oversized
7987 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
7988 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
7989 `upquote` only after `fontenc` (Yihui Xie).
7990 + Beamer template: Added caption package (#1200).
7991 + Beamer template: changes for better unicode handling (KarolS).
7992 + DocBook template: use `authorgroup` if there are authors.
7993 + revealjs template: Move `include-after` to end (certainlyakey).
7994 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
7996 * Bumped version bounds of dependencies.
7998 * Added a `--trace` command line option, for debugging backtracking
7999 bugs. So far this only works with the markdown reader.
8001 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
8003 * Updated travis script to test with multiple GHC versions.
8005 * Force failure of a Travis build if GHC produces warnings (Albert
8006 Krewinkel).
8008 * Add `.editorconfig` (Albert Krewinkel).
8009 See <http://editorconfig.org/> for details.
8011 * Give more useful error message if '-t pdf' is specified (#1155).
8013 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
8015 * Allow `html4` as a synonym of `html` as a reader (it already works
8016 as a writer).
8018 * README:
8020 + Added an explanation of how to use YAML metadata to
8021 force items to appear in the bibliography without citations in
8022 the text (like LaTeX `\nocite`).
8023 + Added note to `--bibtex/--natbib`: not for use in making PDF
8024 (#1194, thanks to nahoj).
8025 + Added explanatory notes about `--natbib` and `--biblatex`.
8026 + Added specification of legal syntax for citation keys.
8027 + Fixed variable defaults documentation (Albert Krewinkel).
8029 * Removed copyright statements for files that have been removed
8030 (Albert Krewinkel).
8032 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
8033 They aren't needed at runtime. We keep README and COPYRIGHT in data
8034 to ensure that they'll be available on all systems on which pandoc
8035 is installed.
8037 * Use cabal sandboxes in Windows build script.
8039pandoc (1.12.3.3)
8041 * To changes to source; recompiled tarball with latest alex and
8042 happy, so they will work with GHC 7.8.
8044pandoc (1.12.3.2)
8046 * Bumped version bounds for blaze-html, blaze-markup.
8048 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
8049 (#1124).
8051 * Fixed mediawiki ordered list parsing (#1122).
8053 * HTML reader: Fixed bug reading inline math with `$$` (#225).
8055 * Added support for LaTeX style literate Haskell code blocks in rST
8056 (Merijn Verstraaten).
8058pandoc (1.12.3.1)
8060 * Relaxed version constraint on binary, allowing the use of binary 0.5.
8062pandoc (1.12.3)
8064 * The `--bibliography` option now sets the `biblio-files` variable.
8065 So, if you're using `--natbib` or `--biblatex`, you can just use
8066 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
8068 * Don't run pandoc-citeproc filter if `--bibliography` is
8069 used together with `--natbib` or `--biblatex` (Florian Eitel).
8071 * Template changes:
8073 + Updated beamer template to include booktabs.
8074 + Added `abstract` variable to LaTeX template.
8075 + Put `header-includes` after `title` in LaTeX template (#908).
8076 + Allow use of `\includegraphics[size]` in beamer.
8077 This just required porting a macro definition from the default
8078 LaTeX template to the default beamer template.
8080 * `reference.docx`: Include `FootnoteText` style.
8081 Otherwise Word ignores the style, even when specified in the `pPr`.
8082 (#901)
8084 * `reference.odt`: Tidied `styles.xml`.
8086 * Relaxed version bounds for dependencies.
8088 * Added `withSocketsDo` around http conduit code in `openURL`,
8089 so it works on Windows (#1080).
8091 * Added `Cite` function to `sample.lua`.
8093 * Markdown reader:
8095 + Fixed regression in title blocks (#1089).
8096 If author field was empty, date was being ignored.
8097 + Allow backslash-newline hard line breaks in grid and
8098 multiline table cells.
8099 + Citation keys may now start with underscores, and may contain
8100 underscores adjacent to internal punctuation.
8102 * LaTeX reader:
8104 + Add support for `Verb` macro (jrnold) (#1090).
8105 + Support babel-style quoting: `` "`..."' ``.
8107 * Properly handle script blocks in strict mode. (That is,
8108 `markdown-markdown_in_html_blocks`.) Previously a spurious
8109 `<p>` tag was being added (#1093).
8111 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
8112 elements.
8114 * LaTeX writer:
8116 + Factored out function for table cell creation.
8117 + Better treatment of footnotes in tables.
8118 Notes now appear in the regular sequence, rather than in the
8119 table cell. (This was a regression in 1.10.)
8121 * HTML reader: Parse name/content pairs from meta tags as metadata.
8122 Closes #1106.
8124 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
8126 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
8128 * ODT writer: Use mathml for proper rendering of formulas.
8129 Note: LibreOffice's support for this seems a bit buggy. But
8130 it should be better than what we had before.
8132 * RST writer: Ensure no blank line after def in definition list (#992).
8134 * Markdown writer: Don't use tilde code blocks with braced attributes in
8135 `markdown_github` output. A consequence of this change is that the
8136 backtick form will be preferred in general if both are enabled. That
8137 is good, as it is much more widespread than the tilde form. (#1084)
8139 * Docx writer: Fixed problem with some modified reference docx files.
8140 Include `word/_rels/settings.xml.rels` if it exists, as well as other
8141 `rels` files besides the ones pandoc generates explicitly.
8143 * HTML writer:
8145 + With `--toc`, headers no longer link to themselves (#1081).
8146 + Omit footnotes from TOC entries. Otherwise we get doubled
8147 footnotes when headers have notes!
8149 * EPUB writer:
8151 + Avoid duplicate notes when headings contain notes.
8152 This arose because the headings are copied into the metadata
8153 "title" field, and the note gets rendered twice. We strip the
8154 note now before putting the heading in "title".
8155 + Strip out footnotes from toc entries.
8156 + Fixed bug with `--epub-stylesheet`. Now the contents of
8157 `writerEpubStylesheet` (set by `--epub-stylesheet`)
8158 should again work, and take precedence over a stylesheet specified
8159 in the metadata.
8161 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
8163 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
8164 with `//`.
8166 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
8167 we could only get size information for JFIF format, which led
8168 to squished images in Word documents. Closes #976.
8170 * Removed old `MarkdownTest_1.0.3` directory (#1104).
8172pandoc (1.12.2.1)
8174 * Markdown reader: Fixed regression in list parser, involving
8175 continuation lines containing raw HTML (or even verbatim raw HTML).
8177pandoc (1.12.2)
8179 * Metadata may now be included in YAML blocks in a markdown document.
8180 For example,
8182 ---
8183 title:
8184 - type: main
8185 text: My Book
8186 - type: subtitle
8187 text: An investigation of metadata
8188 creator:
8189 - role: author
8190 text: John Smith
8191 - role: editor
8192 text: Sarah Jones
8193 identifier:
8194 - scheme: DOI
8195 text: doi:10.234234.234/33
8196 publisher: My Press
8197 rights: (c) 2007 John Smith, CC BY-NC
8198 cover-image: img/mypic.jpg
8199 ...
8201 Metadata may still be provided using `--epub-metadata`; it will
8202 be merged with the metadata in YAML blocks.
8204 * EPUB writer:
8206 + `meta` tags are now used instead of `opf` attributes for EPUB3.
8207 + Insert "svg" property as needed in opf (EPUB 3).
8208 + Simplify `imageTypeOf` using `getMimeType`.
8209 + Add properties attribute to `cover-image` item for EPUB 3.
8210 + Don't include node for `cover.xhtml` if no cover!
8211 + Ensure that same identifier is used throughout (#1044).
8212 If an identifier is given in metadata, we use that; otherwise
8213 we generate a random uuid.
8214 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
8215 Fixes an issue with Calibre putting the cover at the end of the book
8216 if the spine has `linear="no"`. Apparently this is best practice
8217 for other converters as well:
8218 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
8219 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
8220 + Allow partial dates: `YYYY`, `YYYY-MM`.
8222 * Markdown writer: Fix rendering of tight sublists (#1050).
8223 Previously a spurious blank line was included after a tight sublist.
8225 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
8226 This is reported to be necessary to avoid an error from recent
8227 versions of Libre Office when files contain more than one image
8228 Thanks to wmanley for reporting and diagnosing the problem.
8230 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
8231 Instead, let this be set in the template, using `\setupfloat`.
8232 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
8234 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
8236 * Fixed bug with markdown intraword emphasis. Closes #1066.
8238 * Docbook writer: Hierarchicalize block content in metadata.
8239 Previously headers just disappeared from block-level metadata
8240 when it was used in templates. Now we apply the 'hierarchicalize'
8241 transformation. Note that a block headed by a level-2 header will
8242 turn into a `<sect1>` element.
8244 * OpenDocument writer: Skip raw HTML (#1035).
8245 Previously it was erroneously included as verbatim text.
8247 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
8248 This allows better control of formatting, since the `<a>`
8249 tags have a distinguishing class (#1049).
8251 * Docx writer:
8253 + Use mime type info returned by fetchItem.
8254 + Fixed core metadata (#1046).
8255 Don't create empty date nodes if no date given.
8256 Don't create multiple `dc:creator` nodes; instead separate by
8257 semicolons.
8258 + Fix URL for core-properties in `_rels/.rels` (#1046).
8260 * Plain writer: don't print `<span>` tags.
8262 * LaTeX writer:
8264 + Fix definition lists with internal links in terms (#1032).
8265 This fix puts braces around a term that contains an internal
8266 link, to avoid problems with square brackets.
8267 + Properly escape pdftitle, pdfauthor (#1059).
8268 + Use booktabs package for tables (thanks to Jose Luis Duran).
8270 * Updated beamer template. Now references should work properly
8271 (in a slide) when `--biblatex` or `--natbib` is used.
8273 * LaTeX reader:
8275 + Parse contents of curly quotes or matched `"` as quotes.
8276 + Support `\textnormal` as span with class `nodecor`.
8277 This is needed for pandoc-citeproc.
8278 + Improved citation parsing. This fixes a run-time error that occured
8279 with `\citet{}` (empty list of keys). It also ensures that empty keys
8280 don't get produced.
8282 * MediaWiki reader: Add automatic header identifiers.
8284 * HTML reader:
8286 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
8287 `--parse-raw`.
8288 + Recognize `svg` tags as block level content (thanks to MinRK).
8289 + Parse LaTeX math if appropriate options are set.
8291 * Markdown reader:
8293 + Yaml block must start immediately after `---`. If there's a blank
8294 line after `---`, we interpreted it as a horizontal rule.
8295 + Correctly handle empty bullet list items.
8296 + Stop parsing "list lines" when we hit a block tag.
8297 This fixes exponential slowdown in certain input, e.g.
8298 a series of lists followed by `</div>`.
8300 * Slides: Preserve `<div class="references">` in references slide.
8302 * `Text.Pandoc.Writer.Shared`:
8304 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
8305 attributes, leading to invalid HTML.
8306 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
8307 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
8308 encoded bytestring was returned. We now decode it so it's a proper
8309 image!
8311 * DocBook reader: Handle numerical attributes starting with decimal.
8312 Also use `safeRead` instead of `read`.
8314 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
8315 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
8316 in all the writers. Require `texmath >= 0.6.5.2`.
8318 * `Text.Pandoc.MIME`:
8320 + Add entry for `jfif`.
8321 + In looking up extensions, drop the encoding info.
8322 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
8324 * Templates: Changed how array variables are resolved. Previously if
8325 `foo` is an array (which might be because multiple values were set on
8326 the command line), `$foo$` would resolve to the concatenation of the
8327 elements of foo. This is rarely useful behavior. It has been changed
8328 so that the first value is rendered. Of course, you can still iterate
8329 over the values using `$for(foo)$`. This has the result that you can
8330 override earlier settings using `-V` by putting new values later on the
8331 command line, which is useful for many purposes.
8333 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
8335 * Allow "epub2" as synonym for "epub", "html4" for "html".
8337 * Don't look for slidy files in data files with `--self-contained`.
8339 * Allow `https:` command line arguments to be downloaded.
8341 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
8343pandoc (1.12.1)
8345 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
8346 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
8347 "c": "foo"}`. This new format is easier to work with outside of Haskell.
8348 Incidentally, "t" stands for "tag", "c" for "contents".
8350 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
8351 when converting to markdown (#1027).
8353 * LaTeX reader:
8355 + Ensure that preamble doesn't contribute to the text of
8356 the document.
8357 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
8358 properly, among others.
8359 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
8360 bibtex titles, since we need to know what was protected from
8361 titlecase conversions.
8363 * LaTeX writer:
8365 + Specially escape non-ascii characters in labels.
8366 Otherwise we can get compile errors and other bugs when
8367 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
8368 + Add link anchors for code blocks with identifiers (#1025).
8370 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
8371 It allows fragments identifiers.
8373 * Slide formats:
8375 + A Div element with class "notes" is treated as speaker
8376 notes. Currently beamer goes to `\note{}`, revealjs to
8377 `<aside class="notes">`, and the notes are simply suppressed in
8378 other formats (#925).
8379 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
8380 The old version caused a pause to be inserted before the first
8381 material on a slide. This has been fixed.
8382 + Removed data files for s5, slideous, slidy.
8383 Users of s5 and slideous will have to download the needed
8384 files, as has been documented for some time in the README.
8385 By default, slidy code will be sought on the web, as before.
8387 * HTML writer: Insert command to typeset mathjax only in slideous output
8388 (#966, #1012).
8390 * RST writer: Skip spaces after display math. Otherwise we get indentation
8391 problems, and part of the next paragraph may be rendered as part of the
8392 math.
8394 * OpenDocument writer: Fix formatting of strikeout code (#995),
8395 thanks to wilx. don't use `font-face-decls` variable.
8397 * Fixed test suite so it works with cabal sandboxes.
8399pandoc (1.12.0.2)
8401 * Removed `stringable` dependency.
8403pandoc (1.12.0.1)
8405 * Allow `--metadata` to be repeated for the same key to form a list.
8406 This also has the effect that `--bibliography` can be repeated,
8407 as before.
8409 * Handle boolean values in `--metadata`. Note that anything not parseable
8410 as a YAML boolean or string is treated as a literal string.
8411 You can get a string value with "yes", or any of the strings interpretable
8412 as booleans, by quoting it:
8414 -M boolvalue=yes -M stringvalue='"yes"'
8416 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
8417 option used.
8419 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
8420 in which docx files could not be read by some versions of Word
8421 and LibreOffice (#990).
8423 * Fixed a regression involving slide shows with bibliographies.
8424 The Div container around references messed up the procedure for carving
8425 a document into slides. So we now remove the surrounding Div in
8426 `prepSlides`.
8428 * More informative error message when a filter is not found in path.
8430 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
8431 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
8433 * Don't use unicode_collation in building OSX package:
8434 it adds something like 50MB of dependencies to the package.
8436 * Declare alex and happy as build-tools (#986).
8438pandoc (1.12)
8440 [new features]
8442 * Much more flexible metadata, including arbitrary fields and structured
8443 values. Metadata can be specified flexibly in pandoc markdown using
8444 YAML metadata blocks, which may occur anywhere in the document:
8446 ---
8447 title: Here is my title.
8448 abstract: |
8449 This is the abstract.
8451 1. It can contain
8452 2. block content
8453 and *inline markup*
8455 tags: [cat, dog, animal]
8456 ...
8458 Metadata fields automatically populate template variables.
8460 * Added `opml` (OPML) as input and output format. The `_note` attribute,
8461 used in OmniOutliner and supported by multimarkdown, is supported.
8462 We treat the contents as markdown blocks under a section header.
8464 * Added `haddock` (Haddock markup) as input format (David Lazar).
8466 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
8467 (Thanks to Jamie F. Olson for the initial patch.)
8468 Nested vertical stacks are used for hierarchical structure.
8469 Results for more than one level of nesting may be odd.
8471 * Custom writers can now be written in lua.
8473 pandoc -t data/sample.lua
8475 will load the script sample.lua and use it as a custom writer.
8476 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
8477 Note that pandoc embeds a lua interpreter, so lua need not be
8478 installed separately.
8480 * New `--filter/-F` option to make it easier to run "filters"
8481 (Pandoc AST transformations that operate on JSON serializations).
8482 Filters are always passed the name of the output format, so their
8483 behavior can be tailored to it. The repository
8484 <https://github.com/jgm/pandocfilters> contains
8485 a python module for writing pandoc filters in python, with
8486 a number of examples.
8488 * Added `--metadata/-M` option.
8489 This is like `--variable/-V`, but actually adds to metadata, not
8490 just variables.
8492 * Added `--print-default-data-file` option, which allows printing
8493 of any of pandoc's data files. (For example,
8494 `pandoc --print-default-data-file reference.odt` will print
8495 `reference.odt`.)
8497 * Added syntax for "pauses" in slide shows:
8499 This gives
8501 . . .
8503 me pause.
8505 * New markdown extensions:
8507 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
8508 rather than being treated as hard line breaks or spaces. This is useful
8509 for some East Asian languages, where spaces aren't used between words,
8510 but text is separated into lines for readability.
8511 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
8512 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
8513 only. (Default for `markdown_github`.) (#807)
8514 + `lists_without_preceding_blankline`: Allow lists to start without
8515 preceding blank space. (Default for `markdown_github`.) (#972)
8517 [behavior changes]
8519 * `--toc-level` no longer implies `--toc`.
8520 Reason: EPUB users who don't want a visible TOC may still want
8521 to set the TOC level for in the book navigation.
8523 * `--help` now prints in and out formats in alphabetical order, and
8524 says something about PDF output (#720).
8526 * `--self-contained` now returns less verbose output (telling you
8527 which URLs it is fetching, but not giving the full header). In
8528 addition, there are better error messages when fetching a URL fails.
8530 * Citation support is no longer baked in to core pandoc. Users who
8531 need citations will need to install and use a separate filter
8532 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
8533 `csl`, and `citation-abbreviations` from the metadata, though it
8534 may still be specified on the command line as before.
8536 * A `Cite` element is now created in parsing markdown whether or not
8537 there is a matching reference.
8539 * The `pandoc-citeproc` script will put the bibliography at the
8540 end of the document, as before. However, it will be put inside a `Div`
8541 element with class "references", allowing users some control
8542 over the styling of references. A final header, if any, will
8543 be included in the `Div`.
8545 * The markdown writer will not print a bibliography if the
8546 `citations` extension is enabled. (If the citations are formatted
8547 as markdown citations, it is redundant to have a bibliography,
8548 since one will be generated automatically.)
8550 * Previously we used to store the directory of the first input file,
8551 even if it was local, and used this as a base directory for finding
8552 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
8553 users. So we now look for images relative to the current
8554 working directory, even if the first file argument is in another
8555 directory. Note that this change may break some existing workflows.
8556 If you have been assuming that relative links will be interpreted
8557 relative to the directory of the first file argument, you'll need
8558 to make that the current directory before running pandoc. (#942)
8560 * Better error reporting in some readers, due to changes in `readWith`:
8561 the line in which the error occured is printed, with a caret pointing
8562 to the column.
8564 * All slide formats now support incremental slide view for definition lists.
8566 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
8567 Parse `:<math>...</math>` as display math. These notations are used with
8568 the MathJax MediaWiki extension.
8570 * All writers: template variables are set automatically from metadata
8571 fields. However, variables specified on the command line with
8572 `--variable` will completely shadow metadata fields.
8574 * If `--variable` is used to set many variables with the same name,
8575 a list is created.
8577 * Man writer: The `title`, `section`, `header`, and `footer` can now
8578 all be set individually in metadata. The `description` variable has been
8579 removed. Quotes have been added so that spaces are allowed in the
8580 title. If you have a title that begins
8582 COMMAND(1) footer here | header here
8584 pandoc will still parse it into a title, section, header, and
8585 footer. But you can also specify these elements explicitly (#885).
8587 * Markdown reader
8589 + Added support for YAML metadata blocks, which can come anywhere
8590 in the document (not just at the beginning). A document can contain
8591 multiple YAML metadata blocks.
8592 + HTML span and div tags are parsed as pandoc Span and Div elements.
8594 * Markdown writer
8596 + Allow simple tables to be printed as grid tables,
8597 if other table options are disabled. This means you can do
8598 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
8599 and all tables will render as grid tables.
8600 + Support YAML title block (render fields in alphabetical order
8601 to make output predictable).
8603 [API changes]
8605 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
8606 structured metadata. (Note: existing code that pattern-matches
8607 on `Meta` will have to be revised.) Metadata can now contain
8608 indefinitely many fields, with content that can be a string,
8609 a Boolean, a list of `Inline` elements, a list of `Block`
8610 elements, or a map or list of these.
8612 * A new generic block container (`Div`) has been added to `Block`,
8613 and a generic inline container (`Span`) has been added to `Inline`.
8614 These can take attributes. They will render in HTML, Textile,
8615 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
8616 extension) as HTML `<div>` and `<span>` elements; in other formats
8617 they will simply pass through their contents. But they can be
8618 targeted by scripts.
8620 * `Format` is now a newtype, not an alias for String.
8621 Equality comparisons are case-insensitive.
8623 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
8624 functions that are much faster than the SYB functions from
8625 `Text.Pandoc.Generic`. These functions are now used where possible
8626 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
8627 match the generic traversals `bottomUp` and `queryWith`.)
8629 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
8630 instances for the basic pandoc types. They use GHC generics and
8631 should be faster than the old JSON serialization using
8632 `Data.Aeson.Generic`.
8634 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
8635 This is a souped-up version of `readProcessWithErrorcode` that
8636 uses lazy bytestrings instead of strings and allows setting
8637 environment variables. (Used in `Text.Pandoc.PDF`.)
8639 * New module `Text.Pandoc.Readers.OPML`.
8641 * New module `Text.Pandoc.Writers.OPML`.
8643 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
8644 This is based on Haddock's own lexer/parser.
8646 * New module `Text.Pandoc.Writers.Custom`.
8648 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
8649 Either, for better error handling.
8651 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
8653 * Removed `stripTags` from `Text.Pandoc.XML`.
8655 * `Text.Pandoc.Templates`:
8657 + Simplified `Template` type to a newtype.
8658 + Removed `Empty`.
8659 + Changed type of `renderTemplate`: it now takes a JSON context
8660 and a compiled template.
8661 + Export `compileTemplate`.
8662 + Export `renderTemplate'` that takes a string instead of a compiled
8663 template.
8664 + Export `varListToJSON`.
8666 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
8667 The signature of `makePDF` has changed and now contains
8668 an additional argument for pdf engine options.
8670 * `Text.Pandoc`:
8672 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
8673 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
8674 `Text.Pandoc.JSON` should be used instead. (Compiling against
8675 pandoc-types instead of pandoc will also produce smaller executables.)
8676 * Removed the deprecated `jsonFilter` function.
8677 + Added `readJSON`, `writeJSON` to the API (#817).
8679 * `Text.Pandoc.Options`:
8681 + Added `Ext_lists_without_preceding_blankline`,
8682 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
8683 `Ext_yaml_metadataBlock` to `Extension`.
8684 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
8685 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
8686 first command-line argument is an absolute URL. (So, relative links
8687 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
8688 + All bibliography-related fields have been removed from
8689 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
8690 `readerReferences`, `readerCitationStyle`.
8691 + Removed `writerPdfArgs` from `WriterOptions`. These are now
8692 passed in as a parameter to `makePDF`.
8694 * The `Text.Pandoc.Biblio` module has been removed. Users of the
8695 pandoc library who want citation support will need to use
8696 `Text.CSL.Pandoc` from `pandoc-citeproc`.
8699 [bug fixes]
8701 * In markdown, don't autolink a bare URI that is followed by `</a>`
8702 (#937).
8704 * `Text.Pandoc.Shared`
8706 + `openURL` now follows redirects (#701), properly handles `data:`
8707 URIs, and prints diagnostic output to stderr rather than stdout.
8708 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
8709 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
8710 + Fixed `readDefaultDataFile` so it works on Windows.
8711 + Better error messages for `readDefaultDataFile`. Instead of
8712 listing the last path tried, which can confuse people who are
8713 using `--self-contained`, so now we just list the data file name.
8714 + URL-escape pipe characters. Even though these are legal, `Network.URI`
8715 doesn't regard them as legal in URLs. So we escape them first (#535).
8717 * Mathjax in HTML slide shows: include explicit "Typeset" call.
8718 This seems to be needed for some formats (e.g. slideous) and won't
8719 hurt in others (#966).
8721 * `Text.Pandoc.PDF`
8723 + On Windows, create temdir in working directory, since the system
8724 temp directory path may contain tildes, which can cause
8725 problems in LaTeX (#777).
8726 + Put temporary output directory in `TEXINPUTS` (see #917).
8727 + `makePDF` tries to download images that are not found locally,
8728 if the first argument is a URL (#917).
8729 + If compiling with `pdflatex` yields an encoding error, offer
8730 the suggestion to use `--latex-engine=xelatex`.
8732 * Produce automatic header identifiers in parsing textile, RST,
8733 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
8735 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
8736 before treating as a filename. This fixes `--self-contained` when used
8737 with CSS files that include web fonts using the method described here:
8738 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
8739 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
8741 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
8742 percent-encoding, or a `+` character, as final punctuation.
8744 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
8745 EPS images properly sized on conversion to Word.
8747 * Slidy: Use slidy.js rather than slidy.js.gz.
8748 Reason: some browsers have trouble with the gzipped js file,
8749 at least on the local file system (#795).
8751 * Markdown reader
8753 + Properly handle blank line at beginning of input (#882).
8754 + Fixed bug in unmatched reference links. The input
8755 `[*infile*] [*outfile*]` was getting improperly parsed:
8756 "infile" was emphasized, but "*outfile*" was literal (#883).
8757 + Allow internal `+` in citation identifiers (#856).
8758 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
8759 + Do not generate blank title, author, or date metadata elements.
8760 Leave these out entirely if they aren't present.
8761 + Allow backtick code blocks not to be preceded by blank line (#975).
8763 * Textile reader:
8765 + Correctly handle entities.
8766 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
8767 in code blocks, rather than printing them verbatim. Parse attributes
8768 on `<pre>` tag for code blocks.
8770 * HTML reader: Handle non-simple tables (#893). Column widths are read from
8771 `col` tags if present, otherwise divided equally.
8773 * LaTeX reader
8775 + Support alltt environment (#892).
8776 + Support `\textasciitilde`, `\textasciicircum` (#810).
8777 + Treat `\textsl` as emphasized text reader (#850).
8778 + Skip positional options after `\begin{figure}`.
8779 + Support `\v{}` for hacek (#926).
8780 + Don't add spurious ", " to citation suffixes.
8781 This is added when needed in pandoc-citeproc.
8782 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
8783 + Improved support for accented characters (thanks to Scott Morrison).
8784 + Parse label after section command and set id (#951).
8786 * RST reader:
8788 + Don't insert paragraphs where docutils doesn't.
8789 `rst2html` doesn't add `<p>` tags to list items (even when they are
8790 separated by blank lines) unless there are multiple paragraphs in the
8791 list. This commit changes the RST reader to conform more closely to
8792 what docutils does (#880).
8793 + Improved metadata. Treat initial field list as metadata when
8794 standalone specified. Previously ALL fields "title", "author",
8795 "date" in field lists were treated as metadata, even if not at
8796 the beginning. Use `subtitle` metadata field for subtitle.
8797 + Fixed 'authors' metadata parsing in reST. Semicolons separate
8798 different authors.
8800 * MediaWiki reader
8802 + Allow space before table rows.
8803 + Fixed regression for `<ref>URL</ref>`.
8804 `<` is no longer allowed in URLs, according to the uri parser
8805 in `Text.Pandoc.Parsing`. Added a test case.
8806 + Correctly handle indented preformatted text without preceding
8807 or following blank line.
8808 + Fixed `|` links inside table cells. Improved attribute parsing.
8809 + Skip attributes on table rows. Previously we just crashed if
8810 rows had attributes, now we ignore them.
8811 + Ignore attributes on headers.
8812 + Allow `Image:` for images (#971).
8813 + Parse an image with caption in a paragraph by itself as a figure.
8815 * LaTeX writer
8817 + Don't use ligatures in escaping inline code.
8818 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
8819 wherein notes were numbered incorrectly in tables (#827).
8820 + Always create labels for sections. Previously the labels were only
8821 created when there were links to the section in the document (#871).
8822 + Stop escaping `|` in LaTeX math.
8823 This caused problems with array environments (#891).
8824 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
8825 `\` will cause major problems if unescaped.
8826 + Write id for code block to label attribute in LaTeX when listings
8827 is used (thanks to Florian Eitel).
8828 + Scale LaTeX tables so they don't exceed columnwidth.
8829 + Avoid problem with footnotes in unnumbered headers (#940).
8831 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
8832 to the slide if it is one of the header classes. It is recommended
8833 that your bibliography slide have this attribute:
8835 # References {.allowframebreaks}
8837 This causes multiple slides to be created if necessary, depending
8838 on the length of the bibliography.
8840 * ConTeXt writer: Properly handle tables without captions. The old output
8841 only worked in MkII. This should work in MkIV as well (#837).
8843 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
8845 * HTML writer:
8847 + Fixed `--no-highlight` (Alexander Kondratskiy).
8848 + Don't convert to lowercase in email obfuscation (#839).
8849 + Ensure proper escaping in `<title>` and `<meta>` fields.
8851 * AsciiDoc writer:
8853 + Support `--atx-headers` (Max Rydahl Andersen).
8854 + Don't print empty identifier blocks `([[]])` on headers (Max
8855 Rydahl Andersen).
8857 * ODT writer:
8859 + Fixing wrong numbered-list indentation in open document format
8860 (Alexander Kondratskiy) (#369).
8861 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
8862 + Minor changes for ODF 1.2 conformance (#939). We leave the
8863 nonconforming `contextual-spacing` attribute, which is provided by
8864 LibreOffice itself and seems well supported.
8866 * Docx writer:
8868 + Fixed rendering of display math in lists.
8869 In 1.11 and 1.11.1, display math in lists rendered as a new list
8870 item. Now it always appears centered, just as outside of lists,
8871 and in proper display math style, no matter how far indented the
8872 containing list item is (#784).
8873 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
8874 Previously we used `w:cr` (#873).
8875 + Use Compact style for Plain block elements, to
8876 differentiate between tight and loose lists (#775).
8877 + Ignore most components of `reference.docx`.
8878 We take the `word/styles.xml`, `docProps/app.xml`,
8879 `word/theme/theme1.xml`, and `word/fontTable.xml` from
8880 `reference.docx`, ignoring everything else. This should help
8881 with the corruption problems caused when different versions of
8882 Word resave the reference.docx and reorganize things.
8883 + Made `--no-highlight` work properly.
8885 * EPUB writer
8887 + Don't add `dc:creator` tags if present in EPUB metadata.
8888 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
8889 + Don't put blank title page in reading sequence.
8890 Set `linear="no"` if no title block. Addresses #797.
8891 + Download webtex images and include as data URLs.
8892 This allows you to use `--webtex` in creating EPUBs.
8893 Math with `--webtex` is automatically made self-contained.
8894 + In `data/epub.css`, removed highlighting styles (which
8895 are no longer needed, since styles are added by the HTML
8896 writer according to `--highlighting-style`). Simplified
8897 margin fields.
8898 + If resource not found, skip it, as in Docx writer (#916).
8900 * RTF writer:
8902 + Properly handle characters above the 0000-FFFF range.
8903 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
8904 + Fixed regression with RTF table of contents.
8905 + Only autolink absolute URIs. This fixes a regression, #830.
8907 * Markdown writer:
8909 + Only autolink absolute URIs. This fixes a regression, #830.
8910 + Don't wrap attributes in fenced code blocks.
8911 + Write full metadata in MMD style title blocks.
8912 + Put multiple authors on separate lines in pandoc titleblock.
8913 Also, don't wrap long author entries, as new lines get treated
8914 as new authors.
8916 * `Text.Pandoc.Templates`:
8918 + Fixed bug retrieving default template for markdown variants.
8919 + Templates can now contain "record lookups" in variables;
8920 for example, `author.institution` will retrieve the `institution`
8921 field of the `author` variable.
8922 + More consistent behavior of `$for$`. When `foo` is not a list,
8923 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
8924 So if `foo` resolves to "", no output should be produced.
8925 See pandoc-templates#39.
8927 * Citation processing improvements (now part of pandoc-citeproc):
8929 + Fixed `endWithPunct` The new version correctly sees a sentence
8930 ending in '.)' as ending with punctuation. This fixes a bug which
8931 led such sentences to receive an extra period at the end: '.).'.
8932 Thanks to Steve Petersen for reporting.
8933 + Don't interfere with Notes that aren't citation notes.
8934 This fixes a bug in which notes not generated from citations were
8935 being altered (e.g. first letter capitalized) (#898).
8936 + Only capitalize footnote citations when they have a prefix.
8937 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
8938 inserted before it before passing to citeproc-hs, so that bare numbers
8939 are treated as page numbers by default. A suffix not beginning with
8940 punctuation has a space added at the beginning (rather than a comma and
8941 space, as was done before for not-author-in-text citations).
8942 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
8943 properly, with '23' treated as a locator of type 'page'.
8944 + Many improvements to citation rendering, due to fixes in citeproc-hs
8945 (thanks to Andrea Rossato).
8946 + Warnings are issued for undefined citations, which are rendered
8947 as `???`.
8948 + Fixed hanging behavior when locale files cannot be found.
8950 [template changes]
8952 * DocBook: Use DocBook 4.5 doctype.
8954 * Org: '#+TITLE:' is inserted before the title.
8955 Previously the writer did this.
8957 * LaTeX: Changes to make mathfont work with xelatex.
8958 We need the mathspec library, not just fontspec, for this.
8959 We also need to set options for setmathfont (#734).
8961 * LaTeX: Use `tex-ansi` mapping for `monofont`.
8962 This ensures that straight quotes appear as straight, rather than
8963 being treated as curly. See #889.
8965 * Made `\includegraphics` more flexible in LaTeX template.
8966 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
8968 * LaTeX/Beamer: Added `classoption` variable.
8969 This is intended for class options like `oneside`; it may
8970 be repeated with different options. (Thanks to Oliver Matthews.)
8972 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
8974 * LaTeX: Added `biblio-style` variable (#920).
8976 * DZSlides: title attribute on title section.
8978 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
8980 [under-the-hood improvements]
8982 * Markdown reader:Improved strong/emph parsing, using the strategy of
8983 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
8984 no backtracking, and no keeping track of nesting levels. It will give
8985 different results in some edge cases, but these should not affect normal
8986 uses.
8988 * Added `Text.Pandoc.Compat.Monoid`.
8989 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
8990 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
8992 * Added `Text.Pandoc.Compat.TagSoupEntity`.
8993 This allows pandoc to compile with `tagsoup` 0.13.x.
8994 Thanks to Dirk Ullrich for the patch.
8996 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
8997 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
8998 handle simple math in bibliography fields.)
9000 * Added `Text.Pandoc.Writers.Shared` for shared functions used
9001 only in writers. `metaToJSON` is used in writers to create a
9002 JSON object for use in the templates from the pandoc metadata
9003 and variables. `getField`, `setField`, and `defField` are
9004 for working with JSON template contexts.
9006 * Added `Text.Pandoc.Asciify` utility module.
9007 This exports functions to create ASCII-only versions of identifiers.
9009 * `Text.Pandoc.Parsing`
9011 + Generalized state type on `readWith` (API change).
9012 + Specialize readWith to `String` input. (API change).
9013 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
9014 with `stateMeta` and `stateMeta'`.
9016 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
9017 bytestrings seemed to cause problems using pandoc on 64-bit Windows
9018 7/8 (#874).
9020 * Factored out `registerHeader` from markdown reader, added to
9021 `Text.Pandoc.Parsing`.
9023 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
9024 Reason: < 0.5 does not provide a monoid instance for Attribute,
9025 which is now needed by the HTML writer (#803).
9027 * Added `http-conduit` flag, which allows fetching https resources.
9028 It also brings in a large number of dependencies (`http-conduit`
9029 and its dependencies), which is why for now it is an optional flag
9030 (#820).
9032 * Added CONTRIBUTING.md.
9034 * Improved INSTALL instructions.
9036 * `make-windows-installer.bat`: Removed explicit paths for executables.
9038 * `aeson` is now used instead of `json` for JSON.
9040 * Set default stack size to 16M. This is needed for some large
9041 conversions, esp. if pandoc is compiled with 64-bit ghc.
9043 * Various small documentation improvements.
9044 Thanks to achalddave and drothlis for patches.
9046 * Removed comment that chokes recent versions of CPP (#933).
9048 * Removed support for GHC version < 7.2, since pandoc-types now
9049 requires at least GHC 7.2 for GHC generics.
9052pandoc (1.11.1)
9054 * Markdown reader:
9056 + Fixed regression in which parentheses were lost in link URLs.
9057 Added tests. Closes #786.
9058 + Better handling of unmatched double quotes in `--smart` mode.
9059 These occur frequently in fiction, since it is customary not to
9060 close quotes in dialogue if the speaker does not change between
9061 paragraphs. The unmatched quotes now get turned into literal
9062 left double quotes. (No `Quoted` inline is generated, however.)
9063 Closes #99 (again).
9065 * HTML writer: Fixed numbering mismatch between TOC and sections.
9066 `--number-offset` now affects TOC numbering as well
9067 as section numbering, as it should have all along. Closes #789.
9069 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
9070 as markdown citations, even if `--bibliography` was specified, unless
9071 `citation` extension is disabled. Now, formatted citations are always
9072 printed if `--bibliography` was specified. If you want to reformat
9073 markdown keeping pandoc markdown citations intact, don't use
9074 `--bibliography`. Note that citations parsed from LaTeX documents will
9075 be rendered as pandoc markdown citations when `--bibliography` is not
9076 specified.
9078 * ODT writer: Fixed regression leading to corrupt ODTs.
9079 This was due to a change in the `Show` instance for
9080 `Text.Pandoc.Pretty.Doc`. Closes #780.
9082 * Fixed spacing bugs involving code block attributes in
9083 RST reader and Markdown writer. Closes #763.
9085 * Windows package: Various improvements due to Fyodor Sheremetyev.
9087 + Automatically set installation path (Program Files or Local App Data).
9088 + Set system PATH environment variable when installing for all users.
9089 + Pandoc can installed for all users using the following command.
9090 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
9092 * Bumped QuickCheck version bound.
9094pandoc (1.11)
9096 * Added `--number-offset` option. (See README for description.)
9098 * Added `--default-image-extension` option. (See README for description.)
9100 * `--number-sections` behavior change: headers with class `unnumbered`
9101 will not be numbered.
9103 * `--version` now reports the default data directory.
9105 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
9107 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
9109 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
9110 a field for `Attr` rather than just `String`. (API change.)
9112 * Added `markdown_github` as input format. This was an accidental
9113 omission in 1.10.
9115 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
9116 change.)
9118 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
9120 * Beamer template:
9122 + Fixed captions with longtable. Thanks to Joost Kremers.
9123 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
9125 * LaTeX template:
9127 + Load microtype after fonts. Microtype needs to know
9128 what fonts are being used. Thanks to dfc for the patch.
9129 + Set `secnumdepth` to 5 if `--number-sections` specified.
9130 This yields behavior equivalent to the other writers, numbering
9131 level 4 and 5 headers too. Closes #753.
9133 * HTML reader:
9135 + Handle `<colgroup>` tag.
9136 + Preserve all header attributes.
9138 * LaTeX reader:
9140 + Parse `\hrule` as `HorizontalRule`. Closes #746.
9141 + Parse starred variants of `\section` etc. as headers with
9142 attribute `unnumbered`.
9143 + Read optional attributes in `lstlisting` and `Verbatim` environments.
9144 We convert these to pandoc standard names, e.g. `numberLines`
9145 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
9146 + Handle language attribute for lstlistings.
9147 + Better support for Verbatim and minted environments. Closes #763.
9149 * Markdown reader:
9151 + `-` in an attribute context = `.unnumbered`. The point of this
9152 is to provide a way to specify unnumbered headers in non-English
9153 documents.
9154 + Fixed bug parsing key/value attributes. Parsing failed if you
9155 had an unquoted attribute immediately before the final '}'.
9156 + Make backslash escape work in attributes.
9157 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
9158 pandoc will parse a MMD title block if it sees one, even if
9159 `pandoc_title_blocks` is enabled.
9160 + Refactoring: `litChar` now includes entities, so we don't need
9161 to use `fromEntities` e.g. on titles.
9162 + Allow spaces around borders in pipe tables. Closes #772.
9163 + Allow all punctuation in angle-bracket autolinks. Previously
9164 things like `----` were disallowed, because the uri parser
9165 treated them as trailing punctuation. Closes #768.
9166 + Make `implicit_header_references` work properly when
9167 headers are given explicit identifiers.
9168 + Check for tables before line blocks. Otherwise some pipe
9169 tables get treated as line blocks.
9170 + Allow `&` in emails (for entities).
9171 + Properly handle entities in titles and links. A markdown link
9172 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
9173 Closes #723.
9175 * Textile reader:
9177 + Handle attributes on headers.
9179 * LaTeX reader:
9181 + Add `fig:` as title for images with captions.
9182 This is needed for them to be rendered as figures. Closes #766.
9183 + Never emit an empty paragraph. See #761.
9184 + Handle `\caption` for images in figures. Closes #766.
9185 + Parse `\section*`, etc. as unnumbered sections.
9187 * HTML writer:
9189 + Support header attributes. The attributes go on
9190 the enclosing `section` or `div` tag if `--section-divs` is specified.
9191 + Fixed a regression (only now noticed) in html+lhs output.
9192 Previously the bird tracks were being omitted.
9194 * LaTeX writer:
9196 + Omit lists with no items to avoid LaTeX errors.
9197 + Support line numbering with `--listings`.
9198 If `numberLines` class is present, we add `numbers=left`;
9199 if `startFrom` is present, we add `firstnumber=`. (#763)
9201 * ConTeXt writer:
9203 + Removed `\placecontent`. This produced a duplicate toc,
9204 in conjunction with `\placelist`.
9205 + Use `\title`, `\subject` etc. for headers with
9206 `unnumbered` class.
9208 * Textile writer:
9210 + Support header attributes.
9212 * Markdown writer:
9214 + Use grid tables when needed, and if enabled. Closes #740.
9215 + Render citations as pandoc-markdown citations.
9216 Previously citations were rendered as citeproc-formatted citations
9217 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
9218 unless the `citations` extension is disabled.
9219 If you still want formatted citations in your markdown output,
9220 use `pandoc -t markdown-citations`.
9222 * RST writer:
9224 + Support `:number-lines:` in code blocks.
9226 * Docx writer:
9228 + Better treatment of display math. Display math inside a
9229 paragraph is now put in a separate paragraph, so it will render
9230 properly (centered and without extra blank lines around it).
9231 Partially addresses #742.
9232 + Content types and document rels xml files are now created from
9233 scratch, rather than being taken over from `reference.docx`.
9234 This fixes problems that arise when you edit the `reference.docx`
9235 with Word.
9236 + We also now encode mime types for each individual image rather
9237 than using defaults. This should allow us to handle a wider
9238 range of image types (including PDF). Closes #414.
9239 + Changed style names in `reference docx`.
9240 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
9241 The old names got changed by Word when the `reference.docx` was
9242 edited. Closes #414.
9244 * EPUB writer:
9246 + Fix section numbering. Previously the numbering restarted from 1
9247 in each chapter (with `--number-sections`), though the numbers in
9248 the table of contents were correct.
9249 + Headers with "unnumbered" attribute are not numbered. (Nor do they
9250 cause an increment in running numbering.) Section numbers now work
9251 properly, even when there is material before the first numbered section.
9252 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
9253 but `linear` is set to `no` unless the `--toc` option is specified.
9254 Include `<guide>` element in OPF. This should allow the TOC to
9255 be useable in Kindles when converted with kindlegen. Closes #773.
9257 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
9258 This dramatically reduces the speed penalty that comes from enabling the
9259 `autolink_bare_uris` extension. The penalty is still substantial (in one
9260 test, from 0.33s to 0.44s), but nowhere near what it used to be.
9261 The RST reader is also much faster now, as it autodetects URIs.
9263 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
9264 with class "unnumbered". Unnumbered sections get `[]` for their
9265 section number.
9267 * `Text.Pandoc.Pretty`:
9269 + Fixed `chomp` so it works inside `Prefixed` elements.
9270 + Changed `Show` instance so it is better for debugging.
9272 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
9274 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
9276 * Windows installer improvements:
9278 + The installer is now signed with a certificate (thanks to
9279 Fyodor Sheremetyev).
9280 + WiX is used instead of InnoSetup. The installer is now a
9281 standard msi file.
9282 + The version number is now auto-detected, and need not be
9283 updated separately.
9285 * OSX installer improvements:
9287 + The package and pandoc executable are now signed with a
9288 certificate (thanks to Fyodor Sheremetyev).
9289 + RTF version of license is used.
9290 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
9291 Closes #580.
9293 * Converted COPYING to markdown.
9295 * pandoc.cabal: Require latest versions of highlighting-kate,
9296 texmath, citeproc-hs, zip-archive.
9298pandoc (1.10.1)
9300 * Markdown reader: various optimizations, leading to a
9301 significant performance boost.
9303 * RST reader: Allow anonymous form of inline links:
9304 `` `hello <url>`__ `` Closes #724.
9306 * Mediawiki reader: Don't require newlines after tables.
9307 Thanks to jrunningen for the patch. Closes #733.
9309 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
9310 when output is LaTeX, and applied when it is another format.
9311 Partially addresses #730.
9313 * Markdown and RST readers: Added parser to `block` that skips blank
9314 lines. This fixes a subtle regression involving grid tables with
9315 empty cells. Also added test for grid table with empty cells.
9316 Closes #732.
9318 * RST writer: Use `.. code:: language` for code blocks with language.
9319 Closes #721.
9321 * DocBook writer: Fixed output for hard line breaks, adding a newline
9322 between `<literallayout>` tags.
9324 * Markdown writer: Use an autolink when link text matches url.
9325 Previously we also checked for a null title, but this
9326 test fails for links produced by citeproc-hs in bibliographies.
9327 So, if the link has a title, it will be lost on conversion
9328 to an autolink, but that seems okay.
9330 * Markdown writer: Set title, author, date variables as before.
9331 These are no longer used in the default template, since we use
9332 titleblock, but we set them anyway for those who use custom templates.
9334 * LaTeX writer: Avoid extra space at start/end of table cell.
9335 Thanks to Nick Bart for the suggestion of using @{}.
9337 * `Text.Pandoc.Parsing`:
9339 + More efficient version of `anyLine`.
9340 + Type of `macro` has changed; the parser now returns `Blocks`
9341 instead of `Block`.
9343 * Relaxed old-time version bound, allowing 1.0.*.
9345 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
9346 should create a symlink as described in the README.
9348pandoc (1.10.0.5)
9350 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
9351 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
9352 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
9354 * Markdown reader: Fixed bug with headerless grid tables.
9355 The 1.10 code assumed that each table header cell contains exactly one
9356 block. That failed for headerless tables (0) and also for tables with
9357 multiple blocks in a header cell. The code is fixed and tests provided.
9358 Thanks to Andrew Lee for pointing out the bug.
9360 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
9362 + Tilde code fences can again take a bare language string
9363 (`~~~ haskell`), not just curly-bracketed attributes
9364 (`~~~ {.haskell}`).
9365 + Backtick code blocks can take the curly-bracketed attributes.
9366 + Backtick code blocks don't *require* a language.
9367 + Consolidated code for the two kinds of fenced code blocks.
9369 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
9371 * Markdown writer: Use proportional font for email autolinks with
9372 obfuscation. Closes #714.
9374 * Corrected name of `blank_before_blockquote` in README. Closes #718.
9376 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
9377 The bug prevented an autolink at the end of a string (e.g.
9378 at the end of a line block line) from counting as a link. Closes #711.
9380 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
9381 This should work on Windows, unlike the TH solution with
9382 file-embed.
9384 * Eliminated use of TH in test suite.
9386 * Added `Text.Pandoc.Data` (non-exported) to hold the association
9387 list of embedded data files, if the `embed_data_files` flag is selected.
9388 This isolates the code that needs special treatment with file-embed or
9389 `hsb2hs`.
9391 * Changes to `make-windows-installer.bat`.
9393 + Exit batch file if any of the cabal-dev installs fail.
9394 + There's no longer any need to reinstall `highlighting-kate`.
9395 + Don't start with a `cabal update`; leave that to the user.
9396 + Force reinstall of pandoc.
9398 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
9399 Jens Petersen.
9401pandoc (1.10.0.4)
9403 * Fixed bug with escaped % in LaTeX reader. Closes #710.
9405pandoc (1.10.0.3)
9407 * Added further missing fb2 tests to cabal file.
9409pandoc (1.10.0.2)
9411 * Added fb2 tests to cabal file's extra-source-files.
9413pandoc (1.10.0.1)
9415 * Bump version bounds on test-framework packages.
9417pandoc (1.10)
9419 [new features]
9421 * New input formats: `mediawiki` (MediaWiki markup).
9423 * New output formats: `epub3` (EPUB v3 with MathML),
9424 `fb2` (FictionBook2 ebooks).
9426 * New `--toc-depth` option, specifying how many levels of
9427 headers to include in a table of contents.
9429 * New `--epub-chapter-level` option, specifying the header
9430 level at which to divide EPUBs into separate files.
9431 Note that this normally affects only performance, not the
9432 visual presentation of the EPUB in a reader.
9434 * Removed the `--strict` option. Instead of using `--strict`,
9435 one can now use the format name `markdown_strict` for either input
9436 or output. This gives more fine-grained control that `--strict`
9437 did, allowing one to convert from pandoc's markdown to strict
9438 markdown or vice versa.
9440 * It is now possible to enable or disable specific syntax
9441 extensions by appending them (with `+` or `-`) to the writer
9442 or reader name. For example,
9444 pandoc -f markdown-footnotes+hard_line_breaks
9446 disables footnotes and enables treating newlines as hard
9447 line breaks. The literate Haskell extensions are now implemented
9448 this way as well, using either `+lhs` or `+literate_haskell`.
9449 For a list of extension names, see the README under
9450 "Pandoc's Markdown."
9452 * The following aliases have been introduced for specific
9453 combinations of markdown extensions: `markdown_phpextra`,
9454 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
9455 work just like regular reader and writer names, and can be modified
9456 with extension modifiers as described above. (Note that conversion
9457 from one markdown dialect to another does not work perfectly,
9458 because there are differences in markdown parsers besides
9459 just the extensions, and because pandoc's internal document model is
9460 not rich enough to capture all of the extensions.)
9462 * New `--html-q-tags` option. The previous default was to use `<q>`
9463 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
9464 Moreover, they are not a robust way of typesetting quotes, since
9465 some user agents don't support them, and some CSS resets (e.g.
9466 bootstrap) prevent pandoc's quotes CSS from working properly.
9467 We now just insert literal quote characters by default in both
9468 `html` and `html5` output, but this option is provided for
9469 those who still want `<q>` tags.
9471 * The markdown reader now prints warnings (to stderr) about
9472 duplicate link and note references. Closes #375.
9474 * Markdown syntax extensions:
9476 + Added pipe tables. Thanks to François Gannaz for the initial patch.
9477 These conform to PHP Markdown Extra's pipe table syntax. A subset
9478 of org-mode table syntax is also supported, which means that you can
9479 use org-mode's nice table editor to create tables.
9481 + Added support for RST-style line blocks. These are
9482 useful for verse and addresses.
9484 + Attributes can now be specified for headers, using the same
9485 syntax as in code blocks. (However, currently only the
9486 identifier has any effect in most writers.) For example,
9488 # My header {#foo}
9490 See [the header above](#foo).
9492 + Pandoc will now act as if link references have been defined
9493 for all headers without explicit identifiers.
9494 So, you can do this:
9496 # My header
9498 Link to [My header].
9499 Another link to [it][My header].
9501 Closes #691.
9503 * LaTeX reader:
9505 + Command macros now work everywhere, including non-math.
9506 Environment macros still not supported.
9507 + `\input` now works, as well as `\include`. TEXINPUTS is used.
9508 Pandoc looks recursively into included files for more included files.
9510 [behavior changes]
9512 * The Markdown reader no longer puts the text of autolinks in a
9513 `Code` inline. This means that autolinks will no longer appear
9514 in a monospace font.
9516 * The character `/` can now appear in markdown citation keys.
9518 * HTML blocks in strict_markdown are no longer required to begin
9519 at the left margin. Technically this is required, according to
9520 the markdown syntax document, but `Markdown.pl` and other markdown
9521 processors are more liberal.
9523 * The `-V` option has been changed so that if there are duplicate
9524 variables, those specified later on the command line take precedence.
9526 * Tight lists now work in LaTeX and ConTeXt output.
9528 * The LaTeX writer no longer relien on the `enumerate` package.
9529 Instead, it uses standard LaTeX commands to change the list numbering
9530 style.
9532 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
9533 tables to be split over page boundaries.
9535 * The RST writer now uses a line block to render paragraphs containing
9536 linebreaks (which previously weren't supported at all).
9538 * The markdown writer now applies the `--id-prefix` to footnote IDs.
9539 Closes #614.
9541 * The plain writer no longer uses backslash-escaped line breaks
9542 (which are not very "plain").
9544 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
9545 Read bytestring and use `Text`'s decodeUtf8 instead of using
9546 `System.IO.hGetContents`. This way you get a message saying
9547 "invalid UTF-8 stream" instead of "invalid byte sequence."
9548 You are also told which byte caused the problem.
9550 * Docx, ODT, and EPUB writers now download images specified by a URL
9551 instead of skipping them or raising an error.
9553 * EPUB writer:
9555 + The default CSS now left-aligns headers by default, instead of
9556 centering. This is more consistent with the rest of the writers.
9557 + A proper multi-level table of contents is now used in `toc.ncx`.
9558 There is no longer a subsidiary table of contents at the beginning
9559 of each chapter.
9560 + Code highlighting now works by default.
9561 + Section divs are used by default for better semantic markup.
9562 + The title is used instead of "Title Page" in the table of contents.
9563 Otherwise we have a hard-coded English string, which looks
9564 strange in ebooks written in other languages. Closes #572.
9566 * HTML writer:
9568 + Put mathjax in span with class "math". Closes #562.
9569 + Put citations in a span with class "citation." In HTML5, also include
9570 a `data-cite` attribute with a space-separated list of citation
9571 keys.
9573 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
9574 This treats both `\r\n` and `\n` as `\n` on input, no matter
9575 what platform we're running on.
9577 * Citation processing is now done in the Markdown and LaTeX
9578 readers, not in `pandoc.hs`. This makes it easier for library users
9579 to use citations.
9581 [template changes]
9583 * HTML: Added css to template to preserve spaces in `<code>` tags.
9584 Thanks to Dirk Laurie.
9586 * Beamer: Remove English-centric strings in section pages.
9587 Section pages used to have "Section" and a number as well as the
9588 section title. Now they just have the title. Similarly for part
9589 and subsection. Closes #566.
9591 * LaTeX, ConTeXt: Added papersize variable.
9593 * LaTeX, Beamer templates: Use longtable instead of ctable.
9595 * LaTeX, Beamer templates: Don't require 'float' package for tables.
9596 We don't actually seem to use the '[H]' option.
9598 * LaTeX: Use `upquote` package if it is available. This fixes
9599 straight quotes in verbatim environments.
9601 * Markdown, plain: Fixed titleblock so it is just a single string.
9602 Previously separate title, author, and date variables were used,
9603 but this didn't allow different kinds of title blocks.
9605 * EPUB:
9607 + Rationalized templates. Previously there were three different
9608 templates involved in epub production. There is now just one
9609 template, `default.epub` or `default.epub3`. It can now be
9610 overridden using `--template`, just like other templates.
9611 The titlepage is now folded into the default template.
9612 A `titlepage` variable selects it.
9613 + UTF-8, lang tag, meta tags, title element.
9615 * Added scale-to-width feature to beamer template
9617 [API changes]
9619 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
9620 Previously header identifers were autogenerated by the writers.
9621 Now they are added in the readers (either automatically or explicitly).
9623 * `Text.Pandoc.Builder`:
9625 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
9626 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
9627 custom Monoid instances for `Many Inline` and `Many Block. This
9628 allows `Many` to be made an instance of `Foldable` and `Traversable`.
9629 + The old `Listable` class has been removed.
9630 + The module now exports `isNull`, `toList`, `fromList`.
9631 + The old `Read` and `Show` instances have been removed; derived
9632 instances are now used.
9633 + Added `headerWith`.
9635 * The readers now take a `ReaderOptions` rather than a `ParserState`
9636 as a parameter. Indeed, not all parsers use the `ParserState` type;
9637 some have a custom state. The motivation for this change was to separate
9638 user-specifiable options from the accounting functions of parser state.
9640 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
9641 formerly in `Text.Pandoc.Shared`, and its associated
9642 data types. It also includes a new type `ReaderOptions`, which
9643 contains many options formerly in `ParserState`, and its associated
9644 data types:
9646 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
9647 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
9648 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
9649 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
9650 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
9651 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
9652 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
9653 + `ParserState.stateIndentedCodeClasses` ->
9654 `ReaderOptions.readerIndentedCodeClasses`.
9655 + Added `ReaderOptions.readerCitationStyle`.
9657 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
9658 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
9659 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
9660 been renamed `writerEpubMetadata` for consistency.
9662 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
9663 longer stylesheet, fonts, reference files as separate parameters.
9665 * Removed `writerLiterateHaskell` from `WriterOptions`, and
9666 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
9667 by an extension (`Ext_literate_haskell`).
9669 * Removed deprecated `writerXeTeX`.
9671 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
9672 Strict is now handled through extensions.
9674 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
9675 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
9676 and `multimarkdownExtensions`, as well as the `Extensions` type.
9678 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
9679 `readMediaWiki`.
9681 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
9682 (thanks to Sergey Astanin).
9684 * `Text.Pandoc`:
9686 + Added `getReader`, `getWriter` to `Text.Pandoc`.
9687 + `writers` is now an association list `(String, Writer)`.
9688 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
9689 an `IOByteStringWriter`. ALL writers are now in the 'writers'
9690 list, including the binary writers and FB2 writer. This allows
9691 code in `pandoc.hs` to be simplified.
9692 + Changed type of `readers`, so all readers are in IO.
9693 Users who want pure readers can still get them form the reader
9694 modules; this just affects the function `getReader` that looks up
9695 a reader based on the format name. The point of this change is to
9696 make it possible to print warnings from the parser.
9698 * `Text.Pandoc.Parsing`:
9700 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
9701 No other module directly imports Parsec. This will make it easier
9702 to change the parsing backend in the future, if we want to.
9703 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
9704 + Export the type synonym `Parser`.
9705 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
9706 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
9707 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
9708 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
9709 + `ParserState` is no longer an instance of `Show`.
9710 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
9711 + Generalized type of `withQuoteContext`.
9712 + Added `guardEnabled`, `guardDisabled`, `getOption`.
9713 + Removed `failIfStrict`.
9714 + `lookupKeySrc` and `fromKey` are no longer exported.
9716 * `Data.Default` instances are now provided for `ReaderOptions`,
9717 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
9718 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
9719 of `defaultWriterOptions` (which is still defined). Closes #546.
9721 * `Text.Pandoc.Shared`:
9723 + Added `safeRead`.
9724 + Renamed `removedLeadingTrailingSpace` to `trim`,
9725 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
9726 + Count `\r` as space in `trim` functions.
9727 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
9728 to `Shared`.
9729 + Removed `failUnlessLHS`.
9730 + Export `compactify'`, formerly in Markdown reader.
9731 + Export `isTightList`.
9732 + Do not export `findDataFile`.
9733 + `readDataFile` now returns a strict ByteString.
9734 + Export `readDataFileUTF8` which returns a String, like the
9735 old `readDataFile`.
9736 + Export `fetchItem` and `openURL`.
9738 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
9739 Removed `readImageSize`.
9741 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
9742 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
9743 `fromStringLazy`.
9745 * `Text.Pandoc.UTF8` is now an exposed module.
9747 * `Text.Pandoc.Biblio`:
9749 + csl parameter now a `String` rather than a `FilePath`.
9750 + Changed type of `processBiblio`. It is no longer in the IO monad.
9751 It now takes a `Maybe Style` argument rather than parameters for CSL
9752 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
9753 the style file and add abbreviations.)
9755 * Markdown reader now exports `readMarkdownWithWarnings`.
9757 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
9758 `rtfEmbedImage`.
9760 [bug fixes]
9762 * Make `--ascii` work properly with `--self-contained`. Closes #568.
9764 * Markdown reader:
9766 + Fixed link parser to avoid exponential slowdowns. Closes #620.
9767 Previously the parser would hang on input like this:
9769 [[[[[[[[[[[[[[[[[[hi
9771 We fixed this by making the link parser parser characters
9772 between balanced brackets (skipping brackets in inline code spans),
9773 then parsing the result as an inline list. One change is that
9775 [hi *there]* bud](/url)
9777 is now no longer parsed as a link. But in this respect pandoc behaved
9778 differently from most other implementations anyway, so that seems okay.
9780 + Look for raw html/latex blocks before tables.
9781 Otherwise the following gets parsed as a table:
9783 \begin{code}
9784 --------------
9785 -- My comment.
9786 \end{code}
9788 Closes #578.
9790 * RST reader:
9792 + Added support for `:target:` on `.. image::` blocks
9793 and substitutions.
9794 + Field list fixes:
9796 - Fixed field lists items with body beginning after a new line
9797 (Denis Laxalde).
9798 - Allow any char but ':' in names of field lists in RST reader
9799 (Denis Laxalde).
9800 - Don't allow line breaks in field names.
9801 - Require whitespace after field list field names.
9802 - Don't create empty definition list for metadata field lists.
9803 Previously a field list consisting only of metadata fields (author,
9804 title, date) would be parsed as an empty DefinitionList, which is
9805 not legal in LaTeX and not needed in any format.
9807 + Don't recognize inline-markup starts inside words.
9808 For example, `2*2 = 4*1` should not contain an emphasized
9809 section. Added test case for "Literal symbols". Closes #569.
9810 + Allow dashes as separator in simple tables. Closes #555.
9811 + Added support for `container`, `compound`, `epigraph`,
9812 `rubric`, `highlights`, `pull-quote`.
9813 + Added support for `.. code::`.
9814 + Made directive labels case-insensitive.
9815 + Removed requirement that directives begin at left margin.
9816 This was (correctly) not in earlier releases; docutils doesn't
9817 make the requirement.
9818 + Added support for `replace::` and `unicode::` substitutions.
9819 + Ignore unknown interpreted roles.
9820 + Renamed image parser to `subst`, since it now handles all
9821 substitution references.
9823 * Textile reader:
9825 + Allow newlines before pipes in table. Closes #654.
9826 + Fixed bug with list items containing line breaks.
9827 Now pandoc correctly handles hard line breaks inside list items.
9828 Previously they broke list parsing.
9829 + Implemented comment blocks.
9830 + Fixed bug affected words ending in hyphen.
9831 + Properly handle links with surrounding brackets.
9832 Square brackets need to be used when the link isn't surrounded by
9833 spaces or punctuation, or when the URL ending may be ambiguous.
9834 Closes #564.
9835 + Removed nullBlock. Better to know about parsing problems than
9836 to skip stuff when we get stuck.
9837 + Allow ID attributes on headers.
9838 + Textile reader: Avoid parsing dashes as strikeout.
9839 Previously the input
9841 text--
9842 text--
9843 text--
9844 text--
9846 would be parsed with strikeouts rather than dashes. This fixes
9847 the problem by requiring that a strikeout delimiting - not be
9848 followed by a -. Closes #631.
9849 + Expanded list of `stringBreakers`.
9850 This fixes a bug on input like "(_hello_)" which should
9851 be a parenthesized emphasized "hello".
9852 The new list is taken from the PHP source of textile 2.4.
9853 + Fixed autolinks. Previously the textile reader and writer
9854 incorrectly implented RST-style autolinks for URLs and email
9855 addresses. This has been fixed. Now an autolink is done this way:
9856 `"$":http://myurl.com`.
9857 + Fixed footnotes bug in textile. This affected notes occuring
9858 before punctuation, e.g. `foo[1].`. Closes #518.
9860 * LaTeX reader:
9862 + Better handling of citation commands.
9863 + Better handling of `\noindent`.
9864 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
9865 Closes #622.
9866 + Made `rawLaTeXInline` try to parse block commands as well. This
9867 is usually what we want, given how `rawLaTeXInline` is used in
9868 the markdown and textile readers. If a block-level LaTeX command
9869 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
9870 we can treat it as raw inline LaTeX.
9871 + Handle \slash command. Closes #605.
9872 + Basic `\enquote` support.
9873 + Fixed parsing of paragraphs beginning with a group. Closes #606.
9874 + Use curly quotes for bare straight quotes.
9875 + Support obeylines environment. Closes #604.
9876 + Guard against "begin", "end" in inlineCommand and
9877 blockCommand.
9878 + Better error messages for environments. Now it should tell you that
9879 it was looking for \end{env}, instead of giving "unknown parse error."
9881 * HTML reader:
9883 + Added HTML 5 tags to list of block-level tags.
9884 + HTML reader: Fixed bug in `htmlBalanced`, which
9885 caused hangs in parsing certain markdown input using
9886 strict mode.
9887 + Parse `<q>` as `Quoted DoubleQuote`.
9888 + Handle nested `<q>` tags properly.
9889 + Modified `htmlTag` for fewer false positives.
9890 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
9891 This makes it more useful in the wikimedia and markdown parsers.
9893 * DocBook reader: Support title in "figure" element. Closes #650.
9895 * MediaWiki writer:
9897 + Remove newline after `<br/>` in translation of `LineBreak`
9898 There's no particular need for a newline (other than making the
9899 generated MediaWiki source look nice to a human), and in fact
9900 sometimes it is incorrect: in particular, inside an enumeration, list
9901 items cannot have embedded newline characters. (Brent Yorgey)
9902 + Use `<code>` not `<tt>` for Code.
9904 * Man writer: Escape `-` as `\-`.
9905 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
9906 signs. That is preferable for use with command-line options. See
9907 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
9908 to Andrea Bolognani for bringing the issue to our attention.
9910 * RST writer:
9912 + Improved line block output. Use nonbreaking spaces for
9913 initial indent (otherwise lost in HTML and LaTeX).
9914 Allow multiple paragraphs in a single line block.
9915 Allow soft breaks w continuations in line blocks.
9916 + Properly handle images with no alt text. Closes #678.
9917 + Fixed bug with links with duplicate text. We now (a) use anonymous
9918 links for links with inline URLs, and (b) use an inline link instead
9919 of a reference link if the reference link would require a label that
9920 has already been used for a different link. Closes #511.
9921 + Fixed hyperlinked images. Closes #611. Use `:target:`
9922 field when you have a simple linked image.
9923 + Don't add `:align: center` to figures.
9925 * Texinfo writer: Fixed internal cross-references.
9926 Now we insert anchors after each header, and use `@ref` instead of `@uref`
9927 for links. Commas are now escaped as `@comma{}` only when needed;
9928 previously all commas were escaped. (This change is needed, in part,
9929 because `@ref` commands must be followed by a real comma or period.) Also
9930 insert a blank line in from of `@verbatim` environments.
9932 * DocBook writer:
9934 + Made --id-prefix work in DocBook as well as HTML.
9935 Closes #607.
9936 + Don't include empty captions in figures. Closes #581.
9938 * LaTeX writer:
9940 + Use `\hspace*` for nonbreaking space after line break,
9941 since `~` spaces after a line break are just ignored.
9942 Closes #687.
9943 + Don't escape `_` in URLs or hyperref identifiers.
9944 + Properly escape strings inside \url{}. Closes #576.
9945 + Use `[fragile]` only for slides containing code rendered
9946 using listings. Closes #649.
9947 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
9948 highlighting-kate's macros, which redefine `|` as a short verbatim
9949 delimiter. Thanks to Björn Peemöller for raising this issue.
9950 + Use minipage rather than parbox for block containers in tables.
9951 This allows verbatim code to be included in grid tables.
9952 Closes #663.
9953 + Prevent paragraphs containing only linebreaks or spaces.
9955 * HTML writer:
9957 + Included `highlighting-css` for code spans, too.
9958 Previously it was only included if used in a code block. Closes #653.
9959 + Improved line breaks with `<dd>` tags. We now put a newline between
9960 `</dd>` and `<dd>` when there are multiple definitions.
9961 + Changed mathjax cdn url so it doesn't use https. (This caused
9962 problems when used with `--self-contained`.) See #609.
9964 * EPUB writer:
9966 + `--number-sections` now works properly.
9967 + Don't strip meta and link elements in epub metadata.
9968 Patch from aberrancy. Closes #589.
9969 + Fixed a couple validation bugs.
9970 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
9971 of chapters in some readers, which apparently sort ch2 after ch10.
9972 Closes #610.
9974 * ODT writer: properly set title property (Arlo O'Keeffe).
9976 * Docx writer:
9978 + Fixed bug with nested lists. Previously a list like
9980 1. one
9981 - a
9982 - b
9983 2. two
9985 would come out with a bullet instead of "2."
9986 Thanks to Russell Allen for reporting the bug.
9987 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
9988 This seems to fix a problem viewing pandoc-generated
9989 docx files in LibreOffice.
9990 + Use integer ids for bookmarks. Closes #626.
9991 + Added nsid to abstractNum elements. This helps when merging
9992 word documents with numbered or bulleted lists. Closes #627.
9993 + Use separate footnotes.xml for notes.
9994 This seems to help LibreOffice convert the file, even though
9995 it was valid docx before. Closes #637.
9996 + Use rIdNN identifiers for r:embed in images.
9997 + Avoid reading image files again when we've already processed them.
9998 + Fixed typo in `referenc.docx` that prevented image captions from
9999 working. Thanks to Huashan Chen.
10001 * `Text.Pandoc.Parsing`:
10003 + Fixed bug in `withRaw`, which didn't correctly handle the case
10004 where nothing is parsed.
10005 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
10006 though it still doesn't implement quoted strings in email addresses.
10007 + Revised URI parser. It now allows many more schemes, allows
10008 uppercase URIs, and better handles trailing punctuation and
10009 trailing slashes in bare URIs. Added many tests.
10010 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
10011 etc. parse properly. Formerly we had some English-centric heuristics,
10012 but they are no longer needed. Closes #698.
10014 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
10015 This fixes bug with Chinese commas in markdown and reST tables, and
10016 a bug that caused combining characters to be dropped.
10018 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
10020 * `Text.Pandoc.Biblio`:
10022 + Run `mvPunc` and `deNote` on metadata too.
10023 This fixed a bug with notes on titles using footnote styles.
10024 + Fixed bug in fetching CSL files from CSL data directory.
10026 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
10027 is provided. It should be the URL up to the path.
10029 * Fixed/simplified diff output for tests.
10030 Biblio: Make sure mvPunc and deNote run on metadata too.
10031 This fixed a bug with notes on titles using footnote styles.
10033 [under the hood improvements]
10035 * We no longer depend on `utf8-string`. Instead we use functions
10036 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
10038 * Use `safeRead` instead of using `reads` directly (various modules).
10040 * "Implicit figures" (images alone in a paragraph) are now handled
10041 differently. The markdown reader gives their titles the prefix `fig:`; the
10042 writers look for this before treating the image as a figure. Though this
10043 is a bit of a hack, it has two advantages: (i) implicit figures can be
10044 limited to the markdown reader, and (ii) they can be deactivated by turning
10045 off the `implicit_figures` extension.
10047 * `catch` from `Control.Exception` is now used instead of the
10048 old Preface `catch`.
10050 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
10051 and `oneOfStrings` (which is now non-backtracking).
10053 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
10054 Now citeproc-hs is fixed upstream, so this is no longer needed.
10055 Closes #531.
10057 * Textile reader: Improved speed of `hyphenedWords`.
10058 This speeds up the textile reader by about a factor of 4.
10060 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
10061 better performance, and automatic normalization.
10063 * Major rewrite of markdown reader:
10065 + Use `Text.Pandoc.Builder` instead of lists. This also
10066 means that everything is normalized automatically.
10067 + Move to a one-pass parsing strategy, returning values in the reader
10068 monad, which are then run (at the end of parsing) against the final
10069 parser state.
10071 * In HTML writer, we now use `toHtml` instead of pre-escaping.
10072 We work around the problem that blaze-html unnecessarily escapes `'`
10073 by pre-escaping just the `'` characters, instead of the whole string.
10074 If blaze-html later stops escaping `'` characters, we can simplify
10075 `strToHtml` to `toHtml`. Closes #629.
10077 * Moved code for embedding images in RTFs from `pandoc.hs` to the
10078 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
10080 * Moved citation processing from `pandoc.hs` into the readers.
10081 This makes things more convenient for library users.
10083 * The man pages are now built by an executable `make-pandoc-man-pages`,
10084 which has its own stanza in the cabal file so that dependencies can be
10085 handled by Cabal. Special treatment in `Setup.hs` ensures that this
10086 executable never gets installed; it is only used to create the man pages.
10088 * The cabal file has been modified so that the pandoc library is used
10089 in building the pandoc executable. (This required moving `pandoc.hs`
10090 from `src` to `.`.) This cuts compile time in half.
10092 * `-O2` is no longer used in building pandoc. The performance improvement
10093 it yields is so slight that it is not worth it. (Measured with
10094 benchmarks on ghc 7.4.)
10096 * The `executable` and `library` flags have been removed.
10098 * `-threaded` has been removed from ghc-options.
10100 * Version bounds of dependencies have been raised, and the
10101 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
10102 GHC 7.6.
10104 * We now require base >= 4.2.
10106 * Integrated the benchmark program into cabal. One can now do:
10108 cabal configure --enable-benchmarks && cabal build
10109 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
10111 The benchmark now uses README + testsuite, so benchmark results
10112 from older versions aren't comparable.
10114 * Integrated test suite with cabal.
10115 To run tests, configure with `--enable-tests`, then `cabal test`.
10116 You can specify particular tests using `--test-options='-t markdown'`.
10117 No output is shown unless tests fail. The Haskell test modules
10118 have been moved from `src/` to `tests/`.
10120 * Moved all data files and templates to the `data/` subdirectory.
10122 * Added an `embed_data_files` cabal flag. This causes all
10123 data files to be embedded in the binary, so that the binary
10124 is self-sufficient and can be relocated anywhere, copied on
10125 a USB key, etc. The Windows installer now uses this.
10126 (Since we no longer have the option to build the executable
10127 without the library, this is the only way to get a relocatable
10128 binary on Windows.)
10130 * Removed pcre3.dll from windows package.
10131 It isn't needed unless highlighting-kate is compilled with the
10132 `pcre-light` flag. By default, regex-prce-builtin is used.
10135pandoc (1.9.4.2)
10137 * Don't encode/decode file paths if base >= 4.4.
10138 Prior to base 4.4, filepaths and command line arguments were treated
10139 as unencoded lists of bytes, not unicode strings, so we had to work
10140 around that by encoding and decoding them. This commit adds CPP
10141 checks for the base version that intelligibly enable encoding/decoding
10142 when needed. Fixes a bug with multilingual filenames when pandoc was
10143 compiled with ghc 7.4 (#540).
10145 * Don't generate an empty H1 after hrule slide breaks.
10146 We now use a slide-level header with contents `[Str "\0"]` to mark
10147 an hrule break. This avoids creation of an empty H1 in these
10148 contexts. Closes #484.
10150 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
10152 * In make_osx_package.sh, ensure citeproc-hs is built with the
10153 embed_data_files flag.
10155 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
10157 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
10158 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
10160 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
10161 Closes #535.
10163 * Added webm to mime types. Closes #543.
10165 * Added some missing exports and tests to the cabal file
10166 (Alexander V Vershilov).
10168 * Compile with `-rtsopts` and `-threaded` by default.
10170pandoc (1.9.4.1)
10172 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
10174 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
10175 variables. Make TOC links black.
10177 * LaTeX template improvements.
10179 + Don't print date unless one is given explicitly in the document.
10180 + Simplified templates.
10181 + Use fontenc [T1] by default, and lmodern.
10182 + Use microtype if available.
10184 * Biblio:
10186 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
10187 Motivation: `@item1 [50]` should be as close as possible to
10188 `[@item1, 50]`.
10189 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
10190 beginning with a citation to be empty. Closes #531.
10192 * Fixed documentation on mixed lists. Closes #533.
10194pandoc (1.9.4)
10196 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
10197 footnotes and captions. We now handle note citations by inserting
10198 footnotes during initial citation processing, and doing a separate
10199 pass later to remove notes inside notes.
10201 * Added 'zenburn' highlight style from highlighting-kate.
10203 * Added Slideous writer. Slideous is an HTML + javascript slide show
10204 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
10206 * LaTeX writer:
10208 + Ensure we don't have extra blank lines at ends of cells.
10209 This can cause LaTeX errors, as they are interpreted as new paragraphs.
10210 + More consistent interblock spacing.
10211 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
10212 code in LaTeX. Closes #527.
10213 + Ensure that a Verbatim at the end of a footnote is followed by
10214 a newline. (Fixes a regression in the previous version.)
10215 + In default template, use black for internal links and TOC.
10216 Added commented-out code to use footnotes for links, as would
10217 be suitable in print output.
10219 * Beamer writer: When `--incremental` is used, lists inside
10220 a block quote should appear all at once. (This makes Beamer
10221 output consistent with the HTML slide show formats.)
10223 * ConTeXt writer:
10225 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
10226 to avoid gobbling spaces after the `%` sign.
10227 + Ensure space after `\stopformula`.
10229 * Markdown writer:
10231 + Use `:` form instead of `~` in definition lists, for better
10232 compatibility with other markdown implementations.
10233 + Don't wrap the term, because it breaks definition lists.
10234 + Use a nonzero space to prevent false recognition
10235 of list marker in ordered lists. Closes #516.
10237 * Org writer: Add space before language name. Closes #523.
10239 * Docx writer: Simplified bullet characters so they work properly
10240 with Word 2007. Closes #520.
10242 * LaTeX reader: Support `\centerline`.
10244 * RST reader: handle figures. Closes #522.
10246 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
10247 (Paul Rivier)
10249pandoc (1.9.3)
10251 * Fixed bug in `fromEntities`. The previous version would turn
10252 `hi & low you know;` into `hi &`.
10254 * HTML reader:
10256 + Don't skip nonbreaking spaces.
10257 Previously a paragraph containing just `&nbsp;` would be rendered
10258 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
10259 + Support `<col>` and `<caption>` in tables. Closes #486.
10261 * Markdown reader:
10263 + Don't recognize references inside delimited code blocks.
10264 + Allow list items to begin with lists.
10266 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
10268 * LaTeX reader:
10270 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
10271 + Control sequences can't be followed by a letter.
10272 This fixes a bug where `\begingroup` was parsed as `\begin`
10273 followed by `group`.
10274 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
10275 + Make `\label` and `\ref` sensitive to `--parse-raw`.
10276 If `--parse-raw` is selected, these will be parsed as raw latex
10277 inlines, rather than bracketed text.
10278 + Don't crash on unknown block commands (like `\vspace{10pt}`)
10279 inside `\author`; just skip them. Closes #505.
10281 * Textile reader:
10283 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
10284 + Added support for LaTeX blocks and inlines (Paul Rivier).
10285 + Better conformance to RedCloth inline parsing (Paul Rivier).
10286 + Parse '+text+' as emphasized (should be underlined, but this
10287 is better than leaving literal plus characters in the output.
10289 * Docx writer: Fixed multi-paragraph list items. Previously they each
10290 got a list marker. Closes #457.
10292 * LaTeX writer:
10294 + Added `--no-tex-ligatures` option to avoid replacing
10295 quotation marks and dashes with TeX ligatures.
10296 + Use `fixltx2e` package to provide '\textsubscript'.
10297 + Improve spacing around LaTeX block environments:
10298 quote, verbatim, itemize, description, enumerate.
10299 Closes #502.
10300 + Use blue instead of pink for URL links in latex/pdf output.
10302 * ConTeXt writer: Fixed escaping of `%`.
10303 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
10304 Inside URLs, `%` needs to be escaped as `\%`
10305 Thanks to jmarca and adityam for the fix. Closes #492.
10307 * Texinfo writer: Escape special characters in node titles.
10308 This fixes a problem pointed out by Joost Kremers. Pandoc used
10309 to escape an '@' in a chapter title, but not in the corresponding
10310 node title, leading to invalid texinfo.
10312 * Fixed document encoding in texinfo template.
10313 Resolves Debian Bug #667816.
10315 * Markdown writer:
10317 + Don't force delimited code blocks to be flush left.
10318 Fixes bug with delimited code blocks inside lists etc.
10319 + Escape `<` and `$`.
10321 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
10322 Previously we used `\href{\#ident}{text}`, which didn't work on
10323 all systems. Thanks to Dirk Laurie.
10325 * RST writer: Don't wrap link references. Closes #487.
10327 * Updated to use latest versions of blaze-html, mtl.
10330pandoc (1.9.2)
10332 * LaTeX reader:
10334 + Made `lstlisting` work as a proper verbatim environment.
10335 + Fixed bug parsing LaTeX tables with one column.
10337 * LaTeX writer:
10339 + Use `{}` around `ctable` caption, so that formatting can be used.
10340 + Don't require eurosym package unless document has a €.
10342 * LaTeX template: Added variables for `geometry`, `romanfont`,
10343 `sansfont`, `mathfont`, `mainfont` so users can more easily
10344 customize fonts.
10346 * PDF writer:
10348 + Run latex engine at least two times, to ensure
10349 that PDFs will have hyperlinked bookmarks.
10350 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
10352 * Texinfo writer: retain directories in image paths. (Peter Wang)
10354 * RST writer: Better handling of inline formatting, in accord
10355 with docutils' "inline markup recognition rules" (though we don't
10356 implement the unicode rules fully). Now `hi*there*hi` gets
10357 rendered properly as `hi\ *there*\ hi`, and unnecessary
10358 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
10360 * RST reader:
10362 + Parse `\ ` as null, not escaped space.
10363 + Allow `` :math:`...` `` even when not followed by blank
10364 or `\`. This does not implement the complex rule docutils follows,
10365 but it should be good enough for most purposes.
10366 + Add support for the rST default-role directive. (Greg Maslov)
10368 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
10369 (Greg Maslov)
10371 * Markdown reader: Properly handle citations nested in other inline
10372 elements.
10374 * Markdown writer: don't replace empty alt in image with "image".
10376 * DZSlides: Updated template.html and styles in default template.
10377 Removed bizarre CSS for `q` in dzslides template.
10379 * Avoid repeated `id` attribute in section and header in HTML slides.
10381 * README improvements: new instructions on internal links,
10382 removed misleading note on reST math.
10384 * Build system:
10386 + Fixed Windows installer so that dzslides works.
10387 + Removed stripansi.sh.
10388 + Added .travis.yml for Travis continuous integration support..
10389 + Fixed upper bound for zlib (Sergei Trofimovich).
10390 + Fixed upper bound for test-framework.
10391 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
10393pandoc (1.9.1.2)
10395 * Added `beamer+lhs` as output format.
10397 * Don't escape `<` in `<style>` tags with `--self-contained`.
10398 This fixes a bug which prevented highlighting from working
10399 when using `--self-contained`.
10401 * PDF: run latex engine three times if `--toc` specified.
10402 This fixes page numbers in the table of contents.
10404 * Docx writer: Added TableNormal style to tables.
10406 * LaTeX math environment fixes. `aligned` is now used instead of
10407 the nonexistent `aligned*`. `multline` instead of the nonexistent
10408 `multiline`.
10410 * LaTeX writer: Use `\textasciitilde` for literal `~`.
10412 * HTML writer: Don't escape contents of EQ tags with --gladtex.
10413 This fixes a regression from 1.8.
10415 * Use `<q>` tags for Quoted items for HTML5 output.
10416 The quote style can be changed by modifying the template
10417 or including a css file. A default quote style is included.
10419 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
10420 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
10422 * Updated LaTeX template for better language support.
10423 Use `polyglossia` instead of `babel` with xetex.
10424 Set `lang` as documentclass option.
10425 `\setmainlanguage` will use the last of a comma-separated
10426 list of languages. Thanks to François Gannaz.
10428 * Fixed default LaTeX template so `\euro` and `€` work. The
10429 `eurosym` package is needed if you are using pdflatex.
10431 * Fixed escaping of period in man writer (thanks to Michael Thompson).
10433 * Fixed list label positions in beamer.
10435 * Set `mainlang` variable in context writer.
10436 This parallels behavior of latex writer. `mainlang` is the last
10437 of a comma-separated list of languages in lang.
10439 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
10441 * Changed `-V` so that you can specify a key without a value.
10442 Such keys get the value `true`.
10444 * Fixed permissions on installed man pages - thanks Magnus Therning.
10446 * Windows installer: require XP or higher. The installer is
10447 now compiled on a Windows 7 machine, which fixes a problem
10448 using citation functions on Windows 7.
10450 * OSX package: Check for 64-bit Intel CPU before installing.
10452pandoc (1.9.1.1)
10454 * Better handling of raw latex environments in markdown. Now
10456 \begin{equation}
10457 a_1
10458 \end{equation}
10460 turns into a raw latex block as expected.
10462 * Improvements to LaTeX reader:
10464 + Skip options after block commands.
10465 + Correctly handle `{\\}` in braced.
10466 + Added a needed 'try'.
10467 + Citations: add `, ` to suffix if it doesn't start with space or
10468 punctuation. Otherwise we get no space between the year and the
10469 suffix in author-date styles.
10471 * Added two needed data files for S5. This fixes a problem with
10472 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
10473 which was no longer being used.
10475 * Fixed some minor problems in `reference.docx`:
10476 name on "Date" style, `xCs` instead of `xIs`.
10478 * Fixed a problem creating docx files using a reference docx
10479 modified using Word. The problem seems to be that Word
10480 modifies `_rels/.rels`, changing the Type of the Relationship to
10481 `docProps/core.xml`. Pandoc now changes this back to the correct
10482 value if it has been altered, fixing the problem.
10484 * Fixed html5 template so it works properly with highlighting.
10486pandoc (1.9.1)
10488 * LaTeX reader:
10490 + Fixed regression in 1.9; properly handle escaped $ in latex math.
10491 + Put LaTeX verse environments in blockquotes.
10493 * Markdown reader:
10495 + Limit nesting of strong/emph. This avoids exponential lookahead
10496 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
10497 + Improved attributes syntax (inn code blocks/spans):
10498 (1) Attributes can contain line breaks. (2) Values in key-value
10499 attributes can be surrounded by either double or single quotes, or
10500 left unquoted if they contain no spaces.
10502 * Don't wrap headers in markdown or RST writers.
10504 * Added `stateMaxNestingLevel` to `ParserState`.
10505 We set this to 6, so you can still have `Emph` inside `Emph`,
10506 just not indefinitely.
10508 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
10510 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
10511 is present.
10513 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
10515pandoc (1.9.0.5)
10517 * Changed cabal file so that build-depends for the test program
10518 are not required unless the tests flag is used.
10520 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
10521 form ligatures (dashes) in code spans.
10523pandoc (1.9.0.4)
10525 * Raised version bound on test-framework to avoid problems
10526 compiling tests on GHC 7.4.1.
10528 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
10529 so citations don't just disappear unless you process with
10530 citeproc. Ignore `\bibliographystyle`, `\nocite`.
10532 * Simplified tex2pdf; it will always run latex twice to
10533 resolve table of contents and hyperrefs.
10535pandoc (1.9.0.3)
10537 * Require Cabal >= 1.10.
10538 * Tweaked cabal file to meet Cabal 1.10 requirements.
10540pandoc (1.9.0.2)
10542 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
10543 ghc 6.12.
10545pandoc (1.9)
10547 [new features]
10549 * Added a Microsoft Word `docx` writer. The writer includes support
10550 for highlighted code and for math (which is converted from TeX to OMML,
10551 Office's native math markup language, using texmath's new OMML module).
10552 A new option `--reference-docx` allows the user to customize the
10553 styles.
10555 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
10557 * Better support for slide shows:
10559 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
10560 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
10562 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
10563 slide presentations.
10565 + New, flexible rules for dividing documents into sections and slides
10566 (see the "Structuring the slide show" in the User's Guide). These
10567 are backward-compatible with the old rules, but they allow slide
10568 shows to be organized into sections and subsections containing
10569 multiple slides.
10571 + A new `--slide-level` option allows users to override defaults
10572 and select a slide level below the first header level with content.
10574 * A new `--self-contained` option produces HTML output that does not
10575 depend on an internet connection or the presence of any external
10576 files. Linked images, CSS, and javascript is downloaded (or fetched
10577 locally) and encoded in `data:` URIs. This is useful for making portable
10578 `HTML slide shows. The --offline` option has been deprecated and is now
10579 `treated as a synonym or --self-contained`.
10581 * Support for PDF output:
10583 + Removed the old `markdown2pdf`.
10584 + `pandoc` can now create PDFs (assuming you have latex and a set of
10585 appropriate packages installed): just specify an output file with the
10586 `.pdf` extension.
10587 + A new option `--latex-engine` allows you to specify `pdflatex`,
10588 `xelatex`, or `lualatex` as the processor.
10590 * Highlighting changes:
10592 + Syntax highlighting is now a standard feature; the `highlighting`
10593 flag is no longer needed when compiling.
10594 + A new `--no-highlight` option allows highlighting to be disabled.
10595 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
10596 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
10597 + A new `--highlight-style` option selects between various highlighting
10598 color themes.
10600 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
10602 * LaTeX `\include` and `\usepackage` commands are now processed,
10603 provided the files are in the working directory.
10605 * EPUB improvements:
10607 + Internal and external links now work in EPUB.
10608 + Raw HTML is allowed.
10609 + New `--epub-embed-font` option.
10610 + Customizable templates for EPUB pages offer more control over
10611 formatting: `epub-page.html`, `epub-coverimage.html`,
10612 `epub-titlepage.html`.
10614 * `--mathml` now works with DocBook.
10616 * Added support for math in RST reader and writer. Inline math uses the
10617 `` :math:`...` `` construct. Display math uses
10619 .. math:: ...
10621 or if the math is multiline,
10623 .. math::
10625 ...
10627 These constructions are now supported now by `rst2latex.py`.
10629 * GitHub syntax for fenced code blocks is supported in pandoc's
10630 markdown. You can now write
10632 ```ruby
10633 x = 2
10634 ```
10636 instead of
10638 ~~~ {.ruby}
10639 x = 2
10640 ~~~~
10642 * Easier scripting: a new `toJsonFilter` function makes it easier to
10643 write Haskell scripts to manipulate the Pandoc AST.
10645 [behavior changes]
10647 * Fixed parsing of consecutive lists in markdown.
10648 Pandoc previously behaved like Markdown.pl for consecutive
10649 lists of different styles. Thus, the following would be parsed
10650 as a single ordered list, rather than an ordered list followed
10651 by an unordered list:
10653 1. one
10654 2. two
10656 - one
10657 - two
10659 This change makes pandoc behave more sensibly, parsing this as
10660 two lists. Any change in list type (ordered/unordered) or in
10661 list number style will trigger a new list. Thus, the following
10662 will also be parsed as two lists:
10664 1. one
10665 2. two
10667 a. one
10668 b. two
10670 Since we regard this as a bug in Markdown.pl, and not something
10671 anyone would ever rely on, we do not preserve the old behavior
10672 even when `--strict` is selected.
10674 * Dashes work differently with `--smart`: `---` is always em-dash,
10675 and `--` is always en-dash. Pandoc no longer tries to guess when
10676 `-` should be en-dash. *Note:* This may change how existing documents
10677 look when processed with pandoc. A new option, `--old-dashes`,
10678 is provided for legacy documents.
10680 * The markdown writer now uses setext headers for levels 1-2.
10681 The old behavior (ATX headers for all levels) can be restored
10682 using the new `--atx-headers` option.
10684 * Links are now allowed in markdown image captions. They are also
10685 allowed in links, but will appear there as regular text. So,
10687 [link with [link](/url)](/url)
10689 will turn into
10691 <p><a href="/url">link with link</a></p>
10693 * Improved handling of citations using `citeproc-hs-0.3.4`.
10694 Added `--citation-abbreviations` option.
10696 * Citation keys can no longer end with a punctuation character.
10697 This means that `@item1.` will be parsed as a citation with key
10698 'item1', followed by a period, instead of a citation with key
10699 'item1.', as was the case previously.
10701 * In HTML output, citations are now put in a span with class `citation`.
10703 * The markdown reader now recognizes DocBook block and inline tags.
10704 It was always possible to include raw DocBook tags in a markdown
10705 document, but now pandoc will be able to distinguish block from
10706 inline tags and behave accordingly. Thus, for example,
10708 <sidebar>
10709 hello
10710 </sidebar>
10712 will not be wrapped in `<para>` tags.
10714 * The LaTeX parser has been completely rewritten; it is now much more
10715 accurate, robust, and extensible. However, there are two important
10716 changes in how it treats unknown LaTeX. (1) Previously, unknown
10717 environments became BlockQuote elements; now, they are treated
10718 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
10719 same as `xyz`. (2) Previously, arguments of unknown commands
10720 were passed through with their braces; now the braces are stripped
10721 off.
10723 * `--smart` is no longer selected automatically with `man` output.
10725 * The deprecated `--xetex` option has been removed.
10727 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
10728 instead. `html5` and `html5+lhs` are now separate output formats.
10730 * Single quotes are no longer escaped in HTML output. They do not
10731 need to be escaped outside of attributes.
10733 * Pandoc will no longer transform leading newlines in code
10734 blocks to `<br/>` tags.
10736 * The ODT writer now sizes images appropriately, using the image
10737 size and DPI information embedded in the image.
10739 * `--standalone` is once again implicitly for a non-text output format
10740 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
10741 and get a standalone ODT file.
10743 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
10744 `<section>`.
10746 * The HTML writer now uses `<del>` for strikeout.
10748 * In HTML output with `--section-divs`, the classes `section` and
10749 `level[1,2,..6]` are put on the `div` tags so they can be styled.
10750 In HTML 5 output with `--section-divs`, the classes
10751 `level[1,2,...6]` are put on `section` tags.
10753 * EPUB writer changes:
10755 + The `lang` variable now sets the language
10756 in the metadata (if it is not set, we default to the locale).
10757 + EPUB: UTF-8 is used rather than decimal entities.
10759 * Added `titleslide` class to title slide in S5 template.
10761 * In HTML, EPUB, and docx metadata, the date is normalized into
10762 YYYY-MM-DD format if possible. (This is required for validation.)
10764 * Attributes in highlighted code blocks are now preserved in HTML.
10765 The container element will have the classes, id, and key-value attributes
10766 you specified in the delimited code block. Previously these were stripped
10767 off.
10769 * The reference backlink in the HTML writer no longer has a special
10770 `footnoteBacklink` class.
10772 * The HTML template has been split into `html` and `html5` templates.
10774 * Author and date are treated more consistently in HTML templates.
10775 Authors are now `<h2>`, date `<h3>`.
10777 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
10779 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
10781 [bug fixes]
10783 * Better support for combining characters and East Asian wide characters
10784 in markdown and reST.
10786 * Better handling of single quotes with `--smart`.
10787 Previously `D'oh l'*aide*` would be parsed with left and right single
10788 quotes instead of apostrophes. This kind of error is now fixed.
10790 * Highlighting: Use `reads` instead of `read` for better error handling.
10791 Fixes crash on `startNum="abc"`.
10793 * Added blank comment after directives in rst template.
10795 * Unescape entities in citation `refId`. The `refId`s coming
10796 from citeproc contain XML numeric entities, and these don't match with the
10797 citation keys parsed by pandoc. Solution is to unescape them.
10799 * HTML reader: Fixed bug parsing tables with both thead and tbody.
10801 * Markdown reader:
10803 + Better handling of escapes in link URLs and titles.
10804 + Fixed backslash escapes in reference links.
10805 + Fixed bug in table/hrule parsing, by checking that the top
10806 line of a table is not followed by a blank line. This bug caused
10807 slowdowns on some files with hrules and tables, as pandoc tried to
10808 interpret the hrules as the tops of multiline tables.
10809 + Fixed bug in code block attribute parser. Previously the ID attribute
10810 got lost if it didn't come first. Now attributes can come in any order.
10812 * RST reader: allow footnotes followed by newline without space characters.
10814 * LaTeX reader:
10816 + Ignore empty groups {}, { }.
10817 + LaTeX reader: Handle \@.
10818 + LaTeX reader: Don't crash on commands like `\itemsep`.
10819 + LaTeX reader: Better handling of letter environments.
10821 * RST writer: Fixed bug involving empty table cells. isSimple was being
10822 calculated in a way that assumed there were no non-empty cells.
10824 * ConTeXt writer:
10826 + Made `--toc` work even without `--number-sections`.
10827 + Escape # in link URLs.
10828 + Use buffering for footnotes containing code blocks.
10829 + Changed 'descr' to 'description', fixed alignment.
10831 * LaTeX writer:
10833 + Escape euro character.
10834 + Don't escape ~ inside href{...}.
10835 + Escape # in href URLs.
10836 + Improved detection of book classes. We now check the
10837 `documentclass` variable, and if that is not set, we look through
10838 the template itself. Also, we have added the KOMA classes scrreprt
10839 and scrbook. You can now make a book using
10840 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
10841 + LHS files now set the "listings" variable, so that the definition
10842 of the `code` environment will be included in the template.
10843 + Links are colored blue by default (this can be changed by
10844 modifying `hyperref` settings in the template).
10845 + Added `lang` variable to LaTeX template.
10847 * HTML writer:
10849 + Fixed bug in HTML template with html5 and mathml.
10850 + Don't use self-closing img, br, hr tags for HTML5.
10851 + Use `<section>` for footnotes if HTML5.
10852 + Update HTML templates to use Content-Style-Type meta tag.
10853 + Use separate variables for meta-date, meta-author.
10854 This makes footnotes work in author and date fields.
10855 + Use 'vertical-align:middle' in WebTeX math for better alignment.
10857 * S5/slidy writer: Make footnotes appear on separate slide at end.
10859 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
10860 META-INF/manifest.xml for ODT files will have everything it needs, so
10861 that ODT files modified by LibreOffice can be used as `--reference-odt`.
10863 * `Text.Pandoc.Templates`: Return empty string for json template.
10865 * `Text.Pandoc.Biblio`:
10867 + Expand citations recursively inside nested inlines.
10868 + Treat `\160` as space when parsing locator and suffix.
10869 This fixes a bug with "p. 33" when `--smart` is used. Previously
10870 the whole "p. 33" would be included in the suffix, with no locator.
10871 + Put whole author-in-text citation in a Cite. Previously just the
10872 date and other info went in the Cite.
10873 + Don't add comma+space to prefix if it ends in punctuation.
10875 * Updated chicago-author-date.csl. The old version did not work
10876 properly for edited volumes with no author.
10878 * EPUB writer:
10880 + Add date to EPUB titlepage and metadata.
10881 + Added TOC identifier in EPUB page template.
10882 + Don't generate superfluous file `cover-image.jpg`.
10884 [under the hood improvements]
10886 * Modified `make_osx_package.sh` to use cabal-dev.
10887 Items are no longer installed as root.
10888 Man pages are zipped and given proper permissions.
10890 * Modified windows installer generater to use cabal-dev.
10892 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
10893 Setup.hs we now invoke 'runghc' in a way that points it to the correct
10894 package databases, instead of always falling back to the default user
10895 package db.
10897 * Updated to work with GHC 7.4.1.
10899 * Removed dependency on old-time.
10901 * Removed dependency on dlist.
10903 * New slidy directory for "self-contained."
10905 * TeXMath writer: Use unicode thin spaces for thin spaces.
10907 * Markdown citations: don't strip off initial space in locator.
10909 [API changes]
10911 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
10912 from the native `Inline` type in pandoc-types. Now we use `Str`
10913 elements with unicode.
10915 * Improvements to `Text.Pandoc.Builder`:
10917 + `Inlines` and `Blocks` are now newtypes (not synonyms for
10918 sequences).
10919 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
10920 and a new `Listable` class, which allows these to be manipulated
10921 to some extent like lists. Monoid append includes automatic
10922 normalization.
10923 + `+++` has been replaced by `<>` (mappend).
10925 * Use blaze-html instead of xhtml for HTML generation.
10926 This changes the type of `writeHtml`.
10928 * `Text.Pandoc.Shared`:
10930 + Added `warn` and `err`.
10931 + Removed `unescapeURI`, modified `escapeURI`.
10932 (See under [behavior changes], above.)
10934 * Changes in URI escaping: Previously the readers escaped URIs by
10935 converting unicode characters to octets and then percent encoding.
10936 Now unicode characters are left as they are, and `escapeURI` only
10937 percent-encodes space characters. This gives more readable
10938 URIs, and works well with modern user agents. URIs are no longer unescaped
10939 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
10941 * New module `Text.Pandoc.SelfContained`.
10943 * New module `Text.Pandoc.Docx`.
10945 * New module `Text.Pandoc.PDF`.
10947 * Added `writerBeamer` to `WriterOptions`.
10949 * Added `normalizeDate` to `Text.Pandoc.Shared`.
10951 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
10952 This is like `splitWithIndices`, but it is sensitive to distinctions
10953 between wide, combining, and regular characters.
10955 * `Text.Pandoc.Pretty`:
10957 + Added `chomp` combinator.
10958 + Added `beforeNonBreak` combinator. This allows you to include
10959 something conditionally on it being before a nonblank.
10960 Used for RST inline math.
10961 + Added `charWidth` function. All characters marked W or F in the unicode
10962 spec EastAsianWidth.txt get width 2.
10963 + Added `realLength`, based on `charWidth`. `realLength` is now
10964 used in calculating offsets.
10966 * New module `Text.Pandoc.Slides`, for common functions for breaking
10967 a document into slides.
10969 * Removed `Text.Pandoc.S5`, which is no longer needed.
10971 * Removed `Text.Pandoc.CharacterReferences`. Moved
10972 `characterReference` to `Text.Pandoc.Parsing`.
10973 `decodeCharacterReferences` is replaced by `fromEntities`
10974 in `Text.Pandoc.XML`.
10976 * Added `Text.Pandoc.ImageSize`. This is intened for use
10977 in `docx` and `odt` writers, so the size and dpi of images
10978 can be calculated.
10980 * Removed `writerAscii` in `WriterOptions`.
10982 * Added `writerHighlight` to `WriterOptions`.
10984 * Added `DZSlides` to `HTMLSlideVariant`.
10986 * `writeEPUB` has a new argument for font files to embed.
10988 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
10989 of whether we're parsing the position immediately after a regular
10990 (non-space, non-symbol) string, which is useful for distinguishing
10991 apostrophes from single quote starts.
10993 * `Text.Pandoc.Parsing`:
10995 + `escaped` now returns a `Char`.
10996 + Removed `charsInBalanced'`, added a character parser as
10997 a parameter of `charsInBalanced`. This is needed for
10998 proper handling of escapes, etc.
10999 + Added `withRaw`.
11001 * Added `toEntities` to `Text.Pandoc.XML`.
11003 * `Text.Pandoc.Readers.LaTeX`:
11005 + Export `handleIncludes`.
11006 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
11008 * Added `ToJsonFilter` class and `toJsonFilter` function to
11009 `Text.Pandoc`, deprecating the old `jsonFilter` function.
11011 * `Text.Pandoc.Highlighting`:
11013 + Removed `highlightHtml`, `defaultHighlightingCss`.
11014 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
11015 key functions from highlighting-kate.
11016 + Changed types of highlighting function. `highlight` returns a
11017 `Maybe`, not an `Either`.
11019pandoc (1.8.2.1)
11021 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
11023 * Relaxed cabal constraints for pandoc-types.
11025 * Adjusted Arbitrary instance to help avoid timeouts in tests.
11027 * Added `Tests.Writers.Markdown` to cabal file.
11029pandoc (1.8.2)
11031 * Added script to produce OS X package.
11033 * Made `templates` directory a git submodule. This should make it
11034 easier for people to revise their custom templates when the default
11035 templates change.
11037 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
11038 **Note:** If you have existing templates in `~/.pandoc/templates`, you
11039 must rename them to conform to the new scheme!
11041 * Fixed smart quotes bug, now handling `'...hi'` properly.
11043 * RST reader:
11045 + Partial support for labeled footnotes.
11046 + Improved accuracy of `simpleReferenceName` parser.
11048 * HTML reader:
11050 + Substitute correct unicode characters for
11051 characters in the 128..159 range, which are often found even in
11052 HTML that purports to be UTF-8.
11054 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
11055 to the title, after a colon and linebreak). Closes #280.
11057 * Leaner `reference.odt`.
11059 * Added unexported module `Text.Pandoc.MIME` for use in
11060 the ODT writer.
11062 * ODT writer: Construct `manifest.xml` based on archive contents.
11063 This fixes a bug in ODTs containing images. Recent versions of
11064 LibreOffice would reject these as corrupt, because `manifest.xml`
11065 did not contain a reference to the image files.
11067 * LaTeX writer:
11069 + Make verbatim environments flush to avoid spurious
11070 blank lines. Closes #277.
11071 + Use `\texttt` and escapes insntead of `\verb!...!`, which
11072 is too fragile (doesn't work in command arguments).
11073 + Use `\enquote{}` for quotes if the template includes
11074 the `csquotes` package. This provides better support for
11075 local quoting styles. (Thanks to Andreas Wagner for the idea.)
11077 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
11078 margin, preventing spurious blank lines.
11080 * Slidy writer:
11082 + Use non-minimized version of `slidy.css` with `--offline`
11083 option, so users can more easily edit it.
11084 + Also fixed a bug in the CSS that prevented proper centering
11085 of title (now reported and fixed upstream).
11087 * S5 writer:
11089 + Replaced `s5/default/slides.js.{comment,packed}` with
11090 new compressed `s5/default/slides.min.js`.
11091 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
11092 when `--offline` is specified. Using inline CSS didn't
11093 work with Chrome or Safari. This fixes offline
11094 S5 on those browsers.
11096 * HTML writer: Removed English title on footnote backlinks.
11097 This is incongrous in non-English documents.
11099 * Docbook writer:
11101 + Use CALS tables. (Some older docbook software does not work
11102 well with XHTML tables.) Closes #77.
11103 + Use `programlisting` tags (instead of `screen`) for code blocks.
11105 * `markdown2pdf`:
11107 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
11108 of `-interaction=batchmode`, which essentially just ignored errors,
11109 leading to bad results. Better to know when something is wrong.
11110 + Fixed issues with non-UTF-8 output of `pdflatex`.
11111 + Better error reporting.
11113 * `--mathjax` now takes an optional URL argument. If it is not
11114 provided, pandoc links directly to the (secure) mathjax CDN,
11115 as now recommended (thanks to dsanson).
11117 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
11118 since the LaTeX writer now produces a file that can be processed by
11119 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
11121 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
11122 to be used to create the PDF.
11124 * If a template specified with `--template` is not found, look for it
11125 in `datadir`. Also, if no extension is provided, supply one based
11126 on the writer. So now you can put your `special.latex` template in
11127 `~/.pandoc/templates`, and use it from any directory via
11128 `pandoc -t latex --template special`.
11130 * Default template improvements:
11132 + HTML: Display author and date after title.
11133 + HTML: Made table of contents more customizable. The container
11134 for the TOC is now in the template, so users can insert a header
11135 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
11136 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
11137 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
11138 hard-coding. If you want to put your slidy files in the slidy
11139 subdirectory, for example, you can do
11140 `pandoc -t slidy -V slidy-url=slidy -s`.
11141 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
11142 & writer). Closes #279.
11143 + LaTeX: Use different `hyperref` options for `xetex`, fixing
11144 problems with unicode bookmarks (thanks to CircleCode).
11145 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
11146 with `inputenc`. This covers fewer characters but is more
11147 robust with other packages, and `ucs` is unmaintained. Users
11148 who need better unicode support should use xelatex or lualatex.
11150pandoc (1.8.1.2)
11152 * Added `--epub-cover-image` option.
11154 * Documented `--biblatex` and `--natbib` options.
11156 * Allow `--section-divs` with slidy output. Resolves Issue #296.
11158 * Disallow notes within notes in reST and markdown.
11159 These previously caused infinite looping and stack overflows.
11160 For example:
11162 [^1]
11164 [^1]: See [^1]
11166 Note references are allowed in reST notes, so this isn't a full
11167 implementation of reST. That can come later. For now we need to
11168 prevent the stack overflows. Partially resolves Issue #297.
11170 * EPUB writer: Allow non-plain math methods.
11172 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
11173 `(@item1; @item2)` because the final paren was being parsed as part of
11174 the item key.
11176 * Changed URI parser so it doesn't include trailing punctuation.
11177 So, in RST, `http://google.com.` should be parsed as a link followed by a
11178 period. The parser is smart enough to recognize balanced parentheses, as
11179 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
11181 * Markdown+lhs reader: Require space after inverse bird tracks, so that
11182 HTML tags can be used freely at the left margin of a markdown+lhs document.
11183 Thanks to Conal Elliot for the suggestion.
11185 * Markdown reader:
11187 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
11188 + Fixed bug in footnote order (reported by CircleCode).
11190 * RST reader:
11191 + Fixed bug in in field lists with multi-line items at the
11192 end of the list.
11193 + Added parentheses to RST `specialChars`, so
11194 `(http://google.com)` will be parsed as a link in parens.
11195 Resolves Issue #291.
11196 + Allow `|` followed by newline in RST line block.
11198 * LaTeX reader:
11199 + Support `\dots`.
11200 + Gobble option & space after linebreak `\\[10pt]`.
11202 * Textile reader:
11203 + Make it possible to have colons after links. (qerub)
11204 + Make it possible to have colons after links. (Christoffer Sawicki)
11206 * HTML reader:
11207 + Skip spaces after `<b>`, `<emph>`, etc.
11208 + Handle tbody, thead in simple tables. Closes #274.
11209 + Implicit `Para`s instead of `Plains` in some contexts.
11211 * OpenDocument writer: Use special `First paragraph` style for
11212 first paragraph after most non-paragraph blocks. This allows users to
11213 specify e.g. that only paragraphs after the first paragraph of a block are
11214 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
11216 * LaTeX writer: use `deVerb` on table and picture captions.
11217 Otherwise LaTeX complains about `\verb` inside command argument.
11218 Thanks to bbanier for reporting the bug.
11220 * Markdown writer: Insert HTML comment btw list and indented code block.
11221 This prevents the code block from being interpreted as part of the list.
11223 * EPUB writer: Add a meta element specify the cover.
11224 Some EPUB e-readers, such as the Nook, require a meta element inside the
11225 OPF metadata block to ensure the cover image is properly displayed.
11226 (Kelsey Hightower)
11228 * HTML writer: Use embed tag for images with non-image extensions.
11229 (e.g. PDFs). Closes #264.
11231 * LaTeX writer: Improved tables.
11233 + More space between lines, top-align cells.
11234 + Use ctable package, which allows footnotes and
11235 provides additional options.
11236 + Made cell alignments work in multiline tables.
11237 + Closes #271, #272.
11239 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
11240 Also do this when copying image files into EPUBs and ODTs.
11241 Closes #263.
11243 * Changed to github issue tracker.
11245 * Added failing emph/strong markdown test case due to Perry Wagle.
11247 * Slidy improvements:
11248 + Updated to use Slidy2.
11249 + Fixed bug, unclosed div tag.
11250 + Added `duration` variable in template.
11251 Setting this activates the timer.
11252 + Use 'titlepage' instead of 'cover' for title div.
11254pandoc (1.8.1.1)
11256 * `markdown2pdf`: Removed some debugging lines accidentally included
11257 in the 1.8.1 release. With those lines, the temp directory is created
11258 in the working directory, and it is not deleted. This fix restores
11259 the original behavior.
11261pandoc (1.8.1)
11263 * Added `--ascii` option. Currently supported only in HTML writer,
11264 which it causes to use numerical entities instead of UTF-8.
11266 * EPUB writer: `--toc` now works to provide a table of contents
11267 at the beginning of each chapter.
11269 * LaTeX writer: Change figure defaults to `htbp`.
11270 This prevents "too many unprocessed floats." Resolves
11271 Issue #285.
11273 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
11274 base.
11276 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
11277 Tanimoto. Resolves Issue #286.
11279 * HTML writer: Put line breaks in section divs.
11281 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
11283pandoc (1.8.0.3)
11285 * Fixed Source-repository stanza in cabal file.
11287pandoc (1.8.0.2)
11289 * HTML writer:
11291 + Stringify alt text instead of converting to HTML.
11292 + Break lines after block elements, not inside tags.
11293 HTML output now closely resembles that of tidy. Resolves Issue #134.
11295 * Markdown reader: Fixed bug in footnote block parser (pointed out
11296 by Jesse Rosenthal). The problem arose when the blank line
11297 at the end of a footnote block contained indenting spaces.
11299 * Shared: Improved 'normalize' function so it normalizes Spaces too.
11300 In normal form, Space elements only occur to separate two non-Space
11301 elements. So, we never have [Space], or [, ..., Space].
11303 * Tests:
11305 + Improved Arbitrary instance.
11306 + Added timeout for test instances.
11308 * README:
11310 + Added section on four-space rule for lists. Resolves Issue #283.
11311 + Clarified optional arguments on math options.
11313 * markdown2pdf: Fixed bug with output file extensions.
11314 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
11315 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
11317pandoc (1.8.0.1)
11319 * Revised Interact.hs so that it works with the CPP macros
11320 in the UTF8 module.
11322 * Revised Setup.hs so that we don't call MakeManPage.hs unless
11323 the man pages are out of date.
11325pandoc (1.8)
11327 [new features]
11329 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
11330 You can now write, for example,
11332 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
11334 and, when you process your document using `pandoc`, specifying
11335 a citation style using `--csl` and a bibliography using `--bibliography`,
11336 the citation will be replaced by an appropriately formatted
11337 citation, and a list of works cited will be added to the end
11338 of the document.
11340 This means that you can switch effortlessly between different citation
11341 and bibliography styles, including footnote, numerical, and author-date
11342 formats. The bibliography can be in any of the following formats: MODS,
11343 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
11344 See the README for further details.
11346 Citations are supported in the markdown reader, using a special
11347 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
11348 (Thanks to Nathan Gass for the natbib and biblatex support.)
11350 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
11351 the `textile` reader, an almost complete implementation of the textile
11352 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
11353 Resolves Issue #51.
11355 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
11357 * New `json` reader and writer, for reading and writing a JSON
11358 representation of the native Pandoc AST. These are much faster
11359 than the `native` reader and writer, and should be used for
11360 serializing Pandoc to text. To convert between the JSON representation
11361 and native Pandoc, use `encodeJSON` and `decodeJSON` from
11362 `Text.JSON.Generic`.
11364 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
11365 to write scripts that transform a JSON-encoded pandoc document.
11366 For example:
11368 -- removelinks.hs - removes links from document
11369 import Text.Pandoc
11370 main = interact $ jsonFilter $ bottomUp removeLink
11371 where removeLink (Link xs _) = Emph xs
11372 removeLink x = x
11374 To use this to remove links while translating markdown to LaTeX:
11376 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
11378 * Attributes are now allowed in inline `Code` elements, for example:
11380 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
11382 The attribute syntax is the same as for delimited code blocks.
11383 `Code` inline has an extra argument place for attributes, just like
11384 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
11385 is compiled with highlighting support. Resolves Issue #119.
11387 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
11388 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
11389 scripts to transform Pandoc documents. Scripts can now change
11390 how each element is rendered in each output format.
11392 * You can now define LaTeX macros in markdown documents, and pandoc
11393 will apply them to TeX math. For example,
11395 \newcommand{\plus}[2]{#1 + #2}
11396 $\plus{3}{4}$
11398 yields `3+4`. Since the macros are applied in the reader, they
11399 will work in every output format, not just LaTeX.
11401 * LaTeX macros can also be used in LaTeX documents (both in math
11402 and in non-math contexts).
11404 * A new `--mathjax` option has been added for displaying
11405 math in HTML using MathJax. Resolves issue #259.
11407 * Footnotes are now supported in the RST reader. (Note, however,
11408 that unlike docutils, pandoc ignores the numeral or symbol used in
11409 the note; footnotes are put in an auto-numbered ordered list.)
11410 Resolves Issue #258.
11412 * A new `--normalize` option causes pandoc to normalize the AST
11413 before writing the document. This means that, for example,
11414 `*hi**there*` will be rendered as `<em>hithere</em>`
11415 instead of `<em>hi</em><em>there</em>`. This is not the default,
11416 because there is a significant performance penalty.
11418 * A new `--chapters` command-line option causes headers
11419 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
11420 Resolves Issue #265.
11422 * In DocBook output, `<chapter>` is now used for top-level
11423 headers if the template contains `<book>`. Resolves Issue #265.
11425 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
11426 the LaTeX writer to use the listings package for code blocks.
11427 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
11428 Millon for the markdown2pdf patch.)
11430 * `markdown2pdf` now supports `--data-dir`.
11432 * URLs in autolinks now have class "url" so they can be styled.
11434 * Improved prettyprinting in most formats. Lines will be wrapped
11435 more evenly and duplicate blank lines avoided.
11437 * New `--columns` command-line option sets the column width for
11438 line wrapping and relative width calculations for tables.
11440 * Made `--smart` work in HTML, RST, and Textile readers, as well
11441 as markdown.
11443 * Added `--html5` option for HTML5 output.
11445 * Added support for listings package in LaTeX reader
11446 (Puneeth Chaganti).
11448 * Added support for simple tables in the LaTeX reader.
11450 * Added support for simple tables in the HTML reader.
11452 * Significant performance improvements in many readers and writers.
11454 [API and program changes]
11456 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
11457 auxiliary package, `pandoc-types`. This will make it possible for other
11458 programs to supply output in Pandoc format, without depending on the whole
11459 pandoc package.
11461 * Added `Attr` field to `Code`.
11463 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
11464 `RawBlock` and `RawInline`.
11466 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
11467 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
11468 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
11470 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
11472 * `Text.Pandoc` now exports association lists `readers` and `writers`.
11474 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
11475 `readNative` can now read full pandoc documents, block lists, blocks,
11476 inline lists, or inlines. It will interpret `Str "hi"`
11477 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
11478 This should make testing easier.
11480 * Removed deprecated `-C/--custom-header` option.
11481 Use `--template` instead.
11483 * `--biblio-file` has been replaced by `--bibliography`.
11484 `--biblio-format` has been removed; pandoc now guesses the format
11485 from the file extension (see README).
11487 * pandoc will treat an argument as a URI only if it has an
11488 `http(s)` scheme. Previously pandoc would treat some
11489 Windows pathnames beginning with `C:/` as URIs.
11491 * The `--sanitize-html` option and the `stateSanitize` field in
11492 `ParserState` have been removed. Sanitization is better done in the
11493 resulting HTML using `xss-sanitize`, which is based on pandoc's
11494 sanitization, but improved.
11496 * pandoc now adds a newline to the end of its output in fragment
11497 mode (= not `--standalone`).
11499 * Added support for `lang` in `html` tag in the HTML template,
11500 so you can do `pandoc -s -V lang=es`, for example.
11502 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
11503 a boolean argument that selects between "inline" and
11504 "block" HTML.
11506 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
11507 Images are embedded in RTF output when possible (png, jpeg).
11508 Resolves Issue #275.
11510 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
11511 `pretty` package. Changed all writers that used
11512 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
11514 * Rewrote `writeNative` using the new prettyprinting module. It is
11515 now much faster. The output has been made more consistent and compressed.
11516 `writeNative` is also now sensitive to writerStandalone`, and will simply
11517 `print a block list if writerStandalone` is False.
11519 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
11520 blocks and concatenate them, so a separate module is no longer needed.
11522 * `Text.Pandoc.Shared`:
11524 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
11525 `WriterOptions`.
11526 + Added `normalize`.
11527 + Removed unneeded prettyprinting functions:
11528 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
11529 `BlockWrapper`, `wrappedBlocksToDoc`.
11530 + Made `splitBy` take a test instead of an element.
11531 + Added `findDataFile`, refactored `readDataFile`.
11532 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
11533 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
11535 * `Text.Pandoc.Readers.HTML`:
11537 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
11538 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
11539 `htmlBlockElement`, `htmlComment`
11540 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
11541 `isTextTag`
11543 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
11544 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
11545 an inline parser.
11547 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
11549 * Ellipses are no longer allowed to contain spaces.
11550 Previously we allowed '. . .', ' . . . ', etc. This caused
11551 too many complications, and removed author's flexibility in
11552 combining ellipses with spaces and periods.
11554 * Allow linebreaks in URLs (treat as spaces). Also, a string of
11555 consecutive spaces or tabs is now parsed as a single space. If you have
11556 multiple spaces in your URL, use `%20%20`.
11558 * `Text.Pandoc.Parsing`:
11560 + Removed `refsMatch`.
11561 + Hid `Key` constructor.
11562 + Removed custom `Ord` and `Eq` instances for `Key`.
11563 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
11564 + Generalized type on `readWith`.
11566 * Small change in calculation of relative widths of table columns.
11567 If the size of the header > the specified column width, use
11568 the header size as 100% for purposes of calculating
11569 relative widths of columns.
11571 * Markdown writer now uses some pandoc-specific features when `--strict`
11572 is not specified: `\` newline is used for a hard linebreak instead of
11573 two spaces then a newline. And delimited code blocks are used when
11574 there are attributes.
11576 * HTML writer: improved gladTeX output by setting ENV appropriately
11577 for display or inline math (Jonathan Daugherty).
11579 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
11581 * LaTeX reader:
11583 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
11584 + `\index{}` commands are skipped.
11586 * Added `fontsize` variable to default LaTeX template.
11587 This makes it easy to set the font size using `markdown2pdf`:
11588 `markdown2pdf -V fontsize=12pt input.txt`.
11590 * Fixed problem with strikeout in LaTeX headers when using
11591 hyperref, by adding a command to the default LaTeX template
11592 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
11593 for the fix.
11595 * The `COLUMNS` environment variable no longer has any effect.
11597 [under-the-hood improvements]
11599 * Pandoc now compiles with GHC 7. (This alone leads to a
11600 significant performance improvement, 15-20%.)
11602 * Completely rewrote HTML reader using tagsoup as a lexer. The
11603 new reader is faster and more accurate. Unlike the
11604 old reader, it does not get bogged down on some input
11605 (Issues #277, 255). And it handles namespaces in tags
11606 (Issue #274).
11608 * Replaced `escapeStringAsXML` with a faster version.
11610 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
11611 for a significant performance boost.
11613 * Improved performance of all readers by rewriting parsers.
11615 * Simplified Text.Pandoc.CharacterReferences by using
11616 entity lookup functions from TagSoup.
11618 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
11619 from `System.IO` if base >= 4.2. This gives support for
11620 windows line endings on windows.
11622 * Remove duplications in documentation by generating the
11623 pandoc man page from README, using `MakeManPage.hs`.
11625 * README now includes a full description of markdown syntax,
11626 including non-pandoc-specific parts. A new `pandoc_markdown`
11627 man page is extracted from this, so you can look up markdown
11628 syntax by doing `man pandoc_markdown`.
11630 * Completely revised test framework (with help from Nathan Gass).
11631 The new test framework is built when the `tests` Cabal flag is set. It
11632 includes the old integration tests, but also some new unit and quickcheck
11633 tests. Test output has been much improved, and you can now specify a glob
11634 pattern after `cabal test` to indicate which tests should be run;
11635 for example `cabal test citations` will run all the citation tests.
11637 * Added a shell script, `stripansi.sh`, for filtering ANSI control
11638 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
11640 * Added `Interact.hs` to make it easier to use ghci while developing.
11641 `Interact.hs` loads `ghci` from the `src` directory, specifying
11642 all the options needed to load pandoc modules (including
11643 specific package dependencies, which it gets by parsing
11644 dist/setup-config).
11646 * Added `Benchmark.hs`, testing all readers + writers using criterion.
11648 * Added `stats.sh`, to make it easier to collect and archive
11649 benchmark and lines-of-code stats.
11651 * Added upper bounds to all cabal dependencies.
11653 * Include man pages in extra-source-files. This allows users to
11654 install pandoc from the tarball without needing to build the man
11655 pages.
11657 [bug fixes]
11659 * Filenames are encoded as UTF8. Resolves Issue #252.
11661 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
11662 were just parsed literally, leading to problems in some output formats.
11663 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
11664 Resolves Issue #270.
11666 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
11667 Spaces at end of line were not being stripped properly,
11668 resulting in unintended LineBreaks.
11670 * Markdown reader:
11672 + Allow HTML comments as inline elements in markdown.
11673 So, `aaa <!-- comment --> bbb` can be a single paragraph.
11674 + Fixed superscripts with links: `^[link](/foo)^` gets
11675 recognized as a superscripted link, not an inline note followed by
11676 garbage.
11677 + Fixed regression, making markdown reference keys case-insensitive again.
11678 Resolves Issue #272.
11679 + Properly handle abbreviations (like `Mr.`) at the end of a line.
11680 + Better handling of intraword underscores, avoiding exponential
11681 slowdowns in some cases. Resolves Issue #182.
11682 + Fixed bug in alignments in tables with blank rows in the header.
11684 * RST reader:
11686 + Field lists now allow spaces in field names, and
11687 block content in field values. (Thanks to Lachlan Musicman
11688 for pointing out the bug.)
11689 + Definition list items are now always `Para` instead of
11690 `Plain`, matching behavior of `rst2xml.py`.
11691 + In image blocks, the description is parsed properly and
11692 used for the alt attribute, not also the title.
11693 + Skip blank lines at beginning of file. Resolves
11694 Debian #611328.
11696 * LaTeX reader:
11698 + Improved parsing of preamble.
11699 Previously you'd get unexpected behavior on a document that
11700 contained `\begin{document}` in, say, a verbatim block.
11701 + Allow spaces between `\begin` or `\end` and `{`.
11702 + Support `\L` and `\l`.
11703 + Skip comments inside paragraphs.
11705 * LaTeX writer:
11707 + Escape strings in `\href{..}`.
11708 + In nonsimple tables, put cells in `\parbox`.
11710 * OpenDocument writer: don't print raw TeX.
11712 * Markdown writer:
11714 + Fixed bug in `Image`. URI was getting unescaped twice!
11715 + Avoid printing extra blank lines at the end if there are
11716 no notes or references.
11718 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
11719 This avoids unwanted interpretation as an optional argument.
11721 * ConTeXt writer: Fixed problem with inline code. Previously
11722 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
11723 If it contains neither, use `\type{}`; otherwise use `\mono{}`
11724 with an escaped version of the string.
11726 * `:` now allowed in HTML tags. Resolves Issue #274.
11728pandoc (1.6)
11730 [ John MacFarlane ]
11732 * New EPUB and HTML Slidy writers. (Issue #122)
11734 - EPUB is a standard ebook format, used in Apple's iBooks for
11735 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
11736 reader, and many other devices.
11737 - Slidy, like S5, is a system for producing HTML+javascript slide
11738 shows.
11740 * All input is assumed to be UTF-8, no matter what the locale and ghc
11741 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
11742 Also, a BOM, if present, is stripped from the input.
11744 * Markdown now supports grid tables, whose cells can contain
11745 arbitrary block elements. (Issue #43)
11747 * Sequentially numbered example lists in markdown with `@` marker.
11749 * Markdown table captions can begin with a bare colon and no longer need
11750 to include the English word "table." Also, a caption can now occur
11751 either before or after the table. (Issue #227)
11753 * New command-line options:
11755 - `--epub-stylesheet` allows you to specify a CSS file that will
11756 be used to style your ebook.
11757 - `--epub-metadata` allows you to specify metadata for the ebook.
11758 - `--offline` causes the generated HTML slideshow to include all
11759 needed scripts and stylesheets.
11760 - `--webtex` causes TeX math to be converted to images using the
11761 Google Charts API (unless a different URL is specified).
11762 - `--section-divs` causes div tags to be added around each section
11763 in an HTML document. (Issue #230, 239)
11765 * Default behavior of S5 writer in standalone mode has changed:
11766 previously, it would include all needed scripts and stylesheets
11767 in the generated HTML; now, only links are included unless
11768 the `--offline` option is used.
11770 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
11771 pandoc would enclose sections in div tags with identifiers on the
11772 div tags, so that the sections can be manipulated in javascript.
11773 This caused undesirable interactions with raw HTML div tags. So,
11774 starting with 1.6, the default is to put the identifiers directly
11775 on the header tags, and not to include the divs. The `--section-divs`
11776 option selects the 1.2-1.5 behavior.
11778 * API changes:
11780 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
11781 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
11782 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
11783 `writerIncludeAfter`.
11784 - Added `headerShift` to `Text.Pandoc.Shared`.
11785 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
11786 to a new module, `Text.Pandoc.Parsing`.
11787 - Added `stateHasChapters` to `ParserState`.
11788 - Added `HTMLSlideVariant`.
11789 - Made `KeyTable` a map instead of an association list.
11790 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
11791 `docDate`).
11792 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
11793 instances.
11794 - Reference keys now have a type of their own (`Key`), with its
11795 own `Ord` instance for case-insensitive comparison.
11796 - Added `Text.Pandoc.Writers.EPUB`.
11797 - Added `Text.Pandoc.UUID`.
11798 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
11799 Removed `saveOpenDocumentAsODT`, added `writeODT`.
11800 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
11801 Removed `prettyPandoc`.
11802 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
11803 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
11804 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
11805 To write S5, you now use `writeHtml` with `writerSlideVariant`
11806 set to `S5Slides` or `SlidySlides`.
11808 * Template changes. If you use custom templates, please update them,
11809 particularly if you use syntax highlighting with pandoc. The old HTML
11810 templates hardcoded highlighting CSS that will no longer work with
11811 the most recent version of highlighting-kate.
11813 - HTML template: avoid empty meta tag if no date.
11814 - HTML template: Use default highlighting CSS from highlighting-kate
11815 instead of hard-coding the CSS into the template.
11816 - HTML template: insert-before text goes before the title, and
11817 immediately after the <body> tag, as documented. (Issue #241)
11818 - Added slidy and s5 templates.
11819 - Added amssymb to preamble of latex template. (github Issue 1)
11821 * Removed excess newlines at the end of output. Note: because output
11822 will not contain an extra newline, you may need to make adjustments
11823 if you are inserting pandoc's output into a template.
11825 * In S5 and slidy, horizontal rules now cause a new slide, so you
11826 are no longer limited to one slide per section.
11828 * Improved handling of code in man writer. Inline code is now monospace,
11829 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
11831 * HTML reader parses `<tt>` as Code. (Issue #247)
11833 * html+lhs output now contains bird tracks, even when compiled without
11834 highlighting support. (Issue #242)
11836 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
11837 since they have a special meaning in XML.
11839 * Code improvements in ODT writer. Remote images are now replaced with
11840 their alt text rather than a broken link.
11842 * LaTeX reader improvements:
11844 - Made latex `\section`, `\chapter` parsers more forgiving of
11845 whitespace.
11846 - Parse `\chapter{}` in latex.
11847 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
11848 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
11849 for use in markdown reader.
11850 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
11851 in markdown document.
11853 * LaTeX writer: images are automatically shrunk if they would extend
11854 beyond the page margin.
11856 * Plain, markdown, RST writers now use unicode for smart punctuation.
11858 * Man writer converts math to unicode when possible, as in other writers.
11860 * `markdown2pdf` can now recognize citeproc options.
11862 * Command-line arguments are converted to UTF-8. (Issue #234)
11864 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
11865 This allows it to handle a wider range of formulas. Also, if a formula
11866 cannot be converted, it is left in raw TeX; formulas are no longer
11867 partially converted.
11869 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
11870 #143)
11872 * Cabal file changes:
11874 - Removed parsec < 3 restriction.
11875 - Added 'threaded' flag for architectures where GHC lacks a threaded
11876 runtime.
11877 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
11878 - Require highlighting-kate 0.2.7.
11880 * Use explicit imports from `Data.Generics`. Otherwise we have a
11881 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
11883 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
11885pandoc (1.5.1.1)
11887 [ John MacFarlane ]
11889 * Fixed uniqueIdent in Shared so that header identifiers work as
11890 advertized in the README and are are valid XHTML names.
11892pandoc (1.5.1)
11894 [ John MacFarlane ]
11896 * Fixed treatment of unicode characters in URIs.
11897 + Shared now exports escapeURI and unescapeURI. These handle
11898 UTF8 encoding and decoding as well as URI escaping/unescaping.
11899 + Shared: uri and emailAddress now return a pair of the original
11900 parsed text and the escaped URI (in the latter case, with
11901 the mailto: prefix).
11902 + HTML reader: unsanitaryURI has been modified to allow unicode
11903 high characters in a URI.
11904 + Readers: All link and image URIs are now escaped using
11905 escapeURI.
11906 + Markdown and RST writers: unescapeURI is used so that URIs
11907 in these formats are human-readable.
11909 * Setup.hs: Don't assume that the build directory is "dist".
11910 Instead, get it from localBuildInfo.
11912 * OpenDocument writer: Use a Map for stTextStyleAttr.
11913 This avoids duplicates (and invalid xml). Resolves Issue #222.
11915pandoc (1.5.0.1)
11917 [ John MacFarlane ]
11919 * HTML writer: Fixed error in math writer (with MathML option)
11920 that caused an infinite loop for unparsable MathML.
11922pandoc (1.5)
11924 [ John MacFarlane ]
11926 * Added --mathml option. When this is selected, pandoc will convert
11927 TeX math into MathML.
11928 + Added data/MathMLinHTML.js, which is included when no URL is
11929 provided for --mathml. This allows MathML to be displayed (in
11930 better browsers) as text/html.
11931 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
11932 necessary; it was replaced by two lines in pandoc.hs.
11933 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
11934 single combined file, LaTeXMathML.js.
11936 * Added --data-dir option.
11937 This specifies a user data directory. If not specified, will default
11938 to ~/.pandoc on unix or Application Data\pandoc on Windows.
11939 Files placed in the user data directory will override system default
11940 data files.
11942 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
11943 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
11944 Nothing, no user directory is searched for an override.
11946 * Added 'plain' output format. This is similar to markdown, but
11947 removes links, pictures, inline formatting, and most anything that
11948 looks even vaguely markupish. The function writePlain is exported by
11949 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
11951 * Allow multi-line titles and authors in meta block.
11952 Titles may span multiple lines, provided continuation lines
11953 begin with a space character. Separate authors may be put on
11954 multiple lines, provided each line after the first begins with
11955 a space character. Each author must fit on one line. Multiple
11956 authors on a single line may still be separated by a semicolon.
11957 Based on a patch by Justin Bogner.
11959 * When given an absolute URI as parameter, pandoc will try to fetch
11960 the content via HTTP. So you can do:
11961 'pandoc -r html -w markdown http://www.fsf.org'
11962 Adds dependency on HTTP.
11964 * Made HTML reader much more forgiving.
11965 + Incorporated idea (from HXT) that an element can be closed
11966 by an open tag for another element.
11967 + Javascript is partially parsed to make sure that a <script>
11968 section is not closed by a </script> in a comment or string.
11969 + More lenient non-quoted attribute values.
11970 Now we accept anything but a space character, quote, or <>.
11971 This helps in parsing e.g. www.google.com!
11972 + Bare & signs are now parsed as a string. This is a common
11973 HTML mistake.
11974 + Skip a bare < in malformed HTML.
11976 * Removed html2markdown and hsmarkdown.
11977 + html2markdown is no longer needed, since you can now pass URI
11978 arguments to pandoc and directly convert web pages. (Note,
11979 however, that pandoc assumes the pages are UTF8. html2markdown
11980 made an attempt to guess the encoding and convert them.)
11981 + hsmarkdown is pointless -- a large executable that could be
11982 replaced by 'pandoc --strict'.
11984 * In most writers, an image in a paragraph by itself is now rendered
11985 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
11986 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
11987 rendered inline.
11989 * Depend on extensible-exceptions. This allows pandoc to be compiled
11990 on GHC 6.8.
11992 * Added --base-header-level option. For example, --base-header-level=2
11993 will change level 1 headers to level 2, level 2 to level 3, etc.
11994 Closes Debian #563416.
11996 * Incomplete support for RST tables (simple and grid).
11997 Thanks to Eric Kow. Colspans and rowspans not yet supported.
11999 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
12001 * MediaWiki writer: format links with relative URLs as wikilinks.
12002 The new rule: If the link target is an absolute URL, an external
12003 link is created. Otherwise, a wikilink is created.
12005 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
12006 identifier. Note: This may break links to sections that involve
12007 tildes.
12009 * Markdown(+lhs) reader: handle "inverse bird tracks."
12010 Inverse bird tracks (<) are used for haskell example code that is not
12011 part of the literate Haskell program. Resolves Issue #211.
12013 * LaTeX reader:
12014 + Recognize '\ ' (interword space).
12015 + Recognize nonbreaking space '~'.
12016 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
12017 section headers. Don't treat \section as inline LaTeX.
12018 Resolves Issue #202.
12019 + LaTeX reader: allow any special character to be escaped.
12020 Resolves Issue #221.
12021 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
12022 headers. Resolves Issue #207.
12024 * Use template variables for include-before/after.
12025 + These options now imply -s; previously they worked also in fragment
12026 mode.
12027 + Users can now adjust position of include-before and include-after
12028 text in the templates.
12029 + Default position of include-before moved back (as it was before 1.4)
12030 before table of contents.
12031 + Resolves Issue #217.
12033 * Don't print an empty table header: (all writers).
12034 Resolves Issue #210.
12036 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
12038 * HTML writer: Don't include TOC div if table of contents is empty.
12040 * Markdown writer: Fixed citations.
12041 Previously the markdown writer printed raw citation codes, e.g.
12042 [geach1970], rather than the expanded citations provided by
12043 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
12044 This means that the document produced can be processed as a markdown
12045 document without citeproc. Thanks to dsanson for reporting, and
12046 Andrea Rossato for the patch.
12048 * Improved and simplified title block in context template.
12049 Previously it caused an error if there was no title.
12050 This method should also be easier for users to customize.
12052 * Markdown reader:
12053 + Treat p., pp., sec., ch., as abbreviations in smart mode.
12054 + Disallow blank lines in inline code span.
12055 + Allow footnotes to be indented < 4 spaces.
12056 This fixes a regression. A test case has been added.
12057 + Escape spaces in URLs as %20. Previously they were incorrectly
12058 escaped as +, which is appropriate only for the query part of
12059 a URL. Resolves Issue #220.
12060 + Require two spaces after capital letter + period for list item.
12061 Otherwise "E. coli" starts a list. This might change the semantics
12062 of some existing documents, since previously the two-space
12063 requirement was only enforced when the second word started
12064 with a capital letter. But it is consistent with the existing
12065 documentation and follows the principle of least surprise.
12066 Resolves Issue #212.
12068 * LaTeX template: redefine labelwidth when using enumerate package.
12069 Otherwise the list labels (numbers) often extend past the left
12070 margin, which looks bad.
12072 * Mediawiki writer: Don't print a "== Notes ==" header before
12073 references. This is too English-centric. Writers can provide their
12074 own header at the end of the document.
12076 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
12077 level 2, etc. This seems to be correct; it's only by convention
12078 that wikipedia articles have level 2 headers at most.
12079 Patch due to Eric Kow.
12081 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
12082 data files don't need to have been installed. This removes the need to
12083 set HOME.
12085 * HTML reader:
12086 + Handle spaces before <html>. Resolves Issue #216.
12087 + Be forgiving in parsing a bare list within a list.
12088 The following is not valid xhtml, but the intent is clear:
12089 <ol>
12090 <li>one</li>
12091 <ol><li>sub</li></ol>
12092 <li>two</li>
12093 </ol>
12094 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
12096 * Updated INSTALL instructions. cabal method is now promoted.
12098 * Updated markdown2pdf man page. It no longer says all pandoc options
12099 are accepted.
12101 * README/man pages: Removed advice to pipe through tidy before HTML
12102 reader. This is obsolete, now that we have a forgiving HTML parser.
12104 * LaTeX writer: set numbersections template variable, so
12105 the section numbering options work again.
12107 * Removed obsolete Makefile.
12109 * Website: renamed index.txt.in -> index.txt.
12111 * New batch file to make-windows-installer.
12112 + Removed old Makefile.windows
12113 + Added make-windows-installer.bat
12114 + Modified default installer name in pandoc-setup.iss
12116 * Removed freebsd and macports directories.
12117 They are no longer up to date.
12119 * Setup.hs:
12120 + Made man page building sensitive to build verbosity.
12121 + Improved detection of highlighting support in test hook.
12122 + Install wrapper scripts into cabal bin directory.
12123 + Also simplified installManpages.
12124 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
12126 * Changed default of writerXeTeX to False.
12128 * HTML writer: don't include empty UL if --toc but no sections.
12129 Resolves Issue #199.
12131 * LaTeX writer:
12133 + If book, report, or memoir documentclass, use \chapter{}
12134 for first-level headers. Otherwise use \section{}.
12135 + Removed stLink, link template variable. Reason: we now always
12136 include hyperref in the template.
12138 * LaTeX template:
12140 + Only show \author if there are some.
12141 + Always include hyperref package. It is used not just for links but
12142 for toc, section heading bookmarks, footnotes, etc. Also added
12143 unicode=true on hyperref options.
12145 * markdown2pdf: always do at least two runs. hyperref bookmarks
12146 require this.
12148 * cabal file: Removed unneeded dependency on template-haskell.
12150 * Windows installer - fixed bug in data file locations.
12151 Resolves Issue #197.
12153 * Deprecated --custom-header in documentation.
12154 Removed old "Custom Headers" section in README.
12156pandoc (1.4)
12158 [ John MacFarlane ]
12160 * Pandoc will now compile with either GHC 6.10 or 6.12.
12161 + Don't use System.IO.UTF8 when compiling with 6.12
12162 + Use -fno-warn-unused-do-bind option when compiling with 6.12
12164 * Replaced old headers with templates. Now users have much more
12165 control over the way documents appear in --standalone mode,
12166 and writer code is simplified. Resolves Issues #59, 147.
12167 Every effort has been made to retain backwards compatibilty.
12168 So, the --custom-header option should still work as before.
12170 + Added Text.Pandoc.Templates. This provides functions for
12171 retrieving default templates and for rendering templates.
12172 + System templates (in the pandoc data directory) can be
12173 overridden by user templates in $HOME/.pandoc/templates.
12174 + Removed Text.Pandoc.DefaultHeaders.
12175 + Removed data/headers directory.
12176 + Added templates directory.
12177 + Added writerTemplate and writerVariables fields to WriterOptions.
12178 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
12179 + Changed --print-default-header to --print-default-template.
12180 + Added --template option.
12181 + Added -V/--variable option to set custom template variables.
12183 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
12185 + Removed need for TH in ODT module. Instead get reference.odt from
12186 data file at run time.
12187 + Removed TH dependency from S5 module. S5 module now exports
12188 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
12189 standalone.
12190 + Refactored LaTeXMathML not to use TH.
12192 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
12193 Meta [Inline] [String] String. Authors and date in Meta are now lists
12194 of Inline elements rather than raw strings. This means that they can
12195 be formatted and can include footnotes. NOTE: This may be a breaking
12196 change for those using pandoc as a library.
12198 * Added readDataFile to Text.Pandoc.Shared. This retrieves
12199 a data file from the user pandoc data directory (~/.pandoc
12200 on unix), or, if not found there, from the system data
12201 directory ($CABALDIR/shared/pandoc-VERSION/). All data
12202 files, including templates, LaTeXMathML.js, s5 styles,
12203 and reference.odt, can be overridden by the user.
12205 * s5 files moved from data/ui/default to s5/default.
12207 * Use unicode instead of entities in HTML and XML output. Resolves
12208 Issue #163.
12210 * Prettier HTML footnote references: put anchor inside sup,
12211 instead of other way. Resolves Issue #191. Thanks to
12212 infinity0x.
12214 * Added --xetex option to pandoc and markdown2pdf.
12215 If --xetex is specified, pandoc produces latex suitable for
12216 processing by xelatex, and markdown2pdf uses xelatex to create
12217 the PDF. Resolves Issue #185.
12219 * RTF writer: multiple authors now occupy multiple paragraphs rather
12220 than using a line break.
12222 * Man writer: now the "--after-body" will come after the "AUTHORS"
12223 section, whereas before it would come before it. This is a
12224 slight break from backwards compatibility.
12226 * Added --reference-odt option, so users may customize the styles
12227 used in pandoc-generated ODT files. Users may also place a
12228 default reference.odt in the ~\.pandoc directory.
12230 * ODT writer:
12231 + Indented and line-broke styles.xml so it can be modified more easily.
12232 + Omitted some unnecessary style declarations.
12233 + Don't wrap text in OpenDocument writer. The tags are too long, making
12234 wrapping ugly and pointless.
12236 * LaTeX reader: use \\ to separate multiple authors.
12238 * Markdown reader: use ; as separator between authors.
12239 This allows you to use ',' within author names: e.g. "John Jones, Jr."
12241 * S5 writer: use linebreak to separate authors in title page.
12243 * RST reader: Allow :: before lhs code block. The RST spec requires the
12244 :: before verbatim blocks. This :: should not be treated as literal
12245 colons. Resolves Issue #189.
12247 * Documented pandoc 1.3's new definition list syntax in README.
12248 (An oversight in the last release.)
12250 * markdown2pdf.hs:
12251 + interpret ! in a log as an error line.
12252 + --toc now works properly.
12254 * Changes in RunTests.hs:
12255 + Use the Diff library rather than a local copy of Diff.hs.
12256 (This vastly increases performance.) This change means that 'cabal
12257 test' presupposes that the Diff library is installed.
12258 + Removed tests/Diff.hs from cabal file.
12259 + Changed RunTests to use local environment. We need at least HOME, so
12260 pandoc can find its data directory.
12262 * Updated windows installer to install data files in the app directory.
12264 * Windows installer now installs portable wrappers hsmarkdown and
12265 markdown2pdf.
12267pandoc (1.3)
12269 [ John MacFarlane ]
12271 * Added --id-prefix option (Issue #41). This adds a prefix to all
12272 automatically generated HTML identifiers, which helps prevent
12273 duplicate identifiers when you're generating a fragment (say a blog
12274 post).
12276 * Added --indented-code-classes option. This specifies classes
12277 to use for indented code blocks. (Patch due to buttock; Issue #87.)
12279 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
12280 (Issue #150).
12282 * Improved syntax for markdown definition lists (Issue #24).
12283 Definition lists are now more compatible with PHP Markdown Extra.
12284 + You can have multiple definitions for a term (but still not
12285 multiple terms).
12286 + Multi-block definitions no longer need a column before each block
12287 (indeed, this will now cause multiple definitions).
12288 + The marker no longer needs to be flush with the left margin,
12289 but can be indented at or two spaces. Also, ~ as well as :
12290 can be used as the marker (this suggestion due to David
12291 Wheeler.)
12292 + There can now be a blank line between the term and the
12293 definitions.
12295 * Better looking simple tables. Resolves Issue #180.
12296 + Markdown reader: simple tables are now given column widths of 0.
12297 + Column width of 0 is interpreted as meaning: use default column width.
12298 + Writers now include explicit column width information only
12299 for multiline tables. (Exception: RTF writer, which requires
12300 column widths. In this case, columns are given equal widths,
12301 adding up to the text width.)
12302 + Simple tables should now look better in most output formats.
12304 * Allow markdown tables without headers (Issue #50).
12305 The new syntax is described in README. Also allow optional line of
12306 dashes at bottom of simple tables.
12308 * Compensate for width of final table column (Issue #144).
12310 * Treat a backslash followed by a newline as a hard line break
12311 in markdown. Resolves Issue #154. This is a nice alternative
12312 to markdown's "invisible" way of indicating hardline breaks
12313 using lines that end with two spaces.
12315 * Improved performance of markdown reader by ~10% by eliminating the
12316 need for a separate parsing pass for notes. Raw notes are now stored
12317 on the first pass (which parses references), then parsed when the
12318 note is inserted into the AST. The stateNotes field in ParserState
12319 is now a list of [(String, String)] pairs instead of [(String,
12320 [Block])].
12322 * In markdown reader, treat 4 or more * or _ in a row as literal
12323 text. (Trying to parse long strings of * or _ as strong or emph
12324 leads to exponential performance problems.)
12326 * Markdown reader: Use + rather than %20 for spaces in URLs.
12328 * Fixed htmlComment parser, adding a needed 'try'.
12330 * Don't print raw HTML in man output.
12332 * Allow . _ and ~ in header identifiers.
12334 * Specially mark code blocks that were "literate" in the input.
12335 They can then be treated differently in the writers. This allows
12336 authors to distinguish bits of the literate program they are writing
12337 from source code examples, even if the examples are marked as
12338 Haskell for highlighting. (Issue #174.)
12340 * Modified html+lhs output to use "haskell" highlighter instead
12341 of "literateHaskell". The highlighting module now adds bird tracks
12342 after highlighting (for HTML output), if the code block has the
12343 "literate" class. This gives better results, because kate's
12344 haskell highlighter is much better than the literateHaskell
12345 highlighter.
12347 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
12348 (Issue #137.)
12350 * Support for "..code-block" directive in RST reader. Not core
12351 RST, but used in Sphinx for code blocks annotated with syntax
12352 information. Thanks to Luke Plant for the patch.
12354 * Added "head" to list of block-level HTML tags. Resolves
12355 Issue #108.
12357 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
12359 * Set utf-8 encoding in texinfo headers.
12361 * Docbook writer: add ids to sections. Use link for internal links.
12362 (Issue #60.)
12364 * Blank lines after lists in MediaWiki writer.
12366 * Properly handle commented-out list items in markdown.
12367 Resolves Issue #142. Example:
12369 - a
12370 <!--
12371 - b
12372 -->
12373 - c
12375 * Changed heuristic in compactify. compactify has to decide whether a
12376 Para that ends a list is a Para intentionally, or just because of
12377 the blank lines at the end of every list. In the latter case the
12378 Para is turned to a Plain. The old heuristic was: change final Para
12379 to Plain iff the other items all end in Plain. This produces bad
12380 results when, for example, an item contains just a Plain and an HTML
12381 comment, as it does in the list above. The new heuristic: change
12382 final Para to Plain iff the other items don't contain a Para.
12384 * Added % as an rst underline character. Resolves Issue #173.
12386 * Fix inline math parser so that \$ is allowed in math.
12387 Resolves Issue #169.
12389 * Translate \int (integral) into unicode when using unicode math
12390 method. Resolves Issue #177.
12392 * markdown2pdf.hs improvements:
12393 + Use System.IO.UTF8.
12394 + Print error messages on last attempt.
12395 + Do not create a backup when overwriting a PDF (Issue #166).
12396 + Accept --longopt=val options.
12397 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
12398 it is properly cleaned.
12400 * Added haddock comments warning that readers assume \n line endings.
12402 * Updated COPYRIGHT file.
12404 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
12405 markdown2pdf. Otherwise strip tries to strip shell scripts when you
12406 install using 'make'.
12408 * Changed Makefile so it doesn't build Haskell wrappers.
12410 * Fixed Makefile so it doesn't try to build man pages in build-doc.
12412 * Install pcre3.dll in Windows install script; this allows us to
12413 package a version of pandoc with highlighting support.
12415pandoc (1.2.1)
12417 [ John MacFarlane ]
12419 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
12420 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
12421 side effect: strings of 0 spaces were interpreted as indentation.
12422 So, with --preserve-tabs, unindented paragraphs were treated as
12423 code. Resolves Issue #138.
12425 * HTML writer: wrap sections in divs. Resolves Issue #70.
12427 + hierarchicalize has been rationalized; it builds a hierarchical
12428 representation of the document from the headers, and simultaneously
12429 gives each section a unique identifier based on the heading title.
12430 + Identifiers are now attached to the divs rather than
12431 to the headers themselves.
12432 + Table of content backlinks go to the beginning of the table, rather
12433 than to the section reference that was clicked.
12434 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
12435 from the HTML writer, since it is now consumed only by
12436 hierarchicalize.
12437 + In --strict mode, pandoc just prints bare headings, as before
12438 (unless --toc has been specified).
12439 + In s5 output, it does not wrap sections in divs, as that seems to
12440 confuse the s5 javascript.
12442 * Man writer: break lines at end of each sentence. groff expects this
12443 and treats '.' and '?' differently when followed by line ending as
12444 opposed to ordinary space. Also, don't escape periods. Instead, use
12445 zero-width character \& to avoid unwanted interpretation of periods
12446 at start of line. Resolves Issue #148.
12448 * Markdown writer: Added '#' and '>' to list of characters to be
12449 escaped in markdown output. Removed '<', as it is not an officially
12450 escapable character. This partially resolves Issue #96.
12452 * Make --smart the default for man output format. Otherwise we have
12453 trouble dividing lists of endlines into sentences.
12455 * DocBook writer: Use language attribute to indicate source language
12456 in code blocks.
12458 * RST reader:
12460 + Allow # to continue list, even if the list was started with an
12461 explicit marker. For example:
12463 A. my list
12464 #. continued
12466 Resolves Issue #140.
12467 + Allow continuation lines in line blocks. Also added test cases for
12468 line blocks for RST reader. Resolves Issue #149.
12469 + Allow explicit links with spaces in URL: `link <to this>`_
12471 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
12472 (which is not in LaTeX) and recognize all the amsmath environments
12473 that are alternatives to eqnarray, namely equation, equation*,
12474 gather, gather*, gathered, multline, multline*, align, align*,
12475 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
12476 Thanks to shreevatsa.public for the patch.
12478 * Markdown reader:
12480 + Allow -, _, :, . in markdown attribute names. These are legal in
12481 XML attribute names.
12482 + Use non-breaking spaces in abbreviations.
12483 + Markdown reader: improved efficiency of abbreviation parsing.
12484 Instead of a separate abbrev parser, we just check for
12485 abbreviations each time we parse a string. This gives a huge
12486 performance boost with -S. Resolves Issue #141.
12488 * Improved efficiency of shared parsers: hexNum, htmlComment,
12489 whitespace, indentSpaces.
12491 * Export HTMLMathMethod in Text.Pandoc.
12493 * Export languagesByExtension in Text.Pandoc.Highlighting.
12495 * Added new Haskell version of markdown2pdf, due to
12496 Paulo Tanimoto. This should be more portable than the old
12497 shell script.
12499 * Made 'pandoc -v' more explicit about compiler options.
12500 Resolves Issue #139.
12502 * pandoc.hs: Made --strict compatible with --standalone, --toc.
12504 * Use Paths_pandoc to get version number, instead of hard-coding it
12505 into Text/Pandoc.hs.
12507pandoc (1.2)
12509 [ John MacFarlane ]
12511 * Added support for literate Haskell. lhs support is triggered by
12512 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
12513 Haskell LaTeX. '.lhs' files are treated by default as literate
12514 markdown.
12516 + Added stateLiterateHaskell to parser state.
12517 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
12518 + Added parser for |inline lhs| to LaTeX reader.
12519 + Added writerLiterateHaskell to WriterOptions.
12520 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
12521 + Added definition of code environment to LaTeX header.
12522 + Added tests (run only if highlighting support compiled in).
12523 + Documented lhs features in man page and README.
12525 * In Text.Pandoc.Definition, added processWith, processWithM,
12526 and queryWith, and deprecated processPandoc and queryPandoc
12527 for these more general functions.
12529 * Fixed bug in mediawiki writer: improper closing tags in tables.
12530 Thanks to Benct Philip Jonsson for reporting the bug.
12532 * Added --email-obfuscation option.
12534 + Added writer option for email obfuscation.
12535 + Implemented email obfuscation options in HTML writer.
12536 + Added option to option parser.
12537 + Documented in README and pandoc man page.
12538 + Resolves Issue #97.
12540 * LaTeX writer: fixed bug with empty table cells.
12541 Resolves Issue #107. Thanks to rodja.trappe for the patch.
12543 * Fixed bug with header spacing in Markdown and RST writers.
12544 A null header (Meta [] [] []) should not cause a blank line
12545 at the beginning of output. But a blank line is needed between
12546 a non-null header and the main text.
12548 * Markdown reader: Relax spacing rules for $$ in display math. Now
12549 space and newlines are allowed after the opening $$ and before the
12550 closing $$. However, the display math cannot contain an entirely
12551 blank line. Resolves Issue #105.
12553 * Markdown reader: Gobble space after Plain blocks containing only
12554 raw html inline. Otherwise following header blocks are not parsed
12555 correctly, since the parser sees blank space before them. Resolves
12556 Issue #124.
12558 * Markdown reader: Allow " as well as '' to end a latex double-quote.
12560 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
12561 Resolves Issue #109.
12563 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
12565 + Added hang' function to Text.Pandoc.Shared; this will be used instead
12566 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
12567 is upgraded, we can go back to hang.
12568 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
12569 + Use hang' (and some different techniques) in RST and markdown writers.
12570 Some output is now a bit different.
12572 * Brought citeproc support up to date for citeproc-hs-0.2.
12573 (Patch by Andrea Rossato.)
12575 * Moved all haskell source to src subdirectory. Renamed Main.hs to
12576 pandoc.hs.
12578 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
12579 For now, keeping the old shell script too.
12581 * Added TemplateHaskell to Extensions for executable, removed
12582 -threaded for library. Thanks to duncan.coutts for the bug report.
12583 Resolves Issue #121.
12585 * Moved some Extra-Source-Files to Data-Files.
12587 * Moved tabFilter to Shared.
12589 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
12590 preserve tabs.
12592 * Minor code cleanup based on hlint suggestions.
12594pandoc (1.1)
12596 [ John MacFarlane ]
12598 * Main.hs:
12600 + Changed date on copyright message in Main.hs.
12601 + Have the '-v' option print syntax highlighting languages
12602 separated by commas, and wrapped in lines, instead of in five
12603 columns as before.
12605 * Added --jsmath option. Resolves Issue #68.
12607 + Added --jsmath option to Main.hs
12608 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
12609 + Handle math appropriately in HTML writer when JsMath selected.
12610 + Documented the option in README and man page.
12612 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
12613 for tight and loose lists. Final Para is changed to Plain if all
12614 other list items *end* with a Plain block. Addresses Issue #99.
12616 * HTML reader:
12618 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
12619 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
12620 Added rawVerbatimBlock parser. Resolves Issue #94.
12622 * Markdown reader:
12624 + Allow URLs with spaces in them in links and references, but escape
12625 them as "%20".
12626 + Allow blank space at the end of horizontal rules.
12628 * RST reader: Modified 'unknownDirective' parser to handle comment
12629 blocks correctly, and added tests for comment blocks. Resolves Issue
12630 #86. Closes Debian Bug #500662.
12632 * HTML writer:
12634 + Include classes on tr elements in HTML output:
12635 "header", "odd", "even". This allows tables to be styled with
12636 lines in alternating colors. Resolves Issue #91.
12637 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
12638 This prevents parts of the document that are not math from being
12639 interpreted as math by LaTeXMathML.js.
12641 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
12642 which were formerly ignored. Resolves Issue #95.
12644 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
12645 between a footnote and immediately following nonspace characters in
12646 LaTeX and ConTeXt output. (This gets interpreted as a space, which
12647 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
12649 * Windows installer: Don't require admin privileges to run
12650 installer. Modified pandoc-setup.iss, and changed modpath.iss to
12651 modify HKCU path if user lacks admin privileges. Also fixed case
12652 where oldpath is empty (previously this led to the new path
12653 beginning with a semicolon).
12655 * Updated INSTALL instructions for Arch packages and OS X install using
12656 cabal-install.
12658 * Removed the (now unneeded) debian directory.
12659 Removed empty Codec and System directories.
12661 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
12663 * Modified Setup.hs so that the "test" target returns an error status
12664 when tests fail, and "build" returns a success status if
12665 the build succeeds. Resolves Issue #100.
12667 * Added BUGS to files in tarball.
12670pandoc (1.0.0.1)
12672 [ John MacFarlane ]
12674 * Removed spurious reference to pdf output format from pandoc(1) man page.
12676pandoc (1.0)
12678 [ Andrea Rossato ]
12680 * Added new OpenDocument writer.
12682 * Added support for SmallCaps inline element.
12684 * Added support for integrating pandoc with citeproc-hs.
12686 + Added Cite element to definition and writers.
12687 + Added Text.Pandoc.Biblio module
12688 + Note: This support is included only if the 'citeproc'
12689 Cabal configuration flag is set.
12691 * Made Pandoc data structure an instance of Typeable.
12692 Added new processPandoc and queryPandoc functions, to query
12693 or transform matching elements in a Pandoc structure.
12695 [ Peter Wang ]
12697 * Added new Texinfo writer.
12699 [ John MacFarlane ]
12701 * Changes to Texinfo writer:
12703 + No space between paragraph and following @verbatim (provides more
12704 pleasing appearance in text formats)
12705 + Blank line consistently after list environments.
12706 + Removed deVerb.
12707 + Use @code instead of @verb for inline code (this solves the character
12708 escaping problem for texi2dvi and texi2pdf).
12709 + Added news of Texinfo writer to README.
12710 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
12711 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
12712 default output extension.
12713 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
12715 * Added tests for OpenDocument writer.
12717 * Added ODT writer (using zip-archive library to package output of
12718 OpenDocument writer). Added odt-styles directory with default ODT styles.
12720 * Added new mediawiki writer and tests.
12722 * Markdown reader: Added support for delimited code blocks, with optional
12723 syntax highlighting using highlighting-kate (if the 'highlighting'
12724 configuration option is selected).
12726 + Currently highlighting is supported only in the HTML writer.
12727 + Delimited code blocks can have attributes; using the language name as
12728 class triggers highlighting.
12729 + New Attributes parameter in CodeBlock structure.
12730 + --version now indicates whether syntax highlighting support is compiled
12731 in, and prints a list of supported languages
12733 * Removed debian directory. Pandoc is no longer a native debian package.
12735 * Changes to build process: pandoc can now be built from the repository
12736 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
12737 without Cygwin).
12739 + Include shell scripts themselves in repo, rather than generating from wrappers.
12740 Removed wrappers directory and wrappers Makefile target.
12741 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
12742 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
12743 from templates in the templates/ directory. Instead, they use template
12744 haskell to read data at compile time from the relevant files in data/.
12745 Template haskell functions go in a new module, Text.Pandoc.TH.
12746 + man pages are now generated in Setup.hs hook, not by Makefile
12747 + Makefile 'tarball' target now calls Cabal's 'sdist'
12748 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
12749 + Added "Build-Type" field to pandoc.cabal to avoid warning.
12750 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
12751 so 'sdist' and 'clean' will work properly.
12752 + Setup.hs now generates man pages in a postbuild hook.
12753 + Added dependency-checking to Setup.hs, so it only rebuilds things
12754 that need rebuilding.
12755 + Added 'library' and 'executable' configuration flags.
12756 Cabal can now be told to build just the library or just the executable.
12757 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
12758 For example: CABALOPTS=-fhighlighting make
12760 * Rewrote test suite so it doesn't depend on perl or unix tools.
12762 + Replaced old runtests.pl with a Haskell script RunTests.hs.
12763 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
12764 + Added test hook to Setup.hs, so tests may be run from cabal.
12765 + Changed Makefile's 'test' target to run tests via cabal.
12766 + Removed old generate.sh.
12767 + Since we no longer have 'sed' to filter out raw HTML sections
12768 from the docbook writer test, or raw LaTeX sections from the
12769 context writer test, we now just include these sections.
12770 They can be taken out if it is necessary to process the files.
12771 + Updated latex and context writer tests to remove extra spaces
12772 after '\\item'
12773 + Added a markdown table reader test.
12774 + Added markdown-reader-more.txt to test suite, for additional test cases
12775 for raw ConTeXt environments and more.
12777 * Compatibility fixes for CPP, Cabal, and haddock:
12779 + Use CPP in "Extensions" field in pandoc.cabal.
12780 + Removed use of backslash string continuations in source files.
12782 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
12783 base >= 3.
12785 * Require parsec < 3.
12786 The compatibility module in parsec 3.0.0 gives far worse performance than
12787 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
12788 version of parsec, and then we'll go to parsec 3.0.0.
12790 * Removed Text.Regex dependencies by rewriting using plain Haskell
12791 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
12793 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
12795 * Makefile:
12797 + Added 'configure' as dependency of 'uninstall-all'.
12798 (It uses the Cabal build program.)
12799 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
12800 Note that Cabal will automatically choose the ghc-pkg appropriate
12801 for the compiler selected, so normally specifying GHC by itself
12802 is sufficient.
12804 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
12805 its IO and conversion functions.
12807 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
12808 everything is -Wall clean.
12810 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
12811 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
12812 (These are caused by the Lift instance for ByteString.)
12814 * Changed the comment used to replace unsafe HTML if sanitize-html option
12815 selected.
12817 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
12819 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
12821 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
12822 "nbsp" isn't a predefined XML entity.
12824 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
12825 Added some try's in ordered list parsers.
12827 * Man writer: don't escape " as \".
12829 * Allow newline before URL in markdown link references. Resolves Issue #81.
12830 Added tests for this issue in new "markdown-reader-more" tests.
12831 Changed RunTests.hs to run these tests.
12833 * Support for display math. Resolves Issue #47.
12835 + Added a DisplayMath/InlineMath selector to Math inlines.
12836 + Markdown parser yields DisplayMath for $$...$$.
12837 + LaTeX parser yields DisplayMath when appropriate. Removed
12838 mathBlock parsers, since the same effect is achieved by the math
12839 inline parsers, now that they handle display math.
12840 + Writers handle DisplayMath as appropriate for the format.
12841 + Modified tests accordingly; added new tests for display math.
12843 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
12844 to LaTeX in its display of math, and supports many non-math LaTeX environments.
12846 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
12847 + Modified HTML writer to print raw TeX when LaTeXMathML is
12848 being used instead of suppressing it.
12849 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
12850 + Replaced ASCIIMathML with LaTeXMathML in source files.
12851 + Modified README and pandoc man page source.
12852 + Added --latexmathml option (kept --asciimathml as a synonym
12853 for backwards compatibility)
12855 * Markdown reader: Parse setext headers before atx headers.
12856 Test case:
12857 # hi
12858 ====
12859 parsed by Markdown.pl as an H1 header with contents "# hi".
12861 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
12862 The marker on the first list item determines the type of the whole
12863 list. Thus, a list like
12864 1. one
12865 - two
12866 * three
12867 gets parsed as a single ordered list. (Previous versions of pandoc
12868 treated this as an ordered list with an unordered sublist.)
12870 * Markdown smart typography:
12872 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
12873 + Use nonbreaking spaces after known abbreviations in markdown parser.
12874 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
12875 not produce a sentence-separating space. Resolves Issue #75.
12877 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
12879 * Treat '\ ' in (extended) markdown as nonbreaking space.
12880 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
12882 * The '--sanitize-html' option now examines URIs in markdown links
12883 and images, and in HTML href and src attributes. If the URI scheme
12884 is not on a whitelist of safe schemes, it is rejected. The main point
12885 is to prevent cross-site scripting attacks using 'javascript:' URIs.
12886 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
12887 and http://ha.ckers.org/xss.html. Resolves Issue #62.
12889 * HTML writer:
12891 + Override Text.XHtml's stringToHtml function,
12892 so that characters below 0xff are not converted to numerical entity
12893 references. Also convert '\160' to "&nbsp;". This should aid readability
12894 and editability of the HTML source. It does presuppose that the HTML
12895 will be served as UTF-8.
12896 + In code blocks, change leading newlines to <br /> tags.
12897 (Some browsers ignore them.) Resolves Issue #71.
12898 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
12899 + Use style attributes rather than css classes for strikethrough
12900 and ordered list styles. This works better when fragments, rather than
12901 standalone documents, are generated.
12903 * HTML reader: Count anything that isn't a known block (HTML) tag as an
12904 inline tag (rather than the other way around). Added "html", "head", and
12905 "body" to list of block tags. Resolves Issue #66, allowing
12906 <lj> to count as an inline tag.
12908 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
12909 boldface, and other inline elements. Resolves Issue #64.
12911 * LaTeX reader: improvements in raw LaTeX parsing.
12913 + "loose punctuation" (like {}) parsed as Space
12914 + Para elements must contain more than Str "" and Space elements
12915 + Added parser for "\ignore" command used in literate haskell.
12916 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
12917 mode, these parsers simply strip off the command part and allow
12918 the arguments to be parsed normally. So, for example,
12919 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
12920 Str "{\\emph{hi}}".
12921 + Parse lhs "code" environments as verbatim.
12922 Refactored parsers for verbatim environments.
12923 + Removed specialEnvironment parser.
12924 + parse '{}', if present, after \textless, \textgreater,
12925 \textbar, \textbackslash, \ldots.
12926 + Parse unescaped special characters verbatim rather than
12927 changing them to spaces. This way arguments of unknown
12928 commands will appear in braces.
12930 * Parse raw ConTeXt environments as TeX in markdown reader.
12931 Resolves Issue #73.
12933 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
12935 * Made some structural changes to parsing of raw LaTeX environments.
12936 Previously there was a special block parser for LaTeX environments.
12937 It returned a Para element containing the raw TeX inline. This has
12938 been removed, and the raw LaTeX environment parser is now used in the
12939 rawLaTeXInline parser. The effect is exactly the same, except that we
12940 can now handle consecutive LaTeX and ConTeXt environments not separated
12941 by spaces. This new flexibility is required by the example in
12942 Issue #73:
12944 \placeformula \startformula
12945 L_{1} = L_{2}
12946 \stopformula
12948 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
12949 returns a string) rather than rawLaTeXEnvironment (which returns a block
12950 element). This is more likely to be useful in other applications.
12952 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
12953 \textsubscript conflicts with a definition in the memoir class.
12954 Resolves Issue #65.
12956 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
12958 * Added amsmath package to default LaTeX header. Resolves Issue #48.
12960 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
12961 list introduction lines.
12963 * Changed Float to Double in definition of Table element.
12964 (Double is more efficient in GHC.)
12966 * Fixed bug in Markdown parser: regular $s triggering math mode.
12967 For example: "shoes ($20) and socks ($5)."
12968 The fix consists in two new restrictions:
12970 + the $ that ends a math span may not be directly followed by a digit.
12971 + no blank lines may be included within a math span.
12973 Thanks to Joseph Reagle for noticing the bug.
12975 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
12976 Removed 'joinWithSep' from Text.Pandoc.Shared.
12978 * Updated README and man pages. Acknowledge contributors in README.
12979 Added paragraph to README about producing S5 with separate CSS/javascript.
12981 * Updated INSTALL to reflect new build system (including configuration
12982 options) and document new dependencies. Added note to INSTALL that
12983 Cabal >= 1.2 is required for build. Resolves Issue #74.
12985 * Fixed some haddock documentation errors.
12987 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
12989pandoc (0.46) unstable; urgency=low
12991 [ John MacFarlane ]
12993 * Made -H, -A, and -B options cumulative: if they are specified
12994 multiple times, multiple files will be included.
12996 * Added optional HTML sanitization using a whitelist.
12997 When this option is specified (--sanitize-html on the command line),
12998 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
12999 attributes will be removed. This option should be especially useful
13000 for those who want to use pandoc libraries in web applications, where
13001 users will provide the input.
13003 + Main.hs: Added --sanitize-html option.
13005 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
13007 + Text.Pandoc.Readers.HTML:
13008 - Added whitelists of sanitaryTags and sanitaryAttributes.
13009 - Added parsers to check these lists (and state) to see if a given
13010 tag or attribute should be counted unsafe.
13011 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
13012 with comments.
13013 - Modified htmlAttribute to remove unsafe attributes.
13014 - Modified htmlScript and htmlStyle to remove these elements if
13015 unsafe.
13017 + Modified README and man pages to document new option.
13019 * Improved handling of email addresses in markdown and reStructuredText.
13020 Consolidated uri and email address parsers. (Resolves Issue #37.)
13022 + New emailAddress and uri parsers in Text.Pandoc.Shared.
13023 - uri parser uses parseURI from Network.URI.
13024 - emailAddress parser properly handles email addresses with periods
13025 in them.
13027 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
13028 and Text.Pandoc.Readers.Markdown.
13030 * Markdown reader:
13032 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
13033 nested in an Emph. (A '*' is only recognized as the end of the
13034 emphasis if it's not the beginning of a strong emphasis.)
13036 + Moved blockQuote parser before list parsers for performance.
13038 + Modified 'source' parser to allow backslash-escapes in URLs.
13039 So, for example, [my](/url\(1\)) yields a link to /url(1).
13040 Resolves Issue #34.
13042 + Disallowed links within links. (Resolves Issue #35.)
13043 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
13044 instead of hard-coding the inline parser takes an inline parser
13045 as a parameter.
13046 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
13047 - Removed unneeded inlineString function.
13048 - Added inlineNonLink parser, which is now used in the definition of
13049 reference.
13050 - Added inlineParsers list and redefined inline and inlineNonLink parsers
13051 in terms of it.
13052 - Added failIfLink parser.
13054 + Better handling of parentheses in URLs and quotation marks in titles.
13055 - 'source' parser first tries to parse URL with balanced parentheses;
13056 if that doesn't work, it tries to parse everything beginning with
13057 '(' and ending with ')'.
13058 - source parser now uses an auxiliary function source'.
13059 - linkTitle parser simplified and improved, under assumption that it
13060 will be called in context of source'.
13062 + Make 'block' conditional on strictness state, instead of using
13063 failIfStrict in block parsers. Use a different ordering of parsers
13064 in strict mode (raw HTML block before paragraph) for performance.
13065 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
13066 Simplified htmlBlock, since we know it's only called in strict
13067 mode.
13069 + Improved handling of raw HTML. (Resolves Issue #36.)
13070 - Tags that can be either block or inline (e.g. <ins>) should
13071 be treated as block when appropriate and as inline when
13072 appropriate. Thus, for example,
13073 <ins>hi</ins>
13074 should be treated as a paragraph with inline <ins> tags, while
13075 <ins>
13077 </ins>
13078 should be treated as a paragraph within <ins> tags.
13079 - Moved htmlBlock after para in list of block parsers. This ensures
13080 that tags that can be either block or inline get parsed as inline
13081 when appropriate.
13082 - Modified rawHtmlInline' so that block elements aren't treated as
13083 inline.
13084 - Modified para parser so that paragraphs containing only HTML tags and
13085 blank space are not allowed. Treat these as raw HTML blocks instead.
13087 + Fixed bug wherein HTML preceding a code block could cause it to
13088 be parsed as a paragraph. The problem is that the HTML parser
13089 used to eat all blank space after an HTML block, including the
13090 indentation of the code block. (Resolves Issue #39.)
13091 - In Text.Pandoc.Readers.HTML, removed parsing of following space
13092 from rawHtmlBlock.
13093 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
13094 indentation is eaten *only* on the first line after the HTML
13095 block. This means that in
13096 <div>
13097 foo
13098 <div>
13099 the foo won't be treated as a code block, but in
13100 <div>
13102 foo
13104 </div>
13105 it will. This seems the right approach for least surprise.
13107 * RST reader:
13109 + Fixed bug in parsing explicit links (resolves Issue #44).
13110 The problem was that we were looking for inlines until a '<' character
13111 signaled the start of the URL; so, if you hit a reference-style link,
13112 it would keep looking til the end of the document. Fix: change
13113 inline => (notFollowedBy (char '`') >> inline). Note that this won't
13114 allow code inlines in links, but these aren't allowed in resT anyway.
13116 + Cleaned up parsing of reference names in key blocks and links.
13117 Allow nonquoted reference links to contain isolated '.', '-', '_', so
13118 so that strings like 'a_b_' count as links.
13120 + Removed unnecessary check for following link in str.
13121 This is unnecessary now that link is above str in the definition of
13122 'inline'.
13124 * HTML reader:
13126 + Modified rawHtmlBlock so it parses </html> and </body> tags.
13127 This allows these tags to be handled correctly in Markdown.
13128 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
13129 since these are handled in parseHtml. (Resolves Issue #38.)
13131 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
13133 + Don't interpret contents of style tags as markdown.
13134 (Resolves Issue #40.)
13135 - Added htmlStyle, analagous to htmlScript.
13136 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
13137 - Moved "script" from the list of tags that can be either block or
13138 inline to the list of block tags.
13140 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
13141 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
13142 inline tags would be included in raw HTML blocks.
13144 + Modified anyHtmlBlockTag to test for (not inline) rather than
13145 directly for block. This allows us to handle e.g. docbook in
13146 the markdown reader.
13148 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
13149 Updated LaTeX reader test to use --parse-raw.
13151 * HTML writer:
13153 + Modified rules for automatic HTML header identifiers to
13154 ensure that identifiers begin with an alphabetic character.
13155 The new rules are described in README. (Resolves Issue #33.)
13157 + Changed handling of titles in HTML writer so you don't get
13158 "titleprefix - " followed by nothing.
13160 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
13161 spacing. Each block element is wrapped with either Pad or Reg.
13162 Pad'ed elements are guaranteed to have a blank line in between.
13164 * RST writer:
13166 + Refactored RST writer to use a record instead of a tuple for state,
13167 and to include options in state so it doesn't need to be passed as
13168 a parameter.
13170 + Use an interpreted text role to render math in restructuredText.
13171 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
13172 strategy.
13174 [ Recai Oktaş ]
13176 * Debian packaging changes:
13178 + Remove the empty 'include' directory in -dev package, which lintian
13179 complains about.
13180 + Bump Standarts-Version to 3.7.3.
13181 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
13182 lintian.
13184 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
13186pandoc (0.45) unstable; urgency=low
13188 [ John MacFarlane ]
13190 * Simplified parsing of reference keys and notes in markdown and RST
13191 readers: The Reference data structure from Text.Pandoc.Shared is no
13192 longer needed, since referenceKey and noteBlock parses return strings
13193 (as many blank lines as were occupied by the key or note) and update
13194 state themselves. getPosition and setPosition are now used to ensure
13195 that error messages will give the correct line number. This yields
13196 cleaner (and slightly faster) code, with more accurate parsing error
13197 messages.
13199 * Added new Math inline element:
13201 + Markdown and LaTeX readers now convert TeX math into Math elements,
13202 not TeX.
13203 + This allows math to be treated differently from raw TeX in output.
13204 TeX elements are no longer printed in output formats other than
13205 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
13207 * New default handling of math in writers:
13209 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
13210 parses raw TeX math and outputs a string of Pandoc inlines that
13211 tries to render it as far as possible using unicode characters,
13212 lapsing into literal TeX when needed.
13213 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
13214 and Docbook, if no other method for displaying math in HTML is
13215 specified. Enclosing $'s are no longer printed by default.
13216 + By default, math is put inside `<span class="math">`. This way it can be
13217 distinguished from the surrounding text, e.g. put in a different
13218 font.
13220 * New --gladtex and --mimetex options for display of math in HTML:
13222 + If --gladtex is specified, math is output between `<eq>` tags, so
13223 it can be processed by gladTeX.
13224 + If --mimetex is specified, math is put in `<img>` tags with a link
13225 to the mimetex CGI script (or any other script that takes TeX math
13226 as input and outputs an image). The URL of the script may be
13227 specified, but defaults to /cgi-bin/mimetex.cgi.
13228 + HTMLMathMethod structure in WriterOptions keeps track of how to
13229 display math in HTML output.
13230 + Updated README with a description of the four options for displaying
13231 math in HTML.
13233 * HTML reader:
13235 + Fixed bug: parser for minimized attributes should not swallow
13236 trailing spaces.
13237 + Simplified HTML attribute parsing.
13238 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
13239 longer needed. `<pre>` suffices. All HTML tags in the code block
13240 (e.g. for syntax highlighting) are skipped, because they are not
13241 portable to other output formats. A `<code>...</code>` block not
13242 surrounded by `<pre>` now counts as inline HTML, not a code block.
13243 + Remove just one leading and one trailing newline from contents of
13244 `<pre>...</pre>` in codeBlock parser.
13246 * Markdown reader:
13248 + Removed support for box-style block quotes.
13249 + Require space before title in links and references.
13250 This fixes a bug in parsing URLs like http://silly/url(withparen).
13251 + Improved and simplified setextHeader parser.
13252 + Fixed logic in smart quote parsing, adding some needed 'try'
13253 statements.
13254 + Fixed smart quote parsing so that unicode characters 8216 and 8217
13255 are recognized as single quotes, and 8220 and 8221 as double quotes.
13257 * RST reader:
13259 + Fixed bug in parsing of code blocks. Previously a full tab indent
13260 was required, but RST allows code to be indented any amount.
13261 Resolves Issue #27.
13262 + Allow field lists to be indented.
13263 + Parse the contents of field lists instead of treating as a raw string.
13264 + Represent field lists as definition lists instead of blockquotes.
13265 + Fixed bug in which metadata would be overridden if the document
13266 contained multiple field lists.
13267 + Parse fields associated with '.. image::' blocks, and use 'alt'
13268 field, if given, for image alt and title attributes.
13270 * LaTeX reader:
13272 + Modified specialChar so that '"' characters are parsed.
13273 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
13275 * HTML writer:
13277 + Changes in handling of math (see above).
13278 + Don't produce HTML for table of contents if there are
13279 no headers. (This would be an empty list, which is invalid XHTML.)
13281 * Markdown writer:
13283 + Don't print title attribute if title is empty. (This differs from
13284 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
13285 Gruber has indicated that he prefers this behavior.) Adjusted test
13286 suite accordingly.
13287 + Fixed incorrect line wrapping in paragraphs including hard line
13288 breaks. Resolves Issue #25.
13289 + Fixed bug in markdown writer: If an ordered list item began with
13290 a marker greater than 3 characters in width, and the item took more
13291 than one line, it would appear on the line after the list marker,
13292 e.g.:
13294 (12)
13295 My list item.
13296 Multiline.
13298 Now it works as follows:
13300 (12) My list item.
13301 Multiline.
13303 * RST writer
13305 + Fixed bug in RST writer's handling of ordered lists. Previously,
13306 list items with multiple lines would not always line up with
13307 single-line list items. Now, list items are nested the length of
13308 the list marker + 1. This looks better and ensures that list items
13309 all line up. (Note that list markers are padded to the length of
13310 the longest list marker in the series.)
13311 + Use 3-space indent for unordered lists.
13312 + If label for a link reference contains a colon, surround it by `
13313 signs so it won't be interpreted as the end of the link label.
13315 * LaTeX writer:
13317 + Cleaner output for footnotes. Footnotes now always begin on a new
13318 line, and the final } is on a line by itself only when it needs to
13319 be (i.e. only when the note ends with a Verbatim environment).
13320 + Added writer options to state, so state doesn't need to be passed as
13321 a parameter.
13322 + Text wrapping now provided, using wrapTeXIfNeeded.
13324 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
13325 (thanks to Idris Samawi Hamid for suggestions).
13327 + PrettyPrint module now used for output.
13328 + Writer options are now in state, so they don't have to be passed as
13329 a parameter.
13330 + Text wrapping now provided, using wrapTeXIfNeeded.
13331 + Better treatment of footnotes: footnotes are always on lines by
13332 themselves, and the final } is on a line by itself only when
13333 it needs to be (after \stoptyping).
13334 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
13335 depending on whether --number-sections option is selected.
13336 + Extra blank line inserted after \stopitemize
13337 + Use new, "official" definition of blockquote environment. Also, use
13338 blank line after \startblockquote to balance blank line at the end.
13339 + Both itemized and enumerated lists are now generated using
13340 \start-stopitemize, with appropriate options. Removed definitions
13341 of ltxenum and ltxitem, which are no longer needed. Provided
13342 defaults for itemized lists in the preamble. State keeps track of
13343 ordered list level, so that when default numbering is specified,
13344 the appropriate scheme can be used.
13345 + Changed \useurl to \useURL.
13346 + Changed link color from red to blue.
13347 + Use \subsubsubsubsection etc., since these are supported
13348 (up to at least sub x 5).
13350 * Text.Pandoc.Shared:
13352 + Save and restore position in parseFromString, so that accurate
13353 error messages can be given.
13354 + Improved efficiency of romanNumeral parser.
13355 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
13356 that footnotes occur on lines by themselves (to make them
13357 easier to see and move) and do not screw up line wrapping.
13359 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
13360 if present. Windows Notepad and other applications insert a
13361 BOM at the beginning of a UTF8 file.
13363 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
13364 addition to "\r\n" and '\n').
13366 * Added a writer option for wrapped text and a command-line option
13367 '--no-wrap', which disables text wrapping and minimizes whitespace
13368 in HTML. (Resolves Issue #26.)
13370 + Added support for '--no-wrap' to Main.hs.
13371 + Added wrapIfNeeded function to Text.Pandoc.Shared.
13372 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
13373 Markdown writers.
13374 + Added render and renderFragment helpers to HTML writer.
13376 * Modified html2markdown to run tidy only if the HTML cannot be
13377 parsed. Previously html2markdown piped all input through tidy
13378 before passing it to pandoc. This caused problems on certain pages
13379 (e.g. http://daringfireball.com/markdown) which have well-formed
13380 XHTML that causes tidy to choke. The solution is to pipe through
13381 tidy only if pandoc cannot parse the input by itself. This means
13382 that a temp file is now always used, even when input comes from a
13383 local file or standard input.
13385 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
13386 Text.Pandoc library.
13388 * pandoc.cabal:
13390 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
13391 6.8, pretty and containers must be added to Build-Depends, and it
13392 is desirable to use the -O2 compiler option.) Cabal configurations
13393 allows one to select options depending on the compiler version.
13394 For GHC 6.6, the splitBase option can be disabled.
13395 + pandoc.cabal.ghc66 is provided for users with older versions of
13396 Cabal, which do not support configurations.
13397 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
13398 '--enable-(executable|library)-profiling' is specified. Updated
13399 PROFILING instructions accordingly.
13401 * Makefile:
13403 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
13404 is copied to pandoc.cabal, and the old pandoc.cabal is copied
13405 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
13406 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
13407 will work properly with either GHC 6.6 or 6.8.
13408 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
13409 This is where current versions of Cabal put it.
13410 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
13411 + Removed dependency of templates on ./templates, which is circular
13412 now that templates is a subdirectory of the top-level.
13414 * MacPorts Portfile:
13416 + Modified to install the pandoc library in addition to programs.
13417 + Installation must be done manually rather than using Makefile's
13418 install-all.
13419 + Note that the library must be registered in the activate phase,
13420 after the library files have been copied out of the destroot.
13421 Cabal generates a 'register.sh' script that will do this.
13423 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
13424 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
13425 Closes: #445235
13427 * debian/rules: Converted to UTF-8.
13429 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
13431 * Updated ASCIIMathML.js to latest version.
13433 * Directory structure:
13435 + Moved everything from src into the top-level directory.
13436 + Changed references to source directory in Makefile and
13437 pandoc.cabal.*.
13438 + Moved ASCIIMathML.js, headers, and ui into templates directory.
13439 + Modified fillTemplates.pl to reflect new paths.
13441 [ Recai Oktaş ]
13443 * Makefile: Fixed the issue of having two copies of the library
13444 documentation under some usage scenarios.
13446 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
13447 and GHC_PKG configurable through the environment, to support
13448 unusual ghc installations. For example:
13449 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
13451 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
13453pandoc (0.44) unstable; urgency=low
13455 [ John MacFarlane ]
13457 * Fixed bug in HTML writer: when --toc was used, anchors were put around
13458 headers, which is invalid XHTML (block content within inline element).
13459 Now the anchors are put inside the header tags. Resolves Issue #23.
13461 * Added xmlns attribute to html element in html writer tests.
13462 This attribute is added by more recent versions of the
13463 xhtml library (>= 3000), and is required for valid XHTML.
13465 [ Recai Oktaş ]
13467 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
13468 command instead of 'runhaskell', which, on some platforms (such as s390,
13469 alpha, m68k), throws the following error:
13471 runhaskell Setup.hs configure --prefix=/usr
13472 ghc-6.6.1: not built for interactive use
13474 This causes a serious FTBFS bug. Closes: #440668.
13476 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
13478pandoc (0.43) unstable; urgency=low
13480 [ John MacFarlane ]
13482 * The focus of this release is performance. The markdown parser
13483 is about five times faster than in 0.42, based on benchmarks
13484 with the TextMate manual.
13486 * Main.hs: Replaced CRFilter and tabFilter with single function
13487 tabFilter, which operates on the whole string rather than breaking
13488 it into lines, and handles dos-style line-endings as well as tabs.
13490 * Added separate LaTeX reader and native reader tests; removed
13491 round-trip tests.
13493 * Text.Pandoc.Shared:
13495 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
13496 + General code cleanup (to elimante warnings when compiling with -Wall.)
13497 + Added 'wrapped' function, which helps wrap text into paragraphs,
13498 using the prettyprinting library.
13499 + Rewrote charsInBalanced and charsInBalanced'.
13500 - Documented restriction: open and close must be distinct characters.
13501 - Rearranged options for greater efficiency.
13502 - Bug fix: Changed inner call to charsInBalanced inside
13503 charsInBalanced' to charsInBalanced'.
13504 + anyLine now requires that the line end with a newline (not eof).
13505 This is a harmless assumption, since we always add newlines to the
13506 end of a block before parsing with anyLine, and it yields a 10% speed
13507 boost.
13508 + Removed unnecessary 'try' in anyLine.
13509 + Removed unneeded 'try' from romanNumeral parser.
13510 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
13511 + Removed unneeded 'try' in parseFromString.
13512 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
13513 like 'string'.)
13514 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
13515 'try' is not automatically applied to the 'end' parser. Added
13516 'try' in calls to 'enclosed' where needed. Slight speed increase.
13518 * Writers:
13520 + Replaced individual wrapping routines in RST, Man, and Markdown
13521 writers with 'wrapped' from Text.Pandoc.Shared.
13522 + Rewrote LaTeX writer to use the prettyprinting library,
13523 so we get word wrapping, etc.
13524 + Modified latex writer tests for new latex writer using prettyprinter.
13525 + Fixed bug in LaTeX writer: autolinks would not cause
13526 '\usepackage{url}' to be put in the document header. Also, changes
13527 to state in enumerated list items would be overwritten.
13528 + In Markdown writer, escape paragraphs that begin with ordered list
13529 markers, so they don't get interpreted as ordered lists.
13531 * Text.Pandoc.Reades.LaTeX:
13533 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
13534 numeral after "enum" in "setcounter" would consist entirely of
13535 "i"s. 'enumiv' is legitimate.
13536 + LaTeX command and environment names can't contain numbers.
13537 + Rearranged order of parsers in inline for slight speed improvement.
13538 + Added '`' to special characters and 'unescapedChar'.
13540 * Text.Pandoc.Readers.RST:
13542 + Removed unneeded try's in RST reader; also minor code cleanup.
13543 + Removed tabchar.
13544 + Rearranged parsers in inline (doubled speed).
13546 * Text.Pandoc.Readers.Markdown:
13548 + Skip notes parsing if running in strict mode. (This yields a nice
13549 speed improvement in strict mode.)
13550 + Simplify autolink parsing code, using Network.URI to test for
13551 URIs. Added dependency on network library to debian/control and
13552 pandoc.cabal.
13553 + More perspicuous definition of nonindentSpaces.
13554 + Removed unneeded 'try' in 'rawLine'.
13555 + Combined linebreak and whitespace into a new whitespace parser, to
13556 avoid unnecessary reparsing of space characters.
13557 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
13558 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
13559 + Use lookAhead in parsers for setext headers and definition lists
13560 to see if the next line begins appropriately; if not, don't waste
13561 any more time parsing.
13562 + Don't require blank lines after code block. (It's sufficient to
13563 end code block with a nonindented line.)
13564 + Changed definition of 'emph': italics with '_' must not
13565 be followed by an alphanumeric character. This is to help
13566 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
13567 `[LC<em>TYPE]:my</em>type`.
13568 + Improved Markdown.pl-compatibility in referenceLink: the two parts
13569 of a reference-style link may be separated by one space, but not
13570 more... [a] [link], [not] [a link].
13571 + Fixed markdown inline code parsing so it better accords with
13572 Markdown.pl: the marker for the end of the code section is a clump
13573 of the same number of `'s with which the section began, followed
13574 by a non-` character. So, for example,
13575 ` h ``` i ` -> `<code>h ``` i</code>`.
13576 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
13577 rules are slightly different.
13578 + Rewrote 'para' for greater efficiency.
13579 + Rewrote link parsers for greater efficiency.
13580 + Removed redundant 'referenceLink' in definition of inline (it's
13581 already in 'link').
13582 + Refactored escapeChar so it doesn't need 'try'.
13583 + Refactored hrule for performance in Markdown reader.
13584 + More intelligent rearranging of 'inline' so that most frequently
13585 used parsers are tried first.
13586 + Removed tabchar parser, as whitespace handles tabs anyway.
13588 * Text.Pandoc.CharacterReferences:
13590 + Refactored.
13591 + Removed unnecessary 'try's for a speed improvement.
13592 + Removed unnecessary '&' and ';' from the entity table.
13594 * Build process:
13596 + Makefile: Get VERSION from cabal file, not Main.hs.
13597 + Modified MacPorts Portfile:
13598 - Depend on haddock
13599 - Build and install libraries and library documentation in
13600 addition to pandoc executable
13601 - Added template item for md5 sum in Portfile.in.
13602 - Incorporated changes from MacPorts repository (r28278).
13603 + FreeBSD port: Don't try to generate distinfo in Makefile.
13604 It can be made using 'make makesum' in FreeBSD.
13605 + Make both freebsd and macports targets depend on tarball.
13607 * Website and documentation:
13609 + Updated INSTALL instructions.
13610 + Added pandocwiki demo to website.
13611 + Removed local references to Portfile, since pandoc is now in the
13612 MacPorts repository.
13614 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
13616pandoc (0.42) unstable; urgency=low
13618 [ John MacFarlane ]
13620 * Main.hs: Use utf8 conversion on the extra files loaded with
13621 the -H, -C, -B, and -A options. This fixes problems with unicode
13622 characters in these files.
13624 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
13625 Text.Pandoc.Readers.HTML and without it we get a linking error when
13626 using the library.
13628 * Markdown reader:
13630 + Added new rule for enhanced markdown ordered lists: if the list
13631 marker is a capital letter followed by a period (including a
13632 single-letter capital roman numeral), then it must be followed by
13633 at least two spaces. The point of this is to avoid accidentally
13634 treating people's initials as list markers: a paragraph might begin,
13635 "B. Russell was an English philosopher," and this shouldn't be
13636 treated as a list. Documented change in README.
13637 + Blocks that start with "p. " and a digit are no longer treated
13638 as ordered lists (it's a page number).
13639 + Added a needed 'try' to listItem.
13640 + Removed check for a following setext header in endline.
13641 A full test is too inefficient (doubles benchmark time), and the
13642 substitute we had before is not 100% accurate.
13643 + Don't use Code elements for autolinks if --strict specified.
13645 * LaTeX writer: When a footnote ends with a Verbatim environment, the
13646 close } of the footnote cannot occur on the same line or an error occurs.
13647 Fixed this by adding a newline before the closing } of every footnote.
13649 * HTML writer:
13650 + Removed incorrect "{}" around style information in HTML tables.
13651 Column widths now work properly in HTML.
13652 + If --strict option is specified (and --toc is not), don't include
13653 identifiers in headers, for better Markdown compatibility.
13655 * Build process:
13657 + Separated $(web_dest) and website targets.
13658 + In website, index.txt is now constructed from template index.txt.in.
13659 + Added freebsd target to Markefile. This creates the freebsd Makefile
13660 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
13661 from the repository.
13662 + Added macport target to Makefile. Portfile is built from template
13663 Portfile.in.
13664 + Removed OSX package targets. (Too many difficulties involving
13665 dependencies on dynamic libraries.)
13666 + More complete INSTALL instructions for all architectures.
13668 * Website:
13669 + Added a programming demo, pandocwiki.
13671 [ Recai Oktaş ]
13673 * Do not forget to close pandoc's ITP. Closes: #391666
13675 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
13677pandoc (0.41) unstable; urgency=low
13679 [ John MacFarlane ]
13681 * Fixed bugs in HTML reader:
13682 + Skip material at end *only if* `</html>` is present (previously,
13683 only part of the document would be parsed if an error was
13684 found; now a proper error message is given).
13685 + Added new constant eitherBlockOrInline with elements that may
13686 count either as block-level or as inline. Modified isInline and
13687 isBlock to take this into account.
13688 + Modified rawHtmlBlock to accept any tag (even an inline tag):
13689 this is innocuous, because rawHtmlBlock is tried only if a regular
13690 inline element can't be parsed.
13691 + Added a necessary 'try' in definition of 'para'.
13693 * Fixed bug in markdown ordered list parsing. The problem was that
13694 anyOrderedListStart did not check for a space following the
13695 ordered list marker. So in 'A.B. 2007' the parser would be
13696 expecting a list item, but would not find one, causing an error.
13697 Fixed a similar bug in the RST reader. Resolves Issue #22.
13699 * Refactored RST and Markdown readers using parseFromString.
13701 * LaTeX reader will now skip anything after \end{document}.
13703 * Fixed blockquote output in markdown writer: previously, block
13704 quotes in indented contexts would be indented only in the first
13705 line.
13707 * Added note to INSTALL about variations in versions of the xhtml
13708 library that can lead to failed tests (thanks to Leif LeBaron).
13710 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
13712pandoc (0.4) unstable; urgency=low
13714 [ John MacFarlane ]
13716 * Added two new output formats: groff man pages and ConTeXt. By
13717 default, output files with extensions ".ctx" and ".context" are
13718 assumed to be ConTeXt, and output files with single-digit extensions
13719 are assumed to be man pages.
13721 * Enhanced ordered lists (documented in README, under Lists):
13722 + The OrderedList block element now stores information about
13723 list number style, list number delimiter, and starting number.
13724 + The readers parse this information when possible.
13725 + The writers use this information to style ordered lists.
13726 + The enhancement can be disabled using the --strict option.
13728 * Added support for tables (with a new Table block element). Two kinds
13729 of tables are supported: a simple table with one-line rows, and a
13730 more complex variety with multiline rows. All output formats are
13731 supported, but only markdown tables are parsed at the moment. The
13732 syntax is documented in README.
13734 * Added support for definition lists (with a new DefinitionList block
13735 element). All output and input formats are supported. The syntax is
13736 documented in README.
13738 * Added support for superscripts and subscripts (with new Superscript
13739 and Subscript inline elements). All input and output
13740 formats. The syntax is documented in README.
13742 * Added support for strikeout (with a new Strikeout inline element).
13743 All input and output formats are supported. Thanks to Bradley Kuhn,
13744 who contributed a patch. The syntax is documented in README. Resolves
13745 Issue #18.
13747 * Added a --toc|--table-of-contents option. This causes an automatically
13748 generated table of contents (or an instruction that creates one) to
13749 be inserted at the beginning of the document. Not supported in S5,
13750 DocBook, or man page writers.
13752 * Modified the -m|--asciimathml option:
13754 + If an optional URL argument is provided, a link is inserted
13755 instead of the contents of the ASCIIMathML.js script.
13756 + Nothing is inserted unless the document actually contains
13757 LaTeX math.
13759 * Removed Blank block element as unnecessary.
13761 * Removed Key and Note blocks from the Pandoc data structure. All
13762 links are now stored as explicit links, and note contents are
13763 stored with the (inline) notes.
13765 + All link Targets are now explicit (URL, title) pairs; there
13766 is no longer a 'Ref' target.
13767 + Markdown and RST parsers now need to extract data from key and
13768 note blocks and insert them into the relevant inline elements.
13769 Other parsers have been simplified, since there is no longer any need
13770 to construct separate key and note blocks.
13771 + Markdown, RST, and HTML writers need to construct lists of
13772 notes; Markdown and RST writers need to construct lists of link
13773 references (when the --reference-links option is specified); and
13774 the RST writer needs to construct a list of image substitution
13775 references. All writers have been rewritten to use the State monad
13776 when state is required.
13777 + Several functions (generateReference, keyTable,
13778 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
13779 used by them) have been removed from Text.Pandoc.Shared, since
13780 they are no longer needed. New functions and data structures
13781 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
13782 added. The functions inTags, selfClosingTag, inTagsSimple, and
13783 inTagsIndented have been moved to the DocBook writer, since that
13784 is now the only module that uses them. NoteTable is now exported
13785 in Text.Pandoc.Shared.
13786 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
13787 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
13788 + Added writerNotes and writerReferenceLinks to WriterOptions.
13790 * Added Text.Pandoc module that exports basic readers, writers,
13791 definitions, and utility functions. This should export everything
13792 needed for most uses of Pandoc libraries. The haddock documentation
13793 includes a short example program.
13795 * Text.Pandoc.ASCIIMathML is no longer an exported module.
13797 * Added Text.Pandoc.Blocks module to help in printing markdown
13798 and RST tables. This module provides functions for working with
13799 fixed-width blocks of text--e.g., placing them side by side, as
13800 in a table row.
13802 * Refactored to avoid reliance on Haskell's Text.Regex library, which
13803 (a) is slow, and (b) does not properly handle unicode. This fixed
13804 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
13806 + Replaced 'gsub' with a general list function 'substitute'
13807 that does not rely on Text.Regex.
13808 + Rewrote extractTagType in HTML reader so that it doesn't use
13809 regexs.
13810 + In Markdown reader, replaced email regex test with a custom email
13811 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
13812 with a custom function isSelfClosingTag.
13813 + Modified Docbook writer so that it doesn't rely on Text.Regex for
13814 detecting 'mailto' links.
13815 + Removed escapePreservingRegex and reamped entity-handling
13816 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
13817 avoid reliance on Text.Regex (see below on character reference
13818 handling changes).
13820 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
13822 * Changed handling of XML entities. Entities are now parsed (and unicode
13823 characters returned) in the Markdown and HTML readers, rather than being
13824 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
13825 instead of entities for characters above 128. This makes the HTML and
13826 DocBook output much more readable and more easily editable.
13828 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
13829 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
13830 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
13831 Moved both functions to Text.Pandoc.Writers.Docbook.
13832 + Added characterReference parser to Text.Pandoc.CharacterReferences.
13833 This parses a string and return a unicode character.
13834 + Rewrote decodeCharacterReferences to use the new parser instead of
13835 Text.Regex.
13836 + Added new charRef parser for Markdown and HTML, which replaces the
13837 old 'entity' parser. Added '&' as a special character in Markdown reader.
13838 + Modified HTML and Markdown readers to call decodeEntities on all raw
13839 strings (e.g. authors, dates, link titles), to ensure that no
13840 unprocessed entities are included in the native representation of
13841 the document. (In the HTML reader, most of this work is done by a
13842 change in extractAttributeName.)
13843 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
13844 since a unicode non-breaking space is impossible to distinguish visually
13845 from a regular space. (Resolves Issue #3.)
13846 + Removed encodeEntitiesNumerical.
13847 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
13848 slight performance boost over the old association list.
13849 + Removed unneeded decodeEntities from 'str' parser in HTML and
13850 Markdown readers.
13852 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
13853 fromUTF8, for clarity.
13855 * Replaced old haskell98 module names replaced by hierarchical module
13856 names, e.g. List by Data.List. Removed haskell98 from dependencies
13857 in pandoc.cabal, and added mtl (needed for state monad). Substituted
13858 xhtml for html.
13860 * Refactored and cleaned up character escaping in writers, using
13861 backslashEscapes and escapeStringUsing functions.
13863 * Instead of adding "\n\n" to the end of an input string in Main.hs,
13864 this is now done in the readers. This makes the libraries behave
13865 the way you'd expect from the pandoc program. Resolves Issue #10.
13867 * URLs and email addresses in autolinks are now typeset as Code.
13869 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
13870 doesn't display the whole output unless there's a line ending.
13872 * Major code cleanup in all modules, for greater consistency, concision,
13873 and readability.
13875 * HTML reader:
13877 + Fixed several bugs (extractTagType, attribute parsing).
13878 + Remove Null blocks in lists of blocks when possible.
13879 + Allow HTML comments as raw HTML inline.
13881 * Markdown reader:
13883 + Ordered list items may no longer begin with uppercase letters, or
13884 letters greater than 'n'. (This prevents first initials and page
13885 reference, e.g. 'p. 400', from being parsed as beginning lists.)
13886 Also, numbers beginning list items may no longer end with ')',
13887 which is now allowed only after letters. Note: These changes
13888 may cause documents to be parsed differently. Users should take
13889 care in upgrading.
13890 + Changed autoLink parsing to conform better to Markdown.pl's
13891 behavior. `<google.com>` is not treated as a link, but
13892 `<http://google.com>`, `<ftp://google.com>`, and
13893 `<mailto:google@google.com>` are.
13894 + Cleaned up handling of embedded quotes in link titles. Now these are
13895 stored as a '"' character, not as '&quot;'.
13896 + Use lookAhead parser for the 'first pass' (looking for reference keys),
13897 instead of parsing normally, then using setInput to reset input. This
13898 yields a slight performance boost.
13899 + Fixed several bugs in smart quote recognition.
13900 + Fixed bug in indentSpaces (which didn't properly handle
13901 cases with mixed spaces and tabs).
13902 + Consolidated 'text', 'special', and 'inline' into 'inline'.
13903 + Fixed bug which allowed URL and title to be separated by multiple blank
13904 lines in links and reference keys. They can be on separate lines but
13905 can't have blank lines between them.
13906 + Correctly handle bracketed text inside inline footnotes and links,using
13907 new function inlinesInBalanced. Resolves Issue #14.
13908 + Fixed bug in footnotes: links in footnotes were not being
13909 processed. Solution: three-stage parse. First, get all the
13910 reference keys and add information to state. Next, get all the
13911 notes and add information to state. (Reference keys may be needed
13912 at this stage.) Finally, parse everything else.
13913 + Replaced named constants like 'emphStart' with literals.
13914 + Removed an extra occurance of escapedChar in definition of inline.
13916 * RST reader:
13918 + Allow the URI in a RST hyperlink target to start on the line
13919 after the reference key.
13920 + Added 'try' in front of 'string', where needed, or used a different
13921 parser. This fixes a bug where ````` would not be correctly parsed as
13922 a verbatim `.
13923 + Fixed slow performance in parsing inline literals in RST reader. The
13924 problem was that ``#`` was seen by 'inline' as a potential link or image.
13925 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
13926 Resolves Issue #8.
13927 + Use lookAhead instead of getInput/setInput in RST reader. Removed
13928 unneeded getState call, since lookAhead automatically saves and
13929 restores the parser state.
13930 + Allow hyperlink target URIs to be split over multiple lines, and
13931 to start on the line after the reference. Resolves Issue #7.
13932 + Fixed handling of autolinks.
13934 * LaTeX reader:
13936 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
13937 for clarity.
13938 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
13939 caret is \^{}, not \^ as before.
13940 + Added parsing for \url.
13941 + Parse \texttt{} as code, provided there's nothing fancy inside.
13943 * HTML writer:
13945 + Modified HTML writer to use the Text.XHtml library. This results
13946 in cleaner, faster code, and it makes it easier to use Pandoc in
13947 other projects, like wikis, which use Text.XHtml. Two functions are
13948 now provided, writeHtml and writeHtmlString: the former outputs an
13949 Html structure, the latter a rendered string. The S5 writer is also
13950 changed, in parallel ways (writeS5, writeS5String).
13951 + The Html header is now written programmatically, so it has been
13952 removed from the 'headers' directory. The S5 header is still
13953 needed, but the doctype and some of the meta declarations have
13954 been removed, since they are written programatically. This change
13955 introduces a new dependency on the xhtml package.
13956 + Fixed two bugs in email obfuscation involving improper escaping
13957 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
13958 Issue #9.
13959 + Fixed another bug in email obfuscation: If the text to be obfuscated
13960 contains an entity, this needs to be decoded before obfuscation.
13961 Thanks to thsutton for the patch. Resolves Issue #15.
13962 + Changed the way the backlink is displayed in HTML footnotes.
13963 Instead of appearing on a line by itself, it now generally
13964 appears on the last line of the note. (Exception: when the
13965 note does not end with a Plain or Para block.) This saves space
13966 and looks better.
13967 + Added automatic unique identifiers to headers:
13968 - The identifier is derived from the header via a scheme
13969 documented in README.
13970 - WriterState now includes a list of header identifiers and a table
13971 of contents in addition to notes.
13972 - The function uniqueIdentifiers creates a list of unique identifiers
13973 from a list of inline lists (e.g. headers).
13974 - This list is part of WriterState and gets consumed by blockToHtml
13975 each time a header is encountered.
13976 + Include CSS for .strikethrough class in header only if strikethrough
13977 text appears in the document.
13978 + If the 'strict' option is specified, elements that do not appear in
13979 standard markdown (like definition lists) are passed through as
13980 raw HTML.
13981 + Simplified treatment of autolinks, using pattern matching instead of
13982 conditionals.
13984 * Markdown writer:
13986 + Links in markdown output are now printed as inline links by default,
13987 rather than reference links. A --reference-links option has been added
13988 that forces links to be printed as reference links. Resolves Issue #4.
13989 + Use autolinks when possible. Instead of `[site.com](site.com)`,
13990 use `<site.com>`.
13992 * LaTeX writer:
13994 + Rewrote to use the State monad. The preamble now includes only those
13995 packages that are actually required, given the document's content.
13996 Thus, for example, if strikeout is not used, ulem is not required.
13997 Modified LaTeXHeader accordingly.
13998 + Modified LaTeX writer to insert '\,' between consecutive quotes.
13999 + Removed unused function tableRowColumnWidths.
14000 + Simplified code for escaping special characters.
14001 + Leave extra blank line after \maketitle.
14002 + Include empty '\author{}' when no author specified to avoid LaTeX
14003 errors.
14004 + Include fancyvrb code in header only if needed -- that is, only
14005 if there is actually code in a footnote.
14006 + Use \url{} for autolinks.
14007 + Include [mathletters] option in ucs package, so that basic unicode
14008 Greek letters will work correctly.
14010 * RST writer: Force blank line before lists, so that sublists will
14011 be handled correctly.
14013 * Docbook writer: Fixed a bug: email links with text, like
14014 [foo](me@bar.baz), were being incorrectly treated as autolinks.
14016 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
14017 Text.Pandoc.Shared.
14019 * Text.Pandoc.Shared:
14021 + Added defaultWriterOptions.
14022 + Added writerTableOfContents to WriterOptions.
14023 + Added writerIgnoreNotes option to WriterOptions. This is needed
14024 for processing header blocks for a table of contents, since notes on
14025 headers should not appear in the TOC.
14026 + Added prettyprinting for native Table format.
14027 + Removed some unneeded imports.
14028 + Moved escape and nullBlock parsers from
14029 Text.ParserCombinators.Pandoc, since the latter is for
14030 general-purpose parsers that don't depend on Text.Pandoc.Definition.
14031 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
14032 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
14033 writer, because HTML writer now uses these in constructing a table
14034 of contents.
14035 + Added clauses for new inline elements (Strikeout, Superscript,
14036 Subscript) to refsMatch.
14037 + Removed backslashEscape; added new functions escapeStringUsing and
14038 backslashEscapes.
14039 + Moved failIfStrict from markdown reader, since it is now used also
14040 by the HTML reader.
14041 + Added a 'try' to the definition of indentSpaces.
14042 + In definition of 'reference', added check to make sure it's not a note
14043 reference.
14044 + Added functions: camelCaseToHyphenated, toRomanNumeral,
14045 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
14046 charsInBalanced', withHorizDisplacement, romanNumeral
14047 + Fixed a bug in the anyLine parser. Previously it would parse an empty
14048 string "", but it should fail on an empty string, or we get an error
14049 when it is used inside "many" combinators.
14050 + Removed followedBy' parser, replacing it with the lookAhead parser from
14051 Parsec.
14052 + Added some needed 'try's before multicharacter parsers, especially in
14053 'option' contexts.
14054 + Removed the 'try' from the 'end' parser in 'enclosed', so that
14055 'enclosed' behaves like 'option', 'manyTill', etc.
14056 + Added lineClump parser, which parses a raw line block up to and
14057 including any following blank lines.
14058 + Renamed parseFromStr to parseFromString.
14059 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
14060 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
14061 in calling code.
14062 + Removed unneeded 'try' in blanklines.
14063 + Removed endsWith function and rewrote calling functions to use
14064 isSuffixOf instead.
14065 + Added >>~ combinator.
14066 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
14067 Space.
14069 * Refactored runtests.pl; added separate tests for tables.
14071 * Shell scripts:
14073 + Added -asxhtml flag to tidy in html2markdown. This will
14074 perhaps help the parser, which expects closing tags.
14075 + Modified markdown2pdf to run pdflatex a second time if --toc or
14076 --table-of-contents was specified; otherwise the table of
14077 contents won't appear.
14078 + Modified markdown2pdf to print a helpful message if the 'ulem'
14079 LaTeX package is required and not found.
14081 * Changes to build process:
14083 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
14084 is now required.
14085 + Removed cabalize and Pandoc.cabal.in. The repository now contains
14086 pandoc.cabal itself.
14087 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
14088 likes the cabal file to have the same name as the tarball.
14089 + Expanded and revised the package description in pandoc.cabal.
14090 Revised the package synopsis.
14091 + The tarball built by 'make tarball' now contains files built from
14092 templates (including man pages and shell scripts), so pandoc can
14093 be built directly using Cabal tools, without preprocessing.
14094 + Executable binaries are now stripped before installing.
14095 + Man pages are now generated from markdown sources, using pandoc's
14096 man page writer.
14097 + Use HTML version of README (instead of RTF) in Mac OS X installer.
14098 + Instead of testing for the existence of a pandoc symlink in build-exec,
14099 use ln -f.
14101 * Documentation:
14103 + Updated README and man pages with information on new features.
14104 + Updated INSTALL instructions with some useful clarifications and
14105 links.
14106 + Updated web content.
14108 * Added FreeBSD port.
14110 [ Recai Oktaş ]
14112 * debian/control:
14114 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
14115 libghc6-xhtml-dev. Removed libghc6-html-dev.
14116 + Suggest texlive-latex-recommended | tetex-extra instead of
14117 tetex-bin. This brings in fancyvrb and unicode support.
14119 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
14121pandoc (0.3) unstable; urgency=low
14123 [ John MacFarlane ]
14125 * Changes in pandoc options:
14127 + Allow options to follow or precede arguments.
14128 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
14129 + Added '--strict' option.
14130 + Added '-o/--output' option.
14131 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
14132 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
14133 error conditions. This is helpful for writing wrappers.
14134 + Added copyright message to '-v' output, modeled after FSF messages.
14135 + Reformatted usage message so that it doesn't wrap illegibly.
14136 + Removed extra blanks after '-h' and '-D' output.
14138 * Added docbook writer.
14140 * Added implicit setting of default input and output format based
14141 on input and output filename extensions. These defaults are
14142 overridden if explicit input and output formats are specified using
14143 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
14144 and README.
14146 * Allow ordered list items to begin with (single) letters, as well
14147 as numbers. The list item marker may now be terminated either by
14148 '.' or by ')'. This extension to standard markdown is documented
14149 in README.
14151 * Revised footnote syntax. (See README for full details.) The
14152 '[^1]' format now standard in markdown extensions is supported,
14153 as are inline footnotes with this syntax: `^[My note.]`.
14154 The earlier footnote syntax `^(1)` is no longer supported.
14156 * Improved HTML representation of footnotes. All footnotes
14157 are now auto-numbered and appear in an ordered list at the
14158 end of the HTML document. Since the default appearance is now
14159 acceptable, the old footnote styles have been removed from the
14160 HTML header.
14162 * Bug fixes:
14164 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
14165 These readers ran 'runParser' on processed chunks of text to handle
14166 embedded block lists in lists and quotation blocks. But then
14167 any changes made to the parser state in these chunks was lost,
14168 as the state is local to the parser. So, for example, footnotes
14169 didn't work in quotes or list items. The fix: instead of calling
14170 runParser on some raw text, use setInput to make it the input, then
14171 parse it, then use setInput to restore the input to what it was
14172 before. This is shorter and more elegant, and it fixes the problem.
14173 + Fixed bug in notFollowedBy' combinator (adding 'try' before
14174 'parser'). Adjusted code that uses this combinator accordingly.
14175 + Fixed bug in RTF writer that caused improper indentation on
14176 footnotes occurring in indented blocks like lists.
14177 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
14178 and date are parsed correctly. Everything else in the preamble
14179 is skipped.
14180 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
14181 line to count as escaped whitespace.
14182 + Modified LaTeX reader to produce inline links rather than reference
14183 links. Otherwise, links in footnotes aren't handled properly.
14184 + Fixed handling of titles in links in Markdown reader, so that
14185 embedded quotation marks are now handled properly.
14186 + Fixed Markdown reader's handling of embedded brackets in links.
14187 + Fixed Markdown reader so that it only parses bracketed material
14188 as a reference link if there is actually a corresponding key.
14189 + Revised inline code parsing in Markdown reader to conform to
14190 markdown standard. Now any number of `s can begin inline code,
14191 which will end with the same number of `s. For example, to
14192 have two backticks as code, write ``` `` ```. Modified Markdown
14193 writer accordingly.
14194 + Fixed bug in text-wrapping routine in Markdown and RST writers.
14195 Now LineBreaks no longer cause wrapping problems.
14196 + Supported hexadecimal numerical entity references as well as
14197 decimal ones.
14198 + Fixed bug in Markdown reader's handling of underscores and other
14199 inline formatting markers inside reference labels: for example,
14200 in '[A_B]: /url/a_b', the material between underscores was being
14201 parsed as emphasized inlines.
14202 + Changed Markdown reader's handling of backslash escapes so that
14203 only non-alphanumeric characters can be escaped. Strict mode
14204 follows Markdown.pl in only allowing a select group of punctuation
14205 characters to be escaped.
14206 + Modified HTML reader to skip a newline following a `<br>` tag.
14207 Otherwise the newline will be treated as a space at the beginning
14208 of the next line.
14210 * Made handling of code blocks more consistent. Previously, some
14211 readers allowed trailing newlines, while others stripped them.
14212 Now, all readers strip trailing newlines in code blocks. Writers
14213 insert a newline at the end of code blocks as needed.
14215 * Modified readers to make spacing at the end of output more consistent.
14217 * Minor improvements to LaTeX reader:
14219 + '\thanks' now treated like a footnote.
14220 + Simplified parsing of LaTeX command arguments and options.
14221 commandArgs now returns a list of arguments OR options (in
14222 whatever order they appear). The brackets are included, and
14223 a new stripFirstAndLast function is provided to strip them off
14224 when needed. This fixes a problem in dealing with \newcommand
14225 and \newenvironment.
14227 * Revised RTF writer:
14229 + Default font is now Helvetica.
14230 + An '\f0' is added to each '\pard', so that font resizing works
14231 correctly.
14233 * Moved handling of "smart typography" from the writers to the Markdown
14234 and LaTeX readers. This allows great simplification of the writers
14235 and more accurate smart quotes, dashes, and ellipses. DocBook can
14236 now use `<quote>`. The '--smart' option now toggles an option in
14237 the parser state rather than a writer option. Several new kinds
14238 of inline elements have been added: Quoted, Ellipses, Apostrophe,
14239 EmDash, EnDash.
14241 * Changes in HTML writer:
14243 + Include title block in header even when title is null.
14244 + Made javascript obfuscation of emails even more obfuscatory,
14245 by combining it with entity obfuscation.
14247 * Changed default ASCIIMathML text color to black.
14249 * Test suite:
14251 + Added --strip-trailing-cr option to diff in runtests.pl, for
14252 compatibility with Windows.
14253 + Added regression tests with footnotes in quote blocks and lists.
14255 * Makefile changes:
14257 + osx-pkg target creates a Mac OS X package (directory). New osx
14258 directory contains files needed for construction of the package.
14259 + osx-dmg target creates a compressed disk image containing the package.
14260 + win-pkg target creates Windows binary package.
14261 + tarball target creates distribution source tarball.
14262 + website target generates pandoc's website automatically, including
14263 demos. New 'web' directory containts files needed for construction
14264 of the website (which will be created as the 'pandoc' subdirectory
14265 of 'web').
14266 + Makefile checks to see if we're running Windows/Cygwin; if so,
14267 a '.exe' extension is added to each executable in EXECS.
14269 * Removed all wrappers except markdown2pdf and html2markdown.
14271 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
14272 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
14273 option and disables other options.
14275 * Added code to html2markdown that tries to determine the character
14276 encoding of an HTML file, by parsing the "Content-type" meta tag.
14278 + If the encoding can't be determined, then if the content is local,
14279 the local encoding is used; if it comes from a URL, UTF-8 is used
14280 by default.
14281 + If input is from STDIN, don't try to determine character encoding.
14282 + Encoding can be specified explicitly using '-e' option.
14284 * Improved warning messages in wrappers:
14286 + Print warning if iconv not available
14287 + More user-friendly error messages in markdown2pdf, when
14288 pdflatex fails.
14290 * Code cleanup:
14292 + Renamed 'Text/Pandoc/HtmlEntities' module to
14293 'Text/Pandoc/Entities'. Also changed function names so as
14294 not to be HTML-specific.
14295 + Refactored SGML string escaping functions from HTML and Docbook
14296 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
14297 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
14298 used anywhere.
14299 + Removed splitBySpace and replaced it with a general, polymorphic
14300 splitBy function.
14301 + Refactored LaTeX reader for clarity (added isArg function).
14302 + Converted some CR's to LF's in src/ui/default/print.css.
14303 + Added license text to top of source files.
14304 + Added module data for haddock to source files.
14305 + Reformatted code for consistency.
14307 * Rewrote documentation and man pages. Split README into INSTALL
14308 and README.
14310 * Split LICENSE into COPYING and COPYRIGHT.
14312 * Removed TODO, since we now maintain ToDo on the wiki.
14314 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
14315 duplication.
14317 [ Recai Oktaş ]
14319 * Revamped build process to conform to debian standards and created
14320 a proper debian package. Closes: #391666.
14322 * Modified build process to support GHC 6.6.
14324 + The package can still be compiled using GHC 6.4.2, though because
14325 of dependencies the "make deb" target works only with GHC 6.6+.
14326 + The script 'cabalize' is used to create an appropriate
14327 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
14328 Cabal versions.
14330 * Refactored template processing (fillTemplates.pl).
14332 * Modified wrapper scripts to make them more robust and portable.
14333 To avoid code duplication and ensure consistency, wrappers are
14334 generated via a templating system from templates in src/wrappers.
14336 + Wrappers now accept multiple filenames, when appropriate.
14337 + Spaces and tabs allowed in filenames.
14338 + getopts shell builtin is used for portable option parsing.
14339 + Improved html2markdown's web grabber code, making it more robust,
14340 configurable and verbose. Added '-e', '-g' options.
14342 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
14344pandoc (0.2) unstable; urgency=low
14346 * Fixed unicode/utf-8 translation
14348 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
14350pandoc (0.1) unstable; urgency=low
14352 * Initial creation of debian package
14354 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400