git.iko.soy/typeable/pandoc
on 2.0.6 help sign in
typeable/pandoc/changelog
13586 lines 586 kB history raw
1pandoc (2.0.6)
3 * Added `jats` as an input format.
5 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
6 change) (Hamish Mackenzie).
7 + Improved citation handling in JATS reader. JATS citations
8 are now converted to pandoc citations, and JATS ref-lists
9 are converted into a `references` field in metadata, suitable
10 for use with pandoc-citeproc. Thus a JATS article with embedded
11 bibliographic information can be processed with pandoc and
12 pandoc-citeproc to produce a formatted bibliography.
14 * Allow `--list-extensions` to take an optional FORMAT argument.
15 This lists the extensions set by default for the selected FORMAT.
16 The extensions are now alphabetized, and the `+` or `-`
17 indicating the default setting comes before, rather than after,
18 the extension.
20 * Markdown reader:
22 + Preserve original whitespace between blocks.
23 + Recognize `\placeformula` as context.
24 + Be pickier about table captions. A caption starts with a `:` which
25 can't be followed by punctuation. Otherwise we can falsely interpret
26 the start of a fenced div, or even a table header line like
27 `:--:|:--:`, as a caption.
28 + Always use four space rule for example lists. It would be awkward
29 to indent example list contents to the first non-space character after
30 the label, since example list labels are often long. Thanks to
31 Bernhard Fisseni for the suggestion.
32 + Improve raw tex parsing. Note that the Markdown reader is also
33 affected by the `latex_macros` extension changes described below
34 under the LaTeX reader.
36 * LaTeX reader:
38 + `latex_macros` extension changes (#4179). Don't pass through macro
39 definitions themselves when `latex_macros` is set. The macros
40 have already been applied. If `latex_macros` is enabled, then
41 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
42 a macro definition, and will update pandoc's internal macro map
43 accordingly, but the empty string will be returned.
44 + Export `tokenize`, `untokenize` (API change).
45 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
46 + Refactored `inlineCommand`.
47 + Fix bug in tokenizer. Material following `^^` was
48 dropped if it wasn't a character escape. This only affected
49 invalid LaTeX, so we didn't see it in the wild, but it appeared
50 in a QuickCheck test failure.
51 + Fix regression in LateX tokenization (#4159). This mainly affects the
52 Markdown reader when parsing raw LaTeX with escaped spaces.
53 + Add tests of LaTeX tokenizer.
54 + Support `\foreignlanguage` from babel.
55 + Be more tolerant of `&` character (#4208). This allows us to parse
56 unknown tabular environments as raw LaTeX.
58 * Muse reader (Alexander Krotov):
60 + Parse anchors immediately after headings as IDs.
61 + Require that note references does not start with 0.
62 + Parse empty comments correctly.
64 * Org reader (Albert Krewinkel):
66 + Fix asterisks-related parsing error (#4180).
67 + Support minlevel option for includes (#4154). The level of headers
68 in included files can be shifted to a higher level by specifying a
69 minimum header level via the `:minlevel` parameter. E.g.
70 `#+include: "tour.org" :minlevel 1` will shift the headers in
71 tour.org such that the topmost headers become level 1 headers.
72 + Break-up org reader test file into multiple modules.
74 * OPML reader:
76 + Enable raw HTML and other extensions by default for notes
77 (#4164). This fixes a regression in 2.0. Note that extensions can
78 now be individually disabled, e.g. `-f opml-smart-raw_html`.
80 * RST reader:
82 + Allow empty list items (#4193).
83 + More accurate parsing of references (#4156). Previously we erroneously
84 included the enclosing backticks in a reference ID (#4156). This
85 change also disables interpretation of syntax inside references, as
86 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
88 * Docx reader:
90 + Continue lists after interruption (#4025, Jesse Rosenthal).
91 Docx expects that lists will continue where they left off after an
92 interruption and introduces a new id if a list is starting again. So
93 we keep track of the state of lists and use them to define a "start"
94 attribute, if necessary.
95 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
96 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
97 #4190).
99 * Plain writer:
101 + Don't linkify table of contents.
103 * RST writer:
105 + Fix anchors for headers (#4188). We were missing an `_`.
107 * PowerPoint writer (Jesse Rosenthal):
109 + Treat lists inside BlockQuotes as lists. We don't yet produce
110 incremental lists in PowerPoint, but we should at least treat lists
111 inside BlockQuotes as lists, for compatibility with other slide formats.
112 + Add ability to force size. This replaces the more specific
113 `blockQuote runProp`, which only affected the size of blockquotes. We
114 can use this for notes, etc.
115 + Implement notes. This currently prints all notes on a final slide.
116 Note that at the moment, there is a danger of text overflowing the
117 note slide, since there is no logic for adding further slides.
118 + Implement basic definition list functionality to PowerPoint writer.
119 + Don't look for default template file for Powerpoint (#4181).
120 + Add pptx to isTextFormat list. This is used to check standalone
121 and not writing to the terminal.
122 + Obey slide level option (Jesse Rosenthal).
123 + Introduce tests.
125 * Docx writer:
127 + Ensure that `distArchive` is the one that comes with pandoc
128 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
129 dir) would be used instead, and this could cause problems because a
130 user-modified docx sometimes lacks vital sections that we count
131 on the `distArchive` to supply.
133 * Org writer:
135 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
136 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
137 Alexander Krotov). Otherwise they can be interpreted as footnote
138 definitions.
140 * Muse writer (Alexander Krotov):
142 + Don't wrap note references to the next line (#4172).
144 * HTML writer:
146 + Use br elements in line blocks instead of relying on CSS
147 (#4162). HTML-based templates have had the custom CSS for
148 `div.line-block` removed. Those maintaining custom templates will want
149 to remove this too. We still enclose line blocks in a div with class
150 `line-block`.
152 * LaTeX writer:
154 + Use `\renewcommand` for `\textlatin` with babel (#4161).
155 This avoids a clash with a deprecated `\textlatin` command defined
156 in Babel.
157 + Allow fragile=singleslide attribute in beamer slides (#4169).
158 + Use `\endhead` after `\toprule` in headerless tables (#4207).
160 * FB2 writer:
162 + Add cover image specified by `cover-image` meta (Alexander Krotov,
163 #4195).
165 * JATS writer (Hamish Mackenzie):
167 + Support writing `<fig>` and `<table-wrap>` elements
168 with `<title>` and `<caption>` inside them by using Divs with class set
169 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
170 title is included as a Heading so the constraint on where Heading can
171 occur is also relaxed.
172 + Leave out empty alt attributes on links.
173 + Deduplicate image mime type code.
174 + Make `<p>` optional in `<td>` and `<th>` (#4178).
175 + Self closing tags for empty xref (#4187).
176 + Improve support for code language.
178 * Custom writer:
180 + Use init file to setup Lua interpreter (Albert Krewinkel).
181 The same init file (`data/init`) that is used to setup the Lua
182 interpreter for Lua filters is also used to setup the interpreter of
183 custom writers.lua.
184 + Define instances for newtype wrapper (Albert Krewinkel). The custom
185 writer used its own `ToLuaStack` instance definitions, which made
186 it difficult to share code with Lua filters, as this could result
187 in conflicting instances. A `Stringify` wrapper is introduced to
188 avoid this problem.
189 + Added tests for custom writer.
190 + Fixed definition lists and tables in `data/sample.lua`.
192 * Fixed regression: when target is PDF, writer extensions were being
193 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
194 did not work properly.
196 * Lua modules (Albert Krewinkel):
198 + Add `pandoc.utils` module, to hold utility functions.
199 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
200 define the `pandoc` lua module.
201 + Make a Haskell module for each Lua module. Move definitions for the
202 `pandoc.mediabag` modules to a separate Haskell module.
203 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
204 + Add function `pandoc.utils.hierarchicalize` (convert list of
205 Pandoc blocks into (hierarchical) list of Elements).
206 + Add function `pandoc.utils.normalize_date` (parses a date and
207 converts it (if possible) to "YYYY-MM-DD" format).
208 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
209 of numbers below 4000 into roman numerals).
210 + Add function `pandoc.utils.stringify` (converts any AST element
211 to a string with formatting removed).
212 + `data/init.lua`: load `pandoc.utils` by default
213 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
214 utility functions are converted from hybrid lua/haskell functions
215 into full Haskell functions. This avoids the need for intermediate
216 `_pipe`/`_read` helper functions, which have dropped.
217 + pandoc.lua: re-add missing MetaMap function. This was a bug
218 introduced in version 2.0.4.
220 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
221 a pure way to insert an ersatz file into a `FileTree`. In addition, we
222 normalize paths both on insertion and on lookup.
224 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
226 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
228 * Text.Pandoc.Extensions: Alphabetical order constructors for
229 `Extension`. This makes them appear in order in `--list-extensions`.
231 * Allow lenient decoding of latex error logs, which are not always
232 properly UTF8-encoded (#4200).
234 * Update latex template to work with recent versions of beamer.
235 The old template produced numbered sections with some recent
236 versions of beamer. Thanks to Thomas Hodgson.
238 * Updated reference.docx (#4175). Instead of just "Hello, world", the
239 document now contains exemplars of most of the styles that have an
240 effect on pandoc documents. This makes it easier to see the effect
241 of style changes.
243 * Removed `default.theme` data file (#4096). It is no longer needed now
244 that we have `--print-highlight-style`.
246 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
247 We still need this for the alpine static linux build, since
248 we don't have ghc 8.2.2 for that yet.
250 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
251 can put flag settings for pandoc-citeproc there.
253 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
254 make releases easier.
256 * MANUAL.txt:
258 + Add note on what formats have `+smart` by default.
259 + Use native syntax for custom-style (#4174, Mauro Bieg).
260 + Introduce dedicated Extensions section, since some extensions
261 affect formats other than markdown (Mauro Bieg, #4204).
262 + Clarify default html output for `--section-divs` (Richard Edwards).
264 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
265 Closes jgm/pandoc-website#16.
267 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
269pandoc (2.0.5)
271 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
272 generated with `--print-highlight-style` (#4133). Improve JSON
273 serialization of styles.
275 * Fix CSS issues involving line numbers (#4128).
276 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
277 Highlighting CSS no longer sets a generic color for pre and code; we only
278 set these for class `sourceCode`.
280 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
282 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
283 It works following the standard Pandoc conventions for making other
284 sorts of slides. Caveats:
286 + Syntax highlighting is not yet implemented. (This is difficult
287 because there are no character classes in Powerpoint.)
288 + Footnotes and Definition lists are not yet implemented. (Notes will
289 usually take the form of a final slide.
290 + Image placement and auto-resizing has a few glitches.
291 + Reference powerpoint files don't work dependably from the command
292 line. This will be implemented, but at the moment users are advised
293 to change themes from within Powerpoint.
295 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
296 This is for functions used by both Powerpoint and Docx writers.
298 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
300 * Add `empty_paragraphs` extension.
302 + Deprecate `--strip-empty-paragraphs` option. Instead we now
303 use an `empty_paragraphs` extension that can be enabled on
304 the reader or writer. By default, disabled.
305 + Add `Ext_empty_paragraphs` constructor to `Extension`.
306 + Revert "Docx reader: don't strip out empty paragraphs."
307 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
308 + Implement `empty_paragraphs` extension in docx reader and writer,
309 opendocument writer, HTML reader and writer.
310 + Add tests for `empty_paragraphs` extension.
312 * Markdown reader:
314 + Don't parse native div as table caption (#4119).
315 + Improved computation of column widths in pipe tables.
316 Pipe tables with lines longer than the text width (as set
317 by `--columns`) are now scaled to text width, with the relative
318 widths of columns determined by the ratios between the
319 header lines. Previously we computed column widths using
320 the ratio of header line lengths to column width, so that
321 tables with narrow header lines were extremely thin, which
322 was very rarely the desired result.
324 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
325 as long as it's not followed by a blank line. This has been fixed at the
326 tokenizer level.
328 * Muse reader (Alexander Krotov):
330 + Add test for `#disable-tables` directive in Emacs mode.
331 + Don't allow emphasis to be preceded by letter.
332 + Add underline support in Emacs Muse mode..
333 + Support multiline directives in Amusewiki mode
335 * Man writer: omit internal links (#4136). That is, just print the link
336 text without the URL.
338 * Markdown reader: accept processing instructions as raw HTML (#4125).
340 * Lua filters (Albert Krewinkel):
342 + Use script to initialize the interpreter. The file `init.lua` is
343 used to initialize the Lua interpreter which is used in Lua filters.
344 This gives users the option to require libraries which they want to
345 use in all of their filters, and to extend default modules.
346 + Fix package loading for Lua 5.1. The list of package searchers is
347 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
348 in Lua 5.2 and later.
349 + Refactor lua module handling. The integration with Lua's package/module
350 system is improved: A pandoc-specific package searcher is prepended to
351 the searchers in `package.searchers`. The modules `pandoc` and
352 `pandoc.mediabag` can now be loaded via `require`.
353 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
354 function which makes using Haskell functions as package loaders much
355 easier.
357 * reveal.js template: add title-slide identifier to title slide (#4120).
358 This allows it to be styled more easily.
360 * LaTeX template: Added support for `pagestyle` variable (#4135,
361 Thomas Hodgson)
363 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
364 error on linux).
367pandoc (2.0.4)
369 * Add `--print-highlight-style` option. This generates a JSON version
370 of a highlighting style, which can be saved as a `.theme` file, modified,
371 and used with `--highlight-style` (#4106, #4096).
373 * Add `--strip-empty-paragraphs` option. This works for any input format.
374 It is primarily intended for use with docx and odt documents where
375 empty paragraphs have been used for inter-paragraph spaces.
377 * Support `--webtex` for `gfm` output.
379 * Recognize `.muse` file extension.
381 * Support beamer `\alert` in LaTeX reader. Closes #4091.
383 * Docx reader: don't strip out empty paragraphs (#2252).
384 Users who have a conversion pipeline from docx may want to consider adding
385 `--strip-empty-paragraphs` to the command line.
387 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
389 * Muse reader (Alexander Krotov):
391 + Parse markup in definition list terms.
392 + Allow definition to end with EOF.
393 + Make code blocks round trip.
394 + Drop common space prefix from list items.
395 + Add partial round trip test.
396 + Don't interpret XML entities.
397 + Remove `nested`.
398 + Parse `~~` as non-breaking space in Emacs mode.
399 + Correctly remove indentation from notes. Exactly one space is
400 required and considered to be part of the marker.
401 + Allow list items to be empty.
402 + Add ordered list test.
403 + Add more multiline definition tests.
404 + Don't allow blockquotes within lists.
405 + Fix reading of multiline definitions.
406 + Add inline `<literal>` support.
407 + Concatenate inlines of the same type
409 * Docx writer: allow empty paragraphs (#2252).
411 * CommonMark/gfm writer:
413 + Use raw html for native divs/spans (#4113). This allows a pandoc
414 markdown native div or span to be rendered in gfm using raw html tags.
415 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
416 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
418 * Muse writer (Alexander Krotov):
420 + Test that inline math conversion result is normalized.
421 Without normalization this test produced
422 `<em>a</em><em>b</em><em>c</em>`.
423 + Improve inline list normalization and move to writer.
424 + Escape hash symbol.
425 + Escape `----` to avoid accidental horizontal rules.
426 + Escape only `</code>` inside code tag.
427 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
429 * LaTeX writer:
431 + Allow specifying just width or height for image size.
432 Previously both needed to be specified (unless the image was
433 being resized to be smaller than its original size).
434 If height but not width is specified, we now set width to
435 textwidth. If width but not height is specified, we now set
436 height to textheight. Since we have `keepaspectratio`, this
437 yields the desired result.
438 + Escape `~` and `_` in code with `--listings` (#4111).
440 * HTML writer: export `tagWithAttributes`. This is a helper allowing
441 other writers to create single HTML tags.
443 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
444 converting the case as needed in LaTeX and ConTeXt writers.
446 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
447 so that it no longer produces empty `Para`'s as an artifact.
449 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
450 This gives us automatic normalization, so we don't get
451 for example two consecutive Spaces.
453 * Include default CSS for 'underline' class in HTML-based templates.
455 * revealjs template: add `tex2jax` configuration for the
456 math plugin. With the next release of reveal.js, this will
457 fix the problem of `$`s outside of math contexts being
458 interpreted as math delimiters (#4027).
460 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
462 + Add basic lua List module (#4099, #4081). The List module is
463 automatically loaded, but not assigned to a global variable. It can be
464 included in filters by calling `List = require 'List'`. Lists of blocks,
465 lists of inlines, and lists of classes are now given `List` as a metatable,
466 making working with them more convenient. E.g., it is now possible to
467 concatenate lists of inlines using Lua's concatenation operator `..`
468 (requires at least one of the operants to have `List` as a metatable):
470 function Emph (emph)
471 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
472 return pandoc.Span(emph.content .. s)
473 end
475 The `List` metatable is assigned to the tables which get passed to
476 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
477 enables the use of the resulting objects as lists.
478 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
479 Pandoc and Meta elements are now pushed by calling the respective
480 constructor functions of the pandoc Lua module. This makes serialization
481 consistent with the way blocks and inlines are pushed to lua and allows
482 to use List methods with the `blocks` value.
483 + Add documentation for pandoc.List in `lua-filters.md`.
485 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
486 `&` (but not a valid entity) following them (#4094, #4088).
488 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
489 when `numberLines` is used (#4103).
491 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
492 requiring a leading 0 on single-digit days.
494 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
495 Bieg, #4095).
497 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
498 Previously we only mentioned `--latexmathml`, even if `-m` was
499 used.
501 * Changelog: fix description of lua filters in 2.0 release
502 (Albert Krewinkel). Lua filters were initially run *after* conventional
503 (JSON) filters. However, this was changed later to make it easier to deal
504 with files in the mediabag. The changelog is updated to describe that
505 feature of the 2.0 release correctly.
507 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
508 #4085). This reduces compile time and memory usage significantly.
510 * `lua-filters.md`: Added tikz filter example.
512 * Create alternative zip file for macOS binaries.
514 * Create alternative zip file for Windows binaries.
516 * Update INSTALL.md since we now provide zips for binaries.
518 * Relax `http-types` dependency (Justus Sagemüller, #4084).
520 * Add `epub.md`, `getting-started.md` to docs. These used to live in
521 the website repo.
523 * Add `packages` target to Makefile.
525 * Bump bounds for binary, http-types, tasty-hunit
527pandoc (2.0.3)
529 * Lua filters: preload text module (Albert Krewinkel, #4077).
530 The `text` module is preloaded in lua. The module contains some UTF-8
531 aware string functions, implemented in Haskell. The module is loaded on
532 request only, e.g.:
534 text = require 'text'
535 function Str (s)
536 s.text = text.upper(s.text)
537 return s
538 end
540 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
541 #4071). Attribute lists are represented as associative lists in Lua. Pure
542 associative lists are awkward to work with. A metatable is attached to
543 attribute lists, allowing to access and use the associative list as if
544 the attributes were stored in as normal key-value pair in table.
545 Note that this changes the way `pairs` works on attribute lists. Instead
546 of producing integer keys and two-element tables, the resulting iterator
547 function now returns the key and value of those pairs. Use `ipairs` to
548 get the old behavior. Warning: the new iteration mechanism only works if
549 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
551 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
552 This fixes a bug where pandoc would stop parsing a URI with an
553 empty attribute: for example, `&a=&b=` wolud stop at `a`.
554 (The uri parser tries to guess which punctuation characters
555 are part of the URI and which might be punctuation after it.)
557 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
559 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
560 `WriterOptions`.
561 + Reimplemented `isEnabled` function from `Options.hs` to accept both
562 `ReaderOptions` and `WriterOptions`.
563 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
565 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
566 behavior for `muse`. New `Ext_amuse` constructor for
567 `Extension`. Note: this is switched on by default; for
568 Emacs behavior, use `muse-amuse`.
570 * Muse reader (Alexander Krotov):
572 + Count only one space as part of list item marker.
573 + Produce SoftBreaks on newlines. Now wrapping can be preserved
574 with `--wrap=preserve`.
575 + Add Text::Amuse footnote extensions. Footnote end is indicated by
576 indentation, so footnotes can be placed anywhere in the text,
577 not just at the end of it.
578 + Accept Emacs Muse definition lists when `-amuse`.
579 Emacs Muse does not require indentation.
581 * HTML reader:
583 + Ensure we don't produce level 0 headers (#4076), even for chapter
584 sections in epubs. This causes problems because writers aren't set
585 up to expect these.
586 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
587 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
588 `markdown` or `html` `+tex_math_single_backslash`.
589 + Parse div with class `line-block` as LineBlock.
590 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
592 * MANUAL: clarify that math extensions work with HTML.
593 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
594 will work with HTML as well as Markdown.
596 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
597 #4067).
599 * RST reader: better support for 'container' directive (#4066).
600 Create a div, incorporate name attribute and classes.
602 * LaTeX reader:
604 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
605 `rr`. We now expand it like a macro.
606 + Allow optional args for parbox (#4056).
607 + Allow optional arguments on `\footnote` (#4062).
609 * EPUB writer: Fixed path for cover image (#4069). It was previously
610 `media/media/imagename`, and should have been `media/imagename`.
612 * Markdown writer: fix bug with doubled footnotes in grid tables
613 (#4061).
615 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
616 Otherwise we seem to get an error; biblatex wants polyglossia
617 language to be defined.
619 * Added examples to lua filters documentation.
622pandoc (2.0.2)
624 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
625 `--mimetex`, `--jsmath`.
627 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
628 leading to invalid XML in default JATS output with pandoc-citeproc.
630 * `lua-filters.md`: use real-world man page filter as example.
632 * Add lua filter functions `walk_inline` and `walk_block`
633 in the pandoc module, to apply filters inside particular
634 inline and block elements.
636 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
637 into new internal module `Text.Pandoc.Lua.Filter`.
639 * Markdown reader:
641 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
642 This brings our handling of them into alignment with CommonMark's.
643 + Fix YAML metadata with "chomp" (`|-`). Previously if a
644 YAML block under `|-` contained a blank line, pandoc would
645 not parse it as metadata.
647 * Removed `etc.` from abbreviations file. Often `etc.` ends a
648 sentence, and we want the period to be treated as a
649 sentence-ending period.
651 * Fix regression with `--metadata` (#4054). Values specified with
652 `--metadata` should replace a metadata value set in the document
653 itself, rather than creating a list including a new value.
655 * EPUB writer:
657 + Fix EPUB OCF structure. #3720 had been improperly implemented.
658 + Fix modified paths for raw HTML tags (src, poster, etc.)
659 (#4050, #4055). This had not been updated for the new EPUB
660 container layout, with a separate text/ subdirectory.
661 + Fix image paths with empty `--epub-subdirectory`.
663 * Miscellaneous code cleanup (Alexander Krotov).
665 * Use pandoc-types 1.17.3, which adds `Walkable` instances
666 for `[Block] Block` and `[Inline] Inline`.
668 * Remove obsolete `stack.full.yaml` (#4052).
670 * Change to using pandoc-citeproc 0.12.1 in binary packages.
672 * Consolidate math output method documentation (#4049, Mauro Bieg).
674 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
676 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
677 Haskell filters. This is easier and faster.
679 * Improved `INSTALL.md`.
681 * Update commands to extract deb archive on Linux (#4043, Salim B).
684pandoc (2.0.1.1)
686 * Improved fix to #3989 (parsing of HTML tags containing
687 `>` in an attribute or comment). The previous fix (in 2.0.1) only
688 worked in certain cases.
690 * FB2 writer (Alexander Krotov):
692 + Add `unrecognised` genre to `<title-info>`
693 (Alexander Krotov). XML schema requires at least one genre.
694 + Remove `<annotation>` from `<body>`.
696 * CommonMark writer: fix strikethrough for `gfm` (#4038).
698 * Use texmath 0.10, which adds support for a wider range of
699 symbols and fixes default column alignments in MathML
700 and OMML.
702 * Highlighting fixes, using skylighting 0.4.3.2:
704 + Fix invalid CSS.
705 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
706 + Ensure that code lines don't get duplicate identifiers (#4031).
707 The line identifiers are built using the code block's identifier
708 as a prefix. If the code block has null identifier, we use
709 `cb1`, `cb2`, etc.
711 * Added a few abbreviations to `data/abbreviations`,
712 and sorted the list (#3984, Wandmalfarbe).
714 * Improved support for columns in HTML writer (#4028).
716 + Remove `width` attribute from the `div`.
717 + Remove space between `<div class="column">` elements,
718 since this prevents columns whose widths sum to 100%
719 (the space takes up space).
720 + Move as much as possible of the CSS to the template.
721 + Ensure that all the HTML-based templates (including epub)
722 contain the CSS for columns.
723 + Columns default to 50% width unless they are given a width
724 attribute. So if you want two equal-width columns, you
725 can use a div with class `column` and no `width` attribute.
727 * SelfContained: use `base64` for css links with media attribute (#4026).
728 This fixes `--self-contained` with S5.
730 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
732 * Issue INFO, not WARNING, when a .sty file cannot be
733 read in LaTeX reader. It is normally not an issue requiring
734 a fix from the user if .sty files are not found.
736 * INSTALL.md: MacOS instructions needed xar -f (adam234).
738 * MANUAL.txt:
740 + Clarify that --setext-headers doesn't affect gfm output (#4035).
741 + Clarify what is needed to open and close a div in `fenced_divs`
742 (#4039, Tristano Ajmone).
743 + Removed reference to `default.beamer` in docs (#4024).
744 Also added mention of other templates affecting PDF output
745 with different settings.
747pandoc (2.0.1)
749 * Fixed regression in parsing of HTML comments in markdown and other
750 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
751 The parser stopped at the first `>` character, even if it wasn't
752 the end of the comment.
754 * Creole reader (Sascha Wilde):
756 + Fix some minor typos and formatting.
757 + Add additional test on nowiki-block after para.
758 + Fix lists with trailing white space.
760 * LaTeX reader: handle `%` comment right after command.
761 For example, `\emph%`.
763 * Markdown reader: make sure fenced div closers work in lists.
764 Previously the following failed:
766 ::: {.class}
767 1. one
768 2. two
769 :::
771 and you needed a blank line before the closing `:::`.
773 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
774 enabled, Divs will be rendered as fenced divs.
776 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
777 (#4016).
779 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
780 Note: this change may require some changes in CSS rules.
781 `footnoteRef` has become `footnote-ref`, `titleslide` has
782 become `title-slide`, and `footnoteBack` has become `footnote-back`.
784 * JATS writer: Properly pass through author metadata (#4020).
786 * FB2 writer (Alexander Krotov):
788 + Write blocks outside of `<p>` in definitions.
789 + Make bullet lists consistent with ordered lists, repeating
790 the marker for the outer list rather than indenting sublists,
791 since indentation does not work in readers.
792 + Add new style FB2 tests.
794 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
795 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
796 to 'cm'.
798 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
800 * Fix broken reference links in manual (Andrew Dunning, #4014)
802 * Fixed example of slide columns structure in changelog (#4015).
803 Also documented this feature in MANUAL.txt.
806pandoc (2.0.0.1)
808 * EPUB writer:
810 + Fixed filepaths for nonstandard epub-subdirectory values.
811 + Ensure that epub2 is recognized as a non-text format,
812 so that a template is used.
813 + Don't include "prefix" attribute for ibooks for epub2.
814 It doesn't validate.
815 + Fix stylesheet paths; previously we had an incorrect
816 stylesheet path for the cover page and nav page.
818 * LaTeX reader:
820 + Insert space when needed in macro expansion (#4007).
821 Sometimes we need to insert a space after a control sequence
822 to prevent it merging with a following letter.
823 + Allow unbraced arguments for macros (#4007).
824 + Allow body of macro definition to be unbraced (#4007).
826 * Linux package build: ensure that pandoc-citeproc is statically linked.
828 * trypandoc: add native, ms.
830pandoc (2.0)
832 [new features]
834 * New output format `ms` (groff ms). Complete support, including
835 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
836 texmath's new eqn writer to convert math to eqn format, so a ms file
837 produced with this writer should be processed with `groff -ms -e` if
838 it contains math.
840 * New output format `jats` (Journal Article Tag Suite). This is an XML
841 format used in archiving and publishing articles. Note that a
842 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
843 unless a stylesheet is specified using `--css`.
845 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
846 This uses bindings to GitHub's fork of cmark, so it should parse
847 gfm exactly as GitHub does (excepting certain postprocessing
848 steps, involving notifications, emojis, etc.). `markdown_github`
849 has been deprecated in favor of `gfm`.
851 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
853 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
854 This uses bindings to GitHub's fork of cmark. `markdown_github`
855 has been deprecated in favor of `gfm`.
857 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
859 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
861 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
862 Note that there is a new data file, `data/vimwiki.css`, which can
863 be used to display the HTML produced by this reader and
864 pandoc's HTML writer in the style of vimwiki's own HTML
865 export.
867 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
869 * New syntax for Divs, with `fenced_divs` extension enabled by
870 default (#168). This gives an attractive, plain-text way to create
871 containers for block-level content.
873 * Added new syntax for including raw content in any output format,
874 enabled by the `raw_attribute` extension (which is on by default
875 for `markdown` and `multimarkdown`). The syntax is the same as
876 for fenced code blocks or code inlines, only with `{=FORMAT}` for
877 attributes, where `FORMAT` is the name of the output format
878 (e.g., `ms`, `html`).
880 * Implement multicolumn support for slide formats (#1710).
881 The structure expected is:
883 :::::::::::::: {.columns}
884 ::: {.column width="40%"}
885 contents...
886 :::
887 ::: {.column width="60%"}
888 contents...
889 :::
890 ::::::::::::::
892 Support has been added for beamer and all HTML slide formats.
894 * Allows line comments in templates, beginning with `$--` (#3806).
895 (Requires doctemplates 0.2.1.)
897 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
898 (Stefan Dresselhaus, #3663, #2097).
900 * Add `--log` option to save log messages in JSON format to a file (#3392).
902 * Add `--request-header` option, to set request headers when pandoc
903 makes HTTP requests to fetch external resources. For example:
904 `--request-header User-Agent:blah`.
906 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
907 option works like `--filter` but takes pathnames of special lua filters
908 and uses the lua interpreter baked into pandoc, so that no external
909 interpreter is needed. Note that lua filters are all applied before
910 regular filters, regardless of their position on the command line.
911 For documentation of lua filters, see `doc/lua-filters.md`.
913 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
914 This contains a JSON representation of `ReaderOptions`, so filters
915 can access it.
917 * Support creation of pdf via groff `ms` and pdfroff.
918 `pandoc -t ms -o output.pdf input.txt`.
920 * Support for PDF generation via HTML and `weasyprint` or `prince`
921 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
923 * Added `--epub-subdirectory` option (#3720). This specifies the
924 subdirectory in the OCF container that holds the EPUB specific content.
925 We now put all EPUB related content in an `EPUB/` subdirectory by default
926 (later this will be configurable).
928 ```
929 mimetype
930 META-INF/
931 com.apple.ibooks.display-options.xml
932 container.xml
933 EPUB/ <<--configurable-->>
934 fonts/ <<--static-->>
935 font.otf
936 media/ <<--static-->>
937 cover.jpg
938 fig1.jpg
939 styles/ <<--static-->>
940 stylesheet.css
941 content.opf
942 toc.ncx
943 text/ <<--static-->>
944 ch001.xhtml
945 ```
947 * Added `--resource-path=SEARCHPATH` command line option (#852).
948 SEARCHPATH is separated by the usual character, depending on OS
949 (: on unix, ; on windows). Default resource path is just working
950 directory. However, the working directory must be explicitly
951 specified if the `--resource-path` option is used.
953 * Added --abbreviations=FILE option for custom abbreviations file
954 (#256). Default abbreviations file (`data/abbreviations`) contains
955 a list of strings that will be recognized by pandoc's
956 Markdown parser as abbreviations. (A nonbreaking space will
957 be inserted after the period, preventing a sentence space in
958 formats like LaTeX.) Users can override the default by putting a file
959 abbreviations in their user data directory (`~/.pandoc` on *nix).
961 * Allow a theme file as argument to `--highlight-style`.
962 Also include a sample, `default.theme`, in `data/`.
964 * Allow `--syntax-definition` option for dynamic loading of syntax
965 highlighting definitions (#3334).
967 * Lists in `markdown` by default now use the CommonMark variable
968 nesting rules (#3511). The indentation required for a block-level
969 item to be included in a list item is no longer fixed, but is
970 determined by the first line of the list item. To be included in
971 the list item, a block must be indented to the level of the first
972 non-space content after the list marker. Exception: if are 5 or more
973 spaces after the list marker, then the content is interpreted as an
974 indented code block, and continuation paragraphs must be indented
975 two spaces beyond the end of the list marker. See the CommonMark
976 spec for more details and examples.
978 Documents that adhere to the four-space rule should, in most cases,
979 be parsed the same way by the new rules. Here are some examples
980 of texts that will be parsed differently:
982 - a
983 - b
985 will be parsed as a list item with a sublist; under the four-space
986 rule, it would be a list with two items.
988 - a
990 code
992 Here we have an indented code block under the list item, even though it
993 is only indented six spaces from the margin, because it is four spaces
994 past the point where a continuation paragraph could begin. With the
995 four-space rule, this would be a regular paragraph rather than a code
996 block.
998 - a
1000 code
1002 Here the code block will start with two spaces, whereas under
1003 the four-space rule, it would start with `code`. With the four-space
1004 rule, indented code under a list item always must be indented eight
1005 spaces from the margin, while the new rules require only that it
1006 be indented four spaces from the beginning of the first non-space
1007 text after the list marker (here, `a`).
1009 This change was motivated by a slew of bug reports from people
1010 who expected lists to work differently (#3125, #2367, #2575, #2210,
1011 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
1012 of CommonMark (now used by GitHub, for example). Those who
1013 prefer the old behavior can use `-f markdown+four_space_rule`.
1015 * Added `four_space_rule` extension. This triggers the old pandoc
1016 parsing rule for content nested under list items (the "four space
1017 rule").
1019 * Added `spaced_reference_links` extension (#2602). It allows whitespace
1020 between the two parts of a reference link: e.g.
1022 [a] [b]
1024 [b]: url
1026 This was previously enabled by default; now it is now forbidden by default.
1028 * Add `space_in_atx_header` extension (#3512). This is enabled by default
1029 in pandoc and GitHub markdown but not the other flavors.
1030 This requires a space between the opening #'s and the header
1031 text in ATX headers (as CommonMark does but many other implementations
1032 do not). This is desirable to avoid falsely capturing things like
1034 #hashtag
1036 or
1038 #5
1040 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
1041 #3431).
1043 * Allow ibooks-specific metadata in epubs (#2693). You can now have
1044 the following fields in your YAML metadata, and it will be treated
1045 appropriately in the generated EPUB:
1047 ```
1048 ibooks:
1049 version: 1.3.4
1050 specified-fonts: false
1051 ipad-orientation-lock: portrait-only
1052 iphone-orientation-lock: landscape-only
1053 binding: true
1054 scroll-axis: vertical
1055 ```
1058 [behavior changes]
1060 * Reader functions no longer presuppose that CRs have been
1061 stripped from the input. (They strip CRs themselves, before
1062 parsing, to simplify the parsers.)
1064 * Added support for translations (localization) (#3559).
1065 Currently this only affects the LaTeX reader, for things
1066 like `\figurename`. Translation data files for 46 languages
1067 can be found in `data/translations`.
1069 * Make `--ascii` work with DocBook output too.
1071 * Rename `--latex-engine` to `--pdf-engine`,
1072 and `--latex-engine-opt` to `--pdf-engine-opt`.
1074 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
1075 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
1076 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
1077 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
1079 * With `--filter` R filters are now recognized, even if they are
1080 not executable (#3940, #3941, Andrie de Vries).
1082 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
1084 * Make epub an alias for epub3, not epub2.
1086 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
1087 Multiple stylesheets may be used. Stylesheets will be taken both from
1088 `--css` and from the `stylesheet` metadata field (which can contain
1089 either a file path or a list of them).
1091 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
1092 The argument was for a bridge JavaScript that used to be necessary
1093 in 2004. We have removed the script already.
1095 * `--katex` improvements. The latest version is used, and the
1096 autoload script is loaded by default.
1098 * Change MathJax CDN default since old one is shutting down (#3544).
1099 Note: The new URL requires a version number, which we'll have
1100 to update manually in subsequent pandoc releases in order to
1101 take advantage of mathjax improvements.
1103 * `--self-contained`: don't incorporate elements with `data-external="1"`
1104 (#2656). You can leave an external link as it is by adding the attribute
1105 data-external="1" to the element. Pandoc will then not try to
1106 incorporate its content when `--self-contained` is used. This is
1107 similar to a feature already supported by the EPUB writer.
1109 * Allow `--extract-media` to work with non-binary input formats
1110 (#1583, #2289). If `--extract-media` is supplied with a non-binary
1111 input format, pandoc will attempt to extract the contents of all
1112 linked images, whether in local files, data: uris, or external uris.
1113 They will be named based on the sha1 hash of the contents.
1115 * Make `papersize: a4` work regardless of the case of `a4`.
1116 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
1118 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
1120 * Underlined elements are now treated consistently by readers
1121 (#2270, hftf); they are always put in a Span with class `underline`.
1122 This allows the user to treat them differently from other emphasis,
1123 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
1124 have been changed.
1126 * Improved behavior of `auto_identifiers` when there are explicit ids
1127 (#1745). Previously only autogenerated ids were added to the list
1128 of header identifiers in state, so explicit ids weren't taken
1129 into account when generating unique identifiers. Duplicated
1130 identifiers could result. This simple fix ensures that explicitly given
1131 identifiers are also taken into account.
1133 * Use `table-of-contents` for contents of toc, make `toc` a boolean
1134 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
1135 This allows you to set `toc: true` in the metadata; this
1136 previously produced strange results in some output formats.
1137 For backwards compatibility, `toc` is still set to the
1138 toc contents. But it is recommended that you update templates
1139 to use `table-of-contents` for the toc contents and `toc`
1140 for a boolean flag.
1142 * Change behavior with binary format output to stdout.
1143 Previously, for binary formats, output to stdout was disabled
1144 unless we could detect that the output was being piped (and not
1145 sent to the terminal). Unfortunately, such detection is not
1146 possible on Windows, leaving windows users no way to pipe binary
1147 output. So we have changed the behavior in the following way:
1149 + Output to stdout is allowed when it can be determined that
1150 the output is being piped (on non-Windows platforms).
1151 + If the `-o` option is not used, binary output is never sent
1152 to stdout by default; instead, an error is raised.
1153 + If `-o -` is used, binary output is sent to stdout, regardless
1154 of whether it is being piped. This works on Windows too.
1156 * Better error behavior: uses of `error` have been replaced by
1157 raising of `PandocError`, which can be trapped and handled by the
1158 calling program.
1160 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
1161 GitHub has two Markdown modes, one for long-form documents like READMEs
1162 and one for short things like issue coments. In issue comments, a line
1163 break is treated as a hard line break. In README, wikis, etc., it is
1164 treated as a space as in regular Markdown. Since pandoc is more likely to
1165 be used to convert long-form documents from GitHub Markdown,
1166 `-hard_line_breaks` is a better default.
1168 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
1170 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
1171 Previously they would be transmitted to the template without any
1172 escaping. Note that `--M title='*foo*'` yields a different result from
1174 ---
1175 title: *foo*
1176 ---
1178 In the latter case, we have emphasis; in the former case, just
1179 a string with literal asterisks (which will be escaped
1180 in formats, like Markdown, that require it).
1182 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
1184 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
1185 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
1186 it is valid HTML5. HTML4 is not affected. This will allow us to use
1187 custom attributes in pandoc without producing invalid HTML. (With help
1188 from Wandmalfarbe, #3817.)
1190 * Plain writer: improved super/subscript rendering. We now
1191 handle more non-digit characters for which there are
1192 sub/superscripted unicode characters. When unicode
1193 sub/superscripted characters are not available, we use
1194 `_(..)` or `^(..)` (#3518).
1196 * Docbook, JATS, TEI writers: print INFO message when omitting interior
1197 header (#3750). This only applies to section headers inside list items,
1198 e.g., which were otherwise silently omitted.
1200 * Change to `--reference-links` in Markdown writer (#3701). With
1201 `--reference-location` of `section` or `block`, pandoc will now repeat
1202 references that have been used in earlier sections. The Markdown
1203 reader has also been modified, so that *exactly* repeated references
1204 do not generate a warning, only references with the same label but
1205 different targets. The idea is that, with references after every block,
1206 one might want to repeat references sometimes.
1208 * ODT/OpenDocument writer:
1210 + Support `lang` attribute (#1667).
1211 + Added support for `--toc` (#2836). Thanks to @anayrat.
1213 * Docx writer:
1215 + `lang` meta, see #1667 (Mauro Bieg, #3515).
1216 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
1217 + Use `Table` rather than `Table Normal` for table style (#3275).
1218 `Table Normal` is the default table style and can't be modified.
1219 + Pass through comments (#2994). We assume that comments are defined as
1220 parsed by the docx reader:
1222 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
1223 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
1224 have a comment <span class="comment-end" id="0"></span>on it.
1226 We assume also that the id attributes are unique and properly
1227 matched between comment-start and comment-end.
1228 + Bookmark improvements. Bookmark start/end now surrounds content rather
1229 than preceding it. Bookmarks generated for Div with id
1230 (jgm/pandoc-citeproc#205).
1231 + Add `keywords` metadata to docx document properties (Ian).
1233 * RST writer: support unknown interpreted text roles by
1234 parsing them as `Span` with `role` attributes (#3407). This
1235 way they can be manipulated in the AST.
1237 * HTML writer:
1239 + Line block: Use class instead of style attribute (#1623). We now
1240 issue `<div class="line-block">` and include a default definition
1241 for `line-block` in the default templates, instead of hard-coding a
1242 `style` on the div.
1243 + Add class `footnoteBack` to footnote back references (Timm Albers).
1244 This allows for easier CSS styling.
1245 + Render SmallCaps as span with smallcaps class (#1592), rather than
1246 using a style attribute directly. This gives the user more flexibility
1247 in styling small caps in CSS.
1248 + With reveal.js we use `data-src` instead of `src` for images for
1249 lazy loading.
1250 + Special-case `.stretch` class for images in reveal.js (#1291).
1251 Now in reveal.js, an image with class `stretch` in a paragraph
1252 by itself will stretch to fill the whole screen, with no
1253 caption or figure environment.
1255 * Added warnings for non-rendered blocks to writers.
1257 * Writers now raise an error on template failure.
1259 * When creating a PDF via LaTeX, warn if the font is missing some
1260 characters (#3742).
1262 * Remove initial check for PDF-creating program (#3819).
1263 Instead, just try running it and raise the exception if it
1264 isn't found at that point. This improves things for users of Cygwin
1265 on Windows, where the executable won't be found by `findExecutable`
1266 unless `.exe` is added. The same exception is raised as before, but
1267 at a later point.
1269 * Readers issue warning for duplicate header identifiers (#1745).
1270 Autogenerated header identifiers are given suffixes so as not to clash
1271 with previously used header identifiers. But they may still coincide with
1272 an explicit identifier that is given for a header later in the document,
1273 or with an identifier on a div, span, link, or image. We now issue
1274 a warning in this case, so users can supply an explicit identifier.
1276 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
1277 and `raw_html` extensions.
1279 * Markdown reader:
1281 + Don't allow backslash + newline to affect block structure (#3730).
1282 Note that as a result of this change, the following, which formerly
1283 produced a header with two lines separated by a line break, will
1284 now produce a header followed by a paragraph:
1286 # Hi\
1287 there
1289 This may affect some existing documents that relied on
1290 this undocumented and unintended behavior. This change makes pandoc
1291 more consistent with other Markdown implementations, and with itself
1292 (since the two-space version of a line break doesn't work inside ATX
1293 headers, and neither version works inside Setext headers).
1296 * Org reader (Albert Krewinkel, unless noted):
1298 + Support `table.el` tables (#3314).
1299 + Support macros (#3401).
1300 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
1301 Recognized include types are `example`, `export`, `src`, and
1302 normal org file inclusion. Advanced features like line numbers
1303 and level selection are not implemented yet.
1304 + Interpret more meta value as inlines. The values of the following
1305 meta variables are now interpreted using org-markup instead of
1306 treating them as pure strings: `keywords` (comma-separated list of
1307 inlines), `subtitle` (inline values), `nocite` (inline values, can
1308 be repeated).
1309 + Support `\n` export option (#3940). This turns all newlines in the
1310 text into hard linebreaks.
1312 * RST reader:
1314 + Improved admonition support (#223). We no longer add an
1315 `admonition` class, we just use the class for the type of admonition,
1316 `note` for example. We put the word corresponding to the label in
1317 a paragraph inside a `Div` at the beginning of the admonition with
1318 class `admonition-title`. This is about as close as we can get to
1319 RST's own output.
1320 + Initial support of `.. table` directive. This allows adding captions
1321 to tables.
1322 + Support `.. line-block` directive. This is deprecated but may still
1323 be in older documents.
1324 + Support scale and align attributes of images (#2662).
1325 + Implemented implicit internal header links (#3475).
1326 + Support RST-style citations (#853). The citations appear at the end
1327 of the document as a definition list in a special div with id
1328 `citations`. Citations link to the definitions.
1329 + Recurse into bodies of unknown directives (#3432).
1330 In most cases it's better to preserve the content than
1331 to emit it. This isn't guaranteed to have good results;
1332 it will fail spectacularly for unknown raw or verbatim directives.
1333 + Handle chained link definitions (#262). For example,
1335 .. _hello:
1336 .. _goodbye: example.com
1338 Here both `hello` and `goodbye` should link to `example.com`.
1339 + Support anchors (#262). E.g.
1341 `hello`
1343 .. _hello:
1345 paragraph
1347 This is supported by putting "paragraph" in a `Div` with id `hello`.
1348 + Support `:widths:` attribute for table directive.
1349 + Implement csv-table directive (#3533). Most attributes are supported,
1350 including `:file:` and `:url:`.
1351 + Support unknown interpreted text roles by parsing them as Span
1352 with "role" attributes (#3407). This way they can be manipulated in
1353 the AST.
1355 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
1357 * LaTeX reader:
1359 + Implemented `\graphicspath` (#736).
1360 + Properly handle column prefixes/suffixes. For example, in
1361 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
1362 each cell will be interpreted as if it has a `$`
1363 before its content and a `$` after (math mode).
1364 + Handle komascript `\dedication` (#1845). It now adds a
1365 `dedication` field to metadata. It is up to the user to supply
1366 a template that uses this variable.
1367 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
1368 `sf`, `bf` (#3488). Spans with a class are used when there is
1369 nothing better.
1370 + Expand `\newenvironment` macros (#987).
1371 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
1372 + Better support for subfigure package (#3577).
1373 A figure with two subfigures turns into two pandoc
1374 figures; the subcaptions are used and the main caption
1375 ignored, unless there are no subcaptions.
1376 + Add support for \vdots (Marc Schreiber, #3607).
1377 + Add basic support for hyphenat package (Marc Schreiber, #3603).
1378 + Add basic `\textcolor` support (Marc Schreiber).
1379 + Add support for `tabularx` environment (Marc Schreiber, #3632).
1380 + Better handling of comments inside math environments (#3113).
1381 This solves a problem with commented out `\end{eqnarray}` inside
1382 an eqnarray (among other things).
1383 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
1384 is selected (#3692). Otherwise skip with a warning. This is better
1385 than trying to parse it as text!
1386 + Add `\colorbox` support (Marc Schreiber).
1387 + Set identifiers on Spans used for `\label`.
1388 + Have `\setmainlanguage` set `lang` in metadata.
1389 + Support etoolbox's `\ifstrequal`.
1390 + Support `plainbreak`, `fancybreak` et al from the memoir class
1391 (bucklereed, #3833).
1392 + Support `\let`. Also, fix regular macros so they're expanded at the
1393 point of use, and NOT also the point of definition. `\let` macros,
1394 by contrast, are expanded at the point of definition. Added an
1395 `ExpansionPoint` field to `Macro` to track this difference.
1396 + Support simple `\def` macros. Note that we still don't support
1397 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
1398 + Support \chaptername, \partname, \abstractname, etc. (#3559,
1399 obsoletes #3560).
1400 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
1401 attributes, so they can be handled in filters (Marc Schreiber, #3639)
1402 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
1403 #3589). Acronyms are not resolved by the reader, but acronym and
1404 glossary information is put into attributes on Spans so that they
1405 can be processed in filters.
1406 + Use `Link` instead of `Span` for `\ref`. This makes more sense
1407 semantically and avoids unnecessary `Span [Link]` nestings when
1408 references are resolved.
1409 + Rudimentary support for `\hyperlink`.
1410 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
1411 + Support `\lq`, `\rq`.
1412 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
1413 (#3853).
1414 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
1415 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
1416 + Support `\k` ogonek accent.
1417 + Improve handling of accents. Handle ogonek, and fall back correctly
1418 with forms like `\"{}`.
1419 + Better support for ogonek accents.
1420 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
1421 + Support for `xspace` (Marc Schreiber, #3797).
1422 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
1423 and `\figurename`.
1424 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
1425 level 0 headers, and parts as level -1 headers. After parsing, we
1426 check for the lowest header level, and if it's less than 1 we bump
1427 everything up so that 1 is the lowest header level. So `\part` will
1428 always produce a header; no command-line options are needed.
1429 + Add block version of `\textcolor` (Marc Schreiber).
1430 + `\textcolor` works as inline and block command (Marc Schreiber).
1431 + `\textcolor` will be parse as span at the beginning of a paragraph
1432 (Marc Schreiber).
1433 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
1434 + Improved handling of include files in LaTeX reader (#3971).
1435 Previously `\include` wouldn't work if the included file
1436 contained, e.g., a begin without a matching end.
1437 + Support `\expandafter` (#3983).
1438 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
1439 as a synonym for `\newcommand`.
1440 + Handle `\lettrine` (Mauro Bieg).
1442 * Math improvements due to updates in texmath:
1444 + Improved handling of accents and upper/lower delimiters.
1445 + Support for output in GNU eqn format (used with *roff).
1446 + Allow `\boldsymbol` + a token without braces, and similarly
1447 with other styling commands.
1448 + Improve parsing of `\mathop` to allow multi-character operator names.
1449 + Add thin space after math operators when "faking it with
1450 unicode."
1452 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
1453 instance for `a -> [a]` (pandoc-types). Note that behavior
1454 will be slightly different, since `bottomUp`'s treatment of
1455 a function `[a] -> [a]` is to apply it to each sublist of a
1456 list, while walk applies it only to maximal sublists.
1457 Usually the latter behavior is what is wanted, and the
1458 former can be simulated when needed. But there may be
1459 existing filters that need to be rewritten in light of the
1460 new behavior. Performance should be improved.
1462 * There are some changes to syntax highlighting due to revisions
1463 in the `skylighting` library:
1465 + Support for `powershell` has been added, and many syntax
1466 definitions have been updated.
1467 + Background colors have been added to the `kate` style.
1468 + The way highlighted code blocks are formatted in HTML has
1469 been changed (David Baynard), in ways that may require
1470 changes in hard-coded CSS affecting highlighting.
1471 (If you haven't included hard-coded highlighting CSS in
1472 your template, you needn't change anything.)
1475 [API changes]
1477 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
1478 This contains definitions of the `PandocMonad` typeclass, the
1479 `PandocIO` and `PandocPure` monads, and associated functions.
1481 * Changed types of all writers and readers.
1483 + We now use `Text` instead of `String` in the interface (#3731).
1484 (We have not yet changed the internals of most readers to work
1485 with `Text`, but making this change in the API now opens up a
1486 path to doing that.)
1487 + The result is now of form `m a` with constraint `PandocMonad m`.
1488 Readers and writers can be combined to form monadic values which
1489 can be run using either `runIO` or `runPure`. If `runIO` is used,
1490 then both readers and writers will be able to do IO when needed
1491 (for include files, for example); if `runPure` is used,
1492 then the functions are pure and will not touch IO.
1493 + Where previously you used
1494 `writeRST def (readMarkdown def "[foo](url)")`, now you
1495 would use
1496 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
1498 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
1499 contains reader helper functions formerly defined in the
1500 top-level `Text.Pandoc` module.
1502 + Changed `StringReader` -> `TextReader`.
1503 + `getReader` now returns a pair of a reader and
1504 `Extensions`, instead of building the extensions into the
1505 reader (#3659). The calling code must explicitly set
1506 `readerExtensions` using the `Extensions` returned. The
1507 point of the change is to make it possible for the calling
1508 code to determine what extensions are being used.
1510 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
1511 This contains writer helper functions formerly defined in the
1512 top-level `Text.Pandoc` module.
1514 + Changed `StringWriter` -> `TextWriter`.
1515 + `getWriter` now retuns a pair of a reader and
1516 `Extensions`, instead of building the extensions into the
1517 reader (#3659). The calling code must explicitly set
1518 `readerExtensions` using the `Extensions` returned. The
1519 point of the change is to make it possible for the calling
1520 code to determine what extensions are being used.
1522 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
1523 #3514).
1525 * New module `Text.Pandoc.App`. This abstracts out the functionality
1526 of the command line program (`convertWithOpts`), so it can be reproduced
1527 e.g. in a desktop or web application. Instead of exiting, we throw errors
1528 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
1529 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
1530 The module also exports some utility functions for parsing options
1531 and running filters.
1533 * New module `Text.Pandoc.Logging` (exported module) (#3392).
1534 This now contains the `Verbosity` definition previously in
1535 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
1536 eventually be used instead of raw strings for warnings. This will enable
1537 us, among other things, to provide machine-readable warnings if desired.
1538 Include ToJSON instance and showLogMessage. This gives us the possibility
1539 of both machine-readable and human-readable output for log messages.
1541 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
1543 * New module `Text.Pandoc.Translations`, exporting `Term`,
1544 `Translations`, `readTranslations`.
1546 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
1547 `TokType`, `Line`, `Column`.
1549 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
1551 * Expose some previously private modules (#3260). These are often
1552 helpful to people writing their own reader or writer modules:
1554 + `Text.Pandoc.Writers.Shared`
1555 + `Text.Pandoc.Parsing`
1556 + `Text.Pandoc.Asciify`
1557 + `Text.Pandoc.Emoji`
1558 + `Text.Pandoc.ImageSize`
1559 + `Text.Pandoc.Highlighting`
1561 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
1562 Extension parsing and processing functions were defined in the top-level
1563 `Text.Pandoc` module. These functions are moved to the Extensions
1564 submodule as to enable reuse in other submodules.
1566 * Add `Ext_raw_attribute` constructor for `Extension`.
1568 * Add `Ext_fenced_divs` constructor for `Extension'.
1570 * Add `Ext_four_space_rule` constructor in `Extension`.
1572 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
1574 * Add `Monoid` instance for `Extensions`.
1576 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
1578 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
1580 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
1582 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
1584 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
1586 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
1588 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
1590 * Export `setVerbosity` from `Text.Pandoc`.
1592 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
1594 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
1596 * `Text.Pandoc.UTF8`:
1598 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
1599 Define `toString`, `toStringLazy` in terms of them.
1600 + Add new functions parameterized on `Newline`: `writeFileWith`,
1601 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
1603 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
1605 * `Text.Pandoc.Highlighting`:
1607 + `highlighting` now returns an Either rather than Maybe.
1608 This allows us to display error information returned by the skylighting
1609 library. Display a warning if the highlighting library throws an error.
1610 + Add parameter for `SyntaxMap` to `highlight`.
1612 * `Text.Pandoc.Writers.Math`:
1614 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
1615 we only need to update these in one place.
1617 * `Text.Pandoc.SelfContained`:
1619 + Removed `WriterOptions` parameter from `makeSelfContained`.
1620 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
1621 the need to pass MediaBag around and improves exceptions. It also
1622 opens up the possibility of using makeSelfContained purely.
1623 + Export `makeDataURI`.
1625 * `Text.Pandoc.ImageSize`:
1627 + Export `lengthToDim`, new function `scaleDimension`.
1628 + Export `inEm` from ImageSize (#3450).
1629 + Change `showFl` and `show` instance for `Dimension` so
1630 extra decimal places are omitted.
1631 + Added `Em` as a constructor of `Dimension`.
1632 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
1634 * `Text.Pandoc.Templates`:
1636 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
1637 and raises a proper `PandocTemplateError` if there are problems, rather
1638 than failing with uncatchable `error`.
1639 + Change signature of `getDefaultTemplate`. Now it runs in any instance
1640 of `PandocMonad`, and returns a `String` rather than an `Either` value.
1641 And it no longer takes a `datadir` parameter, since this can be
1642 retrieved from `CommonState`.
1644 * `Text.Pandoc.Options`:
1646 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
1647 The EPUB writer now takes its EPUB subdirectory from this option.
1648 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
1649 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
1650 + Add `writerSyntaxMap` to `WriterOptions`.
1651 + Removed `writerEpubStylesheet` from `WriterOptions`.
1652 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
1653 in `CommonState` in `PandocMonad` instances. (And thus it can be used
1654 by readers too.)
1655 + Changed `writerEpubMetadata` to a `Maybe String`.
1656 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
1657 the `latex_macros` reader extension.
1658 + FromJSON/ToJSON instances for `ReaderOptions`.
1659 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
1660 one string (for the KaTeX base URL), rather than two.
1661 + Removed `writerSourceURL` from `WriterOptions`. We now use
1662 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
1664 * `Text.Pandoc.Shared`:
1666 + `tabFilter` now takes a `Text`, not `String`.
1667 + `openURL`: Changed type from an Either. Now it will just raise
1668 an exception to be trapped later.
1669 + Remove `normalizeSpaces` (#1530).
1670 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
1671 + Export a new function `crFilter`.
1672 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
1673 + Provide custom `isURI` that rejects unknown schemes.
1674 (Albert Krewinkel, #2713). We also export the set of known
1675 `schemes`. The new function replaces the function of the same name
1676 from `Network.URI`, as the latter did not check whether a scheme is
1677 well-known. All official IANA schemes (as of 2017-05-22) are
1678 included in the set of known schemes. The four non-official schemes
1679 `doi`, `isbn`, `javascript`, and `pmid` are kept.
1680 + Remove `err`.
1681 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
1682 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
1683 where they are defined in terms of `PandocMonad`
1684 primitives and have different signatures.
1685 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
1686 + Add `underlineSpan`.
1688 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
1690 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
1691 With the new API one can simply use `getLog` after running
1692 the reader.
1694 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
1695 and `rawLaTeXBlock`. (Both now return a `String`, and they are
1696 polymorphic in state.)
1699 [bug fixes and under-the-hood improvements]
1701 * TEI writer: Added identifiers on `<div>` elements.
1703 * DokuWiki reader: Better handling for code block in list item (#3824).
1705 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
1707 * ZimWiki writer: Removed internal formatting from note and table cells,
1708 because ZimWiki does not support it (Alex Ivkin, #3446).
1710 * MediaWiki writer:
1712 + Updated list of syntax highlighting languages (#3461).
1713 Now `r` gets you `<source>` rather than `<code>` (among others).
1714 + Add display attribute on `<math>` tags (#3452). This allows display
1715 math to be rendered properly.
1716 + Remove newline before `</ref>` (#2652).
1717 + Don't softbreak lines inside list items (#3531).
1719 * Org writer:
1721 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
1722 + Add unit tests (Alexander Krotov).
1723 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
1724 + Do not strip `#` from Org anchor links (Alexander Krotov).
1726 * CommonMark writer:
1728 + Avoid excess blank lines at end of output.
1729 + Prefer pipe tables to HTML tables even if it means losing relative
1730 column width information (#3734).
1731 + Support table, strikethrough extensions, when enabled (as with gfm).
1732 Note that we bypass the commonmark writer from cmark and construct our
1733 own pipe tables, with better results.
1734 + Properly support `--wrap=none`.
1735 + Use smallcaps class for `SmallCaps` (#1592).
1736 + Omit "fig:" prefix in image titles. This is used internally to
1737 indicate internal figures.
1739 * RST writer:
1741 + Properly handle table captions.
1742 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
1743 + Implemented `+/-smart` and improved escaping with `+smart`.
1744 + Add empty comments when needed to avoid including a blockquote
1745 in the indented content of a preceding block (#3675).
1746 + Improve grid table output, fix bug with empty rows (#3516).
1747 Uses the new `gridTable` in Writers.Shared, which is here
1748 improved to better handle 0-width cells.
1749 + Remove space at beginning/end of RST code span (#3496). Otherwise
1750 we get invalid RST. There seems to be no way to escape the space.
1751 + Add header anchors when header has non-standard id (#3937).
1752 + Correctly handle inline code containing backticks, using a `:literal:`
1753 role (#3974).
1754 + Don't backslash-escape word-internal punctuation (#3978).
1756 * Markdown writer:
1758 + Don't include variables in metadata blocks. Previously variables set
1759 on the command line were included in e.g. YAML metadata, contrary to
1760 documentation and intentions.
1761 + Improved escaping with `+smart`.
1762 + Fixed grid tables embedded in grid tables (#2834).
1763 + Use span with class 'smallcaps' for SmallCaps, instead of a style
1764 attribute as before (#1592).
1765 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
1766 extension is enabled (#3454). Otherwise in a document starting with
1767 a literal `%` the first line is wrongly interpreted as a title.
1768 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
1769 properly escape things that would otherwise start ordered lists,
1770 such as
1772 ---
1773 title: 1. inline
1774 ...
1775 + Better handling of tables with empty columns (#3337). We now
1776 calculate the number of columns based on the longest row (or the
1777 length of aligns or widths).
1778 + Escape unordered list markers at beginning of paragraph (#3497), to
1779 avoid false interpretation as a list.
1780 + Escape `|` appropriately.
1781 + Ensure space before list at top level (#3487).
1782 + Avoid spurious blanklines at end of document after tables and list,
1783 for example.
1784 + Fixed bugs in simple/multiline list output (#3384).
1785 Previously we got overlong lists with `--wrap=none`. This is fixed.
1786 Previously a multiline list could become a simple list (and would
1787 always become one with `--wrap=none`).
1788 + Don't emit a simple table if `simple_tables` disabled (#3529).
1789 + Case-insensitive reference links (David A Roberts, #3616).
1790 Ensure that we do not generate reference links whose labels differ only
1791 by case. Also allow implicit reference links when the link
1792 text and label are identical up to case.
1793 + Put space before reference link definitions (Mauro Bieg, #3630).
1794 + Better escaping for links (David A. Roberts, #3619). Previously the
1795 Markdown writer would sometimes create links where there were none
1796 in the source. This is now avoided by selectively escaping bracket
1797 characters when they occur in a place where a link might be created.
1798 + Added missing `\n` (David A. Roberts, #3647).
1799 + Fixed duplicated reference links with `--reference-links`
1800 and `--reference-location=section` (#3674). Also ensure that there
1801 are no empty link references `[]`.
1802 + Avoid inline surround-marking with empty content (#3715).
1803 E.g. we don't want `<strong></strong>` to become `****`.
1804 Similarly for emphasis, super/subscript, strikeout.
1805 + Don't allow soft break in header (#3736).
1806 + Make sure `plain`, `markdown_github`, etc. work for raw.
1807 Previously only `markdown` worked. Note: currently a raw block labeled
1808 `markdown_github` will be printed for any `markdown` format.
1809 + Ensure that `+` and `-` are escaped properly so they don't cause
1810 spurious lists (#3773). Previously they were only
1811 if succeeded by a space, not if they were at end of line.
1812 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
1813 even if the table has relative width information (#3734).
1814 + Markdown writer: don't crash on `Str ""`.
1815 + Make `Span` with null attribute transparent. That is, we don't use
1816 brackets or `<span>` tags to mark spans when there are no attributes;
1817 we simply output the contents.
1818 + Escape pipe characters when `pipe_tables` enabled (#3887).
1819 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
1820 we backslash escape these. Otherwise we use entities as before.
1821 + When writing plain, don't use `&nbsp;` to separate list and indented
1822 code. There's no need for it in this context, since this isn't to be
1823 interpreted using Markdown rules.
1824 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
1825 HTML links containing classes originally now preserve them when using
1826 JavaScript email obfuscation.
1827 + Render `SmallCaps` as a native span when `native_spans` are enabled.
1828 + Always write attributes with `bracketed_spans` (d-dorazio).
1830 * Man writer:
1832 + Fix handling of nested font commands (#3568). Previously pandoc emitted
1833 incorrect markup for bold + italic, for example, or bold + code.
1834 + Avoid error for definition lists with no definitions (#3832).
1836 * DocBook writer:
1838 + Fix internal links with `writerIdentifierPrefix opt`
1839 (#3397, Mauro Bieg).
1841 * Docx writer:
1843 + Don't include bookmarks on headers unless non-null id (#3476).
1844 + Support 9 levels of headers (#1642).
1845 + Allow 9 list levels (#3519).
1846 + Don't take `distArchive` from datadir (#3322). The docx writer takes
1847 components from the distribution's version of `reference.docx` when it
1848 can't find them in a user's custom `reference.docx`. Previously, we
1849 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
1850 to be used as the distribution's reference.docx. This led to a
1851 bizarre situation where pandoc would produce a good docx using
1852 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
1853 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
1854 + Fixed handling of soft hyphen (0173) (#3691).
1855 + Better handling of keywords (#3719).
1856 + Cleaner code for handling dir and style attributes for `Div`.
1857 + Use `Set` for dynamic styles to avoid duplicates.
1858 + Removed redundant element from data/docx/word/numbering.xml.
1859 The elements we need are generated when the document is
1860 compiled; this didn't do anything.
1861 + Activate `evenAndOddHeaders` from reference docx (#3901,
1862 Augustín Martín Barbero).
1864 * ODT/OpenDocument writer:
1866 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
1867 + Use more widely available bullet characters (#1400). The old
1868 characters weren't available in some font sets. These seem to work
1869 well on Windows and Linux versions of LibreOffice.
1870 + Wider labels for lists (#2421). This avoids overly narrow labels for
1871 ordered lists with `()` delimiters. However, arguably it creates
1872 overly wide labels for bullets. Also, lists now start flush with
1873 the margin, rather than indented.
1874 + Fixed dropped elements in some ordered lists (#2434).
1876 * FB2 writer:
1878 + Don't render `RawBlock` as code.
1879 + Don't fail with an error on interior headers (e.g. in list) (#3750).
1880 Instead, omit them with an INFO message.
1881 + Add support for "lang" metadata (Alexander Krotov, #3625).
1882 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
1883 produced one paragraph with `<empty-line/>` elements, which are not
1884 allowed inside `<p>` according to FB2 schema.
1885 + Replace `concatMap` with `cMap` (Alexander Krotov).
1886 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
1887 Krotov, #4004)
1889 * HTML writer:
1891 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
1892 + Render raw inline environments when `--mathjax` used (#3816).
1893 We previously did this only with raw blocks, on the assumption
1894 that math environments would always be raw blocks. This has changed
1895 since we now parse them as inline environments.
1896 + Ensure we don't get two style attributes for width and height.
1897 + Report when not rendering raw inline/block.
1898 + Issue warning if no title specified and template used (#3473).
1899 + Info message if `lang` is unspecified (#3486).
1900 + Removed unused parameter in `dimensionsToAttributeList`.
1901 + Avoid two class attributes when adding `uri` class (#3716).
1902 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
1903 Bieg).
1904 + Use revealjs's math plugin for mathjax (#3743). This is a thin
1905 wrapper around mathjax that makes math look better on revealjs.
1906 + Slidy: use h1 for all slides, even if they were originally
1907 level 2 headers (#3566). Otherwise the built-in table of contents
1908 in Slidy breaks.
1910 * LaTeX writer:
1912 + Don't render LaTeX images with data: URIs (#3636). Note that
1913 `--extract-media` can be used when the input contains data: URIs.
1914 + Make highlighted code blocks work in footnotes (Timm Albers).
1915 + Don't use figure inside table cell (#3836).
1916 + Use proper code for list enumerators (#3891). This should fix problems
1917 with lists that don't use arabic numerals.
1918 + Always add hypertarget when there's a non-empty identifier (#2719).
1919 Previously the hypertargets were only added when there was actually
1920 a link to that identifier.
1921 + Use `%` after hypertarget before code block.
1922 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
1923 fixes formatting problems in beamer citations).
1924 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
1925 of item disappear or are misplaced. Use `\texttt` instead.
1926 + Fix problem with escaping in `lstinline` (#1629). Previously the
1927 LaTeX writer created invalid LaTeX when `--listings` was specified and
1928 a code span occured inside emphasis or another construction.
1929 + Fix error with line breaks after empty content (#2874). LaTeX
1930 requires something before a line break, so we insert a `~` if no
1931 printable content has yet been emitted.
1932 + Use BCP47 parser.
1933 + Fixed detection of otherlangs (#3770). We weren't recursing into
1934 inline contexts.
1935 + Handle language in inline code with `--listings` (#3422).
1936 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
1937 The textcomp package allows pdfLaTeX to parse `€` directly, making the
1938 `\euro` command unneeded.
1939 + Fixed footnotes in table captions (#2378). Note that if the table has
1940 a first page header and a continuation page header, the notes will
1941 appear only on the first occurrence of the header.
1942 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
1943 Previously you could link to a header above or below slide level but
1944 not *to* slide level. This commit changes that. Hypertargets are
1945 inserted inside frame titles; technically the reference is to just
1946 after the title, but in normal use (where slides are viewed full
1947 screen in a slide show), this does not matter.
1948 + Remove `\strut` at beginning of table cells (#3436). This fixes a
1949 problem with alignment of lists in table cells. The `\strut` at the
1950 end seems to be enough to avoid the too-close spacing that motivated
1951 addition of the strut in #1573.
1952 + Add partial siunitx Support (Marc Schreiber, #3588).
1954 * ConTeXt writer:
1956 + Refactored to use BCP47 module.
1957 + Remove unnecessary `$` (Alexander Krotov, #3482).
1958 + Use header identifiers for chapters (#3968).
1960 * EPUB writer:
1962 + `title_page.xhtml` is now put in `text/`.
1963 + Don't strip formatting in TOC (#1611).
1965 * Textile reader:
1967 + Fix bug for certain links in table cells (#3667).
1968 + Allow 'pre' code in list item (#3916).
1970 * HTML reader:
1972 + Added warnings for ignored material (#3392).
1973 + Better sanity checks to avoid parsing unintended things as
1974 raw HTML in the Markdown reader (#3257).
1975 + Revise treatment of `li` with `id` attribute (#3596). Previously we
1976 always added an empty div before the list item, but this created
1977 problems with spacing in tight lists. Now we do this: If the list
1978 item contents begin with a `Plain` block, we modify the `Plain`
1979 block by adding a `Span` around its contents. Otherwise, we add a
1980 `Div` around the contents of the list item (instead of adding an
1981 empty `Div` to the beginning, as before).
1982 + Add `details` tag to list of block tags (#3694).
1983 + Removed `button` from block tag list (#3717). It is already in the
1984 `eitherBlockOrInlineTag` list, and should be both places.
1985 + Use `Set`s instead of lists for block tag lookup.
1986 + Rewrote to use `Text` throughout. Effect on memory usage is modest
1987 (< 10%).
1988 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
1989 #3765).
1990 + Ensure that paragraphs are closed properly when the parent block
1991 element closes, even without `</p>` (#3794).
1992 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
1993 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
1994 `<main>` closes `<p>` and behaves like a block element generally
1995 + Support column alignments (#1881). These can be set either
1996 with a `width` attribute or with `text-width` in a `style` attribute.
1997 + Modified state type to be an instance of `HasLogMessages`, so
1998 `registerHeader` can issue warnings.
1999 + `</td>` or `</th>` should close any open block tag (#3991).
2000 + `<td>` should close an open `<th>` or `<td>`.
2001 + `htmlTag` improvements (#3989). We previously failed on cases
2002 where an attribute contained a `>` character. This patch fixes the
2003 bug, which especially affects raw HTML in Markdown.
2005 * Txt2Tags reader:
2007 + Newline is not indentation (Alexander Krotov).
2009 * MediaWiki reader:
2011 + Allow extra hyphens after `|-` in tables (#2649).
2012 + Allow blank line after table start (#2649).
2013 + Fixed more table issues (#2649).
2014 + Ensure that list starts begin at left margin (#2606). Including when
2015 they're in tables or other list items.
2016 + Make smart double quotes depend on `smart` extension (#3585).
2017 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
2018 + Modified state type to be an instance of `HasLogMessages`, so
2019 `registerHeader` can issue warnings.
2021 * TWiki reader (Alexander Krotov):
2023 + Remove unnecessary `$` (#3597).
2024 + Simplify `linkText` (#3605).
2026 * EPUB reader:
2028 + Minor refactoring, avoiding explicit MediaBag handling.
2029 This all works behind the scenes in CommonState plumbing.
2031 * Docx reader:
2033 + Don't drop smartTag contents (#2242).
2034 + Handle local namespace declarations (#3365). Previously we didn't
2035 recognize math, for example, when the xmlns declaration occured on
2036 the element and not the root.
2037 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
2038 does the work of `normalizeSpaces` as well, so we avoid the need for
2039 that function here.
2040 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
2041 paragraphs styled with "HeadingN" as "nth-level header." But if a
2042 document has a custom style named "Heading0", this will produce a
2043 0-level header, which shouldn't exist. We only parse this style
2044 if N>0. Otherwise we treat it as a normal style name, and
2045 follow its dependencies, if any.
2046 + Add tests for avoiding zero-level header (Jesse Rosenthal).
2048 * ODT reader:
2050 + Replaced `collectRights` with Rights from `Data.Either`.
2051 + Remove dead code (Albert Krewinkel).
2053 * Org reader (Albert Krewinkel, unless noted).
2055 + Don't allow tables inside list items (John MacFarlane, #3499).
2056 + Disallow tables on list marker lines (#3499).
2057 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
2058 + Allow emphasized text to be followed by `[` (#3577).
2059 + Handle line numbering switch for src blocks.
2060 The line-numbering switch that can be given to source blocks (`-n` with
2061 an start number as an optional parameter) is parsed and translated to a
2062 class/key-value combination used by highlighting and other readers and
2063 writers.
2064 + Stop adding rundoc prefix to src params. Source block parameter names
2065 are no longer prefixed with `rundoc`. This was intended to simplify
2066 working with the rundoc project, a babel runner. However, the rundoc
2067 project is unmaintained, and adding those markers is not the reader's
2068 job anyway. The original language that is specified for a source
2069 element is now retained as the `data-org-language` attribute and only
2070 added if it differs from the translated language.
2071 + Allow multi-word arguments to src block params (#3477). The reader now
2072 correctly parses src block parameter list even if parameter arguments
2073 contain multiple words.
2074 + Avoid creating `nullMeta` by applying `setMeta` directly
2075 (Alexander Krotov).
2076 + Replace `sequence . map` with `mapM`.
2077 + Fix smart parsing behavior. Parsing of smart quotes and special
2078 characters can either be enabled via the `smart` language extension or
2079 the `'` and `-` export options. Smart parsing is active if either the
2080 extension or export option is enabled. Only smart parsing of special
2081 characters (like ellipses and en and em dashes) is enabled by default,
2082 while smart quotes are disabled. Previously, all smart parsing was
2083 disabled unless the language extension was enabled.
2084 + Subject full doc tree to headline transformations (Albert Krewinkel,
2085 #3695). Emacs parses org documents into a tree structure, which is
2086 then post-processed during exporting. The reader is changed to do the
2087 same, turning the document into a single tree of headlines starting
2088 at level 0.
2089 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
2090 cite keys included special characters also at the end. This caused
2091 problems when citations occur right before colons or at the end of
2092 a sentence. With this change, all non alphanumeric characters at
2093 the end of a cite key are ignored. This also adds `,` to the list
2094 of special characters that are legal in cite keys to better mirror
2095 the behaviour of org-export.
2096 + Fix module names in haddock comments. Copy-pasting had lead to
2097 haddock module descriptions containing the wrong module names.
2098 + Recognize babel result blocks with attributes (#3706). Babel
2099 result blocks can have block attributes like captions and names.
2100 Result blocks with attributes were not recognized and were parsed
2101 as normal blocks without attributes.
2102 + Include tags in headlines. The Emacs default is to include tags in the
2103 headline when exporting. Instead of just empty spans, which contain the
2104 tag name as attribute, tags are rendered as small caps and wrapped in
2105 those spans. Non-breaking spaces serve as separators for multiple tags.
2106 + Respect export option for tags (#3713). Tags are appended to
2107 headlines by default, but will be omitted when the `tags` export option
2108 is set to nil.
2109 + Use `tag-name` attribute instead of `data-tag-name`.
2110 + Use `org-language` attribute rather than `data-org-language`.
2111 + Modified state type to be an instance of `HasLogMessages`, so
2112 `registerHeader` can issue warnings.
2113 + End footnotes after two blank lines. Footnotes can not only be
2114 terminated by the start of a new footnote or a header, but also by two
2115 consecutive blank lines.
2116 + Update emphasis border chars (#3933). The org reader was updated to
2117 match current org-mode behavior: the set of characters which are
2118 acceptable to occur as the first or last character in an org emphasis
2119 have been changed and now allows all non-whitespace chars at the
2120 inner border of emphasized text (see `org-emphasis-regexp-components`).
2122 * RST reader:
2124 + Fixed small bug in list parsing (#3432). Previously the parser didn't
2125 handle properly this case:
2127 * - a
2128 - b
2129 * - c
2130 - d
2131 + Handle multiline cells in simple tables (#1166).
2132 + Parse list table directive (Keiichiro Shikano, #3432).
2133 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
2134 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
2135 + Reorganize block parsers for ~20% faster parsing.
2136 + Fixed `..include::` directive (#3880).
2137 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
2138 Previously pandoc would sometimes combine two line blocks separated
2139 by blanks, and ignore trailing blank lines within the line block.
2140 + Fix indirect hyperlink targets (#512).
2142 * Markdown reader:
2144 + Allow attributes in reference links to start on next line (#3674).
2145 + Parse YAML metadata in a context that sees footnotes defined in
2146 the body of the document (#1279).
2147 + When splitting pipe table cells, skip tex math (#3481).
2148 You might have a `|` character inside math. (Or for that matter
2149 something that the parser might mistake for raw HTML.)
2150 + Treat span with class `smallcaps` as SmallCaps.
2151 This allows users to specify small caps in Markdown this way:
2152 `[my text]{.smallcaps}` (#1592).
2153 + Fixed internal header links (#2397).
2154 This patch also adds `shortcut_reference_links` to the list
2155 of mmd extensions.
2156 + Treat certain environments as inline
2157 when they occur without space surrounding them (#3309, #2171).
2158 E.g. equation, math. This avoids incorrect vertical space
2159 around equations.
2160 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
2161 + Allow latex macro definitions indented 1-3 spaces.
2162 Previously they only worked if nonindented.
2163 + Improved parsing of indented raw HTML blocks (#1841).
2164 Previously we inadvertently interpreted indented HTML as
2165 code blocks. This was a regression. We now seek to determine the
2166 indentation level of the contents of an HTML block, and (optionally)
2167 skip that much indentation. As a side effect, indentation may be
2168 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
2169 used. This is better than having things interpreted as indented
2170 code blocks.
2171 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
2172 + Warn for notes defined but not used (#1718).
2173 + Use `anyLineNewline` (Alexander Krotov).
2174 + Interpret YAML metadata as Inlines when possible (#3755). If
2175 the metadata field is all on one line, we try to interpret it as
2176 Inlines, and only try parsing as Blocks if that fails. If it
2177 extends over one line (including possibly the `|` or `>` character
2178 signaling an indented block), then we parse as Blocks. This was
2179 motivated by some German users finding that `date: '22. Juin 2017'`
2180 got parsed as an ordered list.
2181 + Fixed spurious parsing as citation as reference def (#3840).
2182 We now disallow reference keys starting with `@` if the
2183 `citations` extension is enabled.
2184 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
2185 Previously only `[-@roe]` (with brackets) was recognized as
2186 suppress-author, and `-@roe` was treated the same as `@roe`.
2187 + Fixed parsing of fenced code after list when there is no intervening
2188 blank line (#3733).
2189 + Allow raw latex commands starting with `\start` (#3558). Previously
2190 these weren't allowed because they were interpreted as starting
2191 ConTeXt environments, even without a corresponding `\stop`...
2192 + Added `inlines`, `inlines1`.
2193 + Require nonempty alt text for `implicit_figures` (#2844).
2194 A figure with an empty caption doesn't make sense.
2195 + Removed texmath macro material; now all this is handled
2196 in the LaTeX reader functions.
2197 + Fixed bug with indented code following raw LaTeX (#3947).
2199 * LaTeX reader:
2201 + Rewrote LaTeX reader with proper tokenization (#1390,
2202 #2118, #3236, #3779, #934, #982). This rewrite is primarily
2203 motivated by the need to get macros working properly. A side benefit
2204 is that the reader is significantly faster. We now tokenize the
2205 input text, then parse the token stream. Macros modify the token
2206 stream, so they should now be effective in any context, including
2207 math. Thus, we no longer need the clunky macro processing
2208 capacities of texmath.
2209 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
2210 + Allow `\newcommand\foo{blah}` without braces.
2211 + Support `\lstinputlisting` (#2116).
2212 + Issue warnings when skipping unknown latex commands (#3392).
2213 + Include contents of `\parbox`.
2214 + Allow `\hspace` and `\vspace` to count as raw block or inline.
2215 Previously we would refuse to parse anything as raw inline if
2216 it was in the `blockCommands` list. Now we allow exceptions
2217 if they're listed under ignoreInlines in inlineCommands.
2218 This should make it easier e.g. to include an `\hspace`
2219 between two side-by-side raw LaTeX tables.
2220 + Don't drop contents of `\hypertarget`.
2221 + Handle spaces before `\cite` arguments.
2222 + Allow newpage, clearpage, pagebreak in inline contexts as well as
2223 block contexts (#3494).
2224 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
2225 + Use `pMacroDefinition` in macro (for more direct parsing).
2226 Note that this means that `macro` will now parse one
2227 macro at a time, rather than parsing a whole group together.
2228 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
2229 commands are parsed as raw if `+raw_tex`; otherwise, their argument
2230 is parsed as a bracketed string.
2231 + Don't crash on empty `enumerate` environment (#3707).
2232 + Handle escaped `&` inside table cell (#3708).
2233 + Handle block structure inside table cells (#3709). `minipage` is no
2234 longer required.
2235 + Handle some width specifiers on table columns (#3709). Currently
2236 we only handle the form `0.9\linewidth`. Anything else would have
2237 to be converted to a percentage, using some kind arbitrary assumptions
2238 about line widths.
2239 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
2240 LaTeX reader's treatment of raw commands, but it also affects the
2241 Markdown reader.
2242 + Fixed regression with starred environment names (#3803).
2243 + Handle optional args in raw `\titleformat` (#3804).
2244 + Improved heuristic for raw block/inline. An unknown command at the
2245 beginning of the line that could be either block or inline is
2246 treated as block if we have a sequence of block commands followed by
2247 a newline or a `\startXXX` command (which might start a raw ConTeXt
2248 environment).
2249 + Don't remove macro definitions from the output, even if
2250 `Ext_latex_macros` is set, so that macros will be applied.
2251 Since they're only applied to math in Markdown, removing the macros
2252 can have bad effects. Even for math macros, keeping them should be
2253 harmless.
2254 + Removed `macro`. It is no longer necessary, since the
2255 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
2256 the need for a separate `latexMacro` parser in the Markdown reader.
2257 + Use `label` instead of `data-label` for label in caption (#3639).
2258 + Fixed space after \figurename etc.
2259 + Resolve references to section numbers.
2260 + Fix `\let\a=0` case, with single character token.
2261 + Allow `@` as a letter in control sequences. `@` is commonly used
2262 in macros using `\makeatletter`. Ideally we'd make the tokenizer
2263 sensitive to `\makeatletter` and `\makeatother`, but until then this
2264 seems a good change.
2265 + Track header numbers and correlate with labels.
2266 + Allow `]` inside group in option brackets (#3857).
2267 + lstinline with braces can be used (verb cannot be used with braces)
2268 (Marc Schreiber, #3535).
2269 + Fix keyval funtion: pandoc did not parse options in braces correctly
2270 (Marc Schreiber, #3642).
2271 + When parsing raw LaTeX commands, include trailing space (#1773).
2272 Otherwise things like `\noindent foo` break and turn into
2273 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
2274 formats that allow `raw_tex`).
2275 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
2276 `\texttt` contexts.
2277 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
2278 + Allow space before `=` in bracketd options (Ben Firshman).
2279 + Be more forgiving in parsing command options. This was needed, for
2280 example, to make some minted options work.
2281 + Strip off quotes in `\include` filenames.
2283 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
2285 * `Text.Pandoc.PDF`:
2287 + Got `--resource-path` working with PDF output (#852).
2288 + Fetch images when generating PDF via context (#3380).
2289 To do this, we create the temp directory as a subdirectory
2290 of the working directory. Since context mk IV by default looks
2291 for images in the parent directory, this works.
2292 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
2293 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
2294 This reduces code duplication.
2295 + `html2pdf`: use stdin instead of intermediate HTML file
2296 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
2297 doesn't use `TEXINPUTS`.
2299 * `Text.Pandoc.Pretty`:
2301 + Simplified definition of `realLength`.
2302 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
2304 * `Text.Pandoc.MIME`:
2306 + Use `application/javascript` (not `application/x-javascript`).
2307 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
2309 * `Text.Pandoc.ImageSize`:
2311 + Improve SVG image size code (Marc Schreiber, #3580).
2312 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
2314 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
2315 and reduction of memory usage in most of the writers.
2317 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
2319 * `Text.Pandoc.SelfContained`:
2321 + Fixed problem with embedded fonts (#3629).
2322 + Refactored getData from `getDataURI` in `SelfContained`.
2323 + Don't use data URIs for script or style (#3423). Instead, just use
2324 script or style tags with the content inside. The old method with
2325 data URIs prevents certain optimizations outside pandoc. Exception:
2326 data URIs are still used when a script contains `</script>` or a
2327 style contains `</`.
2328 + SelfContained: Handle URL inside material retrieved from a URL
2329 (#3629). This can happen e.g. with an @import of a google web font.
2330 (What is imported is some CSS which contains an url reference
2331 to the font itself.) Also, allow unescaped pipe (|) in URL.
2332 + Load resources from `data-src` (needed for lazy loading in
2333 reveal.js slide shows).
2334 + Handle `data-background-image` attribute on section (#3979).
2336 * `Text.Pandoc.Parsing`:
2338 + Added `indentWith` (Alexander Krotov, #3687).
2339 + Added `stateCitations` to `ParserState`.
2340 + Removed `stateChapters` from `ParserState`.
2341 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
2342 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
2343 + Adjusted type of `insertIncludedFile` so it can be used with token
2344 parser.
2345 + Replace old texmath macro stuff from Parsing. Use Macro from
2346 Text.Pandoc.Readers.LaTeX.Types instead.
2347 + Export `insertIncludedFile`.
2348 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
2349 + Replace partial with total function (Albert Krewinkel).
2350 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
2351 `insertIncludeFile` function is generalized to work with all parser
2352 states which are instances of that class.
2353 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
2354 The `insertIncludeFiles` function was generalized and renamed
2355 to `insertIncludedFiles'`; the specialized versions are based on that.
2356 + `many1Till`: Check for the end condition before parsing (Herwig
2357 Stuetz). By not checking for the end condition before the first
2358 parse, the parser was applied too often, consuming too much of the
2359 input. This only affects `many1Till p end` where `p` matches on a
2360 prefix of `end`.
2361 + Provide `parseFromString` (#3690). This is a verison of
2362 `parseFromString` specialied to ParserState, which resets
2363 `stateLastStrPos` at the end. This is almost always what we want.
2364 This fixes a bug where `_hi_` wasn't treated as emphasis in the
2365 following, because pandoc got confused about the position of the
2366 last word: `- [o] _hi_`.
2367 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
2368 + Fix `blanklines` documentation (Alexander Krotov, #3843).
2369 + Give less misleading line information with `parseWithString`.
2370 Previously positions would be reported past the end of the chunk.
2371 We now reset the source position within the chunk and report
2372 positions "in chunk."
2373 + Add `anyLineNewline` (Alexander Krotov).
2374 + Provide shared F monad functions for Markdown and Org readers
2375 (Albert Krewinkel). The `F` monads used for delayed evaluation
2376 of certain values in the Markdown and Org readers are based on a
2377 shared data type capturing the common pattern of both `F` types.
2378 + Add `returnF` (Alexander Krotov).
2379 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
2380 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
2381 + Added `readerAbbreviations` to `ParserState`. Markdown reader
2382 now consults this to determine what is an abbreviation.
2383 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
2384 parsers for markdown and rst was combined into one single
2385 parser `gridTable`, slightly changing parsing behavior of both
2386 parsers: (1) The markdown parser now compactifies block content
2387 cell-wise: pure text blocks in cells are now treated as paragraphs
2388 only if the cell contains multiple paragraphs, and as plain blocks
2389 otherwise. Before, this was true only for single-column tables. (2)
2390 The rst parser now accepts newlines and multiple blocks in header
2391 cells.
2392 + Generalize tableWith, gridTableWith (Albert Krewinkel).
2393 The parsing functions `tableWith` and `gridTableWith` are generalized
2394 to work with more parsers. The parser state only has to be an
2395 instance of the `HasOptions` class instead of requiring a concrete
2396 type. Block parsers are required to return blocks wrapped into a
2397 monad, as this makes it possible to use parsers returning results
2398 wrapped in `Future`s.
2400 * `Text.Pandoc.Shared`:
2402 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
2403 + `stringify`: handle Quoted better (#3958). Previously we were losing
2404 the quotation marks in Quoted elements.
2406 * `Text.Pandoc.Writers.Shared`:
2408 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
2409 This allows us to add the variables AFTER using the metadata
2410 to generate a YAML header (in the Markdown writer).
2411 + Added `unsmartify` (previously in RST writer).
2412 Undo literal double curly quotes. Previously we left these.
2413 + Generalize type of `metaToJSON` so it can take a Text. Previously a
2414 String was needed as argument; now any ToJSON instance will do.
2415 + Added `gridTable` (previously in Markdown writer).
2416 + `gridTable`: Refactored to use widths in chars.
2417 + `gridTable`: remove unnecessary extra space in cells.
2418 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
2419 values to become lists.
2420 + Pipe tables: impose minimum cell size (see #3526).
2423 [default template changes]
2425 * HTML templates (including EPUB and HTML slide show templates):
2427 + Make default.html5 polyglot markup conformant (John Luke Bentley,
2428 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
2429 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
2430 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
2431 + Regularized CSS in html/epub/html slide templates (#3485).
2432 All templates now include `code{white-space: pre-wrap}`
2433 and CSS for `q` if `--html-q-tags` is used. Previously some templates
2434 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
2435 included.
2436 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
2437 + `default.revealjs`: make `history` default to true.
2438 + `default.revealjs`: use lazy loading (#2283).
2439 + `default.revealjs`: add `mathjax` variable and some conditional code
2440 to use the MathJaX plugin.
2441 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
2442 + `default.dzslides`: Load Google Font using HTTPS by default
2443 (Yoan Blanc).
2445 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
2446 #3855).
2448 * LaTeX/Beamer template:
2450 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
2451 `default.beamer` has been removed; beamer now uses the
2452 `default.latex` template. Beamer-specific parts are conditional
2453 on the `beamer` variable set by the writer. Note that
2454 `pandoc -D beamer` will return this (combined) template.
2455 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
2456 Beamer loads `xcolor` rather than `color`, and thus the
2457 `dvipsnames` option doesn't take effect. This also provides a wider
2458 range of colour selections with the `svgnames` option.
2459 + Use starred versions of `xcolor` names (Andrew Dunning).
2460 Prevents changes to documents defined using the `dvipsnames` list (e.g.
2461 `Blue` gives a different result with svgnames enabled).
2462 + Load `polyglossia` after header-includes (#3898). It needs to be
2463 loaded as late as possible.
2464 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
2465 XeLaTeX on request.
2466 + Don't load `fontspec` before `unicode-math` (over there).
2467 The `unicode-math` package loads `fontspec` so explict loading of
2468 `fontspec` before `unicode-math` is not necessary.
2469 + Use `unicode-math` by default in default.latex template. mathspec will
2470 be used in xelatex if the `mathspec` variable is set; otherwise
2471 unicode-math will be used (Václav Haisman).
2472 + Use `dvipsnames` options when `colorlinks` specified (otherwise
2473 we get an error for `maroon`) (Thomas Hodgson).
2474 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
2475 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
2476 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
2477 clash when loading a package (e.g. `tufte-latex`) that uses
2478 `hyperref` settings different from those in the template.
2479 + Add `natbiboptions` variable (#3768).
2480 + Fix links inside captions in LaTeX output with links-as-notes
2481 (Václav Haisman, #3651). Declare our redefined `\href` robust.
2482 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
2483 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
2484 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
2485 packages. Use existing `CJKmainfont` and `CJKoptions` template
2486 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
2487 and `luatexjapresetoptions` for `luatexja-preset`.
2488 + Added `aspectratio` variable to beamer template (Václav Haisman,
2489 #3723).
2490 + Modified template.latex to fix XeLaTex being used with tables
2491 (lwolfsonkin, #3661). Reordered `lang` variable handling to
2492 immediately before `bidi`.
2494 * ConTeXt template: Improved font handling: `simplefonts` is now
2495 obsolete in ConTeXt (Pablo Rodríguez).
2498 [documentation improvements]
2500 * MANUAL.txt:
2502 + Add URL for Prince HTML > PDF engine (Ian, #3919).
2503 + Document that content above slide-level will be omitted in
2504 slide shows. See #3460, #2265.
2505 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
2506 + Small clarification in YAML metadata section.
2507 + Document that html4 is technically XHTML 1.0 transitional.
2508 + Remove refs to highlighting-kate (#3672).
2509 + Document ibooks specific epub metadata.
2510 + Clarify that mathml is used for ODT math.
2511 + Mention limitations of Literate Haskell Support (#3410,
2512 Joachim Breitner).
2513 + Add documentation of limitations of grid tables (Stephen
2514 McDowell, #3864).
2515 + Clarify that meta-json contains transformed values (Jakob Voß,
2516 #3491) Make clear that template variable `meta-json` does not
2517 contain plain text values or JSON output format but field values
2518 transformed to the selected output format.
2520 * COPYRIGHT:
2522 + Clarify that templates are dual-licensed.
2523 + Clarify that pandoc-types is BSD3 licensed.
2524 + List new files not written by jgm (Albert Krewinkel).
2525 + Update dates in copyright notices (Albert Krewinkel). This follows
2526 the suggestions given by the FSF for GPL licensed software.
2527 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
2529 * INSTALL.md:
2531 + Improved instructions for tests with patterns.
2532 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
2534 * CONTRIBUTING.md:
2536 + Fixed typos (Wandmalfarbe, #3479).
2537 + Add "ask on pandoc-discuss" (Mauro Bieg).
2539 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
2540 end of this document is autogenerated from `data/pandoc.lua`
2541 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
2542 (Albert Krewinkel).
2544 * Add `doc/filters.md`. This is the old scripting tutorial from
2545 the website.
2547 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
2548 to using pandoc as a Haskell library.
2551 [build infrastructure improvements]
2553 * Removed `data/templates` submodule. Templates are now a subtree
2554 in `data/templates`. This removes the need to do `git submodule
2555 update`.
2557 * Renamed `tests` -> `test`.
2559 * Remove `https` flag. Always build with HTTPS support.
2561 * Use `file-embed` instead of `hsb2hs` to embed data files when
2562 `embed_data_files` flag is set. `file-embed` gives us better dependency
2563 tracking: if a data file changes, ghc/stack/cabal know to recompile
2564 the Data module. This also removes `hsb2hs` as a build dependency.
2566 * Add `custom-setup` stanza to pandoc, lowercase field names.
2568 * Add `static` Cabal flag.
2570 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
2571 than -OSX. Changed local names from osx to macos.
2573 * make_macos_package.sh - Use strip to reduce executable size.
2575 * Revised binary linux package. Now a completely static executable
2576 is created, using Docker and alpine. We create both a deb and a
2577 tarball. The old `deb` directory has been replaced with a `linux`
2578 directory. Running `make` in the `linux` directory should
2579 perform the build, putting the binary packages in `artifacts/`.
2581 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
2582 pandoc-data packages will be uninstalled; this package provides
2583 both (#3822). Add latex packages as 'suggested', update
2584 description.
2586 * Remove cpphs build requirement -- it is no longer needed.
2588 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
2590 * Name change OSX -> macOS (ickc, #3869).
2592 * Fix casing of Linux, UNIX, and Windows (ickc).
2594 * `.travis.yml`: create a source dist and do cabal build and test there.
2595 That way we catch errors due to files missing from the data
2596 section of pandoc.cabal.
2598 * Makefile:
2600 + Split `make haddock` from `make full`.
2601 + Add BRANCH variable for winpkg.
2602 + Add `lint` target.
2603 + Improve `make full`. Disable optimizations.
2604 Build everything, inc. trypandoc and benchmarks. Use parallel build.
2605 + Allow `make test` to take `TESTARGS`.
2607 * Added new command tests (`Tests.Command`), using small text files
2608 in `test/command/`. Any files added in this directory will be treated
2609 as shell tests (see smart.md for an example). This makes it very easy
2610 to add regression tests etc.
2612 * Test fixes so we can find data files. In old tests & command tests,
2613 we now set the environment variable `pandoc_datadir`. In lua tests,
2614 we set the datadir explicitly.
2616 * Refactored `compareOutput` in docx writer test.
2618 * Consolidated some common functions in `Tests.Helper`.
2620 * Small change to unbalanced bracket test to speed up test suite.
2622 * Speed up Native writer quickcheck tests.
2624 * Use tasty for tests rather than test-framework.
2626 * Add simple Emacs mode to help with Pandoc templates editing.
2627 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
2630pandoc (1.19.2)
2632 * Use skylighting library instead of highlighting-kate for syntax
2633 highlighting. Skylighting is faster and more accurate (#3363).
2634 Later we'll be able to add features like warning messages, dynamic
2635 loading of xml syntax definitions, and dynamic loading of themes.
2637 * Added a new highlight style, `breezeDark`.
2639 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
2640 This allows more languages to be used when using the `--listings`
2641 option.
2643 * OpenDocument writer:
2645 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
2646 + Don't profilerate text styles unnecessarily (#3371).
2647 This change makes the writer create only as many temporary
2648 text styles as are absolutely necessary. It also consolidates
2649 adjacent nodes with the same style.
2651 * Org reader (Albert Krewinkel):
2653 + Allow short hand for single-line raw blocks (Albert Krewinkel,
2654 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
2655 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
2656 + Accept org-ref citations followed by commas (Albert Krewinkel).
2657 Bugfix for an issue which, whenever the citation was immediately
2658 followed by a comma, prevented correct parsing of org-ref citations.
2659 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
2660 `/*strong and emphasized*/`) was interpreted incorrectly in that the
2661 inner markup was not recognized.
2662 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
2664 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
2665 In the past, the docx reader wrote an empty header as an empty list. It
2666 should have the same width as a row (and be filled with empty cells).
2668 * MediaWiki reader:
2670 + Improved handling of display math (#3362). Sometimes display math is
2671 indented with more than one colon. Previously we handled these cases
2672 badly, generating definition lists and missing the math.
2673 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
2674 behavior when the smart option is parsed to match other readers'
2675 behavior.
2677 * Markdown reader:
2679 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
2680 (#3341). Previously this did not properly enable escaped line breaks.
2681 + Disallow space between inline code and attributes (#3326, #3323,
2682 Mauro Bieg).
2684 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
2686 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
2688 * LaTeX writer: allow tables with empty cells to count as "plain."
2689 This addresses a problem of too-wide tables when empty cells
2690 are used. Thanks to Joost Kremers for reporting the issue.
2692 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
2693 Unprefixed numbers where used by older org-mode versions, but are no
2694 longer supported.
2696 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
2697 Mauro Bieg).
2699 * Markdown writer: Fix display math with `--webtex` (#3298).
2701 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
2702 bumper314).
2704 * Templates:
2706 + default.latex: Moved geometry after hyperref (Václav Haisman).
2707 Otherwise PDF sizes can be wrong in some circumstances.
2708 + Copied a few changes from default.latex to default.beamer
2709 (Wandmalfarbe).
2710 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
2711 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
2712 that contain verbatim in notes (#3361). (Note: the beamer template
2713 was updated to match the LaTeX template, but at this point verbatim
2714 in notes seems not to work in beamer.)
2715 + default.latex: Allow passing `microtypeoptions` to microtype
2716 (Václav Haisman).
2717 + default.latex: Add hyphen option to url package.
2718 + default.docbook5: Fix namespace declarations (Mauro Bieg).
2720 * Moved `make_osx_package.sh` to `osx/` directory.
2722 * Travis continuous integration:
2724 + Fix false positives with dist build.
2725 + Speed improvements (Kolen Cheung, #3304, #3357).
2727 * MANUAL.txt:
2729 + Clarify that blank space is needed around footnotes (#3352).
2730 + Fixed typo (#3351, Alexey Rogechev).
2731 + Note that `--wrap=auto` does not work in HTML output.
2732 + Default `--columns` width is 72, not 80.
2733 + Fixed broken links (#3316, Kolen Cheung).
2734 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
2736 * INSTALL.md:
2738 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
2739 + Added instructions for extracting binary from OSX, Windows packages.
2741 * CONTRIBUTING.md: Describe labels currently used in issue tracker
2742 (Albert Krewinkel). The labels have changed over time, the list of
2743 labels is updated to reflect the current set of labels used in the
2744 issue tracker.
2746 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
2748 * Bumped version bounds for dependencies.
2751pandoc (1.19.1)
2753 * Set `PANDOC_VERSION` environment variable for filters (#2640).
2754 This allows filters to check the pandoc version that produced
2755 the JSON they are receiving.
2757 * Docx reader: Ensure one-row tables don't have header (#3285,
2758 Jesse Rosenthal). Tables in MS Word are set by default to have
2759 special first-row formatting, which pandoc uses to determine whether
2760 or not they have a header. This means that one-row tables will, by
2761 default, have only a header -- which we imagine is not what people
2762 want. This change ensures that a one-row table is not understood to
2763 be a header only. Note that this means that it is impossible to
2764 produce a header-only table from docx, even though it is legal
2765 pandoc. But we believe that in nearly all cases, it will be an
2766 accidental (and unwelcome) result
2768 * HTML reader:
2770 + Fixed some bad regressions in HTML table parser (#3280).
2771 This regression leads to the introduction of empty rows
2772 in some circumstances.
2773 + Understand `style=width:` as well as `width` in `col` (#3286).
2775 * RST reader:
2777 + Print warnings when keys, substitition, notes not found.
2778 Previously the parsers failed and we got raw text. Now we get a
2779 link with an empty URL, or empty inlines in the case of a note or
2780 substitution.
2782 + Fix hyperlink aliases (#3283).
2784 * Man writer: Ensure that periods are escaped at beginning of line
2785 (#3270).
2787 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
2788 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
2789 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
2790 are ensured to be written using stared commands (like `\subsection*{}`).
2792 * LaTeX template: use comma not semicolon to separate keywords for
2793 `pdfkeywords`. Thanks to Wandmalfarbe.
2795 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
2796 would sometimes wrap lines too early due to this bug.
2798 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
2799 possible to insert escape codes for content that needs escaping at the
2800 beginning of a line.
2802 * Removed old MathMLInHTML.js from 2004, which should no longer
2803 be needed for MathML with modern browsers.
2805 * Fixed tests with dynamic linking (#2709).
2807 * Makefile: Use stack instead of cabal for targets. This is just
2808 a convenience for developers.
2810 * Fixed bash completion of filenames with space (#2749).
2812 * MANUAL: improved documentation on how to create a custom `reference.docx`.
2814 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
2816pandoc (1.19)
2818 * Changed resolution of filter paths.
2820 + We now first treat the argument of `--filter` as a full (absolute
2821 or relative) path, looking for a program there. If it's found, we
2822 run it.
2823 + If not, and if it is a simple program name or a relative path, we
2824 try resolving it relative to `$DATADIR/filters`.
2825 + If this fails, then we treat it as a program name and look in the
2826 user's PATH.
2827 + Removed a hardcoded '/' that may have caused problems with
2828 Windows paths.
2830 Previously if you did `--filter foo` and you had `foo` in your path and
2831 also an executable `foo` in your working directory, the one in the path
2832 would be used. Now the one in the working directory is used.
2834 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
2835 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
2836 `foo/bar.hs` relative to the working directory.
2838 * Allow `file://` URIs as arguments (#3196). Also improved default reader
2839 format detection. Previously with a URI ending in .md or .markdown,
2840 pandoc would assume HTML input. Now it treats these as markdown.
2842 * Allow to overwrite top-level division type heuristics (#3258,
2843 Albert Krewinkel). Pandoc uses heuristics to determine the most
2844 reasonable top-level division type when emitting LaTeX or
2845 Docbook markup. It is now possible to overwrite this implicitly set
2846 top-level division via the `top-level-division` command line parameter.
2848 * Text.Pandoc.Options \[API changes\]:
2850 + Removed `writerStandalone` field in `WriterOptions`, made
2851 `writerTemplate` a `Maybe` value. Previously setting
2852 `writerStandalone = True` did nothing unless a template was provided
2853 in writerTemplate. Now a fragment will be generated if
2854 `writerTemplate` is `Nothing`; otherwise, the specified template
2855 will be used and standalone output generated.
2856 + `Division` has been renamed `TopLevelDivision` (#3197). The
2857 `Section`, `Chapter`, and `Part` constructors were renamed to
2858 `TopLevelSection`, `TopLevelChapter`, and
2859 `TopLevelPart`, respectively. An additional `TopLevelDefault`
2860 constructor was added, which is now also the new default value of
2861 the `writerTopLevelDivision` field in `WriterOptions`.
2863 * Improved error if they give wrong arg to `--top-level-division`.
2865 * Use new module from texmath to lookup MS font codepoints in Docx reader.
2866 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
2867 lives in texmath (0.9).
2869 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
2870 when the qnames lacked the docbook namespace URI.
2872 * HTML reader:
2874 + Improved table parsing (#3027). We now check explicitly for non-1
2875 rowspan or colspan attributes, and fail when we encounter them.
2876 Previously we checked that each row had the same number of cells,
2877 but that could be true even with rowspans/colspans. And there are
2878 cases where it isn't true in tables that we can handle fine -- e.g.
2879 when a tr element is empty. So now we just pad rows with empty cells
2880 when needed.
2881 + Treat `<math>` as MathML by default unless something else is
2882 explicitly specified in xmlns. Provided it parses as MathML,
2883 of course. Also fixed default which should be to inline math if no
2884 display attribute is used.
2885 + Only treat "a" element as link if it has href (#3226). Otherwise
2886 treat as span.
2888 * Docx reader (Jesse Rosenthal):
2890 + Add a placeholder value for CHART. We wrap `[CHART]` in a
2891 `<span class="chart">`. Note that it maps to inlines because, in
2892 docx, anything in a drawing tag can be part of a larger paragraph.
2893 + Be more specific in parsing images We not only want `w:drawing`,
2894 because that could also include charts. Now we specify
2895 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
2896 a first step toward allowing other sorts of drawing data as well.
2897 + Abstract out function to avoid code repetition.
2898 + Update tests for img title and alt (#3204).
2899 + Handle Alt text and titles in images. We use the "description" field
2900 as alt text and the "title" field as title. These can be accessed
2901 through the "Format Picture" dialog in Word.
2902 + Docx reader utils: handle empty namespace in `elemName`. Previously,
2903 if given an empty namespace `(elemName ns "" "foo")` `elemName`
2904 would output a QName with a `Just ""` namespace. This is never what
2905 we want. Now we output a `Nothing`. If someone *does* want a
2906 `Just ""` in the namespace, they can enter the QName
2907 value explicitly.
2909 * ODT reader/writer:
2911 + Inline code when text has a special style (Hubert Plociniczak). When
2912 a piece of text has a text `Source_Text` then we assume that this is
2913 a piece of the document that represents a code that needs to
2914 be inlined. Adapted the writer to also reflect that change.
2915 Previously it was just writing a 'preformatted' text using a
2916 non-distinguishable font style. Code blocks are still not recognized
2917 by the ODT reader. That's a separate issue.
2918 + Infer table's caption from the paragraph (#3224,
2919 Hubert Plociniczak). ODT's reader always put empty captions for the
2920 parsed tables. This commit
2922 1. checks paragraphs that follow the table definition
2923 2. treats specially a paragraph with a style named 'Table'
2924 3. does some postprocessing of the paragraphs that combines tables
2925 followed immediately by captions
2927 The ODT writer used the `TableCaption` style for the caption
2928 paragraph. This commit follows the OpenOffice approach which allows
2929 for appending captions to table but uses a built-in style named
2930 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
2931 should change the style's name from `TableCaption` to `Table`.
2933 * ODT reader: Infer tables' header props from rows (#3199,
2934 Hubert Plociniczak). ODT reader simply provided an empty header list
2935 which meant that the contents of the whole table, even if not empty, was
2936 simply ignored. While we still do not infer headers we at least have to
2937 provide default properties of columns.
2939 * Markdown reader:
2941 + Allow reference link labels starting with `@...` if `citations`
2942 extension disabled (#3209). Example: in
2944 \[link text\]\[@a\]
2946 `link text` isn't hyperlinked because `[@a]` is parsed as
2947 a citation. Previously this happened whether or not the `citations`
2948 extension was enabled. Now it happens only if the `citations`
2949 extension is enabled.
2950 + Allow alignments to be specified in Markdown grid tables. For
2951 example,
2953 +-------+---------------+--------------------+
2954 | Right | Left | Centered |
2955 +=========:+:=================+:=============:+
2956 | Bananas | $1.34 | built-in wrapper |
2957 +-------+---------------+--------------------+
2959 + Allow Small Caps elements to be created using bracketed spans (as
2960 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
2962 * LaTeX reader:
2964 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
2965 Fixed an error which came up, for example, with `\vspace` inside
2966 a caption. (Captions expect inlines.)
2967 + Improved table handling. We can now parse all of the tables emitted
2968 by pandoc in our tests. The only thing we don't get yet are
2969 alignments and column widths in more complex tables. See #2669.
2970 + Limited support for minipage.
2971 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
2972 + Handle BVerbatim from fancyvrb (#3203).
2973 + Handle hungarumlaut (#3201).
2974 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
2975 (#3184). This allows use of things like `\only<2,3>{my content}` in
2976 Markdown that is going to be converted to beamer.
2978 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
2979 overly long code will appear on every slide.
2981 * Org reader (Albert Krewinkel):
2983 + Respect column width settings (#3246). Table column properties can
2984 optionally specify a column's width with which it is displayed in
2985 the buffer. Some exporters, notably the ODT exporter in org-mode
2986 v9.0, use these values to calculate relative column widths. The org
2987 reader now implements the same behavior. Note that the org-mode
2988 LaTeX and HTML exporters in Emacs don't support this feature yet,
2989 which should be kept in mind by users who use the column
2990 widths parameters.
2991 + Allow HTML attribs on non-figure images (#3222). Images which are
2992 the only element in a paragraph can still be given HTML attributes,
2993 even if the image does not have a caption and is hence not a figure.
2994 The following will add set the `width` attribute of the image to
2995 `50%`:
2997 +ATTR\_HTML: :width 50%
2998 =======================
3000 \[\[file:image.jpg\]\]
3002 + Support `ATTR_HTML` for special blocks (#3182). Special
3003 blocks (i.e. blocks with unrecognized names) can be prefixed with an
3004 `ATTR_HTML` block attribute. The attributes defined in that
3005 meta-directive are added to the `Div` which is used to represent the
3006 special block.
3007 + Support the `todo` export option. The `todo` export option allows to
3008 toggle the inclusion of TODO keywords in the output. Setting this to
3009 `nil` causes TODO keywords to be dropped from headlines. The default
3010 is to include the keywords.
3011 + Add support for todo-markers. Headlines can have optional
3012 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
3013 or `#+TYP_TODO` meta directive. Multiple such directives can be
3014 given, each adding a new set of recognized todo-markers. If no
3015 custom todo-markers are defined, the default `TODO` and `DONE`
3016 markers are used. Todo-markers are conceptually separate from
3017 headline text and are hence excluded when autogenerating
3018 headline IDs. The markers are rendered as spans and labelled with
3019 two classes: One class is the markers name, the other signals the
3020 todo-state of the marker (either `todo` or `done`).
3022 * LaTeX writer:
3024 + Use `\autocites*` when "suppress-author" citation used.
3025 + Ensure that simple tables have simple cells (#2666). If cells
3026 contain more than a single Plain or Para, then we need to set
3027 nonzero widths and put contents into minipages.
3028 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
3030 * Markdown writer:
3032 + Fix calculation of column widths for aligned multiline tables
3033 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
3034 usage for tables when `--columns` is set in such a way that cells
3035 must be very tiny. Now cells are guaranteed to be big enough so that
3036 single words don't need to line break, even if this pushes the line
3037 length above the column width.
3038 + Use bracketed form for native spans when `bracketed_spans`
3039 enabled (#3229).
3040 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
3041 sublist got rendered with a blank line after, while a tight ordered
3042 sublist did not. Now we don't get the blank line in either case.
3043 + Fix escaping of spaces in super/subscript (#3225). Previously two
3044 backslashes were inserted, which gave a literal backslash.
3045 + Adjust widths in Markdown grid tables so that they match
3046 on round-trip.
3048 * Docx writer:
3050 + Give full detail when there are errors converting tex math.
3051 + Handle title text in images (Jesse Rosenthal). We already handled
3052 alt text. This just puts the image "title" into the docx
3053 "title" attr.
3054 + Fixed XML markup for empty cells (#3238). Previously the Compact
3055 style wasn't being applied properly to empty cells.
3057 * HTML writer:
3059 + Updated `renderHtml` import from blaze-html.
3061 * Text.Pandoc.Pretty:
3063 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
3064 caused spurious blank lines in grid tables when we had things like
3065 `blankline $$ blankline`.
3066 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
3067 + Added error message for illegal call to `block` (Björn Peemöller).
3069 * Text.Pandoc.Shared:
3071 + Put `warn` in MonadIO.
3072 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
3073 URL starts with `//` and there is no "base URL" (as there would be
3074 if a URL were used on the command line), then default to http:.
3076 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
3078 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
3079 fixes a crash with `pandoc --version` on unusual systems with no real
3080 user (e.g. SQL Server 2016).
3082 * Added weigh-pandoc for memory usage diagnostics (#3169).
3084 * Use correct mime types for woff and woff2 (#3228).
3086 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
3088 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
3089 1.18 section where it belongs.
3091 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
3092 Kolen Cheung).
3094 * Further revisions to manual for `--version` changes (#3244).
3097pandoc (1.18)
3099 * Added `--list-input-formats`, `--list-output-formats`,
3100 `--list-extensions`, `--list-highlight-languages`, and
3101 `--list-highlight-styles` (#3173). Removed list of highlighting
3102 languages from `--version` output. Removed list of input and output
3103 formats from default `--help` output.
3105 * Added `--reference-location=block|section|document` option
3106 (Jesse Rosenthal). This determines whether Markdown link references
3107 and footnotes are placed at the end of the document, the end of the
3108 section, or the end of the top-level block.
3110 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
3111 This determines what a level-1 header corresponds to in LaTeX,
3112 ConTeXt, DocBook, and TEI output. The default is `section`.
3113 The `--chapters` option has been deprecated in favor of
3114 `--top-level-division=chapter`.
3116 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
3117 is now used in parsing RST and Markdown line blocks, DocBook
3118 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
3119 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
3120 are handled specially in the following ouput formats: AsciiDoc
3121 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
3122 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
3123 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
3124 other output formats, a paragraph with hard linebreaks is emitted.
3126 * Allow binary formats to be written to stdout (but not to tty) (#2677).
3127 Only works on posix, since we use the unix library to check whether
3128 output is to tty. On Windows, pandoc works as before and always requires
3129 an output file parameter for binary formats.
3131 * Changed JSON output format (Jesse Rosenthal). Previously we used
3132 generically generated JSON, but this was subject to change depending
3133 on the version of aeson pandoc was compiled with. To ensure stability,
3134 we switched to using manually written ToJSON and FromJSON
3135 instances, and encoding the API version. **Note:** pandoc filter
3136 libraries will need to be revised to handle the format change.
3137 Here is a summary of the essential changes:
3139 + The toplevel JSON format is now `{"pandoc-api-version" :
3140 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
3141 instead of `[{"unMeta": META}, [BLOCKS]]`.
3142 Decoding fails if the major and minor version numbers don't
3143 match.
3144 + Leaf nodes no longer have an empty array for their "c" value.
3145 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
3146 rather than `{"t":"Space","c":[]}` as before.
3148 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
3149 module to pandoc-types (Jesse Rosenthal). This makes it easier
3150 to use QuickCheck with pandoc types outside of pandoc itself.
3152 * Add `bracketed_spans` Markdown extension, enabled by default
3153 in pandoc `markdown`. This allows you to create a native span
3154 using this syntax: `[Here is my span]{#id .class key="val"}`.
3156 * Added `angle_brackets_escapable` Markdown extension (#2846).
3157 This is needed because github flavored Markdown has a slightly
3158 different set of escapable symbols than original Markdown;
3159 it includes angle brackets.
3161 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
3163 * Print highlighting-kate version in `--version`.
3165 * `Text.Pandoc.Options`:
3167 + `Extension` has new constructors `Ext_brackted_spans` and
3168 `Ext_angle_brackets_escapable` [API change].
3169 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
3170 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
3171 Rosenthal).
3173 * `--filter`: we now check `$DATADIR/filters` for filters before
3174 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
3175 Voß for the idea). Filters placed in this directory need not
3176 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
3177 or `.rb`, pandoc will run the right interpreter.
3179 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
3180 default (Kolen Cheung).
3182 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
3184 * Execute .js filters with node (Jakob Voß).
3186 * Textile reader:
3188 + Support `bc..` extended code blocks (#3037). Also, remove trailing
3189 newline in code blocks (consistently with Markdown reader).
3190 + Improve table parsing. We now handle cell and row attributes, mostly
3191 by skipping them. However, alignments are now handled properly.
3192 Since in pandoc alignment is per-column, not per-cell, we
3193 try to devine column alignments from cell alignments.
3194 Table captions are also now parsed, and textile indicators
3195 for thead and tfoot no longer cause parse failure. (However,
3196 a row designated as tfoot will just be a regular row in pandoc.)
3197 + Improve definition list parsing. We now allow multiple terms
3198 (which we concatenate with linebreaks). An exponential parsing
3199 bug (#3020) is also fixed.
3200 + Disallow empty URL in explicit link (#3036).
3202 * RST reader:
3204 + Use Div instead of BlockQuote for admonitions (#3031).
3205 The Div has class `admonition` and (if relevant) one of the
3206 following: `attention`, `caution`, `danger`, `error`, `hint`,
3207 `important`, `note`, `tip`, `warning`. **Note:** This will change
3208 the rendering of some RST documents! The word ("Warning", "Attention",
3209 etc.) is no longer added; that must be done with CSS or a filter.
3210 + A Div is now used for `sidebar` as well.
3211 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
3212 space before a footnote marker. We discard those spaces so that footnotes
3213 will be adjacent to the text that comes before it. This is in line with
3214 what rst2latex does.
3215 + Allow empty lines when parsing line blocks (Albert Krewinkel).
3217 * Markdown reader:
3219 + Allow empty lines when parsing line blocks (Albert Krewinkel).
3220 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
3222 * LaTeX reader:
3224 + More robust parsing of unknown environments (#3026).
3225 We no longer fail on things like `^` inside options for tikz.
3226 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
3227 Some custom environments give these a meaning, so we should try not to
3228 fall over when we encounter them.
3229 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
3231 * MediaWiki reader:
3233 + Fix for unquoted attribute values in mediawiki tables (#3053).
3234 Previously an unquoted attribute value in a table row
3235 could cause parsing problems.
3236 + Improved treatment of verbatim constructions (#3055).
3237 Previously these yielded strings of alternating Code and Space
3238 elements; we now incorporate the spaces into the Code. Emphasis
3239 etc. is still possible inside these.
3240 + Properly interpret XML tags in pre environments (#3042). They are meant
3241 to be interpreted as literal text.
3243 * EPUB reader: don't add root path to data: URIs (#3150).
3244 Thanks to @lep for the bug report and patch.
3246 * Org reader (Albert Krewinkel):
3248 + Preserve indentation of verse lines (#3064). Leading spaces in verse
3249 lines are converted to non-breaking spaces, so indentation is preserved.
3250 + Ensure image sources are proper links. Image sources as those in plain
3251 images, image links, or figures, must be proper URIs or relative file
3252 paths to be recognized as images. This restriction is now enforced
3253 for all image sources. This also fixes the reader's usage of uncleaned
3254 image sources, leading to `file:` prefixes not being deleted from
3255 figure images. Thanks to @bsag for noticing this bug.
3256 + Trim verse lines properly (Albert Krewinkel).
3257 + Extract meta parsing code to module. Parsing of meta-data is well
3258 separable from other block parsing tasks. Moving into new module to
3259 get small files and clearly arranged code.
3260 + Read markup only for special meta keys. Most meta-keys should be read
3261 as normal string values, only a few are interpreted as marked-up text.
3262 + Allow multiple, comma-separated authors. Multiple authors can be
3263 specified in the `#+AUTHOR` meta line if they are given as a
3264 comma-separated list.
3265 + Give precedence to later meta lines. The last meta-line of any given
3266 type is the significant line. Previously the value of the first line
3267 was kept, even if more lines of the same type were encounterd.
3268 + Read LaTeX_header as header-includes. LaTeX-specific header commands
3269 can be defined in `#+LaTeX_header` lines. They are parsed as
3270 format-specific inlines to ensure that they will only show up in LaTeX
3271 output.
3272 + Set documentclass meta from LaTeX_class.
3273 + Set classoption meta from LaTeX_class_options.
3274 + Read HTML_head as header-includes. HTML-specific head content can be
3275 defined in `#+HTML_head` lines. They are parsed as format-specific
3276 inlines to ensure that they will only show up in HTML output.
3277 + Respect `author` export option. The `author` option controls whether
3278 the author should be included in the final markup. Setting
3279 `#+OPTIONS: author:nil` will drop the author from the final meta-data
3280 output.
3281 + Respect `email` export option. The `email` option controls whether the
3282 email meta-field should be included in the final markup. Setting
3283 `#+OPTIONS: email:nil` will drop the email field from the final
3284 meta-data output.
3285 + Respect `creator` export option. The `creator` option controls whether
3286 the creator meta-field should be included in the final markup. Setting
3287 `#+OPTIONS: creator:nil` will drop the creator field from the final
3288 meta-data output. Org-mode recognizes the special value `comment` for
3289 this field, causing the creator to be included in a comment. This is
3290 difficult to translate to Pandoc internals and is hence interpreted the
3291 same as other truish values (i.e. the meta field is kept if it's
3292 present).
3293 + Respect unnumbered header property (#3095). Sections the `unnumbered`
3294 property should, as the name implies, be excluded from the automatic
3295 numbering of section provided by some output formats. The Pandoc
3296 convention for this is to add an "unnumbered" class to the header. The
3297 reader treats properties as key-value pairs per default, so a special
3298 case is added to translate the above property to a class instead.
3299 + Allow figure with empty caption (Albert Krewinkel, #3161).
3300 A `#+CAPTION` attribute before an image is enough to turn an image into
3301 a figure. This wasn't the case because the `parseFromString` function,
3302 which processes the caption value, would fail on empty values. Adding
3303 a newline character to the caption value fixes this.
3305 * Docx reader:
3307 + Use XML convenience functions (Jesse Rosenthal).
3308 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
3309 the code a lot cleaner than the original XML.Light functions, but they
3310 had been used inconsistently. This puts them in wherever applicable.
3311 + Handle anchor spans with content in headers. Previously, we would only
3312 be able to figure out internal links to a header in a docx if the
3313 anchor span was empty. We change that to read the inlines out of the
3314 first anchor span in a header.
3315 + Let headers use exisiting id. Previously we always generated an id for
3316 headers (since they wouldn't bring one from Docx). Now we let it use an
3317 existing one if possible. This should allow us to recurs through anchor
3318 spans.
3319 + Use all anchor spans for header ids. Previously we only used the first
3320 anchor span to affect header ids. This allows us to use all the anchor
3321 spans in a header, whether they're nested or not (#3088).
3322 + Test for nested anchor spans in header. This ensures that anchor spans
3323 in header with content (or with other anchor spans inside) will resolve
3324 to links to a header id properly.
3326 * ODT reader (Hubert Plociniczak)
3328 + Include list's starting value. Previously the starting value of
3329 the lists' items has been hardcoded to 1. In reality ODT's list
3330 style definition can provide a new starting value in one of its
3331 attributes.
3332 + Infer caption from the text following the image.
3333 Frame can contain other frames with the text boxes.
3334 + Add `fig:` to title for Image with a caption (as expected
3335 by pandoc's writers).
3336 + Basic support for images in ODT documents.
3337 + Don't duplicate text for anchors (#3143). When creating an anchor
3338 element we were adding its representation as well as the original
3339 content, leading to text duplication.
3341 * DocBook writer:
3343 + Include an anchor element when a div or span has an id (#3102).
3344 Note that DocBook does not have a class attribute, but at least this
3345 provides an anchor for internal links.
3347 * LaTeX writer:
3349 + Don't use * for unnumbered paragraph, subparagraph. The starred
3350 variants don't exist. This helps with part of #3058...it gets rid of
3351 the spurious `*`s. But we still have numbers on the 4th and 5th level
3352 headers.
3353 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
3354 Otherwise they can cause unintended ligatures like `` ?` ``.
3355 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
3356 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
3357 This allows figure placement defaults to be changed by the user
3358 in the template.
3360 * HTML writer (slide show formats): In slide shows, don't change slide title
3361 to level 1 header (#2221).
3363 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
3364 TEI doesn't have `<book>` elements but only generic `<divN>` division
3365 elements. Checking the template for a trailing `</book>` is nonsensical.
3367 * MediaWiki writer: transform filename with underscores in images (#3052).
3368 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
3369 for internal links, but it also needs to happen for images.
3371 * ICML writer: replace partial function (!!) in table handling (#3175,
3372 Mauro Bieg).
3374 * Man writer: allow section numbers that are not a single digit (#3089).
3376 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
3377 (#3068). In AsciiDoc, you must use a special form of emphasis
3378 (double `__`) for intraword emphasis. Pandoc was previously using
3379 this more than necessary.
3381 * EPUB writer: use stringify instead of plain writer for metadata
3382 (#3066). This means that underscores won't be used for emphasis,
3383 or CAPS for bold. The metadata fields will just have unadorned
3384 text.
3386 * Docx Writer:
3388 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
3389 with a `custom-style` key in the attributes will apply the corresponding
3390 key to the contained blocks or inlines.
3391 + Add ReaderT env to the docx writer (Jesse Rosenthal).
3392 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
3393 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
3394 on the command line. For finer-grained control, you can set
3395 the `dir` attribute in Div or Span elements.
3397 * Org writer (Albert Krewinkel):
3399 + Remove blank line after figure caption. Org-mode only treats an image
3400 as a figure if it is directly preceded by a caption.
3401 + Ensure blank line after figure. An Org-mode figure should be surrounded
3402 by blank lines. The figure would be recognized regardless, but images
3403 in the following line would unintentionally be treated as figures as
3404 well.
3405 + Ensure link targets are paths or URLs. Org-mode treats links as
3406 document internal searches unless the link target looks like a URL or
3407 file path, either relative or absolute. This change ensures that this
3408 is always the case.
3409 + Translate language identifiers. Pandoc and Org-mode use different
3410 programming language identifiers. An additional translation between
3411 those identifiers is added to avoid unexpected behavior. This fixes a
3412 problem where language specific source code would sometimes be output
3413 as example code.
3414 + Drop space before footnote markers (Albert Krewinkel, #3162).
3415 The writer no longer adds an extra space before footnote markers.
3417 * Markdown writer:
3419 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
3420 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
3421 is disabled.
3422 + Check for the `raw_html` extension before emiting a raw HTML block.
3423 + Abstract out note/ref function (Jesse Rosenthal).
3424 + Add ReaderT monad for environment variables (Jesse Rosenthal).
3426 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
3427 subtitle, author, date (#3119). Note that, as a result of this change,
3428 authors may need to update CSS.
3430 * revealjs template: Added `notes-server` option
3431 (jgm/pandoc-templates#212, Yoan Blanc).
3433 * Beamer template:
3435 + Restore whitespace between paragraphs. This was
3436 a regression in the last release (jgm/pandoc-templates#207).
3437 + Added `themeoptions` variable (Carsten Gips).
3438 + Added `beamerarticle` variable. This causes the `beamerarticle`
3439 package to be loaded in beamer, to produce an article from beamer
3440 slides. (Carsten Gips)
3441 + Added support for `fontfamilies` structured variable
3442 (Artem Klevtsov).
3443 + Added hypersetup options (Jake Zimmerman).
3445 * LaTeX template:
3447 + Added dummy definition for `\institute`.
3448 This isn't a standard command, and we want to avoid a crash when
3449 `institute` is used with the default template.
3450 + Define default figure placement (Václav Haisman), since pandoc
3451 no longer includes `[htbp]` for figures. Users with custom templates
3452 will want to add this. See #3103.
3453 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
3454 Václav Haisman).
3456 * Moved template compiling/rendering code to a separate library.
3457 `doctemplates`. This allows the pandoc templating system to be
3458 used independently.
3460 * Text.Pandoc.Error: Fix out of index error in `handleError`
3461 (Matthew Pickering). The fix is to not try to show the exact line when
3462 it would cause an out-of-bounds error as a result of included files.
3464 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
3466 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
3467 addresses. Technically `**@user` is a valid email address, but if we
3468 allow things like this, we get bad results in markdown flavors
3469 that autolink raw email addresses (see #2940). So we exclude a few
3470 valid email addresses in order to avoid these more common bad cases.
3472 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
3473 emit the alt text, emphasized. This accords with what the ODT writer
3474 currently does. The user will still get a warning about a nonexistent
3475 image.
3477 * Fix example in API documentation (#3176, Thomas Weißschuh).
3479 * Tell where to get tarball in INSTALL (#3062).
3481 * Rename README to MANUAL.txt and add GitHub-friendly README.md
3482 (Albert Krewinkel, Kolen Cheung).
3484 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
3486 * MANUAL.txt:
3488 + Put note on structured vars in separate paragraph (#2148, Albert
3489 Krewinkel). Make it clearer that structured author variables require a
3490 custom template
3491 + Note that `--katex` works best with `html5` (#3077).
3492 + Fix the LaTeX and EPUB links in manual (Morton Fox).
3493 + Document `biblio-title` variable.
3495 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
3497 * Update KaTeX to v0.6.0 (Kolen Cheung).
3499 * Allow latest dependencies.
3501 * Use texmath 0.8.6.6 (#3040).
3503 * Allow http-client 0.4.30, which is the version in stackage lts.
3504 Previously we required 0.5.
3505 Remove CPP conditionals for earlier versions.
3507 * Remove support for GHC < 7.8 (Jesse Rosenthal).
3509 + Remove Compat.Monoid.
3510 + Remove an inline monad compatibility macro.
3511 + Remove Text.Pandoc.Compat.Except.
3512 + Remove directory compat.
3513 + Change constraint on mtl.
3514 + Remove unnecessary CPP condition in UTF8.
3515 + Bump base lower bound to 4.7.
3516 + Remove 7.6 build from .travis.yaml.
3517 + Bump supported ghc version in CONTRIBUTING.md.
3518 + Add note about GHC version support to INSTALL.
3519 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
3520 + Remove TagSoup compat.
3521 + Add EOL note to time compat module. Because time 1.4 is a boot library
3522 for GHC 7.8, we will support the compatibility module as long as we
3523 support 7.8. But we should be clear about when we will no longer need
3524 it.
3525 + Remove blaze-html CPP conditional.
3526 + Remove unnecessary CPP in custom Prelude.
3528pandoc (1.17.2)
3530 * Added Zim Wiki writer, template and tests. `zimwiki` is now
3531 a valid output format. (Alex Ivkin)
3533 * Changed email-obfuscation default to no obfuscation (#2988).
3534 + `writerEmailObfuscation` in `defaultWriterOptions` is now
3535 `NoObfuscation`.
3536 + the default for the command-line `--email-obfuscation` option is
3537 now `none`.
3539 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
3541 * Org writer:
3543 + Support arbitrary raw inlines (Albert Krewinkel).
3544 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
3545 parlance) to be included as `@@format:raw foreign format text@@`.
3546 + Improve Div handling (Albert Krewinkel). Div blocks handling is
3547 changed to make the output look more like idiomatic org mode:
3548 - Div-wrapped content is output as-is if the div's attribute is the
3549 null attribute.
3550 - Div containers with an id but neither classes nor key-value pairs
3551 are unwrapped and the id is added as an anchor.
3552 - Divs with classes associated with greater block elements are
3553 wrapped in a `#+BEGIN`...`#+END` block.
3554 - The old behavior for Divs with more complex attributes is kept.
3556 * HTML writer:
3558 + Better support for raw LaTeX environments (#2758).
3559 Previously we just passed all raw TeX through when MathJax was used for
3560 HTML math. This passed through too much. With this patch, only raw
3561 LaTeX environments that MathJax can handle get passed through.
3562 This patch also causes raw LaTeX environments to be treated
3563 as math, when possible, with MathML and WebTeX output.
3565 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
3566 (#2993). Markdown line breaks involve a newline, and simple and pipe
3567 tables can't contain one.
3569 * Make --webtex work with the Markdown writer (#1177).
3570 This is a convenient option for people using
3571 websites whose Markdown flavors don't provide for math.
3573 * Docx writer:
3575 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
3576 We treat display math like block quotes, and apply FirstParagraph style
3577 to paragraphs that follow them. These can be styled as the user
3578 wishes. (But, when the user is using indentation, this allows for
3579 paragraphs to continue after display math without indentation.)
3580 + Use actual creation time as doc prop (Jesse Rosenthal).
3581 Previously, we had used the user-supplied date, if available, for Word's
3582 document creation metadata. This could lead to weird results, as in
3583 cases where the user post-dates a document (so the modification might be
3584 prior to the creation). Here we use the actual computer time to set the
3585 document creation.
3587 * LaTeX writer:
3589 + Don't URI-escape image source (#2825). Usually this is a local file,
3590 and replacing spaces with `%20` ruins things.
3591 + Allow 'standout' as a beamer frame option (#3007).
3592 `## Slide title {.standout}`.
3594 * RST reader: Fixed links with no explicit link text. The link
3595 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
3596 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
3597 Closes Debian #828167 -- reported by Christian Heller.
3599 * Textile reader:
3601 + Fixed attributes (#2984). Attributes can't be followed by
3602 a space. So, `_(class)emph_` but `_(noclass) emph_`.
3603 + Fixed exponential parsing bug (#3020).
3604 + Fix overly aggressive interpretation as images (#2998).
3605 Spaces are not allowed in the image URL in textile.
3607 * LaTeX reader:
3609 + Fix `\cite` so it is a NormalCitation not AuthorInText.
3610 + Strip off double quotes around image source if present (#2825).
3611 Avoids interpreting these as part of the literal filename.
3613 * Org reader:
3615 + Add semicolon to list of special chars (Albert Krewinkel)
3616 Semicolons are used as special characters in citations syntax. This
3617 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
3618 suffix]`. Previously, parsing would have failed unless there was a space
3619 or other special character as the last <prefix> character.
3620 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
3621 A specification for an official Org-mode citation syntax was drafted by
3622 Richard Lawrence and enhanced with the help of others on the orgmode
3623 mailing list. Basic support for this citation style is added to the
3624 reader.
3625 + Support arbitrary raw inlines (Albert Krewinkel).
3626 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
3627 parlance) to be included as `@@format:raw foreign format text@@`.
3628 + Remove partial functions (Albert Krewinkel, #2991).
3629 Partial functions like `head` lead to avoidable errors and should be
3630 avoided. They are replaced with total functions.
3631 + Support figure labels (Albert Krewinkel, #2496, #2999).
3632 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
3633 respective image. This allows e.g. the LaTeX to add proper `\label`
3634 markup.
3635 + Improve tag and properties type safety (Albert Krewinkel).
3636 Specific newtype definitions are used to replace stringly typing of tags
3637 and properties. Type safety is increased while readability is improved.
3638 + Parse as headlines, convert to blocks (Albert Krewinkel).
3639 Emacs org-mode is based on outline-mode, which treats documents as trees
3640 with headlines are nodes. The reader is refactored to parse into a
3641 similar tree structure. This simplifies transformations acting on
3642 document (sub-)trees.
3643 * Refactor comment tree handling (Albert Krewinkel).
3644 Comment trees were handled after parsing, as pattern matching on lists
3645 is easier than matching on sequences. The new method of reading
3646 documents as trees allows for more elegant subtree removal.
3647 * Support archived trees export options (Albert Krewinkel).
3648 Handling of archived trees can be modified using the `arch` option.
3649 Archived trees are either dropped, exported completely, or collapsed to
3650 include just the header when the `arch` option is nil, non-nil, or
3651 `headline`, respectively.
3652 * Put export setting parser into module (Albert Krewinkel).
3653 Export option parsing is distinct enough from general block parsing to
3654 justify putting it into a separate module.
3655 * Support headline levels export setting (Albert Krewinkel).
3656 The depths of headlines can be modified using the `H` option. Deeper
3657 headlines will be converted to lists.
3658 * Replace ugly code with view pattern (Albert Krewinkel).
3659 Some less-than-smart code required a pragma switching of overlapping
3660 pattern warnings in order to compile seamlessly. Using view patterns
3661 makes the code easier to read and also doesn't require overlapping
3662 pattern checks to be disabled.
3663 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
3664 Org rules for allowed characters before or after markup chars were not
3665 checked for verbatim text. This resultet in wrong parsing outcomes of
3666 if the verbatim text contained e.g. space enclosed markup characters as
3667 part of the text (`=is_substr = True=`). Forcing the parser to update
3668 the positions of allowed/forbidden markup border characters fixes this.
3670 * LaTeX template: fix for obscure hyperref/xelatex issue.
3671 Here's a minimal case:
3673 \documentclass[]{article}
3674 \usepackage{hyperref}
3675 \begin{document}
3676 \section{\%á}
3677 \end{document}
3679 Without this change, this fails on the second invocation of xelatex.
3680 This affects inputs this like `# %á` with pdf output via xelatex.
3682 * trypandoc: call results 'html' instead of 'result'.
3683 This is for better compatibility with babelmark2.
3685 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
3686 MultiMarkdown was only mentioned as a supported Markdown dialect but not
3687 as a possible input or output format. A brief mention is added
3688 everywhere the other supported markdown dialects are mentioned.
3690 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
3691 Raw HTML is kept when the output format is Emacs Org mode.
3693 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
3695 * Text.Pandoc.Shared:
3697 + Introduce blocksToInlines function (Jesse Rosenthal).
3698 This is a lossy function for converting `[Block] -> [Inline]`. Its main
3699 use, at the moment, is for docx comments, which can contain arbitrary
3700 blocks (except for footnotes), but which will be converted to spans.
3701 This is, at the moment, pretty useless for everything but the basic
3702 `Para` and `Plain` comments. It can be improved, but the docx reader
3703 should probably emit a warning if the comment contains more than this.
3704 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
3705 + Add further formats for `normalizeDate` (Jesse Rosenthal).
3706 We want to avoid illegal dates -- in particular years with greater than
3707 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
3708 `%Y%m`, and finally `%Y`.
3709 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
3710 We only allow years between 1601 and 9999, inclusive. The ISO 8601
3711 actually says that years are supposed to start with 1583, but MS Word
3712 only allows 1601-9999. This should stop corrupted word files if the date
3713 is out of that range, or is parsed incorrectly.
3714 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
3715 Previously we parsed a list of dates, took the first one, and then
3716 tested its year range. That meant that if the first one failed, we
3717 returned nothing, regardless of what the others did. Now we test for
3718 sanity before running `msum` over the list of Maybe values. Anything
3719 failing the test will be Nothing, so will not be a candidate.
3721 * Docx reader:
3723 + Add simple comment functionality. (Jesse Rosenthal).
3724 This adds simple track-changes comment parsing to the docx reader. It is
3725 turned on with `--track-changes=all`. All comments are converted to
3726 inlines, which can list some information. In the future a warning will be
3727 added for comments with formatting that seems like it will be excessively
3728 denatured. Note that comments can extend across blocks. For that reason
3729 there are two spans: `comment-start` and `comment-end`. `comment-start`
3730 will contain the comment. `comment-end` will always be empty. The two
3731 will be associated by a numeric id.
3732 + Enable warnings in top-level reader (Jesse Rosenthal).
3733 Previously we had only allowed for warnings in the parser. Now we allow
3734 for them in the `Docx.hs` as well. The warnings are simply concatenated.
3735 + Add warning for advanced comment formatting. (Jesse Rosenthal).
3736 We can't guarantee we'll convert every comment correctly, though we'll
3737 do the best we can. This warns if the comment includes something other
3738 than Para or Plain.
3739 + Add tests for warnings. (Jesse Rosenthal).
3740 + Add tests for comments (Jesse Rosenthal).
3741 We test for comments, using all track-changes options. Note that we
3742 should only output comments if `--track-changes=all`. We also test for
3743 emitting warnings if there is complicated formatting.
3745 * README: update to include track-changes comments. (Jesse Rosenthal)
3747 * Improved Windows installer - don't ignore properties set on command-line.
3748 See #2708. Needs testing to see if this resolves the issue.
3749 Thanks to @nkalvi.
3751 * Process markdown extensions on command line in L->R order (#2995).
3752 Previously they were processed, very unintuitively, in R->L
3753 order, so that `markdown-tex_math_dollars+tex_math_dollars`
3754 had `tex_math_dollars` disabled.
3756 * Added `secnumdepth` variable to LaTeX template (#2920).
3758 * Include table of contents in README.html in Windows package.
3760 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
3761 In Writers.Shared, we strip leading and trailing spaces for display
3762 math. Since SoftBreak's are treated as spaces, we should strip those
3763 too.
3765 * beamer, latex templates: pass biblatexoptions directly in package load.
3766 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
3768 * CPP workaround for deprecation of `parseUrl` in http-client.
3770 * Removed some redundant class constraints.
3772 * make_oxs_package.sh - use OSX env variable.
3774 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
3775 old installing page from website.
3777 * Added `winpkg` target to Makefile. This downloads the windows package
3778 from appveyor and signs it using the key.
3780 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
3781 Raw TeX is kept verbatim when the output format is Emacs Org mode.
3783 * Support math with haddock-library >= 1.4.
3785 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
3786 wouldn't accept the package.
3788 * Update library dependency versions.
3790pandoc (1.17.1)
3792 * New output format: `docbook5` (Ivo Clarysse).
3794 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
3795 (API change).
3797 * Org writer:
3799 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
3800 This allows header attributes to be added to org documents in the form
3801 of `:PROPERTIES:` drawers. All available attributes are stored as
3802 key/value pairs. This reflects the way the org reader handles
3803 `:PROPERTIES:` blocks.
3804 + Add drawer capability (Carlos Sosa). For the implementation of the
3805 Drawer element in the Org Writer, we make use of a generic Block
3806 container with attributes. The presence of a `drawer` class defines
3807 that the `Div` constructor is a drawer. The first class defines the
3808 drawer name to use. The key-value list in the attributes defines
3809 the keys to add inside the Drawer. Lastly, the list of Block elements
3810 contains miscellaneous blocks elements to add inside of the Drawer.
3811 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
3812 reserved for internal use by Org-mode and should not be used.
3813 The `CUSTOM_ID` property is to be used instead, it is converted to the
3814 `ID` property for certain export format.
3816 * LaTeX writer:
3818 + Ignore `--incremental` unless output format is beamer (#2843).
3819 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
3820 Allow for optional argument in square brackets.
3821 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
3822 This allows one to access the hyphenation patterns in CTAN's
3823 hyph-utf8.
3824 + Add missing languages from hyph-utf8 (Andrew Dunning).
3825 + Improve use of `\strut` with `\minipage` inside tables
3826 (Jose Luis Duran). This improves spacing in multiline
3827 tables.
3828 + Use `{}` around options containing special chars (#2892).
3829 + Avoid lazy `foldl`.
3830 + Don't escape underscore in labels (#2921). Previously they were
3831 escaped as `ux5f`.
3832 + brazilian -> brazil for polyglossia (#2953).
3834 * HTML writer: Ensure mathjax link is added when math appears in footnote
3835 (#2881). Previously if a document only had math in a footnote, the
3836 MathJax link would not be added.
3838 * EPUB writer: set `navpage` variable on nav page.
3839 This allows templates to treat it differently.
3841 * DocBook writer:
3843 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
3844 + Properly handle `ulink`/`link` (Ivo Clarysse).
3846 * EPUB reader:
3848 + Unescape URIs in spine (#2924).
3849 + EPUB reader: normalise link id (Mauro Bieg).
3851 * Docx Reader:
3853 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
3854 `moveTo` and `moveFrom` are track-changes tags that are used when a
3855 block of text is moved in the document. We now recognize these tags and
3856 treat them the same as `insert` and `delete`, respectively. So,
3857 `--track-changes=accept` will show the moved version, while
3858 `--track-changes=reject` will show the original version.
3859 + Tests for track-changes moving (Jesse Rosenthal).
3861 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
3862 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
3863 would error out if zip-archive failed. We change the archive extraction
3864 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
3866 * Markdown, HTML readers: be more forgiving about unescaped `&` in
3867 HTML (#2410). We are now more forgiving about parsing invalid HTML with
3868 unescaped `&` as raw HTML. (Previously any unescaped `&`
3869 would cause pandoc not to recognize the string as raw HTML.)
3871 * Markdown reader:
3873 + Added bracket syntax for native spans (#168).
3874 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
3875 + Added `-s` to markdown-reader-more test.
3877 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
3878 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
3880 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
3881 (roblabla).
3883 * RST reader: Support `:class:` option for code block in RST reader
3884 (Sidharth Kapur).
3886 * Org reader (all Albert Krewinkel, except where noted otherwise):
3888 + Stop padding short table rows.
3889 Emacs Org-mode doesn't add any padding to table rows. The first
3890 row (header or first body row) is used to determine the column count,
3891 no other magic is performed.
3892 + Refactor rows-to-table conversion. This refactors
3893 the codes conversing a list table lines to an org table ADT.
3894 The old code was simplified and is now slightly less ugly.
3895 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
3896 This fixes Org mode parsing of some corner cases regarding empty cells
3897 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
3898 two empty cells, but would be parsed as a single cell containing a pipe
3899 character. Empty rows where parsed as alignment rows and dropped from
3900 the output.
3901 + Fix spacing after LaTeX-style symbols.
3902 The org-reader was droping space after unescaped LaTeX-style symbol
3903 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
3904 instead. This seems to be because the LaTeX-reader treats the
3905 command-terminating space as part of the command. Dropping the trailing
3906 space from the symbol-command fixes this issue.
3907 + Print empty table rows. Empty table rows should not
3908 be dropped from the output, so row-height is always set to be at least 1.
3909 + Move parser state into separate module.
3910 The org reader code has become large and confusing. Extracting smaller
3911 parts into submodules should help to clean things up.
3912 + Add support for sub/superscript export options.
3913 Org-mode allows to specify export settings via `#+OPTIONS` lines.
3914 Disabling simple sub- and superscripts is one of these export options,
3915 this options is now supported.
3916 + Support special strings export option Parsing of special strings
3917 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
3918 option.
3919 + Support emphasized text export option. Parsing of emphasized text can
3920 be toggled using the `*` option. This influences parsing of text marked
3921 as emphasized, strong, strikeout, and underline. Parsing of inline math,
3922 code, and verbatim text is not affected by this option.
3923 + Support smart quotes export option. Reading of smart quotes can be
3924 toggled using the `'` option.
3925 + Parse but ignore export options. All known export options are parsed
3926 but ignored.
3927 + Refactor block attribute handling. A parser state attribute was used
3928 to keep track of block attributes defined in meta-lines. Global state
3929 is undesirable, so block attributes are no longer saved as part of the
3930 parser state. Old functions and the respective part of the parser state
3931 are removed.
3932 + Use custom `anyLine`. Additional state changes need to be made after
3933 a newline is parsed, otherwise markup may not be recognized correctly.
3934 This fixes a bug where markup after certain block-types would not be
3935 recognized.
3936 + Add support for `ATTR_HTML` attributes (#1906).
3937 Arbitrary key-value pairs can be added to some block types using a
3938 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
3939 when exporting to HTML, but since we cannot make this distinction here,
3940 the attributes are always added. The functionality is now supported
3941 for figures.
3942 + Add `:PROPERTIES:` drawer support (#1877).
3943 Headers can have optional `:PROPERTIES:` drawers associated with them.
3944 These drawers contain key/value pairs like the header's `id`. The
3945 reader adds all listed pairs to the header's attributes; `id` and
3946 `class` attributes are handled specially to match the way `Attr` are
3947 defined. This also changes behavior of how drawers of unknown type
3948 are handled. Instead of including all unknown drawers, those are not
3949 read/exported, thereby matching current Emacs behavior.
3950 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
3951 + Respect drawer export setting. The `d` export option can be used
3952 to control which drawers are exported and which are discarded.
3953 Basic support for this option is added here.
3954 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
3955 Also fix up tab handling for leading whitespace in code blocks.
3956 + Support new syntax for export blocks. Org-mode version 9
3957 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
3958 where `<FORMAT>` is the format of the block's content, the new
3959 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
3960 supported.
3961 + Refactor `BEGIN...END` block parsing.
3962 + Fix handling of whitespace in blocks, allowing content to be indented
3963 less then the block header.
3964 + Support org-ref style citations. The *org-ref* package is an
3965 org-mode extension commonly used to manage citations in org
3966 documents. Basic support for the `cite:citeKey` and
3967 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
3968 + Split code into separate modules, making for cleaner code and
3969 better decoupling.
3971 * Added `docbook5` template.
3973 * `--mathjax` improvements:
3975 + Use new CommonHTML output for MathJax (updated default MathJax URL,
3976 #2858).
3977 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
3978 This is designed for cases where the input is always TeX and maximal
3979 conformity with TeX is desired. It seems to be smaller and load faster
3980 than what we used before. See #2858.
3981 + Load the full MathJax config to maximize loading speed (KolenCheung).
3983 * Bumped upper version bounds to allow use of latest packages
3984 and compilation with ghc 8.
3986 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
3987 #2310, #2310, #2824). This fixes behavior of roots, e.g.
3988 `\sqrt[3]{x}`, and issues with sub/superscript positioning
3989 and matrix column alignment in docx.
3991 * README:
3993 + Clarified documentation of `implicit_header_references` (#2904).
3994 + Improved documentation of `--columns` option.
3996 * Added appveyor setup, with artefacts (Jan Schulz).
3998 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
4000 * LaTeX template: support for custom font families (vladipus).
4001 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
4002 can find some other usages. Example usage in YAML metadata:
4004 fontfamilies:
4005 - name: \cyrillicfont
4006 font: Liberation Serif
4007 - name: \cyrillicfonttt
4008 options: Scale=MatchLowercase
4009 font: Liberation
4011 * Create unsigned msi as build artifact in appveyor build.
4013 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
4015pandoc (1.17.0.3)
4017 * LaTeX writer: Fixed position of label in figures (#2813).
4018 Previously the label wasn't in the right place, and `\ref`
4019 wouldn't work properly.
4020 * Added .tei test files to pandoc.cabal so they'll be included
4021 in tarball (#2811).
4022 * Updated copyright dates.
4024pandoc (1.17.0.2)
4026 * Fixed serious regression in `htmlInBalanced`, which caused
4027 newlines to be omitted in some raw HTML blocks in Markdown
4028 (#2804).
4030pandoc (1.17.0.1)
4032 * File scope is no longer used when there are no input files (i.e.,
4033 when input comes from stdin). Previously file scope was triggered
4034 when the `json` reader was specified and input came from `stdin`,
4035 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
4036 thanks to Fedor Sheremetyev for calling the bug to our attention.)
4037 * Improved documentation of templates (#2797).
4039pandoc (1.17)
4041 * Added `--file-scope` option (Jesse Rosenthal).
4042 By default pandoc operates on multiple files by first concatenating
4043 them (around extra line breaks) and then processing the joined file. So
4044 it only parses a multi-file document at the document scope. This has the
4045 benefit that footnotes and links can be in different files, but for
4046 some purposes it is useful to parse the individual files first
4047 and then combine their outputs (e.g. when the files use footnotes
4048 or links with the same labels). The `--file-scope` option causes
4049 pandoc to parse the files first, and then combine the parsed output,
4050 instead of combining before parsing. `--file-scope` is selected
4051 automatically for binary input files (which cannot be concatenated)
4052 and for pandoc json.
4054 * Add TEI Writer (Chris Forster) and `tei` output format.
4056 * Added a general `ByteStringReader` with warnings, used by the docx
4057 reader (API change, Jesse Rosenthal).
4059 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
4061 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
4062 to `Set String.` This avoids performance problems in documents with
4063 many identically named headers (API change, #2671).
4065 * Removed `tex_math_single_backslash` from `markdown_github` options
4066 (#2707).
4068 * Make language extensions as well as full language names
4069 trigger syntax highlighting. For example, `py` will now work as
4070 well as `python` (jgm/highlighting-kate#83).
4072 * Added `institute` variable to latex, beamer templates (Fraser
4073 Tweedale, Josef Svenningsson).
4075 * Docx reader (Jesse Rosenthal):
4077 + Handle alternate content. Some word functions (especially graphics)
4078 give various choices for content so there can be backwards compatibility.
4079 + Don't turn numbered headers into lists.
4080 + Docx Reader: Add state to the parser, for warnings
4081 + Update feature checklist in source code.
4082 + Get rid of `Modifiable` typeclass.
4083 + Add tests for adjacent hyperlinks.
4084 + Add a "Link" modifier to `Reducible`. We want to make sure that
4085 links have their spaces removed, and are appropriately smushed
4086 together (#2689).
4088 * HTML reader:
4090 + Fixed behavior of base tag (#2777).
4091 If the base path does not end with slash, the last component
4092 will be replaced. E.g. base = `http://example.com/foo`
4093 combines with `bar.html` to give `http://example.com/bar.html`.
4094 If the href begins with a slash, the whole path of the base
4095 is replaced. E.g. base = `http://example.com/foo/` combines
4096 with `/bar.html` to give `http://example.com/bar.html`.
4097 + Rewrote `htmlInBalanced`. This version avoids an exponential
4098 performance problem with `<script>` tags, and it should be faster
4099 in general (#2730).
4100 + Properly handle an empty cell in a simple table (#2718).
4101 + Handle multiple `<meta>` tags with same name. Put them in a list
4102 in the metadata so they are all preserved, rather than (as before)
4103 throwing out all but one..
4105 * Markdown reader:
4107 + Improved pipe table parsing (#2765).
4108 + Allow `+` separators in pipe table cells. We already allowed
4109 them in the header, but not in the body rows, for some reason.
4110 This gives compatibility with org-mode tables.
4111 + Don't cross line boundary parsing pipe table row.
4112 Previously an Emph element could be parsed across the newline
4113 at the end of the pipe table row.
4114 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
4115 performance (#2730).
4116 + Fixed bug with smart quotes around tex math.
4118 * LaTeX reader:
4120 + Handle interior `$` characters in math (#2743). For example,
4121 `$$\hbox{$i$}$$`.
4122 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
4123 This gives better results when people write e.g. `\TeX{}` in Markdown.
4124 + Properly handle LaTeX "math" environment as inline math (#2171).
4126 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
4127 Closes #2674.
4129 * Org reader (Albert Krewinkel):
4131 + Prefix even empty figure names with "fig:" (#2643). The
4132 convention used by pandoc for figures is to mark them by prefixing
4133 the name with `fig:`. The org reader failed to do this if a figure
4134 had no name.
4135 + Refactor link-target processing (#2684).
4137 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
4138 Thanks to @c-foster.
4140 * HTML writer: Don't include alignment attribute for default table columns.
4141 Previously these were given "left" alignment. Better to leave off
4142 alignment attributes altogether (#2694).
4144 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
4145 better compatibility with other Markdown flavors (Henrik Tramberend).
4147 * LaTeX writer:
4149 + Use image identifier to create a label and hypertarget for
4150 figures (Mauro Bieg).
4151 + Avoid double toprule in headerless table with caption (#2742).
4152 + Clean up options parser (Jesse Rosenthal).
4153 + Treat `memoir` template with `article` option as article, instead
4154 of treating all `memoir` templates as books.
4155 + Allow more flexible table alignment (Henrik Tramberend, #2665).
4156 New default is not to include `[c]` option (which is the default
4157 anyway if no positioning is specified). Now LaTeX emplates can
4158 control the overall table alignment in a document by setting the
4159 longtable length variables `LTleft` and `LTright`. For example,
4160 `\setlength\LTleft\parindent\setlength\LTright\fill`
4161 will create left-aligned tables that respect paragraph indentation.
4163 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
4165 * Org writer - pass through RawInline with format "org".
4167 * DokuWiki writer: use `$$` for display math.
4169 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
4171 * Make protocol-relative URIs work again (#2737).
4173 * make_osx_package.sh: Use env variable for developer id certs.
4175 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
4176 problems (#2734).
4178 * Allow `zip-archive` 0.3.
4180 * Allow `aeson` 0.11.
4182pandoc (1.16.0.2)
4184 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
4186 * Fixed regression in latex smart quote parsing (#2645).
4187 In cases where a match was not found for a quote, everything
4188 from the open quote to the end of the paragraph was being dropped.
4190pandoc (1.16.0.1)
4192 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
4193 raises an error if a full path is given.
4195 * Org reader: Fix function dropping subtrees tagged `:noexport`
4196 (Albert Krewinkel, #2628):
4198 * Markdown reader: renormalize table column widths if they exceed 100%
4199 (#2626).
4201 * Textile reader: don't allow block HTML tags in inline contexts.
4202 The reader previously did allow this, following redcloth,
4203 which happily parses
4205 Html blocks can be <div>inlined</div> as well.
4207 as
4209 <p>Html blocks can be <div>inlined</div> as well.</p>
4211 This is invalid HTML. The above sample now produces;
4213 <p>Html blocks can be</p>
4214 <div>
4215 <p>inlined</p>
4216 </div>
4217 <p>as well.</p>
4219 * Improved default template lookup for custom lua scripts (#2625).
4220 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
4221 pandoc would look for the template in
4222 `~/.pandoc/templates/default./path/to/lua/script.lua`.
4223 With this change it will look in the more reasonable
4224 `~/.pandoc/templates/default.script.lua`. This makes it possible to
4225 store default templates for custom writers.
4227 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
4228 (#2615).
4230 * LaTeX writer: restore old treatment of Span (#2624). A Span is
4231 now rendered with surrounding `{}`, as it was before 1.16.
4233 * Entity handling fixes: improved handling of entities like
4234 `&lang;` that require a trailing semicolon. Allow uppercase
4235 `x` in numerical hexidecimal character references, working
4236 around a tagsoup bug.
4238 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
4239 memory use on compile. With aeson 0.10 we were getting an out of
4240 memory error on a 2GB Ubuntu 64-bit VM.
4242 * Improved deb package creation script. Made `DPKGVER` work.
4243 Renamed `COMMIT` to `TREE`. You should now be able to do
4244 `TREE=1.16.0.1 DPKGVER=2 make deb`.
4247pandoc (1.16)
4249 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
4251 + Added syntax for link and image attributes to pandoc's Markdown.
4252 + Updated readers and writers to use link and image attributes
4253 when appropriate.
4254 + Support image attributes in Docx, Textile, RST readers.
4256 * Renamed link attribute extensions. The old `link_attributes` is
4257 now `mmd_link_attributes`, and `link_attributes` now enables the
4258 new pandoc-style link and image attributes (API change).
4259 Note: this change could break some existing workflows.
4261 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
4262 Added threefold wrapping option.
4264 + Command line option: deprecated `--no-wrap`, added
4265 `--wrap=[auto|none|preserve]`
4266 + Added `WrapOption`, exported from `Text.Pandoc.Options`
4267 + Changed type of `writerWrapText` in `WriterOptions` from
4268 `Bool` to `WrapOption`.
4269 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
4270 + Supported `SoftBreak` in readers and writers.
4272 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
4273 change, Mauro Bieg).
4275 * Added `--dpi` command-line option (Mauro Bieg).
4277 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
4278 This change makes `--no-tex-ligatures` affect the LaTeX reader
4279 as well as the LaTeX and ConTeXt writers. If it is used,
4280 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
4281 literally, rather than parsing ligatures for quotation marks
4282 and dashes. And the LaTeX writer will print unicode quotation
4283 mark and dash characters literally, rather than converting
4284 them to the standard ASCII ligatures. Note that `--smart` has
4285 no effect on the LaTeX reader. `--smart` is still the default
4286 for all input formats when LaTeX or ConTeXt is the output format,
4287 *unless* `--no-tex-ligatures` is used.
4289 Some examples to illustrate the logic:
4291 ```
4292 % echo "'hi'" | pandoc -t latex
4293 `hi'
4294 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
4295 'hi'
4296 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
4297 ‘hi’
4298 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
4299 <p>'hi'</p>
4300 % echo "'hi'" | pandoc -f latex
4301 <p>’hi’</p>
4302 ```
4304 * Removed deprecated options `--offline` and `--html5`.
4306 * Fixed language code for Czech (`cs` not `cz`) (#2597).
4308 * Implemented `east_asian_line_breaks` extension (#2586).
4309 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
4310 to `Extension` (API change). This extension is like
4311 `ignore_line_breaks`, but smarter -- it only ignores line breaks
4312 between two East Asian wide characters. This makes it better suited
4313 for writing with a mix of East Asian and non-East Asian scripts.
4315 * Added support for PDF creation via `wkhtmltopdf`.
4316 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
4317 if you have math.) Margins can be set using the variables
4318 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
4319 Other styling can be done through CSS.
4321 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
4322 We were capturing final colons as in `[@foo: bar]`; the citation id
4323 was being parsed as `@foo:`.
4325 * ICML writer:
4327 + Fixed image syntax for local files (#2589).
4328 + Changed type of `writeICML` (Mauro Bieg).
4329 API change: It is now `WriterOptions -> Pandoc -> IO String`.
4330 Also handle new image attributes.
4331 + Intersperse line breaks instead of appending them to
4332 every `ParagraphStyleRange` (Mauro Bieg, #2501).
4333 + Add `Cite` style to citations (Mauro Bieg).
4334 + Added figure handling (#2590, Mauro Bieg).
4335 + Better handling of math. Instead of just printing the raw tex,
4336 we now try to fake it with unicode characters.
4338 * HTML writer: Include `example` class for example lists (#2524).
4340 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
4342 + Support for percentage widths/heights
4343 + Use `Attr` instead of title to get dimensions from ODT walker
4344 to `writeOpenDocument`.
4346 * AsciiDoc writer:
4348 + Support anchors in spans and divs with id elements
4349 (jgm/pandoc-citeproc#143).
4350 + Fixed code blocks (#1861).
4352 * Haddock writer: omit formatting inside links, which isn't supported
4353 by Haddock (#2515).
4355 * MediaWiki writer: Fixed spacing issues in table cells.
4357 + Start cell on new line unless it's a single Para or Plain
4358 (#2606).
4359 + For single Para or Plain, insert a space after the `|` to
4360 avoid problems when the text begins with a character like
4361 `-` (#2604).
4363 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
4365 * LaTeX writer:
4367 + Add support for GAP highlighting using listings (Raniere Silva).
4368 + Consider `header-includes` content as well as templates
4369 when determining whether to use csquotes (Andreas Lööw).
4370 + Create defaults for geometry using `margin-left` etc.
4371 If `geometry` has no value, but `margin-left`, `margin-right`,
4372 `margin-top`, and/or `-margin-bottom` are given, a default value
4373 for `geometry` is created from these. Note that these variables
4374 already affect PDF production via HTML5 with `wkhtmltopdf`.
4376 * ConTeXt writer: set default layout based on `margin-left`, etc.
4377 This sets up `\setuplayout` based on the variables `margin-left`,
4378 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
4379 is given.
4381 * Docx writer: better handling of PDF images. Previously we tried
4382 to get the image size from the image even if an explicit size was
4383 specified. Since we still can't get image size for PDFs, this made
4384 it impossible to use PDF images in docx. Now we don't try to get
4385 the image size when a size is already explicitly specified.
4387 * Markdown writer: use raw HTML for link/image attributes when
4388 the `link_attributes` extension is unset and `raw_html` is set (#2554).
4390 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
4392 * LaTeX reader:
4394 + Improved smart quote parsing (#2555). This fixes redering of
4395 unmatched quotes.
4396 + Use curly quotes for unmatched ` (#2555).
4397 + Allow blank space between braced arguments of commands (#2592).
4399 * Markdown reader:
4401 + Improved pipe table relative widths. Previously pipe table
4402 columns got relative widths (based on the header underscore lines)
4403 when the source of one of the rows was greater in width than the
4404 column width. This gave bad results in some cases where much of
4405 the width of the row was due to nonprinting material (e.g. link
4406 URLs). Now pandoc only looks at printable width (the width of a
4407 plain string version of the source), which should give better results.
4408 Thanks to John Muccigrosso for bringing up the issue.
4409 + Fixed parsing bug with macros. Previously macro definitions in
4410 indented code blocks were being parsed as macro definitions, not code.
4412 * Textile reader: skip over attribute in image source (#2515).
4413 We don't have a place yet for styles or sizes on images, but
4414 we can skip the attributes rather than incorrectly taking them
4415 to be part of the filename.
4417 * Docx reader: Handle dummy list items (Jesse Rosenthal).
4418 These come up when people create a list item and then delete the
4419 bullet. It doesn't refer to any real list item, and we used to ignore
4420 it.
4422 * CommonMark reader/writer rewritten to use latest `cmark`.
4424 * Fixed Emoji character definitions (#2523). There were many bugs in the
4425 definitions.
4427 * `Text.Pandoc.CSS`:
4429 + Added `pickStylesToKVs` function to extract multiple properties at
4430 once (API change, Mauro Bieg).
4431 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
4433 * `trypandoc`: sort drop-down lists.
4435 * Beamer template:
4437 + Made `\euro` conditional on presence of character.
4438 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
4439 + Moved `header-includes` before setting of title (Thomas Hodgson),
4440 to match the LaTeX template (jgm/pandoc-templates#168).
4441 + Added `section-titles` variable (defaults to true)
4442 to enable/suppress section title pages in beamer
4443 slide shows (Thomas Hodgson).
4444 + Moved beamer themes after fonts, so that themes can
4445 change fonts. (Previously the fonts set were being
4446 clobbered by lmodern.sty.) (Thomas Hodgson).
4448 * Beamer/LaTeX template changes (Thomas Hodgson):
4449 + Added `thanks` variable
4450 + Use `parskip.sty` when `indent` isn't set (fall back to using
4451 `setlength` as before if `parskip.sty` isn't available).
4452 + Use `biblio-style` with biblatex.
4453 + Added `biblatexoptions` variable.
4455 * LaTeX template changes:
4457 + Added `paper` after `$papersize$` variable in latex template.
4458 Thus you can say `papersize: a4` and the latex will contain
4459 `a4paper`. This change may break some existing workflows; if
4460 you currently specify `a4paper`, you'll get `a4paperpaper` which
4461 is meaningless. However, the change seems worth it, as it will
4462 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
4463 and html->pdf via wkhtmltopdf.
4464 + Only pass options to color package if `colorlinks` is set
4465 (Andrew Dunning).
4466 + Make definition of `\euro` conditional in xelatex/lualatex,
4467 as it is already for pdflatex (Andrew Dunning).
4468 + Removed setting of `subject` in PDF metadata.
4469 This used to be set to the subtitle, but really the subtitle
4470 need not give the subject. Also, `subtitle` can contain formatting,
4471 so we'd need, at least, a plain text version for this.
4472 + Moved `header-includes` before setting of `\title`, `\author`,
4473 etc. This allows these macros to be redefined.
4474 + Use `\subtitle` command for `subtitle`, instead of tacking it
4475 on to the title as before. We give a no-op fallback definition if it
4476 is not defined. This change should produce much better results
4477 in classes that support `\subtitle`. With the default article
4478 class, which does not define `\subtitle`, subtitles will no
4479 longer be printed unless the user defines `\subtitle` and
4480 redefines `\maketitle`.
4481 + Moved redefinitions of `\paragraph` and `\subparagraph` to
4482 before header-includes.
4484 * Context template:
4486 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
4487 needed for things to work on ConTeXt stable from TeXLive 2015.
4488 + Revert use of `\setuphead` in title block (Andrew Dunning,
4489 Rik Kabel).
4491 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
4493 * Fixed man template so disabling hyphenation actually works.
4494 The command needs to come after .TH.
4496 * Added 'navigation' variable to beamer template (#2543).
4497 Valid values are `empty` (the default), `horizontal`, `vertical`,
4498 and `frame`. Note that this changes the default behavior from
4499 `horizontal` to `empty`. Closes #2543.
4501 * Added `toc` to HTML slide format templates (Andrew Dunning),
4502 so that `--toc` creates a contents slide.
4504 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
4506 * Allow pipe tables with no body rows (#2556).
4507 Previously this raised a runtime error.
4509 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
4510 as URL. The Haskell URI parsing routines will accept "C:" as a
4511 scheme, so we rule that out manually. This helps with
4512 `--self-contained` and absolute Windows paths.
4514 * Define a `meta-json` variable for all writers (#2019). This contains
4515 a JSON version of all the metadata, in the format selected for the
4516 writer. So, for example, to get just the YAML metadata, you can run
4517 pandoc with the following custom template: `$meta-json$`. The intent
4518 is to make it easier for static site generators and other tools to get
4519 at the metadata.
4521 * Document limitations of --self-contained (#2553).
4523 * Improved Citations section of README (#2551). Added information
4524 about `link-citations` and a link to the pandoc-citeproc man page.
4526 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
4527 in base < 4.6.
4529 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
4531 * Improved implicit pandoc-citeproc inclusion.
4532 The filter pandoc-citeproc is automatically used when
4533 `--bibliography` is specified on the command line, unless
4534 `--natbib` or `--biblatex` is used. However, previously this
4535 only worked if `--bibliography` was spelled out in full, and not
4536 if `--biblio` was used.
4538 * reveal.js: Interpret pauses correctly for all headers (#2530).
4539 Previously, when using headers below the slide level, pauses are left
4540 uninterpreted into pauses. In my opinion, unexpected behavior but
4541 intentional looking at the code.
4543 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
4545 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
4546 Bieg, API change).
4548 * ImageSize: Added functions for converting between image dimensions
4549 (Mauro Bieg).
4551 * Use lts-3.18 in stack.yaml. This avoids Windows build
4552 issues with the HTTP library.
4554 * Bump version bounds for dependencies.
4556pandoc (1.15.2.1)
4558 * Added two missing test files, and `stack.yaml`, to
4559 `extra-source-files` so they're included in the source tarball.
4561 * reveal.js template: Fixed parallaxBackground options.
4562 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
4563 need integer values, not strings. (Vaughn Iverson)
4565pandoc (1.15.2)
4567 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
4568 ConTeXt rather than LaTeX (#2463).
4570 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
4572 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
4573 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
4574 (API change).
4576 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
4577 parsing (#2469). Tightened up the inline HTML parser so it disallows
4578 TagWarnings.
4580 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
4582 * Org reader:
4584 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
4585 Paragraphs can be followed by lists, even if there is no blank line
4586 between the two blocks. However, this should only be true if the
4587 paragraph is not within a list, were the preceding block should be
4588 parsed as a plain instead of paragraph (to allow for compact lists).
4589 Thanks to @rgaiacs for bringing this up.
4590 + Allow toggling header args (Albert Krewinkel, #2269).
4591 Org-mode allows to skip the argument of a code block header argument if
4592 it's toggling a value. Argument-less headers are now recognized,
4593 avoiding weird parsing errors.
4594 + Fix markup parsing in headers (Albert Krewinkel, #2504).
4595 Markup as the very first item in a header wasn't recognized. This was
4596 caused by an incorrect parser state: positions at which inline markup
4597 can start need to be marked explicitly by changing the parser state.
4598 This wasn't done for headers. The proper function to update the state
4599 is now called at the beginning of the header parser, fixing this issue.
4600 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
4601 Smart quotes, ellipses, and dashes should behave like normal quotes,
4602 single dashes, and dots with respect to text markup parsing.
4603 + Require whitespace around definition list markers (#2518).
4604 This rule was not checked before, resulting in bugs with footnotes
4605 and some link types.
4607 * Markdown reader:
4609 + Pipe tables with long lines now get relative cell widths (#2471).
4610 If a pipe table contains a line longer than the column width (as set by
4611 `--columns` or 80 by default), relative widths are computed based on the
4612 widths of the separator lines relative to the column width. This should
4613 solve persistent problems with long pipe tables in LaTeX/PDF output, and
4614 give more flexibility for determining relative column widths in other
4615 formats, too. For narrower pipe tables, column widths of 0 are used,
4616 telling pandoc not to specify widths explicitly in output formats that
4617 permit this.
4618 + Improved parser for `mmd_title_block`. We now allow blank metadata
4619 fields. These were explicitly disallowed before.
4620 + Citation keys can now contain `://`, so URLs and DOIs can be used
4621 as citation keys (jgm/pandoc-citeproc#166).
4623 * Beamer template: fix incompatibility of section slides with natbib.
4624 Natbib (and presumably biblatex) bibliography commands create
4625 their own section. Since these are in frame environments,
4626 we have an incompatibility with the `\AtBeginSection` macro
4627 which creates a special frame when a new section occurs.
4628 (We can't have a frame inside another frame.) This change disables
4629 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
4630 bringing the problem to my attention. This supersedes #145. See
4631 discussion there.
4633 * Textile reader: don't do smart punctuation unless explicitly asked
4634 (#2480). Note that although smart punctuation is part of the textile
4635 spec, it's not always wanted when converting from textile
4636 to, say, Markdown. So it seems better to make this an option.
4638 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
4639 The `comment` environment is handled in a similar way to the
4640 `verbatim` environment, except that its content is discarded.
4642 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
4643 Jesse Rosenthal). This fixes a problem with links in notes.
4645 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
4646 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
4647 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
4648 they aren’t set already. See #895.
4650 * LaTeX writer:
4652 + Use proper command for `\textarabic` (Mauro Bieg).
4653 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
4654 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
4655 to link to Div or Span elements. We now don't bother defining `\label`
4656 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
4657 + Avoid footnotes in list of figures (#1506).
4658 + Properly handle footnotes in captions (#1506).
4659 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
4660 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
4661 `toccolor` is set (#2508).
4663 * Textile writer: support start number in ordered lists (#2465).
4665 * OpenDocument writer: Allow customization of opendocument
4666 automatic styles. Automatic styles can now be inserted in the
4667 template, which now provides the enclosing `<office:automatic-styles>`
4668 tags (#2520).
4670 * Docx writer: insert space between footnote reference and note (#2527).
4671 This matches Word's default behavior.
4673 * EPUB writer: don't download linked media when `data-external` attribute
4674 set (#2473). By default pandoc downloads all linked media and includes it
4675 in the EPUB container. This can be disabled by setting `data-external` on
4676 the tags linking to media that should not be downloaded. Example:
4678 <audio controls="1">
4679 <source src="http://example.com/music/toccata.mp3"
4680 data-external="1" type="audio/mpeg">
4681 </source>
4682 </audio>
4684 * HTML writer: use width on whole table if col widths sum to < 100%.
4685 Otherwise some browsers display the table with the columns
4686 separated far apart.
4688 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
4689 `abstract` (Andrew Dunning).
4691 * HTML-based templates (Andrew Dunning):
4693 + Use en dash instead of hyphen between title prefix and title.
4694 + Add `keywords` to metadata.
4695 + Add `lang`, `dir`, `quotes` where missing.
4696 + Always make author and date display conditional.
4697 + Updated dzslides template from source.
4699 * Man template: make "generated by" comment conditional.
4701 * LaTeX, Beamer templates:
4703 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
4704 filled by commands that make babel understand the polyglossia-style
4705 language directives (Mauro Bieg, #137).
4706 + Improved formatting of conditionals; `$for$` is always provided to allow
4707 multiple options (Andrew Dunning, #141).
4708 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
4709 to improve support for LuaTeX (Andrew Dunning, #135).
4710 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
4711 - use same options for all LaTeX engines;
4712 - add `subtitle` and `keywords` to PDF metadata;
4713 - do not override `hyperref` link coloring without user input, effectively making
4714 the `hidelinks` option the default (removed as a separate variable);
4715 - link colors can be enabled (using a slightly darker version of the old
4716 defaults) using a new `colorlinks` variable, automatically used by
4717 the LaTeX writer when custom colors are specified;
4718 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
4719 `colorlinks`, and is only applied if `colorlinks` is disabled.
4721 * ConTeXt template (Andrew Dunning):
4723 + New variables for controlling styles: `linkstyle`, `linkcolor`,
4724 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
4725 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
4726 `monofont`, `mathfont`, `fontsize`.
4727 + Default template no longer supports MkII.
4728 + Improve writing of title block (suppressing numbering of first page).
4729 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
4730 + Support `subtitle`, `abstract`.
4731 + Support list of figures (`lof`), list of tables (`lot`).
4732 + Disable link styling by default.
4733 + Define styles for all section types.
4734 + Enable microtype.
4735 + Improved formatting of conditionals.
4737 * Beamer template: added code to prevent slide breaks inside paragraphs
4738 (#2422, thanks to Nick Bart). This will matter, in practice, only when
4739 `allowframebreaks` is used. It is especially helpful for bibliography
4740 slides.
4742 * OpenDocument template: Add `<office:automatic-styles>` tag around
4743 automatic styles. The writer now longer provides this (see #2520).
4745 * Restored Text.Pandoc.Compat.Monoid.
4747 * Do not export (<>) from custom Prelude. The Prelude now matches
4748 base 4.8 Prelude's API.
4750 * Don't use custom prelude with ghc 7.10. Use the custom prelude
4751 only for earlier versions. This change makes `stack ghci` and
4752 `cabal repl` work (#2503), at least with ghc 7.10.
4754 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
4755 This prevents problems building haddocks with "C" locale.
4757 * Change default for old-locale flag to False.
4759 * Use stack in deb, osx, and Windows package generators.
4761 * Added Vagrantfile for building deb in vm.
4762 This should help in automating binary package creation. 'make package'
4763 will make the package. 'make package COMMIT=blah' will make the package
4764 from commit blah.
4766 * README:
4768 + Consistent capitalization for pandoc and Markdown.
4769 + Fixed `auto_identifiers` examples (Benoit Schweblin).
4770 + Improved documentation of template variables (Andrew Dunning).
4772pandoc (1.15.1.1)
4774 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
4775 This way we have uniform separators, whether on Windows or Linux.
4776 This should solve a problem where on some Windows versions
4777 the data files weren't being found (#2459).
4779pandoc (1.15.1)
4781 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
4782 and reexported from `Text.Pandoc` (Alex Vong). This allows
4783 writers to access it. (Alex Vong) (API change)
4785 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
4786 `subscripts` (#2401).
4788 * Added `odt` as input format (Martin Linnemann). Added new module
4789 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
4790 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
4791 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
4792 Partly implemented features: Citations, Tables.
4794 * Markdown Reader:
4796 + Add basic tests for each header style (Ophir Lifshitz).
4797 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
4798 + Skip spaces in headers (Ophir Lifshitz).
4799 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
4800 `# Header {id="myid" class="foo bar"}`
4801 is now equivalent to `# Header {#myid .foo .bar}`.
4802 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
4803 (Kristof Bastiaensen)
4804 + Pipe tables: allow indented columns. Previously the left-hand column
4805 could not start with 4 or more spaces indent. This was inconvenient
4806 for right-aligned left columns. Note that the first (header column)
4807 must still have 3 or fewer spaces indentation, or the table will be
4808 treated as an indented code block.
4809 + Fix regression: allow HTML comments containing `--`.
4810 Technically this isn't allowed in an HTML comment, but
4811 we've always allowed it, and so do most other implementations.
4812 It is handy if e.g. you want to put command line arguments
4813 in HTML comments.
4815 * LaTeX reader:
4817 + Don't eat excess whitespace after macros with only optional
4818 arguments (#2446).
4819 + Support longtable (#2411).
4820 + Implement `\Cite` (#2335).
4821 + Support abstract environment. The abstract populates an
4822 `abstract` metadata field.
4823 + Properly handle booktabs lines. Lines aren't part of the
4824 pandoc table model, so we just ignore them (#2307).
4826 * HTML reader:
4828 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
4829 + Updated for new automatic header attributes.
4830 + Add auto identifiers if not present on headers. This makes
4831 TOC linking work properly.
4832 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
4833 + Test `<ol>` type, class, and inline list-style(-type) CSS
4834 (Ophir Lifshitz).
4835 + Better handling of "section" elements (#2438). Previously
4836 `<section>` tags were just parsed as raw HTML blocks. With
4837 this change, section elements are parsed as Div elements with
4838 the class "section".
4840 * MediaWiki reader: handle unquoted table attributes (#2355).
4842 * DocBook reader:
4844 + Added proper support for DocBook `xref` elements (Frerich Raabe).
4845 Added `dbContent` field to reader state, so we can lookup
4846 cross refs.
4847 + Handle `informalexample` (#2319).
4849 * Docx Reader:
4851 + Create special punctuation test (Ophir Lifshitz).
4852 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
4853 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
4854 in `headers.docx` with pandoc's current `styles.xml`, which
4855 contains styles for Heading 1 through 6. Added Heading 4
4856 through 7 to the test document. Note that Heading 7 is not
4857 parsed as a Heading because there is no Heading 7 style.
4859 * RST reader: better handling of indirect roles.
4860 Previously the parser failed on this kind of case
4862 .. role:: indirect(code)
4864 .. role:: py(indirect)
4865 :language: python
4867 :py:`hi`
4869 Now it correctly recognizes `:py:` as a code role.
4871 * Org reader:
4873 + Add auto identifiers if not present on headers
4874 (#2354, Juliusz Gonera).
4875 + Allow verse blocks to contain empty lines (#2402,
4876 Albert Krewinkel).
4878 * EPUB reader: stop mangling external URLs (#2284).
4880 * RST writer:
4882 + Don't insert `\ ` when complex expression in matched pairs.
4883 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
4884 + Ensure that `\ ` is inserted when needed before Cite and Span
4885 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
4886 + Normalize headers only in "standalone" mode (#2394).
4888 * Haddock writer: escape `*` and `^` (G. Bataille).
4890 * Markdown writer:
4892 + In TOC, add links to headers (#829).
4893 + Use unicode super/subscripts for digits in plain output
4894 (when the `superscripts` and `subscripts` extensions are
4895 not enabled).
4897 * Docx writer:
4899 + Moved invalid character stripping to `formattedString`.
4900 This avoids an inefficient generic traversal (#2356).
4901 + Use user data directory for `reference.docx` archive.
4902 This allows the test suite to work without installing pandoc first.
4903 It also brings the docx writer in line with the odt writer.
4904 + Tests: docx writer tests now use `../data` for data directory.
4905 This allows tests to be run without installing first.
4906 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
4908 * LaTeX writer:
4910 + Fixed detection of 'chapters' from template.
4911 If a documentclass isn't specified in metadata, but the
4912 template has a hardwired bookish documentclass, act as if
4913 `--chapters` was used. This was the default in earlier
4914 versions, but it has been broken for a little while.
4915 + Correctly recognize book documentclass in metadata (#2395).
4916 + Set language-related variables automatically, depending
4917 on the value of the `lang` field, which is now always
4918 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
4919 + Add `\protect` to `\hyperdef` in inline context. This way we
4920 don't get an error when this is used as a moveable argument (#2136).
4921 + Support all frame attributes in Beamer.
4922 + Percent-encode more special characters in URLs (#1640, #2377).
4923 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
4925 * HTML writer:
4927 + Update KaTeX JS and CSS versions (Emily Eisenberg).
4928 + For dzslides, add `role="note"` for speaker notes (#1693).
4929 + Percent-encode more special characters in URLs (#1640, #2377).
4930 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
4931 + Render Div with class `section` as `<section>` in HTML5.
4933 * EPUB writer:
4935 + In TOC, replace literal `<br/>` with space (#2105).
4936 + With `--webtex`, include image file rather than `data:` URI (#2363).
4938 * Native writer: format Div properly, with blocks separated.
4940 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
4941 (#2191, Mauro Bieg).
4943 * Reference Docx:
4945 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
4946 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
4948 * Templates
4950 + Beamer: Add `innertheme`, `outertheme` variables
4951 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
4952 Integrate recent font and language updates from LaTeX template;
4953 allow use of `mainfont` variable for changing the slide text
4954 in XeTeX and LuaTeX (Andrew Dunning, #131).
4955 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
4956 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
4957 (Andrew Dunning, #122). Support handling of bidirectional
4958 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
4959 under XeTeX and prevent letters and numbers from appearing on a
4960 different baseline by removing use of the `realscripts` package
4961 (via `xltxtra`). To restore use of OpenType characters for these
4962 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
4963 `header-includes` (Andrew Dunning, #130). Remove redundant
4964 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
4965 `indent`, `subparagraph` variables (Andrew Dunning).
4966 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
4967 #113). Prevent package clash with `tufte-latex` and other classes that
4968 include `hyperref` or `color` (Xavier Olive, #115).
4969 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
4970 + LaTeX and ConTeXt: Use more specific language variables.
4971 Instead of directly using `lang`, we now use `babel-lang` and
4972 `polyglossia-lang` and `context-lang`. These variables are set by
4973 the writers to the necessary values, based on the `lang` variable
4974 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
4975 #129).
4976 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
4977 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
4978 Add dir attribute in html5 (Andrew Dunning).
4979 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
4980 Add `width`, `height` variables (Andrew Dunning). Update template
4981 from 3.1 source (Andrew Dunning). All configuration options are now
4982 available as variables, but are only be included if set (reveal.js
4983 uses defaults otherwise).
4984 + man: Added comment stating that the page is autogenerated by pandoc,
4985 giving version. Added `adjusting` and `hyphenate` variables
4986 (Alex Vong, #123).
4988 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
4990 * MediaBag: ensure that `/` is always used as path separator.
4992 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
4994 * Added `--bash-completion` option. This generates a bash completion
4995 script. To use: `eval "$(pandoc --bash-completion)"`.
4997 * Text.Pandoc.Error: Define Typeable and Exception instances
4998 for PandocError (#2386).
5000 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
5001 This makes keys with extra space at the beginning and end
5002 work: e.g.
5004 [foo]: bar
5006 [ foo ]
5008 will now be a link to bar (it wasn't before).
5010 * Text.Pandoc: disable `auto_identifiers` for epub.
5011 The epub writer inserts its own auto identifiers;
5012 this is more complex due to splitting into "chapter" files.
5014 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
5015 It now reexports Data.Time.
5017 * Use custom Prelude to avoid compiler warnings.
5019 + The (non-exported) prelude is in prelude/Prelude.hs.
5020 + It exports Monoid and Applicative, like base 4.8 prelude,
5021 but works with older base versions.
5022 + It exports (<>) for mappend.
5023 + It hides 'catch' on older base versions.
5025 * Added a `stack.ymal` and stack install instructions to INSTALL.
5027 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
5029 * Added note to CONTRIBUTING.md about ghc versions and travis.
5031 * Clarify docs on block quotes. The space after `>` is optional (#2346).
5033 * Removed obsolete reference to default.csl (#2372).
5035 * List all styles in manual for `--reference-docx` (Chris Black)
5037 * Don't capitalize header links in man page.
5039 * Added section on repl to CONTRIBUTING.md.
5041 * README: Added space after backslash in image example (#2329).
5043 * Document details of citation locator terms (Nick Bart).
5045 * Fixed some internal links in README (#2309).
5047 * Improve CSL documentation, variables documentations,
5048 links, and cross-references in README. (Andrew Dunning)
5050 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
5052 * Use `newManager` instead of `withManager` in recent `http-client`.
5053 This avoids a deprecation warning.
5055 * Allow building with latest versions of http-types,
5056 HUnit, criterion, syb, aeson.
5058 * Updated benchmark program for new criterion API.
5060 * Setup.hs: rewrite so as not to use process, directory, filepath.
5061 Using anything outside base is dangerous, since older
5062 versions of ghc may link against two different versions.
5064 * Added appveyor (Windows continuous integration) builds.
5066 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
5067 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
5068 `make .travis.yml` regenerates it based on the tested-with
5069 field of the cabal file.
5071pandoc (1.15.0.6)
5073 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
5074 Previously `--self-contained` wiped out all spaces in CSS,
5075 including semantically significant spaces. This was a regression
5076 from 1.14.x.
5078 * Markdown reader: don't allow bare URI links or autolinks in link
5079 label (#2300). Added test cases.
5081 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
5082 Previously we disallowed `-` at the end of an autolink,
5083 and disallowed the combination `=-`. This commit liberalizes the
5084 rules for allowing punctuation in a bare URI, and adds test cases.
5085 One potential drawback is that you can no longer put a bare
5086 URI in em dashes like this:
5087 `this uri---http://example.com---is an example.`
5088 But in this respect we now match github's treatment of bare URIs.
5090 * HTML writer: support speaker notes in dzslides.
5091 With this change `<div class="notes">` and also `<div class="notes"
5092 role="note">` will be output if `-t dzslides` is used. So we can
5093 have speaker notes in dzslides too. Thanks to maybegeek.
5095 * Updated dzslides template.
5097 * Improved documentation of options to print system default files (#2298).
5098 `--print-default-data-file` and `--print-default-template`.
5100 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
5101 (Tiziano Müller). MathJax seems currently to be the only maintained
5102 math rendering extension for DokuWiki.
5104 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
5105 div as top-level header (#2294). This fixes a bug with `--section-divs`,
5106 where the final references section added by pandoc-citeproc, enclosed in
5107 its own div, got nested in the div for the section previous to it.
5109 * Allow vector 0.11.
5111 * Require cmark > 0.4.
5113pandoc (1.15.0.5)
5115 * HTML writer: Fixed email javascript obfuscation with `mailto:`
5116 URLs (#2280). This fixes a potential security issue. Because
5117 single quotes weren't being escaped in the link portion, a
5118 specially crafted email address could allow javascript code injection.
5120 * Markdown/HTML readers: Avoid parsing partial URLs like
5121 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
5123 * RST reader: allow inline formatting in definition list field
5124 names (Lars-Dominik Braun).
5126 * PDF: Make sure `--latex-engine-opt` goes before the filename
5127 on the command line. LaTeX needs the argument to come after
5128 the options (#1779).
5130 * CommonMark writer: fixed tags used for super/subscript.
5132 * ConTeXt template: activate hanging indent for definition lists
5133 (Mauro Bieg).
5135 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
5136 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
5137 to include `hsb2hs` in Build-Tools in cabal.
5139 * Improved Windows installer (thanks to nkalvi).
5141 + When per-machine installation is chosen, the system path
5142 is updated instead of the user's.
5143 + An appropriate default is used for per-machine installation
5144 directory.
5145 + Admin privileges are no longer required for a per-user install
5147 * Travis: unpack sdist for build to catch packaging bugs.
5149 * Improved documentation on where user templates go (#2272).
5151pandoc (1.15.0.4)
5153 * Added pandoc.1 man page to the repository. It is no longer
5154 built as part of the cabal build process. (This proved too
5155 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
5156 when `README` is changed.
5158 * Copying of the man page now respects `--destdir` (#2262).
5160 * Improved error messages for filters. User is now informed if
5161 the filter requires an interpreter that isn't found in the path,
5162 or if the filter returns an error status.
5164pandoc (1.15.0.3)
5166 * Ensure target directory is created when installing man page.
5168pandoc (1.15.0.2)
5170 * Added files needed for building man page to Extra-Source-Files.
5172pandoc (1.15.0.1)
5174 * Man page is now built and installed as part of the cabal build
5175 process. Removed Makefile target for man page.
5177pandoc (1.15)
5179 * Man page changes:
5181 + Removed `--man1`, `--man5` options (breaking change).
5182 + Removed `Text.Pandoc.ManPages` module (breaking API change).
5183 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
5184 create the man page from README using a custom template and filters.
5185 + Added `man/` directory with template and filters needed to build
5186 man page.
5187 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
5188 Now there is just pandoc.1, which has all the content from README.
5189 This change was needed because of the extensive cross-references
5190 between parts of the README.
5191 + Removed old `data/pandoc.1.template` and
5192 `data/pandoc_markdown.5.template`.
5194 * OpenDocument writer: Do not add a carriage return after a hard
5195 line break (Michael Chladek).
5197 * ConTeXt writer:
5199 + use `\goto` for internal links.
5200 + Added a `%` at end for `\reference` to avoid spurious space.
5202 * Ignore sandbox on 'make quick'
5204pandoc (1.14.1)
5206 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
5207 to generate its own man pages. Man pages are no longer automatically
5208 generated in the build process (the process for this was too complex
5209 and prone to failure, #2190). The `make-pandoc-man-pages` executable
5210 has been removed. The `man/` directory has been removed, and man page
5211 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
5212 longer find pandoc's man pages in `man/`, but you can generate them using
5213 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
5215 * Added new unexported module: `Text.Pandoc.ManPages`.
5217 * `README` now acts like a data file (even though it isn't in
5218 `data/`). So, for example, `pandoc --print-default-data-file README`
5219 will produce the README.) This change was required for the `--man1`
5220 and `--man5` options, since the man pages are produced from the
5221 README, but it may be useful for other purposes as well.
5223 * Allow `reference.docx` and `reference.odt` to be used with
5224 `--print-default-data-file` and to shadow defaults if placed in
5225 the user data directory. Note that as of 1.14, we no longer
5226 include these files as data files; instead, we include their
5227 components. This change causes pandoc to behave as if it has
5228 these data files; they are constructed on demand when needed
5229 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
5231 * Fixed regression in CSS parsing with `--self-contained` (#2224).
5232 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
5233 silently drops big sections of CSS. This commit replaces the
5234 use of css-text with a small but principled CSS preprocessor,
5235 which removes whitespace and comments and replaces `url()` with
5236 base 64 data when possible.
5238 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
5239 This will allow math to work when pages are being viewed locally.
5241 * `Text.Pandoc.Options`: Export `plainExtensions`.
5242 These are the extensions used in `plain` output.
5244 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
5245 math mode; treat them as regular inline text. Normally these will
5246 cause an error in LaTeX, but there are contexts (e.g. `alltt`
5247 environments) where they are allowed.
5249 * HTML reader: allow `<body>` to close `<head>`.
5251 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
5253 * RST reader: Fix reference names with special characters
5254 (Lars-Dominik Braun).
5256 * Textile writer: escape `+` and `-` as entities (#2225).
5258 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
5260 * Plain writer: don't use symbols for super/subscript (#2237).
5261 Simplified code by using `plainExtensions`.
5263 * InDesign writer: Properly escape URLs containing more than one
5264 colon character (gohai).
5266 * Docx writer: Make sure we use dist version of `reference.docx`
5267 (and not the user's version) for certain settings. Taking some
5268 settings values from a user-supplied reference.docx can lead to
5269 corruption. This fixes a regression from the last release (#2249).
5271 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
5272 `getDefaultReferenceODT` (API change). These functions have been
5273 removed from the Docx and ODT writers.
5275 * LaTeX template (Xavier Olive):
5276 + Added `CJKmainfont` and `CJKoptions` variables.
5277 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
5279 * Epub templates: use `author.role`, not `author.type`.
5281 * Bump cmark version to >= 0.3.4.
5283 * Improved Windows installer (#2205, thanks to nkalvi).
5284 Users can now select a per-user or systemwide install, and can set
5285 the installation path. At the end of installation, the install location
5286 is given. The install location is also now given in the list of
5287 installed programs in Control Panel. Cleaner WiX syntax is used for
5288 setting the path.
5290 * Added `download_stats` target to Makefile.
5292pandoc (1.14.0.4)
5294 * Added missing commonmark template.
5296 * Improved try pandoc (moved button, show raw command).
5298pandoc (1.14.0.3)
5300 * Allow compilation with syb 0.5.*.
5302 * Custom writer: fixed some compiler warnings for ghc < 7.10.
5304pandoc (1.14.0.2)
5306 * Allow building with hslua 0.4.
5308pandoc (1.14.0.1)
5310 * Fixed problem with building of `reference.docx` and `reference.odt`
5311 when the `embed_data_files` flag is used. Instead of having a phase
5312 of the build where `reference.docx` and `reference.odt` are created
5313 from their constituent data files, we now construct these archives
5314 from their constituents when a `docx` or `odt` is built. The
5315 constituent files have been moved from `extra-source-files` to
5316 `data-files`, and `reference.docx` and `reference.odt` have been
5317 removed. Users can create their own `reference.docx` or
5318 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
5319 `make-reference-files.hs` has been removed, simplifying the build
5320 process (#2187)
5322 * Don't include generated man pages in extra-source-files (#2189).
5324 * Bumped upper bound for aeson.
5326 * ConTeXt writer: create internal link anchors for Div elements with
5327 identifiers. (This is needed for linked citations to work.)
5329pandoc (1.14)
5331 [new features]
5333 * Added `commonmark` as input and output format.
5335 * Added `--verbose` flag for debugging output in PDF production (#1840,
5336 #1653).
5338 * Allow wildcards in `--epub-embed-font` arguments (#1939).
5340 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
5342 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
5343 This is enabled by default for those markdown flavors that
5344 support reading shortcut reference links, namely: `markdown`,
5345 `markdown_strict`, `markdown_github`, `markdown_php`.
5346 If the extension is enabled, the reader parses shortcut reference
5347 links like `[foo]`, and the writer creates such links unless doing
5348 so would cause problems. Users of markdown flavors that support
5349 shortcut reference links should not notice a difference in reading
5350 markdown, but the markdown pandoc produces may differ.
5351 If shortcut links are not desired, the extension can be disabled
5352 in the normal way.
5354 [behavior changes]
5356 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
5357 A "dirty" TOC is created at the beginning of document.
5358 It can be regenerated after the document has been opened.
5360 * An implicit `--filter pandoc-citeproc` is now triggered only when the
5361 `--bibliography` option is used, and not when the `bibliography`
5362 field in metadata is specified (#1849).
5364 * Markdown reader:
5366 + Reference links with `implicit_header_references` are no longer
5367 case-sensitive (#1606).
5368 + Definition lists no longer require indentation for first line (#2087).
5369 Previously the body of the definition (after the `:` or `~` marker)
5370 needed to be in column 4. This commit relaxes that requirement,
5371 to better match the behavior of PHP Markdown Extra. So, now
5372 this is a valid definition list:
5374 foo
5375 : bar
5376 + Resolve a potentially ambiguity with table captions:
5378 foo
5380 : bar
5382 -----
5383 table
5384 -----
5386 Is "bar" a definition, or the caption for the table? We'll count
5387 it as a caption for the table.
5388 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
5389 Markdown Extra. Note: If you have been using headerless pipe tables,
5390 this change may cause existing tables to break.
5391 + Allow pipe tables with header but no body (#2017).
5392 + Allow a digit as first character of a citation key (Matthias Troffaes).
5393 See https://github.com/jgm/pandoc-citeproc/issues/97
5395 * LaTeX reader:
5397 + Don't limit includes to `.tex` extension (#1882).
5398 If the extension is not `.tex`, it must be given explicitly in
5399 the `\input` or `\include`.
5401 * Docx reader:
5403 + Allow numbering in the style file. This allows inherited styles
5404 with numbering (lists) (Jesse Rosenthal).
5406 * Org reader:
5408 + Support smart punctuation (Craig Bosma).
5409 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
5410 `:noexport:` tag set are not exported. This mirrors org-mode.
5411 + Put header tags into empty spans (Albert Krewinkel, #2160).
5412 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
5413 Instead of being interpreted as part of the headline, the tags are now
5414 put into the attributes of empty spans. Spans without textual content
5415 won't be visible by default, but they are detectable by filters. They
5416 can also be styled using CSS when written as HTML.
5417 + Generalize code block result parsing (Albert Krewinkel).
5418 Previously, only code blocks were recognized as result blocks;
5419 now, any kind of block can be the result.
5421 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
5422 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
5424 * HTML writer:
5426 + Add "inline" or "display" class to math spans (#1914).
5427 This allows inline and display math to be styled differently.
5428 + Include raw latex blocks if `--mathjax` specified (#1938).
5429 + Require highlighting-kate >= 0.5.14 (#1903).
5430 This ensures that all code blocks will be wrapped in a `div`
5431 with class `sourceCode`. Also, the default highlighting CSS
5432 now adds `div.sourceCode { x-overflow: auto; }`, which means
5433 that code blocks (even with line numbers) will acquire a scroll
5434 bar on screens too small to display them (e.g. mobile phones).
5435 See also jgm/highlighting-kate#65.
5437 * LaTeX writer:
5439 + Use a declaration for tight lists (Jose Luis Duran, Joseph
5440 Harriott). Previously, pandoc hard-coded some commands to make
5441 tight lists in LaTeX. Now we use a custom command instead,
5442 allowing the styling to be changed in a macro in the header.
5443 (Note: existing templates may need to be modified to include
5444 the definition of this macro. See the current template.)
5445 + Beamer output: if the header introducing a slide has the
5446 class `fragile`, add the `[fragile]` option to the slide (#2119).
5448 * MediaWiki writer:
5450 + Use `File:` instead of the deprecated `Image:` for images and
5451 other media files (Greg Rundlett).
5453 * DocBook writer:
5455 + Render a `Div (id,_,_) [Para _]` element as a `para` element
5456 with an `id` attribute. This makes links to citations work in
5457 DocBook with pandoc-citeproc.
5459 * RST writer:
5461 + Normalize headings to sequential levels (Nikolay Yakimov).
5462 This is pretty much required by docutils.
5463 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
5464 + Better handling of raw latex inline (#1961). We use
5465 `` :raw-latex:`...` `` and add a definition for this role to
5466 the template.
5468 * EPUB writer:
5470 + Remove `linear=no` from cover `itemref` (#1609).
5471 + Don't use `sup` element for epub footnotes (#1995).
5472 Instead, just use an a element with class `footnoteRef`.
5473 This allows more styling options, and provides better results
5474 in some readers (e.g. iBooks, where anything inside the a
5475 tag breaks popup footnotes).
5476 + Take TOC title from `toc-title` metadata field.
5478 * Docx writer:
5480 + Implemented `FirstParagraph` style (Jesse Rosenthal).
5481 Following the ODT writer, we add the `FirstParagraph` style to the
5482 first text paragraph following an image, blockquote, table, heading,
5483 or beginning of document. This allows it to be styled differently.
5484 The default is for it to be the same as `Normal`.
5485 + Added `BodyText` style (Jesse Rosenthal).
5486 We apply a `BodyText` style to all unstyled paragraphs. This is,
5487 essentially, the same as `Normal`, except that since not everything
5488 inherits from `BodyText` (the metadata won't, for example, or
5489 the headers or footnote numbers), we can change the text in the body
5490 without having to make exceptions for everything. If we do want to
5491 change *everything*, we can still do it through `Normal`.
5492 + Altered `Blockquote` style slightly (Jesse Rosenthal).
5493 Since `BlockQuote` derives from `BodyText`, we just want to specify
5494 by default that it won't indent, regardless of what `BodyText` does.
5495 Note that this will not produce any visible difference in the default
5496 configuration.
5497 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
5498 + Added a style to figure images (Nikolay Yakimov).
5499 Figures with empty captions use style `Figure`.
5500 Figures with nonempty captions use style `Figure with Caption`, which
5501 is based on `Figure`, and additionally has `keepNext` set.
5503 * ODT writer:
5505 + Added figure captions (Nikolay Yakimov). The following styles are
5506 used for figures:
5507 `Figure` -- for figure with empty caption),
5508 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
5509 `FigureCaption` (based on `Caption`) -- for figure captions.
5510 Also, `TableCaption` (based on `Caption`) is used for table captions.
5512 [API changes]
5514 * New `Text.Pandoc.Error` module with `PandocError` type
5515 (Matthew Pickering).
5517 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
5518 (Matthew Pickering). This allows better handling of errors.
5520 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
5522 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
5524 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
5525 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
5526 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
5527 Youssefi).
5529 * New `Ext_shortcut_reference_links` constructor for `Extension`
5530 (Konstantin Zudov).
5532 [bug fixes]
5534 * Markdown reader:
5536 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
5537 + Check for tex macros after indented code (#1973).
5538 + Rewrote `charsInBalancedBrackets` for efficiency.
5539 + Make sure a closing `</div>` doesn't get included in a
5540 definition list item (#2127).
5541 + Don't parse bracketed text as citation if it might be a link,
5542 image, or footnote (Nikolay Yakimov).
5543 + Require space after key in mmd title block (#2026, Nikolay
5544 Yakimov). Require space after key-value delimiter colon in mmd title
5545 block.
5546 + Require nonempty value in mmd title block (Nikolay Yakimov).
5547 + Disable all metadata block extensions when parsing
5548 metadata field values (#2026, Nikolay Yakimov). Otherwise we
5549 could get a mmd title block inside YAML metadata, for example.
5551 * HTML reader:
5553 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
5554 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
5555 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
5556 to see if the input starts with `<!--`. If not, it's bogus comment
5557 mode and we fail `htmlTag`.
5558 + Handle `base` tag; if it has an `href` value, this is added to
5559 all relative URLs in links and images.
5561 * DocBook reader:
5563 + Look inside "info" elements for section titles (#1931).
5565 * Docx reader:
5567 + Parse images in deprecated vml format (Jesse Rosenthal).
5568 + Allow sub/superscript verbatims (Jesse Rosenthal).
5569 Verbatim usually shuts off all other run styles, but we don't want it
5570 to shut off sub/superscript.
5572 * LaTeX reader:
5574 + Handle `tabular*` environment (#1850).
5575 Note that the table width is not actually parsed or taken into
5576 account, but pandoc no longer chokes on it.
5577 + Ignore options in `\lstinline` rather than raising error (#1997).
5578 + Add some test cases for simple tables (Mathias Schenner).
5579 + Handle valign argument in tables (Mathias Schenner) (currently
5580 we just ignore this).
5581 + Allow non-empty colsep in tables (Mathias Schenner).
5582 The `tabular` environment allows non-empty column separators
5583 with the "@{...}" syntax. Previously, pandoc would fail to
5584 parse tables if a non-empty colsep was present. With this
5585 commit, these separators are still ignored, but the table gets
5586 parsed. A test case is included.
5587 + Recognize `\newpage` as a block command.
5588 + Allow block content in \title{} (#2001).
5589 + Check for block-level newcommand aliases in blockCommand (Nikolay
5590 Yakimov).
5591 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
5592 + Properly gobble spaces after `\\` (#2007).
5594 * Textile reader:
5596 + Handle newlines in table cells, and empty cells (#1919).
5598 * Org reader:
5600 + Allow image links with non-image targets (Hans-Peter Deifel).
5601 This matches behavior of Org-Mode for links like
5602 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
5604 * Docbook writer:
5606 + Don't print empty id attributes (thanks to Steve Horne).
5608 * HTML writer:
5610 + Fixed list-style-type for numbered example lists.
5611 Should be "decimal," not "example" (#1902).
5612 + Do not omit missing `alt` attribute on `img` tag (#1131,
5613 Konstantin Zudov).
5614 + Allow multiple colgroups in table (#2122).
5615 + In revealjs, ensure that lists in speaker notes don't add "fragment"
5616 classes, which can cause additional keypresses to be needed to
5617 advance a slide (#1394).
5619 * LaTeX writer:
5621 + Don't escape `$` in URL (#1913).
5622 + Don't use listings in headers (Matthew Pickering, #1963).
5623 + Recognize book documentclass if set in metadata (#1971).
5624 This sets `--chapters` implicitly if the documentclass in metadata
5625 is a book documentclass. Previously this was done only if a book
5626 documentclass was set in a variable.
5627 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
5628 + Make `mainlang` work when `lang` is in metadata (#2174).
5630 * Texinfo writer:
5632 + Fix wrapping by using breakable spaces (Tim Lin).
5634 * RST writer:
5636 + Fixed toc depth in RST writer. Previously the depth was being
5637 rendered as a floating point number with a decimal point.
5639 * Markdown writer:
5641 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
5642 compatibility with original Markdown. We now escape `<` and `>`
5643 with entities. Also, we now backslash-escape square brackets.
5644 + Avoid introducing spurious list items through wrapping (#1946).
5645 + Don't emit span tags if plain or raw HTML disabled.
5647 * MediaWiki writer:
5649 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
5651 * AsciiDoc writer:
5653 + Insert some needed blank lines (#1860).
5654 + Avoid wrapping after list marker (#1858).
5656 * EPUB writer:
5658 + Properly handle internal links to IDs in spans, divs (#1884).
5659 + Use plain writer for metadata dc: fields (#2121).
5660 This gives better results when we have, e.g. multiple paragraphs.
5661 Note that tags aren't allowed in these fields.
5662 + Properly handle image links without an extension (#1855).
5663 + Improved chapter splitting and internal link rewriting (#1887,
5664 #2162, #2163). This will ensure that internal links work and
5665 that the references section produced by pandoc-citeproc is
5666 in its own chapter.
5667 + Fixed handling of svg images (#2183).
5669 * ICML writer:
5671 + Better handling of raw blocks and inlines (#1951).
5672 Previously these were always escaped and printed verbatim.
5673 Now they are ignored unless the format is `icml`, in which
5674 case they are passed through unescaped.
5675 + Fixed image URIs in ICML output (gohai).
5677 * Custom writer:
5679 + Raise error if loadstring returns an error status.
5680 + Raise `PandocLuaException` instead of using 'error'.
5681 Eventually we'll change the return type so that no exception
5682 is involved, but at least this can be trapped.
5683 + Use UTF-8 aware bytestring conversion.
5684 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
5685 Also factored out ByteString, since it's only used as an intermediate
5686 representation.
5688 * Docx writer:
5690 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
5691 + Filter out illegal XML characters (#1992, Matthew Pickering).
5692 + Added `noProof` to docx syntax highlighting `SourceCode` style.
5693 + Added footnotes id -1 and 0 (Jesse Rosenthal).
5694 Word uses, by default, footnotes with id -1 and 0 for separators. If a
5695 user modifies `reference.docx`, they will end up with a `settings.xml`
5696 file that references these footnotes, but no such footnotes in the
5697 document. This will produce a corruption error. Here we add these to the
5698 document and `settings.xml` file, so future modifications won't break
5699 the file.
5700 + Handle lists correctly inside table cells (Jesse Rosenthal).
5701 Previously we didn't transform lists inside table cells.
5702 + Set firstRow information in tables (Nikolay Yakimov).
5703 + Don't replace `SourceCode` style in `reference.docx` if it is defined
5704 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
5705 any `SourceCode` and `*Tok` styles in `reference.docx`.
5706 + Attempt to match international style names (#1607, Nikolay Yakimov).
5707 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
5708 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
5709 `Definition`, `First Paragraph`.
5710 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
5711 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
5712 `Footnote Ref -> Footnote Reference`.
5713 + Added `Caption` style (Nikolay Yakimov).
5714 + Changed these styles' inheritance (Nikolay Yakimov):
5715 `Image Caption <- Caption`, `Table Caption <- Caption`.
5716 + Remove `SourceCode` style from `reference.docx` (#1872).
5717 This is added automatically by the docx writer.
5718 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
5720 * `Text.Pandoc.PDF`
5722 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
5723 #1832).
5724 + More comprehensible errors on image conversion (#2067).
5725 EPS can't be supported without shelling out to something like
5726 ImageMagick, but at least we can avoid mysterious error messages.
5728 * `Text.Pandoc.Shared`:
5730 + Make safeRead safe (#1801, Matthew Pickering).
5731 + Addded `mapLeft`, `hush` (Matthew Pickering).
5733 * `Text.Pandoc.Pretty`:
5735 + Remove partial function (Matthew Pickering).
5737 * `Text.Pandoc.SelfContained`:
5739 + Add `;charset=utf-8` to script mime type if missing (#1842).
5740 + Improved building of data URIs (#1940). Now base64 is used except
5741 for `text/*` mime types.
5742 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
5743 + Properly handle data URIs in css urls (#2129).
5744 Use a proper CSS parser (adds dependency on `text-css`).
5746 * `Text.Pandoc.UTF8`:
5748 + Better handling of bare CRs in input files (#2132).
5749 Previously we just stripped them out; now we convert
5750 other line ending styles to LF line endings.
5752 * `Text.Pandoc.ImageSize`:
5754 + Fixed some exif header parsing bugs (#1834).
5755 + Make imageSize return an Either, not a Maybe (#1834).
5756 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
5757 parse failure (rather than `error`).
5758 + Improved warnings when image size can't be determined.
5759 + Removed error landmines (Matthew Pickering).
5761 * Added woff2 to MIME types (Alfred Wechselberger).
5763 * pandoc: When a binary input format is used, warn that file
5764 arguments past the first one are being ignored (Matthew Pickering).
5766 [template changes]
5768 * LaTeX template:
5770 + Degrade gracefully if `\paragraph` not defined.
5771 + Include `grffile` together with `graphicx` (#2074).
5772 This properly handles filenames containing spaces and dots.
5773 + Redefine `\paragraph`, `\subparagraph`... to behave more
5774 like section headers (#1658).
5775 + Import hyperref before polyglossia to avoid an error with xelatex,
5776 "please load package hyperref before bidi package" (Nick Bart).
5777 + Added `toccolor` variable to control link color in toc (Kaixhin).
5779 * LaTeX, Beamer templates:
5781 + Provide `\tightlist`, which is now used by the LaTeX writer.
5782 + Use polyglossia in beamer (#85).
5783 + Use `bibliography` instead of `biblio-files`
5784 (#1661). Also use `\addbibresource` instead of `\bibliography` for
5785 biblatex.
5786 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
5787 variable that is derived from a comma-separated list in `lang`;
5788 the last language is `mainlang` and the others are `otherlang`.
5790 * EPUB templates:
5792 + Use `div`, not `p`, for "rights" on title page.
5793 + Added header-includes, include-before, include-after (#1987).
5795 * OpenDocument template:
5797 + Use `text:p` instead of `text:h` for title.
5798 Using `text:h` causes problems with numbering. Closes #2059.
5799 Thansk to @nkalvi for diagnosing this.
5801 * reveal.js template:
5803 + Link to non-minified css, js. The minified versions no longer
5804 ship with the library.
5805 + Correctly include style CSS (#1949).
5806 + New configurable options options: `center`, `maxScale`, `slideNuber`
5807 (Dmitry Smirnov, pandoc-templates#89).
5808 + Moved custom CSS after theme. This allows custom CSS to modify
5809 themes, instead of being replaced by them.
5810 + Allow `center` to be set to false.
5812 [under the hood improvements]
5814 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
5815 Yakimov). Instead the repository now includes the component text files,
5816 and the zipped binaries are built from these using a helper
5817 program, `make-reference-files`. This should make maintenance of
5818 these components easier going forward.
5820 * `Text.Pandoc.Parsing`:
5822 + Added new `<+?>` combinator (Nikolay Yakimov).
5823 + Added `stateHeaderKeys` to `ParserState`.
5825 * `make_deb.sh` fixes:
5827 + Detect architecture.
5828 + Add Installed-Size to debian package control file (#1900).
5829 + Use `fakeroot` to get permissions right.
5830 + Use `mkdir` and `cp` instead of `install`.
5831 + Set permissions of directories to 755.
5832 + Install in `/usr` rather than `/usr/local`.
5833 + Compress man pages.
5834 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
5836 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
5837 to assist with transition to `time` 1.5.
5839 * Updated CONTRIBUTING.md with information about issue tags (Matthew
5840 Pickering).
5842 * Updated travis installs to the new sudo-less syntax (Tim Lin).
5844 * Updated dependency version bounds.
5846 * EPUB tests: don't use `joinPath`, which varies across platforms.
5847 Instead, use a forward-slash to join paths, regardless of the
5848 platform. This matches the way `MediaBag` now works.
5850 * Clarify JSON input and output in usage message (Caleb McDaniel).
5852 * Improved INSTALL instructions.
5854 * Always build man pages. Removed make-pandoc-man-pages flag.
5856 * Makefile: removed man target, now that we generate man pages by default.
5858 * README:
5860 + Fixed typos (J. Lewis Muir).
5861 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
5862 + Added note on in-field markup in biblio databases (Nick Bart).
5863 + Fixed misleading example of raw HTML block.
5864 + Various minor formatting and consistency fixes for the program
5865 options (Andreas Lööw).
5866 + Made definition lists for options all "loose" for consistency.
5867 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
5868 `--bib2json` and `--bib2yaml` options (Nick Bart).
5869 + Removed obsolete reference to `mods2yaml` (Nick Bart).
5870 + Added section on syntax highlighting.
5871 + Documented `toccolor` variable.
5873pandoc (1.13.2.1)
5875 * Updated to build with ghc 7.10.1.
5877 * Bumped package upper bounds for filepath, blaze-html,
5878 blaze-markup.
5880pandoc (1.13.2)
5882 * TWiki Reader: add new new twiki reader (API change, Alexander Sulfrian).
5884 * Markdown reader:
5886 + Better handling of paragraph in div (#1591).
5887 Previously text that ended a div would be parsed as Plain
5888 unless there was a blank line before the closing div tag.
5889 + Don't treat a citation as a reference link label (#1763).
5890 + Fix autolinks with following punctuation (#1811).
5891 The price of this is that autolinked bare URIs can no longer
5892 contain `>` characters, but this is not a big issue.
5893 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
5894 + Allow `startnum` to work without `fancy_lists`. Formerly
5895 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
5897 * RST reader (all Daniel Bergey):
5899 + Parse quoted literal blocks (#65). RST quoted literal blocks are
5900 the same as indented literal blocks (which pandoc already supports)
5901 except that the quote character is preserved in each line.
5902 + Parse RST class directives. The class directive accepts one or more
5903 class names, and creates a Div value with those classes. If the
5904 directive has an indented body, the body is parsed as the children of
5905 the Div. If not, the first block folowing the directive is made a
5906 child of the Div. This differs from the behavior of rst2xml, which
5907 does not create a Div element. Instead, the specified classes are
5908 applied to each child of the directive. However, most Pandoc Block
5909 constructors to not take an Attr argument, so we can't duplicate this
5910 behavior.
5911 + Warn about skipped directives.
5912 + Literal role now produces Code. Code role should have "code" class.
5913 + Improved support for custom roles
5915 - Added `sourceCode` to classes for `:code:` role, and anything
5916 inheriting from it.
5917 - Add the name of the custom role to classes if the Inline
5918 constructor supports Attr.
5919 - If the custom role directive does not specify a parent role,
5920 inherit from the `:span:` role.
5922 This differs somewhat from the `rst2xml.py` behavior. If a custom
5923 role inherits from another custom role, Pandoc will attach both
5924 roles' names as classes. `rst2xml.py` will only use the class of
5925 the directly invoked role (though in the case of inheriting from a
5926 `:code:` role with a `:language:` defined, it will also provide the
5927 inherited language as a class).
5928 + Warn about ignored fields in role directives.
5930 * LaTeX reader:
5932 + Parse label after caption into a span instead of
5933 inserting an additional paragraph of bracketed text (#1747).
5934 + Parse math environments as inline when possible (#1821).
5935 + Better handling of `\noindent` and `\greektext` (#1783).
5936 + Handle `\texorpdfstring` more gracefully.
5937 + Handle `\cref` and `\sep` (Wikiwide).
5938 + Support `\smartcite` and `\Smartcite` from biblatex.
5940 * HTML reader:
5942 + Retain display type of MathML output (#1719, Matthew Pickering).
5943 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
5944 + Make `embed` tag either block or inline (#1756).
5946 * DocBook reader:
5948 + Handle `keycombo`, `keycap` (#1815).
5949 + Get string content in inner tags for literal elements (#1816).
5950 + Handle `menuchoice` elements better, with a `>` between (#1817).
5951 + Include `id` on section headers (#1818).
5952 + Document/test "type" as implemented (Brian O'Sullivan).
5953 + Add support for calloutlist and callout (Brian O'Sullivan).
5954 We treat a calloutlist as a bulleted list. This works well in practice.
5955 + Add support for `classname` (Bryan O'Sullivan).
5957 * Docx reader:
5959 + Fix window path for image lookup (Jesse Rosenthal).
5960 Don't use os-sensitive "combine", since we always want the paths in our
5961 zip-archive to use forward-slashes.
5962 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
5963 When users number their headers, Word understands that as a single item
5964 enumerated list. We make the assumption that such a list is, in fact,
5965 a header.
5966 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
5967 There could be new top-level headers after making lists, so we have to
5968 rewrite links after that.
5969 + Use polyglot header list (Jesse Rosenthal).
5970 We're just keeping a list of header formats that different languages
5971 use as their default styles. At the moment, we have English, German,
5972 Danish, and French. We can continue to add to this.
5973 This is simpler than parsing the styles file, and perhaps less
5974 error-prone, since there seems to be some variations, even within a
5975 language, of how a style file will define headers.
5976 + Remove header class properly in other langs (Jesse Rosenthal).
5977 When we encounter one of the polyglot header styles, we want to remove
5978 that from the par styles after we convert to a header. To do that, we
5979 have to keep track of the style name, and remove it appropriately.
5980 + Account for external link URLs with anchors. Previously, if a URL
5981 had an anchor, the reader would incorrectly identify it as an
5982 internal link and return only the anchor as URL. (Caleb McDaniel)
5983 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
5985 * Org reader:
5987 + Added state changing blanklines (Jesse Rosenthal).
5988 This allows us to emphasize at the beginning of a new paragraph (or, in
5989 general, after blank lines).
5990 + Fixed bug with bulleted lists:
5992 - a
5993 - b
5994 * c
5996 was being parsed as a list, even though an unindented `*`
5997 should make a heading. See
5998 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
5999 + Org reader: absolute, relative paths in link (#1741, Albert
6000 Krewinkel). The org reader was too restrictive when parsing links;
6001 some relative links and links to files given as absolute paths
6002 were not recognized correctly.
6003 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
6004 This is important for use in gitit, which uses empty links
6005 for wikilinks.
6006 + Respect indent when parsing Org bullet lists (#1650, Timothy
6007 Humphries). Fixes issue with top-level bullet list parsing.
6008 + Fix indent issue for definition lists (Timothy Humphries,
6009 see #1650, #1698, #1680).
6010 + Parse multi-inline terms correctly in definition list (#1649,
6011 Matthew Pickering).
6012 + Fix rules for emphasis recognition (Albert Krewinkel).
6013 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
6014 strings. This is wrong, as `,` and `'` are forbidden border chars and
6015 may not occur on the inner border of emphasized text.
6016 + Drop COMMENT document trees (Albert Krewinkel).
6017 Document trees under a header starting with the word `COMMENT` are
6018 comment trees and should not be exported. Those trees are dropped
6019 silently (#1678).
6020 + Properly handle links to `file:target` (Albert Krewinkel).
6021 Org links like `[[file:target][title]]` were not handled correctly,
6022 parsing the link target verbatim. The org reader is changed such that
6023 the leading `file:` is dropped from the link target (see #756, #1812).
6024 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
6025 Org supports special symbols which can be included using LaTeX syntax,
6026 but are actually MathML entities. Examples for this are
6027 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
6028 or `\copy` (the copyright sign ©)
6030 * EPUB reader:
6032 + URI handling improvements. Now we outsource most of the work to
6033 `fetchItem'`. Also, do not include queries in file extensions (#1671).
6035 * LaTeX writer:
6037 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
6038 + Handle consecutive linebreaks (#1733).
6039 + Protect graphics in headers (Jesse Rosenthal).
6040 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
6041 + Put `~` before header in list item text (Jesse Rosenthal).
6042 Because of the built-in line skip, LaTeX can't handle a section header
6043 as the first element in a list item.
6044 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
6045 + Better handling of display math in simple tables (#1754).
6046 We convert display math to inline math in simple tables,
6047 since LaTeX can't deal with display math in simple tables.
6048 + Escape spaces in code (#1694, Bjorn Buckwalter).
6050 * MediaWiki writer:
6052 + Fixed links with URL = text. Previously these were rendered as bare
6053 words, even if the URL was not an absolute URL (#1825).
6055 * ICML writer:
6057 + Don't force all citations into footnotes.
6059 * RTF writer:
6061 + Add blankline at end of output (#1732, Matthew Pickering).
6063 * RST writer:
6065 + Ensure blank line after figure.
6066 + Avoid exces whitespace after last list item (#1777).
6067 + Wrap line blocks with spaces before continuations (#1656).
6068 + Fixed double-rendering of footnotes in RST tables (#1769).
6070 * DokuWiki writer:
6072 + Better handling of block quotes. This change ensures that
6073 multiple paragraph blockquotes are rendered using native `>`
6074 rather than as HTML (#1738).
6075 + Fix external images (#1739). Preface relative links with ":",
6076 absolute URIs without. (Timothy Humphries)
6078 * HTML writer:
6080 + Use protocol-relative URL for mathjax.
6081 + Put newline btw img and caption paragraph.
6082 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
6083 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
6084 This adds `KaTeX` to `HTMLMathMethod` (API change).
6085 + Don't double render when `email-obfuscation=none` (#1625, Matthew
6086 Pickering).
6087 + Make header attributes work outside top level (#1711).
6088 Previously they only appeared on top level header elements.
6089 Now they work e.g. in blockquotes.
6091 * ODT writer:
6093 + Correctly handle images without extensions (#1729).
6094 + Strip querystring in ODT write (#1682, Todd Sifleet).
6096 * FB2 writer:
6098 + Add newline to output.
6100 * EPUB writer:
6102 + Don't add `sourceURL` to absolute URIs (#1669).
6103 + Don't use unsupported `opf:title-type` for epub2.
6104 + Include "landmarks" section in nav document for epub3 (#1757).
6105 + Removed playOrder from navpoint elements in ncx file (#1760).
6106 These aren't required, and they make manual modification of epubs
6107 difficult.
6108 + Extract title even from structured title.
6109 + Don't include nav node in spine unless `--toc` was requested.
6110 Previously we included it in the spine with `linear="no"`, leading
6111 to odd results in some readers (#1593).
6112 + Fixed absolute URI detection (#1672).
6113 + Correctly resolve relative URIs (#1671).
6114 + Use regular page template for `nav.xhtml`, including doctype (#1759).
6116 * Docx writer:
6118 + Put docx table captions above tables (#1641, Nikolay Yakimov).
6119 + Get the page width from the reference docx file, and use
6120 it to scale images that are too large to fit (Grégory Bataille).
6121 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
6122 are inferred based on `<w:name val="heading #">` fallback, if there
6123 are no en-US "Heading#" styles
6124 + Look in user data dir for archive `reference.docx`.
6125 + Renumber header and footer relationships to avoid collisions (Jesse
6126 Rosenthal). We previously took the old relationship names of the
6127 headers and footer in secptr. That led to collisions. We now make
6128 a map of availabl names in the relationships file, and then rename
6129 in secptr.
6131 * ConTeXt writer:
6133 + Add function toLabel (Mark Szepieniec).
6134 This function can be used to sanitize reference labels so that
6135 they do not contain any of the illegal characters \#[]",{}%()|= .
6136 Currently only Links have their labels sanitized, because they
6137 are the only Elements that use passed labels.
6139 * `Text.Pandoc.Shared`:
6141 + Moved import of `toChunks` outside of CPP conditional (#1590).
6142 + Fix `inDirectory` to reset to the original directory in case
6143 an exception occurs (Freiric Barral).
6145 * Templates:
6147 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
6148 Thanks to bluebirch.
6149 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
6150 (#1616).
6151 + LaTeX template: Add shorthands=off to babel options (#1648).
6152 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
6153 This aids styling, making it possible for example to set 0 margins
6154 on the title page (#1758).
6155 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
6156 Previously we just expected 'title', 'subtitle', 'author', 'date'.
6157 Now we still support those, but also support the format recommended
6158 for epub metadata in the pandoc README:
6160 ---
6161 title:
6162 - type: main
6163 text: My Book
6164 - type: subtitle
6165 text: An investigation of metadata
6166 creator:
6167 - role: author
6168 text: John Smith
6169 - role: editor
6170 text: Sarah Jones
6171 identifier:
6172 - scheme: DOI
6173 text: doi:10.234234.234/33
6174 publisher: My Press
6175 rights: (c) 2007 John Smith, CC BY-NC
6176 ...
6178 * `Text.Pandoc.Templates.getDefaultTemplate`:
6179 don't fail when called with "fb2" (#1660).
6181 * `Text.Pandoc.Parsing`:
6183 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
6184 For example: `$x = \text{the $n$th root of $y$}` (#1677).
6185 + Change `parseFromString` to fail if not all input is consumed.
6186 (Matthew Pickering)
6187 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
6188 used by more readers (API change, Daniel Bergey).
6190 * `Text.Pandoc.Pretty`:
6192 + Improve performance of `realLength` (Matthew Pickering).
6193 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
6194 were getting at the end of markdown fragments (as well as rst, org,
6195 etc.) (#1705).
6197 * `Text.Pandoc.MIME`:
6199 + Add mime type for WebVTT (Jason Ronallo).
6200 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
6201 This is needed for epub3 validation.
6203 * `Text.Pandoc.MediaBag`:
6205 + Fix Windows specific path problems (#1597).
6207 * `Text.Pandoc.Shared`:
6209 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
6211 * Link the test suite using `-threaded`.
6212 This allows the test suite to be run using `+RTS -N`.
6214 * Added `network` dependency under `network-uri` flag in test section.
6216 * Give better error messages when someone tries to convert from
6217 pdf, doc, odt (#1683).
6219 * Added `track` to list of tags treated by `--self-contained` (#1664).
6221pandoc (1.13.1)
6223 * Fixed `--self-contained` with Windows paths (#1558).
6224 Previously `C:\foo.js` was being wrongly interpreted as a URI.
6226 * HTML reader: improved handling of tags that can be block or inline.
6227 Previously a section like this would be enclosed in a paragraph,
6228 with RawInline for the video tags (since video is a tag that can
6229 be either block or inline):
6231 <video controls="controls">
6232 <source src="../videos/test.mp4" type="video/mp4" />
6233 <source src="../videos/test.webm" type="video/webm" />
6234 <p>
6235 The videos can not be played back on your system.<br/>
6236 Try viewing on Youtube (requires Internet connection):
6237 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
6238 Youtube</a>.
6239 </p>
6240 </video>
6242 This change will cause the video and source tags to be parsed
6243 as RawBlock instead, giving better output.
6244 The general change is this: when we're parsing a "plain" sequence
6245 of inlines, we don't parse anything that COULD be a block-level tag.
6247 * Docx reader:
6249 + Be sensitive to user styles. Note that "Hyperlink" is
6250 "blacklisted," as we don't want the default underline styling to be
6251 inherited by all links by default (Jesse Rosenthal).
6252 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
6253 This makes to docx reader's native output fit with the way the markdown
6254 reader understands its markdown output.
6256 * Textile writer: Extended the range of cases where native textile
6257 tables will be used (as opposed to raw HTML): we now handle any
6258 alignment type, but only for simple tables with no captions.
6260 * Txt2Tags reader:
6262 + Header is now parsed only if standalone flag is set (Matthew Pickering).
6263 + The header is now parsed as meta information. The first line is the
6264 `title`, the second is the `author` and third line is the `date`
6265 (Matthew Pickering).
6266 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
6267 + Fixed crash when reading from stdin.
6269 * EPUB writer: Don't use page-progression-direction in EPUB2, which
6270 doesn't support it. Also, if page-progression-direction not specified
6271 in metadata, don't include the attribute even in EPUB3; not including it
6272 is the same as including it with the value "default", as we did before.
6273 (#1550)
6275 * Org writer: Accept example lines with indentation at the beginning
6276 (Calvin Beck).
6278 * DokuWiki writer:
6280 + Refactor to use Reader monad (Matthew Pickering).
6281 + Avoid using raw HTML in table cells; instead, use `\\`
6282 instead of newlines (Jesse Rosenthal).
6283 + Properly handle HTML table cell alignments, and use spacing
6284 to make the tables look prettier (#1566).
6286 * Docx writer:
6288 + Bibliography entries get `Bibliography` style (#1559).
6289 + Implement change tracking (Jesse Rosenthal).
6291 * LaTeX writer:
6293 + Fixed a bug that caused a table caption to repeat across all pages
6294 (Jose Luis Duran).
6295 + Improved vertical spacing in tables and made it customizable using
6296 standard lengths set by booktab. See
6297 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
6298 (Jose Luis Duran).
6299 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
6300 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
6301 + Made horizontal rules more flexible (Jose Luis Duran).
6303 * Text.Pandoc.MIME:
6305 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
6306 Code cleanups (Artyom Kazak).
6308 * Templates:
6310 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
6311 thanks lemzwerg).
6313 * Improved OSX build procedure.
6315 * Added `network-uri` flag, to deal with split of `network-uri` from
6316 `network`.
6318 * Fix build dependencies for the `trypandoc` flag, so that they are
6319 ignored if `trypandoc` flag is set to False (Gabor Pali).
6321 * Updated README to remove outdated claim that `--self-contained`
6322 looks in the user data directory for missing files.
6324pandoc (1.13.0.1)
6326 * Docx writer:
6328 + Fixed regression which bungled list numbering (#1544), causing
6329 all lists to appear as basic ordered lists.
6330 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
6331 Added a property to all table rows where the sum of column widths
6332 is specified in pct (fraction of 5000). This helps persuade Word
6333 to lay out the table with the widths we specify.
6335 * Fixed a bug in Windows 8 which caused pandoc not to find the
6336 `pandoc-citeproc` filter (#1542).
6338 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
6339 Most significantly, the reader now uses Builder, leading to some
6340 performance improvements.
6342 * HTML reader: Parse appropriately styled span as SmallCaps.
6344 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
6345 `superscript`, and `subscript` extensions, respectively, are
6346 deactivated (#1127).
6348 * Added `trypandoc` flag to build CGI executable used in the online
6349 demo.
6351 * Makefile: Added 'quick', 'osxpkg' targets.
6353 * Updated README in templates to indicate templates license.
6354 The templates are dual-licensed, BSD3 and GPL2+.
6356pandoc (1.13)
6358 [new features]
6360 * Added `docx` as an input format (Jesse Rosenthal). The docx
6361 reader includes conversion of native Word equations to pandoc
6362 LaTeX `Math` elements. Metadata is taken from paragraphs at the
6363 beginning of the document with styles `Author`, `Title`, `Subtitle`,
6364 `Date`, and `Abstract`.
6366 * Added `epub` as an input format (Matthew Pickering). The epub
6367 reader includes conversion of MathML to pandoc LaTeX `Math`
6368 elements.
6370 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
6371 Txt2tags is a lightweight markup format described at
6372 <http://txt2tags.org/>.
6374 * Added `dokuwiki` as an output format (Clare Macrae).
6376 * Added `haddock` as an output format.
6378 * Added `--extract-media` option to extract media contained in a zip
6379 container (docx or epub) while adjusting image paths to point to the
6380 extracted images.
6382 * Added a new markdown extension, `compact_definition_lists`, that
6383 restores the syntax for definition lists of pandoc 1.12.x, allowing
6384 tight definition lists with no blank space between items, and
6385 disallowing lazy wrapping. (See below under behavior changes.)
6387 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
6389 * Added extensions `native_spans` and `native_divs` to activate
6390 parsing of material in HTML span or div tags as Pandoc Span
6391 inlines or Div blocks.
6393 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
6394 Textile, and MediaWiki readers. This is an option intended
6395 for debugging parsing problems; ordinary users should not need
6396 to use it.
6398 [behavior changes]
6400 * Changed behavior of the `markdown_attribute` extension, to bring
6401 it in line with PHP markdown extra and multimarkdown. Setting
6402 `markdown="1"` on an outer tag affects all contained tags,
6403 recursively, until it is reversed with `markdown="0"` (#1378).
6405 * Revised markdown definition list syntax (#1429). Both the reader
6406 and writer are affected. This change brings pandoc's definition list
6407 syntax into alignment with that used in PHP markdown extra and
6408 multimarkdown (with the exception that pandoc is more flexible about
6409 the definition markers, allowing tildes as well as colons). Lazily
6410 wrapped definitions are now allowed. Blank space is required
6411 between list items. The space before a definition is used to determine
6412 whether it is a paragraph or a "plain" element. **WARNING: This change
6413 may break existing documents!** Either check your documents for
6414 definition lists without blank space between items, or use
6415 `markdown+compact_definition_lists` for the old behavior.
6417 * `.numberLines` now works in fenced code blocks even if no language
6418 is given (#1287, jgm/highlighting-kate#40).
6420 * Improvements to `--filter`:
6422 + Don't search PATH for a filter with an explicit path.
6423 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
6424 the system path, even if there was a `caps.py` in the working directory.
6425 + Respect shebang if filter is executable (#1389).
6426 + Don't print misleading error message.
6427 Previously pandoc would say that a filter was not found,
6428 even in a case where the filter had a syntax error.
6430 * HTML reader:
6432 + Parse `div` and `span` elements even without `--parse-raw`,
6433 provided `native_divs` and `native_spans` extensions are set.
6434 Motivation: these now generate native pandoc Div and Span
6435 elements, not raw HTML.
6436 + Parse EPUB-specific elements if the `epub_html_exts`
6437 extension is enabled. These include `switch`, `footnote`,
6438 `rearnote`, `noteref`.
6440 * Org reader:
6442 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
6443 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
6444 `\cite{Coffee}`), can be used without any further escaping (Albert
6445 Krewinkel).
6447 * Textile reader and writer:
6449 + The `raw_tex` extension is no longer set by default. You can
6450 enable it with `textile+raw_tex`.
6452 * DocBook reader:
6454 + Support `equation`, `informalequation`, `inlineequation` elements with
6455 `mml:math` content. This is converted into LaTeX and put into a Pandoc
6456 Math inline.
6458 * Revised `plain` output, largely following the style of Project
6459 Gutenberg:
6461 + Emphasis is rendered with `_underscores_`, strong emphasis
6462 with ALL CAPS.
6463 + Headings are rendered differently, with space to set them off,
6464 not with setext style underlines. Level 1 headers are ALL CAPS.
6465 + Math is rendered using unicode when possible, but without the
6466 distracting emphasis markers around variables.
6467 + Footnotes use a regular `[n]` style.
6469 * Markdown writer:
6471 + Horizontal rules are now a line across the whole page.
6472 + Prettier pipe tables. Columns are now aligned (#1323).
6473 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
6474 no longer emits any raw HTML, including span and div tags
6475 generated by Span and Div elements.
6476 + Use span with style for `SmallCaps` (#1360).
6478 * HTML writer:
6480 + Autolinks now have class `uri`, and email autolinks have class
6481 `email`, so they can be styled.
6483 * Docx writer:
6485 + Document formatting is carried over from `reference.docx`.
6486 This includes margins, page size, page orientation, header,
6487 and footer, including images in headers and footers.
6488 + Include abstract (if present) with `Abstract` style (#1451).
6489 + Include subtitle (if present) with `Subtitle` style, rather
6490 than tacking it on to the title (#1451).
6492 * Org writer:
6494 + Write empty span elements with an id attribute as org anchors.
6495 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
6497 * LaTeX writer:
6499 + Put table captions above tables, to match the conventional
6500 standard. (Previously they appeared below tables.)
6501 + Use `\(..\)` instead of `$..$` for inline math (#1464).
6502 + Use `\nolinkurl` in email autolinks. This allows them to be styled
6503 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
6504 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
6505 curly quotes in the PDF output (#1364).
6506 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
6507 do not appear before the overlays in which their markers appear
6508 (#1525).
6509 + Don't produce a `\label{..}` for a Div or Span element. Do produce
6510 a `\hyperdef{..}` (#1519).
6512 * EPUB writer:
6514 + If the metadata includes `page-progression-direction` (which can be
6515 `ltr` or `rtl`, the `page-progression-direction` attribute will
6516 be set in the EPUB spine (#1455).
6518 * Custom lua writers:
6520 + Custom writers now work with `--template`.
6521 + Removed HTML header scaffolding from `sample.lua`.
6522 + Made citation information available in lua writers.
6524 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
6525 adjacent `RawBlock`s when possible.
6527 [API changes]
6529 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
6531 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
6532 Pickering).
6534 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
6535 Pickering).
6537 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
6538 (Clare Macrae).
6540 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
6542 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
6543 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
6544 readers return a pair of a `Pandoc` document and a `MediaBag` with
6545 the media resources they contain. This can be extracted using
6546 `--extract-media`. Writers that incorporate media (PDF, Docx,
6547 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
6548 for resources in the `MediaBag` generated by the reader, in addition to
6549 the file system or web.
6551 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
6552 Renamed `readTeXMath'` to `texMathToInlines`.
6554 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
6555 `readers` now associates names of readers with `Reader`
6556 structures. This allows inclusion of readers, like the docx
6557 reader, that take binary rather than textual input.
6559 * `Text.Pandoc.Shared`:
6561 + Added `capitalize` (Artyom Kazak), and replaced uses of
6562 `map toUpper` (which give bad results for many languages).
6563 + Added `collapseFilePath`, which removes intermediate `.` and
6564 `..` from a path (Matthew Pickering).
6565 + Added `fetchItem'`, which works like `fetchItem` but searches
6566 a `MediaBag` before looking on the net or file system.
6567 + Added `withTempDir`.
6568 + Added `removeFormatting`.
6569 + Added `extractSpaces` (from HTML reader) and generalized its type
6570 so that it can be used by the docx reader (Matthew Pickering).
6571 + Added `ordNub`.
6572 + Added `normalizeInlines`, `normalizeBlocks`.
6573 + `normalize` is now `Pandoc -> Pandoc` instead of
6574 `Data a :: a -> a`. Some users may need to change their uses of
6575 `normalize` to the newly exported `normalizeInlines` or
6576 `normalizeBlocks`.
6578 * `Text.Pandoc.Options`:
6580 + Added `writerMediaBag` to `WriterOptions`.
6581 + Removed deprecated and no longer used `readerStrict` in
6582 `ReaderOptions`. This is handled by `readerExtensions` now.
6583 + Added `Ext_compact_definition_lists`.
6584 + Added `Ext_epub_html_exts`.
6585 + Added `Ext_native_divs` and `Ext_native_spans`.
6586 This allows users to turn off the default pandoc behavior of
6587 parsing contents of div and span tags in markdown and HTML
6588 as native pandoc Div blocks and Span inlines.
6590 * `Text.Pandoc.Parsing`:
6592 + Generalized `readWith` to `readWithM` (Matthew Pickering).
6593 + Export `runParserT` and `Stream` (Matthew Pickering).
6594 + Added `HasQuoteContext` type class (Matthew Pickering).
6595 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
6596 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
6597 `applyMacros` (Matthew Pickering).
6598 + Added custom `token` (Matthew Pickering).
6599 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
6600 track of the ending tag we're waiting for when we're parsing inside
6601 HTML block tags.
6602 + Added `stateMarkdownAttribute` to `ParserState`. This is used
6603 to keep track of whether the markdown attribute has been set in
6604 an enclosing tag.
6605 + Generalized type of `registerHeader`, using new type classes
6606 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
6607 Pickering). These allow certain common functions to be reused
6608 even in parsers that use custom state (instead of `ParserState`),
6609 such as the MediaWiki reader.
6610 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
6611 and generalized their types (Matthew Pickering).
6613 * `Text.Pandoc.Pretty`:
6615 + Added `nestle`.
6616 + Added `blanklines`, which guarantees a certain number of blank lines
6617 (and no more).
6619 [bug fixes]
6621 * Markdown reader:
6623 + Fixed parsing of indented code in list items. Indented code
6624 at the beginning of a list item must be indented eight spaces
6625 from the margin (or edge of the container), or four spaces
6626 from the list marker, whichever is greater.
6627 + Fixed small bug in HTML parsing with `markdown_attribute`, which
6628 caused incorrect tag nesting for input like
6629 `<aside markdown="1">*hi*</aside>`.
6630 + Fixed regression with intraword underscores (#1121).
6631 + Improved parsing of inline links containing quote characters (#1534).
6632 + Slight rewrite of `enclosure`/`emphOrStrong` code.
6633 + Revamped raw HTML block parsing in markdown (#1330).
6634 We no longer include trailing spaces and newlines in the
6635 raw blocks. We look for closing tags for elements (but without
6636 backtracking). Each block-level tag is its own `RawBlock`;
6637 we no longer try to consolidate them (though `--normalize` will do so).
6638 + Combine consecutive latex environments. This helps when you have
6639 two minipages which can't have blank lines between them (#690, #1196).
6640 + Support smallcaps through span.
6641 `<span style="font-variant:small-caps;">foo</span>` will be
6642 parsed as a `SmallCaps` inline, and will work in all output
6643 formats that support small caps (#1360).
6644 + Prevent spurious line breaks after list items (#1137). When the
6645 `hard_line_breaks` option was specified, pandoc would formerly
6646 produce a spurious line break after a tight list item.
6647 + Fixed table parsing bug (#1333).
6648 + Handle `c++` and `objective-c` as language identifiers in
6649 github-style fenced blocks (#1318).
6650 + Inline math must have nonspace before final `$` (#1313).
6652 * LaTeX reader:
6654 + Handle comments at the end of tables. This resolves the issue
6655 illustrated in <http://stackoverflow.com/questions/24009489>.
6656 + Correctly handle table rows with too few cells. LaTeX seems to
6657 treat them as if they have empty cells at the end (#241).
6658 + Handle leading/trailing spaces in `\emph` better.
6659 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
6660 so that we don't get things like `* hi *` in markdown output.
6661 Also applies to `\textbf` and some other constructions (#1146).
6662 + Don't assume preamble doesn't contain environments (#1338).
6663 + Allow (and discard) optional argument for `\caption` (James Aspnes).
6665 * HTML reader:
6667 + Fixed major parsing problem with HTML tables. Table cells were
6668 being combined into one cell (#1341).
6669 + Fixed performance issue with malformed HTML tables.
6670 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
6671 + Allow space between `<col>` and `</col>`.
6672 + Added `audio` and `source` in `eitherBlockOrInline`.
6673 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
6674 `blockTags` to `eitherBlockOrInline`.
6675 + `map` and `object` were mistakenly in both lists; they have been removed
6676 from `blockTags`.
6677 + Ignore `DOCTYPE` and `xml` declarations.
6679 * MediaWiki reader:
6681 + Don't parse backslash escapes inside `<source>` (#1445).
6682 + Tightened up template parsing.
6683 The opening `{{` must be followed by an alphanumeric or `:`.
6684 This prevents the exponential slowdown in #1033.
6685 + Support "Bild" for images.
6687 * DocBook reader:
6689 + Better handle elements inside code environments. Pandoc's document
6690 model does not allow structure inside code blocks, but at least this way
6691 we preserve the text (#1449).
6692 + Support `<?asciidoc-br?>` (#1236).
6694 * Textile reader:
6696 + Fixed list parsing. Lists can now start without an intervening
6697 blank line (#1513).
6698 + HTML block-level tags that do not start a line are parsed as
6699 inline HTML and do not interrupt paragraphs (as in RedCloth).
6701 * Org reader:
6703 + Make tildes create inline code (#1345). Also relabeled `code` and
6704 `verbatim` parsers to accord with the org-mode manual.
6705 + Respect `:exports` header argument in code blocks (Craig Bosma).
6706 + Fixed tight lists with sublists (#1437).
6708 * EPUB writer:
6710 + Avoid excess whitespace in `nav.xhtml`. This should improve
6711 TOC view in iBooks (#1392).
6712 + Fixed regression on cover image.
6713 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
6714 because the metadata id was not correct. Now we derive the id from the
6715 actual cover image filename, which we preserve rather than using
6716 "cover-image."
6717 + Keep newlines between block elements. This allows
6718 easier diff-ability (#1424).
6719 + Use `stringify` instead of custom `plainify`.
6720 + Use `renderTags'` for all tag rendering. This properly handles tags
6721 that should be self-closing. Previously `<hr/>` would appear in EPUB
6722 output as `<hr></hr>` (#1420).
6723 + Better handle HTML media tags.
6724 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
6725 can have only one dc:date, so only the first one is used.
6727 * LaTeX writer:
6729 + Correctly handle figures in notes. Notes can't contain figures in
6730 LaTeX, so we fake it to avoid an error (#1053).
6731 + Fixed strikeout + highlighted code (#1294).
6732 Previously strikeout highlighted code caused an error.
6734 * ConTeXt writer:
6736 + Improved detection of autolinks with URLs containing escapes.
6738 * RTF writer:
6740 + Improved image embedding: `fetchItem'` is now used to get the
6741 images, and calculated image sizes are indicated in the RTF.
6742 + Avoid extra paragraph tags in metadata (#1421).
6744 * HTML writer:
6746 + Deactivate "incremental" inside slide speaker notes (#1394).
6747 + Don't include empty items in the table of contents for
6748 slide shows. (These would result from creating a slide
6749 using a horizontal rule.)
6751 * MediaWiki writer:
6753 + Minor renaming of `st` prefixed names.
6755 * AsciiDoc writer:
6757 + Double up emphasis and strong emphasis markers in intraword
6758 contexts, as required by asciidoc (#1441).
6760 * Markdown writer:
6762 + Avoid wrapping that might start a list, blockquote, or header (#1013).
6763 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
6764 + Don't use braced attributes for fenced code (#1416).
6765 If `Ext_fenced_code_attributes` is not set, the first class
6766 attribute will be printed after the opening fence as a bare word.
6767 + Separate adjacent lists of the same kind with an HTML comment (#1458).
6769 * PDF writer:
6771 + Fixed treatment of data uris for images (#1062).
6773 * Docx writer:
6775 + Use Compact style for empty table cells (#1353).
6776 Otherwise we get overly tall lines when there are empty
6777 table cells and the other cells are compact.
6778 + Create overrides per-image for `media/` in reference docx.
6779 This should be somewhat more robust and cover more types of images.
6780 + Improved `entryFromArchive` to avoid an unneeded parse.
6781 + Section numbering carries over from reference.docx (#1305).
6782 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
6783 we assign numbers based on the list marker styles.
6785 * `Text.Pandoc.Options`:
6787 + Removed `Ext_fenced_code_attributes` from `markdown_github`
6788 extensions.
6790 * `Text.Pandoc.ImageSize`:
6792 + Use default instead of failing if image size not found
6793 in exif header (#1358).
6794 + ignore unknown exif header tag rather than crashing.
6795 Some images seem to have tag type of 256, which was causing
6796 a runtime error.
6798 * `Text.Pandoc.Shared`:
6800 + `fetchItem`: unescape URI encoding before reading local file (#1427).
6801 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
6802 doing mime lookup, to improve mime type guessing.
6803 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
6804 other things are treated as relative URIs if `sourceURL` is `Just _`,
6805 otherwise as file paths on the local file system.
6806 + `fetchItem` now properly handles links without a protocol (#1477).
6807 + `fetchItem` now escapes characters not allowed in URIs before trying
6808 to parse the URIs.
6809 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
6811 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
6812 needed to resolve relative URLs when we fetch resources (#750).
6814 * `Text.Pandoc.Parsing`
6816 + Simplified `dash` and `ellipsis` (#1419).
6817 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
6818 + Generalized functions to use `ParsecT` (Matthew Pickering).
6819 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
6820 Pickering).
6822 [template changes]
6824 * Added haddock template.
6825 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
6826 be "advisory" in HTML5, but kindlegen seems to require them.
6827 * EPUB3: Put title page in section with `epub:type="titlepage"`.
6828 * LaTeX: Made `\subtitle` work properly (#1327).
6829 * LaTeX/Beamer: remove conditional around date (#1321).
6830 * LaTeX: Added `lot` and `lof` variables, which can be set to
6831 get `\listoftables` and `\listoffigures` (#1407). Note that
6832 these variables can be set at the command line with `-Vlot -Vlof`
6833 or in YAML metadata.
6835 [under the hood improvements]
6837 * Rewrote normalize for efficiency (#1385).
6839 * Rewrote Haddock reader to use `haddock-library` (#1346).
6841 + This brings pandoc's rendering of haddock markup in line
6842 with the new haddock.
6843 + Fixed line breaks in `@` code blocks.
6844 + alex and happy are no longer build-depends.
6846 * Added `Text.Pandoc.Compat.Directory` to allow building against
6847 different versions of the `directory` library.
6849 + Added `Text.Pandoc.Compat.Except` to allow building against
6850 different verions of `mtl`.
6852 * Code cleanup in some writers, using Reader monad to avoid
6853 passing options parameter around (Matej Kollar).
6855 * Improved readability in `pandoc.hs`.
6857 * Miscellaneous code cleanups (Artyom Kazak).
6859 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
6860 Thompson).
6862 * Changed `http-conduit` flag to `https`. Depend on `http-client`
6863 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
6864 depends on `conduit` via `yaml`.)
6866 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
6867 This change to highlighting-kate means that PHP fragments no longer need
6868 to start with `<?php`. It also fixes a serious bug causing failures with
6869 ocaml and fsharp.
6871 * Require latest `texmath`. This fixes `\tilde{E}` and allows
6872 `\left` to be used with `]`, `)` etc. (#1319), among many other
6873 improvements.
6875 * Require latest `zip-archive`. This has fixes for unicode path names.
6877 * Added tests for plain writer.
6879 * `Text.Pandoc.Templates`:
6881 + Fail informatively on template syntax errors.
6882 With the move from parsec to attoparsec, we lost good error
6883 reporting. In fact, since we weren't testing for end of input,
6884 malformed templates would fail silently. Here we revert back to
6885 Parsec for better error messages.
6886 + Use `ordNub` (#1022).
6888 * Benchmarks:
6890 + Made benchmarks compile again (Artyom Kazak).
6891 + Fixed so that the failure of one benchmark does not prevent others
6892 from running (Artyom Kazak).
6893 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
6894 + Changed benchmark to use only the test suite, so that benchmarks
6895 run more quickly.
6897 * Windows build script:
6899 + Add `-windows` to file name.
6900 + Use one install command for pandoc, pandoc-citeproc.
6901 + Force install of pandoc-citeproc.
6903 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
6904 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
6905 will extract it into a folder named `SOMETHING.pkg`, which it
6906 will interpret as a defective package (#1308).
6908 * `README`:
6910 + Made headers for all extensions so they have IDs and can be
6911 linked to (Beni Cherniavsky-Paskin).
6912 + Fixed typos (Phillip Alday).
6913 + Fixed documentation of attributes (#1315).
6914 + Clarified documentation on small caps (#1360).
6915 + Better documentation for `fenced_code_attributes` extension
6916 (Caleb McDaniel).
6917 + Documented fact that you can put YAML metadata in a separate file
6918 (#1412).
6921pandoc (1.12.4.2)
6923 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
6925 * Shared: `addMetaValue` now behaves slightly differently:
6926 if both the new and old values are lists, it concatenates their
6927 contents to form a new list.
6929 * LaTeX reader:
6931 + Set `bibliography` in metadata from `\bibliography` or
6932 `\addbibresource` command.
6933 + Don't error on `%foo` with no trailing newline.
6935 * Org reader:
6937 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
6938 + Fix parsing of blank lines within blocks (Albert Krewinkel).
6939 + Support pandoc citation extension (Albert Krewinkel). This can
6940 be turned off by specifying `org-citations` as the input format.
6942 * Markdown reader:
6944 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
6945 other readers (Albert Krewinkel).
6947 * `Text.Pandoc.Parsing`:
6949 + Added `citeKey` (see above).
6950 + Added `HasLastStrPosition` type class and `updateLastStrPos`
6951 and `notAfterString` functions.
6953 * Updated copyright notices (Albert Krewinkel).
6955 * Added default.icml to data files so it installs with the package.
6957 * OSX package:
6959 + The binary is now built with options to ensure that it can be
6960 used with OSX 10.6+.
6961 + Moved OSX package materials to osx directory.
6962 + Added OSX package uninstall script, included in the zip container
6963 (thanks to Daniel T. Staal).
6965pandoc (1.12.4)
6967 * Made it possible to run filters that aren't executable (#1096).
6968 Pandoc first tries to find the executable (searching the path
6969 if path isn't given). If it fails, but the file exists and has
6970 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
6971 using the appropriate interpreter. This should make it easier to
6972 use filters on Windows, and make it more convenient for everyone.
6974 * Added Emacs org-mode reader (Albert Krewinkel).
6976 * Added InDesign ICML Writer (Mauro Bieg).
6978 * MediaWiki reader:
6980 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
6981 + Fixed bug in certain nested lists (#1213). If a level 2 list was
6982 followed by a level 1 list, the first item of the level 1 list
6983 would be lost.
6984 + Handle table rows containing just an HTML comment (#1230).
6986 * LaTeX reader:
6988 + Give better location information on errors, pointing to line
6989 numbers within included files (#1274).
6990 + LaTeX reader: Better handling of `table` environment (#1204).
6991 Positioning options no longer rendered verbatim.
6992 + Better handling of figure and table with caption (#1204).
6993 + Handle `@{}` and `p{length}` in tabular. The length is not actually
6994 recorded, but at least we get a table (#1180).
6995 + Properly handle `\nocite`. It now adds a `nocite` metadata
6996 field. Citations there will appear in the bibliography but not
6997 in the text (unless you explicitly put a `$nocite$` variable
6998 in your template).
7000 * Markdown reader:
7002 + Ensure that whole numbers in YAML metadata are rendered without
7003 decimal points. (This became necessary with changes to aeson
7004 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
7005 + Fixed regression on line breaks in strict mode (#1203).
7006 + Small efficiency improvements.
7007 + Improved parsing of nested `div`s. Formerly a closing `div` tag
7008 would be missed if it came right after other block-level tags.
7009 + Avoid backtracking when closing `</div>` not found.
7010 + Fixed bug in reference link parsing in `markdown_mmd`.
7011 + Fixed a bug in list parsing (#1154). When reading a raw list
7012 item, we now strip off up to 4 spaces.
7013 + Fixed parsing of empty reference link definitions (#1186).
7014 + Made one-column pipe tables work (#1218).
7016 * Textile reader:
7018 + Better support for attributes. Instead of being ignored, attributes
7019 are now parsed and included in Span inlines. The output will be a bit
7020 different from stock textile: e.g. for `*(foo)hi*`, we'll get
7021 `<em><span class="foo">hi</span></em>` instead of
7022 `<em class="foo">hi</em>`. But at least the data is not lost.
7023 + Improved treatment of HTML spans (%) (#1115).
7024 + Improved link parsing. In particular we now pick up on attributes.
7025 Since pandoc links can't have attributes, we enclose the whole link in
7026 a span if there are attributes (#1008).
7027 + Implemented correct parsing rules for inline markup (#1175, Matthew
7028 Pickering).
7029 + Use Builder (Matthew Pickering).
7030 + Fixed list parsing bug (#1500).
7031 + Don't allow inline formatting to extend over newlines.
7032 This matches the behavior of RedCarpet, avoids some ugly bugs,
7033 and improves performance.
7035 * DocBook reader:
7037 + Better treatment of `formalpara`. We now emit the title (if present)
7038 as a separate paragraph with boldface text (#1215).
7039 + Set metadata `author` not `authors`.
7040 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
7041 Matthew Pickering).
7042 + Converted current meta information parsing in DocBook to a more
7043 extensible version which is aware of the more recent meta
7044 representation (Matthew Pickering).
7046 * HTML reader:
7048 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
7049 (#1248).
7050 + Treat processing instructions & declarations as block. Previously
7051 these were treated as inline, and included in paragraph tags in HTML
7052 or DocBook output, which is generally not what is wanted (#1233).
7053 + Updated `closes` with rules from HTML5 spec.
7054 + Use Builder (Matthew Pickering, #1162).
7056 * RST reader:
7058 + Remove duplicate `http` in PEP links (Albert Krewinkel).
7059 + Make rst figures true figures (#1168, CasperVector)
7060 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
7061 rST parser now supports: all built-in rST roles, new role definition,
7062 role inheritance, though with some limitations.
7063 + Use `author` rather than `authors` in metadata.
7064 + Better handling of directives. We now correctly handle field
7065 lists that are indented more than three spaces. We treat an
7066 `aafig` directive as a code block with attributes, so it can be
7067 processed in a filter (#1212).
7069 * LaTeX writer:
7071 + Mark span contents with label if span has an ID (Albert Krewinkel).
7072 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
7073 + Handle line breaks in simple table cells (#1217).
7074 + Workaround for level 4-5 headers in quotes. These previously produced
7075 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
7076 This adds an `mbox{}` in these contexts to work around the problem.
7077 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
7078 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
7079 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
7080 ligature with LuaLaTeX but `\/` does.
7081 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
7083 * ConTeXt writer: Improved autolinks (#1270).
7085 * DocBook writer:
7087 + Improve handling of hard line breaks in Docbook writer
7088 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
7089 just for the newline character.
7090 + Don't let line breaks inside footnotes influence the enclosing
7091 paragraph (Neil Mayhew).
7092 + Distinguish tight and loose lists in DocBook output, using
7093 `spacing="compact"` (Neil Mayhew, #1250).
7095 * Docx writer: When needed files are not present in the user's
7096 `reference.docx`, fall back on the versions in the `reference.docx`
7097 in pandoc's data files. This fixes a bug that occurs when a
7098 `reference.docx` saved by LibreOffice is used. (#1185)
7100 * EPUB writer:
7102 + Include extension in epub ids. This fixes a problem with duplicate
7103 extensions for fonts and images with the same base name but different
7104 extensions (#1254).
7105 + Handle files linked in raw `img` tags (#1170).
7106 + Handle media in `audio` source tags (#1170).
7107 Note that we now use a `media` directory rather than `images`.
7108 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
7109 will both be incorporated into `content.opf` and the epub container.
7111 * HTML writer:
7113 + Add colgroup around col tags (#877). Also affects EPUB writer.
7114 + Fixed bug with unnumbered section headings. Unnumbered section
7115 headings (with class `unnumbered`) were getting numbers.
7116 + Improved detection of image links. Previously image links with
7117 queries were not recognized, causing `<embed>` to be used instead
7118 of `<img>`.
7120 * Man writer: Ensure that terms in definition lists aren't line wrapped
7121 (#1195).
7123 * Markdown writer:
7125 + Use proper escapes to avoid unwanted lists (#980). Previously we used
7126 0-width spaces, an ugly hack.
7127 + Use longer backtick fences if needed (#1206). If the content contains a
7128 backtick fence and there are attributes, make sure longer fences are
7129 used to delimit the code. Note: This works well in pandoc, but github
7130 markdown is more limited, and will interpret the first string of three
7131 or more backticks as ending the code block.
7133 * RST writer: Avoid stack overflow with certain tables (#1197).
7135 * RTF writer: Fixed table cells containing paragraphs.
7137 * Custom writer:
7139 + Correctly handle UTF-8 in custom lua scripts (#1189).
7140 + Fix bugs with lua scripts with mixed-case filenames and
7141 paths containing `+` or `-` (#1267). Note that `getWriter`
7142 in `Text.Pandoc` no longer returns a custom writer on input
7143 `foo.lua`.
7145 * AsciiDoc writer: Handle multiblock and empty table cells
7146 (#1245, #1246). Added tests.
7148 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
7150 * `Text.Pandoc.Shared`:
7152 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
7153 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
7154 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
7155 Jesse Rosenthal.
7156 + `openURL`: set proxy with value of http_proxy env variable (#1211).
7157 Note: proxies with non-root paths are not supported, due to
7158 limitations in `http-conduit`.
7160 * `Text.Pandoc.PDF`:
7162 + Ensure that temp directories deleted on Windows (#1192). The PDF is
7163 now read as a strict bytestring, ensuring that process ownership will
7164 be terminated, so the temp directory can be deleted.
7165 + Use `/` as path separators in a few places, even on Windows.
7166 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
7167 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
7168 + Changes to error reporting, to handle non-UTF8 error output.
7170 * `Text.Pandoc.Templates`:
7172 + Removed unneeded datatype context (Merijn Verstraaten).
7174 + YAML objects resolve to "true" in conditionals (#1133).
7175 Note: If `address` is a YAML object and you just have `$address$`
7176 in your template, the word `true` will appear, which may be
7177 unexpected. (Previously nothing would appear.)
7179 * `Text.Pandoc.SelfContained`:
7181 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
7182 the string.
7183 * It no longer looks in data files. This only made sense when we
7184 had copies of slidy and S5 code there.
7185 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
7186 + Handle `poster` attribute in `video` tags (#1188).
7188 * `Text.Pandoc.Parsing`:
7190 + Made `F` an instance of Applicative (#1138).
7191 + Added `stateCaption`.
7192 + Added `HasMacros`, simplified other typeclasses.
7193 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
7194 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
7195 + Changed the smart punctuation parser to return `Inlines`
7196 rather than `Inline` (Matthew Pickering).
7197 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
7198 from typeclasses of monads to typeclasses of states. This simplifies
7199 the instance definitions and provides more flexibility. Generalized
7200 type of `getOption` and added a default definition. Removed
7201 `askReaderOption`. Added `extractReaderOption`. Added
7202 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
7203 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
7204 `modifyHeaderMap`. Added `extractIdentifierList` and
7205 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
7206 for `getIdentifierList`, `putIdentifierList`, and
7207 `modifyIdentifierList`. The ultimate goal here is to allow different
7208 parsers to use their own, tailored parser states (instead of
7209 `ParserState`) while still using shared functions.
7211 * Template changes:
7213 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
7214 + LaTeX template: Add `linestretch` and `fontfamily` variables.
7215 + LaTeX template: Conditionalize author and date commands.
7216 + Beamer template: Consistent styles for figure and table captions
7217 (aaronwolen).
7218 + LaTeX and beamer template: Adjust widths correctly for oversized
7219 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
7220 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
7221 `upquote` only after `fontenc` (Yihui Xie).
7222 + Beamer template: Added caption package (#1200).
7223 + Beamer template: changes for better unicode handling (KarolS).
7224 + DocBook template: use `authorgroup` if there are authors.
7225 + revealjs template: Move `include-after` to end (certainlyakey).
7226 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
7228 * Bumped version bounds of dependencies.
7230 * Added a `--trace` command line option, for debugging backtracking
7231 bugs. So far this only works with the markdown reader.
7233 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
7235 * Updated travis script to test with multiple GHC versions.
7237 * Force failure of a Travis build if GHC produces warnings (Albert
7238 Krewinkel).
7240 * Add `.editorconfig` (Albert Krewinkel).
7241 See <http://editorconfig.org/> for details.
7243 * Give more useful error message if '-t pdf' is specified (#1155).
7245 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
7247 * Allow `html4` as a synonym of `html` as a reader (it already works
7248 as a writer).
7250 * README:
7252 + Added an explanation of how to use YAML metadata to
7253 force items to appear in the bibliography without citations in
7254 the text (like LaTeX `\nocite`).
7255 + Added note to `--bibtex/--natbib`: not for use in making PDF
7256 (#1194, thanks to nahoj).
7257 + Added explanatory notes about `--natbib` and `--biblatex`.
7258 + Added specification of legal syntax for citation keys.
7259 + Fixed variable defaults documentation (Albert Krewinkel).
7261 * Removed copyright statements for files that have been removed
7262 (Albert Krewinkel).
7264 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
7265 They aren't needed at runtime. We keep README and COPYRIGHT in data
7266 to ensure that they'll be available on all systems on which pandoc
7267 is installed.
7269 * Use cabal sandboxes in Windows build script.
7271pandoc (1.12.3.3)
7273 * To changes to source; recompiled tarball with latest alex and
7274 happy, so they will work with GHC 7.8.
7276pandoc (1.12.3.2)
7278 * Bumped version bounds for blaze-html, blaze-markup.
7280 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
7281 (#1124).
7283 * Fixed mediawiki ordered list parsing (#1122).
7285 * HTML reader: Fixed bug reading inline math with `$$` (#225).
7287 * Added support for LaTeX style literate Haskell code blocks in rST
7288 (Merijn Verstraaten).
7290pandoc (1.12.3.1)
7292 * Relaxed version constraint on binary, allowing the use of binary 0.5.
7294pandoc (1.12.3)
7296 * The `--bibliography` option now sets the `biblio-files` variable.
7297 So, if you're using `--natbib` or `--biblatex`, you can just use
7298 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
7300 * Don't run pandoc-citeproc filter if `--bibliography` is
7301 used together with `--natbib` or `--biblatex` (Florian Eitel).
7303 * Template changes:
7305 + Updated beamer template to include booktabs.
7306 + Added `abstract` variable to LaTeX template.
7307 + Put `header-includes` after `title` in LaTeX template (#908).
7308 + Allow use of `\includegraphics[size]` in beamer.
7309 This just required porting a macro definition from the default
7310 LaTeX template to the default beamer template.
7312 * `reference.docx`: Include `FootnoteText` style.
7313 Otherwise Word ignores the style, even when specified in the `pPr`.
7314 (#901)
7316 * `reference.odt`: Tidied `styles.xml`.
7318 * Relaxed version bounds for dependencies.
7320 * Added `withSocketsDo` around http conduit code in `openURL`,
7321 so it works on Windows (#1080).
7323 * Added `Cite` function to `sample.lua`.
7325 * Markdown reader:
7327 + Fixed regression in title blocks (#1089).
7328 If author field was empty, date was being ignored.
7329 + Allow backslash-newline hard line breaks in grid and
7330 multiline table cells.
7331 + Citation keys may now start with underscores, and may contain
7332 underscores adjacent to internal punctuation.
7334 * LaTeX reader:
7336 + Add support for `Verb` macro (jrnold) (#1090).
7337 + Support babel-style quoting: `` "`..."' ``.
7339 * Properly handle script blocks in strict mode. (That is,
7340 `markdown-markdown_in_html_blocks`.) Previously a spurious
7341 `<p>` tag was being added (#1093).
7343 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
7344 elements.
7346 * LaTeX writer:
7348 + Factored out function for table cell creation.
7349 + Better treatment of footnotes in tables.
7350 Notes now appear in the regular sequence, rather than in the
7351 table cell. (This was a regression in 1.10.)
7353 * HTML reader: Parse name/content pairs from meta tags as metadata.
7354 Closes #1106.
7356 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
7358 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
7360 * ODT writer: Use mathml for proper rendering of formulas.
7361 Note: LibreOffice's support for this seems a bit buggy. But
7362 it should be better than what we had before.
7364 * RST writer: Ensure no blank line after def in definition list (#992).
7366 * Markdown writer: Don't use tilde code blocks with braced attributes in
7367 `markdown_github` output. A consequence of this change is that the
7368 backtick form will be preferred in general if both are enabled. That
7369 is good, as it is much more widespread than the tilde form. (#1084)
7371 * Docx writer: Fixed problem with some modified reference docx files.
7372 Include `word/_rels/settings.xml.rels` if it exists, as well as other
7373 `rels` files besides the ones pandoc generates explicitly.
7375 * HTML writer:
7377 + With `--toc`, headers no longer link to themselves (#1081).
7378 + Omit footnotes from TOC entries. Otherwise we get doubled
7379 footnotes when headers have notes!
7381 * EPUB writer:
7383 + Avoid duplicate notes when headings contain notes.
7384 This arose because the headings are copied into the metadata
7385 "title" field, and the note gets rendered twice. We strip the
7386 note now before putting the heading in "title".
7387 + Strip out footnotes from toc entries.
7388 + Fixed bug with `--epub-stylesheet`. Now the contents of
7389 `writerEpubStylesheet` (set by `--epub-stylesheet`)
7390 should again work, and take precedence over a stylesheet specified
7391 in the metadata.
7393 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
7395 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
7396 with `//`.
7398 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
7399 we could only get size information for JFIF format, which led
7400 to squished images in Word documents. Closes #976.
7402 * Removed old `MarkdownTest_1.0.3` directory (#1104).
7404pandoc (1.12.2.1)
7406 * Markdown reader: Fixed regression in list parser, involving
7407 continuation lines containing raw HTML (or even verbatim raw HTML).
7409pandoc (1.12.2)
7411 * Metadata may now be included in YAML blocks in a markdown document.
7412 For example,
7414 ---
7415 title:
7416 - type: main
7417 text: My Book
7418 - type: subtitle
7419 text: An investigation of metadata
7420 creator:
7421 - role: author
7422 text: John Smith
7423 - role: editor
7424 text: Sarah Jones
7425 identifier:
7426 - scheme: DOI
7427 text: doi:10.234234.234/33
7428 publisher: My Press
7429 rights: (c) 2007 John Smith, CC BY-NC
7430 cover-image: img/mypic.jpg
7431 ...
7433 Metadata may still be provided using `--epub-metadata`; it will
7434 be merged with the metadata in YAML blocks.
7436 * EPUB writer:
7438 + `meta` tags are now used instead of `opf` attributes for EPUB3.
7439 + Insert "svg" property as needed in opf (EPUB 3).
7440 + Simplify `imageTypeOf` using `getMimeType`.
7441 + Add properties attribute to `cover-image` item for EPUB 3.
7442 + Don't include node for `cover.xhtml` if no cover!
7443 + Ensure that same identifier is used throughout (#1044).
7444 If an identifier is given in metadata, we use that; otherwise
7445 we generate a random uuid.
7446 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
7447 Fixes an issue with Calibre putting the cover at the end of the book
7448 if the spine has `linear="no"`. Apparently this is best practice
7449 for other converters as well:
7450 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
7451 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
7452 + Allow partial dates: `YYYY`, `YYYY-MM`.
7454 * Markdown writer: Fix rendering of tight sublists (#1050).
7455 Previously a spurious blank line was included after a tight sublist.
7457 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
7458 This is reported to be necessary to avoid an error from recent
7459 versions of Libre Office when files contain more than one image
7460 Thanks to wmanley for reporting and diagnosing the problem.
7462 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
7463 Instead, let this be set in the template, using `\setupfloat`.
7464 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
7466 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
7468 * Fixed bug with markdown intraword emphasis. Closes #1066.
7470 * Docbook writer: Hierarchicalize block content in metadata.
7471 Previously headers just disappeared from block-level metadata
7472 when it was used in templates. Now we apply the 'hierarchicalize'
7473 transformation. Note that a block headed by a level-2 header will
7474 turn into a `<sect1>` element.
7476 * OpenDocument writer: Skip raw HTML (#1035).
7477 Previously it was erroneously included as verbatim text.
7479 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
7480 This allows better control of formatting, since the `<a>`
7481 tags have a distinguishing class (#1049).
7483 * Docx writer:
7485 + Use mime type info returned by fetchItem.
7486 + Fixed core metadata (#1046).
7487 Don't create empty date nodes if no date given.
7488 Don't create multiple `dc:creator` nodes; instead separate by
7489 semicolons.
7490 + Fix URL for core-properties in `_rels/.rels` (#1046).
7492 * Plain writer: don't print `<span>` tags.
7494 * LaTeX writer:
7496 + Fix definition lists with internal links in terms (#1032).
7497 This fix puts braces around a term that contains an internal
7498 link, to avoid problems with square brackets.
7499 + Properly escape pdftitle, pdfauthor (#1059).
7500 + Use booktabs package for tables (thanks to Jose Luis Duran).
7502 * Updated beamer template. Now references should work properly
7503 (in a slide) when `--biblatex` or `--natbib` is used.
7505 * LaTeX reader:
7507 + Parse contents of curly quotes or matched `"` as quotes.
7508 + Support `\textnormal` as span with class `nodecor`.
7509 This is needed for pandoc-citeproc.
7510 + Improved citation parsing. This fixes a run-time error that occured
7511 with `\citet{}` (empty list of keys). It also ensures that empty keys
7512 don't get produced.
7514 * MediaWiki reader: Add automatic header identifiers.
7516 * HTML reader:
7518 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
7519 `--parse-raw`.
7520 + Recognize `svg` tags as block level content (thanks to MinRK).
7521 + Parse LaTeX math if appropriate options are set.
7523 * Markdown reader:
7525 + Yaml block must start immediately after `---`. If there's a blank
7526 line after `---`, we interpreted it as a horizontal rule.
7527 + Correctly handle empty bullet list items.
7528 + Stop parsing "list lines" when we hit a block tag.
7529 This fixes exponential slowdown in certain input, e.g.
7530 a series of lists followed by `</div>`.
7532 * Slides: Preserve `<div class="references">` in references slide.
7534 * `Text.Pandoc.Writer.Shared`:
7536 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
7537 attributes, leading to invalid HTML.
7538 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
7539 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
7540 encoded bytestring was returned. We now decode it so it's a proper
7541 image!
7543 * DocBook reader: Handle numerical attributes starting with decimal.
7544 Also use `safeRead` instead of `read`.
7546 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
7547 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
7548 in all the writers. Require `texmath >= 0.6.5.2`.
7550 * `Text.Pandoc.MIME`:
7552 + Add entry for `jfif`.
7553 + In looking up extensions, drop the encoding info.
7554 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
7556 * Templates: Changed how array variables are resolved. Previously if
7557 `foo` is an array (which might be because multiple values were set on
7558 the command line), `$foo$` would resolve to the concatenation of the
7559 elements of foo. This is rarely useful behavior. It has been changed
7560 so that the first value is rendered. Of course, you can still iterate
7561 over the values using `$for(foo)$`. This has the result that you can
7562 override earlier settings using `-V` by putting new values later on the
7563 command line, which is useful for many purposes.
7565 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
7567 * Allow "epub2" as synonym for "epub", "html4" for "html".
7569 * Don't look for slidy files in data files with `--self-contained`.
7571 * Allow `https:` command line arguments to be downloaded.
7573 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
7575pandoc (1.12.1)
7577 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
7578 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
7579 "c": "foo"}`. This new format is easier to work with outside of Haskell.
7580 Incidentally, "t" stands for "tag", "c" for "contents".
7582 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
7583 when converting to markdown (#1027).
7585 * LaTeX reader:
7587 + Ensure that preamble doesn't contribute to the text of
7588 the document.
7589 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
7590 properly, among others.
7591 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
7592 bibtex titles, since we need to know what was protected from
7593 titlecase conversions.
7595 * LaTeX writer:
7597 + Specially escape non-ascii characters in labels.
7598 Otherwise we can get compile errors and other bugs when
7599 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
7600 + Add link anchors for code blocks with identifiers (#1025).
7602 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
7603 It allows fragments identifiers.
7605 * Slide formats:
7607 + A Div element with class "notes" is treated as speaker
7608 notes. Currently beamer goes to `\note{}`, revealjs to
7609 `<aside class="notes">`, and the notes are simply suppressed in
7610 other formats (#925).
7611 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
7612 The old version caused a pause to be inserted before the first
7613 material on a slide. This has been fixed.
7614 + Removed data files for s5, slideous, slidy.
7615 Users of s5 and slideous will have to download the needed
7616 files, as has been documented for some time in the README.
7617 By default, slidy code will be sought on the web, as before.
7619 * HTML writer: Insert command to typeset mathjax only in slideous output
7620 (#966, #1012).
7622 * RST writer: Skip spaces after display math. Otherwise we get indentation
7623 problems, and part of the next paragraph may be rendered as part of the
7624 math.
7626 * OpenDocument writer: Fix formatting of strikeout code (#995),
7627 thanks to wilx. don't use `font-face-decls` variable.
7629 * Fixed test suite so it works with cabal sandboxes.
7631pandoc (1.12.0.2)
7633 * Removed `stringable` dependency.
7635pandoc (1.12.0.1)
7637 * Allow `--metadata` to be repeated for the same key to form a list.
7638 This also has the effect that `--bibliography` can be repeated,
7639 as before.
7641 * Handle boolean values in `--metadata`. Note that anything not parseable
7642 as a YAML boolean or string is treated as a literal string.
7643 You can get a string value with "yes", or any of the strings interpretable
7644 as booleans, by quoting it:
7646 -M boolvalue=yes -M stringvalue='"yes"'
7648 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
7649 option used.
7651 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
7652 in which docx files could not be read by some versions of Word
7653 and LibreOffice (#990).
7655 * Fixed a regression involving slide shows with bibliographies.
7656 The Div container around references messed up the procedure for carving
7657 a document into slides. So we now remove the surrounding Div in
7658 `prepSlides`.
7660 * More informative error message when a filter is not found in path.
7662 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
7663 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
7665 * Don't use unicode_collation in building OSX package:
7666 it adds something like 50MB of dependencies to the package.
7668 * Declare alex and happy as build-tools (#986).
7670pandoc (1.12)
7672 [new features]
7674 * Much more flexible metadata, including arbitrary fields and structured
7675 values. Metadata can be specified flexibly in pandoc markdown using
7676 YAML metadata blocks, which may occur anywhere in the document:
7678 ---
7679 title: Here is my title.
7680 abstract: |
7681 This is the abstract.
7683 1. It can contain
7684 2. block content
7685 and *inline markup*
7687 tags: [cat, dog, animal]
7688 ...
7690 Metadata fields automatically populate template variables.
7692 * Added `opml` (OPML) as input and output format. The `_note` attribute,
7693 used in OmniOutliner and supported by multimarkdown, is supported.
7694 We treat the contents as markdown blocks under a section header.
7696 * Added `haddock` (Haddock markup) as input format (David Lazar).
7698 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
7699 (Thanks to Jamie F. Olson for the initial patch.)
7700 Nested vertical stacks are used for hierarchical structure.
7701 Results for more than one level of nesting may be odd.
7703 * Custom writers can now be written in lua.
7705 pandoc -t data/sample.lua
7707 will load the script sample.lua and use it as a custom writer.
7708 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
7709 Note that pandoc embeds a lua interpreter, so lua need not be
7710 installed separately.
7712 * New `--filter/-F` option to make it easier to run "filters"
7713 (Pandoc AST transformations that operate on JSON serializations).
7714 Filters are always passed the name of the output format, so their
7715 behavior can be tailored to it. The repository
7716 <https://github.com/jgm/pandocfilters> contains
7717 a python module for writing pandoc filters in python, with
7718 a number of examples.
7720 * Added `--metadata/-M` option.
7721 This is like `--variable/-V`, but actually adds to metadata, not
7722 just variables.
7724 * Added `--print-default-data-file` option, which allows printing
7725 of any of pandoc's data files. (For example,
7726 `pandoc --print-default-data-file reference.odt` will print
7727 `reference.odt`.)
7729 * Added syntax for "pauses" in slide shows:
7731 This gives
7733 . . .
7735 me pause.
7737 * New markdown extensions:
7739 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
7740 rather than being treated as hard line breaks or spaces. This is useful
7741 for some East Asian languages, where spaces aren't used between words,
7742 but text is separated into lines for readability.
7743 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
7744 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
7745 only. (Default for `markdown_github`.) (#807)
7746 + `lists_without_preceding_blankline`: Allow lists to start without
7747 preceding blank space. (Default for `markdown_github`.) (#972)
7749 [behavior changes]
7751 * `--toc-level` no longer implies `--toc`.
7752 Reason: EPUB users who don't want a visible TOC may still want
7753 to set the TOC level for in the book navigation.
7755 * `--help` now prints in and out formats in alphabetical order, and
7756 says something about PDF output (#720).
7758 * `--self-contained` now returns less verbose output (telling you
7759 which URLs it is fetching, but not giving the full header). In
7760 addition, there are better error messages when fetching a URL fails.
7762 * Citation support is no longer baked in to core pandoc. Users who
7763 need citations will need to install and use a separate filter
7764 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
7765 `csl`, and `citation-abbreviations` from the metadata, though it
7766 may still be specified on the command line as before.
7768 * A `Cite` element is now created in parsing markdown whether or not
7769 there is a matching reference.
7771 * The `pandoc-citeproc` script will put the bibliography at the
7772 end of the document, as before. However, it will be put inside a `Div`
7773 element with class "references", allowing users some control
7774 over the styling of references. A final header, if any, will
7775 be included in the `Div`.
7777 * The markdown writer will not print a bibliography if the
7778 `citations` extension is enabled. (If the citations are formatted
7779 as markdown citations, it is redundant to have a bibliography,
7780 since one will be generated automatically.)
7782 * Previously we used to store the directory of the first input file,
7783 even if it was local, and used this as a base directory for finding
7784 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
7785 users. So we now look for images relative to the current
7786 working directory, even if the first file argument is in another
7787 directory. Note that this change may break some existing workflows.
7788 If you have been assuming that relative links will be interpreted
7789 relative to the directory of the first file argument, you'll need
7790 to make that the current directory before running pandoc. (#942)
7792 * Better error reporting in some readers, due to changes in `readWith`:
7793 the line in which the error occured is printed, with a caret pointing
7794 to the column.
7796 * All slide formats now support incremental slide view for definition lists.
7798 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
7799 Parse `:<math>...</math>` as display math. These notations are used with
7800 the MathJax MediaWiki extension.
7802 * All writers: template variables are set automatically from metadata
7803 fields. However, variables specified on the command line with
7804 `--variable` will completely shadow metadata fields.
7806 * If `--variable` is used to set many variables with the same name,
7807 a list is created.
7809 * Man writer: The `title`, `section`, `header`, and `footer` can now
7810 all be set individually in metadata. The `description` variable has been
7811 removed. Quotes have been added so that spaces are allowed in the
7812 title. If you have a title that begins
7814 COMMAND(1) footer here | header here
7816 pandoc will still parse it into a title, section, header, and
7817 footer. But you can also specify these elements explicitly (#885).
7819 * Markdown reader
7821 + Added support for YAML metadata blocks, which can come anywhere
7822 in the document (not just at the beginning). A document can contain
7823 multiple YAML metadata blocks.
7824 + HTML span and div tags are parsed as pandoc Span and Div elements.
7826 * Markdown writer
7828 + Allow simple tables to be printed as grid tables,
7829 if other table options are disabled. This means you can do
7830 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
7831 and all tables will render as grid tables.
7832 + Support YAML title block (render fields in alphabetical order
7833 to make output predictable).
7835 [API changes]
7837 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
7838 structured metadata. (Note: existing code that pattern-matches
7839 on `Meta` will have to be revised.) Metadata can now contain
7840 indefinitely many fields, with content that can be a string,
7841 a Boolean, a list of `Inline` elements, a list of `Block`
7842 elements, or a map or list of these.
7844 * A new generic block container (`Div`) has been added to `Block`,
7845 and a generic inline container (`Span`) has been added to `Inline`.
7846 These can take attributes. They will render in HTML, Textile,
7847 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
7848 extension) as HTML `<div>` and `<span>` elements; in other formats
7849 they will simply pass through their contents. But they can be
7850 targeted by scripts.
7852 * `Format` is now a newtype, not an alias for String.
7853 Equality comparisons are case-insensitive.
7855 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
7856 functions that are much faster than the SYB functions from
7857 `Text.Pandoc.Generic`. These functions are now used where possible
7858 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
7859 match the generic traversals `bottomUp` and `queryWith`.)
7861 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
7862 instances for the basic pandoc types. They use GHC generics and
7863 should be faster than the old JSON serialization using
7864 `Data.Aeson.Generic`.
7866 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
7867 This is a souped-up version of `readProcessWithErrorcode` that
7868 uses lazy bytestrings instead of strings and allows setting
7869 environment variables. (Used in `Text.Pandoc.PDF`.)
7871 * New module `Text.Pandoc.Readers.OPML`.
7873 * New module `Text.Pandoc.Writers.OPML`.
7875 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
7876 This is based on Haddock's own lexer/parser.
7878 * New module `Text.Pandoc.Writers.Custom`.
7880 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
7881 Either, for better error handling.
7883 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
7885 * Removed `stripTags` from `Text.Pandoc.XML`.
7887 * `Text.Pandoc.Templates`:
7889 + Simplified `Template` type to a newtype.
7890 + Removed `Empty`.
7891 + Changed type of `renderTemplate`: it now takes a JSON context
7892 and a compiled template.
7893 + Export `compileTemplate`.
7894 + Export `renderTemplate'` that takes a string instead of a compiled
7895 template.
7896 + Export `varListToJSON`.
7898 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
7899 The signature of `makePDF` has changed and now contains
7900 an additional argument for pdf engine options.
7902 * `Text.Pandoc`:
7904 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
7905 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
7906 `Text.Pandoc.JSON` should be used instead. (Compiling against
7907 pandoc-types instead of pandoc will also produce smaller executables.)
7908 * Removed the deprecated `jsonFilter` function.
7909 + Added `readJSON`, `writeJSON` to the API (#817).
7911 * `Text.Pandoc.Options`:
7913 + Added `Ext_lists_without_preceding_blankline`,
7914 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
7915 `Ext_yaml_metadataBlock` to `Extension`.
7916 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
7917 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
7918 first command-line argument is an absolute URL. (So, relative links
7919 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
7920 + All bibliography-related fields have been removed from
7921 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
7922 `readerReferences`, `readerCitationStyle`.
7923 + Removed `writerPdfArgs` from `WriterOptions`. These are now
7924 passed in as a parameter to `makePDF`.
7926 * The `Text.Pandoc.Biblio` module has been removed. Users of the
7927 pandoc library who want citation support will need to use
7928 `Text.CSL.Pandoc` from `pandoc-citeproc`.
7931 [bug fixes]
7933 * In markdown, don't autolink a bare URI that is followed by `</a>`
7934 (#937).
7936 * `Text.Pandoc.Shared`
7938 + `openURL` now follows redirects (#701), properly handles `data:`
7939 URIs, and prints diagnostic output to stderr rather than stdout.
7940 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
7941 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
7942 + Fixed `readDefaultDataFile` so it works on Windows.
7943 + Better error messages for `readDefaultDataFile`. Instead of
7944 listing the last path tried, which can confuse people who are
7945 using `--self-contained`, so now we just list the data file name.
7946 + URL-escape pipe characters. Even though these are legal, `Network.URI`
7947 doesn't regard them as legal in URLs. So we escape them first (#535).
7949 * Mathjax in HTML slide shows: include explicit "Typeset" call.
7950 This seems to be needed for some formats (e.g. slideous) and won't
7951 hurt in others (#966).
7953 * `Text.Pandoc.PDF`
7955 + On Windows, create temdir in working directory, since the system
7956 temp directory path may contain tildes, which can cause
7957 problems in LaTeX (#777).
7958 + Put temporary output directory in `TEXINPUTS` (see #917).
7959 + `makePDF` tries to download images that are not found locally,
7960 if the first argument is a URL (#917).
7961 + If compiling with `pdflatex` yields an encoding error, offer
7962 the suggestion to use `--latex-engine=xelatex`.
7964 * Produce automatic header identifiers in parsing textile, RST,
7965 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
7967 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
7968 before treating as a filename. This fixes `--self-contained` when used
7969 with CSS files that include web fonts using the method described here:
7970 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
7971 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
7973 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
7974 percent-encoding, or a `+` character, as final punctuation.
7976 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
7977 EPS images properly sized on conversion to Word.
7979 * Slidy: Use slidy.js rather than slidy.js.gz.
7980 Reason: some browsers have trouble with the gzipped js file,
7981 at least on the local file system (#795).
7983 * Markdown reader
7985 + Properly handle blank line at beginning of input (#882).
7986 + Fixed bug in unmatched reference links. The input
7987 `[*infile*] [*outfile*]` was getting improperly parsed:
7988 "infile" was emphasized, but "*outfile*" was literal (#883).
7989 + Allow internal `+` in citation identifiers (#856).
7990 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
7991 + Do not generate blank title, author, or date metadata elements.
7992 Leave these out entirely if they aren't present.
7993 + Allow backtick code blocks not to be preceded by blank line (#975).
7995 * Textile reader:
7997 + Correctly handle entities.
7998 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
7999 in code blocks, rather than printing them verbatim. Parse attributes
8000 on `<pre>` tag for code blocks.
8002 * HTML reader: Handle non-simple tables (#893). Column widths are read from
8003 `col` tags if present, otherwise divided equally.
8005 * LaTeX reader
8007 + Support alltt environment (#892).
8008 + Support `\textasciitilde`, `\textasciicircum` (#810).
8009 + Treat `\textsl` as emphasized text reader (#850).
8010 + Skip positional options after `\begin{figure}`.
8011 + Support `\v{}` for hacek (#926).
8012 + Don't add spurious ", " to citation suffixes.
8013 This is added when needed in pandoc-citeproc.
8014 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
8015 + Improved support for accented characters (thanks to Scott Morrison).
8016 + Parse label after section command and set id (#951).
8018 * RST reader:
8020 + Don't insert paragraphs where docutils doesn't.
8021 `rst2html` doesn't add `<p>` tags to list items (even when they are
8022 separated by blank lines) unless there are multiple paragraphs in the
8023 list. This commit changes the RST reader to conform more closely to
8024 what docutils does (#880).
8025 + Improved metadata. Treat initial field list as metadata when
8026 standalone specified. Previously ALL fields "title", "author",
8027 "date" in field lists were treated as metadata, even if not at
8028 the beginning. Use `subtitle` metadata field for subtitle.
8029 + Fixed 'authors' metadata parsing in reST. Semicolons separate
8030 different authors.
8032 * MediaWiki reader
8034 + Allow space before table rows.
8035 + Fixed regression for `<ref>URL</ref>`.
8036 `<` is no longer allowed in URLs, according to the uri parser
8037 in `Text.Pandoc.Parsing`. Added a test case.
8038 + Correctly handle indented preformatted text without preceding
8039 or following blank line.
8040 + Fixed `|` links inside table cells. Improved attribute parsing.
8041 + Skip attributes on table rows. Previously we just crashed if
8042 rows had attributes, now we ignore them.
8043 + Ignore attributes on headers.
8044 + Allow `Image:` for images (#971).
8045 + Parse an image with caption in a paragraph by itself as a figure.
8047 * LaTeX writer
8049 + Don't use ligatures in escaping inline code.
8050 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
8051 wherein notes were numbered incorrectly in tables (#827).
8052 + Always create labels for sections. Previously the labels were only
8053 created when there were links to the section in the document (#871).
8054 + Stop escaping `|` in LaTeX math.
8055 This caused problems with array environments (#891).
8056 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
8057 `\` will cause major problems if unescaped.
8058 + Write id for code block to label attribute in LaTeX when listings
8059 is used (thanks to Florian Eitel).
8060 + Scale LaTeX tables so they don't exceed columnwidth.
8061 + Avoid problem with footnotes in unnumbered headers (#940).
8063 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
8064 to the slide if it is one of the header classes. It is recommended
8065 that your bibliography slide have this attribute:
8067 # References {.allowframebreaks}
8069 This causes multiple slides to be created if necessary, depending
8070 on the length of the bibliography.
8072 * ConTeXt writer: Properly handle tables without captions. The old output
8073 only worked in MkII. This should work in MkIV as well (#837).
8075 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
8077 * HTML writer:
8079 + Fixed `--no-highlight` (Alexander Kondratskiy).
8080 + Don't convert to lowercase in email obfuscation (#839).
8081 + Ensure proper escaping in `<title>` and `<meta>` fields.
8083 * AsciiDoc writer:
8085 + Support `--atx-headers` (Max Rydahl Andersen).
8086 + Don't print empty identifier blocks `([[]])` on headers (Max
8087 Rydahl Andersen).
8089 * ODT writer:
8091 + Fixing wrong numbered-list indentation in open document format
8092 (Alexander Kondratskiy) (#369).
8093 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
8094 + Minor changes for ODF 1.2 conformance (#939). We leave the
8095 nonconforming `contextual-spacing` attribute, which is provided by
8096 LibreOffice itself and seems well supported.
8098 * Docx writer:
8100 + Fixed rendering of display math in lists.
8101 In 1.11 and 1.11.1, display math in lists rendered as a new list
8102 item. Now it always appears centered, just as outside of lists,
8103 and in proper display math style, no matter how far indented the
8104 containing list item is (#784).
8105 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
8106 Previously we used `w:cr` (#873).
8107 + Use Compact style for Plain block elements, to
8108 differentiate between tight and loose lists (#775).
8109 + Ignore most components of `reference.docx`.
8110 We take the `word/styles.xml`, `docProps/app.xml`,
8111 `word/theme/theme1.xml`, and `word/fontTable.xml` from
8112 `reference.docx`, ignoring everything else. This should help
8113 with the corruption problems caused when different versions of
8114 Word resave the reference.docx and reorganize things.
8115 + Made `--no-highlight` work properly.
8117 * EPUB writer
8119 + Don't add `dc:creator` tags if present in EPUB metadata.
8120 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
8121 + Don't put blank title page in reading sequence.
8122 Set `linear="no"` if no title block. Addresses #797.
8123 + Download webtex images and include as data URLs.
8124 This allows you to use `--webtex` in creating EPUBs.
8125 Math with `--webtex` is automatically made self-contained.
8126 + In `data/epub.css`, removed highlighting styles (which
8127 are no longer needed, since styles are added by the HTML
8128 writer according to `--highlighting-style`). Simplified
8129 margin fields.
8130 + If resource not found, skip it, as in Docx writer (#916).
8132 * RTF writer:
8134 + Properly handle characters above the 0000-FFFF range.
8135 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
8136 + Fixed regression with RTF table of contents.
8137 + Only autolink absolute URIs. This fixes a regression, #830.
8139 * Markdown writer:
8141 + Only autolink absolute URIs. This fixes a regression, #830.
8142 + Don't wrap attributes in fenced code blocks.
8143 + Write full metadata in MMD style title blocks.
8144 + Put multiple authors on separate lines in pandoc titleblock.
8145 Also, don't wrap long author entries, as new lines get treated
8146 as new authors.
8148 * `Text.Pandoc.Templates`:
8150 + Fixed bug retrieving default template for markdown variants.
8151 + Templates can now contain "record lookups" in variables;
8152 for example, `author.institution` will retrieve the `institution`
8153 field of the `author` variable.
8154 + More consistent behavior of `$for$`. When `foo` is not a list,
8155 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
8156 So if `foo` resolves to "", no output should be produced.
8157 See pandoc-templates#39.
8159 * Citation processing improvements (now part of pandoc-citeproc):
8161 + Fixed `endWithPunct` The new version correctly sees a sentence
8162 ending in '.)' as ending with punctuation. This fixes a bug which
8163 led such sentences to receive an extra period at the end: '.).'.
8164 Thanks to Steve Petersen for reporting.
8165 + Don't interfere with Notes that aren't citation notes.
8166 This fixes a bug in which notes not generated from citations were
8167 being altered (e.g. first letter capitalized) (#898).
8168 + Only capitalize footnote citations when they have a prefix.
8169 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
8170 inserted before it before passing to citeproc-hs, so that bare numbers
8171 are treated as page numbers by default. A suffix not beginning with
8172 punctuation has a space added at the beginning (rather than a comma and
8173 space, as was done before for not-author-in-text citations).
8174 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
8175 properly, with '23' treated as a locator of type 'page'.
8176 + Many improvements to citation rendering, due to fixes in citeproc-hs
8177 (thanks to Andrea Rossato).
8178 + Warnings are issued for undefined citations, which are rendered
8179 as `???`.
8180 + Fixed hanging behavior when locale files cannot be found.
8182 [template changes]
8184 * DocBook: Use DocBook 4.5 doctype.
8186 * Org: '#+TITLE:' is inserted before the title.
8187 Previously the writer did this.
8189 * LaTeX: Changes to make mathfont work with xelatex.
8190 We need the mathspec library, not just fontspec, for this.
8191 We also need to set options for setmathfont (#734).
8193 * LaTeX: Use `tex-ansi` mapping for `monofont`.
8194 This ensures that straight quotes appear as straight, rather than
8195 being treated as curly. See #889.
8197 * Made `\includegraphics` more flexible in LaTeX template.
8198 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
8200 * LaTeX/Beamer: Added `classoption` variable.
8201 This is intended for class options like `oneside`; it may
8202 be repeated with different options. (Thanks to Oliver Matthews.)
8204 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
8206 * LaTeX: Added `biblio-style` variable (#920).
8208 * DZSlides: title attribute on title section.
8210 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
8212 [under-the-hood improvements]
8214 * Markdown reader:Improved strong/emph parsing, using the strategy of
8215 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
8216 no backtracking, and no keeping track of nesting levels. It will give
8217 different results in some edge cases, but these should not affect normal
8218 uses.
8220 * Added `Text.Pandoc.Compat.Monoid`.
8221 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
8222 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
8224 * Added `Text.Pandoc.Compat.TagSoupEntity`.
8225 This allows pandoc to compile with `tagsoup` 0.13.x.
8226 Thanks to Dirk Ullrich for the patch.
8228 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
8229 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
8230 handle simple math in bibliography fields.)
8232 * Added `Text.Pandoc.Writers.Shared` for shared functions used
8233 only in writers. `metaToJSON` is used in writers to create a
8234 JSON object for use in the templates from the pandoc metadata
8235 and variables. `getField`, `setField`, and `defField` are
8236 for working with JSON template contexts.
8238 * Added `Text.Pandoc.Asciify` utility module.
8239 This exports functions to create ASCII-only versions of identifiers.
8241 * `Text.Pandoc.Parsing`
8243 + Generalized state type on `readWith` (API change).
8244 + Specialize readWith to `String` input. (API change).
8245 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
8246 with `stateMeta` and `stateMeta'`.
8248 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
8249 bytestrings seemed to cause problems using pandoc on 64-bit Windows
8250 7/8 (#874).
8252 * Factored out `registerHeader` from markdown reader, added to
8253 `Text.Pandoc.Parsing`.
8255 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
8256 Reason: < 0.5 does not provide a monoid instance for Attribute,
8257 which is now needed by the HTML writer (#803).
8259 * Added `http-conduit` flag, which allows fetching https resources.
8260 It also brings in a large number of dependencies (`http-conduit`
8261 and its dependencies), which is why for now it is an optional flag
8262 (#820).
8264 * Added CONTRIBUTING.md.
8266 * Improved INSTALL instructions.
8268 * `make-windows-installer.bat`: Removed explicit paths for executables.
8270 * `aeson` is now used instead of `json` for JSON.
8272 * Set default stack size to 16M. This is needed for some large
8273 conversions, esp. if pandoc is compiled with 64-bit ghc.
8275 * Various small documentation improvements.
8276 Thanks to achalddave and drothlis for patches.
8278 * Removed comment that chokes recent versions of CPP (#933).
8280 * Removed support for GHC version < 7.2, since pandoc-types now
8281 requires at least GHC 7.2 for GHC generics.
8284pandoc (1.11.1)
8286 * Markdown reader:
8288 + Fixed regression in which parentheses were lost in link URLs.
8289 Added tests. Closes #786.
8290 + Better handling of unmatched double quotes in `--smart` mode.
8291 These occur frequently in fiction, since it is customary not to
8292 close quotes in dialogue if the speaker does not change between
8293 paragraphs. The unmatched quotes now get turned into literal
8294 left double quotes. (No `Quoted` inline is generated, however.)
8295 Closes #99 (again).
8297 * HTML writer: Fixed numbering mismatch between TOC and sections.
8298 `--number-offset` now affects TOC numbering as well
8299 as section numbering, as it should have all along. Closes #789.
8301 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
8302 as markdown citations, even if `--bibliography` was specified, unless
8303 `citation` extension is disabled. Now, formatted citations are always
8304 printed if `--bibliography` was specified. If you want to reformat
8305 markdown keeping pandoc markdown citations intact, don't use
8306 `--bibliography`. Note that citations parsed from LaTeX documents will
8307 be rendered as pandoc markdown citations when `--bibliography` is not
8308 specified.
8310 * ODT writer: Fixed regression leading to corrupt ODTs.
8311 This was due to a change in the `Show` instance for
8312 `Text.Pandoc.Pretty.Doc`. Closes #780.
8314 * Fixed spacing bugs involving code block attributes in
8315 RST reader and Markdown writer. Closes #763.
8317 * Windows package: Various improvements due to Fyodor Sheremetyev.
8319 + Automatically set installation path (Program Files or Local App Data).
8320 + Set system PATH environment variable when installing for all users.
8321 + Pandoc can installed for all users using the following command.
8322 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
8324 * Bumped QuickCheck version bound.
8326pandoc (1.11)
8328 * Added `--number-offset` option. (See README for description.)
8330 * Added `--default-image-extension` option. (See README for description.)
8332 * `--number-sections` behavior change: headers with class `unnumbered`
8333 will not be numbered.
8335 * `--version` now reports the default data directory.
8337 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
8339 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
8341 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
8342 a field for `Attr` rather than just `String`. (API change.)
8344 * Added `markdown_github` as input format. This was an accidental
8345 omission in 1.10.
8347 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
8348 change.)
8350 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
8352 * Beamer template:
8354 + Fixed captions with longtable. Thanks to Joost Kremers.
8355 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
8357 * LaTeX template:
8359 + Load microtype after fonts. Microtype needs to know
8360 what fonts are being used. Thanks to dfc for the patch.
8361 + Set `secnumdepth` to 5 if `--number-sections` specified.
8362 This yields behavior equivalent to the other writers, numbering
8363 level 4 and 5 headers too. Closes #753.
8365 * HTML reader:
8367 + Handle `<colgroup>` tag.
8368 + Preserve all header attributes.
8370 * LaTeX reader:
8372 + Parse `\hrule` as `HorizontalRule`. Closes #746.
8373 + Parse starred variants of `\section` etc. as headers with
8374 attribute `unnumbered`.
8375 + Read optional attributes in `lstlisting` and `Verbatim` environments.
8376 We convert these to pandoc standard names, e.g. `numberLines`
8377 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
8378 + Handle language attribute for lstlistings.
8379 + Better support for Verbatim and minted environments. Closes #763.
8381 * Markdown reader:
8383 + `-` in an attribute context = `.unnumbered`. The point of this
8384 is to provide a way to specify unnumbered headers in non-English
8385 documents.
8386 + Fixed bug parsing key/value attributes. Parsing failed if you
8387 had an unquoted attribute immediately before the final '}'.
8388 + Make backslash escape work in attributes.
8389 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
8390 pandoc will parse a MMD title block if it sees one, even if
8391 `pandoc_title_blocks` is enabled.
8392 + Refactoring: `litChar` now includes entities, so we don't need
8393 to use `fromEntities` e.g. on titles.
8394 + Allow spaces around borders in pipe tables. Closes #772.
8395 + Allow all punctuation in angle-bracket autolinks. Previously
8396 things like `----` were disallowed, because the uri parser
8397 treated them as trailing punctuation. Closes #768.
8398 + Make `implicit_header_references` work properly when
8399 headers are given explicit identifiers.
8400 + Check for tables before line blocks. Otherwise some pipe
8401 tables get treated as line blocks.
8402 + Allow `&` in emails (for entities).
8403 + Properly handle entities in titles and links. A markdown link
8404 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
8405 Closes #723.
8407 * Textile reader:
8409 + Handle attributes on headers.
8411 * LaTeX reader:
8413 + Add `fig:` as title for images with captions.
8414 This is needed for them to be rendered as figures. Closes #766.
8415 + Never emit an empty paragraph. See #761.
8416 + Handle `\caption` for images in figures. Closes #766.
8417 + Parse `\section*`, etc. as unnumbered sections.
8419 * HTML writer:
8421 + Support header attributes. The attributes go on
8422 the enclosing `section` or `div` tag if `--section-divs` is specified.
8423 + Fixed a regression (only now noticed) in html+lhs output.
8424 Previously the bird tracks were being omitted.
8426 * LaTeX writer:
8428 + Omit lists with no items to avoid LaTeX errors.
8429 + Support line numbering with `--listings`.
8430 If `numberLines` class is present, we add `numbers=left`;
8431 if `startFrom` is present, we add `firstnumber=`. (#763)
8433 * ConTeXt writer:
8435 + Removed `\placecontent`. This produced a duplicate toc,
8436 in conjunction with `\placelist`.
8437 + Use `\title`, `\subject` etc. for headers with
8438 `unnumbered` class.
8440 * Textile writer:
8442 + Support header attributes.
8444 * Markdown writer:
8446 + Use grid tables when needed, and if enabled. Closes #740.
8447 + Render citations as pandoc-markdown citations.
8448 Previously citations were rendered as citeproc-formatted citations
8449 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
8450 unless the `citations` extension is disabled.
8451 If you still want formatted citations in your markdown output,
8452 use `pandoc -t markdown-citations`.
8454 * RST writer:
8456 + Support `:number-lines:` in code blocks.
8458 * Docx writer:
8460 + Better treatment of display math. Display math inside a
8461 paragraph is now put in a separate paragraph, so it will render
8462 properly (centered and without extra blank lines around it).
8463 Partially addresses #742.
8464 + Content types and document rels xml files are now created from
8465 scratch, rather than being taken over from `reference.docx`.
8466 This fixes problems that arise when you edit the `reference.docx`
8467 with Word.
8468 + We also now encode mime types for each individual image rather
8469 than using defaults. This should allow us to handle a wider
8470 range of image types (including PDF). Closes #414.
8471 + Changed style names in `reference docx`.
8472 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
8473 The old names got changed by Word when the `reference.docx` was
8474 edited. Closes #414.
8476 * EPUB writer:
8478 + Fix section numbering. Previously the numbering restarted from 1
8479 in each chapter (with `--number-sections`), though the numbers in
8480 the table of contents were correct.
8481 + Headers with "unnumbered" attribute are not numbered. (Nor do they
8482 cause an increment in running numbering.) Section numbers now work
8483 properly, even when there is material before the first numbered section.
8484 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
8485 but `linear` is set to `no` unless the `--toc` option is specified.
8486 Include `<guide>` element in OPF. This should allow the TOC to
8487 be useable in Kindles when converted with kindlegen. Closes #773.
8489 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
8490 This dramatically reduces the speed penalty that comes from enabling the
8491 `autolink_bare_uris` extension. The penalty is still substantial (in one
8492 test, from 0.33s to 0.44s), but nowhere near what it used to be.
8493 The RST reader is also much faster now, as it autodetects URIs.
8495 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
8496 with class "unnumbered". Unnumbered sections get `[]` for their
8497 section number.
8499 * `Text.Pandoc.Pretty`:
8501 + Fixed `chomp` so it works inside `Prefixed` elements.
8502 + Changed `Show` instance so it is better for debugging.
8504 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
8506 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
8508 * Windows installer improvements:
8510 + The installer is now signed with a certificate (thanks to
8511 Fyodor Sheremetyev).
8512 + WiX is used instead of InnoSetup. The installer is now a
8513 standard msi file.
8514 + The version number is now auto-detected, and need not be
8515 updated separately.
8517 * OSX installer improvements:
8519 + The package and pandoc executable are now signed with a
8520 certificate (thanks to Fyodor Sheremetyev).
8521 + RTF version of license is used.
8522 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
8523 Closes #580.
8525 * Converted COPYING to markdown.
8527 * pandoc.cabal: Require latest versions of highlighting-kate,
8528 texmath, citeproc-hs, zip-archive.
8530pandoc (1.10.1)
8532 * Markdown reader: various optimizations, leading to a
8533 significant performance boost.
8535 * RST reader: Allow anonymous form of inline links:
8536 `` `hello <url>`__ `` Closes #724.
8538 * Mediawiki reader: Don't require newlines after tables.
8539 Thanks to jrunningen for the patch. Closes #733.
8541 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
8542 when output is LaTeX, and applied when it is another format.
8543 Partially addresses #730.
8545 * Markdown and RST readers: Added parser to `block` that skips blank
8546 lines. This fixes a subtle regression involving grid tables with
8547 empty cells. Also added test for grid table with empty cells.
8548 Closes #732.
8550 * RST writer: Use `.. code:: language` for code blocks with language.
8551 Closes #721.
8553 * DocBook writer: Fixed output for hard line breaks, adding a newline
8554 between `<literallayout>` tags.
8556 * Markdown writer: Use an autolink when link text matches url.
8557 Previously we also checked for a null title, but this
8558 test fails for links produced by citeproc-hs in bibliographies.
8559 So, if the link has a title, it will be lost on conversion
8560 to an autolink, but that seems okay.
8562 * Markdown writer: Set title, author, date variables as before.
8563 These are no longer used in the default template, since we use
8564 titleblock, but we set them anyway for those who use custom templates.
8566 * LaTeX writer: Avoid extra space at start/end of table cell.
8567 Thanks to Nick Bart for the suggestion of using @{}.
8569 * `Text.Pandoc.Parsing`:
8571 + More efficient version of `anyLine`.
8572 + Type of `macro` has changed; the parser now returns `Blocks`
8573 instead of `Block`.
8575 * Relaxed old-time version bound, allowing 1.0.*.
8577 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
8578 should create a symlink as described in the README.
8580pandoc (1.10.0.5)
8582 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
8583 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
8584 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
8586 * Markdown reader: Fixed bug with headerless grid tables.
8587 The 1.10 code assumed that each table header cell contains exactly one
8588 block. That failed for headerless tables (0) and also for tables with
8589 multiple blocks in a header cell. The code is fixed and tests provided.
8590 Thanks to Andrew Lee for pointing out the bug.
8592 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
8594 + Tilde code fences can again take a bare language string
8595 (`~~~ haskell`), not just curly-bracketed attributes
8596 (`~~~ {.haskell}`).
8597 + Backtick code blocks can take the curly-bracketed attributes.
8598 + Backtick code blocks don't *require* a language.
8599 + Consolidated code for the two kinds of fenced code blocks.
8601 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
8603 * Markdown writer: Use proportional font for email autolinks with
8604 obfuscation. Closes #714.
8606 * Corrected name of `blank_before_blockquote` in README. Closes #718.
8608 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
8609 The bug prevented an autolink at the end of a string (e.g.
8610 at the end of a line block line) from counting as a link. Closes #711.
8612 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
8613 This should work on Windows, unlike the TH solution with
8614 file-embed.
8616 * Eliminated use of TH in test suite.
8618 * Added `Text.Pandoc.Data` (non-exported) to hold the association
8619 list of embedded data files, if the `embed_data_files` flag is selected.
8620 This isolates the code that needs special treatment with file-embed or
8621 `hsb2hs`.
8623 * Changes to `make-windows-installer.bat`.
8625 + Exit batch file if any of the cabal-dev installs fail.
8626 + There's no longer any need to reinstall `highlighting-kate`.
8627 + Don't start with a `cabal update`; leave that to the user.
8628 + Force reinstall of pandoc.
8630 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
8631 Jens Petersen.
8633pandoc (1.10.0.4)
8635 * Fixed bug with escaped % in LaTeX reader. Closes #710.
8637pandoc (1.10.0.3)
8639 * Added further missing fb2 tests to cabal file.
8641pandoc (1.10.0.2)
8643 * Added fb2 tests to cabal file's extra-source-files.
8645pandoc (1.10.0.1)
8647 * Bump version bounds on test-framework packages.
8649pandoc (1.10)
8651 [new features]
8653 * New input formats: `mediawiki` (MediaWiki markup).
8655 * New output formats: `epub3` (EPUB v3 with MathML),
8656 `fb2` (FictionBook2 ebooks).
8658 * New `--toc-depth` option, specifying how many levels of
8659 headers to include in a table of contents.
8661 * New `--epub-chapter-level` option, specifying the header
8662 level at which to divide EPUBs into separate files.
8663 Note that this normally affects only performance, not the
8664 visual presentation of the EPUB in a reader.
8666 * Removed the `--strict` option. Instead of using `--strict`,
8667 one can now use the format name `markdown_strict` for either input
8668 or output. This gives more fine-grained control that `--strict`
8669 did, allowing one to convert from pandoc's markdown to strict
8670 markdown or vice versa.
8672 * It is now possible to enable or disable specific syntax
8673 extensions by appending them (with `+` or `-`) to the writer
8674 or reader name. For example,
8676 pandoc -f markdown-footnotes+hard_line_breaks
8678 disables footnotes and enables treating newlines as hard
8679 line breaks. The literate Haskell extensions are now implemented
8680 this way as well, using either `+lhs` or `+literate_haskell`.
8681 For a list of extension names, see the README under
8682 "Pandoc's Markdown."
8684 * The following aliases have been introduced for specific
8685 combinations of markdown extensions: `markdown_phpextra`,
8686 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
8687 work just like regular reader and writer names, and can be modified
8688 with extension modifiers as described above. (Note that conversion
8689 from one markdown dialect to another does not work perfectly,
8690 because there are differences in markdown parsers besides
8691 just the extensions, and because pandoc's internal document model is
8692 not rich enough to capture all of the extensions.)
8694 * New `--html-q-tags` option. The previous default was to use `<q>`
8695 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
8696 Moreover, they are not a robust way of typesetting quotes, since
8697 some user agents don't support them, and some CSS resets (e.g.
8698 bootstrap) prevent pandoc's quotes CSS from working properly.
8699 We now just insert literal quote characters by default in both
8700 `html` and `html5` output, but this option is provided for
8701 those who still want `<q>` tags.
8703 * The markdown reader now prints warnings (to stderr) about
8704 duplicate link and note references. Closes #375.
8706 * Markdown syntax extensions:
8708 + Added pipe tables. Thanks to François Gannaz for the initial patch.
8709 These conform to PHP Markdown Extra's pipe table syntax. A subset
8710 of org-mode table syntax is also supported, which means that you can
8711 use org-mode's nice table editor to create tables.
8713 + Added support for RST-style line blocks. These are
8714 useful for verse and addresses.
8716 + Attributes can now be specified for headers, using the same
8717 syntax as in code blocks. (However, currently only the
8718 identifier has any effect in most writers.) For example,
8720 # My header {#foo}
8722 See [the header above](#foo).
8724 + Pandoc will now act as if link references have been defined
8725 for all headers without explicit identifiers.
8726 So, you can do this:
8728 # My header
8730 Link to [My header].
8731 Another link to [it][My header].
8733 Closes #691.
8735 * LaTeX reader:
8737 + Command macros now work everywhere, including non-math.
8738 Environment macros still not supported.
8739 + `\input` now works, as well as `\include`. TEXINPUTS is used.
8740 Pandoc looks recursively into included files for more included files.
8742 [behavior changes]
8744 * The Markdown reader no longer puts the text of autolinks in a
8745 `Code` inline. This means that autolinks will no longer appear
8746 in a monospace font.
8748 * The character `/` can now appear in markdown citation keys.
8750 * HTML blocks in strict_markdown are no longer required to begin
8751 at the left margin. Technically this is required, according to
8752 the markdown syntax document, but `Markdown.pl` and other markdown
8753 processors are more liberal.
8755 * The `-V` option has been changed so that if there are duplicate
8756 variables, those specified later on the command line take precedence.
8758 * Tight lists now work in LaTeX and ConTeXt output.
8760 * The LaTeX writer no longer relien on the `enumerate` package.
8761 Instead, it uses standard LaTeX commands to change the list numbering
8762 style.
8764 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
8765 tables to be split over page boundaries.
8767 * The RST writer now uses a line block to render paragraphs containing
8768 linebreaks (which previously weren't supported at all).
8770 * The markdown writer now applies the `--id-prefix` to footnote IDs.
8771 Closes #614.
8773 * The plain writer no longer uses backslash-escaped line breaks
8774 (which are not very "plain").
8776 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
8777 Read bytestring and use `Text`'s decodeUtf8 instead of using
8778 `System.IO.hGetContents`. This way you get a message saying
8779 "invalid UTF-8 stream" instead of "invalid byte sequence."
8780 You are also told which byte caused the problem.
8782 * Docx, ODT, and EPUB writers now download images specified by a URL
8783 instead of skipping them or raising an error.
8785 * EPUB writer:
8787 + The default CSS now left-aligns headers by default, instead of
8788 centering. This is more consistent with the rest of the writers.
8789 + A proper multi-level table of contents is now used in `toc.ncx`.
8790 There is no longer a subsidiary table of contents at the beginning
8791 of each chapter.
8792 + Code highlighting now works by default.
8793 + Section divs are used by default for better semantic markup.
8794 + The title is used instead of "Title Page" in the table of contents.
8795 Otherwise we have a hard-coded English string, which looks
8796 strange in ebooks written in other languages. Closes #572.
8798 * HTML writer:
8800 + Put mathjax in span with class "math". Closes #562.
8801 + Put citations in a span with class "citation." In HTML5, also include
8802 a `data-cite` attribute with a space-separated list of citation
8803 keys.
8805 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
8806 This treats both `\r\n` and `\n` as `\n` on input, no matter
8807 what platform we're running on.
8809 * Citation processing is now done in the Markdown and LaTeX
8810 readers, not in `pandoc.hs`. This makes it easier for library users
8811 to use citations.
8813 [template changes]
8815 * HTML: Added css to template to preserve spaces in `<code>` tags.
8816 Thanks to Dirk Laurie.
8818 * Beamer: Remove English-centric strings in section pages.
8819 Section pages used to have "Section" and a number as well as the
8820 section title. Now they just have the title. Similarly for part
8821 and subsection. Closes #566.
8823 * LaTeX, ConTeXt: Added papersize variable.
8825 * LaTeX, Beamer templates: Use longtable instead of ctable.
8827 * LaTeX, Beamer templates: Don't require 'float' package for tables.
8828 We don't actually seem to use the '[H]' option.
8830 * LaTeX: Use `upquote` package if it is available. This fixes
8831 straight quotes in verbatim environments.
8833 * Markdown, plain: Fixed titleblock so it is just a single string.
8834 Previously separate title, author, and date variables were used,
8835 but this didn't allow different kinds of title blocks.
8837 * EPUB:
8839 + Rationalized templates. Previously there were three different
8840 templates involved in epub production. There is now just one
8841 template, `default.epub` or `default.epub3`. It can now be
8842 overridden using `--template`, just like other templates.
8843 The titlepage is now folded into the default template.
8844 A `titlepage` variable selects it.
8845 + UTF-8, lang tag, meta tags, title element.
8847 * Added scale-to-width feature to beamer template
8849 [API changes]
8851 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
8852 Previously header identifers were autogenerated by the writers.
8853 Now they are added in the readers (either automatically or explicitly).
8855 * `Text.Pandoc.Builder`:
8857 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
8858 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
8859 custom Monoid instances for `Many Inline` and `Many Block. This
8860 allows `Many` to be made an instance of `Foldable` and `Traversable`.
8861 + The old `Listable` class has been removed.
8862 + The module now exports `isNull`, `toList`, `fromList`.
8863 + The old `Read` and `Show` instances have been removed; derived
8864 instances are now used.
8865 + Added `headerWith`.
8867 * The readers now take a `ReaderOptions` rather than a `ParserState`
8868 as a parameter. Indeed, not all parsers use the `ParserState` type;
8869 some have a custom state. The motivation for this change was to separate
8870 user-specifiable options from the accounting functions of parser state.
8872 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
8873 formerly in `Text.Pandoc.Shared`, and its associated
8874 data types. It also includes a new type `ReaderOptions`, which
8875 contains many options formerly in `ParserState`, and its associated
8876 data types:
8878 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
8879 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
8880 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
8881 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
8882 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
8883 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
8884 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
8885 + `ParserState.stateIndentedCodeClasses` ->
8886 `ReaderOptions.readerIndentedCodeClasses`.
8887 + Added `ReaderOptions.readerCitationStyle`.
8889 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
8890 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
8891 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
8892 been renamed `writerEpubMetadata` for consistency.
8894 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
8895 longer stylesheet, fonts, reference files as separate parameters.
8897 * Removed `writerLiterateHaskell` from `WriterOptions`, and
8898 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
8899 by an extension (`Ext_literate_haskell`).
8901 * Removed deprecated `writerXeTeX`.
8903 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
8904 Strict is now handled through extensions.
8906 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
8907 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
8908 and `multimarkdownExtensions`, as well as the `Extensions` type.
8910 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
8911 `readMediaWiki`.
8913 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
8914 (thanks to Sergey Astanin).
8916 * `Text.Pandoc`:
8918 + Added `getReader`, `getWriter` to `Text.Pandoc`.
8919 + `writers` is now an association list `(String, Writer)`.
8920 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
8921 an `IOByteStringWriter`. ALL writers are now in the 'writers'
8922 list, including the binary writers and FB2 writer. This allows
8923 code in `pandoc.hs` to be simplified.
8924 + Changed type of `readers`, so all readers are in IO.
8925 Users who want pure readers can still get them form the reader
8926 modules; this just affects the function `getReader` that looks up
8927 a reader based on the format name. The point of this change is to
8928 make it possible to print warnings from the parser.
8930 * `Text.Pandoc.Parsing`:
8932 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
8933 No other module directly imports Parsec. This will make it easier
8934 to change the parsing backend in the future, if we want to.
8935 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
8936 + Export the type synonym `Parser`.
8937 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
8938 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
8939 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
8940 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
8941 + `ParserState` is no longer an instance of `Show`.
8942 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
8943 + Generalized type of `withQuoteContext`.
8944 + Added `guardEnabled`, `guardDisabled`, `getOption`.
8945 + Removed `failIfStrict`.
8946 + `lookupKeySrc` and `fromKey` are no longer exported.
8948 * `Data.Default` instances are now provided for `ReaderOptions`,
8949 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
8950 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
8951 of `defaultWriterOptions` (which is still defined). Closes #546.
8953 * `Text.Pandoc.Shared`:
8955 + Added `safeRead`.
8956 + Renamed `removedLeadingTrailingSpace` to `trim`,
8957 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
8958 + Count `\r` as space in `trim` functions.
8959 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
8960 to `Shared`.
8961 + Removed `failUnlessLHS`.
8962 + Export `compactify'`, formerly in Markdown reader.
8963 + Export `isTightList`.
8964 + Do not export `findDataFile`.
8965 + `readDataFile` now returns a strict ByteString.
8966 + Export `readDataFileUTF8` which returns a String, like the
8967 old `readDataFile`.
8968 + Export `fetchItem` and `openURL`.
8970 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
8971 Removed `readImageSize`.
8973 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
8974 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
8975 `fromStringLazy`.
8977 * `Text.Pandoc.UTF8` is now an exposed module.
8979 * `Text.Pandoc.Biblio`:
8981 + csl parameter now a `String` rather than a `FilePath`.
8982 + Changed type of `processBiblio`. It is no longer in the IO monad.
8983 It now takes a `Maybe Style` argument rather than parameters for CSL
8984 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
8985 the style file and add abbreviations.)
8987 * Markdown reader now exports `readMarkdownWithWarnings`.
8989 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
8990 `rtfEmbedImage`.
8992 [bug fixes]
8994 * Make `--ascii` work properly with `--self-contained`. Closes #568.
8996 * Markdown reader:
8998 + Fixed link parser to avoid exponential slowdowns. Closes #620.
8999 Previously the parser would hang on input like this:
9001 [[[[[[[[[[[[[[[[[[hi
9003 We fixed this by making the link parser parser characters
9004 between balanced brackets (skipping brackets in inline code spans),
9005 then parsing the result as an inline list. One change is that
9007 [hi *there]* bud](/url)
9009 is now no longer parsed as a link. But in this respect pandoc behaved
9010 differently from most other implementations anyway, so that seems okay.
9012 + Look for raw html/latex blocks before tables.
9013 Otherwise the following gets parsed as a table:
9015 \begin{code}
9016 --------------
9017 -- My comment.
9018 \end{code}
9020 Closes #578.
9022 * RST reader:
9024 + Added support for `:target:` on `.. image::` blocks
9025 and substitutions.
9026 + Field list fixes:
9028 - Fixed field lists items with body beginning after a new line
9029 (Denis Laxalde).
9030 - Allow any char but ':' in names of field lists in RST reader
9031 (Denis Laxalde).
9032 - Don't allow line breaks in field names.
9033 - Require whitespace after field list field names.
9034 - Don't create empty definition list for metadata field lists.
9035 Previously a field list consisting only of metadata fields (author,
9036 title, date) would be parsed as an empty DefinitionList, which is
9037 not legal in LaTeX and not needed in any format.
9039 + Don't recognize inline-markup starts inside words.
9040 For example, `2*2 = 4*1` should not contain an emphasized
9041 section. Added test case for "Literal symbols". Closes #569.
9042 + Allow dashes as separator in simple tables. Closes #555.
9043 + Added support for `container`, `compound`, `epigraph`,
9044 `rubric`, `highlights`, `pull-quote`.
9045 + Added support for `.. code::`.
9046 + Made directive labels case-insensitive.
9047 + Removed requirement that directives begin at left margin.
9048 This was (correctly) not in earlier releases; docutils doesn't
9049 make the requirement.
9050 + Added support for `replace::` and `unicode::` substitutions.
9051 + Ignore unknown interpreted roles.
9052 + Renamed image parser to `subst`, since it now handles all
9053 substitution references.
9055 * Textile reader:
9057 + Allow newlines before pipes in table. Closes #654.
9058 + Fixed bug with list items containing line breaks.
9059 Now pandoc correctly handles hard line breaks inside list items.
9060 Previously they broke list parsing.
9061 + Implemented comment blocks.
9062 + Fixed bug affected words ending in hyphen.
9063 + Properly handle links with surrounding brackets.
9064 Square brackets need to be used when the link isn't surrounded by
9065 spaces or punctuation, or when the URL ending may be ambiguous.
9066 Closes #564.
9067 + Removed nullBlock. Better to know about parsing problems than
9068 to skip stuff when we get stuck.
9069 + Allow ID attributes on headers.
9070 + Textile reader: Avoid parsing dashes as strikeout.
9071 Previously the input
9073 text--
9074 text--
9075 text--
9076 text--
9078 would be parsed with strikeouts rather than dashes. This fixes
9079 the problem by requiring that a strikeout delimiting - not be
9080 followed by a -. Closes #631.
9081 + Expanded list of `stringBreakers`.
9082 This fixes a bug on input like "(_hello_)" which should
9083 be a parenthesized emphasized "hello".
9084 The new list is taken from the PHP source of textile 2.4.
9085 + Fixed autolinks. Previously the textile reader and writer
9086 incorrectly implented RST-style autolinks for URLs and email
9087 addresses. This has been fixed. Now an autolink is done this way:
9088 `"$":http://myurl.com`.
9089 + Fixed footnotes bug in textile. This affected notes occuring
9090 before punctuation, e.g. `foo[1].`. Closes #518.
9092 * LaTeX reader:
9094 + Better handling of citation commands.
9095 + Better handling of `\noindent`.
9096 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
9097 Closes #622.
9098 + Made `rawLaTeXInline` try to parse block commands as well. This
9099 is usually what we want, given how `rawLaTeXInline` is used in
9100 the markdown and textile readers. If a block-level LaTeX command
9101 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
9102 we can treat it as raw inline LaTeX.
9103 + Handle \slash command. Closes #605.
9104 + Basic `\enquote` support.
9105 + Fixed parsing of paragraphs beginning with a group. Closes #606.
9106 + Use curly quotes for bare straight quotes.
9107 + Support obeylines environment. Closes #604.
9108 + Guard against "begin", "end" in inlineCommand and
9109 blockCommand.
9110 + Better error messages for environments. Now it should tell you that
9111 it was looking for \end{env}, instead of giving "unknown parse error."
9113 * HTML reader:
9115 + Added HTML 5 tags to list of block-level tags.
9116 + HTML reader: Fixed bug in `htmlBalanced`, which
9117 caused hangs in parsing certain markdown input using
9118 strict mode.
9119 + Parse `<q>` as `Quoted DoubleQuote`.
9120 + Handle nested `<q>` tags properly.
9121 + Modified `htmlTag` for fewer false positives.
9122 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
9123 This makes it more useful in the wikimedia and markdown parsers.
9125 * DocBook reader: Support title in "figure" element. Closes #650.
9127 * MediaWiki writer:
9129 + Remove newline after `<br/>` in translation of `LineBreak`
9130 There's no particular need for a newline (other than making the
9131 generated MediaWiki source look nice to a human), and in fact
9132 sometimes it is incorrect: in particular, inside an enumeration, list
9133 items cannot have embedded newline characters. (Brent Yorgey)
9134 + Use `<code>` not `<tt>` for Code.
9136 * Man writer: Escape `-` as `\-`.
9137 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
9138 signs. That is preferable for use with command-line options. See
9139 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
9140 to Andrea Bolognani for bringing the issue to our attention.
9142 * RST writer:
9144 + Improved line block output. Use nonbreaking spaces for
9145 initial indent (otherwise lost in HTML and LaTeX).
9146 Allow multiple paragraphs in a single line block.
9147 Allow soft breaks w continuations in line blocks.
9148 + Properly handle images with no alt text. Closes #678.
9149 + Fixed bug with links with duplicate text. We now (a) use anonymous
9150 links for links with inline URLs, and (b) use an inline link instead
9151 of a reference link if the reference link would require a label that
9152 has already been used for a different link. Closes #511.
9153 + Fixed hyperlinked images. Closes #611. Use `:target:`
9154 field when you have a simple linked image.
9155 + Don't add `:align: center` to figures.
9157 * Texinfo writer: Fixed internal cross-references.
9158 Now we insert anchors after each header, and use `@ref` instead of `@uref`
9159 for links. Commas are now escaped as `@comma{}` only when needed;
9160 previously all commas were escaped. (This change is needed, in part,
9161 because `@ref` commands must be followed by a real comma or period.) Also
9162 insert a blank line in from of `@verbatim` environments.
9164 * DocBook writer:
9166 + Made --id-prefix work in DocBook as well as HTML.
9167 Closes #607.
9168 + Don't include empty captions in figures. Closes #581.
9170 * LaTeX writer:
9172 + Use `\hspace*` for nonbreaking space after line break,
9173 since `~` spaces after a line break are just ignored.
9174 Closes #687.
9175 + Don't escape `_` in URLs or hyperref identifiers.
9176 + Properly escape strings inside \url{}. Closes #576.
9177 + Use `[fragile]` only for slides containing code rendered
9178 using listings. Closes #649.
9179 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
9180 highlighting-kate's macros, which redefine `|` as a short verbatim
9181 delimiter. Thanks to Björn Peemöller for raising this issue.
9182 + Use minipage rather than parbox for block containers in tables.
9183 This allows verbatim code to be included in grid tables.
9184 Closes #663.
9185 + Prevent paragraphs containing only linebreaks or spaces.
9187 * HTML writer:
9189 + Included `highlighting-css` for code spans, too.
9190 Previously it was only included if used in a code block. Closes #653.
9191 + Improved line breaks with `<dd>` tags. We now put a newline between
9192 `</dd>` and `<dd>` when there are multiple definitions.
9193 + Changed mathjax cdn url so it doesn't use https. (This caused
9194 problems when used with `--self-contained`.) See #609.
9196 * EPUB writer:
9198 + `--number-sections` now works properly.
9199 + Don't strip meta and link elements in epub metadata.
9200 Patch from aberrancy. Closes #589.
9201 + Fixed a couple validation bugs.
9202 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
9203 of chapters in some readers, which apparently sort ch2 after ch10.
9204 Closes #610.
9206 * ODT writer: properly set title property (Arlo O'Keeffe).
9208 * Docx writer:
9210 + Fixed bug with nested lists. Previously a list like
9212 1. one
9213 - a
9214 - b
9215 2. two
9217 would come out with a bullet instead of "2."
9218 Thanks to Russell Allen for reporting the bug.
9219 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
9220 This seems to fix a problem viewing pandoc-generated
9221 docx files in LibreOffice.
9222 + Use integer ids for bookmarks. Closes #626.
9223 + Added nsid to abstractNum elements. This helps when merging
9224 word documents with numbered or bulleted lists. Closes #627.
9225 + Use separate footnotes.xml for notes.
9226 This seems to help LibreOffice convert the file, even though
9227 it was valid docx before. Closes #637.
9228 + Use rIdNN identifiers for r:embed in images.
9229 + Avoid reading image files again when we've already processed them.
9230 + Fixed typo in `referenc.docx` that prevented image captions from
9231 working. Thanks to Huashan Chen.
9233 * `Text.Pandoc.Parsing`:
9235 + Fixed bug in `withRaw`, which didn't correctly handle the case
9236 where nothing is parsed.
9237 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
9238 though it still doesn't implement quoted strings in email addresses.
9239 + Revised URI parser. It now allows many more schemes, allows
9240 uppercase URIs, and better handles trailing punctuation and
9241 trailing slashes in bare URIs. Added many tests.
9242 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
9243 etc. parse properly. Formerly we had some English-centric heuristics,
9244 but they are no longer needed. Closes #698.
9246 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
9247 This fixes bug with Chinese commas in markdown and reST tables, and
9248 a bug that caused combining characters to be dropped.
9250 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
9252 * `Text.Pandoc.Biblio`:
9254 + Run `mvPunc` and `deNote` on metadata too.
9255 This fixed a bug with notes on titles using footnote styles.
9256 + Fixed bug in fetching CSL files from CSL data directory.
9258 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
9259 is provided. It should be the URL up to the path.
9261 * Fixed/simplified diff output for tests.
9262 Biblio: Make sure mvPunc and deNote run on metadata too.
9263 This fixed a bug with notes on titles using footnote styles.
9265 [under the hood improvements]
9267 * We no longer depend on `utf8-string`. Instead we use functions
9268 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
9270 * Use `safeRead` instead of using `reads` directly (various modules).
9272 * "Implicit figures" (images alone in a paragraph) are now handled
9273 differently. The markdown reader gives their titles the prefix `fig:`; the
9274 writers look for this before treating the image as a figure. Though this
9275 is a bit of a hack, it has two advantages: (i) implicit figures can be
9276 limited to the markdown reader, and (ii) they can be deactivated by turning
9277 off the `implicit_figures` extension.
9279 * `catch` from `Control.Exception` is now used instead of the
9280 old Preface `catch`.
9282 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
9283 and `oneOfStrings` (which is now non-backtracking).
9285 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
9286 Now citeproc-hs is fixed upstream, so this is no longer needed.
9287 Closes #531.
9289 * Textile reader: Improved speed of `hyphenedWords`.
9290 This speeds up the textile reader by about a factor of 4.
9292 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
9293 better performance, and automatic normalization.
9295 * Major rewrite of markdown reader:
9297 + Use `Text.Pandoc.Builder` instead of lists. This also
9298 means that everything is normalized automatically.
9299 + Move to a one-pass parsing strategy, returning values in the reader
9300 monad, which are then run (at the end of parsing) against the final
9301 parser state.
9303 * In HTML writer, we now use `toHtml` instead of pre-escaping.
9304 We work around the problem that blaze-html unnecessarily escapes `'`
9305 by pre-escaping just the `'` characters, instead of the whole string.
9306 If blaze-html later stops escaping `'` characters, we can simplify
9307 `strToHtml` to `toHtml`. Closes #629.
9309 * Moved code for embedding images in RTFs from `pandoc.hs` to the
9310 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
9312 * Moved citation processing from `pandoc.hs` into the readers.
9313 This makes things more convenient for library users.
9315 * The man pages are now built by an executable `make-pandoc-man-pages`,
9316 which has its own stanza in the cabal file so that dependencies can be
9317 handled by Cabal. Special treatment in `Setup.hs` ensures that this
9318 executable never gets installed; it is only used to create the man pages.
9320 * The cabal file has been modified so that the pandoc library is used
9321 in building the pandoc executable. (This required moving `pandoc.hs`
9322 from `src` to `.`.) This cuts compile time in half.
9324 * `-O2` is no longer used in building pandoc. The performance improvement
9325 it yields is so slight that it is not worth it. (Measured with
9326 benchmarks on ghc 7.4.)
9328 * The `executable` and `library` flags have been removed.
9330 * `-threaded` has been removed from ghc-options.
9332 * Version bounds of dependencies have been raised, and the
9333 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
9334 GHC 7.6.
9336 * We now require base >= 4.2.
9338 * Integrated the benchmark program into cabal. One can now do:
9340 cabal configure --enable-benchmarks && cabal build
9341 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
9343 The benchmark now uses README + testsuite, so benchmark results
9344 from older versions aren't comparable.
9346 * Integrated test suite with cabal.
9347 To run tests, configure with `--enable-tests`, then `cabal test`.
9348 You can specify particular tests using `--test-options='-t markdown'`.
9349 No output is shown unless tests fail. The Haskell test modules
9350 have been moved from `src/` to `tests/`.
9352 * Moved all data files and templates to the `data/` subdirectory.
9354 * Added an `embed_data_files` cabal flag. This causes all
9355 data files to be embedded in the binary, so that the binary
9356 is self-sufficient and can be relocated anywhere, copied on
9357 a USB key, etc. The Windows installer now uses this.
9358 (Since we no longer have the option to build the executable
9359 without the library, this is the only way to get a relocatable
9360 binary on Windows.)
9362 * Removed pcre3.dll from windows package.
9363 It isn't needed unless highlighting-kate is compilled with the
9364 `pcre-light` flag. By default, regex-prce-builtin is used.
9367pandoc (1.9.4.2)
9369 * Don't encode/decode file paths if base >= 4.4.
9370 Prior to base 4.4, filepaths and command line arguments were treated
9371 as unencoded lists of bytes, not unicode strings, so we had to work
9372 around that by encoding and decoding them. This commit adds CPP
9373 checks for the base version that intelligibly enable encoding/decoding
9374 when needed. Fixes a bug with multilingual filenames when pandoc was
9375 compiled with ghc 7.4 (#540).
9377 * Don't generate an empty H1 after hrule slide breaks.
9378 We now use a slide-level header with contents `[Str "\0"]` to mark
9379 an hrule break. This avoids creation of an empty H1 in these
9380 contexts. Closes #484.
9382 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
9384 * In make_osx_package.sh, ensure citeproc-hs is built with the
9385 embed_data_files flag.
9387 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
9389 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
9390 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
9392 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
9393 Closes #535.
9395 * Added webm to mime types. Closes #543.
9397 * Added some missing exports and tests to the cabal file
9398 (Alexander V Vershilov).
9400 * Compile with `-rtsopts` and `-threaded` by default.
9402pandoc (1.9.4.1)
9404 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
9406 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
9407 variables. Make TOC links black.
9409 * LaTeX template improvements.
9411 + Don't print date unless one is given explicitly in the document.
9412 + Simplified templates.
9413 + Use fontenc [T1] by default, and lmodern.
9414 + Use microtype if available.
9416 * Biblio:
9418 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
9419 Motivation: `@item1 [50]` should be as close as possible to
9420 `[@item1, 50]`.
9421 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
9422 beginning with a citation to be empty. Closes #531.
9424 * Fixed documentation on mixed lists. Closes #533.
9426pandoc (1.9.4)
9428 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
9429 footnotes and captions. We now handle note citations by inserting
9430 footnotes during initial citation processing, and doing a separate
9431 pass later to remove notes inside notes.
9433 * Added 'zenburn' highlight style from highlighting-kate.
9435 * Added Slideous writer. Slideous is an HTML + javascript slide show
9436 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
9438 * LaTeX writer:
9440 + Ensure we don't have extra blank lines at ends of cells.
9441 This can cause LaTeX errors, as they are interpreted as new paragraphs.
9442 + More consistent interblock spacing.
9443 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
9444 code in LaTeX. Closes #527.
9445 + Ensure that a Verbatim at the end of a footnote is followed by
9446 a newline. (Fixes a regression in the previous version.)
9447 + In default template, use black for internal links and TOC.
9448 Added commented-out code to use footnotes for links, as would
9449 be suitable in print output.
9451 * Beamer writer: When `--incremental` is used, lists inside
9452 a block quote should appear all at once. (This makes Beamer
9453 output consistent with the HTML slide show formats.)
9455 * ConTeXt writer:
9457 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
9458 to avoid gobbling spaces after the `%` sign.
9459 + Ensure space after `\stopformula`.
9461 * Markdown writer:
9463 + Use `:` form instead of `~` in definition lists, for better
9464 compatibility with other markdown implementations.
9465 + Don't wrap the term, because it breaks definition lists.
9466 + Use a nonzero space to prevent false recognition
9467 of list marker in ordered lists. Closes #516.
9469 * Org writer: Add space before language name. Closes #523.
9471 * Docx writer: Simplified bullet characters so they work properly
9472 with Word 2007. Closes #520.
9474 * LaTeX reader: Support `\centerline`.
9476 * RST reader: handle figures. Closes #522.
9478 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
9479 (Paul Rivier)
9481pandoc (1.9.3)
9483 * Fixed bug in `fromEntities`. The previous version would turn
9484 `hi & low you know;` into `hi &`.
9486 * HTML reader:
9488 + Don't skip nonbreaking spaces.
9489 Previously a paragraph containing just `&nbsp;` would be rendered
9490 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
9491 + Support `<col>` and `<caption>` in tables. Closes #486.
9493 * Markdown reader:
9495 + Don't recognize references inside delimited code blocks.
9496 + Allow list items to begin with lists.
9498 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
9500 * LaTeX reader:
9502 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
9503 + Control sequences can't be followed by a letter.
9504 This fixes a bug where `\begingroup` was parsed as `\begin`
9505 followed by `group`.
9506 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
9507 + Make `\label` and `\ref` sensitive to `--parse-raw`.
9508 If `--parse-raw` is selected, these will be parsed as raw latex
9509 inlines, rather than bracketed text.
9510 + Don't crash on unknown block commands (like `\vspace{10pt}`)
9511 inside `\author`; just skip them. Closes #505.
9513 * Textile reader:
9515 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
9516 + Added support for LaTeX blocks and inlines (Paul Rivier).
9517 + Better conformance to RedCloth inline parsing (Paul Rivier).
9518 + Parse '+text+' as emphasized (should be underlined, but this
9519 is better than leaving literal plus characters in the output.
9521 * Docx writer: Fixed multi-paragraph list items. Previously they each
9522 got a list marker. Closes #457.
9524 * LaTeX writer:
9526 + Added `--no-tex-ligatures` option to avoid replacing
9527 quotation marks and dashes with TeX ligatures.
9528 + Use `fixltx2e` package to provide '\textsubscript'.
9529 + Improve spacing around LaTeX block environments:
9530 quote, verbatim, itemize, description, enumerate.
9531 Closes #502.
9532 + Use blue instead of pink for URL links in latex/pdf output.
9534 * ConTeXt writer: Fixed escaping of `%`.
9535 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
9536 Inside URLs, `%` needs to be escaped as `\%`
9537 Thanks to jmarca and adityam for the fix. Closes #492.
9539 * Texinfo writer: Escape special characters in node titles.
9540 This fixes a problem pointed out by Joost Kremers. Pandoc used
9541 to escape an '@' in a chapter title, but not in the corresponding
9542 node title, leading to invalid texinfo.
9544 * Fixed document encoding in texinfo template.
9545 Resolves Debian Bug #667816.
9547 * Markdown writer:
9549 + Don't force delimited code blocks to be flush left.
9550 Fixes bug with delimited code blocks inside lists etc.
9551 + Escape `<` and `$`.
9553 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
9554 Previously we used `\href{\#ident}{text}`, which didn't work on
9555 all systems. Thanks to Dirk Laurie.
9557 * RST writer: Don't wrap link references. Closes #487.
9559 * Updated to use latest versions of blaze-html, mtl.
9562pandoc (1.9.2)
9564 * LaTeX reader:
9566 + Made `lstlisting` work as a proper verbatim environment.
9567 + Fixed bug parsing LaTeX tables with one column.
9569 * LaTeX writer:
9571 + Use `{}` around `ctable` caption, so that formatting can be used.
9572 + Don't require eurosym package unless document has a €.
9574 * LaTeX template: Added variables for `geometry`, `romanfont`,
9575 `sansfont`, `mathfont`, `mainfont` so users can more easily
9576 customize fonts.
9578 * PDF writer:
9580 + Run latex engine at least two times, to ensure
9581 that PDFs will have hyperlinked bookmarks.
9582 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
9584 * Texinfo writer: retain directories in image paths. (Peter Wang)
9586 * RST writer: Better handling of inline formatting, in accord
9587 with docutils' "inline markup recognition rules" (though we don't
9588 implement the unicode rules fully). Now `hi*there*hi` gets
9589 rendered properly as `hi\ *there*\ hi`, and unnecessary
9590 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
9592 * RST reader:
9594 + Parse `\ ` as null, not escaped space.
9595 + Allow `` :math:`...` `` even when not followed by blank
9596 or `\`. This does not implement the complex rule docutils follows,
9597 but it should be good enough for most purposes.
9598 + Add support for the rST default-role directive. (Greg Maslov)
9600 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
9601 (Greg Maslov)
9603 * Markdown reader: Properly handle citations nested in other inline
9604 elements.
9606 * Markdown writer: don't replace empty alt in image with "image".
9608 * DZSlides: Updated template.html and styles in default template.
9609 Removed bizarre CSS for `q` in dzslides template.
9611 * Avoid repeated `id` attribute in section and header in HTML slides.
9613 * README improvements: new instructions on internal links,
9614 removed misleading note on reST math.
9616 * Build system:
9618 + Fixed Windows installer so that dzslides works.
9619 + Removed stripansi.sh.
9620 + Added .travis.yml for Travis continuous integration support..
9621 + Fixed upper bound for zlib (Sergei Trofimovich).
9622 + Fixed upper bound for test-framework.
9623 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
9625pandoc (1.9.1.2)
9627 * Added `beamer+lhs` as output format.
9629 * Don't escape `<` in `<style>` tags with `--self-contained`.
9630 This fixes a bug which prevented highlighting from working
9631 when using `--self-contained`.
9633 * PDF: run latex engine three times if `--toc` specified.
9634 This fixes page numbers in the table of contents.
9636 * Docx writer: Added TableNormal style to tables.
9638 * LaTeX math environment fixes. `aligned` is now used instead of
9639 the nonexistent `aligned*`. `multline` instead of the nonexistent
9640 `multiline`.
9642 * LaTeX writer: Use `\textasciitilde` for literal `~`.
9644 * HTML writer: Don't escape contents of EQ tags with --gladtex.
9645 This fixes a regression from 1.8.
9647 * Use `<q>` tags for Quoted items for HTML5 output.
9648 The quote style can be changed by modifying the template
9649 or including a css file. A default quote style is included.
9651 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
9652 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
9654 * Updated LaTeX template for better language support.
9655 Use `polyglossia` instead of `babel` with xetex.
9656 Set `lang` as documentclass option.
9657 `\setmainlanguage` will use the last of a comma-separated
9658 list of languages. Thanks to François Gannaz.
9660 * Fixed default LaTeX template so `\euro` and `€` work. The
9661 `eurosym` package is needed if you are using pdflatex.
9663 * Fixed escaping of period in man writer (thanks to Michael Thompson).
9665 * Fixed list label positions in beamer.
9667 * Set `mainlang` variable in context writer.
9668 This parallels behavior of latex writer. `mainlang` is the last
9669 of a comma-separated list of languages in lang.
9671 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
9673 * Changed `-V` so that you can specify a key without a value.
9674 Such keys get the value `true`.
9676 * Fixed permissions on installed man pages - thanks Magnus Therning.
9678 * Windows installer: require XP or higher. The installer is
9679 now compiled on a Windows 7 machine, which fixes a problem
9680 using citation functions on Windows 7.
9682 * OSX package: Check for 64-bit Intel CPU before installing.
9684pandoc (1.9.1.1)
9686 * Better handling of raw latex environments in markdown. Now
9688 \begin{equation}
9689 a_1
9690 \end{equation}
9692 turns into a raw latex block as expected.
9694 * Improvements to LaTeX reader:
9696 + Skip options after block commands.
9697 + Correctly handle `{\\}` in braced.
9698 + Added a needed 'try'.
9699 + Citations: add `, ` to suffix if it doesn't start with space or
9700 punctuation. Otherwise we get no space between the year and the
9701 suffix in author-date styles.
9703 * Added two needed data files for S5. This fixes a problem with
9704 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
9705 which was no longer being used.
9707 * Fixed some minor problems in `reference.docx`:
9708 name on "Date" style, `xCs` instead of `xIs`.
9710 * Fixed a problem creating docx files using a reference docx
9711 modified using Word. The problem seems to be that Word
9712 modifies `_rels/.rels`, changing the Type of the Relationship to
9713 `docProps/core.xml`. Pandoc now changes this back to the correct
9714 value if it has been altered, fixing the problem.
9716 * Fixed html5 template so it works properly with highlighting.
9718pandoc (1.9.1)
9720 * LaTeX reader:
9722 + Fixed regression in 1.9; properly handle escaped $ in latex math.
9723 + Put LaTeX verse environments in blockquotes.
9725 * Markdown reader:
9727 + Limit nesting of strong/emph. This avoids exponential lookahead
9728 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
9729 + Improved attributes syntax (inn code blocks/spans):
9730 (1) Attributes can contain line breaks. (2) Values in key-value
9731 attributes can be surrounded by either double or single quotes, or
9732 left unquoted if they contain no spaces.
9734 * Don't wrap headers in markdown or RST writers.
9736 * Added `stateMaxNestingLevel` to `ParserState`.
9737 We set this to 6, so you can still have `Emph` inside `Emph`,
9738 just not indefinitely.
9740 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
9742 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
9743 is present.
9745 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
9747pandoc (1.9.0.5)
9749 * Changed cabal file so that build-depends for the test program
9750 are not required unless the tests flag is used.
9752 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
9753 form ligatures (dashes) in code spans.
9755pandoc (1.9.0.4)
9757 * Raised version bound on test-framework to avoid problems
9758 compiling tests on GHC 7.4.1.
9760 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
9761 so citations don't just disappear unless you process with
9762 citeproc. Ignore `\bibliographystyle`, `\nocite`.
9764 * Simplified tex2pdf; it will always run latex twice to
9765 resolve table of contents and hyperrefs.
9767pandoc (1.9.0.3)
9769 * Require Cabal >= 1.10.
9770 * Tweaked cabal file to meet Cabal 1.10 requirements.
9772pandoc (1.9.0.2)
9774 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
9775 ghc 6.12.
9777pandoc (1.9)
9779 [new features]
9781 * Added a Microsoft Word `docx` writer. The writer includes support
9782 for highlighted code and for math (which is converted from TeX to OMML,
9783 Office's native math markup language, using texmath's new OMML module).
9784 A new option `--reference-docx` allows the user to customize the
9785 styles.
9787 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
9789 * Better support for slide shows:
9791 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
9792 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
9794 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
9795 slide presentations.
9797 + New, flexible rules for dividing documents into sections and slides
9798 (see the "Structuring the slide show" in the User's Guide). These
9799 are backward-compatible with the old rules, but they allow slide
9800 shows to be organized into sections and subsections containing
9801 multiple slides.
9803 + A new `--slide-level` option allows users to override defaults
9804 and select a slide level below the first header level with content.
9806 * A new `--self-contained` option produces HTML output that does not
9807 depend on an internet connection or the presence of any external
9808 files. Linked images, CSS, and javascript is downloaded (or fetched
9809 locally) and encoded in `data:` URIs. This is useful for making portable
9810 `HTML slide shows. The --offline` option has been deprecated and is now
9811 `treated as a synonym or --self-contained`.
9813 * Support for PDF output:
9815 + Removed the old `markdown2pdf`.
9816 + `pandoc` can now create PDFs (assuming you have latex and a set of
9817 appropriate packages installed): just specify an output file with the
9818 `.pdf` extension.
9819 + A new option `--latex-engine` allows you to specify `pdflatex`,
9820 `xelatex`, or `lualatex` as the processor.
9822 * Highlighting changes:
9824 + Syntax highlighting is now a standard feature; the `highlighting`
9825 flag is no longer needed when compiling.
9826 + A new `--no-highlight` option allows highlighting to be disabled.
9827 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
9828 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
9829 + A new `--highlight-style` option selects between various highlighting
9830 color themes.
9832 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
9834 * LaTeX `\include` and `\usepackage` commands are now processed,
9835 provided the files are in the working directory.
9837 * EPUB improvements:
9839 + Internal and external links now work in EPUB.
9840 + Raw HTML is allowed.
9841 + New `--epub-embed-font` option.
9842 + Customizable templates for EPUB pages offer more control over
9843 formatting: `epub-page.html`, `epub-coverimage.html`,
9844 `epub-titlepage.html`.
9846 * `--mathml` now works with DocBook.
9848 * Added support for math in RST reader and writer. Inline math uses the
9849 `` :math:`...` `` construct. Display math uses
9851 .. math:: ...
9853 or if the math is multiline,
9855 .. math::
9857 ...
9859 These constructions are now supported now by `rst2latex.py`.
9861 * GitHub syntax for fenced code blocks is supported in pandoc's
9862 markdown. You can now write
9864 ```ruby
9865 x = 2
9866 ```
9868 instead of
9870 ~~~ {.ruby}
9871 x = 2
9872 ~~~~
9874 * Easier scripting: a new `toJsonFilter` function makes it easier to
9875 write Haskell scripts to manipulate the Pandoc AST.
9877 [behavior changes]
9879 * Fixed parsing of consecutive lists in markdown.
9880 Pandoc previously behaved like Markdown.pl for consecutive
9881 lists of different styles. Thus, the following would be parsed
9882 as a single ordered list, rather than an ordered list followed
9883 by an unordered list:
9885 1. one
9886 2. two
9888 - one
9889 - two
9891 This change makes pandoc behave more sensibly, parsing this as
9892 two lists. Any change in list type (ordered/unordered) or in
9893 list number style will trigger a new list. Thus, the following
9894 will also be parsed as two lists:
9896 1. one
9897 2. two
9899 a. one
9900 b. two
9902 Since we regard this as a bug in Markdown.pl, and not something
9903 anyone would ever rely on, we do not preserve the old behavior
9904 even when `--strict` is selected.
9906 * Dashes work differently with `--smart`: `---` is always em-dash,
9907 and `--` is always en-dash. Pandoc no longer tries to guess when
9908 `-` should be en-dash. *Note:* This may change how existing documents
9909 look when processed with pandoc. A new option, `--old-dashes`,
9910 is provided for legacy documents.
9912 * The markdown writer now uses setext headers for levels 1-2.
9913 The old behavior (ATX headers for all levels) can be restored
9914 using the new `--atx-headers` option.
9916 * Links are now allowed in markdown image captions. They are also
9917 allowed in links, but will appear there as regular text. So,
9919 [link with [link](/url)](/url)
9921 will turn into
9923 <p><a href="/url">link with link</a></p>
9925 * Improved handling of citations using `citeproc-hs-0.3.4`.
9926 Added `--citation-abbreviations` option.
9928 * Citation keys can no longer end with a punctuation character.
9929 This means that `@item1.` will be parsed as a citation with key
9930 'item1', followed by a period, instead of a citation with key
9931 'item1.', as was the case previously.
9933 * In HTML output, citations are now put in a span with class `citation`.
9935 * The markdown reader now recognizes DocBook block and inline tags.
9936 It was always possible to include raw DocBook tags in a markdown
9937 document, but now pandoc will be able to distinguish block from
9938 inline tags and behave accordingly. Thus, for example,
9940 <sidebar>
9941 hello
9942 </sidebar>
9944 will not be wrapped in `<para>` tags.
9946 * The LaTeX parser has been completely rewritten; it is now much more
9947 accurate, robust, and extensible. However, there are two important
9948 changes in how it treats unknown LaTeX. (1) Previously, unknown
9949 environments became BlockQuote elements; now, they are treated
9950 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
9951 same as `xyz`. (2) Previously, arguments of unknown commands
9952 were passed through with their braces; now the braces are stripped
9953 off.
9955 * `--smart` is no longer selected automatically with `man` output.
9957 * The deprecated `--xetex` option has been removed.
9959 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
9960 instead. `html5` and `html5+lhs` are now separate output formats.
9962 * Single quotes are no longer escaped in HTML output. They do not
9963 need to be escaped outside of attributes.
9965 * Pandoc will no longer transform leading newlines in code
9966 blocks to `<br/>` tags.
9968 * The ODT writer now sizes images appropriately, using the image
9969 size and DPI information embedded in the image.
9971 * `--standalone` is once again implicitly for a non-text output format
9972 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
9973 and get a standalone ODT file.
9975 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
9976 `<section>`.
9978 * The HTML writer now uses `<del>` for strikeout.
9980 * In HTML output with `--section-divs`, the classes `section` and
9981 `level[1,2,..6]` are put on the `div` tags so they can be styled.
9982 In HTML 5 output with `--section-divs`, the classes
9983 `level[1,2,...6]` are put on `section` tags.
9985 * EPUB writer changes:
9987 + The `lang` variable now sets the language
9988 in the metadata (if it is not set, we default to the locale).
9989 + EPUB: UTF-8 is used rather than decimal entities.
9991 * Added `titleslide` class to title slide in S5 template.
9993 * In HTML, EPUB, and docx metadata, the date is normalized into
9994 YYYY-MM-DD format if possible. (This is required for validation.)
9996 * Attributes in highlighted code blocks are now preserved in HTML.
9997 The container element will have the classes, id, and key-value attributes
9998 you specified in the delimited code block. Previously these were stripped
9999 off.
10001 * The reference backlink in the HTML writer no longer has a special
10002 `footnoteBacklink` class.
10004 * The HTML template has been split into `html` and `html5` templates.
10006 * Author and date are treated more consistently in HTML templates.
10007 Authors are now `<h2>`, date `<h3>`.
10009 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
10011 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
10013 [bug fixes]
10015 * Better support for combining characters and East Asian wide characters
10016 in markdown and reST.
10018 * Better handling of single quotes with `--smart`.
10019 Previously `D'oh l'*aide*` would be parsed with left and right single
10020 quotes instead of apostrophes. This kind of error is now fixed.
10022 * Highlighting: Use `reads` instead of `read` for better error handling.
10023 Fixes crash on `startNum="abc"`.
10025 * Added blank comment after directives in rst template.
10027 * Unescape entities in citation `refId`. The `refId`s coming
10028 from citeproc contain XML numeric entities, and these don't match with the
10029 citation keys parsed by pandoc. Solution is to unescape them.
10031 * HTML reader: Fixed bug parsing tables with both thead and tbody.
10033 * Markdown reader:
10035 + Better handling of escapes in link URLs and titles.
10036 + Fixed backslash escapes in reference links.
10037 + Fixed bug in table/hrule parsing, by checking that the top
10038 line of a table is not followed by a blank line. This bug caused
10039 slowdowns on some files with hrules and tables, as pandoc tried to
10040 interpret the hrules as the tops of multiline tables.
10041 + Fixed bug in code block attribute parser. Previously the ID attribute
10042 got lost if it didn't come first. Now attributes can come in any order.
10044 * RST reader: allow footnotes followed by newline without space characters.
10046 * LaTeX reader:
10048 + Ignore empty groups {}, { }.
10049 + LaTeX reader: Handle \@.
10050 + LaTeX reader: Don't crash on commands like `\itemsep`.
10051 + LaTeX reader: Better handling of letter environments.
10053 * RST writer: Fixed bug involving empty table cells. isSimple was being
10054 calculated in a way that assumed there were no non-empty cells.
10056 * ConTeXt writer:
10058 + Made `--toc` work even without `--number-sections`.
10059 + Escape # in link URLs.
10060 + Use buffering for footnotes containing code blocks.
10061 + Changed 'descr' to 'description', fixed alignment.
10063 * LaTeX writer:
10065 + Escape euro character.
10066 + Don't escape ~ inside href{...}.
10067 + Escape # in href URLs.
10068 + Improved detection of book classes. We now check the
10069 `documentclass` variable, and if that is not set, we look through
10070 the template itself. Also, we have added the KOMA classes scrreprt
10071 and scrbook. You can now make a book using
10072 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
10073 + LHS files now set the "listings" variable, so that the definition
10074 of the `code` environment will be included in the template.
10075 + Links are colored blue by default (this can be changed by
10076 modifying `hyperref` settings in the template).
10077 + Added `lang` variable to LaTeX template.
10079 * HTML writer:
10081 + Fixed bug in HTML template with html5 and mathml.
10082 + Don't use self-closing img, br, hr tags for HTML5.
10083 + Use `<section>` for footnotes if HTML5.
10084 + Update HTML templates to use Content-Style-Type meta tag.
10085 + Use separate variables for meta-date, meta-author.
10086 This makes footnotes work in author and date fields.
10087 + Use 'vertical-align:middle' in WebTeX math for better alignment.
10089 * S5/slidy writer: Make footnotes appear on separate slide at end.
10091 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
10092 META-INF/manifest.xml for ODT files will have everything it needs, so
10093 that ODT files modified by LibreOffice can be used as `--reference-odt`.
10095 * `Text.Pandoc.Templates`: Return empty string for json template.
10097 * `Text.Pandoc.Biblio`:
10099 + Expand citations recursively inside nested inlines.
10100 + Treat `\160` as space when parsing locator and suffix.
10101 This fixes a bug with "p. 33" when `--smart` is used. Previously
10102 the whole "p. 33" would be included in the suffix, with no locator.
10103 + Put whole author-in-text citation in a Cite. Previously just the
10104 date and other info went in the Cite.
10105 + Don't add comma+space to prefix if it ends in punctuation.
10107 * Updated chicago-author-date.csl. The old version did not work
10108 properly for edited volumes with no author.
10110 * EPUB writer:
10112 + Add date to EPUB titlepage and metadata.
10113 + Added TOC identifier in EPUB page template.
10114 + Don't generate superfluous file `cover-image.jpg`.
10116 [under the hood improvements]
10118 * Modified `make_osx_package.sh` to use cabal-dev.
10119 Items are no longer installed as root.
10120 Man pages are zipped and given proper permissions.
10122 * Modified windows installer generater to use cabal-dev.
10124 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
10125 Setup.hs we now invoke 'runghc' in a way that points it to the correct
10126 package databases, instead of always falling back to the default user
10127 package db.
10129 * Updated to work with GHC 7.4.1.
10131 * Removed dependency on old-time.
10133 * Removed dependency on dlist.
10135 * New slidy directory for "self-contained."
10137 * TeXMath writer: Use unicode thin spaces for thin spaces.
10139 * Markdown citations: don't strip off initial space in locator.
10141 [API changes]
10143 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
10144 from the native `Inline` type in pandoc-types. Now we use `Str`
10145 elements with unicode.
10147 * Improvements to `Text.Pandoc.Builder`:
10149 + `Inlines` and `Blocks` are now newtypes (not synonyms for
10150 sequences).
10151 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
10152 and a new `Listable` class, which allows these to be manipulated
10153 to some extent like lists. Monoid append includes automatic
10154 normalization.
10155 + `+++` has been replaced by `<>` (mappend).
10157 * Use blaze-html instead of xhtml for HTML generation.
10158 This changes the type of `writeHtml`.
10160 * `Text.Pandoc.Shared`:
10162 + Added `warn` and `err`.
10163 + Removed `unescapeURI`, modified `escapeURI`.
10164 (See under [behavior changes], above.)
10166 * Changes in URI escaping: Previously the readers escaped URIs by
10167 converting unicode characters to octets and then percent encoding.
10168 Now unicode characters are left as they are, and `escapeURI` only
10169 percent-encodes space characters. This gives more readable
10170 URIs, and works well with modern user agents. URIs are no longer unescaped
10171 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
10173 * New module `Text.Pandoc.SelfContained`.
10175 * New module `Text.Pandoc.Docx`.
10177 * New module `Text.Pandoc.PDF`.
10179 * Added `writerBeamer` to `WriterOptions`.
10181 * Added `normalizeDate` to `Text.Pandoc.Shared`.
10183 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
10184 This is like `splitWithIndices`, but it is sensitive to distinctions
10185 between wide, combining, and regular characters.
10187 * `Text.Pandoc.Pretty`:
10189 + Added `chomp` combinator.
10190 + Added `beforeNonBreak` combinator. This allows you to include
10191 something conditionally on it being before a nonblank.
10192 Used for RST inline math.
10193 + Added `charWidth` function. All characters marked W or F in the unicode
10194 spec EastAsianWidth.txt get width 2.
10195 + Added `realLength`, based on `charWidth`. `realLength` is now
10196 used in calculating offsets.
10198 * New module `Text.Pandoc.Slides`, for common functions for breaking
10199 a document into slides.
10201 * Removed `Text.Pandoc.S5`, which is no longer needed.
10203 * Removed `Text.Pandoc.CharacterReferences`. Moved
10204 `characterReference` to `Text.Pandoc.Parsing`.
10205 `decodeCharacterReferences` is replaced by `fromEntities`
10206 in `Text.Pandoc.XML`.
10208 * Added `Text.Pandoc.ImageSize`. This is intened for use
10209 in `docx` and `odt` writers, so the size and dpi of images
10210 can be calculated.
10212 * Removed `writerAscii` in `WriterOptions`.
10214 * Added `writerHighlight` to `WriterOptions`.
10216 * Added `DZSlides` to `HTMLSlideVariant`.
10218 * `writeEPUB` has a new argument for font files to embed.
10220 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
10221 of whether we're parsing the position immediately after a regular
10222 (non-space, non-symbol) string, which is useful for distinguishing
10223 apostrophes from single quote starts.
10225 * `Text.Pandoc.Parsing`:
10227 + `escaped` now returns a `Char`.
10228 + Removed `charsInBalanced'`, added a character parser as
10229 a parameter of `charsInBalanced`. This is needed for
10230 proper handling of escapes, etc.
10231 + Added `withRaw`.
10233 * Added `toEntities` to `Text.Pandoc.XML`.
10235 * `Text.Pandoc.Readers.LaTeX`:
10237 + Export `handleIncludes`.
10238 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
10240 * Added `ToJsonFilter` class and `toJsonFilter` function to
10241 `Text.Pandoc`, deprecating the old `jsonFilter` function.
10243 * `Text.Pandoc.Highlighting`:
10245 + Removed `highlightHtml`, `defaultHighlightingCss`.
10246 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
10247 key functions from highlighting-kate.
10248 + Changed types of highlighting function. `highlight` returns a
10249 `Maybe`, not an `Either`.
10251pandoc (1.8.2.1)
10253 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
10255 * Relaxed cabal constraints for pandoc-types.
10257 * Adjusted Arbitrary instance to help avoid timeouts in tests.
10259 * Added `Tests.Writers.Markdown` to cabal file.
10261pandoc (1.8.2)
10263 * Added script to produce OS X package.
10265 * Made `templates` directory a git submodule. This should make it
10266 easier for people to revise their custom templates when the default
10267 templates change.
10269 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
10270 **Note:** If you have existing templates in `~/.pandoc/templates`, you
10271 must rename them to conform to the new scheme!
10273 * Fixed smart quotes bug, now handling `'...hi'` properly.
10275 * RST reader:
10277 + Partial support for labeled footnotes.
10278 + Improved accuracy of `simpleReferenceName` parser.
10280 * HTML reader:
10282 + Substitute correct unicode characters for
10283 characters in the 128..159 range, which are often found even in
10284 HTML that purports to be UTF-8.
10286 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
10287 to the title, after a colon and linebreak). Closes #280.
10289 * Leaner `reference.odt`.
10291 * Added unexported module `Text.Pandoc.MIME` for use in
10292 the ODT writer.
10294 * ODT writer: Construct `manifest.xml` based on archive contents.
10295 This fixes a bug in ODTs containing images. Recent versions of
10296 LibreOffice would reject these as corrupt, because `manifest.xml`
10297 did not contain a reference to the image files.
10299 * LaTeX writer:
10301 + Make verbatim environments flush to avoid spurious
10302 blank lines. Closes #277.
10303 + Use `\texttt` and escapes insntead of `\verb!...!`, which
10304 is too fragile (doesn't work in command arguments).
10305 + Use `\enquote{}` for quotes if the template includes
10306 the `csquotes` package. This provides better support for
10307 local quoting styles. (Thanks to Andreas Wagner for the idea.)
10309 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
10310 margin, preventing spurious blank lines.
10312 * Slidy writer:
10314 + Use non-minimized version of `slidy.css` with `--offline`
10315 option, so users can more easily edit it.
10316 + Also fixed a bug in the CSS that prevented proper centering
10317 of title (now reported and fixed upstream).
10319 * S5 writer:
10321 + Replaced `s5/default/slides.js.{comment,packed}` with
10322 new compressed `s5/default/slides.min.js`.
10323 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
10324 when `--offline` is specified. Using inline CSS didn't
10325 work with Chrome or Safari. This fixes offline
10326 S5 on those browsers.
10328 * HTML writer: Removed English title on footnote backlinks.
10329 This is incongrous in non-English documents.
10331 * Docbook writer:
10333 + Use CALS tables. (Some older docbook software does not work
10334 well with XHTML tables.) Closes #77.
10335 + Use `programlisting` tags (instead of `screen`) for code blocks.
10337 * `markdown2pdf`:
10339 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
10340 of `-interaction=batchmode`, which essentially just ignored errors,
10341 leading to bad results. Better to know when something is wrong.
10342 + Fixed issues with non-UTF-8 output of `pdflatex`.
10343 + Better error reporting.
10345 * `--mathjax` now takes an optional URL argument. If it is not
10346 provided, pandoc links directly to the (secure) mathjax CDN,
10347 as now recommended (thanks to dsanson).
10349 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
10350 since the LaTeX writer now produces a file that can be processed by
10351 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
10353 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
10354 to be used to create the PDF.
10356 * If a template specified with `--template` is not found, look for it
10357 in `datadir`. Also, if no extension is provided, supply one based
10358 on the writer. So now you can put your `special.latex` template in
10359 `~/.pandoc/templates`, and use it from any directory via
10360 `pandoc -t latex --template special`.
10362 * Default template improvements:
10364 + HTML: Display author and date after title.
10365 + HTML: Made table of contents more customizable. The container
10366 for the TOC is now in the template, so users can insert a header
10367 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
10368 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
10369 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
10370 hard-coding. If you want to put your slidy files in the slidy
10371 subdirectory, for example, you can do
10372 `pandoc -t slidy -V slidy-url=slidy -s`.
10373 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
10374 & writer). Closes #279.
10375 + LaTeX: Use different `hyperref` options for `xetex`, fixing
10376 problems with unicode bookmarks (thanks to CircleCode).
10377 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
10378 with `inputenc`. This covers fewer characters but is more
10379 robust with other packages, and `ucs` is unmaintained. Users
10380 who need better unicode support should use xelatex or lualatex.
10382pandoc (1.8.1.2)
10384 * Added `--epub-cover-image` option.
10386 * Documented `--biblatex` and `--natbib` options.
10388 * Allow `--section-divs` with slidy output. Resolves Issue #296.
10390 * Disallow notes within notes in reST and markdown.
10391 These previously caused infinite looping and stack overflows.
10392 For example:
10394 [^1]
10396 [^1]: See [^1]
10398 Note references are allowed in reST notes, so this isn't a full
10399 implementation of reST. That can come later. For now we need to
10400 prevent the stack overflows. Partially resolves Issue #297.
10402 * EPUB writer: Allow non-plain math methods.
10404 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
10405 `(@item1; @item2)` because the final paren was being parsed as part of
10406 the item key.
10408 * Changed URI parser so it doesn't include trailing punctuation.
10409 So, in RST, `http://google.com.` should be parsed as a link followed by a
10410 period. The parser is smart enough to recognize balanced parentheses, as
10411 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
10413 * Markdown+lhs reader: Require space after inverse bird tracks, so that
10414 HTML tags can be used freely at the left margin of a markdown+lhs document.
10415 Thanks to Conal Elliot for the suggestion.
10417 * Markdown reader:
10419 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
10420 + Fixed bug in footnote order (reported by CircleCode).
10422 * RST reader:
10423 + Fixed bug in in field lists with multi-line items at the
10424 end of the list.
10425 + Added parentheses to RST `specialChars`, so
10426 `(http://google.com)` will be parsed as a link in parens.
10427 Resolves Issue #291.
10428 + Allow `|` followed by newline in RST line block.
10430 * LaTeX reader:
10431 + Support `\dots`.
10432 + Gobble option & space after linebreak `\\[10pt]`.
10434 * Textile reader:
10435 + Make it possible to have colons after links. (qerub)
10436 + Make it possible to have colons after links. (Christoffer Sawicki)
10438 * HTML reader:
10439 + Skip spaces after `<b>`, `<emph>`, etc.
10440 + Handle tbody, thead in simple tables. Closes #274.
10441 + Implicit `Para`s instead of `Plains` in some contexts.
10443 * OpenDocument writer: Use special `First paragraph` style for
10444 first paragraph after most non-paragraph blocks. This allows users to
10445 specify e.g. that only paragraphs after the first paragraph of a block are
10446 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
10448 * LaTeX writer: use `deVerb` on table and picture captions.
10449 Otherwise LaTeX complains about `\verb` inside command argument.
10450 Thanks to bbanier for reporting the bug.
10452 * Markdown writer: Insert HTML comment btw list and indented code block.
10453 This prevents the code block from being interpreted as part of the list.
10455 * EPUB writer: Add a meta element specify the cover.
10456 Some EPUB e-readers, such as the Nook, require a meta element inside the
10457 OPF metadata block to ensure the cover image is properly displayed.
10458 (Kelsey Hightower)
10460 * HTML writer: Use embed tag for images with non-image extensions.
10461 (e.g. PDFs). Closes #264.
10463 * LaTeX writer: Improved tables.
10465 + More space between lines, top-align cells.
10466 + Use ctable package, which allows footnotes and
10467 provides additional options.
10468 + Made cell alignments work in multiline tables.
10469 + Closes #271, #272.
10471 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
10472 Also do this when copying image files into EPUBs and ODTs.
10473 Closes #263.
10475 * Changed to github issue tracker.
10477 * Added failing emph/strong markdown test case due to Perry Wagle.
10479 * Slidy improvements:
10480 + Updated to use Slidy2.
10481 + Fixed bug, unclosed div tag.
10482 + Added `duration` variable in template.
10483 Setting this activates the timer.
10484 + Use 'titlepage' instead of 'cover' for title div.
10486pandoc (1.8.1.1)
10488 * `markdown2pdf`: Removed some debugging lines accidentally included
10489 in the 1.8.1 release. With those lines, the temp directory is created
10490 in the working directory, and it is not deleted. This fix restores
10491 the original behavior.
10493pandoc (1.8.1)
10495 * Added `--ascii` option. Currently supported only in HTML writer,
10496 which it causes to use numerical entities instead of UTF-8.
10498 * EPUB writer: `--toc` now works to provide a table of contents
10499 at the beginning of each chapter.
10501 * LaTeX writer: Change figure defaults to `htbp`.
10502 This prevents "too many unprocessed floats." Resolves
10503 Issue #285.
10505 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
10506 base.
10508 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
10509 Tanimoto. Resolves Issue #286.
10511 * HTML writer: Put line breaks in section divs.
10513 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
10515pandoc (1.8.0.3)
10517 * Fixed Source-repository stanza in cabal file.
10519pandoc (1.8.0.2)
10521 * HTML writer:
10523 + Stringify alt text instead of converting to HTML.
10524 + Break lines after block elements, not inside tags.
10525 HTML output now closely resembles that of tidy. Resolves Issue #134.
10527 * Markdown reader: Fixed bug in footnote block parser (pointed out
10528 by Jesse Rosenthal). The problem arose when the blank line
10529 at the end of a footnote block contained indenting spaces.
10531 * Shared: Improved 'normalize' function so it normalizes Spaces too.
10532 In normal form, Space elements only occur to separate two non-Space
10533 elements. So, we never have [Space], or [, ..., Space].
10535 * Tests:
10537 + Improved Arbitrary instance.
10538 + Added timeout for test instances.
10540 * README:
10542 + Added section on four-space rule for lists. Resolves Issue #283.
10543 + Clarified optional arguments on math options.
10545 * markdown2pdf: Fixed bug with output file extensions.
10546 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
10547 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
10549pandoc (1.8.0.1)
10551 * Revised Interact.hs so that it works with the CPP macros
10552 in the UTF8 module.
10554 * Revised Setup.hs so that we don't call MakeManPage.hs unless
10555 the man pages are out of date.
10557pandoc (1.8)
10559 [new features]
10561 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
10562 You can now write, for example,
10564 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
10566 and, when you process your document using `pandoc`, specifying
10567 a citation style using `--csl` and a bibliography using `--bibliography`,
10568 the citation will be replaced by an appropriately formatted
10569 citation, and a list of works cited will be added to the end
10570 of the document.
10572 This means that you can switch effortlessly between different citation
10573 and bibliography styles, including footnote, numerical, and author-date
10574 formats. The bibliography can be in any of the following formats: MODS,
10575 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
10576 See the README for further details.
10578 Citations are supported in the markdown reader, using a special
10579 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
10580 (Thanks to Nathan Gass for the natbib and biblatex support.)
10582 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
10583 the `textile` reader, an almost complete implementation of the textile
10584 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
10585 Resolves Issue #51.
10587 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
10589 * New `json` reader and writer, for reading and writing a JSON
10590 representation of the native Pandoc AST. These are much faster
10591 than the `native` reader and writer, and should be used for
10592 serializing Pandoc to text. To convert between the JSON representation
10593 and native Pandoc, use `encodeJSON` and `decodeJSON` from
10594 `Text.JSON.Generic`.
10596 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
10597 to write scripts that transform a JSON-encoded pandoc document.
10598 For example:
10600 -- removelinks.hs - removes links from document
10601 import Text.Pandoc
10602 main = interact $ jsonFilter $ bottomUp removeLink
10603 where removeLink (Link xs _) = Emph xs
10604 removeLink x = x
10606 To use this to remove links while translating markdown to LaTeX:
10608 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
10610 * Attributes are now allowed in inline `Code` elements, for example:
10612 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
10614 The attribute syntax is the same as for delimited code blocks.
10615 `Code` inline has an extra argument place for attributes, just like
10616 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
10617 is compiled with highlighting support. Resolves Issue #119.
10619 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
10620 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
10621 scripts to transform Pandoc documents. Scripts can now change
10622 how each element is rendered in each output format.
10624 * You can now define LaTeX macros in markdown documents, and pandoc
10625 will apply them to TeX math. For example,
10627 \newcommand{\plus}[2]{#1 + #2}
10628 $\plus{3}{4}$
10630 yields `3+4`. Since the macros are applied in the reader, they
10631 will work in every output format, not just LaTeX.
10633 * LaTeX macros can also be used in LaTeX documents (both in math
10634 and in non-math contexts).
10636 * A new `--mathjax` option has been added for displaying
10637 math in HTML using MathJax. Resolves issue #259.
10639 * Footnotes are now supported in the RST reader. (Note, however,
10640 that unlike docutils, pandoc ignores the numeral or symbol used in
10641 the note; footnotes are put in an auto-numbered ordered list.)
10642 Resolves Issue #258.
10644 * A new `--normalize` option causes pandoc to normalize the AST
10645 before writing the document. This means that, for example,
10646 `*hi**there*` will be rendered as `<em>hithere</em>`
10647 instead of `<em>hi</em><em>there</em>`. This is not the default,
10648 because there is a significant performance penalty.
10650 * A new `--chapters` command-line option causes headers
10651 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
10652 Resolves Issue #265.
10654 * In DocBook output, `<chapter>` is now used for top-level
10655 headers if the template contains `<book>`. Resolves Issue #265.
10657 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
10658 the LaTeX writer to use the listings package for code blocks.
10659 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
10660 Millon for the markdown2pdf patch.)
10662 * `markdown2pdf` now supports `--data-dir`.
10664 * URLs in autolinks now have class "url" so they can be styled.
10666 * Improved prettyprinting in most formats. Lines will be wrapped
10667 more evenly and duplicate blank lines avoided.
10669 * New `--columns` command-line option sets the column width for
10670 line wrapping and relative width calculations for tables.
10672 * Made `--smart` work in HTML, RST, and Textile readers, as well
10673 as markdown.
10675 * Added `--html5` option for HTML5 output.
10677 * Added support for listings package in LaTeX reader
10678 (Puneeth Chaganti).
10680 * Added support for simple tables in the LaTeX reader.
10682 * Added support for simple tables in the HTML reader.
10684 * Significant performance improvements in many readers and writers.
10686 [API and program changes]
10688 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
10689 auxiliary package, `pandoc-types`. This will make it possible for other
10690 programs to supply output in Pandoc format, without depending on the whole
10691 pandoc package.
10693 * Added `Attr` field to `Code`.
10695 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
10696 `RawBlock` and `RawInline`.
10698 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
10699 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
10700 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
10702 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
10704 * `Text.Pandoc` now exports association lists `readers` and `writers`.
10706 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
10707 `readNative` can now read full pandoc documents, block lists, blocks,
10708 inline lists, or inlines. It will interpret `Str "hi"`
10709 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
10710 This should make testing easier.
10712 * Removed deprecated `-C/--custom-header` option.
10713 Use `--template` instead.
10715 * `--biblio-file` has been replaced by `--bibliography`.
10716 `--biblio-format` has been removed; pandoc now guesses the format
10717 from the file extension (see README).
10719 * pandoc will treat an argument as a URI only if it has an
10720 `http(s)` scheme. Previously pandoc would treat some
10721 Windows pathnames beginning with `C:/` as URIs.
10723 * The `--sanitize-html` option and the `stateSanitize` field in
10724 `ParserState` have been removed. Sanitization is better done in the
10725 resulting HTML using `xss-sanitize`, which is based on pandoc's
10726 sanitization, but improved.
10728 * pandoc now adds a newline to the end of its output in fragment
10729 mode (= not `--standalone`).
10731 * Added support for `lang` in `html` tag in the HTML template,
10732 so you can do `pandoc -s -V lang=es`, for example.
10734 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
10735 a boolean argument that selects between "inline" and
10736 "block" HTML.
10738 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
10739 Images are embedded in RTF output when possible (png, jpeg).
10740 Resolves Issue #275.
10742 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
10743 `pretty` package. Changed all writers that used
10744 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
10746 * Rewrote `writeNative` using the new prettyprinting module. It is
10747 now much faster. The output has been made more consistent and compressed.
10748 `writeNative` is also now sensitive to writerStandalone`, and will simply
10749 `print a block list if writerStandalone` is False.
10751 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
10752 blocks and concatenate them, so a separate module is no longer needed.
10754 * `Text.Pandoc.Shared`:
10756 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
10757 `WriterOptions`.
10758 + Added `normalize`.
10759 + Removed unneeded prettyprinting functions:
10760 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
10761 `BlockWrapper`, `wrappedBlocksToDoc`.
10762 + Made `splitBy` take a test instead of an element.
10763 + Added `findDataFile`, refactored `readDataFile`.
10764 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
10765 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
10767 * `Text.Pandoc.Readers.HTML`:
10769 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
10770 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
10771 `htmlBlockElement`, `htmlComment`
10772 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
10773 `isTextTag`
10775 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
10776 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
10777 an inline parser.
10779 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
10781 * Ellipses are no longer allowed to contain spaces.
10782 Previously we allowed '. . .', ' . . . ', etc. This caused
10783 too many complications, and removed author's flexibility in
10784 combining ellipses with spaces and periods.
10786 * Allow linebreaks in URLs (treat as spaces). Also, a string of
10787 consecutive spaces or tabs is now parsed as a single space. If you have
10788 multiple spaces in your URL, use `%20%20`.
10790 * `Text.Pandoc.Parsing`:
10792 + Removed `refsMatch`.
10793 + Hid `Key` constructor.
10794 + Removed custom `Ord` and `Eq` instances for `Key`.
10795 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
10796 + Generalized type on `readWith`.
10798 * Small change in calculation of relative widths of table columns.
10799 If the size of the header > the specified column width, use
10800 the header size as 100% for purposes of calculating
10801 relative widths of columns.
10803 * Markdown writer now uses some pandoc-specific features when `--strict`
10804 is not specified: `\` newline is used for a hard linebreak instead of
10805 two spaces then a newline. And delimited code blocks are used when
10806 there are attributes.
10808 * HTML writer: improved gladTeX output by setting ENV appropriately
10809 for display or inline math (Jonathan Daugherty).
10811 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
10813 * LaTeX reader:
10815 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
10816 + `\index{}` commands are skipped.
10818 * Added `fontsize` variable to default LaTeX template.
10819 This makes it easy to set the font size using `markdown2pdf`:
10820 `markdown2pdf -V fontsize=12pt input.txt`.
10822 * Fixed problem with strikeout in LaTeX headers when using
10823 hyperref, by adding a command to the default LaTeX template
10824 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
10825 for the fix.
10827 * The `COLUMNS` environment variable no longer has any effect.
10829 [under-the-hood improvements]
10831 * Pandoc now compiles with GHC 7. (This alone leads to a
10832 significant performance improvement, 15-20%.)
10834 * Completely rewrote HTML reader using tagsoup as a lexer. The
10835 new reader is faster and more accurate. Unlike the
10836 old reader, it does not get bogged down on some input
10837 (Issues #277, 255). And it handles namespaces in tags
10838 (Issue #274).
10840 * Replaced `escapeStringAsXML` with a faster version.
10842 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
10843 for a significant performance boost.
10845 * Improved performance of all readers by rewriting parsers.
10847 * Simplified Text.Pandoc.CharacterReferences by using
10848 entity lookup functions from TagSoup.
10850 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
10851 from `System.IO` if base >= 4.2. This gives support for
10852 windows line endings on windows.
10854 * Remove duplications in documentation by generating the
10855 pandoc man page from README, using `MakeManPage.hs`.
10857 * README now includes a full description of markdown syntax,
10858 including non-pandoc-specific parts. A new `pandoc_markdown`
10859 man page is extracted from this, so you can look up markdown
10860 syntax by doing `man pandoc_markdown`.
10862 * Completely revised test framework (with help from Nathan Gass).
10863 The new test framework is built when the `tests` Cabal flag is set. It
10864 includes the old integration tests, but also some new unit and quickcheck
10865 tests. Test output has been much improved, and you can now specify a glob
10866 pattern after `cabal test` to indicate which tests should be run;
10867 for example `cabal test citations` will run all the citation tests.
10869 * Added a shell script, `stripansi.sh`, for filtering ANSI control
10870 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
10872 * Added `Interact.hs` to make it easier to use ghci while developing.
10873 `Interact.hs` loads `ghci` from the `src` directory, specifying
10874 all the options needed to load pandoc modules (including
10875 specific package dependencies, which it gets by parsing
10876 dist/setup-config).
10878 * Added `Benchmark.hs`, testing all readers + writers using criterion.
10880 * Added `stats.sh`, to make it easier to collect and archive
10881 benchmark and lines-of-code stats.
10883 * Added upper bounds to all cabal dependencies.
10885 * Include man pages in extra-source-files. This allows users to
10886 install pandoc from the tarball without needing to build the man
10887 pages.
10889 [bug fixes]
10891 * Filenames are encoded as UTF8. Resolves Issue #252.
10893 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
10894 were just parsed literally, leading to problems in some output formats.
10895 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
10896 Resolves Issue #270.
10898 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
10899 Spaces at end of line were not being stripped properly,
10900 resulting in unintended LineBreaks.
10902 * Markdown reader:
10904 + Allow HTML comments as inline elements in markdown.
10905 So, `aaa <!-- comment --> bbb` can be a single paragraph.
10906 + Fixed superscripts with links: `^[link](/foo)^` gets
10907 recognized as a superscripted link, not an inline note followed by
10908 garbage.
10909 + Fixed regression, making markdown reference keys case-insensitive again.
10910 Resolves Issue #272.
10911 + Properly handle abbreviations (like `Mr.`) at the end of a line.
10912 + Better handling of intraword underscores, avoiding exponential
10913 slowdowns in some cases. Resolves Issue #182.
10914 + Fixed bug in alignments in tables with blank rows in the header.
10916 * RST reader:
10918 + Field lists now allow spaces in field names, and
10919 block content in field values. (Thanks to Lachlan Musicman
10920 for pointing out the bug.)
10921 + Definition list items are now always `Para` instead of
10922 `Plain`, matching behavior of `rst2xml.py`.
10923 + In image blocks, the description is parsed properly and
10924 used for the alt attribute, not also the title.
10925 + Skip blank lines at beginning of file. Resolves
10926 Debian #611328.
10928 * LaTeX reader:
10930 + Improved parsing of preamble.
10931 Previously you'd get unexpected behavior on a document that
10932 contained `\begin{document}` in, say, a verbatim block.
10933 + Allow spaces between `\begin` or `\end` and `{`.
10934 + Support `\L` and `\l`.
10935 + Skip comments inside paragraphs.
10937 * LaTeX writer:
10939 + Escape strings in `\href{..}`.
10940 + In nonsimple tables, put cells in `\parbox`.
10942 * OpenDocument writer: don't print raw TeX.
10944 * Markdown writer:
10946 + Fixed bug in `Image`. URI was getting unescaped twice!
10947 + Avoid printing extra blank lines at the end if there are
10948 no notes or references.
10950 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
10951 This avoids unwanted interpretation as an optional argument.
10953 * ConTeXt writer: Fixed problem with inline code. Previously
10954 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
10955 If it contains neither, use `\type{}`; otherwise use `\mono{}`
10956 with an escaped version of the string.
10958 * `:` now allowed in HTML tags. Resolves Issue #274.
10960pandoc (1.6)
10962 [ John MacFarlane ]
10964 * New EPUB and HTML Slidy writers. (Issue #122)
10966 - EPUB is a standard ebook format, used in Apple's iBooks for
10967 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
10968 reader, and many other devices.
10969 - Slidy, like S5, is a system for producing HTML+javascript slide
10970 shows.
10972 * All input is assumed to be UTF-8, no matter what the locale and ghc
10973 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
10974 Also, a BOM, if present, is stripped from the input.
10976 * Markdown now supports grid tables, whose cells can contain
10977 arbitrary block elements. (Issue #43)
10979 * Sequentially numbered example lists in markdown with `@` marker.
10981 * Markdown table captions can begin with a bare colon and no longer need
10982 to include the English word "table." Also, a caption can now occur
10983 either before or after the table. (Issue #227)
10985 * New command-line options:
10987 - `--epub-stylesheet` allows you to specify a CSS file that will
10988 be used to style your ebook.
10989 - `--epub-metadata` allows you to specify metadata for the ebook.
10990 - `--offline` causes the generated HTML slideshow to include all
10991 needed scripts and stylesheets.
10992 - `--webtex` causes TeX math to be converted to images using the
10993 Google Charts API (unless a different URL is specified).
10994 - `--section-divs` causes div tags to be added around each section
10995 in an HTML document. (Issue #230, 239)
10997 * Default behavior of S5 writer in standalone mode has changed:
10998 previously, it would include all needed scripts and stylesheets
10999 in the generated HTML; now, only links are included unless
11000 the `--offline` option is used.
11002 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
11003 pandoc would enclose sections in div tags with identifiers on the
11004 div tags, so that the sections can be manipulated in javascript.
11005 This caused undesirable interactions with raw HTML div tags. So,
11006 starting with 1.6, the default is to put the identifiers directly
11007 on the header tags, and not to include the divs. The `--section-divs`
11008 option selects the 1.2-1.5 behavior.
11010 * API changes:
11012 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
11013 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
11014 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
11015 `writerIncludeAfter`.
11016 - Added `headerShift` to `Text.Pandoc.Shared`.
11017 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
11018 to a new module, `Text.Pandoc.Parsing`.
11019 - Added `stateHasChapters` to `ParserState`.
11020 - Added `HTMLSlideVariant`.
11021 - Made `KeyTable` a map instead of an association list.
11022 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
11023 `docDate`).
11024 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
11025 instances.
11026 - Reference keys now have a type of their own (`Key`), with its
11027 own `Ord` instance for case-insensitive comparison.
11028 - Added `Text.Pandoc.Writers.EPUB`.
11029 - Added `Text.Pandoc.UUID`.
11030 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
11031 Removed `saveOpenDocumentAsODT`, added `writeODT`.
11032 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
11033 Removed `prettyPandoc`.
11034 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
11035 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
11036 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
11037 To write S5, you now use `writeHtml` with `writerSlideVariant`
11038 set to `S5Slides` or `SlidySlides`.
11040 * Template changes. If you use custom templates, please update them,
11041 particularly if you use syntax highlighting with pandoc. The old HTML
11042 templates hardcoded highlighting CSS that will no longer work with
11043 the most recent version of highlighting-kate.
11045 - HTML template: avoid empty meta tag if no date.
11046 - HTML template: Use default highlighting CSS from highlighting-kate
11047 instead of hard-coding the CSS into the template.
11048 - HTML template: insert-before text goes before the title, and
11049 immediately after the <body> tag, as documented. (Issue #241)
11050 - Added slidy and s5 templates.
11051 - Added amssymb to preamble of latex template. (github Issue 1)
11053 * Removed excess newlines at the end of output. Note: because output
11054 will not contain an extra newline, you may need to make adjustments
11055 if you are inserting pandoc's output into a template.
11057 * In S5 and slidy, horizontal rules now cause a new slide, so you
11058 are no longer limited to one slide per section.
11060 * Improved handling of code in man writer. Inline code is now monospace,
11061 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
11063 * HTML reader parses `<tt>` as Code. (Issue #247)
11065 * html+lhs output now contains bird tracks, even when compiled without
11066 highlighting support. (Issue #242)
11068 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
11069 since they have a special meaning in XML.
11071 * Code improvements in ODT writer. Remote images are now replaced with
11072 their alt text rather than a broken link.
11074 * LaTeX reader improvements:
11076 - Made latex `\section`, `\chapter` parsers more forgiving of
11077 whitespace.
11078 - Parse `\chapter{}` in latex.
11079 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
11080 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
11081 for use in markdown reader.
11082 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
11083 in markdown document.
11085 * LaTeX writer: images are automatically shrunk if they would extend
11086 beyond the page margin.
11088 * Plain, markdown, RST writers now use unicode for smart punctuation.
11090 * Man writer converts math to unicode when possible, as in other writers.
11092 * `markdown2pdf` can now recognize citeproc options.
11094 * Command-line arguments are converted to UTF-8. (Issue #234)
11096 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
11097 This allows it to handle a wider range of formulas. Also, if a formula
11098 cannot be converted, it is left in raw TeX; formulas are no longer
11099 partially converted.
11101 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
11102 #143)
11104 * Cabal file changes:
11106 - Removed parsec < 3 restriction.
11107 - Added 'threaded' flag for architectures where GHC lacks a threaded
11108 runtime.
11109 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
11110 - Require highlighting-kate 0.2.7.
11112 * Use explicit imports from `Data.Generics`. Otherwise we have a
11113 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
11115 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
11117pandoc (1.5.1.1)
11119 [ John MacFarlane ]
11121 * Fixed uniqueIdent in Shared so that header identifiers work as
11122 advertized in the README and are are valid XHTML names.
11124pandoc (1.5.1)
11126 [ John MacFarlane ]
11128 * Fixed treatment of unicode characters in URIs.
11129 + Shared now exports escapeURI and unescapeURI. These handle
11130 UTF8 encoding and decoding as well as URI escaping/unescaping.
11131 + Shared: uri and emailAddress now return a pair of the original
11132 parsed text and the escaped URI (in the latter case, with
11133 the mailto: prefix).
11134 + HTML reader: unsanitaryURI has been modified to allow unicode
11135 high characters in a URI.
11136 + Readers: All link and image URIs are now escaped using
11137 escapeURI.
11138 + Markdown and RST writers: unescapeURI is used so that URIs
11139 in these formats are human-readable.
11141 * Setup.hs: Don't assume that the build directory is "dist".
11142 Instead, get it from localBuildInfo.
11144 * OpenDocument writer: Use a Map for stTextStyleAttr.
11145 This avoids duplicates (and invalid xml). Resolves Issue #222.
11147pandoc (1.5.0.1)
11149 [ John MacFarlane ]
11151 * HTML writer: Fixed error in math writer (with MathML option)
11152 that caused an infinite loop for unparsable MathML.
11154pandoc (1.5)
11156 [ John MacFarlane ]
11158 * Added --mathml option. When this is selected, pandoc will convert
11159 TeX math into MathML.
11160 + Added data/MathMLinHTML.js, which is included when no URL is
11161 provided for --mathml. This allows MathML to be displayed (in
11162 better browsers) as text/html.
11163 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
11164 necessary; it was replaced by two lines in pandoc.hs.
11165 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
11166 single combined file, LaTeXMathML.js.
11168 * Added --data-dir option.
11169 This specifies a user data directory. If not specified, will default
11170 to ~/.pandoc on unix or Application Data\pandoc on Windows.
11171 Files placed in the user data directory will override system default
11172 data files.
11174 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
11175 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
11176 Nothing, no user directory is searched for an override.
11178 * Added 'plain' output format. This is similar to markdown, but
11179 removes links, pictures, inline formatting, and most anything that
11180 looks even vaguely markupish. The function writePlain is exported by
11181 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
11183 * Allow multi-line titles and authors in meta block.
11184 Titles may span multiple lines, provided continuation lines
11185 begin with a space character. Separate authors may be put on
11186 multiple lines, provided each line after the first begins with
11187 a space character. Each author must fit on one line. Multiple
11188 authors on a single line may still be separated by a semicolon.
11189 Based on a patch by Justin Bogner.
11191 * When given an absolute URI as parameter, pandoc will try to fetch
11192 the content via HTTP. So you can do:
11193 'pandoc -r html -w markdown http://www.fsf.org'
11194 Adds dependency on HTTP.
11196 * Made HTML reader much more forgiving.
11197 + Incorporated idea (from HXT) that an element can be closed
11198 by an open tag for another element.
11199 + Javascript is partially parsed to make sure that a <script>
11200 section is not closed by a </script> in a comment or string.
11201 + More lenient non-quoted attribute values.
11202 Now we accept anything but a space character, quote, or <>.
11203 This helps in parsing e.g. www.google.com!
11204 + Bare & signs are now parsed as a string. This is a common
11205 HTML mistake.
11206 + Skip a bare < in malformed HTML.
11208 * Removed html2markdown and hsmarkdown.
11209 + html2markdown is no longer needed, since you can now pass URI
11210 arguments to pandoc and directly convert web pages. (Note,
11211 however, that pandoc assumes the pages are UTF8. html2markdown
11212 made an attempt to guess the encoding and convert them.)
11213 + hsmarkdown is pointless -- a large executable that could be
11214 replaced by 'pandoc --strict'.
11216 * In most writers, an image in a paragraph by itself is now rendered
11217 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
11218 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
11219 rendered inline.
11221 * Depend on extensible-exceptions. This allows pandoc to be compiled
11222 on GHC 6.8.
11224 * Added --base-header-level option. For example, --base-header-level=2
11225 will change level 1 headers to level 2, level 2 to level 3, etc.
11226 Closes Debian #563416.
11228 * Incomplete support for RST tables (simple and grid).
11229 Thanks to Eric Kow. Colspans and rowspans not yet supported.
11231 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
11233 * MediaWiki writer: format links with relative URLs as wikilinks.
11234 The new rule: If the link target is an absolute URL, an external
11235 link is created. Otherwise, a wikilink is created.
11237 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
11238 identifier. Note: This may break links to sections that involve
11239 tildes.
11241 * Markdown(+lhs) reader: handle "inverse bird tracks."
11242 Inverse bird tracks (<) are used for haskell example code that is not
11243 part of the literate Haskell program. Resolves Issue #211.
11245 * LaTeX reader:
11246 + Recognize '\ ' (interword space).
11247 + Recognize nonbreaking space '~'.
11248 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
11249 section headers. Don't treat \section as inline LaTeX.
11250 Resolves Issue #202.
11251 + LaTeX reader: allow any special character to be escaped.
11252 Resolves Issue #221.
11253 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
11254 headers. Resolves Issue #207.
11256 * Use template variables for include-before/after.
11257 + These options now imply -s; previously they worked also in fragment
11258 mode.
11259 + Users can now adjust position of include-before and include-after
11260 text in the templates.
11261 + Default position of include-before moved back (as it was before 1.4)
11262 before table of contents.
11263 + Resolves Issue #217.
11265 * Don't print an empty table header: (all writers).
11266 Resolves Issue #210.
11268 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
11270 * HTML writer: Don't include TOC div if table of contents is empty.
11272 * Markdown writer: Fixed citations.
11273 Previously the markdown writer printed raw citation codes, e.g.
11274 [geach1970], rather than the expanded citations provided by
11275 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
11276 This means that the document produced can be processed as a markdown
11277 document without citeproc. Thanks to dsanson for reporting, and
11278 Andrea Rossato for the patch.
11280 * Improved and simplified title block in context template.
11281 Previously it caused an error if there was no title.
11282 This method should also be easier for users to customize.
11284 * Markdown reader:
11285 + Treat p., pp., sec., ch., as abbreviations in smart mode.
11286 + Disallow blank lines in inline code span.
11287 + Allow footnotes to be indented < 4 spaces.
11288 This fixes a regression. A test case has been added.
11289 + Escape spaces in URLs as %20. Previously they were incorrectly
11290 escaped as +, which is appropriate only for the query part of
11291 a URL. Resolves Issue #220.
11292 + Require two spaces after capital letter + period for list item.
11293 Otherwise "E. coli" starts a list. This might change the semantics
11294 of some existing documents, since previously the two-space
11295 requirement was only enforced when the second word started
11296 with a capital letter. But it is consistent with the existing
11297 documentation and follows the principle of least surprise.
11298 Resolves Issue #212.
11300 * LaTeX template: redefine labelwidth when using enumerate package.
11301 Otherwise the list labels (numbers) often extend past the left
11302 margin, which looks bad.
11304 * Mediawiki writer: Don't print a "== Notes ==" header before
11305 references. This is too English-centric. Writers can provide their
11306 own header at the end of the document.
11308 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
11309 level 2, etc. This seems to be correct; it's only by convention
11310 that wikipedia articles have level 2 headers at most.
11311 Patch due to Eric Kow.
11313 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
11314 data files don't need to have been installed. This removes the need to
11315 set HOME.
11317 * HTML reader:
11318 + Handle spaces before <html>. Resolves Issue #216.
11319 + Be forgiving in parsing a bare list within a list.
11320 The following is not valid xhtml, but the intent is clear:
11321 <ol>
11322 <li>one</li>
11323 <ol><li>sub</li></ol>
11324 <li>two</li>
11325 </ol>
11326 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
11328 * Updated INSTALL instructions. cabal method is now promoted.
11330 * Updated markdown2pdf man page. It no longer says all pandoc options
11331 are accepted.
11333 * README/man pages: Removed advice to pipe through tidy before HTML
11334 reader. This is obsolete, now that we have a forgiving HTML parser.
11336 * LaTeX writer: set numbersections template variable, so
11337 the section numbering options work again.
11339 * Removed obsolete Makefile.
11341 * Website: renamed index.txt.in -> index.txt.
11343 * New batch file to make-windows-installer.
11344 + Removed old Makefile.windows
11345 + Added make-windows-installer.bat
11346 + Modified default installer name in pandoc-setup.iss
11348 * Removed freebsd and macports directories.
11349 They are no longer up to date.
11351 * Setup.hs:
11352 + Made man page building sensitive to build verbosity.
11353 + Improved detection of highlighting support in test hook.
11354 + Install wrapper scripts into cabal bin directory.
11355 + Also simplified installManpages.
11356 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
11358 * Changed default of writerXeTeX to False.
11360 * HTML writer: don't include empty UL if --toc but no sections.
11361 Resolves Issue #199.
11363 * LaTeX writer:
11365 + If book, report, or memoir documentclass, use \chapter{}
11366 for first-level headers. Otherwise use \section{}.
11367 + Removed stLink, link template variable. Reason: we now always
11368 include hyperref in the template.
11370 * LaTeX template:
11372 + Only show \author if there are some.
11373 + Always include hyperref package. It is used not just for links but
11374 for toc, section heading bookmarks, footnotes, etc. Also added
11375 unicode=true on hyperref options.
11377 * markdown2pdf: always do at least two runs. hyperref bookmarks
11378 require this.
11380 * cabal file: Removed unneeded dependency on template-haskell.
11382 * Windows installer - fixed bug in data file locations.
11383 Resolves Issue #197.
11385 * Deprecated --custom-header in documentation.
11386 Removed old "Custom Headers" section in README.
11388pandoc (1.4)
11390 [ John MacFarlane ]
11392 * Pandoc will now compile with either GHC 6.10 or 6.12.
11393 + Don't use System.IO.UTF8 when compiling with 6.12
11394 + Use -fno-warn-unused-do-bind option when compiling with 6.12
11396 * Replaced old headers with templates. Now users have much more
11397 control over the way documents appear in --standalone mode,
11398 and writer code is simplified. Resolves Issues #59, 147.
11399 Every effort has been made to retain backwards compatibilty.
11400 So, the --custom-header option should still work as before.
11402 + Added Text.Pandoc.Templates. This provides functions for
11403 retrieving default templates and for rendering templates.
11404 + System templates (in the pandoc data directory) can be
11405 overridden by user templates in $HOME/.pandoc/templates.
11406 + Removed Text.Pandoc.DefaultHeaders.
11407 + Removed data/headers directory.
11408 + Added templates directory.
11409 + Added writerTemplate and writerVariables fields to WriterOptions.
11410 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
11411 + Changed --print-default-header to --print-default-template.
11412 + Added --template option.
11413 + Added -V/--variable option to set custom template variables.
11415 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
11417 + Removed need for TH in ODT module. Instead get reference.odt from
11418 data file at run time.
11419 + Removed TH dependency from S5 module. S5 module now exports
11420 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
11421 standalone.
11422 + Refactored LaTeXMathML not to use TH.
11424 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
11425 Meta [Inline] [String] String. Authors and date in Meta are now lists
11426 of Inline elements rather than raw strings. This means that they can
11427 be formatted and can include footnotes. NOTE: This may be a breaking
11428 change for those using pandoc as a library.
11430 * Added readDataFile to Text.Pandoc.Shared. This retrieves
11431 a data file from the user pandoc data directory (~/.pandoc
11432 on unix), or, if not found there, from the system data
11433 directory ($CABALDIR/shared/pandoc-VERSION/). All data
11434 files, including templates, LaTeXMathML.js, s5 styles,
11435 and reference.odt, can be overridden by the user.
11437 * s5 files moved from data/ui/default to s5/default.
11439 * Use unicode instead of entities in HTML and XML output. Resolves
11440 Issue #163.
11442 * Prettier HTML footnote references: put anchor inside sup,
11443 instead of other way. Resolves Issue #191. Thanks to
11444 infinity0x.
11446 * Added --xetex option to pandoc and markdown2pdf.
11447 If --xetex is specified, pandoc produces latex suitable for
11448 processing by xelatex, and markdown2pdf uses xelatex to create
11449 the PDF. Resolves Issue #185.
11451 * RTF writer: multiple authors now occupy multiple paragraphs rather
11452 than using a line break.
11454 * Man writer: now the "--after-body" will come after the "AUTHORS"
11455 section, whereas before it would come before it. This is a
11456 slight break from backwards compatibility.
11458 * Added --reference-odt option, so users may customize the styles
11459 used in pandoc-generated ODT files. Users may also place a
11460 default reference.odt in the ~\.pandoc directory.
11462 * ODT writer:
11463 + Indented and line-broke styles.xml so it can be modified more easily.
11464 + Omitted some unnecessary style declarations.
11465 + Don't wrap text in OpenDocument writer. The tags are too long, making
11466 wrapping ugly and pointless.
11468 * LaTeX reader: use \\ to separate multiple authors.
11470 * Markdown reader: use ; as separator between authors.
11471 This allows you to use ',' within author names: e.g. "John Jones, Jr."
11473 * S5 writer: use linebreak to separate authors in title page.
11475 * RST reader: Allow :: before lhs code block. The RST spec requires the
11476 :: before verbatim blocks. This :: should not be treated as literal
11477 colons. Resolves Issue #189.
11479 * Documented pandoc 1.3's new definition list syntax in README.
11480 (An oversight in the last release.)
11482 * markdown2pdf.hs:
11483 + interpret ! in a log as an error line.
11484 + --toc now works properly.
11486 * Changes in RunTests.hs:
11487 + Use the Diff library rather than a local copy of Diff.hs.
11488 (This vastly increases performance.) This change means that 'cabal
11489 test' presupposes that the Diff library is installed.
11490 + Removed tests/Diff.hs from cabal file.
11491 + Changed RunTests to use local environment. We need at least HOME, so
11492 pandoc can find its data directory.
11494 * Updated windows installer to install data files in the app directory.
11496 * Windows installer now installs portable wrappers hsmarkdown and
11497 markdown2pdf.
11499pandoc (1.3)
11501 [ John MacFarlane ]
11503 * Added --id-prefix option (Issue #41). This adds a prefix to all
11504 automatically generated HTML identifiers, which helps prevent
11505 duplicate identifiers when you're generating a fragment (say a blog
11506 post).
11508 * Added --indented-code-classes option. This specifies classes
11509 to use for indented code blocks. (Patch due to buttock; Issue #87.)
11511 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
11512 (Issue #150).
11514 * Improved syntax for markdown definition lists (Issue #24).
11515 Definition lists are now more compatible with PHP Markdown Extra.
11516 + You can have multiple definitions for a term (but still not
11517 multiple terms).
11518 + Multi-block definitions no longer need a column before each block
11519 (indeed, this will now cause multiple definitions).
11520 + The marker no longer needs to be flush with the left margin,
11521 but can be indented at or two spaces. Also, ~ as well as :
11522 can be used as the marker (this suggestion due to David
11523 Wheeler.)
11524 + There can now be a blank line between the term and the
11525 definitions.
11527 * Better looking simple tables. Resolves Issue #180.
11528 + Markdown reader: simple tables are now given column widths of 0.
11529 + Column width of 0 is interpreted as meaning: use default column width.
11530 + Writers now include explicit column width information only
11531 for multiline tables. (Exception: RTF writer, which requires
11532 column widths. In this case, columns are given equal widths,
11533 adding up to the text width.)
11534 + Simple tables should now look better in most output formats.
11536 * Allow markdown tables without headers (Issue #50).
11537 The new syntax is described in README. Also allow optional line of
11538 dashes at bottom of simple tables.
11540 * Compensate for width of final table column (Issue #144).
11542 * Treat a backslash followed by a newline as a hard line break
11543 in markdown. Resolves Issue #154. This is a nice alternative
11544 to markdown's "invisible" way of indicating hardline breaks
11545 using lines that end with two spaces.
11547 * Improved performance of markdown reader by ~10% by eliminating the
11548 need for a separate parsing pass for notes. Raw notes are now stored
11549 on the first pass (which parses references), then parsed when the
11550 note is inserted into the AST. The stateNotes field in ParserState
11551 is now a list of [(String, String)] pairs instead of [(String,
11552 [Block])].
11554 * In markdown reader, treat 4 or more * or _ in a row as literal
11555 text. (Trying to parse long strings of * or _ as strong or emph
11556 leads to exponential performance problems.)
11558 * Markdown reader: Use + rather than %20 for spaces in URLs.
11560 * Fixed htmlComment parser, adding a needed 'try'.
11562 * Don't print raw HTML in man output.
11564 * Allow . _ and ~ in header identifiers.
11566 * Specially mark code blocks that were "literate" in the input.
11567 They can then be treated differently in the writers. This allows
11568 authors to distinguish bits of the literate program they are writing
11569 from source code examples, even if the examples are marked as
11570 Haskell for highlighting. (Issue #174.)
11572 * Modified html+lhs output to use "haskell" highlighter instead
11573 of "literateHaskell". The highlighting module now adds bird tracks
11574 after highlighting (for HTML output), if the code block has the
11575 "literate" class. This gives better results, because kate's
11576 haskell highlighter is much better than the literateHaskell
11577 highlighter.
11579 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
11580 (Issue #137.)
11582 * Support for "..code-block" directive in RST reader. Not core
11583 RST, but used in Sphinx for code blocks annotated with syntax
11584 information. Thanks to Luke Plant for the patch.
11586 * Added "head" to list of block-level HTML tags. Resolves
11587 Issue #108.
11589 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
11591 * Set utf-8 encoding in texinfo headers.
11593 * Docbook writer: add ids to sections. Use link for internal links.
11594 (Issue #60.)
11596 * Blank lines after lists in MediaWiki writer.
11598 * Properly handle commented-out list items in markdown.
11599 Resolves Issue #142. Example:
11601 - a
11602 <!--
11603 - b
11604 -->
11605 - c
11607 * Changed heuristic in compactify. compactify has to decide whether a
11608 Para that ends a list is a Para intentionally, or just because of
11609 the blank lines at the end of every list. In the latter case the
11610 Para is turned to a Plain. The old heuristic was: change final Para
11611 to Plain iff the other items all end in Plain. This produces bad
11612 results when, for example, an item contains just a Plain and an HTML
11613 comment, as it does in the list above. The new heuristic: change
11614 final Para to Plain iff the other items don't contain a Para.
11616 * Added % as an rst underline character. Resolves Issue #173.
11618 * Fix inline math parser so that \$ is allowed in math.
11619 Resolves Issue #169.
11621 * Translate \int (integral) into unicode when using unicode math
11622 method. Resolves Issue #177.
11624 * markdown2pdf.hs improvements:
11625 + Use System.IO.UTF8.
11626 + Print error messages on last attempt.
11627 + Do not create a backup when overwriting a PDF (Issue #166).
11628 + Accept --longopt=val options.
11629 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
11630 it is properly cleaned.
11632 * Added haddock comments warning that readers assume \n line endings.
11634 * Updated COPYRIGHT file.
11636 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
11637 markdown2pdf. Otherwise strip tries to strip shell scripts when you
11638 install using 'make'.
11640 * Changed Makefile so it doesn't build Haskell wrappers.
11642 * Fixed Makefile so it doesn't try to build man pages in build-doc.
11644 * Install pcre3.dll in Windows install script; this allows us to
11645 package a version of pandoc with highlighting support.
11647pandoc (1.2.1)
11649 [ John MacFarlane ]
11651 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
11652 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
11653 side effect: strings of 0 spaces were interpreted as indentation.
11654 So, with --preserve-tabs, unindented paragraphs were treated as
11655 code. Resolves Issue #138.
11657 * HTML writer: wrap sections in divs. Resolves Issue #70.
11659 + hierarchicalize has been rationalized; it builds a hierarchical
11660 representation of the document from the headers, and simultaneously
11661 gives each section a unique identifier based on the heading title.
11662 + Identifiers are now attached to the divs rather than
11663 to the headers themselves.
11664 + Table of content backlinks go to the beginning of the table, rather
11665 than to the section reference that was clicked.
11666 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
11667 from the HTML writer, since it is now consumed only by
11668 hierarchicalize.
11669 + In --strict mode, pandoc just prints bare headings, as before
11670 (unless --toc has been specified).
11671 + In s5 output, it does not wrap sections in divs, as that seems to
11672 confuse the s5 javascript.
11674 * Man writer: break lines at end of each sentence. groff expects this
11675 and treats '.' and '?' differently when followed by line ending as
11676 opposed to ordinary space. Also, don't escape periods. Instead, use
11677 zero-width character \& to avoid unwanted interpretation of periods
11678 at start of line. Resolves Issue #148.
11680 * Markdown writer: Added '#' and '>' to list of characters to be
11681 escaped in markdown output. Removed '<', as it is not an officially
11682 escapable character. This partially resolves Issue #96.
11684 * Make --smart the default for man output format. Otherwise we have
11685 trouble dividing lists of endlines into sentences.
11687 * DocBook writer: Use language attribute to indicate source language
11688 in code blocks.
11690 * RST reader:
11692 + Allow # to continue list, even if the list was started with an
11693 explicit marker. For example:
11695 A. my list
11696 #. continued
11698 Resolves Issue #140.
11699 + Allow continuation lines in line blocks. Also added test cases for
11700 line blocks for RST reader. Resolves Issue #149.
11701 + Allow explicit links with spaces in URL: `link <to this>`_
11703 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
11704 (which is not in LaTeX) and recognize all the amsmath environments
11705 that are alternatives to eqnarray, namely equation, equation*,
11706 gather, gather*, gathered, multline, multline*, align, align*,
11707 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
11708 Thanks to shreevatsa.public for the patch.
11710 * Markdown reader:
11712 + Allow -, _, :, . in markdown attribute names. These are legal in
11713 XML attribute names.
11714 + Use non-breaking spaces in abbreviations.
11715 + Markdown reader: improved efficiency of abbreviation parsing.
11716 Instead of a separate abbrev parser, we just check for
11717 abbreviations each time we parse a string. This gives a huge
11718 performance boost with -S. Resolves Issue #141.
11720 * Improved efficiency of shared parsers: hexNum, htmlComment,
11721 whitespace, indentSpaces.
11723 * Export HTMLMathMethod in Text.Pandoc.
11725 * Export languagesByExtension in Text.Pandoc.Highlighting.
11727 * Added new Haskell version of markdown2pdf, due to
11728 Paulo Tanimoto. This should be more portable than the old
11729 shell script.
11731 * Made 'pandoc -v' more explicit about compiler options.
11732 Resolves Issue #139.
11734 * pandoc.hs: Made --strict compatible with --standalone, --toc.
11736 * Use Paths_pandoc to get version number, instead of hard-coding it
11737 into Text/Pandoc.hs.
11739pandoc (1.2)
11741 [ John MacFarlane ]
11743 * Added support for literate Haskell. lhs support is triggered by
11744 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
11745 Haskell LaTeX. '.lhs' files are treated by default as literate
11746 markdown.
11748 + Added stateLiterateHaskell to parser state.
11749 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
11750 + Added parser for |inline lhs| to LaTeX reader.
11751 + Added writerLiterateHaskell to WriterOptions.
11752 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
11753 + Added definition of code environment to LaTeX header.
11754 + Added tests (run only if highlighting support compiled in).
11755 + Documented lhs features in man page and README.
11757 * In Text.Pandoc.Definition, added processWith, processWithM,
11758 and queryWith, and deprecated processPandoc and queryPandoc
11759 for these more general functions.
11761 * Fixed bug in mediawiki writer: improper closing tags in tables.
11762 Thanks to Benct Philip Jonsson for reporting the bug.
11764 * Added --email-obfuscation option.
11766 + Added writer option for email obfuscation.
11767 + Implemented email obfuscation options in HTML writer.
11768 + Added option to option parser.
11769 + Documented in README and pandoc man page.
11770 + Resolves Issue #97.
11772 * LaTeX writer: fixed bug with empty table cells.
11773 Resolves Issue #107. Thanks to rodja.trappe for the patch.
11775 * Fixed bug with header spacing in Markdown and RST writers.
11776 A null header (Meta [] [] []) should not cause a blank line
11777 at the beginning of output. But a blank line is needed between
11778 a non-null header and the main text.
11780 * Markdown reader: Relax spacing rules for $$ in display math. Now
11781 space and newlines are allowed after the opening $$ and before the
11782 closing $$. However, the display math cannot contain an entirely
11783 blank line. Resolves Issue #105.
11785 * Markdown reader: Gobble space after Plain blocks containing only
11786 raw html inline. Otherwise following header blocks are not parsed
11787 correctly, since the parser sees blank space before them. Resolves
11788 Issue #124.
11790 * Markdown reader: Allow " as well as '' to end a latex double-quote.
11792 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
11793 Resolves Issue #109.
11795 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
11797 + Added hang' function to Text.Pandoc.Shared; this will be used instead
11798 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
11799 is upgraded, we can go back to hang.
11800 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
11801 + Use hang' (and some different techniques) in RST and markdown writers.
11802 Some output is now a bit different.
11804 * Brought citeproc support up to date for citeproc-hs-0.2.
11805 (Patch by Andrea Rossato.)
11807 * Moved all haskell source to src subdirectory. Renamed Main.hs to
11808 pandoc.hs.
11810 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
11811 For now, keeping the old shell script too.
11813 * Added TemplateHaskell to Extensions for executable, removed
11814 -threaded for library. Thanks to duncan.coutts for the bug report.
11815 Resolves Issue #121.
11817 * Moved some Extra-Source-Files to Data-Files.
11819 * Moved tabFilter to Shared.
11821 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
11822 preserve tabs.
11824 * Minor code cleanup based on hlint suggestions.
11826pandoc (1.1)
11828 [ John MacFarlane ]
11830 * Main.hs:
11832 + Changed date on copyright message in Main.hs.
11833 + Have the '-v' option print syntax highlighting languages
11834 separated by commas, and wrapped in lines, instead of in five
11835 columns as before.
11837 * Added --jsmath option. Resolves Issue #68.
11839 + Added --jsmath option to Main.hs
11840 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
11841 + Handle math appropriately in HTML writer when JsMath selected.
11842 + Documented the option in README and man page.
11844 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
11845 for tight and loose lists. Final Para is changed to Plain if all
11846 other list items *end* with a Plain block. Addresses Issue #99.
11848 * HTML reader:
11850 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
11851 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
11852 Added rawVerbatimBlock parser. Resolves Issue #94.
11854 * Markdown reader:
11856 + Allow URLs with spaces in them in links and references, but escape
11857 them as "%20".
11858 + Allow blank space at the end of horizontal rules.
11860 * RST reader: Modified 'unknownDirective' parser to handle comment
11861 blocks correctly, and added tests for comment blocks. Resolves Issue
11862 #86. Closes Debian Bug #500662.
11864 * HTML writer:
11866 + Include classes on tr elements in HTML output:
11867 "header", "odd", "even". This allows tables to be styled with
11868 lines in alternating colors. Resolves Issue #91.
11869 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
11870 This prevents parts of the document that are not math from being
11871 interpreted as math by LaTeXMathML.js.
11873 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
11874 which were formerly ignored. Resolves Issue #95.
11876 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
11877 between a footnote and immediately following nonspace characters in
11878 LaTeX and ConTeXt output. (This gets interpreted as a space, which
11879 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
11881 * Windows installer: Don't require admin privileges to run
11882 installer. Modified pandoc-setup.iss, and changed modpath.iss to
11883 modify HKCU path if user lacks admin privileges. Also fixed case
11884 where oldpath is empty (previously this led to the new path
11885 beginning with a semicolon).
11887 * Updated INSTALL instructions for Arch packages and OS X install using
11888 cabal-install.
11890 * Removed the (now unneeded) debian directory.
11891 Removed empty Codec and System directories.
11893 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
11895 * Modified Setup.hs so that the "test" target returns an error status
11896 when tests fail, and "build" returns a success status if
11897 the build succeeds. Resolves Issue #100.
11899 * Added BUGS to files in tarball.
11902pandoc (1.0.0.1)
11904 [ John MacFarlane ]
11906 * Removed spurious reference to pdf output format from pandoc(1) man page.
11908pandoc (1.0)
11910 [ Andrea Rossato ]
11912 * Added new OpenDocument writer.
11914 * Added support for SmallCaps inline element.
11916 * Added support for integrating pandoc with citeproc-hs.
11918 + Added Cite element to definition and writers.
11919 + Added Text.Pandoc.Biblio module
11920 + Note: This support is included only if the 'citeproc'
11921 Cabal configuration flag is set.
11923 * Made Pandoc data structure an instance of Typeable.
11924 Added new processPandoc and queryPandoc functions, to query
11925 or transform matching elements in a Pandoc structure.
11927 [ Peter Wang ]
11929 * Added new Texinfo writer.
11931 [ John MacFarlane ]
11933 * Changes to Texinfo writer:
11935 + No space between paragraph and following @verbatim (provides more
11936 pleasing appearance in text formats)
11937 + Blank line consistently after list environments.
11938 + Removed deVerb.
11939 + Use @code instead of @verb for inline code (this solves the character
11940 escaping problem for texi2dvi and texi2pdf).
11941 + Added news of Texinfo writer to README.
11942 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
11943 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
11944 default output extension.
11945 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
11947 * Added tests for OpenDocument writer.
11949 * Added ODT writer (using zip-archive library to package output of
11950 OpenDocument writer). Added odt-styles directory with default ODT styles.
11952 * Added new mediawiki writer and tests.
11954 * Markdown reader: Added support for delimited code blocks, with optional
11955 syntax highlighting using highlighting-kate (if the 'highlighting'
11956 configuration option is selected).
11958 + Currently highlighting is supported only in the HTML writer.
11959 + Delimited code blocks can have attributes; using the language name as
11960 class triggers highlighting.
11961 + New Attributes parameter in CodeBlock structure.
11962 + --version now indicates whether syntax highlighting support is compiled
11963 in, and prints a list of supported languages
11965 * Removed debian directory. Pandoc is no longer a native debian package.
11967 * Changes to build process: pandoc can now be built from the repository
11968 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
11969 without Cygwin).
11971 + Include shell scripts themselves in repo, rather than generating from wrappers.
11972 Removed wrappers directory and wrappers Makefile target.
11973 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
11974 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
11975 from templates in the templates/ directory. Instead, they use template
11976 haskell to read data at compile time from the relevant files in data/.
11977 Template haskell functions go in a new module, Text.Pandoc.TH.
11978 + man pages are now generated in Setup.hs hook, not by Makefile
11979 + Makefile 'tarball' target now calls Cabal's 'sdist'
11980 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
11981 + Added "Build-Type" field to pandoc.cabal to avoid warning.
11982 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
11983 so 'sdist' and 'clean' will work properly.
11984 + Setup.hs now generates man pages in a postbuild hook.
11985 + Added dependency-checking to Setup.hs, so it only rebuilds things
11986 that need rebuilding.
11987 + Added 'library' and 'executable' configuration flags.
11988 Cabal can now be told to build just the library or just the executable.
11989 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
11990 For example: CABALOPTS=-fhighlighting make
11992 * Rewrote test suite so it doesn't depend on perl or unix tools.
11994 + Replaced old runtests.pl with a Haskell script RunTests.hs.
11995 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
11996 + Added test hook to Setup.hs, so tests may be run from cabal.
11997 + Changed Makefile's 'test' target to run tests via cabal.
11998 + Removed old generate.sh.
11999 + Since we no longer have 'sed' to filter out raw HTML sections
12000 from the docbook writer test, or raw LaTeX sections from the
12001 context writer test, we now just include these sections.
12002 They can be taken out if it is necessary to process the files.
12003 + Updated latex and context writer tests to remove extra spaces
12004 after '\\item'
12005 + Added a markdown table reader test.
12006 + Added markdown-reader-more.txt to test suite, for additional test cases
12007 for raw ConTeXt environments and more.
12009 * Compatibility fixes for CPP, Cabal, and haddock:
12011 + Use CPP in "Extensions" field in pandoc.cabal.
12012 + Removed use of backslash string continuations in source files.
12014 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
12015 base >= 3.
12017 * Require parsec < 3.
12018 The compatibility module in parsec 3.0.0 gives far worse performance than
12019 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
12020 version of parsec, and then we'll go to parsec 3.0.0.
12022 * Removed Text.Regex dependencies by rewriting using plain Haskell
12023 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
12025 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
12027 * Makefile:
12029 + Added 'configure' as dependency of 'uninstall-all'.
12030 (It uses the Cabal build program.)
12031 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
12032 Note that Cabal will automatically choose the ghc-pkg appropriate
12033 for the compiler selected, so normally specifying GHC by itself
12034 is sufficient.
12036 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
12037 its IO and conversion functions.
12039 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
12040 everything is -Wall clean.
12042 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
12043 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
12044 (These are caused by the Lift instance for ByteString.)
12046 * Changed the comment used to replace unsafe HTML if sanitize-html option
12047 selected.
12049 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
12051 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
12053 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
12054 "nbsp" isn't a predefined XML entity.
12056 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
12057 Added some try's in ordered list parsers.
12059 * Man writer: don't escape " as \".
12061 * Allow newline before URL in markdown link references. Resolves Issue #81.
12062 Added tests for this issue in new "markdown-reader-more" tests.
12063 Changed RunTests.hs to run these tests.
12065 * Support for display math. Resolves Issue #47.
12067 + Added a DisplayMath/InlineMath selector to Math inlines.
12068 + Markdown parser yields DisplayMath for $$...$$.
12069 + LaTeX parser yields DisplayMath when appropriate. Removed
12070 mathBlock parsers, since the same effect is achieved by the math
12071 inline parsers, now that they handle display math.
12072 + Writers handle DisplayMath as appropriate for the format.
12073 + Modified tests accordingly; added new tests for display math.
12075 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
12076 to LaTeX in its display of math, and supports many non-math LaTeX environments.
12078 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
12079 + Modified HTML writer to print raw TeX when LaTeXMathML is
12080 being used instead of suppressing it.
12081 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
12082 + Replaced ASCIIMathML with LaTeXMathML in source files.
12083 + Modified README and pandoc man page source.
12084 + Added --latexmathml option (kept --asciimathml as a synonym
12085 for backwards compatibility)
12087 * Markdown reader: Parse setext headers before atx headers.
12088 Test case:
12089 # hi
12090 ====
12091 parsed by Markdown.pl as an H1 header with contents "# hi".
12093 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
12094 The marker on the first list item determines the type of the whole
12095 list. Thus, a list like
12096 1. one
12097 - two
12098 * three
12099 gets parsed as a single ordered list. (Previous versions of pandoc
12100 treated this as an ordered list with an unordered sublist.)
12102 * Markdown smart typography:
12104 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
12105 + Use nonbreaking spaces after known abbreviations in markdown parser.
12106 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
12107 not produce a sentence-separating space. Resolves Issue #75.
12109 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
12111 * Treat '\ ' in (extended) markdown as nonbreaking space.
12112 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
12114 * The '--sanitize-html' option now examines URIs in markdown links
12115 and images, and in HTML href and src attributes. If the URI scheme
12116 is not on a whitelist of safe schemes, it is rejected. The main point
12117 is to prevent cross-site scripting attacks using 'javascript:' URIs.
12118 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
12119 and http://ha.ckers.org/xss.html. Resolves Issue #62.
12121 * HTML writer:
12123 + Override Text.XHtml's stringToHtml function,
12124 so that characters below 0xff are not converted to numerical entity
12125 references. Also convert '\160' to "&nbsp;". This should aid readability
12126 and editability of the HTML source. It does presuppose that the HTML
12127 will be served as UTF-8.
12128 + In code blocks, change leading newlines to <br /> tags.
12129 (Some browsers ignore them.) Resolves Issue #71.
12130 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
12131 + Use style attributes rather than css classes for strikethrough
12132 and ordered list styles. This works better when fragments, rather than
12133 standalone documents, are generated.
12135 * HTML reader: Count anything that isn't a known block (HTML) tag as an
12136 inline tag (rather than the other way around). Added "html", "head", and
12137 "body" to list of block tags. Resolves Issue #66, allowing
12138 <lj> to count as an inline tag.
12140 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
12141 boldface, and other inline elements. Resolves Issue #64.
12143 * LaTeX reader: improvements in raw LaTeX parsing.
12145 + "loose punctuation" (like {}) parsed as Space
12146 + Para elements must contain more than Str "" and Space elements
12147 + Added parser for "\ignore" command used in literate haskell.
12148 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
12149 mode, these parsers simply strip off the command part and allow
12150 the arguments to be parsed normally. So, for example,
12151 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
12152 Str "{\\emph{hi}}".
12153 + Parse lhs "code" environments as verbatim.
12154 Refactored parsers for verbatim environments.
12155 + Removed specialEnvironment parser.
12156 + parse '{}', if present, after \textless, \textgreater,
12157 \textbar, \textbackslash, \ldots.
12158 + Parse unescaped special characters verbatim rather than
12159 changing them to spaces. This way arguments of unknown
12160 commands will appear in braces.
12162 * Parse raw ConTeXt environments as TeX in markdown reader.
12163 Resolves Issue #73.
12165 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
12167 * Made some structural changes to parsing of raw LaTeX environments.
12168 Previously there was a special block parser for LaTeX environments.
12169 It returned a Para element containing the raw TeX inline. This has
12170 been removed, and the raw LaTeX environment parser is now used in the
12171 rawLaTeXInline parser. The effect is exactly the same, except that we
12172 can now handle consecutive LaTeX and ConTeXt environments not separated
12173 by spaces. This new flexibility is required by the example in
12174 Issue #73:
12176 \placeformula \startformula
12177 L_{1} = L_{2}
12178 \stopformula
12180 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
12181 returns a string) rather than rawLaTeXEnvironment (which returns a block
12182 element). This is more likely to be useful in other applications.
12184 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
12185 \textsubscript conflicts with a definition in the memoir class.
12186 Resolves Issue #65.
12188 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
12190 * Added amsmath package to default LaTeX header. Resolves Issue #48.
12192 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
12193 list introduction lines.
12195 * Changed Float to Double in definition of Table element.
12196 (Double is more efficient in GHC.)
12198 * Fixed bug in Markdown parser: regular $s triggering math mode.
12199 For example: "shoes ($20) and socks ($5)."
12200 The fix consists in two new restrictions:
12202 + the $ that ends a math span may not be directly followed by a digit.
12203 + no blank lines may be included within a math span.
12205 Thanks to Joseph Reagle for noticing the bug.
12207 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
12208 Removed 'joinWithSep' from Text.Pandoc.Shared.
12210 * Updated README and man pages. Acknowledge contributors in README.
12211 Added paragraph to README about producing S5 with separate CSS/javascript.
12213 * Updated INSTALL to reflect new build system (including configuration
12214 options) and document new dependencies. Added note to INSTALL that
12215 Cabal >= 1.2 is required for build. Resolves Issue #74.
12217 * Fixed some haddock documentation errors.
12219 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
12221pandoc (0.46) unstable; urgency=low
12223 [ John MacFarlane ]
12225 * Made -H, -A, and -B options cumulative: if they are specified
12226 multiple times, multiple files will be included.
12228 * Added optional HTML sanitization using a whitelist.
12229 When this option is specified (--sanitize-html on the command line),
12230 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
12231 attributes will be removed. This option should be especially useful
12232 for those who want to use pandoc libraries in web applications, where
12233 users will provide the input.
12235 + Main.hs: Added --sanitize-html option.
12237 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
12239 + Text.Pandoc.Readers.HTML:
12240 - Added whitelists of sanitaryTags and sanitaryAttributes.
12241 - Added parsers to check these lists (and state) to see if a given
12242 tag or attribute should be counted unsafe.
12243 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
12244 with comments.
12245 - Modified htmlAttribute to remove unsafe attributes.
12246 - Modified htmlScript and htmlStyle to remove these elements if
12247 unsafe.
12249 + Modified README and man pages to document new option.
12251 * Improved handling of email addresses in markdown and reStructuredText.
12252 Consolidated uri and email address parsers. (Resolves Issue #37.)
12254 + New emailAddress and uri parsers in Text.Pandoc.Shared.
12255 - uri parser uses parseURI from Network.URI.
12256 - emailAddress parser properly handles email addresses with periods
12257 in them.
12259 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
12260 and Text.Pandoc.Readers.Markdown.
12262 * Markdown reader:
12264 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
12265 nested in an Emph. (A '*' is only recognized as the end of the
12266 emphasis if it's not the beginning of a strong emphasis.)
12268 + Moved blockQuote parser before list parsers for performance.
12270 + Modified 'source' parser to allow backslash-escapes in URLs.
12271 So, for example, [my](/url\(1\)) yields a link to /url(1).
12272 Resolves Issue #34.
12274 + Disallowed links within links. (Resolves Issue #35.)
12275 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
12276 instead of hard-coding the inline parser takes an inline parser
12277 as a parameter.
12278 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
12279 - Removed unneeded inlineString function.
12280 - Added inlineNonLink parser, which is now used in the definition of
12281 reference.
12282 - Added inlineParsers list and redefined inline and inlineNonLink parsers
12283 in terms of it.
12284 - Added failIfLink parser.
12286 + Better handling of parentheses in URLs and quotation marks in titles.
12287 - 'source' parser first tries to parse URL with balanced parentheses;
12288 if that doesn't work, it tries to parse everything beginning with
12289 '(' and ending with ')'.
12290 - source parser now uses an auxiliary function source'.
12291 - linkTitle parser simplified and improved, under assumption that it
12292 will be called in context of source'.
12294 + Make 'block' conditional on strictness state, instead of using
12295 failIfStrict in block parsers. Use a different ordering of parsers
12296 in strict mode (raw HTML block before paragraph) for performance.
12297 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
12298 Simplified htmlBlock, since we know it's only called in strict
12299 mode.
12301 + Improved handling of raw HTML. (Resolves Issue #36.)
12302 - Tags that can be either block or inline (e.g. <ins>) should
12303 be treated as block when appropriate and as inline when
12304 appropriate. Thus, for example,
12305 <ins>hi</ins>
12306 should be treated as a paragraph with inline <ins> tags, while
12307 <ins>
12309 </ins>
12310 should be treated as a paragraph within <ins> tags.
12311 - Moved htmlBlock after para in list of block parsers. This ensures
12312 that tags that can be either block or inline get parsed as inline
12313 when appropriate.
12314 - Modified rawHtmlInline' so that block elements aren't treated as
12315 inline.
12316 - Modified para parser so that paragraphs containing only HTML tags and
12317 blank space are not allowed. Treat these as raw HTML blocks instead.
12319 + Fixed bug wherein HTML preceding a code block could cause it to
12320 be parsed as a paragraph. The problem is that the HTML parser
12321 used to eat all blank space after an HTML block, including the
12322 indentation of the code block. (Resolves Issue #39.)
12323 - In Text.Pandoc.Readers.HTML, removed parsing of following space
12324 from rawHtmlBlock.
12325 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
12326 indentation is eaten *only* on the first line after the HTML
12327 block. This means that in
12328 <div>
12329 foo
12330 <div>
12331 the foo won't be treated as a code block, but in
12332 <div>
12334 foo
12336 </div>
12337 it will. This seems the right approach for least surprise.
12339 * RST reader:
12341 + Fixed bug in parsing explicit links (resolves Issue #44).
12342 The problem was that we were looking for inlines until a '<' character
12343 signaled the start of the URL; so, if you hit a reference-style link,
12344 it would keep looking til the end of the document. Fix: change
12345 inline => (notFollowedBy (char '`') >> inline). Note that this won't
12346 allow code inlines in links, but these aren't allowed in resT anyway.
12348 + Cleaned up parsing of reference names in key blocks and links.
12349 Allow nonquoted reference links to contain isolated '.', '-', '_', so
12350 so that strings like 'a_b_' count as links.
12352 + Removed unnecessary check for following link in str.
12353 This is unnecessary now that link is above str in the definition of
12354 'inline'.
12356 * HTML reader:
12358 + Modified rawHtmlBlock so it parses </html> and </body> tags.
12359 This allows these tags to be handled correctly in Markdown.
12360 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
12361 since these are handled in parseHtml. (Resolves Issue #38.)
12363 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
12365 + Don't interpret contents of style tags as markdown.
12366 (Resolves Issue #40.)
12367 - Added htmlStyle, analagous to htmlScript.
12368 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
12369 - Moved "script" from the list of tags that can be either block or
12370 inline to the list of block tags.
12372 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
12373 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
12374 inline tags would be included in raw HTML blocks.
12376 + Modified anyHtmlBlockTag to test for (not inline) rather than
12377 directly for block. This allows us to handle e.g. docbook in
12378 the markdown reader.
12380 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
12381 Updated LaTeX reader test to use --parse-raw.
12383 * HTML writer:
12385 + Modified rules for automatic HTML header identifiers to
12386 ensure that identifiers begin with an alphabetic character.
12387 The new rules are described in README. (Resolves Issue #33.)
12389 + Changed handling of titles in HTML writer so you don't get
12390 "titleprefix - " followed by nothing.
12392 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
12393 spacing. Each block element is wrapped with either Pad or Reg.
12394 Pad'ed elements are guaranteed to have a blank line in between.
12396 * RST writer:
12398 + Refactored RST writer to use a record instead of a tuple for state,
12399 and to include options in state so it doesn't need to be passed as
12400 a parameter.
12402 + Use an interpreted text role to render math in restructuredText.
12403 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
12404 strategy.
12406 [ Recai Oktaş ]
12408 * Debian packaging changes:
12410 + Remove the empty 'include' directory in -dev package, which lintian
12411 complains about.
12412 + Bump Standarts-Version to 3.7.3.
12413 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
12414 lintian.
12416 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
12418pandoc (0.45) unstable; urgency=low
12420 [ John MacFarlane ]
12422 * Simplified parsing of reference keys and notes in markdown and RST
12423 readers: The Reference data structure from Text.Pandoc.Shared is no
12424 longer needed, since referenceKey and noteBlock parses return strings
12425 (as many blank lines as were occupied by the key or note) and update
12426 state themselves. getPosition and setPosition are now used to ensure
12427 that error messages will give the correct line number. This yields
12428 cleaner (and slightly faster) code, with more accurate parsing error
12429 messages.
12431 * Added new Math inline element:
12433 + Markdown and LaTeX readers now convert TeX math into Math elements,
12434 not TeX.
12435 + This allows math to be treated differently from raw TeX in output.
12436 TeX elements are no longer printed in output formats other than
12437 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
12439 * New default handling of math in writers:
12441 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
12442 parses raw TeX math and outputs a string of Pandoc inlines that
12443 tries to render it as far as possible using unicode characters,
12444 lapsing into literal TeX when needed.
12445 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
12446 and Docbook, if no other method for displaying math in HTML is
12447 specified. Enclosing $'s are no longer printed by default.
12448 + By default, math is put inside `<span class="math">`. This way it can be
12449 distinguished from the surrounding text, e.g. put in a different
12450 font.
12452 * New --gladtex and --mimetex options for display of math in HTML:
12454 + If --gladtex is specified, math is output between `<eq>` tags, so
12455 it can be processed by gladTeX.
12456 + If --mimetex is specified, math is put in `<img>` tags with a link
12457 to the mimetex CGI script (or any other script that takes TeX math
12458 as input and outputs an image). The URL of the script may be
12459 specified, but defaults to /cgi-bin/mimetex.cgi.
12460 + HTMLMathMethod structure in WriterOptions keeps track of how to
12461 display math in HTML output.
12462 + Updated README with a description of the four options for displaying
12463 math in HTML.
12465 * HTML reader:
12467 + Fixed bug: parser for minimized attributes should not swallow
12468 trailing spaces.
12469 + Simplified HTML attribute parsing.
12470 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
12471 longer needed. `<pre>` suffices. All HTML tags in the code block
12472 (e.g. for syntax highlighting) are skipped, because they are not
12473 portable to other output formats. A `<code>...</code>` block not
12474 surrounded by `<pre>` now counts as inline HTML, not a code block.
12475 + Remove just one leading and one trailing newline from contents of
12476 `<pre>...</pre>` in codeBlock parser.
12478 * Markdown reader:
12480 + Removed support for box-style block quotes.
12481 + Require space before title in links and references.
12482 This fixes a bug in parsing URLs like http://silly/url(withparen).
12483 + Improved and simplified setextHeader parser.
12484 + Fixed logic in smart quote parsing, adding some needed 'try'
12485 statements.
12486 + Fixed smart quote parsing so that unicode characters 8216 and 8217
12487 are recognized as single quotes, and 8220 and 8221 as double quotes.
12489 * RST reader:
12491 + Fixed bug in parsing of code blocks. Previously a full tab indent
12492 was required, but RST allows code to be indented any amount.
12493 Resolves Issue #27.
12494 + Allow field lists to be indented.
12495 + Parse the contents of field lists instead of treating as a raw string.
12496 + Represent field lists as definition lists instead of blockquotes.
12497 + Fixed bug in which metadata would be overridden if the document
12498 contained multiple field lists.
12499 + Parse fields associated with '.. image::' blocks, and use 'alt'
12500 field, if given, for image alt and title attributes.
12502 * LaTeX reader:
12504 + Modified specialChar so that '"' characters are parsed.
12505 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
12507 * HTML writer:
12509 + Changes in handling of math (see above).
12510 + Don't produce HTML for table of contents if there are
12511 no headers. (This would be an empty list, which is invalid XHTML.)
12513 * Markdown writer:
12515 + Don't print title attribute if title is empty. (This differs from
12516 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
12517 Gruber has indicated that he prefers this behavior.) Adjusted test
12518 suite accordingly.
12519 + Fixed incorrect line wrapping in paragraphs including hard line
12520 breaks. Resolves Issue #25.
12521 + Fixed bug in markdown writer: If an ordered list item began with
12522 a marker greater than 3 characters in width, and the item took more
12523 than one line, it would appear on the line after the list marker,
12524 e.g.:
12526 (12)
12527 My list item.
12528 Multiline.
12530 Now it works as follows:
12532 (12) My list item.
12533 Multiline.
12535 * RST writer
12537 + Fixed bug in RST writer's handling of ordered lists. Previously,
12538 list items with multiple lines would not always line up with
12539 single-line list items. Now, list items are nested the length of
12540 the list marker + 1. This looks better and ensures that list items
12541 all line up. (Note that list markers are padded to the length of
12542 the longest list marker in the series.)
12543 + Use 3-space indent for unordered lists.
12544 + If label for a link reference contains a colon, surround it by `
12545 signs so it won't be interpreted as the end of the link label.
12547 * LaTeX writer:
12549 + Cleaner output for footnotes. Footnotes now always begin on a new
12550 line, and the final } is on a line by itself only when it needs to
12551 be (i.e. only when the note ends with a Verbatim environment).
12552 + Added writer options to state, so state doesn't need to be passed as
12553 a parameter.
12554 + Text wrapping now provided, using wrapTeXIfNeeded.
12556 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
12557 (thanks to Idris Samawi Hamid for suggestions).
12559 + PrettyPrint module now used for output.
12560 + Writer options are now in state, so they don't have to be passed as
12561 a parameter.
12562 + Text wrapping now provided, using wrapTeXIfNeeded.
12563 + Better treatment of footnotes: footnotes are always on lines by
12564 themselves, and the final } is on a line by itself only when
12565 it needs to be (after \stoptyping).
12566 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
12567 depending on whether --number-sections option is selected.
12568 + Extra blank line inserted after \stopitemize
12569 + Use new, "official" definition of blockquote environment. Also, use
12570 blank line after \startblockquote to balance blank line at the end.
12571 + Both itemized and enumerated lists are now generated using
12572 \start-stopitemize, with appropriate options. Removed definitions
12573 of ltxenum and ltxitem, which are no longer needed. Provided
12574 defaults for itemized lists in the preamble. State keeps track of
12575 ordered list level, so that when default numbering is specified,
12576 the appropriate scheme can be used.
12577 + Changed \useurl to \useURL.
12578 + Changed link color from red to blue.
12579 + Use \subsubsubsubsection etc., since these are supported
12580 (up to at least sub x 5).
12582 * Text.Pandoc.Shared:
12584 + Save and restore position in parseFromString, so that accurate
12585 error messages can be given.
12586 + Improved efficiency of romanNumeral parser.
12587 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
12588 that footnotes occur on lines by themselves (to make them
12589 easier to see and move) and do not screw up line wrapping.
12591 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
12592 if present. Windows Notepad and other applications insert a
12593 BOM at the beginning of a UTF8 file.
12595 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
12596 addition to "\r\n" and '\n').
12598 * Added a writer option for wrapped text and a command-line option
12599 '--no-wrap', which disables text wrapping and minimizes whitespace
12600 in HTML. (Resolves Issue #26.)
12602 + Added support for '--no-wrap' to Main.hs.
12603 + Added wrapIfNeeded function to Text.Pandoc.Shared.
12604 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
12605 Markdown writers.
12606 + Added render and renderFragment helpers to HTML writer.
12608 * Modified html2markdown to run tidy only if the HTML cannot be
12609 parsed. Previously html2markdown piped all input through tidy
12610 before passing it to pandoc. This caused problems on certain pages
12611 (e.g. http://daringfireball.com/markdown) which have well-formed
12612 XHTML that causes tidy to choke. The solution is to pipe through
12613 tidy only if pandoc cannot parse the input by itself. This means
12614 that a temp file is now always used, even when input comes from a
12615 local file or standard input.
12617 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
12618 Text.Pandoc library.
12620 * pandoc.cabal:
12622 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
12623 6.8, pretty and containers must be added to Build-Depends, and it
12624 is desirable to use the -O2 compiler option.) Cabal configurations
12625 allows one to select options depending on the compiler version.
12626 For GHC 6.6, the splitBase option can be disabled.
12627 + pandoc.cabal.ghc66 is provided for users with older versions of
12628 Cabal, which do not support configurations.
12629 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
12630 '--enable-(executable|library)-profiling' is specified. Updated
12631 PROFILING instructions accordingly.
12633 * Makefile:
12635 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
12636 is copied to pandoc.cabal, and the old pandoc.cabal is copied
12637 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
12638 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
12639 will work properly with either GHC 6.6 or 6.8.
12640 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
12641 This is where current versions of Cabal put it.
12642 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
12643 + Removed dependency of templates on ./templates, which is circular
12644 now that templates is a subdirectory of the top-level.
12646 * MacPorts Portfile:
12648 + Modified to install the pandoc library in addition to programs.
12649 + Installation must be done manually rather than using Makefile's
12650 install-all.
12651 + Note that the library must be registered in the activate phase,
12652 after the library files have been copied out of the destroot.
12653 Cabal generates a 'register.sh' script that will do this.
12655 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
12656 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
12657 Closes: #445235
12659 * debian/rules: Converted to UTF-8.
12661 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
12663 * Updated ASCIIMathML.js to latest version.
12665 * Directory structure:
12667 + Moved everything from src into the top-level directory.
12668 + Changed references to source directory in Makefile and
12669 pandoc.cabal.*.
12670 + Moved ASCIIMathML.js, headers, and ui into templates directory.
12671 + Modified fillTemplates.pl to reflect new paths.
12673 [ Recai Oktaş ]
12675 * Makefile: Fixed the issue of having two copies of the library
12676 documentation under some usage scenarios.
12678 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
12679 and GHC_PKG configurable through the environment, to support
12680 unusual ghc installations. For example:
12681 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
12683 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
12685pandoc (0.44) unstable; urgency=low
12687 [ John MacFarlane ]
12689 * Fixed bug in HTML writer: when --toc was used, anchors were put around
12690 headers, which is invalid XHTML (block content within inline element).
12691 Now the anchors are put inside the header tags. Resolves Issue #23.
12693 * Added xmlns attribute to html element in html writer tests.
12694 This attribute is added by more recent versions of the
12695 xhtml library (>= 3000), and is required for valid XHTML.
12697 [ Recai Oktaş ]
12699 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
12700 command instead of 'runhaskell', which, on some platforms (such as s390,
12701 alpha, m68k), throws the following error:
12703 runhaskell Setup.hs configure --prefix=/usr
12704 ghc-6.6.1: not built for interactive use
12706 This causes a serious FTBFS bug. Closes: #440668.
12708 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
12710pandoc (0.43) unstable; urgency=low
12712 [ John MacFarlane ]
12714 * The focus of this release is performance. The markdown parser
12715 is about five times faster than in 0.42, based on benchmarks
12716 with the TextMate manual.
12718 * Main.hs: Replaced CRFilter and tabFilter with single function
12719 tabFilter, which operates on the whole string rather than breaking
12720 it into lines, and handles dos-style line-endings as well as tabs.
12722 * Added separate LaTeX reader and native reader tests; removed
12723 round-trip tests.
12725 * Text.Pandoc.Shared:
12727 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
12728 + General code cleanup (to elimante warnings when compiling with -Wall.)
12729 + Added 'wrapped' function, which helps wrap text into paragraphs,
12730 using the prettyprinting library.
12731 + Rewrote charsInBalanced and charsInBalanced'.
12732 - Documented restriction: open and close must be distinct characters.
12733 - Rearranged options for greater efficiency.
12734 - Bug fix: Changed inner call to charsInBalanced inside
12735 charsInBalanced' to charsInBalanced'.
12736 + anyLine now requires that the line end with a newline (not eof).
12737 This is a harmless assumption, since we always add newlines to the
12738 end of a block before parsing with anyLine, and it yields a 10% speed
12739 boost.
12740 + Removed unnecessary 'try' in anyLine.
12741 + Removed unneeded 'try' from romanNumeral parser.
12742 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
12743 + Removed unneeded 'try' in parseFromString.
12744 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
12745 like 'string'.)
12746 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
12747 'try' is not automatically applied to the 'end' parser. Added
12748 'try' in calls to 'enclosed' where needed. Slight speed increase.
12750 * Writers:
12752 + Replaced individual wrapping routines in RST, Man, and Markdown
12753 writers with 'wrapped' from Text.Pandoc.Shared.
12754 + Rewrote LaTeX writer to use the prettyprinting library,
12755 so we get word wrapping, etc.
12756 + Modified latex writer tests for new latex writer using prettyprinter.
12757 + Fixed bug in LaTeX writer: autolinks would not cause
12758 '\usepackage{url}' to be put in the document header. Also, changes
12759 to state in enumerated list items would be overwritten.
12760 + In Markdown writer, escape paragraphs that begin with ordered list
12761 markers, so they don't get interpreted as ordered lists.
12763 * Text.Pandoc.Reades.LaTeX:
12765 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
12766 numeral after "enum" in "setcounter" would consist entirely of
12767 "i"s. 'enumiv' is legitimate.
12768 + LaTeX command and environment names can't contain numbers.
12769 + Rearranged order of parsers in inline for slight speed improvement.
12770 + Added '`' to special characters and 'unescapedChar'.
12772 * Text.Pandoc.Readers.RST:
12774 + Removed unneeded try's in RST reader; also minor code cleanup.
12775 + Removed tabchar.
12776 + Rearranged parsers in inline (doubled speed).
12778 * Text.Pandoc.Readers.Markdown:
12780 + Skip notes parsing if running in strict mode. (This yields a nice
12781 speed improvement in strict mode.)
12782 + Simplify autolink parsing code, using Network.URI to test for
12783 URIs. Added dependency on network library to debian/control and
12784 pandoc.cabal.
12785 + More perspicuous definition of nonindentSpaces.
12786 + Removed unneeded 'try' in 'rawLine'.
12787 + Combined linebreak and whitespace into a new whitespace parser, to
12788 avoid unnecessary reparsing of space characters.
12789 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
12790 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
12791 + Use lookAhead in parsers for setext headers and definition lists
12792 to see if the next line begins appropriately; if not, don't waste
12793 any more time parsing.
12794 + Don't require blank lines after code block. (It's sufficient to
12795 end code block with a nonindented line.)
12796 + Changed definition of 'emph': italics with '_' must not
12797 be followed by an alphanumeric character. This is to help
12798 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
12799 `[LC<em>TYPE]:my</em>type`.
12800 + Improved Markdown.pl-compatibility in referenceLink: the two parts
12801 of a reference-style link may be separated by one space, but not
12802 more... [a] [link], [not] [a link].
12803 + Fixed markdown inline code parsing so it better accords with
12804 Markdown.pl: the marker for the end of the code section is a clump
12805 of the same number of `'s with which the section began, followed
12806 by a non-` character. So, for example,
12807 ` h ``` i ` -> `<code>h ``` i</code>`.
12808 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
12809 rules are slightly different.
12810 + Rewrote 'para' for greater efficiency.
12811 + Rewrote link parsers for greater efficiency.
12812 + Removed redundant 'referenceLink' in definition of inline (it's
12813 already in 'link').
12814 + Refactored escapeChar so it doesn't need 'try'.
12815 + Refactored hrule for performance in Markdown reader.
12816 + More intelligent rearranging of 'inline' so that most frequently
12817 used parsers are tried first.
12818 + Removed tabchar parser, as whitespace handles tabs anyway.
12820 * Text.Pandoc.CharacterReferences:
12822 + Refactored.
12823 + Removed unnecessary 'try's for a speed improvement.
12824 + Removed unnecessary '&' and ';' from the entity table.
12826 * Build process:
12828 + Makefile: Get VERSION from cabal file, not Main.hs.
12829 + Modified MacPorts Portfile:
12830 - Depend on haddock
12831 - Build and install libraries and library documentation in
12832 addition to pandoc executable
12833 - Added template item for md5 sum in Portfile.in.
12834 - Incorporated changes from MacPorts repository (r28278).
12835 + FreeBSD port: Don't try to generate distinfo in Makefile.
12836 It can be made using 'make makesum' in FreeBSD.
12837 + Make both freebsd and macports targets depend on tarball.
12839 * Website and documentation:
12841 + Updated INSTALL instructions.
12842 + Added pandocwiki demo to website.
12843 + Removed local references to Portfile, since pandoc is now in the
12844 MacPorts repository.
12846 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
12848pandoc (0.42) unstable; urgency=low
12850 [ John MacFarlane ]
12852 * Main.hs: Use utf8 conversion on the extra files loaded with
12853 the -H, -C, -B, and -A options. This fixes problems with unicode
12854 characters in these files.
12856 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
12857 Text.Pandoc.Readers.HTML and without it we get a linking error when
12858 using the library.
12860 * Markdown reader:
12862 + Added new rule for enhanced markdown ordered lists: if the list
12863 marker is a capital letter followed by a period (including a
12864 single-letter capital roman numeral), then it must be followed by
12865 at least two spaces. The point of this is to avoid accidentally
12866 treating people's initials as list markers: a paragraph might begin,
12867 "B. Russell was an English philosopher," and this shouldn't be
12868 treated as a list. Documented change in README.
12869 + Blocks that start with "p. " and a digit are no longer treated
12870 as ordered lists (it's a page number).
12871 + Added a needed 'try' to listItem.
12872 + Removed check for a following setext header in endline.
12873 A full test is too inefficient (doubles benchmark time), and the
12874 substitute we had before is not 100% accurate.
12875 + Don't use Code elements for autolinks if --strict specified.
12877 * LaTeX writer: When a footnote ends with a Verbatim environment, the
12878 close } of the footnote cannot occur on the same line or an error occurs.
12879 Fixed this by adding a newline before the closing } of every footnote.
12881 * HTML writer:
12882 + Removed incorrect "{}" around style information in HTML tables.
12883 Column widths now work properly in HTML.
12884 + If --strict option is specified (and --toc is not), don't include
12885 identifiers in headers, for better Markdown compatibility.
12887 * Build process:
12889 + Separated $(web_dest) and website targets.
12890 + In website, index.txt is now constructed from template index.txt.in.
12891 + Added freebsd target to Markefile. This creates the freebsd Makefile
12892 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
12893 from the repository.
12894 + Added macport target to Makefile. Portfile is built from template
12895 Portfile.in.
12896 + Removed OSX package targets. (Too many difficulties involving
12897 dependencies on dynamic libraries.)
12898 + More complete INSTALL instructions for all architectures.
12900 * Website:
12901 + Added a programming demo, pandocwiki.
12903 [ Recai Oktaş ]
12905 * Do not forget to close pandoc's ITP. Closes: #391666
12907 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
12909pandoc (0.41) unstable; urgency=low
12911 [ John MacFarlane ]
12913 * Fixed bugs in HTML reader:
12914 + Skip material at end *only if* `</html>` is present (previously,
12915 only part of the document would be parsed if an error was
12916 found; now a proper error message is given).
12917 + Added new constant eitherBlockOrInline with elements that may
12918 count either as block-level or as inline. Modified isInline and
12919 isBlock to take this into account.
12920 + Modified rawHtmlBlock to accept any tag (even an inline tag):
12921 this is innocuous, because rawHtmlBlock is tried only if a regular
12922 inline element can't be parsed.
12923 + Added a necessary 'try' in definition of 'para'.
12925 * Fixed bug in markdown ordered list parsing. The problem was that
12926 anyOrderedListStart did not check for a space following the
12927 ordered list marker. So in 'A.B. 2007' the parser would be
12928 expecting a list item, but would not find one, causing an error.
12929 Fixed a similar bug in the RST reader. Resolves Issue #22.
12931 * Refactored RST and Markdown readers using parseFromString.
12933 * LaTeX reader will now skip anything after \end{document}.
12935 * Fixed blockquote output in markdown writer: previously, block
12936 quotes in indented contexts would be indented only in the first
12937 line.
12939 * Added note to INSTALL about variations in versions of the xhtml
12940 library that can lead to failed tests (thanks to Leif LeBaron).
12942 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
12944pandoc (0.4) unstable; urgency=low
12946 [ John MacFarlane ]
12948 * Added two new output formats: groff man pages and ConTeXt. By
12949 default, output files with extensions ".ctx" and ".context" are
12950 assumed to be ConTeXt, and output files with single-digit extensions
12951 are assumed to be man pages.
12953 * Enhanced ordered lists (documented in README, under Lists):
12954 + The OrderedList block element now stores information about
12955 list number style, list number delimiter, and starting number.
12956 + The readers parse this information when possible.
12957 + The writers use this information to style ordered lists.
12958 + The enhancement can be disabled using the --strict option.
12960 * Added support for tables (with a new Table block element). Two kinds
12961 of tables are supported: a simple table with one-line rows, and a
12962 more complex variety with multiline rows. All output formats are
12963 supported, but only markdown tables are parsed at the moment. The
12964 syntax is documented in README.
12966 * Added support for definition lists (with a new DefinitionList block
12967 element). All output and input formats are supported. The syntax is
12968 documented in README.
12970 * Added support for superscripts and subscripts (with new Superscript
12971 and Subscript inline elements). All input and output
12972 formats. The syntax is documented in README.
12974 * Added support for strikeout (with a new Strikeout inline element).
12975 All input and output formats are supported. Thanks to Bradley Kuhn,
12976 who contributed a patch. The syntax is documented in README. Resolves
12977 Issue #18.
12979 * Added a --toc|--table-of-contents option. This causes an automatically
12980 generated table of contents (or an instruction that creates one) to
12981 be inserted at the beginning of the document. Not supported in S5,
12982 DocBook, or man page writers.
12984 * Modified the -m|--asciimathml option:
12986 + If an optional URL argument is provided, a link is inserted
12987 instead of the contents of the ASCIIMathML.js script.
12988 + Nothing is inserted unless the document actually contains
12989 LaTeX math.
12991 * Removed Blank block element as unnecessary.
12993 * Removed Key and Note blocks from the Pandoc data structure. All
12994 links are now stored as explicit links, and note contents are
12995 stored with the (inline) notes.
12997 + All link Targets are now explicit (URL, title) pairs; there
12998 is no longer a 'Ref' target.
12999 + Markdown and RST parsers now need to extract data from key and
13000 note blocks and insert them into the relevant inline elements.
13001 Other parsers have been simplified, since there is no longer any need
13002 to construct separate key and note blocks.
13003 + Markdown, RST, and HTML writers need to construct lists of
13004 notes; Markdown and RST writers need to construct lists of link
13005 references (when the --reference-links option is specified); and
13006 the RST writer needs to construct a list of image substitution
13007 references. All writers have been rewritten to use the State monad
13008 when state is required.
13009 + Several functions (generateReference, keyTable,
13010 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
13011 used by them) have been removed from Text.Pandoc.Shared, since
13012 they are no longer needed. New functions and data structures
13013 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
13014 added. The functions inTags, selfClosingTag, inTagsSimple, and
13015 inTagsIndented have been moved to the DocBook writer, since that
13016 is now the only module that uses them. NoteTable is now exported
13017 in Text.Pandoc.Shared.
13018 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
13019 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
13020 + Added writerNotes and writerReferenceLinks to WriterOptions.
13022 * Added Text.Pandoc module that exports basic readers, writers,
13023 definitions, and utility functions. This should export everything
13024 needed for most uses of Pandoc libraries. The haddock documentation
13025 includes a short example program.
13027 * Text.Pandoc.ASCIIMathML is no longer an exported module.
13029 * Added Text.Pandoc.Blocks module to help in printing markdown
13030 and RST tables. This module provides functions for working with
13031 fixed-width blocks of text--e.g., placing them side by side, as
13032 in a table row.
13034 * Refactored to avoid reliance on Haskell's Text.Regex library, which
13035 (a) is slow, and (b) does not properly handle unicode. This fixed
13036 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
13038 + Replaced 'gsub' with a general list function 'substitute'
13039 that does not rely on Text.Regex.
13040 + Rewrote extractTagType in HTML reader so that it doesn't use
13041 regexs.
13042 + In Markdown reader, replaced email regex test with a custom email
13043 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
13044 with a custom function isSelfClosingTag.
13045 + Modified Docbook writer so that it doesn't rely on Text.Regex for
13046 detecting 'mailto' links.
13047 + Removed escapePreservingRegex and reamped entity-handling
13048 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
13049 avoid reliance on Text.Regex (see below on character reference
13050 handling changes).
13052 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
13054 * Changed handling of XML entities. Entities are now parsed (and unicode
13055 characters returned) in the Markdown and HTML readers, rather than being
13056 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
13057 instead of entities for characters above 128. This makes the HTML and
13058 DocBook output much more readable and more easily editable.
13060 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
13061 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
13062 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
13063 Moved both functions to Text.Pandoc.Writers.Docbook.
13064 + Added characterReference parser to Text.Pandoc.CharacterReferences.
13065 This parses a string and return a unicode character.
13066 + Rewrote decodeCharacterReferences to use the new parser instead of
13067 Text.Regex.
13068 + Added new charRef parser for Markdown and HTML, which replaces the
13069 old 'entity' parser. Added '&' as a special character in Markdown reader.
13070 + Modified HTML and Markdown readers to call decodeEntities on all raw
13071 strings (e.g. authors, dates, link titles), to ensure that no
13072 unprocessed entities are included in the native representation of
13073 the document. (In the HTML reader, most of this work is done by a
13074 change in extractAttributeName.)
13075 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
13076 since a unicode non-breaking space is impossible to distinguish visually
13077 from a regular space. (Resolves Issue #3.)
13078 + Removed encodeEntitiesNumerical.
13079 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
13080 slight performance boost over the old association list.
13081 + Removed unneeded decodeEntities from 'str' parser in HTML and
13082 Markdown readers.
13084 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
13085 fromUTF8, for clarity.
13087 * Replaced old haskell98 module names replaced by hierarchical module
13088 names, e.g. List by Data.List. Removed haskell98 from dependencies
13089 in pandoc.cabal, and added mtl (needed for state monad). Substituted
13090 xhtml for html.
13092 * Refactored and cleaned up character escaping in writers, using
13093 backslashEscapes and escapeStringUsing functions.
13095 * Instead of adding "\n\n" to the end of an input string in Main.hs,
13096 this is now done in the readers. This makes the libraries behave
13097 the way you'd expect from the pandoc program. Resolves Issue #10.
13099 * URLs and email addresses in autolinks are now typeset as Code.
13101 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
13102 doesn't display the whole output unless there's a line ending.
13104 * Major code cleanup in all modules, for greater consistency, concision,
13105 and readability.
13107 * HTML reader:
13109 + Fixed several bugs (extractTagType, attribute parsing).
13110 + Remove Null blocks in lists of blocks when possible.
13111 + Allow HTML comments as raw HTML inline.
13113 * Markdown reader:
13115 + Ordered list items may no longer begin with uppercase letters, or
13116 letters greater than 'n'. (This prevents first initials and page
13117 reference, e.g. 'p. 400', from being parsed as beginning lists.)
13118 Also, numbers beginning list items may no longer end with ')',
13119 which is now allowed only after letters. Note: These changes
13120 may cause documents to be parsed differently. Users should take
13121 care in upgrading.
13122 + Changed autoLink parsing to conform better to Markdown.pl's
13123 behavior. `<google.com>` is not treated as a link, but
13124 `<http://google.com>`, `<ftp://google.com>`, and
13125 `<mailto:google@google.com>` are.
13126 + Cleaned up handling of embedded quotes in link titles. Now these are
13127 stored as a '"' character, not as '&quot;'.
13128 + Use lookAhead parser for the 'first pass' (looking for reference keys),
13129 instead of parsing normally, then using setInput to reset input. This
13130 yields a slight performance boost.
13131 + Fixed several bugs in smart quote recognition.
13132 + Fixed bug in indentSpaces (which didn't properly handle
13133 cases with mixed spaces and tabs).
13134 + Consolidated 'text', 'special', and 'inline' into 'inline'.
13135 + Fixed bug which allowed URL and title to be separated by multiple blank
13136 lines in links and reference keys. They can be on separate lines but
13137 can't have blank lines between them.
13138 + Correctly handle bracketed text inside inline footnotes and links,using
13139 new function inlinesInBalanced. Resolves Issue #14.
13140 + Fixed bug in footnotes: links in footnotes were not being
13141 processed. Solution: three-stage parse. First, get all the
13142 reference keys and add information to state. Next, get all the
13143 notes and add information to state. (Reference keys may be needed
13144 at this stage.) Finally, parse everything else.
13145 + Replaced named constants like 'emphStart' with literals.
13146 + Removed an extra occurance of escapedChar in definition of inline.
13148 * RST reader:
13150 + Allow the URI in a RST hyperlink target to start on the line
13151 after the reference key.
13152 + Added 'try' in front of 'string', where needed, or used a different
13153 parser. This fixes a bug where ````` would not be correctly parsed as
13154 a verbatim `.
13155 + Fixed slow performance in parsing inline literals in RST reader. The
13156 problem was that ``#`` was seen by 'inline' as a potential link or image.
13157 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
13158 Resolves Issue #8.
13159 + Use lookAhead instead of getInput/setInput in RST reader. Removed
13160 unneeded getState call, since lookAhead automatically saves and
13161 restores the parser state.
13162 + Allow hyperlink target URIs to be split over multiple lines, and
13163 to start on the line after the reference. Resolves Issue #7.
13164 + Fixed handling of autolinks.
13166 * LaTeX reader:
13168 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
13169 for clarity.
13170 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
13171 caret is \^{}, not \^ as before.
13172 + Added parsing for \url.
13173 + Parse \texttt{} as code, provided there's nothing fancy inside.
13175 * HTML writer:
13177 + Modified HTML writer to use the Text.XHtml library. This results
13178 in cleaner, faster code, and it makes it easier to use Pandoc in
13179 other projects, like wikis, which use Text.XHtml. Two functions are
13180 now provided, writeHtml and writeHtmlString: the former outputs an
13181 Html structure, the latter a rendered string. The S5 writer is also
13182 changed, in parallel ways (writeS5, writeS5String).
13183 + The Html header is now written programmatically, so it has been
13184 removed from the 'headers' directory. The S5 header is still
13185 needed, but the doctype and some of the meta declarations have
13186 been removed, since they are written programatically. This change
13187 introduces a new dependency on the xhtml package.
13188 + Fixed two bugs in email obfuscation involving improper escaping
13189 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
13190 Issue #9.
13191 + Fixed another bug in email obfuscation: If the text to be obfuscated
13192 contains an entity, this needs to be decoded before obfuscation.
13193 Thanks to thsutton for the patch. Resolves Issue #15.
13194 + Changed the way the backlink is displayed in HTML footnotes.
13195 Instead of appearing on a line by itself, it now generally
13196 appears on the last line of the note. (Exception: when the
13197 note does not end with a Plain or Para block.) This saves space
13198 and looks better.
13199 + Added automatic unique identifiers to headers:
13200 - The identifier is derived from the header via a scheme
13201 documented in README.
13202 - WriterState now includes a list of header identifiers and a table
13203 of contents in addition to notes.
13204 - The function uniqueIdentifiers creates a list of unique identifiers
13205 from a list of inline lists (e.g. headers).
13206 - This list is part of WriterState and gets consumed by blockToHtml
13207 each time a header is encountered.
13208 + Include CSS for .strikethrough class in header only if strikethrough
13209 text appears in the document.
13210 + If the 'strict' option is specified, elements that do not appear in
13211 standard markdown (like definition lists) are passed through as
13212 raw HTML.
13213 + Simplified treatment of autolinks, using pattern matching instead of
13214 conditionals.
13216 * Markdown writer:
13218 + Links in markdown output are now printed as inline links by default,
13219 rather than reference links. A --reference-links option has been added
13220 that forces links to be printed as reference links. Resolves Issue #4.
13221 + Use autolinks when possible. Instead of `[site.com](site.com)`,
13222 use `<site.com>`.
13224 * LaTeX writer:
13226 + Rewrote to use the State monad. The preamble now includes only those
13227 packages that are actually required, given the document's content.
13228 Thus, for example, if strikeout is not used, ulem is not required.
13229 Modified LaTeXHeader accordingly.
13230 + Modified LaTeX writer to insert '\,' between consecutive quotes.
13231 + Removed unused function tableRowColumnWidths.
13232 + Simplified code for escaping special characters.
13233 + Leave extra blank line after \maketitle.
13234 + Include empty '\author{}' when no author specified to avoid LaTeX
13235 errors.
13236 + Include fancyvrb code in header only if needed -- that is, only
13237 if there is actually code in a footnote.
13238 + Use \url{} for autolinks.
13239 + Include [mathletters] option in ucs package, so that basic unicode
13240 Greek letters will work correctly.
13242 * RST writer: Force blank line before lists, so that sublists will
13243 be handled correctly.
13245 * Docbook writer: Fixed a bug: email links with text, like
13246 [foo](me@bar.baz), were being incorrectly treated as autolinks.
13248 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
13249 Text.Pandoc.Shared.
13251 * Text.Pandoc.Shared:
13253 + Added defaultWriterOptions.
13254 + Added writerTableOfContents to WriterOptions.
13255 + Added writerIgnoreNotes option to WriterOptions. This is needed
13256 for processing header blocks for a table of contents, since notes on
13257 headers should not appear in the TOC.
13258 + Added prettyprinting for native Table format.
13259 + Removed some unneeded imports.
13260 + Moved escape and nullBlock parsers from
13261 Text.ParserCombinators.Pandoc, since the latter is for
13262 general-purpose parsers that don't depend on Text.Pandoc.Definition.
13263 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
13264 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
13265 writer, because HTML writer now uses these in constructing a table
13266 of contents.
13267 + Added clauses for new inline elements (Strikeout, Superscript,
13268 Subscript) to refsMatch.
13269 + Removed backslashEscape; added new functions escapeStringUsing and
13270 backslashEscapes.
13271 + Moved failIfStrict from markdown reader, since it is now used also
13272 by the HTML reader.
13273 + Added a 'try' to the definition of indentSpaces.
13274 + In definition of 'reference', added check to make sure it's not a note
13275 reference.
13276 + Added functions: camelCaseToHyphenated, toRomanNumeral,
13277 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
13278 charsInBalanced', withHorizDisplacement, romanNumeral
13279 + Fixed a bug in the anyLine parser. Previously it would parse an empty
13280 string "", but it should fail on an empty string, or we get an error
13281 when it is used inside "many" combinators.
13282 + Removed followedBy' parser, replacing it with the lookAhead parser from
13283 Parsec.
13284 + Added some needed 'try's before multicharacter parsers, especially in
13285 'option' contexts.
13286 + Removed the 'try' from the 'end' parser in 'enclosed', so that
13287 'enclosed' behaves like 'option', 'manyTill', etc.
13288 + Added lineClump parser, which parses a raw line block up to and
13289 including any following blank lines.
13290 + Renamed parseFromStr to parseFromString.
13291 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
13292 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
13293 in calling code.
13294 + Removed unneeded 'try' in blanklines.
13295 + Removed endsWith function and rewrote calling functions to use
13296 isSuffixOf instead.
13297 + Added >>~ combinator.
13298 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
13299 Space.
13301 * Refactored runtests.pl; added separate tests for tables.
13303 * Shell scripts:
13305 + Added -asxhtml flag to tidy in html2markdown. This will
13306 perhaps help the parser, which expects closing tags.
13307 + Modified markdown2pdf to run pdflatex a second time if --toc or
13308 --table-of-contents was specified; otherwise the table of
13309 contents won't appear.
13310 + Modified markdown2pdf to print a helpful message if the 'ulem'
13311 LaTeX package is required and not found.
13313 * Changes to build process:
13315 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
13316 is now required.
13317 + Removed cabalize and Pandoc.cabal.in. The repository now contains
13318 pandoc.cabal itself.
13319 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
13320 likes the cabal file to have the same name as the tarball.
13321 + Expanded and revised the package description in pandoc.cabal.
13322 Revised the package synopsis.
13323 + The tarball built by 'make tarball' now contains files built from
13324 templates (including man pages and shell scripts), so pandoc can
13325 be built directly using Cabal tools, without preprocessing.
13326 + Executable binaries are now stripped before installing.
13327 + Man pages are now generated from markdown sources, using pandoc's
13328 man page writer.
13329 + Use HTML version of README (instead of RTF) in Mac OS X installer.
13330 + Instead of testing for the existence of a pandoc symlink in build-exec,
13331 use ln -f.
13333 * Documentation:
13335 + Updated README and man pages with information on new features.
13336 + Updated INSTALL instructions with some useful clarifications and
13337 links.
13338 + Updated web content.
13340 * Added FreeBSD port.
13342 [ Recai Oktaş ]
13344 * debian/control:
13346 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
13347 libghc6-xhtml-dev. Removed libghc6-html-dev.
13348 + Suggest texlive-latex-recommended | tetex-extra instead of
13349 tetex-bin. This brings in fancyvrb and unicode support.
13351 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
13353pandoc (0.3) unstable; urgency=low
13355 [ John MacFarlane ]
13357 * Changes in pandoc options:
13359 + Allow options to follow or precede arguments.
13360 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
13361 + Added '--strict' option.
13362 + Added '-o/--output' option.
13363 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
13364 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
13365 error conditions. This is helpful for writing wrappers.
13366 + Added copyright message to '-v' output, modeled after FSF messages.
13367 + Reformatted usage message so that it doesn't wrap illegibly.
13368 + Removed extra blanks after '-h' and '-D' output.
13370 * Added docbook writer.
13372 * Added implicit setting of default input and output format based
13373 on input and output filename extensions. These defaults are
13374 overridden if explicit input and output formats are specified using
13375 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
13376 and README.
13378 * Allow ordered list items to begin with (single) letters, as well
13379 as numbers. The list item marker may now be terminated either by
13380 '.' or by ')'. This extension to standard markdown is documented
13381 in README.
13383 * Revised footnote syntax. (See README for full details.) The
13384 '[^1]' format now standard in markdown extensions is supported,
13385 as are inline footnotes with this syntax: `^[My note.]`.
13386 The earlier footnote syntax `^(1)` is no longer supported.
13388 * Improved HTML representation of footnotes. All footnotes
13389 are now auto-numbered and appear in an ordered list at the
13390 end of the HTML document. Since the default appearance is now
13391 acceptable, the old footnote styles have been removed from the
13392 HTML header.
13394 * Bug fixes:
13396 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
13397 These readers ran 'runParser' on processed chunks of text to handle
13398 embedded block lists in lists and quotation blocks. But then
13399 any changes made to the parser state in these chunks was lost,
13400 as the state is local to the parser. So, for example, footnotes
13401 didn't work in quotes or list items. The fix: instead of calling
13402 runParser on some raw text, use setInput to make it the input, then
13403 parse it, then use setInput to restore the input to what it was
13404 before. This is shorter and more elegant, and it fixes the problem.
13405 + Fixed bug in notFollowedBy' combinator (adding 'try' before
13406 'parser'). Adjusted code that uses this combinator accordingly.
13407 + Fixed bug in RTF writer that caused improper indentation on
13408 footnotes occurring in indented blocks like lists.
13409 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
13410 and date are parsed correctly. Everything else in the preamble
13411 is skipped.
13412 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
13413 line to count as escaped whitespace.
13414 + Modified LaTeX reader to produce inline links rather than reference
13415 links. Otherwise, links in footnotes aren't handled properly.
13416 + Fixed handling of titles in links in Markdown reader, so that
13417 embedded quotation marks are now handled properly.
13418 + Fixed Markdown reader's handling of embedded brackets in links.
13419 + Fixed Markdown reader so that it only parses bracketed material
13420 as a reference link if there is actually a corresponding key.
13421 + Revised inline code parsing in Markdown reader to conform to
13422 markdown standard. Now any number of `s can begin inline code,
13423 which will end with the same number of `s. For example, to
13424 have two backticks as code, write ``` `` ```. Modified Markdown
13425 writer accordingly.
13426 + Fixed bug in text-wrapping routine in Markdown and RST writers.
13427 Now LineBreaks no longer cause wrapping problems.
13428 + Supported hexadecimal numerical entity references as well as
13429 decimal ones.
13430 + Fixed bug in Markdown reader's handling of underscores and other
13431 inline formatting markers inside reference labels: for example,
13432 in '[A_B]: /url/a_b', the material between underscores was being
13433 parsed as emphasized inlines.
13434 + Changed Markdown reader's handling of backslash escapes so that
13435 only non-alphanumeric characters can be escaped. Strict mode
13436 follows Markdown.pl in only allowing a select group of punctuation
13437 characters to be escaped.
13438 + Modified HTML reader to skip a newline following a `<br>` tag.
13439 Otherwise the newline will be treated as a space at the beginning
13440 of the next line.
13442 * Made handling of code blocks more consistent. Previously, some
13443 readers allowed trailing newlines, while others stripped them.
13444 Now, all readers strip trailing newlines in code blocks. Writers
13445 insert a newline at the end of code blocks as needed.
13447 * Modified readers to make spacing at the end of output more consistent.
13449 * Minor improvements to LaTeX reader:
13451 + '\thanks' now treated like a footnote.
13452 + Simplified parsing of LaTeX command arguments and options.
13453 commandArgs now returns a list of arguments OR options (in
13454 whatever order they appear). The brackets are included, and
13455 a new stripFirstAndLast function is provided to strip them off
13456 when needed. This fixes a problem in dealing with \newcommand
13457 and \newenvironment.
13459 * Revised RTF writer:
13461 + Default font is now Helvetica.
13462 + An '\f0' is added to each '\pard', so that font resizing works
13463 correctly.
13465 * Moved handling of "smart typography" from the writers to the Markdown
13466 and LaTeX readers. This allows great simplification of the writers
13467 and more accurate smart quotes, dashes, and ellipses. DocBook can
13468 now use `<quote>`. The '--smart' option now toggles an option in
13469 the parser state rather than a writer option. Several new kinds
13470 of inline elements have been added: Quoted, Ellipses, Apostrophe,
13471 EmDash, EnDash.
13473 * Changes in HTML writer:
13475 + Include title block in header even when title is null.
13476 + Made javascript obfuscation of emails even more obfuscatory,
13477 by combining it with entity obfuscation.
13479 * Changed default ASCIIMathML text color to black.
13481 * Test suite:
13483 + Added --strip-trailing-cr option to diff in runtests.pl, for
13484 compatibility with Windows.
13485 + Added regression tests with footnotes in quote blocks and lists.
13487 * Makefile changes:
13489 + osx-pkg target creates a Mac OS X package (directory). New osx
13490 directory contains files needed for construction of the package.
13491 + osx-dmg target creates a compressed disk image containing the package.
13492 + win-pkg target creates Windows binary package.
13493 + tarball target creates distribution source tarball.
13494 + website target generates pandoc's website automatically, including
13495 demos. New 'web' directory containts files needed for construction
13496 of the website (which will be created as the 'pandoc' subdirectory
13497 of 'web').
13498 + Makefile checks to see if we're running Windows/Cygwin; if so,
13499 a '.exe' extension is added to each executable in EXECS.
13501 * Removed all wrappers except markdown2pdf and html2markdown.
13503 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
13504 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
13505 option and disables other options.
13507 * Added code to html2markdown that tries to determine the character
13508 encoding of an HTML file, by parsing the "Content-type" meta tag.
13510 + If the encoding can't be determined, then if the content is local,
13511 the local encoding is used; if it comes from a URL, UTF-8 is used
13512 by default.
13513 + If input is from STDIN, don't try to determine character encoding.
13514 + Encoding can be specified explicitly using '-e' option.
13516 * Improved warning messages in wrappers:
13518 + Print warning if iconv not available
13519 + More user-friendly error messages in markdown2pdf, when
13520 pdflatex fails.
13522 * Code cleanup:
13524 + Renamed 'Text/Pandoc/HtmlEntities' module to
13525 'Text/Pandoc/Entities'. Also changed function names so as
13526 not to be HTML-specific.
13527 + Refactored SGML string escaping functions from HTML and Docbook
13528 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
13529 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
13530 used anywhere.
13531 + Removed splitBySpace and replaced it with a general, polymorphic
13532 splitBy function.
13533 + Refactored LaTeX reader for clarity (added isArg function).
13534 + Converted some CR's to LF's in src/ui/default/print.css.
13535 + Added license text to top of source files.
13536 + Added module data for haddock to source files.
13537 + Reformatted code for consistency.
13539 * Rewrote documentation and man pages. Split README into INSTALL
13540 and README.
13542 * Split LICENSE into COPYING and COPYRIGHT.
13544 * Removed TODO, since we now maintain ToDo on the wiki.
13546 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
13547 duplication.
13549 [ Recai Oktaş ]
13551 * Revamped build process to conform to debian standards and created
13552 a proper debian package. Closes: #391666.
13554 * Modified build process to support GHC 6.6.
13556 + The package can still be compiled using GHC 6.4.2, though because
13557 of dependencies the "make deb" target works only with GHC 6.6+.
13558 + The script 'cabalize' is used to create an appropriate
13559 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
13560 Cabal versions.
13562 * Refactored template processing (fillTemplates.pl).
13564 * Modified wrapper scripts to make them more robust and portable.
13565 To avoid code duplication and ensure consistency, wrappers are
13566 generated via a templating system from templates in src/wrappers.
13568 + Wrappers now accept multiple filenames, when appropriate.
13569 + Spaces and tabs allowed in filenames.
13570 + getopts shell builtin is used for portable option parsing.
13571 + Improved html2markdown's web grabber code, making it more robust,
13572 configurable and verbose. Added '-e', '-g' options.
13574 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
13576pandoc (0.2) unstable; urgency=low
13578 * Fixed unicode/utf-8 translation
13580 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
13582pandoc (0.1) unstable; urgency=low
13584 * Initial creation of debian package
13586 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400