git.iko.soy/typeable/pandoc
on 2.1 help sign in
typeable/pandoc/changelog
13748 lines 594 kB history raw
1pandoc (2.1)
3 * Allow filters and lua filters to be interspersed (#4196). Previously
4 we ran all lua filters before JSON filters. Now we run filters in
5 the order they are presented on the command line, whether lua or JSON.
6 There are two incompatible API changes: The type of `applyFilters`
7 has changed, and `applyLuaFilters` has been removed. `Filter` is
8 also now exported.
10 * Use latest skylighting and omit the `missingIncludes` check, fixing
11 a major performance regression in earlier releases of the 2.x series
12 (#4226). Behavior change: If you use a custom syntax definition that
13 refers to a syntax you haven't loaded, pandoc will now complain when
14 it is highlighting the text, rather than doing a check at the start.
15 This change dramatically speeds up invocations of pandoc on short
16 inputs.
18 * Text.Pandoc.Class: make `FileTree` opaque (don't export
19 `FileTree` constructor). This forces users to interact with it using
20 `insertInFileTree` and `getFileInfo`, which normalize file names.
22 * Markdown reader:
24 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
25 direct, avoiding `parseFromString`. And it performs significantly
26 better; unfortunately, parsing time still increases exponentially
27 (see #1735).
28 + Avoid parsing raw tex unless `\` + letter seen. This seems to
29 help with the performance problem, #4216.
31 * LaTeX reader: Simplified a check for raw tex command.
33 * Muse reader (Alexander Krotov):
35 + Enable round trip test (#4107).
36 + Automatically translate `#cover` into `#cover-image`.
37 Amusewiki uses #cover directive to specify cover image.
39 * Docx reader (Jesse Rosenthal):
41 + Allow for insertion/deletion of paragraphs (#3927).
42 If the paragraph has a deleted or inserted paragraph break (depending
43 on the track-changes setting) we hold onto it until the next
44 paragraph. This takes care of accept and reject. For this we introduce
45 a new state which holds the ils from the previous para if necessary.
46 For `--track-changes=all`, we add an empty span with class
47 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
48 prior to the break to be inserted or deleted.
49 + Remove unused anchors (#3679). Docx produces a lot of anchors with
50 nothing pointing to them---we now remove these to produce cleaner
51 output. Note that this has to occur at the end of the process
52 because it has to follow link/anchor rewriting.
53 + Read multiple children of `w:sdtContents`.
54 + Combine adjacent anchors. There isn't any reason to have numerous
55 anchors in the same place, since we can't maintain docx's
56 non-nesting overlapping. So we reduce to a single anchor.
57 + Improved tests.
59 * Muse writer (Alexander Krotov): don't escape URIs from AST
61 * Docx writer:
63 + Removed redundant subtitle in title (Sebastian Talmon).
64 + `firstRow` table definition compatibility for Word 2016 (Sebastian
65 Talmon). Word 2016 seems to use a default value of "1" for table
66 headers, if there is no firstRow definition (although a default
67 value of 0 is documented), so all tables get the first Row formatted
68 as header. Setting the parameter to 0 if the table has no header
69 row fixes this for Word 2016
70 + Fix custom styles with spaces in the name (#3290).
72 * Powerpoint writer (Jesse Rosenthal):
74 + Ignore Notes div for parity with other slide outputs.
75 + Set default slidelevel correctly. We had previously defaulted to
76 slideLevel 2. Now we use the correct behavior of defaulting to the
77 highest level header followed by content. We change an expected test
78 result to match this behavior.
79 + Split blocks correctly for linked images.
80 + Combine adjacent runs.
81 + Make inline code inherit code size. Previously (a) the code size
82 wasn't set when we force size, and (b) the properties was set from
83 the default, instead of inheriting.
84 + Simplify `replaceNamedChildren` function.
85 + Allow linked images. The following markdown:
86 `[![Image Title](image.jpg)](http://www.example.com)`
87 will now produce a linked image in the resulting PowerPoint file.
88 + Fix error with empty table cell. We require an empty `<a:p>` tag,
89 even if the cell contains no paragraphs---otherwise PowerPoint
90 complains of corruption.
91 + Implement two-column slides. This uses the columns/column div
92 format described in the pandoc manual. At the moment, only two
93 columns (half the screen each) are allowed. Custom widths are not
94 supported.
95 + Added more tests.
97 * Lua filters (Albert Krewinkel):
99 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
100 + The current pandoc-types version is made available to Lua programs in
101 the global `PANDOC_API_VERSION`. It contains the version as a list of
102 numbers.
103 + The pandoc version available as a global `PANDOC_VERSION` (a list
104 of numbers).
105 + `data/pandoc.lua`: make `Attr` an `AstElement`.
106 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
107 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
108 not set a metatable on the returned value, which made it difficult
109 to amend objects of these types with new behavior. They are now
110 subtypes of AstElement, meaning that all their objects can gain
111 new features when a method is added to the behavior object
112 (e.g., `pandoc.Pandoc.behavior`).
113 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
114 between a type and the behavioral properties of an instance of that
115 type. The behavior of a type (and all its subtypes) can now be
116 amended by adding methods to that types `behavior` object, without
117 exposing the type objects internals. E.g.:
118 ```lua
119 pandoc.Inline.behavior.frob = function () print'42' end
120 local str = pandoc.Str'hello'
121 str.frob() -- outputs '42'
122 ```
123 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
124 of a given type (e.g., all inline elements) was difficult, as the
125 table used to lookup unknown methods would be reset every time a
126 new element of that type was created, preventing recursive property
127 lookup. This is was changed in that all methods and attributes of
128 supertypes are now available to their subtypes.
129 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
130 fields were named like the Haskell fields, not like the documented,
131 shorter version. The names are changed to match the documentation
132 and Citations are given a shared metatable to enable simple
133 extensibility.
134 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
135 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
136 difficult to handle failures while getting lists or a Map from Lua.
137 A bug in pandoc, which made it necessary to always pass a tag when
138 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
139 module's constructor functions for these values is now optional
140 (if still recommended).
141 + Stop exporting `pushPandocModule` (API change). The introduction
142 of `runPandocLua` renders direct use of this function obsolete.
143 + Update generation of module docs for lua filters.
144 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
145 MacFarlane). I'm sure this was intended in the first place,
146 but currently only `Meta` is supported.
148 * Improve benchmarks.
150 + Set the default extensions properly.
151 + Improve benchmark argument parsing. You can now say
152 `make bench BENCHARGS="markdown latex reader"` and both the
153 markdown and latex readers will be benchmarked.
155 * MANUAL.txt simplify and add more structure (Mauro Bieg).
157 * Generate README.md from template and MANUAL.txt.
158 `make README.md` will generate the README.md after changes
159 to MANUAL.txt have been made.
161 * Update copyright notices to include 2018 (Albert Krewinkel).
163pandoc (2.0.6)
165 * Added `jats` as an input format.
167 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
168 change) (Hamish Mackenzie).
169 + Improved citation handling in JATS reader. JATS citations
170 are now converted to pandoc citations, and JATS ref-lists
171 are converted into a `references` field in metadata, suitable
172 for use with pandoc-citeproc. Thus a JATS article with embedded
173 bibliographic information can be processed with pandoc and
174 pandoc-citeproc to produce a formatted bibliography.
176 * Allow `--list-extensions` to take an optional FORMAT argument.
177 This lists the extensions set by default for the selected FORMAT.
178 The extensions are now alphabetized, and the `+` or `-`
179 indicating the default setting comes before, rather than after,
180 the extension.
182 * Markdown reader:
184 + Preserve original whitespace between blocks.
185 + Recognize `\placeformula` as context.
186 + Be pickier about table captions. A caption starts with a `:` which
187 can't be followed by punctuation. Otherwise we can falsely interpret
188 the start of a fenced div, or even a table header line like
189 `:--:|:--:`, as a caption.
190 + Always use four space rule for example lists. It would be awkward
191 to indent example list contents to the first non-space character after
192 the label, since example list labels are often long. Thanks to
193 Bernhard Fisseni for the suggestion.
194 + Improve raw tex parsing. Note that the Markdown reader is also
195 affected by the `latex_macros` extension changes described below
196 under the LaTeX reader.
198 * LaTeX reader:
200 + `latex_macros` extension changes (#4179). Don't pass through macro
201 definitions themselves when `latex_macros` is set. The macros
202 have already been applied. If `latex_macros` is enabled, then
203 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
204 a macro definition, and will update pandoc's internal macro map
205 accordingly, but the empty string will be returned.
206 + Export `tokenize`, `untokenize` (API change).
207 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
208 + Refactored `inlineCommand`.
209 + Fix bug in tokenizer. Material following `^^` was
210 dropped if it wasn't a character escape. This only affected
211 invalid LaTeX, so we didn't see it in the wild, but it appeared
212 in a QuickCheck test failure.
213 + Fix regression in LateX tokenization (#4159). This mainly affects the
214 Markdown reader when parsing raw LaTeX with escaped spaces.
215 + Add tests of LaTeX tokenizer.
216 + Support `\foreignlanguage` from babel.
217 + Be more tolerant of `&` character (#4208). This allows us to parse
218 unknown tabular environments as raw LaTeX.
220 * Muse reader (Alexander Krotov):
222 + Parse anchors immediately after headings as IDs.
223 + Require that note references does not start with 0.
224 + Parse empty comments correctly.
226 * Org reader (Albert Krewinkel):
228 + Fix asterisks-related parsing error (#4180).
229 + Support minlevel option for includes (#4154). The level of headers
230 in included files can be shifted to a higher level by specifying a
231 minimum header level via the `:minlevel` parameter. E.g.
232 `#+include: "tour.org" :minlevel 1` will shift the headers in
233 tour.org such that the topmost headers become level 1 headers.
234 + Break-up org reader test file into multiple modules.
236 * OPML reader:
238 + Enable raw HTML and other extensions by default for notes
239 (#4164). This fixes a regression in 2.0. Note that extensions can
240 now be individually disabled, e.g. `-f opml-smart-raw_html`.
242 * RST reader:
244 + Allow empty list items (#4193).
245 + More accurate parsing of references (#4156). Previously we erroneously
246 included the enclosing backticks in a reference ID (#4156). This
247 change also disables interpretation of syntax inside references, as
248 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
250 * Docx reader:
252 + Continue lists after interruption (#4025, Jesse Rosenthal).
253 Docx expects that lists will continue where they left off after an
254 interruption and introduces a new id if a list is starting again. So
255 we keep track of the state of lists and use them to define a "start"
256 attribute, if necessary.
257 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
258 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
259 #4190).
261 * Plain writer:
263 + Don't linkify table of contents.
265 * RST writer:
267 + Fix anchors for headers (#4188). We were missing an `_`.
269 * PowerPoint writer (Jesse Rosenthal):
271 + Treat lists inside BlockQuotes as lists. We don't yet produce
272 incremental lists in PowerPoint, but we should at least treat lists
273 inside BlockQuotes as lists, for compatibility with other slide formats.
274 + Add ability to force size. This replaces the more specific
275 `blockQuote runProp`, which only affected the size of blockquotes. We
276 can use this for notes, etc.
277 + Implement notes. This currently prints all notes on a final slide.
278 Note that at the moment, there is a danger of text overflowing the
279 note slide, since there is no logic for adding further slides.
280 + Implement basic definition list functionality to PowerPoint writer.
281 + Don't look for default template file for Powerpoint (#4181).
282 + Add pptx to isTextFormat list. This is used to check standalone
283 and not writing to the terminal.
284 + Obey slide level option (Jesse Rosenthal).
285 + Introduce tests.
287 * Docx writer:
289 + Ensure that `distArchive` is the one that comes with pandoc
290 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
291 dir) would be used instead, and this could cause problems because a
292 user-modified docx sometimes lacks vital sections that we count
293 on the `distArchive` to supply.
295 * Org writer:
297 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
298 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
299 Alexander Krotov). Otherwise they can be interpreted as footnote
300 definitions.
302 * Muse writer (Alexander Krotov):
304 + Don't wrap note references to the next line (#4172).
306 * HTML writer:
308 + Use br elements in line blocks instead of relying on CSS
309 (#4162). HTML-based templates have had the custom CSS for
310 `div.line-block` removed. Those maintaining custom templates will want
311 to remove this too. We still enclose line blocks in a div with class
312 `line-block`.
314 * LaTeX writer:
316 + Use `\renewcommand` for `\textlatin` with babel (#4161).
317 This avoids a clash with a deprecated `\textlatin` command defined
318 in Babel.
319 + Allow fragile=singleslide attribute in beamer slides (#4169).
320 + Use `\endhead` after `\toprule` in headerless tables (#4207).
322 * FB2 writer:
324 + Add cover image specified by `cover-image` meta (Alexander Krotov,
325 #4195).
327 * JATS writer (Hamish Mackenzie):
329 + Support writing `<fig>` and `<table-wrap>` elements
330 with `<title>` and `<caption>` inside them by using Divs with class set
331 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
332 title is included as a Heading so the constraint on where Heading can
333 occur is also relaxed.
334 + Leave out empty alt attributes on links.
335 + Deduplicate image mime type code.
336 + Make `<p>` optional in `<td>` and `<th>` (#4178).
337 + Self closing tags for empty xref (#4187).
338 + Improve support for code language.
340 * Custom writer:
342 + Use init file to setup Lua interpreter (Albert Krewinkel).
343 The same init file (`data/init`) that is used to setup the Lua
344 interpreter for Lua filters is also used to setup the interpreter of
345 custom writers.lua.
346 + Define instances for newtype wrapper (Albert Krewinkel). The custom
347 writer used its own `ToLuaStack` instance definitions, which made
348 it difficult to share code with Lua filters, as this could result
349 in conflicting instances. A `Stringify` wrapper is introduced to
350 avoid this problem.
351 + Added tests for custom writer.
352 + Fixed definition lists and tables in `data/sample.lua`.
354 * Fixed regression: when target is PDF, writer extensions were being
355 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
356 did not work properly.
358 * Lua modules (Albert Krewinkel):
360 + Add `pandoc.utils` module, to hold utility functions.
361 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
362 define the `pandoc` lua module.
363 + Make a Haskell module for each Lua module. Move definitions for the
364 `pandoc.mediabag` modules to a separate Haskell module.
365 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
366 + Add function `pandoc.utils.hierarchicalize` (convert list of
367 Pandoc blocks into (hierarchical) list of Elements).
368 + Add function `pandoc.utils.normalize_date` (parses a date and
369 converts it (if possible) to "YYYY-MM-DD" format).
370 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
371 of numbers below 4000 into roman numerals).
372 + Add function `pandoc.utils.stringify` (converts any AST element
373 to a string with formatting removed).
374 + `data/init.lua`: load `pandoc.utils` by default
375 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
376 utility functions are converted from hybrid lua/haskell functions
377 into full Haskell functions. This avoids the need for intermediate
378 `_pipe`/`_read` helper functions, which have dropped.
379 + pandoc.lua: re-add missing MetaMap function. This was a bug
380 introduced in version 2.0.4.
382 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
383 a pure way to insert an ersatz file into a `FileTree`. In addition, we
384 normalize paths both on insertion and on lookup.
386 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
388 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
390 * Text.Pandoc.Extensions: Alphabetical order constructors for
391 `Extension`. This makes them appear in order in `--list-extensions`.
393 * Allow lenient decoding of latex error logs, which are not always
394 properly UTF8-encoded (#4200).
396 * Update latex template to work with recent versions of beamer.
397 The old template produced numbered sections with some recent
398 versions of beamer. Thanks to Thomas Hodgson.
400 * Updated reference.docx (#4175). Instead of just "Hello, world", the
401 document now contains exemplars of most of the styles that have an
402 effect on pandoc documents. This makes it easier to see the effect
403 of style changes.
405 * Removed `default.theme` data file (#4096). It is no longer needed now
406 that we have `--print-highlight-style`.
408 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
409 We still need this for the alpine static linux build, since
410 we don't have ghc 8.2.2 for that yet.
412 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
413 can put flag settings for pandoc-citeproc there.
415 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
416 make releases easier.
418 * MANUAL.txt:
420 + Add note on what formats have `+smart` by default.
421 + Use native syntax for custom-style (#4174, Mauro Bieg).
422 + Introduce dedicated Extensions section, since some extensions
423 affect formats other than markdown (Mauro Bieg, #4204).
424 + Clarify default html output for `--section-divs` (Richard Edwards).
426 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
427 Closes jgm/pandoc-website#16.
429 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
431pandoc (2.0.5)
433 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
434 generated with `--print-highlight-style` (#4133). Improve JSON
435 serialization of styles.
437 * Fix CSS issues involving line numbers (#4128).
438 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
439 Highlighting CSS no longer sets a generic color for pre and code; we only
440 set these for class `sourceCode`.
442 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
444 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
445 It works following the standard Pandoc conventions for making other
446 sorts of slides. Caveats:
448 + Syntax highlighting is not yet implemented. (This is difficult
449 because there are no character classes in Powerpoint.)
450 + Footnotes and Definition lists are not yet implemented. (Notes will
451 usually take the form of a final slide.
452 + Image placement and auto-resizing has a few glitches.
453 + Reference powerpoint files don't work dependably from the command
454 line. This will be implemented, but at the moment users are advised
455 to change themes from within Powerpoint.
457 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
458 This is for functions used by both Powerpoint and Docx writers.
460 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
462 * Add `empty_paragraphs` extension.
464 + Deprecate `--strip-empty-paragraphs` option. Instead we now
465 use an `empty_paragraphs` extension that can be enabled on
466 the reader or writer. By default, disabled.
467 + Add `Ext_empty_paragraphs` constructor to `Extension`.
468 + Revert "Docx reader: don't strip out empty paragraphs."
469 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
470 + Implement `empty_paragraphs` extension in docx reader and writer,
471 opendocument writer, HTML reader and writer.
472 + Add tests for `empty_paragraphs` extension.
474 * Markdown reader:
476 + Don't parse native div as table caption (#4119).
477 + Improved computation of column widths in pipe tables.
478 Pipe tables with lines longer than the text width (as set
479 by `--columns`) are now scaled to text width, with the relative
480 widths of columns determined by the ratios between the
481 header lines. Previously we computed column widths using
482 the ratio of header line lengths to column width, so that
483 tables with narrow header lines were extremely thin, which
484 was very rarely the desired result.
486 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
487 as long as it's not followed by a blank line. This has been fixed at the
488 tokenizer level.
490 * Muse reader (Alexander Krotov):
492 + Add test for `#disable-tables` directive in Emacs mode.
493 + Don't allow emphasis to be preceded by letter.
494 + Add underline support in Emacs Muse mode..
495 + Support multiline directives in Amusewiki mode
497 * Man writer: omit internal links (#4136). That is, just print the link
498 text without the URL.
500 * Markdown reader: accept processing instructions as raw HTML (#4125).
502 * Lua filters (Albert Krewinkel):
504 + Use script to initialize the interpreter. The file `init.lua` is
505 used to initialize the Lua interpreter which is used in Lua filters.
506 This gives users the option to require libraries which they want to
507 use in all of their filters, and to extend default modules.
508 + Fix package loading for Lua 5.1. The list of package searchers is
509 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
510 in Lua 5.2 and later.
511 + Refactor lua module handling. The integration with Lua's package/module
512 system is improved: A pandoc-specific package searcher is prepended to
513 the searchers in `package.searchers`. The modules `pandoc` and
514 `pandoc.mediabag` can now be loaded via `require`.
515 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
516 function which makes using Haskell functions as package loaders much
517 easier.
519 * reveal.js template: add title-slide identifier to title slide (#4120).
520 This allows it to be styled more easily.
522 * LaTeX template: Added support for `pagestyle` variable (#4135,
523 Thomas Hodgson)
525 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
526 error on linux).
529pandoc (2.0.4)
531 * Add `--print-highlight-style` option. This generates a JSON version
532 of a highlighting style, which can be saved as a `.theme` file, modified,
533 and used with `--highlight-style` (#4106, #4096).
535 * Add `--strip-empty-paragraphs` option. This works for any input format.
536 It is primarily intended for use with docx and odt documents where
537 empty paragraphs have been used for inter-paragraph spaces.
539 * Support `--webtex` for `gfm` output.
541 * Recognize `.muse` file extension.
543 * Support beamer `\alert` in LaTeX reader. Closes #4091.
545 * Docx reader: don't strip out empty paragraphs (#2252).
546 Users who have a conversion pipeline from docx may want to consider adding
547 `--strip-empty-paragraphs` to the command line.
549 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
551 * Muse reader (Alexander Krotov):
553 + Parse markup in definition list terms.
554 + Allow definition to end with EOF.
555 + Make code blocks round trip.
556 + Drop common space prefix from list items.
557 + Add partial round trip test.
558 + Don't interpret XML entities.
559 + Remove `nested`.
560 + Parse `~~` as non-breaking space in Emacs mode.
561 + Correctly remove indentation from notes. Exactly one space is
562 required and considered to be part of the marker.
563 + Allow list items to be empty.
564 + Add ordered list test.
565 + Add more multiline definition tests.
566 + Don't allow blockquotes within lists.
567 + Fix reading of multiline definitions.
568 + Add inline `<literal>` support.
569 + Concatenate inlines of the same type
571 * Docx writer: allow empty paragraphs (#2252).
573 * CommonMark/gfm writer:
575 + Use raw html for native divs/spans (#4113). This allows a pandoc
576 markdown native div or span to be rendered in gfm using raw html tags.
577 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
578 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
580 * Muse writer (Alexander Krotov):
582 + Test that inline math conversion result is normalized.
583 Without normalization this test produced
584 `<em>a</em><em>b</em><em>c</em>`.
585 + Improve inline list normalization and move to writer.
586 + Escape hash symbol.
587 + Escape `----` to avoid accidental horizontal rules.
588 + Escape only `</code>` inside code tag.
589 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
591 * LaTeX writer:
593 + Allow specifying just width or height for image size.
594 Previously both needed to be specified (unless the image was
595 being resized to be smaller than its original size).
596 If height but not width is specified, we now set width to
597 textwidth. If width but not height is specified, we now set
598 height to textheight. Since we have `keepaspectratio`, this
599 yields the desired result.
600 + Escape `~` and `_` in code with `--listings` (#4111).
602 * HTML writer: export `tagWithAttributes`. This is a helper allowing
603 other writers to create single HTML tags.
605 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
606 converting the case as needed in LaTeX and ConTeXt writers.
608 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
609 so that it no longer produces empty `Para`'s as an artifact.
611 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
612 This gives us automatic normalization, so we don't get
613 for example two consecutive Spaces.
615 * Include default CSS for 'underline' class in HTML-based templates.
617 * revealjs template: add `tex2jax` configuration for the
618 math plugin. With the next release of reveal.js, this will
619 fix the problem of `$`s outside of math contexts being
620 interpreted as math delimiters (#4027).
622 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
624 + Add basic lua List module (#4099, #4081). The List module is
625 automatically loaded, but not assigned to a global variable. It can be
626 included in filters by calling `List = require 'List'`. Lists of blocks,
627 lists of inlines, and lists of classes are now given `List` as a metatable,
628 making working with them more convenient. E.g., it is now possible to
629 concatenate lists of inlines using Lua's concatenation operator `..`
630 (requires at least one of the operants to have `List` as a metatable):
632 function Emph (emph)
633 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
634 return pandoc.Span(emph.content .. s)
635 end
637 The `List` metatable is assigned to the tables which get passed to
638 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
639 enables the use of the resulting objects as lists.
640 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
641 Pandoc and Meta elements are now pushed by calling the respective
642 constructor functions of the pandoc Lua module. This makes serialization
643 consistent with the way blocks and inlines are pushed to lua and allows
644 to use List methods with the `blocks` value.
645 + Add documentation for pandoc.List in `lua-filters.md`.
647 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
648 `&` (but not a valid entity) following them (#4094, #4088).
650 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
651 when `numberLines` is used (#4103).
653 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
654 requiring a leading 0 on single-digit days.
656 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
657 Bieg, #4095).
659 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
660 Previously we only mentioned `--latexmathml`, even if `-m` was
661 used.
663 * Changelog: fix description of lua filters in 2.0 release
664 (Albert Krewinkel). Lua filters were initially run *after* conventional
665 (JSON) filters. However, this was changed later to make it easier to deal
666 with files in the mediabag. The changelog is updated to describe that
667 feature of the 2.0 release correctly.
669 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
670 #4085). This reduces compile time and memory usage significantly.
672 * `lua-filters.md`: Added tikz filter example.
674 * Create alternative zip file for macOS binaries.
676 * Create alternative zip file for Windows binaries.
678 * Update INSTALL.md since we now provide zips for binaries.
680 * Relax `http-types` dependency (Justus Sagemüller, #4084).
682 * Add `epub.md`, `getting-started.md` to docs. These used to live in
683 the website repo.
685 * Add `packages` target to Makefile.
687 * Bump bounds for binary, http-types, tasty-hunit
689pandoc (2.0.3)
691 * Lua filters: preload text module (Albert Krewinkel, #4077).
692 The `text` module is preloaded in lua. The module contains some UTF-8
693 aware string functions, implemented in Haskell. The module is loaded on
694 request only, e.g.:
696 text = require 'text'
697 function Str (s)
698 s.text = text.upper(s.text)
699 return s
700 end
702 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
703 #4071). Attribute lists are represented as associative lists in Lua. Pure
704 associative lists are awkward to work with. A metatable is attached to
705 attribute lists, allowing to access and use the associative list as if
706 the attributes were stored in as normal key-value pair in table.
707 Note that this changes the way `pairs` works on attribute lists. Instead
708 of producing integer keys and two-element tables, the resulting iterator
709 function now returns the key and value of those pairs. Use `ipairs` to
710 get the old behavior. Warning: the new iteration mechanism only works if
711 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
713 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
714 This fixes a bug where pandoc would stop parsing a URI with an
715 empty attribute: for example, `&a=&b=` wolud stop at `a`.
716 (The uri parser tries to guess which punctuation characters
717 are part of the URI and which might be punctuation after it.)
719 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
721 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
722 `WriterOptions`.
723 + Reimplemented `isEnabled` function from `Options.hs` to accept both
724 `ReaderOptions` and `WriterOptions`.
725 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
727 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
728 behavior for `muse`. New `Ext_amuse` constructor for
729 `Extension`. Note: this is switched on by default; for
730 Emacs behavior, use `muse-amuse`.
732 * Muse reader (Alexander Krotov):
734 + Count only one space as part of list item marker.
735 + Produce SoftBreaks on newlines. Now wrapping can be preserved
736 with `--wrap=preserve`.
737 + Add Text::Amuse footnote extensions. Footnote end is indicated by
738 indentation, so footnotes can be placed anywhere in the text,
739 not just at the end of it.
740 + Accept Emacs Muse definition lists when `-amuse`.
741 Emacs Muse does not require indentation.
743 * HTML reader:
745 + Ensure we don't produce level 0 headers (#4076), even for chapter
746 sections in epubs. This causes problems because writers aren't set
747 up to expect these.
748 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
749 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
750 `markdown` or `html` `+tex_math_single_backslash`.
751 + Parse div with class `line-block` as LineBlock.
752 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
754 * MANUAL: clarify that math extensions work with HTML.
755 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
756 will work with HTML as well as Markdown.
758 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
759 #4067).
761 * RST reader: better support for 'container' directive (#4066).
762 Create a div, incorporate name attribute and classes.
764 * LaTeX reader:
766 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
767 `rr`. We now expand it like a macro.
768 + Allow optional args for parbox (#4056).
769 + Allow optional arguments on `\footnote` (#4062).
771 * EPUB writer: Fixed path for cover image (#4069). It was previously
772 `media/media/imagename`, and should have been `media/imagename`.
774 * Markdown writer: fix bug with doubled footnotes in grid tables
775 (#4061).
777 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
778 Otherwise we seem to get an error; biblatex wants polyglossia
779 language to be defined.
781 * Added examples to lua filters documentation.
784pandoc (2.0.2)
786 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
787 `--mimetex`, `--jsmath`.
789 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
790 leading to invalid XML in default JATS output with pandoc-citeproc.
792 * `lua-filters.md`: use real-world man page filter as example.
794 * Add lua filter functions `walk_inline` and `walk_block`
795 in the pandoc module, to apply filters inside particular
796 inline and block elements.
798 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
799 into new internal module `Text.Pandoc.Lua.Filter`.
801 * Markdown reader:
803 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
804 This brings our handling of them into alignment with CommonMark's.
805 + Fix YAML metadata with "chomp" (`|-`). Previously if a
806 YAML block under `|-` contained a blank line, pandoc would
807 not parse it as metadata.
809 * Removed `etc.` from abbreviations file. Often `etc.` ends a
810 sentence, and we want the period to be treated as a
811 sentence-ending period.
813 * Fix regression with `--metadata` (#4054). Values specified with
814 `--metadata` should replace a metadata value set in the document
815 itself, rather than creating a list including a new value.
817 * EPUB writer:
819 + Fix EPUB OCF structure. #3720 had been improperly implemented.
820 + Fix modified paths for raw HTML tags (src, poster, etc.)
821 (#4050, #4055). This had not been updated for the new EPUB
822 container layout, with a separate text/ subdirectory.
823 + Fix image paths with empty `--epub-subdirectory`.
825 * Miscellaneous code cleanup (Alexander Krotov).
827 * Use pandoc-types 1.17.3, which adds `Walkable` instances
828 for `[Block] Block` and `[Inline] Inline`.
830 * Remove obsolete `stack.full.yaml` (#4052).
832 * Change to using pandoc-citeproc 0.12.1 in binary packages.
834 * Consolidate math output method documentation (#4049, Mauro Bieg).
836 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
838 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
839 Haskell filters. This is easier and faster.
841 * Improved `INSTALL.md`.
843 * Update commands to extract deb archive on Linux (#4043, Salim B).
846pandoc (2.0.1.1)
848 * Improved fix to #3989 (parsing of HTML tags containing
849 `>` in an attribute or comment). The previous fix (in 2.0.1) only
850 worked in certain cases.
852 * FB2 writer (Alexander Krotov):
854 + Add `unrecognised` genre to `<title-info>`
855 (Alexander Krotov). XML schema requires at least one genre.
856 + Remove `<annotation>` from `<body>`.
858 * CommonMark writer: fix strikethrough for `gfm` (#4038).
860 * Use texmath 0.10, which adds support for a wider range of
861 symbols and fixes default column alignments in MathML
862 and OMML.
864 * Highlighting fixes, using skylighting 0.4.3.2:
866 + Fix invalid CSS.
867 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
868 + Ensure that code lines don't get duplicate identifiers (#4031).
869 The line identifiers are built using the code block's identifier
870 as a prefix. If the code block has null identifier, we use
871 `cb1`, `cb2`, etc.
873 * Added a few abbreviations to `data/abbreviations`,
874 and sorted the list (#3984, Wandmalfarbe).
876 * Improved support for columns in HTML writer (#4028).
878 + Remove `width` attribute from the `div`.
879 + Remove space between `<div class="column">` elements,
880 since this prevents columns whose widths sum to 100%
881 (the space takes up space).
882 + Move as much as possible of the CSS to the template.
883 + Ensure that all the HTML-based templates (including epub)
884 contain the CSS for columns.
885 + Columns default to 50% width unless they are given a width
886 attribute. So if you want two equal-width columns, you
887 can use a div with class `column` and no `width` attribute.
889 * SelfContained: use `base64` for css links with media attribute (#4026).
890 This fixes `--self-contained` with S5.
892 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
894 * Issue INFO, not WARNING, when a .sty file cannot be
895 read in LaTeX reader. It is normally not an issue requiring
896 a fix from the user if .sty files are not found.
898 * INSTALL.md: MacOS instructions needed xar -f (adam234).
900 * MANUAL.txt:
902 + Clarify that --setext-headers doesn't affect gfm output (#4035).
903 + Clarify what is needed to open and close a div in `fenced_divs`
904 (#4039, Tristano Ajmone).
905 + Removed reference to `default.beamer` in docs (#4024).
906 Also added mention of other templates affecting PDF output
907 with different settings.
909pandoc (2.0.1)
911 * Fixed regression in parsing of HTML comments in markdown and other
912 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
913 The parser stopped at the first `>` character, even if it wasn't
914 the end of the comment.
916 * Creole reader (Sascha Wilde):
918 + Fix some minor typos and formatting.
919 + Add additional test on nowiki-block after para.
920 + Fix lists with trailing white space.
922 * LaTeX reader: handle `%` comment right after command.
923 For example, `\emph%`.
925 * Markdown reader: make sure fenced div closers work in lists.
926 Previously the following failed:
928 ::: {.class}
929 1. one
930 2. two
931 :::
933 and you needed a blank line before the closing `:::`.
935 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
936 enabled, Divs will be rendered as fenced divs.
938 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
939 (#4016).
941 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
942 Note: this change may require some changes in CSS rules.
943 `footnoteRef` has become `footnote-ref`, `titleslide` has
944 become `title-slide`, and `footnoteBack` has become `footnote-back`.
946 * JATS writer: Properly pass through author metadata (#4020).
948 * FB2 writer (Alexander Krotov):
950 + Write blocks outside of `<p>` in definitions.
951 + Make bullet lists consistent with ordered lists, repeating
952 the marker for the outer list rather than indenting sublists,
953 since indentation does not work in readers.
954 + Add new style FB2 tests.
956 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
957 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
958 to 'cm'.
960 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
962 * Fix broken reference links in manual (Andrew Dunning, #4014)
964 * Fixed example of slide columns structure in changelog (#4015).
965 Also documented this feature in MANUAL.txt.
968pandoc (2.0.0.1)
970 * EPUB writer:
972 + Fixed filepaths for nonstandard epub-subdirectory values.
973 + Ensure that epub2 is recognized as a non-text format,
974 so that a template is used.
975 + Don't include "prefix" attribute for ibooks for epub2.
976 It doesn't validate.
977 + Fix stylesheet paths; previously we had an incorrect
978 stylesheet path for the cover page and nav page.
980 * LaTeX reader:
982 + Insert space when needed in macro expansion (#4007).
983 Sometimes we need to insert a space after a control sequence
984 to prevent it merging with a following letter.
985 + Allow unbraced arguments for macros (#4007).
986 + Allow body of macro definition to be unbraced (#4007).
988 * Linux package build: ensure that pandoc-citeproc is statically linked.
990 * trypandoc: add native, ms.
992pandoc (2.0)
994 [new features]
996 * New output format `ms` (groff ms). Complete support, including
997 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
998 texmath's new eqn writer to convert math to eqn format, so a ms file
999 produced with this writer should be processed with `groff -ms -e` if
1000 it contains math.
1002 * New output format `jats` (Journal Article Tag Suite). This is an XML
1003 format used in archiving and publishing articles. Note that a
1004 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
1005 unless a stylesheet is specified using `--css`.
1007 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
1008 This uses bindings to GitHub's fork of cmark, so it should parse
1009 gfm exactly as GitHub does (excepting certain postprocessing
1010 steps, involving notifications, emojis, etc.). `markdown_github`
1011 has been deprecated in favor of `gfm`.
1013 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
1015 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
1016 This uses bindings to GitHub's fork of cmark. `markdown_github`
1017 has been deprecated in favor of `gfm`.
1019 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
1021 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
1023 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
1024 Note that there is a new data file, `data/vimwiki.css`, which can
1025 be used to display the HTML produced by this reader and
1026 pandoc's HTML writer in the style of vimwiki's own HTML
1027 export.
1029 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
1031 * New syntax for Divs, with `fenced_divs` extension enabled by
1032 default (#168). This gives an attractive, plain-text way to create
1033 containers for block-level content.
1035 * Added new syntax for including raw content in any output format,
1036 enabled by the `raw_attribute` extension (which is on by default
1037 for `markdown` and `multimarkdown`). The syntax is the same as
1038 for fenced code blocks or code inlines, only with `{=FORMAT}` for
1039 attributes, where `FORMAT` is the name of the output format
1040 (e.g., `ms`, `html`).
1042 * Implement multicolumn support for slide formats (#1710).
1043 The structure expected is:
1045 :::::::::::::: {.columns}
1046 ::: {.column width="40%"}
1047 contents...
1048 :::
1049 ::: {.column width="60%"}
1050 contents...
1051 :::
1052 ::::::::::::::
1054 Support has been added for beamer and all HTML slide formats.
1056 * Allows line comments in templates, beginning with `$--` (#3806).
1057 (Requires doctemplates 0.2.1.)
1059 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
1060 (Stefan Dresselhaus, #3663, #2097).
1062 * Add `--log` option to save log messages in JSON format to a file (#3392).
1064 * Add `--request-header` option, to set request headers when pandoc
1065 makes HTTP requests to fetch external resources. For example:
1066 `--request-header User-Agent:blah`.
1068 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
1069 option works like `--filter` but takes pathnames of special lua filters
1070 and uses the lua interpreter baked into pandoc, so that no external
1071 interpreter is needed. Note that lua filters are all applied before
1072 regular filters, regardless of their position on the command line.
1073 For documentation of lua filters, see `doc/lua-filters.md`.
1075 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
1076 This contains a JSON representation of `ReaderOptions`, so filters
1077 can access it.
1079 * Support creation of pdf via groff `ms` and pdfroff.
1080 `pandoc -t ms -o output.pdf input.txt`.
1082 * Support for PDF generation via HTML and `weasyprint` or `prince`
1083 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
1085 * Added `--epub-subdirectory` option (#3720). This specifies the
1086 subdirectory in the OCF container that holds the EPUB specific content.
1087 We now put all EPUB related content in an `EPUB/` subdirectory by default
1088 (later this will be configurable).
1090 ```
1091 mimetype
1092 META-INF/
1093 com.apple.ibooks.display-options.xml
1094 container.xml
1095 EPUB/ <<--configurable-->>
1096 fonts/ <<--static-->>
1097 font.otf
1098 media/ <<--static-->>
1099 cover.jpg
1100 fig1.jpg
1101 styles/ <<--static-->>
1102 stylesheet.css
1103 content.opf
1104 toc.ncx
1105 text/ <<--static-->>
1106 ch001.xhtml
1107 ```
1109 * Added `--resource-path=SEARCHPATH` command line option (#852).
1110 SEARCHPATH is separated by the usual character, depending on OS
1111 (: on unix, ; on windows). Default resource path is just working
1112 directory. However, the working directory must be explicitly
1113 specified if the `--resource-path` option is used.
1115 * Added --abbreviations=FILE option for custom abbreviations file
1116 (#256). Default abbreviations file (`data/abbreviations`) contains
1117 a list of strings that will be recognized by pandoc's
1118 Markdown parser as abbreviations. (A nonbreaking space will
1119 be inserted after the period, preventing a sentence space in
1120 formats like LaTeX.) Users can override the default by putting a file
1121 abbreviations in their user data directory (`~/.pandoc` on *nix).
1123 * Allow a theme file as argument to `--highlight-style`.
1124 Also include a sample, `default.theme`, in `data/`.
1126 * Allow `--syntax-definition` option for dynamic loading of syntax
1127 highlighting definitions (#3334).
1129 * Lists in `markdown` by default now use the CommonMark variable
1130 nesting rules (#3511). The indentation required for a block-level
1131 item to be included in a list item is no longer fixed, but is
1132 determined by the first line of the list item. To be included in
1133 the list item, a block must be indented to the level of the first
1134 non-space content after the list marker. Exception: if are 5 or more
1135 spaces after the list marker, then the content is interpreted as an
1136 indented code block, and continuation paragraphs must be indented
1137 two spaces beyond the end of the list marker. See the CommonMark
1138 spec for more details and examples.
1140 Documents that adhere to the four-space rule should, in most cases,
1141 be parsed the same way by the new rules. Here are some examples
1142 of texts that will be parsed differently:
1144 - a
1145 - b
1147 will be parsed as a list item with a sublist; under the four-space
1148 rule, it would be a list with two items.
1150 - a
1152 code
1154 Here we have an indented code block under the list item, even though it
1155 is only indented six spaces from the margin, because it is four spaces
1156 past the point where a continuation paragraph could begin. With the
1157 four-space rule, this would be a regular paragraph rather than a code
1158 block.
1160 - a
1162 code
1164 Here the code block will start with two spaces, whereas under
1165 the four-space rule, it would start with `code`. With the four-space
1166 rule, indented code under a list item always must be indented eight
1167 spaces from the margin, while the new rules require only that it
1168 be indented four spaces from the beginning of the first non-space
1169 text after the list marker (here, `a`).
1171 This change was motivated by a slew of bug reports from people
1172 who expected lists to work differently (#3125, #2367, #2575, #2210,
1173 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
1174 of CommonMark (now used by GitHub, for example). Those who
1175 prefer the old behavior can use `-f markdown+four_space_rule`.
1177 * Added `four_space_rule` extension. This triggers the old pandoc
1178 parsing rule for content nested under list items (the "four space
1179 rule").
1181 * Added `spaced_reference_links` extension (#2602). It allows whitespace
1182 between the two parts of a reference link: e.g.
1184 [a] [b]
1186 [b]: url
1188 This was previously enabled by default; now it is now forbidden by default.
1190 * Add `space_in_atx_header` extension (#3512). This is enabled by default
1191 in pandoc and GitHub markdown but not the other flavors.
1192 This requires a space between the opening #'s and the header
1193 text in ATX headers (as CommonMark does but many other implementations
1194 do not). This is desirable to avoid falsely capturing things like
1196 #hashtag
1198 or
1200 #5
1202 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
1203 #3431).
1205 * Allow ibooks-specific metadata in epubs (#2693). You can now have
1206 the following fields in your YAML metadata, and it will be treated
1207 appropriately in the generated EPUB:
1209 ```
1210 ibooks:
1211 version: 1.3.4
1212 specified-fonts: false
1213 ipad-orientation-lock: portrait-only
1214 iphone-orientation-lock: landscape-only
1215 binding: true
1216 scroll-axis: vertical
1217 ```
1220 [behavior changes]
1222 * Reader functions no longer presuppose that CRs have been
1223 stripped from the input. (They strip CRs themselves, before
1224 parsing, to simplify the parsers.)
1226 * Added support for translations (localization) (#3559).
1227 Currently this only affects the LaTeX reader, for things
1228 like `\figurename`. Translation data files for 46 languages
1229 can be found in `data/translations`.
1231 * Make `--ascii` work with DocBook output too.
1233 * Rename `--latex-engine` to `--pdf-engine`,
1234 and `--latex-engine-opt` to `--pdf-engine-opt`.
1236 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
1237 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
1238 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
1239 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
1241 * With `--filter` R filters are now recognized, even if they are
1242 not executable (#3940, #3941, Andrie de Vries).
1244 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
1246 * Make epub an alias for epub3, not epub2.
1248 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
1249 Multiple stylesheets may be used. Stylesheets will be taken both from
1250 `--css` and from the `stylesheet` metadata field (which can contain
1251 either a file path or a list of them).
1253 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
1254 The argument was for a bridge JavaScript that used to be necessary
1255 in 2004. We have removed the script already.
1257 * `--katex` improvements. The latest version is used, and the
1258 autoload script is loaded by default.
1260 * Change MathJax CDN default since old one is shutting down (#3544).
1261 Note: The new URL requires a version number, which we'll have
1262 to update manually in subsequent pandoc releases in order to
1263 take advantage of mathjax improvements.
1265 * `--self-contained`: don't incorporate elements with `data-external="1"`
1266 (#2656). You can leave an external link as it is by adding the attribute
1267 data-external="1" to the element. Pandoc will then not try to
1268 incorporate its content when `--self-contained` is used. This is
1269 similar to a feature already supported by the EPUB writer.
1271 * Allow `--extract-media` to work with non-binary input formats
1272 (#1583, #2289). If `--extract-media` is supplied with a non-binary
1273 input format, pandoc will attempt to extract the contents of all
1274 linked images, whether in local files, data: uris, or external uris.
1275 They will be named based on the sha1 hash of the contents.
1277 * Make `papersize: a4` work regardless of the case of `a4`.
1278 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
1280 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
1282 * Underlined elements are now treated consistently by readers
1283 (#2270, hftf); they are always put in a Span with class `underline`.
1284 This allows the user to treat them differently from other emphasis,
1285 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
1286 have been changed.
1288 * Improved behavior of `auto_identifiers` when there are explicit ids
1289 (#1745). Previously only autogenerated ids were added to the list
1290 of header identifiers in state, so explicit ids weren't taken
1291 into account when generating unique identifiers. Duplicated
1292 identifiers could result. This simple fix ensures that explicitly given
1293 identifiers are also taken into account.
1295 * Use `table-of-contents` for contents of toc, make `toc` a boolean
1296 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
1297 This allows you to set `toc: true` in the metadata; this
1298 previously produced strange results in some output formats.
1299 For backwards compatibility, `toc` is still set to the
1300 toc contents. But it is recommended that you update templates
1301 to use `table-of-contents` for the toc contents and `toc`
1302 for a boolean flag.
1304 * Change behavior with binary format output to stdout.
1305 Previously, for binary formats, output to stdout was disabled
1306 unless we could detect that the output was being piped (and not
1307 sent to the terminal). Unfortunately, such detection is not
1308 possible on Windows, leaving windows users no way to pipe binary
1309 output. So we have changed the behavior in the following way:
1311 + Output to stdout is allowed when it can be determined that
1312 the output is being piped (on non-Windows platforms).
1313 + If the `-o` option is not used, binary output is never sent
1314 to stdout by default; instead, an error is raised.
1315 + If `-o -` is used, binary output is sent to stdout, regardless
1316 of whether it is being piped. This works on Windows too.
1318 * Better error behavior: uses of `error` have been replaced by
1319 raising of `PandocError`, which can be trapped and handled by the
1320 calling program.
1322 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
1323 GitHub has two Markdown modes, one for long-form documents like READMEs
1324 and one for short things like issue coments. In issue comments, a line
1325 break is treated as a hard line break. In README, wikis, etc., it is
1326 treated as a space as in regular Markdown. Since pandoc is more likely to
1327 be used to convert long-form documents from GitHub Markdown,
1328 `-hard_line_breaks` is a better default.
1330 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
1332 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
1333 Previously they would be transmitted to the template without any
1334 escaping. Note that `--M title='*foo*'` yields a different result from
1336 ---
1337 title: *foo*
1338 ---
1340 In the latter case, we have emphasis; in the former case, just
1341 a string with literal asterisks (which will be escaped
1342 in formats, like Markdown, that require it).
1344 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
1346 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
1347 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
1348 it is valid HTML5. HTML4 is not affected. This will allow us to use
1349 custom attributes in pandoc without producing invalid HTML. (With help
1350 from Wandmalfarbe, #3817.)
1352 * Plain writer: improved super/subscript rendering. We now
1353 handle more non-digit characters for which there are
1354 sub/superscripted unicode characters. When unicode
1355 sub/superscripted characters are not available, we use
1356 `_(..)` or `^(..)` (#3518).
1358 * Docbook, JATS, TEI writers: print INFO message when omitting interior
1359 header (#3750). This only applies to section headers inside list items,
1360 e.g., which were otherwise silently omitted.
1362 * Change to `--reference-links` in Markdown writer (#3701). With
1363 `--reference-location` of `section` or `block`, pandoc will now repeat
1364 references that have been used in earlier sections. The Markdown
1365 reader has also been modified, so that *exactly* repeated references
1366 do not generate a warning, only references with the same label but
1367 different targets. The idea is that, with references after every block,
1368 one might want to repeat references sometimes.
1370 * ODT/OpenDocument writer:
1372 + Support `lang` attribute (#1667).
1373 + Added support for `--toc` (#2836). Thanks to @anayrat.
1375 * Docx writer:
1377 + `lang` meta, see #1667 (Mauro Bieg, #3515).
1378 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
1379 + Use `Table` rather than `Table Normal` for table style (#3275).
1380 `Table Normal` is the default table style and can't be modified.
1381 + Pass through comments (#2994). We assume that comments are defined as
1382 parsed by the docx reader:
1384 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
1385 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
1386 have a comment <span class="comment-end" id="0"></span>on it.
1388 We assume also that the id attributes are unique and properly
1389 matched between comment-start and comment-end.
1390 + Bookmark improvements. Bookmark start/end now surrounds content rather
1391 than preceding it. Bookmarks generated for Div with id
1392 (jgm/pandoc-citeproc#205).
1393 + Add `keywords` metadata to docx document properties (Ian).
1395 * RST writer: support unknown interpreted text roles by
1396 parsing them as `Span` with `role` attributes (#3407). This
1397 way they can be manipulated in the AST.
1399 * HTML writer:
1401 + Line block: Use class instead of style attribute (#1623). We now
1402 issue `<div class="line-block">` and include a default definition
1403 for `line-block` in the default templates, instead of hard-coding a
1404 `style` on the div.
1405 + Add class `footnoteBack` to footnote back references (Timm Albers).
1406 This allows for easier CSS styling.
1407 + Render SmallCaps as span with smallcaps class (#1592), rather than
1408 using a style attribute directly. This gives the user more flexibility
1409 in styling small caps in CSS.
1410 + With reveal.js we use `data-src` instead of `src` for images for
1411 lazy loading.
1412 + Special-case `.stretch` class for images in reveal.js (#1291).
1413 Now in reveal.js, an image with class `stretch` in a paragraph
1414 by itself will stretch to fill the whole screen, with no
1415 caption or figure environment.
1417 * Added warnings for non-rendered blocks to writers.
1419 * Writers now raise an error on template failure.
1421 * When creating a PDF via LaTeX, warn if the font is missing some
1422 characters (#3742).
1424 * Remove initial check for PDF-creating program (#3819).
1425 Instead, just try running it and raise the exception if it
1426 isn't found at that point. This improves things for users of Cygwin
1427 on Windows, where the executable won't be found by `findExecutable`
1428 unless `.exe` is added. The same exception is raised as before, but
1429 at a later point.
1431 * Readers issue warning for duplicate header identifiers (#1745).
1432 Autogenerated header identifiers are given suffixes so as not to clash
1433 with previously used header identifiers. But they may still coincide with
1434 an explicit identifier that is given for a header later in the document,
1435 or with an identifier on a div, span, link, or image. We now issue
1436 a warning in this case, so users can supply an explicit identifier.
1438 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
1439 and `raw_html` extensions.
1441 * Markdown reader:
1443 + Don't allow backslash + newline to affect block structure (#3730).
1444 Note that as a result of this change, the following, which formerly
1445 produced a header with two lines separated by a line break, will
1446 now produce a header followed by a paragraph:
1448 # Hi\
1449 there
1451 This may affect some existing documents that relied on
1452 this undocumented and unintended behavior. This change makes pandoc
1453 more consistent with other Markdown implementations, and with itself
1454 (since the two-space version of a line break doesn't work inside ATX
1455 headers, and neither version works inside Setext headers).
1458 * Org reader (Albert Krewinkel, unless noted):
1460 + Support `table.el` tables (#3314).
1461 + Support macros (#3401).
1462 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
1463 Recognized include types are `example`, `export`, `src`, and
1464 normal org file inclusion. Advanced features like line numbers
1465 and level selection are not implemented yet.
1466 + Interpret more meta value as inlines. The values of the following
1467 meta variables are now interpreted using org-markup instead of
1468 treating them as pure strings: `keywords` (comma-separated list of
1469 inlines), `subtitle` (inline values), `nocite` (inline values, can
1470 be repeated).
1471 + Support `\n` export option (#3940). This turns all newlines in the
1472 text into hard linebreaks.
1474 * RST reader:
1476 + Improved admonition support (#223). We no longer add an
1477 `admonition` class, we just use the class for the type of admonition,
1478 `note` for example. We put the word corresponding to the label in
1479 a paragraph inside a `Div` at the beginning of the admonition with
1480 class `admonition-title`. This is about as close as we can get to
1481 RST's own output.
1482 + Initial support of `.. table` directive. This allows adding captions
1483 to tables.
1484 + Support `.. line-block` directive. This is deprecated but may still
1485 be in older documents.
1486 + Support scale and align attributes of images (#2662).
1487 + Implemented implicit internal header links (#3475).
1488 + Support RST-style citations (#853). The citations appear at the end
1489 of the document as a definition list in a special div with id
1490 `citations`. Citations link to the definitions.
1491 + Recurse into bodies of unknown directives (#3432).
1492 In most cases it's better to preserve the content than
1493 to emit it. This isn't guaranteed to have good results;
1494 it will fail spectacularly for unknown raw or verbatim directives.
1495 + Handle chained link definitions (#262). For example,
1497 .. _hello:
1498 .. _goodbye: example.com
1500 Here both `hello` and `goodbye` should link to `example.com`.
1501 + Support anchors (#262). E.g.
1503 `hello`
1505 .. _hello:
1507 paragraph
1509 This is supported by putting "paragraph" in a `Div` with id `hello`.
1510 + Support `:widths:` attribute for table directive.
1511 + Implement csv-table directive (#3533). Most attributes are supported,
1512 including `:file:` and `:url:`.
1513 + Support unknown interpreted text roles by parsing them as Span
1514 with "role" attributes (#3407). This way they can be manipulated in
1515 the AST.
1517 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
1519 * LaTeX reader:
1521 + Implemented `\graphicspath` (#736).
1522 + Properly handle column prefixes/suffixes. For example, in
1523 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
1524 each cell will be interpreted as if it has a `$`
1525 before its content and a `$` after (math mode).
1526 + Handle komascript `\dedication` (#1845). It now adds a
1527 `dedication` field to metadata. It is up to the user to supply
1528 a template that uses this variable.
1529 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
1530 `sf`, `bf` (#3488). Spans with a class are used when there is
1531 nothing better.
1532 + Expand `\newenvironment` macros (#987).
1533 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
1534 + Better support for subfigure package (#3577).
1535 A figure with two subfigures turns into two pandoc
1536 figures; the subcaptions are used and the main caption
1537 ignored, unless there are no subcaptions.
1538 + Add support for \vdots (Marc Schreiber, #3607).
1539 + Add basic support for hyphenat package (Marc Schreiber, #3603).
1540 + Add basic `\textcolor` support (Marc Schreiber).
1541 + Add support for `tabularx` environment (Marc Schreiber, #3632).
1542 + Better handling of comments inside math environments (#3113).
1543 This solves a problem with commented out `\end{eqnarray}` inside
1544 an eqnarray (among other things).
1545 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
1546 is selected (#3692). Otherwise skip with a warning. This is better
1547 than trying to parse it as text!
1548 + Add `\colorbox` support (Marc Schreiber).
1549 + Set identifiers on Spans used for `\label`.
1550 + Have `\setmainlanguage` set `lang` in metadata.
1551 + Support etoolbox's `\ifstrequal`.
1552 + Support `plainbreak`, `fancybreak` et al from the memoir class
1553 (bucklereed, #3833).
1554 + Support `\let`. Also, fix regular macros so they're expanded at the
1555 point of use, and NOT also the point of definition. `\let` macros,
1556 by contrast, are expanded at the point of definition. Added an
1557 `ExpansionPoint` field to `Macro` to track this difference.
1558 + Support simple `\def` macros. Note that we still don't support
1559 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
1560 + Support \chaptername, \partname, \abstractname, etc. (#3559,
1561 obsoletes #3560).
1562 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
1563 attributes, so they can be handled in filters (Marc Schreiber, #3639)
1564 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
1565 #3589). Acronyms are not resolved by the reader, but acronym and
1566 glossary information is put into attributes on Spans so that they
1567 can be processed in filters.
1568 + Use `Link` instead of `Span` for `\ref`. This makes more sense
1569 semantically and avoids unnecessary `Span [Link]` nestings when
1570 references are resolved.
1571 + Rudimentary support for `\hyperlink`.
1572 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
1573 + Support `\lq`, `\rq`.
1574 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
1575 (#3853).
1576 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
1577 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
1578 + Support `\k` ogonek accent.
1579 + Improve handling of accents. Handle ogonek, and fall back correctly
1580 with forms like `\"{}`.
1581 + Better support for ogonek accents.
1582 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
1583 + Support for `xspace` (Marc Schreiber, #3797).
1584 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
1585 and `\figurename`.
1586 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
1587 level 0 headers, and parts as level -1 headers. After parsing, we
1588 check for the lowest header level, and if it's less than 1 we bump
1589 everything up so that 1 is the lowest header level. So `\part` will
1590 always produce a header; no command-line options are needed.
1591 + Add block version of `\textcolor` (Marc Schreiber).
1592 + `\textcolor` works as inline and block command (Marc Schreiber).
1593 + `\textcolor` will be parse as span at the beginning of a paragraph
1594 (Marc Schreiber).
1595 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
1596 + Improved handling of include files in LaTeX reader (#3971).
1597 Previously `\include` wouldn't work if the included file
1598 contained, e.g., a begin without a matching end.
1599 + Support `\expandafter` (#3983).
1600 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
1601 as a synonym for `\newcommand`.
1602 + Handle `\lettrine` (Mauro Bieg).
1604 * Math improvements due to updates in texmath:
1606 + Improved handling of accents and upper/lower delimiters.
1607 + Support for output in GNU eqn format (used with *roff).
1608 + Allow `\boldsymbol` + a token without braces, and similarly
1609 with other styling commands.
1610 + Improve parsing of `\mathop` to allow multi-character operator names.
1611 + Add thin space after math operators when "faking it with
1612 unicode."
1614 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
1615 instance for `a -> [a]` (pandoc-types). Note that behavior
1616 will be slightly different, since `bottomUp`'s treatment of
1617 a function `[a] -> [a]` is to apply it to each sublist of a
1618 list, while walk applies it only to maximal sublists.
1619 Usually the latter behavior is what is wanted, and the
1620 former can be simulated when needed. But there may be
1621 existing filters that need to be rewritten in light of the
1622 new behavior. Performance should be improved.
1624 * There are some changes to syntax highlighting due to revisions
1625 in the `skylighting` library:
1627 + Support for `powershell` has been added, and many syntax
1628 definitions have been updated.
1629 + Background colors have been added to the `kate` style.
1630 + The way highlighted code blocks are formatted in HTML has
1631 been changed (David Baynard), in ways that may require
1632 changes in hard-coded CSS affecting highlighting.
1633 (If you haven't included hard-coded highlighting CSS in
1634 your template, you needn't change anything.)
1637 [API changes]
1639 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
1640 This contains definitions of the `PandocMonad` typeclass, the
1641 `PandocIO` and `PandocPure` monads, and associated functions.
1643 * Changed types of all writers and readers.
1645 + We now use `Text` instead of `String` in the interface (#3731).
1646 (We have not yet changed the internals of most readers to work
1647 with `Text`, but making this change in the API now opens up a
1648 path to doing that.)
1649 + The result is now of form `m a` with constraint `PandocMonad m`.
1650 Readers and writers can be combined to form monadic values which
1651 can be run using either `runIO` or `runPure`. If `runIO` is used,
1652 then both readers and writers will be able to do IO when needed
1653 (for include files, for example); if `runPure` is used,
1654 then the functions are pure and will not touch IO.
1655 + Where previously you used
1656 `writeRST def (readMarkdown def "[foo](url)")`, now you
1657 would use
1658 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
1660 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
1661 contains reader helper functions formerly defined in the
1662 top-level `Text.Pandoc` module.
1664 + Changed `StringReader` -> `TextReader`.
1665 + `getReader` now returns a pair of a reader and
1666 `Extensions`, instead of building the extensions into the
1667 reader (#3659). The calling code must explicitly set
1668 `readerExtensions` using the `Extensions` returned. The
1669 point of the change is to make it possible for the calling
1670 code to determine what extensions are being used.
1672 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
1673 This contains writer helper functions formerly defined in the
1674 top-level `Text.Pandoc` module.
1676 + Changed `StringWriter` -> `TextWriter`.
1677 + `getWriter` now retuns a pair of a reader and
1678 `Extensions`, instead of building the extensions into the
1679 reader (#3659). The calling code must explicitly set
1680 `readerExtensions` using the `Extensions` returned. The
1681 point of the change is to make it possible for the calling
1682 code to determine what extensions are being used.
1684 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
1685 #3514).
1687 * New module `Text.Pandoc.App`. This abstracts out the functionality
1688 of the command line program (`convertWithOpts`), so it can be reproduced
1689 e.g. in a desktop or web application. Instead of exiting, we throw errors
1690 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
1691 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
1692 The module also exports some utility functions for parsing options
1693 and running filters.
1695 * New module `Text.Pandoc.Logging` (exported module) (#3392).
1696 This now contains the `Verbosity` definition previously in
1697 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
1698 eventually be used instead of raw strings for warnings. This will enable
1699 us, among other things, to provide machine-readable warnings if desired.
1700 Include ToJSON instance and showLogMessage. This gives us the possibility
1701 of both machine-readable and human-readable output for log messages.
1703 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
1705 * New module `Text.Pandoc.Translations`, exporting `Term`,
1706 `Translations`, `readTranslations`.
1708 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
1709 `TokType`, `Line`, `Column`.
1711 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
1713 * Expose some previously private modules (#3260). These are often
1714 helpful to people writing their own reader or writer modules:
1716 + `Text.Pandoc.Writers.Shared`
1717 + `Text.Pandoc.Parsing`
1718 + `Text.Pandoc.Asciify`
1719 + `Text.Pandoc.Emoji`
1720 + `Text.Pandoc.ImageSize`
1721 + `Text.Pandoc.Highlighting`
1723 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
1724 Extension parsing and processing functions were defined in the top-level
1725 `Text.Pandoc` module. These functions are moved to the Extensions
1726 submodule as to enable reuse in other submodules.
1728 * Add `Ext_raw_attribute` constructor for `Extension`.
1730 * Add `Ext_fenced_divs` constructor for `Extension'.
1732 * Add `Ext_four_space_rule` constructor in `Extension`.
1734 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
1736 * Add `Monoid` instance for `Extensions`.
1738 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
1740 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
1742 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
1744 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
1746 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
1748 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
1750 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
1752 * Export `setVerbosity` from `Text.Pandoc`.
1754 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
1756 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
1758 * `Text.Pandoc.UTF8`:
1760 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
1761 Define `toString`, `toStringLazy` in terms of them.
1762 + Add new functions parameterized on `Newline`: `writeFileWith`,
1763 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
1765 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
1767 * `Text.Pandoc.Highlighting`:
1769 + `highlighting` now returns an Either rather than Maybe.
1770 This allows us to display error information returned by the skylighting
1771 library. Display a warning if the highlighting library throws an error.
1772 + Add parameter for `SyntaxMap` to `highlight`.
1774 * `Text.Pandoc.Writers.Math`:
1776 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
1777 we only need to update these in one place.
1779 * `Text.Pandoc.SelfContained`:
1781 + Removed `WriterOptions` parameter from `makeSelfContained`.
1782 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
1783 the need to pass MediaBag around and improves exceptions. It also
1784 opens up the possibility of using makeSelfContained purely.
1785 + Export `makeDataURI`.
1787 * `Text.Pandoc.ImageSize`:
1789 + Export `lengthToDim`, new function `scaleDimension`.
1790 + Export `inEm` from ImageSize (#3450).
1791 + Change `showFl` and `show` instance for `Dimension` so
1792 extra decimal places are omitted.
1793 + Added `Em` as a constructor of `Dimension`.
1794 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
1796 * `Text.Pandoc.Templates`:
1798 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
1799 and raises a proper `PandocTemplateError` if there are problems, rather
1800 than failing with uncatchable `error`.
1801 + Change signature of `getDefaultTemplate`. Now it runs in any instance
1802 of `PandocMonad`, and returns a `String` rather than an `Either` value.
1803 And it no longer takes a `datadir` parameter, since this can be
1804 retrieved from `CommonState`.
1806 * `Text.Pandoc.Options`:
1808 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
1809 The EPUB writer now takes its EPUB subdirectory from this option.
1810 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
1811 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
1812 + Add `writerSyntaxMap` to `WriterOptions`.
1813 + Removed `writerEpubStylesheet` from `WriterOptions`.
1814 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
1815 in `CommonState` in `PandocMonad` instances. (And thus it can be used
1816 by readers too.)
1817 + Changed `writerEpubMetadata` to a `Maybe String`.
1818 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
1819 the `latex_macros` reader extension.
1820 + FromJSON/ToJSON instances for `ReaderOptions`.
1821 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
1822 one string (for the KaTeX base URL), rather than two.
1823 + Removed `writerSourceURL` from `WriterOptions`. We now use
1824 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
1826 * `Text.Pandoc.Shared`:
1828 + `tabFilter` now takes a `Text`, not `String`.
1829 + `openURL`: Changed type from an Either. Now it will just raise
1830 an exception to be trapped later.
1831 + Remove `normalizeSpaces` (#1530).
1832 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
1833 + Export a new function `crFilter`.
1834 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
1835 + Provide custom `isURI` that rejects unknown schemes.
1836 (Albert Krewinkel, #2713). We also export the set of known
1837 `schemes`. The new function replaces the function of the same name
1838 from `Network.URI`, as the latter did not check whether a scheme is
1839 well-known. All official IANA schemes (as of 2017-05-22) are
1840 included in the set of known schemes. The four non-official schemes
1841 `doi`, `isbn`, `javascript`, and `pmid` are kept.
1842 + Remove `err`.
1843 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
1844 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
1845 where they are defined in terms of `PandocMonad`
1846 primitives and have different signatures.
1847 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
1848 + Add `underlineSpan`.
1850 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
1852 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
1853 With the new API one can simply use `getLog` after running
1854 the reader.
1856 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
1857 and `rawLaTeXBlock`. (Both now return a `String`, and they are
1858 polymorphic in state.)
1861 [bug fixes and under-the-hood improvements]
1863 * TEI writer: Added identifiers on `<div>` elements.
1865 * DokuWiki reader: Better handling for code block in list item (#3824).
1867 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
1869 * ZimWiki writer: Removed internal formatting from note and table cells,
1870 because ZimWiki does not support it (Alex Ivkin, #3446).
1872 * MediaWiki writer:
1874 + Updated list of syntax highlighting languages (#3461).
1875 Now `r` gets you `<source>` rather than `<code>` (among others).
1876 + Add display attribute on `<math>` tags (#3452). This allows display
1877 math to be rendered properly.
1878 + Remove newline before `</ref>` (#2652).
1879 + Don't softbreak lines inside list items (#3531).
1881 * Org writer:
1883 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
1884 + Add unit tests (Alexander Krotov).
1885 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
1886 + Do not strip `#` from Org anchor links (Alexander Krotov).
1888 * CommonMark writer:
1890 + Avoid excess blank lines at end of output.
1891 + Prefer pipe tables to HTML tables even if it means losing relative
1892 column width information (#3734).
1893 + Support table, strikethrough extensions, when enabled (as with gfm).
1894 Note that we bypass the commonmark writer from cmark and construct our
1895 own pipe tables, with better results.
1896 + Properly support `--wrap=none`.
1897 + Use smallcaps class for `SmallCaps` (#1592).
1898 + Omit "fig:" prefix in image titles. This is used internally to
1899 indicate internal figures.
1901 * RST writer:
1903 + Properly handle table captions.
1904 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
1905 + Implemented `+/-smart` and improved escaping with `+smart`.
1906 + Add empty comments when needed to avoid including a blockquote
1907 in the indented content of a preceding block (#3675).
1908 + Improve grid table output, fix bug with empty rows (#3516).
1909 Uses the new `gridTable` in Writers.Shared, which is here
1910 improved to better handle 0-width cells.
1911 + Remove space at beginning/end of RST code span (#3496). Otherwise
1912 we get invalid RST. There seems to be no way to escape the space.
1913 + Add header anchors when header has non-standard id (#3937).
1914 + Correctly handle inline code containing backticks, using a `:literal:`
1915 role (#3974).
1916 + Don't backslash-escape word-internal punctuation (#3978).
1918 * Markdown writer:
1920 + Don't include variables in metadata blocks. Previously variables set
1921 on the command line were included in e.g. YAML metadata, contrary to
1922 documentation and intentions.
1923 + Improved escaping with `+smart`.
1924 + Fixed grid tables embedded in grid tables (#2834).
1925 + Use span with class 'smallcaps' for SmallCaps, instead of a style
1926 attribute as before (#1592).
1927 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
1928 extension is enabled (#3454). Otherwise in a document starting with
1929 a literal `%` the first line is wrongly interpreted as a title.
1930 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
1931 properly escape things that would otherwise start ordered lists,
1932 such as
1934 ---
1935 title: 1. inline
1936 ...
1937 + Better handling of tables with empty columns (#3337). We now
1938 calculate the number of columns based on the longest row (or the
1939 length of aligns or widths).
1940 + Escape unordered list markers at beginning of paragraph (#3497), to
1941 avoid false interpretation as a list.
1942 + Escape `|` appropriately.
1943 + Ensure space before list at top level (#3487).
1944 + Avoid spurious blanklines at end of document after tables and list,
1945 for example.
1946 + Fixed bugs in simple/multiline list output (#3384).
1947 Previously we got overlong lists with `--wrap=none`. This is fixed.
1948 Previously a multiline list could become a simple list (and would
1949 always become one with `--wrap=none`).
1950 + Don't emit a simple table if `simple_tables` disabled (#3529).
1951 + Case-insensitive reference links (David A Roberts, #3616).
1952 Ensure that we do not generate reference links whose labels differ only
1953 by case. Also allow implicit reference links when the link
1954 text and label are identical up to case.
1955 + Put space before reference link definitions (Mauro Bieg, #3630).
1956 + Better escaping for links (David A. Roberts, #3619). Previously the
1957 Markdown writer would sometimes create links where there were none
1958 in the source. This is now avoided by selectively escaping bracket
1959 characters when they occur in a place where a link might be created.
1960 + Added missing `\n` (David A. Roberts, #3647).
1961 + Fixed duplicated reference links with `--reference-links`
1962 and `--reference-location=section` (#3674). Also ensure that there
1963 are no empty link references `[]`.
1964 + Avoid inline surround-marking with empty content (#3715).
1965 E.g. we don't want `<strong></strong>` to become `****`.
1966 Similarly for emphasis, super/subscript, strikeout.
1967 + Don't allow soft break in header (#3736).
1968 + Make sure `plain`, `markdown_github`, etc. work for raw.
1969 Previously only `markdown` worked. Note: currently a raw block labeled
1970 `markdown_github` will be printed for any `markdown` format.
1971 + Ensure that `+` and `-` are escaped properly so they don't cause
1972 spurious lists (#3773). Previously they were only
1973 if succeeded by a space, not if they were at end of line.
1974 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
1975 even if the table has relative width information (#3734).
1976 + Markdown writer: don't crash on `Str ""`.
1977 + Make `Span` with null attribute transparent. That is, we don't use
1978 brackets or `<span>` tags to mark spans when there are no attributes;
1979 we simply output the contents.
1980 + Escape pipe characters when `pipe_tables` enabled (#3887).
1981 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
1982 we backslash escape these. Otherwise we use entities as before.
1983 + When writing plain, don't use `&nbsp;` to separate list and indented
1984 code. There's no need for it in this context, since this isn't to be
1985 interpreted using Markdown rules.
1986 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
1987 HTML links containing classes originally now preserve them when using
1988 JavaScript email obfuscation.
1989 + Render `SmallCaps` as a native span when `native_spans` are enabled.
1990 + Always write attributes with `bracketed_spans` (d-dorazio).
1992 * Man writer:
1994 + Fix handling of nested font commands (#3568). Previously pandoc emitted
1995 incorrect markup for bold + italic, for example, or bold + code.
1996 + Avoid error for definition lists with no definitions (#3832).
1998 * DocBook writer:
2000 + Fix internal links with `writerIdentifierPrefix opt`
2001 (#3397, Mauro Bieg).
2003 * Docx writer:
2005 + Don't include bookmarks on headers unless non-null id (#3476).
2006 + Support 9 levels of headers (#1642).
2007 + Allow 9 list levels (#3519).
2008 + Don't take `distArchive` from datadir (#3322). The docx writer takes
2009 components from the distribution's version of `reference.docx` when it
2010 can't find them in a user's custom `reference.docx`. Previously, we
2011 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
2012 to be used as the distribution's reference.docx. This led to a
2013 bizarre situation where pandoc would produce a good docx using
2014 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
2015 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
2016 + Fixed handling of soft hyphen (0173) (#3691).
2017 + Better handling of keywords (#3719).
2018 + Cleaner code for handling dir and style attributes for `Div`.
2019 + Use `Set` for dynamic styles to avoid duplicates.
2020 + Removed redundant element from data/docx/word/numbering.xml.
2021 The elements we need are generated when the document is
2022 compiled; this didn't do anything.
2023 + Activate `evenAndOddHeaders` from reference docx (#3901,
2024 Augustín Martín Barbero).
2026 * ODT/OpenDocument writer:
2028 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
2029 + Use more widely available bullet characters (#1400). The old
2030 characters weren't available in some font sets. These seem to work
2031 well on Windows and Linux versions of LibreOffice.
2032 + Wider labels for lists (#2421). This avoids overly narrow labels for
2033 ordered lists with `()` delimiters. However, arguably it creates
2034 overly wide labels for bullets. Also, lists now start flush with
2035 the margin, rather than indented.
2036 + Fixed dropped elements in some ordered lists (#2434).
2038 * FB2 writer:
2040 + Don't render `RawBlock` as code.
2041 + Don't fail with an error on interior headers (e.g. in list) (#3750).
2042 Instead, omit them with an INFO message.
2043 + Add support for "lang" metadata (Alexander Krotov, #3625).
2044 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
2045 produced one paragraph with `<empty-line/>` elements, which are not
2046 allowed inside `<p>` according to FB2 schema.
2047 + Replace `concatMap` with `cMap` (Alexander Krotov).
2048 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
2049 Krotov, #4004)
2051 * HTML writer:
2053 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
2054 + Render raw inline environments when `--mathjax` used (#3816).
2055 We previously did this only with raw blocks, on the assumption
2056 that math environments would always be raw blocks. This has changed
2057 since we now parse them as inline environments.
2058 + Ensure we don't get two style attributes for width and height.
2059 + Report when not rendering raw inline/block.
2060 + Issue warning if no title specified and template used (#3473).
2061 + Info message if `lang` is unspecified (#3486).
2062 + Removed unused parameter in `dimensionsToAttributeList`.
2063 + Avoid two class attributes when adding `uri` class (#3716).
2064 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
2065 Bieg).
2066 + Use revealjs's math plugin for mathjax (#3743). This is a thin
2067 wrapper around mathjax that makes math look better on revealjs.
2068 + Slidy: use h1 for all slides, even if they were originally
2069 level 2 headers (#3566). Otherwise the built-in table of contents
2070 in Slidy breaks.
2072 * LaTeX writer:
2074 + Don't render LaTeX images with data: URIs (#3636). Note that
2075 `--extract-media` can be used when the input contains data: URIs.
2076 + Make highlighted code blocks work in footnotes (Timm Albers).
2077 + Don't use figure inside table cell (#3836).
2078 + Use proper code for list enumerators (#3891). This should fix problems
2079 with lists that don't use arabic numerals.
2080 + Always add hypertarget when there's a non-empty identifier (#2719).
2081 Previously the hypertargets were only added when there was actually
2082 a link to that identifier.
2083 + Use `%` after hypertarget before code block.
2084 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
2085 fixes formatting problems in beamer citations).
2086 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
2087 of item disappear or are misplaced. Use `\texttt` instead.
2088 + Fix problem with escaping in `lstinline` (#1629). Previously the
2089 LaTeX writer created invalid LaTeX when `--listings` was specified and
2090 a code span occured inside emphasis or another construction.
2091 + Fix error with line breaks after empty content (#2874). LaTeX
2092 requires something before a line break, so we insert a `~` if no
2093 printable content has yet been emitted.
2094 + Use BCP47 parser.
2095 + Fixed detection of otherlangs (#3770). We weren't recursing into
2096 inline contexts.
2097 + Handle language in inline code with `--listings` (#3422).
2098 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
2099 The textcomp package allows pdfLaTeX to parse `€` directly, making the
2100 `\euro` command unneeded.
2101 + Fixed footnotes in table captions (#2378). Note that if the table has
2102 a first page header and a continuation page header, the notes will
2103 appear only on the first occurrence of the header.
2104 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
2105 Previously you could link to a header above or below slide level but
2106 not *to* slide level. This commit changes that. Hypertargets are
2107 inserted inside frame titles; technically the reference is to just
2108 after the title, but in normal use (where slides are viewed full
2109 screen in a slide show), this does not matter.
2110 + Remove `\strut` at beginning of table cells (#3436). This fixes a
2111 problem with alignment of lists in table cells. The `\strut` at the
2112 end seems to be enough to avoid the too-close spacing that motivated
2113 addition of the strut in #1573.
2114 + Add partial siunitx Support (Marc Schreiber, #3588).
2116 * ConTeXt writer:
2118 + Refactored to use BCP47 module.
2119 + Remove unnecessary `$` (Alexander Krotov, #3482).
2120 + Use header identifiers for chapters (#3968).
2122 * EPUB writer:
2124 + `title_page.xhtml` is now put in `text/`.
2125 + Don't strip formatting in TOC (#1611).
2127 * Textile reader:
2129 + Fix bug for certain links in table cells (#3667).
2130 + Allow 'pre' code in list item (#3916).
2132 * HTML reader:
2134 + Added warnings for ignored material (#3392).
2135 + Better sanity checks to avoid parsing unintended things as
2136 raw HTML in the Markdown reader (#3257).
2137 + Revise treatment of `li` with `id` attribute (#3596). Previously we
2138 always added an empty div before the list item, but this created
2139 problems with spacing in tight lists. Now we do this: If the list
2140 item contents begin with a `Plain` block, we modify the `Plain`
2141 block by adding a `Span` around its contents. Otherwise, we add a
2142 `Div` around the contents of the list item (instead of adding an
2143 empty `Div` to the beginning, as before).
2144 + Add `details` tag to list of block tags (#3694).
2145 + Removed `button` from block tag list (#3717). It is already in the
2146 `eitherBlockOrInlineTag` list, and should be both places.
2147 + Use `Set`s instead of lists for block tag lookup.
2148 + Rewrote to use `Text` throughout. Effect on memory usage is modest
2149 (< 10%).
2150 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
2151 #3765).
2152 + Ensure that paragraphs are closed properly when the parent block
2153 element closes, even without `</p>` (#3794).
2154 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
2155 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
2156 `<main>` closes `<p>` and behaves like a block element generally
2157 + Support column alignments (#1881). These can be set either
2158 with a `width` attribute or with `text-width` in a `style` attribute.
2159 + Modified state type to be an instance of `HasLogMessages`, so
2160 `registerHeader` can issue warnings.
2161 + `</td>` or `</th>` should close any open block tag (#3991).
2162 + `<td>` should close an open `<th>` or `<td>`.
2163 + `htmlTag` improvements (#3989). We previously failed on cases
2164 where an attribute contained a `>` character. This patch fixes the
2165 bug, which especially affects raw HTML in Markdown.
2167 * Txt2Tags reader:
2169 + Newline is not indentation (Alexander Krotov).
2171 * MediaWiki reader:
2173 + Allow extra hyphens after `|-` in tables (#2649).
2174 + Allow blank line after table start (#2649).
2175 + Fixed more table issues (#2649).
2176 + Ensure that list starts begin at left margin (#2606). Including when
2177 they're in tables or other list items.
2178 + Make smart double quotes depend on `smart` extension (#3585).
2179 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
2180 + Modified state type to be an instance of `HasLogMessages`, so
2181 `registerHeader` can issue warnings.
2183 * TWiki reader (Alexander Krotov):
2185 + Remove unnecessary `$` (#3597).
2186 + Simplify `linkText` (#3605).
2188 * EPUB reader:
2190 + Minor refactoring, avoiding explicit MediaBag handling.
2191 This all works behind the scenes in CommonState plumbing.
2193 * Docx reader:
2195 + Don't drop smartTag contents (#2242).
2196 + Handle local namespace declarations (#3365). Previously we didn't
2197 recognize math, for example, when the xmlns declaration occured on
2198 the element and not the root.
2199 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
2200 does the work of `normalizeSpaces` as well, so we avoid the need for
2201 that function here.
2202 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
2203 paragraphs styled with "HeadingN" as "nth-level header." But if a
2204 document has a custom style named "Heading0", this will produce a
2205 0-level header, which shouldn't exist. We only parse this style
2206 if N>0. Otherwise we treat it as a normal style name, and
2207 follow its dependencies, if any.
2208 + Add tests for avoiding zero-level header (Jesse Rosenthal).
2210 * ODT reader:
2212 + Replaced `collectRights` with Rights from `Data.Either`.
2213 + Remove dead code (Albert Krewinkel).
2215 * Org reader (Albert Krewinkel, unless noted).
2217 + Don't allow tables inside list items (John MacFarlane, #3499).
2218 + Disallow tables on list marker lines (#3499).
2219 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
2220 + Allow emphasized text to be followed by `[` (#3577).
2221 + Handle line numbering switch for src blocks.
2222 The line-numbering switch that can be given to source blocks (`-n` with
2223 an start number as an optional parameter) is parsed and translated to a
2224 class/key-value combination used by highlighting and other readers and
2225 writers.
2226 + Stop adding rundoc prefix to src params. Source block parameter names
2227 are no longer prefixed with `rundoc`. This was intended to simplify
2228 working with the rundoc project, a babel runner. However, the rundoc
2229 project is unmaintained, and adding those markers is not the reader's
2230 job anyway. The original language that is specified for a source
2231 element is now retained as the `data-org-language` attribute and only
2232 added if it differs from the translated language.
2233 + Allow multi-word arguments to src block params (#3477). The reader now
2234 correctly parses src block parameter list even if parameter arguments
2235 contain multiple words.
2236 + Avoid creating `nullMeta` by applying `setMeta` directly
2237 (Alexander Krotov).
2238 + Replace `sequence . map` with `mapM`.
2239 + Fix smart parsing behavior. Parsing of smart quotes and special
2240 characters can either be enabled via the `smart` language extension or
2241 the `'` and `-` export options. Smart parsing is active if either the
2242 extension or export option is enabled. Only smart parsing of special
2243 characters (like ellipses and en and em dashes) is enabled by default,
2244 while smart quotes are disabled. Previously, all smart parsing was
2245 disabled unless the language extension was enabled.
2246 + Subject full doc tree to headline transformations (Albert Krewinkel,
2247 #3695). Emacs parses org documents into a tree structure, which is
2248 then post-processed during exporting. The reader is changed to do the
2249 same, turning the document into a single tree of headlines starting
2250 at level 0.
2251 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
2252 cite keys included special characters also at the end. This caused
2253 problems when citations occur right before colons or at the end of
2254 a sentence. With this change, all non alphanumeric characters at
2255 the end of a cite key are ignored. This also adds `,` to the list
2256 of special characters that are legal in cite keys to better mirror
2257 the behaviour of org-export.
2258 + Fix module names in haddock comments. Copy-pasting had lead to
2259 haddock module descriptions containing the wrong module names.
2260 + Recognize babel result blocks with attributes (#3706). Babel
2261 result blocks can have block attributes like captions and names.
2262 Result blocks with attributes were not recognized and were parsed
2263 as normal blocks without attributes.
2264 + Include tags in headlines. The Emacs default is to include tags in the
2265 headline when exporting. Instead of just empty spans, which contain the
2266 tag name as attribute, tags are rendered as small caps and wrapped in
2267 those spans. Non-breaking spaces serve as separators for multiple tags.
2268 + Respect export option for tags (#3713). Tags are appended to
2269 headlines by default, but will be omitted when the `tags` export option
2270 is set to nil.
2271 + Use `tag-name` attribute instead of `data-tag-name`.
2272 + Use `org-language` attribute rather than `data-org-language`.
2273 + Modified state type to be an instance of `HasLogMessages`, so
2274 `registerHeader` can issue warnings.
2275 + End footnotes after two blank lines. Footnotes can not only be
2276 terminated by the start of a new footnote or a header, but also by two
2277 consecutive blank lines.
2278 + Update emphasis border chars (#3933). The org reader was updated to
2279 match current org-mode behavior: the set of characters which are
2280 acceptable to occur as the first or last character in an org emphasis
2281 have been changed and now allows all non-whitespace chars at the
2282 inner border of emphasized text (see `org-emphasis-regexp-components`).
2284 * RST reader:
2286 + Fixed small bug in list parsing (#3432). Previously the parser didn't
2287 handle properly this case:
2289 * - a
2290 - b
2291 * - c
2292 - d
2293 + Handle multiline cells in simple tables (#1166).
2294 + Parse list table directive (Keiichiro Shikano, #3432).
2295 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
2296 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
2297 + Reorganize block parsers for ~20% faster parsing.
2298 + Fixed `..include::` directive (#3880).
2299 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
2300 Previously pandoc would sometimes combine two line blocks separated
2301 by blanks, and ignore trailing blank lines within the line block.
2302 + Fix indirect hyperlink targets (#512).
2304 * Markdown reader:
2306 + Allow attributes in reference links to start on next line (#3674).
2307 + Parse YAML metadata in a context that sees footnotes defined in
2308 the body of the document (#1279).
2309 + When splitting pipe table cells, skip tex math (#3481).
2310 You might have a `|` character inside math. (Or for that matter
2311 something that the parser might mistake for raw HTML.)
2312 + Treat span with class `smallcaps` as SmallCaps.
2313 This allows users to specify small caps in Markdown this way:
2314 `[my text]{.smallcaps}` (#1592).
2315 + Fixed internal header links (#2397).
2316 This patch also adds `shortcut_reference_links` to the list
2317 of mmd extensions.
2318 + Treat certain environments as inline
2319 when they occur without space surrounding them (#3309, #2171).
2320 E.g. equation, math. This avoids incorrect vertical space
2321 around equations.
2322 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
2323 + Allow latex macro definitions indented 1-3 spaces.
2324 Previously they only worked if nonindented.
2325 + Improved parsing of indented raw HTML blocks (#1841).
2326 Previously we inadvertently interpreted indented HTML as
2327 code blocks. This was a regression. We now seek to determine the
2328 indentation level of the contents of an HTML block, and (optionally)
2329 skip that much indentation. As a side effect, indentation may be
2330 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
2331 used. This is better than having things interpreted as indented
2332 code blocks.
2333 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
2334 + Warn for notes defined but not used (#1718).
2335 + Use `anyLineNewline` (Alexander Krotov).
2336 + Interpret YAML metadata as Inlines when possible (#3755). If
2337 the metadata field is all on one line, we try to interpret it as
2338 Inlines, and only try parsing as Blocks if that fails. If it
2339 extends over one line (including possibly the `|` or `>` character
2340 signaling an indented block), then we parse as Blocks. This was
2341 motivated by some German users finding that `date: '22. Juin 2017'`
2342 got parsed as an ordered list.
2343 + Fixed spurious parsing as citation as reference def (#3840).
2344 We now disallow reference keys starting with `@` if the
2345 `citations` extension is enabled.
2346 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
2347 Previously only `[-@roe]` (with brackets) was recognized as
2348 suppress-author, and `-@roe` was treated the same as `@roe`.
2349 + Fixed parsing of fenced code after list when there is no intervening
2350 blank line (#3733).
2351 + Allow raw latex commands starting with `\start` (#3558). Previously
2352 these weren't allowed because they were interpreted as starting
2353 ConTeXt environments, even without a corresponding `\stop`...
2354 + Added `inlines`, `inlines1`.
2355 + Require nonempty alt text for `implicit_figures` (#2844).
2356 A figure with an empty caption doesn't make sense.
2357 + Removed texmath macro material; now all this is handled
2358 in the LaTeX reader functions.
2359 + Fixed bug with indented code following raw LaTeX (#3947).
2361 * LaTeX reader:
2363 + Rewrote LaTeX reader with proper tokenization (#1390,
2364 #2118, #3236, #3779, #934, #982). This rewrite is primarily
2365 motivated by the need to get macros working properly. A side benefit
2366 is that the reader is significantly faster. We now tokenize the
2367 input text, then parse the token stream. Macros modify the token
2368 stream, so they should now be effective in any context, including
2369 math. Thus, we no longer need the clunky macro processing
2370 capacities of texmath.
2371 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
2372 + Allow `\newcommand\foo{blah}` without braces.
2373 + Support `\lstinputlisting` (#2116).
2374 + Issue warnings when skipping unknown latex commands (#3392).
2375 + Include contents of `\parbox`.
2376 + Allow `\hspace` and `\vspace` to count as raw block or inline.
2377 Previously we would refuse to parse anything as raw inline if
2378 it was in the `blockCommands` list. Now we allow exceptions
2379 if they're listed under ignoreInlines in inlineCommands.
2380 This should make it easier e.g. to include an `\hspace`
2381 between two side-by-side raw LaTeX tables.
2382 + Don't drop contents of `\hypertarget`.
2383 + Handle spaces before `\cite` arguments.
2384 + Allow newpage, clearpage, pagebreak in inline contexts as well as
2385 block contexts (#3494).
2386 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
2387 + Use `pMacroDefinition` in macro (for more direct parsing).
2388 Note that this means that `macro` will now parse one
2389 macro at a time, rather than parsing a whole group together.
2390 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
2391 commands are parsed as raw if `+raw_tex`; otherwise, their argument
2392 is parsed as a bracketed string.
2393 + Don't crash on empty `enumerate` environment (#3707).
2394 + Handle escaped `&` inside table cell (#3708).
2395 + Handle block structure inside table cells (#3709). `minipage` is no
2396 longer required.
2397 + Handle some width specifiers on table columns (#3709). Currently
2398 we only handle the form `0.9\linewidth`. Anything else would have
2399 to be converted to a percentage, using some kind arbitrary assumptions
2400 about line widths.
2401 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
2402 LaTeX reader's treatment of raw commands, but it also affects the
2403 Markdown reader.
2404 + Fixed regression with starred environment names (#3803).
2405 + Handle optional args in raw `\titleformat` (#3804).
2406 + Improved heuristic for raw block/inline. An unknown command at the
2407 beginning of the line that could be either block or inline is
2408 treated as block if we have a sequence of block commands followed by
2409 a newline or a `\startXXX` command (which might start a raw ConTeXt
2410 environment).
2411 + Don't remove macro definitions from the output, even if
2412 `Ext_latex_macros` is set, so that macros will be applied.
2413 Since they're only applied to math in Markdown, removing the macros
2414 can have bad effects. Even for math macros, keeping them should be
2415 harmless.
2416 + Removed `macro`. It is no longer necessary, since the
2417 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
2418 the need for a separate `latexMacro` parser in the Markdown reader.
2419 + Use `label` instead of `data-label` for label in caption (#3639).
2420 + Fixed space after \figurename etc.
2421 + Resolve references to section numbers.
2422 + Fix `\let\a=0` case, with single character token.
2423 + Allow `@` as a letter in control sequences. `@` is commonly used
2424 in macros using `\makeatletter`. Ideally we'd make the tokenizer
2425 sensitive to `\makeatletter` and `\makeatother`, but until then this
2426 seems a good change.
2427 + Track header numbers and correlate with labels.
2428 + Allow `]` inside group in option brackets (#3857).
2429 + lstinline with braces can be used (verb cannot be used with braces)
2430 (Marc Schreiber, #3535).
2431 + Fix keyval funtion: pandoc did not parse options in braces correctly
2432 (Marc Schreiber, #3642).
2433 + When parsing raw LaTeX commands, include trailing space (#1773).
2434 Otherwise things like `\noindent foo` break and turn into
2435 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
2436 formats that allow `raw_tex`).
2437 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
2438 `\texttt` contexts.
2439 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
2440 + Allow space before `=` in bracketd options (Ben Firshman).
2441 + Be more forgiving in parsing command options. This was needed, for
2442 example, to make some minted options work.
2443 + Strip off quotes in `\include` filenames.
2445 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
2447 * `Text.Pandoc.PDF`:
2449 + Got `--resource-path` working with PDF output (#852).
2450 + Fetch images when generating PDF via context (#3380).
2451 To do this, we create the temp directory as a subdirectory
2452 of the working directory. Since context mk IV by default looks
2453 for images in the parent directory, this works.
2454 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
2455 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
2456 This reduces code duplication.
2457 + `html2pdf`: use stdin instead of intermediate HTML file
2458 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
2459 doesn't use `TEXINPUTS`.
2461 * `Text.Pandoc.Pretty`:
2463 + Simplified definition of `realLength`.
2464 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
2466 * `Text.Pandoc.MIME`:
2468 + Use `application/javascript` (not `application/x-javascript`).
2469 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
2471 * `Text.Pandoc.ImageSize`:
2473 + Improve SVG image size code (Marc Schreiber, #3580).
2474 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
2476 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
2477 and reduction of memory usage in most of the writers.
2479 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
2481 * `Text.Pandoc.SelfContained`:
2483 + Fixed problem with embedded fonts (#3629).
2484 + Refactored getData from `getDataURI` in `SelfContained`.
2485 + Don't use data URIs for script or style (#3423). Instead, just use
2486 script or style tags with the content inside. The old method with
2487 data URIs prevents certain optimizations outside pandoc. Exception:
2488 data URIs are still used when a script contains `</script>` or a
2489 style contains `</`.
2490 + SelfContained: Handle URL inside material retrieved from a URL
2491 (#3629). This can happen e.g. with an @import of a google web font.
2492 (What is imported is some CSS which contains an url reference
2493 to the font itself.) Also, allow unescaped pipe (|) in URL.
2494 + Load resources from `data-src` (needed for lazy loading in
2495 reveal.js slide shows).
2496 + Handle `data-background-image` attribute on section (#3979).
2498 * `Text.Pandoc.Parsing`:
2500 + Added `indentWith` (Alexander Krotov, #3687).
2501 + Added `stateCitations` to `ParserState`.
2502 + Removed `stateChapters` from `ParserState`.
2503 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
2504 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
2505 + Adjusted type of `insertIncludedFile` so it can be used with token
2506 parser.
2507 + Replace old texmath macro stuff from Parsing. Use Macro from
2508 Text.Pandoc.Readers.LaTeX.Types instead.
2509 + Export `insertIncludedFile`.
2510 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
2511 + Replace partial with total function (Albert Krewinkel).
2512 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
2513 `insertIncludeFile` function is generalized to work with all parser
2514 states which are instances of that class.
2515 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
2516 The `insertIncludeFiles` function was generalized and renamed
2517 to `insertIncludedFiles'`; the specialized versions are based on that.
2518 + `many1Till`: Check for the end condition before parsing (Herwig
2519 Stuetz). By not checking for the end condition before the first
2520 parse, the parser was applied too often, consuming too much of the
2521 input. This only affects `many1Till p end` where `p` matches on a
2522 prefix of `end`.
2523 + Provide `parseFromString` (#3690). This is a verison of
2524 `parseFromString` specialied to ParserState, which resets
2525 `stateLastStrPos` at the end. This is almost always what we want.
2526 This fixes a bug where `_hi_` wasn't treated as emphasis in the
2527 following, because pandoc got confused about the position of the
2528 last word: `- [o] _hi_`.
2529 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
2530 + Fix `blanklines` documentation (Alexander Krotov, #3843).
2531 + Give less misleading line information with `parseWithString`.
2532 Previously positions would be reported past the end of the chunk.
2533 We now reset the source position within the chunk and report
2534 positions "in chunk."
2535 + Add `anyLineNewline` (Alexander Krotov).
2536 + Provide shared F monad functions for Markdown and Org readers
2537 (Albert Krewinkel). The `F` monads used for delayed evaluation
2538 of certain values in the Markdown and Org readers are based on a
2539 shared data type capturing the common pattern of both `F` types.
2540 + Add `returnF` (Alexander Krotov).
2541 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
2542 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
2543 + Added `readerAbbreviations` to `ParserState`. Markdown reader
2544 now consults this to determine what is an abbreviation.
2545 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
2546 parsers for markdown and rst was combined into one single
2547 parser `gridTable`, slightly changing parsing behavior of both
2548 parsers: (1) The markdown parser now compactifies block content
2549 cell-wise: pure text blocks in cells are now treated as paragraphs
2550 only if the cell contains multiple paragraphs, and as plain blocks
2551 otherwise. Before, this was true only for single-column tables. (2)
2552 The rst parser now accepts newlines and multiple blocks in header
2553 cells.
2554 + Generalize tableWith, gridTableWith (Albert Krewinkel).
2555 The parsing functions `tableWith` and `gridTableWith` are generalized
2556 to work with more parsers. The parser state only has to be an
2557 instance of the `HasOptions` class instead of requiring a concrete
2558 type. Block parsers are required to return blocks wrapped into a
2559 monad, as this makes it possible to use parsers returning results
2560 wrapped in `Future`s.
2562 * `Text.Pandoc.Shared`:
2564 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
2565 + `stringify`: handle Quoted better (#3958). Previously we were losing
2566 the quotation marks in Quoted elements.
2568 * `Text.Pandoc.Writers.Shared`:
2570 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
2571 This allows us to add the variables AFTER using the metadata
2572 to generate a YAML header (in the Markdown writer).
2573 + Added `unsmartify` (previously in RST writer).
2574 Undo literal double curly quotes. Previously we left these.
2575 + Generalize type of `metaToJSON` so it can take a Text. Previously a
2576 String was needed as argument; now any ToJSON instance will do.
2577 + Added `gridTable` (previously in Markdown writer).
2578 + `gridTable`: Refactored to use widths in chars.
2579 + `gridTable`: remove unnecessary extra space in cells.
2580 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
2581 values to become lists.
2582 + Pipe tables: impose minimum cell size (see #3526).
2585 [default template changes]
2587 * HTML templates (including EPUB and HTML slide show templates):
2589 + Make default.html5 polyglot markup conformant (John Luke Bentley,
2590 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
2591 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
2592 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
2593 + Regularized CSS in html/epub/html slide templates (#3485).
2594 All templates now include `code{white-space: pre-wrap}`
2595 and CSS for `q` if `--html-q-tags` is used. Previously some templates
2596 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
2597 included.
2598 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
2599 + `default.revealjs`: make `history` default to true.
2600 + `default.revealjs`: use lazy loading (#2283).
2601 + `default.revealjs`: add `mathjax` variable and some conditional code
2602 to use the MathJaX plugin.
2603 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
2604 + `default.dzslides`: Load Google Font using HTTPS by default
2605 (Yoan Blanc).
2607 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
2608 #3855).
2610 * LaTeX/Beamer template:
2612 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
2613 `default.beamer` has been removed; beamer now uses the
2614 `default.latex` template. Beamer-specific parts are conditional
2615 on the `beamer` variable set by the writer. Note that
2616 `pandoc -D beamer` will return this (combined) template.
2617 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
2618 Beamer loads `xcolor` rather than `color`, and thus the
2619 `dvipsnames` option doesn't take effect. This also provides a wider
2620 range of colour selections with the `svgnames` option.
2621 + Use starred versions of `xcolor` names (Andrew Dunning).
2622 Prevents changes to documents defined using the `dvipsnames` list (e.g.
2623 `Blue` gives a different result with svgnames enabled).
2624 + Load `polyglossia` after header-includes (#3898). It needs to be
2625 loaded as late as possible.
2626 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
2627 XeLaTeX on request.
2628 + Don't load `fontspec` before `unicode-math` (over there).
2629 The `unicode-math` package loads `fontspec` so explict loading of
2630 `fontspec` before `unicode-math` is not necessary.
2631 + Use `unicode-math` by default in default.latex template. mathspec will
2632 be used in xelatex if the `mathspec` variable is set; otherwise
2633 unicode-math will be used (Václav Haisman).
2634 + Use `dvipsnames` options when `colorlinks` specified (otherwise
2635 we get an error for `maroon`) (Thomas Hodgson).
2636 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
2637 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
2638 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
2639 clash when loading a package (e.g. `tufte-latex`) that uses
2640 `hyperref` settings different from those in the template.
2641 + Add `natbiboptions` variable (#3768).
2642 + Fix links inside captions in LaTeX output with links-as-notes
2643 (Václav Haisman, #3651). Declare our redefined `\href` robust.
2644 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
2645 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
2646 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
2647 packages. Use existing `CJKmainfont` and `CJKoptions` template
2648 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
2649 and `luatexjapresetoptions` for `luatexja-preset`.
2650 + Added `aspectratio` variable to beamer template (Václav Haisman,
2651 #3723).
2652 + Modified template.latex to fix XeLaTex being used with tables
2653 (lwolfsonkin, #3661). Reordered `lang` variable handling to
2654 immediately before `bidi`.
2656 * ConTeXt template: Improved font handling: `simplefonts` is now
2657 obsolete in ConTeXt (Pablo Rodríguez).
2660 [documentation improvements]
2662 * MANUAL.txt:
2664 + Add URL for Prince HTML > PDF engine (Ian, #3919).
2665 + Document that content above slide-level will be omitted in
2666 slide shows. See #3460, #2265.
2667 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
2668 + Small clarification in YAML metadata section.
2669 + Document that html4 is technically XHTML 1.0 transitional.
2670 + Remove refs to highlighting-kate (#3672).
2671 + Document ibooks specific epub metadata.
2672 + Clarify that mathml is used for ODT math.
2673 + Mention limitations of Literate Haskell Support (#3410,
2674 Joachim Breitner).
2675 + Add documentation of limitations of grid tables (Stephen
2676 McDowell, #3864).
2677 + Clarify that meta-json contains transformed values (Jakob Voß,
2678 #3491) Make clear that template variable `meta-json` does not
2679 contain plain text values or JSON output format but field values
2680 transformed to the selected output format.
2682 * COPYRIGHT:
2684 + Clarify that templates are dual-licensed.
2685 + Clarify that pandoc-types is BSD3 licensed.
2686 + List new files not written by jgm (Albert Krewinkel).
2687 + Update dates in copyright notices (Albert Krewinkel). This follows
2688 the suggestions given by the FSF for GPL licensed software.
2689 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
2691 * INSTALL.md:
2693 + Improved instructions for tests with patterns.
2694 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
2696 * CONTRIBUTING.md:
2698 + Fixed typos (Wandmalfarbe, #3479).
2699 + Add "ask on pandoc-discuss" (Mauro Bieg).
2701 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
2702 end of this document is autogenerated from `data/pandoc.lua`
2703 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
2704 (Albert Krewinkel).
2706 * Add `doc/filters.md`. This is the old scripting tutorial from
2707 the website.
2709 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
2710 to using pandoc as a Haskell library.
2713 [build infrastructure improvements]
2715 * Removed `data/templates` submodule. Templates are now a subtree
2716 in `data/templates`. This removes the need to do `git submodule
2717 update`.
2719 * Renamed `tests` -> `test`.
2721 * Remove `https` flag. Always build with HTTPS support.
2723 * Use `file-embed` instead of `hsb2hs` to embed data files when
2724 `embed_data_files` flag is set. `file-embed` gives us better dependency
2725 tracking: if a data file changes, ghc/stack/cabal know to recompile
2726 the Data module. This also removes `hsb2hs` as a build dependency.
2728 * Add `custom-setup` stanza to pandoc, lowercase field names.
2730 * Add `static` Cabal flag.
2732 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
2733 than -OSX. Changed local names from osx to macos.
2735 * make_macos_package.sh - Use strip to reduce executable size.
2737 * Revised binary linux package. Now a completely static executable
2738 is created, using Docker and alpine. We create both a deb and a
2739 tarball. The old `deb` directory has been replaced with a `linux`
2740 directory. Running `make` in the `linux` directory should
2741 perform the build, putting the binary packages in `artifacts/`.
2743 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
2744 pandoc-data packages will be uninstalled; this package provides
2745 both (#3822). Add latex packages as 'suggested', update
2746 description.
2748 * Remove cpphs build requirement -- it is no longer needed.
2750 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
2752 * Name change OSX -> macOS (ickc, #3869).
2754 * Fix casing of Linux, UNIX, and Windows (ickc).
2756 * `.travis.yml`: create a source dist and do cabal build and test there.
2757 That way we catch errors due to files missing from the data
2758 section of pandoc.cabal.
2760 * Makefile:
2762 + Split `make haddock` from `make full`.
2763 + Add BRANCH variable for winpkg.
2764 + Add `lint` target.
2765 + Improve `make full`. Disable optimizations.
2766 Build everything, inc. trypandoc and benchmarks. Use parallel build.
2767 + Allow `make test` to take `TESTARGS`.
2769 * Added new command tests (`Tests.Command`), using small text files
2770 in `test/command/`. Any files added in this directory will be treated
2771 as shell tests (see smart.md for an example). This makes it very easy
2772 to add regression tests etc.
2774 * Test fixes so we can find data files. In old tests & command tests,
2775 we now set the environment variable `pandoc_datadir`. In lua tests,
2776 we set the datadir explicitly.
2778 * Refactored `compareOutput` in docx writer test.
2780 * Consolidated some common functions in `Tests.Helper`.
2782 * Small change to unbalanced bracket test to speed up test suite.
2784 * Speed up Native writer quickcheck tests.
2786 * Use tasty for tests rather than test-framework.
2788 * Add simple Emacs mode to help with Pandoc templates editing.
2789 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
2792pandoc (1.19.2)
2794 * Use skylighting library instead of highlighting-kate for syntax
2795 highlighting. Skylighting is faster and more accurate (#3363).
2796 Later we'll be able to add features like warning messages, dynamic
2797 loading of xml syntax definitions, and dynamic loading of themes.
2799 * Added a new highlight style, `breezeDark`.
2801 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
2802 This allows more languages to be used when using the `--listings`
2803 option.
2805 * OpenDocument writer:
2807 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
2808 + Don't profilerate text styles unnecessarily (#3371).
2809 This change makes the writer create only as many temporary
2810 text styles as are absolutely necessary. It also consolidates
2811 adjacent nodes with the same style.
2813 * Org reader (Albert Krewinkel):
2815 + Allow short hand for single-line raw blocks (Albert Krewinkel,
2816 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
2817 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
2818 + Accept org-ref citations followed by commas (Albert Krewinkel).
2819 Bugfix for an issue which, whenever the citation was immediately
2820 followed by a comma, prevented correct parsing of org-ref citations.
2821 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
2822 `/*strong and emphasized*/`) was interpreted incorrectly in that the
2823 inner markup was not recognized.
2824 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
2826 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
2827 In the past, the docx reader wrote an empty header as an empty list. It
2828 should have the same width as a row (and be filled with empty cells).
2830 * MediaWiki reader:
2832 + Improved handling of display math (#3362). Sometimes display math is
2833 indented with more than one colon. Previously we handled these cases
2834 badly, generating definition lists and missing the math.
2835 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
2836 behavior when the smart option is parsed to match other readers'
2837 behavior.
2839 * Markdown reader:
2841 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
2842 (#3341). Previously this did not properly enable escaped line breaks.
2843 + Disallow space between inline code and attributes (#3326, #3323,
2844 Mauro Bieg).
2846 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
2848 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
2850 * LaTeX writer: allow tables with empty cells to count as "plain."
2851 This addresses a problem of too-wide tables when empty cells
2852 are used. Thanks to Joost Kremers for reporting the issue.
2854 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
2855 Unprefixed numbers where used by older org-mode versions, but are no
2856 longer supported.
2858 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
2859 Mauro Bieg).
2861 * Markdown writer: Fix display math with `--webtex` (#3298).
2863 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
2864 bumper314).
2866 * Templates:
2868 + default.latex: Moved geometry after hyperref (Václav Haisman).
2869 Otherwise PDF sizes can be wrong in some circumstances.
2870 + Copied a few changes from default.latex to default.beamer
2871 (Wandmalfarbe).
2872 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
2873 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
2874 that contain verbatim in notes (#3361). (Note: the beamer template
2875 was updated to match the LaTeX template, but at this point verbatim
2876 in notes seems not to work in beamer.)
2877 + default.latex: Allow passing `microtypeoptions` to microtype
2878 (Václav Haisman).
2879 + default.latex: Add hyphen option to url package.
2880 + default.docbook5: Fix namespace declarations (Mauro Bieg).
2882 * Moved `make_osx_package.sh` to `osx/` directory.
2884 * Travis continuous integration:
2886 + Fix false positives with dist build.
2887 + Speed improvements (Kolen Cheung, #3304, #3357).
2889 * MANUAL.txt:
2891 + Clarify that blank space is needed around footnotes (#3352).
2892 + Fixed typo (#3351, Alexey Rogechev).
2893 + Note that `--wrap=auto` does not work in HTML output.
2894 + Default `--columns` width is 72, not 80.
2895 + Fixed broken links (#3316, Kolen Cheung).
2896 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
2898 * INSTALL.md:
2900 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
2901 + Added instructions for extracting binary from OSX, Windows packages.
2903 * CONTRIBUTING.md: Describe labels currently used in issue tracker
2904 (Albert Krewinkel). The labels have changed over time, the list of
2905 labels is updated to reflect the current set of labels used in the
2906 issue tracker.
2908 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
2910 * Bumped version bounds for dependencies.
2913pandoc (1.19.1)
2915 * Set `PANDOC_VERSION` environment variable for filters (#2640).
2916 This allows filters to check the pandoc version that produced
2917 the JSON they are receiving.
2919 * Docx reader: Ensure one-row tables don't have header (#3285,
2920 Jesse Rosenthal). Tables in MS Word are set by default to have
2921 special first-row formatting, which pandoc uses to determine whether
2922 or not they have a header. This means that one-row tables will, by
2923 default, have only a header -- which we imagine is not what people
2924 want. This change ensures that a one-row table is not understood to
2925 be a header only. Note that this means that it is impossible to
2926 produce a header-only table from docx, even though it is legal
2927 pandoc. But we believe that in nearly all cases, it will be an
2928 accidental (and unwelcome) result
2930 * HTML reader:
2932 + Fixed some bad regressions in HTML table parser (#3280).
2933 This regression leads to the introduction of empty rows
2934 in some circumstances.
2935 + Understand `style=width:` as well as `width` in `col` (#3286).
2937 * RST reader:
2939 + Print warnings when keys, substitition, notes not found.
2940 Previously the parsers failed and we got raw text. Now we get a
2941 link with an empty URL, or empty inlines in the case of a note or
2942 substitution.
2944 + Fix hyperlink aliases (#3283).
2946 * Man writer: Ensure that periods are escaped at beginning of line
2947 (#3270).
2949 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
2950 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
2951 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
2952 are ensured to be written using stared commands (like `\subsection*{}`).
2954 * LaTeX template: use comma not semicolon to separate keywords for
2955 `pdfkeywords`. Thanks to Wandmalfarbe.
2957 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
2958 would sometimes wrap lines too early due to this bug.
2960 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
2961 possible to insert escape codes for content that needs escaping at the
2962 beginning of a line.
2964 * Removed old MathMLInHTML.js from 2004, which should no longer
2965 be needed for MathML with modern browsers.
2967 * Fixed tests with dynamic linking (#2709).
2969 * Makefile: Use stack instead of cabal for targets. This is just
2970 a convenience for developers.
2972 * Fixed bash completion of filenames with space (#2749).
2974 * MANUAL: improved documentation on how to create a custom `reference.docx`.
2976 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
2978pandoc (1.19)
2980 * Changed resolution of filter paths.
2982 + We now first treat the argument of `--filter` as a full (absolute
2983 or relative) path, looking for a program there. If it's found, we
2984 run it.
2985 + If not, and if it is a simple program name or a relative path, we
2986 try resolving it relative to `$DATADIR/filters`.
2987 + If this fails, then we treat it as a program name and look in the
2988 user's PATH.
2989 + Removed a hardcoded '/' that may have caused problems with
2990 Windows paths.
2992 Previously if you did `--filter foo` and you had `foo` in your path and
2993 also an executable `foo` in your working directory, the one in the path
2994 would be used. Now the one in the working directory is used.
2996 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
2997 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
2998 `foo/bar.hs` relative to the working directory.
3000 * Allow `file://` URIs as arguments (#3196). Also improved default reader
3001 format detection. Previously with a URI ending in .md or .markdown,
3002 pandoc would assume HTML input. Now it treats these as markdown.
3004 * Allow to overwrite top-level division type heuristics (#3258,
3005 Albert Krewinkel). Pandoc uses heuristics to determine the most
3006 reasonable top-level division type when emitting LaTeX or
3007 Docbook markup. It is now possible to overwrite this implicitly set
3008 top-level division via the `top-level-division` command line parameter.
3010 * Text.Pandoc.Options \[API changes\]:
3012 + Removed `writerStandalone` field in `WriterOptions`, made
3013 `writerTemplate` a `Maybe` value. Previously setting
3014 `writerStandalone = True` did nothing unless a template was provided
3015 in writerTemplate. Now a fragment will be generated if
3016 `writerTemplate` is `Nothing`; otherwise, the specified template
3017 will be used and standalone output generated.
3018 + `Division` has been renamed `TopLevelDivision` (#3197). The
3019 `Section`, `Chapter`, and `Part` constructors were renamed to
3020 `TopLevelSection`, `TopLevelChapter`, and
3021 `TopLevelPart`, respectively. An additional `TopLevelDefault`
3022 constructor was added, which is now also the new default value of
3023 the `writerTopLevelDivision` field in `WriterOptions`.
3025 * Improved error if they give wrong arg to `--top-level-division`.
3027 * Use new module from texmath to lookup MS font codepoints in Docx reader.
3028 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
3029 lives in texmath (0.9).
3031 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
3032 when the qnames lacked the docbook namespace URI.
3034 * HTML reader:
3036 + Improved table parsing (#3027). We now check explicitly for non-1
3037 rowspan or colspan attributes, and fail when we encounter them.
3038 Previously we checked that each row had the same number of cells,
3039 but that could be true even with rowspans/colspans. And there are
3040 cases where it isn't true in tables that we can handle fine -- e.g.
3041 when a tr element is empty. So now we just pad rows with empty cells
3042 when needed.
3043 + Treat `<math>` as MathML by default unless something else is
3044 explicitly specified in xmlns. Provided it parses as MathML,
3045 of course. Also fixed default which should be to inline math if no
3046 display attribute is used.
3047 + Only treat "a" element as link if it has href (#3226). Otherwise
3048 treat as span.
3050 * Docx reader (Jesse Rosenthal):
3052 + Add a placeholder value for CHART. We wrap `[CHART]` in a
3053 `<span class="chart">`. Note that it maps to inlines because, in
3054 docx, anything in a drawing tag can be part of a larger paragraph.
3055 + Be more specific in parsing images We not only want `w:drawing`,
3056 because that could also include charts. Now we specify
3057 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
3058 a first step toward allowing other sorts of drawing data as well.
3059 + Abstract out function to avoid code repetition.
3060 + Update tests for img title and alt (#3204).
3061 + Handle Alt text and titles in images. We use the "description" field
3062 as alt text and the "title" field as title. These can be accessed
3063 through the "Format Picture" dialog in Word.
3064 + Docx reader utils: handle empty namespace in `elemName`. Previously,
3065 if given an empty namespace `(elemName ns "" "foo")` `elemName`
3066 would output a QName with a `Just ""` namespace. This is never what
3067 we want. Now we output a `Nothing`. If someone *does* want a
3068 `Just ""` in the namespace, they can enter the QName
3069 value explicitly.
3071 * ODT reader/writer:
3073 + Inline code when text has a special style (Hubert Plociniczak). When
3074 a piece of text has a text `Source_Text` then we assume that this is
3075 a piece of the document that represents a code that needs to
3076 be inlined. Adapted the writer to also reflect that change.
3077 Previously it was just writing a 'preformatted' text using a
3078 non-distinguishable font style. Code blocks are still not recognized
3079 by the ODT reader. That's a separate issue.
3080 + Infer table's caption from the paragraph (#3224,
3081 Hubert Plociniczak). ODT's reader always put empty captions for the
3082 parsed tables. This commit
3084 1. checks paragraphs that follow the table definition
3085 2. treats specially a paragraph with a style named 'Table'
3086 3. does some postprocessing of the paragraphs that combines tables
3087 followed immediately by captions
3089 The ODT writer used the `TableCaption` style for the caption
3090 paragraph. This commit follows the OpenOffice approach which allows
3091 for appending captions to table but uses a built-in style named
3092 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
3093 should change the style's name from `TableCaption` to `Table`.
3095 * ODT reader: Infer tables' header props from rows (#3199,
3096 Hubert Plociniczak). ODT reader simply provided an empty header list
3097 which meant that the contents of the whole table, even if not empty, was
3098 simply ignored. While we still do not infer headers we at least have to
3099 provide default properties of columns.
3101 * Markdown reader:
3103 + Allow reference link labels starting with `@...` if `citations`
3104 extension disabled (#3209). Example: in
3106 \[link text\]\[@a\]
3108 `link text` isn't hyperlinked because `[@a]` is parsed as
3109 a citation. Previously this happened whether or not the `citations`
3110 extension was enabled. Now it happens only if the `citations`
3111 extension is enabled.
3112 + Allow alignments to be specified in Markdown grid tables. For
3113 example,
3115 +-------+---------------+--------------------+
3116 | Right | Left | Centered |
3117 +=========:+:=================+:=============:+
3118 | Bananas | $1.34 | built-in wrapper |
3119 +-------+---------------+--------------------+
3121 + Allow Small Caps elements to be created using bracketed spans (as
3122 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
3124 * LaTeX reader:
3126 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
3127 Fixed an error which came up, for example, with `\vspace` inside
3128 a caption. (Captions expect inlines.)
3129 + Improved table handling. We can now parse all of the tables emitted
3130 by pandoc in our tests. The only thing we don't get yet are
3131 alignments and column widths in more complex tables. See #2669.
3132 + Limited support for minipage.
3133 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
3134 + Handle BVerbatim from fancyvrb (#3203).
3135 + Handle hungarumlaut (#3201).
3136 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
3137 (#3184). This allows use of things like `\only<2,3>{my content}` in
3138 Markdown that is going to be converted to beamer.
3140 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
3141 overly long code will appear on every slide.
3143 * Org reader (Albert Krewinkel):
3145 + Respect column width settings (#3246). Table column properties can
3146 optionally specify a column's width with which it is displayed in
3147 the buffer. Some exporters, notably the ODT exporter in org-mode
3148 v9.0, use these values to calculate relative column widths. The org
3149 reader now implements the same behavior. Note that the org-mode
3150 LaTeX and HTML exporters in Emacs don't support this feature yet,
3151 which should be kept in mind by users who use the column
3152 widths parameters.
3153 + Allow HTML attribs on non-figure images (#3222). Images which are
3154 the only element in a paragraph can still be given HTML attributes,
3155 even if the image does not have a caption and is hence not a figure.
3156 The following will add set the `width` attribute of the image to
3157 `50%`:
3159 +ATTR\_HTML: :width 50%
3160 =======================
3162 \[\[file:image.jpg\]\]
3164 + Support `ATTR_HTML` for special blocks (#3182). Special
3165 blocks (i.e. blocks with unrecognized names) can be prefixed with an
3166 `ATTR_HTML` block attribute. The attributes defined in that
3167 meta-directive are added to the `Div` which is used to represent the
3168 special block.
3169 + Support the `todo` export option. The `todo` export option allows to
3170 toggle the inclusion of TODO keywords in the output. Setting this to
3171 `nil` causes TODO keywords to be dropped from headlines. The default
3172 is to include the keywords.
3173 + Add support for todo-markers. Headlines can have optional
3174 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
3175 or `#+TYP_TODO` meta directive. Multiple such directives can be
3176 given, each adding a new set of recognized todo-markers. If no
3177 custom todo-markers are defined, the default `TODO` and `DONE`
3178 markers are used. Todo-markers are conceptually separate from
3179 headline text and are hence excluded when autogenerating
3180 headline IDs. The markers are rendered as spans and labelled with
3181 two classes: One class is the markers name, the other signals the
3182 todo-state of the marker (either `todo` or `done`).
3184 * LaTeX writer:
3186 + Use `\autocites*` when "suppress-author" citation used.
3187 + Ensure that simple tables have simple cells (#2666). If cells
3188 contain more than a single Plain or Para, then we need to set
3189 nonzero widths and put contents into minipages.
3190 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
3192 * Markdown writer:
3194 + Fix calculation of column widths for aligned multiline tables
3195 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
3196 usage for tables when `--columns` is set in such a way that cells
3197 must be very tiny. Now cells are guaranteed to be big enough so that
3198 single words don't need to line break, even if this pushes the line
3199 length above the column width.
3200 + Use bracketed form for native spans when `bracketed_spans`
3201 enabled (#3229).
3202 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
3203 sublist got rendered with a blank line after, while a tight ordered
3204 sublist did not. Now we don't get the blank line in either case.
3205 + Fix escaping of spaces in super/subscript (#3225). Previously two
3206 backslashes were inserted, which gave a literal backslash.
3207 + Adjust widths in Markdown grid tables so that they match
3208 on round-trip.
3210 * Docx writer:
3212 + Give full detail when there are errors converting tex math.
3213 + Handle title text in images (Jesse Rosenthal). We already handled
3214 alt text. This just puts the image "title" into the docx
3215 "title" attr.
3216 + Fixed XML markup for empty cells (#3238). Previously the Compact
3217 style wasn't being applied properly to empty cells.
3219 * HTML writer:
3221 + Updated `renderHtml` import from blaze-html.
3223 * Text.Pandoc.Pretty:
3225 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
3226 caused spurious blank lines in grid tables when we had things like
3227 `blankline $$ blankline`.
3228 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
3229 + Added error message for illegal call to `block` (Björn Peemöller).
3231 * Text.Pandoc.Shared:
3233 + Put `warn` in MonadIO.
3234 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
3235 URL starts with `//` and there is no "base URL" (as there would be
3236 if a URL were used on the command line), then default to http:.
3238 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
3240 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
3241 fixes a crash with `pandoc --version` on unusual systems with no real
3242 user (e.g. SQL Server 2016).
3244 * Added weigh-pandoc for memory usage diagnostics (#3169).
3246 * Use correct mime types for woff and woff2 (#3228).
3248 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
3250 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
3251 1.18 section where it belongs.
3253 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
3254 Kolen Cheung).
3256 * Further revisions to manual for `--version` changes (#3244).
3259pandoc (1.18)
3261 * Added `--list-input-formats`, `--list-output-formats`,
3262 `--list-extensions`, `--list-highlight-languages`, and
3263 `--list-highlight-styles` (#3173). Removed list of highlighting
3264 languages from `--version` output. Removed list of input and output
3265 formats from default `--help` output.
3267 * Added `--reference-location=block|section|document` option
3268 (Jesse Rosenthal). This determines whether Markdown link references
3269 and footnotes are placed at the end of the document, the end of the
3270 section, or the end of the top-level block.
3272 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
3273 This determines what a level-1 header corresponds to in LaTeX,
3274 ConTeXt, DocBook, and TEI output. The default is `section`.
3275 The `--chapters` option has been deprecated in favor of
3276 `--top-level-division=chapter`.
3278 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
3279 is now used in parsing RST and Markdown line blocks, DocBook
3280 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
3281 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
3282 are handled specially in the following ouput formats: AsciiDoc
3283 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
3284 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
3285 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
3286 other output formats, a paragraph with hard linebreaks is emitted.
3288 * Allow binary formats to be written to stdout (but not to tty) (#2677).
3289 Only works on posix, since we use the unix library to check whether
3290 output is to tty. On Windows, pandoc works as before and always requires
3291 an output file parameter for binary formats.
3293 * Changed JSON output format (Jesse Rosenthal). Previously we used
3294 generically generated JSON, but this was subject to change depending
3295 on the version of aeson pandoc was compiled with. To ensure stability,
3296 we switched to using manually written ToJSON and FromJSON
3297 instances, and encoding the API version. **Note:** pandoc filter
3298 libraries will need to be revised to handle the format change.
3299 Here is a summary of the essential changes:
3301 + The toplevel JSON format is now `{"pandoc-api-version" :
3302 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
3303 instead of `[{"unMeta": META}, [BLOCKS]]`.
3304 Decoding fails if the major and minor version numbers don't
3305 match.
3306 + Leaf nodes no longer have an empty array for their "c" value.
3307 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
3308 rather than `{"t":"Space","c":[]}` as before.
3310 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
3311 module to pandoc-types (Jesse Rosenthal). This makes it easier
3312 to use QuickCheck with pandoc types outside of pandoc itself.
3314 * Add `bracketed_spans` Markdown extension, enabled by default
3315 in pandoc `markdown`. This allows you to create a native span
3316 using this syntax: `[Here is my span]{#id .class key="val"}`.
3318 * Added `angle_brackets_escapable` Markdown extension (#2846).
3319 This is needed because github flavored Markdown has a slightly
3320 different set of escapable symbols than original Markdown;
3321 it includes angle brackets.
3323 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
3325 * Print highlighting-kate version in `--version`.
3327 * `Text.Pandoc.Options`:
3329 + `Extension` has new constructors `Ext_brackted_spans` and
3330 `Ext_angle_brackets_escapable` [API change].
3331 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
3332 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
3333 Rosenthal).
3335 * `--filter`: we now check `$DATADIR/filters` for filters before
3336 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
3337 Voß for the idea). Filters placed in this directory need not
3338 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
3339 or `.rb`, pandoc will run the right interpreter.
3341 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
3342 default (Kolen Cheung).
3344 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
3346 * Execute .js filters with node (Jakob Voß).
3348 * Textile reader:
3350 + Support `bc..` extended code blocks (#3037). Also, remove trailing
3351 newline in code blocks (consistently with Markdown reader).
3352 + Improve table parsing. We now handle cell and row attributes, mostly
3353 by skipping them. However, alignments are now handled properly.
3354 Since in pandoc alignment is per-column, not per-cell, we
3355 try to devine column alignments from cell alignments.
3356 Table captions are also now parsed, and textile indicators
3357 for thead and tfoot no longer cause parse failure. (However,
3358 a row designated as tfoot will just be a regular row in pandoc.)
3359 + Improve definition list parsing. We now allow multiple terms
3360 (which we concatenate with linebreaks). An exponential parsing
3361 bug (#3020) is also fixed.
3362 + Disallow empty URL in explicit link (#3036).
3364 * RST reader:
3366 + Use Div instead of BlockQuote for admonitions (#3031).
3367 The Div has class `admonition` and (if relevant) one of the
3368 following: `attention`, `caution`, `danger`, `error`, `hint`,
3369 `important`, `note`, `tip`, `warning`. **Note:** This will change
3370 the rendering of some RST documents! The word ("Warning", "Attention",
3371 etc.) is no longer added; that must be done with CSS or a filter.
3372 + A Div is now used for `sidebar` as well.
3373 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
3374 space before a footnote marker. We discard those spaces so that footnotes
3375 will be adjacent to the text that comes before it. This is in line with
3376 what rst2latex does.
3377 + Allow empty lines when parsing line blocks (Albert Krewinkel).
3379 * Markdown reader:
3381 + Allow empty lines when parsing line blocks (Albert Krewinkel).
3382 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
3384 * LaTeX reader:
3386 + More robust parsing of unknown environments (#3026).
3387 We no longer fail on things like `^` inside options for tikz.
3388 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
3389 Some custom environments give these a meaning, so we should try not to
3390 fall over when we encounter them.
3391 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
3393 * MediaWiki reader:
3395 + Fix for unquoted attribute values in mediawiki tables (#3053).
3396 Previously an unquoted attribute value in a table row
3397 could cause parsing problems.
3398 + Improved treatment of verbatim constructions (#3055).
3399 Previously these yielded strings of alternating Code and Space
3400 elements; we now incorporate the spaces into the Code. Emphasis
3401 etc. is still possible inside these.
3402 + Properly interpret XML tags in pre environments (#3042). They are meant
3403 to be interpreted as literal text.
3405 * EPUB reader: don't add root path to data: URIs (#3150).
3406 Thanks to @lep for the bug report and patch.
3408 * Org reader (Albert Krewinkel):
3410 + Preserve indentation of verse lines (#3064). Leading spaces in verse
3411 lines are converted to non-breaking spaces, so indentation is preserved.
3412 + Ensure image sources are proper links. Image sources as those in plain
3413 images, image links, or figures, must be proper URIs or relative file
3414 paths to be recognized as images. This restriction is now enforced
3415 for all image sources. This also fixes the reader's usage of uncleaned
3416 image sources, leading to `file:` prefixes not being deleted from
3417 figure images. Thanks to @bsag for noticing this bug.
3418 + Trim verse lines properly (Albert Krewinkel).
3419 + Extract meta parsing code to module. Parsing of meta-data is well
3420 separable from other block parsing tasks. Moving into new module to
3421 get small files and clearly arranged code.
3422 + Read markup only for special meta keys. Most meta-keys should be read
3423 as normal string values, only a few are interpreted as marked-up text.
3424 + Allow multiple, comma-separated authors. Multiple authors can be
3425 specified in the `#+AUTHOR` meta line if they are given as a
3426 comma-separated list.
3427 + Give precedence to later meta lines. The last meta-line of any given
3428 type is the significant line. Previously the value of the first line
3429 was kept, even if more lines of the same type were encounterd.
3430 + Read LaTeX_header as header-includes. LaTeX-specific header commands
3431 can be defined in `#+LaTeX_header` lines. They are parsed as
3432 format-specific inlines to ensure that they will only show up in LaTeX
3433 output.
3434 + Set documentclass meta from LaTeX_class.
3435 + Set classoption meta from LaTeX_class_options.
3436 + Read HTML_head as header-includes. HTML-specific head content can be
3437 defined in `#+HTML_head` lines. They are parsed as format-specific
3438 inlines to ensure that they will only show up in HTML output.
3439 + Respect `author` export option. The `author` option controls whether
3440 the author should be included in the final markup. Setting
3441 `#+OPTIONS: author:nil` will drop the author from the final meta-data
3442 output.
3443 + Respect `email` export option. The `email` option controls whether the
3444 email meta-field should be included in the final markup. Setting
3445 `#+OPTIONS: email:nil` will drop the email field from the final
3446 meta-data output.
3447 + Respect `creator` export option. The `creator` option controls whether
3448 the creator meta-field should be included in the final markup. Setting
3449 `#+OPTIONS: creator:nil` will drop the creator field from the final
3450 meta-data output. Org-mode recognizes the special value `comment` for
3451 this field, causing the creator to be included in a comment. This is
3452 difficult to translate to Pandoc internals and is hence interpreted the
3453 same as other truish values (i.e. the meta field is kept if it's
3454 present).
3455 + Respect unnumbered header property (#3095). Sections the `unnumbered`
3456 property should, as the name implies, be excluded from the automatic
3457 numbering of section provided by some output formats. The Pandoc
3458 convention for this is to add an "unnumbered" class to the header. The
3459 reader treats properties as key-value pairs per default, so a special
3460 case is added to translate the above property to a class instead.
3461 + Allow figure with empty caption (Albert Krewinkel, #3161).
3462 A `#+CAPTION` attribute before an image is enough to turn an image into
3463 a figure. This wasn't the case because the `parseFromString` function,
3464 which processes the caption value, would fail on empty values. Adding
3465 a newline character to the caption value fixes this.
3467 * Docx reader:
3469 + Use XML convenience functions (Jesse Rosenthal).
3470 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
3471 the code a lot cleaner than the original XML.Light functions, but they
3472 had been used inconsistently. This puts them in wherever applicable.
3473 + Handle anchor spans with content in headers. Previously, we would only
3474 be able to figure out internal links to a header in a docx if the
3475 anchor span was empty. We change that to read the inlines out of the
3476 first anchor span in a header.
3477 + Let headers use exisiting id. Previously we always generated an id for
3478 headers (since they wouldn't bring one from Docx). Now we let it use an
3479 existing one if possible. This should allow us to recurs through anchor
3480 spans.
3481 + Use all anchor spans for header ids. Previously we only used the first
3482 anchor span to affect header ids. This allows us to use all the anchor
3483 spans in a header, whether they're nested or not (#3088).
3484 + Test for nested anchor spans in header. This ensures that anchor spans
3485 in header with content (or with other anchor spans inside) will resolve
3486 to links to a header id properly.
3488 * ODT reader (Hubert Plociniczak)
3490 + Include list's starting value. Previously the starting value of
3491 the lists' items has been hardcoded to 1. In reality ODT's list
3492 style definition can provide a new starting value in one of its
3493 attributes.
3494 + Infer caption from the text following the image.
3495 Frame can contain other frames with the text boxes.
3496 + Add `fig:` to title for Image with a caption (as expected
3497 by pandoc's writers).
3498 + Basic support for images in ODT documents.
3499 + Don't duplicate text for anchors (#3143). When creating an anchor
3500 element we were adding its representation as well as the original
3501 content, leading to text duplication.
3503 * DocBook writer:
3505 + Include an anchor element when a div or span has an id (#3102).
3506 Note that DocBook does not have a class attribute, but at least this
3507 provides an anchor for internal links.
3509 * LaTeX writer:
3511 + Don't use * for unnumbered paragraph, subparagraph. The starred
3512 variants don't exist. This helps with part of #3058...it gets rid of
3513 the spurious `*`s. But we still have numbers on the 4th and 5th level
3514 headers.
3515 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
3516 Otherwise they can cause unintended ligatures like `` ?` ``.
3517 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
3518 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
3519 This allows figure placement defaults to be changed by the user
3520 in the template.
3522 * HTML writer (slide show formats): In slide shows, don't change slide title
3523 to level 1 header (#2221).
3525 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
3526 TEI doesn't have `<book>` elements but only generic `<divN>` division
3527 elements. Checking the template for a trailing `</book>` is nonsensical.
3529 * MediaWiki writer: transform filename with underscores in images (#3052).
3530 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
3531 for internal links, but it also needs to happen for images.
3533 * ICML writer: replace partial function (!!) in table handling (#3175,
3534 Mauro Bieg).
3536 * Man writer: allow section numbers that are not a single digit (#3089).
3538 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
3539 (#3068). In AsciiDoc, you must use a special form of emphasis
3540 (double `__`) for intraword emphasis. Pandoc was previously using
3541 this more than necessary.
3543 * EPUB writer: use stringify instead of plain writer for metadata
3544 (#3066). This means that underscores won't be used for emphasis,
3545 or CAPS for bold. The metadata fields will just have unadorned
3546 text.
3548 * Docx Writer:
3550 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
3551 with a `custom-style` key in the attributes will apply the corresponding
3552 key to the contained blocks or inlines.
3553 + Add ReaderT env to the docx writer (Jesse Rosenthal).
3554 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
3555 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
3556 on the command line. For finer-grained control, you can set
3557 the `dir` attribute in Div or Span elements.
3559 * Org writer (Albert Krewinkel):
3561 + Remove blank line after figure caption. Org-mode only treats an image
3562 as a figure if it is directly preceded by a caption.
3563 + Ensure blank line after figure. An Org-mode figure should be surrounded
3564 by blank lines. The figure would be recognized regardless, but images
3565 in the following line would unintentionally be treated as figures as
3566 well.
3567 + Ensure link targets are paths or URLs. Org-mode treats links as
3568 document internal searches unless the link target looks like a URL or
3569 file path, either relative or absolute. This change ensures that this
3570 is always the case.
3571 + Translate language identifiers. Pandoc and Org-mode use different
3572 programming language identifiers. An additional translation between
3573 those identifiers is added to avoid unexpected behavior. This fixes a
3574 problem where language specific source code would sometimes be output
3575 as example code.
3576 + Drop space before footnote markers (Albert Krewinkel, #3162).
3577 The writer no longer adds an extra space before footnote markers.
3579 * Markdown writer:
3581 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
3582 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
3583 is disabled.
3584 + Check for the `raw_html` extension before emiting a raw HTML block.
3585 + Abstract out note/ref function (Jesse Rosenthal).
3586 + Add ReaderT monad for environment variables (Jesse Rosenthal).
3588 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
3589 subtitle, author, date (#3119). Note that, as a result of this change,
3590 authors may need to update CSS.
3592 * revealjs template: Added `notes-server` option
3593 (jgm/pandoc-templates#212, Yoan Blanc).
3595 * Beamer template:
3597 + Restore whitespace between paragraphs. This was
3598 a regression in the last release (jgm/pandoc-templates#207).
3599 + Added `themeoptions` variable (Carsten Gips).
3600 + Added `beamerarticle` variable. This causes the `beamerarticle`
3601 package to be loaded in beamer, to produce an article from beamer
3602 slides. (Carsten Gips)
3603 + Added support for `fontfamilies` structured variable
3604 (Artem Klevtsov).
3605 + Added hypersetup options (Jake Zimmerman).
3607 * LaTeX template:
3609 + Added dummy definition for `\institute`.
3610 This isn't a standard command, and we want to avoid a crash when
3611 `institute` is used with the default template.
3612 + Define default figure placement (Václav Haisman), since pandoc
3613 no longer includes `[htbp]` for figures. Users with custom templates
3614 will want to add this. See #3103.
3615 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
3616 Václav Haisman).
3618 * Moved template compiling/rendering code to a separate library.
3619 `doctemplates`. This allows the pandoc templating system to be
3620 used independently.
3622 * Text.Pandoc.Error: Fix out of index error in `handleError`
3623 (Matthew Pickering). The fix is to not try to show the exact line when
3624 it would cause an out-of-bounds error as a result of included files.
3626 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
3628 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
3629 addresses. Technically `**@user` is a valid email address, but if we
3630 allow things like this, we get bad results in markdown flavors
3631 that autolink raw email addresses (see #2940). So we exclude a few
3632 valid email addresses in order to avoid these more common bad cases.
3634 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
3635 emit the alt text, emphasized. This accords with what the ODT writer
3636 currently does. The user will still get a warning about a nonexistent
3637 image.
3639 * Fix example in API documentation (#3176, Thomas Weißschuh).
3641 * Tell where to get tarball in INSTALL (#3062).
3643 * Rename README to MANUAL.txt and add GitHub-friendly README.md
3644 (Albert Krewinkel, Kolen Cheung).
3646 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
3648 * MANUAL.txt:
3650 + Put note on structured vars in separate paragraph (#2148, Albert
3651 Krewinkel). Make it clearer that structured author variables require a
3652 custom template
3653 + Note that `--katex` works best with `html5` (#3077).
3654 + Fix the LaTeX and EPUB links in manual (Morton Fox).
3655 + Document `biblio-title` variable.
3657 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
3659 * Update KaTeX to v0.6.0 (Kolen Cheung).
3661 * Allow latest dependencies.
3663 * Use texmath 0.8.6.6 (#3040).
3665 * Allow http-client 0.4.30, which is the version in stackage lts.
3666 Previously we required 0.5.
3667 Remove CPP conditionals for earlier versions.
3669 * Remove support for GHC < 7.8 (Jesse Rosenthal).
3671 + Remove Compat.Monoid.
3672 + Remove an inline monad compatibility macro.
3673 + Remove Text.Pandoc.Compat.Except.
3674 + Remove directory compat.
3675 + Change constraint on mtl.
3676 + Remove unnecessary CPP condition in UTF8.
3677 + Bump base lower bound to 4.7.
3678 + Remove 7.6 build from .travis.yaml.
3679 + Bump supported ghc version in CONTRIBUTING.md.
3680 + Add note about GHC version support to INSTALL.
3681 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
3682 + Remove TagSoup compat.
3683 + Add EOL note to time compat module. Because time 1.4 is a boot library
3684 for GHC 7.8, we will support the compatibility module as long as we
3685 support 7.8. But we should be clear about when we will no longer need
3686 it.
3687 + Remove blaze-html CPP conditional.
3688 + Remove unnecessary CPP in custom Prelude.
3690pandoc (1.17.2)
3692 * Added Zim Wiki writer, template and tests. `zimwiki` is now
3693 a valid output format. (Alex Ivkin)
3695 * Changed email-obfuscation default to no obfuscation (#2988).
3696 + `writerEmailObfuscation` in `defaultWriterOptions` is now
3697 `NoObfuscation`.
3698 + the default for the command-line `--email-obfuscation` option is
3699 now `none`.
3701 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
3703 * Org writer:
3705 + Support arbitrary raw inlines (Albert Krewinkel).
3706 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
3707 parlance) to be included as `@@format:raw foreign format text@@`.
3708 + Improve Div handling (Albert Krewinkel). Div blocks handling is
3709 changed to make the output look more like idiomatic org mode:
3710 - Div-wrapped content is output as-is if the div's attribute is the
3711 null attribute.
3712 - Div containers with an id but neither classes nor key-value pairs
3713 are unwrapped and the id is added as an anchor.
3714 - Divs with classes associated with greater block elements are
3715 wrapped in a `#+BEGIN`...`#+END` block.
3716 - The old behavior for Divs with more complex attributes is kept.
3718 * HTML writer:
3720 + Better support for raw LaTeX environments (#2758).
3721 Previously we just passed all raw TeX through when MathJax was used for
3722 HTML math. This passed through too much. With this patch, only raw
3723 LaTeX environments that MathJax can handle get passed through.
3724 This patch also causes raw LaTeX environments to be treated
3725 as math, when possible, with MathML and WebTeX output.
3727 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
3728 (#2993). Markdown line breaks involve a newline, and simple and pipe
3729 tables can't contain one.
3731 * Make --webtex work with the Markdown writer (#1177).
3732 This is a convenient option for people using
3733 websites whose Markdown flavors don't provide for math.
3735 * Docx writer:
3737 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
3738 We treat display math like block quotes, and apply FirstParagraph style
3739 to paragraphs that follow them. These can be styled as the user
3740 wishes. (But, when the user is using indentation, this allows for
3741 paragraphs to continue after display math without indentation.)
3742 + Use actual creation time as doc prop (Jesse Rosenthal).
3743 Previously, we had used the user-supplied date, if available, for Word's
3744 document creation metadata. This could lead to weird results, as in
3745 cases where the user post-dates a document (so the modification might be
3746 prior to the creation). Here we use the actual computer time to set the
3747 document creation.
3749 * LaTeX writer:
3751 + Don't URI-escape image source (#2825). Usually this is a local file,
3752 and replacing spaces with `%20` ruins things.
3753 + Allow 'standout' as a beamer frame option (#3007).
3754 `## Slide title {.standout}`.
3756 * RST reader: Fixed links with no explicit link text. The link
3757 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
3758 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
3759 Closes Debian #828167 -- reported by Christian Heller.
3761 * Textile reader:
3763 + Fixed attributes (#2984). Attributes can't be followed by
3764 a space. So, `_(class)emph_` but `_(noclass) emph_`.
3765 + Fixed exponential parsing bug (#3020).
3766 + Fix overly aggressive interpretation as images (#2998).
3767 Spaces are not allowed in the image URL in textile.
3769 * LaTeX reader:
3771 + Fix `\cite` so it is a NormalCitation not AuthorInText.
3772 + Strip off double quotes around image source if present (#2825).
3773 Avoids interpreting these as part of the literal filename.
3775 * Org reader:
3777 + Add semicolon to list of special chars (Albert Krewinkel)
3778 Semicolons are used as special characters in citations syntax. This
3779 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
3780 suffix]`. Previously, parsing would have failed unless there was a space
3781 or other special character as the last <prefix> character.
3782 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
3783 A specification for an official Org-mode citation syntax was drafted by
3784 Richard Lawrence and enhanced with the help of others on the orgmode
3785 mailing list. Basic support for this citation style is added to the
3786 reader.
3787 + Support arbitrary raw inlines (Albert Krewinkel).
3788 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
3789 parlance) to be included as `@@format:raw foreign format text@@`.
3790 + Remove partial functions (Albert Krewinkel, #2991).
3791 Partial functions like `head` lead to avoidable errors and should be
3792 avoided. They are replaced with total functions.
3793 + Support figure labels (Albert Krewinkel, #2496, #2999).
3794 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
3795 respective image. This allows e.g. the LaTeX to add proper `\label`
3796 markup.
3797 + Improve tag and properties type safety (Albert Krewinkel).
3798 Specific newtype definitions are used to replace stringly typing of tags
3799 and properties. Type safety is increased while readability is improved.
3800 + Parse as headlines, convert to blocks (Albert Krewinkel).
3801 Emacs org-mode is based on outline-mode, which treats documents as trees
3802 with headlines are nodes. The reader is refactored to parse into a
3803 similar tree structure. This simplifies transformations acting on
3804 document (sub-)trees.
3805 * Refactor comment tree handling (Albert Krewinkel).
3806 Comment trees were handled after parsing, as pattern matching on lists
3807 is easier than matching on sequences. The new method of reading
3808 documents as trees allows for more elegant subtree removal.
3809 * Support archived trees export options (Albert Krewinkel).
3810 Handling of archived trees can be modified using the `arch` option.
3811 Archived trees are either dropped, exported completely, or collapsed to
3812 include just the header when the `arch` option is nil, non-nil, or
3813 `headline`, respectively.
3814 * Put export setting parser into module (Albert Krewinkel).
3815 Export option parsing is distinct enough from general block parsing to
3816 justify putting it into a separate module.
3817 * Support headline levels export setting (Albert Krewinkel).
3818 The depths of headlines can be modified using the `H` option. Deeper
3819 headlines will be converted to lists.
3820 * Replace ugly code with view pattern (Albert Krewinkel).
3821 Some less-than-smart code required a pragma switching of overlapping
3822 pattern warnings in order to compile seamlessly. Using view patterns
3823 makes the code easier to read and also doesn't require overlapping
3824 pattern checks to be disabled.
3825 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
3826 Org rules for allowed characters before or after markup chars were not
3827 checked for verbatim text. This resultet in wrong parsing outcomes of
3828 if the verbatim text contained e.g. space enclosed markup characters as
3829 part of the text (`=is_substr = True=`). Forcing the parser to update
3830 the positions of allowed/forbidden markup border characters fixes this.
3832 * LaTeX template: fix for obscure hyperref/xelatex issue.
3833 Here's a minimal case:
3835 \documentclass[]{article}
3836 \usepackage{hyperref}
3837 \begin{document}
3838 \section{\%á}
3839 \end{document}
3841 Without this change, this fails on the second invocation of xelatex.
3842 This affects inputs this like `# %á` with pdf output via xelatex.
3844 * trypandoc: call results 'html' instead of 'result'.
3845 This is for better compatibility with babelmark2.
3847 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
3848 MultiMarkdown was only mentioned as a supported Markdown dialect but not
3849 as a possible input or output format. A brief mention is added
3850 everywhere the other supported markdown dialects are mentioned.
3852 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
3853 Raw HTML is kept when the output format is Emacs Org mode.
3855 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
3857 * Text.Pandoc.Shared:
3859 + Introduce blocksToInlines function (Jesse Rosenthal).
3860 This is a lossy function for converting `[Block] -> [Inline]`. Its main
3861 use, at the moment, is for docx comments, which can contain arbitrary
3862 blocks (except for footnotes), but which will be converted to spans.
3863 This is, at the moment, pretty useless for everything but the basic
3864 `Para` and `Plain` comments. It can be improved, but the docx reader
3865 should probably emit a warning if the comment contains more than this.
3866 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
3867 + Add further formats for `normalizeDate` (Jesse Rosenthal).
3868 We want to avoid illegal dates -- in particular years with greater than
3869 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
3870 `%Y%m`, and finally `%Y`.
3871 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
3872 We only allow years between 1601 and 9999, inclusive. The ISO 8601
3873 actually says that years are supposed to start with 1583, but MS Word
3874 only allows 1601-9999. This should stop corrupted word files if the date
3875 is out of that range, or is parsed incorrectly.
3876 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
3877 Previously we parsed a list of dates, took the first one, and then
3878 tested its year range. That meant that if the first one failed, we
3879 returned nothing, regardless of what the others did. Now we test for
3880 sanity before running `msum` over the list of Maybe values. Anything
3881 failing the test will be Nothing, so will not be a candidate.
3883 * Docx reader:
3885 + Add simple comment functionality. (Jesse Rosenthal).
3886 This adds simple track-changes comment parsing to the docx reader. It is
3887 turned on with `--track-changes=all`. All comments are converted to
3888 inlines, which can list some information. In the future a warning will be
3889 added for comments with formatting that seems like it will be excessively
3890 denatured. Note that comments can extend across blocks. For that reason
3891 there are two spans: `comment-start` and `comment-end`. `comment-start`
3892 will contain the comment. `comment-end` will always be empty. The two
3893 will be associated by a numeric id.
3894 + Enable warnings in top-level reader (Jesse Rosenthal).
3895 Previously we had only allowed for warnings in the parser. Now we allow
3896 for them in the `Docx.hs` as well. The warnings are simply concatenated.
3897 + Add warning for advanced comment formatting. (Jesse Rosenthal).
3898 We can't guarantee we'll convert every comment correctly, though we'll
3899 do the best we can. This warns if the comment includes something other
3900 than Para or Plain.
3901 + Add tests for warnings. (Jesse Rosenthal).
3902 + Add tests for comments (Jesse Rosenthal).
3903 We test for comments, using all track-changes options. Note that we
3904 should only output comments if `--track-changes=all`. We also test for
3905 emitting warnings if there is complicated formatting.
3907 * README: update to include track-changes comments. (Jesse Rosenthal)
3909 * Improved Windows installer - don't ignore properties set on command-line.
3910 See #2708. Needs testing to see if this resolves the issue.
3911 Thanks to @nkalvi.
3913 * Process markdown extensions on command line in L->R order (#2995).
3914 Previously they were processed, very unintuitively, in R->L
3915 order, so that `markdown-tex_math_dollars+tex_math_dollars`
3916 had `tex_math_dollars` disabled.
3918 * Added `secnumdepth` variable to LaTeX template (#2920).
3920 * Include table of contents in README.html in Windows package.
3922 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
3923 In Writers.Shared, we strip leading and trailing spaces for display
3924 math. Since SoftBreak's are treated as spaces, we should strip those
3925 too.
3927 * beamer, latex templates: pass biblatexoptions directly in package load.
3928 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
3930 * CPP workaround for deprecation of `parseUrl` in http-client.
3932 * Removed some redundant class constraints.
3934 * make_oxs_package.sh - use OSX env variable.
3936 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
3937 old installing page from website.
3939 * Added `winpkg` target to Makefile. This downloads the windows package
3940 from appveyor and signs it using the key.
3942 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
3943 Raw TeX is kept verbatim when the output format is Emacs Org mode.
3945 * Support math with haddock-library >= 1.4.
3947 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
3948 wouldn't accept the package.
3950 * Update library dependency versions.
3952pandoc (1.17.1)
3954 * New output format: `docbook5` (Ivo Clarysse).
3956 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
3957 (API change).
3959 * Org writer:
3961 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
3962 This allows header attributes to be added to org documents in the form
3963 of `:PROPERTIES:` drawers. All available attributes are stored as
3964 key/value pairs. This reflects the way the org reader handles
3965 `:PROPERTIES:` blocks.
3966 + Add drawer capability (Carlos Sosa). For the implementation of the
3967 Drawer element in the Org Writer, we make use of a generic Block
3968 container with attributes. The presence of a `drawer` class defines
3969 that the `Div` constructor is a drawer. The first class defines the
3970 drawer name to use. The key-value list in the attributes defines
3971 the keys to add inside the Drawer. Lastly, the list of Block elements
3972 contains miscellaneous blocks elements to add inside of the Drawer.
3973 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
3974 reserved for internal use by Org-mode and should not be used.
3975 The `CUSTOM_ID` property is to be used instead, it is converted to the
3976 `ID` property for certain export format.
3978 * LaTeX writer:
3980 + Ignore `--incremental` unless output format is beamer (#2843).
3981 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
3982 Allow for optional argument in square brackets.
3983 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
3984 This allows one to access the hyphenation patterns in CTAN's
3985 hyph-utf8.
3986 + Add missing languages from hyph-utf8 (Andrew Dunning).
3987 + Improve use of `\strut` with `\minipage` inside tables
3988 (Jose Luis Duran). This improves spacing in multiline
3989 tables.
3990 + Use `{}` around options containing special chars (#2892).
3991 + Avoid lazy `foldl`.
3992 + Don't escape underscore in labels (#2921). Previously they were
3993 escaped as `ux5f`.
3994 + brazilian -> brazil for polyglossia (#2953).
3996 * HTML writer: Ensure mathjax link is added when math appears in footnote
3997 (#2881). Previously if a document only had math in a footnote, the
3998 MathJax link would not be added.
4000 * EPUB writer: set `navpage` variable on nav page.
4001 This allows templates to treat it differently.
4003 * DocBook writer:
4005 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
4006 + Properly handle `ulink`/`link` (Ivo Clarysse).
4008 * EPUB reader:
4010 + Unescape URIs in spine (#2924).
4011 + EPUB reader: normalise link id (Mauro Bieg).
4013 * Docx Reader:
4015 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
4016 `moveTo` and `moveFrom` are track-changes tags that are used when a
4017 block of text is moved in the document. We now recognize these tags and
4018 treat them the same as `insert` and `delete`, respectively. So,
4019 `--track-changes=accept` will show the moved version, while
4020 `--track-changes=reject` will show the original version.
4021 + Tests for track-changes moving (Jesse Rosenthal).
4023 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
4024 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
4025 would error out if zip-archive failed. We change the archive extraction
4026 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
4028 * Markdown, HTML readers: be more forgiving about unescaped `&` in
4029 HTML (#2410). We are now more forgiving about parsing invalid HTML with
4030 unescaped `&` as raw HTML. (Previously any unescaped `&`
4031 would cause pandoc not to recognize the string as raw HTML.)
4033 * Markdown reader:
4035 + Added bracket syntax for native spans (#168).
4036 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
4037 + Added `-s` to markdown-reader-more test.
4039 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
4040 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
4042 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
4043 (roblabla).
4045 * RST reader: Support `:class:` option for code block in RST reader
4046 (Sidharth Kapur).
4048 * Org reader (all Albert Krewinkel, except where noted otherwise):
4050 + Stop padding short table rows.
4051 Emacs Org-mode doesn't add any padding to table rows. The first
4052 row (header or first body row) is used to determine the column count,
4053 no other magic is performed.
4054 + Refactor rows-to-table conversion. This refactors
4055 the codes conversing a list table lines to an org table ADT.
4056 The old code was simplified and is now slightly less ugly.
4057 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
4058 This fixes Org mode parsing of some corner cases regarding empty cells
4059 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
4060 two empty cells, but would be parsed as a single cell containing a pipe
4061 character. Empty rows where parsed as alignment rows and dropped from
4062 the output.
4063 + Fix spacing after LaTeX-style symbols.
4064 The org-reader was droping space after unescaped LaTeX-style symbol
4065 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
4066 instead. This seems to be because the LaTeX-reader treats the
4067 command-terminating space as part of the command. Dropping the trailing
4068 space from the symbol-command fixes this issue.
4069 + Print empty table rows. Empty table rows should not
4070 be dropped from the output, so row-height is always set to be at least 1.
4071 + Move parser state into separate module.
4072 The org reader code has become large and confusing. Extracting smaller
4073 parts into submodules should help to clean things up.
4074 + Add support for sub/superscript export options.
4075 Org-mode allows to specify export settings via `#+OPTIONS` lines.
4076 Disabling simple sub- and superscripts is one of these export options,
4077 this options is now supported.
4078 + Support special strings export option Parsing of special strings
4079 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
4080 option.
4081 + Support emphasized text export option. Parsing of emphasized text can
4082 be toggled using the `*` option. This influences parsing of text marked
4083 as emphasized, strong, strikeout, and underline. Parsing of inline math,
4084 code, and verbatim text is not affected by this option.
4085 + Support smart quotes export option. Reading of smart quotes can be
4086 toggled using the `'` option.
4087 + Parse but ignore export options. All known export options are parsed
4088 but ignored.
4089 + Refactor block attribute handling. A parser state attribute was used
4090 to keep track of block attributes defined in meta-lines. Global state
4091 is undesirable, so block attributes are no longer saved as part of the
4092 parser state. Old functions and the respective part of the parser state
4093 are removed.
4094 + Use custom `anyLine`. Additional state changes need to be made after
4095 a newline is parsed, otherwise markup may not be recognized correctly.
4096 This fixes a bug where markup after certain block-types would not be
4097 recognized.
4098 + Add support for `ATTR_HTML` attributes (#1906).
4099 Arbitrary key-value pairs can be added to some block types using a
4100 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
4101 when exporting to HTML, but since we cannot make this distinction here,
4102 the attributes are always added. The functionality is now supported
4103 for figures.
4104 + Add `:PROPERTIES:` drawer support (#1877).
4105 Headers can have optional `:PROPERTIES:` drawers associated with them.
4106 These drawers contain key/value pairs like the header's `id`. The
4107 reader adds all listed pairs to the header's attributes; `id` and
4108 `class` attributes are handled specially to match the way `Attr` are
4109 defined. This also changes behavior of how drawers of unknown type
4110 are handled. Instead of including all unknown drawers, those are not
4111 read/exported, thereby matching current Emacs behavior.
4112 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
4113 + Respect drawer export setting. The `d` export option can be used
4114 to control which drawers are exported and which are discarded.
4115 Basic support for this option is added here.
4116 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
4117 Also fix up tab handling for leading whitespace in code blocks.
4118 + Support new syntax for export blocks. Org-mode version 9
4119 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
4120 where `<FORMAT>` is the format of the block's content, the new
4121 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
4122 supported.
4123 + Refactor `BEGIN...END` block parsing.
4124 + Fix handling of whitespace in blocks, allowing content to be indented
4125 less then the block header.
4126 + Support org-ref style citations. The *org-ref* package is an
4127 org-mode extension commonly used to manage citations in org
4128 documents. Basic support for the `cite:citeKey` and
4129 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
4130 + Split code into separate modules, making for cleaner code and
4131 better decoupling.
4133 * Added `docbook5` template.
4135 * `--mathjax` improvements:
4137 + Use new CommonHTML output for MathJax (updated default MathJax URL,
4138 #2858).
4139 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
4140 This is designed for cases where the input is always TeX and maximal
4141 conformity with TeX is desired. It seems to be smaller and load faster
4142 than what we used before. See #2858.
4143 + Load the full MathJax config to maximize loading speed (KolenCheung).
4145 * Bumped upper version bounds to allow use of latest packages
4146 and compilation with ghc 8.
4148 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
4149 #2310, #2310, #2824). This fixes behavior of roots, e.g.
4150 `\sqrt[3]{x}`, and issues with sub/superscript positioning
4151 and matrix column alignment in docx.
4153 * README:
4155 + Clarified documentation of `implicit_header_references` (#2904).
4156 + Improved documentation of `--columns` option.
4158 * Added appveyor setup, with artefacts (Jan Schulz).
4160 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
4162 * LaTeX template: support for custom font families (vladipus).
4163 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
4164 can find some other usages. Example usage in YAML metadata:
4166 fontfamilies:
4167 - name: \cyrillicfont
4168 font: Liberation Serif
4169 - name: \cyrillicfonttt
4170 options: Scale=MatchLowercase
4171 font: Liberation
4173 * Create unsigned msi as build artifact in appveyor build.
4175 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
4177pandoc (1.17.0.3)
4179 * LaTeX writer: Fixed position of label in figures (#2813).
4180 Previously the label wasn't in the right place, and `\ref`
4181 wouldn't work properly.
4182 * Added .tei test files to pandoc.cabal so they'll be included
4183 in tarball (#2811).
4184 * Updated copyright dates.
4186pandoc (1.17.0.2)
4188 * Fixed serious regression in `htmlInBalanced`, which caused
4189 newlines to be omitted in some raw HTML blocks in Markdown
4190 (#2804).
4192pandoc (1.17.0.1)
4194 * File scope is no longer used when there are no input files (i.e.,
4195 when input comes from stdin). Previously file scope was triggered
4196 when the `json` reader was specified and input came from `stdin`,
4197 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
4198 thanks to Fedor Sheremetyev for calling the bug to our attention.)
4199 * Improved documentation of templates (#2797).
4201pandoc (1.17)
4203 * Added `--file-scope` option (Jesse Rosenthal).
4204 By default pandoc operates on multiple files by first concatenating
4205 them (around extra line breaks) and then processing the joined file. So
4206 it only parses a multi-file document at the document scope. This has the
4207 benefit that footnotes and links can be in different files, but for
4208 some purposes it is useful to parse the individual files first
4209 and then combine their outputs (e.g. when the files use footnotes
4210 or links with the same labels). The `--file-scope` option causes
4211 pandoc to parse the files first, and then combine the parsed output,
4212 instead of combining before parsing. `--file-scope` is selected
4213 automatically for binary input files (which cannot be concatenated)
4214 and for pandoc json.
4216 * Add TEI Writer (Chris Forster) and `tei` output format.
4218 * Added a general `ByteStringReader` with warnings, used by the docx
4219 reader (API change, Jesse Rosenthal).
4221 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
4223 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
4224 to `Set String.` This avoids performance problems in documents with
4225 many identically named headers (API change, #2671).
4227 * Removed `tex_math_single_backslash` from `markdown_github` options
4228 (#2707).
4230 * Make language extensions as well as full language names
4231 trigger syntax highlighting. For example, `py` will now work as
4232 well as `python` (jgm/highlighting-kate#83).
4234 * Added `institute` variable to latex, beamer templates (Fraser
4235 Tweedale, Josef Svenningsson).
4237 * Docx reader (Jesse Rosenthal):
4239 + Handle alternate content. Some word functions (especially graphics)
4240 give various choices for content so there can be backwards compatibility.
4241 + Don't turn numbered headers into lists.
4242 + Docx Reader: Add state to the parser, for warnings
4243 + Update feature checklist in source code.
4244 + Get rid of `Modifiable` typeclass.
4245 + Add tests for adjacent hyperlinks.
4246 + Add a "Link" modifier to `Reducible`. We want to make sure that
4247 links have their spaces removed, and are appropriately smushed
4248 together (#2689).
4250 * HTML reader:
4252 + Fixed behavior of base tag (#2777).
4253 If the base path does not end with slash, the last component
4254 will be replaced. E.g. base = `http://example.com/foo`
4255 combines with `bar.html` to give `http://example.com/bar.html`.
4256 If the href begins with a slash, the whole path of the base
4257 is replaced. E.g. base = `http://example.com/foo/` combines
4258 with `/bar.html` to give `http://example.com/bar.html`.
4259 + Rewrote `htmlInBalanced`. This version avoids an exponential
4260 performance problem with `<script>` tags, and it should be faster
4261 in general (#2730).
4262 + Properly handle an empty cell in a simple table (#2718).
4263 + Handle multiple `<meta>` tags with same name. Put them in a list
4264 in the metadata so they are all preserved, rather than (as before)
4265 throwing out all but one..
4267 * Markdown reader:
4269 + Improved pipe table parsing (#2765).
4270 + Allow `+` separators in pipe table cells. We already allowed
4271 them in the header, but not in the body rows, for some reason.
4272 This gives compatibility with org-mode tables.
4273 + Don't cross line boundary parsing pipe table row.
4274 Previously an Emph element could be parsed across the newline
4275 at the end of the pipe table row.
4276 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
4277 performance (#2730).
4278 + Fixed bug with smart quotes around tex math.
4280 * LaTeX reader:
4282 + Handle interior `$` characters in math (#2743). For example,
4283 `$$\hbox{$i$}$$`.
4284 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
4285 This gives better results when people write e.g. `\TeX{}` in Markdown.
4286 + Properly handle LaTeX "math" environment as inline math (#2171).
4288 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
4289 Closes #2674.
4291 * Org reader (Albert Krewinkel):
4293 + Prefix even empty figure names with "fig:" (#2643). The
4294 convention used by pandoc for figures is to mark them by prefixing
4295 the name with `fig:`. The org reader failed to do this if a figure
4296 had no name.
4297 + Refactor link-target processing (#2684).
4299 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
4300 Thanks to @c-foster.
4302 * HTML writer: Don't include alignment attribute for default table columns.
4303 Previously these were given "left" alignment. Better to leave off
4304 alignment attributes altogether (#2694).
4306 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
4307 better compatibility with other Markdown flavors (Henrik Tramberend).
4309 * LaTeX writer:
4311 + Use image identifier to create a label and hypertarget for
4312 figures (Mauro Bieg).
4313 + Avoid double toprule in headerless table with caption (#2742).
4314 + Clean up options parser (Jesse Rosenthal).
4315 + Treat `memoir` template with `article` option as article, instead
4316 of treating all `memoir` templates as books.
4317 + Allow more flexible table alignment (Henrik Tramberend, #2665).
4318 New default is not to include `[c]` option (which is the default
4319 anyway if no positioning is specified). Now LaTeX emplates can
4320 control the overall table alignment in a document by setting the
4321 longtable length variables `LTleft` and `LTright`. For example,
4322 `\setlength\LTleft\parindent\setlength\LTright\fill`
4323 will create left-aligned tables that respect paragraph indentation.
4325 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
4327 * Org writer - pass through RawInline with format "org".
4329 * DokuWiki writer: use `$$` for display math.
4331 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
4333 * Make protocol-relative URIs work again (#2737).
4335 * make_osx_package.sh: Use env variable for developer id certs.
4337 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
4338 problems (#2734).
4340 * Allow `zip-archive` 0.3.
4342 * Allow `aeson` 0.11.
4344pandoc (1.16.0.2)
4346 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
4348 * Fixed regression in latex smart quote parsing (#2645).
4349 In cases where a match was not found for a quote, everything
4350 from the open quote to the end of the paragraph was being dropped.
4352pandoc (1.16.0.1)
4354 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
4355 raises an error if a full path is given.
4357 * Org reader: Fix function dropping subtrees tagged `:noexport`
4358 (Albert Krewinkel, #2628):
4360 * Markdown reader: renormalize table column widths if they exceed 100%
4361 (#2626).
4363 * Textile reader: don't allow block HTML tags in inline contexts.
4364 The reader previously did allow this, following redcloth,
4365 which happily parses
4367 Html blocks can be <div>inlined</div> as well.
4369 as
4371 <p>Html blocks can be <div>inlined</div> as well.</p>
4373 This is invalid HTML. The above sample now produces;
4375 <p>Html blocks can be</p>
4376 <div>
4377 <p>inlined</p>
4378 </div>
4379 <p>as well.</p>
4381 * Improved default template lookup for custom lua scripts (#2625).
4382 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
4383 pandoc would look for the template in
4384 `~/.pandoc/templates/default./path/to/lua/script.lua`.
4385 With this change it will look in the more reasonable
4386 `~/.pandoc/templates/default.script.lua`. This makes it possible to
4387 store default templates for custom writers.
4389 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
4390 (#2615).
4392 * LaTeX writer: restore old treatment of Span (#2624). A Span is
4393 now rendered with surrounding `{}`, as it was before 1.16.
4395 * Entity handling fixes: improved handling of entities like
4396 `&lang;` that require a trailing semicolon. Allow uppercase
4397 `x` in numerical hexidecimal character references, working
4398 around a tagsoup bug.
4400 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
4401 memory use on compile. With aeson 0.10 we were getting an out of
4402 memory error on a 2GB Ubuntu 64-bit VM.
4404 * Improved deb package creation script. Made `DPKGVER` work.
4405 Renamed `COMMIT` to `TREE`. You should now be able to do
4406 `TREE=1.16.0.1 DPKGVER=2 make deb`.
4409pandoc (1.16)
4411 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
4413 + Added syntax for link and image attributes to pandoc's Markdown.
4414 + Updated readers and writers to use link and image attributes
4415 when appropriate.
4416 + Support image attributes in Docx, Textile, RST readers.
4418 * Renamed link attribute extensions. The old `link_attributes` is
4419 now `mmd_link_attributes`, and `link_attributes` now enables the
4420 new pandoc-style link and image attributes (API change).
4421 Note: this change could break some existing workflows.
4423 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
4424 Added threefold wrapping option.
4426 + Command line option: deprecated `--no-wrap`, added
4427 `--wrap=[auto|none|preserve]`
4428 + Added `WrapOption`, exported from `Text.Pandoc.Options`
4429 + Changed type of `writerWrapText` in `WriterOptions` from
4430 `Bool` to `WrapOption`.
4431 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
4432 + Supported `SoftBreak` in readers and writers.
4434 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
4435 change, Mauro Bieg).
4437 * Added `--dpi` command-line option (Mauro Bieg).
4439 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
4440 This change makes `--no-tex-ligatures` affect the LaTeX reader
4441 as well as the LaTeX and ConTeXt writers. If it is used,
4442 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
4443 literally, rather than parsing ligatures for quotation marks
4444 and dashes. And the LaTeX writer will print unicode quotation
4445 mark and dash characters literally, rather than converting
4446 them to the standard ASCII ligatures. Note that `--smart` has
4447 no effect on the LaTeX reader. `--smart` is still the default
4448 for all input formats when LaTeX or ConTeXt is the output format,
4449 *unless* `--no-tex-ligatures` is used.
4451 Some examples to illustrate the logic:
4453 ```
4454 % echo "'hi'" | pandoc -t latex
4455 `hi'
4456 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
4457 'hi'
4458 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
4459 ‘hi’
4460 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
4461 <p>'hi'</p>
4462 % echo "'hi'" | pandoc -f latex
4463 <p>’hi’</p>
4464 ```
4466 * Removed deprecated options `--offline` and `--html5`.
4468 * Fixed language code for Czech (`cs` not `cz`) (#2597).
4470 * Implemented `east_asian_line_breaks` extension (#2586).
4471 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
4472 to `Extension` (API change). This extension is like
4473 `ignore_line_breaks`, but smarter -- it only ignores line breaks
4474 between two East Asian wide characters. This makes it better suited
4475 for writing with a mix of East Asian and non-East Asian scripts.
4477 * Added support for PDF creation via `wkhtmltopdf`.
4478 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
4479 if you have math.) Margins can be set using the variables
4480 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
4481 Other styling can be done through CSS.
4483 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
4484 We were capturing final colons as in `[@foo: bar]`; the citation id
4485 was being parsed as `@foo:`.
4487 * ICML writer:
4489 + Fixed image syntax for local files (#2589).
4490 + Changed type of `writeICML` (Mauro Bieg).
4491 API change: It is now `WriterOptions -> Pandoc -> IO String`.
4492 Also handle new image attributes.
4493 + Intersperse line breaks instead of appending them to
4494 every `ParagraphStyleRange` (Mauro Bieg, #2501).
4495 + Add `Cite` style to citations (Mauro Bieg).
4496 + Added figure handling (#2590, Mauro Bieg).
4497 + Better handling of math. Instead of just printing the raw tex,
4498 we now try to fake it with unicode characters.
4500 * HTML writer: Include `example` class for example lists (#2524).
4502 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
4504 + Support for percentage widths/heights
4505 + Use `Attr` instead of title to get dimensions from ODT walker
4506 to `writeOpenDocument`.
4508 * AsciiDoc writer:
4510 + Support anchors in spans and divs with id elements
4511 (jgm/pandoc-citeproc#143).
4512 + Fixed code blocks (#1861).
4514 * Haddock writer: omit formatting inside links, which isn't supported
4515 by Haddock (#2515).
4517 * MediaWiki writer: Fixed spacing issues in table cells.
4519 + Start cell on new line unless it's a single Para or Plain
4520 (#2606).
4521 + For single Para or Plain, insert a space after the `|` to
4522 avoid problems when the text begins with a character like
4523 `-` (#2604).
4525 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
4527 * LaTeX writer:
4529 + Add support for GAP highlighting using listings (Raniere Silva).
4530 + Consider `header-includes` content as well as templates
4531 when determining whether to use csquotes (Andreas Lööw).
4532 + Create defaults for geometry using `margin-left` etc.
4533 If `geometry` has no value, but `margin-left`, `margin-right`,
4534 `margin-top`, and/or `-margin-bottom` are given, a default value
4535 for `geometry` is created from these. Note that these variables
4536 already affect PDF production via HTML5 with `wkhtmltopdf`.
4538 * ConTeXt writer: set default layout based on `margin-left`, etc.
4539 This sets up `\setuplayout` based on the variables `margin-left`,
4540 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
4541 is given.
4543 * Docx writer: better handling of PDF images. Previously we tried
4544 to get the image size from the image even if an explicit size was
4545 specified. Since we still can't get image size for PDFs, this made
4546 it impossible to use PDF images in docx. Now we don't try to get
4547 the image size when a size is already explicitly specified.
4549 * Markdown writer: use raw HTML for link/image attributes when
4550 the `link_attributes` extension is unset and `raw_html` is set (#2554).
4552 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
4554 * LaTeX reader:
4556 + Improved smart quote parsing (#2555). This fixes redering of
4557 unmatched quotes.
4558 + Use curly quotes for unmatched ` (#2555).
4559 + Allow blank space between braced arguments of commands (#2592).
4561 * Markdown reader:
4563 + Improved pipe table relative widths. Previously pipe table
4564 columns got relative widths (based on the header underscore lines)
4565 when the source of one of the rows was greater in width than the
4566 column width. This gave bad results in some cases where much of
4567 the width of the row was due to nonprinting material (e.g. link
4568 URLs). Now pandoc only looks at printable width (the width of a
4569 plain string version of the source), which should give better results.
4570 Thanks to John Muccigrosso for bringing up the issue.
4571 + Fixed parsing bug with macros. Previously macro definitions in
4572 indented code blocks were being parsed as macro definitions, not code.
4574 * Textile reader: skip over attribute in image source (#2515).
4575 We don't have a place yet for styles or sizes on images, but
4576 we can skip the attributes rather than incorrectly taking them
4577 to be part of the filename.
4579 * Docx reader: Handle dummy list items (Jesse Rosenthal).
4580 These come up when people create a list item and then delete the
4581 bullet. It doesn't refer to any real list item, and we used to ignore
4582 it.
4584 * CommonMark reader/writer rewritten to use latest `cmark`.
4586 * Fixed Emoji character definitions (#2523). There were many bugs in the
4587 definitions.
4589 * `Text.Pandoc.CSS`:
4591 + Added `pickStylesToKVs` function to extract multiple properties at
4592 once (API change, Mauro Bieg).
4593 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
4595 * `trypandoc`: sort drop-down lists.
4597 * Beamer template:
4599 + Made `\euro` conditional on presence of character.
4600 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
4601 + Moved `header-includes` before setting of title (Thomas Hodgson),
4602 to match the LaTeX template (jgm/pandoc-templates#168).
4603 + Added `section-titles` variable (defaults to true)
4604 to enable/suppress section title pages in beamer
4605 slide shows (Thomas Hodgson).
4606 + Moved beamer themes after fonts, so that themes can
4607 change fonts. (Previously the fonts set were being
4608 clobbered by lmodern.sty.) (Thomas Hodgson).
4610 * Beamer/LaTeX template changes (Thomas Hodgson):
4611 + Added `thanks` variable
4612 + Use `parskip.sty` when `indent` isn't set (fall back to using
4613 `setlength` as before if `parskip.sty` isn't available).
4614 + Use `biblio-style` with biblatex.
4615 + Added `biblatexoptions` variable.
4617 * LaTeX template changes:
4619 + Added `paper` after `$papersize$` variable in latex template.
4620 Thus you can say `papersize: a4` and the latex will contain
4621 `a4paper`. This change may break some existing workflows; if
4622 you currently specify `a4paper`, you'll get `a4paperpaper` which
4623 is meaningless. However, the change seems worth it, as it will
4624 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
4625 and html->pdf via wkhtmltopdf.
4626 + Only pass options to color package if `colorlinks` is set
4627 (Andrew Dunning).
4628 + Make definition of `\euro` conditional in xelatex/lualatex,
4629 as it is already for pdflatex (Andrew Dunning).
4630 + Removed setting of `subject` in PDF metadata.
4631 This used to be set to the subtitle, but really the subtitle
4632 need not give the subject. Also, `subtitle` can contain formatting,
4633 so we'd need, at least, a plain text version for this.
4634 + Moved `header-includes` before setting of `\title`, `\author`,
4635 etc. This allows these macros to be redefined.
4636 + Use `\subtitle` command for `subtitle`, instead of tacking it
4637 on to the title as before. We give a no-op fallback definition if it
4638 is not defined. This change should produce much better results
4639 in classes that support `\subtitle`. With the default article
4640 class, which does not define `\subtitle`, subtitles will no
4641 longer be printed unless the user defines `\subtitle` and
4642 redefines `\maketitle`.
4643 + Moved redefinitions of `\paragraph` and `\subparagraph` to
4644 before header-includes.
4646 * Context template:
4648 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
4649 needed for things to work on ConTeXt stable from TeXLive 2015.
4650 + Revert use of `\setuphead` in title block (Andrew Dunning,
4651 Rik Kabel).
4653 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
4655 * Fixed man template so disabling hyphenation actually works.
4656 The command needs to come after .TH.
4658 * Added 'navigation' variable to beamer template (#2543).
4659 Valid values are `empty` (the default), `horizontal`, `vertical`,
4660 and `frame`. Note that this changes the default behavior from
4661 `horizontal` to `empty`. Closes #2543.
4663 * Added `toc` to HTML slide format templates (Andrew Dunning),
4664 so that `--toc` creates a contents slide.
4666 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
4668 * Allow pipe tables with no body rows (#2556).
4669 Previously this raised a runtime error.
4671 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
4672 as URL. The Haskell URI parsing routines will accept "C:" as a
4673 scheme, so we rule that out manually. This helps with
4674 `--self-contained` and absolute Windows paths.
4676 * Define a `meta-json` variable for all writers (#2019). This contains
4677 a JSON version of all the metadata, in the format selected for the
4678 writer. So, for example, to get just the YAML metadata, you can run
4679 pandoc with the following custom template: `$meta-json$`. The intent
4680 is to make it easier for static site generators and other tools to get
4681 at the metadata.
4683 * Document limitations of --self-contained (#2553).
4685 * Improved Citations section of README (#2551). Added information
4686 about `link-citations` and a link to the pandoc-citeproc man page.
4688 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
4689 in base < 4.6.
4691 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
4693 * Improved implicit pandoc-citeproc inclusion.
4694 The filter pandoc-citeproc is automatically used when
4695 `--bibliography` is specified on the command line, unless
4696 `--natbib` or `--biblatex` is used. However, previously this
4697 only worked if `--bibliography` was spelled out in full, and not
4698 if `--biblio` was used.
4700 * reveal.js: Interpret pauses correctly for all headers (#2530).
4701 Previously, when using headers below the slide level, pauses are left
4702 uninterpreted into pauses. In my opinion, unexpected behavior but
4703 intentional looking at the code.
4705 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
4707 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
4708 Bieg, API change).
4710 * ImageSize: Added functions for converting between image dimensions
4711 (Mauro Bieg).
4713 * Use lts-3.18 in stack.yaml. This avoids Windows build
4714 issues with the HTTP library.
4716 * Bump version bounds for dependencies.
4718pandoc (1.15.2.1)
4720 * Added two missing test files, and `stack.yaml`, to
4721 `extra-source-files` so they're included in the source tarball.
4723 * reveal.js template: Fixed parallaxBackground options.
4724 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
4725 need integer values, not strings. (Vaughn Iverson)
4727pandoc (1.15.2)
4729 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
4730 ConTeXt rather than LaTeX (#2463).
4732 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
4734 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
4735 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
4736 (API change).
4738 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
4739 parsing (#2469). Tightened up the inline HTML parser so it disallows
4740 TagWarnings.
4742 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
4744 * Org reader:
4746 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
4747 Paragraphs can be followed by lists, even if there is no blank line
4748 between the two blocks. However, this should only be true if the
4749 paragraph is not within a list, were the preceding block should be
4750 parsed as a plain instead of paragraph (to allow for compact lists).
4751 Thanks to @rgaiacs for bringing this up.
4752 + Allow toggling header args (Albert Krewinkel, #2269).
4753 Org-mode allows to skip the argument of a code block header argument if
4754 it's toggling a value. Argument-less headers are now recognized,
4755 avoiding weird parsing errors.
4756 + Fix markup parsing in headers (Albert Krewinkel, #2504).
4757 Markup as the very first item in a header wasn't recognized. This was
4758 caused by an incorrect parser state: positions at which inline markup
4759 can start need to be marked explicitly by changing the parser state.
4760 This wasn't done for headers. The proper function to update the state
4761 is now called at the beginning of the header parser, fixing this issue.
4762 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
4763 Smart quotes, ellipses, and dashes should behave like normal quotes,
4764 single dashes, and dots with respect to text markup parsing.
4765 + Require whitespace around definition list markers (#2518).
4766 This rule was not checked before, resulting in bugs with footnotes
4767 and some link types.
4769 * Markdown reader:
4771 + Pipe tables with long lines now get relative cell widths (#2471).
4772 If a pipe table contains a line longer than the column width (as set by
4773 `--columns` or 80 by default), relative widths are computed based on the
4774 widths of the separator lines relative to the column width. This should
4775 solve persistent problems with long pipe tables in LaTeX/PDF output, and
4776 give more flexibility for determining relative column widths in other
4777 formats, too. For narrower pipe tables, column widths of 0 are used,
4778 telling pandoc not to specify widths explicitly in output formats that
4779 permit this.
4780 + Improved parser for `mmd_title_block`. We now allow blank metadata
4781 fields. These were explicitly disallowed before.
4782 + Citation keys can now contain `://`, so URLs and DOIs can be used
4783 as citation keys (jgm/pandoc-citeproc#166).
4785 * Beamer template: fix incompatibility of section slides with natbib.
4786 Natbib (and presumably biblatex) bibliography commands create
4787 their own section. Since these are in frame environments,
4788 we have an incompatibility with the `\AtBeginSection` macro
4789 which creates a special frame when a new section occurs.
4790 (We can't have a frame inside another frame.) This change disables
4791 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
4792 bringing the problem to my attention. This supersedes #145. See
4793 discussion there.
4795 * Textile reader: don't do smart punctuation unless explicitly asked
4796 (#2480). Note that although smart punctuation is part of the textile
4797 spec, it's not always wanted when converting from textile
4798 to, say, Markdown. So it seems better to make this an option.
4800 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
4801 The `comment` environment is handled in a similar way to the
4802 `verbatim` environment, except that its content is discarded.
4804 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
4805 Jesse Rosenthal). This fixes a problem with links in notes.
4807 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
4808 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
4809 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
4810 they aren’t set already. See #895.
4812 * LaTeX writer:
4814 + Use proper command for `\textarabic` (Mauro Bieg).
4815 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
4816 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
4817 to link to Div or Span elements. We now don't bother defining `\label`
4818 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
4819 + Avoid footnotes in list of figures (#1506).
4820 + Properly handle footnotes in captions (#1506).
4821 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
4822 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
4823 `toccolor` is set (#2508).
4825 * Textile writer: support start number in ordered lists (#2465).
4827 * OpenDocument writer: Allow customization of opendocument
4828 automatic styles. Automatic styles can now be inserted in the
4829 template, which now provides the enclosing `<office:automatic-styles>`
4830 tags (#2520).
4832 * Docx writer: insert space between footnote reference and note (#2527).
4833 This matches Word's default behavior.
4835 * EPUB writer: don't download linked media when `data-external` attribute
4836 set (#2473). By default pandoc downloads all linked media and includes it
4837 in the EPUB container. This can be disabled by setting `data-external` on
4838 the tags linking to media that should not be downloaded. Example:
4840 <audio controls="1">
4841 <source src="http://example.com/music/toccata.mp3"
4842 data-external="1" type="audio/mpeg">
4843 </source>
4844 </audio>
4846 * HTML writer: use width on whole table if col widths sum to < 100%.
4847 Otherwise some browsers display the table with the columns
4848 separated far apart.
4850 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
4851 `abstract` (Andrew Dunning).
4853 * HTML-based templates (Andrew Dunning):
4855 + Use en dash instead of hyphen between title prefix and title.
4856 + Add `keywords` to metadata.
4857 + Add `lang`, `dir`, `quotes` where missing.
4858 + Always make author and date display conditional.
4859 + Updated dzslides template from source.
4861 * Man template: make "generated by" comment conditional.
4863 * LaTeX, Beamer templates:
4865 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
4866 filled by commands that make babel understand the polyglossia-style
4867 language directives (Mauro Bieg, #137).
4868 + Improved formatting of conditionals; `$for$` is always provided to allow
4869 multiple options (Andrew Dunning, #141).
4870 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
4871 to improve support for LuaTeX (Andrew Dunning, #135).
4872 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
4873 - use same options for all LaTeX engines;
4874 - add `subtitle` and `keywords` to PDF metadata;
4875 - do not override `hyperref` link coloring without user input, effectively making
4876 the `hidelinks` option the default (removed as a separate variable);
4877 - link colors can be enabled (using a slightly darker version of the old
4878 defaults) using a new `colorlinks` variable, automatically used by
4879 the LaTeX writer when custom colors are specified;
4880 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
4881 `colorlinks`, and is only applied if `colorlinks` is disabled.
4883 * ConTeXt template (Andrew Dunning):
4885 + New variables for controlling styles: `linkstyle`, `linkcolor`,
4886 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
4887 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
4888 `monofont`, `mathfont`, `fontsize`.
4889 + Default template no longer supports MkII.
4890 + Improve writing of title block (suppressing numbering of first page).
4891 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
4892 + Support `subtitle`, `abstract`.
4893 + Support list of figures (`lof`), list of tables (`lot`).
4894 + Disable link styling by default.
4895 + Define styles for all section types.
4896 + Enable microtype.
4897 + Improved formatting of conditionals.
4899 * Beamer template: added code to prevent slide breaks inside paragraphs
4900 (#2422, thanks to Nick Bart). This will matter, in practice, only when
4901 `allowframebreaks` is used. It is especially helpful for bibliography
4902 slides.
4904 * OpenDocument template: Add `<office:automatic-styles>` tag around
4905 automatic styles. The writer now longer provides this (see #2520).
4907 * Restored Text.Pandoc.Compat.Monoid.
4909 * Do not export (<>) from custom Prelude. The Prelude now matches
4910 base 4.8 Prelude's API.
4912 * Don't use custom prelude with ghc 7.10. Use the custom prelude
4913 only for earlier versions. This change makes `stack ghci` and
4914 `cabal repl` work (#2503), at least with ghc 7.10.
4916 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
4917 This prevents problems building haddocks with "C" locale.
4919 * Change default for old-locale flag to False.
4921 * Use stack in deb, osx, and Windows package generators.
4923 * Added Vagrantfile for building deb in vm.
4924 This should help in automating binary package creation. 'make package'
4925 will make the package. 'make package COMMIT=blah' will make the package
4926 from commit blah.
4928 * README:
4930 + Consistent capitalization for pandoc and Markdown.
4931 + Fixed `auto_identifiers` examples (Benoit Schweblin).
4932 + Improved documentation of template variables (Andrew Dunning).
4934pandoc (1.15.1.1)
4936 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
4937 This way we have uniform separators, whether on Windows or Linux.
4938 This should solve a problem where on some Windows versions
4939 the data files weren't being found (#2459).
4941pandoc (1.15.1)
4943 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
4944 and reexported from `Text.Pandoc` (Alex Vong). This allows
4945 writers to access it. (Alex Vong) (API change)
4947 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
4948 `subscripts` (#2401).
4950 * Added `odt` as input format (Martin Linnemann). Added new module
4951 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
4952 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
4953 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
4954 Partly implemented features: Citations, Tables.
4956 * Markdown Reader:
4958 + Add basic tests for each header style (Ophir Lifshitz).
4959 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
4960 + Skip spaces in headers (Ophir Lifshitz).
4961 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
4962 `# Header {id="myid" class="foo bar"}`
4963 is now equivalent to `# Header {#myid .foo .bar}`.
4964 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
4965 (Kristof Bastiaensen)
4966 + Pipe tables: allow indented columns. Previously the left-hand column
4967 could not start with 4 or more spaces indent. This was inconvenient
4968 for right-aligned left columns. Note that the first (header column)
4969 must still have 3 or fewer spaces indentation, or the table will be
4970 treated as an indented code block.
4971 + Fix regression: allow HTML comments containing `--`.
4972 Technically this isn't allowed in an HTML comment, but
4973 we've always allowed it, and so do most other implementations.
4974 It is handy if e.g. you want to put command line arguments
4975 in HTML comments.
4977 * LaTeX reader:
4979 + Don't eat excess whitespace after macros with only optional
4980 arguments (#2446).
4981 + Support longtable (#2411).
4982 + Implement `\Cite` (#2335).
4983 + Support abstract environment. The abstract populates an
4984 `abstract` metadata field.
4985 + Properly handle booktabs lines. Lines aren't part of the
4986 pandoc table model, so we just ignore them (#2307).
4988 * HTML reader:
4990 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
4991 + Updated for new automatic header attributes.
4992 + Add auto identifiers if not present on headers. This makes
4993 TOC linking work properly.
4994 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
4995 + Test `<ol>` type, class, and inline list-style(-type) CSS
4996 (Ophir Lifshitz).
4997 + Better handling of "section" elements (#2438). Previously
4998 `<section>` tags were just parsed as raw HTML blocks. With
4999 this change, section elements are parsed as Div elements with
5000 the class "section".
5002 * MediaWiki reader: handle unquoted table attributes (#2355).
5004 * DocBook reader:
5006 + Added proper support for DocBook `xref` elements (Frerich Raabe).
5007 Added `dbContent` field to reader state, so we can lookup
5008 cross refs.
5009 + Handle `informalexample` (#2319).
5011 * Docx Reader:
5013 + Create special punctuation test (Ophir Lifshitz).
5014 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
5015 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
5016 in `headers.docx` with pandoc's current `styles.xml`, which
5017 contains styles for Heading 1 through 6. Added Heading 4
5018 through 7 to the test document. Note that Heading 7 is not
5019 parsed as a Heading because there is no Heading 7 style.
5021 * RST reader: better handling of indirect roles.
5022 Previously the parser failed on this kind of case
5024 .. role:: indirect(code)
5026 .. role:: py(indirect)
5027 :language: python
5029 :py:`hi`
5031 Now it correctly recognizes `:py:` as a code role.
5033 * Org reader:
5035 + Add auto identifiers if not present on headers
5036 (#2354, Juliusz Gonera).
5037 + Allow verse blocks to contain empty lines (#2402,
5038 Albert Krewinkel).
5040 * EPUB reader: stop mangling external URLs (#2284).
5042 * RST writer:
5044 + Don't insert `\ ` when complex expression in matched pairs.
5045 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
5046 + Ensure that `\ ` is inserted when needed before Cite and Span
5047 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
5048 + Normalize headers only in "standalone" mode (#2394).
5050 * Haddock writer: escape `*` and `^` (G. Bataille).
5052 * Markdown writer:
5054 + In TOC, add links to headers (#829).
5055 + Use unicode super/subscripts for digits in plain output
5056 (when the `superscripts` and `subscripts` extensions are
5057 not enabled).
5059 * Docx writer:
5061 + Moved invalid character stripping to `formattedString`.
5062 This avoids an inefficient generic traversal (#2356).
5063 + Use user data directory for `reference.docx` archive.
5064 This allows the test suite to work without installing pandoc first.
5065 It also brings the docx writer in line with the odt writer.
5066 + Tests: docx writer tests now use `../data` for data directory.
5067 This allows tests to be run without installing first.
5068 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
5070 * LaTeX writer:
5072 + Fixed detection of 'chapters' from template.
5073 If a documentclass isn't specified in metadata, but the
5074 template has a hardwired bookish documentclass, act as if
5075 `--chapters` was used. This was the default in earlier
5076 versions, but it has been broken for a little while.
5077 + Correctly recognize book documentclass in metadata (#2395).
5078 + Set language-related variables automatically, depending
5079 on the value of the `lang` field, which is now always
5080 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
5081 + Add `\protect` to `\hyperdef` in inline context. This way we
5082 don't get an error when this is used as a moveable argument (#2136).
5083 + Support all frame attributes in Beamer.
5084 + Percent-encode more special characters in URLs (#1640, #2377).
5085 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
5087 * HTML writer:
5089 + Update KaTeX JS and CSS versions (Emily Eisenberg).
5090 + For dzslides, add `role="note"` for speaker notes (#1693).
5091 + Percent-encode more special characters in URLs (#1640, #2377).
5092 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
5093 + Render Div with class `section` as `<section>` in HTML5.
5095 * EPUB writer:
5097 + In TOC, replace literal `<br/>` with space (#2105).
5098 + With `--webtex`, include image file rather than `data:` URI (#2363).
5100 * Native writer: format Div properly, with blocks separated.
5102 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
5103 (#2191, Mauro Bieg).
5105 * Reference Docx:
5107 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
5108 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
5110 * Templates
5112 + Beamer: Add `innertheme`, `outertheme` variables
5113 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
5114 Integrate recent font and language updates from LaTeX template;
5115 allow use of `mainfont` variable for changing the slide text
5116 in XeTeX and LuaTeX (Andrew Dunning, #131).
5117 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
5118 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
5119 (Andrew Dunning, #122). Support handling of bidirectional
5120 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
5121 under XeTeX and prevent letters and numbers from appearing on a
5122 different baseline by removing use of the `realscripts` package
5123 (via `xltxtra`). To restore use of OpenType characters for these
5124 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
5125 `header-includes` (Andrew Dunning, #130). Remove redundant
5126 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
5127 `indent`, `subparagraph` variables (Andrew Dunning).
5128 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
5129 #113). Prevent package clash with `tufte-latex` and other classes that
5130 include `hyperref` or `color` (Xavier Olive, #115).
5131 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
5132 + LaTeX and ConTeXt: Use more specific language variables.
5133 Instead of directly using `lang`, we now use `babel-lang` and
5134 `polyglossia-lang` and `context-lang`. These variables are set by
5135 the writers to the necessary values, based on the `lang` variable
5136 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
5137 #129).
5138 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
5139 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
5140 Add dir attribute in html5 (Andrew Dunning).
5141 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
5142 Add `width`, `height` variables (Andrew Dunning). Update template
5143 from 3.1 source (Andrew Dunning). All configuration options are now
5144 available as variables, but are only be included if set (reveal.js
5145 uses defaults otherwise).
5146 + man: Added comment stating that the page is autogenerated by pandoc,
5147 giving version. Added `adjusting` and `hyphenate` variables
5148 (Alex Vong, #123).
5150 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
5152 * MediaBag: ensure that `/` is always used as path separator.
5154 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
5156 * Added `--bash-completion` option. This generates a bash completion
5157 script. To use: `eval "$(pandoc --bash-completion)"`.
5159 * Text.Pandoc.Error: Define Typeable and Exception instances
5160 for PandocError (#2386).
5162 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
5163 This makes keys with extra space at the beginning and end
5164 work: e.g.
5166 [foo]: bar
5168 [ foo ]
5170 will now be a link to bar (it wasn't before).
5172 * Text.Pandoc: disable `auto_identifiers` for epub.
5173 The epub writer inserts its own auto identifiers;
5174 this is more complex due to splitting into "chapter" files.
5176 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
5177 It now reexports Data.Time.
5179 * Use custom Prelude to avoid compiler warnings.
5181 + The (non-exported) prelude is in prelude/Prelude.hs.
5182 + It exports Monoid and Applicative, like base 4.8 prelude,
5183 but works with older base versions.
5184 + It exports (<>) for mappend.
5185 + It hides 'catch' on older base versions.
5187 * Added a `stack.ymal` and stack install instructions to INSTALL.
5189 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
5191 * Added note to CONTRIBUTING.md about ghc versions and travis.
5193 * Clarify docs on block quotes. The space after `>` is optional (#2346).
5195 * Removed obsolete reference to default.csl (#2372).
5197 * List all styles in manual for `--reference-docx` (Chris Black)
5199 * Don't capitalize header links in man page.
5201 * Added section on repl to CONTRIBUTING.md.
5203 * README: Added space after backslash in image example (#2329).
5205 * Document details of citation locator terms (Nick Bart).
5207 * Fixed some internal links in README (#2309).
5209 * Improve CSL documentation, variables documentations,
5210 links, and cross-references in README. (Andrew Dunning)
5212 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
5214 * Use `newManager` instead of `withManager` in recent `http-client`.
5215 This avoids a deprecation warning.
5217 * Allow building with latest versions of http-types,
5218 HUnit, criterion, syb, aeson.
5220 * Updated benchmark program for new criterion API.
5222 * Setup.hs: rewrite so as not to use process, directory, filepath.
5223 Using anything outside base is dangerous, since older
5224 versions of ghc may link against two different versions.
5226 * Added appveyor (Windows continuous integration) builds.
5228 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
5229 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
5230 `make .travis.yml` regenerates it based on the tested-with
5231 field of the cabal file.
5233pandoc (1.15.0.6)
5235 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
5236 Previously `--self-contained` wiped out all spaces in CSS,
5237 including semantically significant spaces. This was a regression
5238 from 1.14.x.
5240 * Markdown reader: don't allow bare URI links or autolinks in link
5241 label (#2300). Added test cases.
5243 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
5244 Previously we disallowed `-` at the end of an autolink,
5245 and disallowed the combination `=-`. This commit liberalizes the
5246 rules for allowing punctuation in a bare URI, and adds test cases.
5247 One potential drawback is that you can no longer put a bare
5248 URI in em dashes like this:
5249 `this uri---http://example.com---is an example.`
5250 But in this respect we now match github's treatment of bare URIs.
5252 * HTML writer: support speaker notes in dzslides.
5253 With this change `<div class="notes">` and also `<div class="notes"
5254 role="note">` will be output if `-t dzslides` is used. So we can
5255 have speaker notes in dzslides too. Thanks to maybegeek.
5257 * Updated dzslides template.
5259 * Improved documentation of options to print system default files (#2298).
5260 `--print-default-data-file` and `--print-default-template`.
5262 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
5263 (Tiziano Müller). MathJax seems currently to be the only maintained
5264 math rendering extension for DokuWiki.
5266 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
5267 div as top-level header (#2294). This fixes a bug with `--section-divs`,
5268 where the final references section added by pandoc-citeproc, enclosed in
5269 its own div, got nested in the div for the section previous to it.
5271 * Allow vector 0.11.
5273 * Require cmark > 0.4.
5275pandoc (1.15.0.5)
5277 * HTML writer: Fixed email javascript obfuscation with `mailto:`
5278 URLs (#2280). This fixes a potential security issue. Because
5279 single quotes weren't being escaped in the link portion, a
5280 specially crafted email address could allow javascript code injection.
5282 * Markdown/HTML readers: Avoid parsing partial URLs like
5283 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
5285 * RST reader: allow inline formatting in definition list field
5286 names (Lars-Dominik Braun).
5288 * PDF: Make sure `--latex-engine-opt` goes before the filename
5289 on the command line. LaTeX needs the argument to come after
5290 the options (#1779).
5292 * CommonMark writer: fixed tags used for super/subscript.
5294 * ConTeXt template: activate hanging indent for definition lists
5295 (Mauro Bieg).
5297 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
5298 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
5299 to include `hsb2hs` in Build-Tools in cabal.
5301 * Improved Windows installer (thanks to nkalvi).
5303 + When per-machine installation is chosen, the system path
5304 is updated instead of the user's.
5305 + An appropriate default is used for per-machine installation
5306 directory.
5307 + Admin privileges are no longer required for a per-user install
5309 * Travis: unpack sdist for build to catch packaging bugs.
5311 * Improved documentation on where user templates go (#2272).
5313pandoc (1.15.0.4)
5315 * Added pandoc.1 man page to the repository. It is no longer
5316 built as part of the cabal build process. (This proved too
5317 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
5318 when `README` is changed.
5320 * Copying of the man page now respects `--destdir` (#2262).
5322 * Improved error messages for filters. User is now informed if
5323 the filter requires an interpreter that isn't found in the path,
5324 or if the filter returns an error status.
5326pandoc (1.15.0.3)
5328 * Ensure target directory is created when installing man page.
5330pandoc (1.15.0.2)
5332 * Added files needed for building man page to Extra-Source-Files.
5334pandoc (1.15.0.1)
5336 * Man page is now built and installed as part of the cabal build
5337 process. Removed Makefile target for man page.
5339pandoc (1.15)
5341 * Man page changes:
5343 + Removed `--man1`, `--man5` options (breaking change).
5344 + Removed `Text.Pandoc.ManPages` module (breaking API change).
5345 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
5346 create the man page from README using a custom template and filters.
5347 + Added `man/` directory with template and filters needed to build
5348 man page.
5349 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
5350 Now there is just pandoc.1, which has all the content from README.
5351 This change was needed because of the extensive cross-references
5352 between parts of the README.
5353 + Removed old `data/pandoc.1.template` and
5354 `data/pandoc_markdown.5.template`.
5356 * OpenDocument writer: Do not add a carriage return after a hard
5357 line break (Michael Chladek).
5359 * ConTeXt writer:
5361 + use `\goto` for internal links.
5362 + Added a `%` at end for `\reference` to avoid spurious space.
5364 * Ignore sandbox on 'make quick'
5366pandoc (1.14.1)
5368 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
5369 to generate its own man pages. Man pages are no longer automatically
5370 generated in the build process (the process for this was too complex
5371 and prone to failure, #2190). The `make-pandoc-man-pages` executable
5372 has been removed. The `man/` directory has been removed, and man page
5373 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
5374 longer find pandoc's man pages in `man/`, but you can generate them using
5375 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
5377 * Added new unexported module: `Text.Pandoc.ManPages`.
5379 * `README` now acts like a data file (even though it isn't in
5380 `data/`). So, for example, `pandoc --print-default-data-file README`
5381 will produce the README.) This change was required for the `--man1`
5382 and `--man5` options, since the man pages are produced from the
5383 README, but it may be useful for other purposes as well.
5385 * Allow `reference.docx` and `reference.odt` to be used with
5386 `--print-default-data-file` and to shadow defaults if placed in
5387 the user data directory. Note that as of 1.14, we no longer
5388 include these files as data files; instead, we include their
5389 components. This change causes pandoc to behave as if it has
5390 these data files; they are constructed on demand when needed
5391 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
5393 * Fixed regression in CSS parsing with `--self-contained` (#2224).
5394 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
5395 silently drops big sections of CSS. This commit replaces the
5396 use of css-text with a small but principled CSS preprocessor,
5397 which removes whitespace and comments and replaces `url()` with
5398 base 64 data when possible.
5400 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
5401 This will allow math to work when pages are being viewed locally.
5403 * `Text.Pandoc.Options`: Export `plainExtensions`.
5404 These are the extensions used in `plain` output.
5406 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
5407 math mode; treat them as regular inline text. Normally these will
5408 cause an error in LaTeX, but there are contexts (e.g. `alltt`
5409 environments) where they are allowed.
5411 * HTML reader: allow `<body>` to close `<head>`.
5413 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
5415 * RST reader: Fix reference names with special characters
5416 (Lars-Dominik Braun).
5418 * Textile writer: escape `+` and `-` as entities (#2225).
5420 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
5422 * Plain writer: don't use symbols for super/subscript (#2237).
5423 Simplified code by using `plainExtensions`.
5425 * InDesign writer: Properly escape URLs containing more than one
5426 colon character (gohai).
5428 * Docx writer: Make sure we use dist version of `reference.docx`
5429 (and not the user's version) for certain settings. Taking some
5430 settings values from a user-supplied reference.docx can lead to
5431 corruption. This fixes a regression from the last release (#2249).
5433 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
5434 `getDefaultReferenceODT` (API change). These functions have been
5435 removed from the Docx and ODT writers.
5437 * LaTeX template (Xavier Olive):
5438 + Added `CJKmainfont` and `CJKoptions` variables.
5439 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
5441 * Epub templates: use `author.role`, not `author.type`.
5443 * Bump cmark version to >= 0.3.4.
5445 * Improved Windows installer (#2205, thanks to nkalvi).
5446 Users can now select a per-user or systemwide install, and can set
5447 the installation path. At the end of installation, the install location
5448 is given. The install location is also now given in the list of
5449 installed programs in Control Panel. Cleaner WiX syntax is used for
5450 setting the path.
5452 * Added `download_stats` target to Makefile.
5454pandoc (1.14.0.4)
5456 * Added missing commonmark template.
5458 * Improved try pandoc (moved button, show raw command).
5460pandoc (1.14.0.3)
5462 * Allow compilation with syb 0.5.*.
5464 * Custom writer: fixed some compiler warnings for ghc < 7.10.
5466pandoc (1.14.0.2)
5468 * Allow building with hslua 0.4.
5470pandoc (1.14.0.1)
5472 * Fixed problem with building of `reference.docx` and `reference.odt`
5473 when the `embed_data_files` flag is used. Instead of having a phase
5474 of the build where `reference.docx` and `reference.odt` are created
5475 from their constituent data files, we now construct these archives
5476 from their constituents when a `docx` or `odt` is built. The
5477 constituent files have been moved from `extra-source-files` to
5478 `data-files`, and `reference.docx` and `reference.odt` have been
5479 removed. Users can create their own `reference.docx` or
5480 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
5481 `make-reference-files.hs` has been removed, simplifying the build
5482 process (#2187)
5484 * Don't include generated man pages in extra-source-files (#2189).
5486 * Bumped upper bound for aeson.
5488 * ConTeXt writer: create internal link anchors for Div elements with
5489 identifiers. (This is needed for linked citations to work.)
5491pandoc (1.14)
5493 [new features]
5495 * Added `commonmark` as input and output format.
5497 * Added `--verbose` flag for debugging output in PDF production (#1840,
5498 #1653).
5500 * Allow wildcards in `--epub-embed-font` arguments (#1939).
5502 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
5504 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
5505 This is enabled by default for those markdown flavors that
5506 support reading shortcut reference links, namely: `markdown`,
5507 `markdown_strict`, `markdown_github`, `markdown_php`.
5508 If the extension is enabled, the reader parses shortcut reference
5509 links like `[foo]`, and the writer creates such links unless doing
5510 so would cause problems. Users of markdown flavors that support
5511 shortcut reference links should not notice a difference in reading
5512 markdown, but the markdown pandoc produces may differ.
5513 If shortcut links are not desired, the extension can be disabled
5514 in the normal way.
5516 [behavior changes]
5518 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
5519 A "dirty" TOC is created at the beginning of document.
5520 It can be regenerated after the document has been opened.
5522 * An implicit `--filter pandoc-citeproc` is now triggered only when the
5523 `--bibliography` option is used, and not when the `bibliography`
5524 field in metadata is specified (#1849).
5526 * Markdown reader:
5528 + Reference links with `implicit_header_references` are no longer
5529 case-sensitive (#1606).
5530 + Definition lists no longer require indentation for first line (#2087).
5531 Previously the body of the definition (after the `:` or `~` marker)
5532 needed to be in column 4. This commit relaxes that requirement,
5533 to better match the behavior of PHP Markdown Extra. So, now
5534 this is a valid definition list:
5536 foo
5537 : bar
5538 + Resolve a potentially ambiguity with table captions:
5540 foo
5542 : bar
5544 -----
5545 table
5546 -----
5548 Is "bar" a definition, or the caption for the table? We'll count
5549 it as a caption for the table.
5550 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
5551 Markdown Extra. Note: If you have been using headerless pipe tables,
5552 this change may cause existing tables to break.
5553 + Allow pipe tables with header but no body (#2017).
5554 + Allow a digit as first character of a citation key (Matthias Troffaes).
5555 See https://github.com/jgm/pandoc-citeproc/issues/97
5557 * LaTeX reader:
5559 + Don't limit includes to `.tex` extension (#1882).
5560 If the extension is not `.tex`, it must be given explicitly in
5561 the `\input` or `\include`.
5563 * Docx reader:
5565 + Allow numbering in the style file. This allows inherited styles
5566 with numbering (lists) (Jesse Rosenthal).
5568 * Org reader:
5570 + Support smart punctuation (Craig Bosma).
5571 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
5572 `:noexport:` tag set are not exported. This mirrors org-mode.
5573 + Put header tags into empty spans (Albert Krewinkel, #2160).
5574 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
5575 Instead of being interpreted as part of the headline, the tags are now
5576 put into the attributes of empty spans. Spans without textual content
5577 won't be visible by default, but they are detectable by filters. They
5578 can also be styled using CSS when written as HTML.
5579 + Generalize code block result parsing (Albert Krewinkel).
5580 Previously, only code blocks were recognized as result blocks;
5581 now, any kind of block can be the result.
5583 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
5584 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
5586 * HTML writer:
5588 + Add "inline" or "display" class to math spans (#1914).
5589 This allows inline and display math to be styled differently.
5590 + Include raw latex blocks if `--mathjax` specified (#1938).
5591 + Require highlighting-kate >= 0.5.14 (#1903).
5592 This ensures that all code blocks will be wrapped in a `div`
5593 with class `sourceCode`. Also, the default highlighting CSS
5594 now adds `div.sourceCode { x-overflow: auto; }`, which means
5595 that code blocks (even with line numbers) will acquire a scroll
5596 bar on screens too small to display them (e.g. mobile phones).
5597 See also jgm/highlighting-kate#65.
5599 * LaTeX writer:
5601 + Use a declaration for tight lists (Jose Luis Duran, Joseph
5602 Harriott). Previously, pandoc hard-coded some commands to make
5603 tight lists in LaTeX. Now we use a custom command instead,
5604 allowing the styling to be changed in a macro in the header.
5605 (Note: existing templates may need to be modified to include
5606 the definition of this macro. See the current template.)
5607 + Beamer output: if the header introducing a slide has the
5608 class `fragile`, add the `[fragile]` option to the slide (#2119).
5610 * MediaWiki writer:
5612 + Use `File:` instead of the deprecated `Image:` for images and
5613 other media files (Greg Rundlett).
5615 * DocBook writer:
5617 + Render a `Div (id,_,_) [Para _]` element as a `para` element
5618 with an `id` attribute. This makes links to citations work in
5619 DocBook with pandoc-citeproc.
5621 * RST writer:
5623 + Normalize headings to sequential levels (Nikolay Yakimov).
5624 This is pretty much required by docutils.
5625 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
5626 + Better handling of raw latex inline (#1961). We use
5627 `` :raw-latex:`...` `` and add a definition for this role to
5628 the template.
5630 * EPUB writer:
5632 + Remove `linear=no` from cover `itemref` (#1609).
5633 + Don't use `sup` element for epub footnotes (#1995).
5634 Instead, just use an a element with class `footnoteRef`.
5635 This allows more styling options, and provides better results
5636 in some readers (e.g. iBooks, where anything inside the a
5637 tag breaks popup footnotes).
5638 + Take TOC title from `toc-title` metadata field.
5640 * Docx writer:
5642 + Implemented `FirstParagraph` style (Jesse Rosenthal).
5643 Following the ODT writer, we add the `FirstParagraph` style to the
5644 first text paragraph following an image, blockquote, table, heading,
5645 or beginning of document. This allows it to be styled differently.
5646 The default is for it to be the same as `Normal`.
5647 + Added `BodyText` style (Jesse Rosenthal).
5648 We apply a `BodyText` style to all unstyled paragraphs. This is,
5649 essentially, the same as `Normal`, except that since not everything
5650 inherits from `BodyText` (the metadata won't, for example, or
5651 the headers or footnote numbers), we can change the text in the body
5652 without having to make exceptions for everything. If we do want to
5653 change *everything*, we can still do it through `Normal`.
5654 + Altered `Blockquote` style slightly (Jesse Rosenthal).
5655 Since `BlockQuote` derives from `BodyText`, we just want to specify
5656 by default that it won't indent, regardless of what `BodyText` does.
5657 Note that this will not produce any visible difference in the default
5658 configuration.
5659 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
5660 + Added a style to figure images (Nikolay Yakimov).
5661 Figures with empty captions use style `Figure`.
5662 Figures with nonempty captions use style `Figure with Caption`, which
5663 is based on `Figure`, and additionally has `keepNext` set.
5665 * ODT writer:
5667 + Added figure captions (Nikolay Yakimov). The following styles are
5668 used for figures:
5669 `Figure` -- for figure with empty caption),
5670 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
5671 `FigureCaption` (based on `Caption`) -- for figure captions.
5672 Also, `TableCaption` (based on `Caption`) is used for table captions.
5674 [API changes]
5676 * New `Text.Pandoc.Error` module with `PandocError` type
5677 (Matthew Pickering).
5679 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
5680 (Matthew Pickering). This allows better handling of errors.
5682 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
5684 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
5686 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
5687 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
5688 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
5689 Youssefi).
5691 * New `Ext_shortcut_reference_links` constructor for `Extension`
5692 (Konstantin Zudov).
5694 [bug fixes]
5696 * Markdown reader:
5698 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
5699 + Check for tex macros after indented code (#1973).
5700 + Rewrote `charsInBalancedBrackets` for efficiency.
5701 + Make sure a closing `</div>` doesn't get included in a
5702 definition list item (#2127).
5703 + Don't parse bracketed text as citation if it might be a link,
5704 image, or footnote (Nikolay Yakimov).
5705 + Require space after key in mmd title block (#2026, Nikolay
5706 Yakimov). Require space after key-value delimiter colon in mmd title
5707 block.
5708 + Require nonempty value in mmd title block (Nikolay Yakimov).
5709 + Disable all metadata block extensions when parsing
5710 metadata field values (#2026, Nikolay Yakimov). Otherwise we
5711 could get a mmd title block inside YAML metadata, for example.
5713 * HTML reader:
5715 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
5716 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
5717 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
5718 to see if the input starts with `<!--`. If not, it's bogus comment
5719 mode and we fail `htmlTag`.
5720 + Handle `base` tag; if it has an `href` value, this is added to
5721 all relative URLs in links and images.
5723 * DocBook reader:
5725 + Look inside "info" elements for section titles (#1931).
5727 * Docx reader:
5729 + Parse images in deprecated vml format (Jesse Rosenthal).
5730 + Allow sub/superscript verbatims (Jesse Rosenthal).
5731 Verbatim usually shuts off all other run styles, but we don't want it
5732 to shut off sub/superscript.
5734 * LaTeX reader:
5736 + Handle `tabular*` environment (#1850).
5737 Note that the table width is not actually parsed or taken into
5738 account, but pandoc no longer chokes on it.
5739 + Ignore options in `\lstinline` rather than raising error (#1997).
5740 + Add some test cases for simple tables (Mathias Schenner).
5741 + Handle valign argument in tables (Mathias Schenner) (currently
5742 we just ignore this).
5743 + Allow non-empty colsep in tables (Mathias Schenner).
5744 The `tabular` environment allows non-empty column separators
5745 with the "@{...}" syntax. Previously, pandoc would fail to
5746 parse tables if a non-empty colsep was present. With this
5747 commit, these separators are still ignored, but the table gets
5748 parsed. A test case is included.
5749 + Recognize `\newpage` as a block command.
5750 + Allow block content in \title{} (#2001).
5751 + Check for block-level newcommand aliases in blockCommand (Nikolay
5752 Yakimov).
5753 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
5754 + Properly gobble spaces after `\\` (#2007).
5756 * Textile reader:
5758 + Handle newlines in table cells, and empty cells (#1919).
5760 * Org reader:
5762 + Allow image links with non-image targets (Hans-Peter Deifel).
5763 This matches behavior of Org-Mode for links like
5764 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
5766 * Docbook writer:
5768 + Don't print empty id attributes (thanks to Steve Horne).
5770 * HTML writer:
5772 + Fixed list-style-type for numbered example lists.
5773 Should be "decimal," not "example" (#1902).
5774 + Do not omit missing `alt` attribute on `img` tag (#1131,
5775 Konstantin Zudov).
5776 + Allow multiple colgroups in table (#2122).
5777 + In revealjs, ensure that lists in speaker notes don't add "fragment"
5778 classes, which can cause additional keypresses to be needed to
5779 advance a slide (#1394).
5781 * LaTeX writer:
5783 + Don't escape `$` in URL (#1913).
5784 + Don't use listings in headers (Matthew Pickering, #1963).
5785 + Recognize book documentclass if set in metadata (#1971).
5786 This sets `--chapters` implicitly if the documentclass in metadata
5787 is a book documentclass. Previously this was done only if a book
5788 documentclass was set in a variable.
5789 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
5790 + Make `mainlang` work when `lang` is in metadata (#2174).
5792 * Texinfo writer:
5794 + Fix wrapping by using breakable spaces (Tim Lin).
5796 * RST writer:
5798 + Fixed toc depth in RST writer. Previously the depth was being
5799 rendered as a floating point number with a decimal point.
5801 * Markdown writer:
5803 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
5804 compatibility with original Markdown. We now escape `<` and `>`
5805 with entities. Also, we now backslash-escape square brackets.
5806 + Avoid introducing spurious list items through wrapping (#1946).
5807 + Don't emit span tags if plain or raw HTML disabled.
5809 * MediaWiki writer:
5811 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
5813 * AsciiDoc writer:
5815 + Insert some needed blank lines (#1860).
5816 + Avoid wrapping after list marker (#1858).
5818 * EPUB writer:
5820 + Properly handle internal links to IDs in spans, divs (#1884).
5821 + Use plain writer for metadata dc: fields (#2121).
5822 This gives better results when we have, e.g. multiple paragraphs.
5823 Note that tags aren't allowed in these fields.
5824 + Properly handle image links without an extension (#1855).
5825 + Improved chapter splitting and internal link rewriting (#1887,
5826 #2162, #2163). This will ensure that internal links work and
5827 that the references section produced by pandoc-citeproc is
5828 in its own chapter.
5829 + Fixed handling of svg images (#2183).
5831 * ICML writer:
5833 + Better handling of raw blocks and inlines (#1951).
5834 Previously these were always escaped and printed verbatim.
5835 Now they are ignored unless the format is `icml`, in which
5836 case they are passed through unescaped.
5837 + Fixed image URIs in ICML output (gohai).
5839 * Custom writer:
5841 + Raise error if loadstring returns an error status.
5842 + Raise `PandocLuaException` instead of using 'error'.
5843 Eventually we'll change the return type so that no exception
5844 is involved, but at least this can be trapped.
5845 + Use UTF-8 aware bytestring conversion.
5846 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
5847 Also factored out ByteString, since it's only used as an intermediate
5848 representation.
5850 * Docx writer:
5852 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
5853 + Filter out illegal XML characters (#1992, Matthew Pickering).
5854 + Added `noProof` to docx syntax highlighting `SourceCode` style.
5855 + Added footnotes id -1 and 0 (Jesse Rosenthal).
5856 Word uses, by default, footnotes with id -1 and 0 for separators. If a
5857 user modifies `reference.docx`, they will end up with a `settings.xml`
5858 file that references these footnotes, but no such footnotes in the
5859 document. This will produce a corruption error. Here we add these to the
5860 document and `settings.xml` file, so future modifications won't break
5861 the file.
5862 + Handle lists correctly inside table cells (Jesse Rosenthal).
5863 Previously we didn't transform lists inside table cells.
5864 + Set firstRow information in tables (Nikolay Yakimov).
5865 + Don't replace `SourceCode` style in `reference.docx` if it is defined
5866 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
5867 any `SourceCode` and `*Tok` styles in `reference.docx`.
5868 + Attempt to match international style names (#1607, Nikolay Yakimov).
5869 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
5870 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
5871 `Definition`, `First Paragraph`.
5872 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
5873 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
5874 `Footnote Ref -> Footnote Reference`.
5875 + Added `Caption` style (Nikolay Yakimov).
5876 + Changed these styles' inheritance (Nikolay Yakimov):
5877 `Image Caption <- Caption`, `Table Caption <- Caption`.
5878 + Remove `SourceCode` style from `reference.docx` (#1872).
5879 This is added automatically by the docx writer.
5880 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
5882 * `Text.Pandoc.PDF`
5884 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
5885 #1832).
5886 + More comprehensible errors on image conversion (#2067).
5887 EPS can't be supported without shelling out to something like
5888 ImageMagick, but at least we can avoid mysterious error messages.
5890 * `Text.Pandoc.Shared`:
5892 + Make safeRead safe (#1801, Matthew Pickering).
5893 + Addded `mapLeft`, `hush` (Matthew Pickering).
5895 * `Text.Pandoc.Pretty`:
5897 + Remove partial function (Matthew Pickering).
5899 * `Text.Pandoc.SelfContained`:
5901 + Add `;charset=utf-8` to script mime type if missing (#1842).
5902 + Improved building of data URIs (#1940). Now base64 is used except
5903 for `text/*` mime types.
5904 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
5905 + Properly handle data URIs in css urls (#2129).
5906 Use a proper CSS parser (adds dependency on `text-css`).
5908 * `Text.Pandoc.UTF8`:
5910 + Better handling of bare CRs in input files (#2132).
5911 Previously we just stripped them out; now we convert
5912 other line ending styles to LF line endings.
5914 * `Text.Pandoc.ImageSize`:
5916 + Fixed some exif header parsing bugs (#1834).
5917 + Make imageSize return an Either, not a Maybe (#1834).
5918 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
5919 parse failure (rather than `error`).
5920 + Improved warnings when image size can't be determined.
5921 + Removed error landmines (Matthew Pickering).
5923 * Added woff2 to MIME types (Alfred Wechselberger).
5925 * pandoc: When a binary input format is used, warn that file
5926 arguments past the first one are being ignored (Matthew Pickering).
5928 [template changes]
5930 * LaTeX template:
5932 + Degrade gracefully if `\paragraph` not defined.
5933 + Include `grffile` together with `graphicx` (#2074).
5934 This properly handles filenames containing spaces and dots.
5935 + Redefine `\paragraph`, `\subparagraph`... to behave more
5936 like section headers (#1658).
5937 + Import hyperref before polyglossia to avoid an error with xelatex,
5938 "please load package hyperref before bidi package" (Nick Bart).
5939 + Added `toccolor` variable to control link color in toc (Kaixhin).
5941 * LaTeX, Beamer templates:
5943 + Provide `\tightlist`, which is now used by the LaTeX writer.
5944 + Use polyglossia in beamer (#85).
5945 + Use `bibliography` instead of `biblio-files`
5946 (#1661). Also use `\addbibresource` instead of `\bibliography` for
5947 biblatex.
5948 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
5949 variable that is derived from a comma-separated list in `lang`;
5950 the last language is `mainlang` and the others are `otherlang`.
5952 * EPUB templates:
5954 + Use `div`, not `p`, for "rights" on title page.
5955 + Added header-includes, include-before, include-after (#1987).
5957 * OpenDocument template:
5959 + Use `text:p` instead of `text:h` for title.
5960 Using `text:h` causes problems with numbering. Closes #2059.
5961 Thansk to @nkalvi for diagnosing this.
5963 * reveal.js template:
5965 + Link to non-minified css, js. The minified versions no longer
5966 ship with the library.
5967 + Correctly include style CSS (#1949).
5968 + New configurable options options: `center`, `maxScale`, `slideNuber`
5969 (Dmitry Smirnov, pandoc-templates#89).
5970 + Moved custom CSS after theme. This allows custom CSS to modify
5971 themes, instead of being replaced by them.
5972 + Allow `center` to be set to false.
5974 [under the hood improvements]
5976 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
5977 Yakimov). Instead the repository now includes the component text files,
5978 and the zipped binaries are built from these using a helper
5979 program, `make-reference-files`. This should make maintenance of
5980 these components easier going forward.
5982 * `Text.Pandoc.Parsing`:
5984 + Added new `<+?>` combinator (Nikolay Yakimov).
5985 + Added `stateHeaderKeys` to `ParserState`.
5987 * `make_deb.sh` fixes:
5989 + Detect architecture.
5990 + Add Installed-Size to debian package control file (#1900).
5991 + Use `fakeroot` to get permissions right.
5992 + Use `mkdir` and `cp` instead of `install`.
5993 + Set permissions of directories to 755.
5994 + Install in `/usr` rather than `/usr/local`.
5995 + Compress man pages.
5996 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
5998 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
5999 to assist with transition to `time` 1.5.
6001 * Updated CONTRIBUTING.md with information about issue tags (Matthew
6002 Pickering).
6004 * Updated travis installs to the new sudo-less syntax (Tim Lin).
6006 * Updated dependency version bounds.
6008 * EPUB tests: don't use `joinPath`, which varies across platforms.
6009 Instead, use a forward-slash to join paths, regardless of the
6010 platform. This matches the way `MediaBag` now works.
6012 * Clarify JSON input and output in usage message (Caleb McDaniel).
6014 * Improved INSTALL instructions.
6016 * Always build man pages. Removed make-pandoc-man-pages flag.
6018 * Makefile: removed man target, now that we generate man pages by default.
6020 * README:
6022 + Fixed typos (J. Lewis Muir).
6023 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
6024 + Added note on in-field markup in biblio databases (Nick Bart).
6025 + Fixed misleading example of raw HTML block.
6026 + Various minor formatting and consistency fixes for the program
6027 options (Andreas Lööw).
6028 + Made definition lists for options all "loose" for consistency.
6029 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
6030 `--bib2json` and `--bib2yaml` options (Nick Bart).
6031 + Removed obsolete reference to `mods2yaml` (Nick Bart).
6032 + Added section on syntax highlighting.
6033 + Documented `toccolor` variable.
6035pandoc (1.13.2.1)
6037 * Updated to build with ghc 7.10.1.
6039 * Bumped package upper bounds for filepath, blaze-html,
6040 blaze-markup.
6042pandoc (1.13.2)
6044 * TWiki Reader: add new new twiki reader (API change, Alexander Sulfrian).
6046 * Markdown reader:
6048 + Better handling of paragraph in div (#1591).
6049 Previously text that ended a div would be parsed as Plain
6050 unless there was a blank line before the closing div tag.
6051 + Don't treat a citation as a reference link label (#1763).
6052 + Fix autolinks with following punctuation (#1811).
6053 The price of this is that autolinked bare URIs can no longer
6054 contain `>` characters, but this is not a big issue.
6055 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
6056 + Allow `startnum` to work without `fancy_lists`. Formerly
6057 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
6059 * RST reader (all Daniel Bergey):
6061 + Parse quoted literal blocks (#65). RST quoted literal blocks are
6062 the same as indented literal blocks (which pandoc already supports)
6063 except that the quote character is preserved in each line.
6064 + Parse RST class directives. The class directive accepts one or more
6065 class names, and creates a Div value with those classes. If the
6066 directive has an indented body, the body is parsed as the children of
6067 the Div. If not, the first block folowing the directive is made a
6068 child of the Div. This differs from the behavior of rst2xml, which
6069 does not create a Div element. Instead, the specified classes are
6070 applied to each child of the directive. However, most Pandoc Block
6071 constructors to not take an Attr argument, so we can't duplicate this
6072 behavior.
6073 + Warn about skipped directives.
6074 + Literal role now produces Code. Code role should have "code" class.
6075 + Improved support for custom roles
6077 - Added `sourceCode` to classes for `:code:` role, and anything
6078 inheriting from it.
6079 - Add the name of the custom role to classes if the Inline
6080 constructor supports Attr.
6081 - If the custom role directive does not specify a parent role,
6082 inherit from the `:span:` role.
6084 This differs somewhat from the `rst2xml.py` behavior. If a custom
6085 role inherits from another custom role, Pandoc will attach both
6086 roles' names as classes. `rst2xml.py` will only use the class of
6087 the directly invoked role (though in the case of inheriting from a
6088 `:code:` role with a `:language:` defined, it will also provide the
6089 inherited language as a class).
6090 + Warn about ignored fields in role directives.
6092 * LaTeX reader:
6094 + Parse label after caption into a span instead of
6095 inserting an additional paragraph of bracketed text (#1747).
6096 + Parse math environments as inline when possible (#1821).
6097 + Better handling of `\noindent` and `\greektext` (#1783).
6098 + Handle `\texorpdfstring` more gracefully.
6099 + Handle `\cref` and `\sep` (Wikiwide).
6100 + Support `\smartcite` and `\Smartcite` from biblatex.
6102 * HTML reader:
6104 + Retain display type of MathML output (#1719, Matthew Pickering).
6105 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
6106 + Make `embed` tag either block or inline (#1756).
6108 * DocBook reader:
6110 + Handle `keycombo`, `keycap` (#1815).
6111 + Get string content in inner tags for literal elements (#1816).
6112 + Handle `menuchoice` elements better, with a `>` between (#1817).
6113 + Include `id` on section headers (#1818).
6114 + Document/test "type" as implemented (Brian O'Sullivan).
6115 + Add support for calloutlist and callout (Brian O'Sullivan).
6116 We treat a calloutlist as a bulleted list. This works well in practice.
6117 + Add support for `classname` (Bryan O'Sullivan).
6119 * Docx reader:
6121 + Fix window path for image lookup (Jesse Rosenthal).
6122 Don't use os-sensitive "combine", since we always want the paths in our
6123 zip-archive to use forward-slashes.
6124 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
6125 When users number their headers, Word understands that as a single item
6126 enumerated list. We make the assumption that such a list is, in fact,
6127 a header.
6128 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
6129 There could be new top-level headers after making lists, so we have to
6130 rewrite links after that.
6131 + Use polyglot header list (Jesse Rosenthal).
6132 We're just keeping a list of header formats that different languages
6133 use as their default styles. At the moment, we have English, German,
6134 Danish, and French. We can continue to add to this.
6135 This is simpler than parsing the styles file, and perhaps less
6136 error-prone, since there seems to be some variations, even within a
6137 language, of how a style file will define headers.
6138 + Remove header class properly in other langs (Jesse Rosenthal).
6139 When we encounter one of the polyglot header styles, we want to remove
6140 that from the par styles after we convert to a header. To do that, we
6141 have to keep track of the style name, and remove it appropriately.
6142 + Account for external link URLs with anchors. Previously, if a URL
6143 had an anchor, the reader would incorrectly identify it as an
6144 internal link and return only the anchor as URL. (Caleb McDaniel)
6145 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
6147 * Org reader:
6149 + Added state changing blanklines (Jesse Rosenthal).
6150 This allows us to emphasize at the beginning of a new paragraph (or, in
6151 general, after blank lines).
6152 + Fixed bug with bulleted lists:
6154 - a
6155 - b
6156 * c
6158 was being parsed as a list, even though an unindented `*`
6159 should make a heading. See
6160 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
6161 + Org reader: absolute, relative paths in link (#1741, Albert
6162 Krewinkel). The org reader was too restrictive when parsing links;
6163 some relative links and links to files given as absolute paths
6164 were not recognized correctly.
6165 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
6166 This is important for use in gitit, which uses empty links
6167 for wikilinks.
6168 + Respect indent when parsing Org bullet lists (#1650, Timothy
6169 Humphries). Fixes issue with top-level bullet list parsing.
6170 + Fix indent issue for definition lists (Timothy Humphries,
6171 see #1650, #1698, #1680).
6172 + Parse multi-inline terms correctly in definition list (#1649,
6173 Matthew Pickering).
6174 + Fix rules for emphasis recognition (Albert Krewinkel).
6175 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
6176 strings. This is wrong, as `,` and `'` are forbidden border chars and
6177 may not occur on the inner border of emphasized text.
6178 + Drop COMMENT document trees (Albert Krewinkel).
6179 Document trees under a header starting with the word `COMMENT` are
6180 comment trees and should not be exported. Those trees are dropped
6181 silently (#1678).
6182 + Properly handle links to `file:target` (Albert Krewinkel).
6183 Org links like `[[file:target][title]]` were not handled correctly,
6184 parsing the link target verbatim. The org reader is changed such that
6185 the leading `file:` is dropped from the link target (see #756, #1812).
6186 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
6187 Org supports special symbols which can be included using LaTeX syntax,
6188 but are actually MathML entities. Examples for this are
6189 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
6190 or `\copy` (the copyright sign ©)
6192 * EPUB reader:
6194 + URI handling improvements. Now we outsource most of the work to
6195 `fetchItem'`. Also, do not include queries in file extensions (#1671).
6197 * LaTeX writer:
6199 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
6200 + Handle consecutive linebreaks (#1733).
6201 + Protect graphics in headers (Jesse Rosenthal).
6202 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
6203 + Put `~` before header in list item text (Jesse Rosenthal).
6204 Because of the built-in line skip, LaTeX can't handle a section header
6205 as the first element in a list item.
6206 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
6207 + Better handling of display math in simple tables (#1754).
6208 We convert display math to inline math in simple tables,
6209 since LaTeX can't deal with display math in simple tables.
6210 + Escape spaces in code (#1694, Bjorn Buckwalter).
6212 * MediaWiki writer:
6214 + Fixed links with URL = text. Previously these were rendered as bare
6215 words, even if the URL was not an absolute URL (#1825).
6217 * ICML writer:
6219 + Don't force all citations into footnotes.
6221 * RTF writer:
6223 + Add blankline at end of output (#1732, Matthew Pickering).
6225 * RST writer:
6227 + Ensure blank line after figure.
6228 + Avoid exces whitespace after last list item (#1777).
6229 + Wrap line blocks with spaces before continuations (#1656).
6230 + Fixed double-rendering of footnotes in RST tables (#1769).
6232 * DokuWiki writer:
6234 + Better handling of block quotes. This change ensures that
6235 multiple paragraph blockquotes are rendered using native `>`
6236 rather than as HTML (#1738).
6237 + Fix external images (#1739). Preface relative links with ":",
6238 absolute URIs without. (Timothy Humphries)
6240 * HTML writer:
6242 + Use protocol-relative URL for mathjax.
6243 + Put newline btw img and caption paragraph.
6244 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
6245 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
6246 This adds `KaTeX` to `HTMLMathMethod` (API change).
6247 + Don't double render when `email-obfuscation=none` (#1625, Matthew
6248 Pickering).
6249 + Make header attributes work outside top level (#1711).
6250 Previously they only appeared on top level header elements.
6251 Now they work e.g. in blockquotes.
6253 * ODT writer:
6255 + Correctly handle images without extensions (#1729).
6256 + Strip querystring in ODT write (#1682, Todd Sifleet).
6258 * FB2 writer:
6260 + Add newline to output.
6262 * EPUB writer:
6264 + Don't add `sourceURL` to absolute URIs (#1669).
6265 + Don't use unsupported `opf:title-type` for epub2.
6266 + Include "landmarks" section in nav document for epub3 (#1757).
6267 + Removed playOrder from navpoint elements in ncx file (#1760).
6268 These aren't required, and they make manual modification of epubs
6269 difficult.
6270 + Extract title even from structured title.
6271 + Don't include nav node in spine unless `--toc` was requested.
6272 Previously we included it in the spine with `linear="no"`, leading
6273 to odd results in some readers (#1593).
6274 + Fixed absolute URI detection (#1672).
6275 + Correctly resolve relative URIs (#1671).
6276 + Use regular page template for `nav.xhtml`, including doctype (#1759).
6278 * Docx writer:
6280 + Put docx table captions above tables (#1641, Nikolay Yakimov).
6281 + Get the page width from the reference docx file, and use
6282 it to scale images that are too large to fit (Grégory Bataille).
6283 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
6284 are inferred based on `<w:name val="heading #">` fallback, if there
6285 are no en-US "Heading#" styles
6286 + Look in user data dir for archive `reference.docx`.
6287 + Renumber header and footer relationships to avoid collisions (Jesse
6288 Rosenthal). We previously took the old relationship names of the
6289 headers and footer in secptr. That led to collisions. We now make
6290 a map of availabl names in the relationships file, and then rename
6291 in secptr.
6293 * ConTeXt writer:
6295 + Add function toLabel (Mark Szepieniec).
6296 This function can be used to sanitize reference labels so that
6297 they do not contain any of the illegal characters \#[]",{}%()|= .
6298 Currently only Links have their labels sanitized, because they
6299 are the only Elements that use passed labels.
6301 * `Text.Pandoc.Shared`:
6303 + Moved import of `toChunks` outside of CPP conditional (#1590).
6304 + Fix `inDirectory` to reset to the original directory in case
6305 an exception occurs (Freiric Barral).
6307 * Templates:
6309 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
6310 Thanks to bluebirch.
6311 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
6312 (#1616).
6313 + LaTeX template: Add shorthands=off to babel options (#1648).
6314 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
6315 This aids styling, making it possible for example to set 0 margins
6316 on the title page (#1758).
6317 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
6318 Previously we just expected 'title', 'subtitle', 'author', 'date'.
6319 Now we still support those, but also support the format recommended
6320 for epub metadata in the pandoc README:
6322 ---
6323 title:
6324 - type: main
6325 text: My Book
6326 - type: subtitle
6327 text: An investigation of metadata
6328 creator:
6329 - role: author
6330 text: John Smith
6331 - role: editor
6332 text: Sarah Jones
6333 identifier:
6334 - scheme: DOI
6335 text: doi:10.234234.234/33
6336 publisher: My Press
6337 rights: (c) 2007 John Smith, CC BY-NC
6338 ...
6340 * `Text.Pandoc.Templates.getDefaultTemplate`:
6341 don't fail when called with "fb2" (#1660).
6343 * `Text.Pandoc.Parsing`:
6345 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
6346 For example: `$x = \text{the $n$th root of $y$}` (#1677).
6347 + Change `parseFromString` to fail if not all input is consumed.
6348 (Matthew Pickering)
6349 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
6350 used by more readers (API change, Daniel Bergey).
6352 * `Text.Pandoc.Pretty`:
6354 + Improve performance of `realLength` (Matthew Pickering).
6355 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
6356 were getting at the end of markdown fragments (as well as rst, org,
6357 etc.) (#1705).
6359 * `Text.Pandoc.MIME`:
6361 + Add mime type for WebVTT (Jason Ronallo).
6362 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
6363 This is needed for epub3 validation.
6365 * `Text.Pandoc.MediaBag`:
6367 + Fix Windows specific path problems (#1597).
6369 * `Text.Pandoc.Shared`:
6371 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
6373 * Link the test suite using `-threaded`.
6374 This allows the test suite to be run using `+RTS -N`.
6376 * Added `network` dependency under `network-uri` flag in test section.
6378 * Give better error messages when someone tries to convert from
6379 pdf, doc, odt (#1683).
6381 * Added `track` to list of tags treated by `--self-contained` (#1664).
6383pandoc (1.13.1)
6385 * Fixed `--self-contained` with Windows paths (#1558).
6386 Previously `C:\foo.js` was being wrongly interpreted as a URI.
6388 * HTML reader: improved handling of tags that can be block or inline.
6389 Previously a section like this would be enclosed in a paragraph,
6390 with RawInline for the video tags (since video is a tag that can
6391 be either block or inline):
6393 <video controls="controls">
6394 <source src="../videos/test.mp4" type="video/mp4" />
6395 <source src="../videos/test.webm" type="video/webm" />
6396 <p>
6397 The videos can not be played back on your system.<br/>
6398 Try viewing on Youtube (requires Internet connection):
6399 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
6400 Youtube</a>.
6401 </p>
6402 </video>
6404 This change will cause the video and source tags to be parsed
6405 as RawBlock instead, giving better output.
6406 The general change is this: when we're parsing a "plain" sequence
6407 of inlines, we don't parse anything that COULD be a block-level tag.
6409 * Docx reader:
6411 + Be sensitive to user styles. Note that "Hyperlink" is
6412 "blacklisted," as we don't want the default underline styling to be
6413 inherited by all links by default (Jesse Rosenthal).
6414 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
6415 This makes to docx reader's native output fit with the way the markdown
6416 reader understands its markdown output.
6418 * Textile writer: Extended the range of cases where native textile
6419 tables will be used (as opposed to raw HTML): we now handle any
6420 alignment type, but only for simple tables with no captions.
6422 * Txt2Tags reader:
6424 + Header is now parsed only if standalone flag is set (Matthew Pickering).
6425 + The header is now parsed as meta information. The first line is the
6426 `title`, the second is the `author` and third line is the `date`
6427 (Matthew Pickering).
6428 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
6429 + Fixed crash when reading from stdin.
6431 * EPUB writer: Don't use page-progression-direction in EPUB2, which
6432 doesn't support it. Also, if page-progression-direction not specified
6433 in metadata, don't include the attribute even in EPUB3; not including it
6434 is the same as including it with the value "default", as we did before.
6435 (#1550)
6437 * Org writer: Accept example lines with indentation at the beginning
6438 (Calvin Beck).
6440 * DokuWiki writer:
6442 + Refactor to use Reader monad (Matthew Pickering).
6443 + Avoid using raw HTML in table cells; instead, use `\\`
6444 instead of newlines (Jesse Rosenthal).
6445 + Properly handle HTML table cell alignments, and use spacing
6446 to make the tables look prettier (#1566).
6448 * Docx writer:
6450 + Bibliography entries get `Bibliography` style (#1559).
6451 + Implement change tracking (Jesse Rosenthal).
6453 * LaTeX writer:
6455 + Fixed a bug that caused a table caption to repeat across all pages
6456 (Jose Luis Duran).
6457 + Improved vertical spacing in tables and made it customizable using
6458 standard lengths set by booktab. See
6459 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
6460 (Jose Luis Duran).
6461 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
6462 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
6463 + Made horizontal rules more flexible (Jose Luis Duran).
6465 * Text.Pandoc.MIME:
6467 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
6468 Code cleanups (Artyom Kazak).
6470 * Templates:
6472 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
6473 thanks lemzwerg).
6475 * Improved OSX build procedure.
6477 * Added `network-uri` flag, to deal with split of `network-uri` from
6478 `network`.
6480 * Fix build dependencies for the `trypandoc` flag, so that they are
6481 ignored if `trypandoc` flag is set to False (Gabor Pali).
6483 * Updated README to remove outdated claim that `--self-contained`
6484 looks in the user data directory for missing files.
6486pandoc (1.13.0.1)
6488 * Docx writer:
6490 + Fixed regression which bungled list numbering (#1544), causing
6491 all lists to appear as basic ordered lists.
6492 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
6493 Added a property to all table rows where the sum of column widths
6494 is specified in pct (fraction of 5000). This helps persuade Word
6495 to lay out the table with the widths we specify.
6497 * Fixed a bug in Windows 8 which caused pandoc not to find the
6498 `pandoc-citeproc` filter (#1542).
6500 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
6501 Most significantly, the reader now uses Builder, leading to some
6502 performance improvements.
6504 * HTML reader: Parse appropriately styled span as SmallCaps.
6506 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
6507 `superscript`, and `subscript` extensions, respectively, are
6508 deactivated (#1127).
6510 * Added `trypandoc` flag to build CGI executable used in the online
6511 demo.
6513 * Makefile: Added 'quick', 'osxpkg' targets.
6515 * Updated README in templates to indicate templates license.
6516 The templates are dual-licensed, BSD3 and GPL2+.
6518pandoc (1.13)
6520 [new features]
6522 * Added `docx` as an input format (Jesse Rosenthal). The docx
6523 reader includes conversion of native Word equations to pandoc
6524 LaTeX `Math` elements. Metadata is taken from paragraphs at the
6525 beginning of the document with styles `Author`, `Title`, `Subtitle`,
6526 `Date`, and `Abstract`.
6528 * Added `epub` as an input format (Matthew Pickering). The epub
6529 reader includes conversion of MathML to pandoc LaTeX `Math`
6530 elements.
6532 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
6533 Txt2tags is a lightweight markup format described at
6534 <http://txt2tags.org/>.
6536 * Added `dokuwiki` as an output format (Clare Macrae).
6538 * Added `haddock` as an output format.
6540 * Added `--extract-media` option to extract media contained in a zip
6541 container (docx or epub) while adjusting image paths to point to the
6542 extracted images.
6544 * Added a new markdown extension, `compact_definition_lists`, that
6545 restores the syntax for definition lists of pandoc 1.12.x, allowing
6546 tight definition lists with no blank space between items, and
6547 disallowing lazy wrapping. (See below under behavior changes.)
6549 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
6551 * Added extensions `native_spans` and `native_divs` to activate
6552 parsing of material in HTML span or div tags as Pandoc Span
6553 inlines or Div blocks.
6555 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
6556 Textile, and MediaWiki readers. This is an option intended
6557 for debugging parsing problems; ordinary users should not need
6558 to use it.
6560 [behavior changes]
6562 * Changed behavior of the `markdown_attribute` extension, to bring
6563 it in line with PHP markdown extra and multimarkdown. Setting
6564 `markdown="1"` on an outer tag affects all contained tags,
6565 recursively, until it is reversed with `markdown="0"` (#1378).
6567 * Revised markdown definition list syntax (#1429). Both the reader
6568 and writer are affected. This change brings pandoc's definition list
6569 syntax into alignment with that used in PHP markdown extra and
6570 multimarkdown (with the exception that pandoc is more flexible about
6571 the definition markers, allowing tildes as well as colons). Lazily
6572 wrapped definitions are now allowed. Blank space is required
6573 between list items. The space before a definition is used to determine
6574 whether it is a paragraph or a "plain" element. **WARNING: This change
6575 may break existing documents!** Either check your documents for
6576 definition lists without blank space between items, or use
6577 `markdown+compact_definition_lists` for the old behavior.
6579 * `.numberLines` now works in fenced code blocks even if no language
6580 is given (#1287, jgm/highlighting-kate#40).
6582 * Improvements to `--filter`:
6584 + Don't search PATH for a filter with an explicit path.
6585 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
6586 the system path, even if there was a `caps.py` in the working directory.
6587 + Respect shebang if filter is executable (#1389).
6588 + Don't print misleading error message.
6589 Previously pandoc would say that a filter was not found,
6590 even in a case where the filter had a syntax error.
6592 * HTML reader:
6594 + Parse `div` and `span` elements even without `--parse-raw`,
6595 provided `native_divs` and `native_spans` extensions are set.
6596 Motivation: these now generate native pandoc Div and Span
6597 elements, not raw HTML.
6598 + Parse EPUB-specific elements if the `epub_html_exts`
6599 extension is enabled. These include `switch`, `footnote`,
6600 `rearnote`, `noteref`.
6602 * Org reader:
6604 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
6605 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
6606 `\cite{Coffee}`), can be used without any further escaping (Albert
6607 Krewinkel).
6609 * Textile reader and writer:
6611 + The `raw_tex` extension is no longer set by default. You can
6612 enable it with `textile+raw_tex`.
6614 * DocBook reader:
6616 + Support `equation`, `informalequation`, `inlineequation` elements with
6617 `mml:math` content. This is converted into LaTeX and put into a Pandoc
6618 Math inline.
6620 * Revised `plain` output, largely following the style of Project
6621 Gutenberg:
6623 + Emphasis is rendered with `_underscores_`, strong emphasis
6624 with ALL CAPS.
6625 + Headings are rendered differently, with space to set them off,
6626 not with setext style underlines. Level 1 headers are ALL CAPS.
6627 + Math is rendered using unicode when possible, but without the
6628 distracting emphasis markers around variables.
6629 + Footnotes use a regular `[n]` style.
6631 * Markdown writer:
6633 + Horizontal rules are now a line across the whole page.
6634 + Prettier pipe tables. Columns are now aligned (#1323).
6635 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
6636 no longer emits any raw HTML, including span and div tags
6637 generated by Span and Div elements.
6638 + Use span with style for `SmallCaps` (#1360).
6640 * HTML writer:
6642 + Autolinks now have class `uri`, and email autolinks have class
6643 `email`, so they can be styled.
6645 * Docx writer:
6647 + Document formatting is carried over from `reference.docx`.
6648 This includes margins, page size, page orientation, header,
6649 and footer, including images in headers and footers.
6650 + Include abstract (if present) with `Abstract` style (#1451).
6651 + Include subtitle (if present) with `Subtitle` style, rather
6652 than tacking it on to the title (#1451).
6654 * Org writer:
6656 + Write empty span elements with an id attribute as org anchors.
6657 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
6659 * LaTeX writer:
6661 + Put table captions above tables, to match the conventional
6662 standard. (Previously they appeared below tables.)
6663 + Use `\(..\)` instead of `$..$` for inline math (#1464).
6664 + Use `\nolinkurl` in email autolinks. This allows them to be styled
6665 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
6666 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
6667 curly quotes in the PDF output (#1364).
6668 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
6669 do not appear before the overlays in which their markers appear
6670 (#1525).
6671 + Don't produce a `\label{..}` for a Div or Span element. Do produce
6672 a `\hyperdef{..}` (#1519).
6674 * EPUB writer:
6676 + If the metadata includes `page-progression-direction` (which can be
6677 `ltr` or `rtl`, the `page-progression-direction` attribute will
6678 be set in the EPUB spine (#1455).
6680 * Custom lua writers:
6682 + Custom writers now work with `--template`.
6683 + Removed HTML header scaffolding from `sample.lua`.
6684 + Made citation information available in lua writers.
6686 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
6687 adjacent `RawBlock`s when possible.
6689 [API changes]
6691 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
6693 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
6694 Pickering).
6696 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
6697 Pickering).
6699 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
6700 (Clare Macrae).
6702 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
6704 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
6705 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
6706 readers return a pair of a `Pandoc` document and a `MediaBag` with
6707 the media resources they contain. This can be extracted using
6708 `--extract-media`. Writers that incorporate media (PDF, Docx,
6709 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
6710 for resources in the `MediaBag` generated by the reader, in addition to
6711 the file system or web.
6713 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
6714 Renamed `readTeXMath'` to `texMathToInlines`.
6716 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
6717 `readers` now associates names of readers with `Reader`
6718 structures. This allows inclusion of readers, like the docx
6719 reader, that take binary rather than textual input.
6721 * `Text.Pandoc.Shared`:
6723 + Added `capitalize` (Artyom Kazak), and replaced uses of
6724 `map toUpper` (which give bad results for many languages).
6725 + Added `collapseFilePath`, which removes intermediate `.` and
6726 `..` from a path (Matthew Pickering).
6727 + Added `fetchItem'`, which works like `fetchItem` but searches
6728 a `MediaBag` before looking on the net or file system.
6729 + Added `withTempDir`.
6730 + Added `removeFormatting`.
6731 + Added `extractSpaces` (from HTML reader) and generalized its type
6732 so that it can be used by the docx reader (Matthew Pickering).
6733 + Added `ordNub`.
6734 + Added `normalizeInlines`, `normalizeBlocks`.
6735 + `normalize` is now `Pandoc -> Pandoc` instead of
6736 `Data a :: a -> a`. Some users may need to change their uses of
6737 `normalize` to the newly exported `normalizeInlines` or
6738 `normalizeBlocks`.
6740 * `Text.Pandoc.Options`:
6742 + Added `writerMediaBag` to `WriterOptions`.
6743 + Removed deprecated and no longer used `readerStrict` in
6744 `ReaderOptions`. This is handled by `readerExtensions` now.
6745 + Added `Ext_compact_definition_lists`.
6746 + Added `Ext_epub_html_exts`.
6747 + Added `Ext_native_divs` and `Ext_native_spans`.
6748 This allows users to turn off the default pandoc behavior of
6749 parsing contents of div and span tags in markdown and HTML
6750 as native pandoc Div blocks and Span inlines.
6752 * `Text.Pandoc.Parsing`:
6754 + Generalized `readWith` to `readWithM` (Matthew Pickering).
6755 + Export `runParserT` and `Stream` (Matthew Pickering).
6756 + Added `HasQuoteContext` type class (Matthew Pickering).
6757 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
6758 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
6759 `applyMacros` (Matthew Pickering).
6760 + Added custom `token` (Matthew Pickering).
6761 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
6762 track of the ending tag we're waiting for when we're parsing inside
6763 HTML block tags.
6764 + Added `stateMarkdownAttribute` to `ParserState`. This is used
6765 to keep track of whether the markdown attribute has been set in
6766 an enclosing tag.
6767 + Generalized type of `registerHeader`, using new type classes
6768 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
6769 Pickering). These allow certain common functions to be reused
6770 even in parsers that use custom state (instead of `ParserState`),
6771 such as the MediaWiki reader.
6772 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
6773 and generalized their types (Matthew Pickering).
6775 * `Text.Pandoc.Pretty`:
6777 + Added `nestle`.
6778 + Added `blanklines`, which guarantees a certain number of blank lines
6779 (and no more).
6781 [bug fixes]
6783 * Markdown reader:
6785 + Fixed parsing of indented code in list items. Indented code
6786 at the beginning of a list item must be indented eight spaces
6787 from the margin (or edge of the container), or four spaces
6788 from the list marker, whichever is greater.
6789 + Fixed small bug in HTML parsing with `markdown_attribute`, which
6790 caused incorrect tag nesting for input like
6791 `<aside markdown="1">*hi*</aside>`.
6792 + Fixed regression with intraword underscores (#1121).
6793 + Improved parsing of inline links containing quote characters (#1534).
6794 + Slight rewrite of `enclosure`/`emphOrStrong` code.
6795 + Revamped raw HTML block parsing in markdown (#1330).
6796 We no longer include trailing spaces and newlines in the
6797 raw blocks. We look for closing tags for elements (but without
6798 backtracking). Each block-level tag is its own `RawBlock`;
6799 we no longer try to consolidate them (though `--normalize` will do so).
6800 + Combine consecutive latex environments. This helps when you have
6801 two minipages which can't have blank lines between them (#690, #1196).
6802 + Support smallcaps through span.
6803 `<span style="font-variant:small-caps;">foo</span>` will be
6804 parsed as a `SmallCaps` inline, and will work in all output
6805 formats that support small caps (#1360).
6806 + Prevent spurious line breaks after list items (#1137). When the
6807 `hard_line_breaks` option was specified, pandoc would formerly
6808 produce a spurious line break after a tight list item.
6809 + Fixed table parsing bug (#1333).
6810 + Handle `c++` and `objective-c` as language identifiers in
6811 github-style fenced blocks (#1318).
6812 + Inline math must have nonspace before final `$` (#1313).
6814 * LaTeX reader:
6816 + Handle comments at the end of tables. This resolves the issue
6817 illustrated in <http://stackoverflow.com/questions/24009489>.
6818 + Correctly handle table rows with too few cells. LaTeX seems to
6819 treat them as if they have empty cells at the end (#241).
6820 + Handle leading/trailing spaces in `\emph` better.
6821 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
6822 so that we don't get things like `* hi *` in markdown output.
6823 Also applies to `\textbf` and some other constructions (#1146).
6824 + Don't assume preamble doesn't contain environments (#1338).
6825 + Allow (and discard) optional argument for `\caption` (James Aspnes).
6827 * HTML reader:
6829 + Fixed major parsing problem with HTML tables. Table cells were
6830 being combined into one cell (#1341).
6831 + Fixed performance issue with malformed HTML tables.
6832 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
6833 + Allow space between `<col>` and `</col>`.
6834 + Added `audio` and `source` in `eitherBlockOrInline`.
6835 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
6836 `blockTags` to `eitherBlockOrInline`.
6837 + `map` and `object` were mistakenly in both lists; they have been removed
6838 from `blockTags`.
6839 + Ignore `DOCTYPE` and `xml` declarations.
6841 * MediaWiki reader:
6843 + Don't parse backslash escapes inside `<source>` (#1445).
6844 + Tightened up template parsing.
6845 The opening `{{` must be followed by an alphanumeric or `:`.
6846 This prevents the exponential slowdown in #1033.
6847 + Support "Bild" for images.
6849 * DocBook reader:
6851 + Better handle elements inside code environments. Pandoc's document
6852 model does not allow structure inside code blocks, but at least this way
6853 we preserve the text (#1449).
6854 + Support `<?asciidoc-br?>` (#1236).
6856 * Textile reader:
6858 + Fixed list parsing. Lists can now start without an intervening
6859 blank line (#1513).
6860 + HTML block-level tags that do not start a line are parsed as
6861 inline HTML and do not interrupt paragraphs (as in RedCloth).
6863 * Org reader:
6865 + Make tildes create inline code (#1345). Also relabeled `code` and
6866 `verbatim` parsers to accord with the org-mode manual.
6867 + Respect `:exports` header argument in code blocks (Craig Bosma).
6868 + Fixed tight lists with sublists (#1437).
6870 * EPUB writer:
6872 + Avoid excess whitespace in `nav.xhtml`. This should improve
6873 TOC view in iBooks (#1392).
6874 + Fixed regression on cover image.
6875 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
6876 because the metadata id was not correct. Now we derive the id from the
6877 actual cover image filename, which we preserve rather than using
6878 "cover-image."
6879 + Keep newlines between block elements. This allows
6880 easier diff-ability (#1424).
6881 + Use `stringify` instead of custom `plainify`.
6882 + Use `renderTags'` for all tag rendering. This properly handles tags
6883 that should be self-closing. Previously `<hr/>` would appear in EPUB
6884 output as `<hr></hr>` (#1420).
6885 + Better handle HTML media tags.
6886 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
6887 can have only one dc:date, so only the first one is used.
6889 * LaTeX writer:
6891 + Correctly handle figures in notes. Notes can't contain figures in
6892 LaTeX, so we fake it to avoid an error (#1053).
6893 + Fixed strikeout + highlighted code (#1294).
6894 Previously strikeout highlighted code caused an error.
6896 * ConTeXt writer:
6898 + Improved detection of autolinks with URLs containing escapes.
6900 * RTF writer:
6902 + Improved image embedding: `fetchItem'` is now used to get the
6903 images, and calculated image sizes are indicated in the RTF.
6904 + Avoid extra paragraph tags in metadata (#1421).
6906 * HTML writer:
6908 + Deactivate "incremental" inside slide speaker notes (#1394).
6909 + Don't include empty items in the table of contents for
6910 slide shows. (These would result from creating a slide
6911 using a horizontal rule.)
6913 * MediaWiki writer:
6915 + Minor renaming of `st` prefixed names.
6917 * AsciiDoc writer:
6919 + Double up emphasis and strong emphasis markers in intraword
6920 contexts, as required by asciidoc (#1441).
6922 * Markdown writer:
6924 + Avoid wrapping that might start a list, blockquote, or header (#1013).
6925 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
6926 + Don't use braced attributes for fenced code (#1416).
6927 If `Ext_fenced_code_attributes` is not set, the first class
6928 attribute will be printed after the opening fence as a bare word.
6929 + Separate adjacent lists of the same kind with an HTML comment (#1458).
6931 * PDF writer:
6933 + Fixed treatment of data uris for images (#1062).
6935 * Docx writer:
6937 + Use Compact style for empty table cells (#1353).
6938 Otherwise we get overly tall lines when there are empty
6939 table cells and the other cells are compact.
6940 + Create overrides per-image for `media/` in reference docx.
6941 This should be somewhat more robust and cover more types of images.
6942 + Improved `entryFromArchive` to avoid an unneeded parse.
6943 + Section numbering carries over from reference.docx (#1305).
6944 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
6945 we assign numbers based on the list marker styles.
6947 * `Text.Pandoc.Options`:
6949 + Removed `Ext_fenced_code_attributes` from `markdown_github`
6950 extensions.
6952 * `Text.Pandoc.ImageSize`:
6954 + Use default instead of failing if image size not found
6955 in exif header (#1358).
6956 + ignore unknown exif header tag rather than crashing.
6957 Some images seem to have tag type of 256, which was causing
6958 a runtime error.
6960 * `Text.Pandoc.Shared`:
6962 + `fetchItem`: unescape URI encoding before reading local file (#1427).
6963 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
6964 doing mime lookup, to improve mime type guessing.
6965 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
6966 other things are treated as relative URIs if `sourceURL` is `Just _`,
6967 otherwise as file paths on the local file system.
6968 + `fetchItem` now properly handles links without a protocol (#1477).
6969 + `fetchItem` now escapes characters not allowed in URIs before trying
6970 to parse the URIs.
6971 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
6973 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
6974 needed to resolve relative URLs when we fetch resources (#750).
6976 * `Text.Pandoc.Parsing`
6978 + Simplified `dash` and `ellipsis` (#1419).
6979 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
6980 + Generalized functions to use `ParsecT` (Matthew Pickering).
6981 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
6982 Pickering).
6984 [template changes]
6986 * Added haddock template.
6987 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
6988 be "advisory" in HTML5, but kindlegen seems to require them.
6989 * EPUB3: Put title page in section with `epub:type="titlepage"`.
6990 * LaTeX: Made `\subtitle` work properly (#1327).
6991 * LaTeX/Beamer: remove conditional around date (#1321).
6992 * LaTeX: Added `lot` and `lof` variables, which can be set to
6993 get `\listoftables` and `\listoffigures` (#1407). Note that
6994 these variables can be set at the command line with `-Vlot -Vlof`
6995 or in YAML metadata.
6997 [under the hood improvements]
6999 * Rewrote normalize for efficiency (#1385).
7001 * Rewrote Haddock reader to use `haddock-library` (#1346).
7003 + This brings pandoc's rendering of haddock markup in line
7004 with the new haddock.
7005 + Fixed line breaks in `@` code blocks.
7006 + alex and happy are no longer build-depends.
7008 * Added `Text.Pandoc.Compat.Directory` to allow building against
7009 different versions of the `directory` library.
7011 + Added `Text.Pandoc.Compat.Except` to allow building against
7012 different verions of `mtl`.
7014 * Code cleanup in some writers, using Reader monad to avoid
7015 passing options parameter around (Matej Kollar).
7017 * Improved readability in `pandoc.hs`.
7019 * Miscellaneous code cleanups (Artyom Kazak).
7021 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
7022 Thompson).
7024 * Changed `http-conduit` flag to `https`. Depend on `http-client`
7025 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
7026 depends on `conduit` via `yaml`.)
7028 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
7029 This change to highlighting-kate means that PHP fragments no longer need
7030 to start with `<?php`. It also fixes a serious bug causing failures with
7031 ocaml and fsharp.
7033 * Require latest `texmath`. This fixes `\tilde{E}` and allows
7034 `\left` to be used with `]`, `)` etc. (#1319), among many other
7035 improvements.
7037 * Require latest `zip-archive`. This has fixes for unicode path names.
7039 * Added tests for plain writer.
7041 * `Text.Pandoc.Templates`:
7043 + Fail informatively on template syntax errors.
7044 With the move from parsec to attoparsec, we lost good error
7045 reporting. In fact, since we weren't testing for end of input,
7046 malformed templates would fail silently. Here we revert back to
7047 Parsec for better error messages.
7048 + Use `ordNub` (#1022).
7050 * Benchmarks:
7052 + Made benchmarks compile again (Artyom Kazak).
7053 + Fixed so that the failure of one benchmark does not prevent others
7054 from running (Artyom Kazak).
7055 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
7056 + Changed benchmark to use only the test suite, so that benchmarks
7057 run more quickly.
7059 * Windows build script:
7061 + Add `-windows` to file name.
7062 + Use one install command for pandoc, pandoc-citeproc.
7063 + Force install of pandoc-citeproc.
7065 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
7066 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
7067 will extract it into a folder named `SOMETHING.pkg`, which it
7068 will interpret as a defective package (#1308).
7070 * `README`:
7072 + Made headers for all extensions so they have IDs and can be
7073 linked to (Beni Cherniavsky-Paskin).
7074 + Fixed typos (Phillip Alday).
7075 + Fixed documentation of attributes (#1315).
7076 + Clarified documentation on small caps (#1360).
7077 + Better documentation for `fenced_code_attributes` extension
7078 (Caleb McDaniel).
7079 + Documented fact that you can put YAML metadata in a separate file
7080 (#1412).
7083pandoc (1.12.4.2)
7085 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
7087 * Shared: `addMetaValue` now behaves slightly differently:
7088 if both the new and old values are lists, it concatenates their
7089 contents to form a new list.
7091 * LaTeX reader:
7093 + Set `bibliography` in metadata from `\bibliography` or
7094 `\addbibresource` command.
7095 + Don't error on `%foo` with no trailing newline.
7097 * Org reader:
7099 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
7100 + Fix parsing of blank lines within blocks (Albert Krewinkel).
7101 + Support pandoc citation extension (Albert Krewinkel). This can
7102 be turned off by specifying `org-citations` as the input format.
7104 * Markdown reader:
7106 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
7107 other readers (Albert Krewinkel).
7109 * `Text.Pandoc.Parsing`:
7111 + Added `citeKey` (see above).
7112 + Added `HasLastStrPosition` type class and `updateLastStrPos`
7113 and `notAfterString` functions.
7115 * Updated copyright notices (Albert Krewinkel).
7117 * Added default.icml to data files so it installs with the package.
7119 * OSX package:
7121 + The binary is now built with options to ensure that it can be
7122 used with OSX 10.6+.
7123 + Moved OSX package materials to osx directory.
7124 + Added OSX package uninstall script, included in the zip container
7125 (thanks to Daniel T. Staal).
7127pandoc (1.12.4)
7129 * Made it possible to run filters that aren't executable (#1096).
7130 Pandoc first tries to find the executable (searching the path
7131 if path isn't given). If it fails, but the file exists and has
7132 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
7133 using the appropriate interpreter. This should make it easier to
7134 use filters on Windows, and make it more convenient for everyone.
7136 * Added Emacs org-mode reader (Albert Krewinkel).
7138 * Added InDesign ICML Writer (Mauro Bieg).
7140 * MediaWiki reader:
7142 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
7143 + Fixed bug in certain nested lists (#1213). If a level 2 list was
7144 followed by a level 1 list, the first item of the level 1 list
7145 would be lost.
7146 + Handle table rows containing just an HTML comment (#1230).
7148 * LaTeX reader:
7150 + Give better location information on errors, pointing to line
7151 numbers within included files (#1274).
7152 + LaTeX reader: Better handling of `table` environment (#1204).
7153 Positioning options no longer rendered verbatim.
7154 + Better handling of figure and table with caption (#1204).
7155 + Handle `@{}` and `p{length}` in tabular. The length is not actually
7156 recorded, but at least we get a table (#1180).
7157 + Properly handle `\nocite`. It now adds a `nocite` metadata
7158 field. Citations there will appear in the bibliography but not
7159 in the text (unless you explicitly put a `$nocite$` variable
7160 in your template).
7162 * Markdown reader:
7164 + Ensure that whole numbers in YAML metadata are rendered without
7165 decimal points. (This became necessary with changes to aeson
7166 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
7167 + Fixed regression on line breaks in strict mode (#1203).
7168 + Small efficiency improvements.
7169 + Improved parsing of nested `div`s. Formerly a closing `div` tag
7170 would be missed if it came right after other block-level tags.
7171 + Avoid backtracking when closing `</div>` not found.
7172 + Fixed bug in reference link parsing in `markdown_mmd`.
7173 + Fixed a bug in list parsing (#1154). When reading a raw list
7174 item, we now strip off up to 4 spaces.
7175 + Fixed parsing of empty reference link definitions (#1186).
7176 + Made one-column pipe tables work (#1218).
7178 * Textile reader:
7180 + Better support for attributes. Instead of being ignored, attributes
7181 are now parsed and included in Span inlines. The output will be a bit
7182 different from stock textile: e.g. for `*(foo)hi*`, we'll get
7183 `<em><span class="foo">hi</span></em>` instead of
7184 `<em class="foo">hi</em>`. But at least the data is not lost.
7185 + Improved treatment of HTML spans (%) (#1115).
7186 + Improved link parsing. In particular we now pick up on attributes.
7187 Since pandoc links can't have attributes, we enclose the whole link in
7188 a span if there are attributes (#1008).
7189 + Implemented correct parsing rules for inline markup (#1175, Matthew
7190 Pickering).
7191 + Use Builder (Matthew Pickering).
7192 + Fixed list parsing bug (#1500).
7193 + Don't allow inline formatting to extend over newlines.
7194 This matches the behavior of RedCarpet, avoids some ugly bugs,
7195 and improves performance.
7197 * DocBook reader:
7199 + Better treatment of `formalpara`. We now emit the title (if present)
7200 as a separate paragraph with boldface text (#1215).
7201 + Set metadata `author` not `authors`.
7202 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
7203 Matthew Pickering).
7204 + Converted current meta information parsing in DocBook to a more
7205 extensible version which is aware of the more recent meta
7206 representation (Matthew Pickering).
7208 * HTML reader:
7210 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
7211 (#1248).
7212 + Treat processing instructions & declarations as block. Previously
7213 these were treated as inline, and included in paragraph tags in HTML
7214 or DocBook output, which is generally not what is wanted (#1233).
7215 + Updated `closes` with rules from HTML5 spec.
7216 + Use Builder (Matthew Pickering, #1162).
7218 * RST reader:
7220 + Remove duplicate `http` in PEP links (Albert Krewinkel).
7221 + Make rst figures true figures (#1168, CasperVector)
7222 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
7223 rST parser now supports: all built-in rST roles, new role definition,
7224 role inheritance, though with some limitations.
7225 + Use `author` rather than `authors` in metadata.
7226 + Better handling of directives. We now correctly handle field
7227 lists that are indented more than three spaces. We treat an
7228 `aafig` directive as a code block with attributes, so it can be
7229 processed in a filter (#1212).
7231 * LaTeX writer:
7233 + Mark span contents with label if span has an ID (Albert Krewinkel).
7234 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
7235 + Handle line breaks in simple table cells (#1217).
7236 + Workaround for level 4-5 headers in quotes. These previously produced
7237 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
7238 This adds an `mbox{}` in these contexts to work around the problem.
7239 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
7240 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
7241 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
7242 ligature with LuaLaTeX but `\/` does.
7243 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
7245 * ConTeXt writer: Improved autolinks (#1270).
7247 * DocBook writer:
7249 + Improve handling of hard line breaks in Docbook writer
7250 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
7251 just for the newline character.
7252 + Don't let line breaks inside footnotes influence the enclosing
7253 paragraph (Neil Mayhew).
7254 + Distinguish tight and loose lists in DocBook output, using
7255 `spacing="compact"` (Neil Mayhew, #1250).
7257 * Docx writer: When needed files are not present in the user's
7258 `reference.docx`, fall back on the versions in the `reference.docx`
7259 in pandoc's data files. This fixes a bug that occurs when a
7260 `reference.docx` saved by LibreOffice is used. (#1185)
7262 * EPUB writer:
7264 + Include extension in epub ids. This fixes a problem with duplicate
7265 extensions for fonts and images with the same base name but different
7266 extensions (#1254).
7267 + Handle files linked in raw `img` tags (#1170).
7268 + Handle media in `audio` source tags (#1170).
7269 Note that we now use a `media` directory rather than `images`.
7270 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
7271 will both be incorporated into `content.opf` and the epub container.
7273 * HTML writer:
7275 + Add colgroup around col tags (#877). Also affects EPUB writer.
7276 + Fixed bug with unnumbered section headings. Unnumbered section
7277 headings (with class `unnumbered`) were getting numbers.
7278 + Improved detection of image links. Previously image links with
7279 queries were not recognized, causing `<embed>` to be used instead
7280 of `<img>`.
7282 * Man writer: Ensure that terms in definition lists aren't line wrapped
7283 (#1195).
7285 * Markdown writer:
7287 + Use proper escapes to avoid unwanted lists (#980). Previously we used
7288 0-width spaces, an ugly hack.
7289 + Use longer backtick fences if needed (#1206). If the content contains a
7290 backtick fence and there are attributes, make sure longer fences are
7291 used to delimit the code. Note: This works well in pandoc, but github
7292 markdown is more limited, and will interpret the first string of three
7293 or more backticks as ending the code block.
7295 * RST writer: Avoid stack overflow with certain tables (#1197).
7297 * RTF writer: Fixed table cells containing paragraphs.
7299 * Custom writer:
7301 + Correctly handle UTF-8 in custom lua scripts (#1189).
7302 + Fix bugs with lua scripts with mixed-case filenames and
7303 paths containing `+` or `-` (#1267). Note that `getWriter`
7304 in `Text.Pandoc` no longer returns a custom writer on input
7305 `foo.lua`.
7307 * AsciiDoc writer: Handle multiblock and empty table cells
7308 (#1245, #1246). Added tests.
7310 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
7312 * `Text.Pandoc.Shared`:
7314 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
7315 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
7316 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
7317 Jesse Rosenthal.
7318 + `openURL`: set proxy with value of http_proxy env variable (#1211).
7319 Note: proxies with non-root paths are not supported, due to
7320 limitations in `http-conduit`.
7322 * `Text.Pandoc.PDF`:
7324 + Ensure that temp directories deleted on Windows (#1192). The PDF is
7325 now read as a strict bytestring, ensuring that process ownership will
7326 be terminated, so the temp directory can be deleted.
7327 + Use `/` as path separators in a few places, even on Windows.
7328 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
7329 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
7330 + Changes to error reporting, to handle non-UTF8 error output.
7332 * `Text.Pandoc.Templates`:
7334 + Removed unneeded datatype context (Merijn Verstraaten).
7336 + YAML objects resolve to "true" in conditionals (#1133).
7337 Note: If `address` is a YAML object and you just have `$address$`
7338 in your template, the word `true` will appear, which may be
7339 unexpected. (Previously nothing would appear.)
7341 * `Text.Pandoc.SelfContained`:
7343 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
7344 the string.
7345 * It no longer looks in data files. This only made sense when we
7346 had copies of slidy and S5 code there.
7347 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
7348 + Handle `poster` attribute in `video` tags (#1188).
7350 * `Text.Pandoc.Parsing`:
7352 + Made `F` an instance of Applicative (#1138).
7353 + Added `stateCaption`.
7354 + Added `HasMacros`, simplified other typeclasses.
7355 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
7356 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
7357 + Changed the smart punctuation parser to return `Inlines`
7358 rather than `Inline` (Matthew Pickering).
7359 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
7360 from typeclasses of monads to typeclasses of states. This simplifies
7361 the instance definitions and provides more flexibility. Generalized
7362 type of `getOption` and added a default definition. Removed
7363 `askReaderOption`. Added `extractReaderOption`. Added
7364 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
7365 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
7366 `modifyHeaderMap`. Added `extractIdentifierList` and
7367 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
7368 for `getIdentifierList`, `putIdentifierList`, and
7369 `modifyIdentifierList`. The ultimate goal here is to allow different
7370 parsers to use their own, tailored parser states (instead of
7371 `ParserState`) while still using shared functions.
7373 * Template changes:
7375 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
7376 + LaTeX template: Add `linestretch` and `fontfamily` variables.
7377 + LaTeX template: Conditionalize author and date commands.
7378 + Beamer template: Consistent styles for figure and table captions
7379 (aaronwolen).
7380 + LaTeX and beamer template: Adjust widths correctly for oversized
7381 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
7382 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
7383 `upquote` only after `fontenc` (Yihui Xie).
7384 + Beamer template: Added caption package (#1200).
7385 + Beamer template: changes for better unicode handling (KarolS).
7386 + DocBook template: use `authorgroup` if there are authors.
7387 + revealjs template: Move `include-after` to end (certainlyakey).
7388 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
7390 * Bumped version bounds of dependencies.
7392 * Added a `--trace` command line option, for debugging backtracking
7393 bugs. So far this only works with the markdown reader.
7395 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
7397 * Updated travis script to test with multiple GHC versions.
7399 * Force failure of a Travis build if GHC produces warnings (Albert
7400 Krewinkel).
7402 * Add `.editorconfig` (Albert Krewinkel).
7403 See <http://editorconfig.org/> for details.
7405 * Give more useful error message if '-t pdf' is specified (#1155).
7407 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
7409 * Allow `html4` as a synonym of `html` as a reader (it already works
7410 as a writer).
7412 * README:
7414 + Added an explanation of how to use YAML metadata to
7415 force items to appear in the bibliography without citations in
7416 the text (like LaTeX `\nocite`).
7417 + Added note to `--bibtex/--natbib`: not for use in making PDF
7418 (#1194, thanks to nahoj).
7419 + Added explanatory notes about `--natbib` and `--biblatex`.
7420 + Added specification of legal syntax for citation keys.
7421 + Fixed variable defaults documentation (Albert Krewinkel).
7423 * Removed copyright statements for files that have been removed
7424 (Albert Krewinkel).
7426 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
7427 They aren't needed at runtime. We keep README and COPYRIGHT in data
7428 to ensure that they'll be available on all systems on which pandoc
7429 is installed.
7431 * Use cabal sandboxes in Windows build script.
7433pandoc (1.12.3.3)
7435 * To changes to source; recompiled tarball with latest alex and
7436 happy, so they will work with GHC 7.8.
7438pandoc (1.12.3.2)
7440 * Bumped version bounds for blaze-html, blaze-markup.
7442 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
7443 (#1124).
7445 * Fixed mediawiki ordered list parsing (#1122).
7447 * HTML reader: Fixed bug reading inline math with `$$` (#225).
7449 * Added support for LaTeX style literate Haskell code blocks in rST
7450 (Merijn Verstraaten).
7452pandoc (1.12.3.1)
7454 * Relaxed version constraint on binary, allowing the use of binary 0.5.
7456pandoc (1.12.3)
7458 * The `--bibliography` option now sets the `biblio-files` variable.
7459 So, if you're using `--natbib` or `--biblatex`, you can just use
7460 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
7462 * Don't run pandoc-citeproc filter if `--bibliography` is
7463 used together with `--natbib` or `--biblatex` (Florian Eitel).
7465 * Template changes:
7467 + Updated beamer template to include booktabs.
7468 + Added `abstract` variable to LaTeX template.
7469 + Put `header-includes` after `title` in LaTeX template (#908).
7470 + Allow use of `\includegraphics[size]` in beamer.
7471 This just required porting a macro definition from the default
7472 LaTeX template to the default beamer template.
7474 * `reference.docx`: Include `FootnoteText` style.
7475 Otherwise Word ignores the style, even when specified in the `pPr`.
7476 (#901)
7478 * `reference.odt`: Tidied `styles.xml`.
7480 * Relaxed version bounds for dependencies.
7482 * Added `withSocketsDo` around http conduit code in `openURL`,
7483 so it works on Windows (#1080).
7485 * Added `Cite` function to `sample.lua`.
7487 * Markdown reader:
7489 + Fixed regression in title blocks (#1089).
7490 If author field was empty, date was being ignored.
7491 + Allow backslash-newline hard line breaks in grid and
7492 multiline table cells.
7493 + Citation keys may now start with underscores, and may contain
7494 underscores adjacent to internal punctuation.
7496 * LaTeX reader:
7498 + Add support for `Verb` macro (jrnold) (#1090).
7499 + Support babel-style quoting: `` "`..."' ``.
7501 * Properly handle script blocks in strict mode. (That is,
7502 `markdown-markdown_in_html_blocks`.) Previously a spurious
7503 `<p>` tag was being added (#1093).
7505 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
7506 elements.
7508 * LaTeX writer:
7510 + Factored out function for table cell creation.
7511 + Better treatment of footnotes in tables.
7512 Notes now appear in the regular sequence, rather than in the
7513 table cell. (This was a regression in 1.10.)
7515 * HTML reader: Parse name/content pairs from meta tags as metadata.
7516 Closes #1106.
7518 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
7520 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
7522 * ODT writer: Use mathml for proper rendering of formulas.
7523 Note: LibreOffice's support for this seems a bit buggy. But
7524 it should be better than what we had before.
7526 * RST writer: Ensure no blank line after def in definition list (#992).
7528 * Markdown writer: Don't use tilde code blocks with braced attributes in
7529 `markdown_github` output. A consequence of this change is that the
7530 backtick form will be preferred in general if both are enabled. That
7531 is good, as it is much more widespread than the tilde form. (#1084)
7533 * Docx writer: Fixed problem with some modified reference docx files.
7534 Include `word/_rels/settings.xml.rels` if it exists, as well as other
7535 `rels` files besides the ones pandoc generates explicitly.
7537 * HTML writer:
7539 + With `--toc`, headers no longer link to themselves (#1081).
7540 + Omit footnotes from TOC entries. Otherwise we get doubled
7541 footnotes when headers have notes!
7543 * EPUB writer:
7545 + Avoid duplicate notes when headings contain notes.
7546 This arose because the headings are copied into the metadata
7547 "title" field, and the note gets rendered twice. We strip the
7548 note now before putting the heading in "title".
7549 + Strip out footnotes from toc entries.
7550 + Fixed bug with `--epub-stylesheet`. Now the contents of
7551 `writerEpubStylesheet` (set by `--epub-stylesheet`)
7552 should again work, and take precedence over a stylesheet specified
7553 in the metadata.
7555 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
7557 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
7558 with `//`.
7560 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
7561 we could only get size information for JFIF format, which led
7562 to squished images in Word documents. Closes #976.
7564 * Removed old `MarkdownTest_1.0.3` directory (#1104).
7566pandoc (1.12.2.1)
7568 * Markdown reader: Fixed regression in list parser, involving
7569 continuation lines containing raw HTML (or even verbatim raw HTML).
7571pandoc (1.12.2)
7573 * Metadata may now be included in YAML blocks in a markdown document.
7574 For example,
7576 ---
7577 title:
7578 - type: main
7579 text: My Book
7580 - type: subtitle
7581 text: An investigation of metadata
7582 creator:
7583 - role: author
7584 text: John Smith
7585 - role: editor
7586 text: Sarah Jones
7587 identifier:
7588 - scheme: DOI
7589 text: doi:10.234234.234/33
7590 publisher: My Press
7591 rights: (c) 2007 John Smith, CC BY-NC
7592 cover-image: img/mypic.jpg
7593 ...
7595 Metadata may still be provided using `--epub-metadata`; it will
7596 be merged with the metadata in YAML blocks.
7598 * EPUB writer:
7600 + `meta` tags are now used instead of `opf` attributes for EPUB3.
7601 + Insert "svg" property as needed in opf (EPUB 3).
7602 + Simplify `imageTypeOf` using `getMimeType`.
7603 + Add properties attribute to `cover-image` item for EPUB 3.
7604 + Don't include node for `cover.xhtml` if no cover!
7605 + Ensure that same identifier is used throughout (#1044).
7606 If an identifier is given in metadata, we use that; otherwise
7607 we generate a random uuid.
7608 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
7609 Fixes an issue with Calibre putting the cover at the end of the book
7610 if the spine has `linear="no"`. Apparently this is best practice
7611 for other converters as well:
7612 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
7613 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
7614 + Allow partial dates: `YYYY`, `YYYY-MM`.
7616 * Markdown writer: Fix rendering of tight sublists (#1050).
7617 Previously a spurious blank line was included after a tight sublist.
7619 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
7620 This is reported to be necessary to avoid an error from recent
7621 versions of Libre Office when files contain more than one image
7622 Thanks to wmanley for reporting and diagnosing the problem.
7624 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
7625 Instead, let this be set in the template, using `\setupfloat`.
7626 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
7628 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
7630 * Fixed bug with markdown intraword emphasis. Closes #1066.
7632 * Docbook writer: Hierarchicalize block content in metadata.
7633 Previously headers just disappeared from block-level metadata
7634 when it was used in templates. Now we apply the 'hierarchicalize'
7635 transformation. Note that a block headed by a level-2 header will
7636 turn into a `<sect1>` element.
7638 * OpenDocument writer: Skip raw HTML (#1035).
7639 Previously it was erroneously included as verbatim text.
7641 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
7642 This allows better control of formatting, since the `<a>`
7643 tags have a distinguishing class (#1049).
7645 * Docx writer:
7647 + Use mime type info returned by fetchItem.
7648 + Fixed core metadata (#1046).
7649 Don't create empty date nodes if no date given.
7650 Don't create multiple `dc:creator` nodes; instead separate by
7651 semicolons.
7652 + Fix URL for core-properties in `_rels/.rels` (#1046).
7654 * Plain writer: don't print `<span>` tags.
7656 * LaTeX writer:
7658 + Fix definition lists with internal links in terms (#1032).
7659 This fix puts braces around a term that contains an internal
7660 link, to avoid problems with square brackets.
7661 + Properly escape pdftitle, pdfauthor (#1059).
7662 + Use booktabs package for tables (thanks to Jose Luis Duran).
7664 * Updated beamer template. Now references should work properly
7665 (in a slide) when `--biblatex` or `--natbib` is used.
7667 * LaTeX reader:
7669 + Parse contents of curly quotes or matched `"` as quotes.
7670 + Support `\textnormal` as span with class `nodecor`.
7671 This is needed for pandoc-citeproc.
7672 + Improved citation parsing. This fixes a run-time error that occured
7673 with `\citet{}` (empty list of keys). It also ensures that empty keys
7674 don't get produced.
7676 * MediaWiki reader: Add automatic header identifiers.
7678 * HTML reader:
7680 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
7681 `--parse-raw`.
7682 + Recognize `svg` tags as block level content (thanks to MinRK).
7683 + Parse LaTeX math if appropriate options are set.
7685 * Markdown reader:
7687 + Yaml block must start immediately after `---`. If there's a blank
7688 line after `---`, we interpreted it as a horizontal rule.
7689 + Correctly handle empty bullet list items.
7690 + Stop parsing "list lines" when we hit a block tag.
7691 This fixes exponential slowdown in certain input, e.g.
7692 a series of lists followed by `</div>`.
7694 * Slides: Preserve `<div class="references">` in references slide.
7696 * `Text.Pandoc.Writer.Shared`:
7698 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
7699 attributes, leading to invalid HTML.
7700 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
7701 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
7702 encoded bytestring was returned. We now decode it so it's a proper
7703 image!
7705 * DocBook reader: Handle numerical attributes starting with decimal.
7706 Also use `safeRead` instead of `read`.
7708 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
7709 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
7710 in all the writers. Require `texmath >= 0.6.5.2`.
7712 * `Text.Pandoc.MIME`:
7714 + Add entry for `jfif`.
7715 + In looking up extensions, drop the encoding info.
7716 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
7718 * Templates: Changed how array variables are resolved. Previously if
7719 `foo` is an array (which might be because multiple values were set on
7720 the command line), `$foo$` would resolve to the concatenation of the
7721 elements of foo. This is rarely useful behavior. It has been changed
7722 so that the first value is rendered. Of course, you can still iterate
7723 over the values using `$for(foo)$`. This has the result that you can
7724 override earlier settings using `-V` by putting new values later on the
7725 command line, which is useful for many purposes.
7727 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
7729 * Allow "epub2" as synonym for "epub", "html4" for "html".
7731 * Don't look for slidy files in data files with `--self-contained`.
7733 * Allow `https:` command line arguments to be downloaded.
7735 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
7737pandoc (1.12.1)
7739 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
7740 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
7741 "c": "foo"}`. This new format is easier to work with outside of Haskell.
7742 Incidentally, "t" stands for "tag", "c" for "contents".
7744 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
7745 when converting to markdown (#1027).
7747 * LaTeX reader:
7749 + Ensure that preamble doesn't contribute to the text of
7750 the document.
7751 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
7752 properly, among others.
7753 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
7754 bibtex titles, since we need to know what was protected from
7755 titlecase conversions.
7757 * LaTeX writer:
7759 + Specially escape non-ascii characters in labels.
7760 Otherwise we can get compile errors and other bugs when
7761 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
7762 + Add link anchors for code blocks with identifiers (#1025).
7764 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
7765 It allows fragments identifiers.
7767 * Slide formats:
7769 + A Div element with class "notes" is treated as speaker
7770 notes. Currently beamer goes to `\note{}`, revealjs to
7771 `<aside class="notes">`, and the notes are simply suppressed in
7772 other formats (#925).
7773 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
7774 The old version caused a pause to be inserted before the first
7775 material on a slide. This has been fixed.
7776 + Removed data files for s5, slideous, slidy.
7777 Users of s5 and slideous will have to download the needed
7778 files, as has been documented for some time in the README.
7779 By default, slidy code will be sought on the web, as before.
7781 * HTML writer: Insert command to typeset mathjax only in slideous output
7782 (#966, #1012).
7784 * RST writer: Skip spaces after display math. Otherwise we get indentation
7785 problems, and part of the next paragraph may be rendered as part of the
7786 math.
7788 * OpenDocument writer: Fix formatting of strikeout code (#995),
7789 thanks to wilx. don't use `font-face-decls` variable.
7791 * Fixed test suite so it works with cabal sandboxes.
7793pandoc (1.12.0.2)
7795 * Removed `stringable` dependency.
7797pandoc (1.12.0.1)
7799 * Allow `--metadata` to be repeated for the same key to form a list.
7800 This also has the effect that `--bibliography` can be repeated,
7801 as before.
7803 * Handle boolean values in `--metadata`. Note that anything not parseable
7804 as a YAML boolean or string is treated as a literal string.
7805 You can get a string value with "yes", or any of the strings interpretable
7806 as booleans, by quoting it:
7808 -M boolvalue=yes -M stringvalue='"yes"'
7810 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
7811 option used.
7813 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
7814 in which docx files could not be read by some versions of Word
7815 and LibreOffice (#990).
7817 * Fixed a regression involving slide shows with bibliographies.
7818 The Div container around references messed up the procedure for carving
7819 a document into slides. So we now remove the surrounding Div in
7820 `prepSlides`.
7822 * More informative error message when a filter is not found in path.
7824 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
7825 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
7827 * Don't use unicode_collation in building OSX package:
7828 it adds something like 50MB of dependencies to the package.
7830 * Declare alex and happy as build-tools (#986).
7832pandoc (1.12)
7834 [new features]
7836 * Much more flexible metadata, including arbitrary fields and structured
7837 values. Metadata can be specified flexibly in pandoc markdown using
7838 YAML metadata blocks, which may occur anywhere in the document:
7840 ---
7841 title: Here is my title.
7842 abstract: |
7843 This is the abstract.
7845 1. It can contain
7846 2. block content
7847 and *inline markup*
7849 tags: [cat, dog, animal]
7850 ...
7852 Metadata fields automatically populate template variables.
7854 * Added `opml` (OPML) as input and output format. The `_note` attribute,
7855 used in OmniOutliner and supported by multimarkdown, is supported.
7856 We treat the contents as markdown blocks under a section header.
7858 * Added `haddock` (Haddock markup) as input format (David Lazar).
7860 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
7861 (Thanks to Jamie F. Olson for the initial patch.)
7862 Nested vertical stacks are used for hierarchical structure.
7863 Results for more than one level of nesting may be odd.
7865 * Custom writers can now be written in lua.
7867 pandoc -t data/sample.lua
7869 will load the script sample.lua and use it as a custom writer.
7870 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
7871 Note that pandoc embeds a lua interpreter, so lua need not be
7872 installed separately.
7874 * New `--filter/-F` option to make it easier to run "filters"
7875 (Pandoc AST transformations that operate on JSON serializations).
7876 Filters are always passed the name of the output format, so their
7877 behavior can be tailored to it. The repository
7878 <https://github.com/jgm/pandocfilters> contains
7879 a python module for writing pandoc filters in python, with
7880 a number of examples.
7882 * Added `--metadata/-M` option.
7883 This is like `--variable/-V`, but actually adds to metadata, not
7884 just variables.
7886 * Added `--print-default-data-file` option, which allows printing
7887 of any of pandoc's data files. (For example,
7888 `pandoc --print-default-data-file reference.odt` will print
7889 `reference.odt`.)
7891 * Added syntax for "pauses" in slide shows:
7893 This gives
7895 . . .
7897 me pause.
7899 * New markdown extensions:
7901 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
7902 rather than being treated as hard line breaks or spaces. This is useful
7903 for some East Asian languages, where spaces aren't used between words,
7904 but text is separated into lines for readability.
7905 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
7906 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
7907 only. (Default for `markdown_github`.) (#807)
7908 + `lists_without_preceding_blankline`: Allow lists to start without
7909 preceding blank space. (Default for `markdown_github`.) (#972)
7911 [behavior changes]
7913 * `--toc-level` no longer implies `--toc`.
7914 Reason: EPUB users who don't want a visible TOC may still want
7915 to set the TOC level for in the book navigation.
7917 * `--help` now prints in and out formats in alphabetical order, and
7918 says something about PDF output (#720).
7920 * `--self-contained` now returns less verbose output (telling you
7921 which URLs it is fetching, but not giving the full header). In
7922 addition, there are better error messages when fetching a URL fails.
7924 * Citation support is no longer baked in to core pandoc. Users who
7925 need citations will need to install and use a separate filter
7926 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
7927 `csl`, and `citation-abbreviations` from the metadata, though it
7928 may still be specified on the command line as before.
7930 * A `Cite` element is now created in parsing markdown whether or not
7931 there is a matching reference.
7933 * The `pandoc-citeproc` script will put the bibliography at the
7934 end of the document, as before. However, it will be put inside a `Div`
7935 element with class "references", allowing users some control
7936 over the styling of references. A final header, if any, will
7937 be included in the `Div`.
7939 * The markdown writer will not print a bibliography if the
7940 `citations` extension is enabled. (If the citations are formatted
7941 as markdown citations, it is redundant to have a bibliography,
7942 since one will be generated automatically.)
7944 * Previously we used to store the directory of the first input file,
7945 even if it was local, and used this as a base directory for finding
7946 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
7947 users. So we now look for images relative to the current
7948 working directory, even if the first file argument is in another
7949 directory. Note that this change may break some existing workflows.
7950 If you have been assuming that relative links will be interpreted
7951 relative to the directory of the first file argument, you'll need
7952 to make that the current directory before running pandoc. (#942)
7954 * Better error reporting in some readers, due to changes in `readWith`:
7955 the line in which the error occured is printed, with a caret pointing
7956 to the column.
7958 * All slide formats now support incremental slide view for definition lists.
7960 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
7961 Parse `:<math>...</math>` as display math. These notations are used with
7962 the MathJax MediaWiki extension.
7964 * All writers: template variables are set automatically from metadata
7965 fields. However, variables specified on the command line with
7966 `--variable` will completely shadow metadata fields.
7968 * If `--variable` is used to set many variables with the same name,
7969 a list is created.
7971 * Man writer: The `title`, `section`, `header`, and `footer` can now
7972 all be set individually in metadata. The `description` variable has been
7973 removed. Quotes have been added so that spaces are allowed in the
7974 title. If you have a title that begins
7976 COMMAND(1) footer here | header here
7978 pandoc will still parse it into a title, section, header, and
7979 footer. But you can also specify these elements explicitly (#885).
7981 * Markdown reader
7983 + Added support for YAML metadata blocks, which can come anywhere
7984 in the document (not just at the beginning). A document can contain
7985 multiple YAML metadata blocks.
7986 + HTML span and div tags are parsed as pandoc Span and Div elements.
7988 * Markdown writer
7990 + Allow simple tables to be printed as grid tables,
7991 if other table options are disabled. This means you can do
7992 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
7993 and all tables will render as grid tables.
7994 + Support YAML title block (render fields in alphabetical order
7995 to make output predictable).
7997 [API changes]
7999 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
8000 structured metadata. (Note: existing code that pattern-matches
8001 on `Meta` will have to be revised.) Metadata can now contain
8002 indefinitely many fields, with content that can be a string,
8003 a Boolean, a list of `Inline` elements, a list of `Block`
8004 elements, or a map or list of these.
8006 * A new generic block container (`Div`) has been added to `Block`,
8007 and a generic inline container (`Span`) has been added to `Inline`.
8008 These can take attributes. They will render in HTML, Textile,
8009 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
8010 extension) as HTML `<div>` and `<span>` elements; in other formats
8011 they will simply pass through their contents. But they can be
8012 targeted by scripts.
8014 * `Format` is now a newtype, not an alias for String.
8015 Equality comparisons are case-insensitive.
8017 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
8018 functions that are much faster than the SYB functions from
8019 `Text.Pandoc.Generic`. These functions are now used where possible
8020 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
8021 match the generic traversals `bottomUp` and `queryWith`.)
8023 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
8024 instances for the basic pandoc types. They use GHC generics and
8025 should be faster than the old JSON serialization using
8026 `Data.Aeson.Generic`.
8028 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
8029 This is a souped-up version of `readProcessWithErrorcode` that
8030 uses lazy bytestrings instead of strings and allows setting
8031 environment variables. (Used in `Text.Pandoc.PDF`.)
8033 * New module `Text.Pandoc.Readers.OPML`.
8035 * New module `Text.Pandoc.Writers.OPML`.
8037 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
8038 This is based on Haddock's own lexer/parser.
8040 * New module `Text.Pandoc.Writers.Custom`.
8042 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
8043 Either, for better error handling.
8045 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
8047 * Removed `stripTags` from `Text.Pandoc.XML`.
8049 * `Text.Pandoc.Templates`:
8051 + Simplified `Template` type to a newtype.
8052 + Removed `Empty`.
8053 + Changed type of `renderTemplate`: it now takes a JSON context
8054 and a compiled template.
8055 + Export `compileTemplate`.
8056 + Export `renderTemplate'` that takes a string instead of a compiled
8057 template.
8058 + Export `varListToJSON`.
8060 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
8061 The signature of `makePDF` has changed and now contains
8062 an additional argument for pdf engine options.
8064 * `Text.Pandoc`:
8066 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
8067 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
8068 `Text.Pandoc.JSON` should be used instead. (Compiling against
8069 pandoc-types instead of pandoc will also produce smaller executables.)
8070 * Removed the deprecated `jsonFilter` function.
8071 + Added `readJSON`, `writeJSON` to the API (#817).
8073 * `Text.Pandoc.Options`:
8075 + Added `Ext_lists_without_preceding_blankline`,
8076 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
8077 `Ext_yaml_metadataBlock` to `Extension`.
8078 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
8079 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
8080 first command-line argument is an absolute URL. (So, relative links
8081 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
8082 + All bibliography-related fields have been removed from
8083 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
8084 `readerReferences`, `readerCitationStyle`.
8085 + Removed `writerPdfArgs` from `WriterOptions`. These are now
8086 passed in as a parameter to `makePDF`.
8088 * The `Text.Pandoc.Biblio` module has been removed. Users of the
8089 pandoc library who want citation support will need to use
8090 `Text.CSL.Pandoc` from `pandoc-citeproc`.
8093 [bug fixes]
8095 * In markdown, don't autolink a bare URI that is followed by `</a>`
8096 (#937).
8098 * `Text.Pandoc.Shared`
8100 + `openURL` now follows redirects (#701), properly handles `data:`
8101 URIs, and prints diagnostic output to stderr rather than stdout.
8102 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
8103 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
8104 + Fixed `readDefaultDataFile` so it works on Windows.
8105 + Better error messages for `readDefaultDataFile`. Instead of
8106 listing the last path tried, which can confuse people who are
8107 using `--self-contained`, so now we just list the data file name.
8108 + URL-escape pipe characters. Even though these are legal, `Network.URI`
8109 doesn't regard them as legal in URLs. So we escape them first (#535).
8111 * Mathjax in HTML slide shows: include explicit "Typeset" call.
8112 This seems to be needed for some formats (e.g. slideous) and won't
8113 hurt in others (#966).
8115 * `Text.Pandoc.PDF`
8117 + On Windows, create temdir in working directory, since the system
8118 temp directory path may contain tildes, which can cause
8119 problems in LaTeX (#777).
8120 + Put temporary output directory in `TEXINPUTS` (see #917).
8121 + `makePDF` tries to download images that are not found locally,
8122 if the first argument is a URL (#917).
8123 + If compiling with `pdflatex` yields an encoding error, offer
8124 the suggestion to use `--latex-engine=xelatex`.
8126 * Produce automatic header identifiers in parsing textile, RST,
8127 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
8129 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
8130 before treating as a filename. This fixes `--self-contained` when used
8131 with CSS files that include web fonts using the method described here:
8132 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
8133 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
8135 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
8136 percent-encoding, or a `+` character, as final punctuation.
8138 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
8139 EPS images properly sized on conversion to Word.
8141 * Slidy: Use slidy.js rather than slidy.js.gz.
8142 Reason: some browsers have trouble with the gzipped js file,
8143 at least on the local file system (#795).
8145 * Markdown reader
8147 + Properly handle blank line at beginning of input (#882).
8148 + Fixed bug in unmatched reference links. The input
8149 `[*infile*] [*outfile*]` was getting improperly parsed:
8150 "infile" was emphasized, but "*outfile*" was literal (#883).
8151 + Allow internal `+` in citation identifiers (#856).
8152 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
8153 + Do not generate blank title, author, or date metadata elements.
8154 Leave these out entirely if they aren't present.
8155 + Allow backtick code blocks not to be preceded by blank line (#975).
8157 * Textile reader:
8159 + Correctly handle entities.
8160 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
8161 in code blocks, rather than printing them verbatim. Parse attributes
8162 on `<pre>` tag for code blocks.
8164 * HTML reader: Handle non-simple tables (#893). Column widths are read from
8165 `col` tags if present, otherwise divided equally.
8167 * LaTeX reader
8169 + Support alltt environment (#892).
8170 + Support `\textasciitilde`, `\textasciicircum` (#810).
8171 + Treat `\textsl` as emphasized text reader (#850).
8172 + Skip positional options after `\begin{figure}`.
8173 + Support `\v{}` for hacek (#926).
8174 + Don't add spurious ", " to citation suffixes.
8175 This is added when needed in pandoc-citeproc.
8176 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
8177 + Improved support for accented characters (thanks to Scott Morrison).
8178 + Parse label after section command and set id (#951).
8180 * RST reader:
8182 + Don't insert paragraphs where docutils doesn't.
8183 `rst2html` doesn't add `<p>` tags to list items (even when they are
8184 separated by blank lines) unless there are multiple paragraphs in the
8185 list. This commit changes the RST reader to conform more closely to
8186 what docutils does (#880).
8187 + Improved metadata. Treat initial field list as metadata when
8188 standalone specified. Previously ALL fields "title", "author",
8189 "date" in field lists were treated as metadata, even if not at
8190 the beginning. Use `subtitle` metadata field for subtitle.
8191 + Fixed 'authors' metadata parsing in reST. Semicolons separate
8192 different authors.
8194 * MediaWiki reader
8196 + Allow space before table rows.
8197 + Fixed regression for `<ref>URL</ref>`.
8198 `<` is no longer allowed in URLs, according to the uri parser
8199 in `Text.Pandoc.Parsing`. Added a test case.
8200 + Correctly handle indented preformatted text without preceding
8201 or following blank line.
8202 + Fixed `|` links inside table cells. Improved attribute parsing.
8203 + Skip attributes on table rows. Previously we just crashed if
8204 rows had attributes, now we ignore them.
8205 + Ignore attributes on headers.
8206 + Allow `Image:` for images (#971).
8207 + Parse an image with caption in a paragraph by itself as a figure.
8209 * LaTeX writer
8211 + Don't use ligatures in escaping inline code.
8212 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
8213 wherein notes were numbered incorrectly in tables (#827).
8214 + Always create labels for sections. Previously the labels were only
8215 created when there were links to the section in the document (#871).
8216 + Stop escaping `|` in LaTeX math.
8217 This caused problems with array environments (#891).
8218 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
8219 `\` will cause major problems if unescaped.
8220 + Write id for code block to label attribute in LaTeX when listings
8221 is used (thanks to Florian Eitel).
8222 + Scale LaTeX tables so they don't exceed columnwidth.
8223 + Avoid problem with footnotes in unnumbered headers (#940).
8225 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
8226 to the slide if it is one of the header classes. It is recommended
8227 that your bibliography slide have this attribute:
8229 # References {.allowframebreaks}
8231 This causes multiple slides to be created if necessary, depending
8232 on the length of the bibliography.
8234 * ConTeXt writer: Properly handle tables without captions. The old output
8235 only worked in MkII. This should work in MkIV as well (#837).
8237 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
8239 * HTML writer:
8241 + Fixed `--no-highlight` (Alexander Kondratskiy).
8242 + Don't convert to lowercase in email obfuscation (#839).
8243 + Ensure proper escaping in `<title>` and `<meta>` fields.
8245 * AsciiDoc writer:
8247 + Support `--atx-headers` (Max Rydahl Andersen).
8248 + Don't print empty identifier blocks `([[]])` on headers (Max
8249 Rydahl Andersen).
8251 * ODT writer:
8253 + Fixing wrong numbered-list indentation in open document format
8254 (Alexander Kondratskiy) (#369).
8255 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
8256 + Minor changes for ODF 1.2 conformance (#939). We leave the
8257 nonconforming `contextual-spacing` attribute, which is provided by
8258 LibreOffice itself and seems well supported.
8260 * Docx writer:
8262 + Fixed rendering of display math in lists.
8263 In 1.11 and 1.11.1, display math in lists rendered as a new list
8264 item. Now it always appears centered, just as outside of lists,
8265 and in proper display math style, no matter how far indented the
8266 containing list item is (#784).
8267 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
8268 Previously we used `w:cr` (#873).
8269 + Use Compact style for Plain block elements, to
8270 differentiate between tight and loose lists (#775).
8271 + Ignore most components of `reference.docx`.
8272 We take the `word/styles.xml`, `docProps/app.xml`,
8273 `word/theme/theme1.xml`, and `word/fontTable.xml` from
8274 `reference.docx`, ignoring everything else. This should help
8275 with the corruption problems caused when different versions of
8276 Word resave the reference.docx and reorganize things.
8277 + Made `--no-highlight` work properly.
8279 * EPUB writer
8281 + Don't add `dc:creator` tags if present in EPUB metadata.
8282 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
8283 + Don't put blank title page in reading sequence.
8284 Set `linear="no"` if no title block. Addresses #797.
8285 + Download webtex images and include as data URLs.
8286 This allows you to use `--webtex` in creating EPUBs.
8287 Math with `--webtex` is automatically made self-contained.
8288 + In `data/epub.css`, removed highlighting styles (which
8289 are no longer needed, since styles are added by the HTML
8290 writer according to `--highlighting-style`). Simplified
8291 margin fields.
8292 + If resource not found, skip it, as in Docx writer (#916).
8294 * RTF writer:
8296 + Properly handle characters above the 0000-FFFF range.
8297 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
8298 + Fixed regression with RTF table of contents.
8299 + Only autolink absolute URIs. This fixes a regression, #830.
8301 * Markdown writer:
8303 + Only autolink absolute URIs. This fixes a regression, #830.
8304 + Don't wrap attributes in fenced code blocks.
8305 + Write full metadata in MMD style title blocks.
8306 + Put multiple authors on separate lines in pandoc titleblock.
8307 Also, don't wrap long author entries, as new lines get treated
8308 as new authors.
8310 * `Text.Pandoc.Templates`:
8312 + Fixed bug retrieving default template for markdown variants.
8313 + Templates can now contain "record lookups" in variables;
8314 for example, `author.institution` will retrieve the `institution`
8315 field of the `author` variable.
8316 + More consistent behavior of `$for$`. When `foo` is not a list,
8317 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
8318 So if `foo` resolves to "", no output should be produced.
8319 See pandoc-templates#39.
8321 * Citation processing improvements (now part of pandoc-citeproc):
8323 + Fixed `endWithPunct` The new version correctly sees a sentence
8324 ending in '.)' as ending with punctuation. This fixes a bug which
8325 led such sentences to receive an extra period at the end: '.).'.
8326 Thanks to Steve Petersen for reporting.
8327 + Don't interfere with Notes that aren't citation notes.
8328 This fixes a bug in which notes not generated from citations were
8329 being altered (e.g. first letter capitalized) (#898).
8330 + Only capitalize footnote citations when they have a prefix.
8331 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
8332 inserted before it before passing to citeproc-hs, so that bare numbers
8333 are treated as page numbers by default. A suffix not beginning with
8334 punctuation has a space added at the beginning (rather than a comma and
8335 space, as was done before for not-author-in-text citations).
8336 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
8337 properly, with '23' treated as a locator of type 'page'.
8338 + Many improvements to citation rendering, due to fixes in citeproc-hs
8339 (thanks to Andrea Rossato).
8340 + Warnings are issued for undefined citations, which are rendered
8341 as `???`.
8342 + Fixed hanging behavior when locale files cannot be found.
8344 [template changes]
8346 * DocBook: Use DocBook 4.5 doctype.
8348 * Org: '#+TITLE:' is inserted before the title.
8349 Previously the writer did this.
8351 * LaTeX: Changes to make mathfont work with xelatex.
8352 We need the mathspec library, not just fontspec, for this.
8353 We also need to set options for setmathfont (#734).
8355 * LaTeX: Use `tex-ansi` mapping for `monofont`.
8356 This ensures that straight quotes appear as straight, rather than
8357 being treated as curly. See #889.
8359 * Made `\includegraphics` more flexible in LaTeX template.
8360 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
8362 * LaTeX/Beamer: Added `classoption` variable.
8363 This is intended for class options like `oneside`; it may
8364 be repeated with different options. (Thanks to Oliver Matthews.)
8366 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
8368 * LaTeX: Added `biblio-style` variable (#920).
8370 * DZSlides: title attribute on title section.
8372 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
8374 [under-the-hood improvements]
8376 * Markdown reader:Improved strong/emph parsing, using the strategy of
8377 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
8378 no backtracking, and no keeping track of nesting levels. It will give
8379 different results in some edge cases, but these should not affect normal
8380 uses.
8382 * Added `Text.Pandoc.Compat.Monoid`.
8383 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
8384 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
8386 * Added `Text.Pandoc.Compat.TagSoupEntity`.
8387 This allows pandoc to compile with `tagsoup` 0.13.x.
8388 Thanks to Dirk Ullrich for the patch.
8390 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
8391 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
8392 handle simple math in bibliography fields.)
8394 * Added `Text.Pandoc.Writers.Shared` for shared functions used
8395 only in writers. `metaToJSON` is used in writers to create a
8396 JSON object for use in the templates from the pandoc metadata
8397 and variables. `getField`, `setField`, and `defField` are
8398 for working with JSON template contexts.
8400 * Added `Text.Pandoc.Asciify` utility module.
8401 This exports functions to create ASCII-only versions of identifiers.
8403 * `Text.Pandoc.Parsing`
8405 + Generalized state type on `readWith` (API change).
8406 + Specialize readWith to `String` input. (API change).
8407 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
8408 with `stateMeta` and `stateMeta'`.
8410 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
8411 bytestrings seemed to cause problems using pandoc on 64-bit Windows
8412 7/8 (#874).
8414 * Factored out `registerHeader` from markdown reader, added to
8415 `Text.Pandoc.Parsing`.
8417 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
8418 Reason: < 0.5 does not provide a monoid instance for Attribute,
8419 which is now needed by the HTML writer (#803).
8421 * Added `http-conduit` flag, which allows fetching https resources.
8422 It also brings in a large number of dependencies (`http-conduit`
8423 and its dependencies), which is why for now it is an optional flag
8424 (#820).
8426 * Added CONTRIBUTING.md.
8428 * Improved INSTALL instructions.
8430 * `make-windows-installer.bat`: Removed explicit paths for executables.
8432 * `aeson` is now used instead of `json` for JSON.
8434 * Set default stack size to 16M. This is needed for some large
8435 conversions, esp. if pandoc is compiled with 64-bit ghc.
8437 * Various small documentation improvements.
8438 Thanks to achalddave and drothlis for patches.
8440 * Removed comment that chokes recent versions of CPP (#933).
8442 * Removed support for GHC version < 7.2, since pandoc-types now
8443 requires at least GHC 7.2 for GHC generics.
8446pandoc (1.11.1)
8448 * Markdown reader:
8450 + Fixed regression in which parentheses were lost in link URLs.
8451 Added tests. Closes #786.
8452 + Better handling of unmatched double quotes in `--smart` mode.
8453 These occur frequently in fiction, since it is customary not to
8454 close quotes in dialogue if the speaker does not change between
8455 paragraphs. The unmatched quotes now get turned into literal
8456 left double quotes. (No `Quoted` inline is generated, however.)
8457 Closes #99 (again).
8459 * HTML writer: Fixed numbering mismatch between TOC and sections.
8460 `--number-offset` now affects TOC numbering as well
8461 as section numbering, as it should have all along. Closes #789.
8463 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
8464 as markdown citations, even if `--bibliography` was specified, unless
8465 `citation` extension is disabled. Now, formatted citations are always
8466 printed if `--bibliography` was specified. If you want to reformat
8467 markdown keeping pandoc markdown citations intact, don't use
8468 `--bibliography`. Note that citations parsed from LaTeX documents will
8469 be rendered as pandoc markdown citations when `--bibliography` is not
8470 specified.
8472 * ODT writer: Fixed regression leading to corrupt ODTs.
8473 This was due to a change in the `Show` instance for
8474 `Text.Pandoc.Pretty.Doc`. Closes #780.
8476 * Fixed spacing bugs involving code block attributes in
8477 RST reader and Markdown writer. Closes #763.
8479 * Windows package: Various improvements due to Fyodor Sheremetyev.
8481 + Automatically set installation path (Program Files or Local App Data).
8482 + Set system PATH environment variable when installing for all users.
8483 + Pandoc can installed for all users using the following command.
8484 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
8486 * Bumped QuickCheck version bound.
8488pandoc (1.11)
8490 * Added `--number-offset` option. (See README for description.)
8492 * Added `--default-image-extension` option. (See README for description.)
8494 * `--number-sections` behavior change: headers with class `unnumbered`
8495 will not be numbered.
8497 * `--version` now reports the default data directory.
8499 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
8501 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
8503 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
8504 a field for `Attr` rather than just `String`. (API change.)
8506 * Added `markdown_github` as input format. This was an accidental
8507 omission in 1.10.
8509 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
8510 change.)
8512 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
8514 * Beamer template:
8516 + Fixed captions with longtable. Thanks to Joost Kremers.
8517 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
8519 * LaTeX template:
8521 + Load microtype after fonts. Microtype needs to know
8522 what fonts are being used. Thanks to dfc for the patch.
8523 + Set `secnumdepth` to 5 if `--number-sections` specified.
8524 This yields behavior equivalent to the other writers, numbering
8525 level 4 and 5 headers too. Closes #753.
8527 * HTML reader:
8529 + Handle `<colgroup>` tag.
8530 + Preserve all header attributes.
8532 * LaTeX reader:
8534 + Parse `\hrule` as `HorizontalRule`. Closes #746.
8535 + Parse starred variants of `\section` etc. as headers with
8536 attribute `unnumbered`.
8537 + Read optional attributes in `lstlisting` and `Verbatim` environments.
8538 We convert these to pandoc standard names, e.g. `numberLines`
8539 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
8540 + Handle language attribute for lstlistings.
8541 + Better support for Verbatim and minted environments. Closes #763.
8543 * Markdown reader:
8545 + `-` in an attribute context = `.unnumbered`. The point of this
8546 is to provide a way to specify unnumbered headers in non-English
8547 documents.
8548 + Fixed bug parsing key/value attributes. Parsing failed if you
8549 had an unquoted attribute immediately before the final '}'.
8550 + Make backslash escape work in attributes.
8551 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
8552 pandoc will parse a MMD title block if it sees one, even if
8553 `pandoc_title_blocks` is enabled.
8554 + Refactoring: `litChar` now includes entities, so we don't need
8555 to use `fromEntities` e.g. on titles.
8556 + Allow spaces around borders in pipe tables. Closes #772.
8557 + Allow all punctuation in angle-bracket autolinks. Previously
8558 things like `----` were disallowed, because the uri parser
8559 treated them as trailing punctuation. Closes #768.
8560 + Make `implicit_header_references` work properly when
8561 headers are given explicit identifiers.
8562 + Check for tables before line blocks. Otherwise some pipe
8563 tables get treated as line blocks.
8564 + Allow `&` in emails (for entities).
8565 + Properly handle entities in titles and links. A markdown link
8566 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
8567 Closes #723.
8569 * Textile reader:
8571 + Handle attributes on headers.
8573 * LaTeX reader:
8575 + Add `fig:` as title for images with captions.
8576 This is needed for them to be rendered as figures. Closes #766.
8577 + Never emit an empty paragraph. See #761.
8578 + Handle `\caption` for images in figures. Closes #766.
8579 + Parse `\section*`, etc. as unnumbered sections.
8581 * HTML writer:
8583 + Support header attributes. The attributes go on
8584 the enclosing `section` or `div` tag if `--section-divs` is specified.
8585 + Fixed a regression (only now noticed) in html+lhs output.
8586 Previously the bird tracks were being omitted.
8588 * LaTeX writer:
8590 + Omit lists with no items to avoid LaTeX errors.
8591 + Support line numbering with `--listings`.
8592 If `numberLines` class is present, we add `numbers=left`;
8593 if `startFrom` is present, we add `firstnumber=`. (#763)
8595 * ConTeXt writer:
8597 + Removed `\placecontent`. This produced a duplicate toc,
8598 in conjunction with `\placelist`.
8599 + Use `\title`, `\subject` etc. for headers with
8600 `unnumbered` class.
8602 * Textile writer:
8604 + Support header attributes.
8606 * Markdown writer:
8608 + Use grid tables when needed, and if enabled. Closes #740.
8609 + Render citations as pandoc-markdown citations.
8610 Previously citations were rendered as citeproc-formatted citations
8611 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
8612 unless the `citations` extension is disabled.
8613 If you still want formatted citations in your markdown output,
8614 use `pandoc -t markdown-citations`.
8616 * RST writer:
8618 + Support `:number-lines:` in code blocks.
8620 * Docx writer:
8622 + Better treatment of display math. Display math inside a
8623 paragraph is now put in a separate paragraph, so it will render
8624 properly (centered and without extra blank lines around it).
8625 Partially addresses #742.
8626 + Content types and document rels xml files are now created from
8627 scratch, rather than being taken over from `reference.docx`.
8628 This fixes problems that arise when you edit the `reference.docx`
8629 with Word.
8630 + We also now encode mime types for each individual image rather
8631 than using defaults. This should allow us to handle a wider
8632 range of image types (including PDF). Closes #414.
8633 + Changed style names in `reference docx`.
8634 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
8635 The old names got changed by Word when the `reference.docx` was
8636 edited. Closes #414.
8638 * EPUB writer:
8640 + Fix section numbering. Previously the numbering restarted from 1
8641 in each chapter (with `--number-sections`), though the numbers in
8642 the table of contents were correct.
8643 + Headers with "unnumbered" attribute are not numbered. (Nor do they
8644 cause an increment in running numbering.) Section numbers now work
8645 properly, even when there is material before the first numbered section.
8646 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
8647 but `linear` is set to `no` unless the `--toc` option is specified.
8648 Include `<guide>` element in OPF. This should allow the TOC to
8649 be useable in Kindles when converted with kindlegen. Closes #773.
8651 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
8652 This dramatically reduces the speed penalty that comes from enabling the
8653 `autolink_bare_uris` extension. The penalty is still substantial (in one
8654 test, from 0.33s to 0.44s), but nowhere near what it used to be.
8655 The RST reader is also much faster now, as it autodetects URIs.
8657 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
8658 with class "unnumbered". Unnumbered sections get `[]` for their
8659 section number.
8661 * `Text.Pandoc.Pretty`:
8663 + Fixed `chomp` so it works inside `Prefixed` elements.
8664 + Changed `Show` instance so it is better for debugging.
8666 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
8668 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
8670 * Windows installer improvements:
8672 + The installer is now signed with a certificate (thanks to
8673 Fyodor Sheremetyev).
8674 + WiX is used instead of InnoSetup. The installer is now a
8675 standard msi file.
8676 + The version number is now auto-detected, and need not be
8677 updated separately.
8679 * OSX installer improvements:
8681 + The package and pandoc executable are now signed with a
8682 certificate (thanks to Fyodor Sheremetyev).
8683 + RTF version of license is used.
8684 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
8685 Closes #580.
8687 * Converted COPYING to markdown.
8689 * pandoc.cabal: Require latest versions of highlighting-kate,
8690 texmath, citeproc-hs, zip-archive.
8692pandoc (1.10.1)
8694 * Markdown reader: various optimizations, leading to a
8695 significant performance boost.
8697 * RST reader: Allow anonymous form of inline links:
8698 `` `hello <url>`__ `` Closes #724.
8700 * Mediawiki reader: Don't require newlines after tables.
8701 Thanks to jrunningen for the patch. Closes #733.
8703 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
8704 when output is LaTeX, and applied when it is another format.
8705 Partially addresses #730.
8707 * Markdown and RST readers: Added parser to `block` that skips blank
8708 lines. This fixes a subtle regression involving grid tables with
8709 empty cells. Also added test for grid table with empty cells.
8710 Closes #732.
8712 * RST writer: Use `.. code:: language` for code blocks with language.
8713 Closes #721.
8715 * DocBook writer: Fixed output for hard line breaks, adding a newline
8716 between `<literallayout>` tags.
8718 * Markdown writer: Use an autolink when link text matches url.
8719 Previously we also checked for a null title, but this
8720 test fails for links produced by citeproc-hs in bibliographies.
8721 So, if the link has a title, it will be lost on conversion
8722 to an autolink, but that seems okay.
8724 * Markdown writer: Set title, author, date variables as before.
8725 These are no longer used in the default template, since we use
8726 titleblock, but we set them anyway for those who use custom templates.
8728 * LaTeX writer: Avoid extra space at start/end of table cell.
8729 Thanks to Nick Bart for the suggestion of using @{}.
8731 * `Text.Pandoc.Parsing`:
8733 + More efficient version of `anyLine`.
8734 + Type of `macro` has changed; the parser now returns `Blocks`
8735 instead of `Block`.
8737 * Relaxed old-time version bound, allowing 1.0.*.
8739 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
8740 should create a symlink as described in the README.
8742pandoc (1.10.0.5)
8744 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
8745 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
8746 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
8748 * Markdown reader: Fixed bug with headerless grid tables.
8749 The 1.10 code assumed that each table header cell contains exactly one
8750 block. That failed for headerless tables (0) and also for tables with
8751 multiple blocks in a header cell. The code is fixed and tests provided.
8752 Thanks to Andrew Lee for pointing out the bug.
8754 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
8756 + Tilde code fences can again take a bare language string
8757 (`~~~ haskell`), not just curly-bracketed attributes
8758 (`~~~ {.haskell}`).
8759 + Backtick code blocks can take the curly-bracketed attributes.
8760 + Backtick code blocks don't *require* a language.
8761 + Consolidated code for the two kinds of fenced code blocks.
8763 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
8765 * Markdown writer: Use proportional font for email autolinks with
8766 obfuscation. Closes #714.
8768 * Corrected name of `blank_before_blockquote` in README. Closes #718.
8770 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
8771 The bug prevented an autolink at the end of a string (e.g.
8772 at the end of a line block line) from counting as a link. Closes #711.
8774 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
8775 This should work on Windows, unlike the TH solution with
8776 file-embed.
8778 * Eliminated use of TH in test suite.
8780 * Added `Text.Pandoc.Data` (non-exported) to hold the association
8781 list of embedded data files, if the `embed_data_files` flag is selected.
8782 This isolates the code that needs special treatment with file-embed or
8783 `hsb2hs`.
8785 * Changes to `make-windows-installer.bat`.
8787 + Exit batch file if any of the cabal-dev installs fail.
8788 + There's no longer any need to reinstall `highlighting-kate`.
8789 + Don't start with a `cabal update`; leave that to the user.
8790 + Force reinstall of pandoc.
8792 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
8793 Jens Petersen.
8795pandoc (1.10.0.4)
8797 * Fixed bug with escaped % in LaTeX reader. Closes #710.
8799pandoc (1.10.0.3)
8801 * Added further missing fb2 tests to cabal file.
8803pandoc (1.10.0.2)
8805 * Added fb2 tests to cabal file's extra-source-files.
8807pandoc (1.10.0.1)
8809 * Bump version bounds on test-framework packages.
8811pandoc (1.10)
8813 [new features]
8815 * New input formats: `mediawiki` (MediaWiki markup).
8817 * New output formats: `epub3` (EPUB v3 with MathML),
8818 `fb2` (FictionBook2 ebooks).
8820 * New `--toc-depth` option, specifying how many levels of
8821 headers to include in a table of contents.
8823 * New `--epub-chapter-level` option, specifying the header
8824 level at which to divide EPUBs into separate files.
8825 Note that this normally affects only performance, not the
8826 visual presentation of the EPUB in a reader.
8828 * Removed the `--strict` option. Instead of using `--strict`,
8829 one can now use the format name `markdown_strict` for either input
8830 or output. This gives more fine-grained control that `--strict`
8831 did, allowing one to convert from pandoc's markdown to strict
8832 markdown or vice versa.
8834 * It is now possible to enable or disable specific syntax
8835 extensions by appending them (with `+` or `-`) to the writer
8836 or reader name. For example,
8838 pandoc -f markdown-footnotes+hard_line_breaks
8840 disables footnotes and enables treating newlines as hard
8841 line breaks. The literate Haskell extensions are now implemented
8842 this way as well, using either `+lhs` or `+literate_haskell`.
8843 For a list of extension names, see the README under
8844 "Pandoc's Markdown."
8846 * The following aliases have been introduced for specific
8847 combinations of markdown extensions: `markdown_phpextra`,
8848 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
8849 work just like regular reader and writer names, and can be modified
8850 with extension modifiers as described above. (Note that conversion
8851 from one markdown dialect to another does not work perfectly,
8852 because there are differences in markdown parsers besides
8853 just the extensions, and because pandoc's internal document model is
8854 not rich enough to capture all of the extensions.)
8856 * New `--html-q-tags` option. The previous default was to use `<q>`
8857 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
8858 Moreover, they are not a robust way of typesetting quotes, since
8859 some user agents don't support them, and some CSS resets (e.g.
8860 bootstrap) prevent pandoc's quotes CSS from working properly.
8861 We now just insert literal quote characters by default in both
8862 `html` and `html5` output, but this option is provided for
8863 those who still want `<q>` tags.
8865 * The markdown reader now prints warnings (to stderr) about
8866 duplicate link and note references. Closes #375.
8868 * Markdown syntax extensions:
8870 + Added pipe tables. Thanks to François Gannaz for the initial patch.
8871 These conform to PHP Markdown Extra's pipe table syntax. A subset
8872 of org-mode table syntax is also supported, which means that you can
8873 use org-mode's nice table editor to create tables.
8875 + Added support for RST-style line blocks. These are
8876 useful for verse and addresses.
8878 + Attributes can now be specified for headers, using the same
8879 syntax as in code blocks. (However, currently only the
8880 identifier has any effect in most writers.) For example,
8882 # My header {#foo}
8884 See [the header above](#foo).
8886 + Pandoc will now act as if link references have been defined
8887 for all headers without explicit identifiers.
8888 So, you can do this:
8890 # My header
8892 Link to [My header].
8893 Another link to [it][My header].
8895 Closes #691.
8897 * LaTeX reader:
8899 + Command macros now work everywhere, including non-math.
8900 Environment macros still not supported.
8901 + `\input` now works, as well as `\include`. TEXINPUTS is used.
8902 Pandoc looks recursively into included files for more included files.
8904 [behavior changes]
8906 * The Markdown reader no longer puts the text of autolinks in a
8907 `Code` inline. This means that autolinks will no longer appear
8908 in a monospace font.
8910 * The character `/` can now appear in markdown citation keys.
8912 * HTML blocks in strict_markdown are no longer required to begin
8913 at the left margin. Technically this is required, according to
8914 the markdown syntax document, but `Markdown.pl` and other markdown
8915 processors are more liberal.
8917 * The `-V` option has been changed so that if there are duplicate
8918 variables, those specified later on the command line take precedence.
8920 * Tight lists now work in LaTeX and ConTeXt output.
8922 * The LaTeX writer no longer relien on the `enumerate` package.
8923 Instead, it uses standard LaTeX commands to change the list numbering
8924 style.
8926 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
8927 tables to be split over page boundaries.
8929 * The RST writer now uses a line block to render paragraphs containing
8930 linebreaks (which previously weren't supported at all).
8932 * The markdown writer now applies the `--id-prefix` to footnote IDs.
8933 Closes #614.
8935 * The plain writer no longer uses backslash-escaped line breaks
8936 (which are not very "plain").
8938 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
8939 Read bytestring and use `Text`'s decodeUtf8 instead of using
8940 `System.IO.hGetContents`. This way you get a message saying
8941 "invalid UTF-8 stream" instead of "invalid byte sequence."
8942 You are also told which byte caused the problem.
8944 * Docx, ODT, and EPUB writers now download images specified by a URL
8945 instead of skipping them or raising an error.
8947 * EPUB writer:
8949 + The default CSS now left-aligns headers by default, instead of
8950 centering. This is more consistent with the rest of the writers.
8951 + A proper multi-level table of contents is now used in `toc.ncx`.
8952 There is no longer a subsidiary table of contents at the beginning
8953 of each chapter.
8954 + Code highlighting now works by default.
8955 + Section divs are used by default for better semantic markup.
8956 + The title is used instead of "Title Page" in the table of contents.
8957 Otherwise we have a hard-coded English string, which looks
8958 strange in ebooks written in other languages. Closes #572.
8960 * HTML writer:
8962 + Put mathjax in span with class "math". Closes #562.
8963 + Put citations in a span with class "citation." In HTML5, also include
8964 a `data-cite` attribute with a space-separated list of citation
8965 keys.
8967 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
8968 This treats both `\r\n` and `\n` as `\n` on input, no matter
8969 what platform we're running on.
8971 * Citation processing is now done in the Markdown and LaTeX
8972 readers, not in `pandoc.hs`. This makes it easier for library users
8973 to use citations.
8975 [template changes]
8977 * HTML: Added css to template to preserve spaces in `<code>` tags.
8978 Thanks to Dirk Laurie.
8980 * Beamer: Remove English-centric strings in section pages.
8981 Section pages used to have "Section" and a number as well as the
8982 section title. Now they just have the title. Similarly for part
8983 and subsection. Closes #566.
8985 * LaTeX, ConTeXt: Added papersize variable.
8987 * LaTeX, Beamer templates: Use longtable instead of ctable.
8989 * LaTeX, Beamer templates: Don't require 'float' package for tables.
8990 We don't actually seem to use the '[H]' option.
8992 * LaTeX: Use `upquote` package if it is available. This fixes
8993 straight quotes in verbatim environments.
8995 * Markdown, plain: Fixed titleblock so it is just a single string.
8996 Previously separate title, author, and date variables were used,
8997 but this didn't allow different kinds of title blocks.
8999 * EPUB:
9001 + Rationalized templates. Previously there were three different
9002 templates involved in epub production. There is now just one
9003 template, `default.epub` or `default.epub3`. It can now be
9004 overridden using `--template`, just like other templates.
9005 The titlepage is now folded into the default template.
9006 A `titlepage` variable selects it.
9007 + UTF-8, lang tag, meta tags, title element.
9009 * Added scale-to-width feature to beamer template
9011 [API changes]
9013 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
9014 Previously header identifers were autogenerated by the writers.
9015 Now they are added in the readers (either automatically or explicitly).
9017 * `Text.Pandoc.Builder`:
9019 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
9020 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
9021 custom Monoid instances for `Many Inline` and `Many Block. This
9022 allows `Many` to be made an instance of `Foldable` and `Traversable`.
9023 + The old `Listable` class has been removed.
9024 + The module now exports `isNull`, `toList`, `fromList`.
9025 + The old `Read` and `Show` instances have been removed; derived
9026 instances are now used.
9027 + Added `headerWith`.
9029 * The readers now take a `ReaderOptions` rather than a `ParserState`
9030 as a parameter. Indeed, not all parsers use the `ParserState` type;
9031 some have a custom state. The motivation for this change was to separate
9032 user-specifiable options from the accounting functions of parser state.
9034 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
9035 formerly in `Text.Pandoc.Shared`, and its associated
9036 data types. It also includes a new type `ReaderOptions`, which
9037 contains many options formerly in `ParserState`, and its associated
9038 data types:
9040 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
9041 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
9042 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
9043 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
9044 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
9045 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
9046 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
9047 + `ParserState.stateIndentedCodeClasses` ->
9048 `ReaderOptions.readerIndentedCodeClasses`.
9049 + Added `ReaderOptions.readerCitationStyle`.
9051 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
9052 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
9053 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
9054 been renamed `writerEpubMetadata` for consistency.
9056 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
9057 longer stylesheet, fonts, reference files as separate parameters.
9059 * Removed `writerLiterateHaskell` from `WriterOptions`, and
9060 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
9061 by an extension (`Ext_literate_haskell`).
9063 * Removed deprecated `writerXeTeX`.
9065 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
9066 Strict is now handled through extensions.
9068 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
9069 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
9070 and `multimarkdownExtensions`, as well as the `Extensions` type.
9072 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
9073 `readMediaWiki`.
9075 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
9076 (thanks to Sergey Astanin).
9078 * `Text.Pandoc`:
9080 + Added `getReader`, `getWriter` to `Text.Pandoc`.
9081 + `writers` is now an association list `(String, Writer)`.
9082 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
9083 an `IOByteStringWriter`. ALL writers are now in the 'writers'
9084 list, including the binary writers and FB2 writer. This allows
9085 code in `pandoc.hs` to be simplified.
9086 + Changed type of `readers`, so all readers are in IO.
9087 Users who want pure readers can still get them form the reader
9088 modules; this just affects the function `getReader` that looks up
9089 a reader based on the format name. The point of this change is to
9090 make it possible to print warnings from the parser.
9092 * `Text.Pandoc.Parsing`:
9094 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
9095 No other module directly imports Parsec. This will make it easier
9096 to change the parsing backend in the future, if we want to.
9097 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
9098 + Export the type synonym `Parser`.
9099 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
9100 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
9101 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
9102 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
9103 + `ParserState` is no longer an instance of `Show`.
9104 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
9105 + Generalized type of `withQuoteContext`.
9106 + Added `guardEnabled`, `guardDisabled`, `getOption`.
9107 + Removed `failIfStrict`.
9108 + `lookupKeySrc` and `fromKey` are no longer exported.
9110 * `Data.Default` instances are now provided for `ReaderOptions`,
9111 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
9112 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
9113 of `defaultWriterOptions` (which is still defined). Closes #546.
9115 * `Text.Pandoc.Shared`:
9117 + Added `safeRead`.
9118 + Renamed `removedLeadingTrailingSpace` to `trim`,
9119 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
9120 + Count `\r` as space in `trim` functions.
9121 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
9122 to `Shared`.
9123 + Removed `failUnlessLHS`.
9124 + Export `compactify'`, formerly in Markdown reader.
9125 + Export `isTightList`.
9126 + Do not export `findDataFile`.
9127 + `readDataFile` now returns a strict ByteString.
9128 + Export `readDataFileUTF8` which returns a String, like the
9129 old `readDataFile`.
9130 + Export `fetchItem` and `openURL`.
9132 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
9133 Removed `readImageSize`.
9135 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
9136 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
9137 `fromStringLazy`.
9139 * `Text.Pandoc.UTF8` is now an exposed module.
9141 * `Text.Pandoc.Biblio`:
9143 + csl parameter now a `String` rather than a `FilePath`.
9144 + Changed type of `processBiblio`. It is no longer in the IO monad.
9145 It now takes a `Maybe Style` argument rather than parameters for CSL
9146 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
9147 the style file and add abbreviations.)
9149 * Markdown reader now exports `readMarkdownWithWarnings`.
9151 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
9152 `rtfEmbedImage`.
9154 [bug fixes]
9156 * Make `--ascii` work properly with `--self-contained`. Closes #568.
9158 * Markdown reader:
9160 + Fixed link parser to avoid exponential slowdowns. Closes #620.
9161 Previously the parser would hang on input like this:
9163 [[[[[[[[[[[[[[[[[[hi
9165 We fixed this by making the link parser parser characters
9166 between balanced brackets (skipping brackets in inline code spans),
9167 then parsing the result as an inline list. One change is that
9169 [hi *there]* bud](/url)
9171 is now no longer parsed as a link. But in this respect pandoc behaved
9172 differently from most other implementations anyway, so that seems okay.
9174 + Look for raw html/latex blocks before tables.
9175 Otherwise the following gets parsed as a table:
9177 \begin{code}
9178 --------------
9179 -- My comment.
9180 \end{code}
9182 Closes #578.
9184 * RST reader:
9186 + Added support for `:target:` on `.. image::` blocks
9187 and substitutions.
9188 + Field list fixes:
9190 - Fixed field lists items with body beginning after a new line
9191 (Denis Laxalde).
9192 - Allow any char but ':' in names of field lists in RST reader
9193 (Denis Laxalde).
9194 - Don't allow line breaks in field names.
9195 - Require whitespace after field list field names.
9196 - Don't create empty definition list for metadata field lists.
9197 Previously a field list consisting only of metadata fields (author,
9198 title, date) would be parsed as an empty DefinitionList, which is
9199 not legal in LaTeX and not needed in any format.
9201 + Don't recognize inline-markup starts inside words.
9202 For example, `2*2 = 4*1` should not contain an emphasized
9203 section. Added test case for "Literal symbols". Closes #569.
9204 + Allow dashes as separator in simple tables. Closes #555.
9205 + Added support for `container`, `compound`, `epigraph`,
9206 `rubric`, `highlights`, `pull-quote`.
9207 + Added support for `.. code::`.
9208 + Made directive labels case-insensitive.
9209 + Removed requirement that directives begin at left margin.
9210 This was (correctly) not in earlier releases; docutils doesn't
9211 make the requirement.
9212 + Added support for `replace::` and `unicode::` substitutions.
9213 + Ignore unknown interpreted roles.
9214 + Renamed image parser to `subst`, since it now handles all
9215 substitution references.
9217 * Textile reader:
9219 + Allow newlines before pipes in table. Closes #654.
9220 + Fixed bug with list items containing line breaks.
9221 Now pandoc correctly handles hard line breaks inside list items.
9222 Previously they broke list parsing.
9223 + Implemented comment blocks.
9224 + Fixed bug affected words ending in hyphen.
9225 + Properly handle links with surrounding brackets.
9226 Square brackets need to be used when the link isn't surrounded by
9227 spaces or punctuation, or when the URL ending may be ambiguous.
9228 Closes #564.
9229 + Removed nullBlock. Better to know about parsing problems than
9230 to skip stuff when we get stuck.
9231 + Allow ID attributes on headers.
9232 + Textile reader: Avoid parsing dashes as strikeout.
9233 Previously the input
9235 text--
9236 text--
9237 text--
9238 text--
9240 would be parsed with strikeouts rather than dashes. This fixes
9241 the problem by requiring that a strikeout delimiting - not be
9242 followed by a -. Closes #631.
9243 + Expanded list of `stringBreakers`.
9244 This fixes a bug on input like "(_hello_)" which should
9245 be a parenthesized emphasized "hello".
9246 The new list is taken from the PHP source of textile 2.4.
9247 + Fixed autolinks. Previously the textile reader and writer
9248 incorrectly implented RST-style autolinks for URLs and email
9249 addresses. This has been fixed. Now an autolink is done this way:
9250 `"$":http://myurl.com`.
9251 + Fixed footnotes bug in textile. This affected notes occuring
9252 before punctuation, e.g. `foo[1].`. Closes #518.
9254 * LaTeX reader:
9256 + Better handling of citation commands.
9257 + Better handling of `\noindent`.
9258 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
9259 Closes #622.
9260 + Made `rawLaTeXInline` try to parse block commands as well. This
9261 is usually what we want, given how `rawLaTeXInline` is used in
9262 the markdown and textile readers. If a block-level LaTeX command
9263 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
9264 we can treat it as raw inline LaTeX.
9265 + Handle \slash command. Closes #605.
9266 + Basic `\enquote` support.
9267 + Fixed parsing of paragraphs beginning with a group. Closes #606.
9268 + Use curly quotes for bare straight quotes.
9269 + Support obeylines environment. Closes #604.
9270 + Guard against "begin", "end" in inlineCommand and
9271 blockCommand.
9272 + Better error messages for environments. Now it should tell you that
9273 it was looking for \end{env}, instead of giving "unknown parse error."
9275 * HTML reader:
9277 + Added HTML 5 tags to list of block-level tags.
9278 + HTML reader: Fixed bug in `htmlBalanced`, which
9279 caused hangs in parsing certain markdown input using
9280 strict mode.
9281 + Parse `<q>` as `Quoted DoubleQuote`.
9282 + Handle nested `<q>` tags properly.
9283 + Modified `htmlTag` for fewer false positives.
9284 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
9285 This makes it more useful in the wikimedia and markdown parsers.
9287 * DocBook reader: Support title in "figure" element. Closes #650.
9289 * MediaWiki writer:
9291 + Remove newline after `<br/>` in translation of `LineBreak`
9292 There's no particular need for a newline (other than making the
9293 generated MediaWiki source look nice to a human), and in fact
9294 sometimes it is incorrect: in particular, inside an enumeration, list
9295 items cannot have embedded newline characters. (Brent Yorgey)
9296 + Use `<code>` not `<tt>` for Code.
9298 * Man writer: Escape `-` as `\-`.
9299 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
9300 signs. That is preferable for use with command-line options. See
9301 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
9302 to Andrea Bolognani for bringing the issue to our attention.
9304 * RST writer:
9306 + Improved line block output. Use nonbreaking spaces for
9307 initial indent (otherwise lost in HTML and LaTeX).
9308 Allow multiple paragraphs in a single line block.
9309 Allow soft breaks w continuations in line blocks.
9310 + Properly handle images with no alt text. Closes #678.
9311 + Fixed bug with links with duplicate text. We now (a) use anonymous
9312 links for links with inline URLs, and (b) use an inline link instead
9313 of a reference link if the reference link would require a label that
9314 has already been used for a different link. Closes #511.
9315 + Fixed hyperlinked images. Closes #611. Use `:target:`
9316 field when you have a simple linked image.
9317 + Don't add `:align: center` to figures.
9319 * Texinfo writer: Fixed internal cross-references.
9320 Now we insert anchors after each header, and use `@ref` instead of `@uref`
9321 for links. Commas are now escaped as `@comma{}` only when needed;
9322 previously all commas were escaped. (This change is needed, in part,
9323 because `@ref` commands must be followed by a real comma or period.) Also
9324 insert a blank line in from of `@verbatim` environments.
9326 * DocBook writer:
9328 + Made --id-prefix work in DocBook as well as HTML.
9329 Closes #607.
9330 + Don't include empty captions in figures. Closes #581.
9332 * LaTeX writer:
9334 + Use `\hspace*` for nonbreaking space after line break,
9335 since `~` spaces after a line break are just ignored.
9336 Closes #687.
9337 + Don't escape `_` in URLs or hyperref identifiers.
9338 + Properly escape strings inside \url{}. Closes #576.
9339 + Use `[fragile]` only for slides containing code rendered
9340 using listings. Closes #649.
9341 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
9342 highlighting-kate's macros, which redefine `|` as a short verbatim
9343 delimiter. Thanks to Björn Peemöller for raising this issue.
9344 + Use minipage rather than parbox for block containers in tables.
9345 This allows verbatim code to be included in grid tables.
9346 Closes #663.
9347 + Prevent paragraphs containing only linebreaks or spaces.
9349 * HTML writer:
9351 + Included `highlighting-css` for code spans, too.
9352 Previously it was only included if used in a code block. Closes #653.
9353 + Improved line breaks with `<dd>` tags. We now put a newline between
9354 `</dd>` and `<dd>` when there are multiple definitions.
9355 + Changed mathjax cdn url so it doesn't use https. (This caused
9356 problems when used with `--self-contained`.) See #609.
9358 * EPUB writer:
9360 + `--number-sections` now works properly.
9361 + Don't strip meta and link elements in epub metadata.
9362 Patch from aberrancy. Closes #589.
9363 + Fixed a couple validation bugs.
9364 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
9365 of chapters in some readers, which apparently sort ch2 after ch10.
9366 Closes #610.
9368 * ODT writer: properly set title property (Arlo O'Keeffe).
9370 * Docx writer:
9372 + Fixed bug with nested lists. Previously a list like
9374 1. one
9375 - a
9376 - b
9377 2. two
9379 would come out with a bullet instead of "2."
9380 Thanks to Russell Allen for reporting the bug.
9381 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
9382 This seems to fix a problem viewing pandoc-generated
9383 docx files in LibreOffice.
9384 + Use integer ids for bookmarks. Closes #626.
9385 + Added nsid to abstractNum elements. This helps when merging
9386 word documents with numbered or bulleted lists. Closes #627.
9387 + Use separate footnotes.xml for notes.
9388 This seems to help LibreOffice convert the file, even though
9389 it was valid docx before. Closes #637.
9390 + Use rIdNN identifiers for r:embed in images.
9391 + Avoid reading image files again when we've already processed them.
9392 + Fixed typo in `referenc.docx` that prevented image captions from
9393 working. Thanks to Huashan Chen.
9395 * `Text.Pandoc.Parsing`:
9397 + Fixed bug in `withRaw`, which didn't correctly handle the case
9398 where nothing is parsed.
9399 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
9400 though it still doesn't implement quoted strings in email addresses.
9401 + Revised URI parser. It now allows many more schemes, allows
9402 uppercase URIs, and better handles trailing punctuation and
9403 trailing slashes in bare URIs. Added many tests.
9404 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
9405 etc. parse properly. Formerly we had some English-centric heuristics,
9406 but they are no longer needed. Closes #698.
9408 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
9409 This fixes bug with Chinese commas in markdown and reST tables, and
9410 a bug that caused combining characters to be dropped.
9412 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
9414 * `Text.Pandoc.Biblio`:
9416 + Run `mvPunc` and `deNote` on metadata too.
9417 This fixed a bug with notes on titles using footnote styles.
9418 + Fixed bug in fetching CSL files from CSL data directory.
9420 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
9421 is provided. It should be the URL up to the path.
9423 * Fixed/simplified diff output for tests.
9424 Biblio: Make sure mvPunc and deNote run on metadata too.
9425 This fixed a bug with notes on titles using footnote styles.
9427 [under the hood improvements]
9429 * We no longer depend on `utf8-string`. Instead we use functions
9430 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
9432 * Use `safeRead` instead of using `reads` directly (various modules).
9434 * "Implicit figures" (images alone in a paragraph) are now handled
9435 differently. The markdown reader gives their titles the prefix `fig:`; the
9436 writers look for this before treating the image as a figure. Though this
9437 is a bit of a hack, it has two advantages: (i) implicit figures can be
9438 limited to the markdown reader, and (ii) they can be deactivated by turning
9439 off the `implicit_figures` extension.
9441 * `catch` from `Control.Exception` is now used instead of the
9442 old Preface `catch`.
9444 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
9445 and `oneOfStrings` (which is now non-backtracking).
9447 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
9448 Now citeproc-hs is fixed upstream, so this is no longer needed.
9449 Closes #531.
9451 * Textile reader: Improved speed of `hyphenedWords`.
9452 This speeds up the textile reader by about a factor of 4.
9454 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
9455 better performance, and automatic normalization.
9457 * Major rewrite of markdown reader:
9459 + Use `Text.Pandoc.Builder` instead of lists. This also
9460 means that everything is normalized automatically.
9461 + Move to a one-pass parsing strategy, returning values in the reader
9462 monad, which are then run (at the end of parsing) against the final
9463 parser state.
9465 * In HTML writer, we now use `toHtml` instead of pre-escaping.
9466 We work around the problem that blaze-html unnecessarily escapes `'`
9467 by pre-escaping just the `'` characters, instead of the whole string.
9468 If blaze-html later stops escaping `'` characters, we can simplify
9469 `strToHtml` to `toHtml`. Closes #629.
9471 * Moved code for embedding images in RTFs from `pandoc.hs` to the
9472 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
9474 * Moved citation processing from `pandoc.hs` into the readers.
9475 This makes things more convenient for library users.
9477 * The man pages are now built by an executable `make-pandoc-man-pages`,
9478 which has its own stanza in the cabal file so that dependencies can be
9479 handled by Cabal. Special treatment in `Setup.hs` ensures that this
9480 executable never gets installed; it is only used to create the man pages.
9482 * The cabal file has been modified so that the pandoc library is used
9483 in building the pandoc executable. (This required moving `pandoc.hs`
9484 from `src` to `.`.) This cuts compile time in half.
9486 * `-O2` is no longer used in building pandoc. The performance improvement
9487 it yields is so slight that it is not worth it. (Measured with
9488 benchmarks on ghc 7.4.)
9490 * The `executable` and `library` flags have been removed.
9492 * `-threaded` has been removed from ghc-options.
9494 * Version bounds of dependencies have been raised, and the
9495 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
9496 GHC 7.6.
9498 * We now require base >= 4.2.
9500 * Integrated the benchmark program into cabal. One can now do:
9502 cabal configure --enable-benchmarks && cabal build
9503 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
9505 The benchmark now uses README + testsuite, so benchmark results
9506 from older versions aren't comparable.
9508 * Integrated test suite with cabal.
9509 To run tests, configure with `--enable-tests`, then `cabal test`.
9510 You can specify particular tests using `--test-options='-t markdown'`.
9511 No output is shown unless tests fail. The Haskell test modules
9512 have been moved from `src/` to `tests/`.
9514 * Moved all data files and templates to the `data/` subdirectory.
9516 * Added an `embed_data_files` cabal flag. This causes all
9517 data files to be embedded in the binary, so that the binary
9518 is self-sufficient and can be relocated anywhere, copied on
9519 a USB key, etc. The Windows installer now uses this.
9520 (Since we no longer have the option to build the executable
9521 without the library, this is the only way to get a relocatable
9522 binary on Windows.)
9524 * Removed pcre3.dll from windows package.
9525 It isn't needed unless highlighting-kate is compilled with the
9526 `pcre-light` flag. By default, regex-prce-builtin is used.
9529pandoc (1.9.4.2)
9531 * Don't encode/decode file paths if base >= 4.4.
9532 Prior to base 4.4, filepaths and command line arguments were treated
9533 as unencoded lists of bytes, not unicode strings, so we had to work
9534 around that by encoding and decoding them. This commit adds CPP
9535 checks for the base version that intelligibly enable encoding/decoding
9536 when needed. Fixes a bug with multilingual filenames when pandoc was
9537 compiled with ghc 7.4 (#540).
9539 * Don't generate an empty H1 after hrule slide breaks.
9540 We now use a slide-level header with contents `[Str "\0"]` to mark
9541 an hrule break. This avoids creation of an empty H1 in these
9542 contexts. Closes #484.
9544 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
9546 * In make_osx_package.sh, ensure citeproc-hs is built with the
9547 embed_data_files flag.
9549 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
9551 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
9552 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
9554 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
9555 Closes #535.
9557 * Added webm to mime types. Closes #543.
9559 * Added some missing exports and tests to the cabal file
9560 (Alexander V Vershilov).
9562 * Compile with `-rtsopts` and `-threaded` by default.
9564pandoc (1.9.4.1)
9566 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
9568 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
9569 variables. Make TOC links black.
9571 * LaTeX template improvements.
9573 + Don't print date unless one is given explicitly in the document.
9574 + Simplified templates.
9575 + Use fontenc [T1] by default, and lmodern.
9576 + Use microtype if available.
9578 * Biblio:
9580 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
9581 Motivation: `@item1 [50]` should be as close as possible to
9582 `[@item1, 50]`.
9583 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
9584 beginning with a citation to be empty. Closes #531.
9586 * Fixed documentation on mixed lists. Closes #533.
9588pandoc (1.9.4)
9590 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
9591 footnotes and captions. We now handle note citations by inserting
9592 footnotes during initial citation processing, and doing a separate
9593 pass later to remove notes inside notes.
9595 * Added 'zenburn' highlight style from highlighting-kate.
9597 * Added Slideous writer. Slideous is an HTML + javascript slide show
9598 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
9600 * LaTeX writer:
9602 + Ensure we don't have extra blank lines at ends of cells.
9603 This can cause LaTeX errors, as they are interpreted as new paragraphs.
9604 + More consistent interblock spacing.
9605 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
9606 code in LaTeX. Closes #527.
9607 + Ensure that a Verbatim at the end of a footnote is followed by
9608 a newline. (Fixes a regression in the previous version.)
9609 + In default template, use black for internal links and TOC.
9610 Added commented-out code to use footnotes for links, as would
9611 be suitable in print output.
9613 * Beamer writer: When `--incremental` is used, lists inside
9614 a block quote should appear all at once. (This makes Beamer
9615 output consistent with the HTML slide show formats.)
9617 * ConTeXt writer:
9619 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
9620 to avoid gobbling spaces after the `%` sign.
9621 + Ensure space after `\stopformula`.
9623 * Markdown writer:
9625 + Use `:` form instead of `~` in definition lists, for better
9626 compatibility with other markdown implementations.
9627 + Don't wrap the term, because it breaks definition lists.
9628 + Use a nonzero space to prevent false recognition
9629 of list marker in ordered lists. Closes #516.
9631 * Org writer: Add space before language name. Closes #523.
9633 * Docx writer: Simplified bullet characters so they work properly
9634 with Word 2007. Closes #520.
9636 * LaTeX reader: Support `\centerline`.
9638 * RST reader: handle figures. Closes #522.
9640 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
9641 (Paul Rivier)
9643pandoc (1.9.3)
9645 * Fixed bug in `fromEntities`. The previous version would turn
9646 `hi & low you know;` into `hi &`.
9648 * HTML reader:
9650 + Don't skip nonbreaking spaces.
9651 Previously a paragraph containing just `&nbsp;` would be rendered
9652 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
9653 + Support `<col>` and `<caption>` in tables. Closes #486.
9655 * Markdown reader:
9657 + Don't recognize references inside delimited code blocks.
9658 + Allow list items to begin with lists.
9660 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
9662 * LaTeX reader:
9664 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
9665 + Control sequences can't be followed by a letter.
9666 This fixes a bug where `\begingroup` was parsed as `\begin`
9667 followed by `group`.
9668 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
9669 + Make `\label` and `\ref` sensitive to `--parse-raw`.
9670 If `--parse-raw` is selected, these will be parsed as raw latex
9671 inlines, rather than bracketed text.
9672 + Don't crash on unknown block commands (like `\vspace{10pt}`)
9673 inside `\author`; just skip them. Closes #505.
9675 * Textile reader:
9677 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
9678 + Added support for LaTeX blocks and inlines (Paul Rivier).
9679 + Better conformance to RedCloth inline parsing (Paul Rivier).
9680 + Parse '+text+' as emphasized (should be underlined, but this
9681 is better than leaving literal plus characters in the output.
9683 * Docx writer: Fixed multi-paragraph list items. Previously they each
9684 got a list marker. Closes #457.
9686 * LaTeX writer:
9688 + Added `--no-tex-ligatures` option to avoid replacing
9689 quotation marks and dashes with TeX ligatures.
9690 + Use `fixltx2e` package to provide '\textsubscript'.
9691 + Improve spacing around LaTeX block environments:
9692 quote, verbatim, itemize, description, enumerate.
9693 Closes #502.
9694 + Use blue instead of pink for URL links in latex/pdf output.
9696 * ConTeXt writer: Fixed escaping of `%`.
9697 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
9698 Inside URLs, `%` needs to be escaped as `\%`
9699 Thanks to jmarca and adityam for the fix. Closes #492.
9701 * Texinfo writer: Escape special characters in node titles.
9702 This fixes a problem pointed out by Joost Kremers. Pandoc used
9703 to escape an '@' in a chapter title, but not in the corresponding
9704 node title, leading to invalid texinfo.
9706 * Fixed document encoding in texinfo template.
9707 Resolves Debian Bug #667816.
9709 * Markdown writer:
9711 + Don't force delimited code blocks to be flush left.
9712 Fixes bug with delimited code blocks inside lists etc.
9713 + Escape `<` and `$`.
9715 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
9716 Previously we used `\href{\#ident}{text}`, which didn't work on
9717 all systems. Thanks to Dirk Laurie.
9719 * RST writer: Don't wrap link references. Closes #487.
9721 * Updated to use latest versions of blaze-html, mtl.
9724pandoc (1.9.2)
9726 * LaTeX reader:
9728 + Made `lstlisting` work as a proper verbatim environment.
9729 + Fixed bug parsing LaTeX tables with one column.
9731 * LaTeX writer:
9733 + Use `{}` around `ctable` caption, so that formatting can be used.
9734 + Don't require eurosym package unless document has a €.
9736 * LaTeX template: Added variables for `geometry`, `romanfont`,
9737 `sansfont`, `mathfont`, `mainfont` so users can more easily
9738 customize fonts.
9740 * PDF writer:
9742 + Run latex engine at least two times, to ensure
9743 that PDFs will have hyperlinked bookmarks.
9744 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
9746 * Texinfo writer: retain directories in image paths. (Peter Wang)
9748 * RST writer: Better handling of inline formatting, in accord
9749 with docutils' "inline markup recognition rules" (though we don't
9750 implement the unicode rules fully). Now `hi*there*hi` gets
9751 rendered properly as `hi\ *there*\ hi`, and unnecessary
9752 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
9754 * RST reader:
9756 + Parse `\ ` as null, not escaped space.
9757 + Allow `` :math:`...` `` even when not followed by blank
9758 or `\`. This does not implement the complex rule docutils follows,
9759 but it should be good enough for most purposes.
9760 + Add support for the rST default-role directive. (Greg Maslov)
9762 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
9763 (Greg Maslov)
9765 * Markdown reader: Properly handle citations nested in other inline
9766 elements.
9768 * Markdown writer: don't replace empty alt in image with "image".
9770 * DZSlides: Updated template.html and styles in default template.
9771 Removed bizarre CSS for `q` in dzslides template.
9773 * Avoid repeated `id` attribute in section and header in HTML slides.
9775 * README improvements: new instructions on internal links,
9776 removed misleading note on reST math.
9778 * Build system:
9780 + Fixed Windows installer so that dzslides works.
9781 + Removed stripansi.sh.
9782 + Added .travis.yml for Travis continuous integration support..
9783 + Fixed upper bound for zlib (Sergei Trofimovich).
9784 + Fixed upper bound for test-framework.
9785 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
9787pandoc (1.9.1.2)
9789 * Added `beamer+lhs` as output format.
9791 * Don't escape `<` in `<style>` tags with `--self-contained`.
9792 This fixes a bug which prevented highlighting from working
9793 when using `--self-contained`.
9795 * PDF: run latex engine three times if `--toc` specified.
9796 This fixes page numbers in the table of contents.
9798 * Docx writer: Added TableNormal style to tables.
9800 * LaTeX math environment fixes. `aligned` is now used instead of
9801 the nonexistent `aligned*`. `multline` instead of the nonexistent
9802 `multiline`.
9804 * LaTeX writer: Use `\textasciitilde` for literal `~`.
9806 * HTML writer: Don't escape contents of EQ tags with --gladtex.
9807 This fixes a regression from 1.8.
9809 * Use `<q>` tags for Quoted items for HTML5 output.
9810 The quote style can be changed by modifying the template
9811 or including a css file. A default quote style is included.
9813 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
9814 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
9816 * Updated LaTeX template for better language support.
9817 Use `polyglossia` instead of `babel` with xetex.
9818 Set `lang` as documentclass option.
9819 `\setmainlanguage` will use the last of a comma-separated
9820 list of languages. Thanks to François Gannaz.
9822 * Fixed default LaTeX template so `\euro` and `€` work. The
9823 `eurosym` package is needed if you are using pdflatex.
9825 * Fixed escaping of period in man writer (thanks to Michael Thompson).
9827 * Fixed list label positions in beamer.
9829 * Set `mainlang` variable in context writer.
9830 This parallels behavior of latex writer. `mainlang` is the last
9831 of a comma-separated list of languages in lang.
9833 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
9835 * Changed `-V` so that you can specify a key without a value.
9836 Such keys get the value `true`.
9838 * Fixed permissions on installed man pages - thanks Magnus Therning.
9840 * Windows installer: require XP or higher. The installer is
9841 now compiled on a Windows 7 machine, which fixes a problem
9842 using citation functions on Windows 7.
9844 * OSX package: Check for 64-bit Intel CPU before installing.
9846pandoc (1.9.1.1)
9848 * Better handling of raw latex environments in markdown. Now
9850 \begin{equation}
9851 a_1
9852 \end{equation}
9854 turns into a raw latex block as expected.
9856 * Improvements to LaTeX reader:
9858 + Skip options after block commands.
9859 + Correctly handle `{\\}` in braced.
9860 + Added a needed 'try'.
9861 + Citations: add `, ` to suffix if it doesn't start with space or
9862 punctuation. Otherwise we get no space between the year and the
9863 suffix in author-date styles.
9865 * Added two needed data files for S5. This fixes a problem with
9866 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
9867 which was no longer being used.
9869 * Fixed some minor problems in `reference.docx`:
9870 name on "Date" style, `xCs` instead of `xIs`.
9872 * Fixed a problem creating docx files using a reference docx
9873 modified using Word. The problem seems to be that Word
9874 modifies `_rels/.rels`, changing the Type of the Relationship to
9875 `docProps/core.xml`. Pandoc now changes this back to the correct
9876 value if it has been altered, fixing the problem.
9878 * Fixed html5 template so it works properly with highlighting.
9880pandoc (1.9.1)
9882 * LaTeX reader:
9884 + Fixed regression in 1.9; properly handle escaped $ in latex math.
9885 + Put LaTeX verse environments in blockquotes.
9887 * Markdown reader:
9889 + Limit nesting of strong/emph. This avoids exponential lookahead
9890 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
9891 + Improved attributes syntax (inn code blocks/spans):
9892 (1) Attributes can contain line breaks. (2) Values in key-value
9893 attributes can be surrounded by either double or single quotes, or
9894 left unquoted if they contain no spaces.
9896 * Don't wrap headers in markdown or RST writers.
9898 * Added `stateMaxNestingLevel` to `ParserState`.
9899 We set this to 6, so you can still have `Emph` inside `Emph`,
9900 just not indefinitely.
9902 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
9904 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
9905 is present.
9907 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
9909pandoc (1.9.0.5)
9911 * Changed cabal file so that build-depends for the test program
9912 are not required unless the tests flag is used.
9914 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
9915 form ligatures (dashes) in code spans.
9917pandoc (1.9.0.4)
9919 * Raised version bound on test-framework to avoid problems
9920 compiling tests on GHC 7.4.1.
9922 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
9923 so citations don't just disappear unless you process with
9924 citeproc. Ignore `\bibliographystyle`, `\nocite`.
9926 * Simplified tex2pdf; it will always run latex twice to
9927 resolve table of contents and hyperrefs.
9929pandoc (1.9.0.3)
9931 * Require Cabal >= 1.10.
9932 * Tweaked cabal file to meet Cabal 1.10 requirements.
9934pandoc (1.9.0.2)
9936 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
9937 ghc 6.12.
9939pandoc (1.9)
9941 [new features]
9943 * Added a Microsoft Word `docx` writer. The writer includes support
9944 for highlighted code and for math (which is converted from TeX to OMML,
9945 Office's native math markup language, using texmath's new OMML module).
9946 A new option `--reference-docx` allows the user to customize the
9947 styles.
9949 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
9951 * Better support for slide shows:
9953 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
9954 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
9956 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
9957 slide presentations.
9959 + New, flexible rules for dividing documents into sections and slides
9960 (see the "Structuring the slide show" in the User's Guide). These
9961 are backward-compatible with the old rules, but they allow slide
9962 shows to be organized into sections and subsections containing
9963 multiple slides.
9965 + A new `--slide-level` option allows users to override defaults
9966 and select a slide level below the first header level with content.
9968 * A new `--self-contained` option produces HTML output that does not
9969 depend on an internet connection or the presence of any external
9970 files. Linked images, CSS, and javascript is downloaded (or fetched
9971 locally) and encoded in `data:` URIs. This is useful for making portable
9972 `HTML slide shows. The --offline` option has been deprecated and is now
9973 `treated as a synonym or --self-contained`.
9975 * Support for PDF output:
9977 + Removed the old `markdown2pdf`.
9978 + `pandoc` can now create PDFs (assuming you have latex and a set of
9979 appropriate packages installed): just specify an output file with the
9980 `.pdf` extension.
9981 + A new option `--latex-engine` allows you to specify `pdflatex`,
9982 `xelatex`, or `lualatex` as the processor.
9984 * Highlighting changes:
9986 + Syntax highlighting is now a standard feature; the `highlighting`
9987 flag is no longer needed when compiling.
9988 + A new `--no-highlight` option allows highlighting to be disabled.
9989 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
9990 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
9991 + A new `--highlight-style` option selects between various highlighting
9992 color themes.
9994 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
9996 * LaTeX `\include` and `\usepackage` commands are now processed,
9997 provided the files are in the working directory.
9999 * EPUB improvements:
10001 + Internal and external links now work in EPUB.
10002 + Raw HTML is allowed.
10003 + New `--epub-embed-font` option.
10004 + Customizable templates for EPUB pages offer more control over
10005 formatting: `epub-page.html`, `epub-coverimage.html`,
10006 `epub-titlepage.html`.
10008 * `--mathml` now works with DocBook.
10010 * Added support for math in RST reader and writer. Inline math uses the
10011 `` :math:`...` `` construct. Display math uses
10013 .. math:: ...
10015 or if the math is multiline,
10017 .. math::
10019 ...
10021 These constructions are now supported now by `rst2latex.py`.
10023 * GitHub syntax for fenced code blocks is supported in pandoc's
10024 markdown. You can now write
10026 ```ruby
10027 x = 2
10028 ```
10030 instead of
10032 ~~~ {.ruby}
10033 x = 2
10034 ~~~~
10036 * Easier scripting: a new `toJsonFilter` function makes it easier to
10037 write Haskell scripts to manipulate the Pandoc AST.
10039 [behavior changes]
10041 * Fixed parsing of consecutive lists in markdown.
10042 Pandoc previously behaved like Markdown.pl for consecutive
10043 lists of different styles. Thus, the following would be parsed
10044 as a single ordered list, rather than an ordered list followed
10045 by an unordered list:
10047 1. one
10048 2. two
10050 - one
10051 - two
10053 This change makes pandoc behave more sensibly, parsing this as
10054 two lists. Any change in list type (ordered/unordered) or in
10055 list number style will trigger a new list. Thus, the following
10056 will also be parsed as two lists:
10058 1. one
10059 2. two
10061 a. one
10062 b. two
10064 Since we regard this as a bug in Markdown.pl, and not something
10065 anyone would ever rely on, we do not preserve the old behavior
10066 even when `--strict` is selected.
10068 * Dashes work differently with `--smart`: `---` is always em-dash,
10069 and `--` is always en-dash. Pandoc no longer tries to guess when
10070 `-` should be en-dash. *Note:* This may change how existing documents
10071 look when processed with pandoc. A new option, `--old-dashes`,
10072 is provided for legacy documents.
10074 * The markdown writer now uses setext headers for levels 1-2.
10075 The old behavior (ATX headers for all levels) can be restored
10076 using the new `--atx-headers` option.
10078 * Links are now allowed in markdown image captions. They are also
10079 allowed in links, but will appear there as regular text. So,
10081 [link with [link](/url)](/url)
10083 will turn into
10085 <p><a href="/url">link with link</a></p>
10087 * Improved handling of citations using `citeproc-hs-0.3.4`.
10088 Added `--citation-abbreviations` option.
10090 * Citation keys can no longer end with a punctuation character.
10091 This means that `@item1.` will be parsed as a citation with key
10092 'item1', followed by a period, instead of a citation with key
10093 'item1.', as was the case previously.
10095 * In HTML output, citations are now put in a span with class `citation`.
10097 * The markdown reader now recognizes DocBook block and inline tags.
10098 It was always possible to include raw DocBook tags in a markdown
10099 document, but now pandoc will be able to distinguish block from
10100 inline tags and behave accordingly. Thus, for example,
10102 <sidebar>
10103 hello
10104 </sidebar>
10106 will not be wrapped in `<para>` tags.
10108 * The LaTeX parser has been completely rewritten; it is now much more
10109 accurate, robust, and extensible. However, there are two important
10110 changes in how it treats unknown LaTeX. (1) Previously, unknown
10111 environments became BlockQuote elements; now, they are treated
10112 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
10113 same as `xyz`. (2) Previously, arguments of unknown commands
10114 were passed through with their braces; now the braces are stripped
10115 off.
10117 * `--smart` is no longer selected automatically with `man` output.
10119 * The deprecated `--xetex` option has been removed.
10121 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
10122 instead. `html5` and `html5+lhs` are now separate output formats.
10124 * Single quotes are no longer escaped in HTML output. They do not
10125 need to be escaped outside of attributes.
10127 * Pandoc will no longer transform leading newlines in code
10128 blocks to `<br/>` tags.
10130 * The ODT writer now sizes images appropriately, using the image
10131 size and DPI information embedded in the image.
10133 * `--standalone` is once again implicitly for a non-text output format
10134 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
10135 and get a standalone ODT file.
10137 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
10138 `<section>`.
10140 * The HTML writer now uses `<del>` for strikeout.
10142 * In HTML output with `--section-divs`, the classes `section` and
10143 `level[1,2,..6]` are put on the `div` tags so they can be styled.
10144 In HTML 5 output with `--section-divs`, the classes
10145 `level[1,2,...6]` are put on `section` tags.
10147 * EPUB writer changes:
10149 + The `lang` variable now sets the language
10150 in the metadata (if it is not set, we default to the locale).
10151 + EPUB: UTF-8 is used rather than decimal entities.
10153 * Added `titleslide` class to title slide in S5 template.
10155 * In HTML, EPUB, and docx metadata, the date is normalized into
10156 YYYY-MM-DD format if possible. (This is required for validation.)
10158 * Attributes in highlighted code blocks are now preserved in HTML.
10159 The container element will have the classes, id, and key-value attributes
10160 you specified in the delimited code block. Previously these were stripped
10161 off.
10163 * The reference backlink in the HTML writer no longer has a special
10164 `footnoteBacklink` class.
10166 * The HTML template has been split into `html` and `html5` templates.
10168 * Author and date are treated more consistently in HTML templates.
10169 Authors are now `<h2>`, date `<h3>`.
10171 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
10173 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
10175 [bug fixes]
10177 * Better support for combining characters and East Asian wide characters
10178 in markdown and reST.
10180 * Better handling of single quotes with `--smart`.
10181 Previously `D'oh l'*aide*` would be parsed with left and right single
10182 quotes instead of apostrophes. This kind of error is now fixed.
10184 * Highlighting: Use `reads` instead of `read` for better error handling.
10185 Fixes crash on `startNum="abc"`.
10187 * Added blank comment after directives in rst template.
10189 * Unescape entities in citation `refId`. The `refId`s coming
10190 from citeproc contain XML numeric entities, and these don't match with the
10191 citation keys parsed by pandoc. Solution is to unescape them.
10193 * HTML reader: Fixed bug parsing tables with both thead and tbody.
10195 * Markdown reader:
10197 + Better handling of escapes in link URLs and titles.
10198 + Fixed backslash escapes in reference links.
10199 + Fixed bug in table/hrule parsing, by checking that the top
10200 line of a table is not followed by a blank line. This bug caused
10201 slowdowns on some files with hrules and tables, as pandoc tried to
10202 interpret the hrules as the tops of multiline tables.
10203 + Fixed bug in code block attribute parser. Previously the ID attribute
10204 got lost if it didn't come first. Now attributes can come in any order.
10206 * RST reader: allow footnotes followed by newline without space characters.
10208 * LaTeX reader:
10210 + Ignore empty groups {}, { }.
10211 + LaTeX reader: Handle \@.
10212 + LaTeX reader: Don't crash on commands like `\itemsep`.
10213 + LaTeX reader: Better handling of letter environments.
10215 * RST writer: Fixed bug involving empty table cells. isSimple was being
10216 calculated in a way that assumed there were no non-empty cells.
10218 * ConTeXt writer:
10220 + Made `--toc` work even without `--number-sections`.
10221 + Escape # in link URLs.
10222 + Use buffering for footnotes containing code blocks.
10223 + Changed 'descr' to 'description', fixed alignment.
10225 * LaTeX writer:
10227 + Escape euro character.
10228 + Don't escape ~ inside href{...}.
10229 + Escape # in href URLs.
10230 + Improved detection of book classes. We now check the
10231 `documentclass` variable, and if that is not set, we look through
10232 the template itself. Also, we have added the KOMA classes scrreprt
10233 and scrbook. You can now make a book using
10234 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
10235 + LHS files now set the "listings" variable, so that the definition
10236 of the `code` environment will be included in the template.
10237 + Links are colored blue by default (this can be changed by
10238 modifying `hyperref` settings in the template).
10239 + Added `lang` variable to LaTeX template.
10241 * HTML writer:
10243 + Fixed bug in HTML template with html5 and mathml.
10244 + Don't use self-closing img, br, hr tags for HTML5.
10245 + Use `<section>` for footnotes if HTML5.
10246 + Update HTML templates to use Content-Style-Type meta tag.
10247 + Use separate variables for meta-date, meta-author.
10248 This makes footnotes work in author and date fields.
10249 + Use 'vertical-align:middle' in WebTeX math for better alignment.
10251 * S5/slidy writer: Make footnotes appear on separate slide at end.
10253 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
10254 META-INF/manifest.xml for ODT files will have everything it needs, so
10255 that ODT files modified by LibreOffice can be used as `--reference-odt`.
10257 * `Text.Pandoc.Templates`: Return empty string for json template.
10259 * `Text.Pandoc.Biblio`:
10261 + Expand citations recursively inside nested inlines.
10262 + Treat `\160` as space when parsing locator and suffix.
10263 This fixes a bug with "p. 33" when `--smart` is used. Previously
10264 the whole "p. 33" would be included in the suffix, with no locator.
10265 + Put whole author-in-text citation in a Cite. Previously just the
10266 date and other info went in the Cite.
10267 + Don't add comma+space to prefix if it ends in punctuation.
10269 * Updated chicago-author-date.csl. The old version did not work
10270 properly for edited volumes with no author.
10272 * EPUB writer:
10274 + Add date to EPUB titlepage and metadata.
10275 + Added TOC identifier in EPUB page template.
10276 + Don't generate superfluous file `cover-image.jpg`.
10278 [under the hood improvements]
10280 * Modified `make_osx_package.sh` to use cabal-dev.
10281 Items are no longer installed as root.
10282 Man pages are zipped and given proper permissions.
10284 * Modified windows installer generater to use cabal-dev.
10286 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
10287 Setup.hs we now invoke 'runghc' in a way that points it to the correct
10288 package databases, instead of always falling back to the default user
10289 package db.
10291 * Updated to work with GHC 7.4.1.
10293 * Removed dependency on old-time.
10295 * Removed dependency on dlist.
10297 * New slidy directory for "self-contained."
10299 * TeXMath writer: Use unicode thin spaces for thin spaces.
10301 * Markdown citations: don't strip off initial space in locator.
10303 [API changes]
10305 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
10306 from the native `Inline` type in pandoc-types. Now we use `Str`
10307 elements with unicode.
10309 * Improvements to `Text.Pandoc.Builder`:
10311 + `Inlines` and `Blocks` are now newtypes (not synonyms for
10312 sequences).
10313 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
10314 and a new `Listable` class, which allows these to be manipulated
10315 to some extent like lists. Monoid append includes automatic
10316 normalization.
10317 + `+++` has been replaced by `<>` (mappend).
10319 * Use blaze-html instead of xhtml for HTML generation.
10320 This changes the type of `writeHtml`.
10322 * `Text.Pandoc.Shared`:
10324 + Added `warn` and `err`.
10325 + Removed `unescapeURI`, modified `escapeURI`.
10326 (See under [behavior changes], above.)
10328 * Changes in URI escaping: Previously the readers escaped URIs by
10329 converting unicode characters to octets and then percent encoding.
10330 Now unicode characters are left as they are, and `escapeURI` only
10331 percent-encodes space characters. This gives more readable
10332 URIs, and works well with modern user agents. URIs are no longer unescaped
10333 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
10335 * New module `Text.Pandoc.SelfContained`.
10337 * New module `Text.Pandoc.Docx`.
10339 * New module `Text.Pandoc.PDF`.
10341 * Added `writerBeamer` to `WriterOptions`.
10343 * Added `normalizeDate` to `Text.Pandoc.Shared`.
10345 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
10346 This is like `splitWithIndices`, but it is sensitive to distinctions
10347 between wide, combining, and regular characters.
10349 * `Text.Pandoc.Pretty`:
10351 + Added `chomp` combinator.
10352 + Added `beforeNonBreak` combinator. This allows you to include
10353 something conditionally on it being before a nonblank.
10354 Used for RST inline math.
10355 + Added `charWidth` function. All characters marked W or F in the unicode
10356 spec EastAsianWidth.txt get width 2.
10357 + Added `realLength`, based on `charWidth`. `realLength` is now
10358 used in calculating offsets.
10360 * New module `Text.Pandoc.Slides`, for common functions for breaking
10361 a document into slides.
10363 * Removed `Text.Pandoc.S5`, which is no longer needed.
10365 * Removed `Text.Pandoc.CharacterReferences`. Moved
10366 `characterReference` to `Text.Pandoc.Parsing`.
10367 `decodeCharacterReferences` is replaced by `fromEntities`
10368 in `Text.Pandoc.XML`.
10370 * Added `Text.Pandoc.ImageSize`. This is intened for use
10371 in `docx` and `odt` writers, so the size and dpi of images
10372 can be calculated.
10374 * Removed `writerAscii` in `WriterOptions`.
10376 * Added `writerHighlight` to `WriterOptions`.
10378 * Added `DZSlides` to `HTMLSlideVariant`.
10380 * `writeEPUB` has a new argument for font files to embed.
10382 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
10383 of whether we're parsing the position immediately after a regular
10384 (non-space, non-symbol) string, which is useful for distinguishing
10385 apostrophes from single quote starts.
10387 * `Text.Pandoc.Parsing`:
10389 + `escaped` now returns a `Char`.
10390 + Removed `charsInBalanced'`, added a character parser as
10391 a parameter of `charsInBalanced`. This is needed for
10392 proper handling of escapes, etc.
10393 + Added `withRaw`.
10395 * Added `toEntities` to `Text.Pandoc.XML`.
10397 * `Text.Pandoc.Readers.LaTeX`:
10399 + Export `handleIncludes`.
10400 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
10402 * Added `ToJsonFilter` class and `toJsonFilter` function to
10403 `Text.Pandoc`, deprecating the old `jsonFilter` function.
10405 * `Text.Pandoc.Highlighting`:
10407 + Removed `highlightHtml`, `defaultHighlightingCss`.
10408 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
10409 key functions from highlighting-kate.
10410 + Changed types of highlighting function. `highlight` returns a
10411 `Maybe`, not an `Either`.
10413pandoc (1.8.2.1)
10415 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
10417 * Relaxed cabal constraints for pandoc-types.
10419 * Adjusted Arbitrary instance to help avoid timeouts in tests.
10421 * Added `Tests.Writers.Markdown` to cabal file.
10423pandoc (1.8.2)
10425 * Added script to produce OS X package.
10427 * Made `templates` directory a git submodule. This should make it
10428 easier for people to revise their custom templates when the default
10429 templates change.
10431 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
10432 **Note:** If you have existing templates in `~/.pandoc/templates`, you
10433 must rename them to conform to the new scheme!
10435 * Fixed smart quotes bug, now handling `'...hi'` properly.
10437 * RST reader:
10439 + Partial support for labeled footnotes.
10440 + Improved accuracy of `simpleReferenceName` parser.
10442 * HTML reader:
10444 + Substitute correct unicode characters for
10445 characters in the 128..159 range, which are often found even in
10446 HTML that purports to be UTF-8.
10448 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
10449 to the title, after a colon and linebreak). Closes #280.
10451 * Leaner `reference.odt`.
10453 * Added unexported module `Text.Pandoc.MIME` for use in
10454 the ODT writer.
10456 * ODT writer: Construct `manifest.xml` based on archive contents.
10457 This fixes a bug in ODTs containing images. Recent versions of
10458 LibreOffice would reject these as corrupt, because `manifest.xml`
10459 did not contain a reference to the image files.
10461 * LaTeX writer:
10463 + Make verbatim environments flush to avoid spurious
10464 blank lines. Closes #277.
10465 + Use `\texttt` and escapes insntead of `\verb!...!`, which
10466 is too fragile (doesn't work in command arguments).
10467 + Use `\enquote{}` for quotes if the template includes
10468 the `csquotes` package. This provides better support for
10469 local quoting styles. (Thanks to Andreas Wagner for the idea.)
10471 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
10472 margin, preventing spurious blank lines.
10474 * Slidy writer:
10476 + Use non-minimized version of `slidy.css` with `--offline`
10477 option, so users can more easily edit it.
10478 + Also fixed a bug in the CSS that prevented proper centering
10479 of title (now reported and fixed upstream).
10481 * S5 writer:
10483 + Replaced `s5/default/slides.js.{comment,packed}` with
10484 new compressed `s5/default/slides.min.js`.
10485 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
10486 when `--offline` is specified. Using inline CSS didn't
10487 work with Chrome or Safari. This fixes offline
10488 S5 on those browsers.
10490 * HTML writer: Removed English title on footnote backlinks.
10491 This is incongrous in non-English documents.
10493 * Docbook writer:
10495 + Use CALS tables. (Some older docbook software does not work
10496 well with XHTML tables.) Closes #77.
10497 + Use `programlisting` tags (instead of `screen`) for code blocks.
10499 * `markdown2pdf`:
10501 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
10502 of `-interaction=batchmode`, which essentially just ignored errors,
10503 leading to bad results. Better to know when something is wrong.
10504 + Fixed issues with non-UTF-8 output of `pdflatex`.
10505 + Better error reporting.
10507 * `--mathjax` now takes an optional URL argument. If it is not
10508 provided, pandoc links directly to the (secure) mathjax CDN,
10509 as now recommended (thanks to dsanson).
10511 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
10512 since the LaTeX writer now produces a file that can be processed by
10513 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
10515 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
10516 to be used to create the PDF.
10518 * If a template specified with `--template` is not found, look for it
10519 in `datadir`. Also, if no extension is provided, supply one based
10520 on the writer. So now you can put your `special.latex` template in
10521 `~/.pandoc/templates`, and use it from any directory via
10522 `pandoc -t latex --template special`.
10524 * Default template improvements:
10526 + HTML: Display author and date after title.
10527 + HTML: Made table of contents more customizable. The container
10528 for the TOC is now in the template, so users can insert a header
10529 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
10530 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
10531 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
10532 hard-coding. If you want to put your slidy files in the slidy
10533 subdirectory, for example, you can do
10534 `pandoc -t slidy -V slidy-url=slidy -s`.
10535 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
10536 & writer). Closes #279.
10537 + LaTeX: Use different `hyperref` options for `xetex`, fixing
10538 problems with unicode bookmarks (thanks to CircleCode).
10539 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
10540 with `inputenc`. This covers fewer characters but is more
10541 robust with other packages, and `ucs` is unmaintained. Users
10542 who need better unicode support should use xelatex or lualatex.
10544pandoc (1.8.1.2)
10546 * Added `--epub-cover-image` option.
10548 * Documented `--biblatex` and `--natbib` options.
10550 * Allow `--section-divs` with slidy output. Resolves Issue #296.
10552 * Disallow notes within notes in reST and markdown.
10553 These previously caused infinite looping and stack overflows.
10554 For example:
10556 [^1]
10558 [^1]: See [^1]
10560 Note references are allowed in reST notes, so this isn't a full
10561 implementation of reST. That can come later. For now we need to
10562 prevent the stack overflows. Partially resolves Issue #297.
10564 * EPUB writer: Allow non-plain math methods.
10566 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
10567 `(@item1; @item2)` because the final paren was being parsed as part of
10568 the item key.
10570 * Changed URI parser so it doesn't include trailing punctuation.
10571 So, in RST, `http://google.com.` should be parsed as a link followed by a
10572 period. The parser is smart enough to recognize balanced parentheses, as
10573 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
10575 * Markdown+lhs reader: Require space after inverse bird tracks, so that
10576 HTML tags can be used freely at the left margin of a markdown+lhs document.
10577 Thanks to Conal Elliot for the suggestion.
10579 * Markdown reader:
10581 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
10582 + Fixed bug in footnote order (reported by CircleCode).
10584 * RST reader:
10585 + Fixed bug in in field lists with multi-line items at the
10586 end of the list.
10587 + Added parentheses to RST `specialChars`, so
10588 `(http://google.com)` will be parsed as a link in parens.
10589 Resolves Issue #291.
10590 + Allow `|` followed by newline in RST line block.
10592 * LaTeX reader:
10593 + Support `\dots`.
10594 + Gobble option & space after linebreak `\\[10pt]`.
10596 * Textile reader:
10597 + Make it possible to have colons after links. (qerub)
10598 + Make it possible to have colons after links. (Christoffer Sawicki)
10600 * HTML reader:
10601 + Skip spaces after `<b>`, `<emph>`, etc.
10602 + Handle tbody, thead in simple tables. Closes #274.
10603 + Implicit `Para`s instead of `Plains` in some contexts.
10605 * OpenDocument writer: Use special `First paragraph` style for
10606 first paragraph after most non-paragraph blocks. This allows users to
10607 specify e.g. that only paragraphs after the first paragraph of a block are
10608 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
10610 * LaTeX writer: use `deVerb` on table and picture captions.
10611 Otherwise LaTeX complains about `\verb` inside command argument.
10612 Thanks to bbanier for reporting the bug.
10614 * Markdown writer: Insert HTML comment btw list and indented code block.
10615 This prevents the code block from being interpreted as part of the list.
10617 * EPUB writer: Add a meta element specify the cover.
10618 Some EPUB e-readers, such as the Nook, require a meta element inside the
10619 OPF metadata block to ensure the cover image is properly displayed.
10620 (Kelsey Hightower)
10622 * HTML writer: Use embed tag for images with non-image extensions.
10623 (e.g. PDFs). Closes #264.
10625 * LaTeX writer: Improved tables.
10627 + More space between lines, top-align cells.
10628 + Use ctable package, which allows footnotes and
10629 provides additional options.
10630 + Made cell alignments work in multiline tables.
10631 + Closes #271, #272.
10633 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
10634 Also do this when copying image files into EPUBs and ODTs.
10635 Closes #263.
10637 * Changed to github issue tracker.
10639 * Added failing emph/strong markdown test case due to Perry Wagle.
10641 * Slidy improvements:
10642 + Updated to use Slidy2.
10643 + Fixed bug, unclosed div tag.
10644 + Added `duration` variable in template.
10645 Setting this activates the timer.
10646 + Use 'titlepage' instead of 'cover' for title div.
10648pandoc (1.8.1.1)
10650 * `markdown2pdf`: Removed some debugging lines accidentally included
10651 in the 1.8.1 release. With those lines, the temp directory is created
10652 in the working directory, and it is not deleted. This fix restores
10653 the original behavior.
10655pandoc (1.8.1)
10657 * Added `--ascii` option. Currently supported only in HTML writer,
10658 which it causes to use numerical entities instead of UTF-8.
10660 * EPUB writer: `--toc` now works to provide a table of contents
10661 at the beginning of each chapter.
10663 * LaTeX writer: Change figure defaults to `htbp`.
10664 This prevents "too many unprocessed floats." Resolves
10665 Issue #285.
10667 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
10668 base.
10670 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
10671 Tanimoto. Resolves Issue #286.
10673 * HTML writer: Put line breaks in section divs.
10675 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
10677pandoc (1.8.0.3)
10679 * Fixed Source-repository stanza in cabal file.
10681pandoc (1.8.0.2)
10683 * HTML writer:
10685 + Stringify alt text instead of converting to HTML.
10686 + Break lines after block elements, not inside tags.
10687 HTML output now closely resembles that of tidy. Resolves Issue #134.
10689 * Markdown reader: Fixed bug in footnote block parser (pointed out
10690 by Jesse Rosenthal). The problem arose when the blank line
10691 at the end of a footnote block contained indenting spaces.
10693 * Shared: Improved 'normalize' function so it normalizes Spaces too.
10694 In normal form, Space elements only occur to separate two non-Space
10695 elements. So, we never have [Space], or [, ..., Space].
10697 * Tests:
10699 + Improved Arbitrary instance.
10700 + Added timeout for test instances.
10702 * README:
10704 + Added section on four-space rule for lists. Resolves Issue #283.
10705 + Clarified optional arguments on math options.
10707 * markdown2pdf: Fixed bug with output file extensions.
10708 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
10709 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
10711pandoc (1.8.0.1)
10713 * Revised Interact.hs so that it works with the CPP macros
10714 in the UTF8 module.
10716 * Revised Setup.hs so that we don't call MakeManPage.hs unless
10717 the man pages are out of date.
10719pandoc (1.8)
10721 [new features]
10723 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
10724 You can now write, for example,
10726 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
10728 and, when you process your document using `pandoc`, specifying
10729 a citation style using `--csl` and a bibliography using `--bibliography`,
10730 the citation will be replaced by an appropriately formatted
10731 citation, and a list of works cited will be added to the end
10732 of the document.
10734 This means that you can switch effortlessly between different citation
10735 and bibliography styles, including footnote, numerical, and author-date
10736 formats. The bibliography can be in any of the following formats: MODS,
10737 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
10738 See the README for further details.
10740 Citations are supported in the markdown reader, using a special
10741 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
10742 (Thanks to Nathan Gass for the natbib and biblatex support.)
10744 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
10745 the `textile` reader, an almost complete implementation of the textile
10746 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
10747 Resolves Issue #51.
10749 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
10751 * New `json` reader and writer, for reading and writing a JSON
10752 representation of the native Pandoc AST. These are much faster
10753 than the `native` reader and writer, and should be used for
10754 serializing Pandoc to text. To convert between the JSON representation
10755 and native Pandoc, use `encodeJSON` and `decodeJSON` from
10756 `Text.JSON.Generic`.
10758 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
10759 to write scripts that transform a JSON-encoded pandoc document.
10760 For example:
10762 -- removelinks.hs - removes links from document
10763 import Text.Pandoc
10764 main = interact $ jsonFilter $ bottomUp removeLink
10765 where removeLink (Link xs _) = Emph xs
10766 removeLink x = x
10768 To use this to remove links while translating markdown to LaTeX:
10770 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
10772 * Attributes are now allowed in inline `Code` elements, for example:
10774 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
10776 The attribute syntax is the same as for delimited code blocks.
10777 `Code` inline has an extra argument place for attributes, just like
10778 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
10779 is compiled with highlighting support. Resolves Issue #119.
10781 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
10782 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
10783 scripts to transform Pandoc documents. Scripts can now change
10784 how each element is rendered in each output format.
10786 * You can now define LaTeX macros in markdown documents, and pandoc
10787 will apply them to TeX math. For example,
10789 \newcommand{\plus}[2]{#1 + #2}
10790 $\plus{3}{4}$
10792 yields `3+4`. Since the macros are applied in the reader, they
10793 will work in every output format, not just LaTeX.
10795 * LaTeX macros can also be used in LaTeX documents (both in math
10796 and in non-math contexts).
10798 * A new `--mathjax` option has been added for displaying
10799 math in HTML using MathJax. Resolves issue #259.
10801 * Footnotes are now supported in the RST reader. (Note, however,
10802 that unlike docutils, pandoc ignores the numeral or symbol used in
10803 the note; footnotes are put in an auto-numbered ordered list.)
10804 Resolves Issue #258.
10806 * A new `--normalize` option causes pandoc to normalize the AST
10807 before writing the document. This means that, for example,
10808 `*hi**there*` will be rendered as `<em>hithere</em>`
10809 instead of `<em>hi</em><em>there</em>`. This is not the default,
10810 because there is a significant performance penalty.
10812 * A new `--chapters` command-line option causes headers
10813 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
10814 Resolves Issue #265.
10816 * In DocBook output, `<chapter>` is now used for top-level
10817 headers if the template contains `<book>`. Resolves Issue #265.
10819 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
10820 the LaTeX writer to use the listings package for code blocks.
10821 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
10822 Millon for the markdown2pdf patch.)
10824 * `markdown2pdf` now supports `--data-dir`.
10826 * URLs in autolinks now have class "url" so they can be styled.
10828 * Improved prettyprinting in most formats. Lines will be wrapped
10829 more evenly and duplicate blank lines avoided.
10831 * New `--columns` command-line option sets the column width for
10832 line wrapping and relative width calculations for tables.
10834 * Made `--smart` work in HTML, RST, and Textile readers, as well
10835 as markdown.
10837 * Added `--html5` option for HTML5 output.
10839 * Added support for listings package in LaTeX reader
10840 (Puneeth Chaganti).
10842 * Added support for simple tables in the LaTeX reader.
10844 * Added support for simple tables in the HTML reader.
10846 * Significant performance improvements in many readers and writers.
10848 [API and program changes]
10850 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
10851 auxiliary package, `pandoc-types`. This will make it possible for other
10852 programs to supply output in Pandoc format, without depending on the whole
10853 pandoc package.
10855 * Added `Attr` field to `Code`.
10857 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
10858 `RawBlock` and `RawInline`.
10860 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
10861 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
10862 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
10864 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
10866 * `Text.Pandoc` now exports association lists `readers` and `writers`.
10868 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
10869 `readNative` can now read full pandoc documents, block lists, blocks,
10870 inline lists, or inlines. It will interpret `Str "hi"`
10871 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
10872 This should make testing easier.
10874 * Removed deprecated `-C/--custom-header` option.
10875 Use `--template` instead.
10877 * `--biblio-file` has been replaced by `--bibliography`.
10878 `--biblio-format` has been removed; pandoc now guesses the format
10879 from the file extension (see README).
10881 * pandoc will treat an argument as a URI only if it has an
10882 `http(s)` scheme. Previously pandoc would treat some
10883 Windows pathnames beginning with `C:/` as URIs.
10885 * The `--sanitize-html` option and the `stateSanitize` field in
10886 `ParserState` have been removed. Sanitization is better done in the
10887 resulting HTML using `xss-sanitize`, which is based on pandoc's
10888 sanitization, but improved.
10890 * pandoc now adds a newline to the end of its output in fragment
10891 mode (= not `--standalone`).
10893 * Added support for `lang` in `html` tag in the HTML template,
10894 so you can do `pandoc -s -V lang=es`, for example.
10896 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
10897 a boolean argument that selects between "inline" and
10898 "block" HTML.
10900 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
10901 Images are embedded in RTF output when possible (png, jpeg).
10902 Resolves Issue #275.
10904 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
10905 `pretty` package. Changed all writers that used
10906 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
10908 * Rewrote `writeNative` using the new prettyprinting module. It is
10909 now much faster. The output has been made more consistent and compressed.
10910 `writeNative` is also now sensitive to writerStandalone`, and will simply
10911 `print a block list if writerStandalone` is False.
10913 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
10914 blocks and concatenate them, so a separate module is no longer needed.
10916 * `Text.Pandoc.Shared`:
10918 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
10919 `WriterOptions`.
10920 + Added `normalize`.
10921 + Removed unneeded prettyprinting functions:
10922 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
10923 `BlockWrapper`, `wrappedBlocksToDoc`.
10924 + Made `splitBy` take a test instead of an element.
10925 + Added `findDataFile`, refactored `readDataFile`.
10926 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
10927 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
10929 * `Text.Pandoc.Readers.HTML`:
10931 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
10932 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
10933 `htmlBlockElement`, `htmlComment`
10934 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
10935 `isTextTag`
10937 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
10938 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
10939 an inline parser.
10941 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
10943 * Ellipses are no longer allowed to contain spaces.
10944 Previously we allowed '. . .', ' . . . ', etc. This caused
10945 too many complications, and removed author's flexibility in
10946 combining ellipses with spaces and periods.
10948 * Allow linebreaks in URLs (treat as spaces). Also, a string of
10949 consecutive spaces or tabs is now parsed as a single space. If you have
10950 multiple spaces in your URL, use `%20%20`.
10952 * `Text.Pandoc.Parsing`:
10954 + Removed `refsMatch`.
10955 + Hid `Key` constructor.
10956 + Removed custom `Ord` and `Eq` instances for `Key`.
10957 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
10958 + Generalized type on `readWith`.
10960 * Small change in calculation of relative widths of table columns.
10961 If the size of the header > the specified column width, use
10962 the header size as 100% for purposes of calculating
10963 relative widths of columns.
10965 * Markdown writer now uses some pandoc-specific features when `--strict`
10966 is not specified: `\` newline is used for a hard linebreak instead of
10967 two spaces then a newline. And delimited code blocks are used when
10968 there are attributes.
10970 * HTML writer: improved gladTeX output by setting ENV appropriately
10971 for display or inline math (Jonathan Daugherty).
10973 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
10975 * LaTeX reader:
10977 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
10978 + `\index{}` commands are skipped.
10980 * Added `fontsize` variable to default LaTeX template.
10981 This makes it easy to set the font size using `markdown2pdf`:
10982 `markdown2pdf -V fontsize=12pt input.txt`.
10984 * Fixed problem with strikeout in LaTeX headers when using
10985 hyperref, by adding a command to the default LaTeX template
10986 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
10987 for the fix.
10989 * The `COLUMNS` environment variable no longer has any effect.
10991 [under-the-hood improvements]
10993 * Pandoc now compiles with GHC 7. (This alone leads to a
10994 significant performance improvement, 15-20%.)
10996 * Completely rewrote HTML reader using tagsoup as a lexer. The
10997 new reader is faster and more accurate. Unlike the
10998 old reader, it does not get bogged down on some input
10999 (Issues #277, 255). And it handles namespaces in tags
11000 (Issue #274).
11002 * Replaced `escapeStringAsXML` with a faster version.
11004 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
11005 for a significant performance boost.
11007 * Improved performance of all readers by rewriting parsers.
11009 * Simplified Text.Pandoc.CharacterReferences by using
11010 entity lookup functions from TagSoup.
11012 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
11013 from `System.IO` if base >= 4.2. This gives support for
11014 windows line endings on windows.
11016 * Remove duplications in documentation by generating the
11017 pandoc man page from README, using `MakeManPage.hs`.
11019 * README now includes a full description of markdown syntax,
11020 including non-pandoc-specific parts. A new `pandoc_markdown`
11021 man page is extracted from this, so you can look up markdown
11022 syntax by doing `man pandoc_markdown`.
11024 * Completely revised test framework (with help from Nathan Gass).
11025 The new test framework is built when the `tests` Cabal flag is set. It
11026 includes the old integration tests, but also some new unit and quickcheck
11027 tests. Test output has been much improved, and you can now specify a glob
11028 pattern after `cabal test` to indicate which tests should be run;
11029 for example `cabal test citations` will run all the citation tests.
11031 * Added a shell script, `stripansi.sh`, for filtering ANSI control
11032 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
11034 * Added `Interact.hs` to make it easier to use ghci while developing.
11035 `Interact.hs` loads `ghci` from the `src` directory, specifying
11036 all the options needed to load pandoc modules (including
11037 specific package dependencies, which it gets by parsing
11038 dist/setup-config).
11040 * Added `Benchmark.hs`, testing all readers + writers using criterion.
11042 * Added `stats.sh`, to make it easier to collect and archive
11043 benchmark and lines-of-code stats.
11045 * Added upper bounds to all cabal dependencies.
11047 * Include man pages in extra-source-files. This allows users to
11048 install pandoc from the tarball without needing to build the man
11049 pages.
11051 [bug fixes]
11053 * Filenames are encoded as UTF8. Resolves Issue #252.
11055 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
11056 were just parsed literally, leading to problems in some output formats.
11057 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
11058 Resolves Issue #270.
11060 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
11061 Spaces at end of line were not being stripped properly,
11062 resulting in unintended LineBreaks.
11064 * Markdown reader:
11066 + Allow HTML comments as inline elements in markdown.
11067 So, `aaa <!-- comment --> bbb` can be a single paragraph.
11068 + Fixed superscripts with links: `^[link](/foo)^` gets
11069 recognized as a superscripted link, not an inline note followed by
11070 garbage.
11071 + Fixed regression, making markdown reference keys case-insensitive again.
11072 Resolves Issue #272.
11073 + Properly handle abbreviations (like `Mr.`) at the end of a line.
11074 + Better handling of intraword underscores, avoiding exponential
11075 slowdowns in some cases. Resolves Issue #182.
11076 + Fixed bug in alignments in tables with blank rows in the header.
11078 * RST reader:
11080 + Field lists now allow spaces in field names, and
11081 block content in field values. (Thanks to Lachlan Musicman
11082 for pointing out the bug.)
11083 + Definition list items are now always `Para` instead of
11084 `Plain`, matching behavior of `rst2xml.py`.
11085 + In image blocks, the description is parsed properly and
11086 used for the alt attribute, not also the title.
11087 + Skip blank lines at beginning of file. Resolves
11088 Debian #611328.
11090 * LaTeX reader:
11092 + Improved parsing of preamble.
11093 Previously you'd get unexpected behavior on a document that
11094 contained `\begin{document}` in, say, a verbatim block.
11095 + Allow spaces between `\begin` or `\end` and `{`.
11096 + Support `\L` and `\l`.
11097 + Skip comments inside paragraphs.
11099 * LaTeX writer:
11101 + Escape strings in `\href{..}`.
11102 + In nonsimple tables, put cells in `\parbox`.
11104 * OpenDocument writer: don't print raw TeX.
11106 * Markdown writer:
11108 + Fixed bug in `Image`. URI was getting unescaped twice!
11109 + Avoid printing extra blank lines at the end if there are
11110 no notes or references.
11112 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
11113 This avoids unwanted interpretation as an optional argument.
11115 * ConTeXt writer: Fixed problem with inline code. Previously
11116 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
11117 If it contains neither, use `\type{}`; otherwise use `\mono{}`
11118 with an escaped version of the string.
11120 * `:` now allowed in HTML tags. Resolves Issue #274.
11122pandoc (1.6)
11124 [ John MacFarlane ]
11126 * New EPUB and HTML Slidy writers. (Issue #122)
11128 - EPUB is a standard ebook format, used in Apple's iBooks for
11129 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
11130 reader, and many other devices.
11131 - Slidy, like S5, is a system for producing HTML+javascript slide
11132 shows.
11134 * All input is assumed to be UTF-8, no matter what the locale and ghc
11135 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
11136 Also, a BOM, if present, is stripped from the input.
11138 * Markdown now supports grid tables, whose cells can contain
11139 arbitrary block elements. (Issue #43)
11141 * Sequentially numbered example lists in markdown with `@` marker.
11143 * Markdown table captions can begin with a bare colon and no longer need
11144 to include the English word "table." Also, a caption can now occur
11145 either before or after the table. (Issue #227)
11147 * New command-line options:
11149 - `--epub-stylesheet` allows you to specify a CSS file that will
11150 be used to style your ebook.
11151 - `--epub-metadata` allows you to specify metadata for the ebook.
11152 - `--offline` causes the generated HTML slideshow to include all
11153 needed scripts and stylesheets.
11154 - `--webtex` causes TeX math to be converted to images using the
11155 Google Charts API (unless a different URL is specified).
11156 - `--section-divs` causes div tags to be added around each section
11157 in an HTML document. (Issue #230, 239)
11159 * Default behavior of S5 writer in standalone mode has changed:
11160 previously, it would include all needed scripts and stylesheets
11161 in the generated HTML; now, only links are included unless
11162 the `--offline` option is used.
11164 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
11165 pandoc would enclose sections in div tags with identifiers on the
11166 div tags, so that the sections can be manipulated in javascript.
11167 This caused undesirable interactions with raw HTML div tags. So,
11168 starting with 1.6, the default is to put the identifiers directly
11169 on the header tags, and not to include the divs. The `--section-divs`
11170 option selects the 1.2-1.5 behavior.
11172 * API changes:
11174 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
11175 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
11176 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
11177 `writerIncludeAfter`.
11178 - Added `headerShift` to `Text.Pandoc.Shared`.
11179 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
11180 to a new module, `Text.Pandoc.Parsing`.
11181 - Added `stateHasChapters` to `ParserState`.
11182 - Added `HTMLSlideVariant`.
11183 - Made `KeyTable` a map instead of an association list.
11184 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
11185 `docDate`).
11186 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
11187 instances.
11188 - Reference keys now have a type of their own (`Key`), with its
11189 own `Ord` instance for case-insensitive comparison.
11190 - Added `Text.Pandoc.Writers.EPUB`.
11191 - Added `Text.Pandoc.UUID`.
11192 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
11193 Removed `saveOpenDocumentAsODT`, added `writeODT`.
11194 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
11195 Removed `prettyPandoc`.
11196 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
11197 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
11198 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
11199 To write S5, you now use `writeHtml` with `writerSlideVariant`
11200 set to `S5Slides` or `SlidySlides`.
11202 * Template changes. If you use custom templates, please update them,
11203 particularly if you use syntax highlighting with pandoc. The old HTML
11204 templates hardcoded highlighting CSS that will no longer work with
11205 the most recent version of highlighting-kate.
11207 - HTML template: avoid empty meta tag if no date.
11208 - HTML template: Use default highlighting CSS from highlighting-kate
11209 instead of hard-coding the CSS into the template.
11210 - HTML template: insert-before text goes before the title, and
11211 immediately after the <body> tag, as documented. (Issue #241)
11212 - Added slidy and s5 templates.
11213 - Added amssymb to preamble of latex template. (github Issue 1)
11215 * Removed excess newlines at the end of output. Note: because output
11216 will not contain an extra newline, you may need to make adjustments
11217 if you are inserting pandoc's output into a template.
11219 * In S5 and slidy, horizontal rules now cause a new slide, so you
11220 are no longer limited to one slide per section.
11222 * Improved handling of code in man writer. Inline code is now monospace,
11223 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
11225 * HTML reader parses `<tt>` as Code. (Issue #247)
11227 * html+lhs output now contains bird tracks, even when compiled without
11228 highlighting support. (Issue #242)
11230 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
11231 since they have a special meaning in XML.
11233 * Code improvements in ODT writer. Remote images are now replaced with
11234 their alt text rather than a broken link.
11236 * LaTeX reader improvements:
11238 - Made latex `\section`, `\chapter` parsers more forgiving of
11239 whitespace.
11240 - Parse `\chapter{}` in latex.
11241 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
11242 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
11243 for use in markdown reader.
11244 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
11245 in markdown document.
11247 * LaTeX writer: images are automatically shrunk if they would extend
11248 beyond the page margin.
11250 * Plain, markdown, RST writers now use unicode for smart punctuation.
11252 * Man writer converts math to unicode when possible, as in other writers.
11254 * `markdown2pdf` can now recognize citeproc options.
11256 * Command-line arguments are converted to UTF-8. (Issue #234)
11258 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
11259 This allows it to handle a wider range of formulas. Also, if a formula
11260 cannot be converted, it is left in raw TeX; formulas are no longer
11261 partially converted.
11263 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
11264 #143)
11266 * Cabal file changes:
11268 - Removed parsec < 3 restriction.
11269 - Added 'threaded' flag for architectures where GHC lacks a threaded
11270 runtime.
11271 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
11272 - Require highlighting-kate 0.2.7.
11274 * Use explicit imports from `Data.Generics`. Otherwise we have a
11275 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
11277 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
11279pandoc (1.5.1.1)
11281 [ John MacFarlane ]
11283 * Fixed uniqueIdent in Shared so that header identifiers work as
11284 advertized in the README and are are valid XHTML names.
11286pandoc (1.5.1)
11288 [ John MacFarlane ]
11290 * Fixed treatment of unicode characters in URIs.
11291 + Shared now exports escapeURI and unescapeURI. These handle
11292 UTF8 encoding and decoding as well as URI escaping/unescaping.
11293 + Shared: uri and emailAddress now return a pair of the original
11294 parsed text and the escaped URI (in the latter case, with
11295 the mailto: prefix).
11296 + HTML reader: unsanitaryURI has been modified to allow unicode
11297 high characters in a URI.
11298 + Readers: All link and image URIs are now escaped using
11299 escapeURI.
11300 + Markdown and RST writers: unescapeURI is used so that URIs
11301 in these formats are human-readable.
11303 * Setup.hs: Don't assume that the build directory is "dist".
11304 Instead, get it from localBuildInfo.
11306 * OpenDocument writer: Use a Map for stTextStyleAttr.
11307 This avoids duplicates (and invalid xml). Resolves Issue #222.
11309pandoc (1.5.0.1)
11311 [ John MacFarlane ]
11313 * HTML writer: Fixed error in math writer (with MathML option)
11314 that caused an infinite loop for unparsable MathML.
11316pandoc (1.5)
11318 [ John MacFarlane ]
11320 * Added --mathml option. When this is selected, pandoc will convert
11321 TeX math into MathML.
11322 + Added data/MathMLinHTML.js, which is included when no URL is
11323 provided for --mathml. This allows MathML to be displayed (in
11324 better browsers) as text/html.
11325 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
11326 necessary; it was replaced by two lines in pandoc.hs.
11327 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
11328 single combined file, LaTeXMathML.js.
11330 * Added --data-dir option.
11331 This specifies a user data directory. If not specified, will default
11332 to ~/.pandoc on unix or Application Data\pandoc on Windows.
11333 Files placed in the user data directory will override system default
11334 data files.
11336 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
11337 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
11338 Nothing, no user directory is searched for an override.
11340 * Added 'plain' output format. This is similar to markdown, but
11341 removes links, pictures, inline formatting, and most anything that
11342 looks even vaguely markupish. The function writePlain is exported by
11343 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
11345 * Allow multi-line titles and authors in meta block.
11346 Titles may span multiple lines, provided continuation lines
11347 begin with a space character. Separate authors may be put on
11348 multiple lines, provided each line after the first begins with
11349 a space character. Each author must fit on one line. Multiple
11350 authors on a single line may still be separated by a semicolon.
11351 Based on a patch by Justin Bogner.
11353 * When given an absolute URI as parameter, pandoc will try to fetch
11354 the content via HTTP. So you can do:
11355 'pandoc -r html -w markdown http://www.fsf.org'
11356 Adds dependency on HTTP.
11358 * Made HTML reader much more forgiving.
11359 + Incorporated idea (from HXT) that an element can be closed
11360 by an open tag for another element.
11361 + Javascript is partially parsed to make sure that a <script>
11362 section is not closed by a </script> in a comment or string.
11363 + More lenient non-quoted attribute values.
11364 Now we accept anything but a space character, quote, or <>.
11365 This helps in parsing e.g. www.google.com!
11366 + Bare & signs are now parsed as a string. This is a common
11367 HTML mistake.
11368 + Skip a bare < in malformed HTML.
11370 * Removed html2markdown and hsmarkdown.
11371 + html2markdown is no longer needed, since you can now pass URI
11372 arguments to pandoc and directly convert web pages. (Note,
11373 however, that pandoc assumes the pages are UTF8. html2markdown
11374 made an attempt to guess the encoding and convert them.)
11375 + hsmarkdown is pointless -- a large executable that could be
11376 replaced by 'pandoc --strict'.
11378 * In most writers, an image in a paragraph by itself is now rendered
11379 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
11380 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
11381 rendered inline.
11383 * Depend on extensible-exceptions. This allows pandoc to be compiled
11384 on GHC 6.8.
11386 * Added --base-header-level option. For example, --base-header-level=2
11387 will change level 1 headers to level 2, level 2 to level 3, etc.
11388 Closes Debian #563416.
11390 * Incomplete support for RST tables (simple and grid).
11391 Thanks to Eric Kow. Colspans and rowspans not yet supported.
11393 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
11395 * MediaWiki writer: format links with relative URLs as wikilinks.
11396 The new rule: If the link target is an absolute URL, an external
11397 link is created. Otherwise, a wikilink is created.
11399 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
11400 identifier. Note: This may break links to sections that involve
11401 tildes.
11403 * Markdown(+lhs) reader: handle "inverse bird tracks."
11404 Inverse bird tracks (<) are used for haskell example code that is not
11405 part of the literate Haskell program. Resolves Issue #211.
11407 * LaTeX reader:
11408 + Recognize '\ ' (interword space).
11409 + Recognize nonbreaking space '~'.
11410 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
11411 section headers. Don't treat \section as inline LaTeX.
11412 Resolves Issue #202.
11413 + LaTeX reader: allow any special character to be escaped.
11414 Resolves Issue #221.
11415 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
11416 headers. Resolves Issue #207.
11418 * Use template variables for include-before/after.
11419 + These options now imply -s; previously they worked also in fragment
11420 mode.
11421 + Users can now adjust position of include-before and include-after
11422 text in the templates.
11423 + Default position of include-before moved back (as it was before 1.4)
11424 before table of contents.
11425 + Resolves Issue #217.
11427 * Don't print an empty table header: (all writers).
11428 Resolves Issue #210.
11430 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
11432 * HTML writer: Don't include TOC div if table of contents is empty.
11434 * Markdown writer: Fixed citations.
11435 Previously the markdown writer printed raw citation codes, e.g.
11436 [geach1970], rather than the expanded citations provided by
11437 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
11438 This means that the document produced can be processed as a markdown
11439 document without citeproc. Thanks to dsanson for reporting, and
11440 Andrea Rossato for the patch.
11442 * Improved and simplified title block in context template.
11443 Previously it caused an error if there was no title.
11444 This method should also be easier for users to customize.
11446 * Markdown reader:
11447 + Treat p., pp., sec., ch., as abbreviations in smart mode.
11448 + Disallow blank lines in inline code span.
11449 + Allow footnotes to be indented < 4 spaces.
11450 This fixes a regression. A test case has been added.
11451 + Escape spaces in URLs as %20. Previously they were incorrectly
11452 escaped as +, which is appropriate only for the query part of
11453 a URL. Resolves Issue #220.
11454 + Require two spaces after capital letter + period for list item.
11455 Otherwise "E. coli" starts a list. This might change the semantics
11456 of some existing documents, since previously the two-space
11457 requirement was only enforced when the second word started
11458 with a capital letter. But it is consistent with the existing
11459 documentation and follows the principle of least surprise.
11460 Resolves Issue #212.
11462 * LaTeX template: redefine labelwidth when using enumerate package.
11463 Otherwise the list labels (numbers) often extend past the left
11464 margin, which looks bad.
11466 * Mediawiki writer: Don't print a "== Notes ==" header before
11467 references. This is too English-centric. Writers can provide their
11468 own header at the end of the document.
11470 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
11471 level 2, etc. This seems to be correct; it's only by convention
11472 that wikipedia articles have level 2 headers at most.
11473 Patch due to Eric Kow.
11475 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
11476 data files don't need to have been installed. This removes the need to
11477 set HOME.
11479 * HTML reader:
11480 + Handle spaces before <html>. Resolves Issue #216.
11481 + Be forgiving in parsing a bare list within a list.
11482 The following is not valid xhtml, but the intent is clear:
11483 <ol>
11484 <li>one</li>
11485 <ol><li>sub</li></ol>
11486 <li>two</li>
11487 </ol>
11488 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
11490 * Updated INSTALL instructions. cabal method is now promoted.
11492 * Updated markdown2pdf man page. It no longer says all pandoc options
11493 are accepted.
11495 * README/man pages: Removed advice to pipe through tidy before HTML
11496 reader. This is obsolete, now that we have a forgiving HTML parser.
11498 * LaTeX writer: set numbersections template variable, so
11499 the section numbering options work again.
11501 * Removed obsolete Makefile.
11503 * Website: renamed index.txt.in -> index.txt.
11505 * New batch file to make-windows-installer.
11506 + Removed old Makefile.windows
11507 + Added make-windows-installer.bat
11508 + Modified default installer name in pandoc-setup.iss
11510 * Removed freebsd and macports directories.
11511 They are no longer up to date.
11513 * Setup.hs:
11514 + Made man page building sensitive to build verbosity.
11515 + Improved detection of highlighting support in test hook.
11516 + Install wrapper scripts into cabal bin directory.
11517 + Also simplified installManpages.
11518 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
11520 * Changed default of writerXeTeX to False.
11522 * HTML writer: don't include empty UL if --toc but no sections.
11523 Resolves Issue #199.
11525 * LaTeX writer:
11527 + If book, report, or memoir documentclass, use \chapter{}
11528 for first-level headers. Otherwise use \section{}.
11529 + Removed stLink, link template variable. Reason: we now always
11530 include hyperref in the template.
11532 * LaTeX template:
11534 + Only show \author if there are some.
11535 + Always include hyperref package. It is used not just for links but
11536 for toc, section heading bookmarks, footnotes, etc. Also added
11537 unicode=true on hyperref options.
11539 * markdown2pdf: always do at least two runs. hyperref bookmarks
11540 require this.
11542 * cabal file: Removed unneeded dependency on template-haskell.
11544 * Windows installer - fixed bug in data file locations.
11545 Resolves Issue #197.
11547 * Deprecated --custom-header in documentation.
11548 Removed old "Custom Headers" section in README.
11550pandoc (1.4)
11552 [ John MacFarlane ]
11554 * Pandoc will now compile with either GHC 6.10 or 6.12.
11555 + Don't use System.IO.UTF8 when compiling with 6.12
11556 + Use -fno-warn-unused-do-bind option when compiling with 6.12
11558 * Replaced old headers with templates. Now users have much more
11559 control over the way documents appear in --standalone mode,
11560 and writer code is simplified. Resolves Issues #59, 147.
11561 Every effort has been made to retain backwards compatibilty.
11562 So, the --custom-header option should still work as before.
11564 + Added Text.Pandoc.Templates. This provides functions for
11565 retrieving default templates and for rendering templates.
11566 + System templates (in the pandoc data directory) can be
11567 overridden by user templates in $HOME/.pandoc/templates.
11568 + Removed Text.Pandoc.DefaultHeaders.
11569 + Removed data/headers directory.
11570 + Added templates directory.
11571 + Added writerTemplate and writerVariables fields to WriterOptions.
11572 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
11573 + Changed --print-default-header to --print-default-template.
11574 + Added --template option.
11575 + Added -V/--variable option to set custom template variables.
11577 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
11579 + Removed need for TH in ODT module. Instead get reference.odt from
11580 data file at run time.
11581 + Removed TH dependency from S5 module. S5 module now exports
11582 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
11583 standalone.
11584 + Refactored LaTeXMathML not to use TH.
11586 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
11587 Meta [Inline] [String] String. Authors and date in Meta are now lists
11588 of Inline elements rather than raw strings. This means that they can
11589 be formatted and can include footnotes. NOTE: This may be a breaking
11590 change for those using pandoc as a library.
11592 * Added readDataFile to Text.Pandoc.Shared. This retrieves
11593 a data file from the user pandoc data directory (~/.pandoc
11594 on unix), or, if not found there, from the system data
11595 directory ($CABALDIR/shared/pandoc-VERSION/). All data
11596 files, including templates, LaTeXMathML.js, s5 styles,
11597 and reference.odt, can be overridden by the user.
11599 * s5 files moved from data/ui/default to s5/default.
11601 * Use unicode instead of entities in HTML and XML output. Resolves
11602 Issue #163.
11604 * Prettier HTML footnote references: put anchor inside sup,
11605 instead of other way. Resolves Issue #191. Thanks to
11606 infinity0x.
11608 * Added --xetex option to pandoc and markdown2pdf.
11609 If --xetex is specified, pandoc produces latex suitable for
11610 processing by xelatex, and markdown2pdf uses xelatex to create
11611 the PDF. Resolves Issue #185.
11613 * RTF writer: multiple authors now occupy multiple paragraphs rather
11614 than using a line break.
11616 * Man writer: now the "--after-body" will come after the "AUTHORS"
11617 section, whereas before it would come before it. This is a
11618 slight break from backwards compatibility.
11620 * Added --reference-odt option, so users may customize the styles
11621 used in pandoc-generated ODT files. Users may also place a
11622 default reference.odt in the ~\.pandoc directory.
11624 * ODT writer:
11625 + Indented and line-broke styles.xml so it can be modified more easily.
11626 + Omitted some unnecessary style declarations.
11627 + Don't wrap text in OpenDocument writer. The tags are too long, making
11628 wrapping ugly and pointless.
11630 * LaTeX reader: use \\ to separate multiple authors.
11632 * Markdown reader: use ; as separator between authors.
11633 This allows you to use ',' within author names: e.g. "John Jones, Jr."
11635 * S5 writer: use linebreak to separate authors in title page.
11637 * RST reader: Allow :: before lhs code block. The RST spec requires the
11638 :: before verbatim blocks. This :: should not be treated as literal
11639 colons. Resolves Issue #189.
11641 * Documented pandoc 1.3's new definition list syntax in README.
11642 (An oversight in the last release.)
11644 * markdown2pdf.hs:
11645 + interpret ! in a log as an error line.
11646 + --toc now works properly.
11648 * Changes in RunTests.hs:
11649 + Use the Diff library rather than a local copy of Diff.hs.
11650 (This vastly increases performance.) This change means that 'cabal
11651 test' presupposes that the Diff library is installed.
11652 + Removed tests/Diff.hs from cabal file.
11653 + Changed RunTests to use local environment. We need at least HOME, so
11654 pandoc can find its data directory.
11656 * Updated windows installer to install data files in the app directory.
11658 * Windows installer now installs portable wrappers hsmarkdown and
11659 markdown2pdf.
11661pandoc (1.3)
11663 [ John MacFarlane ]
11665 * Added --id-prefix option (Issue #41). This adds a prefix to all
11666 automatically generated HTML identifiers, which helps prevent
11667 duplicate identifiers when you're generating a fragment (say a blog
11668 post).
11670 * Added --indented-code-classes option. This specifies classes
11671 to use for indented code blocks. (Patch due to buttock; Issue #87.)
11673 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
11674 (Issue #150).
11676 * Improved syntax for markdown definition lists (Issue #24).
11677 Definition lists are now more compatible with PHP Markdown Extra.
11678 + You can have multiple definitions for a term (but still not
11679 multiple terms).
11680 + Multi-block definitions no longer need a column before each block
11681 (indeed, this will now cause multiple definitions).
11682 + The marker no longer needs to be flush with the left margin,
11683 but can be indented at or two spaces. Also, ~ as well as :
11684 can be used as the marker (this suggestion due to David
11685 Wheeler.)
11686 + There can now be a blank line between the term and the
11687 definitions.
11689 * Better looking simple tables. Resolves Issue #180.
11690 + Markdown reader: simple tables are now given column widths of 0.
11691 + Column width of 0 is interpreted as meaning: use default column width.
11692 + Writers now include explicit column width information only
11693 for multiline tables. (Exception: RTF writer, which requires
11694 column widths. In this case, columns are given equal widths,
11695 adding up to the text width.)
11696 + Simple tables should now look better in most output formats.
11698 * Allow markdown tables without headers (Issue #50).
11699 The new syntax is described in README. Also allow optional line of
11700 dashes at bottom of simple tables.
11702 * Compensate for width of final table column (Issue #144).
11704 * Treat a backslash followed by a newline as a hard line break
11705 in markdown. Resolves Issue #154. This is a nice alternative
11706 to markdown's "invisible" way of indicating hardline breaks
11707 using lines that end with two spaces.
11709 * Improved performance of markdown reader by ~10% by eliminating the
11710 need for a separate parsing pass for notes. Raw notes are now stored
11711 on the first pass (which parses references), then parsed when the
11712 note is inserted into the AST. The stateNotes field in ParserState
11713 is now a list of [(String, String)] pairs instead of [(String,
11714 [Block])].
11716 * In markdown reader, treat 4 or more * or _ in a row as literal
11717 text. (Trying to parse long strings of * or _ as strong or emph
11718 leads to exponential performance problems.)
11720 * Markdown reader: Use + rather than %20 for spaces in URLs.
11722 * Fixed htmlComment parser, adding a needed 'try'.
11724 * Don't print raw HTML in man output.
11726 * Allow . _ and ~ in header identifiers.
11728 * Specially mark code blocks that were "literate" in the input.
11729 They can then be treated differently in the writers. This allows
11730 authors to distinguish bits of the literate program they are writing
11731 from source code examples, even if the examples are marked as
11732 Haskell for highlighting. (Issue #174.)
11734 * Modified html+lhs output to use "haskell" highlighter instead
11735 of "literateHaskell". The highlighting module now adds bird tracks
11736 after highlighting (for HTML output), if the code block has the
11737 "literate" class. This gives better results, because kate's
11738 haskell highlighter is much better than the literateHaskell
11739 highlighter.
11741 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
11742 (Issue #137.)
11744 * Support for "..code-block" directive in RST reader. Not core
11745 RST, but used in Sphinx for code blocks annotated with syntax
11746 information. Thanks to Luke Plant for the patch.
11748 * Added "head" to list of block-level HTML tags. Resolves
11749 Issue #108.
11751 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
11753 * Set utf-8 encoding in texinfo headers.
11755 * Docbook writer: add ids to sections. Use link for internal links.
11756 (Issue #60.)
11758 * Blank lines after lists in MediaWiki writer.
11760 * Properly handle commented-out list items in markdown.
11761 Resolves Issue #142. Example:
11763 - a
11764 <!--
11765 - b
11766 -->
11767 - c
11769 * Changed heuristic in compactify. compactify has to decide whether a
11770 Para that ends a list is a Para intentionally, or just because of
11771 the blank lines at the end of every list. In the latter case the
11772 Para is turned to a Plain. The old heuristic was: change final Para
11773 to Plain iff the other items all end in Plain. This produces bad
11774 results when, for example, an item contains just a Plain and an HTML
11775 comment, as it does in the list above. The new heuristic: change
11776 final Para to Plain iff the other items don't contain a Para.
11778 * Added % as an rst underline character. Resolves Issue #173.
11780 * Fix inline math parser so that \$ is allowed in math.
11781 Resolves Issue #169.
11783 * Translate \int (integral) into unicode when using unicode math
11784 method. Resolves Issue #177.
11786 * markdown2pdf.hs improvements:
11787 + Use System.IO.UTF8.
11788 + Print error messages on last attempt.
11789 + Do not create a backup when overwriting a PDF (Issue #166).
11790 + Accept --longopt=val options.
11791 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
11792 it is properly cleaned.
11794 * Added haddock comments warning that readers assume \n line endings.
11796 * Updated COPYRIGHT file.
11798 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
11799 markdown2pdf. Otherwise strip tries to strip shell scripts when you
11800 install using 'make'.
11802 * Changed Makefile so it doesn't build Haskell wrappers.
11804 * Fixed Makefile so it doesn't try to build man pages in build-doc.
11806 * Install pcre3.dll in Windows install script; this allows us to
11807 package a version of pandoc with highlighting support.
11809pandoc (1.2.1)
11811 [ John MacFarlane ]
11813 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
11814 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
11815 side effect: strings of 0 spaces were interpreted as indentation.
11816 So, with --preserve-tabs, unindented paragraphs were treated as
11817 code. Resolves Issue #138.
11819 * HTML writer: wrap sections in divs. Resolves Issue #70.
11821 + hierarchicalize has been rationalized; it builds a hierarchical
11822 representation of the document from the headers, and simultaneously
11823 gives each section a unique identifier based on the heading title.
11824 + Identifiers are now attached to the divs rather than
11825 to the headers themselves.
11826 + Table of content backlinks go to the beginning of the table, rather
11827 than to the section reference that was clicked.
11828 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
11829 from the HTML writer, since it is now consumed only by
11830 hierarchicalize.
11831 + In --strict mode, pandoc just prints bare headings, as before
11832 (unless --toc has been specified).
11833 + In s5 output, it does not wrap sections in divs, as that seems to
11834 confuse the s5 javascript.
11836 * Man writer: break lines at end of each sentence. groff expects this
11837 and treats '.' and '?' differently when followed by line ending as
11838 opposed to ordinary space. Also, don't escape periods. Instead, use
11839 zero-width character \& to avoid unwanted interpretation of periods
11840 at start of line. Resolves Issue #148.
11842 * Markdown writer: Added '#' and '>' to list of characters to be
11843 escaped in markdown output. Removed '<', as it is not an officially
11844 escapable character. This partially resolves Issue #96.
11846 * Make --smart the default for man output format. Otherwise we have
11847 trouble dividing lists of endlines into sentences.
11849 * DocBook writer: Use language attribute to indicate source language
11850 in code blocks.
11852 * RST reader:
11854 + Allow # to continue list, even if the list was started with an
11855 explicit marker. For example:
11857 A. my list
11858 #. continued
11860 Resolves Issue #140.
11861 + Allow continuation lines in line blocks. Also added test cases for
11862 line blocks for RST reader. Resolves Issue #149.
11863 + Allow explicit links with spaces in URL: `link <to this>`_
11865 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
11866 (which is not in LaTeX) and recognize all the amsmath environments
11867 that are alternatives to eqnarray, namely equation, equation*,
11868 gather, gather*, gathered, multline, multline*, align, align*,
11869 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
11870 Thanks to shreevatsa.public for the patch.
11872 * Markdown reader:
11874 + Allow -, _, :, . in markdown attribute names. These are legal in
11875 XML attribute names.
11876 + Use non-breaking spaces in abbreviations.
11877 + Markdown reader: improved efficiency of abbreviation parsing.
11878 Instead of a separate abbrev parser, we just check for
11879 abbreviations each time we parse a string. This gives a huge
11880 performance boost with -S. Resolves Issue #141.
11882 * Improved efficiency of shared parsers: hexNum, htmlComment,
11883 whitespace, indentSpaces.
11885 * Export HTMLMathMethod in Text.Pandoc.
11887 * Export languagesByExtension in Text.Pandoc.Highlighting.
11889 * Added new Haskell version of markdown2pdf, due to
11890 Paulo Tanimoto. This should be more portable than the old
11891 shell script.
11893 * Made 'pandoc -v' more explicit about compiler options.
11894 Resolves Issue #139.
11896 * pandoc.hs: Made --strict compatible with --standalone, --toc.
11898 * Use Paths_pandoc to get version number, instead of hard-coding it
11899 into Text/Pandoc.hs.
11901pandoc (1.2)
11903 [ John MacFarlane ]
11905 * Added support for literate Haskell. lhs support is triggered by
11906 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
11907 Haskell LaTeX. '.lhs' files are treated by default as literate
11908 markdown.
11910 + Added stateLiterateHaskell to parser state.
11911 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
11912 + Added parser for |inline lhs| to LaTeX reader.
11913 + Added writerLiterateHaskell to WriterOptions.
11914 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
11915 + Added definition of code environment to LaTeX header.
11916 + Added tests (run only if highlighting support compiled in).
11917 + Documented lhs features in man page and README.
11919 * In Text.Pandoc.Definition, added processWith, processWithM,
11920 and queryWith, and deprecated processPandoc and queryPandoc
11921 for these more general functions.
11923 * Fixed bug in mediawiki writer: improper closing tags in tables.
11924 Thanks to Benct Philip Jonsson for reporting the bug.
11926 * Added --email-obfuscation option.
11928 + Added writer option for email obfuscation.
11929 + Implemented email obfuscation options in HTML writer.
11930 + Added option to option parser.
11931 + Documented in README and pandoc man page.
11932 + Resolves Issue #97.
11934 * LaTeX writer: fixed bug with empty table cells.
11935 Resolves Issue #107. Thanks to rodja.trappe for the patch.
11937 * Fixed bug with header spacing in Markdown and RST writers.
11938 A null header (Meta [] [] []) should not cause a blank line
11939 at the beginning of output. But a blank line is needed between
11940 a non-null header and the main text.
11942 * Markdown reader: Relax spacing rules for $$ in display math. Now
11943 space and newlines are allowed after the opening $$ and before the
11944 closing $$. However, the display math cannot contain an entirely
11945 blank line. Resolves Issue #105.
11947 * Markdown reader: Gobble space after Plain blocks containing only
11948 raw html inline. Otherwise following header blocks are not parsed
11949 correctly, since the parser sees blank space before them. Resolves
11950 Issue #124.
11952 * Markdown reader: Allow " as well as '' to end a latex double-quote.
11954 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
11955 Resolves Issue #109.
11957 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
11959 + Added hang' function to Text.Pandoc.Shared; this will be used instead
11960 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
11961 is upgraded, we can go back to hang.
11962 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
11963 + Use hang' (and some different techniques) in RST and markdown writers.
11964 Some output is now a bit different.
11966 * Brought citeproc support up to date for citeproc-hs-0.2.
11967 (Patch by Andrea Rossato.)
11969 * Moved all haskell source to src subdirectory. Renamed Main.hs to
11970 pandoc.hs.
11972 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
11973 For now, keeping the old shell script too.
11975 * Added TemplateHaskell to Extensions for executable, removed
11976 -threaded for library. Thanks to duncan.coutts for the bug report.
11977 Resolves Issue #121.
11979 * Moved some Extra-Source-Files to Data-Files.
11981 * Moved tabFilter to Shared.
11983 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
11984 preserve tabs.
11986 * Minor code cleanup based on hlint suggestions.
11988pandoc (1.1)
11990 [ John MacFarlane ]
11992 * Main.hs:
11994 + Changed date on copyright message in Main.hs.
11995 + Have the '-v' option print syntax highlighting languages
11996 separated by commas, and wrapped in lines, instead of in five
11997 columns as before.
11999 * Added --jsmath option. Resolves Issue #68.
12001 + Added --jsmath option to Main.hs
12002 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
12003 + Handle math appropriately in HTML writer when JsMath selected.
12004 + Documented the option in README and man page.
12006 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
12007 for tight and loose lists. Final Para is changed to Plain if all
12008 other list items *end* with a Plain block. Addresses Issue #99.
12010 * HTML reader:
12012 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
12013 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
12014 Added rawVerbatimBlock parser. Resolves Issue #94.
12016 * Markdown reader:
12018 + Allow URLs with spaces in them in links and references, but escape
12019 them as "%20".
12020 + Allow blank space at the end of horizontal rules.
12022 * RST reader: Modified 'unknownDirective' parser to handle comment
12023 blocks correctly, and added tests for comment blocks. Resolves Issue
12024 #86. Closes Debian Bug #500662.
12026 * HTML writer:
12028 + Include classes on tr elements in HTML output:
12029 "header", "odd", "even". This allows tables to be styled with
12030 lines in alternating colors. Resolves Issue #91.
12031 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
12032 This prevents parts of the document that are not math from being
12033 interpreted as math by LaTeXMathML.js.
12035 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
12036 which were formerly ignored. Resolves Issue #95.
12038 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
12039 between a footnote and immediately following nonspace characters in
12040 LaTeX and ConTeXt output. (This gets interpreted as a space, which
12041 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
12043 * Windows installer: Don't require admin privileges to run
12044 installer. Modified pandoc-setup.iss, and changed modpath.iss to
12045 modify HKCU path if user lacks admin privileges. Also fixed case
12046 where oldpath is empty (previously this led to the new path
12047 beginning with a semicolon).
12049 * Updated INSTALL instructions for Arch packages and OS X install using
12050 cabal-install.
12052 * Removed the (now unneeded) debian directory.
12053 Removed empty Codec and System directories.
12055 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
12057 * Modified Setup.hs so that the "test" target returns an error status
12058 when tests fail, and "build" returns a success status if
12059 the build succeeds. Resolves Issue #100.
12061 * Added BUGS to files in tarball.
12064pandoc (1.0.0.1)
12066 [ John MacFarlane ]
12068 * Removed spurious reference to pdf output format from pandoc(1) man page.
12070pandoc (1.0)
12072 [ Andrea Rossato ]
12074 * Added new OpenDocument writer.
12076 * Added support for SmallCaps inline element.
12078 * Added support for integrating pandoc with citeproc-hs.
12080 + Added Cite element to definition and writers.
12081 + Added Text.Pandoc.Biblio module
12082 + Note: This support is included only if the 'citeproc'
12083 Cabal configuration flag is set.
12085 * Made Pandoc data structure an instance of Typeable.
12086 Added new processPandoc and queryPandoc functions, to query
12087 or transform matching elements in a Pandoc structure.
12089 [ Peter Wang ]
12091 * Added new Texinfo writer.
12093 [ John MacFarlane ]
12095 * Changes to Texinfo writer:
12097 + No space between paragraph and following @verbatim (provides more
12098 pleasing appearance in text formats)
12099 + Blank line consistently after list environments.
12100 + Removed deVerb.
12101 + Use @code instead of @verb for inline code (this solves the character
12102 escaping problem for texi2dvi and texi2pdf).
12103 + Added news of Texinfo writer to README.
12104 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
12105 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
12106 default output extension.
12107 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
12109 * Added tests for OpenDocument writer.
12111 * Added ODT writer (using zip-archive library to package output of
12112 OpenDocument writer). Added odt-styles directory with default ODT styles.
12114 * Added new mediawiki writer and tests.
12116 * Markdown reader: Added support for delimited code blocks, with optional
12117 syntax highlighting using highlighting-kate (if the 'highlighting'
12118 configuration option is selected).
12120 + Currently highlighting is supported only in the HTML writer.
12121 + Delimited code blocks can have attributes; using the language name as
12122 class triggers highlighting.
12123 + New Attributes parameter in CodeBlock structure.
12124 + --version now indicates whether syntax highlighting support is compiled
12125 in, and prints a list of supported languages
12127 * Removed debian directory. Pandoc is no longer a native debian package.
12129 * Changes to build process: pandoc can now be built from the repository
12130 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
12131 without Cygwin).
12133 + Include shell scripts themselves in repo, rather than generating from wrappers.
12134 Removed wrappers directory and wrappers Makefile target.
12135 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
12136 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
12137 from templates in the templates/ directory. Instead, they use template
12138 haskell to read data at compile time from the relevant files in data/.
12139 Template haskell functions go in a new module, Text.Pandoc.TH.
12140 + man pages are now generated in Setup.hs hook, not by Makefile
12141 + Makefile 'tarball' target now calls Cabal's 'sdist'
12142 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
12143 + Added "Build-Type" field to pandoc.cabal to avoid warning.
12144 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
12145 so 'sdist' and 'clean' will work properly.
12146 + Setup.hs now generates man pages in a postbuild hook.
12147 + Added dependency-checking to Setup.hs, so it only rebuilds things
12148 that need rebuilding.
12149 + Added 'library' and 'executable' configuration flags.
12150 Cabal can now be told to build just the library or just the executable.
12151 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
12152 For example: CABALOPTS=-fhighlighting make
12154 * Rewrote test suite so it doesn't depend on perl or unix tools.
12156 + Replaced old runtests.pl with a Haskell script RunTests.hs.
12157 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
12158 + Added test hook to Setup.hs, so tests may be run from cabal.
12159 + Changed Makefile's 'test' target to run tests via cabal.
12160 + Removed old generate.sh.
12161 + Since we no longer have 'sed' to filter out raw HTML sections
12162 from the docbook writer test, or raw LaTeX sections from the
12163 context writer test, we now just include these sections.
12164 They can be taken out if it is necessary to process the files.
12165 + Updated latex and context writer tests to remove extra spaces
12166 after '\\item'
12167 + Added a markdown table reader test.
12168 + Added markdown-reader-more.txt to test suite, for additional test cases
12169 for raw ConTeXt environments and more.
12171 * Compatibility fixes for CPP, Cabal, and haddock:
12173 + Use CPP in "Extensions" field in pandoc.cabal.
12174 + Removed use of backslash string continuations in source files.
12176 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
12177 base >= 3.
12179 * Require parsec < 3.
12180 The compatibility module in parsec 3.0.0 gives far worse performance than
12181 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
12182 version of parsec, and then we'll go to parsec 3.0.0.
12184 * Removed Text.Regex dependencies by rewriting using plain Haskell
12185 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
12187 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
12189 * Makefile:
12191 + Added 'configure' as dependency of 'uninstall-all'.
12192 (It uses the Cabal build program.)
12193 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
12194 Note that Cabal will automatically choose the ghc-pkg appropriate
12195 for the compiler selected, so normally specifying GHC by itself
12196 is sufficient.
12198 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
12199 its IO and conversion functions.
12201 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
12202 everything is -Wall clean.
12204 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
12205 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
12206 (These are caused by the Lift instance for ByteString.)
12208 * Changed the comment used to replace unsafe HTML if sanitize-html option
12209 selected.
12211 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
12213 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
12215 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
12216 "nbsp" isn't a predefined XML entity.
12218 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
12219 Added some try's in ordered list parsers.
12221 * Man writer: don't escape " as \".
12223 * Allow newline before URL in markdown link references. Resolves Issue #81.
12224 Added tests for this issue in new "markdown-reader-more" tests.
12225 Changed RunTests.hs to run these tests.
12227 * Support for display math. Resolves Issue #47.
12229 + Added a DisplayMath/InlineMath selector to Math inlines.
12230 + Markdown parser yields DisplayMath for $$...$$.
12231 + LaTeX parser yields DisplayMath when appropriate. Removed
12232 mathBlock parsers, since the same effect is achieved by the math
12233 inline parsers, now that they handle display math.
12234 + Writers handle DisplayMath as appropriate for the format.
12235 + Modified tests accordingly; added new tests for display math.
12237 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
12238 to LaTeX in its display of math, and supports many non-math LaTeX environments.
12240 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
12241 + Modified HTML writer to print raw TeX when LaTeXMathML is
12242 being used instead of suppressing it.
12243 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
12244 + Replaced ASCIIMathML with LaTeXMathML in source files.
12245 + Modified README and pandoc man page source.
12246 + Added --latexmathml option (kept --asciimathml as a synonym
12247 for backwards compatibility)
12249 * Markdown reader: Parse setext headers before atx headers.
12250 Test case:
12251 # hi
12252 ====
12253 parsed by Markdown.pl as an H1 header with contents "# hi".
12255 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
12256 The marker on the first list item determines the type of the whole
12257 list. Thus, a list like
12258 1. one
12259 - two
12260 * three
12261 gets parsed as a single ordered list. (Previous versions of pandoc
12262 treated this as an ordered list with an unordered sublist.)
12264 * Markdown smart typography:
12266 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
12267 + Use nonbreaking spaces after known abbreviations in markdown parser.
12268 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
12269 not produce a sentence-separating space. Resolves Issue #75.
12271 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
12273 * Treat '\ ' in (extended) markdown as nonbreaking space.
12274 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
12276 * The '--sanitize-html' option now examines URIs in markdown links
12277 and images, and in HTML href and src attributes. If the URI scheme
12278 is not on a whitelist of safe schemes, it is rejected. The main point
12279 is to prevent cross-site scripting attacks using 'javascript:' URIs.
12280 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
12281 and http://ha.ckers.org/xss.html. Resolves Issue #62.
12283 * HTML writer:
12285 + Override Text.XHtml's stringToHtml function,
12286 so that characters below 0xff are not converted to numerical entity
12287 references. Also convert '\160' to "&nbsp;". This should aid readability
12288 and editability of the HTML source. It does presuppose that the HTML
12289 will be served as UTF-8.
12290 + In code blocks, change leading newlines to <br /> tags.
12291 (Some browsers ignore them.) Resolves Issue #71.
12292 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
12293 + Use style attributes rather than css classes for strikethrough
12294 and ordered list styles. This works better when fragments, rather than
12295 standalone documents, are generated.
12297 * HTML reader: Count anything that isn't a known block (HTML) tag as an
12298 inline tag (rather than the other way around). Added "html", "head", and
12299 "body" to list of block tags. Resolves Issue #66, allowing
12300 <lj> to count as an inline tag.
12302 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
12303 boldface, and other inline elements. Resolves Issue #64.
12305 * LaTeX reader: improvements in raw LaTeX parsing.
12307 + "loose punctuation" (like {}) parsed as Space
12308 + Para elements must contain more than Str "" and Space elements
12309 + Added parser for "\ignore" command used in literate haskell.
12310 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
12311 mode, these parsers simply strip off the command part and allow
12312 the arguments to be parsed normally. So, for example,
12313 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
12314 Str "{\\emph{hi}}".
12315 + Parse lhs "code" environments as verbatim.
12316 Refactored parsers for verbatim environments.
12317 + Removed specialEnvironment parser.
12318 + parse '{}', if present, after \textless, \textgreater,
12319 \textbar, \textbackslash, \ldots.
12320 + Parse unescaped special characters verbatim rather than
12321 changing them to spaces. This way arguments of unknown
12322 commands will appear in braces.
12324 * Parse raw ConTeXt environments as TeX in markdown reader.
12325 Resolves Issue #73.
12327 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
12329 * Made some structural changes to parsing of raw LaTeX environments.
12330 Previously there was a special block parser for LaTeX environments.
12331 It returned a Para element containing the raw TeX inline. This has
12332 been removed, and the raw LaTeX environment parser is now used in the
12333 rawLaTeXInline parser. The effect is exactly the same, except that we
12334 can now handle consecutive LaTeX and ConTeXt environments not separated
12335 by spaces. This new flexibility is required by the example in
12336 Issue #73:
12338 \placeformula \startformula
12339 L_{1} = L_{2}
12340 \stopformula
12342 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
12343 returns a string) rather than rawLaTeXEnvironment (which returns a block
12344 element). This is more likely to be useful in other applications.
12346 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
12347 \textsubscript conflicts with a definition in the memoir class.
12348 Resolves Issue #65.
12350 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
12352 * Added amsmath package to default LaTeX header. Resolves Issue #48.
12354 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
12355 list introduction lines.
12357 * Changed Float to Double in definition of Table element.
12358 (Double is more efficient in GHC.)
12360 * Fixed bug in Markdown parser: regular $s triggering math mode.
12361 For example: "shoes ($20) and socks ($5)."
12362 The fix consists in two new restrictions:
12364 + the $ that ends a math span may not be directly followed by a digit.
12365 + no blank lines may be included within a math span.
12367 Thanks to Joseph Reagle for noticing the bug.
12369 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
12370 Removed 'joinWithSep' from Text.Pandoc.Shared.
12372 * Updated README and man pages. Acknowledge contributors in README.
12373 Added paragraph to README about producing S5 with separate CSS/javascript.
12375 * Updated INSTALL to reflect new build system (including configuration
12376 options) and document new dependencies. Added note to INSTALL that
12377 Cabal >= 1.2 is required for build. Resolves Issue #74.
12379 * Fixed some haddock documentation errors.
12381 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
12383pandoc (0.46) unstable; urgency=low
12385 [ John MacFarlane ]
12387 * Made -H, -A, and -B options cumulative: if they are specified
12388 multiple times, multiple files will be included.
12390 * Added optional HTML sanitization using a whitelist.
12391 When this option is specified (--sanitize-html on the command line),
12392 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
12393 attributes will be removed. This option should be especially useful
12394 for those who want to use pandoc libraries in web applications, where
12395 users will provide the input.
12397 + Main.hs: Added --sanitize-html option.
12399 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
12401 + Text.Pandoc.Readers.HTML:
12402 - Added whitelists of sanitaryTags and sanitaryAttributes.
12403 - Added parsers to check these lists (and state) to see if a given
12404 tag or attribute should be counted unsafe.
12405 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
12406 with comments.
12407 - Modified htmlAttribute to remove unsafe attributes.
12408 - Modified htmlScript and htmlStyle to remove these elements if
12409 unsafe.
12411 + Modified README and man pages to document new option.
12413 * Improved handling of email addresses in markdown and reStructuredText.
12414 Consolidated uri and email address parsers. (Resolves Issue #37.)
12416 + New emailAddress and uri parsers in Text.Pandoc.Shared.
12417 - uri parser uses parseURI from Network.URI.
12418 - emailAddress parser properly handles email addresses with periods
12419 in them.
12421 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
12422 and Text.Pandoc.Readers.Markdown.
12424 * Markdown reader:
12426 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
12427 nested in an Emph. (A '*' is only recognized as the end of the
12428 emphasis if it's not the beginning of a strong emphasis.)
12430 + Moved blockQuote parser before list parsers for performance.
12432 + Modified 'source' parser to allow backslash-escapes in URLs.
12433 So, for example, [my](/url\(1\)) yields a link to /url(1).
12434 Resolves Issue #34.
12436 + Disallowed links within links. (Resolves Issue #35.)
12437 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
12438 instead of hard-coding the inline parser takes an inline parser
12439 as a parameter.
12440 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
12441 - Removed unneeded inlineString function.
12442 - Added inlineNonLink parser, which is now used in the definition of
12443 reference.
12444 - Added inlineParsers list and redefined inline and inlineNonLink parsers
12445 in terms of it.
12446 - Added failIfLink parser.
12448 + Better handling of parentheses in URLs and quotation marks in titles.
12449 - 'source' parser first tries to parse URL with balanced parentheses;
12450 if that doesn't work, it tries to parse everything beginning with
12451 '(' and ending with ')'.
12452 - source parser now uses an auxiliary function source'.
12453 - linkTitle parser simplified and improved, under assumption that it
12454 will be called in context of source'.
12456 + Make 'block' conditional on strictness state, instead of using
12457 failIfStrict in block parsers. Use a different ordering of parsers
12458 in strict mode (raw HTML block before paragraph) for performance.
12459 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
12460 Simplified htmlBlock, since we know it's only called in strict
12461 mode.
12463 + Improved handling of raw HTML. (Resolves Issue #36.)
12464 - Tags that can be either block or inline (e.g. <ins>) should
12465 be treated as block when appropriate and as inline when
12466 appropriate. Thus, for example,
12467 <ins>hi</ins>
12468 should be treated as a paragraph with inline <ins> tags, while
12469 <ins>
12471 </ins>
12472 should be treated as a paragraph within <ins> tags.
12473 - Moved htmlBlock after para in list of block parsers. This ensures
12474 that tags that can be either block or inline get parsed as inline
12475 when appropriate.
12476 - Modified rawHtmlInline' so that block elements aren't treated as
12477 inline.
12478 - Modified para parser so that paragraphs containing only HTML tags and
12479 blank space are not allowed. Treat these as raw HTML blocks instead.
12481 + Fixed bug wherein HTML preceding a code block could cause it to
12482 be parsed as a paragraph. The problem is that the HTML parser
12483 used to eat all blank space after an HTML block, including the
12484 indentation of the code block. (Resolves Issue #39.)
12485 - In Text.Pandoc.Readers.HTML, removed parsing of following space
12486 from rawHtmlBlock.
12487 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
12488 indentation is eaten *only* on the first line after the HTML
12489 block. This means that in
12490 <div>
12491 foo
12492 <div>
12493 the foo won't be treated as a code block, but in
12494 <div>
12496 foo
12498 </div>
12499 it will. This seems the right approach for least surprise.
12501 * RST reader:
12503 + Fixed bug in parsing explicit links (resolves Issue #44).
12504 The problem was that we were looking for inlines until a '<' character
12505 signaled the start of the URL; so, if you hit a reference-style link,
12506 it would keep looking til the end of the document. Fix: change
12507 inline => (notFollowedBy (char '`') >> inline). Note that this won't
12508 allow code inlines in links, but these aren't allowed in resT anyway.
12510 + Cleaned up parsing of reference names in key blocks and links.
12511 Allow nonquoted reference links to contain isolated '.', '-', '_', so
12512 so that strings like 'a_b_' count as links.
12514 + Removed unnecessary check for following link in str.
12515 This is unnecessary now that link is above str in the definition of
12516 'inline'.
12518 * HTML reader:
12520 + Modified rawHtmlBlock so it parses </html> and </body> tags.
12521 This allows these tags to be handled correctly in Markdown.
12522 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
12523 since these are handled in parseHtml. (Resolves Issue #38.)
12525 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
12527 + Don't interpret contents of style tags as markdown.
12528 (Resolves Issue #40.)
12529 - Added htmlStyle, analagous to htmlScript.
12530 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
12531 - Moved "script" from the list of tags that can be either block or
12532 inline to the list of block tags.
12534 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
12535 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
12536 inline tags would be included in raw HTML blocks.
12538 + Modified anyHtmlBlockTag to test for (not inline) rather than
12539 directly for block. This allows us to handle e.g. docbook in
12540 the markdown reader.
12542 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
12543 Updated LaTeX reader test to use --parse-raw.
12545 * HTML writer:
12547 + Modified rules for automatic HTML header identifiers to
12548 ensure that identifiers begin with an alphabetic character.
12549 The new rules are described in README. (Resolves Issue #33.)
12551 + Changed handling of titles in HTML writer so you don't get
12552 "titleprefix - " followed by nothing.
12554 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
12555 spacing. Each block element is wrapped with either Pad or Reg.
12556 Pad'ed elements are guaranteed to have a blank line in between.
12558 * RST writer:
12560 + Refactored RST writer to use a record instead of a tuple for state,
12561 and to include options in state so it doesn't need to be passed as
12562 a parameter.
12564 + Use an interpreted text role to render math in restructuredText.
12565 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
12566 strategy.
12568 [ Recai Oktaş ]
12570 * Debian packaging changes:
12572 + Remove the empty 'include' directory in -dev package, which lintian
12573 complains about.
12574 + Bump Standarts-Version to 3.7.3.
12575 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
12576 lintian.
12578 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
12580pandoc (0.45) unstable; urgency=low
12582 [ John MacFarlane ]
12584 * Simplified parsing of reference keys and notes in markdown and RST
12585 readers: The Reference data structure from Text.Pandoc.Shared is no
12586 longer needed, since referenceKey and noteBlock parses return strings
12587 (as many blank lines as were occupied by the key or note) and update
12588 state themselves. getPosition and setPosition are now used to ensure
12589 that error messages will give the correct line number. This yields
12590 cleaner (and slightly faster) code, with more accurate parsing error
12591 messages.
12593 * Added new Math inline element:
12595 + Markdown and LaTeX readers now convert TeX math into Math elements,
12596 not TeX.
12597 + This allows math to be treated differently from raw TeX in output.
12598 TeX elements are no longer printed in output formats other than
12599 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
12601 * New default handling of math in writers:
12603 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
12604 parses raw TeX math and outputs a string of Pandoc inlines that
12605 tries to render it as far as possible using unicode characters,
12606 lapsing into literal TeX when needed.
12607 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
12608 and Docbook, if no other method for displaying math in HTML is
12609 specified. Enclosing $'s are no longer printed by default.
12610 + By default, math is put inside `<span class="math">`. This way it can be
12611 distinguished from the surrounding text, e.g. put in a different
12612 font.
12614 * New --gladtex and --mimetex options for display of math in HTML:
12616 + If --gladtex is specified, math is output between `<eq>` tags, so
12617 it can be processed by gladTeX.
12618 + If --mimetex is specified, math is put in `<img>` tags with a link
12619 to the mimetex CGI script (or any other script that takes TeX math
12620 as input and outputs an image). The URL of the script may be
12621 specified, but defaults to /cgi-bin/mimetex.cgi.
12622 + HTMLMathMethod structure in WriterOptions keeps track of how to
12623 display math in HTML output.
12624 + Updated README with a description of the four options for displaying
12625 math in HTML.
12627 * HTML reader:
12629 + Fixed bug: parser for minimized attributes should not swallow
12630 trailing spaces.
12631 + Simplified HTML attribute parsing.
12632 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
12633 longer needed. `<pre>` suffices. All HTML tags in the code block
12634 (e.g. for syntax highlighting) are skipped, because they are not
12635 portable to other output formats. A `<code>...</code>` block not
12636 surrounded by `<pre>` now counts as inline HTML, not a code block.
12637 + Remove just one leading and one trailing newline from contents of
12638 `<pre>...</pre>` in codeBlock parser.
12640 * Markdown reader:
12642 + Removed support for box-style block quotes.
12643 + Require space before title in links and references.
12644 This fixes a bug in parsing URLs like http://silly/url(withparen).
12645 + Improved and simplified setextHeader parser.
12646 + Fixed logic in smart quote parsing, adding some needed 'try'
12647 statements.
12648 + Fixed smart quote parsing so that unicode characters 8216 and 8217
12649 are recognized as single quotes, and 8220 and 8221 as double quotes.
12651 * RST reader:
12653 + Fixed bug in parsing of code blocks. Previously a full tab indent
12654 was required, but RST allows code to be indented any amount.
12655 Resolves Issue #27.
12656 + Allow field lists to be indented.
12657 + Parse the contents of field lists instead of treating as a raw string.
12658 + Represent field lists as definition lists instead of blockquotes.
12659 + Fixed bug in which metadata would be overridden if the document
12660 contained multiple field lists.
12661 + Parse fields associated with '.. image::' blocks, and use 'alt'
12662 field, if given, for image alt and title attributes.
12664 * LaTeX reader:
12666 + Modified specialChar so that '"' characters are parsed.
12667 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
12669 * HTML writer:
12671 + Changes in handling of math (see above).
12672 + Don't produce HTML for table of contents if there are
12673 no headers. (This would be an empty list, which is invalid XHTML.)
12675 * Markdown writer:
12677 + Don't print title attribute if title is empty. (This differs from
12678 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
12679 Gruber has indicated that he prefers this behavior.) Adjusted test
12680 suite accordingly.
12681 + Fixed incorrect line wrapping in paragraphs including hard line
12682 breaks. Resolves Issue #25.
12683 + Fixed bug in markdown writer: If an ordered list item began with
12684 a marker greater than 3 characters in width, and the item took more
12685 than one line, it would appear on the line after the list marker,
12686 e.g.:
12688 (12)
12689 My list item.
12690 Multiline.
12692 Now it works as follows:
12694 (12) My list item.
12695 Multiline.
12697 * RST writer
12699 + Fixed bug in RST writer's handling of ordered lists. Previously,
12700 list items with multiple lines would not always line up with
12701 single-line list items. Now, list items are nested the length of
12702 the list marker + 1. This looks better and ensures that list items
12703 all line up. (Note that list markers are padded to the length of
12704 the longest list marker in the series.)
12705 + Use 3-space indent for unordered lists.
12706 + If label for a link reference contains a colon, surround it by `
12707 signs so it won't be interpreted as the end of the link label.
12709 * LaTeX writer:
12711 + Cleaner output for footnotes. Footnotes now always begin on a new
12712 line, and the final } is on a line by itself only when it needs to
12713 be (i.e. only when the note ends with a Verbatim environment).
12714 + Added writer options to state, so state doesn't need to be passed as
12715 a parameter.
12716 + Text wrapping now provided, using wrapTeXIfNeeded.
12718 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
12719 (thanks to Idris Samawi Hamid for suggestions).
12721 + PrettyPrint module now used for output.
12722 + Writer options are now in state, so they don't have to be passed as
12723 a parameter.
12724 + Text wrapping now provided, using wrapTeXIfNeeded.
12725 + Better treatment of footnotes: footnotes are always on lines by
12726 themselves, and the final } is on a line by itself only when
12727 it needs to be (after \stoptyping).
12728 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
12729 depending on whether --number-sections option is selected.
12730 + Extra blank line inserted after \stopitemize
12731 + Use new, "official" definition of blockquote environment. Also, use
12732 blank line after \startblockquote to balance blank line at the end.
12733 + Both itemized and enumerated lists are now generated using
12734 \start-stopitemize, with appropriate options. Removed definitions
12735 of ltxenum and ltxitem, which are no longer needed. Provided
12736 defaults for itemized lists in the preamble. State keeps track of
12737 ordered list level, so that when default numbering is specified,
12738 the appropriate scheme can be used.
12739 + Changed \useurl to \useURL.
12740 + Changed link color from red to blue.
12741 + Use \subsubsubsubsection etc., since these are supported
12742 (up to at least sub x 5).
12744 * Text.Pandoc.Shared:
12746 + Save and restore position in parseFromString, so that accurate
12747 error messages can be given.
12748 + Improved efficiency of romanNumeral parser.
12749 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
12750 that footnotes occur on lines by themselves (to make them
12751 easier to see and move) and do not screw up line wrapping.
12753 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
12754 if present. Windows Notepad and other applications insert a
12755 BOM at the beginning of a UTF8 file.
12757 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
12758 addition to "\r\n" and '\n').
12760 * Added a writer option for wrapped text and a command-line option
12761 '--no-wrap', which disables text wrapping and minimizes whitespace
12762 in HTML. (Resolves Issue #26.)
12764 + Added support for '--no-wrap' to Main.hs.
12765 + Added wrapIfNeeded function to Text.Pandoc.Shared.
12766 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
12767 Markdown writers.
12768 + Added render and renderFragment helpers to HTML writer.
12770 * Modified html2markdown to run tidy only if the HTML cannot be
12771 parsed. Previously html2markdown piped all input through tidy
12772 before passing it to pandoc. This caused problems on certain pages
12773 (e.g. http://daringfireball.com/markdown) which have well-formed
12774 XHTML that causes tidy to choke. The solution is to pipe through
12775 tidy only if pandoc cannot parse the input by itself. This means
12776 that a temp file is now always used, even when input comes from a
12777 local file or standard input.
12779 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
12780 Text.Pandoc library.
12782 * pandoc.cabal:
12784 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
12785 6.8, pretty and containers must be added to Build-Depends, and it
12786 is desirable to use the -O2 compiler option.) Cabal configurations
12787 allows one to select options depending on the compiler version.
12788 For GHC 6.6, the splitBase option can be disabled.
12789 + pandoc.cabal.ghc66 is provided for users with older versions of
12790 Cabal, which do not support configurations.
12791 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
12792 '--enable-(executable|library)-profiling' is specified. Updated
12793 PROFILING instructions accordingly.
12795 * Makefile:
12797 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
12798 is copied to pandoc.cabal, and the old pandoc.cabal is copied
12799 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
12800 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
12801 will work properly with either GHC 6.6 or 6.8.
12802 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
12803 This is where current versions of Cabal put it.
12804 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
12805 + Removed dependency of templates on ./templates, which is circular
12806 now that templates is a subdirectory of the top-level.
12808 * MacPorts Portfile:
12810 + Modified to install the pandoc library in addition to programs.
12811 + Installation must be done manually rather than using Makefile's
12812 install-all.
12813 + Note that the library must be registered in the activate phase,
12814 after the library files have been copied out of the destroot.
12815 Cabal generates a 'register.sh' script that will do this.
12817 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
12818 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
12819 Closes: #445235
12821 * debian/rules: Converted to UTF-8.
12823 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
12825 * Updated ASCIIMathML.js to latest version.
12827 * Directory structure:
12829 + Moved everything from src into the top-level directory.
12830 + Changed references to source directory in Makefile and
12831 pandoc.cabal.*.
12832 + Moved ASCIIMathML.js, headers, and ui into templates directory.
12833 + Modified fillTemplates.pl to reflect new paths.
12835 [ Recai Oktaş ]
12837 * Makefile: Fixed the issue of having two copies of the library
12838 documentation under some usage scenarios.
12840 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
12841 and GHC_PKG configurable through the environment, to support
12842 unusual ghc installations. For example:
12843 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
12845 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
12847pandoc (0.44) unstable; urgency=low
12849 [ John MacFarlane ]
12851 * Fixed bug in HTML writer: when --toc was used, anchors were put around
12852 headers, which is invalid XHTML (block content within inline element).
12853 Now the anchors are put inside the header tags. Resolves Issue #23.
12855 * Added xmlns attribute to html element in html writer tests.
12856 This attribute is added by more recent versions of the
12857 xhtml library (>= 3000), and is required for valid XHTML.
12859 [ Recai Oktaş ]
12861 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
12862 command instead of 'runhaskell', which, on some platforms (such as s390,
12863 alpha, m68k), throws the following error:
12865 runhaskell Setup.hs configure --prefix=/usr
12866 ghc-6.6.1: not built for interactive use
12868 This causes a serious FTBFS bug. Closes: #440668.
12870 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
12872pandoc (0.43) unstable; urgency=low
12874 [ John MacFarlane ]
12876 * The focus of this release is performance. The markdown parser
12877 is about five times faster than in 0.42, based on benchmarks
12878 with the TextMate manual.
12880 * Main.hs: Replaced CRFilter and tabFilter with single function
12881 tabFilter, which operates on the whole string rather than breaking
12882 it into lines, and handles dos-style line-endings as well as tabs.
12884 * Added separate LaTeX reader and native reader tests; removed
12885 round-trip tests.
12887 * Text.Pandoc.Shared:
12889 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
12890 + General code cleanup (to elimante warnings when compiling with -Wall.)
12891 + Added 'wrapped' function, which helps wrap text into paragraphs,
12892 using the prettyprinting library.
12893 + Rewrote charsInBalanced and charsInBalanced'.
12894 - Documented restriction: open and close must be distinct characters.
12895 - Rearranged options for greater efficiency.
12896 - Bug fix: Changed inner call to charsInBalanced inside
12897 charsInBalanced' to charsInBalanced'.
12898 + anyLine now requires that the line end with a newline (not eof).
12899 This is a harmless assumption, since we always add newlines to the
12900 end of a block before parsing with anyLine, and it yields a 10% speed
12901 boost.
12902 + Removed unnecessary 'try' in anyLine.
12903 + Removed unneeded 'try' from romanNumeral parser.
12904 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
12905 + Removed unneeded 'try' in parseFromString.
12906 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
12907 like 'string'.)
12908 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
12909 'try' is not automatically applied to the 'end' parser. Added
12910 'try' in calls to 'enclosed' where needed. Slight speed increase.
12912 * Writers:
12914 + Replaced individual wrapping routines in RST, Man, and Markdown
12915 writers with 'wrapped' from Text.Pandoc.Shared.
12916 + Rewrote LaTeX writer to use the prettyprinting library,
12917 so we get word wrapping, etc.
12918 + Modified latex writer tests for new latex writer using prettyprinter.
12919 + Fixed bug in LaTeX writer: autolinks would not cause
12920 '\usepackage{url}' to be put in the document header. Also, changes
12921 to state in enumerated list items would be overwritten.
12922 + In Markdown writer, escape paragraphs that begin with ordered list
12923 markers, so they don't get interpreted as ordered lists.
12925 * Text.Pandoc.Reades.LaTeX:
12927 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
12928 numeral after "enum" in "setcounter" would consist entirely of
12929 "i"s. 'enumiv' is legitimate.
12930 + LaTeX command and environment names can't contain numbers.
12931 + Rearranged order of parsers in inline for slight speed improvement.
12932 + Added '`' to special characters and 'unescapedChar'.
12934 * Text.Pandoc.Readers.RST:
12936 + Removed unneeded try's in RST reader; also minor code cleanup.
12937 + Removed tabchar.
12938 + Rearranged parsers in inline (doubled speed).
12940 * Text.Pandoc.Readers.Markdown:
12942 + Skip notes parsing if running in strict mode. (This yields a nice
12943 speed improvement in strict mode.)
12944 + Simplify autolink parsing code, using Network.URI to test for
12945 URIs. Added dependency on network library to debian/control and
12946 pandoc.cabal.
12947 + More perspicuous definition of nonindentSpaces.
12948 + Removed unneeded 'try' in 'rawLine'.
12949 + Combined linebreak and whitespace into a new whitespace parser, to
12950 avoid unnecessary reparsing of space characters.
12951 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
12952 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
12953 + Use lookAhead in parsers for setext headers and definition lists
12954 to see if the next line begins appropriately; if not, don't waste
12955 any more time parsing.
12956 + Don't require blank lines after code block. (It's sufficient to
12957 end code block with a nonindented line.)
12958 + Changed definition of 'emph': italics with '_' must not
12959 be followed by an alphanumeric character. This is to help
12960 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
12961 `[LC<em>TYPE]:my</em>type`.
12962 + Improved Markdown.pl-compatibility in referenceLink: the two parts
12963 of a reference-style link may be separated by one space, but not
12964 more... [a] [link], [not] [a link].
12965 + Fixed markdown inline code parsing so it better accords with
12966 Markdown.pl: the marker for the end of the code section is a clump
12967 of the same number of `'s with which the section began, followed
12968 by a non-` character. So, for example,
12969 ` h ``` i ` -> `<code>h ``` i</code>`.
12970 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
12971 rules are slightly different.
12972 + Rewrote 'para' for greater efficiency.
12973 + Rewrote link parsers for greater efficiency.
12974 + Removed redundant 'referenceLink' in definition of inline (it's
12975 already in 'link').
12976 + Refactored escapeChar so it doesn't need 'try'.
12977 + Refactored hrule for performance in Markdown reader.
12978 + More intelligent rearranging of 'inline' so that most frequently
12979 used parsers are tried first.
12980 + Removed tabchar parser, as whitespace handles tabs anyway.
12982 * Text.Pandoc.CharacterReferences:
12984 + Refactored.
12985 + Removed unnecessary 'try's for a speed improvement.
12986 + Removed unnecessary '&' and ';' from the entity table.
12988 * Build process:
12990 + Makefile: Get VERSION from cabal file, not Main.hs.
12991 + Modified MacPorts Portfile:
12992 - Depend on haddock
12993 - Build and install libraries and library documentation in
12994 addition to pandoc executable
12995 - Added template item for md5 sum in Portfile.in.
12996 - Incorporated changes from MacPorts repository (r28278).
12997 + FreeBSD port: Don't try to generate distinfo in Makefile.
12998 It can be made using 'make makesum' in FreeBSD.
12999 + Make both freebsd and macports targets depend on tarball.
13001 * Website and documentation:
13003 + Updated INSTALL instructions.
13004 + Added pandocwiki demo to website.
13005 + Removed local references to Portfile, since pandoc is now in the
13006 MacPorts repository.
13008 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
13010pandoc (0.42) unstable; urgency=low
13012 [ John MacFarlane ]
13014 * Main.hs: Use utf8 conversion on the extra files loaded with
13015 the -H, -C, -B, and -A options. This fixes problems with unicode
13016 characters in these files.
13018 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
13019 Text.Pandoc.Readers.HTML and without it we get a linking error when
13020 using the library.
13022 * Markdown reader:
13024 + Added new rule for enhanced markdown ordered lists: if the list
13025 marker is a capital letter followed by a period (including a
13026 single-letter capital roman numeral), then it must be followed by
13027 at least two spaces. The point of this is to avoid accidentally
13028 treating people's initials as list markers: a paragraph might begin,
13029 "B. Russell was an English philosopher," and this shouldn't be
13030 treated as a list. Documented change in README.
13031 + Blocks that start with "p. " and a digit are no longer treated
13032 as ordered lists (it's a page number).
13033 + Added a needed 'try' to listItem.
13034 + Removed check for a following setext header in endline.
13035 A full test is too inefficient (doubles benchmark time), and the
13036 substitute we had before is not 100% accurate.
13037 + Don't use Code elements for autolinks if --strict specified.
13039 * LaTeX writer: When a footnote ends with a Verbatim environment, the
13040 close } of the footnote cannot occur on the same line or an error occurs.
13041 Fixed this by adding a newline before the closing } of every footnote.
13043 * HTML writer:
13044 + Removed incorrect "{}" around style information in HTML tables.
13045 Column widths now work properly in HTML.
13046 + If --strict option is specified (and --toc is not), don't include
13047 identifiers in headers, for better Markdown compatibility.
13049 * Build process:
13051 + Separated $(web_dest) and website targets.
13052 + In website, index.txt is now constructed from template index.txt.in.
13053 + Added freebsd target to Markefile. This creates the freebsd Makefile
13054 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
13055 from the repository.
13056 + Added macport target to Makefile. Portfile is built from template
13057 Portfile.in.
13058 + Removed OSX package targets. (Too many difficulties involving
13059 dependencies on dynamic libraries.)
13060 + More complete INSTALL instructions for all architectures.
13062 * Website:
13063 + Added a programming demo, pandocwiki.
13065 [ Recai Oktaş ]
13067 * Do not forget to close pandoc's ITP. Closes: #391666
13069 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
13071pandoc (0.41) unstable; urgency=low
13073 [ John MacFarlane ]
13075 * Fixed bugs in HTML reader:
13076 + Skip material at end *only if* `</html>` is present (previously,
13077 only part of the document would be parsed if an error was
13078 found; now a proper error message is given).
13079 + Added new constant eitherBlockOrInline with elements that may
13080 count either as block-level or as inline. Modified isInline and
13081 isBlock to take this into account.
13082 + Modified rawHtmlBlock to accept any tag (even an inline tag):
13083 this is innocuous, because rawHtmlBlock is tried only if a regular
13084 inline element can't be parsed.
13085 + Added a necessary 'try' in definition of 'para'.
13087 * Fixed bug in markdown ordered list parsing. The problem was that
13088 anyOrderedListStart did not check for a space following the
13089 ordered list marker. So in 'A.B. 2007' the parser would be
13090 expecting a list item, but would not find one, causing an error.
13091 Fixed a similar bug in the RST reader. Resolves Issue #22.
13093 * Refactored RST and Markdown readers using parseFromString.
13095 * LaTeX reader will now skip anything after \end{document}.
13097 * Fixed blockquote output in markdown writer: previously, block
13098 quotes in indented contexts would be indented only in the first
13099 line.
13101 * Added note to INSTALL about variations in versions of the xhtml
13102 library that can lead to failed tests (thanks to Leif LeBaron).
13104 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
13106pandoc (0.4) unstable; urgency=low
13108 [ John MacFarlane ]
13110 * Added two new output formats: groff man pages and ConTeXt. By
13111 default, output files with extensions ".ctx" and ".context" are
13112 assumed to be ConTeXt, and output files with single-digit extensions
13113 are assumed to be man pages.
13115 * Enhanced ordered lists (documented in README, under Lists):
13116 + The OrderedList block element now stores information about
13117 list number style, list number delimiter, and starting number.
13118 + The readers parse this information when possible.
13119 + The writers use this information to style ordered lists.
13120 + The enhancement can be disabled using the --strict option.
13122 * Added support for tables (with a new Table block element). Two kinds
13123 of tables are supported: a simple table with one-line rows, and a
13124 more complex variety with multiline rows. All output formats are
13125 supported, but only markdown tables are parsed at the moment. The
13126 syntax is documented in README.
13128 * Added support for definition lists (with a new DefinitionList block
13129 element). All output and input formats are supported. The syntax is
13130 documented in README.
13132 * Added support for superscripts and subscripts (with new Superscript
13133 and Subscript inline elements). All input and output
13134 formats. The syntax is documented in README.
13136 * Added support for strikeout (with a new Strikeout inline element).
13137 All input and output formats are supported. Thanks to Bradley Kuhn,
13138 who contributed a patch. The syntax is documented in README. Resolves
13139 Issue #18.
13141 * Added a --toc|--table-of-contents option. This causes an automatically
13142 generated table of contents (or an instruction that creates one) to
13143 be inserted at the beginning of the document. Not supported in S5,
13144 DocBook, or man page writers.
13146 * Modified the -m|--asciimathml option:
13148 + If an optional URL argument is provided, a link is inserted
13149 instead of the contents of the ASCIIMathML.js script.
13150 + Nothing is inserted unless the document actually contains
13151 LaTeX math.
13153 * Removed Blank block element as unnecessary.
13155 * Removed Key and Note blocks from the Pandoc data structure. All
13156 links are now stored as explicit links, and note contents are
13157 stored with the (inline) notes.
13159 + All link Targets are now explicit (URL, title) pairs; there
13160 is no longer a 'Ref' target.
13161 + Markdown and RST parsers now need to extract data from key and
13162 note blocks and insert them into the relevant inline elements.
13163 Other parsers have been simplified, since there is no longer any need
13164 to construct separate key and note blocks.
13165 + Markdown, RST, and HTML writers need to construct lists of
13166 notes; Markdown and RST writers need to construct lists of link
13167 references (when the --reference-links option is specified); and
13168 the RST writer needs to construct a list of image substitution
13169 references. All writers have been rewritten to use the State monad
13170 when state is required.
13171 + Several functions (generateReference, keyTable,
13172 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
13173 used by them) have been removed from Text.Pandoc.Shared, since
13174 they are no longer needed. New functions and data structures
13175 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
13176 added. The functions inTags, selfClosingTag, inTagsSimple, and
13177 inTagsIndented have been moved to the DocBook writer, since that
13178 is now the only module that uses them. NoteTable is now exported
13179 in Text.Pandoc.Shared.
13180 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
13181 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
13182 + Added writerNotes and writerReferenceLinks to WriterOptions.
13184 * Added Text.Pandoc module that exports basic readers, writers,
13185 definitions, and utility functions. This should export everything
13186 needed for most uses of Pandoc libraries. The haddock documentation
13187 includes a short example program.
13189 * Text.Pandoc.ASCIIMathML is no longer an exported module.
13191 * Added Text.Pandoc.Blocks module to help in printing markdown
13192 and RST tables. This module provides functions for working with
13193 fixed-width blocks of text--e.g., placing them side by side, as
13194 in a table row.
13196 * Refactored to avoid reliance on Haskell's Text.Regex library, which
13197 (a) is slow, and (b) does not properly handle unicode. This fixed
13198 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
13200 + Replaced 'gsub' with a general list function 'substitute'
13201 that does not rely on Text.Regex.
13202 + Rewrote extractTagType in HTML reader so that it doesn't use
13203 regexs.
13204 + In Markdown reader, replaced email regex test with a custom email
13205 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
13206 with a custom function isSelfClosingTag.
13207 + Modified Docbook writer so that it doesn't rely on Text.Regex for
13208 detecting 'mailto' links.
13209 + Removed escapePreservingRegex and reamped entity-handling
13210 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
13211 avoid reliance on Text.Regex (see below on character reference
13212 handling changes).
13214 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
13216 * Changed handling of XML entities. Entities are now parsed (and unicode
13217 characters returned) in the Markdown and HTML readers, rather than being
13218 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
13219 instead of entities for characters above 128. This makes the HTML and
13220 DocBook output much more readable and more easily editable.
13222 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
13223 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
13224 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
13225 Moved both functions to Text.Pandoc.Writers.Docbook.
13226 + Added characterReference parser to Text.Pandoc.CharacterReferences.
13227 This parses a string and return a unicode character.
13228 + Rewrote decodeCharacterReferences to use the new parser instead of
13229 Text.Regex.
13230 + Added new charRef parser for Markdown and HTML, which replaces the
13231 old 'entity' parser. Added '&' as a special character in Markdown reader.
13232 + Modified HTML and Markdown readers to call decodeEntities on all raw
13233 strings (e.g. authors, dates, link titles), to ensure that no
13234 unprocessed entities are included in the native representation of
13235 the document. (In the HTML reader, most of this work is done by a
13236 change in extractAttributeName.)
13237 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
13238 since a unicode non-breaking space is impossible to distinguish visually
13239 from a regular space. (Resolves Issue #3.)
13240 + Removed encodeEntitiesNumerical.
13241 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
13242 slight performance boost over the old association list.
13243 + Removed unneeded decodeEntities from 'str' parser in HTML and
13244 Markdown readers.
13246 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
13247 fromUTF8, for clarity.
13249 * Replaced old haskell98 module names replaced by hierarchical module
13250 names, e.g. List by Data.List. Removed haskell98 from dependencies
13251 in pandoc.cabal, and added mtl (needed for state monad). Substituted
13252 xhtml for html.
13254 * Refactored and cleaned up character escaping in writers, using
13255 backslashEscapes and escapeStringUsing functions.
13257 * Instead of adding "\n\n" to the end of an input string in Main.hs,
13258 this is now done in the readers. This makes the libraries behave
13259 the way you'd expect from the pandoc program. Resolves Issue #10.
13261 * URLs and email addresses in autolinks are now typeset as Code.
13263 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
13264 doesn't display the whole output unless there's a line ending.
13266 * Major code cleanup in all modules, for greater consistency, concision,
13267 and readability.
13269 * HTML reader:
13271 + Fixed several bugs (extractTagType, attribute parsing).
13272 + Remove Null blocks in lists of blocks when possible.
13273 + Allow HTML comments as raw HTML inline.
13275 * Markdown reader:
13277 + Ordered list items may no longer begin with uppercase letters, or
13278 letters greater than 'n'. (This prevents first initials and page
13279 reference, e.g. 'p. 400', from being parsed as beginning lists.)
13280 Also, numbers beginning list items may no longer end with ')',
13281 which is now allowed only after letters. Note: These changes
13282 may cause documents to be parsed differently. Users should take
13283 care in upgrading.
13284 + Changed autoLink parsing to conform better to Markdown.pl's
13285 behavior. `<google.com>` is not treated as a link, but
13286 `<http://google.com>`, `<ftp://google.com>`, and
13287 `<mailto:google@google.com>` are.
13288 + Cleaned up handling of embedded quotes in link titles. Now these are
13289 stored as a '"' character, not as '&quot;'.
13290 + Use lookAhead parser for the 'first pass' (looking for reference keys),
13291 instead of parsing normally, then using setInput to reset input. This
13292 yields a slight performance boost.
13293 + Fixed several bugs in smart quote recognition.
13294 + Fixed bug in indentSpaces (which didn't properly handle
13295 cases with mixed spaces and tabs).
13296 + Consolidated 'text', 'special', and 'inline' into 'inline'.
13297 + Fixed bug which allowed URL and title to be separated by multiple blank
13298 lines in links and reference keys. They can be on separate lines but
13299 can't have blank lines between them.
13300 + Correctly handle bracketed text inside inline footnotes and links,using
13301 new function inlinesInBalanced. Resolves Issue #14.
13302 + Fixed bug in footnotes: links in footnotes were not being
13303 processed. Solution: three-stage parse. First, get all the
13304 reference keys and add information to state. Next, get all the
13305 notes and add information to state. (Reference keys may be needed
13306 at this stage.) Finally, parse everything else.
13307 + Replaced named constants like 'emphStart' with literals.
13308 + Removed an extra occurance of escapedChar in definition of inline.
13310 * RST reader:
13312 + Allow the URI in a RST hyperlink target to start on the line
13313 after the reference key.
13314 + Added 'try' in front of 'string', where needed, or used a different
13315 parser. This fixes a bug where ````` would not be correctly parsed as
13316 a verbatim `.
13317 + Fixed slow performance in parsing inline literals in RST reader. The
13318 problem was that ``#`` was seen by 'inline' as a potential link or image.
13319 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
13320 Resolves Issue #8.
13321 + Use lookAhead instead of getInput/setInput in RST reader. Removed
13322 unneeded getState call, since lookAhead automatically saves and
13323 restores the parser state.
13324 + Allow hyperlink target URIs to be split over multiple lines, and
13325 to start on the line after the reference. Resolves Issue #7.
13326 + Fixed handling of autolinks.
13328 * LaTeX reader:
13330 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
13331 for clarity.
13332 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
13333 caret is \^{}, not \^ as before.
13334 + Added parsing for \url.
13335 + Parse \texttt{} as code, provided there's nothing fancy inside.
13337 * HTML writer:
13339 + Modified HTML writer to use the Text.XHtml library. This results
13340 in cleaner, faster code, and it makes it easier to use Pandoc in
13341 other projects, like wikis, which use Text.XHtml. Two functions are
13342 now provided, writeHtml and writeHtmlString: the former outputs an
13343 Html structure, the latter a rendered string. The S5 writer is also
13344 changed, in parallel ways (writeS5, writeS5String).
13345 + The Html header is now written programmatically, so it has been
13346 removed from the 'headers' directory. The S5 header is still
13347 needed, but the doctype and some of the meta declarations have
13348 been removed, since they are written programatically. This change
13349 introduces a new dependency on the xhtml package.
13350 + Fixed two bugs in email obfuscation involving improper escaping
13351 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
13352 Issue #9.
13353 + Fixed another bug in email obfuscation: If the text to be obfuscated
13354 contains an entity, this needs to be decoded before obfuscation.
13355 Thanks to thsutton for the patch. Resolves Issue #15.
13356 + Changed the way the backlink is displayed in HTML footnotes.
13357 Instead of appearing on a line by itself, it now generally
13358 appears on the last line of the note. (Exception: when the
13359 note does not end with a Plain or Para block.) This saves space
13360 and looks better.
13361 + Added automatic unique identifiers to headers:
13362 - The identifier is derived from the header via a scheme
13363 documented in README.
13364 - WriterState now includes a list of header identifiers and a table
13365 of contents in addition to notes.
13366 - The function uniqueIdentifiers creates a list of unique identifiers
13367 from a list of inline lists (e.g. headers).
13368 - This list is part of WriterState and gets consumed by blockToHtml
13369 each time a header is encountered.
13370 + Include CSS for .strikethrough class in header only if strikethrough
13371 text appears in the document.
13372 + If the 'strict' option is specified, elements that do not appear in
13373 standard markdown (like definition lists) are passed through as
13374 raw HTML.
13375 + Simplified treatment of autolinks, using pattern matching instead of
13376 conditionals.
13378 * Markdown writer:
13380 + Links in markdown output are now printed as inline links by default,
13381 rather than reference links. A --reference-links option has been added
13382 that forces links to be printed as reference links. Resolves Issue #4.
13383 + Use autolinks when possible. Instead of `[site.com](site.com)`,
13384 use `<site.com>`.
13386 * LaTeX writer:
13388 + Rewrote to use the State monad. The preamble now includes only those
13389 packages that are actually required, given the document's content.
13390 Thus, for example, if strikeout is not used, ulem is not required.
13391 Modified LaTeXHeader accordingly.
13392 + Modified LaTeX writer to insert '\,' between consecutive quotes.
13393 + Removed unused function tableRowColumnWidths.
13394 + Simplified code for escaping special characters.
13395 + Leave extra blank line after \maketitle.
13396 + Include empty '\author{}' when no author specified to avoid LaTeX
13397 errors.
13398 + Include fancyvrb code in header only if needed -- that is, only
13399 if there is actually code in a footnote.
13400 + Use \url{} for autolinks.
13401 + Include [mathletters] option in ucs package, so that basic unicode
13402 Greek letters will work correctly.
13404 * RST writer: Force blank line before lists, so that sublists will
13405 be handled correctly.
13407 * Docbook writer: Fixed a bug: email links with text, like
13408 [foo](me@bar.baz), were being incorrectly treated as autolinks.
13410 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
13411 Text.Pandoc.Shared.
13413 * Text.Pandoc.Shared:
13415 + Added defaultWriterOptions.
13416 + Added writerTableOfContents to WriterOptions.
13417 + Added writerIgnoreNotes option to WriterOptions. This is needed
13418 for processing header blocks for a table of contents, since notes on
13419 headers should not appear in the TOC.
13420 + Added prettyprinting for native Table format.
13421 + Removed some unneeded imports.
13422 + Moved escape and nullBlock parsers from
13423 Text.ParserCombinators.Pandoc, since the latter is for
13424 general-purpose parsers that don't depend on Text.Pandoc.Definition.
13425 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
13426 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
13427 writer, because HTML writer now uses these in constructing a table
13428 of contents.
13429 + Added clauses for new inline elements (Strikeout, Superscript,
13430 Subscript) to refsMatch.
13431 + Removed backslashEscape; added new functions escapeStringUsing and
13432 backslashEscapes.
13433 + Moved failIfStrict from markdown reader, since it is now used also
13434 by the HTML reader.
13435 + Added a 'try' to the definition of indentSpaces.
13436 + In definition of 'reference', added check to make sure it's not a note
13437 reference.
13438 + Added functions: camelCaseToHyphenated, toRomanNumeral,
13439 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
13440 charsInBalanced', withHorizDisplacement, romanNumeral
13441 + Fixed a bug in the anyLine parser. Previously it would parse an empty
13442 string "", but it should fail on an empty string, or we get an error
13443 when it is used inside "many" combinators.
13444 + Removed followedBy' parser, replacing it with the lookAhead parser from
13445 Parsec.
13446 + Added some needed 'try's before multicharacter parsers, especially in
13447 'option' contexts.
13448 + Removed the 'try' from the 'end' parser in 'enclosed', so that
13449 'enclosed' behaves like 'option', 'manyTill', etc.
13450 + Added lineClump parser, which parses a raw line block up to and
13451 including any following blank lines.
13452 + Renamed parseFromStr to parseFromString.
13453 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
13454 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
13455 in calling code.
13456 + Removed unneeded 'try' in blanklines.
13457 + Removed endsWith function and rewrote calling functions to use
13458 isSuffixOf instead.
13459 + Added >>~ combinator.
13460 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
13461 Space.
13463 * Refactored runtests.pl; added separate tests for tables.
13465 * Shell scripts:
13467 + Added -asxhtml flag to tidy in html2markdown. This will
13468 perhaps help the parser, which expects closing tags.
13469 + Modified markdown2pdf to run pdflatex a second time if --toc or
13470 --table-of-contents was specified; otherwise the table of
13471 contents won't appear.
13472 + Modified markdown2pdf to print a helpful message if the 'ulem'
13473 LaTeX package is required and not found.
13475 * Changes to build process:
13477 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
13478 is now required.
13479 + Removed cabalize and Pandoc.cabal.in. The repository now contains
13480 pandoc.cabal itself.
13481 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
13482 likes the cabal file to have the same name as the tarball.
13483 + Expanded and revised the package description in pandoc.cabal.
13484 Revised the package synopsis.
13485 + The tarball built by 'make tarball' now contains files built from
13486 templates (including man pages and shell scripts), so pandoc can
13487 be built directly using Cabal tools, without preprocessing.
13488 + Executable binaries are now stripped before installing.
13489 + Man pages are now generated from markdown sources, using pandoc's
13490 man page writer.
13491 + Use HTML version of README (instead of RTF) in Mac OS X installer.
13492 + Instead of testing for the existence of a pandoc symlink in build-exec,
13493 use ln -f.
13495 * Documentation:
13497 + Updated README and man pages with information on new features.
13498 + Updated INSTALL instructions with some useful clarifications and
13499 links.
13500 + Updated web content.
13502 * Added FreeBSD port.
13504 [ Recai Oktaş ]
13506 * debian/control:
13508 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
13509 libghc6-xhtml-dev. Removed libghc6-html-dev.
13510 + Suggest texlive-latex-recommended | tetex-extra instead of
13511 tetex-bin. This brings in fancyvrb and unicode support.
13513 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
13515pandoc (0.3) unstable; urgency=low
13517 [ John MacFarlane ]
13519 * Changes in pandoc options:
13521 + Allow options to follow or precede arguments.
13522 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
13523 + Added '--strict' option.
13524 + Added '-o/--output' option.
13525 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
13526 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
13527 error conditions. This is helpful for writing wrappers.
13528 + Added copyright message to '-v' output, modeled after FSF messages.
13529 + Reformatted usage message so that it doesn't wrap illegibly.
13530 + Removed extra blanks after '-h' and '-D' output.
13532 * Added docbook writer.
13534 * Added implicit setting of default input and output format based
13535 on input and output filename extensions. These defaults are
13536 overridden if explicit input and output formats are specified using
13537 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
13538 and README.
13540 * Allow ordered list items to begin with (single) letters, as well
13541 as numbers. The list item marker may now be terminated either by
13542 '.' or by ')'. This extension to standard markdown is documented
13543 in README.
13545 * Revised footnote syntax. (See README for full details.) The
13546 '[^1]' format now standard in markdown extensions is supported,
13547 as are inline footnotes with this syntax: `^[My note.]`.
13548 The earlier footnote syntax `^(1)` is no longer supported.
13550 * Improved HTML representation of footnotes. All footnotes
13551 are now auto-numbered and appear in an ordered list at the
13552 end of the HTML document. Since the default appearance is now
13553 acceptable, the old footnote styles have been removed from the
13554 HTML header.
13556 * Bug fixes:
13558 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
13559 These readers ran 'runParser' on processed chunks of text to handle
13560 embedded block lists in lists and quotation blocks. But then
13561 any changes made to the parser state in these chunks was lost,
13562 as the state is local to the parser. So, for example, footnotes
13563 didn't work in quotes or list items. The fix: instead of calling
13564 runParser on some raw text, use setInput to make it the input, then
13565 parse it, then use setInput to restore the input to what it was
13566 before. This is shorter and more elegant, and it fixes the problem.
13567 + Fixed bug in notFollowedBy' combinator (adding 'try' before
13568 'parser'). Adjusted code that uses this combinator accordingly.
13569 + Fixed bug in RTF writer that caused improper indentation on
13570 footnotes occurring in indented blocks like lists.
13571 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
13572 and date are parsed correctly. Everything else in the preamble
13573 is skipped.
13574 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
13575 line to count as escaped whitespace.
13576 + Modified LaTeX reader to produce inline links rather than reference
13577 links. Otherwise, links in footnotes aren't handled properly.
13578 + Fixed handling of titles in links in Markdown reader, so that
13579 embedded quotation marks are now handled properly.
13580 + Fixed Markdown reader's handling of embedded brackets in links.
13581 + Fixed Markdown reader so that it only parses bracketed material
13582 as a reference link if there is actually a corresponding key.
13583 + Revised inline code parsing in Markdown reader to conform to
13584 markdown standard. Now any number of `s can begin inline code,
13585 which will end with the same number of `s. For example, to
13586 have two backticks as code, write ``` `` ```. Modified Markdown
13587 writer accordingly.
13588 + Fixed bug in text-wrapping routine in Markdown and RST writers.
13589 Now LineBreaks no longer cause wrapping problems.
13590 + Supported hexadecimal numerical entity references as well as
13591 decimal ones.
13592 + Fixed bug in Markdown reader's handling of underscores and other
13593 inline formatting markers inside reference labels: for example,
13594 in '[A_B]: /url/a_b', the material between underscores was being
13595 parsed as emphasized inlines.
13596 + Changed Markdown reader's handling of backslash escapes so that
13597 only non-alphanumeric characters can be escaped. Strict mode
13598 follows Markdown.pl in only allowing a select group of punctuation
13599 characters to be escaped.
13600 + Modified HTML reader to skip a newline following a `<br>` tag.
13601 Otherwise the newline will be treated as a space at the beginning
13602 of the next line.
13604 * Made handling of code blocks more consistent. Previously, some
13605 readers allowed trailing newlines, while others stripped them.
13606 Now, all readers strip trailing newlines in code blocks. Writers
13607 insert a newline at the end of code blocks as needed.
13609 * Modified readers to make spacing at the end of output more consistent.
13611 * Minor improvements to LaTeX reader:
13613 + '\thanks' now treated like a footnote.
13614 + Simplified parsing of LaTeX command arguments and options.
13615 commandArgs now returns a list of arguments OR options (in
13616 whatever order they appear). The brackets are included, and
13617 a new stripFirstAndLast function is provided to strip them off
13618 when needed. This fixes a problem in dealing with \newcommand
13619 and \newenvironment.
13621 * Revised RTF writer:
13623 + Default font is now Helvetica.
13624 + An '\f0' is added to each '\pard', so that font resizing works
13625 correctly.
13627 * Moved handling of "smart typography" from the writers to the Markdown
13628 and LaTeX readers. This allows great simplification of the writers
13629 and more accurate smart quotes, dashes, and ellipses. DocBook can
13630 now use `<quote>`. The '--smart' option now toggles an option in
13631 the parser state rather than a writer option. Several new kinds
13632 of inline elements have been added: Quoted, Ellipses, Apostrophe,
13633 EmDash, EnDash.
13635 * Changes in HTML writer:
13637 + Include title block in header even when title is null.
13638 + Made javascript obfuscation of emails even more obfuscatory,
13639 by combining it with entity obfuscation.
13641 * Changed default ASCIIMathML text color to black.
13643 * Test suite:
13645 + Added --strip-trailing-cr option to diff in runtests.pl, for
13646 compatibility with Windows.
13647 + Added regression tests with footnotes in quote blocks and lists.
13649 * Makefile changes:
13651 + osx-pkg target creates a Mac OS X package (directory). New osx
13652 directory contains files needed for construction of the package.
13653 + osx-dmg target creates a compressed disk image containing the package.
13654 + win-pkg target creates Windows binary package.
13655 + tarball target creates distribution source tarball.
13656 + website target generates pandoc's website automatically, including
13657 demos. New 'web' directory containts files needed for construction
13658 of the website (which will be created as the 'pandoc' subdirectory
13659 of 'web').
13660 + Makefile checks to see if we're running Windows/Cygwin; if so,
13661 a '.exe' extension is added to each executable in EXECS.
13663 * Removed all wrappers except markdown2pdf and html2markdown.
13665 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
13666 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
13667 option and disables other options.
13669 * Added code to html2markdown that tries to determine the character
13670 encoding of an HTML file, by parsing the "Content-type" meta tag.
13672 + If the encoding can't be determined, then if the content is local,
13673 the local encoding is used; if it comes from a URL, UTF-8 is used
13674 by default.
13675 + If input is from STDIN, don't try to determine character encoding.
13676 + Encoding can be specified explicitly using '-e' option.
13678 * Improved warning messages in wrappers:
13680 + Print warning if iconv not available
13681 + More user-friendly error messages in markdown2pdf, when
13682 pdflatex fails.
13684 * Code cleanup:
13686 + Renamed 'Text/Pandoc/HtmlEntities' module to
13687 'Text/Pandoc/Entities'. Also changed function names so as
13688 not to be HTML-specific.
13689 + Refactored SGML string escaping functions from HTML and Docbook
13690 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
13691 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
13692 used anywhere.
13693 + Removed splitBySpace and replaced it with a general, polymorphic
13694 splitBy function.
13695 + Refactored LaTeX reader for clarity (added isArg function).
13696 + Converted some CR's to LF's in src/ui/default/print.css.
13697 + Added license text to top of source files.
13698 + Added module data for haddock to source files.
13699 + Reformatted code for consistency.
13701 * Rewrote documentation and man pages. Split README into INSTALL
13702 and README.
13704 * Split LICENSE into COPYING and COPYRIGHT.
13706 * Removed TODO, since we now maintain ToDo on the wiki.
13708 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
13709 duplication.
13711 [ Recai Oktaş ]
13713 * Revamped build process to conform to debian standards and created
13714 a proper debian package. Closes: #391666.
13716 * Modified build process to support GHC 6.6.
13718 + The package can still be compiled using GHC 6.4.2, though because
13719 of dependencies the "make deb" target works only with GHC 6.6+.
13720 + The script 'cabalize' is used to create an appropriate
13721 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
13722 Cabal versions.
13724 * Refactored template processing (fillTemplates.pl).
13726 * Modified wrapper scripts to make them more robust and portable.
13727 To avoid code duplication and ensure consistency, wrappers are
13728 generated via a templating system from templates in src/wrappers.
13730 + Wrappers now accept multiple filenames, when appropriate.
13731 + Spaces and tabs allowed in filenames.
13732 + getopts shell builtin is used for portable option parsing.
13733 + Improved html2markdown's web grabber code, making it more robust,
13734 configurable and verbose. Added '-e', '-g' options.
13736 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
13738pandoc (0.2) unstable; urgency=low
13740 * Fixed unicode/utf-8 translation
13742 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
13744pandoc (0.1) unstable; urgency=low
13746 * Initial creation of debian package
13748 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400