git.iko.soy/typeable/pandoc
on relude help sign in
typeable/pandoc/changelog.md
19599 lines 842 kB history raw
1# Revision history for pandoc
3## pandoc 2.12 (2021-03-08)
5 * `--resource-path` now accumulates if specified multiple
6 times (#6152). Resource paths specified later on the command line are
7 prepended to those specified earlier. Thus,
8 `--resource-path foo --resource-path bar:baz` is equivalent to
9 `--resource-path bar:bas:foo`. (The previous behavior was
10 for the last `--resource-path` to replace all the rest.)
11 `resource-path` in defaults files behaves the same way: it
12 will be prepended to the resource path set by earlier
13 command line options or defaults files. This change
14 facilitates the use of multiple defaults files: each can
15 specify a directory containing resources it refers to
16 without clobbering the resource paths set by the others.
18 * Allow defaults files to refer to the home directory, the
19 user data directory, and the directory containing the defaults file
20 itself (#5871, #5982, #5977). In fields that expect file paths
21 (and only in these fields),
23 + `${VARIABLE}` will expand to the value of the environment variable
24 `VARIABLE` (and in particular `${HOME}` will expand to the path
25 of the home directory). A warning will be raised for undefined
26 variables.
27 + `${USERDATA}` will expand to the path of the user data
28 directory in force when the defaults file is being processed.
29 + `${.}` will expand to the directory containing the defaults file.
30 (This allows default files to be placed in a directory containing
31 resources they make use of.)
33 * When downloading content from URL arguments, be sensitive to
34 the character encoding (#5600). We can properly handle UTF-8 and latin1
35 (ISO-8859-1); for others we raise an error. Fall back to latin1 if
36 no charset is given in the mime type and UTF-8 decoding fails.
38 * Allow abbreviations that don't end in a period to be
39 specified using `--abbreviations` (#7124).
41 * Add new unexported module Text.Pandoc.XML.Light, as well
42 as Text.Pandoc.XML.Light.Types, Text.Pantoc.XML.Light.Proc,
43 Text.Pandoc.XML.Light.Output. (Closes #6001, #6565, #7091).
45 This module exports definitions of `Element` and `Content`
46 that are isomorphic to xml-light's, but with Text
47 instead of String. This allows us to keep most of the code in existing
48 readers that use xml-light, but avoid lots of unnecessary allocation.
50 We also add versions of the functions from xml-light's
51 Text.XML.Light.Output and Text.XML.Light.Proc that operate on our
52 modified XML types, and functions that convert xml-light types to our
53 types (since some of our dependencies, like texmath, use xml-light).
55 We export functions that use xml-conduit's parser to produce an
56 `Element` or `[Content]`. This allows existing pandoc code to use
57 a better parser without much modification.
59 The new parser is used in all places where xml-light's parser was
60 previously used. Benchmarks show a significant performance improvement
61 in parsing XML-based formats (with docbook, opml, jats, and docx
62 almost twice as fast, odt and fb2 more than twice as fast).
64 In addition, the new parser gives us better error reporting than
65 xml-light. We report XML errors, when possible, using the new
66 `PandocXMLError` constructor in `PandocError`.
68 These changes revealed the need for some changes in the tests. The
69 docbook-reader.docbook test lacked definitions for the entities it used;
70 these have been added. And the docx golden tests have been updated,
71 because the new parser does not preserve the order of attributes.
73 * DocBook reader:
75 + Avoid expensive tree normalization step, as it is not necessary
76 with the new XML parser.
77 + Support `informalfigure` (#7079) (Nils Carlson).
79 * Docx reader:
81 + Use Map instead of list for Namespaces. This gives a speedup of
82 about 5-10%. With this and the XML parsing changes, the docx reader
83 is now about twice as fast as in the previous release.
85 * HTML reader:
87 + Small performance tweaks.
88 + Also, remove exported class `NamedTag(..)` [API change]. This was just
89 intended to smooth over the transition from String to Text and is no
90 longer needed.
91 + As a result, the functions `isInlineTag` and `isBlockTag`
92 are no longer polymorphic; they apply to a `Tag Text` [API change].
93 + Do a lookahead to find the right parser to use. This takes
94 benchmarks from 34ms to 23ms, with less allocation.
95 + Fix bad handling of empty `src` attribute in `iframe` (#7099).
96 If `src` is empty, we simply skip the `iframe`.
97 If `src` is invalid or cannot be fetched, we issue a warning
98 nd skip instead of failing with an error.
100 * JATS reader:
102 + Avoid tree normalization, which is no longer necessary given the
103 new XML parser.
105 * LaTeX reader:
107 + Don't export `tokenize`, `untokenize` [API change]. These are internal
108 implementation details, which were only exported for testing.
109 They don't belong in the public API.
110 + Improved efficiency of the parser. With these changes the reader
111 is almost twice as fast as in the last release in our benchmarks.
112 + Code cleanup, removing some unnecessary things.
113 + Rewrite `withRaw` so it doesn't rely on fragile assumptions
114 about token positions (which break when macros are expanded)
115 (#7092). This requires the addition of `sEnableWithRaw` and
116 `sRawTokens` in `LaTeXState`, and a new combinator `disablingWithRaw`
117 to disable collecting of raw tokens in certain contexts.
118 Add `parseFromToks` to Text.Pandoc.Readers.LaTeX.Parsing.
119 Fix parsing of single character tokens so it doesn't mess
120 up the new raw token collecting. These changes slightly increase
121 allocations and have a small performance impact.
122 + Handle some bibtex/biblatex-specific commands that used to be
123 dealt with in pandoc-citeproc (#7049).
124 + Optimize `satisfyTok`, avoiding unnecessary macro expansion steps.
125 Benchmarks after this change show 2/3 of the run time and 2/3 of the
126 allocation of the Feb. 10 benchmarks.
127 + Removed `sExpanded` in state. This isn't actually needed and checking
128 it doesn't change anything.
129 + Improve `braced'`. Remove the parameter, have it parse the
130 opening brace, and make it more efficient.
131 + Factor out pieces of the LaTeX reader to make the module smaller.
132 This reduces memory demands when compiling. Created
133 Text.Pandoc.Readers.{LaTeX,Math,Citation,Table,Macro,Inline}.
134 Changed Text.Pandoc.Readers.LaTeX.SIunitx to export a command map
135 instead of individual commands.
136 + Handle table cells containing `&` in `\verb` (#7129).
138 * Make Text.Pandoc.Readers.LaTeX.Types an unexported module [API change].
140 * Markdown reader:
142 + Improved handling of mmd link attributes in references (#7080).
143 Previously they only worked for links that had titles.
144 + Improved efficiency of the parser (benchmarks show a 15% speedup).
146 * OPML reader:
148 + Avoid tree normalization, which is no longer necessary with the
149 new XML parser.
151 * ODT reader:
153 + Finer-grained errors on parse failure (#7091).
154 + Give more information if the zip container can't be unpacked.
156 * Org reader:
158 + Support `task_lists` extension (Albert Krewinkel, #6336).
159 + Fix bug in org-ref citation parsing (Albert Krewinkel, #7101).
160 The org-ref syntax allows to list multiple citations separated by
161 comma. Previously commas were accepted as part of the citation id,
162 so all citation lists were parsed as one single citation.
164 * RST reader:
166 + Use `getTimestamp` instead of `getCurrentTime` to fetch timestamp.
167 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
168 + RST reader: fix handling of header in CSV tables (#7064).
169 The interpretation of this line is not affected by the delim option.
171 * Jira reader:
173 + Modified the Doc parser to skip leading blank lines. This fixes
174 parsing of documents which start with multiple blank lines (Albert
175 Krewinkel, #7095).
176 + Prevent URLs within link aliases to be treated as autolinks (Albert
177 Krewinkel, #6944).
179 * Text.Pandoc.Shared
181 + Remove formerly exported functions that are no longer used in the
182 code base: `splitByIndices`, `splitStringByIndicies`, `substitute`,
183 and `underlineSpan` (which had been deprecated in April 2020)
184 [API change].
185 + Export `handleTaskListItem` (Albert Krewinkel) [API change].
186 + Change `defaultUserDataDirs` to `defaultUserDataDir` [API
187 change]. We determine what is the default user data directory
188 by seeing whether the XDG directory and/or legacy
189 directory exist.
191 * BibTeX writer:
193 + BibTeX writer: use doclayout and doctemplate. This change allows
194 bibtex/biblatex output to wrap as other formats do,
195 depending on the settings of `--wrap` and `--columns` (#7068).
197 * CSL JSON writer:
199 + Output `[]` if no references in input, instead of raising a
200 PandocAppError as before.
202 * Docx writer:
204 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
205 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
207 * EPUB writer:
209 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
210 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds (#7093).
211 This does not suffice to fully enable reproducible in EPUB, since
212 a unique id is still being generated for each build.
213 + Support `belongs-to-collection` metadata (#7063) (Nick Berendsen).
215 * JATS writer:
217 + Escape special chars in reference elements (Albert Krewinkel).
218 Prevents the generation of invalid markup if a citation element
219 contains an ampersand or another character with a special meaning
220 in XML.
222 * Jira writer:
224 + Use Span identifiers as anchors (Albert Krewinkel).
225 + Use `{noformat}` instead of `{code}` for unknown languages (Albert
226 Krewinkel). Code blocks which are not marked as a language supported
227 by Jira are rendered as preformatted text via `{noformat}` blocks.
229 * LaTeX writer:
231 + Adjust hypertargets to beginnings of paragraphs (#7078).
232 Use `\vadjust pre` so that the hypertarget takes you to the beginning
233 of the paragraph rather than one line down.
234 This makes a particular difference for links to citations using
235 `--citeproc` and `link-citations: true`.
236 + Change BCP47 lang tag from `jp` to `ja` (Mauro Bieg, #7047).
237 + Use function instead of map for accent lookup (should be
238 more efficient).
239 + Split the module to make it easier to compile on low-memory
240 systems: added Text.Pandoc.Writers.LaTeX.{Util,Citation,Lang}.
242 * Markdown writer:
244 + Handle math right before digit. We insert an HTML comment to
245 avoid a `$` right before a digit, which pandoc will not recognize
246 as a math delimiter.
247 + Split the module to make it easier to compile on low-memory
248 systems: added Text.Pandoc.Writers.Markdown.{Types,Inline}.
250 * ODT writer:
252 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
253 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
254 + Update default ODT style (Lorenzo). Previously, the "First paragraph"
255 style inherited from "Standard" but not from "Text body." Now
256 it is adjusted to inherit from "Text body", to avoid some ugly
257 spacing issues. It may be necessary to update a custom `reference.odt`
258 in light of this change.
260 * Org writer:
262 + Support `task_lists` extension (Albert Krewinkel, #6336).
264 * Pptx writer:
266 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
267 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
269 * JATS templates: tag `author.name` as `string-name` (Albert Krewinkel).
270 The partitioning the components of a name into surname, given names,
271 etc. is not always possible or not available. Using `author.name`
272 allows to give the full name as a fallback to be used when
273 `author.surname` is not available.
275 * Add default templates for bibtex and biblatex, so that
276 the variables `header-include`, `include-before`, `include-after`
277 (or alternatively the command line options
278 `--include-in-header`, `--include-before-body`, `--include-after-body`)
279 may be used.
281 * LaTeX template:
283 + Update to iftex package (#7073) (Andrew Dunning)
284 + Wrap url colours in braces (#7121) (Loïc Grobol).
286 * revealjs template: Add 'center' option for vertical slide centering.
287 (maurerle, #7104).
289 * Text.Pandoc.XML: Improve efficiency of `fromEntities`.
291 * Text.Pandoc.MIME
293 + Add exported function `getCharset` [API change].
295 * Text.Pandoc.UTF8: change IO functions to return Text, not String
296 [API change]. This affects `readFile`, `getContents`, `writeFileWith`,
297 `writeFile`, `putStrWith`, `putStr`, `putStrLnWith`, `putStrLn`.
298 `hPutStrWith`, `hPutStr`, `hPutStrLnWith`, `hPutStrLn`, `hGetContents`.
299 This avoids the need to uselessly create a linked list of characters
300 when emiting output.
302 * Text.Pandoc.App
304 + Add `parseOptionsFromArgs` [API change, new exported function].
305 + Add fields for CSL options to `Opt` [API change]:
306 `optCSL`, `optbibliography`, `optCitationAbbreviations`.
308 * Text.Pandoc.Citeproc.BibTeX
310 + `Text.Pandoc.Citeproc.writeBibTeXString` now returns
311 `Doc Text` instead of `Text` (#7068).
312 + Correctly handle `pages` (= `page` in CSL) (#7067).
313 + Correctly handle BibLaTeX `langid` (= `language` in CSL, #7067).
314 + In BibTeX output, protect foreign titles since there's no language
315 field (#7067).
316 + Clean up BibTeX parsing (#7049). Previously there was a messy code
317 path that gave strange results in some cases, not passing through raw
318 tex but trying to extract a string content. This was an artefact of
319 trying to handle some special bibtex-specific commands in the BibTeX
320 reader. Now we just handle these in the LaTeX reader and simplify
321 parsing in the BibTeX reader. This does mean that more raw tex will
322 be passed through (and currently this is not sensitive to the
323 `raw_tex` extension; this should be fixed).
325 * Text.Pandoc.Citeproc.MetaValue
327 + Correctly parse "raw" date value in markdown references metadata.
328 (See jgm/citeproc#53.)
330 * Text.Pandoc.Citeproc
332 + Use https URLs for links (Salim B, #7122).
334 * Text.Pandoc.Class
336 + Add `getTimestamp` [API change]. This attempts to read the
337 `SOURCE_DATE_EPOCH` environment variable and parse a UTC time
338 from it (treating it as a unix date stamp, see
339 https://reproducible-builds.org/specs/source-date-epoch/). If the
340 variable is not set or can't be parsed as a unix date stamp, then the
341 function returns the current date.
343 * Text.Pandoc.Error
345 + Add `PandocUnsupportedCharsetError` constructor for
346 `PandocError` [API change].
347 + Export `renderError` [API change].
348 + Refactor `handleError` to use `renderError`. This allows us render
349 error messages without exiting.
351 * Text.Pandoc.Extensions
353 + `Ext_task_lists` is now supported by org (and turned
354 on by default) (Albert Krewinkel, #6336).
355 + Remove `Ext_fenced_code_attributes` from allowed commonmark attributes
356 (#7097). This attribute was listed as allowed, but it didn't actually
357 do anything. Use `attributes` for code attributes and more.
359 * Lua subsystem:
361 + Always load built-in Lua scripts from default data-dir (Albert
362 Krewinkel). The Lua modules `pandoc` and `pandoc.List` are now always
363 loaded from the system's default data directory. Loading from a
364 different directory by overriding the default path, e.g. via
365 `--data-dir`, is no longer supported to avoid unexpected behavior
366 and to address security concerns.
367 + Add module "pandoc.path" (Albert Krewinkel, #6001, #6565).
368 The module allows to work with file paths in a convenient and
369 platform-independent manner.
370 + Use strict evaluation when retrieving AST value from the stack
371 (Albert Krewinkel, #6674).
373 * Text.Pandoc.PDF
375 + Disable `smart` extension when building PDF via LaTeX.
376 This is to prevent accidental creation of ligatures like
377 `` ?` `` and `` !` `` (especially in languages with quotations like
378 German), and similar ligature issues. (See jgm/citeproc#54.)
380 * Text.Pandoc.CSV:
382 + Fix parsing of unquoted values (#7112). Previously we didn't allow
383 unescaped quotes in unquoted values, but they are allowed
384 in CSV.
386 * Test suite:
388 + Use a more robust method for testing the executable. Many
389 of our tests require running the pandoc executable. This
390 is problematic for a few different reasons. First,
391 cabal-install will sometimes run the test suite after
392 building the library but before building the executable,
393 which means the executable isn't in place for the tests.
394 One can work around that by first building, then building
395 and running the tests, but that's fragile. Second, we
396 have to find the executable. So far, we've done that using
397 a function `findPandoc` that attempts to locate it
398 relative to the test executable (which can be located
399 using findExecutablePath). But the logic here is delicate
400 and work with every combination of options. To solve both
401 problems, we add an `--emulate` option to the
402 `test-pandoc` executable. When `--emulate` occurs as the
403 first argument passed to `test-pandoc`, the program simply
404 emulates the regular pandoc executable, using the rest of
405 the arguments (after `--emulate`). Thus, `test-pandoc
406 --emulate -f markdown -t latex` is just like `pandoc -f
407 markdown -t latex`. Since all the work is done by library
408 functions, implementing this emulation just takes a couple
409 lines of code and should be entirely reliable. With this
410 change, we can test the pandoc executable by running the
411 test program itself (locatable using `findExecutablePath`)
412 with the `--emulate` option. This removes the need for the
413 fragile `findPandoc` step, and it means we can run our
414 integration tests even when we're just building the
415 library, not the executable. [Note: part of this change
416 involved simplifying some complex handling to set
417 environment variables for dynamic library paths. I have
418 tested a build with `--enable-dynamic-executable`, and it
419 works, but further testing may be needed.]
420 + Print accurate location if a test fails (Albert
421 Krewinkel). Ensures that tasty-hunit reports the location
422 of the failing test instead of the location of the helper
423 `test` function.
425 * Documentation: Update URLs and use `https` where possible (#7122,
426 Salim B).
428 * Add `doc/libraries.md`, a description of libraries that support pandoc.
430 * MANUAL.txt
432 + MANUAL: block-level formatting is not allowed in line blocks (#7107).
433 + Clarify `tex_math_dollars` extension. Note that no blank lines
434 are allowed between the delimiters in display math.
435 + Add MANUAL section on reproducible builds.
436 + Document no template fallback for absolute path (#7077, Nixon
437 Enraght-Moony.)
438 + Improve docs for cite-method.
439 + Update README and man page.
441 * Makefile: in `make bench`, create CSV files for comparison and compare
442 against previous benchmark run. Add timestamp to CSV filenames.
444 * cabal.project: don't explicitly set -trypandoc.
445 If we do, this can't be overridden on the cabal command line.
447 * doc/lua-filters.md: improve documentation for
448 `pandoc.mediabag.insert`, `pandoc.mediabag.fetch`,
449 `directory`, `normalize` (Albert Krewinkel).
451 * Allow base64-bytestring-1.2.* (Dmitrii Kovanikov)
453 * Require jira-wiki-markup 1.3.3 (Albert Krewinkel)
455 * Require citeproc 0.3.0.8, which correctly titlecases when titles
456 contain non-ASCII characters.
458 * Use skylighting 0.10.4. This version of skylighting uses xml-conduit
459 rather than hxt. This speeds up parsing of XML syntax definitions
460 fourfold, and removes four packages from pandoc's dependency graph:
461 hxt-charproperties, hxt-unicode, hxt-regex-xmlschema, hxt.
463 * Add script `tools/parseTimings.pl` to help pin down which
464 modules take the most time and memory to compile.
466 * Avoid unnecessary use of NoImplicitPrelude pragma (#7089) (Albert
467 Krewinkel)
469 * Benchmarks
471 + Use the lighter-weight tasty-bench instead of criterion.
472 + Run writer benchmarks for binary formats too.
473 + Alphabetize benchmarks.
474 + Don't run benchmarks for bibliography formats
475 (yet; we need a special input for them).
476 + Show allocation data
477 + Clean up benchmark code.
478 + Allow specifying patterns using `-p blah'.
480 * trypandoc: add 2 second timeout.
482 * Use `-split-sections` in creating linux release binary.
483 This reduces executable size significantly (by about 30%).
485 * Remove `weigh-pandoc`. It's not really useful any more, now that our
486 regular benchmarks include data on allocation.
488 * Improve linux package build process and add script to
489 automate building an arm64 binary package.
492## pandoc 2.11.4 (2021-01-22)
494 * Add `biblatex`, `bibtex` as output formats (closes #7040).
496 * Recognize more extensions as markdown by default (#7034):
497 `mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`.
499 * Implement defaults file inheritance (#6924, David Martschenko).
500 Allow defaults files to inherit options from other defaults files by
501 specifying them with the following syntax:
502 `defaults: [list of defaults files or single defaults file]`.
504 * Fix infinite HTTP requests when writing epubs from URL source (#7013).
505 Due to a bug in code added to avoid overwriting the cover image
506 if it had the form `fileX.YYY`, pandoc made an endless sequence
507 of HTTP requests when writing epub with input from a URL.
509 * Org reader:
511 + Allow multiple pipe chars in todo sequences (Albert Krewinkel, #7014).
512 Additional pipe chars, used to separate "action" state from "no further
513 action" states, are ignored. E.g., for the following sequence, both
514 `DONE` and `FINISHED` are states with no further action required:
515 `#+TODO: UNFINISHED | DONE | FINISHED`.
516 + Restructure output of captioned code blocks (Albert Krewinkel, #6977).
517 The Div wrapper of code blocks with captions now has the class
518 "captioned-content". The caption itself is added as a Plain block
519 inside a Div of class "caption". This makes it easier to write filters
520 which match on captioned code blocks. Existing filters will need to be
521 updated.
522 + Mark verbatim code with class `verbatim` (Dimitri Sabadie, #6998).
524 * LaTeX reader:
526 + Handle `filecontents` environment (#7003).
527 + Put contents of unknown environments in a Div when `raw_tex` is not
528 enabled (#6997). (When `raw_tex` is enabled, the whole environment is
529 parsed as a raw block.) The class name is the name of the environment.
530 Previously, we just included the contents without the surrounding Div,
531 but having a record of the environment's boundaries and name can be
532 useful.
534 * Mediawiki reader:
536 + Allow space around storng/emph delimiters (#6993).
538 * New module Text.Pandoc.Writers.BibTeX, exporting
539 writeBibTeX and writeBibLaTeX. [API change]
541 * LaTeX writer:
543 + Revert table line height increase in 2.11.3 (#6996).
544 In 2.11.3 we started adding `\addlinespace`, which produced less dense
545 tables. This wasn't an intentional change; I misunderstood a comment in
546 the discussion leading up to the change. This commit restores the earlier
547 default table appearance. Note that if you want a less dense table, you
548 can use something like `\def\arraystretch{1.5}` in your header.
550 * EPUB writer:
552 + Adjust internal links to identifiers defined in raw HTML sections
553 after splitting into chapters (#7000).
554 + Recognize `Format "html4"`, `Format "html5"` as raw HTML.
555 + Adjust internal links to images, links, and tables after splitting into
556 chapters. Previously we only did this for Div and Span and Header
557 elements (see #7000).
559 * Ms writer:
561 + Don't justify text inside table cells.
563 * JATS writer:
565 + Use `<element-citation>` if `element_citations`
566 extension is enabled (Albert Krewinkel).
567 + Fix citations (Albert Krewinkel, #7018). By default
568 we use formatted citations.
569 + Ensure that `<disp-quote>` is always wrapped in `<p>` (#7041).
571 * Markdown writer:
573 + Cleaned up raw formats. We now react appropriately
574 to `gfm`, `commonmark`, and `commonmark_x` as raw formats.
576 * RST writer:
578 + Fix bug with dropped content from inside spans with a class in
579 some cases (#7039).
581 * Docx writer:
583 + Handle table header using styles (#7008). Instead of hard-coding
584 the border and header cell vertical alignment, we now let this
585 be determined by the Table style, making use of Word's
586 "conditional formatting" for the table's first row. For
587 headerless tables, we use the tblLook element to tell Word
588 not to apply conditional first-row formatting.
590 * Commonmark writer:
592 + Implement start number on ordered lists (#7009). Previously they always
593 started at 1, but according to the spec the start number is respected.
595 * HTML writer:
597 + Fix implicit_figure at end of footnotes (#7006).
599 * ConTeXt template: Remove `\setupthinrules` from default template.
600 The width parameter this used is not actually supported,
601 and the command didn't do anything.
603 * Text.Pandoc.Extensions:
605 + Add `Ext_element_citations` constructor (Albert Krewinkel).
607 * Text.Pandoc.Citeproc.BibTeX: New unexported function
608 `writeBibtexString`.
610 * Text.Pandoc.Citeproc:
612 + Use finer grained imports (Albert Krewinkel).
613 + Factor out and export `getStyle` [API change].
614 + Export `getReferences` [API change, #7106].
615 + Factor out getLang.
617 * Text.Pandoc.Parsing: modify `gridTableWith'` for headerless tables.
618 If the table lacks a header, the header row should be an empty
619 list. Previously we got a list of empty cells, which caused
620 an empty header to be emitted instead of no header. In LaTeX/PDF
621 output that meant we got a double top line with space between.
623 * ImageSize: use `viewBox` for SVG if no length, width attributes (#7045).
624 This change allows pandoc to extract size information from more SVGs.
626 * Add simple default.nix.
628 * Use commonmark 0.1.1.3.
630 * Use citeproc 0.3.0.5.
632 * Update default CSL to use latest chicago-author-date.csl.
634 * CONTRIBUTING.md: add note on GNU xargs.
636 * MANUAL.txt:
638 + Update description of `-L`/`--lua-filter`.
639 + Document use of citations in note styles (#6828).
641## pandoc 2.11.3.2 (2020-12-29)
643 * HTML reader: use renderTags' from Text.Pandoc.Shared (Albert Krewinkel).
644 A side effect of this change is that empty `<col>` elements are written
645 as self-closing tags in raw HTML blocks.
647 * Asciidoc writer: Add support for writing nested tables (#6972, timo-a).
648 Asciidoc supports one level of nesting. If deeper tables are to be
649 written, they are omitted and a warning is issued.
651 * Docx writer: fix nested tables with captions (#6983).
652 Previously we got unreadable content, because docx seems
653 to want a `<w:p>` element (even an empty one) at the end of
654 every table cell.
656 * Powerpoint writer: allow arbitrary OOXML in raw inline elements
657 (Albert Krewinkel). The raw text is now included verbatim in the
658 output. Previously is was parsed into XML elements, which prevented
659 the inclusion of partial XML snippets.
661 * LaTeX writer: support colspans and rowspans in tables (#6950,
662 Albert Krewinkel). Note that the multirow package is needed for
663 rowspans. It is included in the latex template under a variable,
664 so that it won't be used unless needed for a table.
666 * HTML writer: don't include p tags in CSL bibliography entries
667 (#6966). Fixes a regression in 2.11.3.
669 * Add `meta-description` variable to HTML templates (#6982). This
670 is populated by the writer by stringifying the `description`
671 field of metadata (Jerry Sky). The `description` meta tag will
672 make the generated HTML documents more complete and SEO-friendly.
674 * Citeproc: fix handling of empty URL variables (`DOI`, etc.).
675 The `linkifyVariables` function was changing these to links
676 which then got treated as non-empty by citeproc, leading
677 to wrong results (e.g. ignoring nonempty URL when empty DOI is present).
678 See jgm/citeproc#41.
680 * Use citeproc 0.3.0.3. Fixes an issue in author-only citations when
681 both an author and translator are present, and an issue with
682 citation group delimiters.
684 * Require texmath 0.12.1. This improves siunitx support in math,
685 fixes bugs with `\*mod` family operators and arrays, and avoids
686 italicizing symbols and operator names in docx output.
688 * Ensure that the perl interpreter used for filters with `.pl`
689 extension (wuffi).
691 * MANUAL: note that textarea content is never parsed as Markdown
692 (Albert Krewinkel).
695## pandoc 2.11.3.1 (2020-12-18)
697 * Added some missing files to extra-source-files and data
698 files, so they are included in the sdist tarball. Closes #6961.
699 Cleaned up some extraneous data and test files, and added
700 a CI check to ensure that the test and data files included
701 in the sdist match what is in the git repository.
703 * Use citeproc 0.3.0.1, which avoids removing nonbreaking
704 space at the end of the `initialize-with` attribute. (Some
705 journals require nonbreaking space after initials, and this
706 makes that possible.)
708## pandoc 2.11.3 (2020-12-17)
710 * With `--bibliography` (or `bibliography` in metadata), a
711 URL may now be provided, and pandoc will fetch the resource.
712 In addition, if a file path is provided and it is not
713 found relative to the working directory, the resource
714 path will be searched (#6940).
716 * Add `sourcepos` extension for `commonmark`, `gfm`, `commonmark_x`
717 (#4565). With the `sourcepos` extension set set, `data-pos`
718 attributes are added to the AST by the commonmark reader. No other
719 readers are affected. The `data-pos` attributes are put on elements
720 that accept attributes; for other elements, an enlosing Div or Span
721 is added to hold the attributes.
723 * Change extensions for `commonmark_x`: replace `auto_identifiers`
724 with `gfm_auto_identifiers` (#6863). `commonmark_x` never actually
725 supported `auto_identifiers` (it didn't do anything), because the
726 underlying library implements gfm-style identifiers only. Attempts
727 to add the `auto_identifiers` extension to `commonmark` will now
728 fail with an error.
730 * HTML reader:
732 + Split module into several submodules (Albert Krewinkel). Reducing
733 module size should reduce memory use during compilation.
734 + Support advanced table features (Albert Krewinkel):
735 block level content in captions, row and colspans,
736 body headers, row head columns, footers, attributes.
737 + Disable round-trip testing for tables. Information for cell
738 alignment in a column is not preserved during round-trips (Albert
739 Krewinkel).
740 + Allow finer grained options for tag omission (Albert Krewinkel).
741 + Simplify list attribute handling (Albert Krewinkel).
742 + Pay attention to `lang` attributes on body element (#6938).
743 These (as well as `lang` attributes on the html element) should update
744 lang in metadata.
745 + Retain attribute prefixes and avoid duplicates (#6938).
746 Previously we stripped attribute prefixes, reading `xml:lang` as
747 `lang` for example. This resulted in two duplicate `lang`
748 attributes when `xml:lang` and `lang` were both used. This commit
749 causes the prefixes to be retained, and also avoids invald
750 duplicate attributes.
752 * Commonmark reader:
754 + Refactor `specFor`.
755 + Set input name to `""` to avoid clutter in sourcepos output.
757 * Org reader:
759 + Parse `#+LANGUAGE` into `lang` metadata field (#6845, Albert
760 Krewinkel).
761 + Preserve targets of spurious links (#6916, Albert
762 Krewinkel). Links with (internal) targets that the reader doesn't
763 know about are converted into emphasized text. Information on the
764 link target is now preserved by wrapping the text in a Span of class
765 `spurious-link`, with an attribute `target` set to the link's
766 original target. This allows to recover and fix broken or unknown
767 links with filters.
769 * DocBook reader:
771 + Table text width support (#6791, Nils Carlson).
772 Table width in relation to text width is not natively supported
773 by docbook but is by the docbook `fo` stylesheets through an XML
774 processing instruction, `<?dbfo table-width="50%"?>`.
776 * LaTeX reader:
778 + Improve parsing of command options (#6869, #6873).
779 In cases where we run into trouble parsing inlines til the
780 closing `]`, e.g. quotes, we return a plain string with the
781 option contents. Previously we mistakenly included the brackets
782 in this string.
783 + Preserve center environment (#6852, Igor Pashev).
784 The contents of the `center` environment are put in a `Div`
785 with class `center`.
786 + Don't parse `\rule` with width 0 as horizontal rule. These are
787 sometimes used as spacers in LaTeX.
788 + Don't apply theorem default styling to a figure inside (#6925).
789 If we put an image in italics, then when rendering to Markdown
790 we no longer get an implicit figure.
792 * Dokuwiki reader:
794 + Handle unknown interwiki links better (#6932).
795 DokuWiki lets the user define his own Interwiki links. Previously
796 pandoc reacted to these by emitting a google search link, which is
797 not helpful. Instead, we now just emit the full URL including the
798 wikilink prefix, e.g. `faquk>FAQ-mathml`. This at least gives users
799 the ability to modify the links using filters.
801 * Markdown writer:
803 + Properly handle boolean values in writing YAML metadata (#6388).
804 + Ensure that a new csl-block begins on a new line (#6921).
805 This just looks better and doesn't affect the semantics.
807 * RST writer:
809 + Better image handling (#6948). An image alone in its paragraph
810 (but not a figure) is now rendered as an independent image, with an
811 `alt` attribute if a description is supplied. An inline image that
812 is not alone in its paragraph will be rendered, as before, using a
813 substitution. Such an image cannot have a "center", "left", or
814 "right" alignment, so the classes `align-center`, `align-left`, or
815 `align-right` are ignored. However, `align-top`, `align-middle`,
816 `align-bottom` will generate a corresponding `align` attribute.
818 * Docx writer:
820 + Keep raw openxml strings verbatim (#6933, Albert Krewinkel).
821 + Use Content instead of Element. This allows us to inject
822 raw OpenXML into the document without reparsing it into an
823 Element, which is necessary if you want to inject an open
824 tag or close tag.
825 + Fix bullets/lists indentation, so that the first level is slightly
826 indented to the right instead of right on the margin (cholonam).
827 + Support bold and italic in "complex script" (#6911).
828 Previously bold and italics didn't work properly in LTR
829 text. This commit causes the w:bCs and w:iCs attributes
830 to be used, in addition to w:b and w:i, for bold and
831 italics respectively.
833 * ICML writer:
835 + Fix image bounding box for custom widths/heighta (Mauro Bieg, #6936).
837 * LaTeX writer:
839 + Improve table spacing (#6842, #6860).
840 Remove the `\strut` that was added at the end of minipage
841 environments in cells. Replace `\tabularnewline` with
842 `\\ \addlinespace`.
843 + Improve calculation of column spacing (#6883).
844 + Extract table handling into separate module (Albert Krewinkel).
845 + Fix bug with nested `csl-` display Spans (#6921).
846 + Improve longtable output (#6883). Don't create minipages for
847 regular paragraphs. Put width and alignment information in the
848 longtable column descriptors.
850 * OpenDocument writer:
852 + Support for table width as a percentage of text width
853 (#6792, Nils Carson).
854 + Implement Div and Span ident support (#6755, Nils Carson).
855 Spans and Divs containing an ident in the Attr will become bookmarks
856 or sections with idents in OpenDocument format.
857 + Add two extensions, `xrefs_name` and `xrefs_number` (#6774, Nils
858 Carlson). Links to headings, figures and tables inside the
859 document are substituted with cross-references that will use the
860 name or caption of the referenced item for `xrefs_name` or the
861 number for `xrefs_number`. For the `xrefs_number` to be useful
862 heading numbers must be enabled in the generated document and
863 table and figure captions must be enabled using for example the
864 `native_numbering` extension. In order for numbers and reference
865 text to be updated the generated document must be refreshed.
867 * JATS writer:
869 + Support advanced table features (Albert Krewinkel).
870 + Support author affiliations (#6687, Albert Krewinkel).
872 * Docbook writer:
874 + Use correct id attribute consistently (Jan Tojnar).
875 DocBook5 should always use `xml:id` instead of `id`.
876 + Handle admonition titles better (Jan Tojnar).
877 Docbook reader produces a `Div` with `title` class for `<title>`
878 element within an “admonition” element. Markdown writer then turns
879 this into a fenced div with `title` class attribute. Since fenced
880 divs are block elements, their content is recognized as a
881 paragraph by the Markdown reader. This is an issue for Docbook
882 writer because it would produce an invalid DocBook document from
883 such AST – the `<title>` element can only contain “inline”
884 elements. Handle this special case separately by unwrapping
885 the paragraph before creating the `<title>` element.
886 + Add XML namespaces to top-level elements (#6923, Jan Tojnar).
887 Previously, we only added `xmlns` attributes to chapter
888 elements, even when running with `--top-level-division=section`.
889 These namespaces are now added to part and section elements too,
890 when they are the selected top-level divisions.
891 We do not need to add namespaces to documents produced with
892 `--standalone` flag, since those will already have xmlns attribute on
893 the root element in the template.
895 * HTML writer:
897 + Fix handling of nested `csl-` display spans (#6921).
898 Previously inner Spans used to represent CSL display attributes were
899 not rendered as div tags as intended.
901 * EPUB writer:
903 + Include title page in landmarks (#6919).
904 Note that the toc is also included if `--toc` is specified.
905 + Add frontmatter type on body element for nav.xhtml (#6918).
907 * EPUB templates: use preserveAspectRatio="xMidYMid" for cover image (#6895,
908 Shin Sang-jae). This change affects both the epub2 and the epub3
909 templates. It avoids distortion of the cover image by requiring that the
910 aspect ratio be preserved.
912 * LaTeX template:
914 + Include `csquotes` package if `csquotes` variable set.
915 + Put back `amssymb`. We need it for checkboxes in todo lists,
916 and maybe for other things. In this location it seems compatible
917 with the cases that prompted #6469 and PR #6762.
918 + Disable language-specific shorthands in babel (#6817, #6887).
919 Babel defines "shorthands" for some languages, and these can
920 produce unexpected results. For example, in Spanish, `1.22`
921 gets rendered as `122`, and `et~al.` as `etal`.
922 One would think that babel's `shorthands=off` option (which
923 we were using) would disable these, but it doesn't. So we
924 remove `shorthands=off` and add some code that redefines
925 the shorthands macro. Eventually this will be fixed in babel,
926 I hope, and we can revert to something simpler.
928 * JATS template: allow array of persistent institute ids in `pid`
929 (Albert Krewinkel).
931 * Text.Pandoc.Parsing: minor code and efficiency improvements.
933 * Text.Pandoc.Extension:
935 + Add `Ext_sourcepos` constructor for `Extension` [API change].
936 + Add `Ext_xrefs_name` and `Ext_xrefs_number` constructors for
937 `Extension` (Nils Carson) [API change].
939 * Text.Pandoc.Citeproc:
941 + Fix truncation of `[Citation]` list in `Cite` inside footnotes (#6890).
942 This affected author-in-text citations in footnotes. It didn't cause
943 problems for the printed output, but for filters that expected the
944 citation id and other information.
945 + Allow the use of both inline and external references (#6951),
946 as with pandoc-citeproc. References defined in the document's
947 metadata take priority over references with the same id defined in
948 an external bibliography.
949 + Use `fetchItem` to get external bibliography (#6940).
950 + Ensure that BCP47 lang codes can be used. We ignore the variants
951 and just use the base lang code and country code when passing off
952 to citeproc.
953 + Citeproc BibTeX parser: revert change in `getRawField`
954 which was made (for reasons forgotten) when transferring
955 this code from pandoc-citeproc. The change led to `--` in
956 URLs being interpreted as en-dashes, which is unwanted (#6874).
958 * Text.Pandoc.ImageSize:
960 + Default to DPI 72 if the format specifies DPI of 0 (#6880).
961 This shouldn't happen, in general, but it can happen with
962 JPEGs that don't conform to the spec. Having a DPI of 0
963 will blow up size calculations (division by 0).
964 + ImageSize: use JuicyPixels to determine size for png, jpeg, and
965 gif, instead of doing our own binary parsing (#6936). This
966 gives more reliable results.
968 * Text.Pandoc.CSS:
970 + Remove `foldOrElse` (internal module) (Albert Krewinkel).
972 * Use skylighting 0.10.2 (#6625).
974 * Use citeproc 0.3. This fixes issues with references with
975 duplicate ids (jgm/citeproc#36).
977 * Use doctemplates 0.9. This fixes issues with boolean
978 metadata values in the Markdown writer (#6388)
979 and in `meta-json` (#6650). It also fixes
980 issues with nested for loops in templates.
982 * Add translations zh-Hans.yaml and zh-Hant.yaml (#6904, #6909,
983 Kolen Cheung, taotieren).
985 * Add tests: True to cabal.project.
986 This fixes some CI failures for cabal.
988 * Normalize test/tables/*.native (#6888, Kolen Cheung).
990 * Move executable to `app` directory to avoid problems with cabal repl.
992 * CONTRIBUTING: add section "How can I help?" (#6892, Albert Krewinkel).
993 Also adds a paragraph aimed at highlighting the importance of feature
994 maintenance.
996 * MANUAL: Document that --number-sections works in `ms` (#6935).
999## pandoc 2.11.2 (2020-11-19)
1001 * Default to using ATX (`##`-style) headings for Markdown output
1002 (#6662, Aner Lucero). Previously we used Setext (underlined) headings
1003 by default for levels 1--2.
1005 * Add option `--markdown-headings=atx|setext`, and deprecate
1006 `--atx-headers` (#6662, Aner Lucero).
1008 * Support `markdown-headings` in defaults files.
1010 * Fix corner case in YAML metadata parsing (#6823). Previously YAML
1011 metadata would sometimes not get recognized if a field ended with a
1012 newline followed by spaces.
1014 * `--self-contained`: increase coverage (#6854).
1015 Previously we only self-contained attributes for certain tag names
1016 (`img`, `embed`, `video`, `input`, `audio`, `source`, `track`,
1017 `section`). Now we self-contain any occurrence of `src`,
1018 `data-src`, `poster`, or `data-background-image`, on any tag; and
1019 also `href` on `link` tags.
1021 * Markdown reader:
1023 + Fix detection of locators following in-text citations.
1024 Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be
1025 incorrectly parsed as a prefix of `@bar` rather than a suffix of
1026 `@foo`.
1027 + Improve period suppression algorithm for citations in notes
1028 in note citation styles (#6835).
1029 + Don't increment `stateNoteNumber` for example list references.
1030 This helps with #6836 (a bug in which example list references
1031 disturb calculation of citation note number and affect when
1032 `ibid` is triggered).
1034 * LaTeX reader:
1036 + Move `getNextNumber` from Readers.LaTeX to Readers.LaTeX.Parsing.
1037 + Fix negative numbers in siunitx commands. A change in pandoc 2.11
1038 broke negative numbers, e.g. `\SI{-33}{\celcius}` or `\num{-3}`.
1039 This fixes the regression.
1041 * DocBook reader: drop period in formalpara title
1042 and put it in a div with class `formalpara-title`, so that
1043 people can reformat with filters (#6562).
1045 * Man reader: improve handling of `.IP` (#6858). We now better handle
1046 `.IP` when it is used with non-bullet, non-numbered lists, creating a
1047 definition list. We also skip blank lines like groff itself.
1049 * Bibtex reader: fall back on `en-US` if locale for LANG not found.
1050 This reproduces earlier pandoc-citeproc behavior (jgm/citeproc#26).
1052 * JATS writer:
1054 + Wrap all tables (Albert Krewinkel).
1055 All `<table>` elements are put inside `<table-wrap>` elements, as the
1056 former are not valid as immediate child elements of `<body>`.
1057 + Move Table handling to separate module (Albert Krewinkel).
1058 Adds two new unexported modules:
1059 Text.Pandoc.Writers.JATS.Types, Text.Pandoc.Writers.JATS.Table.
1061 * Org writer:
1063 + Replace org #+KEYWORDS with #+keywords (TEC).
1064 As of ~2 years ago, lower case keywords became the standard (though
1065 they are handled case insensitive, as always).
1066 + Update org supported languages and identifiers according to the
1067 current list contained in
1068 <https://orgmode.org/worg/org-contrib/babel/languages/index.html>
1069 (TEC).
1071 * Only use `filterIpynbOutput` if input format is ipynb (#6841).
1072 Before this change content could go missing from divs with class
1073 `output`, even when non-ipynb was being converted.
1075 * When checking reader/writer name, check base name now that we permit
1076 extensions on formats other than markdown.
1078 * Text.Pandoc.PDF: Fix `changePathSeparators` for Windows (#6173).
1079 Previously a path beginning with a drive, like `C:\foo\bar`, was
1080 translated to `C:\/foo/bar`, which caused problems.
1081 With this fix, the backslashes are removed.
1083 * Text.Pandoc.Logging:
1085 + Add constructor `ATXHeadingInLHS` to `LogMessage` [API change].
1086 + Add constructor `EnvironmentVariableUndefined` to
1087 `LogMessage` [API change].
1089 * Fix error that is given when people specify `doc` output (#6834,
1090 gison93).
1092 * LaTeX template: add a `\break` after parbox in `CSLRightInline`.
1093 This should fix spacing problems between entries with numeric styles.
1094 Also fix number of params on `CSLReferences`.
1096 * reveal.js template: Put quotes around `controlsLayout`,
1097 `controlsBackArrows`, and `display`, since these require strings.
1098 Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
1100 * Use citeproc 0.2. This fixes a bug with title case around parentheses.
1102 * pandoc.cabal: remove 'static' flag.
1103 This isn't really necessary and can be misleading (e.g. on macOS,
1104 where a fully static build isn't possible). cabal's new option
1105 `--enable-executable-static` does the same. On stack you can add
1106 something like this to the options for your executable in package.yaml:
1108 ld-options: -static -pthread
1110 * Remove obsolete bibutils flag setting in `linux/make_artifacts.sh`.
1112 * Manual:
1114 + Correct `link-citation` -> `link-citations`.
1115 + Add a sentence about `pagetitle` for HTML (#6843, Alex Toldaiev).
1117 * INSTALL.md: Remove references to `pandoc-citeproc` (#6857).
1119 * CONTRIBUTING: describe hlint and how it's used (#6840, Albert
1120 Krewinkel).
1122## pandoc 2.11.1.1 (2020-11-07)
1124 * Citeproc: improve punctuation in in-text note citations (#6813).
1125 Previously in-text note citations inside a footnote would sometimes have
1126 the final period stripped, even if it was needed (e.g. on the end of
1127 'ibid').
1129 * Use citeproc 0.1.1.1. This improves the decision about when
1130 to use `ibid` in cases where citations are used inside
1131 a footnote (#6813).
1133 * Support `nocase` spans for `csljson` output.
1135 * Require latest commonmark, commonmark-extensions.
1136 This fixes a bug with `autolink_bare_uris` and commonmark.
1138 * LaTeX reader: better handling of `\\` inside math in table cells (#6811).
1140 * DokuWiki writer: translate language names for code elements
1141 and improve whitespace (#6807).
1143 * MediaWiki writer: use `syntaxhighlight` tag instead of deprecated
1144 `source` for highlighted code (#6810). Also support `startFrom`
1145 attribute and `numberLines`.
1147 * Lint code in PRs and when committing to master (#6790,
1148 Albert Krewinkel).
1150 * doc/filters.md: describe technical details of filter invocations (#6815,
1151 Albert Krewinkel).
1154## pandoc 2.11.1 (2020-11-03)
1156 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
1158 * HTML reader:
1160 + Parse contents of iframes (#6770).
1161 + Parse inline svg as image unless `raw_html` is set in the reader (in
1162 which case the svg is passed through as raw HTML) (#6770).
1164 * LaTeX reader:
1166 + Fix bug parsing macro arguments (#6796). If `\cL` is
1167 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
1168 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
1169 pandoc was expanding it to `\tilde\mathcal{L}`. This is
1170 fixed by parsing the arguments in "verbatim mode" when the
1171 macro expands arguments at the point of use.
1172 + Properly support optional (cite) argument for
1173 `\blockquote` from `csquotes` (#6802).
1175 * LaTeX writer: Improved calculation of table column widths.
1176 We now have LaTeX do the calculation, using `\tabcolsep`.
1177 So we should now have accurate relative column widths no
1178 matter what the text width. The default template has been modified to load
1179 the calc package if tables are used.
1181 * HTML writer: Fix duplicate "class" attribute for table
1182 rows (Andy Morris).
1184 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
1185 (Albert Krewinkel). The map-based YAML representation of filters expects
1186 `type` and `path` fields. The path field had to be present for all filter
1187 types, but is not used for citeproc filters. The field can now be omitted
1188 when type is "citeproc", as described in the MANUAL.
1190 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
1191 for `PandocError` [API change]. This ensures that bibliography parsing
1192 errors generate messages that include the bibliography file name --
1193 otherwise it can be quite mysterious where it is coming from.
1195 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
1196 This is used with the JATS writer, so this fixes a regression
1197 in pandoc 2.11 with JATS output and citeproc.
1199 * Allow `citation-abbreviations` in defaults file.
1201 * JATS templates: ensure `jats_publishing` output is valid
1202 (Albert Krewinkel).
1204 * LaTeX template: Fix `CSLRightInline`, so that it does not
1205 run over the right margin.
1207 * HTML template: default CSS tweaks (Mauro Bieg and John
1208 MacFarlane).
1210 - Fix margin before codeblock
1211 - Add `monobackgroundcolor` variable, making the background color
1212 and padding of code optional.
1213 - Ensure that backgrounds from highlighting styles take precedence over
1214 monobackgroundcolor
1215 - Remove list markers from TOC
1216 - Add margin-bottom where needed
1217 - Remove italics from blockquote styling
1218 - Change borders and spacing in tables to be more consistent with other
1219 output formats
1220 - Style h5, h6
1221 - Set font-size for print media to 12pt.
1222 - Reduce interline space.
1223 - Reduce interparagraph space.
1224 - Reduce line width.
1225 - Remove the special `line-height: 1` for table cells.
1226 - Remove the special line-height for pre.
1227 - Ensure that there is a bit more space before a heading
1228 than after.
1229 - Slightly reduced space after title header.
1230 - Add CSS example to MANUAL
1232 * man template: Change comment that triggers `tbl` from
1233 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
1235 * Use latest commonmark, commonmark-extensions.
1236 This fixes a bug with nested blocks in footnotes with the
1237 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
1239 * Citeproc: use comma for in-text citations inside footnotes.
1240 When an author-in-text citation like `@foo` occurs in a footnote,
1241 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
1242 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
1243 This gives better results. Note that normal citations are still
1244 rendered in parentheses.
1246 * Use latest citeproc:
1248 + citeproc no longer capitalizes notes, so we do it
1249 in pandoc when appropriate.
1250 + Closes #6783.
1252 * Clarify manual on `--track-changes` (#6801).
1254 * Add `doc/jats.md` to document pandoc's handling of JATS
1255 (#6794, Albert Krewinkel).
1257 * Fix code example in lua-filters.md (#6795).
1259## pandoc 2.11.0.4 (2020-10-21)
1261 * Commonmark writer: fix regression with fenced divs (#6768).
1262 Starting with 2.10.1, fenced divs no longer render with
1263 HTML div tags in commonmark output. This is a regression
1264 due to our transition from cmark-gfm. This commit fixes it.
1266 * Use released version of citeproc. (This fixes a mis-step
1267 in the 2.11.0.3 release, which is now deprecated.)
1269 * Use latest sylighting, with support for `groovy`.
1271 * Document that --html-q-tags requires the smart extension on the reader
1272 (#6766).
1274## pandoc 2.11.0.3 (2020-10-20)
1276 * Use latest citeproc (closes #6765). This fixes a problem with
1277 author-in-text citations for references including both an author
1278 and an editor. Previously, both were included in the text, but only
1279 the author should be.
1281 * With `--citeproc`, ensure that the final period is removed when
1282 citations that occur in notes in note-based styles get put in
1283 parentheses. See jgm/citeproc#20.
1285 * Normalize rewritten image paths with `--extract-media` (#6761).
1286 This change will avoid mixed paths like this one when
1287 `--extract-media` is used with a Word file:
1288 `![](C:\Git\TIJ4\Markdown/media/image30.wmf)`. Instead we'll get
1289 `![](C:\Git\TIJ4\Markdown`media`image30.wmf)`.
1291 * Modify `--version` output. Use space more efficiently and report the
1292 citeproc and ipynb versions, along with skylighting, texmath, and
1293 pandoc-types. Drop the word "default" before "user data directory."
1295 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
1296 Also ensure that bibliodiv without a title no longer results in
1297 an empty Header.
1299 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
1300 than normal (#6763, Denis Maier).
1302 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
1303 See <https://tex.stackexchange.com/a/549938>.
1305 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
1307 * MANUAL:
1309 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
1310 + Remove org from list of input formats supporting raw_tex (#6753,
1311 Nick Fleisher).
1314## pandoc 2.11.0.2 (2020-10-15)
1316 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
1318 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
1320 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
1321 involving spacing between components of a reference in certain styles
1322 (e.g. `cell.csl`).
1324 * Fix typos in comments, doc strings, error messages, and tests
1325 (Albert Krewinkel, #6738).
1327## pandoc 2.11.0.1 (2020-10-13)
1329 * LaTeX reader: support more acronym commands (#6746):
1330 `\acl`, `\aclp`, and capitalized versions of already
1331 supported commands.
1333 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
1334 Otherwise we get bad results for non-table, non-paragraph
1335 lines containing pipe characters.
1337 * Markdown writer: Fix autolinks rendering for gfm (#6740).
1338 Previously, autolinks rendered as raw HTML, due to the
1339 `class="uri"` added by pandoc's markdown reader.
1341 * LaTeX writer:
1343 + Escape option values in lstlistings environment (#6742).
1344 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
1345 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
1346 `\usepackage[shorthands=off,main=brazilian]{babel}`.
1348 * Depend on latest citeproc (0.1.0.1).
1350 + This fixes the citation number issue with ieee.csl and other
1351 styles that do not explicitly sort bibliographies (#6741). (Pandoc
1352 was numbering them by their order in the bibliography file,
1353 rather than the order cited, as required by the CSL spec.)
1354 + Fixes groupin/collapsing with citation items with prefixes.
1356 * default.latex: fix `CSLReference` macro definition.
1358 * Fix MANUAL.txt CSL JSON conversion examples.
1360 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
1363## pandoc 2.11 (2020-10-11)
1365 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
1366 It is no longer necessary to use the external `pandoc-citeproc`
1367 filter. `--citeproc` behaves like a filter and can be positioned
1368 relative to other filters as they appear on the command line.
1370 The new built-in citation processing uses the citeproc library,
1371 a reimplementation of CSL citation processing that fixes many
1372 of the shortcomings of pandoc-citeproc. In general, citation
1373 processing should work much the same as it did with pandoc-citeproc,
1374 but with greater fidelity to CSL styles and better performance.
1375 (The tests from the pandoc-citeproc package have been carried
1376 over to pandoc.) The following differences should be noted:
1378 - At this point, only some of the writers (HTML, ms, LaTeX) properly
1379 interpret CSL display styles. You should get decent output in
1380 all formats (at least as good as with pandoc-citeproc), but
1381 indentation and block-alignment may not be right.
1383 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
1384 styles. Pandoc instead searches the `csl` subdirectory of
1385 the pandoc user data directory (e.g., `~/.pandoc/csl` or
1386 `~/.local/share/pandoc/csl`). Users who already keep
1387 CSL styles in `~/.csl` may find it convenient to add a
1388 symlink.
1390 - Some of the bibliography formats supported by pandoc-citeproc (via
1391 hs-bibutils) are no longer supported: Copac, EndNote,
1392 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
1393 you may use the `bibutils` utility to convert to BibLaTeX.
1394 We now support only BibTeX, BibLaTeX, CSL JSON,
1395 and pandoc's YAML/Markdown analogue of CSL JSON.
1397 - pandoc-citeproc would always retrieve the independent parent
1398 of a dependent style by doing an HTTP request. pandoc will
1399 now first seek the independent parent locally (in the resource
1400 path or in the `csl` subdirectory of the pandoc user data
1401 directory) before resorting to HTTP. In addition, you may
1402 omit the `.csl` extension, e.g. `--csl zoology`.
1404 - Using the `--bibliography` option (or including
1405 `bibliography` in YAML metadata) no longer triggers
1406 citation processing implicitly: one must always use the
1407 `--citeproc` option if citation processing is wanted.
1409 * Add `csljson` as and input and output format. This allows pandoc
1410 to convert between `csljson` and other bibliography formats
1411 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
1412 and to generate formatted versions of CSL JSON bibliographies
1413 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
1415 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
1416 to convert between BibLaTeX and BibTeX and other bibliography formats,
1417 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
1418 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
1420 * Raise informative errors when YAML metadata parsing fails (#6730).
1421 Previously the command would succeed, returning empty metadata,
1422 with no errors or warnings.
1424 * Sort languages in `--list-highlight-languages` output (#6718,
1425 Albert Krewinkel). Languages were previously sorted by their
1426 long name, which leads to unexpected results).
1428 * Add CSS to default HTML template (#6601, Mauro Bieg). This
1429 greatly improves the default typography in pandoc's HTML
1430 output. The CSS is sensitive to a number of variables
1431 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
1432 details. To restore the earlier, more spartan output, you can
1433 disable this with `-M document-css=false`.
1435 * Support `--toc-depth` option for ODT writer (#6696, niszet).
1437 * Fix issues with Windows UNC paths with some options (#5127).
1439 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
1440 `commonmark` and `gfm` extensions. These shouldn't really be counted
1441 as extensions, because they can't be disabled in commonmark.
1442 Adjust markdown writer to check for the commonmark variant in addition
1443 to extensions.
1445 * Add these extensions to `gfm` and `commonmark`:
1446 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
1447 These can't really be disabled in the reader, but they need to be enabled
1448 in the writer or we just get indented code.
1450 * Make sure proper set of extensions is recognized for `commonmark_x`.
1452 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
1454 * Markdown reader:
1456 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
1457 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
1458 specialized to references.
1459 + Set `citationNoteNum` accurately in citations.
1460 + Revise abbreviation support. Don't insert a nonbreaking space after a
1461 potential abbreviation if it comes right before a note or citation.
1462 This causes problems for citeproc's moving of note citations.
1464 * LaTeX reader:
1466 + Support missing siunitx commands (#6658).
1467 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
1468 + Improved uncertainty handling in slunitx.
1469 + Factored out siunitx stuff into separate unexposed module.
1470 + Fix improper empty cell filtering (#6689, Christian Despres).
1471 + Fix parsing of "show name" in `\newtheorem` (#6734).
1472 Previously we were just treating it as a string and
1473 ignoring accents and formatting.
1474 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
1475 cells (#6603, Laurent P. René de Cotret).
1476 + Table cell parser not consuming spaces correctly (#6596,
1477 Laurent P. René de Cotret).
1478 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
1479 + Allow blank lines inside `\author` (#6324).
1481 * DocBook reader:
1483 + Don't squelch space at end of emphasis and other inline elements;
1484 instead, move it outside the element (#6719).
1485 + Implement table cell alignment (#6698, Nils Carlson).
1486 + Implement column span support for tables (#6492, Nils Carlson).
1487 + Update list of block level tags (#6610).
1490 * JATS reader:
1492 + Don't squelch space at end of emphasis and other inline elements;
1493 instead, move it outside the element (#6719).
1495 * RST reader:
1497 + Apply `.. class::` directly to following Header rather than creating
1498 a surrounding Div (#6699).
1500 * Docx reader:
1502 + Allow empty dates in comments and tracked changes (#6726, Diego
1503 Balseiro).
1505 * Markdown writer:
1507 + Be less aggressive about using quotes for YAML values,
1508 allowing e.g. a quotation mark or bracket as long as it's not at the
1509 beginning of the line.
1510 + Use double quotes for YAML metadata (#6727).
1511 + Sort YAML metadata keys in Markdown output case-insensitive.
1514 * Asciidoc writer:
1516 + Support asciidoctor's block figures (#6538, argent0).
1518 * LaTeX writer:
1520 + Fix spacing issue with list in definition list.
1521 When a list occurs at the beginning of a definition list definition,
1522 it can start on the same line as the label, which looks bad.
1523 Fix that by starting such lists with an `\item[]`.
1525 * HTML writer:
1527 + Support intermediate table headers (#5314, Albert Krewinkel).
1528 + Support attributes on all table elements (Albert Krewinkel).
1529 + Render table footers if present (#6314, Albert Krewinkel).
1530 + Fix addition of `doc-biblioentry` role.
1531 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
1533 * ICML writer:
1535 + Support internal document links (#5541, Leonard Rosenthol).
1536 + Changed default link state to invisible (#6676, Leonard Rosenthol).
1538 * Docx writer:
1540 + Better handle list items whose contents are lists (#5948, Michael
1541 Hoffmann). If the first element of a bulleted or ordered list is
1542 another list, then that first item would previously disappear if the
1543 target format is docx.
1544 + Separate adjacent tables (#4315). Word combines adjacent tables,
1545 so to prevent this we insert an empty paragraph between two
1546 adjacent tables.
1548 * Org writer:
1550 + Don't force blank line after headings (#6554).
1552 * OpenDocument writer:
1554 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
1555 + New table cell support with row and column spans (#6682, Nils Carson).
1556 + Syntax highlighting for inline code (#6711, niszet).
1558 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
1559 [API change]. This depends on several other, unexported
1560 modules under Text.Pandoc.Citeproc.
1562 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
1563 [API change]
1565 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
1566 [API change]
1568 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
1569 `readBibLaTeX`. [API change]
1571 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
1572 [API change] This runs the processCitations transformation.
1573 We need to treat it like a filter so it can be placed
1574 in the sequence of filter runs (after some, before others).
1575 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
1576 so this special filter may be specified either way in a defaults file
1577 (or by `citeproc: true`, though this gives no control of positioning
1578 relative to other filters).
1580 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
1581 (#6655, Christian Despres). This module (which should generally
1582 be imported qualified to avoid name conflicts) provides a
1583 `Table` type that mirrors the structure of a pandoc `Table`,
1584 but with added inferred information so that the writers do not have to
1585 lay out tables themselves. The `toTable` and `fromTable` functions convert
1586 between an annotated `Table` and a regular pandoc `Table`. In addition to
1587 producing a `Table` with coherent and well-formed annotations, the
1588 `toTable` function also normalizes its input table like the table
1589 builder does. Tests ensure that `toTable` normalizes tables exactly
1590 like the table builder, and that its annotations are coherent.
1592 * Text.Pandoc.Logging:
1594 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
1595 [API change].
1596 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
1598 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
1599 These allow specifying an id filter so we parse only references
1600 that are used in the document.
1602 * Text.Pandoc.Parsing:
1604 + Export ParseError [API change].
1605 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
1606 [API change]. These are used to populate note numbers for citation
1607 processing.
1609 * Fix apparent typos in sample.lua (#6729, William Lupton).
1610 Also make the writer less aggressive in escaping quotes.
1612 * Text.Pandoc.Options:
1614 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
1615 (#6599, Kolen Cheung). This drops the MathML support (which we
1616 don't need for HTML math rendering) and includes the full JavaScript,
1617 which makes it possible to use `--self-contained` (though there may
1618 still be issues if the required math fonts aren't available). This
1619 change should also reduce latency in pages with lots of formulas.
1620 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
1621 added this in processing command line options, but not in processing
1622 defaults files, which was inconsistent.
1624 * epub.css: Fix cover page selectors and add note explaining their use
1625 (#6649, a-vrma).
1627 * Add data files needed for Text.Pandoc.Citeproc: these include
1628 `default.csl` in the data directory and a `citeproc` directory that
1629 is only used at compile-time for biblatex localizations. Note that we've
1630 added `file-embed` as a mandatory rather than a conditional
1631 dependency, because of the biblatex localization files.
1633 * Lua filters:
1635 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
1636 A new type `SimpleTable` is made available to Lua filters. It is
1637 similar to the `Table` type in pandoc versions before 2.10;
1638 conversion functions from and to the new Table type are provided.
1639 Old filters using tables now require minimal changes and can use, e.g.,
1641 if PANDOC_VERSION > {2,10,1} then
1642 pandoc.Table = pandoc.SimpleTable
1643 end
1645 and
1647 function Table (tbl)
1648 tbl = pandoc.utils.to_simple_table(tbl)
1649 …
1650 return pandoc.utils.from_simple_table(tbl)
1651 end
1653 to work with the current pandoc version.
1655 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
1656 This changes the Lua API. It is highly unlikely for this change to affect
1657 existing filters, since the documentation for the new Table constructor
1658 (and type) was incomplete and partly wrong before. The Lua API is now
1659 more consistent, as all constructors for elements with attributes now
1660 take attributes as the last parameter.
1662 * MANUAL.txt:
1664 * Add a dedicated Citations section which consolidates the information
1665 the manual used to contain about citation processing, and incorporates
1666 some information formerly found in the pandoc-citeproc man page.
1667 + Add note about lualatex using `selnolig`.
1668 + Remove duplicate `seriespage` (#6568, Blake Eryx).
1669 + Remove lists of support extensions for markdown variants (#6604).
1670 Instead, offer the advice to use `--list-extensions=FORMAT`.
1671 + Fix position of attributes in header (Albert Krewinkel).
1672 + Delete obsolete section on compact and loose lists (#6684).
1675 * doc/lua-filters.md:
1677 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
1678 + Document Underline type and constructor (Albert Krewinkel).
1679 + Document `body` field (Albert Krewinkel).
1680 + Add missing header attribute
1681 + Add missing Link.title field (Albert Krewinkel).
1682 + Make the setting-the-date example conditional (the-solipsist).
1683 This makes the example a bit more realistic.
1684 + Remove outdated link table example.
1686 * doc/org.md:
1688 + Add section on tables (Albert Krewinkel).
1689 + Add section on handling of unknown directives (Albert Krewinkel).
1691 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
1693 * Use golden test framework for command tests. This means that
1694 `--accept` can be used to update expected output.
1696 * Use the `smart` extension when generating pandoc's man page (#6613).
1698 * Release-candidate: don't build windows i386.
1699 So far we haven't been able to figure out how to get
1700 stack to use a 32-bit ghc.
1702 * Use `null` instead of deprecated `Builder.isNull`.
1704 * Makefile:
1706 + Fix macospkg target to fetch target from S3 artifacts.
1707 + Fix pandoc-templates target to include all partials.
1709 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
1711 * Sort build depends in pandoc.cabal alphabetically (#6691,
1712 Albert Krewinkel).
1714 * Add .travis.yml for macos release candidate build (#6622).
1715 We need to build the release candidate on Travis rather
1716 than GitHub actions, because GH has macos 10.15, and
1717 binaries compiled on that OS will not work with 10.13.
1718 This build is only triggered on `rc/*` branches.
1720 * Remove instructions for building pandoc-citeproc from CI and
1721 release binary build instructions. We will no longer distribute
1722 pandoc-citeproc.
1724 * Fix math rendering in trypandoc (this broke after
1725 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
1727 * Use latest versions of skylighting, commonmark (#6589),
1728 comonmark-extensions, commonmark-pandoc, texmath.
1730 * Relax version bounds for hslua, hslua-module-text, bytestring.
1732 * Use released pandoc-types 1.22. This changes the JSON
1733 encoding slightly for the new table types introduced
1734 in 1.21, so they're more consistent with the rest.
1735 Developers of libraries for pandoc filters will want
1736 to take note.
1738 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
1740 * Code cleanup (#6678, Joseph C. Sible).
1742 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
1743 Krewinkel).
1745 * Remove duplicate `tshow` definition.
1747 * Linux release candidate build: use ghc-musl container. This simplifies
1748 our build process (over using a customized alpine container).
1751## pandoc 2.10.1 (2020-07-23)
1753 * Add `commonmark_x` output format. This is `commonmark` with a number
1754 of useful pandoc extensions enabled.
1756 * Many more extensions now work with `commonmark` and `gfm`.
1758 * Add generic `attributes` extension. This allows attributes to
1759 be added to any block or inline element in a uniform way. Since
1760 the Pandoc AST doesn't include attributes on each element type,
1761 the attributes will sometimes be added by creating a surrounding
1762 Div or Span container. Currently this extension is only
1763 compatible with the `commonmark` and `gfm` readers.
1765 To add an attribute to a block-level element, e.g. a paragraph,
1766 put it before the block:
1767 ```
1768 {#mypara}
1769 This is a paragraph.
1770 ```
1771 Multiple attributes may be used and will be combined:
1772 ```
1773 {#mypara}
1774 {.blue .warning key="val"}
1775 This is a paragraph.
1776 ```
1777 To add an attribute to an inline-level element, put it
1778 immediately after the element:
1779 ```
1780 *emphasized text*{.special}
1781 ```
1783 * Support `--number-sections` for docx output (#1413).
1785 * LaTeX reader:
1787 + Support `\SIRange` reader (#6418, Emerson Harkin).
1788 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
1789 Supports `\multirow` and `\multicolumn`.
1790 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
1791 proof environments, including labels and references. The only thing
1792 that is unsupported is the second optional argument, which causes
1793 numbering to be reset after the specified series is incremented.
1794 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
1795 of the LaTeX reader to ease compilation on resource-limited systems.
1797 * RST reader:
1799 + Fix csv tables with multiline cells (#6549).
1800 + Fix spurious newlines in some attributes from directives.
1801 + Avoid extra newline in included code blocks.
1803 * Commonmark reader:
1805 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
1806 parsing. This avoids depending on a C library
1807 and allows us to support more pandoc extensions for
1808 `commonmark` and `gfm`.
1810 * DocBook reader:
1812 + Parse releaseinfo as metadata (#6542).
1814 * Docx reader:
1816 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
1817 Yakimov).
1818 + Code cleanup/refactoring (Nikolay Yakimov).
1820 * Org reader (Albert Krewinkel):
1822 + Respect export setting which disables entities
1823 MathML-like entities, e.g., `\alpha`, can be disabled with the
1824 `#+OPTION: e:nil` export setting (Albert Krewinkel).
1825 + Respect export setting disabling footnotes. Footnotes can be removed
1826 from the final document with the `#+OPTION: f:nil` export setting.
1827 + Respect tables-excluding export setting. Tables can be removed from
1828 the final document with the `#+OPTION: |:nil` export setting.
1830 * Markdown writer:
1832 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
1833 doesn't catch quotes that have already been turned to entities.
1834 + Add `writeCommonmark` (new exported function, API change).
1835 + Use unicode super/subscript characters when possible if the
1836 `superscript` or `subscript` extension or `raw_html` aren't available.
1837 + Render caption as following paragraph when `table_caption` extension
1838 is not enabled.
1839 + Use numerical labels for reference links that are longer
1840 than 999 characters or contain square brackets, for conformity
1841 with commonmark (#6560).
1843 * Commonmark writer:
1845 + Instead of using cmark-gfm, use `writeCommonmark` from the
1846 Markdown writer. This function calls the markdown writer
1847 with appropriate extensions and a few small modifications
1848 (e.g. not requiring backslashes before spaces inside
1849 super/subscripts). With this change `comonmark` and
1850 `gfm` output can be used with a wider selection of
1851 extensions.
1853 * Jira writer: keep image caption as alt attribute (#6529, Albert
1854 Krewinkel).
1856 * HTML writer:
1858 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
1859 Screen readers read an image's `alt` attribute and the figure caption,
1860 both of which come from the same source in pandoc. The figure caption is
1861 hidden from screen readers with the `aria-hidden` attribute. This
1862 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
1863 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
1865 * Ms writer:
1867 + Fix code highlighting with blank lines. Previously blank lines
1868 were simply omitted from highlighted code.
1869 + Escape starting periods in ms writer code blocks (#6505, Michael
1870 Hoffmann). If a line of ms code block output starts with a period (.),
1871 it should be prepended by `\&` so that it is not interpreted as a roff
1872 command.
1874 * Text.Pandoc.Extensions:
1876 + Add `raw_markdown` extension (which only affects `ipynb`
1877 input).
1878 + Trim down `githubMarkdownExtensions`.
1879 Previously it included all of the following, which make
1880 sense for the legacy `markdown_github` but not for `gfm`,
1881 since they are part of base commonmark and thus
1882 can't be turned off in `gfm`:
1884 - `Ext_all_symbols_escapable`
1885 - `Ext_backtick_code_blocks`
1886 - `Ext_fenced_code_blocks`
1887 - `Ext_space_in_atx_header`
1888 - `Ext_intraword_underscores`
1889 - `Ext_lists_without_preceding_blankline`
1890 - `Ext_shortcut_reference_links`
1892 These have been removed from `githubMarkdownExtensions`, though
1893 they're still turned on for legacy `markdown_github`.
1894 + Add `Ext_attributes` constructor for `Extension` [API change].
1896 * LaTeX template: use selnolig to selectively suppress ligatures with
1897 lualatex (#6534).
1899 * Benchmark bytestring readers (Nikolay Yakimov).
1901 * Documentation:
1903 + Update using-the-pandoc-api.md (favonia).
1904 + Fix Typos in lua-filters.md (tajmone).
1905 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
1906 headings for the extensions.
1907 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
1908 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
1909 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
1910 Replaces #6500, thanks to @ickc.
1914## pandoc 2.10 (2020-06-29)
1916 * Use pandoc-types 1.21. This adds two things:
1918 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
1919 + More expressive types for tables (#1024, Christian Despres).
1920 Tables can now take attributes; and rowspans and colspans,
1921 column headers, multiple row headers, table head and foot
1922 can all be represented. (Note, however, that reader and
1923 writer support for these features is still lacking, so
1924 most users won't see any differences in table conversion
1925 yet. These changes just lay the foundation for further
1926 improvements.)
1928 * Support new Underline element in readers and writers (#6277,
1929 Vaibhav Sagar).
1931 * Support new Table type (Christian Despres).
1932 The Builder.simpleTable now only adds a row to the TableHead
1933 when the given header row is not null. This uncovered an
1934 inconsistency in the readers: some would unconditionally
1935 emit a header filled with empty cells, even if the header
1936 was not present. Now every reader has the conditional
1937 behaviour. Only the XWiki writer depended on the header row
1938 being always present; it now pads its head as necessary.
1940 * Add an option to disable certificate validation (#6156, Cédric Couralet,
1941 Cécile Chemin, Juliette Fourcot). This commit adds the option
1942 `--no-check-certificate`, which disables certificate checking when
1943 resources are fetched by HTTP.
1945 * Unify defaults and markdown metadata parsers (#6328, Nikolay
1946 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
1947 properly handle errors in `yamlToMeta`. This fixes parsing
1948 of Boolean fields in metadata withinin defaults files and reduces
1949 code duplication.
1951 * Docbook reader:
1953 + Implement `<procedure>` (#6442, Mathieu Boespflug).
1954 + Implement `<phrase>` (#6438, Mathieu Boespflug).
1955 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
1956 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
1957 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
1959 * JATS reader:
1961 + Handle "label" element in section title (#6288).
1962 + Parse abstract element into metadata field of same name
1963 (#6480, Albert Krewinkel).
1965 * Jira reader (Albert Krewinkel):
1967 + Resolve multiple parsing problems, including issues with empty
1968 table cells, faulty recognition of closing emphasis characters, and
1969 parsing of image attributes (#6212, #6219, #6220).
1970 + Two consecutive markup chars are now parsed verbatim (#6343);
1971 styled text must not be empty.
1972 + Newlines are no longer allowed within styled text (#6325).
1973 + Links to anchors are now parsed as links (#6407).
1974 + Retain image attributes (#6234). Jira images attributes as in
1975 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
1976 images, such as `!example.gif|thumbnail!`, are marked by a
1977 `thumbnail` class in their attributes.
1978 + Use Underline for inserted text (#6237). Previously, the span was
1979 marked with the non-standard class `inserted`.
1980 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
1981 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
1982 + Support citations, attachment links, and user links (#6231, #6238,
1983 #6239).
1984 + Resolve parsing issues of blockquote, color (#6233, #6235).
1986 * HTML reader:
1988 + Parse attributes into table attributes.
1989 + Support `<bdo>` (#5794, Tristan de Cacqueray).
1990 + Add `summary` to list of block-level HTML tags (#6385).
1991 This improves support for summary/details inside Markdown.
1992 NOTE: you need to include a blank line before the closing
1993 `</details>`, if you want the last part of the content to
1994 be parsed as a paragraph.
1995 + Fix parsing unclosed th elements in a table (#6247).
1997 * Commonmark reader: Implement `implicit_figures` extension (#6350).
1999 * Markdown Reader:
2001 + Fix inline code in lists (#6284, Nikolay Yakimov).
2002 Previously inline code containing list markers was sometimes
2003 parsed incorrectly.
2004 + Don't require blank line after grid table (#6481).
2005 This allows grid tables to be enclosed in fenced divs with no
2006 intervening blank lines.
2008 * LaTeX reader:
2010 + Don't parse beyond `\end{document}` (#6380).
2011 This required some internal changes to `\subfile` handling.
2012 + Better handling of `\lettrine`. SmallCaps instead of Span
2013 for the part after the initial capital. Ensure that both
2014 arguments are parsed, so that in Markdown both
2015 are treated as raw LateX. (Closes #6258.)
2017 * Org reader (Albert Krewinkel):
2019 + Recognize images with uppercase extensions (#6472).
2020 + Keep unknown keyword lines as raw org. The lines of unknown
2021 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
2022 but kept as raw `org` blocks. This ensures that more information
2023 is retained when round-tripping org-mode files; additionally,
2024 this change makes it possible to support non-standard org
2025 extensions via filters.
2026 + Unify keyword handling. Handling of export settings and other
2027 keywords (like `#+LINK`) has been combined and unified.
2028 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
2029 settings. These export settings are treated like their non-extra
2030 counterparts, i.e., the values are added to the `header-includes`
2031 metadata list.
2032 + Allow multiple `#+SUBTITLE` export settings. The values of all
2033 lines are read as inlines and collected in the `subtitle`
2034 metadata field.
2035 + Read `#+INSTITUTE` values as text with markup. The value is
2036 stored in the `institute` metadata field and used in the
2037 default beamer presentation template.
2038 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
2039 settings has changed: Org now allows multiple such lines
2040 and adds a space between the contents of each line. Pandoc
2041 now always parses these settings as meta inlines; setting
2042 values are no longer treated as comma-separated lists.
2043 Note that a Lua filter can be used to restore the previous
2044 behavior.
2045 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
2046 are now treated as text with markup. If multiple such
2047 lines are given, then all lines are read and separated by soft
2048 linebreaks.
2049 + Honor tex export option (#4070). The `tex` export option can be set
2050 with `#+OPTION: tex:nil` and allows three settings:
2051 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
2052 as raw TeX. `nil` removes all LaTeX fragments from the document.
2053 `verbatim` treats LaTeX as text.
2056 * RST reader:
2058 + Pass arbitrary attributes through in code blocks (#6465).
2059 Exceptions: name (which becomes the id), class (which becomes the
2060 classes), and number-lines (which is treated specially to fit
2061 with pandoc highlighting).
2062 + Handle `date::` directive (#6276).
2064 * Textile reader: support `pre.` for code blocks (#6454).
2066 * Ipynb reader:
2068 + Implement `raw_markdown` extension (#5408). Specifying
2069 `-f ipynb+raw_markdown` will cause Markdown cells
2070 to be represented as raw Markdown blocks, instead of being
2071 parsed. This is not what you want when going from `ipynb`
2072 to other formats, but it may be useful when going from `ipynb`
2073 to Markdown or to `ipynb`, to avoid semantically insignificant
2074 changes in the contents of the Markdown cells that might
2075 otherwise be introduced.
2076 + Handle application/pdf output as image (#6430).
2077 + Properly handle image/svg+xml as an image (#6430).
2079 * Docx reader:
2081 + Distinguish between docx parsing and docx container unpacking errors.
2083 * MediaWiki reader:
2085 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
2087 * Vimwiki reader:
2089 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
2090 Nested syntaxes are specified like this:
2091 ```
2092 {{{sql
2093 SELECT * FROM table
2094 }}}
2095 ```
2096 The preformatted code block parser has been extended to check if the
2097 first attribute of the block is not a `key=value` pair, and in that
2098 case it will be considered as a class.
2101 * Jira writer (Albert Krewinkel):
2103 + Always escape braces (#6478). Braces are now always escaped, even
2104 within words or when surrounded by whitespace. Jira and
2105 Confluence treat braces specially.
2106 + Convert Underline to inserted text (`+inserted+`).
2107 + Add image attributes (#6234). Image attributes are added
2108 to the output as image parameters. If the image has a
2109 class "thumbnail", then a thumbnail image is generated;
2110 all other attributes are discarded in this case.
2112 * LaTeX writer:
2114 + Ensure that `-M csquotes` works even in fragment mode (#6265).
2115 + Escape `^` specially for listings (#6460).
2116 + Create hypertarget for links with identifier (#6360).
2117 + Distinguish between single and double quotes when using enquote
2118 package (#6457, dbecher-ito).
2119 + Add support for customizable alignment of columns in beamer (#6331,
2120 andrebauer).
2121 + Add support for customizable alignment of columns in beamer
2122 (#4805, #4150, andrebauer).
2124 * HTML writer:
2126 + Use CSS in favor of `<br>` for display math (#6372)
2127 Some CSS to ensure that display math is
2128 displayed centered and on a new line is now included
2129 in the default HTML-based templates; this may be
2130 overridden if the user wants a different behavior.
2132 * Org writer:
2134 + Clean-up Div handling (Albert Krewinkel).
2136 * Docx writer:
2138 + Enable column and row bands for tables (#6371).
2139 This change will not have any effect with the default style.
2140 However, it enables users to use a style (via a reference.docx)
2141 that turns on row and/or column bands.
2143 * OpenDocument (and ODT) writer:
2145 + Add custom-style "Abstract" in metadata abstract.
2146 This ensures that the abstract is rendered with style Abstract.
2147 + Enable custom-style attribute on a Div.
2148 This allows you to apply a custom style to contained paragraphs.
2150 * DocBook writer:
2152 + Add id of figure to enclosed image.
2153 + Add personname element to docbook author (#6244).
2155 * FB2 writer:
2157 + Properly handle cover-image containing spaces (#6391).
2159 * Markdown writer:
2161 + Ensure consistent padding for pipe tables (#6240).
2162 + Avoid unnecessary escapes before intraword `_` when
2163 `intraword_underscores` extension is enabled (#6296).
2165 * RST writer:
2167 + Properly handle images with same alt text (#6194).
2168 Previously we created duplicate references for these in rendering RST.
2170 * AsciiDoc writer:
2172 + Add blank line after Div (#6308).
2174 * Haddock Writer:
2176 + Support Haddock tables (Joe Hermaszewski).
2177 See this PR on Haddock for details on the table format:
2178 <https://github.com/haskell/haddock/pull/718>.
2180 * PowerPoint writer (Jesse Rosenthal):
2182 + Write math input verbatim in speaker notes (#6301).
2183 OMML in speaker notes would lead to corrupt PowerPoint output. We now
2184 output the OMML verbatim as LaTeX in the speaker notes.
2186 * LaTeX template: Make polyglossia package options list-aware
2187 (#6444, Frederik Elwert).
2189 * Reveal.js template:
2191 + Update template for reveal.js 4.0.0 (#6390, Salim B).
2192 + Update template with newly available options (#6347, Jake Zimmerman).
2193 + Use CDN version of revealjs v4 by default (#6408).
2195 * opendocument template: Add abstract and subtitle to opendocument
2196 template (#6369).
2198 * reference.odt: clean up styles. Add Abstract.
2199 Change Author, Date to centered paragraphs with no character
2200 styling.
2202 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
2203 This fixes a problem in iBooks v2.4 with our earlier
2204 horizontally scrolling code blocks. The problem seems to
2205 be a bug in iBooks, not pandoc, but since iBooks is a major
2206 target we're changing pandoc's default behavior so that
2207 pandoc-produced epubs work on that platform.
2209 * Text.Pandoc.PDF:
2211 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
2212 `wkhtmltopdf` changed in recent versions to require this for
2213 access to local files. This fixes PDF via HTML5 with `--css`.
2214 + Send verbose output to stderr, not stdout (#6483).
2216 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
2217 (#6464, Michael Reed).
2219 * Text.Pandoc.Shared:
2221 + `makeSections`: omit number attribute when unnumbered class
2222 is present (#6339). Previously the attribute was included but given
2223 an empty value, and this caused the table of contents creation
2224 functions in Text.Pandoc.Writers.Shared to think these items had
2225 numbers, which meant that they were included in the TOC even if the
2226 `unlisted` class was used.
2227 + Deprecate `underlineSpan` in Shared in favor of
2228 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
2229 + `renderTags'`: use self-closing tag for col element (#6295).
2231 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
2232 return the same value twice in a row. Make `getRandomUUID`
2233 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
2235 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
2237 * Fixed Katex standalone script (#6399, Lucas Escot).
2238 Global macros are now persistent when using the HTML Writer with the
2239 `--katex` option.
2241 * Lua subsystem (Albert Krewinkel):
2243 + Use new type PandocLua for all pandoc Lua operations (API change).
2244 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
2245 and can thus be used in a way similar to `PandocIO`.
2246 + Use PandocError for exceptions in Lua subsystem (API change).
2247 The PandocError type is used throughout the Lua subsystem. All Lua
2248 functions throw an exception of this type if an error occurs. The
2249 `LuaException` type is removed and no longer exported from
2250 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
2251 is added to PandocError.
2253 * Lua filters: improve error messages for failing filters (#6332,
2254 Albert Krewinkel). Print the Lua error properly instead of
2255 displaying their `show` string.
2257 * Use latest skylighting. This fixes a bug with lua multiline
2258 comments (and may improve handling of other syntaxes as well).
2259 IT also adds `aria-hidden="true"` to the empty a elements, which
2260 helps people who use screen readers.
2262 * Use latest texmath.
2264 * Require latest doctemplates 0.8.2.
2265 This adds support for template pipes `first`, `rest`,
2266 `last`, `allbutlast`.
2268 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
2269 been updated for ghc 8.10 (see #6187).
2271 * Dependency adjustments:
2273 + Allow haddock-library 1.9.x.
2274 + Allow hslua 1.1 (#6243, Felix Yan).
2275 + Allow base64-bytestring 1.1.
2276 + Use latest jira-wiki-markup.
2277 + Allow http-client 0.7.
2278 + Allow tasty 1.3.x.
2279 + Allow aeson 1.5 (#6400, Felix Yan).
2280 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
2281 + Bump QuickCheck upper bound.
2283 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
2284 #6209, #6225, #6229, #6226, #6340).
2286 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
2288 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
2290 * trypandoc improvements (Mike Tzou):
2292 + Add standalone option to the command text (#6210).
2293 + Update third party libraries.
2295 * MANUAL.txt:
2297 + Clarify template partial naming (#6476, Mauro Bieg).
2298 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
2299 Krewinkel). In the past, Jira's wiki markup was also used by -- and
2300 could be imported into -- Atlassian Confluence.
2301 + Add link to print-css.rocks (#6272, Mauro Bieg).
2302 + Clarify pipe table column width adjustment (#6254).
2303 + Fix ATX header syntax.
2304 + Fix misleading note about image size conversions (#6353).
2305 + Update links to reveal.js documentation (#6386, Salim B).
2306 + Separate adjacent verbatim code blocks (#6307, tom-audm).
2308 * org.md:
2310 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
2311 + Describe all supported export options in detail.
2313 * lua-filters.md:
2315 + Fix description of BulletList Lua type (Levi Gruspe).
2316 + Use pandoc.system module in TikZ example (Albert
2317 Krewinkel). Showcase temporary directory handling with
2318 `with_temporary_directory` and `with_working_directory`.
2320 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
2321 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
2322 The old pandoc port is still at version 1.5.1.1
2324 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
2326 * Bump `cabal-version` to 2.2 (#6377).
2328 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
2329 Boespflug).
2331 * CI action to check for commit message length (Nikolay Yakimov, #6398).
2334## pandoc 2.9.2.1 (2020-03-23)
2336 * Markdown reader: Fix table alignment when heading begins with t (#6153).
2337 Due to a typo (`t` instead of `\t`) we were center aligning column
2338 headings that begin with a lowercase `t`!
2340 * Text.Pandoc.Readers.Roff:
2342 + Fix parsing of `\.` in man/ms readers (#6175).
2343 Previously due to a typo it was being parsed as `` ` ``.
2344 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
2345 as a backtick.
2347 * Jira reader (Albert Krewinkel):
2349 + Fix parsing of tables without preceding blankline (#6198).
2350 A bug was fixed which caused faulty parsing if a table was not
2351 preceded by a newline and the first table cell had no space
2352 after the initial `|` characters.
2353 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
2354 caused non-emphasized text containing digits and/or non-special
2355 symbols (like dots) to sometimes be parsed incorrectly.
2356 + Support colored inline text, indented lists (#6183, #6184).
2358 * Ms writer:
2360 + Fix definition lists so indent even when paragraph indent is
2361 set to 0 (as is the default). Also ensure indent for display math
2362 that falls back to TeX.
2363 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
2365 * EPUB writer: fix regression on detection of front/back/bodymatter
2366 (#6170). This bug caused sections with epub:type `dedication` to be
2367 misplaced in bodymatter instead of frontmatter as specified
2368 in the manual. The same problem would affect other epub:types.
2369 The pattern matching needed to be changed with the use of
2370 `makeSection`.
2372 * AsciiDoc writer: remove redundant `otherwise` guard in
2373 `inlineToAsciiDoc` (#6146, Ryan Scott).
2375 * Text.Pandoc.Class:
2377 + Fix missing import when data files are not embedded (Albert Krewinkel).
2378 + Subdivide Text.Pandoc.Class into small unexported modules
2379 and ensure that all functions have Haddock documentation (#6106,
2380 Albert Krewinkel).
2381 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
2382 Krewinkel).
2384 * Text.Pandoc.XML: Add to list of HTML5 attributes:
2385 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
2386 `imagesizes`, `imagesrcset`, `loading`.
2388 * Use implicit Prelude (#6187, Albert Krewinkel).
2389 The previous behavior was introduced as a fix for #4464. It seems that
2390 this change alone did not fix the issue, and `stack ghci` and `cabal
2391 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
2392 for these versions. Given this, it seems cleaner to revert to the
2393 implicit Prelude.
2395 * Always use custom prelude (#6187, Albert Krewinkel).
2396 Previously, the custom prelude was used only with older GHC versions, as
2397 a workaround for problems with ghci. The ghci problems are resolved by
2398 replacing package `base` with `base-noprelude`, allowing for consistent
2399 use of the custom prelude across all GHC versions.
2401 * Remove outdated checks for no longer supported base versions
2402 (Albert Krewinkel).
2404 * PDF via wkhtmltopdf: put user-specified options last (#6171).
2405 Certain options (e.g. `cover`) need to come after flags on
2406 the command line.
2408 * Text.Pandoc.App: set resource path at the beginning so it can affect
2409 things like include-in-header (#5982).
2411 * Change macOS release candidate CI process so that notarized
2412 packages can be produced (#6169).
2414 * Make MANUAL more explicit about nonbreaking space handling by
2415 `all_symbols_escapable` (#6154, Fabien Schurter).
2417 * trypandoc (Mike Tzou):
2419 + Add checkbox for standalone option (#6189).
2420 + Use strict mode for JavaScript code (#6188).
2421 + Fetch resources over https (#6188).
2422 + Remove unnecessary attributes on style, script elements (#6188).
2424 * Use details tag to make GitHub releases changelog collapsible.
2426 * Update filter code in doc/filters.md so it works with latest pandoc
2427 (#6185).
2429 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
2430 This is used to build the static linux binaries.
2433## pandoc 2.9.2 (2020-02-15)
2435 * Add `csv` as an input format (#6100). The CSV table is converted into a
2436 pandoc simple table. A new module Text.Pandoc.Readers.CSV
2437 exports `readCSV` [API change].
2439 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
2441 - `jats_archiving` for the "Archiving and Interchange Tag Set",
2442 - `jats_publishing` for the "Journal Publishing Tag Set", and
2443 - `jats_articleauthoring` for the "Article Authoring Tag Set."
2445 The `jats` output format is now an alias for `jats_archiving`.
2446 The module Text.Pandoc.Writers.JATS now exports
2447 `writeJatsArchiving`, `writeJatsPublishing`, and
2448 `writeJatsArticleAuthoring`, as well as the legacy
2449 `writeJATS` [API change].
2451 * `--defaults`: Support `bibliography` and `csl` fields.
2452 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
2453 Text.Pandoc.App.Opt (internal change).
2455 * Add timing info for filters in `--verbose` mode (#6112).
2456 When verbose mode is specified (verbosity == INFO), print a
2457 notice when running a filter and when a filter completes (including
2458 timing).
2460 * LaTeX reader:
2462 + Allow `&` in LaTeX citation keys (#6110).
2463 + Improve caption and label parsing.
2464 + Don't emit empty Span elements for labels.
2465 + Put tables with labels in a surrounding Div.
2466 + Resolve `\ref` to table numbers (#6137).
2467 + Skip comments in more places where this is needed (#6114).
2468 + Allow beamer overlays for all commands in all raw tex (#6043).
2469 This affects parsing of raw tex in LaTeX and in Markdown and
2470 other formats.
2471 + Improve parsing of raw environments (#6034). If parsing fails
2472 in a raw environment (e.g. due to special characters like unescaped
2473 `_`), try again as a verbatim environment, which is less sensitive to
2474 special characters. This allows us to capture special environments
2475 that change catcodes as raw tex when `-f latex+raw_tex` is used.
2477 * RST reader:
2479 + Add highlight directive (#6140, Lucas Escot).
2481 * MediaWiki writer:
2483 + Prevent triple `[[[` which confuses MediaWiki (#6119).
2485 * HTML reader:
2487 + Don't parse `data-id` as `id` attribute. And similarly don't
2488 parse any `data-X` as `X` when `X` is a valid HTML attribute.
2490 * Org reader:
2492 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
2493 Speeds up parsing of single-word, markup-less sub- and superscripts.
2495 * LaTeX writer:
2497 + Group biblatex citations even with prefix and suffix (#5849, Ethan
2498 Riley). Previously biblatex citations were only grouped if there
2499 was no prefix. This patch allows them to be grouped in subgroups split
2500 by prefixes and suffixes, which allows better citation sorting.
2501 + Fix regression in handling of columns in beamer slides (#6033).
2502 Columns in title slides were causing problems with
2503 slide division.
2504 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
2506 * HTML writer:
2508 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
2509 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
2510 adding a parameter to `makeSections` so this could be done at that
2511 level; then it would also affect other writers that construct
2512 TOC manually.
2513 + reveal.js: restore old behavior for 2D nesting (#6032).
2514 The fix to #6030 actually changed behavior, so that the
2515 2D nesting occurred at slide level N-1 and N, instead of
2516 at the top-level section. This commit restores the v2.7.3 behavior.
2517 If there are more than 2 levels, the top level is horizontal
2518 and the rest are collapsed to vertical.
2519 + reveal.js: ensure that pauses work even in title slides (#5819).
2521 * Markdown writer:
2523 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
2525 * Docx writer:
2527 + Fix regression with Compact style on tight lists (#6072).
2528 Starting in 2.8, the docx writer no longer distinguishes between tight
2529 and loose lists, since the Compact style is omitted. This is a
2530 side-effect of the fix to #5670, as explained in the changelog. This
2531 patch fixes the problem by extending the exception currently offered to
2532 Plain blocks inside tables to Plain blocks inside list items.
2534 * Jira writer:
2536 + Fix output of table headers (Albert Krewinkel, #6035).
2538 * Add Text.Pandoc.Image with unexported svgToPng.
2540 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
2541 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
2542 [API change]
2544 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
2545 Joseph C. Sible).
2547 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
2548 constructors to LogMessage [API change].
2550 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
2551 would sometimes be inserted at the end.
2553 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
2554 (#6002). Otherwise we can get a clash with documentclasses that
2555 already load the package.
2557 * Lua filters:
2559 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
2560 Inline and Block elements can now be filtered via `Inlines` and
2561 `Blocks` functions, respectively. This is helpful if a filter
2562 conversion depends on the order of elements rather than a single
2563 element. For example, the following filter can be used to remove all
2564 spaces before a citation:
2566 function isSpaceBeforeCite (spc, cite)
2567 return spc and spc.t == 'Space'
2568 and cite and cite.t == 'Cite'
2569 end
2571 function Inlines (inlines)
2572 for i = #inlines-1,1,-1 do
2573 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
2574 inlines:remove(i)
2575 end
2576 end
2577 return inlines
2578 end
2580 + Add methods `insert`, `remove`, and `sort` to pandoc.List
2581 (Albert Krewinkel). Example of use:
2583 local numbers = pandoc.List {2, 3, 1}
2584 numbers:sort() -- numbers is now {1, 2, 3}
2585 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
2586 It is now possible to construct a new List via
2587 `pandoc.List()` instead of `pandoc.List:new()`.
2588 + Add tests for pandoc.List module (Albert Krewinkel).
2590 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
2591 instead of `String`. This avoids some unnecessary unpacking.
2593 * Use versioned directory for windows release zipfile.
2594 Also remove old `make-windows-installer.bat`, superseded by GitHub
2595 actions workflow, and modify `pandoc.wxs` for new paths.
2597 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
2598 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
2600 * Fix hlint warnings (Albert Krewinkel).
2602 * Use latest doclayout, doctemplates (#6031). The new version of
2603 doclayout fixes a memory leak that affected `--include-in-header` with
2604 large files (and possibly other cases involving extremely long lines).
2606 * Use latest texmath.
2608 * Use latest skylighting and fix test suite (#6086).
2610 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
2611 Fix typo in error message (#6135).
2613 * Add Docker and GH Actions instructions/links to INSTALL.md.
2615 * Update filter documentation (#6065). Improve cabal v2 instructions.
2616 Remove example using pandoc API directly (we have other
2617 docs for that and it was outdated).
2619 * Lua filter docs:
2621 + Cross-link constructors and types (Albert Krewinkel).
2622 Thanks to @bpj for the idea.
2623 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
2624 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
2625 Links and anchors now follow consistent conventions, like
2626 lowercase-only anchor names. This breaks some links to specific
2627 sections in the document, but will make it much easier to link
2628 documentation in the future.
2629 + Clarify filter function execution order (#6059, Albert Krewinkel).
2631 * In docs, update URLs and use `https:` wherever possible (#6090,
2632 Salim B).
2634## pandoc 2.9.1.1 (2020-01-05)
2636 * Markdown reader:
2638 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
2640 * LaTeX writer:
2642 + Fix regression in beamer slide structure with certain slide levels
2643 (#6030).
2644 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
2645 + Properly handle unnumbered headings level 4+ (#6018).
2646 Previously the `\paragraph` command was used instead of
2647 `\paragraph*` for unnumbered level 4 headings.
2649 * HTML writer:
2651 + Fix revealjs slide structure regression with certain slide levels
2652 (#6030).
2653 + Add newlines to make slide show output more readable.
2655 * Org writer:
2657 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
2659 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
2660 and interchange DTD rather than the more restrictive journal publishing
2661 DTD (which doesn't permit ext-link as a valid child).
2663 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
2664 overwritten (#6027). Previously it wasn't overridden if the file already
2665 existed, which led to bad results on subsequent runs when
2666 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
2667 dir.
2669 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
2670 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
2671 with block-level content. `getLang` has been modified to handle this.
2672 Previously in these cases the LaTeX writer would not properly set the
2673 "main language" of the document.
2675 * Fix `test/tables.org` (Albert Krewinkel).
2677 * Use HTTPS in copyright message (Felix Yan, #6010)
2680## pandoc 2.9.1 (2019-12-23)
2682 * Add Jira reader (Albert Krewinkel, #5556).
2684 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
2685 #5926). The following improvements are included in this change:
2687 + non-jira raw blocks are fully discarded instead of showing
2688 as blank lines;
2689 + table cells can contain multiple blocks;
2690 + unnecessary blank lines are removed from the output;
2691 + markup chars within words are properly surrounded by
2692 braces;
2693 + preserving soft linebreaks via `--wrap=preserve` is
2694 supported.
2696 Note that backslashes are rendered as HTML entities, as there
2697 appears no alternative to produce a plain backslash if it is
2698 followed by markup. This may cause problems when used with
2699 confluence, where rendering seems to fail in this case.
2701 * Fix regression with `--number-sections`. Starting with 2.8,
2702 `--number-sections` also had the effect of `--section-divs`,
2703 even if `--section-divs` was not specified.
2705 * Improved table of contents generation in markdown, RTF,
2706 commonmark, better handling cases where section headings are
2707 enclosed in divs.
2709 * Ensure that later default file values for `variable` replace
2710 earlier ones (5988).
2712 * HTML reader: Add `nav` to list of block-level tags.
2714 * Org reader (Albert Krewinkel):
2716 + Wrap named table in Div, using name as id (#5984).
2717 Tables which are given a name via `#+NAME:` or `#+LABEL:`
2718 are wrapped in an additional Div, with the name set as the
2719 Div's ID.
2720 + Report parsing errors properly.
2721 + Fix parsing problem for colons in headline (#5993).
2723 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
2724 `--verbose` mode, avoiding an error on platforms that
2725 default to something other than UTF-8 (#5997).
2727 * Text.Pandoc.Templates: Strip directory before trying to find
2728 partial in data files (#5987).
2730 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
2731 doubled "number" attributes in EPUB output (or anywhere
2732 else) (#5986).
2734 * Added tests for `--toc` and `--section-divs`.
2736 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
2737 Jared Lander).
2739 * MANUAL: A bit clearer explanation for `--base-header-level`.
2740 We now say exactly how to translate between the deprecated
2741 `--base-header-level` and `--shift-heading-level-by`.
2743 * lua-filters.md:
2745 + Remove spurious dot in title (#5996, Mauro Bieg).
2746 + Replace metadata example with image centering (#6004,
2747 Albert Krewinkel). Thanks to @efx for proposing this filter.
2750## pandoc 2.9 (2019-12-11)
2752 * Text.Pandoc.Templates [API change]
2754 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
2755 Wrapping these around an instance of `PandocMonad` gives
2756 us different instances of `TemplateMonad`, with different
2757 search behavior in retrieving partials.
2758 To compile a template and limit partial search to pandoc's
2759 data files, use `runWithDefaultPartials (compileTemplate ...)`.
2760 To compile a template and allow partials to be found locally
2761 (either on the file system or via HTTP, in the event that
2762 the main template has an absolute URL), ue
2763 `runWithPartials (compileTemplate ...)`.
2764 + Export `getTemplate`, which seeks a template locally,
2765 or via HTTP if the template has an absolute URL, falling
2766 back to the data files if not found.
2767 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
2768 and compiles the result, raising an error on failure.
2770 * Text.Pandoc.Class [API change]
2772 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
2773 These were too limiting and caused a bug whereby a local
2774 partial could be used even when the default template was requested.
2775 We now rely on instances provided in the Templates module.
2777 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
2779 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
2780 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
2781 elements: otherwise longer titles that run over multiple lines will look
2782 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
2784 * reveal.js template: Add title-slide-attributes variable (#5981,
2785 Frederik Elwert).
2787 * More informative JSON parse error (#5973).
2789 * Use external emojis package (forked from pandoc). Removed emoji data
2790 in Text.Pandoc.Emoji.
2792 * Fix regression in `makeSections` (#5965).
2793 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
2794 header attributes on the containing Div. In 2.8 this behavior changed,
2795 which broke some tools depending on pandoc. Here we roll back this change,
2796 so that attributes again migrate from the header to the containing Div when
2797 `makeSections` is run. Note that attributes are retained on the header as
2798 well (unlike before) -- with the exception of the `id` attribute, which of
2799 course cannot be duplicated.
2801 * Fix `--toc-depth` regression in 2.8 (#5967).
2803 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
2804 to avoid confusion with the other notion of filter used by pandoc.
2806 * Fix README.md so that relative links from manual become absolute.
2807 Previously they'd be broken links when viewed on GitHub or Hackage.
2808 So we add the base URL for the pandoc manual.
2810 * Document display math syntax in manual.
2812## pandoc 2.8.1 (2019-12-05)
2814 * Add `ascii_identifiers` as a supported extension for `markdown`.
2815 This fixes a regression in 2.8.
2817 * Fix regression with behavior of `--variable` (#5962).
2818 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
2819 with 2.8 it produced just `2`. This commit restores the earlier
2820 behavior.
2822 * Roll back part of of `--shift-heading-level-by` change (#5957).
2823 With positive heading shifts, starting in 2.8 this option
2824 caused metadata titles to be removed and changed to regular
2825 headings. This behavior is incompatible with the old
2826 behavior of `--base-header-level` and breaks old workflows,
2827 so we have rolled back the change. Note that there is now an
2828 asymmetry in positive and negative heading level shifts:
2829 With positive shifts, the metadata title stays the same and
2830 does not get changed to a heading in the body, while with
2831 negative shifts, a heading can be converted into the
2832 metadata title.
2834 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
2835 column Divs into sections.
2837 * HTML writer: add task-list class to ul if all elements are
2838 task list items. This will allow styling unordered task
2839 lists in a way that omits the bullet.
2841 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
2843 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
2844 conventions (#5945, Denis Maier). The old version had a too large
2845 a skip at the beginning of the reference list.
2847 * LaTeX template: keep the `\author{}` command even if author is not
2848 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
2850 * Generate Emoji module with TH.
2852 + Add Text.Pandoc.Emoji.TH.
2853 + Replace long literal list in Text.Pandoc.Emoji with one-liner
2854 generating it from `emoji.json` using TH.
2855 + Add Makefile target to download `emoji.json`.
2856 + Remove `tools/emoji.hs`.
2858 * Increase GC allocation space for compilation in cabal.project.
2860 * Clean up manual on PDF generation backend options (#5940).
2862 * Update release checklist to include code signing step and update
2863 Windows release-candidate builds (#5950).
2866## pandoc 2.8.0.1 (2019-11-26)
2868 * List `pdf` in `--list-output-formats`.
2869 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
2870 would not have an effect on EPUB output.
2871 * RST writer: Use grid tables for one-column tables, since
2872 simple tables clash with heading syntax in this case (#5936).
2873 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
2874 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
2875 templates.
2876 * Update default man template using `nowrap` for .TH heading (#5929).
2877 * HTML templates: Add support for `toc-title` variable (#5930,
2878 Alexandre Franke).
2879 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
2880 (#5927, Ian Max Andolina).
2881 * Use skylighting 0.8.3.
2883## pandoc 2.8 (2019-11-22)
2885 * Improvements in templates system (from doctemplates):
2887 + Pandoc templates now support a number of new features that
2888 have been added in doctemplates: notably, `elseif`, `it`,
2889 partials, filters, and syntax to control nesting and reflowing of
2890 text. These changes make pandoc more suitable out of the
2891 box for generating plain-text documents from data in YAML
2892 metadata. It can create enumerated lists and even tabular
2893 structures.
2894 + We now used templates parameterized on doclayout Doc types.
2895 The main impact of this change is better reflowing of
2896 content interpolated into templates. Previously,
2897 interpolated variables were rendered independently and
2898 interpolated as strings, which could lead to overly long
2899 lines. Now the templates interpolated as Doc values which
2900 may include breaking spaces, and reflowing occurs after
2901 template interpolation rather than before.
2902 + Remove code from the LaTeX, Docbook, and JATS writers that
2903 looked in the template for strings to determine whether it
2904 is a book or an article, or whether csquotes is used. This
2905 was always kludgy and unreliable.
2906 + Change template code to use new API for doctemplates.
2908 * Add `--defaults`/`-d` option. This adds the ability to specify
2909 a collection of default values for options in a YAML file. For
2910 example, one might define a set of defaults for letters,
2911 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
2912 See the documentation of this feature in MANUAL.txt.
2914 * Raise error on unsupported extensions (#4338).
2916 * The `--list-extensions[=FORMAT]` option now lists only
2917 extensions that affect the given FORMAT.
2919 * Add `-L` option as shortcut for `--lua-filter`.
2921 * Add `--shift-heading-level-by` option and deprecate
2922 `--base-heading-level` (#5615). The new option does
2923 everything the old one does, but also allows negative shifts.
2924 It also promotes the document metadata (if not null) to a
2925 level-1 heading with a +1 shift, and demotes an initial
2926 level-1 heading to document metadata with a -1 shift. This
2927 supports converting documents that use an initial level-1
2928 heading for the document title.
2930 * Allow `--metadata-file` to be used repeatedly to include
2931 multiple metadata files (Owen McGrath, #5702). Values in
2932 files specified first will be overridden by those in later
2933 files.
2935 * `--ascii` now uses numerical hex character references (#5718).
2937 * Allow PDF output to stdout (#5751). PDF output now behaves like other
2938 binary formats: it will not be output to the terminal, but can be
2939 sent to stdout using either `-o -` or a pipe. The intermediate format
2940 will be determined based on the setting of `--pdf-engine`.
2942 * Make some writers sensitive to 'unlisted' class on headings (#1762).
2943 If this is present on a heading with the 'unnumbered' class,
2944 the heading won't appear in the TOC. This class has no
2945 effect if 'unnumbered' is not also specified. This affects HTML-based
2946 writers (including slide shows and EPUB), LateX (including beamer), RTF,
2947 and PowerPoint. Other writers do not yet support `unlisted`.
2949 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
2950 we also now use emoji names for emojis when `ascii_identifiers`
2951 is enabled.
2953 * When `--ipynb-output` is used with the default "best" format, strip
2954 ANSI escape codes for non-ipynb output (#5633). These cause problems
2955 in many formats, including LaTeX.
2957 * Don't look for template files remotely for remote input (#5579).
2958 Previously pandoc would look for the template at a remote URL when a
2959 URL was used for the input file, instead of taking it from the
2960 data directory.
2962 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
2963 Previously `header-includes` set as a variable would be
2964 clobbered by material included using `--include-in-header`.
2966 * Change merge behavior for metadata. Previously, if a document
2967 contained two YAML metadata blocks that set the same field, the
2968 conflict would be resolved in favor of the first. Now it is resolved
2969 in favor of the second (due to a change in pandoc-types).
2970 This makes the behavior more uniform with other things in pandoc
2971 (such as reference links and `--metadata-file`).
2973 * Don't add a newline to fragment output if there's already one.
2975 * Change exit codes and document in MANUAL.txt:
2977 + `PandocAppError` was 1, is now 4
2978 + `PandocOptionError` was 2, is now 6
2979 + `PandocMakePDFError` was 65, is now 66
2981 * Switch to new pandoc-types and use Text instead of String [API change].
2982 (Christian Despres, #5884).
2984 * HTML reader:
2986 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
2987 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
2988 element with an inner Span.
2989 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
2990 The `<samp>` element is parsed as Code with class `sample`.
2991 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
2992 The `<var>` element is parsed as Code with class `variable`.
2993 + Add support for `<mark>` elements (Florian B, #5797). Parse
2994 `<mark>` elements from HTML as Spans with class `mark`.
2995 + Add support for `<kbd>` elements, parsing them as Span with class
2996 `kbd` (Daniele D'Orazio, #5796).
2997 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
2998 (#5882, Florian Beeres).
3000 * Markdown reader:
3002 + Headers: don't parse content over newline boundary (#5714).
3003 + Handle inline code more eagerly within lists (Brian Leung, #5627).
3004 + Removed some needless lookaheads.
3005 + Don't parse footnote body unless extension enabled.
3006 + Fix small super/subscript issue (#5878). Superscripts and subscripts
3007 cannot contain spaces, but newlines were previously allowed
3008 (unintentionally). This led to bad interactions in some cases
3009 with footnotes. With this change newlines are also not allowed inside
3010 super/subscripts.
3011 + Use `take1WhileP` for `str`, table row. This yields a small but
3012 measurable performance improvement.
3015 * LaTeX reader:
3017 + Fix parsing of optional arguments that contain braced text (#5740).
3018 + Don't try to parse includes if `raw_tex` is set (#5673).
3019 When the `raw_tex` extension is set, we just carry through
3020 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
3021 + Properly handle optional arguments for macros (#5682).
3022 + Fix `\\` in `\parbox` inside a table cell (#5711).
3023 + Improve `withRaw` so it can handle cases where the token string is
3024 modified by a parser (e.g. accent when it only takes part of a Word
3025 token) (#5686). This fixes a bug that caused the ends of
3026 certain documents to be dropped.
3027 + Handle `\passthrough` macro used by latex writer (#5659).
3028 + Support tex `\tt` command (#5654).
3029 + Search for image with list of extensions like latex does, if an
3030 extension is not provided (#4933).
3031 + Handle `\looseness` command values better (#4439).
3032 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
3033 When `+raw_tex` is enabled, these are passed through literally.
3034 Otherwise, they are handled in a way that emulates LaTeX's behavior.
3035 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
3036 They are now ignored if the corresponding command or environment
3037 is already defined.
3038 + Support epigraph command in LaTeX Reader (oquechy, #3523).
3039 + Ensure that expanded macros in raw LaTeX end with a space
3040 if the original did (#4442).
3041 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
3042 + Add `tikzcd` to list of special environments (Eigil Rischel).
3043 This allows it to be processed by filters, in the same way that
3044 one can do for `tikzpicture`.
3046 * Roff reader:
3048 + Better support for `while`.
3049 + More improvements in parsing conditionals.
3050 + Fix problem parsing comments before macro.
3051 + Improve handling of groups.
3052 + Better parsing of groups (#5410). We now allow groups
3053 where the closing `\\}` isn't at the beginning of a line.
3055 * RST reader:
3057 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
3058 + Fixed parsing of indented blocks (#5753). We were requiring
3059 consistent indentation, but this isn't required by RST.
3060 + Use title, not admonition-title, for admonition title.
3061 This puts RST reader into alignment with docbook reader.
3062 + Don't strip final underscore from absolute URI (#5763).
3063 + Avoid spurious warning when resolving links to internal anchors
3064 ending with `_` (#5763).
3066 * Org reader:
3068 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
3069 Attributes for LaTeX output are accepted as valid block attributes;
3070 however, their values are ignored.
3071 + Modify handling of example blocks (Brian Leung, #5717).
3072 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
3073 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
3074 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
3075 reasonable way, but their other components can be
3076 positioned otherwise.
3077 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
3078 Comment lines in Org-mode can be completely empty.
3080 * Muse reader (Alexander Krotov):
3082 + Add RTL support (#5551).
3083 + Do not allow closing asterisks to be followed by `*`.
3084 + Do not split series of asterisks into symbols and emphasis (#5821).
3085 + Do not terminate emphasis on `*` not followed by space.
3087 * DokuWiki reader:
3089 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
3091 * Docx reader:
3093 + Move style-parsing-specific code to a new unexported module,
3094 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
3095 + Move StyleMap to docx writer (Nikolay Yakimov).
3096 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
3097 Rosenthal). The left-to-right direction setting in docx is used
3098 in the spec only for overriding an explicit right-to-left setting.
3099 We only process it when it happens in a paragraph set with BiDi.
3100 This is especially important for docs exported from Google Docs,
3101 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
3102 + Fix list number resumption for sublists (#4324).
3103 The first list item of a sublist should not resume numbering
3104 from the number of the last sublist item of the same level,
3105 if that sublist was a sublist of a different list item.
3107 * Docbook reader:
3109 + Richer parse for admonitions (Michael Peyton Jones, #1234).
3110 Instead of parsing admonitions as blockquotes, we now parse
3111 them as Divs with an appropriate class. We also handle titles
3112 for admonitions as a nested Div with the "title" class.
3113 + Fix nesting of chapters and sections (#5864, Florian Klink,
3114 Félix Baylac-Jacqué).
3115 + Fix bug with entities in mathphrase element (#5885).
3117 * MediaWiki reader:
3119 + Skip optional `{{table}}` template (#5757).
3121 * LaTeX reader:
3123 + Fix dollar-math parsing to ensure that space is left between a
3124 control sequence and a following letter (#5836).
3125 + In `untokenize`, ensure space between control sequence
3126 and following letter (#5836).
3127 + Don't omit macro definitions defined in the preamble.
3128 These were formerly omitted (though they still affected macro
3129 resolution if `latex_macros` was set). Now they are included in
3130 the document body.
3131 + Parse macro definitions as raw LaTeX when `latex_macros` is
3132 disabled. (When `latex_macros` is enabled, we omit them, since
3133 pandoc is applying the macros itself.)
3134 + Fix a hang/memory leak in certain circumstances (#5845).
3135 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
3136 `rawLaTeXParser`. This allows us to repeat retokenizing
3137 unnecessarily in e.g. `rawLaTeXBlock`.
3138 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
3139 Add all titling commands to existing definition for `\dedication`.
3140 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
3142 * Markdown writer:
3144 + Ensure proper nesting when we have long ordered list markers (#5705).
3145 + Make `plain` output plainer (#5741). Previously we used the following
3146 Project Gutenberg conventions for plain output: extra space before and
3147 after level 1 and 2 headings, all-caps for strong emphasis,
3148 underscores surrounding regular emphasis. Now these
3149 conventions are used only when the `gutenberg` extension is
3150 enabled. By default, Strong and Emph are rendered without
3151 special formatting, and headings are rendered without
3152 special formatting, and with only one blank line following.
3153 To restore the former behavior, use `-t plain+gutenberg`.
3154 + Prefer using raw_attribute when enabled (#4311).
3155 The `raw_attribute` will be used to mark raw bits, even HTML
3156 and LaTeX, and even when `raw_html` and `raw_tex` are
3157 enabled, as they are by default. To get the old behavior,
3158 disable `raw_attribute` in the writer.
3159 + Prefer `pipe_tables` to raw HTML even when we must
3160 lose width information (#2608, #4497).
3161 + Improve escaping in list items (#5918).
3163 * AsciiDoc writer:
3165 + Don't include `+` in code blocks for regular asciidoc.
3166 This is asciidoctor-specific.
3167 + Handle admonitions (#5690).
3169 * LaTeX writer:
3171 + Add thin space when needed in LaTeX quote ligatures (#5684).
3172 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
3173 + Use `cslreferences` environment for csl bibliographies.
3174 This allows bibliographies to receive special formatting.
3175 The template now contains definition of this environment (enabled
3176 only when CSL is used). It also defines a `\cslhangindent` length.
3177 This is set to 2em by default when the bibliography style specifies
3178 a hanging indent. To override the length, you can use e.g.
3179 `\setlength{\cslhangindent}{7em}` in header-includes.
3180 See jgm/pandoc-citeproc#410.
3181 + Strip off `{}` around locator for biblatex/natbib output (#5722).
3182 + Fix line breaks at start of paragraph (#3324).
3183 Previously we just omitted these. Now we render them
3184 using `\hfill\break` instead of `\\`. This is a revision
3185 of a PR by @sabine (#5591) who should be credited with the idea.
3186 + We no longer look in the template or header-includes to see if a
3187 book or article documentclass is used, or to see whether the
3188 `csquotes` package is used. To use `csquotes` for LaTeX, set
3189 `csquotes` in your variables or metadata. To specify a book
3190 style, use the `documentclass` variable or
3191 `--top-level-division`.
3192 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
3193 `\linethickness`, which apparently only ever worked "by accident"
3194 and no longer works with recent updates to texlive.
3196 * ConTeXt writer:
3198 + Add option to include source files in ConTeXt PDFs (Tristan
3199 Stenner, #5578). The metadata field or variable
3200 (`includesource`) can be set to attach the source documents
3201 to the resulting PDF.
3202 + Customizable type of PDF/A for the ConTeXt writer (Karl
3203 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
3204 Also updated color profile settings in accordance with ConTeXt wiki,
3205 and made ICC profile and output intent for PDF/A customizable
3206 using `pdfaiccprofile` and `pdfaintent`.
3207 + Unit tests: adjust code property to avoid an irrelevant
3208 failure involving inline code with two consecutive newlines.
3209 + Set `csl-hanging-indent` variable if needed.
3210 + Use special environment for CSL references.
3211 + Use braces, not start/stop, for inline language tags.
3212 This prevents unwanted gobbling of spaces.
3214 * HTML writer:
3216 + Use numeric character references with `--ascii` (#5718).
3217 Previously we used named character references with html5 output.
3218 But these aren't valid XML, and we aim to produce html5 that is
3219 also valid XHTML (polyglot markup). (This is also needed for epub3.)
3220 + Ensure that line numbers in code blocks get id-prefix (#5650).
3221 + Ensure TeX formulas are rendered correctly (Philip Pesca,
3222 #5658). The web service passed in to `--webtex` may render
3223 formulas using inline or display style by default.
3224 Prefixing formulas with the appropriate command ensures
3225 they are rendered correctly.
3226 + Render inline formulas correctly with `--webtex` (Philip
3227 Pesca, #5655). We add `\textstyle` to the beginning of the
3228 formula to ensure it will be rendered in inline style.
3229 + Pass through `aria-` attributes to HTML5 (#5642).
3230 + Render a Quoted element with an inner Span with
3231 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
3232 + Render a Span with class `mark` using the `<mark>` element
3233 (Florian Beeres, #5797).
3234 + Render Span with class `dfn` using `<dfn>` element
3235 (Florian Beeres, #5882).
3236 + Render Span with class `kbd` using `<kbd>` element (Daniele
3237 D'Orazio, #5796).
3238 + Render Code with class `variable` using `<var>` element
3239 (Amogh Rathore, #5799).
3240 + Render Code with class `sample` using `<samp>` element
3241 (Amogh Rathore, #5799).
3243 * EPUB writer:
3245 + Improve splitting into chapters (#5761), using `makeSection`.
3246 + Avoid issuing warning multiple times when title not set (see #5760).
3247 + Use svg tag wrapper for cover image (#5638). In addition, the
3248 code generating the image has been moved to the template, to make it
3249 more customizable. NOTE: Those who use custom EPUB
3250 templates will need to adjust their templates, adding the
3251 code to generate the cover image. (Previously this was just
3252 inserted into 'body'.)
3253 + Improve toChapters, making it work better if there are Divs
3254 around sections.
3255 + Add support for EPUB2 covers (blmage, #3992).
3256 + Do not override existing "fileN" medias when writing to EPUB format
3257 (blmage, #4206).
3258 + Ensure that `lang` variable is set on all chapters (so that it
3259 will add an `xml:lang` attribute on the `html` element).
3261 * RST writer:
3263 + Removed remnants of `admonition-title`.
3264 + Fix handling of `:align:` on figures and images (#4420).
3265 When the image has the `align-right` (etc.) class, we now use
3266 an `:align:` attribute.
3267 + Improve spacing for tables with no width information (#5899).
3268 If a simple table would be too wide, we use a grid table.
3269 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
3270 The check whether a complex inline element following a string must
3271 be escaped, now depends on the last character of the string instead
3272 of the first.
3273 + Ensure there's a blank line before tables (#5898).
3275 * Dokuwiki writer:
3277 + Handle mixed lists without HTML fallback (#5107).
3279 * XWiki writer:
3281 + Fix multiline table (Zihang Chen, #5683).
3283 * Muse writer:
3285 + Add RTL support (Alexander Krotov, #5551).
3287 * Man writer:
3289 + Suppress non-absolute link URLs (#5770). Absolute URLs are
3290 still printed in parentheses following the link text, but relative
3291 URLs are suppressed (just as internal links starting with '#'
3292 always have been).
3293 + Improved definition list term output. Now we boldface code but
3294 not other things. This matches the most common style in man pages
3295 (particularly option lists).
3297 * Ms writer:
3299 + Use `.LP` instead of `.PP` for line block (#5588).
3300 + Use boldface for definition terms in DefinitionLists.
3302 * JATS writer:
3304 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
3305 + Update template to v1.1dtd (#5632, Arfon Smith).
3306 + Update `data/jats.csl` to avoid commas between editor
3307 name-part elements. (#5629)
3308 + Add `abstract` to template (Mauro Bieg).
3310 * TEI writer:
3312 + Don't strip hash from internal links (#5922).
3314 * Jira writer:
3316 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
3317 + Remove extraneous newline after single-line block quotes
3318 (#5858, Albert Krewinkel).
3319 + Improve escaping of special characters, using backslash escapes
3320 instead of HTML entities (#5858, Albert Krewinkel).
3322 * OpenDocument writer:
3324 + Avoid duplicate attributes (#4634). We use the innermost
3325 attribute in nested cases.
3326 + If `native_numbering` extension is set, use native OpenDocument
3327 enumeration for figures and tables (Nils Carlson).
3328 + Place caption before table (#5681, Dmitry Pogodin).
3330 * ODT writer:
3332 + Add a test for MathML formulas in ODT documents (blmage).
3333 + Improve the parsing of frames in ODT documents (blmage).
3335 * Docx writer:
3337 + Make handling of styles more robust in localized versions
3338 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
3339 style names, not ids, for assigning semantic meaning, since
3340 the ids can change depending on the locale. Style name
3341 comparisons are case-insensitive, since those are
3342 case-insensitive in Word. Since docx style names can have
3343 spaces in them, and pandoc-markdown classes can't, anywhere
3344 when style name is used as a class name, spaces are
3345 replaced with ASCII dashes `-`. Code styles, i.e. "Source
3346 Code" and "Verbatim Char" now honor style inheritance. Docx
3347 Reader now honours "Compact" style (used in
3348 Pandoc-generated docx). The side-effect is that "Compact"
3349 style no longer shows up in docx+styles output. Styles
3350 inherited from "Compact" will still show up.
3351 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
3352 + Internal improvements and code simplification (Nikolay Yakimov).
3353 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
3354 #5670). This change prevents custom styles on divs and spans
3355 from overriding styles on certain elements inside them, like
3356 headings, blockquotes, and links. On those elements, the
3357 "native" style is required for the element to display correctly.
3358 This change also allows nesting of custom styles; in order to do so,
3359 it removes the default "Compact" style applied to Plain blocks,
3360 except when inside a table.
3361 + Add `proofState` to list of elements carried over from
3362 settings.xml in the reference.docx (Krystof Beuermann, #5703).
3363 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
3364 Martín Barbero, #5645). Also, make list para properties go first.
3365 This reordering of properties shouldn't be necessary but
3366 it seems Word Online does not understand the docx correctly otherwise.
3368 * PowerPoint writer:
3370 + Code formatting is now context dependent (Jeroen de Haas, #5573).
3371 This commit alters the way in which the Powerpoint writer treats
3372 inline code and code blocks. Inline code is now formatted at
3373 the same size as the surrounding text. Code blocks are now given
3374 a margin and font size according to their level.
3375 Furthermore this commit allows changing the font with which code is
3376 formatted via the `monofont` option.
3377 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
3378 Starting numbers for ordered lists were previously ignored. Now
3379 we specify the number if it is something other than 1.
3381 * Text.Pandoc.Parsing:
3383 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
3384 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
3385 unsuffixed counterparts but pack some or all of their output
3386 (Christian Despres, #5884).
3387 + Add `stateAllowLineBreaks` to `ParserState` [API change].
3388 + Fix inline parsing in grid table cells (#5708).
3389 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
3390 rather than a `SourcePos` [API change].
3391 + Make `parseFromString'` and `gridTableWith` and
3392 `gridTableWith'` polymorphic in the parser state,
3393 constraining it with `HasLastStrPosition` [API change].
3394 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
3395 + Rename takeWhileP -> take1WhileP and clean it up.
3396 (It doesn't match the empty sequence.)
3398 * Text.Pandoc.PDF:
3400 + For PDFs via HTML, ensure temp file is deleted even if the pdf
3401 program is not found (#5720).
3402 + Better detection of a Cygwin environment (#5451).
3403 + Don't assume tex log file is UTF8-encoded (#5872).
3404 Fall back to latin1 if it can't be read as UTF-8.
3406 * Text.Pandoc.Extensions:
3408 + Export new function `getAllExtensions`, which returns the
3409 extensions that affect a given format (whether enabled by default
3410 or not) [API change].
3411 + Change type of `parseFormatSpec` from
3412 `Either ParseError (String, Extensions -> Extensions)`
3413 to `Either ParseError (String, [Extension], [Extension])`
3414 [API change].
3415 + Add `Ext_gutenberg` constructor to `Extension` [API change].
3416 + Add `Ext_native_numbering` constructor to `Extension` [API change]
3417 (Nils Carlson).
3419 * Text.Pandoc.Readers, Text.Pandoc.Writers:
3421 + Change type of `getReader` and `getWriter` so they return
3422 a value in the PandocMonad instance rather than an Either
3423 [API change]. Exceptions for unknown formats and unsupported
3424 extensions are now raised by these functions.
3426 * Text.Pandoc.App
3428 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
3429 (Owen McGrath, #5702) [API change].
3431 * Text.Pandoc.Logging:
3433 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
3434 Issue this warning when we're falling back to markdown or
3435 html because we don't recognize the extension of the input or
3436 output files.
3437 + Clarify warning for missing title (#5760).
3438 + Add `UnusualConversion` constructor to `LogMessage` [API change]
3439 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
3441 * Lua filters:
3443 + Improve function documentation (Albert Krewkinkel).
3444 + Traverse nested blocks and inlines in correct order (Albert
3445 Krewinkel, #5667). Traversal methods are updated to use the new
3446 Walk module so that sequences with nested Inline (or Block) elements
3447 are traversed in the order in which they appear in the linearized
3448 document.
3449 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
3450 Lua filters must be able to traverse sequences of AST
3451 elements and to replace elements by splicing sequences back
3452 in their place. Special `Walkable` instances can be used for
3453 this; those are provided in a new module
3454 `Text.Pandoc.Lua.Walk`.
3455 + `Attr` values can now be given as normal Lua tables (Albert
3456 Krewinkel, #5744). This can be used as a convenient alternative
3457 to constructing `Attr` values with `pandoc.Attr`. Identifiers
3458 are taken from the `id` field, classes must be given as
3459 space separated words in the `class` field. All remaining fields
3460 are included as attributes. With this change, the following lines
3461 now create equal elements:
3462 ```
3463 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
3464 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
3465 ```
3466 This also works when using the *attr* setter:
3467 ```
3468 local span = pandoc.Span 'text'
3469 span.attr = {id = 'test', class = 'a b', check = 1}
3470 ```
3471 Furthermore, the *attributes* field of AST elements can now be a
3472 plain key-value table even when using the `attributes` accessor:
3473 ```
3474 local span = pandoc.Span 'test'
3475 span.attributes = {check = 1} -- works as expected now
3476 ```
3477 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
3478 use `hierarchicalize` will need to be rewritten to use
3479 `make_sections`.
3480 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
3481 + Fix Lua function names in pandoc.system (niszet). Change
3482 `get_current_directory` to `get_working_directory` and
3483 `with_temp_directory` to `with_temporary_directory`, to
3484 conform to the manual.
3486 * Text.Pandoc.Error:
3488 + Add constructors `PandocUnknownReaderError`,
3489 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
3490 [API change].
3491 + Better message for `PandocShouldNeverHappenError`.
3492 + Better message for `PandocTemplateError`.
3494 * Text.Pandoc.Emoji:
3496 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
3497 which uses the list from the gem GitHub uses. Future updates
3498 can be done with this tool.
3500 * Text.Pandoc.PDF:
3502 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
3503 in the process of creating a PDF (#5721).
3505 * Text.Pandoc.Shared:
3507 + Replace `Element` and `makeHierarchical` with `makeSections`.
3508 Now that we have Divs, we can use them to represent the
3509 structure of sections, and we don't need a special Element type.
3510 `makeSections` reorganizes a block list, adding Divs with class
3511 `section` around sections, and adding numbering if needed.
3512 This change also fixes some longstanding issues recognizing section
3513 structure when the document contains Divs (#3057, see also #997).
3514 + Remove `Element` type [API change]
3515 + Remove `makeHierarchicalize` [API change]
3516 + Add `makeSections` [API change]
3517 + Export `deLink` [API change]
3518 + Make `filterIpynbOutput` strip ANSI escapes from code in output
3519 for non-ipynb formats, when the default "best" option is used with
3520 `--ipynb-output` (#5633).
3521 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
3522 + Improve `isTight` (#5857). If a list has an empty item,
3523 this should not count against its being a tight list.
3524 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
3525 This is a mapping of HTML span-like elements that are internally
3526 represented as a Span with a single class.
3527 + Change the implementation of `htmlSpanLikeElements` to retain
3528 classes and attributes (#5882, Florian Beeres).
3530 * Text.Pandoc.Slides: recognize content in Divs when determining
3531 slide level.
3533 * Text.Pandoc.SelfContained:
3535 + Omit content-type on type attribute for `<style>` (#5725).
3536 It doesn't seem to be valid for HTML5, and as a result Chrome
3537 ignores the style element.
3539 * Text.Pandoc.Pretty has been removed [API change].
3540 We now use the new external doclayout module instead.
3542 * Text.Pandoc.Writers.Shared:
3544 + Remove `metaToJSON`, `metaToJSON'` [API change].
3545 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
3546 `resetField` to work with Context rather than JSON values. [API change]
3547 + Export new function `endsWithPlain` [API change].
3548 + Change `gridTables` so it does better at keeping the widths of
3549 columns (#4320) and does better at figuring out column widths
3550 when no widths are given (#5899).
3552 * Text.Pandoc.Options
3554 + Change type of `writerTemplate` to `Maybe Template` instead
3555 of `Maybe String`.
3556 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
3557 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
3558 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
3559 In each case we use lowercase (or hyphenated lowercase) for
3560 constructors to line up more closely with command-line option
3561 values. This is a breaking change for those who manually decode or
3562 encode JSON for these data types (e.g. for `ReaderOptions` or
3563 `WriterOptions`).
3565 * Text.Pandoc.Filters:
3567 + Add `FromYAML` instance for `Filter`.
3568 + `applyFilters`: Add and apply filters in order (not reversed)
3569 This changes `applyFilters` from Text.Pandoc.Filter so
3570 that it does a left fold rather than a right fold, applying
3571 the filters in the order listed.
3573 * Text.Pandoc.XML:
3575 + Change `toEntities` to emit numerical hex character references
3576 (#5718).
3578 * Text.Pandoc.Highlighting:
3580 + Add additional listings languages (Wandmalfarbe).
3582 * Text.Pandoc.MediaBag:
3584 + Some of the types using Strings were switched to use FilePath instead
3585 (Christian Despres, #5884).
3587 * Text.Pandoc.Templates:
3589 + Don't import/export `varListToJSON` [API change]. It is removed in
3590 doctemplates >= 0.3.
3591 + Change type of `renderTemplate'` [API change]. Return value is
3592 now Text rather than being polymorphic. This makes room for
3593 upcoming removal of the `TemplateTarget` class from doctemplates.
3595 * Text.Pandoc.App.Opt [API changes]:
3597 + More convenient To/FromJSON instances. Make the field names
3598 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
3599 Anyone who is using JSON serialization of Opt will need to adjust
3600 things accordingly.
3601 + Change `optHighlightStyle` to a `Maybe String` instead of
3602 `Maybe Style`. Do the parsing/loading of themes later, after
3603 option parsing.
3604 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
3605 `optShiftHeadingLevelBy`, to avoid redundancy.
3606 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
3607 match the option.
3608 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
3609 or `crlf` will work.
3610 + Change `optVariables` from `[(String, String)]` to `Context Text`.
3611 + Change `optMetadata` to `Meta`, to allow structured values.
3612 The current behavior of the `--metadata` option stays the same.
3613 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
3614 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
3615 + Rename `optMetadataFile` to `optMetadataFiles`.
3616 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
3617 + Rename `optWrapText` to `optWrap`.
3618 + Add `IpynbOutput` enumerated type: use this instead of
3619 a string for `optIpynbOutput`.
3620 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
3621 `Nothing` means: nothing specified.
3622 `Just []` means: an empty list specified (e.g. in defaults).
3623 + List fields in Opt so they aren't reversed (#5881) [API change].
3624 Previously `optIncludeInHeader`, etc. were in reverse order.
3625 + The `sourcefile` variable is now always a list. It used to be
3626 sometimes a string, sometimes a list (when there was more than one).
3628 * Template changes:
3630 + default.latex: added code for `cslreferences` environment,
3631 to be used for pandoc-citeproc references. A `csl-hanging-indent`
3632 variable (set automatically if there is a `hanging-ident`
3633 class on the references Div) controls whether contents of this
3634 environment receive a hanging indent.
3635 + default.latex: Add `space` as default option for xeCJK, so that
3636 spaces between words are preserved (#5855, jeongminkim-islab).
3637 This is necessary for Korean.
3638 + default.latex: Remove include of `grffile` (#5848).
3639 This package used to be needed for proper handling of image filenames
3640 containing periods (in addition to the period before the extension).
3641 It no longer works with the latest LaTeX kernel and graphicx,
3642 so we have removed it. Future versions of graphicx will handle
3643 these filenames without the need for `grffile`.
3644 + default.context: add a saner default for page numbers.
3645 Previously they appeared centered at the top of the page;
3646 now we put them centered at the bottom, unless the `pagenumbering`
3647 variable is set.
3648 + default.context: define a start-stop-pair `cslreferences` to
3649 allow for hanging indents in the bibliography (#5875, Denis Maier).
3650 + default.ms: update defaults. Use Palatino font, use slightly
3651 wider interparagraph space, don't indent paragraphs,
3652 and put page numbers on the bottom. This brings ms output
3653 closer to default LaTeX output.
3654 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
3655 + default.muse: handle multiple authors better.
3656 + docbook4, docbook5 templates: add indentation to body.
3657 + HTML-based templates: use `styles.html` partial to avoid
3658 code duplication.
3659 + HTML-based templates: change indentation of styles in template.
3661 * reference.docx (#5820):
3663 + Change Block Text (block quote) style so that the same font
3664 is used as in the body text, and the block text is indented
3665 left and right.
3666 + All headings now have a uniform color.
3667 + Level-1 headings no longer set `w:themeShade="B5"`.
3668 + Level-2 headings are now 14 point rather than 16 point.
3669 + Level-3 headings are now 12 point rather than 14 point.
3670 + Level-4 headings are italic rather than bold.
3672 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
3673 new hanging indents.
3675 * pandoc.cabal:
3677 + Repeat ghc-options in all stanzas.
3678 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
3679 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
3680 (Albert Krewinkel).
3681 + Add cabal.project to extra-source-files (Albert Krewinkel).
3682 + Add dependency on skylighting-core (#5729). Even though it shouldn't
3683 be needed, some tools require it.
3684 + Require latest pandoc-types, texmath, skylighting, haddock-library.
3685 + Ensure TemplateHaskell is added to other-extensions when it is
3686 used (Vanessa McHale, #5728).
3687 + Remove `derive_json_via_th` flag; always use TH. This cuts down
3688 on code duplication and reduces the chance for errors. See #4083.
3690 * Makefile:
3692 + Add ghci target.
3693 + Add ghcid target.
3694 + Remove references to obsolete flag (#5694).
3696 * Benchmarks: fix failure on ipynb.
3698 * Use MathJax 3 (zorkow).
3700 * KaTeX math: respect `classoption=fleqn` variable,
3701 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
3703 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
3705 * Use throwError instead of fail when appropriate.
3707 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
3709 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
3710 This is intended to make it easier to test differences in zip
3711 containers, like epub, docx, or odt.
3713 * Add `.gitattributes` (#5747). This ensures that the golden files
3714 in `test/fb2/reader/` don't have newlines converted. This should fix
3715 a test failure on GitHub CI with Windows.
3717 * Reorder options in `--help`.
3719 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
3721 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
3723 * Fix trypandoc with `getReader`/`getWriter` changes.
3725 * Allow building pandoc with GHC 8.8.
3727 * linux tarball: add architecture `-amd64` to filename.
3728 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
3730 * MANUAL.txt:
3732 + Add section for exit codes.
3733 + Document some pptx limitations in slide show section:
3734 No incremental display (#5689). No pause with `. . .` (#5701).
3735 + reveal.js flags (Mauro Bieg, #5653).
3736 + Document addition of `data-` prefix to unknown attributes in HTML5.
3737 + Link to YAML spec (Mauro Bieg, #5687).
3738 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
3739 + Use a table for exit codes.
3740 + Put all template variable docs into one section.
3741 + Use ATX headers consistently.
3742 + Add fuller documentation of templates (#5779), including
3743 new template syntax, partials, etc.
3744 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
3745 + Clarify when macro definitions are passed as raw latex.
3746 In Markdown input, they are always passed through. In LaTeX, only if
3747 `latex_macros` is disabled.
3748 + Clarify that `--dpi` provides a default and doesn't override
3749 dpi values specified in the images themselves (#5721).
3750 + Document how to use custom writers with `--standalone` (#5866).
3751 + Clarify `--preserve-tabs` default.
3753 * INSTALL.md:
3755 + Fix instructions for libicu.
3756 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
3758 * CONTRIBUTING.md:
3760 + Add information on tests (Agustín Martín Barbero, #5652).
3761 + Add information about command test naming to CONTRIBUTING (Florian B).
3763 * Fix typos in changelog and comments (#5896, Brian Wignall).
3765 * doc/lua-filters.md:
3767 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
3768 + Improve metadata replacement example in lua-filters doc (#5851).
3769 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
3770 #5892).
3772## pandoc 2.7.3 (2019-06-11)
3774 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
3775 Albert Krewinkel).
3777 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
3778 This form is now supported in multimarkdown,
3779 in addition to `tex_math_double_backslash`.
3781 * Fix `--self-contained` so it works when output format has extensions.
3782 Previously if you used `--self-contained` with `html-smart` or
3783 `html+smart`, it wouldn't work.
3785 * Add template variable `curdir` with working directory
3786 from which pandoc is run (#5464).
3788 * Markdown reader: don't create implicit reference for empty header
3789 (#5549).
3791 * Muse reader: allow images inside link descriptions (Alexander Krotov).
3793 * HTML reader: epub related fixes.
3795 + With epub extensions, check for `epub:type` in addition to `type`.
3796 + Fix problem with noteref parsing which caused block-level
3797 content to be eaten with the noteref.
3798 + Rename `pAnyTag` to `pAny`.
3799 + Refactor note resolution.
3800 + Trim definition list terms (Alexander Krotov).
3802 * LaTeX reader:
3804 + Add braces when resolving `\DeclareMathOperator`
3805 (#5441). These seem to be needed for xelatex but not pdflatex.
3806 + Allow newlines in `\mintinline`.
3807 + Pass through unknown listings language as class (#5540).
3808 Previously if the language was not in the list of languages supported
3809 by listings, it would not be added as a class, so highlighting
3810 would not be triggered.
3811 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
3812 This change affects the markdown reader and other readers that allow raw
3813 LaTeX. Previously, trailing `{}` would be included for unknown
3814 commands, but not for known commands. However, they are sometimes used
3815 to avoid a trailing space after the command. The chances that a `{}`
3816 after a LaTeX command is not part of the command are very small.
3818 * MediaWiki reader: handle multiple attributes in table row (#5471,
3819 chinapedia).
3821 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
3822 property are put into Span inlines with `dir="rtl"`.
3824 * DocBook reader: Issue `IgnoredElement` warnings.
3826 * Org reader (Albert Krewinkel):
3828 + Fix planning elements in headers level 3 and higher
3829 (#5494). Planning info is now always placed before
3830 the subtree contents. Previously, the planning info was placed after
3831 the content if the header's subtree was converted to a list, which
3832 happens with headers of level 3 and higher per default.
3833 + Omit, but warn about unknown export options. Unknown export
3834 options are properly ignored and omitted from the output.
3835 + Prefer plain symbols over math symbols (#5483).
3836 Symbols like `\alpha` are output plain and unemphasized, not as math.
3837 + Recognize emphasis after TODO/DONE keyword (#5484).
3839 * FB2 reader:
3841 + Skip unknown elements rather than throwing errors (#5560).
3842 Sometimes custom elements are used (e.g. `id` element
3843 inside `author`); previously the reader would halt with an error.
3844 Now it skips the element and issues an `IgnoredElement` warning.
3845 + Parse notes (#5493, Alexander Krotov).
3846 + Internal improvements (Alexander Krotov).
3848 * OpenDocument writer: Roll back automatic figure/table numbering
3849 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
3850 to use pandoc-crossref. So this has been rolled back for now,
3851 until we find a good solution to make this behavior optional
3852 (or a creative way to let pandoc-crossref and this feature
3853 to coexist).
3855 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
3856 change] (Albert Krewinkel).
3858 * EPUB writer:
3860 + Don't include 'landmarks' if there aren't any.
3861 Previously we could get an empty ol element, which caused
3862 validation errors with epubcheck.
3863 + Ensure unique ids for styleesheets in content.opf (#5463).
3864 + Make stylesheet link compatible with kindlegen (#5466,
3865 Eric Schrijver). Pandoc omitted `type="text/css"` from both
3866 `<style>` and `<rel="stylesheet">` elements in all templates, which
3867 is valid according to the spec. However, Amazon’s kindlegen software
3868 relies on this attribute on `<link>` elements when detecting
3869 stylesheets to include.
3871 * HTML writer:
3873 + Output video and audio elements depending on file
3874 extension of the image path (Mauro Bieg).
3875 + Emit empty alt tag in figures (#5518, Mauro Bieg).
3876 The same text is already in the <figcaption> and
3877 screen-readers would read it twice, see #4737.
3878 + Don't add variation selector if it's already there.
3879 This fixes round-trip failures.
3880 + Prevent gratuitous emojification on iOS (#5469).
3881 iOS chooses to render a number of Unicode entities, including '↩', as
3882 big colorful emoji. This can be defeated by appending Unicode
3883 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
3884 character when escaping strings, for both '↩' and '↔'. If other
3885 characters prove problematic, they can simply be added to
3886 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
3887 rendered as `<p>` elements (#5457).
3889 * RST writer: treat Span with no attributes as transparent (#5446).
3890 Previously an Emph inside a Span was being treated as
3891 nested markup and ignored. With this patch, the Span
3892 is just ignored.
3894 * LaTeX writer:
3896 + Include inline code attributes with `--listings` (#5420).
3897 + Don't produce columns environment unless beamer (#5485).
3898 + Fix footnote in image caption. Regression: the fix for #4683 broke
3899 this case.
3900 + Don't highlight code in headings (#5574). This causes
3901 compilation errors.
3902 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
3904 * EPUB writer: Fix document section assignments (#5546).
3905 For example, introduction should go in bodymatter, not frontmatter, and
3906 epigraph, conclusion, and afterward should go in bodymatter, not
3907 backmatter. For the full list of assignments, see the manual.
3909 * Markdown writer:
3911 + Add backslashes to avoid unwanted interpretation of
3912 definition list terms as other kinds of block (#554).
3913 + Ensure the code fence is long enough (#5519).
3914 Previously too few backticks were used when the code block
3915 contained an indented line of backticks. (Ditto tildes.)
3916 + Handle labels with integer names (Jesse Rosenthal, #5495).
3917 Previously if labels had integer names, it could produce a conflict
3918 with auto-labeled reference links. Now we test for a conflict and
3919 find the next available integer. This involves adding a new state
3920 variable `stPrevRefs` to keep track of refs used in other document
3921 parts when using `--reference-location=block|section`
3923 * Textile writer: fix closing tag for math output (Albert Krewinkel).
3924 Opening and closing tag for math output match now.
3926 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
3927 Krewinkel). Emacs always uses two spaces when indenting the content of
3928 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
3929 indent contents by the space-equivalent of one tab, but now always uses
3930 two spaces, too.
3932 * Asciidoc writer:
3934 + Use `` `+...+` `` form for inline code.
3935 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
3936 To get a pure literal code span, use `` `+a__b__c+` ``.
3937 + Use proper smart quotes with asciidoctor (#5487).
3938 Asciidoctor has a different format for smart quotes.
3939 + Use doubled ## when necessary for spans (#5566).
3940 + Ensure correct nesting of strong/emph (#5565): strong
3941 must be the outer element.
3943 * JATS writer:
3945 + Wrap elements with p when needed (#5570). The JATS spec restricts
3946 what elements can go inside `fn` and `list-item`. So we wrap other
3947 elements inside `<p specific-use="wrapper">` when needed.
3948 + Properly handle footnotes (#5511) according to "best practice."
3949 (Group them at the end in `<fn-group>` and use `<xref>` elements
3950 to link them.)
3951 + Fix citations with PMID so they validate (#5481). This includes
3952 an update to data/jats.csl.
3953 + Ensure validity of `<pub-date>` by parsing the date and
3954 extracting year, month, and day, as expected. Also add an
3955 iso-8601-date attribute automatically.
3956 + Don't use `<break>` element for LineBreak. It is only
3957 allowed in a few special contexts, and not in `<p>` elements.
3958 + Don't make `<string-name>` a child of `<string>`, which is illegal.
3960 * FB2 writer:
3962 + Do not wrap note references into `<sup>` and brackets
3963 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
3964 display links with type="note" as a superscript.
3965 + Use genre metadata field (#5478).
3967 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
3969 * Add unicode code point in "Missing character" warning (#5538).
3970 If the character isn't in the console font, the message is pretty useless,
3971 so we show the code point for anything non-ASCII.
3973 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
3974 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
3975 turned into `Version` objects. The objects simplify version-appropriate
3976 comparisons while maintaining backward-compatibility.
3977 A function `pandoc.types.Version` is added as part of the newly
3978 introduced module `pandoc.types`, allowing users to create version
3979 objects in scripts.
3981 * pandoc lua module (Albert Krewinkel):
3983 - Fix deletion of nonexistent attributes (#5569).
3984 - Better tests for Attr and AttributeList.
3986 * pandoc.mediabag lua module (Albert Krewinkel):
3988 + Add function `delete` for deleting a single item.
3989 + Add function `empty` for removing all entries.
3990 + Add function `items` for iterating over mediabag.
3992 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
3993 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
3994 URLs were handled wrongly and pandoc attempted to make HTTP
3995 requests, which failed.
3997 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
3999 * Text.Pandoc.Shared:
4001 + Add `onlySimpleTableCells` [API change]
4002 (Mauro Bieg) and use this to consolidate simple-table detection
4003 (#5524). This fixes an inconsistency in the HTML reader, which did not
4004 treat tables with `<p>` inside cells as simple.
4005 + `metaToJSON`: treat digits starting with 0 as a string, not a number
4006 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
4008 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
4009 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
4010 readers which don't have access to parsec source positions.
4012 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
4014 * Improve output of Lua tests (#5499, Albert Krewinkel).
4015 This makes use of tasty-lua, a package to write tests in Lua
4016 and integrate the results into Tasty output. Test output becomes
4017 more informative: individual tests and test groups become visible
4018 in test output. Failures are reported with helpful error messages.
4020 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
4021 The `system` Lua module provides utility functions to interact with the
4022 operating- and file system. E.g.
4023 `print(pandoc.system.get_current_directory())`
4024 or
4025 ```lua
4026 pandoc.system.with_temporary_directory('tikz', function (dir)
4027 -- write and compile a TikZ file with pdflatex
4028 end)
4029 ```
4031 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
4033 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
4034 Beamer already loads geometry, so we need to use the `\geometry`
4035 command to set geometry options.
4037 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
4038 NOTE: Those who use a custom CSS stylesheet with EPUB should
4039 add these lines:
4041 code{ white-space: pre-wrap; }
4042 span.smallcaps{ font-variant: small-caps; }
4043 span.underline{ text-decoration: underline; }
4044 q { quotes: "“" "”" "‘" "’"; }
4045 div.column{ display: inline-block; vertical-align: top; width: 50%; }
4047 * reveal.js template:
4049 + Updates for revealjs 3.8.0 (#5435, ebiim).
4050 + Remove reference to head.min.js (#5448, Winnie Hellmann).
4051 NOTE: users will need to update reveal.js to at least 3.8.0
4052 for their presentations generated with this version of pandoc
4053 to work correctly.
4055 * Text.Pandoc.PDF:
4057 + Replace `</>` with literal `/` (#5451).
4058 We use forward-slash for a directory separator in tmpDir,
4059 even on Windows (because that's what tex likes). So we
4060 should not put a backslash between the tmpDir and the
4061 filename on Windows. This is harmless enough in normal
4062 Windows setups, but it breaks on Cygwin.
4063 Thanks to @cc2x for noticing and diagnosing the problem.
4064 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
4065 This is currently possible with `mklatex` and `-outdir`, but
4066 was not yet possible with xelatex and `-output-directory`.
4067 + For PDF via ms/pdfroff, make TOC appear at beginning and in
4068 PDF bookmarks (#5553). Previously the TOC appeared at the end
4069 of the document, and was not bookmarked. To keep it at the end,
4070 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
4072 * Fix broken links in documents (#5473, Shim Myeongseob).
4073 Also, use absolute links to pandoc.org when possible, so that
4074 the links can be followed by people viewing these documents
4075 on GitHub.
4077 * Improved sample lua tikz filter in lua-filters docs (#5445,
4078 Matthew Doty). There are three changes:
4080 + It only processes elements which begin with `\begin{tikzpicture}`
4081 + It uses pdf2svg instead of imagemagick to preserve fidelity
4082 + The images produced have transparent backgrounds
4084 * MANUAL.txt:
4086 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
4087 + Fix typo (#5489, Christian Krause).
4089 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
4091 * Disable missing-home-modules warning in `stack.yaml`.
4092 Otherwise `stack ghci` fails.
4095## pandoc 2.7.2 (2019-04-05)
4097 * Add XWiki writer (#1800, Derek Chen-Becker).
4098 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
4100 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
4102 * Vimwiki reader: improve handling of internal links (#5414).
4103 We no longer append `.html` to link targets, and we add a title
4104 `wikilink`. This mirrors behavior of other wiki readers. Generally
4105 the `.html` extension is not wanted. It may be important for output
4106 to HTML in certain circumstances, but it can always be added using a
4107 filter that matches on links with title `wikilink`.
4109 If your workflow requires the current behavior, here is a lua filter
4110 that will add the `.html` extension:
4112 ```lua
4113 function Link(el)
4114 if el.title == 'wikilink' then
4115 el.target = el.target .. ".html"
4116 end
4117 return el
4118 end
4119 ```
4120 * ipynb reader:
4122 + Use format `ipynb` for raw cell where no format given.
4123 + Avoid introducing spurious `.0` on integers in metadata.
4125 * Markdown reader: fenced div takes priority over setext header.
4127 * HTML reader: read `data-foo` attribute into `foo` (#5392).
4128 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
4129 attributes. But the attributes are represented in the AST without
4130 the `data-` prefix, so we should strip this when reading HTML.
4132 * LaTeX reader: Improve autolink detection (#5340).
4134 * PowerPoint writer (Jesse Rosenthal):
4136 + Expand builtin reference doc to model all layouts.
4137 The previous built-in reference doc had only title and content
4138 layouts. Add in a section-header slide and a two-content slide, so
4139 users can more easily modify it to build their own templates.
4140 + Always open up in slide view. When editing a
4141 template/reference-doc, the user might be in Master view, but when
4142 producing a slide show, it is assumed that slide view will be
4143 desired.
4144 + Remove `handoutsMasterList` from template presentation.xml
4145 + Fix numerous errors in templating (#5402). Previously, some templates
4146 produced by Office 365 (MacOS) would not render with `--reference-doc`
4147 correctly. We now apply correct shapes for content, and build
4148 shape trees correctly.
4149 + Make default placeholder type for template lookup.
4150 + Apply speaker notes to metadata slide if applicable.
4151 + Test for speaker notes after breaking header.
4152 + Correctly handle notes after section-title header.
4153 Previously, if notes came after a section-title header (ie, a level-1
4154 header in a slide-level=2 presentation), they would go on the next
4155 slide. This keeps them on the slide with the header.
4156 + Internal improvements.
4158 * ipynb writer:
4160 + Use format `ipynb` for raw cell where no format given.
4161 According to nbformat docs, this is supposed to render in every
4162 format. We don't do that, but we at least preserve it as a raw
4163 block in markdown, so you can round-trip.
4164 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
4165 HTML blocks, e.g. one for the open tag and one for a close tag.
4166 If these aren't consolidated, only one will show up in output cell.
4167 + Fixed carry-over of nbformat from metadata.
4168 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
4170 * LaTeX writer:
4172 + Avoid inadvertently creating ?` or !` ligatures (#5407).
4173 These are upside down ? and !, resp.
4174 + Fix footnotes in table caption and cells (#5367). This fixes a
4175 bug wherein footnotes appeared in the wrong order, and with
4176 duplicate numbers, when in table captions and cells.
4177 We now use regular `\footnote` commands, even in the table
4178 caption and the minipages containing cells. Apparently
4179 longtable knows how to handle this.
4181 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
4183 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
4185 * Markdown writer:
4187 + Better rendering of numbers (#5398). If the number is integral,
4188 we render it as an integral not a float.
4189 + Proper rendering of empty map in YAML metadata (#5398). Should
4190 be `{}`, not empty string.
4191 + Properly escape attributes in Markdown writer (#5369).
4192 + Be sure implicit figures work in list contexts (#5368).
4193 Previously they would sometimes not work: e.g., when they
4194 occurred in final paragraphs in lists that were originally
4195 parsed as Plain and converted later using PlainToPara.
4197 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
4198 We previously added the attribute `type="textWrapping"`, but
4199 this causes problems on Word Online.
4201 * LaTeX template (Andrew Dunning):
4203 + Ensure correct heading/table order (#5365). Improve workaround
4204 (#1658) for tables following headings. The new solution works whether
4205 or not the `indent` variable is enabled.
4206 + Remove `subparagraph` variable. The default is now to use run-in
4207 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
4208 To get the previous default behavior (where these were formatted as
4209 blocks, like `\subsubsection`), set the `block-headings` variable.
4210 + Add pandoc to PDF metadata (#5388).
4211 + Group graphics-related code (#5389).
4212 + Move `\setstretch` after front matter (#5179). Ensures that
4213 `\maketitle`, `\tableofcontents`, and so forth are not affected by
4214 changes to line spacing.
4216 * Update data/jats.csl to avoid commas between name-part elements
4217 (#5397).
4219 * Add support for golang (`go`) with `--listings` (#5427).
4221 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
4222 We now do a better job marshalling numbers from MetaString
4223 or MetaInlines into JSON Number.
4225 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
4226 integers. Pandoc's MetaValue doesn't have a distinguished number type,
4227 so numbers are put in MetaStrings. If the MetaString consists
4228 entirely of digits, we convert it to a Number. We should probably
4229 consider adding a MetaNumber constructor to MetaValue, for better
4230 round-tripping with JSON etc. This change aids round-tripping in
4231 ipynb metadata fields, like `toc_depth`.
4233 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
4234 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
4236 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
4237 a wider range of PDFs (#4322, with help from Richard Davis).
4239 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
4241 * Fix harmless error in file-scope code (#5422).
4243 * MANUAL.txt:
4245 + Improve 'header' and 'heading' usage (#5423, Andrew
4246 Dunning). The term 'header' was being used where 'heading'
4247 is more appropriate.
4248 + Add paragraph on options affecting markdown in ipynb.
4250 * stack.yaml - remove -Wmissing-home-modules
4251 This seems to cause problems with stack ghci. Remove RTS options.
4253 * Add ghc-options to cabal.project.
4255 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
4257 * linux build process: Remove clone of pandoc-citeproc (#5366).
4258 It wasn't being used; cabal.project specifies the version to use.
4260## pandoc 2.7.1 (2019-03-14)
4262 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
4263 Runs tectonic on STDIN instead of a temporary .tex file, so that it
4264 looks in the working directory for `\include` and `\input` like the rest
4265 of the engines. Allows overriding the output directory
4266 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
4268 * Allow `-o/--output` to be used with `--print-default-data-file`,
4269 `--print-highlighting-style`, `--print-default-template`.
4270 Note that `-o` must occur BEFORE the `--print*` command on the command
4271 line (this is documented, #5357).
4273 * LaTeX reader:
4275 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
4276 Tilley). These are parsed as a Span with class `underline`, as
4277 with other readers.
4278 + Ensure that `\Footcite` and `\Footcites` get put in a note.
4280 * ipynb reader:
4282 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
4283 We now include every output format. Pruning is handled by
4284 `--ipynb-output`.
4285 + Better handling of cell metadata. We now include even complex cell
4286 metadata in the Div's attributes (as JSON, in complex cases, or
4287 as plain strings in simple cases).
4289 * ipynb writer:
4291 + Recurse into native divs for output cell data (#5354).
4292 + Render cell metadata fields from div attributes.
4294 * Docx writer: avoid extra copy of abstractNum and num elements
4295 in numbering.xml. This caused pandoc-produced docx files to
4296 be uneditable using Word Online (#5358).
4298 * Markdown writer: improve handling of raw blocks/inline.
4299 We now emit raw content using `raw_attribute` when no more
4300 direct method is available. Use of `raw_attribute` can be
4301 forced by disabling `raw_html` and `raw_tex`.
4303 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
4304 and remove frontmatter from `scrreprt`.
4306 * LaTeX template:
4308 + Improve readability (#5363, Andrew Dunning).
4309 + Robust section numbering removal (#5351, Andrew Dunning).
4310 Ensures that section numbering does not reappear with custom
4311 section levels. See <https://tex.stackexchange.com/questions/473653/>.
4312 + Better handling of front/main/backmatter (#5348).
4313 In pandoc 2.7 we assumed that every class with chapters would accept
4314 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
4315 report does not). So pandoc 2.7 breaks on report class by including an
4316 unsupported command. Instead of the `book-class` variable, we use two
4317 variables, `has-chapters` and `has-frontmatter`, and set these
4318 intelligently in the writer.
4320 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
4321 images are prioritized over text. `best` should include everything
4322 for ipynb.
4324 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
4325 data files even if they haven't been installed. Remove old
4326 `pandoc_datadir` environment variable, which hasn't done anything for a
4327 long time.
4329 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
4331 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
4333 * Use latest pandoc-citeproc, texmath.
4336## pandoc 2.7 (2019-03-03)
4338 * Use XDG data directory for user data directory (#3582). Instead of
4339 `$HOME/.pandoc`, the default user data directory is now
4340 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
4341 `$HOME/.local/share` but can be overridden by setting the
4342 environment variable. If this directory is missing, then
4343 `$HOME/.pandoc` is searched instead, for backwards compatibility.
4344 However, we recommend moving local pandoc data files from
4345 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
4346 default user data directory remains the same.
4348 * Slide show formats behavior change: content under headers
4349 less than slide level is no longer ignored, but included in
4350 the title slide (for HTML slide shows) or in a slide after
4351 the title slide (for beamer). This change makes possible
4352 2D reveal.js slideshows with content in the top slide on
4353 each stack (#4317, #5237).
4355 * Add command line option `--ipynb-output=all|none|best` (#5339).
4356 Output cells in ipynb notebooks often contain several different
4357 versions of an output, with different MIME types, e.g. an HTML
4358 table and a plain-text fallback. Specifying `--ipynb-output=best`
4359 (the default) ensures that the best version for the output format
4360 is used. `all` includes all versions, and `none` suppresses them
4361 all, leaving output cells empty.
4363 * `asciidoctor` is now an output format separate from `asciidoc`,
4364 to accommodate some minor implementation-specific differences
4365 (currently just in the treatment of display math).
4367 * Add `latexmk` as an option for `--pdf-engine` (#3195).
4368 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
4369 a persistent temp directory.
4371 * Markdown reader:
4373 + Improve tight/loose list handling (#5285). Previously the
4374 algorithm allowed list items with a mix of Para and Plain, which
4375 is never wanted.
4376 + Add newline when parsing blocks in YAML (#5271). Otherwise last
4377 block gets parsed as a Plain rather than a Para. This is a
4378 regression in pandoc 2.x. This patch restores pandoc 1.19
4379 behavior.
4380 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
4381 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
4382 + Fix bug parsing fenced code blocks (#5304). Previously parsing
4383 would break if the code block contained a string of backticks of
4384 sufficient length followed by something other than end of line.
4386 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
4387 requires nested braces. Otherwise some legitimate command and
4388 environment definitions can break.
4390 * Docx reader (Jesse Rosenthal):
4392 + Rename `getDocumentPath` as `getDocumentXmlPath`.
4393 + Use field notation for setting `ReaderEnv`.
4394 + Figure out `document.xml` path once at the beginning of parsing, and
4395 add it to the environment, so we can avoid repeated lookups.
4396 + Dynamically determine main document xml path (#5277).
4397 The desktop Word program places the main document file in
4398 `word/document.xml`, but the online word places it in
4399 `word/document2.xml`. This file path is actually stated in the root
4400 `_rels/.rels` file, in the `Relationship` element with an
4401 `http://../officedocument` type.
4402 + Fix paths in archive to prevent Windows failure (#5277).
4403 Some paths in archives are absolute (have an opening slash) which, for
4404 reasons unknown, produces a failure in the test suite on MS
4405 Windows. This fixes that by removing the leading slash if it exists.
4406 + Add comments to aid code readability.
4407 + Trim space inside the last inline (#5273).
4408 + Unwrap sdt elements in footnotes and comments (#5302).
4410 * Muse reader (Alexander Krotov):
4412 + Test that block level markup does not break `<verbatim>`.
4413 + Add secondary note support.
4415 * ipynb reader: handle images referring to attachments. Previously
4416 we didn't strip off the attachment: prefix, so even though the
4417 attachment was available in the mediabag, pandoc couldn't find it.
4419 * JATS reader:
4421 + Fix parsing of figures (#5321). This ensures that a figure
4422 containing a single image is parsed as a pandoc "implicit
4423 figure" (i.e., a Para with a single Image whose title attribute
4424 begins with `fig:`). More complex figures will still be parsed
4425 as divs.
4426 + Support `fig-group` block element (#5317).
4427 + Handle citations with multiple references (#5310). The `rid`
4428 attribute can have a space-separated list of ids.
4430 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
4431 Handle display math appropriately for Asciidoctor.
4433 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
4434 Mauro Bieg).
4436 * HTML writer:
4438 + Implement WAI-ARIA roles for (end)notes, citations, and
4439 bibliography (#4213). Note that doc-biblioref is only used when
4440 link-citations produces links, since it belongs on links.
4441 + Include content (including speaker notes) in title slides
4442 (#4317, #5237).
4444 * ipynb writer:
4446 + Ensure final newline.
4447 + Only include metadata under `jupyter` field.
4448 + Don't create attachments for images with absolute URIs,
4449 including data: URIs (#5303).
4450 + Keep plain text fallbacks in output even if a richer format is
4451 included (#5293). We don't know what output format will be needed.
4452 See the `--ipynb-output` command line option for a way to control
4453 what formats are included in the output.
4455 * Markdown writer: use `markdown="1"` when appropriate for Divs:
4456 when `native_divs` and `markdown_in_html_blocks` are disabled
4457 but `raw_html` and `markdown_attribute` are enabled.
4459 * LaTeX writer:
4461 + Use right fold for `escapeString`. This is more elegant than
4462 the explicit recursive code we were using.
4463 + Avoid `{}` after control sequences when escaping.
4464 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
4465 ellipsis package. This patch causes pandoc to avoid emitting
4466 the `{}` when it is not necessary. Now `\ldots` and other
4467 control sequences used in escaping will be followed by either
4468 a `{}`, a space, or nothing, depending on context.
4469 + For beamer, include contents under headers superordinate to
4470 slidelevel (#4317). Currently we keep the fancy title slide, and
4471 add a new slide with the same title and whatever content was
4472 under the header.
4474 * Powerpoint writer (Jesse Rosenthal): support underlines.
4475 Use span with single class "underline" as in docx writer.
4477 * Muse writer: escape secondary notes (Alexander Krotov).
4479 * FB2 writer: add section identifiers support (#5229, John KetzerX).
4481 * Make `--fail-if-warnings` work for PDF output (#5343).
4483 * Lua filters (Albert Krewinkel):
4485 + Load module `pandoc` before calling `init.lua` (#5287). The file
4486 `init.lua` in pandoc's data directory is run as part of pandoc's
4487 Lua initialization process. Previously, the `pandoc` module was
4488 loaded in `init.lua`, and the structure for marshaling was
4489 set up after. This allowed simple patching of element
4490 marshaling, but made using `init.lua` more difficult. Now, all
4491 required modules are now loaded before calling `init.lua`. The
4492 file can be used entirely for user customization. Patching
4493 marshaling functions, while discouraged, is still possible via
4494 the `debug` module.
4495 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
4496 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
4497 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
4498 `utils`, and `text`, respectively.
4500 * Text.Pandoc.Lua (Albert Krewinkel):
4502 + Split `StackInstances` into smaller Marshaling modules.
4503 + Get `CommonState` from Lua global. This allows more control over
4504 the common state from within Lua scripts.
4506 * LaTeX template:
4508 + Support the `subject` metadata variable (#5289, Pascal Wagler).
4509 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
4510 for book classes (#5306).
4512 * epub3 template: Add titlepage class to section (#5269).
4514 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
4516 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
4518 * Text.Pandoc.Shared:
4520 + Remove `withTempDir` [API change].
4521 + Add new exported function `defaultUserDataDirs` [API change].
4522 + Add `filterIpynbOutput` [API change].
4523 + `compactify`: Avoid lists with a mix of Plain and Para elements
4524 (#5285).
4526 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
4527 (#5334, Mauro Bieg).
4529 * Text.Pandoc.Extensions:
4531 + More carefully groom ipynb default extensions.
4532 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
4534 * Text.Pandoc.PDF:
4536 + Use system temp directory when possible (#1192). Previously we
4537 created temp dirs in the working directory, partly (a) because
4538 there were problems using the system temp directory on Windows,
4539 when their pathnames included tildes, and partly (b) because
4540 programs like `epstopdf.pl` would not be allowed to write to
4541 directories outside the working directory in restricted mode. We
4542 now (a) use the system temp dir except when the path includes
4543 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
4544 subsidiary programs can use the system temp directory. This
4545 addresses problems that occurred when pandoc was used in a
4546 synced directory (such as Dropbox).
4547 + Change types of subsidiary functions to PandocIO, to allow
4548 warnings to be threaded through (#5343).
4550 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
4552 * Tests: avoid calling `findPandoc` multiple times.
4554 * Old tests: remove need for temp files by using `pipeProcess`.
4556 * Added simple ipynb reader/writer tests (#5274).
4558 * Rearrange `--help` output in a more rational way, with common
4559 options at the beginning and options grouped by function (#5336).
4561 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
4563 * Add missing copyright notices and remove license boilerplate (#4592,
4564 Albert Krewinkel).
4566 * Use latest basement/foundation on 32bit windows.
4568 * Use latest skylighting (#5328). Custom syntax definitions no
4569 longer try to load `language.dtd`.
4571 * Require texmath 0.11.2.1
4573 * Use latest pandoc-citeproc (0.16.1.1).
4575 * MANUAL.txt:
4577 + Clarify variable substitution indentation in templates (#5338,
4578 Agustín Martín Barbero).
4579 + Reorder custom-styles section (#5324, Mauro Bieg).
4581## pandoc 2.6 (2019-01-30)
4583 * Support ipynb (Jupyter notebook) as input and output format.
4585 + Add `ipynb` as input and output format (extension `.ipynb`).
4586 + Added Text.Pandoc.Readers.Ipynb [API change].
4587 + Added Text.Pandoc.Writers.Ipynb [API change].
4588 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
4589 [API change].
4590 + Depend on ipynb library.
4591 + Note: there is no template for ipynb.
4593 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
4594 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
4595 as an input format.
4597 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
4598 extension. Task lists are supported from markdown and gfm input.
4599 They should work, to some degree, in all output formats, though in
4600 most formats you'll get a bullet list with a unicode character for
4601 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
4602 box is used as the list marker. API changes:
4604 + Added constructor `Ext_task_lists` to `Extension`.
4605 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
4606 Text.Pandoc.Shared.
4608 * Allow some command line options to take URL in addition to FILE.
4609 `--include-in-header`, `--include-before-body`, `--include-after-body`.
4611 * HTML reader:
4613 + Handle empty `start` attribute (see #5162).
4614 + Treat `textarea` as a verbatim environment (#5241) and preserve
4615 spacing.
4617 * RST reader:
4619 + Change treatment of `number-lines` directive (Brian Leung,
4620 #5207). Directives of this type without numeric inputs should
4621 not have a `startFrom` attribute; with a blank value, the
4622 writers can produce extra whitespace.
4623 + Removed superfluous `sourceCode` class on code blocks (#5047).
4624 + Handle `sourcecode` directive as synonynm for `code` (#5204).
4626 * Markdown reader:
4628 + Remove `sourceCode` class for literate Haskell code blocks
4629 (#5047). Reverse order of `literate` and `haskell` classes on
4630 code blocks when parsing literate Haskell, so `haskell` is
4631 first.
4632 + Treat `<textarea>` as a verbatim environment (#5241).
4634 * Org reader:
4636 + Handle `minlevel` option differently (#5190, Brian Leung).
4637 When `minlevel` exceeds the original minimum level observed in
4638 the file to be included, every heading should be shifted
4639 rightward.
4640 + Allow for case of `:minlevel == 0` (#5190).
4641 + Fix treatment of links to images (#5191, Albert Krewinkel).
4642 Links with descriptions which are pointing to images are no
4643 longer parsed as inline images, but as links.
4644 + Add support for #+SELECT_TAGS (Brian Leung).
4645 + Separate filtering logic from conversion function (Brian Leung).
4647 * TWiki reader: Fix performance issue with underscores (#3921).
4649 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
4650 We may not still be exactly matching mediawiki's algorithm.
4652 * LaTeX reader:
4654 + Remove `sourceCode` class for literate Haskell code blocks
4655 (#5047). Reverse order of `literate` and `haskell` classes on
4656 code blocks when parsing literate Haskell, so `haskell` is
4657 first.
4658 + Support `\DeclareMathOperator` (#5149).
4659 + Support `\inputminted` (#5103).
4660 + Support `\endinput` (#5233).
4661 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
4662 was interpreted as a file extension, leading pandoc not to add
4663 `.tex` (and thus not to find the file). The new behavior matches
4664 tex more closely.
4666 * Man reader:
4668 + Use `mapLeft` from Shared instead of defining own.
4670 * Docx reader (Jesse Rosenthal):
4672 + Handle level overrides (#5134).
4674 * Docx writer:
4676 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
4677 Also supports additional core properties: `subject`, `lang`,
4678 `category`, `description`.
4679 + Make Level into a real type, instead of an alias for a tuple
4680 (Jesse Rosenthal).
4682 * ICML writer (Mauro Bieg):
4684 + Support custom-styles (#5137, see #2106).
4685 + Support unnumbered headers (#5140).
4687 * Texinfo writer: Use header identifier for anchor if present (#4731).
4688 Previously we were overwriting an existing identifier with a new one.
4690 * Org writer: Preserve line-numbering for example and code blocks
4691 (Brian Leung).
4693 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
4694 in HTML and PDF as a unicode minus sign.
4696 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
4698 * RST writer: Don't wrap simple table header lines (#5128).
4700 * Asciidoc writer: Shorter delimiters for tables, blockquotes
4701 (#4364). This matches asciidoctor reference docs.
4703 * Dokuwiki writer: Remove automatic `:` prefix before internal image
4704 links (#5183, Damien Clochard). This prevented users from making
4705 relative image links.
4707 * Zimwiki writer: remove automatic colon prefix before internal
4708 images (#5183, Damien Clochard).
4710 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
4711 (#5105). Captions used to have the word 'caption' prepended; this
4712 has been removed. Also, 'thumb' is used instead of 'frame' to
4713 allow images to be resized.
4715 * reveal.js writer:
4717 + Ensure that we don't get > 2 levels of section nesting,
4718 even with slide level > 2 (#5168).
4719 + If slide level == N but there is no N-level header, make
4720 sure the next header with level > N gets treated as a slide
4721 and put in a section, rather than remaining loose (#5168).
4723 * Markdown writer:
4725 + Make `plain` RawBlocks pass through in `plain` output.
4726 + Include needed whitespace after HTML figure (#5121).
4727 We use HTML for a figure in markdown dialects that can't
4728 represent it natively.
4730 * Commonmark writer:
4732 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
4733 + Implement `--toc` (`writerTableOfContents`)
4734 in commonmark/gfm writers (#5172).
4736 * EPUB writer:
4738 + Ensure that picture transforms are done on metadata too.
4739 + Small fixes to `nav.xhtml`:
4740 Add 'landmarks' id attribute to the landmarks nav.
4741 Replace old default CSS removing numbers from ol.toc li
4742 with new rules that match `nav#toc ol, nav#landmarks ol`.
4743 We keep the `toc` class on `ol` for backwards compatibility.
4745 * LaTeX writer:
4747 + Make raw content marked `beamer` pass through in `beamer`
4748 output (pandoc/lua-filters#40).
4749 + Beamer: avoid duplicated `fragile` property in some cases
4750 (#5208).
4751 + Add `#` special characters for listings (#4939).
4752 This character needs special handling in `\lstinline`.
4754 * RTF writer: use `toTableOfContents` from Shared to replace
4755 old duplicated code.
4757 * Pptx writer:
4759 + Support custom properties. Also supports additional core
4760 properties: `subject`, `category`, `description` (#5252,
4761 Agustín Martín Barbero).
4762 + Use `toTableOfContents` from Shared to replace old duplicated code.
4764 * ODT writer (Augustín Martín Barbero):
4766 + Fix typo in custom properties (#2839).
4767 + Improve standard properties, including the following core
4768 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
4769 `keywords`, `initial-creator` (from authors), `creation-date`
4770 (actual creation date) (#5252).
4772 * Custom writers:
4774 + Allow '-' in filenames for custom lua writers (#5187).
4775 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
4776 + sample.lua: Add a missing `>` (MichaWiedenmann).
4778 * reveal.js template: Add `zoomKey` config (#4249).
4780 * HTML5 template: Remove unnecessary type="text/css" on style and
4781 link for HTML5 (#5146).
4783 * LaTeX template (Andrew Dunning, except where noted):
4785 + Prevent fontspec from scaling `mainfont` to match the default
4786 font, Latin Modern. A main font set to 12pt could
4787 previously appear between 11pt to 13pt depending on its design.
4788 To return to the earlier rendering, use `-V
4789 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
4790 + Display monospaced fonts without TeX ligatures when using
4791 `--pdf-engine=lualatex`. It now matches the behaviour of other
4792 engines (#5212, #5218).
4793 + Remove the deprecated `romanfont` variable. The functionality of
4794 `mainfont` is identical (#5218).
4795 + Render `\subtitle` with the standard document classes.
4796 Previously, `subtitle` only appeared when using the KOMA-Script
4797 classes or Beamer (#5213, #5244).
4798 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
4799 several language selection problems, notably with retaining
4800 French spacing conventions when switching to a verbatim
4801 environment or another language; and in printing Greek text
4802 without hyphenation (#5193).
4803 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
4804 available, improving the appearance of URLs by allowing them to
4805 break at additional points (#5193).
4806 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
4807 to correct heading levels in PDF bookmarks: see the [KOMA-Script
4808 3.26 release notes](https://komascript.de/release3.26) (#5193).
4809 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
4810 avoid a possible error when using additional packages alongside
4811 footnotes in tables (#5193, closes #4861).
4812 + Remove obsolete `fixltx2e` package, which has no functionality
4813 with TeX Live 2015 or later (#5193).
4814 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
4815 + Restrict `institute` variable to Beamer (#5219).
4816 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
4817 package if available to make footnotes in tables compatible
4818 with `hyperref` (#5234).
4819 + Number parts and chapters in book classes only if the
4820 `numbersections` variable is set, for consistency with other
4821 output formats. To return to the previous behaviour, use
4822 `-V numbersections -V secnumdepth=0` (#5235).
4823 + Reindent file (#5193).
4824 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
4825 + Set default listings language for lua, assembler (#5227, John
4826 MacFarlane). Otherwise we get an error when trying to compile code
4827 with lua or assembler code. To change the default dialect
4828 (currently 5.3 for lua and x86masm for assembler), you can use
4829 `--include-in-header` to inject something like
4830 `\lstset{defaultdialect=[5.2]Lua}`.
4832 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
4833 in an instance of PandocMonad, like the other readers and
4834 writers. [API change]
4836 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
4837 in an instance of PandocMonad, like the other readers and
4838 writers. [API change]
4840 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
4841 for `PandocError`. [API change]
4843 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
4844 This is refactored out from the Markdown writer.
4845 It can be used in other writers to create a table of contents.
4847 * Improve error messages for UTF-8 decoding errors. Now we give
4848 the filename and byte offset (#4765).
4850 * Text.Pandoc.XML: Strip out illegal XML characters in
4851 `escapeXMLString` (#5119).
4853 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
4854 The implementation of `pipeProcess` was rewritten to fix sporadic
4855 failures caused by prematurely closed pipes.
4857 * Use `safeRead` instead of `read` everywhere in the code
4858 (John MacFarlane, Mauro Bieg, #5162, #5180).
4860 * Text.Pandoc.SelfContained: Decompress `.svgz` when
4861 converting to `data:` URI (#5163, Alexander Krotov).
4863 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
4864 (#5175, Alexander Krotov). [API change]
4866 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
4867 When pandoc is compiled with ghc 8.6, Windows paths are treated
4868 differently, and paths beginning `\\server` no longer work.
4869 This commit rewrites such patsh to `\\?\UNC\server` which works.
4870 The change operates at the level of argument parsing, so it
4871 only affects the command line program.
4873 * Simplify/fix reading of `--metadata` values on command line
4874 to avoid problems relating to hvr/HsYAML#7 (#5177).
4876 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
4877 Krewinkel). Incorrect types to pandoc element constructors are
4878 automatically converted to the correct types when possible. This was
4879 already done for most constructors, but conversions are now also done
4880 for nested types (like lists of lists).
4882 * Removed custom Setup.hs, use build-type: simple. The only thing we
4883 gained from the custom build was automatic installation of the man
4884 page when using 'cabal install'. But custom builds cause problems,
4885 e.g., with cross-compilation. Installation of the man page is
4886 better handled by packagers. Note to packagers (e.g. Debian): it
4887 may be necessary to add a step installing the man page with the
4888 next release.
4890 * Allow latest http-client, tasty, zip-archive, Glob.
4892 * Require skylighting >= 0.7.5, adding support for sml, J,
4893 typescript.
4895 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
4896 works well with cabal v2.
4898 * INSTALL.md:
4900 + Use button for installer links (John MacFarlane, Mauro Bieg,
4901 #5167).
4902 + Fix links and bump required stack version (max).
4903 + Improve installation notes on associated software (Andrew
4904 Dunning). Includes explanation of how to install related tools
4905 with package managers (since the method of installing
4906 `rsvg-convert` is not obvious).
4908 * doc/org.md: improve documentation of org features (Albert
4909 Krewinkel).
4911 * doc/lua-filters.md: use 3rd level headers for module fields.
4913 * MANUAL:
4915 + Clarify automatic identifiers (#5201). We remove
4916 non-alphanumerics. This includes, e.g., emojis.
4917 + Fix example for Div with id (Geoffrey Ely).
4918 + Update list of LaTeX packages used.
4919 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
4920 + Mention `raw_attribute` in documentation for `raw_html` and
4921 `raw_tex` (#5240, thanks to @eiro).
4922 + Clarify that `$sep$` must come right before `$endfor$` in templates
4923 (#5243, Lev Givon).
4924 + Document metadata support for docx, odt, pptx writers (Agustín
4925 Martín Barbero).
4926 + Reorganize template variables (#5249, Andrew Dunning).
4927 Add additional headings to categorize variables, and
4928 alphabetize when there is large number; add more examples.
4929 + Document `date-meta` template variable (#5260, Tristan Stenner).
4931 * trypandoc: Fix CSS and viewport.
4933## pandoc 2.5 (2018-11-27)
4935 * Text.Pandoc.App: split into several unexported submodules (Albert
4936 Krewinkel): Text.Pandoc.App.FormatHeuristics,
4937 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
4938 Text.Pandoc.App.OutputSettings. This is motivated partly by the
4939 desire to reduce recompilations when something is modified,
4940 since App previously depended on virtually every other module.
4942 * Text.Pandoc.Extensions
4944 + Semantically, `gfm_auto_identifiers` is now a modifier of
4945 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
4946 be turned on, and then the type of identifier produced depends on
4947 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
4948 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
4949 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
4950 GitHub doesn't seem to strip non-ascii characters any more.
4952 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
4954 + Test AST object equality via Haskell (#5092). Equality of Lua
4955 objects representing pandoc AST elements is tested by unmarshalling
4956 the objects and comparing the result in Haskell.
4957 A new function `equals` which performs this test has been added to the
4958 `pandoc.utils` module.
4959 + Improve stringify. Meta value strings (MetaString)
4960 and booleans (MetaBool) are now converted to the literal string and the
4961 lowercase boolean name, respectively. Previously, all values of these
4962 types were converted to the empty string.
4964 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
4965 already exists (Alexander Krotov).
4967 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
4968 or beginning of line (#5050).
4970 * Text.Pandoc.Readers.Markdown
4972 + Fix parsing of citations, quotes, and underline emphasis
4973 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
4974 and underline emphasis were no longer recognized after certain
4975 symbols, like parentheses (#5099, #5053).
4976 + In pandoc 2.4, a soft break after an abbreviation would be
4977 relocated before it to allow for insertion of a nonbreaking
4978 space after the abbreviation. This behavior is here reverted.
4979 A soft break after an abbreviation will remain, and no nonbreaking
4980 space will be added. Those who care about this issue should take care not
4981 to end lines with an abbreviation, or to insert nonbreaking spaces
4982 manually.
4984 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
4985 `<body>` (Alexander Krotov). Some libraries include custom elements
4986 in their FB2 files.
4988 * Text.Pandoc.Readers.HTML
4990 + Allow `tfoot` before body rows (#5079).
4991 + Parse `<small>` as a Span with class "small" (#5080).
4992 + Allow thead containing a row with `td` rather than `th` (#5014).
4994 * Text.Pandoc.Readers.LaTeX
4996 + Cleaned up handling of dimension arguments. Allow decimal points,
4997 preceding space.
4998 + Don't allow arguments for verbatim, etc.
4999 + Allow space before bracketed options.
5000 + Allow optional arguments after `\\` in tables.
5001 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
5002 but know that these font changing commands take no arguments.
5004 * Text.Pandoc.Readers.Muse
5006 + Trim whitespace before parsing grid table cells (Alexander Krotov).
5007 + Add grid tables support (Alexander Krotov).
5009 * Text.Pandoc.Shared
5011 + For bibliography match Div with id `refs`, not class `references`.
5012 This was a mismatch between pandoc's docx, epub, latex, and markdown
5013 writers and the behavior of pandoc-citeproc, which actually looks for a
5014 div with id `refs` rather than one with class `references`.
5015 + Exactly match GitHub's identifier generating algorithm (#5057).
5016 + Add parameter for `Extensions` to `uniqueIdent` and
5017 `inlineListToIdentifier` (#5057). [API change]
5018 This allows these functions to be sensitive to the settings of
5019 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
5020 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
5021 also means that `gfm_auto_identifiers` can now be used in all formats.
5023 * Text.Pandoc.Writers.AsciiDoc
5025 + Use `.`+ as list markers to support nested ordered lists (#5087).
5026 + Support list number styles (#5089).
5027 + Render Spans using `[#id .class]#contents#` (#5080).
5029 * Text.Pandoc.Writers.CommonMark
5031 + Respect `--ascii` (#5043, quasicomputational).
5032 + Make sure `--ascii` affects quotes, super/subscript.
5034 * Text.Pandoc.Writers.Docx
5036 + Fix bookmarks to headers with long titles (#5091).
5037 Word has a 40 character limit for bookmark names. In addition, bookmarks
5038 must begin with a letter. Since pandoc's auto-generated identifiers may
5039 not respect these constraints, some internal links did not work. With
5040 this change, pandoc uses a bookmark name based on the SHA1 hash of the
5041 identifier when the identifier isn't a legal bookmark name.
5042 + Add bookmarks to code blocks (Nikolay Yakimov).
5043 + Add bookmarks to images (Nikolay Yakimov).
5044 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
5046 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
5047 Nodes of the form
5049 <meta name="calibre:series" content="Classics on War and Politics"/>
5051 are now included from an epub XML metadata file. You can also include
5052 this information in your YAML metadata, like so:
5054 calibre:
5055 series: Classics on War and Policitics
5057 In addition, ibooks-specific metadata can now be included via an XML
5058 file. (Previously, it could only be included via YAML metadata, see
5059 #2693.)
5061 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
5062 attributes.
5064 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
5065 This avoids splitting up the output unnecessarily into separate elements.
5067 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
5068 if `writerIncremental` is True (#5072).
5070 * Text.Pandoc.Writers.Muse (Alexander Krotov).
5072 + Output tables as grid tables if they have multi-line cells.
5073 + Indent simple tables only on the top level.
5074 + Output tables with one column as grid tables.
5075 + Add support for `--reference-location`.
5076 + Internal improvements.
5078 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
5079 #5095). This was a regression in pandoc 2.4.
5081 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
5083 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
5085 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
5086 when there are several choices for a particular character.
5088 * data/abbreviations
5090 + Add additional abbreviations (Andrew Dunning)
5091 Many of these borrowed from the Chicago Manual of Style 10.42,
5092 'Scholarly abbreviations'.
5094 * Templates
5096 + Asciidoc template: add :lang: to title header is lang is set in
5097 metadata (#5088).
5099 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
5100 Disabling the flag will cause derivation of ToJSON and FromJSON
5101 instances via GHC Generics instead of Template Haskell. The flag is
5102 enabled by default, as deriving via Generics can be slow (see #4083).
5104 * trypandoc:
5106 + Tweaked drop-down lists.
5107 + Put link to site in footer.
5108 + Preselect output format.
5109 + Update on change of in or out format.
5110 + Add man input format.
5112 * MANUAL.txt:
5114 + Fix outdated description of latex_macros extension.
5115 + Clarified placement of bibliography.
5116 + Added "A note on security."
5117 + Fix note on curly brace syntx for locators.
5118 + Document new explicit syntax for citeproc locators.
5119 + Remove confusing cross-links for some extensions.
5120 + Don't put pandoc in code ticks in heading.
5121 + Document that `--ascii` works for gfm and commonmark too.
5122 + Add `man` to `--from` options.
5124 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
5127## pandoc 2.4 (2018-11-03)
5129### New features
5131 * New input format `man` (Yan Pashkovsky, John MacFarlane).
5133### Behavior changes
5135 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
5136 via the new `writerPreferAscii` field in `WriterOptions`.
5137 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
5138 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
5139 Previously the to-ascii translation was done in Text.Pandoc.App,
5140 and thus not available to those using the writer functions
5141 directly.
5143 * `--ascii` now works with Markdown output. HTML5 character reference
5144 entities are used.
5146 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
5147 guaranteed, but the writer will use commands like `\"{a}` and `\l`
5148 whenever possible, to avoid emitting a non-ASCII character.
5150 * For HTML5 output, `--ascii` now uses HTML5 character reference
5151 entities rather than numerical entities.
5153 * Improved detection of format based on extension (in Text.Pandoc.App).
5154 We now ensure that if someone tries to convert a file for a
5155 format that has a pandoc writer but not a reader, it won't just
5156 default to markdown.
5158 * Add viz. to abbreviations file (#5007, Nick Fleisher).
5160 * AsciiDoc writer: always use single-line section headers,
5161 instead of the old underline style (#5038). Previously the single-line
5162 style would be used if `--atx-headers` was specified, but
5163 now it is always used.
5165 * RST writer: Use simple tables when possible (#4750).
5167 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
5168 quasicomputational). Previously, the writer would unconditionally
5169 emit HTML output for subscripts, superscripts, strikeouts (if the
5170 strikeout extension is disabled) and small caps, even with
5171 `raw_html` disabled. Now there are plain-text (and, where
5172 possible, fancy Unicode) fallbacks for all of these corresponding
5173 (mostly) to the Markdown fallbacks, and the HTML output is only
5174 used when `raw_html` is enabled.
5176 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
5177 This allows raw openxml blocks and inlines to be used in the pptx
5178 writer. Caveats: (1) It's up to the user to write
5179 well-formed openxml. The chances for corruption, especially with
5180 such a brittle format as pptx, is high. (2) Because of
5181 the tricky way that blocks map onto shapes, if you are using
5182 a raw block, it should be the only block on a slide
5183 (otherwise other text might end up overlapping it). (3) The
5184 pptx ooxml namespace abbreviations are different from the
5185 docx ooxml namespaces. Again, it's up to the user to get it
5186 right. Unzipped document and ooxml specification should be
5187 consulted.
5189 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
5190 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
5191 we tell katex to convert the contents of span elements with
5192 class "math". Since math has already been identified, this
5193 avoids wasted time parsing for LaTeX delimiters. Note, however,
5194 that this may yield unexpected results if you have span elements
5195 with class "math" that don't contain LaTeX math.
5196 Also, use latest version of KaTeX by default (0.9.0).
5198 * The man writer now produces ASCII-only output, using groff escapes,
5199 for portability.
5201 * ODT writer:
5203 + Add title, author and date to metadata; any remaining
5204 metadata fields are added as `meta:user-defined` tags.
5205 + Implement table caption numbering (#4949, Nils Carlson).
5206 Captioned tables are numbered and labeled with format "Table 1:
5207 caption", where "Table" is replaced by a translation, depending
5208 on the value of `lang` in metadata. Uncaptioned tables are not
5209 enumerated.
5210 + OpenDocument writer: Implement figure numbering in captions (#4944,
5211 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
5212 The format in the caption is "Figure 1: caption" and so on
5213 (where "Figure" is replaced by a translation, depending on the
5214 value of `lang` in the metadata). Captioned figures are numbered
5215 consecutively and uncaptioned figures are not enumerated. This
5216 is necessary in order for LibreOffice to generate an
5217 Illustration Index (Table of Figures) for included figures.
5219 * RST reader: Pass through fields in unknown directives as div attributes
5220 (#4715). Support `class` and `name` attributes for all directives.
5222 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
5223 Brian Leung). Headers with the corresponding tags should not
5224 appear in the output.
5226 * Log warnings about missing title attributes now include a
5227 suggestion about how to fix the problem (#4909).
5229 * Lua filter changes (Albert Krewinkel):
5231 + Report traceback when an error occurs. A proper Lua traceback is
5232 added if either loading of a file or execution of a filter
5233 function fails. This should be of help to authors of Lua filters
5234 who need to debug their code.
5236 + Allow access to pandoc state (#5015). Lua filters and custom
5237 writers now have read-only access to most fields of pandoc's
5238 internal state via the global variable `PANDOC_STATE`.
5240 + Push ListAttributes via constructor (Albert Krewinkel).
5241 This ensures that ListAttributes, as present in OrderedList elements,
5242 have additional accessors (viz. `start`, `style`, and `delimiter`).
5244 + Rename ReaderOptions fields, use snake_case. Snake case is used
5245 in most variable names, using camelCase for these fields was an
5246 oversight. A metatable is added to ensure that the old field
5247 names remain functional.
5249 + Iterate over AST element fields when using `pairs`. This makes
5250 it possible to iterate over all ield names of an AST element by
5251 using a generic `for` loop with pairs`:
5253 for field_name, field_content in pairs(element) do
5254 ...
5255 end
5257 Raw table fields of AST elements should be considered an
5258 implementation detail and might change in the future. Accessing
5259 element properties should always happen through the fields
5260 listed in the Lua filter docs.
5262 Note that the iterator currently excludes the `t`/`tag` field.
5264 + Ensure that MetaList elements behave like Lists. Methods usable
5265 on Lists can also be used on MetaList objects.
5267 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
5268 object to the constructor `pandoc.MetaList` now returns the
5269 passed list as a MetaList. This is consistent with the
5270 constructor behavior when passed an (untagged) list.
5272 * Custom writers: Custom writers have access to the global variable
5273 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
5274 a userdata wrapper around the full pandoc AST and exposes two
5275 fields, `meta` and `blocks`. The field content is only
5276 marshaled on-demand, performance of scripts not accessing the
5277 fields remains unaffected.
5279### API changes
5281 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
5283 * Text.Pandoc.Shared:
5285 + Export `splitSentences`. This was previously duplicated in the Man and
5286 Ms writers.
5287 + Add `ToString` typeclass (Alexander Krotov).
5289 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
5291 * Text.Pandoc.Parsing
5293 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
5294 + Generalize `readWithM` from `[Char]` to any `Char` Stream
5295 that is a `ToString` instance (Alexander Krotov).
5297 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
5299 * Text.Pandoc.XML: add `toHtml5Entities`.
5301 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
5302 MacFarlane).
5304 * Text.Pandoc.Writers.Shared
5306 + Add exported functions `toSuperscript` and
5307 `toSubscript` (quasicomputational, #4528).
5308 + Remove exported functions `metaValueToInlines`,
5309 `metaValueToString`. Add new exported functions
5310 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
5311 `lookupMetaString`. Use these whenever possible for uniformity
5312 in writers (Mauro Bieg, #4907). (Note that
5313 removed function `metaValueToInlines` was in previous
5314 released versions.)
5315 + Add `metaValueToString`.
5317 * Text.Pandoc.Lua
5319 + Expose more useful internals (Albert Krewinkel):
5321 - `runFilterFile` to run a Lua filter from file;
5322 - data type `Global` and its constructors; and
5323 - `setGlobals` to add globals to a Lua environment.
5325 This module also contains `Pushable` and `Peekable` instances
5326 required to get pandoc's data types to and from Lua. Low-level
5327 Lua operation remain hidden in Text.Pandoc.Lua.
5329 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
5331 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
5332 `apply` (Albert Krewinkel).
5334### Bug fixes and under-the-hood improvements
5336 * Text.Pandoc.Parsing
5338 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
5339 + Rewrite `uri` without `withRaw` (Alexander Krotov).
5340 + Generalize `parseFromString` and `parseFromString'` to any
5341 streams with Char token (Alexander Krotov)
5342 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
5344 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
5345 (Alexander Krotov).
5347 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
5348 (Alexander Krotov).
5350 * Text.Pandoc.App
5352 + Work around HXT limitation for --syntax-definition with windows
5353 drive (#4836).
5354 + Always preserve tabs for man format. We need it for tables.
5355 + Split command line parsing code into a separate unexported
5356 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
5358 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
5359 roff documents.
5361 * New unexported module Text.Pandoc.RoffChar, provided character
5362 escape tables for roff formats.
5364 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
5365 accept processing instructions (#3123, regression since 2.0).
5367 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
5368 account for empty lists (Alexander Krotov).
5370 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
5371 headerless table (#4382).
5373 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
5374 blocks (Brian Leung).
5376 * Text.Pandoc.Readers.Vimwiki:
5378 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
5379 (Alexander Krotov).
5380 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
5382 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
5383 `[Char]` (Alexander Krotov).
5385 * Text.Pandoc.Readers.LaTeX
5387 + Allow space at end of math after `\` (#5010).
5388 + Add support for `nolinkurl` command (#4992, Brian Leung).
5389 + Simplified type on `doMacros'`.
5390 + Tokenize before pulling tokens, rather than after (#4408). This
5391 has some performance penalty but is more reliable.
5392 + Make macroDef polymorphic and allow in inline context.
5393 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
5394 I have actually seen tex like this in the wild.
5395 + Improved parsing of `\def`, `\let`. We now correctly parse:
5396 ```
5397 \def\bar{hello}
5398 \let\fooi\bar
5399 \def\fooii{\bar}
5400 \fooi +\fooii
5402 \def\bar{goodbye}
5403 \fooi +\fooii
5404 ```
5405 + Improve parsing of `\def` argspec.
5406 + Skip `\PackageError` commands (see #4408).
5407 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
5408 so no raw tex should result unless we explicitly say `+raw_tex`.
5409 Previously some raw commands did make it through.
5410 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
5411 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
5412 Text.Pandoc.Readers.LaTeX.Lang (unexported).
5413 + Simplified accent code using unicode-transforms.
5414 New dependency on unicode-transforms package for normalization.
5415 + Allow verbatim blocks ending with blank lines (#4624).
5416 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
5417 This collects some of the general-purpose code from the LaTeX reader,
5418 with the aim of making the module smaller.
5420 * Text.Pandoc.Readers.Markdown
5422 + Fix awkward soft break movements before abbreviations (#4635).
5423 + Add updateStrPos in a couple places where needed.
5425 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
5426 (#4947). These are variants for "complex scripts" like Arabic
5427 and are now treated just like b, i (bold, italic).
5429 * Text.Pandoc.Readers.Muse (Alexander Krotov)
5431 + Try to parse lists before trying to parse table.
5432 This ensures that tables inside lists are parsed correctly.
5433 + Forbid whitespace after opening and before closing markup
5434 elements.
5435 + Parse page breaks.
5436 + Simplify `museToPandocTable` to get rid of partial functions.
5437 + Allow footnotes to start with empty line.
5438 + Make sure that the whole text is parsed.
5439 + Allow empty headers. Previously empty headers caused parser to
5440 terminate without parsing the rest of the document.
5441 + Allow examples to be indented with tabs.
5442 + Remove indentation from examples indicated by `{{{` and `}}}`.
5443 + Fix parsing of empty cells.
5444 + Various changes to internals.
5445 + Rewrite some parsers in applicative style.
5446 + Avoid tagsoup dependency.
5447 + Allow table caption to contain `+`.
5449 * Text.Pandoc.Writers.LaTeX
5451 + Add newline if math ends in a comment (#4880). This prevents the
5452 closing delimiter from being swalled up in the comment.
5453 + With `--listings`, don't pass through org-babel attributes (#4889).
5454 + With `--biblatex`, use `\autocite` when possible (#4960).
5455 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
5456 we don't have prefixes and suffixes, we use instead
5457 `\autocite{a1,a2,a3}`.
5458 + Fix description lists contining highlighted code (#4662).
5460 * Text.Pandoc.Writers.Man
5462 + Don't wrap `.SH` and `.SS` lines (#5019).
5463 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
5464 one paragraph definitions.
5465 + Moved common groff functions to Text.Pandoc.Writers.Groff.
5466 * Fix strong/code combination on man (should be `\f[CB]` not
5467 `\f[BC]`, see #4973).
5468 + Man writer: use `\f[R]` instead of `\f[]` to reset font
5469 (Alexander Krotov, #4973).
5470 + Move `splitSentences` to Text.Pandoc.Shared.
5472 * Text.Pandoc.Writers.Docx
5474 + Add framework for custom properties (#3034). So far, we don't
5475 actually write any custom properties, but we have the
5476 infrastructure to add this.
5478 + Handle tables in table cells (#4953). Although this is not
5479 documented in the spec, some versions of Word require a `w:p`
5480 element inside every table cell. Thus, we add one when the
5481 contents of a cell do not already include one (e.g. when a table
5482 cell contains a table).
5484 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
5485 Adjust header levels so that n+1 level headers are only
5486 found under n level headers, and the top level is 1.
5488 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
5489 alignment (#4385). This change eliminates the large gap we used
5490 to have between bullet and text, and also ensures that numbers
5491 in numbered lists will be right-aligned.
5493 * Text.Pandoc.Writers.ZimWiki
5495 + Number ordered list items sequentially, rather than always
5496 with 1 (#4962).
5497 + Remove extra indentation on lists (#4963).
5499 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
5500 `stylesheet` (Mauro Bieg, #4990).
5502 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
5503 normal content (#4629). Otherwise a raw block can prevent a
5504 paragraph from being recognized as such.
5506 * Text.Pandoc.Writers.Ms
5508 + Removed old `escapeBar`. We don't need this now that we use
5509 `@` for math delim.
5510 + Moved common code to Text.Pandoc.Writers.Roff and to
5511 Text.Pandoc.RoffChar.
5512 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
5513 with the man writer).
5515 * Text.Pandoc.Writers.Muse (Alexander Krotov).
5517 + Add support for grid tables.
5518 + Fix Muse writer style.
5519 + Use `length` instead of `realLength` to calculate definition
5520 indentation. Muse parsers don't take character width into
5521 account when calculating indentation.
5522 + Do not insert newline before lists.
5523 + Use lightweight markup after `</em>` tag.
5525 * New unexported module Text.Pandoc.Writers.Roff, providing functions
5526 useful for all roff format writers (man, ms).
5528 * Text.Pandoc.Lua
5530 + Move globals handling to separate module Text.Pandoc.Lua.Global
5531 (Albert Krewinkel).
5533 + Lua filter internals: push Shared.Element as userdata (Albert
5534 Krewinkel). Hierarchical Elements were pushed to Lua as plain
5535 tables. This is simple, but has the disadvantage that marshaling
5536 is eager: all child elements will be marshaled as part of the
5537 object. Using a Lua userdata object instead allows lazy access
5538 to fields, causing content marshaling just (but also each time)
5539 when a field is accessed. Filters which do not traverse the full
5540 element contents tree become faster as a result.
5542### Default template changes
5544 * LaTeX template:
5546 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
5547 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
5549 * AsciiDoc template: use single-line style for title.
5551 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
5552 Yoan Blanc).
5554 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
5555 (Albert Krewinkel).
5557 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
5559 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
5560 (Albert Krewinkel).
5562### Documentation improvements
5564 * INSTALL.md
5566 + Add chromeos install instructions (#4958) (Evan Pratten).
5567 + Add note about TinyTeX.
5569 * MANUAL.txt
5571 + Change `groff` -> `roff`.
5572 + Implement `--ascii` for Markdown writer.
5573 + Clarify LaTeX image dimensions output (Mauro Bieg).
5575 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
5577 * doc/getting-started.md: Added title to test1.md to avoid warning.
5579 * doc/lua-filters.md: merge type references into main document,
5580 fix description of Code.text (Albert Krewinkel).
5582### Build infrastructure improvements
5584 * Makefile
5586 + Makefile: added quick-cabal, full-cabal targets.
5587 + Make .msi download targets insensitive to order of appveyor builds.
5589 * Update benchmarks for ghc 8.6.1.
5591 * pandoc.cabal:
5593 + Enable more compiler warnings (Albert Krewinkel).
5594 + Make base lower bound 4.8.
5595 + Bump upper bound for QuickCheck.
5596 + Bump upper bound for binary.
5597 + Updated version bounds for containers and haddock-library (#4974).
5598 + Added docx/docPropos/custom.xml to cabal data-files.
5599 + Require skylighting 0.7.4 (#4920).
5600 + New dependency on unicode-transforms package for normalization.
5602 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
5604 * Added `tools/changelog-helper.sh`.
5606 * Added test/grofftest.sh for testing the man reader on real man pages.
5608## pandoc 2.3.1 (2018-09-28)
5610 * RST reader:
5612 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
5613 This eliminates a regression introduced after pandoc 2.1.1, which
5614 caused inline constructions containing newlines not to be recognized.
5615 + Fix bug with internal link targets (#4919). They were gobbling up
5616 indented content underneath.
5618 * Markdown reader: distinguish autolinks in the AST. With this change,
5619 autolinks are parsed as Links with the `uri` class. (The same is true
5620 for bare links, if the `autolink_bare_uris` extension is enabled.)
5621 Email autolinks are parsed as Links with the `email` class. This
5622 allows the distinction to be represented in the AST.
5624 * Org reader:
5626 + Force inline code blocks to honor export options (Brian Leung).
5627 + Parse empty argument array in inline src blocks (Brian Leung).
5629 * Muse reader (Alexander Krotov):
5631 + Added additional tests.
5632 + Do not allow code markup to be followed by digit.
5633 + Remove heading level limit.
5634 + Simplify `<literal>` tag parsers
5635 + Parse Text instead of String. Benchmark shows 7% improvement.
5636 + Get rid of HTML parser dependency.
5637 + Various code improvements.
5639 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
5640 We do this in the LaTeX writer, and it avoids problems.
5641 Note that `/` works as a LaTeX path separator on Windows.
5643 * LaTeX writer:
5645 + Add support for multiprenote and multipostnote arguments
5646 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
5647 the first prefix of a multicite, and the multipostnotes follow the
5648 last suffix.
5649 + Fix a use of `last` that might take empty list. If you ran with
5650 `--biblatex` and have an empty document (metadata but no blocks),
5651 pandoc would previously raise an error because of the use of
5652 `last` on an empty list.
5654 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
5655 MonadFail instance (Jonas Scholl).
5657 * ODT Writer: Improve table header row style handling (Nils Carlson).
5658 This changes the way styles for cells in the header row
5659 and normal rows are handled in ODT tables.
5660 Previously a new (but identical) style was generated for
5661 every table, specifying the style of the cells within the table.
5662 After this change there are two style definitions for table cells,
5663 one for the cells in the header row, one for all other cells.
5664 This doesn't change the actual styles, but makes post-processing
5665 changes to the table styles much simpler as it is no longer
5666 necessary to introduce new styles for header rows and there are
5667 now only two styles where there was previously one per table.
5669 * HTML writer:
5671 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
5672 class was added to autolinks by the HTML writer, but it had to
5673 guess what was an autolink and could not distinguish
5674 `[http://example.com](http://example.com)` from
5675 `<http://example.com>`. It also incorrectly recognized
5676 `[pandoc](pandoc)` as an autolink. Now the HTML writer
5677 simply passes through the `uri` attribute if it is present,
5678 but does not add anything.
5679 + Avoid adding extra section nestings for revealjs.
5680 Previously revealjs title slides at level (slidelevel - 1)
5681 were nested under an extra section element, even when
5682 the section contained no additional (vertical) content.
5683 That caused problems for some transition effects.
5684 + Omit unknown attributes in EPUB2 output. For example,
5685 `epub:type` attributes should not be passed through,
5686 or the epub produced will not validate.
5688 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
5689 The JATS spec does not allow these.
5691 * Textile writer: don't represent `uri` class explicitly
5692 for autolinks (#4913).
5694 * Lua filters (Albert Krewinkel):
5696 + Cleanup filter execution code.
5697 + Better error on test failure.
5699 * HTML, Muse reader tests: reduce time taken by round-trip test.
5701 * Added cabal.project.
5703 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
5705 * Use hslua v1.0.0 (Albert Krewinkel).
5707 * Fix `translations/ru` to use modern Russian orthography
5708 (Ivan Trubach).
5710 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
5711 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
5713## pandoc 2.3 (2018-09-16)
5715 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
5716 users to specify metadata in a YAML file, regardless of the
5717 input format (#1960).
5719 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
5721 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
5722 Mauro Bieg).
5724 * Text.Pandoc.Readers.LaTeX.Types:
5726 + New type `ArgSpec` (API change).
5727 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
5728 `Int` (API change).
5730 * Markdown reader:
5732 + Use `tex` instead of `latex` for raw tex-ish content. We can't
5733 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
5734 use `tex` always. Note that if `context` or `latex` specifically
5735 is desired, you can still force that in a markdown document by
5736 using the raw attribute. Note that this change may affect some
5737 filters, if they assume that raw tex parsed by the Markdown reader
5738 will be RawBlock (Format `latex`). In most cases it should be
5739 trivial to modify the filters to accept `tex` as well.
5740 + Refactor and reorganize YAML code (Mauro Bieg).
5741 + Make `example_lists` work for interrupted lists
5742 without `startnum` (#4908).
5744 * HTML reader:
5746 + Parse `<script type="math/tex` tags as math (#4877).
5747 These are used by MathJax in some configurations.
5748 + Extract spaces inside links instead of trimming them
5749 (Alexander Krotov, #4845).
5750 + Added round-trip tests (Alexander Krotov).
5751 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
5752 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
5753 (which is helpful for translation HTML documents using MathJaX).
5755 * Org reader (Albert Krewinkel):
5757 + Respect export option `p` for planning info. Inclusion of planning info
5758 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
5759 `p` export option: setting the option to `t` will add all planning
5760 information in a *Plain* block below the respective headline.
5761 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
5762 ghc extensions.
5763 + Strip planning info from output. Planning info is parsed, but not
5764 included in the output (as is the default with Emacs Org-mode, #4867).
5766 * LaTeX reader:
5768 + Handle parameter patterns for `\def` (#4768, #4771).
5769 For example: `\def\foo#1[#2]{#1 and #2}`.
5770 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
5771 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
5772 argument as the content.
5773 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
5774 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
5775 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
5776 will be parsed as a regular Quoted inline (not using the quotes
5777 appropriate to the foreign language).
5778 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
5779 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
5780 `\textcircled`. Also fall back to combining characters when composed
5781 characters are not available.
5782 + Resolve `\ref` for figure numbers.
5783 + Support `mintinline` (#4365, Marc Schreiber).
5784 + Fix siunitx unit commands so they are only recognized in
5785 siunitx contexts (#4842). For example, `\l` outside of an
5786 siunitx context should be l-slash, not l (for liter).
5787 + Fix double `unnumbered` class (#4838). The `unnumbered` class
5788 was being included twice for starred sections.
5790 * RST reader: Don't skip link definitions after comments (#4860).
5792 * Muse reader (Alexander Krotov):
5794 + Close the `</quote>` in indented tag test.
5795 There is already a separate test for unclosed `</quote>`.
5796 + Autonumber sections in the correct order. Parsing now stops
5797 at each section header to ensure the header is registered before
5798 parsing of the next section starts.
5799 + Move duplicate code into `headingStart` function.
5800 + Allow newline after opening `*` or `**`.
5801 + Don't allow digits after closing marker in lightweight markup
5802 This change makes reader more compatible with Emacs Muse.
5803 + Parse `<verse>` tag in one pass instead of using
5804 `parseFromString`. This change makes it possible to have
5805 verbatim `</verse>` tag inside verse.
5807 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
5808 (#4336). This allows pandoc to parse ODT document produced by KDE's
5809 Calligra.
5811 * Muse writer (Alexander Krotov):
5813 + Output headers without asterisks if not on the top level.
5814 + Never wrap definition list terms.
5815 + Set `envInsideBlock = True` when rendering notes.
5816 + Use `""` instead of `[]` for empty String.
5817 + Check for whitespace in the beginning and end of Str's.
5818 + Escape `-`, `;` and `>` in the beginning of strings.
5819 + Escape list markers in the beginning of notes.
5820 + Normalize inline list before testing if tags should be used.
5821 + Use tags instead of lightweight markup for empty strings.
5822 + Use lightweight markup when possible.
5823 + Escape empty strings. This guarantees that `conditionalEscapeString`
5824 never returns empty string.
5825 + Wrap conditionalEscapeString result into `Muse` type.
5826 This removes the need to pass `envInsideLinkDescription` to it.
5827 + Separate `shouldEscapeString` function.
5828 + Simplify inline list rendering.
5829 + Replace newlines in strings with spaces.
5831 * Docx writer:
5833 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
5834 + Properly handle display math in spans (#4826). This isn't a
5835 complete solution, since other nestings of display math may still
5836 cause problems, but it should work for what is by far the most
5837 common case.
5839 * HTML writer:
5841 + Always output `<dt>` element, even if it is empty (#4883,
5842 Alexander Krotov).
5843 + Don't prefix `epub:` attributes with `data-`.
5845 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
5846 recognize these escapes.
5848 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
5849 Image scaling was broken when a width was set to a percentage.
5851 * EPUB writer: set `epub:type` on body element in each chapter,
5852 depending on the `epub:type` of the first section (#4823). This
5853 only affects epub3. See
5854 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
5856 * FB2 writer: put `coverpage` element between title and date rather than in
5857 `document-info` element (#4854).
5859 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
5861 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
5862 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
5863 tex is now used. Previously we'd "fake it with unicode" and fall
5864 back to tex when that didn't work. But newer haddock versions
5865 support latex math.
5867 * TEI writer:
5869 + Ensure that title element is always present, even if empty (#4839).
5870 + Put author tags in the template, rather than adding them in
5871 the writer (#4839).
5873 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
5874 `linkcolor` only affects internal links, and `urlcolor` only
5875 affects linked URLs. For external links, the option to use is
5876 `filecolor`.
5878 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
5880 * RST writer:
5882 + Use `.. raw:: latex` for `tex` content.
5883 + Use `.. container` for generic Divs, instead of raw HTML.
5884 + Render Divs with admonition classes as admonitions (#4833).
5885 Also omit Div with class `admonition-title`. These are generated
5886 by the RST reader and should be omitted on round-trip.
5888 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
5889 (#4855, Antonio Terceiro).
5891 * HTML5 template: add the `title-block-header` identifier to the
5892 `header` element, to make it easier to style precisely (#4767,
5893 J. B. Rainsberger).
5895 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
5896 José de Mattos Neto).
5898 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
5899 (#4853, Wandmalfarbe).
5901 * TEI template: improve `publicationStmt`. Add support for
5902 `publisher`, `address`, `pubPlace`, and `date` variables.
5904 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
5906 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
5908 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
5910 * MANUAL.txt:
5912 + Clarify that `--biblatex/--natbib` don't work directly for PDF
5913 (#4904).
5914 + Document `epub:type` attribute (Mauro Bieg, #4901)
5915 + Clarify when `--resource-path` has an effect.
5916 + More detail on customization in syntax highlighting section.
5917 + Document encoding issue with `--listings` (#4871, Damien Clochard).
5918 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
5919 + Use https for context wiki links (#4910).
5921 * CONTRIBUTING.md:
5923 + Link to lua-filters repository (#4874).
5924 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
5926 * lua-filters.md: add links to filters, and to lua-filters repository
5927 (#4874).
5929 * INSTALL.md:
5931 + Indicate that cabal >= 2.0 is needed.
5932 + Added chocolatey installation method (#4844, Miodrag Milić).
5934 * Travis: exclude round-trip tests, except for nightly test which can fail.
5936 * Use latest texmath, pandoc-citeproc.
5938 * Use a patched version of foundation until
5939 https://github.com/haskell-foundation/foundation/pull/503
5940 is fixed.
5942 * Clean up appveyor build and Windows package creation.
5943 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
5944 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
5946 * Remove obsolete RELEASE-CHECKLIST.md.
5948 * Added additional compiler warnings in Makefile and CI builds.
5950## pandoc 2.2.3.2 (2018-08-07)
5952 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
5953 This fixes a regression in 2.2.3, which cause boolean values to
5954 be parsed as MetaInlines instead of MetaBool.
5956 We here record another undocumented (but desirable) change in 2.2.3:
5957 numerical metadata fields are now parsed as MetaInlines rather than
5958 MetaString.
5960## pandoc 2.2.3.1 (2018-08-06)
5962 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
5963 (#4817). This fixes a regression in 2.2.3 which caused embedded
5964 mappings (e.g. mappings in sequences) not to work in YAML metadata.
5966## pandoc 2.2.3 (2018-08-05)
5968 * RST reader: improve parsing of inline interpreted text roles (#4811).
5970 + Use a Span with class "title-reference" for the default
5971 title-reference role.
5972 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
5973 and `Str`s for `title-reference`.
5974 + Use Code with class "interpreted-text" instead of Span and Str for
5975 unknown roles. (The RST writer has also been modified to round-trip
5976 this properly.)
5977 + Disallow blank lines in interpreted text.
5978 + Backslash-escape now works in interpreted text.
5979 + Backticks followed by alphanumerics no longer end interpreted text.
5980 + Remove support for nested inlines (Francesco Occhipinti).
5981 RST does not allow nested emphasis, links, or other inline
5982 constructs. This fixes several bugs (#4581, #4561, #4792).
5984 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
5985 Krewinkel). Emphasis was not parsed when it followed directly after
5986 some block types (e.g., lists).
5988 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
5989 keys. Previously in 2.2.2 you could not do
5990 ```
5991 ---
5992 0: bar
5993 ...
5994 ```
5995 but only
5996 ```
5997 ---
5998 '0': bar
5999 ...
6000 ```
6001 With this change, both forms work.
6003 * DocBook reader: metadata handling improvements.
6004 Now we properly parse title and subtitle elements that are direct
6005 children of book and article (as well as children of bookinfo,
6006 articleinfo, or info). We also now use the `subtitle` metadata
6007 field for subtitles, rather than tacking the subtitle on to the
6008 title.
6010 * RST writer:
6012 + Allow images to be directly nested within links (#4810, Francesco
6013 Occhipinti).
6014 + Use `titleblock` instead of `title` variable for title block (#4803,
6015 Francesco Occhipinti). `titleblock` contains a properly formatted
6016 title and subtitle (using top-level headers). `title` and
6017 `subtitle` variables are still available and just contain the
6018 title and subtitle text. Note that this change will require an
6019 update to custom rst templates.
6020 + Render Code with class "interpreted-text" as interpreted text role.
6022 * MediaWiki writer: Avoid extra blank line in tables with empty cells
6023 (#4794). Note that the old output is semantically identical, but the
6024 new output looks better.
6026 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
6027 Krewinkel). Exposes a function converting which flattenes a list of
6028 blocks into a list of inlines. An example use case would be the
6029 conversion of Note elements into other inlines.
6031 * RST template: use `titleblock` instead of `title`. Users of
6032 custom RST templates will want to update this.
6034 * LaTeX template: Moved some beamer code in default.latex template.
6035 This change allows beamer themes to change the template and font (as
6036 Metropolis does) (#4450).
6038 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
6040 * Added test case for #4669 to repository.
6042 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
6044 * MANUAL.txt:
6046 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
6047 + Clarify when `csquotes` is used in LaTeX writer (#4514).
6048 + Add `commonmark` to list of output formats where `raw_tex` has an
6049 effect (see #4527).
6052## pandoc 2.2.2.1 (2018-07-19)
6054 * Fix regression finding templates in user data directory (#4777).
6055 Under version 2.2.1 and prior pandoc found latex templates in the
6056 templates directory under the data directory, but this broke in 2.2.2.
6058 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
6059 `rawLaTeXInline` (#4781). (This primarily affects the markdown
6060 reader, and other readers that accept raw tex.)
6061 Starting in 2.2.2, everything after an `\input` (or `\include`)
6062 in a markdown file would be parsed as raw LaTeX.
6064 * MANUAL:
6066 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
6067 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
6068 Unlike `tags`, `keywords` is used in some of the writers
6069 and default templates.
6071 * Add missing `rollingLinks` option to revealjs template (#4778,
6072 Igor Khorlo).
6074## pandoc 2.2.2 (2018-07-16)
6076 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
6077 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
6079 Note: HsYAML implements YAML 1.2, in which the valid true
6080 values are `true`, `True`, `TRUE`. This means a change in
6081 the semantics of YAML metadata that could affect users:
6082 `y`, `yes`, and `on` no longer count as true values.
6084 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
6085 Bieg).
6087 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
6088 Anders Waldenborg). Non-ascii characters were not stripped from
6089 identifiers even if the `ascii_identifiers` extension was
6090 enabled (which is is by default for gfm).
6092 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
6093 Remove trailing Space from list items. Parse lists that have no space
6094 after marker.
6096 * LaTeX reader:
6098 + Treat `lilypond` as a verbatim environment (#4725).
6099 + Parse figure label into Image id (#4700, Mauro Bieg).
6100 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
6101 + Allow spaces around `\graphicspath` arguments (#4698).
6102 + Handle includes without surrounding blanklines (#4553).
6103 In addition, `\input` can now be used in an inline context,
6104 e.g. to provide part of a paragraph, as it can in LaTeX.
6105 + In `rawLaTeXBlock`, handle macros that resolve to a
6106 `\begin` or `\end` (#4667).
6107 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
6108 Note that this only affected LaTeX in markdown.
6109 + Tighten up reading of beamer overlay specifications (#4669).
6110 Ideally we'd turn these on only when reading beamer, but currently
6111 beamer is not distinguished from latex as an input format.
6112 This commit also activates parsing of overlay specifications
6113 after commands in general (e.g. `\item`), since they can occur
6114 in many contexts in beamer.
6115 + Parse more siunitx unit commands (#4296, #4773).
6116 + Be more forgiving in key/value option parsing (#4761).
6118 * Markdown reader:
6120 + Allow empty code spans, e.g. `` ` ` ``.
6121 + Emojis are now wrapped in Spans with class `emoji` and
6122 attribute `data-emoji` (Anders Waldenborg, #4743).
6123 This allows the writer to handle them in a special way
6124 (e.g. using a special font, or just rendering the
6125 emoji name).
6127 * Muse reader (Alexander Krotov, except where indicated):
6129 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
6130 + Add support for floating images.
6131 + Add support for images with specified width.
6132 + Parse image URLs without "guard" and "takeExtension".
6133 + Split link and image parsing into separate functions.
6134 + Parse links starting with "URL:" explicitly instead of trying to strip
6135 "URL:" prefix after parsing.
6137 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
6138 Alexander Krotov).
6140 * Markdown writer: Preserve `implicit_figures` with attributes, even if
6141 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
6143 * Markdown and commonmark/github writers now respect the `emoji`
6144 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
6145 `:smile:` as `:smile:` rather than converting it to a smile
6146 character.
6148 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
6150 * ODT/OpenDocument writer: Make internal links work (#4358).
6151 This adds proper bookmarks to the headers with non-null IDs.
6153 * EPUB writer: Properly escape pagetitle. Previously we weren't
6154 escaping `&` and other XML characters in the pagetitle, so a title
6155 containing a `&` would be invalid.
6157 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
6158 Mauro Bieg).
6160 * RST writer:
6162 + Don't treat 'example' as a syntax name (#4748).
6163 This fixes conversions from org with example blocks.
6164 + Support `--number-sections` via the `section-numbering`
6165 directive in standalone output.
6167 * reveal.js writer and template: reuse mathjax URL
6168 provided by the argument to `--mathjax` or the normal pandoc default,
6169 rather than a hard-coded one in the template (#4701).
6171 * LaTeX writer:
6173 + Properly handle footnotes in table captions (#4683).
6174 Refactored code from figure captions to use in both places.
6175 + In beamer output, fix single digit column percentage (#4690, Mauro
6176 Bieg).
6178 * FB2 writer (Alexander Krotov):
6180 + Convert Plain to Para in annotation (#2424).
6181 + Fix order of items in title-info (#2424).
6183 * Custom writer: fix error message on script failure (Albert Krewinkel).
6184 Error messages produced by Lua were not displayed by Pandoc.
6186 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
6187 inline containing the emoji character and some attributes with metadata
6188 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
6189 Anders Waldenborg, #4743).
6191 * Text.Pandoc.PDF:
6193 + Revert fix for #4484 (only compress images on last run, #4755).
6194 This will mean some increase in the time it takes to
6195 produce an image-heavy PDF with xelatex, but it will
6196 make tables of contents correct, which is more important.
6197 + Fix logic error in `runTeXProgram`. We were running the tex program
6198 one more time than requested. This should speed up PDF production.
6200 * Allow `--template` to take a URL as argument.
6202 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
6203 highlighting style (#4687, Adrian Sieber, API change).
6205 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
6206 installer the recommended method, and note that on some older versions of
6207 macOS, homebrew installs from source and takes a lot of disk space
6208 (#4664, Ian).
6210 * MANUAL:
6212 + Clarify EPUB linked media (#4756, Mauro Bieg)
6213 + Update manual for "true" YAML values. Now that we're using HsYAML and
6214 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
6215 `y`, `yes`, `on` no longer count as true values.
6216 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
6217 + Update manual on how math is rendered in LaTeX.
6218 + Add proxy description (#4131, Mauro Bieg).
6219 + Clarify that `--toc` requires `--standalone` (#4703).
6220 + Update citation styles link (#4699, wiefling).
6222 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
6223 (kaizshang91). Note that it will not take effect when readers/writers
6224 are called as libraries (#4674).
6226 * Improved translations/fr (#4766, lux-lth).
6228 * Removed inadvertently added `.orig` files from repository (#4648).
6230 * Remove `network-uri` flag and use 'Network.Socket'.
6231 This removes a compiler warning. There is no need for the old
6232 `network-uri` flag, since network 2.6 was released in 2014.
6234 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
6236 * Bump upper bounds for dependent packages.
6238 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
6239 confused because of the way ghc 7.10 is excluded in foundation's
6240 cabal file. This can be removed when haskell-foundation/foundation#500
6241 is fixed.
6243 * Require cabal-version >= 2.0. This is needed for haddock-library.
6248## pandoc 2.2.1 (2018-05-10)
6250 * Restored and undeprecated gladtex for HTML math (#4607).
6252 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
6253 [API change, reverts removal in v2.2]
6254 + Restored and undeprecated `--gladtex` option, removed in v2.2.
6256 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
6258 * Org reader: Fix image filename recognition (Albert Krewinkel).
6259 Use a function from the filepath library to check whether a string is a
6260 valid file name. The custom validity checker that was used before gave
6261 wrong results (e.g. for absolute file paths on Windows,
6262 kawabata/ox-pandoc#52).
6264 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
6266 * HTML writer:
6268 + Strip links from headers when creating TOC (#4340).
6269 Otherwise the TOC entries will not link to the sections.
6270 + Fix regression with tex math environments in HTML + MathJax (#4639).
6272 * Muse writer (Alexander Krotov): Add support for left-align and
6273 right-align classes (#4542).
6275 * Docx writer: Support underline (#4633).
6277 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
6278 `singleQuoteStart` and `doubleQuoteStart` (#4637).
6280 * `test-pandoc-utils.lua`: more robust testing on both windows
6281 and \*nix. Previously the pipe tests were only run if
6282 `\bin/false` and `/bin/sed` were present, which they aren't
6283 in default MacOS and Windows systems. Fixed by using `tr`
6284 and `false`, which should always be in the path on a \*nix
6285 system, and `find` and `echo` for Windows.
6287 * Text.Pandoc.Shared: add `uriPathToPath`.
6288 This adjusts the path from a file: URI in a way that is sensitive
6289 to Windows/Linux differences. Thus, on Windows,
6290 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
6291 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
6293 * Use `uriPathToPath` with file: URIs (#4613).
6295 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
6296 file as before.
6298 * Text.Pandoc.Class: Catch IO errors when writing media files
6299 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
6301 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
6303 * MANUAL (Mauro Bieg):
6305 + Clarify truthiness in template variables (#2281).
6306 + Clarify pipe table width calculation (#4520).
6308 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
6309 CMU Serif gives better typographic results than the previous
6310 Greek fallback DejaVu Serif.
6312 * Make HTML template polyglot (#4606, OvidiusCicero), by making
6313 `<link rel="stylesheet" href="$css$">` self-closing.
6315 * Use texmath 0.11, allowing better translation of non-ASCII
6316 characters in math (#4642).
6319## pandoc 2.2 (2018-04-27)
6321 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
6323 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
6324 and for `ms` and `man`.
6326 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
6327 `--asciimathml` options.
6329 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
6330 Krotov, API change).
6332 * Markdown reader:
6334 + Allow empty key-value attributes, like `title=""` (#2944).
6335 + Handle table w/o following blank line in fenced div (#4560).
6336 + Remove "fallback" for `doubleQuote` parser. Previously the
6337 parser tried to be efficient -- if no end double quote was found,
6338 it would just return the contents. But this could backfire in a
6339 case `**this should "be bold**`, since the fallback would return
6340 the content `"be bold**` and the closing boldface delimiter
6341 would never be encountered.
6342 + Improve computation of the relative width of the last column in a
6343 multiline table, so we can round-trip tables without constantly
6344 shrinking the last column.
6346 * EPUB reader:
6348 + Fix images with space in file path (#4344).
6350 * LaTeX reader:
6352 + Properly resolve section numbers with `\ref` and chapters (#4529).
6353 + Parse sloppypar environment (#4517, Marc Schreiber).
6354 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
6355 Previously there were some bugs in how macros were handled.
6356 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
6357 `\lowercase`, and also `\MakeTextUppercase` and
6358 `\MakeTextLowercase` from textcase (#4959).
6360 * Textile reader:
6362 + Fixed tables with no body rows (#4513).
6363 Previously these raised an exception.
6365 * Mediawiki reader:
6367 + Improve table parsing (#4508). This fixes detection of table
6368 attributes and also handles `!` characters in cells.
6370 * DocBook reader:
6372 + Properly handle title in `section` element (#4526).
6373 Previously we just got `section_title` for `section` (though `sect1`,
6374 `sect2`, etc. were handled properly).
6375 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
6377 * Docx reader:
6379 + Combine adjacent CodeBlocks with the same attributes into
6380 a single CodeBlock. This prevents a multiline codeblock in
6381 Word from being read as different paragraphs.
6383 * RST reader:
6385 + Allow < 3 spaces indent under directives (#4579).
6386 + Fix anonymous redirects with backticks (#4598).
6388 * Muse reader (Alexander Krotov):
6390 + Add support for Text::Amuse multiline headings.
6391 + Add `<math>` tag support.
6392 + Add support for `<biblio>` and `<play>` tags.
6393 + Allow links to have empty descriptions.
6394 + Require block `<literal>` tags to be on separate lines.
6395 + Allow `-` in anchors.
6396 + Allow verse to be indented.
6397 + Allow nested footnotes.
6398 + Internal improvements.
6400 * Muse writer (Alexander Krotov):
6402 + Escape `>` only at the beginning of a line.
6403 + Escape `]` in image title.
6404 + Escape `]` brackets in URLs as `%5D`.
6405 + Only escape brackets when necessary.
6406 + Escape ordered list markers.
6407 + Do not escape list markers unless preceded by space.
6408 + Escape strings starting with space.
6409 + Escape semicolons and markers after line break.
6410 + Escape `;` to avoid accidental comments.
6411 + Don't break headers, line blocks and tables with line breaks.
6412 + Correctly output empty headings.
6413 + Escape horizontal rule only if at the beginning of the line.
6414 + Escape definition list terms starting with list markers.
6415 + Place header IDs before header.
6416 + Improve span writing.
6417 + Do not join Spans in normalization.
6418 + Don't align ordered list items.
6419 + Remove key-value pairs from attributes before normalization.
6420 + Enable `--wrap=preserve` for all tests by default.
6421 + Reduced `<verbatim>` tags in output.
6422 + Internal changes.
6424 * RST writer:
6426 + Use more consistent indentation (#4563). Previously we
6427 used an odd mix of 3- and 4-space indentation. Now we use 3-space
6428 indentation, except for ordered lists, where indentation must
6429 depend on the width of the list marker.
6430 + Flatten nested inlines (#4368, Francesco Occhipinti).
6431 Nested inlines are not valid RST syntax, so we flatten them following
6432 some readability criteria discussed in #4368.
6434 * EPUB writer:
6436 + Ensure that `pagetitle` is always set, even when structured titles
6437 are used. This prevents spurious warnings about empty title
6438 elements (#4486).
6440 * FB2 writer (Alexander Krotov):
6442 + Output links inline instead of producing notes. Previously all links
6443 were turned into footnotes with unclickable URLs inside.
6444 + Allow emphasis and notes in titles.
6445 + Don't intersperse paragraph with empty lines.
6446 + Convert metadata value `abstract` to book annotation.
6447 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
6448 FB2 does not have a way to represent line breaks inside paragraphs;
6449 previously we used `<empty-line />` elements, but these are not allowed
6450 inside paragraphs.
6452 * Powerpoint writer (Jesse Rosenthal):
6454 + Handle Quoted Inlines (#4532).
6455 + Simplify code with `ParseXml`.
6456 + Allow fallback options when looking for placeholder type.
6457 + Check reference-doc for all layouts.
6458 + Simplify speaker notes logic.
6459 + Change notes state to a simpler per-slide value.
6460 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
6461 means no speaker notes.
6462 + Add tests for improved speaker notes.
6463 + Handle speaker notes earlier in the conversion process.
6464 + Keep notes with related blocks (#4477). Some blocks automatically
6465 split slides (imgs, tables, `column` divs). We assume that any
6466 speaker notes immediately following these are connected to these
6467 elements, and keep them with the related blocks, splitting after them.
6468 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
6469 It contained a nonfree ICC color calibration profile and is not needed
6470 for production of a powerpoint document.
6472 * Markdown writer:
6474 + Include a blank line at the end of the row in a single-row multiline
6475 table, to prevent it from being interpreted as a simple table (#4578).
6477 * CommonMark writer:
6479 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
6480 enabled (#4527, quasicomputational).
6482 * EPUB writer:
6484 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
6486 * LaTeX writer:
6488 + In beamer, don't use format specifier for default ordered lists
6489 (#4556). This gives better results for styles that put ordered list
6490 markers in boxes or circles.
6491 + Update `\lstinline` delimiters (#4369, Tim Parenti).
6493 * Ms writer:
6495 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
6496 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
6497 since the header font is automatically bold (#4552).
6498 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
6499 + Create pdf anchor for a Div with an identifier (#4515).
6500 + Escape `/` character in anchor ids (#4515).
6501 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
6502 to avoid ambiguity.
6504 * Man writer:
6506 + Don't escape U+2019 as `'` (#4550).
6508 * Text.Pandoc.Options:
6510 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
6511 `Text.Pandoc.Options.HTMLMathMethod` [API change].
6513 * Text.Pandoc.Class:
6515 + `writeMedia`: unescape URI-escaping in file path. This avoids
6516 writing things like `file%20one.png` to the file system.
6518 * Text.Pandoc.Parsing:
6520 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
6521 as 1100.
6522 + `uri`: don't treat `*` characters at end as part of URI (#4561).
6524 * Text.Pandoc.MIME:
6526 + Use the alias `application/eps` for EPS (#2067).
6527 This will ensure that we retain the eps extension after reading the
6528 image into a mediabag and writing it again.
6530 * Text.Pandoc.PDF:
6532 + Use `withTempDir` in `html2pdf`.
6533 + With `xelatex`, don't compress images til the last run (#4484).
6534 This saves time for image-heavy documents.
6535 + Don't try to convert EPS files (#2067). `pdflatex` converts them
6536 itself, and JuicyPixels can't do it.
6537 + For `pdflatex`, use a temp directory in the working directory.
6538 Otherwise we can have problems with the EPS conversion pdflatex
6539 tries to do, which can't operate on a file above the working
6540 directory without `--shell-escape`.
6542 * Changes to tests to accommodate changes in pandoc-types.
6543 In <https://github.com/jgm/pandoc-types/pull/36> we changed
6544 the table builder to pad cells. This commit changes tests
6545 (and two readers) to accord with this behavior.
6547 * Set default extensions for `beamer` same as `latex`.
6549 * LaTeX template:
6551 + Add `beameroption` variable (#4359, Étienne Bersac).
6552 + Use `pgfpages` package; this is needed for notes on second
6553 screen in beamer (Étienne Bersac).
6554 + Add `background-image` variable (#4601, John Muccigrosso).
6556 * reveal.js template: Add `background-image` variable (#4600,
6557 John Muccigrosso).
6559 * ms template: Fix date. Previously `.ND` was used, but this only
6560 works if you have a title page, which we don't. Thanks to @teoric.
6562 * Removed pragmas for unused extensions (#4506, Anabra).
6564 * Fix bash completion for `--print-default-data-file` (#4549).
6565 Previously this looked in the filesystem, even if pandoc
6566 was compiled with `embed_data_files` (and sometimes it looked
6567 in a nonexistent build directory). Now the bash completion
6568 script just includes a hard-coded list of data file names.
6570 * MANUAL:
6572 + Clarify template vs metadata variables (#4501, Mauro Bieg).
6573 + Fix raw content example (#4479, Mauro Bieg).
6574 + Specify that you use html for raw output in epub.
6575 + Add examples for raw docx blocks (#4472, Tristan Stenner).
6576 The documentation states that the target format name should match
6577 the output format, which isn't the case for `docx`/`openxml` and
6578 some others.
6579 + Don't say that `empty_paragraphs` affects markdown output (#4540).
6580 + Consolidate input/output format documentation (#4577, Mauro Bieg).
6582 * New README template. Take in/out formats from manual.
6584 * Fix example in lua-filters docs (#4459, HeirOfNorton).
6586 * Use the `-threaded` GHC flag when building benchmarks (#4587,
6587 Francesco Occhipinti).
6589 * Bump temporary upper bound to 1.4.
6591 * Use pandoc-citeproc 0.14.3.1.
6593 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
6595 * Removed old lib directory. This was used for something long ago,
6596 but plays no role now.
6598 * Removed unneeded data file `LaTeXMathML.js`.
6600 * Create 64- and 32-bit versions of Windows binary packages.
6602## pandoc 2.1.3 (2018-03-18)
6604 * Docx reader (Jesse Rosenthal):
6606 + Add tests for nested smart tags.
6607 + Parse nested smart tags.
6608 + Make unwrapSDT into a general `unwrap` function that can unwrap both
6609 nested SDT tags and smartTags. This makes the SmartTags constructor in
6610 the Docx type unnecessary, so we remove it (#4446).
6611 + Remove unused `docxWarnings` (Alexander Krotov).
6613 * RST reader: Allow unicode bullet characters (#4454).
6615 * Haddock reader: Better table handling, using haddock-library's
6616 new table support, if compiled against a version that
6617 includes it. Note that tables with col/rowspans will not
6618 translate well into Pandoc.
6620 * Muse reader (Alexander Krotov):
6622 + Various internal improvements.
6623 + Require closing tag to have the same indentation as opening.
6624 + Do not reparse blocks inside unclosed block tag (#4425).
6625 + Parse `<class>` tag (supported by Emacs Muse).
6626 + Do not produce empty Str element for unindented verse lines.
6628 * LaTeX reader:
6630 + Add support to parse unit string of `\SI` command (closes #4296,
6631 Marc Schreiber).
6633 * Haddock writer: In the writer, we now render tables always as
6634 grid tables, since Haddock supports these.
6636 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
6638 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
6639 docx writer. We want decimal for the top level, not lower roman.
6641 * RST writer:
6643 + Strip whitespace at beginning and ending of inline containers
6644 (#4327, Francesco Occhipinti).
6645 + Filter out empty inline containers (#4434). There is nothing in
6646 RST that corresponds to e.g. `Emph []`, so we just ignore elements
6647 like this (Francesco Occhipinti).
6649 * Muse writer (Alexander Krotov):
6651 + Support spans with anchors.
6652 + Replace smallcaps with emphasis before normalization.
6653 + Output smallcaps as emphasis.
6654 + Expand Cite before list normalization.
6655 + Write empty inline lists as `<verbatim></verbatim>`.
6656 + Remove empty Str from the beginning of inline lists during normalization.
6657 + Escape "-" to avoid creating bullet lists.
6658 + Fix math expansion for more than one expression per paragraph.
6659 + Expand math before inline list normalization.
6661 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
6663 * Ms writer:
6665 + Asciify pdf anchors, since unicode anchors don't work (#4436).
6666 Internal links should be converted automatically, so this shouldn't
6667 affect users directly.
6668 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
6670 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
6671 (#4307). If it's in the title, then we get a titlebar on slides with
6672 the `plain` attribute, when the id is non-null. This fixes a regression
6673 in 2.0.
6675 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
6677 * JATS writer: Remove extraneous, significant whitespace (#4335,
6678 Nokome Bentley).
6680 * html2pdf: inject base tag with current working directory (#4413, Mauro
6681 Bieg). This helps ensure that linked resources are included.
6683 * Add Semigroup instances for everything for which we defined a
6684 Monoid instance previously (API change):
6686 + Text.Pandoc.Class.FileTree.
6687 + Text.Pandoc.Translations.Translations.
6688 + Text.Pandoc.Extensions.Extensions.
6689 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
6690 + Text.Pandoc.Pretty.Doc.
6691 + Text.Pandoc.MediaBag.MediaBag.
6693 * Add custom Prelude to give clean code for Monoid and Semigroup
6694 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
6695 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
6696 in all source files, and Prelude is explicitly imported
6697 (this is necessary for ghci to work properly with the custom prelude).
6699 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
6701 + Export `stripLeadingTrailingSpace`.
6702 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
6703 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
6704 expand cells, even if it results in cells that don't respect relative
6705 widths or surpass page column width. This change affects RST,
6706 Markdown, and Haddock writers.
6708 * Raise error if someone tries to print docx, odt, etc. template (#4441).
6710 * LaTeX template: Provide `bidi` package's option using
6711 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
6712 clash when `polyglossia` loads it first and then it is loaded again
6713 for XeLaTeX.
6715 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
6716 Menke). Instructions on how to install the ICC profiles on ConTeXt
6717 standalone can be found in the wiki:
6718 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
6719 If the ICC profiles are not available the log will contain error
6720 messages.
6722 * Use latest pandoc-types, skylighting
6724 * Use latest pandoc-citeproc in binary package.
6726 * Bump upper bound for time, criterion, haddock-library, exceptions,
6727 http-types, aeson, haddock-library.
6729 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
6731 * pandoc.cabal: fix up other-extensions and language fields.
6732 Language is now consistently `Haskell2010`, and other-extensions
6733 is consistently `NoImplicitPrelude`. Everything else to be specified
6734 in the module header as needed.
6736 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
6737 This is no longer necessary since we no longer support ghc 7.8.
6739 * Make `weigh-pandoc` into a benchmark program.
6740 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
6741 automatically when you build (and run) benchmarks.
6743 * MANUAL: add instructions for background images reveal.js (#4325, John
6744 Muccigrosso).
6746 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
6748## pandoc 2.1.2 (2018-03-02)
6750 * Markdown reader:
6752 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
6753 "nonindent spaces" before the opening and closing `:::`, but this
6754 interfered with list parsing, so now we require the fences to be flush with
6755 the margin of the containing block.
6757 * Commonmark reader:
6759 + `raw_html` is now on by default. It can be disabled explicitly
6760 using `-f commonmark-raw_html`.
6762 * Org reader (Albert Krewinkel):
6764 + Move citation tests to separate module.
6765 + Allow changing emphasis syntax (#4378). The characters allowed before
6766 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
6767 `#+pandoc-emphasis-post`, respectively. This allows to change which
6768 strings are recognized as emphasized text on a per-document or even
6769 per-paragraph basis. Example:
6771 #+pandoc-emphasis-pre: "-\t ('\"{"
6772 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
6774 * LaTeX reader:
6776 + Fixed comments inside citations (#4374).
6777 + Fix regression in package options including underscore (#4424).
6778 + Make `--trace` work.
6779 + Fixed parsing of `tabular*` environment (#4279).
6781 * RST reader:
6783 + Fix regression in parsing of headers with trailing space (#4280).
6785 * Muse reader (Alexander Krotov):
6787 + Enable `<literal>` tags even if amuse extension is enabled.
6788 Amusewiki disables <literal> tags for security reasons.
6789 If user wants similar behavior in pandoc, RawBlocks and RawInlines
6790 can be removed or replaced with filters.
6791 + Remove space prefix from `<literal>` tag contents.
6792 + Do not consume whitespace while looking for closing end tag.
6793 + Convert alphabetical list markers to decimal in round-trip test.
6794 Alphabetical lists are an addition of Text::Amuse.
6795 They are not present in Emacs Muse and can be ambiguous
6796 when list starts with "i.", "c." etc.
6797 + Allow `<quote>` and other tags to be indented.
6798 + Allow single colon in definition list term.
6799 + Fix parsing of verse in lists.
6800 + Improved parsing efficiency. Avoid `parseFromString`.
6801 Lists are parsed in linear instead of exponential time now.
6802 + Replace ParserState with MuseState.
6803 + Prioritize lists with roman numerals over alphabetical lists.
6804 This is to make sure "i." starts a roman numbered list,
6805 instead of a list with letter "i" (followed by "j", "k", ...").
6806 + Fix directive parsing.
6807 + Parse definition lists with multiple descriptions.
6808 + Parse next list item before parsing more item contents.
6809 + Fixed a bug: headers did not terminate lists.
6810 + Move indentation parsing from `definitionListItem` to `definitionList`.
6811 + Paragraph indentation does not indicate nested quote.
6812 Muse allows indentation to indicate quotation or alignment,
6813 but only on the top level, not within a <quote> or list.
6814 + Require that block tags are on separate lines.
6815 Text::Amuse already explicitly requires it anyway.
6816 + Fix matching of closing inline tags.
6817 + Various internal changes.
6818 + Fix parsing of nested definition lists.
6819 + Require only one space for nested definition list indentation.
6820 + Do not remove trailing whitespace from `<code>`.
6821 + Fix parsing of trailing whitespace. Newline after whitespace now
6822 results in softbreak instead of space.
6824 * Docx reader (Jesse Rosenthal, except where noted):
6826 + Handle nested sdt tags (#4415).
6827 + Don't look up dependant run styles if `+styles` is enabled.
6828 + Move pandoc inline styling inside custom-style span.
6829 + Read custom styles (#1843). This will read all paragraph and
6830 character classes as divs and spans, respectively. Dependent styles
6831 will still be resolved, but will be wrapped with appropriate style
6832 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
6833 This can be used in conjunction with the `custom-style` feature in the
6834 docx writer for a pandoc-docx editing workflow. Users can convert from
6835 an input docx, reading the custom-styles, and then use that same input
6836 docx file as a reference-doc for producing an output docx file. Styles
6837 will be maintained across the conversion, even if pandoc doesn't
6838 understand them.
6839 + Small change to Fields hyperlink parser. Previously, unquoted string
6840 required a space at the end of the line (and consumed it). Now we
6841 either take a space (and don't consume it), or end of input.
6842 + Pick table width from the longest row or header (Francesco Occhipinti,
6843 #4360).
6845 * Muse writer (Alexander Krotov):
6847 + Change verse markup: `> ` instead of `<verse>` tag.
6848 + Remove empty strings during inline normalization.
6849 + Don't indent nested definition lists.
6850 + Use unicode quotes for quoted text.
6851 + Write image width specified in percent in Text::Amuse mode.
6852 + Don't wrap displayMath into `<verse>`.
6853 + Escape nonbreaking space (`~~`).
6854 + Join code with different attributes during normalization.
6855 + Indent lists inside Div.
6856 + Support definitions with multiple descriptions.
6858 * Powerpoint writer (Jesse Rosenthal):
6860 + Use table styles This will use the default table style in the
6861 reference-doc file. As a result they will be easier when using
6862 in a template, and match the color scheme.
6863 + Remove empty slides. Because of the way that slides were split, these
6864 could be accidentally produced by comments after images. When animations
6865 are added, there will be a way to add an empty slide with either
6866 incremental lists or pauses.
6867 + Implement syntax highlighting. Note that background colors can't
6868 be implemented in PowerPoint, so highlighting styles that require
6869 these will be incomplete.
6870 + New test framework for pptx. We now compare the output of the
6871 Powerpoint writer with files that we know to (a) not be corrupt,
6872 and (b) to show the desired output behavior (details below).
6873 + Add `notesMaster` to `presentation.xml` if necessary.
6874 + Ignore links and (end)notes in speaker notes.
6875 + Output speaker notes.
6876 + Read speaker note templates conditionally. If there are speaker
6877 notes in the presentation, we read in the notesMasters templates
6878 from the reference pptx file.
6879 + Fix deletion track changes (#4303, Jesse Rosenthal).
6881 * Markdown writer: properly escape @ to avoid capture as citation
6882 (#4366).
6884 * LaTeX writer:
6886 + Put hypertarget inside figure environment (#4388).
6887 This works around a problem with the endfloat package and
6888 makes pandoc's output compatible with it.
6889 + Fix image height with percentage (#4389). This previously caused
6890 the image to be resized to a percentage of textwidth, rather than
6891 textheight.
6893 * ConTeXt writer (Henri Menke):
6895 + New section syntax and support `--section-divs` (#2609).
6896 `\section[my-header]{My Header}` ->
6897 `\section[title={My Header},reference={my-header}]`.
6898 The ConTeXt writer now supports the `--section-divs` option to
6899 write sections in the fenced style, with `\startsection` and
6900 `\stopsection`.
6901 + xtables: correct wrong usage of caption (Henri Menke).
6903 * Docx writer:
6905 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
6906 + Use new golden framework (Jesse Rosenthal).
6907 + Make more deterministic to facilitate testing (Jesse Rosenthal).
6908 - `getUniqueId` now calls to the state to get an incremented digit,
6909 instead of calling to P.uniqueHash.
6910 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
6911 seed (1848), so our randoms should be the same each time.
6912 + Fix ids in comment writing (Jesse Rosenthal). Comments from
6913 `--track-changes=all` were producing corrupt docx, because the
6914 writer was trying to get id from the `(ID,_,_)` field of
6915 the attributes, and ignoring the "id" entry in the key-value pairs. We
6916 now check both.
6918 * Ms writer: Added papersize variable.
6920 * TEI writer:
6922 + Use `height` instead of `depth` for images (#4331).
6923 + Ensure that id prefix is always used.
6924 + Don't emit `role` attribute; that was a leftover from the
6925 Docbook writer.
6926 + Use 'xml:id', not 'id' attribute (#4371).
6928 * AsciiDoc writer:
6930 + Do not output implicit heading IDs (#4363, Alexander
6931 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
6933 * RST writer:
6935 + Remove `blockToRST'` moving its logic into `fixBlocks`
6936 (Francesco Occhipinti).
6937 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
6939 * RST template: remove definition of 'math' role as raw.
6940 This used to be needed prior to v 0.8 of docutils, but
6941 now math support is built-in.
6943 * Slides: Use divs to set incremental/non-incremental (#4381,
6944 Jesse Rosenthal). The old method (list inside blockquote) still
6945 works, but we are encouraging the use of divs with class
6946 `incremental` or `nonincremental`.
6948 * Text.Pandoc.ImageSize:
6950 + Make image size detection for PDFs more robust (#4322).
6951 + Determine image size for PDFs (#4322).
6952 + EMF Image size support (#4375, Andrew Pritchard).
6954 * Text.Pandoc.Extensions:
6956 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
6957 the docx reader (defaulting to off) to read pargraph and character
6958 styles not understood by pandoc (as divs and spans, respectively).
6959 + Made `Ext_raw_html` default for `commonmark` format.
6961 * Text.Pandoc.Parsing:
6963 + Export `manyUntil` (Alexander Krotov, API change).
6964 + Export improved `sepBy1` (Alexander Krotov).
6965 + Export list marker parsers: `upperRoman`, `lowerRoman`,
6966 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
6968 * Tests/Lua: fix tests on windows (Albert Krewinkel).
6970 * Lua: register script name in global variable (#4393). The name of the Lua
6971 script which is executed is made available in the global Lua variable
6972 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
6974 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
6975 There is very little pptx-specific in these tests, so we abstract out
6976 the basic testing function so it can be used for docx as well. This
6977 should allow us to catch some errors in the docx writer that slipped
6978 by the roundtrip testing.
6980 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
6981 functions used to construct AST element values are stored in the Lua
6982 registry for quicker access. Getting a value from the registry is much
6983 faster than getting a global value (partly to idiosyncrasies of hslua);
6984 this change results in a considerable performance boost.
6986 * Documentation:
6988 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
6989 + `doc/lua-filters.md`: document global vars set for filters
6990 (Albert Krewinkel).
6991 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
6992 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
6993 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
6994 Rosenthal). Blockquoted lists are still described, but fenced divs are
6995 presented in preference.
6996 + MANUAL.txt: document header and footer variables (newmana).
6997 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
6998 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
7000 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
7002 * Use latest texmath.
7004 * Use latest pandoc-citeproc.
7006 * Allow exceptions 0.9.
7008 * Require aeson-pretty 0.8.5 (#4394).
7010 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
7012 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
7014 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
7016 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
7017 jarlg).
7019## pandoc 2.1.1 (2018-01-18)
7021 * Markdown reader:
7023 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
7024 blank line. See lierdakil/pandoc-crossref#160.
7025 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
7026 The change both improves performance and fixes a regression whereby
7027 normal citations inside inline notes and figure captions were not
7028 parsed correctly.
7030 * RST reader:
7032 + Better handling for headers with an anchor (#4240). Instead of creating a
7033 Div containing the header, we put the id directly on the header.
7034 This way header promotion will work properly.
7035 + Add aligned environment when needed in math (#4254). `rst2latex.py`
7036 uses an `align*` environment for math in `.. math::` blocks, so this
7037 math may contain line breaks. If it does, we put the math in an
7038 `aligned` environment to simulate `rst2latex.py`'s behavior.
7040 * HTML reader:
7042 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
7044 * LaTeX reader:
7046 + Advance source position at end of stream.
7047 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
7048 extension is set (#4246). This reverts to earlier behavior and is
7049 probably safer on the whole, since some macros only modify things in
7050 included packages, which pandoc's macro expansion can't modify.
7051 + Fixed pos calculation in tokenizing escaped space.
7052 + Allow macro definitions inside macros (#4253). Previously we went into
7053 an infinite loop with
7054 ```
7055 \newcommand{\noop}[1]{#1}
7056 \noop{\newcommand{\foo}[1]{#1}}
7057 \foo{hi}
7058 ```
7059 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
7060 widths for the body were different from widths for the header in some
7061 tables.
7063 * Docx reader (Jesse Rosenthal):
7065 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
7066 hyperlink found in older versions of word. The changes introduced for
7067 this, though, create a framework for parsing further fields in MS Word
7068 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
7069 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
7070 contains a simple parsec parser. At the moment, only simple hyperlink
7071 fields are accepted, but that can be extended in the future.
7073 * Muse reader (Alexander Krotov):
7075 + Parse `~~` as non-breaking space in Text::Amuse mode.
7076 + Refactor list parsing.
7078 * Powerpoint writer (Jesse Rosenthal):
7080 + Change reference to `notesSlide` to `endNotesSlide`.
7081 + Move image sizing into `picProps`.
7082 + Improve table placement.
7083 + Make our own `_rels/.rels` file.
7084 + Import reference-doc images properly.
7085 + Move `Presentation.hs` out of `PandocMonad`.
7086 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
7087 defines the Presentation datatype and goes Pandoc->Presentation;
7088 T.P.W.Pandoc.Output goes Presentation->Archive.
7089 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
7090 + Avoid overlapping blocks in column output.
7091 + Position images correctly in two-column layout.
7092 + Make content shape retrieval environment-aware.
7093 + Improve image handling. We now determine image and caption placement
7094 by getting the dimensions of the content box in a given layout.
7095 This allows for images to be correctly sized and positioned in a
7096 different template. Note that images without captions and headers are
7097 no longer full-screened. We can't do this dependably in different
7098 layouts, because we don't know where the header is (it could be to
7099 the side of the content, for example).
7100 + Read presentation size from reference file. Our presentation size is
7101 now dependent on the reference/template file we use.
7102 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
7103 subheaders will be printed in bold and given a bit of extra space
7104 before them. Note that at the moment, no distinction is made between
7105 levels of headers above the slide header, though that can be changed.
7106 + Check for required files. Since we now import from reference/dist
7107 file by glob, we need to make sure that we're getting the files we
7108 need to make a non-corrupt Powerpoint. This performs that check.
7109 + Improve templating using `--reference-doc`. Templating should work
7110 much more reliably now.
7111 + Include Notes slide in TOC.
7112 + Set notes slide header to slide-level.
7113 + Add table of contents. This is triggered by the `--toc` flag. Note
7114 that in a long slide deck this risks overrunning the text box. The user
7115 can address this by setting `--toc-depth=1`.
7116 + Set notes slide number correctly.
7117 + Clean up adding metadata slide. We want to count the slide numbers
7118 correctly if it's in there.
7119 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
7120 an anchor link. In powerpoint these are links to slides, so we keep
7121 track of a map relating anchors to the slides they occur on.
7122 + Make the slide number available to the blocks. For anchors,
7123 block-processing functions need to know what slide number
7124 they're in. We make the `envCurSlideId` available to blocks.
7125 + Move `curSlideId` to environment.
7126 + Allow setting `toc-title` in metadata.
7127 + Link notes to endnotes slide.
7129 * Markdown writer:
7131 + Fix cell width calculation (#4265). Previously we could get
7132 ever-lengthening cell widths when a table was run repeatedly through
7133 `pandoc -f markdown -t markdown`.
7135 * LaTeX writer:
7137 + Escape `&` in lstinline (Robert Schütz).
7139 * ConTeXt writer:
7141 + Use xtables instead of Tables (#4223, Henri Menke).
7142 Default to xtables for context output. Natural Tables are used
7143 if the new `ntb` extension is set.
7145 * HTML writer:
7147 + Fixed footnote backlinks with `--id-prefix` (#4235).
7149 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
7150 Henri Menke).
7152 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
7153 (Jesse Rosenthal, API change).
7155 * Lua filters (Albert Krewinkel):
7157 + Make `PANDOC_READER_OPTIONS` available.
7158 The options which were used to read the document are made available to
7159 Lua filters via the `PANDOC_READER_OPTIONS` global.
7160 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
7161 on a Pandoc document.
7162 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
7163 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
7164 + Improve error messages. Provide more context about the task
7165 which caused an error.
7167 * data/pandoc.lua (Albert Krewinkel):
7169 + Accept singleton inline as a list. Every constructor which accepts a
7170 list of inlines now also accepts a single inline element for
7171 convenience.
7172 + Accept single block as singleton list. Every constructor which accepts
7173 a list of blocks now also accepts a single block element for
7174 convenience. Furthermore, strings are accepted as shorthand for
7175 `{pandoc.Str "text"}` in constructors.
7176 + Add attr, listAttributes accessors. Elements with
7177 attributes got an additional `attr` accessor. Attributes were
7178 accessible only via the `identifier`, `classes`, and `attributes`,
7179 which was in conflict with the documentation, which indirectly states
7180 that such elements have the an `attr` property.
7181 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
7182 module is closely tied to the pandoc version, which is available via
7183 `PANDOC_VERSION`.
7184 + Fix access to Attr components. Accessing an Attr value (e.g.,
7185 ` Attr().classes`) was broken; the more common case of accessing it via
7186 an Inline or Block element was unaffected by this.
7188 * Move `metaValueToInlines` to from Docx writer to
7189 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
7190 (Jesse Rosenthal).
7192 * MANUAL.txt:
7194 + Clarify otherlangs in LaTeX (#4072).
7195 + Clarify `latex_macros` extension.
7196 + Recommend use of `raw_attribute` extension in header includes (#4253).
7198 * Allow latest QuickCheck, tasty, criterion.
7200 * Remove custom prelude and ghc 7.8 support.
7202 * Reduce compiler noise (exact paths for compiled modules).
7204## pandoc 2.1 (2018-01-07)
7206 * Allow filters and lua filters to be interspersed (#4196). Previously
7207 we ran all lua filters before JSON filters. Now we run filters in
7208 the order they are presented on the command line, whether lua or JSON.
7209 There are two incompatible API changes: The type of `applyFilters`
7210 has changed, and `applyLuaFilters` has been removed. `Filter` is
7211 also now exported.
7213 * Use latest skylighting and omit the `missingIncludes` check, fixing
7214 a major performance regression in earlier releases of the 2.x series
7215 (#4226). Behavior change: If you use a custom syntax definition that
7216 refers to a syntax you haven't loaded, pandoc will now complain when
7217 it is highlighting the text, rather than doing a check at the start.
7218 This change dramatically speeds up invocations of pandoc on short
7219 inputs.
7221 * Text.Pandoc.Class: make `FileTree` opaque (don't export
7222 `FileTree` constructor). This forces users to interact with it using
7223 `insertInFileTree` and `getFileInfo`, which normalize file names.
7225 * Markdown reader:
7227 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
7228 direct, avoiding `parseFromString`. And it performs significantly
7229 better; unfortunately, parsing time still increases exponentially
7230 (see #1735).
7231 + Avoid parsing raw tex unless `\` + letter seen. This seems to
7232 help with the performance problem, #4216.
7234 * LaTeX reader: Simplified a check for raw tex command.
7236 * Muse reader (Alexander Krotov):
7238 + Enable round trip test (#4107).
7239 + Automatically translate `#cover` into `#cover-image`.
7240 Amusewiki uses #cover directive to specify cover image.
7242 * Docx reader (Jesse Rosenthal):
7244 + Allow for insertion/deletion of paragraphs (#3927).
7245 If the paragraph has a deleted or inserted paragraph break (depending
7246 on the track-changes setting) we hold onto it until the next
7247 paragraph. This takes care of accept and reject. For this we introduce
7248 a new state which holds the ils from the previous para if necessary.
7249 For `--track-changes=all`, we add an empty span with class
7250 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
7251 prior to the break to be inserted or deleted.
7252 + Remove unused anchors (#3679). Docx produces a lot of anchors with
7253 nothing pointing to them---we now remove these to produce cleaner
7254 output. Note that this has to occur at the end of the process
7255 because it has to follow link/anchor rewriting.
7256 + Read multiple children of `w:sdtContents`.
7257 + Combine adjacent anchors. There isn't any reason to have numerous
7258 anchors in the same place, since we can't maintain docx's
7259 non-nesting overlapping. So we reduce to a single anchor.
7260 + Improved tests.
7262 * Muse writer (Alexander Krotov): don't escape URIs from AST
7264 * Docx writer:
7266 + Removed redundant subtitle in title (Sebastian Talmon).
7267 + `firstRow` table definition compatibility for Word 2016 (Sebastian
7268 Talmon). Word 2016 seems to use a default value of "1" for table
7269 headers, if there is no firstRow definition (although a default
7270 value of 0 is documented), so all tables get the first Row formatted
7271 as header. Setting the parameter to 0 if the table has no header
7272 row fixes this for Word 2016
7273 + Fix custom styles with spaces in the name (#3290).
7275 * Powerpoint writer (Jesse Rosenthal):
7277 + Ignore Notes div for parity with other slide outputs.
7278 + Set default slidelevel correctly. We had previously defaulted to
7279 slideLevel 2. Now we use the correct behavior of defaulting to the
7280 highest level header followed by content. We change an expected test
7281 result to match this behavior.
7282 + Split blocks correctly for linked images.
7283 + Combine adjacent runs.
7284 + Make inline code inherit code size. Previously (a) the code size
7285 wasn't set when we force size, and (b) the properties was set from
7286 the default, instead of inheriting.
7287 + Simplify `replaceNamedChildren` function.
7288 + Allow linked images. The following markdown:
7289 `[![Image Title](image.jpg)](http://www.example.com)`
7290 will now produce a linked image in the resulting PowerPoint file.
7291 + Fix error with empty table cell. We require an empty `<a:p>` tag,
7292 even if the cell contains no paragraphs---otherwise PowerPoint
7293 complains of corruption.
7294 + Implement two-column slides. This uses the columns/column div
7295 format described in the pandoc manual. At the moment, only two
7296 columns (half the screen each) are allowed. Custom widths are not
7297 supported.
7298 + Added more tests.
7300 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
7302 * Lua filters (Albert Krewinkel):
7304 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
7305 + The current pandoc-types version is made available to Lua programs in
7306 the global `PANDOC_API_VERSION`. It contains the version as a list of
7307 numbers.
7308 + The pandoc version available as a global `PANDOC_VERSION` (a list
7309 of numbers).
7310 + `data/pandoc.lua`: make `Attr` an `AstElement`.
7311 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
7312 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
7313 not set a metatable on the returned value, which made it difficult
7314 to amend objects of these types with new behavior. They are now
7315 subtypes of AstElement, meaning that all their objects can gain
7316 new features when a method is added to the behavior object
7317 (e.g., `pandoc.Pandoc.behavior`).
7318 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
7319 between a type and the behavioral properties of an instance of that
7320 type. The behavior of a type (and all its subtypes) can now be
7321 amended by adding methods to that types `behavior` object, without
7322 exposing the type objects internals. E.g.:
7323 ```lua
7324 pandoc.Inline.behavior.frob = function () print'42' end
7325 local str = pandoc.Str'hello'
7326 str.frob() -- outputs '42'
7327 ```
7328 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
7329 of a given type (e.g., all inline elements) was difficult, as the
7330 table used to lookup unknown methods would be reset every time a
7331 new element of that type was created, preventing recursive property
7332 lookup. This is was changed in that all methods and attributes of
7333 supertypes are now available to their subtypes.
7334 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
7335 fields were named like the Haskell fields, not like the documented,
7336 shorter version. The names are changed to match the documentation
7337 and Citations are given a shared metatable to enable simple
7338 extensibility.
7339 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
7340 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
7341 difficult to handle failures while getting lists or a Map from Lua.
7342 A bug in pandoc, which made it necessary to always pass a tag when
7343 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
7344 module's constructor functions for these values is now optional
7345 (if still recommended).
7346 + Stop exporting `pushPandocModule` (API change). The introduction
7347 of `runPandocLua` renders direct use of this function obsolete.
7348 + Update generation of module docs for lua filters.
7349 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
7350 MacFarlane). I'm sure this was intended in the first place,
7351 but currently only `Meta` is supported.
7353 * Improve benchmarks.
7355 + Set the default extensions properly.
7356 + Improve benchmark argument parsing. You can now say
7357 `make bench BENCHARGS="markdown latex reader"` and both the
7358 markdown and latex readers will be benchmarked.
7360 * MANUAL.txt simplify and add more structure (Mauro Bieg).
7362 * Generate README.md from template and MANUAL.txt.
7363 `make README.md` will generate the README.md after changes
7364 to MANUAL.txt have been made.
7366 * Update copyright notices to include 2018 (Albert Krewinkel).
7368## pandoc 2.0.6 (2017-12-28)
7370 * Added `jats` as an input format.
7372 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
7373 change) (Hamish Mackenzie).
7374 + Improved citation handling in JATS reader. JATS citations
7375 are now converted to pandoc citations, and JATS ref-lists
7376 are converted into a `references` field in metadata, suitable
7377 for use with pandoc-citeproc. Thus a JATS article with embedded
7378 bibliographic information can be processed with pandoc and
7379 pandoc-citeproc to produce a formatted bibliography.
7381 * Allow `--list-extensions` to take an optional FORMAT argument.
7382 This lists the extensions set by default for the selected FORMAT.
7383 The extensions are now alphabetized, and the `+` or `-`
7384 indicating the default setting comes before, rather than after,
7385 the extension.
7387 * Markdown reader:
7389 + Preserve original whitespace between blocks.
7390 + Recognize `\placeformula` as context.
7391 + Be pickier about table captions. A caption starts with a `:` which
7392 can't be followed by punctuation. Otherwise we can falsely interpret
7393 the start of a fenced div, or even a table header line like
7394 `:--:|:--:`, as a caption.
7395 + Always use four space rule for example lists. It would be awkward
7396 to indent example list contents to the first non-space character after
7397 the label, since example list labels are often long. Thanks to
7398 Bernhard Fisseni for the suggestion.
7399 + Improve raw tex parsing. Note that the Markdown reader is also
7400 affected by the `latex_macros` extension changes described below
7401 under the LaTeX reader.
7403 * LaTeX reader:
7405 + `latex_macros` extension changes (#4179). Don't pass through macro
7406 definitions themselves when `latex_macros` is set. The macros
7407 have already been applied. If `latex_macros` is enabled, then
7408 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
7409 a macro definition, and will update pandoc's internal macro map
7410 accordingly, but the empty string will be returned.
7411 + Export `tokenize`, `untokenize` (API change).
7412 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
7413 + Refactored `inlineCommand`.
7414 + Fix bug in tokenizer. Material following `^^` was
7415 dropped if it wasn't a character escape. This only affected
7416 invalid LaTeX, so we didn't see it in the wild, but it appeared
7417 in a QuickCheck test failure.
7418 + Fix regression in LateX tokenization (#4159). This mainly affects the
7419 Markdown reader when parsing raw LaTeX with escaped spaces.
7420 + Add tests of LaTeX tokenizer.
7421 + Support `\foreignlanguage` from babel.
7422 + Be more tolerant of `&` character (#4208). This allows us to parse
7423 unknown tabular environments as raw LaTeX.
7425 * Muse reader (Alexander Krotov):
7427 + Parse anchors immediately after headings as IDs.
7428 + Require that note references does not start with 0.
7429 + Parse empty comments correctly.
7431 * Org reader (Albert Krewinkel):
7433 + Fix asterisks-related parsing error (#4180).
7434 + Support minlevel option for includes (#4154). The level of headers
7435 in included files can be shifted to a higher level by specifying a
7436 minimum header level via the `:minlevel` parameter. E.g.
7437 `#+include: "tour.org" :minlevel 1` will shift the headers in
7438 tour.org such that the topmost headers become level 1 headers.
7439 + Break-up org reader test file into multiple modules.
7441 * OPML reader:
7443 + Enable raw HTML and other extensions by default for notes
7444 (#4164). This fixes a regression in 2.0. Note that extensions can
7445 now be individually disabled, e.g. `-f opml-smart-raw_html`.
7447 * RST reader:
7449 + Allow empty list items (#4193).
7450 + More accurate parsing of references (#4156). Previously we erroneously
7451 included the enclosing backticks in a reference ID (#4156). This
7452 change also disables interpretation of syntax inside references, as
7453 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
7455 * Docx reader:
7457 + Continue lists after interruption (#4025, Jesse Rosenthal).
7458 Docx expects that lists will continue where they left off after an
7459 interruption and introduces a new id if a list is starting again. So
7460 we keep track of the state of lists and use them to define a "start"
7461 attribute, if necessary.
7462 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
7463 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
7464 #4190).
7466 * Plain writer:
7468 + Don't linkify table of contents.
7470 * RST writer:
7472 + Fix anchors for headers (#4188). We were missing an `_`.
7474 * PowerPoint writer (Jesse Rosenthal):
7476 + Treat lists inside BlockQuotes as lists. We don't yet produce
7477 incremental lists in PowerPoint, but we should at least treat lists
7478 inside BlockQuotes as lists, for compatibility with other slide formats.
7479 + Add ability to force size. This replaces the more specific
7480 `blockQuote runProp`, which only affected the size of blockquotes. We
7481 can use this for notes, etc.
7482 + Implement notes. This currently prints all notes on a final slide.
7483 Note that at the moment, there is a danger of text overflowing the
7484 note slide, since there is no logic for adding further slides.
7485 + Implement basic definition list functionality to PowerPoint writer.
7486 + Don't look for default template file for Powerpoint (#4181).
7487 + Add pptx to isTextFormat list. This is used to check standalone
7488 and not writing to the terminal.
7489 + Obey slide level option (Jesse Rosenthal).
7490 + Introduce tests.
7492 * Docx writer:
7494 + Ensure that `distArchive` is the one that comes with pandoc
7495 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
7496 dir) would be used instead, and this could cause problems because a
7497 user-modified docx sometimes lacks vital sections that we count
7498 on the `distArchive` to supply.
7500 * Org writer:
7502 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
7503 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
7504 Alexander Krotov). Otherwise they can be interpreted as footnote
7505 definitions.
7507 * Muse writer (Alexander Krotov):
7509 + Don't wrap note references to the next line (#4172).
7511 * HTML writer:
7513 + Use br elements in line blocks instead of relying on CSS
7514 (#4162). HTML-based templates have had the custom CSS for
7515 `div.line-block` removed. Those maintaining custom templates will want
7516 to remove this too. We still enclose line blocks in a div with class
7517 `line-block`.
7519 * LaTeX writer:
7521 + Use `\renewcommand` for `\textlatin` with babel (#4161).
7522 This avoids a clash with a deprecated `\textlatin` command defined
7523 in Babel.
7524 + Allow fragile=singleslide attribute in beamer slides (#4169).
7525 + Use `\endhead` after `\toprule` in headerless tables (#4207).
7527 * FB2 writer:
7529 + Add cover image specified by `cover-image` meta (Alexander Krotov,
7530 #4195).
7532 * JATS writer (Hamish Mackenzie):
7534 + Support writing `<fig>` and `<table-wrap>` elements
7535 with `<title>` and `<caption>` inside them by using Divs with class set
7536 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
7537 title is included as a Heading so the constraint on where Heading can
7538 occur is also relaxed.
7539 + Leave out empty alt attributes on links.
7540 + Deduplicate image mime type code.
7541 + Make `<p>` optional in `<td>` and `<th>` (#4178).
7542 + Self closing tags for empty xref (#4187).
7543 + Improve support for code language.
7545 * Custom writer:
7547 + Use init file to setup Lua interpreter (Albert Krewinkel).
7548 The same init file (`data/init`) that is used to setup the Lua
7549 interpreter for Lua filters is also used to setup the interpreter of
7550 custom writers.lua.
7551 + Define instances for newtype wrapper (Albert Krewinkel). The custom
7552 writer used its own `ToLuaStack` instance definitions, which made
7553 it difficult to share code with Lua filters, as this could result
7554 in conflicting instances. A `Stringify` wrapper is introduced to
7555 avoid this problem.
7556 + Added tests for custom writer.
7557 + Fixed definition lists and tables in `data/sample.lua`.
7559 * Fixed regression: when target is PDF, writer extensions were being
7560 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
7561 did not work properly.
7563 * Lua modules (Albert Krewinkel):
7565 + Add `pandoc.utils` module, to hold utility functions.
7566 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
7567 define the `pandoc` lua module.
7568 + Make a Haskell module for each Lua module. Move definitions for the
7569 `pandoc.mediabag` modules to a separate Haskell module.
7570 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
7571 + Add function `pandoc.utils.hierarchicalize` (convert list of
7572 Pandoc blocks into (hierarchical) list of Elements).
7573 + Add function `pandoc.utils.normalize_date` (parses a date and
7574 converts it (if possible) to "YYYY-MM-DD" format).
7575 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
7576 of numbers below 4000 into roman numerals).
7577 + Add function `pandoc.utils.stringify` (converts any AST element
7578 to a string with formatting removed).
7579 + `data/init.lua`: load `pandoc.utils` by default
7580 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
7581 utility functions are converted from hybrid lua/haskell functions
7582 into full Haskell functions. This avoids the need for intermediate
7583 `_pipe`/`_read` helper functions, which have dropped.
7584 + pandoc.lua: re-add missing MetaMap function. This was a bug
7585 introduced in version 2.0.4.
7587 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
7588 a pure way to insert an ersatz file into a `FileTree`. In addition, we
7589 normalize paths both on insertion and on lookup.
7591 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
7593 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
7595 * Text.Pandoc.Extensions: Alphabetical order constructors for
7596 `Extension`. This makes them appear in order in `--list-extensions`.
7598 * Allow lenient decoding of latex error logs, which are not always
7599 properly UTF8-encoded (#4200).
7601 * Update latex template to work with recent versions of beamer.
7602 The old template produced numbered sections with some recent
7603 versions of beamer. Thanks to Thomas Hodgson.
7605 * Updated reference.docx (#4175). Instead of just "Hello, world", the
7606 document now contains exemplars of most of the styles that have an
7607 effect on pandoc documents. This makes it easier to see the effect
7608 of style changes.
7610 * Removed `default.theme` data file (#4096). It is no longer needed now
7611 that we have `--print-highlight-style`.
7613 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
7614 We still need this for the alpine static linux build, since
7615 we don't have ghc 8.2.2 for that yet.
7617 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
7618 can put flag settings for pandoc-citeproc there.
7620 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
7621 make releases easier.
7623 * MANUAL.txt:
7625 + Add note on what formats have `+smart` by default.
7626 + Use native syntax for custom-style (#4174, Mauro Bieg).
7627 + Introduce dedicated Extensions section, since some extensions
7628 affect formats other than markdown (Mauro Bieg, #4204).
7629 + Clarify default html output for `--section-divs` (Richard Edwards).
7631 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
7632 Closes jgm/pandoc-website#16.
7634 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
7636## pandoc 2.0.5 (2017-12-12)
7638 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
7639 generated with `--print-highlight-style` (#4133). Improve JSON
7640 serialization of styles.
7642 * Fix CSS issues involving line numbers (#4128).
7643 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
7644 Highlighting CSS no longer sets a generic color for pre and code; we only
7645 set these for class `sourceCode`.
7647 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
7649 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
7650 It works following the standard Pandoc conventions for making other
7651 sorts of slides. Caveats:
7653 + Syntax highlighting is not yet implemented. (This is difficult
7654 because there are no character classes in Powerpoint.)
7655 + Footnotes and Definition lists are not yet implemented. (Notes will
7656 usually take the form of a final slide.
7657 + Image placement and auto-resizing has a few glitches.
7658 + Reference powerpoint files don't work dependably from the command
7659 line. This will be implemented, but at the moment users are advised
7660 to change themes from within Powerpoint.
7662 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
7663 This is for functions used by both Powerpoint and Docx writers.
7665 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
7667 * Add `empty_paragraphs` extension.
7669 + Deprecate `--strip-empty-paragraphs` option. Instead we now
7670 use an `empty_paragraphs` extension that can be enabled on
7671 the reader or writer. By default, disabled.
7672 + Add `Ext_empty_paragraphs` constructor to `Extension`.
7673 + Revert "Docx reader: don't strip out empty paragraphs."
7674 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
7675 + Implement `empty_paragraphs` extension in docx reader and writer,
7676 opendocument writer, html reader and writer.
7677 + Add tests for `empty_paragraphs` extension.
7679 * Markdown reader:
7681 + Don't parse native div as table caption (#4119).
7682 + Improved computation of column widths in pipe tables.
7683 Pipe tables with lines longer than the text width (as set
7684 by `--columns`) are now scaled to text width, with the relative
7685 widths of columns determined by the ratios between the
7686 header lines. Previously we computed column widths using
7687 the ratio of header line lengths to column width, so that
7688 tables with narrow header lines were extremely thin, which
7689 was very rarely the desired result.
7691 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
7692 as long as it's not followed by a blank line. This has been fixed at the
7693 tokenizer level.
7695 * Muse reader (Alexander Krotov):
7697 + Add test for `#disable-tables` directive in Emacs mode.
7698 + Don't allow emphasis to be preceded by letter.
7699 + Add underline support in Emacs Muse mode..
7700 + Support multiline directives in Amusewiki mode
7702 * Man writer: omit internal links (#4136). That is, just print the link
7703 text without the URL.
7705 * Markdown reader: accept processing instructions as raw HTML (#4125).
7707 * Lua filters (Albert Krewinkel):
7709 + Use script to initialize the interpreter. The file `init.lua` is
7710 used to initialize the Lua interpreter which is used in Lua filters.
7711 This gives users the option to require libraries which they want to
7712 use in all of their filters, and to extend default modules.
7713 + Fix package loading for Lua 5.1. The list of package searchers is
7714 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
7715 in Lua 5.2 and later.
7716 + Refactor lua module handling. The integration with Lua's package/module
7717 system is improved: A pandoc-specific package searcher is prepended to
7718 the searchers in `package.searchers`. The modules `pandoc` and
7719 `pandoc.mediabag` can now be loaded via `require`.
7720 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
7721 function which makes using Haskell functions as package loaders much
7722 easier.
7724 * reveal.js template: add title-slide identifier to title slide (#4120).
7725 This allows it to be styled more easily.
7727 * LaTeX template: Added support for `pagestyle` variable (#4135,
7728 Thomas Hodgson)
7730 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
7731 error on linux).
7734## pandoc 2.0.4 (2017-12-03)
7736 * Add `--print-highlight-style` option. This generates a JSON version
7737 of a highlighting style, which can be saved as a `.theme` file, modified,
7738 and used with `--highlight-style` (#4106, #4096).
7740 * Add `--strip-empty-paragraphs` option. This works for any input format.
7741 It is primarily intended for use with docx and odt documents where
7742 empty paragraphs have been used for inter-paragraph spaces.
7744 * Support `--webtex` for `gfm` output.
7746 * Recognize `.muse` file extension.
7748 * Support beamer `\alert` in LaTeX reader. Closes #4091.
7750 * Docx reader: don't strip out empty paragraphs (#2252).
7751 Users who have a conversion pipeline from docx may want to consider adding
7752 `--strip-empty-paragraphs` to the command line.
7754 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
7756 * Muse reader (Alexander Krotov):
7758 + Parse markup in definition list terms.
7759 + Allow definition to end with EOF.
7760 + Make code blocks round trip.
7761 + Drop common space prefix from list items.
7762 + Add partial round trip test.
7763 + Don't interpret XML entities.
7764 + Remove `nested`.
7765 + Parse `~~` as non-breaking space in Emacs mode.
7766 + Correctly remove indentation from notes. Exactly one space is
7767 required and considered to be part of the marker.
7768 + Allow list items to be empty.
7769 + Add ordered list test.
7770 + Add more multiline definition tests.
7771 + Don't allow blockquotes within lists.
7772 + Fix reading of multiline definitions.
7773 + Add inline `<literal>` support.
7774 + Concatenate inlines of the same type
7776 * Docx writer: allow empty paragraphs (#2252).
7778 * CommonMark/gfm writer:
7780 + Use raw html for native divs/spans (#4113). This allows a pandoc
7781 markdown native div or span to be rendered in gfm using raw html tags.
7782 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
7783 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
7785 * Muse writer (Alexander Krotov):
7787 + Test that inline math conversion result is normalized.
7788 Without normalization this test produced
7789 `<em>a</em><em>b</em><em>c</em>`.
7790 + Improve inline list normalization and move to writer.
7791 + Escape hash symbol.
7792 + Escape `----` to avoid accidental horizontal rules.
7793 + Escape only `</code>` inside code tag.
7794 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
7796 * LaTeX writer:
7798 + Allow specifying just width or height for image size.
7799 Previously both needed to be specified (unless the image was
7800 being resized to be smaller than its original size).
7801 If height but not width is specified, we now set width to
7802 textwidth. If width but not height is specified, we now set
7803 height to textheight. Since we have `keepaspectratio`, this
7804 yields the desired result.
7805 + Escape `~` and `_` in code with `--listings` (#4111).
7807 * HTML writer: export `tagWithAttributes`. This is a helper allowing
7808 other writers to create single HTML tags.
7810 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
7811 converting the case as needed in LaTeX and ConTeXt writers.
7813 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
7814 so that it no longer produces empty `Para`'s as an artifact.
7816 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
7817 This gives us automatic normalization, so we don't get
7818 for example two consecutive Spaces.
7820 * Include default CSS for 'underline' class in HTML-based templates.
7822 * revealjs template: add `tex2jax` configuration for the
7823 math plugin. With the next release of reveal.js, this will
7824 fix the problem of `$`s outside of math contexts being
7825 interpreted as math delimiters (#4027).
7827 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
7829 + Add basic lua List module (#4099, #4081). The List module is
7830 automatically loaded, but not assigned to a global variable. It can be
7831 included in filters by calling `List = require 'List'`. Lists of blocks,
7832 lists of inlines, and lists of classes are now given `List` as a metatable,
7833 making working with them more convenient. E.g., it is now possible to
7834 concatenate lists of inlines using Lua's concatenation operator `..`
7835 (requires at least one of the operants to have `List` as a metatable):
7837 function Emph (emph)
7838 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
7839 return pandoc.Span(emph.content .. s)
7840 end
7842 The `List` metatable is assigned to the tables which get passed to
7843 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
7844 enables the use of the resulting objects as lists.
7845 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
7846 Pandoc and Meta elements are now pushed by calling the respective
7847 constructor functions of the pandoc Lua module. This makes serialization
7848 consistent with the way blocks and inlines are pushed to lua and allows
7849 to use List methods with the `blocks` value.
7850 + Add documentation for pandoc.List in `lua-filters.md`.
7852 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
7853 `&` (but not a valid entity) following them (#4094, #4088).
7855 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
7856 when `numberLines` is used (#4103).
7858 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
7859 requiring a leading 0 on single-digit days.
7861 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
7862 Bieg, #4095).
7864 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
7865 Previously we only mentioned `--latexmathml`, even if `-m` was
7866 used.
7868 * Changelog: fix description of lua filters in 2.0 release
7869 (Albert Krewinkel). Lua filters were initially run *after* conventional
7870 (JSON) filters. However, this was changed later to make it easier to deal
7871 with files in the mediabag. The changelog is updated to describe that
7872 feature of the 2.0 release correctly.
7874 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
7875 #4085). This reduces compile time and memory usage significantly.
7877 * `lua-filters.md`: Added tikz filter example.
7879 * Create alternative zip file for macOS binaries.
7881 * Create alternative zip file for Windows binaries.
7883 * Update INSTALL.md since we now provide zips for binaries.
7885 * Relax `http-types` dependency (Justus Sagemüller, #4084).
7887 * Add `epub.md`, `getting-started.md` to docs. These used to live in
7888 the website repo.
7890 * Add `packages` target to Makefile.
7892 * Bump bounds for binary, http-types, tasty-hunit
7894## pandoc 2.0.3 (2017-11-20)
7896 * Lua filters: preload text module (Albert Krewinkel, #4077).
7897 The `text` module is preloaded in lua. The module contains some UTF-8
7898 aware string functions, implemented in Haskell. The module is loaded on
7899 request only, e.g.:
7901 text = require 'text'
7902 function Str (s)
7903 s.text = text.upper(s.text)
7904 return s
7905 end
7907 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
7908 #4071). Attribute lists are represented as associative lists in Lua. Pure
7909 associative lists are awkward to work with. A metatable is attached to
7910 attribute lists, allowing to access and use the associative list as if
7911 the attributes were stored in as normal key-value pair in table.
7912 Note that this changes the way `pairs` works on attribute lists. Instead
7913 of producing integer keys and two-element tables, the resulting iterator
7914 function now returns the key and value of those pairs. Use `ipairs` to
7915 get the old behavior. Warning: the new iteration mechanism only works if
7916 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
7918 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
7919 This fixes a bug where pandoc would stop parsing a URI with an
7920 empty attribute: for example, `&a=&b=` wolud stop at `a`.
7921 (The uri parser tries to guess which punctuation characters
7922 are part of the URI and which might be punctuation after it.)
7924 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
7926 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
7927 `WriterOptions`.
7928 + Reimplemented `isEnabled` function from `Options.hs` to accept both
7929 `ReaderOptions` and `WriterOptions`.
7930 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
7932 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
7933 behavior for `muse`. New `Ext_amuse` constructor for
7934 `Extension`. Note: this is switched on by default; for
7935 Emacs behavior, use `muse-amuse`.
7937 * Muse reader (Alexander Krotov):
7939 + Count only one space as part of list item marker.
7940 + Produce SoftBreaks on newlines. Now wrapping can be preserved
7941 with `--wrap=preserve`.
7942 + Add Text::Amuse footnote extensions. Footnote end is indicated by
7943 indentation, so footnotes can be placed anywhere in the text,
7944 not just at the end of it.
7945 + Accept Emacs Muse definition lists when `-amuse`.
7946 Emacs Muse does not require indentation.
7948 * HTML reader:
7950 + Ensure we don't produce level 0 headers (#4076), even for chapter
7951 sections in epubs. This causes problems because writers aren't set
7952 up to expect these.
7953 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
7954 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
7955 `markdown` or `html` `+tex_math_single_backslash`.
7957 * MANUAL: clarify that math extensions work with HTML.
7958 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
7959 will work with HTML as well as Markdown.
7961 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
7962 #4067).
7964 * RST reader: better support for 'container' directive (#4066).
7965 Create a div, incorporate name attribute and classes.
7967 * LaTeX reader:
7969 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
7970 `rr`. We now expand it like a macro.
7971 + Allow optional args for parbox (#4056).
7972 + Allow optional arguments on `\footnote` (#4062).
7974 * EPUB writer: Fixed path for cover image (#4069). It was previously
7975 `media/media/imagename`, and should have been `media/imagename`.
7977 * Markdown writer: fix bug with doubled footnotes in grid tables
7978 (#4061).
7980 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
7981 Otherwise we seem to get an error; biblatex wants polyglossia
7982 language to be defined.
7984 * Added examples to lua filters documentation.
7987## pandoc 2.0.2 (2017-11-12)
7989 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
7990 `--mimetex`, `--jsmath`.
7992 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
7993 leading to invalid XML in default JATS output with pandoc-citeproc.
7995 * `lua-filters.md`: use real-world man page filter as example.
7997 * Add lua filter functions `walk_inline` and `walk_block`
7998 in the pandoc module, to apply filters inside particular
7999 inline and block elements.
8001 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
8002 into new internal module `Text.Pandoc.Lua.Filter`.
8004 * Markdown reader:
8006 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
8007 This brings our handling of them into alignment with CommonMark's.
8008 + Fix YAML metadata with "chomp" (`|-`). Previously if a
8009 YAML block under `|-` contained a blank line, pandoc would
8010 not parse it as metadata.
8012 * Removed `etc.` from abbreviations file. Often `etc.` ends a
8013 sentence, and we want the period to be treated as a
8014 sentence-ending period.
8016 * Fix regression with `--metadata` (#4054). Values specified with
8017 `--metadata` should replace a metadata value set in the document
8018 itself, rather than creating a list including a new value.
8020 * EPUB writer:
8022 + Fix EPUB OCF structure. #3720 had been improperly implemented.
8023 + Fix modified paths for raw HTML tags (src, poster, etc.)
8024 (#4050, #4055). This had not been updated for the new EPUB
8025 container layout, with a separate text/ subdirectory.
8026 + Fix image paths with empty `--epub-subdirectory`.
8028 * Miscellaneous code cleanup (Alexander Krotov).
8030 * Use pandoc-types 1.17.3, which adds `Walkable` instances
8031 for `[Block] Block` and `[Inline] Inline`.
8033 * Remove obsolete `stack.full.yaml` (#4052).
8035 * Change to using pandoc-citeproc 0.12.1 in binary packages.
8037 * Consolidate math output method documentation (#4049, Mauro Bieg).
8039 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
8041 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
8042 Haskell filters. This is easier and faster.
8044 * Improved `INSTALL.md`.
8046 * Update commands to extract deb archive on Linux (#4043, Salim B).
8049## pandoc 2.0.1.1 (2017-11-04)
8051 * Improved fix to #3989 (parsing of HTML tags containing
8052 `>` in an attribute or comment). The previous fix (in 2.0.1) only
8053 worked in certain cases.
8055 * FB2 writer (Alexander Krotov):
8057 + Add `unrecognised` genre to `<title-info>`
8058 (Alexander Krotov). XML schema requires at least one genre.
8059 + Remove `<annotation>` from `<body>`.
8061 * CommonMark writer: fix strikethrough for `gfm` (#4038).
8063 * Use texmath 0.10, which adds support for a wider range of
8064 symbols and fixes default column alignments in MathML
8065 and OMML.
8067 * Highlighting fixes, using skylighting 0.4.3.2:
8069 + Fix invalid CSS.
8070 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
8071 + Ensure that code lines don't get duplicate identifiers (#4031).
8072 The line identifiers are built using the code block's identifier
8073 as a prefix. If the code block has null identifier, we use
8074 `cb1`, `cb2`, etc.
8076 * Added a few abbreviations to `data/abbreviations`,
8077 and sorted the list (#3984, Wandmalfarbe).
8079 * Improved support for columns in HTML writer (#4028).
8081 + Remove `width` attribute from the `div`.
8082 + Remove space between `<div class="column">` elements,
8083 since this prevents columns whose widths sum to 100%
8084 (the space takes up space).
8085 + Move as much as possible of the CSS to the template.
8086 + Ensure that all the HTML-based templates (including epub)
8087 contain the CSS for columns.
8088 + Columns default to 50% width unless they are given a width
8089 attribute. So if you want two equal-width columns, you
8090 can use a div with class `column` and no `width` attribute.
8092 * SelfContained: use `base64` for css links with media attribute (#4026).
8093 This fixes `--self-contained` with S5.
8095 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
8097 * INSTALL.md: MacOS instructions needed xar -f (adam234).
8099 * MANUAL.txt:
8101 + Clarify that --setext-headers doesn't affect gfm output (#4035).
8102 + Clarify what is needed to open and close a div in `fenced_divs`
8103 (#4039, Tristano Ajmone).
8104 + Removed reference to `default.beamer` in docs (#4024).
8105 Also added mention of other templates affecting PDF output
8106 with different settings.
8109## pandoc 2.0.1 (2017-10-31)
8111 * Fixed regression in parsing of HTML comments in markdown and other
8112 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
8113 The parser stopped at the first `>` character, even if it wasn't
8114 the end of the comment.
8116 * Creole reader (Sascha Wilde):
8118 + Fix some minor typos and formatting.
8119 + Add additional test on nowiki-block after para.
8120 + Fix lists with trailing white space.
8122 * LaTeX reader: handle `%` comment right after command.
8123 For example, `\emph%`.
8125 * Markdown reader: make sure fenced div closers work in lists.
8126 Previously the following failed:
8128 ::: {.class}
8129 1. one
8130 2. two
8131 :::
8133 and you needed a blank line before the closing `:::`.
8135 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
8136 enabled, Divs will be rendered as fenced divs.
8138 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
8139 (#4016).
8141 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
8142 Note: this change may require some changes in CSS rules.
8143 `footnoteRef` has become `footnote-ref`, `titleslide` has
8144 become `title-slide`, and `footnoteBack` has become `footnote-back`.
8146 * JATS writer: Properly pass through author metadata (#4020).
8148 * FB2 writer (Alexander Krotov):
8150 + Write blocks outside of `<p>` in definitions.
8151 + Make bullet lists consistent with ordered lists, repeating
8152 the marker for the outer list rather than indenting sublists,
8153 since indentation does not work in readers.
8154 + Add new style FB2 tests.
8156 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
8157 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
8158 to 'cm'.
8160 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
8162 * Fix broken reference links in manual (Andrew Dunning, #4014)
8164 * Fixed example of slide columns structure in changelog (#4015).
8165 Also documented this feature in MANUAL.txt.
8168## pandoc 2.0.0.1 (2017-10-30)
8170 * EPUB writer:
8172 + Fixed filepaths for nonstandard epub-subdirectory values.
8173 + Ensure that epub2 is recognized as a non-text format,
8174 so that a template is used.
8175 + Don't include "prefix" attribute for ibooks for epub2.
8176 It doesn't validate.
8177 + Fix stylesheet paths; previously we had an incorrect
8178 stylesheet path for the cover page and nav page.
8180 * LaTeX reader:
8182 + Insert space when needed in macro expansion (#4007).
8183 Sometimes we need to insert a space after a control sequence
8184 to prevent it merging with a following letter.
8185 + Allow unbraced arguments for macros (#4007).
8186 + Allow body of macro definition to be unbraced (#4007).
8188 * Linux package build: ensure that pandoc-citeproc is statically linked.
8190 * trypandoc: add native, ms.
8193## pandoc 2.0 (2017-10-29)
8195### New features
8197 * New output format `ms` (groff ms). Complete support, including
8198 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
8199 texmath's new eqn writer to convert math to eqn format, so a ms file
8200 produced with this writer should be processed with `groff -ms -e` if
8201 it contains math.
8203 * New output format `jats` (Journal Article Tag Suite). This is an XML
8204 format used in archiving and publishing articles. Note that a
8205 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
8206 unless a stylesheet is specified using `--css`.
8208 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
8209 This uses bindings to GitHub's fork of cmark, so it should parse
8210 gfm exactly as GitHub does (excepting certain postprocessing
8211 steps, involving notifications, emojis, etc.). `markdown_github`
8212 has been deprecated in favor of `gfm`.
8214 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
8216 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
8217 This uses bindings to GitHub's fork of cmark. `markdown_github`
8218 has been deprecated in favor of `gfm`.
8220 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
8222 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
8224 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
8225 Note that there is a new data file, `data/vimwiki.css`, which can
8226 be used to display the HTML produced by this reader and
8227 pandoc's HTML writer in the style of vimwiki's own HTML
8228 export.
8230 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
8232 * New syntax for Divs, with `fenced_divs` extension enabled by
8233 default (#168). This gives an attractive, plain-text way to create
8234 containers for block-level content.
8236 * Added new syntax for including raw content in any output format,
8237 enabled by the `raw_attribute` extension (which is on by default
8238 for `markdown` and `multimarkdown`). The syntax is the same as
8239 for fenced code blocks or code inlines, only with `{=FORMAT}` for
8240 attributes, where `FORMAT` is the name of the output format
8241 (e.g., `ms`, `html`).
8243 * Implement multicolumn support for slide formats (#1710).
8244 The structure expected is:
8246 :::::::::::::: {.columns}
8247 ::: {.column width="40%"}
8248 contents...
8249 :::
8250 ::: {.column width="60%"}
8251 contents...
8252 :::
8253 ::::::::::::::
8255 Support has been added for beamer and all HTML slide formats.
8257 * Allows line comments in templates, beginning with `$--` (#3806).
8258 (Requires doctemplates 0.2.1.)
8260 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
8261 (Stefan Dresselhaus, #3663, #2097).
8263 * Add `--log` option to save log messages in JSON format to a file (#3392).
8265 * Add `--request-header` option, to set request headers when pandoc
8266 makes HTTP requests to fetch external resources. For example:
8267 `--request-header User-Agent:blah`.
8269 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
8270 option works like `--filter` but takes pathnames of special lua filters
8271 and uses the lua interpreter baked into pandoc, so that no external
8272 interpreter is needed. Note that lua filters are all applied after
8273 regular filters, regardless of their position on the command line.
8274 For documentation of lua filters, see `doc/lua-filters.md`.
8276 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
8277 This contains a JSON representation of `ReaderOptions`, so filters
8278 can access it.
8280 * Support creation of pdf via groff `ms` and pdfroff.
8281 `pandoc -t ms -o output.pdf input.txt`.
8283 * Support for PDF generation via HTML and `weasyprint` or `prince`
8284 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
8286 * Added `--epub-subdirectory` option (#3720). This specifies the
8287 subdirectory in the OCF container that holds the EPUB specific content.
8288 We now put all EPUB related content in an `EPUB/` subdirectory by default
8289 (later this will be configurable).
8291 ```
8292 mimetype
8293 META-INF/
8294 com.apple.ibooks.display-options.xml
8295 container.xml
8296 EPUB/ <<--configurable-->>
8297 fonts/ <<--static-->>
8298 font.otf
8299 media/ <<--static-->>
8300 cover.jpg
8301 fig1.jpg
8302 styles/ <<--static-->>
8303 stylesheet.css
8304 content.opf
8305 toc.ncx
8306 text/ <<--static-->>
8307 ch001.xhtml
8308 ```
8310 * Added `--resource-path=SEARCHPATH` command line option (#852).
8311 SEARCHPATH is separated by the usual character, depending on OS
8312 (: on unix, ; on windows). Default resource path is just working
8313 directory. However, the working directory must be explicitly
8314 specified if the `--resource-path` option is used.
8316 * Added --abbreviations=FILE option for custom abbreviations file
8317 (#256). Dfault abbreviations file (`data/abbreviations`) contains
8318 a list of strings that will be recognized by pandoc's
8319 Markdown parser as abbreviations. (A nonbreaking space will
8320 be inserted after the period, preventing a sentence space in
8321 formats like LaTeX.) Users can override the default by putting a file
8322 abbreviations in their user data directory (`~/.pandoc` on *nix).
8324 * Allow a theme file as argument to `--highlight-style`.
8325 Also include a sample, `default.theme`, in `data/`.
8327 * Allow `--syntax-definition` option for dynamic loading of syntax
8328 highlighting definitions (#3334).
8330 * Lists in `markdown` by default now use the CommonMark variable
8331 nesting rules (#3511). The indentation required for a block-level
8332 item to be included in a list item is no longer fixed, but is
8333 determined by the first line of the list item. To be included in
8334 the list item, a block must be indented to the level of the first
8335 non-space content after the list marker. Exception: if are 5 or more
8336 spaces after the list marker, then the content is interpreted as an
8337 indented code block, and continuation paragraphs must be indented
8338 two spaces beyond the end of the list marker. See the CommonMark
8339 spec for more details and examples.
8341 Documents that adhere to the four-space rule should, in most cases,
8342 be parsed the same way by the new rules. Here are some examples
8343 of texts that will be parsed differently:
8345 - a
8346 - b
8348 will be parsed as a list item with a sublist; under the four-space
8349 rule, it would be a list with two items.
8351 - a
8353 code
8355 Here we have an indented code block under the list item, even though it
8356 is only indented six spaces from the margin, because it is four spaces
8357 past the point where a continuation paragraph could begin. With the
8358 four-space rule, this would be a regular paragraph rather than a code
8359 block.
8361 - a
8363 code
8365 Here the code block will start with two spaces, whereas under
8366 the four-space rule, it would start with `code`. With the four-space
8367 rule, indented code under a list item always must be indented eight
8368 spaces from the margin, while the new rules require only that it
8369 be indented four spaces from the beginning of the first non-space
8370 text after the list marker (here, `a`).
8372 This change was motivated by a slew of bug reports from people
8373 who expected lists to work differently (#3125, #2367, #2575, #2210,
8374 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
8375 of CommonMark (now used by GitHub, for example). Those who
8376 prefer the old behavior can use `-f markdown+four_space_rule`.
8378 * Added `four_space_rule` extension. This triggers the old pandoc
8379 parsing rule for content nested under list items (the "four space
8380 rule").
8382 * Added `spaced_reference_links` extension (#2602). It allows whitespace
8383 between the two parts of a reference link: e.g.
8385 [a] [b]
8387 [b]: url
8389 This was previously enabled by default; now it is forbidden by default.
8391 * Add `space_in_atx_header` extension (#3512). This is enabled by default
8392 in pandoc and GitHub markdown but not the other flavors.
8393 This requirse a space between the opening #'s and the header
8394 text in ATX headers (as CommonMark does but many other implementations
8395 do not). This is desirable to avoid falsely capturing things ilke
8397 #hashtag
8399 or
8401 #5
8403 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
8404 #3431).
8406 * Allow ibooks-specific metadata in epubs (#2693). You can now have
8407 the following fields in your YAML metadata, and it will be treated
8408 appropriately in the generated EPUB:
8410 ```
8411 ibooks:
8412 version: 1.3.4
8413 specified-fonts: false
8414 ipad-orientation-lock: portrait-only
8415 iphone-orientation-lock: landscape-only
8416 binding: true
8417 scroll-axis: vertical
8418 ```
8421### Behavior changes
8423 * Reader functions no longer presuppose that CRs have been
8424 stripped from the input. (They strip CRs themselves, before
8425 parsing, to simplify the parsers.)
8427 * Added support for translations (localization) (#3559).
8428 Currently this only affects the LaTeX reader, for things
8429 like `\figurename`. Translation data files for 46 languages
8430 can be found in `data/translations`.
8432 * Make `--ascii` work with DocBook output too.
8434 * Rename `--latex-engine` to `--pdf-engine`,
8435 and `--latex-engine-opt` to `--pdf-engine-opt`.
8437 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
8438 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
8439 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
8440 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
8442 * With `--filter` R filters are now recognized, even if they are
8443 not executable (#3940, #3941, Andrie de Vries).
8445 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
8447 * Make epub an alias for epub3, not epub2.
8449 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
8450 Multiple stylesheets may be used. Stylesheets will be taken both from
8451 `--css` and from the `stylesheet` metadata field (which can contain
8452 either a file path or a list of them).
8454 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
8455 The argument was for a bridge JavaScript that used to be necessary
8456 in 2004. We have removed the script already.
8458 * `--katex` improvements. The latest version is used, and the
8459 autoload script is loaded by default.
8461 * Change MathJax CDN default since old one is shutting down (#3544).
8462 Note: The new URL requires a version number, which we'll have
8463 to update manually in subsequent pandoc releases in order to
8464 take advantage of mathjax improvements.
8466 * `--self-contained`: don't incorporate elements with `data-external="1"`
8467 (#2656). You can leave an external link as it is by adding the attribute
8468 data-external="1" to the element. Pandoc will then not try to
8469 incorporate its content when `--self-contained` is used. This is
8470 similar to a feature already supported by the EPUB writer.
8472 * Allow `--extract-media` to work with non-binary input formats
8473 (#1583, #2289). If `--extract-media` is supplied with a non-binary
8474 input format, pandoc will attempt to extract the contents of all
8475 linked images, whether in local files, data: uris, or external uris.
8476 They will be named based on the sha1 hash of the contents.
8478 * Make `papersize: a4` work regardless of the case of `a4`.
8479 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
8481 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
8483 * Underlined elements are now treated consistently by readers
8484 (#2270, hftf); they are always put in a Span with class `underline`.
8485 This allows the user to treat them differently from other emphasis,
8486 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
8487 have been changed.
8489 * Improved behavior of `auto_identifiers` when there are explicit ids
8490 (#1745). Previously only autogenerated ids were added to the list
8491 of header identifiers in state, so explicit ids weren't taken
8492 into account when generating unique identifiers. Duplicated
8493 identifiers could result. This simple fix ensures that explicitly given
8494 identifiers are also taken into account.
8496 * Use `table-of-contents` for contents of toc, make `toc` a boolean
8497 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
8498 This allows you to set `toc: true` in the metadata; this
8499 previously produced strange results in some output formats.
8500 For backwards compatibility, `toc` is still set to the
8501 toc contents. But it is recommended that you update templates
8502 to use `table-of-contents` for the toc contents and `toc`
8503 for a boolean flag.
8505 * Change behavior with binary format output to stdout.
8506 Previously, for binary formats, output to stdout was disabled
8507 unless we could detect that the output was being piped (and not
8508 sent to the terminal). Unfortunately, such detection is not
8509 possible on Windows, leaving windows users no way to pipe binary
8510 output. So we have changed the behavior in the following way:
8512 + Output to stdout is allowed when it can be determined that
8513 the output is being piped (on non-Windows platforms).
8514 + If the `-o` option is not used, binary output is never sent
8515 to stdout by default; instead, an error is raised.
8516 + If `-o -` is used, binary output is sent to stdout, regardless
8517 of whether it is being piped. This works on Windows too.
8519 * Better error behavior: uses of `error` have been replaced by
8520 raising of `PandocError`, which can be trapped and handled by the
8521 calling program.
8523 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
8524 GitHub has two Markdown modes, one for long-form documents like READMEs
8525 and one for short things like issue comments. In issue comments, a line
8526 break is treated as a hard line break. In README, wikis, etc., it is
8527 treated as a space as in regular Markdown. Since pandoc is more likely to
8528 be used to convert long-form documents from GitHub Markdown,
8529 `-hard_line_breaks` is a better default.
8531 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
8533 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
8534 Previously they would be transmitted to the template without any
8535 escaping. Note that `--M title='*foo*'` yields a different result from
8537 ---
8538 title: *foo*
8539 ---
8541 In the latter case, we have emphasis; in the former case, just
8542 a string with literal asterisks (which will be escaped
8543 in formats, like Markdown, that require it).
8545 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
8547 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
8548 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
8549 it is valid HTML5. HTML4 is not affected. This will allow us to use
8550 custom attributes in pandoc without producing invalid HTML. (With help
8551 from Wandmalfarbe, #3817.)
8553 * Plain writer: improved super/subscript rendering. We now
8554 handle more non-digit characters for which there are
8555 sub/superscripted unicode characters. When unicode
8556 sub/superscripted characters are not available, we use
8557 `_(..)` or `^(..)` (#3518).
8559 * Docbook, JATS, TEI writers: print INFO message when omitting interior
8560 header (#3750). This only applies to section headers inside list items,
8561 e.g., which were otherwise silently omitted.
8563 * Change to `--reference-links` in Markdown writer (#3701). With
8564 `--reference-location` of `section` or `block`, pandoc will now repeat
8565 references that have been used in earlier sections. The Markdown
8566 reader has also been modified, so that *exactly* repeated references
8567 do not generate a warning, only references with the same label but
8568 different targets. The idea is that, with references after every block,
8569 one might want to repeat references sometimes.
8571 * ODT/OpenDocument writer:
8573 + Support `lang` attribute (#1667).
8574 + Added support for `--toc` (#2836). Thanks to @anayrat.
8576 * Docx writer:
8578 + `lang` meta, see #1667 (Mauro Bieg, #3515).
8579 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
8580 + Use `Table` rather than `Table Normal` for table style (#3275).
8581 `Table Normal` is the default table style and can't be modified.
8582 + Pass through comments (#2994). We assume that comments are defined as
8583 parsed by the docx reader:
8585 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
8586 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
8587 have a comment <span class="comment-end" id="0"></span>on it.
8589 We assume also that the id attributes are unique and properly
8590 matched between comment-start and comment-end.
8591 + Bookmark improvements. Bookmark start/end now surrounds content rather
8592 than preceding it. Bookmarks generated for Div with id
8593 (jgm/pandoc-citeproc#205).
8594 + Add `keywords` metadata to docx document properties (Ian).
8596 * RST writer: support unknown interpreted text roles by
8597 parsing them as `Span` with `role` attributes (#3407). This
8598 way they can be manipulated in the AST.
8600 * HTML writer:
8602 + Line block: Use class instead of style attribute (#1623). We now
8603 issue `<div class="line-block">` and include a default definition
8604 for `line-block` in the default templates, instead of hard-coding a
8605 `style` on the div.
8606 + Add class `footnoteBack` to footnote back references (Timm Albers).
8607 This allows for easier CSS styling.
8608 + Render SmallCaps as span with smallcaps class (#1592), rather than
8609 using a style attribute directly. This gives the user more flexibility
8610 in styling small caps in CSS.
8611 + With reveal.js we use `data-src` instead of `src` for images for
8612 lazy loading.
8613 + Special-case `.stretch` class for images in reveal.js (#1291).
8614 Now in reveal.js, an image with class `stretch` in a paragraph
8615 by itself will stretch to fill the whole screen, with no
8616 caption or figure environment.
8618 * Added warnings for non-rendered blocks to writers.
8620 * Writers now raise an error on template failure.
8622 * When creating a PDF via LaTeX, warn if the font is missing some
8623 characters (#3742).
8625 * Remove initial check for PDF-creating program (#3819).
8626 Instead, just try running it and raise the exception if it
8627 isn't found at that point. This improves things for users of Cygwin
8628 on Windows, where the executable won't be found by `findExecutable`
8629 unless `.exe` is added. The same exception is raised as before, but
8630 at a later point.
8632 * Readers issue warning for duplicate header identifiers (#1745).
8633 Autogenerated header identifiers are given suffixes so as not to clash
8634 with previously used header identifiers. But they may still coincide with
8635 an explicit identifier that is given for a header later in the document,
8636 or with an identifier on a div, span, link, or image. We now issue
8637 a warning in this case, so users can supply an explicit identifier.
8639 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
8640 and `raw_html` extensions.
8642 * Markdown reader:
8644 + Don't allow backslash + newline to affect block structure (#3730).
8645 Note that as a result of this change, the following, which formerly
8646 produced a header with two lines separated by a line break, will
8647 now produce a header followed by a paragraph:
8649 # Hi\
8650 there
8652 This may affect some existing documents that relied on
8653 this undocumented and unintended behavior. This change makes pandoc
8654 more consistent with other Markdown implementations, and with itself
8655 (since the two-space version of a line break doesn't work inside ATX
8656 headers, and neither version works inside Setext headers).
8659 * Org reader (Albert Krewinkel, unless noted):
8661 + Support `table.el` tables (#3314).
8662 + Support macros (#3401).
8663 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
8664 Recognized include types are `example`, `export`, `src`, and
8665 normal org file inclusion. Advanced features like line numbers
8666 and level selection are not implemented yet.
8667 + Interpret more meta value as inlines. The values of the following
8668 meta variables are now interpreted using org-markup instead of
8669 treating them as pure strings: `keywords` (comma-separated list of
8670 inlines), `subtitle` (inline values), `nocite` (inline values, can
8671 be repeated).
8672 + Support `\n` export option (#3940). This turns all newlines in the
8673 text into hard linebreaks.
8675 * RST reader:
8677 + Improved admonition support (#223). We no longer add an
8678 `admonition` class, we just use the class for the type of admonition,
8679 `note` for example. We put the word corresponding to the label in
8680 a paragraph inside a `Div` at the beginning of the admonition with
8681 class `admonition-title`. This is about as close as we can get to
8682 RST's own output.
8683 + Initial support of `.. table` directive. This allows adding captions
8684 to tables.
8685 + Support `.. line-block` directive. This is deprecated but may still
8686 be in older documents.
8687 + Support scale and align attributes of images (#2662).
8688 + Implemented implicit internal header links (#3475).
8689 + Support RST-style citations (#853). The citations appear at the end
8690 of the document as a definition list in a special div with id
8691 `citations`. Citations link to the definitions.
8692 + Recurse into bodies of unknown directives (#3432).
8693 In most cases it's better to preserve the content than
8694 to emit it. This isn't guaranteed to have good results;
8695 it will fail spectacularly for unknown raw or verbatim directives.
8696 + Handle chained link definitions (#262). For example,
8698 .. _hello:
8699 .. _goodbye: example.com
8701 Here both `hello` and `goodbye` should link to `example.com`.
8702 + Support anchors (#262). E.g.
8704 `hello`
8706 .. _hello:
8708 paragraph
8710 This is supported by putting "paragraph" in a `Div` with id `hello`.
8711 + Support `:widths:` attribute for table directive.
8712 + Implement csv-table directive (#3533). Most attributes are supported,
8713 including `:file:` and `:url:`.
8714 + Support unknown interpreted text roles by parsing them as Span
8715 with "role" attributes (#3407). This way they can be manipulated in
8716 the AST.
8718 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
8720 * LaTeX reader:
8722 + Implemented `\graphicspath` (#736).
8723 + Properly handle column prefixes/suffixes. For example, in
8724 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
8725 each cell will be interpreted as if it has a `$`
8726 before its content and a `$` after (math mode).
8727 + Handle komascript `\dedication` (#1845). It now adds a
8728 `dedication` field to metadata. It is up to the user to supply
8729 a template that uses this variable.
8730 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
8731 `sf`, `bf` (#3488). Spans with a class are used when there is
8732 nothing better.
8733 + Expand `\newenvironment` macros (#987).
8734 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
8735 + Better support for subfigure package (#3577).
8736 A figure with two subfigures turns into two pandoc
8737 figures; the subcaptions are used and the main caption
8738 ignored, unless there are no subcaptions.
8739 + Add support for `\vdots` (Marc Schreiber, #3607).
8740 + Add basic support for hyphenat package (Marc Schreiber, #3603).
8741 + Add basic `\textcolor` support (Marc Schreiber).
8742 + Add support for `tabularx` environment (Marc Schreiber, #3632).
8743 + Better handling of comments inside math environments (#3113).
8744 This solves a problem with commented out `\end{eqnarray}` inside
8745 an eqnarray (among other things).
8746 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
8747 is selected (#3692). Otherwise skip with a warning. This is better
8748 than trying to parse it as text!
8749 + Add `\colorbox` support (Marc Schreiber).
8750 + Set identifiers on Spans used for `\label`.
8751 + Have `\setmainlanguage` set `lang` in metadata.
8752 + Support etoolbox's `\ifstrequal`.
8753 + Support `plainbreak`, `fancybreak` et al from the memoir class
8754 (bucklereed, #3833).
8755 + Support `\let`. Also, fix regular macros so they're expanded at the
8756 point of use, and NOT also the point of definition. `\let` macros,
8757 by contrast, are expanded at the point of definition. Added an
8758 `ExpansionPoint` field to `Macro` to track this difference.
8759 + Support simple `\def` macros. Note that we still don't support
8760 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
8761 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
8762 obsoletes #3560).
8763 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
8764 attributes, so they can be handled in filters (Marc Schreiber, #3639)
8765 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
8766 #3589). Acronyms are not resolved by the reader, but acronym and
8767 glossary information is put into attributes on Spans so that they
8768 can be processed in filters.
8769 + Use `Link` instead of `Span` for `\ref`. This makes more sense
8770 semantically and avoids unnecessary `Span [Link]` nestings when
8771 references are resolved.
8772 + Rudimentary support for `\hyperlink`.
8773 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
8774 + Support `\lq`, `\rq`.
8775 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
8776 (#3853).
8777 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
8778 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
8779 + Support `\k` ogonek accent.
8780 + Improve handling of accents. Handle ogonek, and fall back correctly
8781 with forms like `\"{}`.
8782 + Better support for ogonek accents.
8783 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
8784 + Support for `xspace` (Marc Schreiber, #3797).
8785 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
8786 and `\figurename`.
8787 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
8788 level 0 headers, and parts as level -1 headers. After parsing, we
8789 check for the lowest header level, and if it's less than 1 we bump
8790 everything up so that 1 is the lowest header level. So `\part` will
8791 always produce a header; no command-line options are needed.
8792 + Add block version of `\textcolor` (Marc Schreiber).
8793 + `\textcolor` works as inline and block command (Marc Schreiber).
8794 + `\textcolor` will be parse as span at the beginning of a paragraph
8795 (Marc Schreiber).
8796 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
8797 + Improved handling of include files in LaTeX reader (#3971).
8798 Previously `\include` wouldn't work if the included file
8799 contained, e.g., a begin without a matching end.
8800 + Support `\expandafter` (#3983).
8801 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
8802 as a synonym for `\newcommand`.
8803 + Handle `\lettrine` (Mauro Bieg).
8805 * Math improvements due to updates in texmath:
8807 + Improved handling of accents and upper/lower delimiters.
8808 + Support for output in GNU eqn format (used with *roff).
8809 + Allow `\boldsymbol` + a token without braces, and similarly
8810 with other styling commands.
8811 + Improve parsing of `\mathop` to allow multi-character operator names.
8812 + Add thin space after math operators when "faking it with
8813 unicode."
8815 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
8816 instance for `a -> [a]` (pandoc-types). Note that behavior
8817 will be slightly different, since `bottomUp`'s treatment of
8818 a function `[a] -> [a]` is to apply it to each sublist of a
8819 list, while walk applies it only to maximal sublists.
8820 Usually the latter behavior is what is wanted, and the
8821 former can be simulated when needed. But there may be
8822 existing filters that need to be rewritten in light of the
8823 new behavior. Performance should be improved.
8825 * There are some changes to syntax highlighting due to revisions
8826 in the `skylighting` library:
8828 + Support for `powershell` has been added, and many syntax
8829 definitions have been updated.
8830 + Background colors have been added to the `kate` style.
8831 + The way highlighted code blocks are formatted in HTML has
8832 been changed (David Baynard), in ways that may require
8833 changes in hard-coded CSS affecting highlighting.
8834 (If you haven't included hard-coded highlighting CSS in
8835 your template, you needn't change anything.)
8838### API changes
8840 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
8841 This contains definitions of the `PandocMonad` typeclass, the
8842 `PandocIO` and `PandocPure` monads, and associated functions.
8844 * Changed types of all writers and readers.
8846 + We now use `Text` instead of `String` in the interface (#3731).
8847 (We have not yet changed the internals of most readers to work
8848 with `Text`, but making this change in the API now opens up a
8849 path to doing that.)
8850 + The result is now of form `m a` with constraint `PandocMonad m`.
8851 Readers and writers can be combined to form monadic values which
8852 can be run using either `runIO` or `runPure`. If `runIO` is used,
8853 then both readers and writers will be able to do IO when needed
8854 (for include files, for example); if `runPure` is used,
8855 then the functions are pure and will not touch IO.
8856 + Where previously you used
8857 `writeRST def (readMarkdown def "[foo](url)")`, now you
8858 would use
8859 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
8861 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
8862 contains reader helper functions formerly defined in the
8863 top-level `Text.Pandoc` module.
8865 + Changed `StringReader` -> `TextReader`.
8866 + `getReader` now returns a pair of a reader and
8867 `Extensions`, instead of building the extensions into the
8868 reader (#3659). The calling code must explicitly set
8869 `readerExtensions` using the `Extensions` returned. The
8870 point of the change is to make it possible for the calling
8871 code to determine what extensions are being used.
8873 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
8874 This contains writer helper functions formerly defined in the
8875 top-level `Text.Pandoc` module.
8877 + Changed `StringWriter` -> `TextWriter`.
8878 + `getWriter` now returns a pair of a reader and
8879 `Extensions`, instead of building the extensions into the
8880 reader (#3659). The calling code must explicitly set
8881 `readerExtensions` using the `Extensions` returned. The
8882 point of the change is to make it possible for the calling
8883 code to determine what extensions are being used.
8885 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
8886 #3514).
8888 * New module `Text.Pandoc.App`. This abstracts out the functionality
8889 of the command line program (`convertWithOpts`), so it can be reproduced
8890 e.g. in a desktop or web application. Instead of exiting, we throw errors
8891 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
8892 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
8893 The module also exports some utility functions for parsing options
8894 and running filters.
8896 * New module `Text.Pandoc.Logging` (exported module) (#3392).
8897 This now contains the `Verbosity` definition previously in
8898 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
8899 eventually be used instead of raw strings for warnings. This will enable
8900 us, among other things, to provide machine-readable warnings if desired.
8901 Include ToJSON instance and showLogMessage. This gives us the possibility
8902 of both machine-readable and human-readable output for log messages.
8904 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
8906 * New module `Text.Pandoc.Translations`, exporting `Term`,
8907 `Translations`, `readTranslations`.
8909 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
8910 `TokType`, `Line`, `Column`.
8912 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
8914 * Expose some previously private modules (#3260). These are often
8915 helpful to people writing their own reader or writer modules:
8917 + `Text.Pandoc.Writers.Shared`
8918 + `Text.Pandoc.Parsing`
8919 + `Text.Pandoc.Asciify`
8920 + `Text.Pandoc.Emoji`
8921 + `Text.Pandoc.ImageSize`
8922 + `Text.Pandoc.Highlighting`
8924 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
8925 Extension parsing and processing functions were defined in the top-level
8926 `Text.Pandoc` module. These functions are moved to the Extensions
8927 submodule as to enable reuse in other submodules.
8929 * Add `Ext_raw_attribute` constructor for `Extension`.
8931 * Add `Ext_fenced_divs` constructor for `Extension'.
8933 * Add `Ext_four_space_rule` constructor in `Extension`.
8935 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
8937 * Add `Monoid` instance for `Extensions`.
8939 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
8941 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
8943 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
8945 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
8947 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
8949 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
8951 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
8953 * Export `setVerbosity` from `Text.Pandoc`.
8955 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
8957 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
8959 * `Text.Pandoc.UTF8`:
8961 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
8962 Define `toString`, `toStringLazy` in terms of them.
8963 + Add new functions parameterized on `Newline`: `writeFileWith`,
8964 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
8966 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
8968 * `Text.Pandoc.Highlighting`:
8970 + `highlighting` now returns an Either rather than Maybe.
8971 This allows us to display error information returned by the skylighting
8972 library. Display a warning if the highlighting library throws an error.
8973 + Add parameter for `SyntaxMap` to `highlight`.
8975 * `Text.Pandoc.Writers.Math`:
8977 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
8978 we only need to update these in one place.
8980 * `Text.Pandoc.SelfContained`:
8982 + Removed `WriterOptions` parameter from `makeSelfContained`.
8983 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
8984 the need to pass MediaBag around and improves exceptions. It also
8985 opens up the possibility of using makeSelfContained purely.
8986 + Export `makeDataURI`.
8988 * `Text.Pandoc.ImageSize`:
8990 + Export `lengthToDim`, new function `scaleDimension`.
8991 + Export `inEm` from ImageSize (#3450).
8992 + Change `showFl` and `show` instance for `Dimension` so
8993 extra decimal places are omitted.
8994 + Added `Em` as a constructor of `Dimension`.
8995 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
8997 * `Text.Pandoc.Templates`:
8999 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
9000 and raises a proper `PandocTemplateError` if there are problems, rather
9001 than failing with uncatchable `error`.
9002 + Change signature of `getDefaultTemplate`. Now it runs in any instance
9003 of `PandocMonad`, and returns a `String` rather than an `Either` value.
9004 And it no longer takes a `datadir` parameter, since this can be
9005 retrieved from `CommonState`.
9007 * `Text.Pandoc.Options`:
9009 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
9010 The EPUB writer now takes its EPUB subdirectory from this option.
9011 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
9012 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
9013 + Add `writerSyntaxMap` to `WriterOptions`.
9014 + Removed `writerEpubStylesheet` from `WriterOptions`.
9015 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
9016 in `CommonState` in `PandocMonad` instances. (And thus it can be used
9017 by readers too.)
9018 + Changed `writerEpubMetadata` to a `Maybe String`.
9019 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
9020 the `latex_macros` reader extension.
9021 + FromJSON/ToJSON instances for `ReaderOptions`.
9022 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
9023 one string (for the KaTeX base URL), rather than two.
9024 + Removed `writerSourceURL` from `WriterOptions`. We now use
9025 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
9027 * `Text.Pandoc.Shared`:
9029 + `tabFilter` now takes a `Text`, not `String`.
9030 + `openURL`: Changed type from an Either. Now it will just raise
9031 an exception to be trapped later.
9032 + Remove `normalizeSpaces` (#1530).
9033 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
9034 + Export a new function `crFilter`.
9035 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
9036 + Provide custom `isURI` that rejects unknown schemes.
9037 (Albert Krewinkel, #2713). We also export the set of known
9038 `schemes`. The new function replaces the function of the same name
9039 from `Network.URI`, as the latter did not check whether a scheme is
9040 well-known. All official IANA schemes (as of 2017-05-22) are
9041 included in the set of known schemes. The four non-official schemes
9042 `doi`, `isbn`, `javascript`, and `pmid` are kept.
9043 + Remove `err`.
9044 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
9045 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
9046 where they are defined in terms of `PandocMonad`
9047 primitives and have different signatures.
9048 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
9049 + Add `underlineSpan`.
9051 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
9053 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
9054 With the new API one can simply use `getLog` after running
9055 the reader.
9057 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
9058 and `rawLaTeXBlock`. (Both now return a `String`, and they are
9059 polymorphic in state.)
9062### Bug fixes and under-the-hood improvements
9064 * TEI writer: Added identifiers on `<div>` elements.
9066 * DokuWiki reader: Better handling for code block in list item (#3824).
9068 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
9070 * ZimWiki writer: Removed internal formatting from note and table cells,
9071 because ZimWiki does not support it (Alex Ivkin, #3446).
9073 * MediaWiki writer:
9075 + Updated list of syntax highlighting languages (#3461).
9076 Now `r` gets you `<source>` rather than `<code>` (among others).
9077 + Add display attribute on `<math>` tags (#3452). This allows display
9078 math to be rendered properly.
9079 + Remove newline before `</ref>` (#2652).
9080 + Don't softbreak lines inside list items (#3531).
9082 * Org writer:
9084 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
9085 + Add unit tests (Alexander Krotov).
9086 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
9087 + Do not strip `#` from Org anchor links (Alexander Krotov).
9089 * CommonMark writer:
9091 + Avoid excess blank lines at end of output.
9092 + Prefer pipe tables to HTML tables even if it means losing relative
9093 column width information (#3734).
9094 + Support table, strikethrough extensions, when enabled (as with gfm).
9095 Note that we bypass the commonmark writer from cmark and construct our
9096 own pipe tables, with better results.
9097 + Properly support `--wrap=none`.
9098 + Use smallcaps class for `SmallCaps` (#1592).
9099 + Omit "fig:" prefix in image titles. This is used internally to
9100 indicate internal figures.
9102 * RST writer:
9104 + Properly handle table captions.
9105 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
9106 + Implemented `+/-smart` and improved escaping with `+smart`.
9107 + Add empty comments when needed to avoid including a blockquote
9108 in the indented content of a preceding block (#3675).
9109 + Improve grid table output, fix bug with empty rows (#3516).
9110 Uses the new `gridTable` in Writers.Shared, which is here
9111 improved to better handle 0-width cells.
9112 + Remove space at beginning/end of RST code span (#3496). Otherwise
9113 we get invalid RST. There seems to be no way to escape the space.
9114 + Add header anchors when header has non-standard id (#3937).
9115 + Correctly handle inline code containing backticks, using a `:literal:`
9116 role (#3974).
9117 + Don't backslash-escape word-internal punctuation (#3978).
9119 * Markdown writer:
9121 + Don't include variables in metadata blocks. Previously variables set
9122 on the command line were included in e.g. YAML metadata, contrary to
9123 documentation and intentions.
9124 + Improved escaping with `+smart`.
9125 + Fixed grid tables embedded in grid tables (#2834).
9126 + Use span with class 'smallcaps' for SmallCaps, instead of a style
9127 attribute as before (#1592).
9128 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
9129 extension is enabled (#3454). Otherwise in a document starting with
9130 a literal `%` the first line is wrongly interpreted as a title.
9131 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
9132 properly escape things that would otherwise start ordered lists,
9133 such as
9135 ---
9136 title: 1. inline
9137 ...
9138 + Better handling of tables with empty columns (#3337). We now
9139 calculate the number of columns based on the longest row (or the
9140 length of aligns or widths).
9141 + Escape unordered list markers at beginning of paragraph (#3497), to
9142 avoid false interpretation as a list.
9143 + Escape `|` appropriately.
9144 + Ensure space before list at top level (#3487).
9145 + Avoid spurious blanklines at end of document after tables and list,
9146 for example.
9147 + Fixed bugs in simple/multiline list output (#3384).
9148 Previously we got overlong lists with `--wrap=none`. This is fixed.
9149 Previously a multiline list could become a simple list (and would
9150 always become one with `--wrap=none`).
9151 + Don't emit a simple table if `simple_tables` disabled (#3529).
9152 + Case-insensitive reference links (David A Roberts, #3616).
9153 Ensure that we do not generate reference links whose labels differ only
9154 by case. Also allow implicit reference links when the link
9155 text and label are identical up to case.
9156 + Put space before reference link definitions (Mauro Bieg, #3630).
9157 + Better escaping for links (David A. Roberts, #3619). Previously the
9158 Markdown writer would sometimes create links where there were none
9159 in the source. This is now avoided by selectively escaping bracket
9160 characters when they occur in a place where a link might be created.
9161 + Added missing `\n` (David A. Roberts, #3647).
9162 + Fixed duplicated reference links with `--reference-links`
9163 and `--reference-location=section` (#3674). Also ensure that there
9164 are no empty link references `[]`.
9165 + Avoid inline surround-marking with empty content (#3715).
9166 E.g. we don't want `<strong></strong>` to become `****`.
9167 Similarly for emphasis, super/subscript, strikeout.
9168 + Don't allow soft break in header (#3736).
9169 + Make sure `plain`, `markdown_github`, etc. work for raw.
9170 Previously only `markdown` worked. Note: currently a raw block labeled
9171 `markdown_github` will be printed for any `markdown` format.
9172 + Ensure that `+` and `-` are escaped properly so they don't cause
9173 spurious lists (#3773). Previously they were only
9174 if succeeded by a space, not if they were at end of line.
9175 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
9176 even if the table has relative width information (#3734).
9177 + Markdown writer: don't crash on `Str ""`.
9178 + Make `Span` with null attribute transparent. That is, we don't use
9179 brackets or `<span>` tags to mark spans when there are no attributes;
9180 we simply output the contents.
9181 + Escape pipe characters when `pipe_tables` enabled (#3887).
9182 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
9183 we backslash escape these. Otherwise we use entities as before.
9184 + When writing plain, don't use `&nbsp;` to separate list and indented
9185 code. There's no need for it in this context, since this isn't to be
9186 interpreted using Markdown rules.
9187 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
9188 HTML links containing classes originally now preserve them when using
9189 javascript email obfuscation.
9190 + Render `SmallCaps` as a native span when `native_spans` are enabled.
9191 + Always write attributes with `bracketed_spans` (d-dorazio).
9193 * Man writer:
9195 + Fix handling of nested font commands (#3568). Previously pandoc emitted
9196 incorrect markup for bold + italic, for example, or bold + code.
9197 + Avoid error for definition lists with no definitions (#3832).
9199 * DocBook writer:
9201 + Fix internal links with `writerIdentifierPrefix opt`
9202 (#3397, Mauro Bieg).
9204 * Docx writer:
9206 + Don't include bookmarks on headers unless non-null id (#3476).
9207 + Support 9 levels of headers (#1642).
9208 + Allow 9 list levels (#3519).
9209 + Don't take `distArchive` from datadir (#3322). The docx writer takes
9210 components from the distribution's version of `reference.docx` when it
9211 can't find them in a user's custom `reference.docx`. Previously, we
9212 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
9213 to be used as the distribution's reference.docx. This led to a
9214 bizarre situation where pandoc would produce a good docx using
9215 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
9216 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
9217 + Fixed handling of soft hyphen (0173) (#3691).
9218 + Better handling of keywords (#3719).
9219 + Cleaner code for handling dir and style attributes for `Div`.
9220 + Use `Set` for dynamic styles to avoid duplicates.
9221 + Removed redundant element from data/docx/word/numbering.xml.
9222 The elements we need are generated when the document is
9223 compiled; this didn't do anything.
9224 + Activate `evenAndOddHeaders` from reference docx (#3901,
9225 Augustín Martín Barbero).
9227 * ODT/OpenDocument writer:
9229 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
9230 + Use more widely available bullet characters (#1400). The old
9231 characters weren't available in some font sets. These seem to work
9232 well on Windows and Linux versions of LibreOffice.
9233 + Wider labels for lists (#2421). This avoids overly narrow labels for
9234 ordered lists with `()` delimiters. However, arguably it creates
9235 overly wide labels for bullets. Also, lists now start flush with
9236 the margin, rather than indented.
9237 + Fixed dropped elements in some ordered lists (#2434).
9239 * FB2 writer:
9241 + Don't render `RawBlock` as code.
9242 + Don't fail with an error on interior headers (e.g. in list) (#3750).
9243 Instead, omit them with an INFO message.
9244 + Add support for "lang" metadata (Alexander Krotov, #3625).
9245 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
9246 produced one paragraph with `<empty-line/>` elements, which are not
9247 allowed inside `<p>` according to FB2 schema.
9248 + Replace `concatMap` with `cMap` (Alexander Krotov).
9249 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
9250 Krotov, #4004)
9252 * HTML writer:
9254 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
9255 + Render raw inline environments when `--mathjax` used (#3816).
9256 We previously did this only with raw blocks, on the assumption
9257 that math environments would always be raw blocks. This has changed
9258 since we now parse them as inline environments.
9259 + Ensure we don't get two style attributes for width and height.
9260 + Report when not rendering raw inline/block.
9261 + Issue warning if no title specified and template used (#3473).
9262 + Info message if `lang` is unspecified (#3486).
9263 + Removed unused parameter in `dimensionsToAttributeList`.
9264 + Avoid two class attributes when adding `uri` class (#3716).
9265 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
9266 Bieg).
9267 + Use revealjs's math plugin for mathjax (#3743). This is a thin
9268 wrapper around mathjax that makes math look better on revealjs.
9269 + Slidy: use h1 for all slides, even if they were originally
9270 level 2 headers (#3566). Otherwise the built-in table of contents
9271 in Slidy breaks.
9273 * LaTeX writer:
9275 + Don't render LaTeX images with data: URIs (#3636). Note that
9276 `--extract-media` can be used when the input contains data: URIs.
9277 + Make highlighted code blocks work in footnotes (Timm Albers).
9278 + Don't use figure inside table cell (#3836).
9279 + Use proper code for list enumerators (#3891). This should fix problems
9280 with lists that don't use arabic numerals.
9281 + Always add hypertarget when there's a non-empty identifier (#2719).
9282 Previously the hypertargets were only added when there was actually
9283 a link to that identifier.
9284 + Use `%` after hypertarget before code block.
9285 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
9286 fixes formatting problems in beamer citations).
9287 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
9288 of item disappear or are misplaced. Use `\texttt` instead.
9289 + Fix problem with escaping in `lstinline` (#1629). Previously the
9290 LaTeX writer created invalid LaTeX when `--listings` was specified and
9291 a code span occurred inside emphasis or another construction.
9292 + Fix error with line breaks after empty content (#2874). LaTeX
9293 requires something before a line break, so we insert a `~` if no
9294 printable content has yet been emitted.
9295 + Use BCP47 parser.
9296 + Fixed detection of otherlangs (#3770). We weren't recursing into
9297 inline contexts.
9298 + Handle language in inline code with `--listings` (#3422).
9299 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
9300 The textcomp package allows pdfLaTeX to parse `€` directly, making the
9301 `\euro` command unneeded.
9302 + Fixed footnotes in table captions (#2378). Note that if the table has
9303 a first page header and a continuation page header, the notes will
9304 appear only on the first occurrence of the header.
9305 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
9306 Previously you could link to a header above or below slide level but
9307 not *to* slide level. This commit changes that. Hypertargets are
9308 inserted inside frame titles; technically the reference is to just
9309 after the title, but in normal use (where slides are viewed full
9310 screen in a slide show), this does not matter.
9311 + Remove `\strut` at beginning of table cells (#3436). This fixes a
9312 problem with alignment of lists in table cells. The `\strut` at the
9313 end seems to be enough to avoid the too-close spacing that motivated
9314 addition of the strut in #1573.
9315 + Add partial siunitx Support (Marc Schreiber, #3588).
9317 * ConTeXt writer:
9319 + Refactored to use BCP47 module.
9320 + Remove unnecessary `$` (Alexander Krotov, #3482).
9321 + Use header identifiers for chapters (#3968).
9323 * EPUB writer:
9325 + `title_page.xhtml` is now put in `text/`.
9326 + Don't strip formatting in TOC (#1611).
9328 * Textile reader:
9330 + Fix bug for certain links in table cells (#3667).
9331 + Allow 'pre' code in list item (#3916).
9333 * HTML reader:
9335 + Added warnings for ignored material (#3392).
9336 + Better sanity checks to avoid parsing unintended things as
9337 raw HTML in the Markdown reader (#3257).
9338 + Revise treatment of `li` with `id` attribute (#3596). Previously we
9339 always added an empty div before the list item, but this created
9340 problems with spacing in tight lists. Now we do this: If the list
9341 item contents begin with a `Plain` block, we modify the `Plain`
9342 block by adding a `Span` around its contents. Otherwise, we add a
9343 `Div` around the contents of the list item (instead of adding an
9344 empty `Div` to the beginning, as before).
9345 + Add `details` tag to list of block tags (#3694).
9346 + Removed `button` from block tag list (#3717). It is already in the
9347 `eitherBlockOrInlineTag` list, and should be both places.
9348 + Use `Set`s instead of lists for block tag lookup.
9349 + Rewrote to use `Text` throughout. Effect on memory usage is modest
9350 (< 10%).
9351 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
9352 #3765).
9353 + Ensure that paragraphs are closed properly when the parent block
9354 element closes, even without `</p>` (#3794).
9355 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
9356 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
9357 `<main>` closes `<p>` and behaves like a block element generally
9358 + Support column alignments (#1881). These can be set either
9359 with a `width` attribute or with `text-width` in a `style` attribute.
9360 + Modified state type to be an instance of `HasLogMessages`, so
9361 `registerHeader` can issue warnings.
9362 + `</td>` or `</th>` should close any open block tag (#3991).
9363 + `<td>` should close an open `<th>` or `<td>`.
9364 + `htmlTag` improvements (#3989). We previously failed on cases
9365 where an attribute contained a `>` character. This patch fixes the
9366 bug, which especially affects raw HTML in Markdown.
9368 * Txt2Tags reader:
9370 + Newline is not indentation (Alexander Krotov).
9372 * MediaWiki reader:
9374 + Allow extra hyphens after `|-` in tables (#2649).
9375 + Allow blank line after table start (#2649).
9376 + Fixed more table issues (#2649).
9377 + Ensure that list starts begin at left margin (#2606). Including when
9378 they're in tables or other list items.
9379 + Make smart double quotes depend on `smart` extension (#3585).
9380 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
9381 + Modified state type to be an instance of `HasLogMessages`, so
9382 `registerHeader` can issue warnings.
9384 * TWiki reader (Alexander Krotov):
9386 + Remove unnecessary `$` (#3597).
9387 + Simplify `linkText` (#3605).
9389 * EPUB reader:
9391 + Minor refactoring, avoiding explicit MediaBag handling.
9392 This all works behind the scenes in CommonState plumbing.
9394 * Docx reader:
9396 + Don't drop smartTag contents (#2242).
9397 + Handle local namespace declarations (#3365). Previously we didn't
9398 recognize math, for example, when the xmlns declaration occurred on
9399 the element and not the root.
9400 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
9401 does the work of `normalizeSpaces` as well, so we avoid the need for
9402 that function here.
9403 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
9404 paragraphs styled with "HeadingN" as "nth-level header." But if a
9405 document has a custom style named "Heading0", this will produce a
9406 0-level header, which shouldn't exist. We only parse this style
9407 if N>0. Otherwise we treat it as a normal style name, and
9408 follow its dependencies, if any.
9409 + Add tests for avoiding zero-level header (Jesse Rosenthal).
9411 * ODT reader:
9413 + Replaced `collectRights` with Rights from `Data.Either`.
9414 + Remove dead code (Albert Krewinkel).
9416 * Org reader (Albert Krewinkel, unless noted).
9418 + Don't allow tables inside list items (John MacFarlane, #3499).
9419 + Disallow tables on list marker lines (#3499).
9420 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
9421 + Allow emphasized text to be followed by `[` (#3577).
9422 + Handle line numbering switch for src blocks.
9423 The line-numbering switch that can be given to source blocks (`-n` with
9424 an start number as an optional parameter) is parsed and translated to a
9425 class/key-value combination used by highlighting and other readers and
9426 writers.
9427 + Stop adding rundoc prefix to src params. Source block parameter names
9428 are no longer prefixed with `rundoc`. This was intended to simplify
9429 working with the rundoc project, a babel runner. However, the rundoc
9430 project is unmaintained, and adding those markers is not the reader's
9431 job anyway. The original language that is specified for a source
9432 element is now retained as the `data-org-language` attribute and only
9433 added if it differs from the translated language.
9434 + Allow multi-word arguments to src block params (#3477). The reader now
9435 correctly parses src block parameter list even if parameter arguments
9436 contain multiple words.
9437 + Avoid creating `nullMeta` by applying `setMeta` directly
9438 (Alexander Krotov).
9439 + Replace `sequence . map` with `mapM`.
9440 + Fix smart parsing behavior. Parsing of smart quotes and special
9441 characters can either be enabled via the `smart` language extension or
9442 the `'` and `-` export options. Smart parsing is active if either the
9443 extension or export option is enabled. Only smart parsing of special
9444 characters (like ellipses and en and em dashes) is enabled by default,
9445 while smart quotes are disabled. Previously, all smart parsing was
9446 disabled unless the language extension was enabled.
9447 + Subject full doc tree to headline transformations (Albert Krewinkel,
9448 #3695). Emacs parses org documents into a tree structure, which is
9449 then post-processed during exporting. The reader is changed to do the
9450 same, turning the document into a single tree of headlines starting
9451 at level 0.
9452 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
9453 cite keys included special characters also at the end. This caused
9454 problems when citations occur right before colons or at the end of
9455 a sentence. With this change, all non alphanumeric characters at
9456 the end of a cite key are ignored. This also adds `,` to the list
9457 of special characters that are legal in cite keys to better mirror
9458 the behaviour of org-export.
9459 + Fix module names in haddock comments. Copy-pasting had lead to
9460 haddock module descriptions containing the wrong module names.
9461 + Recognize babel result blocks with attributes (#3706). Babel
9462 result blocks can have block attributes like captions and names.
9463 Result blocks with attributes were not recognized and were parsed
9464 as normal blocks without attributes.
9465 + Include tags in headlines. The Emacs default is to include tags in the
9466 headline when exporting. Instead of just empty spans, which contain the
9467 tag name as attribute, tags are rendered as small caps and wrapped in
9468 those spans. Non-breaking spaces serve as separators for multiple tags.
9469 + Respect export option for tags (#3713). Tags are appended to
9470 headlines by default, but will be omitted when the `tags` export option
9471 is set to nil.
9472 + Use `tag-name` attribute instead of `data-tag-name`.
9473 + Use `org-language` attribute rather than `data-org-language`.
9474 + Modified state type to be an instance of `HasLogMessages`, so
9475 `registerHeader` can issue warnings.
9476 + End footnotes after two blank lines. Footnotes can not only be
9477 terminated by the start of a new footnote or a header, but also by two
9478 consecutive blank lines.
9479 + Update emphasis border chars (#3933). The org reader was updated to
9480 match current org-mode behavior: the set of characters which are
9481 acceptable to occur as the first or last character in an org emphasis
9482 have been changed and now allows all non-whitespace chars at the
9483 inner border of emphasized text (see `org-emphasis-regexp-components`).
9485 * RST reader:
9487 + Fixed small bug in list parsing (#3432). Previously the parser didn't
9488 handle properly this case:
9490 * - a
9491 - b
9492 * - c
9493 - d
9494 + Handle multiline cells in simple tables (#1166).
9495 + Parse list table directive (Keiichiro Shikano, #3432).
9496 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
9497 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
9498 + Reorganize block parsers for ~20% faster parsing.
9499 + Fixed `..include::` directive (#3880).
9500 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
9501 Previously pandoc would sometimes combine two line blocks separated
9502 by blanks, and ignore trailing blank lines within the line block.
9503 + Fix indirect hyperlink targets (#512).
9505 * Markdown reader:
9507 + Allow attributes in reference links to start on next line (#3674).
9508 + Parse YAML metadata in a context that sees footnotes defined in
9509 the body of the document (#1279).
9510 + When splitting pipe table cells, skip tex math (#3481).
9511 You might have a `|` character inside math. (Or for that matter
9512 something that the parser might mistake for raw HTML.)
9513 + Treat span with class `smallcaps` as SmallCaps.
9514 This allows users to specify small caps in Markdown this way:
9515 `[my text]{.smallcaps}` (#1592).
9516 + Fixed internal header links (#2397).
9517 This patch also adds `shortcut_reference_links` to the list
9518 of mmd extensions.
9519 + Treat certain environments as inline
9520 when they occur without space surrounding them (#3309, #2171).
9521 E.g. equation, math. This avoids incorrect vertical space
9522 around equations.
9523 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
9524 + Allow latex macro definitions indented 1-3 spaces.
9525 Previously they only worked if nonindented.
9526 + Improved parsing of indented raw HTML blocks (#1841).
9527 Previously we inadvertently interpreted indented HTML as
9528 code blocks. This was a regression. We now seek to determine the
9529 indentation level of the contents of an HTML block, and (optionally)
9530 skip that much indentation. As a side effect, indentation may be
9531 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
9532 used. This is better than having things interpreted as indented
9533 code blocks.
9534 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
9535 + Warn for notes defined but not used (#1718).
9536 + Use `anyLineNewline` (Alexander Krotov).
9537 + Interpret YAML metadata as Inlines when possible (#3755). If
9538 the metadata field is all on one line, we try to interpret it as
9539 Inlines, and only try parsing as Blocks if that fails. If it
9540 extends over one line (including possibly the `|` or `>` character
9541 signaling an indented block), then we parse as Blocks. This was
9542 motivated by some German users finding that `date: '22. Juin 2017'`
9543 got parsed as an ordered list.
9544 + Fixed spurious parsing as citation as reference def (#3840).
9545 We now disallow reference keys starting with `@` if the
9546 `citations` extension is enabled.
9547 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
9548 Previously only `[-@roe]` (with brackets) was recognized as
9549 suppress-author, and `-@roe` was treated the same as `@roe`.
9550 + Fixed parsing of fenced code after list when there is no intervening
9551 blank line (#3733).
9552 + Allow raw latex commands starting with `\start` (#3558). Previously
9553 these weren't allowed because they were interpreted as starting
9554 ConTeXt environments, even without a corresponding `\stop`...
9555 + Added `inlines`, `inlines1`.
9556 + Require nonempty alt text for `implicit_figures` (#2844).
9557 A figure with an empty caption doesn't make sense.
9558 + Removed texmath macro material; now all this is handled
9559 in the LaTeX reader functions.
9560 + Fixed bug with indented code following raw LaTeX (#3947).
9562 * LaTeX reader:
9564 + Rewrote LaTeX reader with proper tokenization (#1390,
9565 #2118, #3236, #3779, #934, #982). This rewrite is primarily
9566 motivated by the need to get macros working properly. A side benefit
9567 is that the reader is significantly faster. We now tokenize the
9568 input text, then parse the token stream. Macros modify the token
9569 stream, so they should now be effective in any context, including
9570 math. Thus, we no longer need the clunky macro processing
9571 capacities of texmath.
9572 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
9573 + Allow `\newcommand\foo{blah}` without braces.
9574 + Support `\lstinputlisting` (#2116).
9575 + Issue warnings when skipping unknown latex commands (#3392).
9576 + Include contents of `\parbox`.
9577 + Allow `\hspace` and `\vspace` to count as raw block or inline.
9578 Previously we would refuse to parse anything as raw inline if
9579 it was in the `blockCommands` list. Now we allow exceptions
9580 if they're listed under ignoreInlines in inlineCommands.
9581 This should make it easier e.g. to include an `\hspace`
9582 between two side-by-side raw LaTeX tables.
9583 + Don't drop contents of `\hypertarget`.
9584 + Handle spaces before `\cite` arguments.
9585 + Allow newpage, clearpage, pagebreak in inline contexts as well as
9586 block contexts (#3494).
9587 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
9588 + Use `pMacroDefinition` in macro (for more direct parsing).
9589 Note that this means that `macro` will now parse one
9590 macro at a time, rather than parsing a whole group together.
9591 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
9592 commands are parsed as raw if `+raw_tex`; otherwise, their argument
9593 is parsed as a bracketed string.
9594 + Don't crash on empty `enumerate` environment (#3707).
9595 + Handle escaped `&` inside table cell (#3708).
9596 + Handle block structure inside table cells (#3709). `minipage` is no
9597 longer required.
9598 + Handle some width specifiers on table columns (#3709). Currently
9599 we only handle the form `0.9\linewidth`. Anything else would have
9600 to be converted to a percentage, using some kind arbitrary assumptions
9601 about line widths.
9602 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
9603 LaTeX reader's treatment of raw commands, but it also affects the
9604 Markdown reader.
9605 + Fixed regression with starred environment names (#3803).
9606 + Handle optional args in raw `\titleformat` (#3804).
9607 + Improved heuristic for raw block/inline. An unknown command at the
9608 beginning of the line that could be either block or inline is
9609 treated as block if we have a sequence of block commands followed by
9610 a newline or a `\startXXX` command (which might start a raw ConTeXt
9611 environment).
9612 + Don't remove macro definitions from the output, even if
9613 `Ext_latex_macros` is set, so that macros will be applied.
9614 Since they're only applied to math in Markdown, removing the macros
9615 can have bad effects. Even for math macros, keeping them should be
9616 harmless.
9617 + Removed `macro`. It is no longer necessary, since the
9618 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
9619 the need for a separate `latexMacro` parser in the Markdown reader.
9620 + Use `label` instead of `data-label` for label in caption (#3639).
9621 + Fixed space after `\figurename` etc.
9622 + Resolve references to section numbers.
9623 + Fix `\let\a=0` case, with single character token.
9624 + Allow `@` as a letter in control sequences. `@` is commonly used
9625 in macros using `\makeatletter`. Ideally we'd make the tokenizer
9626 sensitive to `\makeatletter` and `\makeatother`, but until then this
9627 seems a good change.
9628 + Track header numbers and correlate with labels.
9629 + Allow `]` inside group in option brackets (#3857).
9630 + lstinline with braces can be used (verb cannot be used with braces)
9631 (Marc Schreiber, #3535).
9632 + Fix keyval function: pandoc did not parse options in braces correctly
9633 (Marc Schreiber, #3642).
9634 + When parsing raw LaTeX commands, include trailing space (#1773).
9635 Otherwise things like `\noindent foo` break and turn into
9636 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
9637 formats that allow `raw_tex`).
9638 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
9639 `\texttt` contexts.
9640 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
9641 + Allow space before `=` in bracketd options (Ben Firshman).
9642 + Be more forgiving in parsing command options. This was needed, for
9643 example, to make some minted options work.
9644 + Strip off quotes in `\include` filenames.
9646 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
9648 * `Text.Pandoc.PDF`:
9650 + Got `--resource-path` working with PDF output (#852).
9651 + Fetch images when generating PDF via context (#3380).
9652 To do this, we create the temp directory as a subdirectory
9653 of the working directory. Since context mk IV by default looks
9654 for images in the parent directory, this works.
9655 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
9656 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
9657 This reduces code duplication.
9658 + `html2pdf`: use stdin instead of intermediate HTML file
9659 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
9660 doesn't use `TEXINPUTS`.
9662 * `Text.Pandoc.Pretty`:
9664 + Simplified definition of `realLength`.
9665 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
9667 * `Text.Pandoc.MIME`:
9669 + Use `application/javascript` (not `application/x-javascript`).
9670 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
9672 * `Text.Pandoc.ImageSize`:
9674 + Improve SVG image size code (Marc Schreiber, #3580).
9675 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
9677 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
9678 and reduction of memory usage in most of the writers.
9680 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
9682 * `Text.Pandoc.SelfContained`:
9684 + Fixed problem with embedded fonts (#3629).
9685 + Refactored getData from `getDataURI` in `SelfContained`.
9686 + Don't use data URIs for script or style (#3423). Instead, just use
9687 script or style tags with the content inside. The old method with
9688 data URIs prevents certain optimizations outside pandoc. Exception:
9689 data URIs are still used when a script contains `</script>` or a
9690 style contains `</`.
9691 + SelfContained: Handle URL inside material retrieved from a URL
9692 (#3629). This can happen e.g. with an @import of a google web font.
9693 (What is imported is some CSS which contains an url reference
9694 to the font itself.) Also, allow unescaped pipe (|) in URL.
9695 + Load resources from `data-src` (needed for lazy loading in
9696 reveal.js slide shows).
9697 + Handle `data-background-image` attribute on section (#3979).
9699 * `Text.Pandoc.Parsing`:
9701 + Added `indentWith` (Alexander Krotov, #3687).
9702 + Added `stateCitations` to `ParserState`.
9703 + Removed `stateChapters` from `ParserState`.
9704 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
9705 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
9706 + Adjusted type of `insertIncludedFile` so it can be used with token
9707 parser.
9708 + Replace old texmath macro stuff from Parsing. Use Macro from
9709 Text.Pandoc.Readers.LaTeX.Types instead.
9710 + Export `insertIncludedFile`.
9711 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
9712 + Replace partial with total function (Albert Krewinkel).
9713 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
9714 `insertIncludeFile` function is generalized to work with all parser
9715 states which are instances of that class.
9716 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
9717 The `insertIncludeFiles` function was generalized and renamed
9718 to `insertIncludedFiles'`; the specialized versions are based on that.
9719 + `many1Till`: Check for the end condition before parsing (Herwig
9720 Stuetz). By not checking for the end condition before the first
9721 parse, the parser was applied too often, consuming too much of the
9722 input. This only affects `many1Till p end` where `p` matches on a
9723 prefix of `end`.
9724 + Provide `parseFromString` (#3690). This is a version of
9725 `parseFromString` specialied to ParserState, which resets
9726 `stateLastStrPos` at the end. This is almost always what we want.
9727 This fixes a bug where `_hi_` wasn't treated as emphasis in the
9728 following, because pandoc got confused about the position of the
9729 last word: `- [o] _hi_`.
9730 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
9731 + Fix `blanklines` documentation (Alexander Krotov, #3843).
9732 + Give less misleading line information with `parseWithString`.
9733 Previously positions would be reported past the end of the chunk.
9734 We now reset the source position within the chunk and report
9735 positions "in chunk."
9736 + Add `anyLineNewline` (Alexander Krotov).
9737 + Provide shared F monad functions for Markdown and Org readers
9738 (Albert Krewinkel). The `F` monads used for delayed evaluation
9739 of certain values in the Markdown and Org readers are based on a
9740 shared data type capturing the common pattern of both `F` types.
9741 + Add `returnF` (Alexander Krotov).
9742 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
9743 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
9744 + Added `readerAbbreviations` to `ParserState`. Markdown reader
9745 now consults this to determine what is an abbreviation.
9746 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
9747 parsers for markdown and rst was combined into one single
9748 parser `gridTable`, slightly changing parsing behavior of both
9749 parsers: (1) The markdown parser now compactifies block content
9750 cell-wise: pure text blocks in cells are now treated as paragraphs
9751 only if the cell contains multiple paragraphs, and as plain blocks
9752 otherwise. Before, this was true only for single-column tables. (2)
9753 The rst parser now accepts newlines and multiple blocks in header
9754 cells.
9755 + Generalize tableWith, gridTableWith (Albert Krewinkel).
9756 The parsing functions `tableWith` and `gridTableWith` are generalized
9757 to work with more parsers. The parser state only has to be an
9758 instance of the `HasOptions` class instead of requiring a concrete
9759 type. Block parsers are required to return blocks wrapped into a
9760 monad, as this makes it possible to use parsers returning results
9761 wrapped in `Future`s.
9763 * `Text.Pandoc.Shared`:
9765 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
9766 + `stringify`: handle Quoted better (#3958). Previously we were losing
9767 the quotation marks in Quoted elements.
9769 * `Text.Pandoc.Writers.Shared`:
9771 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
9772 This allows us to add the variables AFTER using the metadata
9773 to generate a YAML header (in the Markdown writer).
9774 + Added `unsmartify` (previously in RST writer).
9775 Undo literal double curly quotes. Previously we left these.
9776 + Generalize type of `metaToJSON` so it can take a Text. Previously a
9777 String was needed as argument; now any ToJSON instance will do.
9778 + Added `gridTable` (previously in Markdown writer).
9779 + `gridTable`: Refactored to use widths in chars.
9780 + `gridTable`: remove unnecessary extra space in cells.
9781 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
9782 values to become lists.
9783 + Pipe tables: impose minimum cell size (see #3526).
9786### Default template changes
9788 * HTML templates (including EPUB and HTML slide show templates):
9790 + Make default.html5 polyglot markup conformant (John Luke Bentley,
9791 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
9792 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
9793 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
9794 + Regularized CSS in html/epub/html slide templates (#3485).
9795 All templates now include `code{white-space: pre-wrap}`
9796 and CSS for `q` if `--html-q-tags` is used. Previously some templates
9797 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
9798 included.
9799 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
9800 + `default.revealjs`: make `history` default to true.
9801 + `default.revealjs`: use lazy loading (#2283).
9802 + `default.revealjs`: add `mathjax` variable and some conditional code
9803 to use the MathJaX plugin.
9804 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
9805 + `default.dzslides`: Load Google Font using HTTPS by default
9806 (Yoan Blanc).
9808 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
9809 #3855).
9811 * LaTeX/Beamer template:
9813 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
9814 `default.beamer` has been removed; beamer now uses the
9815 `default.latex` template. Beamer-specific parts are conditional
9816 on the `beamer` variable set by the writer. Note that
9817 `pandoc -D beamer` will return this (combined) template.
9818 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
9819 Beamer loads `xcolor` rather than `color`, and thus the
9820 `dvipsnames` option doesn't take effect. This also provides a wider
9821 range of colour selections with the `svgnames` option.
9822 + Use starred versions of `xcolor` names (Andrew Dunning).
9823 Prevents changes to documents defined using the `dvipsnames` list (e.g.
9824 `Blue` gives a different result with svgnames enabled).
9825 + Load `polyglossia` after header-includes (#3898). It needs to be
9826 loaded as late as possible.
9827 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
9828 XeLaTeX on request.
9829 + Don't load `fontspec` before `unicode-math` (over there).
9830 The `unicode-math` package loads `fontspec` so explicit loading of
9831 `fontspec` before `unicode-math` is not necessary.
9832 + Use `unicode-math` by default in default.latex template. mathspec will
9833 be used in xelatex if the `mathspec` variable is set; otherwise
9834 unicode-math will be used (Václav Haisman).
9835 + Use `dvipsnames` options when `colorlinks` specified (otherwise
9836 we get an error for `maroon`) (Thomas Hodgson).
9837 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
9838 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
9839 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
9840 clash when loading a package (e.g. `tufte-latex`) that uses
9841 `hyperref` settings different from those in the template.
9842 + Add `natbiboptions` variable (#3768).
9843 + Fix links inside captions in LaTeX output with links-as-notes
9844 (Václav Haisman, #3651). Declare our redefined `\href` robust.
9845 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
9846 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
9847 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
9848 packages. Use existing `CJKmainfont` and `CJKoptions` template
9849 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
9850 and `luatexjapresetoptions` for `luatexja-preset`.
9851 + Added `aspectratio` variable to beamer template (Václav Haisman,
9852 #3723).
9853 + Modified template.latex to fix XeLaTex being used with tables
9854 (lwolfsonkin, #3661). Reordered `lang` variable handling to
9855 immediately before `bidi`.
9857 * ConTeXt template: Improved font handling: `simplefonts` is now
9858 obsolete in ConTeXt (Pablo Rodríguez).
9861### Documentation improvements
9863 * MANUAL.txt:
9865 + Add URL for Prince HTML > PDF engine (Ian, #3919).
9866 + Document that content above slide-level will be omitted in
9867 slide shows. See #3460, #2265.
9868 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
9869 + Small clarification in YAML metadata section.
9870 + Document that html4 is technically XHTML 1.0 transitional.
9871 + Remove refs to highlighting-kate (#3672).
9872 + Document ibooks specific epub metadata.
9873 + Clarify that mathml is used for ODT math.
9874 + Mention limitations of Literate Haskell Support (#3410,
9875 Joachim Breitner).
9876 + Add documentation of limitations of grid tables (Stephen
9877 McDowell, #3864).
9878 + Clarify that meta-json contains transformed values (Jakob Voß,
9879 #3491) Make clear that template variable `meta-json` does not
9880 contain plain text values or JSON output format but field values
9881 transformed to the selected output format.
9883 * COPYRIGHT:
9885 + Clarify that templates are dual-licensed.
9886 + Clarify that pandoc-types is BSD3 licensed.
9887 + List new files not written by jgm (Albert Krewinkel).
9888 + Update dates in copyright notices (Albert Krewinkel). This follows
9889 the suggestions given by the FSF for GPL licensed software.
9890 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
9892 * INSTALL.md:
9894 + Improved instructions for tests with patterns.
9895 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
9897 * CONTRIBUTING.md:
9899 + Fixed typos (Wandmalfarbe, #3479).
9900 + Add "ask on pandoc-discuss" (Mauro Bieg).
9902 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
9903 end of this document is autogenerated from `data/pandoc.lua`
9904 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
9905 (Albert Krewinkel).
9907 * Add `doc/filters.md`. This is the old scripting tutorial from
9908 the website.
9910 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
9911 to using pandoc as a Haskell library.
9914### Build infrastructure improvements
9916 * Removed `data/templates` submodule. Templates are now a subtree
9917 in `data/templates`. This removes the need to do `git submodule
9918 update`.
9920 * Renamed `tests` -> `test`.
9922 * Remove `https` flag. Always build with HTTPS support.
9924 * Use `file-embed` instead of `hsb2hs` to embed data files when
9925 `embed_data_files` flag is set. `file-embed` gives us better dependency
9926 tracking: if a data file changes, ghc/stack/cabal know to recompile
9927 the Data module. This also removes `hsb2hs` as a build dependency.
9929 * Add `custom-setup` stanza to pandoc, lowercase field names.
9931 * Add `static` Cabal flag.
9933 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
9934 than -OSX. Changed local names from osx to macos.
9936 * make_macos_package.sh - Use strip to reduce executable size.
9938 * Revised binary linux package. Now a completely static executable
9939 is created, using Docker and alpine. We create both a deb and a
9940 tarball. The old `deb` directory has been replaced with a `linux`
9941 directory. Running `make` in the `linux` directory should
9942 perform the build, putting the binary packages in `artifacts/`.
9944 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
9945 pandoc-data packages will be uninstalled; this package provides
9946 both (#3822). Add latex packages as 'suggested', update
9947 description.
9949 * Remove cpphs build requirement -- it is no longer needed.
9951 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
9953 * Name change OSX -> macOS (ickc, #3869).
9955 * Fix casing of Linux, UNIX, and Windows (ickc).
9957 * `.travis.yml`: create a source dist and do cabal build and test there.
9958 That way we catch errors due to files missing from the data
9959 section of pandoc.cabal.
9961 * Makefile:
9963 + Split `make haddock` from `make full`.
9964 + Add BRANCH variable for winpkg.
9965 + Add `lint` target.
9966 + Improve `make full`. Disable optimizations.
9967 Build everything, inc. trypandoc and benchmarks. Use parallel build.
9968 + Allow `make test` to take `TESTARGS`.
9970 * Added new command tests (`Tests.Command`), using small text files
9971 in `test/command/`. Any files added in this directory will be treated
9972 as shell tests (see smart.md for an example). This makes it very easy
9973 to add regression tests etc.
9975 * Test fixes so we can find data files. In old tests & command tests,
9976 we now set the environment variable `pandoc_datadir`. In lua tests,
9977 we set the datadir explicitly.
9979 * Refactored `compareOutput` in docx writer test.
9981 * Consolidated some common functions in `Tests.Helper`.
9983 * Small change to unbalanced bracket test to speed up test suite.
9985 * Speed up Native writer quickcheck tests.
9987 * Use tasty for tests rather than test-framework.
9989 * Add simple Emacs mode to help with Pandoc templates editing.
9990 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
9993## pandoc 1.19.2.4 (2017-09-10)
9995 * Add dependencies on texmath and skylighting to the executable.
9996 This is needed for dependency version numbers to be available,
9997 with Cabal > 2.
9999## pandoc 1.19.2.3 (2017-09-09)
10001 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
10003## pandoc 1.19.2.2 (2017-09-08)
10005 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
10006 compile with Cabal 2.x, so we require an earlier version via
10007 setup-depends. The following packages need newer versions with
10008 GHC 8.2.1 and had their constraints relaxed accordingly:
10009 executable-path, process, syb, and time.
10011## pandoc 1.19.2.1 (2017-01-31)
10013 * Require skylighting >= 0.1.1.4.
10014 * Adjust test output for skylighting version.
10015 * Relax upper bounds on blaze-html and blaze-markup.
10017## pandoc 1.19.2 (2017-01-29)
10019 * Use skylighting library instead of highlighting-kate for syntax
10020 highlighting. Skylighting is faster and more accurate (#3363).
10021 Later we'll be able to add features like warning messages, dynamic
10022 loading of xml syntax definitions, and dynamic loading of themes.
10024 * Added a new highlight style, `breezeDark`.
10026 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
10027 This allows more languages to be used when using the `--listings`
10028 option.
10030 * OpenDocument writer:
10032 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
10033 + Don't profilerate text styles unnecessarily (#3371).
10034 This change makes the writer create only as many temporary
10035 text styles as are absolutely necessary. It also consolidates
10036 adjacent nodes with the same style.
10038 * Org reader (Albert Krewinkel):
10040 + Allow short hand for single-line raw blocks (Albert Krewinkel,
10041 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
10042 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
10043 + Accept org-ref citations followed by commas (Albert Krewinkel).
10044 Bugfix for an issue which, whenever the citation was immediately
10045 followed by a comma, prevented correct parsing of org-ref citations.
10046 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
10047 `/*strong and emphasized*/`) was interpreted incorrectly in that the
10048 inner markup was not recognized.
10049 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
10051 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
10052 In the past, the docx reader wrote an empty header as an empty list. It
10053 should have the same width as a row (and be filled with empty cells).
10055 * MediaWiki reader:
10057 + Improved handling of display math (#3362). Sometimes display math is
10058 indented with more than one colon. Previously we handled these cases
10059 badly, generating definition lists and missing the math.
10060 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
10061 behavior when the smart option is parsed to match other readers'
10062 behavior.
10064 * Markdown reader:
10066 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
10067 (#3341). Previously this did not properly enable escaped line breaks.
10068 + Disallow space between inline code and attributes (#3326, #3323,
10069 Mauro Bieg).
10071 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
10073 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
10075 * LaTeX writer: allow tables with empty cells to count as "plain."
10076 This addresses a problem of too-wide tables when empty cells
10077 are used. Thanks to Joost Kremers for reporting the issue.
10079 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
10080 Unprefixed numbers where used by older org-mode versions, but are no
10081 longer supported.
10083 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
10084 Mauro Bieg).
10086 * Markdown writer: Fix display math with `--webtex` (#3298).
10088 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
10089 bumper314).
10091 * Templates:
10093 + default.latex: Moved geometry after hyperref (Václav Haisman).
10094 Otherwise PDF sizes can be wrong in some circumstances.
10095 + Copied a few changes from default.latex to default.beamer
10096 (Wandmalfarbe).
10097 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
10098 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
10099 that contain verbatim in notes (#3361). (Note: the beamer template
10100 was updated to match the LaTeX template, but at this point verbatim
10101 in notes seems not to work in beamer.)
10102 + default.latex: Allow passing `microtypeoptions` to microtype
10103 (Václav Haisman).
10104 + default.latex: Add hyphen option to url package.
10105 + default.docbook5: Fix namespace declarations (Mauro Bieg).
10107 * Moved `make_osx_package.sh` to `osx/` directory.
10109 * Travis continuous integration:
10111 + Fix false positives with dist build.
10112 + Speed improvements (Kolen Cheung, #3304, #3357).
10114 * MANUAL.txt:
10116 + Clarify that blank space is needed around footnotes (#3352).
10117 + Fixed typo (#3351, Alexey Rogechev).
10118 + Note that `--wrap=auto` does not work in HTML output.
10119 + Default `--columns` width is 72, not 80.
10120 + Fixed broken links (#3316, Kolen Cheung).
10121 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
10123 * INSTALL.md:
10125 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
10126 + Added instructions for extracting binary from OSX, Windows packages.
10128 * CONTRIBUTING.md: Describe labels currently used in issue tracker
10129 (Albert Krewinkel). The labels have changed over time, the list of
10130 labels is updated to reflect the current set of labels used in the
10131 issue tracker.
10133 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
10135 * Bumped version bounds for dependencies.
10138## pandoc 1.19.1 (2016-12-10)
10140 * Set `PANDOC_VERSION` environment variable for filters (#2640).
10141 This allows filters to check the pandoc version that produced
10142 the JSON they are receiving.
10144 * Docx reader: Ensure one-row tables don't have header (#3285,
10145 Jesse Rosenthal). Tables in MS Word are set by default to have
10146 special first-row formatting, which pandoc uses to determine whether
10147 or not they have a header. This means that one-row tables will, by
10148 default, have only a header -- which we imagine is not what people
10149 want. This change ensures that a one-row table is not understood to
10150 be a header only. Note that this means that it is impossible to
10151 produce a header-only table from docx, even though it is legal
10152 pandoc. But we believe that in nearly all cases, it will be an
10153 accidental (and unwelcome) result
10155 * HTML reader:
10157 + Fixed some bad regressions in HTML table parser (#3280).
10158 This regression leads to the introduction of empty rows
10159 in some circumstances.
10160 + Understand `style=width:` as well as `width` in `col` (#3286).
10162 * RST reader:
10164 + Print warnings when keys, substitition, notes not found.
10165 Previously the parsers failed and we got raw text. Now we get a
10166 link with an empty URL, or empty inlines in the case of a note or
10167 substitution.
10169 + Fix hyperlink aliases (#3283).
10171 * Man writer: Ensure that periods are escaped at beginning of line
10172 (#3270).
10174 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
10175 (#3272, Albert Krewinkel). Fix interaction of top-level
10176 divisions `part` or `chapter` with unnumbered headers when
10177 emitting LaTeX. Headers are ensured to be written using
10178 stared commands (like `\subsection*{}`).
10180 * LaTeX template: use comma not semicolon to separate keywords for
10181 `pdfkeywords`. Thanks to Wandmalfarbe.
10183 * Markdown writer: Fixed incorrect word wrapping (#3277).
10184 Previously pandoc would sometimes wrap lines too early due to
10185 this bug.
10187 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
10188 possible to insert escape codes for content that needs escaping at the
10189 beginning of a line.
10191 * Removed old MathMLInHTML.js from 2004, which should no longer
10192 be needed for MathML with modern browsers.
10194 * Fixed tests with dynamic linking (#2709).
10196 * Makefile: Use stack instead of cabal for targets. This is just
10197 a convenience for developers.
10199 * Fixed bash completion of filenames with space (#2749).
10201 * MANUAL: improved documentation on how to create a custom
10202 `reference.docx`.
10204 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
10206## pandoc 1.19 (2016-12-01)
10208 * Changed resolution of filter paths.
10210 + We now first treat the argument of `--filter` as a full (absolute
10211 or relative) path, looking for a program there. If it's found, we
10212 run it.
10213 + If not, and if it is a simple program name or a relative path, we
10214 try resolving it relative to `$DATADIR/filters`.
10215 + If this fails, then we treat it as a program name and look in the
10216 user's PATH.
10217 + Removed a hardcoded '/' that may have caused problems with
10218 Windows paths.
10220 Previously if you did `--filter foo` and you had `foo` in your path and
10221 also an executable `foo` in your working directory, the one in the path
10222 would be used. Now the one in the working directory is used.
10224 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
10225 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
10226 `foo/bar.hs` relative to the working directory.
10228 * Allow `file://` URIs as arguments (#3196). Also improved default reader
10229 format detection. Previously with a URI ending in .md or .markdown,
10230 pandoc would assume HTML input. Now it treats these as markdown.
10232 * Allow to overwrite top-level division type heuristics (#3258,
10233 Albert Krewinkel). Pandoc uses heuristics to determine the most
10234 reasonable top-level division type when emitting LaTeX or
10235 Docbook markup. It is now possible to overwrite this implicitly set
10236 top-level division via the `top-level-division` command line parameter.
10238 * Text.Pandoc.Options \[API changes\]:
10240 + Removed `writerStandalone` field in `WriterOptions`, made
10241 `writerTemplate` a `Maybe` value. Previously setting
10242 `writerStandalone = True` did nothing unless a template was provided
10243 in writerTemplate. Now a fragment will be generated if
10244 `writerTemplate` is `Nothing`; otherwise, the specified template
10245 will be used and standalone output generated.
10246 + `Division` has been renamed `TopLevelDivision` (#3197). The
10247 `Section`, `Chapter`, and `Part` constructors were renamed to
10248 `TopLevelSection`, `TopLevelChapter`, and
10249 `TopLevelPart`, respectively. An additional `TopLevelDefault`
10250 constructor was added, which is now also the new default value of
10251 the `writerTopLevelDivision` field in `WriterOptions`.
10253 * Improved error if they give wrong arg to `--top-level-division`.
10255 * Use new module from texmath to lookup MS font codepoints in Docx reader.
10256 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
10257 lives in texmath (0.9).
10259 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
10260 when the qnames lacked the docbook namespace URI.
10262 * HTML reader:
10264 + Improved table parsing (#3027). We now check explicitly for non-1
10265 rowspan or colspan attributes, and fail when we encounter them.
10266 Previously we checked that each row had the same number of cells,
10267 but that could be true even with rowspans/colspans. And there are
10268 cases where it isn't true in tables that we can handle fine -- e.g.
10269 when a tr element is empty. So now we just pad rows with empty cells
10270 when needed.
10271 + Treat `<math>` as MathML by default unless something else is
10272 explicitly specified in xmlns. Provided it parses as MathML,
10273 of course. Also fixed default which should be to inline math if no
10274 display attribute is used.
10275 + Only treat "a" element as link if it has href (#3226). Otherwise
10276 treat as span.
10278 * Docx reader (Jesse Rosenthal):
10280 + Add a placeholder value for CHART. We wrap `[CHART]` in a
10281 `<span class="chart">`. Note that it maps to inlines because, in
10282 docx, anything in a drawing tag can be part of a larger paragraph.
10283 + Be more specific in parsing images We not only want `w:drawing`,
10284 because that could also include charts. Now we specify
10285 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
10286 a first step toward allowing other sorts of drawing data as well.
10287 + Abstract out function to avoid code repetition.
10288 + Update tests for img title and alt (#3204).
10289 + Handle Alt text and titles in images. We use the "description" field
10290 as alt text and the "title" field as title. These can be accessed
10291 through the "Format Picture" dialog in Word.
10292 + Docx reader utils: handle empty namespace in `elemName`. Previously,
10293 if given an empty namespace `(elemName ns "" "foo")` `elemName`
10294 would output a QName with a `Just ""` namespace. This is never what
10295 we want. Now we output a `Nothing`. If someone *does* want a
10296 `Just ""` in the namespace, they can enter the QName
10297 value explicitly.
10299 * ODT reader/writer:
10301 + Inline code when text has a special style (Hubert Plociniczak). When
10302 a piece of text has a text `Source_Text` then we assume that this is
10303 a piece of the document that represents a code that needs to
10304 be inlined. Adapted the writer to also reflect that change.
10305 Previously it was just writing a 'preformatted' text using a
10306 non-distinguishable font style. Code blocks are still not recognized
10307 by the ODT reader. That's a separate issue.
10308 + Infer table's caption from the paragraph (#3224,
10309 Hubert Plociniczak). ODT's reader always put empty captions for the
10310 parsed tables. This commit
10312 1. checks paragraphs that follow the table definition
10313 2. treats specially a paragraph with a style named 'Table'
10314 3. does some postprocessing of the paragraphs that combines tables
10315 followed immediately by captions
10317 The ODT writer used the `TableCaption` style for the caption
10318 paragraph. This commit follows the OpenOffice approach which allows
10319 for appending captions to table but uses a built-in style named
10320 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
10321 should change the style's name from `TableCaption` to `Table`.
10323 * ODT reader: Infer tables' header props from rows (#3199,
10324 Hubert Plociniczak). ODT reader simply provided an empty header list
10325 which meant that the contents of the whole table, even if not empty, was
10326 simply ignored. While we still do not infer headers we at least have to
10327 provide default properties of columns.
10329 * Markdown reader:
10331 + Allow reference link labels starting with `@...` if `citations`
10332 extension disabled (#3209). Example: in
10334 \[link text\]\[@a\]
10336 `link text` isn't hyperlinked because `[@a]` is parsed as
10337 a citation. Previously this happened whether or not the `citations`
10338 extension was enabled. Now it happens only if the `citations`
10339 extension is enabled.
10340 + Allow alignments to be specified in Markdown grid tables. For
10341 example,
10343 +-------+---------------+--------------------+
10344 | Right | Left | Centered |
10345 +=========:+:=================+:=============:+
10346 | Bananas | $1.34 | built-in wrapper |
10347 +-------+---------------+--------------------+
10349 + Allow Small Caps elements to be created using bracketed spans (as
10350 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
10352 * LaTeX reader:
10354 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
10355 Fixed an error which came up, for example, with `\vspace` inside
10356 a caption. (Captions expect inlines.)
10357 + Improved table handling. We can now parse all of the tables emitted
10358 by pandoc in our tests. The only thing we don't get yet are
10359 alignments and column widths in more complex tables. See #2669.
10360 + Limited support for minipage.
10361 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
10362 + Handle BVerbatim from fancyvrb (#3203).
10363 + Handle hungarumlaut (#3201).
10364 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
10365 (#3184). This allows use of things like `\only<2,3>{my content}` in
10366 Markdown that is going to be converted to beamer.
10368 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
10369 overly long code will appear on every slide.
10371 * Org reader (Albert Krewinkel):
10373 + Respect column width settings (#3246). Table column properties can
10374 optionally specify a column's width with which it is displayed in
10375 the buffer. Some exporters, notably the ODT exporter in org-mode
10376 v9.0, use these values to calculate relative column widths. The org
10377 reader now implements the same behavior. Note that the org-mode
10378 LaTeX and HTML exporters in Emacs don't support this feature yet,
10379 which should be kept in mind by users who use the column
10380 widths parameters.
10381 + Allow HTML attribs on non-figure images (#3222). Images which are
10382 the only element in a paragraph can still be given HTML attributes,
10383 even if the image does not have a caption and is hence not a figure.
10384 The following will add set the `width` attribute of the image to
10385 `50%`:
10387 +ATTR\_HTML: :width 50%
10388 =======================
10390 \[\[file:image.jpg\]\]
10392 + Support `ATTR_HTML` for special blocks (#3182). Special
10393 blocks (i.e. blocks with unrecognized names) can be prefixed with an
10394 `ATTR_HTML` block attribute. The attributes defined in that
10395 meta-directive are added to the `Div` which is used to represent the
10396 special block.
10397 + Support the `todo` export option. The `todo` export option allows to
10398 toggle the inclusion of TODO keywords in the output. Setting this to
10399 `nil` causes TODO keywords to be dropped from headlines. The default
10400 is to include the keywords.
10401 + Add support for todo-markers. Headlines can have optional
10402 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
10403 or `#+TYP_TODO` meta directive. Multiple such directives can be
10404 given, each adding a new set of recognized todo-markers. If no
10405 custom todo-markers are defined, the default `TODO` and `DONE`
10406 markers are used. Todo-markers are conceptually separate from
10407 headline text and are hence excluded when autogenerating
10408 headline IDs. The markers are rendered as spans and labelled with
10409 two classes: One class is the markers name, the other signals the
10410 todo-state of the marker (either `todo` or `done`).
10412 * LaTeX writer:
10414 + Use `\autocites*` when "suppress-author" citation used.
10415 + Ensure that simple tables have simple cells (#2666). If cells
10416 contain more than a single Plain or Para, then we need to set
10417 nonzero widths and put contents into minipages.
10418 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
10420 * Markdown writer:
10422 + Fix calculation of column widths for aligned multiline tables
10423 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
10424 usage for tables when `--columns` is set in such a way that cells
10425 must be very tiny. Now cells are guaranteed to be big enough so that
10426 single words don't need to line break, even if this pushes the line
10427 length above the column width.
10428 + Use bracketed form for native spans when `bracketed_spans`
10429 enabled (#3229).
10430 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
10431 sublist got rendered with a blank line after, while a tight ordered
10432 sublist did not. Now we don't get the blank line in either case.
10433 + Fix escaping of spaces in super/subscript (#3225). Previously two
10434 backslashes were inserted, which gave a literal backslash.
10435 + Adjust widths in Markdown grid tables so that they match
10436 on round-trip.
10438 * Docx writer:
10440 + Give full detail when there are errors converting tex math.
10441 + Handle title text in images (Jesse Rosenthal). We already handled
10442 alt text. This just puts the image "title" into the docx
10443 "title" attr.
10444 + Fixed XML markup for empty cells (#3238). Previously the Compact
10445 style wasn't being applied properly to empty cells.
10447 * HTML writer:
10449 + Updated `renderHtml` import from blaze-html.
10451 * Text.Pandoc.Pretty:
10453 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
10454 caused spurious blank lines in grid tables when we had things like
10455 `blankline $$ blankline`.
10456 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
10457 + Added error message for illegal call to `block` (Björn Peemöller).
10459 * Text.Pandoc.Shared:
10461 + Put `warn` in MonadIO.
10462 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
10463 URL starts with `//` and there is no "base URL" (as there would be
10464 if a URL were used on the command line), then default to http:.
10466 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
10468 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
10469 fixes a crash with `pandoc --version` on unusual systems with no real
10470 user (e.g. SQL Server 2016).
10472 * Added weigh-pandoc for memory usage diagnostics (#3169).
10474 * Use correct mime types for woff and woff2 (#3228).
10476 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
10478 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
10479 1.18 section where it belongs.
10481 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
10482 Kolen Cheung).
10484 * Further revisions to manual for `--version` changes (#3244).
10488## pandoc 1.18 (2016-10-26)
10490 * Added `--list-input-formats`, `--list-output-formats`,
10491 `--list-extensions`, `--list-highlight-languages`, and
10492 `--list-highlight-styles` (#3173). Removed list of highlighting
10493 languages from `--version` output. Removed list of input and output
10494 formats from default `--help` output.
10496 * Added `--reference-location=block|section|document` option
10497 (Jesse Rosenthal). This determines whether Markdown link references
10498 and footnotes are placed at the end of the document, the end of the
10499 section, or the end of the top-level block.
10501 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
10502 This determines what a level-1 header corresponds to in LaTeX,
10503 ConTeXt, DocBook, and TEI output. The default is `section`.
10504 The `--chapters` option has been deprecated in favor of
10505 `--top-level-division=chapter`.
10507 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
10508 is now used in parsing RST and Markdown line blocks, DocBook
10509 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
10510 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
10511 are handled specially in the following output formats: AsciiDoc
10512 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
10513 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
10514 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
10515 other output formats, a paragraph with hard linebreaks is emitted.
10517 * Allow binary formats to be written to stdout (but not to tty) (#2677).
10518 Only works on posix, since we use the unix library to check whether
10519 output is to tty. On Windows, pandoc works as before and always requires
10520 an output file parameter for binary formats.
10522 * Changed JSON output format (Jesse Rosenthal). Previously we used
10523 generically generated JSON, but this was subject to change depending
10524 on the version of aeson pandoc was compiled with. To ensure stability,
10525 we switched to using manually written ToJSON and FromJSON
10526 instances, and encoding the API version. **Note:** pandoc filter
10527 libraries will need to be revised to handle the format change.
10528 Here is a summary of the essential changes:
10530 + The toplevel JSON format is now `{"pandoc-api-version" :
10531 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
10532 instead of `[{"unMeta": META}, [BLOCKS]]`.
10533 Decoding fails if the major and minor version numbers don't
10534 match.
10535 + Leaf nodes no longer have an empty array for their "c" value.
10536 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
10537 rather than `{"t":"Space","c":[]}` as before.
10539 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
10540 module to pandoc-types (Jesse Rosenthal). This makes it easier
10541 to use QuickCheck with pandoc types outside of pandoc itself.
10543 * Add `bracketed_spans` Markdown extension, enabled by default
10544 in pandoc `markdown`. This allows you to create a native span
10545 using this syntax: `[Here is my span]{#id .class key="val"}`.
10547 * Added `angle_brackets_escapable` Markdown extension (#2846).
10548 This is needed because github flavored Markdown has a slightly
10549 different set of escapable symbols than original Markdown;
10550 it includes angle brackets.
10552 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
10554 * Print highlighting-kate version in `--version`.
10556 * `Text.Pandoc.Options`:
10558 + `Extension` has new constructors `Ext_brackted_spans` and
10559 `Ext_angle_brackets_escapable` [API change].
10560 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
10561 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
10562 Rosenthal).
10564 * `--filter`: we now check `$DATADIR/filters` for filters before
10565 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
10566 Voß for the idea). Filters placed in this directory need not
10567 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
10568 or `.rb`, pandoc will run the right interpreter.
10570 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
10571 default (Kolen Cheung).
10573 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
10575 * Execute .js filters with node (Jakob Voß).
10577 * Textile reader:
10579 + Support `bc..` extended code blocks (#3037). Also, remove trailing
10580 newline in code blocks (consistently with Markdown reader).
10581 + Improve table parsing. We now handle cell and row attributes, mostly
10582 by skipping them. However, alignments are now handled properly.
10583 Since in pandoc alignment is per-column, not per-cell, we
10584 try to devine column alignments from cell alignments.
10585 Table captions are also now parsed, and textile indicators
10586 for thead and tfoot no longer cause parse failure. (However,
10587 a row designated as tfoot will just be a regular row in pandoc.)
10588 + Improve definition list parsing. We now allow multiple terms
10589 (which we concatenate with linebreaks). An exponential parsing
10590 bug (#3020) is also fixed.
10591 + Disallow empty URL in explicit link (#3036).
10593 * RST reader:
10595 + Use Div instead of BlockQuote for admonitions (#3031).
10596 The Div has class `admonition` and (if relevant) one of the
10597 following: `attention`, `caution`, `danger`, `error`, `hint`,
10598 `important`, `note`, `tip`, `warning`. **Note:** This will change
10599 the rendering of some RST documents! The word ("Warning", "Attention",
10600 etc.) is no longer added; that must be done with CSS or a filter.
10601 + A Div is now used for `sidebar` as well.
10602 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
10603 space before a footnote marker. We discard those spaces so that footnotes
10604 will be adjacent to the text that comes before it. This is in line with
10605 what rst2latex does.
10606 + Allow empty lines when parsing line blocks (Albert Krewinkel).
10608 * Markdown reader:
10610 + Allow empty lines when parsing line blocks (Albert Krewinkel).
10611 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
10613 * LaTeX reader:
10615 + More robust parsing of unknown environments (#3026).
10616 We no longer fail on things like `^` inside options for tikz.
10617 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
10618 Some custom environments give these a meaning, so we should try not to
10619 fall over when we encounter them.
10620 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
10622 * MediaWiki reader:
10624 + Fix for unquoted attribute values in mediawiki tables (#3053).
10625 Previously an unquoted attribute value in a table row
10626 could cause parsing problems.
10627 + Improved treatment of verbatim constructions (#3055).
10628 Previously these yielded strings of alternating Code and Space
10629 elements; we now incorporate the spaces into the Code. Emphasis
10630 etc. is still possible inside these.
10631 + Properly interpret XML tags in pre environments (#3042). They are meant
10632 to be interpreted as literal text.
10634 * EPUB reader: don't add root path to data: URIs (#3150).
10635 Thanks to @lep for the bug report and patch.
10637 * Org reader (Albert Krewinkel):
10639 + Preserve indentation of verse lines (#3064). Leading spaces in verse
10640 lines are converted to non-breaking spaces, so indentation is preserved.
10641 + Ensure image sources are proper links. Image sources as those in plain
10642 images, image links, or figures, must be proper URIs or relative file
10643 paths to be recognized as images. This restriction is now enforced
10644 for all image sources. This also fixes the reader's usage of uncleaned
10645 image sources, leading to `file:` prefixes not being deleted from
10646 figure images. Thanks to @bsag for noticing this bug.
10647 + Trim verse lines properly (Albert Krewinkel).
10648 + Extract meta parsing code to module. Parsing of meta-data is well
10649 separable from other block parsing tasks. Moving into new module to
10650 get small files and clearly arranged code.
10651 + Read markup only for special meta keys. Most meta-keys should be read
10652 as normal string values, only a few are interpreted as marked-up text.
10653 + Allow multiple, comma-separated authors. Multiple authors can be
10654 specified in the `#+AUTHOR` meta line if they are given as a
10655 comma-separated list.
10656 + Give precedence to later meta lines. The last meta-line of any given
10657 type is the significant line. Previously the value of the first line
10658 was kept, even if more lines of the same type were encountered.
10659 + Read LaTeX_header as header-includes. LaTeX-specific header commands
10660 can be defined in `#+LaTeX_header` lines. They are parsed as
10661 format-specific inlines to ensure that they will only show up in LaTeX
10662 output.
10663 + Set documentclass meta from LaTeX_class.
10664 + Set classoption meta from LaTeX_class_options.
10665 + Read HTML_head as header-includes. HTML-specific head content can be
10666 defined in `#+HTML_head` lines. They are parsed as format-specific
10667 inlines to ensure that they will only show up in HTML output.
10668 + Respect `author` export option. The `author` option controls whether
10669 the author should be included in the final markup. Setting
10670 `#+OPTIONS: author:nil` will drop the author from the final meta-data
10671 output.
10672 + Respect `email` export option. The `email` option controls whether the
10673 email meta-field should be included in the final markup. Setting
10674 `#+OPTIONS: email:nil` will drop the email field from the final
10675 meta-data output.
10676 + Respect `creator` export option. The `creator` option controls whether
10677 the creator meta-field should be included in the final markup. Setting
10678 `#+OPTIONS: creator:nil` will drop the creator field from the final
10679 meta-data output. Org-mode recognizes the special value `comment` for
10680 this field, causing the creator to be included in a comment. This is
10681 difficult to translate to Pandoc internals and is hence interpreted the
10682 same as other truish values (i.e. the meta field is kept if it's
10683 present).
10684 + Respect unnumbered header property (#3095). Sections the `unnumbered`
10685 property should, as the name implies, be excluded from the automatic
10686 numbering of section provided by some output formats. The Pandoc
10687 convention for this is to add an "unnumbered" class to the header. The
10688 reader treats properties as key-value pairs per default, so a special
10689 case is added to translate the above property to a class instead.
10690 + Allow figure with empty caption (Albert Krewinkel, #3161).
10691 A `#+CAPTION` attribute before an image is enough to turn an image into
10692 a figure. This wasn't the case because the `parseFromString` function,
10693 which processes the caption value, would fail on empty values. Adding
10694 a newline character to the caption value fixes this.
10696 * Docx reader:
10698 + Use XML convenience functions (Jesse Rosenthal).
10699 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
10700 the code a lot cleaner than the original XML.Light functions, but they
10701 had been used inconsistently. This puts them in wherever applicable.
10702 + Handle anchor spans with content in headers. Previously, we would only
10703 be able to figure out internal links to a header in a docx if the
10704 anchor span was empty. We change that to read the inlines out of the
10705 first anchor span in a header.
10706 + Let headers use existing id. Previously we always generated an id for
10707 headers (since they wouldn't bring one from Docx). Now we let it use an
10708 existing one if possible. This should allow us to recurs through anchor
10709 spans.
10710 + Use all anchor spans for header ids. Previously we only used the first
10711 anchor span to affect header ids. This allows us to use all the anchor
10712 spans in a header, whether they're nested or not (#3088).
10713 + Test for nested anchor spans in header. This ensures that anchor spans
10714 in header with content (or with other anchor spans inside) will resolve
10715 to links to a header id properly.
10717 * ODT reader (Hubert Plociniczak)
10719 + Include list's starting value. Previously the starting value of
10720 the lists' items has been hardcoded to 1. In reality ODT's list
10721 style definition can provide a new starting value in one of its
10722 attributes.
10723 + Infer caption from the text following the image.
10724 Frame can contain other frames with the text boxes.
10725 + Add `fig:` to title for Image with a caption (as expected
10726 by pandoc's writers).
10727 + Basic support for images in ODT documents.
10728 + Don't duplicate text for anchors (#3143). When creating an anchor
10729 element we were adding its representation as well as the original
10730 content, leading to text duplication.
10732 * DocBook writer:
10734 + Include an anchor element when a div or span has an id (#3102).
10735 Note that DocBook does not have a class attribute, but at least this
10736 provides an anchor for internal links.
10738 * LaTeX writer:
10740 + Don't use * for unnumbered paragraph, subparagraph. The starred
10741 variants don't exist. This helps with part of #3058...it gets rid of
10742 the spurious `*`s. But we still have numbers on the 4th and 5th level
10743 headers.
10744 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
10745 Otherwise they can cause unintended ligatures like `` ?` ``.
10746 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
10747 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
10748 This allows figure placement defaults to be changed by the user
10749 in the template.
10751 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
10752 TEI doesn't have `<book>` elements but only generic `<divN>` division
10753 elements. Checking the template for a trailing `</book>` is nonsensical.
10755 * MediaWiki writer: transform filename with underscores in images (#3052).
10756 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
10757 for internal links, but it also needs to happen for images.
10759 * ICML writer: replace partial function (!!) in table handling (#3175,
10760 Mauro Bieg).
10762 * Man writer: allow section numbers that are not a single digit (#3089).
10764 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
10765 (#3068). In AsciiDoc, you must use a special form of emphasis
10766 (double `__`) for intraword emphasis. Pandoc was previously using
10767 this more than necessary.
10769 * EPUB writer: use stringify instead of plain writer for metadata
10770 (#3066). This means that underscores won't be used for emphasis,
10771 or CAPS for bold. The metadata fields will just have unadorned
10772 text.
10774 * Docx Writer:
10776 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
10777 with a `custom-style` key in the attributes will apply the corresponding
10778 key to the contained blocks or inlines.
10779 + Add ReaderT env to the docx writer (Jesse Rosenthal).
10780 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
10781 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
10782 on the command line. For finer-grained control, you can set
10783 the `dir` attribute in Div or Span elements.
10785 * Org writer (Albert Krewinkel):
10787 + Remove blank line after figure caption. Org-mode only treats an image
10788 as a figure if it is directly preceded by a caption.
10789 + Ensure blank line after figure. An Org-mode figure should be surrounded
10790 by blank lines. The figure would be recognized regardless, but images
10791 in the following line would unintentionally be treated as figures as
10792 well.
10793 + Ensure link targets are paths or URLs. Org-mode treats links as
10794 document internal searches unless the link target looks like a URL or
10795 file path, either relative or absolute. This change ensures that this
10796 is always the case.
10797 + Translate language identifiers. Pandoc and Org-mode use different
10798 programming language identifiers. An additional translation between
10799 those identifiers is added to avoid unexpected behavior. This fixes a
10800 problem where language specific source code would sometimes be output
10801 as example code.
10802 + Drop space before footnote markers (Albert Krewinkel, #3162).
10803 The writer no longer adds an extra space before footnote markers.
10805 * Markdown writer:
10807 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
10808 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
10809 is disabled.
10810 + Check for the `raw_html` extension before emitting a raw HTML block.
10811 + Abstract out note/ref function (Jesse Rosenthal).
10812 + Add ReaderT monad for environment variables (Jesse Rosenthal).
10814 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
10815 subtitle, author, date (#3119). Note that, as a result of this change,
10816 authors may need to update CSS.
10818 * revealjs template: Added `notes-server` option
10819 (jgm/pandoc-templates#212, Yoan Blanc).
10821 * Beamer template:
10823 + Restore whitespace between paragraphs. This was
10824 a regression in the last release (jgm/pandoc-templates#207).
10825 + Added `themeoptions` variable (Carsten Gips).
10826 + Added `beamerarticle` variable. This causes the `beamerarticle`
10827 package to be loaded in beamer, to produce an article from beamer
10828 slides. (Carsten Gips)
10829 + Added support for `fontfamilies` structured variable
10830 (Artem Klevtsov).
10831 + Added hypersetup options (Jake Zimmerman).
10833 * LaTeX template:
10835 + Added dummy definition for `\institute`.
10836 This isn't a standard command, and we want to avoid a crash when
10837 `institute` is used with the default template.
10838 + Define default figure placement (Václav Haisman), since pandoc
10839 no longer includes `[htbp]` for figures. Users with custom templates
10840 will want to add this. See #3103.
10841 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
10842 Václav Haisman).
10844 * Moved template compiling/rendering code to a separate library.
10845 `doctemplates`. This allows the pandoc templating system to be
10846 used independently.
10848 * Text.Pandoc.Error: Fix out of index error in `handleError`
10849 (Matthew Pickering). The fix is to not try to show the exact line when
10850 it would cause an out-of-bounds error as a result of included files.
10852 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
10854 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
10855 addresses. Technically `**@user` is a valid email address, but if we
10856 allow things like this, we get bad results in markdown flavors
10857 that autolink raw email addresses (see #2940). So we exclude a few
10858 valid email addresses in order to avoid these more common bad cases.
10860 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
10861 emit the alt text, emphasized. This accords with what the ODT writer
10862 currently does. The user will still get a warning about a nonexistent
10863 image.
10865 * Fix example in API documentation (#3176, Thomas Weißschuh).
10867 * Tell where to get tarball in INSTALL (#3062).
10869 * Rename README to MANUAL.txt and add GitHub-friendly README.md
10870 (Albert Krewinkel, Kolen Cheung).
10872 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
10874 * MANUAL.txt:
10876 + Put note on structured vars in separate paragraph (#2148, Albert
10877 Krewinkel). Make it clearer that structured author variables require a
10878 custom template
10879 + Note that `--katex` works best with `html5` (#3077).
10880 + Fix the LaTeX and EPUB links in manual (Morton Fox).
10881 + Document `biblio-title` variable.
10883 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
10885 * Update KaTeX to v0.6.0 (Kolen Cheung).
10887 * Allow latest dependencies.
10889 * Use texmath 0.8.6.6 (#3040).
10891 * Allow http-client 0.4.30, which is the version in stackage lts.
10892 Previously we required 0.5.
10893 Remove CPP conditionals for earlier versions.
10895 * Remove support for GHC < 7.8 (Jesse Rosenthal).
10897 + Remove Compat.Monoid.
10898 + Remove an inline monad compatibility macro.
10899 + Remove Text.Pandoc.Compat.Except.
10900 + Remove directory compat.
10901 + Change constraint on mtl.
10902 + Remove unnecessary CPP condition in UTF8.
10903 + Bump base lower bound to 4.7.
10904 + Remove 7.6 build from .travis.yaml.
10905 + Bump supported ghc version in CONTRIBUTING.md.
10906 + Add note about GHC version support to INSTALL.
10907 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
10908 + Remove TagSoup compat.
10909 + Add EOL note to time compat module. Because time 1.4 is a boot library
10910 for GHC 7.8, we will support the compatibility module as long as we
10911 support 7.8. But we should be clear about when we will no longer need
10912 it.
10913 + Remove blaze-html CPP conditional.
10914 + Remove unnecessary CPP in custom Prelude.
10916## pandoc 1.17.2 (2016-07-17)
10918 * Added Zim Wiki writer, template and tests. `zimwiki` is now
10919 a valid output format. (Alex Ivkin)
10921 * Changed email-obfuscation default to no obfuscation (#2988).
10922 + `writerEmailObfuscation` in `defaultWriterOptions` is now
10923 `NoObfuscation`.
10924 + the default for the command-line `--email-obfuscation` option is
10925 now `none`.
10927 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
10929 * Org writer:
10931 + Support arbitrary raw inlines (Albert Krewinkel).
10932 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
10933 parlance) to be included as `@@format:raw foreign format text@@`.
10934 + Improve Div handling (Albert Krewinkel). Div blocks handling is
10935 changed to make the output look more like idiomatic org mode:
10936 - Div-wrapped content is output as-is if the div's attribute is the
10937 null attribute.
10938 - Div containers with an id but neither classes nor key-value pairs
10939 are unwrapped and the id is added as an anchor.
10940 - Divs with classes associated with greater block elements are
10941 wrapped in a `#+BEGIN`...`#+END` block.
10942 - The old behavior for Divs with more complex attributes is kept.
10944 * HTML writer: Better support for raw LaTeX environments (#2758).
10945 Previously we just passed all raw TeX through when MathJax
10946 was used for HTML math. This passed through too much.
10947 With this patch, only raw LaTeX environments that MathJax
10948 can handle get passed through.
10949 This patch also causes raw LaTeX environments to be treated
10950 as math, when possible, with MathML and WebTeX output.
10952 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
10953 (#2993). Markdown line breaks involve a newline, and simple and pipe
10954 tables can't contain one.
10956 * Make --webtex work with the Markdown writer (#1177).
10957 This is a convenient option for people using
10958 websites whose Markdown flavors don't provide for math.
10960 * Docx writer:
10962 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
10963 We treat display math like block quotes, and apply FirstParagraph style
10964 to paragraphs that follow them. These can be styled as the user
10965 wishes. (But, when the user is using indentation, this allows for
10966 paragraphs to continue after display math without indentation.)
10967 + Use actual creation time as doc prop (Jesse Rosenthal).
10968 Previously, we had used the user-supplied date, if available, for Word's
10969 document creation metadata. This could lead to weird results, as in
10970 cases where the user post-dates a document (so the modification might be
10971 prior to the creation). Here we use the actual computer time to set the
10972 document creation.
10974 * LaTeX writer:
10976 + Don't URI-escape image source (#2825). Usually this is a local file,
10977 and replacing spaces with `%20` ruins things.
10978 + Allow 'standout' as a beamer frame option (#3007).
10979 `## Slide title {.standout}`.
10981 * RST reader: Fixed links with no explicit link text. The link
10982 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
10983 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
10984 Closes Debian #828167 -- reported by Christian Heller.
10986 * Textile reader:
10988 + Fixed attributes (#2984). Attributes can't be followed by
10989 a space. So, `_(class)emph_` but `_(noclass) emph_`.
10990 + Fixed exponential parsing bug (#3020).
10991 + Fix overly aggressive interpretation as images (#2998).
10992 Spaces are not allowed in the image URL in textile.
10994 * LaTeX reader:
10996 + Fix `\cite` so it is a NormalCitation not AuthorInText.
10997 + Strip off double quotes around image source if present (#2825).
10998 Avoids interpreting these as part of the literal filename.
11000 * Org reader:
11002 + Add semicolon to list of special chars (Albert Krewinkel)
11003 Semicolons are used as special characters in citations syntax. This
11004 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
11005 suffix]`. Previously, parsing would have failed unless there was a space
11006 or other special character as the last <prefix> character.
11007 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
11008 A specification for an official Org-mode citation syntax was drafted by
11009 Richard Lawrence and enhanced with the help of others on the orgmode
11010 mailing list. Basic support for this citation style is added to the
11011 reader.
11012 + Support arbitrary raw inlines (Albert Krewinkel).
11013 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
11014 parlance) to be included as `@@format:raw foreign format text@@`.
11015 + Remove partial functions (Albert Krewinkel, #2991).
11016 Partial functions like `head` lead to avoidable errors and should be
11017 avoided. They are replaced with total functions.
11018 + Support figure labels (Albert Krewinkel, #2496, #2999).
11019 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
11020 respective image. This allows e.g. the LaTeX to add proper `\label`
11021 markup.
11022 + Improve tag and properties type safety (Albert Krewinkel).
11023 Specific newtype definitions are used to replace stringly typing of tags
11024 and properties. Type safety is increased while readability is improved.
11025 + Parse as headlines, convert to blocks (Albert Krewinkel).
11026 Emacs org-mode is based on outline-mode, which treats documents as trees
11027 with headlines are nodes. The reader is refactored to parse into a
11028 similar tree structure. This simplifies transformations acting on
11029 document (sub-)trees.
11030 * Refactor comment tree handling (Albert Krewinkel).
11031 Comment trees were handled after parsing, as pattern matching on lists
11032 is easier than matching on sequences. The new method of reading
11033 documents as trees allows for more elegant subtree removal.
11034 * Support archived trees export options (Albert Krewinkel).
11035 Handling of archived trees can be modified using the `arch` option.
11036 Archived trees are either dropped, exported completely, or collapsed to
11037 include just the header when the `arch` option is nil, non-nil, or
11038 `headline`, respectively.
11039 * Put export setting parser into module (Albert Krewinkel).
11040 Export option parsing is distinct enough from general block parsing to
11041 justify putting it into a separate module.
11042 * Support headline levels export setting (Albert Krewinkel).
11043 The depths of headlines can be modified using the `H` option. Deeper
11044 headlines will be converted to lists.
11045 * Replace ugly code with view pattern (Albert Krewinkel).
11046 Some less-than-smart code required a pragma switching of overlapping
11047 pattern warnings in order to compile seamlessly. Using view patterns
11048 makes the code easier to read and also doesn't require overlapping
11049 pattern checks to be disabled.
11050 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
11051 Org rules for allowed characters before or after markup chars were not
11052 checked for verbatim text. This resultet in wrong parsing outcomes of
11053 if the verbatim text contained e.g. space enclosed markup characters as
11054 part of the text (`=is_substr = True=`). Forcing the parser to update
11055 the positions of allowed/forbidden markup border characters fixes this.
11057 * LaTeX template: fix for obscure hyperref/xelatex issue.
11058 Here's a minimal case:
11060 \documentclass[]{article}
11061 \usepackage{hyperref}
11062 \begin{document}
11063 \section{\%á}
11064 \end{document}
11066 Without this change, this fails on the second invocation of xelatex.
11067 This affects inputs this like `# %á` with pdf output via xelatex.
11069 * trypandoc: call results 'html' instead of 'result'.
11070 This is for better compatibility with babelmark2.
11072 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
11073 MultiMarkdown was only mentioned as a supported Markdown dialect but not
11074 as a possible input or output format. A brief mention is added
11075 everywhere the other supported markdown dialects are mentioned.
11077 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
11078 Raw HTML is kept when the output format is Emacs Org mode.
11080 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
11082 * Text.Pandoc.Shared:
11084 + Introduce blocksToInlines function (Jesse Rosenthal).
11085 This is a lossy function for converting `[Block] -> [Inline]`. Its main
11086 use, at the moment, is for docx comments, which can contain arbitrary
11087 blocks (except for footnotes), but which will be converted to spans.
11088 This is, at the moment, pretty useless for everything but the basic
11089 `Para` and `Plain` comments. It can be improved, but the docx reader
11090 should probably emit a warning if the comment contains more than this.
11091 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
11092 + Add further formats for `normalizeDate` (Jesse Rosenthal).
11093 We want to avoid illegal dates -- in particular years with greater than
11094 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
11095 `%Y%m`, and finally `%Y`.
11096 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
11097 We only allow years between 1601 and 9999, inclusive. The ISO 8601
11098 actually says that years are supposed to start with 1583, but MS Word
11099 only allows 1601-9999. This should stop corrupted word files if the date
11100 is out of that range, or is parsed incorrectly.
11101 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
11102 Previously we parsed a list of dates, took the first one, and then
11103 tested its year range. That meant that if the first one failed, we
11104 returned nothing, regardless of what the others did. Now we test for
11105 sanity before running `msum` over the list of Maybe values. Anything
11106 failing the test will be Nothing, so will not be a candidate.
11108 * Docx reader:
11110 + Add simple comment functionality. (Jesse Rosenthal).
11111 This adds simple track-changes comment parsing to the docx reader. It is
11112 turned on with `--track-changes=all`. All comments are converted to
11113 inlines, which can list some information. In the future a warning will be
11114 added for comments with formatting that seems like it will be excessively
11115 denatured. Note that comments can extend across blocks. For that reason
11116 there are two spans: `comment-start` and `comment-end`. `comment-start`
11117 will contain the comment. `comment-end` will always be empty. The two
11118 will be associated by a numeric id.
11119 + Enable warnings in top-level reader (Jesse Rosenthal).
11120 Previously we had only allowed for warnings in the parser. Now we allow
11121 for them in the `Docx.hs` as well. The warnings are simply concatenated.
11122 + Add warning for advanced comment formatting. (Jesse Rosenthal).
11123 We can't guarantee we'll convert every comment correctly, though we'll
11124 do the best we can. This warns if the comment includes something other
11125 than Para or Plain.
11126 + Add tests for warnings. (Jesse Rosenthal).
11127 + Add tests for comments (Jesse Rosenthal).
11128 We test for comments, using all track-changes options. Note that we
11129 should only output comments if `--track-changes=all`. We also test for
11130 emitting warnings if there is complicated formatting.
11132 * README: update to include track-changes comments. (Jesse Rosenthal)
11134 * Improved Windows installer - don't ignore properties set on command-line.
11135 See #2708. Needs testing to see if this resolves the issue.
11136 Thanks to @nkalvi.
11138 * Process markdown extensions on command line in L->R order (#2995).
11139 Previously they were processed, very unintuitively, in R->L
11140 order, so that `markdown-tex_math_dollars+tex_math_dollars`
11141 had `tex_math_dollars` disabled.
11143 * Added `secnumdepth` variable to LaTeX template (#2920).
11145 * Include table of contents in README.html in Windows package.
11147 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
11148 In Writers.Shared, we strip leading and trailing spaces for display
11149 math. Since SoftBreak's are treated as spaces, we should strip those
11150 too.
11152 * beamer, latex templates: pass biblatexoptions directly in package load.
11153 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
11155 * CPP workaround for deprecation of `parseUrl` in http-client.
11157 * Removed some redundant class constraints.
11159 * make_oxs_package.sh - use OSX env variable.
11161 * Added `winpkg` target to Makefile. This downloads the windows package
11162 from appveyor and signs it using the key.
11164 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
11165 Raw TeX is kept verbatim when the output format is Emacs Org mode.
11167 * Support math with haddock-library >= 1.4.
11169 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
11170 wouldn't accept the package.
11172 * Update library dependency versions.
11174## pandoc 1.17.1 (2016-06-04)
11176 * New output format: `docbook5` (Ivo Clarysse).
11178 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
11179 (API change).
11181 * Org writer:
11183 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
11184 This allows header attributes to be added to org documents in the form
11185 of `:PROPERTIES:` drawers. All available attributes are stored as
11186 key/value pairs. This reflects the way the org reader handles
11187 `:PROPERTIES:` blocks.
11188 + Add drawer capability (Carlos Sosa). For the implementation of the
11189 Drawer element in the Org Writer, we make use of a generic Block
11190 container with attributes. The presence of a `drawer` class defines
11191 that the `Div` constructor is a drawer. The first class defines the
11192 drawer name to use. The key-value list in the attributes defines
11193 the keys to add inside the Drawer. Lastly, the list of Block elements
11194 contains miscellaneous blocks elements to add inside of the Drawer.
11195 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
11196 reserved for internal use by Org-mode and should not be used.
11197 The `CUSTOM_ID` property is to be used instead, it is converted to the
11198 `ID` property for certain export format.
11200 * LaTeX writer:
11202 + Ignore `--incremental` unless output format is beamer (#2843).
11203 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
11204 Allow for optional argument in square brackets.
11205 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
11206 This allows one to access the hyphenation patterns in CTAN's
11207 hyph-utf8.
11208 + Add missing languages from hyph-utf8 (Andrew Dunning).
11209 + Improve use of `\strut` with `\minipage` inside tables
11210 (Jose Luis Duran). This improves spacing in multiline
11211 tables.
11212 + Use `{}` around options containing special chars (#2892).
11213 + Avoid lazy `foldl`.
11214 + Don't escape underscore in labels (#2921). Previously they were
11215 escaped as `ux5f`.
11216 + brazilian -> brazil for polyglossia (#2953).
11218 * HTML writer: Ensure mathjax link is added when math appears in footnote
11219 (#2881). Previously if a document only had math in a footnote, the
11220 MathJax link would not be added.
11222 * EPUB writer: set `navpage` variable on nav page.
11223 This allows templates to treat it differently.
11225 * DocBook writer:
11227 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
11228 + Properly handle `ulink`/`link` (Ivo Clarysse).
11230 * EPUB reader:
11232 + Unescape URIs in spine (#2924).
11233 + EPUB reader: normalise link id (Mauro Bieg).
11235 * Docx Reader:
11237 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
11238 `moveTo` and `moveFrom` are track-changes tags that are used when a
11239 block of text is moved in the document. We now recognize these tags and
11240 treat them the same as `insert` and `delete`, respectively. So,
11241 `--track-changes=accept` will show the moved version, while
11242 `--track-changes=reject` will show the original version.
11243 + Tests for track-changes moving (Jesse Rosenthal).
11245 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
11246 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
11247 would error out if zip-archive failed. We change the archive extraction
11248 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
11250 * Markdown, HTML readers: be more forgiving about unescaped `&` in
11251 HTML (#2410). We are now more forgiving about parsing invalid HTML with
11252 unescaped `&` as raw HTML. (Previously any unescaped `&`
11253 would cause pandoc not to recognize the string as raw HTML.)
11255 * Markdown reader:
11257 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
11258 + Added `-s` to markdown-reader-more test.
11260 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
11261 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
11263 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
11264 (roblabla).
11266 * RST reader: Support `:class:` option for code block in RST reader
11267 (Sidharth Kapur).
11269 * Org reader (all Albert Krewinkel, except where noted otherwise):
11271 + Stop padding short table rows.
11272 Emacs Org-mode doesn't add any padding to table rows. The first
11273 row (header or first body row) is used to determine the column count,
11274 no other magic is performed.
11275 + Refactor rows-to-table conversion. This refactors
11276 the codes conversing a list table lines to an org table ADT.
11277 The old code was simplified and is now slightly less ugly.
11278 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
11279 This fixes Org mode parsing of some corner cases regarding empty cells
11280 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
11281 two empty cells, but would be parsed as a single cell containing a pipe
11282 character. Empty rows where parsed as alignment rows and dropped from
11283 the output.
11284 + Fix spacing after LaTeX-style symbols.
11285 The org-reader was dropping space after unescaped LaTeX-style symbol
11286 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
11287 instead. This seems to be because the LaTeX-reader treats the
11288 command-terminating space as part of the command. Dropping the trailing
11289 space from the symbol-command fixes this issue.
11290 + Print empty table rows. Empty table rows should not
11291 be dropped from the output, so row-height is always set to be at least 1.
11292 + Move parser state into separate module.
11293 The org reader code has become large and confusing. Extracting smaller
11294 parts into submodules should help to clean things up.
11295 + Add support for sub/superscript export options.
11296 Org-mode allows to specify export settings via `#+OPTIONS` lines.
11297 Disabling simple sub- and superscripts is one of these export options,
11298 this options is now supported.
11299 + Support special strings export option Parsing of special strings
11300 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
11301 option.
11302 + Support emphasized text export option. Parsing of emphasized text can
11303 be toggled using the `*` option. This influences parsing of text marked
11304 as emphasized, strong, strikeout, and underline. Parsing of inline math,
11305 code, and verbatim text is not affected by this option.
11306 + Support smart quotes export option. Reading of smart quotes can be
11307 toggled using the `'` option.
11308 + Parse but ignore export options. All known export options are parsed
11309 but ignored.
11310 + Refactor block attribute handling. A parser state attribute was used
11311 to keep track of block attributes defined in meta-lines. Global state
11312 is undesirable, so block attributes are no longer saved as part of the
11313 parser state. Old functions and the respective part of the parser state
11314 are removed.
11315 + Use custom `anyLine`. Additional state changes need to be made after
11316 a newline is parsed, otherwise markup may not be recognized correctly.
11317 This fixes a bug where markup after certain block-types would not be
11318 recognized.
11319 + Add support for `ATTR_HTML` attributes (#1906).
11320 Arbitrary key-value pairs can be added to some block types using a
11321 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
11322 when exporting to HTML, but since we cannot make this distinction here,
11323 the attributes are always added. The functionality is now supported
11324 for figures.
11325 + Add `:PROPERTIES:` drawer support (#1877).
11326 Headers can have optional `:PROPERTIES:` drawers associated with them.
11327 These drawers contain key/value pairs like the header's `id`. The
11328 reader adds all listed pairs to the header's attributes; `id` and
11329 `class` attributes are handled specially to match the way `Attr` are
11330 defined. This also changes behavior of how drawers of unknown type
11331 are handled. Instead of including all unknown drawers, those are not
11332 read/exported, thereby matching current Emacs behavior.
11333 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
11334 + Respect drawer export setting. The `d` export option can be used
11335 to control which drawers are exported and which are discarded.
11336 Basic support for this option is added here.
11337 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
11338 Also fix up tab handling for leading whitespace in code blocks.
11339 + Support new syntax for export blocks. Org-mode version 9
11340 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
11341 where `<FORMAT>` is the format of the block's content, the new
11342 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
11343 supported.
11344 + Refactor `BEGIN...END` block parsing.
11345 + Fix handling of whitespace in blocks, allowing content to be indented
11346 less then the block header.
11347 + Support org-ref style citations. The *org-ref* package is an
11348 org-mode extension commonly used to manage citations in org
11349 documents. Basic support for the `cite:citeKey` and
11350 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
11351 + Split code into separate modules, making for cleaner code and
11352 better decoupling.
11354 * Added `docbook5` template.
11356 * `--mathjax` improvements:
11358 + Use new CommonHTML output for MathJax (updated default MathJax URL,
11359 #2858).
11360 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
11361 This is designed for cases where the input is always TeX and maximal
11362 conformity with TeX is desired. It seems to be smaller and load faster
11363 than what we used before. See #2858.
11364 + Load the full MathJax config to maximize loading speed (KolenCheung).
11366 * Bumped upper version bounds to allow use of latest packages
11367 and compilation with ghc 8.
11369 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
11370 #2310, #2310, #2824). This fixes behavior of roots, e.g.
11371 `\sqrt[3]{x}`, and issues with sub/superscript positioning
11372 and matrix column alignment in docx.
11374 * README:
11376 + Clarified documentation of `implicit_header_references` (#2904).
11377 + Improved documentation of `--columns` option.
11379 * Added appveyor setup, with artefacts (Jan Schulz).
11381 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
11383 * LaTeX template: support for custom font families (vladipus).
11384 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
11385 can find some other usages. Example usage in YAML metadata:
11387 fontfamilies:
11388 - name: \cyrillicfont
11389 font: Liberation Serif
11390 - name: \cyrillicfonttt
11391 options: Scale=MatchLowercase
11392 font: Liberation
11394 * Create unsigned msi as build artifact in appveyor build.
11396 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
11400## pandoc 1.17.0.3 (2016-03-24)
11402 * LaTeX writer: Fixed position of label in figures (#2813).
11403 Previously the label wasn't in the right place, and `\ref`
11404 wouldn't work properly.
11405 * Added .tei test files to pandoc.cabal so they'll be included
11406 in tarball (#2811).
11407 * Updated copyright dates.
11409## pandoc 1.17.0.2 (2016-03-23)
11411 * Fixed serious regression in `htmlInBalanced`, which caused
11412 newlines to be omitted in some raw HTML blocks in Markdown
11413 (#2804).
11415## pandoc 1.17.0.1 (2016-03-21)
11417 * File scope is no longer used when there are no input files (i.e.,
11418 when input comes from stdin). Previously file scope was triggered
11419 when the `json` reader was specified and input came from `stdin`,
11420 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
11421 thanks to Fedor Sheremetyev for calling the bug to our attention.)
11422 * Improved documentation of templates (#2797).
11424## pandoc 1.17 (2016-03-20)
11426 * Added `--file-scope` option (Jesse Rosenthal).
11427 By default pandoc operates on multiple files by first concatenating
11428 them (around extra line breaks) and then processing the joined file. So
11429 it only parses a multi-file document at the document scope. This has the
11430 benefit that footnotes and links can be in different files, but for
11431 some purposes it is useful to parse the individual files first
11432 and then combine their outputs (e.g. when the files use footnotes
11433 or links with the same labels). The `--file-scope` option causes
11434 pandoc to parse the files first, and then combine the parsed output,
11435 instead of combining before parsing. `--file-scope` is selected
11436 automatically for binary input files (which cannot be concatenated)
11437 and for pandoc json.
11439 * Add TEI Writer (Chris Forster) and `tei` output format.
11441 * Added a general `ByteStringReader` with warnings, used by the docx
11442 reader (API change, Jesse Rosenthal).
11444 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
11446 * Changed type of `Shared.uniqueIdent` argument from
11447 `[String]` to `Set String`. This avoids performance problems in documents
11448 with many identically named headers (API change, #2671).
11450 * Removed `tex_math_single_backslash` from `markdown_github` options
11451 (#2707).
11453 * Make language extensions as well as full language names
11454 trigger syntax highlighting. For example, `py` will now work as
11455 well as `python` (jgm/highlighting-kate#83).
11457 * Added `institute` variable to latex, beamer templates (Fraser
11458 Tweedale, Josef Svenningsson).
11460 * Docx reader (Jesse Rosenthal):
11462 + Handle alternate content. Some word functions (especially graphics)
11463 give various choices for content so there can be backwards compatibility.
11464 + Don't turn numbered headers into lists.
11465 + Docx Reader: Add state to the parser, for warnings
11466 + Update feature checklist in source code.
11467 + Get rid of `Modifiable` typeclass.
11468 + Add tests for adjacent hyperlinks.
11469 + Add a "Link" modifier to `Reducible`. We want to make sure that
11470 links have their spaces removed, and are appropriately smushed
11471 together (#2689).
11473 * HTML reader:
11475 + Fixed behavior of base tag (#2777).
11476 If the base path does not end with slash, the last component
11477 will be replaced. E.g. base = `http://example.com/foo`
11478 combines with `bar.html` to give `http://example.com/bar.html`.
11479 If the href begins with a slash, the whole path of the base
11480 is replaced. E.g. base = `http://example.com/foo/` combines
11481 with `/bar.html` to give `http://example.com/bar.html`.
11482 + Rewrote `htmlInBalanced`. This version avoids an exponential
11483 performance problem with `<script>` tags, and it should be faster
11484 in general (#2730).
11485 + Properly handle an empty cell in a simple table (#2718).
11486 + Handle multiple `<meta>` tags with same name. Put them in a list
11487 in the metadata so they are all preserved, rather than (as before)
11488 throwing out all but one..
11490 * Markdown reader:
11492 + Improved pipe table parsing (#2765).
11493 + Allow `+` separators in pipe table cells. We already allowed
11494 them in the header, but not in the body rows, for some reason.
11495 This gives compatibility with org-mode tables.
11496 + Don't cross line boundary parsing pipe table row.
11497 Previously an Emph element could be parsed across the newline
11498 at the end of the pipe table row.
11499 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
11500 performance (#2730).
11501 + Fixed bug with smart quotes around tex math.
11503 * LaTeX reader:
11505 + Handle interior `$` characters in math (#2743). For example,
11506 `$$\hbox{$i$}$$`.
11507 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
11508 This gives better results when people write e.g. `\TeX{}` in Markdown.
11509 + Properly handle LaTeX "math" environment as inline math (#2171).
11511 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
11512 Closes #2674.
11514 * Org reader (Albert Krewinkel):
11516 + Prefix even empty figure names with "fig:" (#2643). The
11517 convention used by pandoc for figures is to mark them by prefixing
11518 the name with `fig:`. The org reader failed to do this if a figure
11519 had no name.
11520 + Refactor link-target processing (#2684).
11522 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
11523 Thanks to @c-foster.
11525 * HTML writer: Don't include alignment attribute for default table columns.
11526 Previously these were given "left" alignment. Better to leave off
11527 alignment attributes altogether (#2694).
11529 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
11530 better compatibility with other Markdown flavors (Henrik Tramberend).
11532 * LaTeX writer:
11534 + Use image identifier to create a label and hypertarget for
11535 figures (Mauro Bieg).
11536 + Avoid double toprule in headerless table with caption (#2742).
11537 + Clean up options parser (Jesse Rosenthal).
11538 + Treat `memoir` template with `article` option as article, instead
11539 of treating all `memoir` templates as books.
11540 + Allow more flexible table alignment (Henrik Tramberend, #2665).
11541 New default is not to include `[c]` option (which is the default
11542 anyway if no positioning is specified). Now LaTeX emplates can
11543 control the overall table alignment in a document by setting the
11544 longtable length variables `LTleft` and `LTright`. For example,
11545 `\setlength\LTleft\parindent\setlength\LTright\fill`
11546 will create left-aligned tables that respect paragraph indentation.
11548 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
11550 * Org writer - pass through RawInline with format "org".
11552 * DokuWiki writer: use `$$` for display math.
11554 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
11556 * Make protocol-relative URIs work again (#2737).
11558 * make_osx_package.sh: Use env variable for developer id certs.
11560 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
11561 problems (#2734).
11563 * Allow `zip-archive` 0.3.
11565 * Allow `aeson` 0.11.
11567## pandoc 1.16.0.2 (2016-01-12)
11569 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
11571 * Fixed regression in latex smart quote parsing (#2645).
11572 In cases where a match was not found for a quote, everything
11573 from the open quote to the end of the paragraph was being dropped.
11575## pandoc 1.16.0.1 (2016-01-10)
11577 * Fixed regression with `--latex-engine` (#2618). In 1.16
11578 `--latex-engine` raises an error if a full path is given.
11580 * Org reader: Fix function dropping subtrees tagged `:noexport`
11581 (Albert Krewinkel, #2628):
11583 * Markdown reader: renormalize table column widths if they exceed 100%
11584 (#2626).
11586 * Textile reader: don't allow block HTML tags in inline contexts.
11587 The reader previously did allow this, following redcloth,
11588 which happily parses
11590 Html blocks can be <div>inlined</div> as well.
11594 <p>Html blocks can be <div>inlined</div> as well.</p>
11596 This is invalid HTML. The above sample now produces;
11598 <p>Html blocks can be</p>
11599 <div>
11600 <p>inlined</p>
11601 </div>
11602 <p>as well.</p>
11604 * Improved default template lookup for custom lua scripts (#2625).
11605 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
11606 pandoc would look for the template in
11607 `~/.pandoc/templates/default./path/to/lua/script.lua`.
11608 With this change it will look in the more reasonable
11609 `~/.pandoc/templates/default.script.lua`. This makes it possible to
11610 store default templates for custom writers.
11612 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
11613 (#2615).
11615 * LaTeX writer: restore old treatment of Span (#2624). A Span is
11616 now rendered with surrounding `{}`, as it was before 1.16.
11618 * Entity handling fixes: improved handling of entities like
11619 `&lang;` that require a trailing semicolon. Allow uppercase
11620 `x` in numerical hexadecimal character references, working
11621 around a tagsoup bug.
11623 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
11624 memory use on compile. With aeson 0.10 we were getting an out of
11625 memory error on a 2GB Ubuntu 64-bit VM.
11627 * Improved deb package creation script. Made `DPKGVER` work.
11628 Renamed `COMMIT` to `TREE`. You should now be able to do
11629 `TREE=1.16.0.1 DPKGVER=2 make deb`.
11632## pandoc 1.16 (2016-01-02)
11634 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
11636 + Added syntax for link and image attributes to pandoc's Markdown.
11637 + Updated readers and writers to use link and image attributes
11638 when appropriate.
11639 + Support image attributes in Docx, Textile, RST readers.
11641 * Renamed link attribute extensions. The old `link_attributes` is
11642 now `mmd_link_attributes`, and `link_attributes` now enables the
11643 new pandoc-style link and image attributes (API change).
11644 Note: this change could break some existing workflows.
11646 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
11647 Added threefold wrapping option.
11649 + Command line option: deprecated `--no-wrap`, added
11650 `--wrap=[auto|none|preserve]`
11651 + Added `WrapOption`, exported from `Text.Pandoc.Options`
11652 + Changed type of `writerWrapText` in `WriterOptions` from
11653 `Bool` to `WrapOption`.
11654 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
11655 + Supported `SoftBreak` in readers and writers.
11657 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
11658 change, Mauro Bieg).
11660 * Added `--dpi` command-line option (Mauro Bieg).
11662 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
11663 This change makes `--no-tex-ligatures` affect the LaTeX reader
11664 as well as the LaTeX and ConTeXt writers. If it is used,
11665 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
11666 literally, rather than parsing ligatures for quotation marks
11667 and dashes. And the LaTeX writer will print unicode quotation
11668 mark and dash characters literally, rather than converting
11669 them to the standard ASCII ligatures. Note that `--smart` has
11670 no effect on the LaTeX reader. `--smart` is still the default
11671 for all input formats when LaTeX or ConTeXt is the output format,
11672 *unless* `--no-tex-ligatures` is used.
11674 Some examples to illustrate the logic:
11676 ```
11677 % echo "'hi'" | pandoc -t latex
11678 `hi'
11679 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
11680 'hi'
11681 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
11682 ‘hi’
11683 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
11684 <p>'hi'</p>
11685 % echo "'hi'" | pandoc -f latex
11686 <p>’hi’</p>
11687 ```
11689 * Removed deprecated options `--offline` and `--html5`.
11691 * Fixed language code for Czech (`cs` not `cz`) (#2597).
11693 * Implemented `east_asian_line_breaks` extension (#2586).
11694 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
11695 to `Extension` (API change). This extension is like
11696 `ignore_line_breaks`, but smarter -- it only ignores line breaks
11697 between two East Asian wide characters. This makes it better suited
11698 for writing with a mix of East Asian and non-East Asian scripts.
11700 * Added support for PDF creation via `wkhtmltopdf`.
11701 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
11702 if you have math.) Margins can be set using the variables
11703 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
11704 Other styling can be done through CSS.
11706 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
11707 We were capturing final colons as in `[@foo: bar]`; the citation id
11708 was being parsed as `@foo:`.
11710 * ICML writer:
11712 + Fixed image syntax for local files (#2589).
11713 + Changed type of `writeICML` (Mauro Bieg).
11714 API change: It is now `WriterOptions -> Pandoc -> IO String`.
11715 Also handle new image attributes.
11716 + Intersperse line breaks instead of appending them to
11717 every `ParagraphStyleRange` (Mauro Bieg, #2501).
11718 + Add `Cite` style to citations (Mauro Bieg).
11719 + Added figure handling (#2590, Mauro Bieg).
11720 + Better handling of math. Instead of just printing the raw tex,
11721 we now try to fake it with unicode characters.
11723 * HTML writer: Include `example` class for example lists (#2524).
11725 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
11727 + Support for percentage widths/heights
11728 + Use `Attr` instead of title to get dimensions from ODT walker
11729 to `writeOpenDocument`.
11731 * AsciiDoc writer:
11733 + Support anchors in spans and divs with id elements
11734 (jgm/pandoc-citeproc#143).
11735 + Fixed code blocks (#1861).
11737 * Haddock writer: omit formatting inside links, which isn't supported
11738 by Haddock (#2515).
11740 * MediaWiki writer: Fixed spacing issues in table cells.
11742 + Start cell on new line unless it's a single Para or Plain
11743 (#2606).
11744 + For single Para or Plain, insert a space after the `|` to
11745 avoid problems when the text begins with a character like
11746 `-` (#2604).
11748 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
11750 * LaTeX writer:
11752 + Add support for GAP highlighting using listings (Raniere Silva).
11753 + Consider `header-includes` content as well as templates
11754 when determining whether to use csquotes (Andreas Lööw).
11755 + Create defaults for geometry using `margin-left` etc.
11756 If `geometry` has no value, but `margin-left`, `margin-right`,
11757 `margin-top`, and/or `-margin-bottom` are given, a default value
11758 for `geometry` is created from these. Note that these variables
11759 already affect PDF production via HTML5 with `wkhtmltopdf`.
11761 * ConTeXt writer: set default layout based on `margin-left`, etc.
11762 This sets up `\setuplayout` based on the variables `margin-left`,
11763 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
11764 is given.
11766 * Docx writer: better handling of PDF images. Previously we tried
11767 to get the image size from the image even if an explicit size was
11768 specified. Since we still can't get image size for PDFs, this made
11769 it impossible to use PDF images in docx. Now we don't try to get
11770 the image size when a size is already explicitly specified.
11772 * Markdown writer: use raw HTML for link/image attributes when
11773 the `link_attributes` extension is unset and `raw_html` is set (#2554).
11775 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
11777 * LaTeX reader:
11779 + Improved smart quote parsing (#2555). This fixes redering of
11780 unmatched quotes.
11781 + Use curly quotes for unmatched ` (#2555).
11782 + Allow blank space between braced arguments of commands (#2592).
11784 * Markdown reader:
11786 + Improved pipe table relative widths. Previously pipe table
11787 columns got relative widths (based on the header underscore lines)
11788 when the source of one of the rows was greater in width than the
11789 column width. This gave bad results in some cases where much of
11790 the width of the row was due to nonprinting material (e.g. link
11791 URLs). Now pandoc only looks at printable width (the width of a
11792 plain string version of the source), which should give better results.
11793 Thanks to John Muccigrosso for bringing up the issue.
11794 + Fixed parsing bug with macros. Previously macro definitions in
11795 indented code blocks were being parsed as macro definitions, not code.
11797 * Textile reader: skip over attribute in image source (#2515).
11798 We don't have a place yet for styles or sizes on images, but
11799 we can skip the attributes rather than incorrectly taking them
11800 to be part of the filename.
11802 * Docx reader: Handle dummy list items (Jesse Rosenthal).
11803 These come up when people create a list item and then delete the
11804 bullet. It doesn't refer to any real list item, and we used to ignore
11805 it.
11807 * CommonMark reader/writer rewritten to use latest `cmark`.
11809 * Fixed Emoji character definitions (#2523). There were many bugs in the
11810 definitions.
11812 * `Text.Pandoc.CSS`:
11814 + Added `pickStylesToKVs` function to extract multiple properties at
11815 once (API change, Mauro Bieg).
11816 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
11818 * `trypandoc`: sort drop-down lists.
11820 * Beamer template:
11822 + Made `\euro` conditional on presence of character.
11823 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
11824 + Moved `header-includes` before setting of title (Thomas Hodgson),
11825 to match the LaTeX template (jgm/pandoc-templates#168).
11826 + Added `section-titles` variable (defaults to true)
11827 to enable/suppress section title pages in beamer
11828 slide shows (Thomas Hodgson).
11829 + Moved beamer themes after fonts, so that themes can
11830 change fonts. (Previously the fonts set were being
11831 clobbered by lmodern.sty.) (Thomas Hodgson).
11833 * Beamer/LaTeX template changes (Thomas Hodgson):
11834 + Added `thanks` variable
11835 + Use `parskip.sty` when `indent` isn't set (fall back to using
11836 `setlength` as before if `parskip.sty` isn't available).
11837 + Use `biblio-style` with biblatex.
11838 + Added `biblatexoptions` variable.
11840 * LaTeX template changes:
11842 + Added `paper` after `$papersize$` variable in latex template.
11843 Thus you can say `papersize: a4` and the latex will contain
11844 `a4paper`. This change may break some existing workflows; if
11845 you currently specify `a4paper`, you'll get `a4paperpaper` which
11846 is meaningless. However, the change seems worth it, as it will
11847 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
11848 and html->pdf via wkhtmltopdf.
11849 + Only pass options to color package if `colorlinks` is set
11850 (Andrew Dunning).
11851 + Make definition of `\euro` conditional in xelatex/lualatex,
11852 as it is already for pdflatex (Andrew Dunning).
11853 + Removed setting of `subject` in PDF metadata.
11854 This used to be set to the subtitle, but really the subtitle
11855 need not give the subject. Also, `subtitle` can contain formatting,
11856 so we'd need, at least, a plain text version for this.
11857 + Moved `header-includes` before setting of `\title`, `\author`,
11858 etc. This allows these macros to be redefined.
11859 + Use `\subtitle` command for `subtitle`, instead of tacking it
11860 on to the title as before. We give a no-op fallback definition if it
11861 is not defined. This change should produce much better results
11862 in classes that support `\subtitle`. With the default article
11863 class, which does not define `\subtitle`, subtitles will no
11864 longer be printed unless the user defines `\subtitle` and
11865 redefines `\maketitle`.
11866 + Moved redefinitions of `\paragraph` and `\subparagraph` to
11867 before header-includes.
11869 * Context template:
11871 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
11872 needed for things to work on ConTeXt stable from TeXLive 2015.
11873 + Revert use of `\setuphead` in title block (Andrew Dunning,
11874 Rik Kabel).
11876 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
11878 * Fixed man template so disabling hyphenation actually works.
11879 The command needs to come after .TH.
11881 * Added 'navigation' variable to beamer template (#2543).
11882 Valid values are `empty` (the default), `horizontal`, `vertical`,
11883 and `frame`. Note that this changes the default behavior from
11884 `horizontal` to `empty`. Closes #2543.
11886 * Added `toc` to HTML slide format templates (Andrew Dunning),
11887 so that `--toc` creates a contents slide.
11889 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
11891 * Allow pipe tables with no body rows (#2556).
11892 Previously this raised a runtime error.
11894 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
11895 as URL. The Haskell URI parsing routines will accept "C:" as a
11896 scheme, so we rule that out manually. This helps with
11897 `--self-contained` and absolute Windows paths.
11899 * Define a `meta-json` variable for all writers (#2019). This contains
11900 a JSON version of all the metadata, in the format selected for the
11901 writer. So, for example, to get just the YAML metadata, you can run
11902 pandoc with the following custom template: `$meta-json$`. The intent
11903 is to make it easier for static site generators and other tools to get
11904 at the metadata.
11906 * Document limitations of --self-contained (#2553).
11908 * Improved Citations section of README (#2551). Added information
11909 about `link-citations` and a link to the pandoc-citeproc man page.
11911 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
11912 in base < 4.6.
11914 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
11916 * Improved implicit pandoc-citeproc inclusion.
11917 The filter pandoc-citeproc is automatically used when
11918 `--bibliography` is specified on the command line, unless
11919 `--natbib` or `--biblatex` is used. However, previously this
11920 only worked if `--bibliography` was spelled out in full, and not
11921 if `--biblio` was used.
11923 * reveal.js: Interpret pauses correctly for all headers (#2530).
11924 Previously, when using headers below the slide level, pauses are left
11925 uninterpreted into pauses. In my opinion, unexpected behavior but
11926 intentional looking at the code.
11928 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
11930 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
11931 Bieg, API change).
11933 * ImageSize: Added functions for converting between image dimensions
11934 (Mauro Bieg).
11936 * Use lts-3.18 in stack.yaml. This avoids Windows build
11937 issues with the HTTP library.
11939 * Bump version bounds for dependencies.
11941## pandoc 1.15.2.1 (2015-11-16)
11943 * Added two missing test files, and `stack.yaml`, to
11944 `extra-source-files` so they're included in the source tarball.
11946 * reveal.js template: Fixed parallaxBackground options.
11947 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
11948 need integer values, not strings. (Vaughn Iverson)
11950## pandoc 1.15.2 (2015-11-15)
11952 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
11953 ConTeXt rather than LaTeX (#2463).
11955 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
11957 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
11958 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
11959 (API change).
11961 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
11962 parsing (#2469). Tightened up the inline HTML parser so it disallows
11963 TagWarnings.
11965 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
11967 * Org reader:
11969 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
11970 Paragraphs can be followed by lists, even if there is no blank line
11971 between the two blocks. However, this should only be true if the
11972 paragraph is not within a list, were the preceding block should be
11973 parsed as a plain instead of paragraph (to allow for compact lists).
11974 Thanks to @rgaiacs for bringing this up.
11975 + Allow toggling header args (Albert Krewinkel, #2269).
11976 Org-mode allows to skip the argument of a code block header argument if
11977 it's toggling a value. Argument-less headers are now recognized,
11978 avoiding weird parsing errors.
11979 + Fix markup parsing in headers (Albert Krewinkel, #2504).
11980 Markup as the very first item in a header wasn't recognized. This was
11981 caused by an incorrect parser state: positions at which inline markup
11982 can start need to be marked explicitly by changing the parser state.
11983 This wasn't done for headers. The proper function to update the state
11984 is now called at the beginning of the header parser, fixing this issue.
11985 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
11986 Smart quotes, ellipses, and dashes should behave like normal quotes,
11987 single dashes, and dots with respect to text markup parsing.
11988 + Require whitespace around definition list markers (#2518).
11989 This rule was not checked before, resulting in bugs with footnotes
11990 and some link types.
11992 * Markdown reader:
11994 + Pipe tables with long lines now get relative cell widths (#2471).
11995 If a pipe table contains a line longer than the column width (as set by
11996 `--columns` or 80 by default), relative widths are computed based on the
11997 widths of the separator lines relative to the column width. This should
11998 solve persistent problems with long pipe tables in LaTeX/PDF output, and
11999 give more flexibility for determining relative column widths in other
12000 formats, too. For narrower pipe tables, column widths of 0 are used,
12001 telling pandoc not to specify widths explicitly in output formats that
12002 permit this.
12003 + Improved parser for `mmd_title_block`. We now allow blank metadata
12004 fields. These were explicitly disallowed before.
12005 + Citation keys can now contain `://`, so URLs and DOIs can be used
12006 as citation keys (jgm/pandoc-citeproc#166).
12008 * Beamer template: fix incompatibility of section slides with natbib.
12009 Natbib (and presumably biblatex) bibliography commands create
12010 their own section. Since these are in frame environments,
12011 we have an incompatibility with the `\AtBeginSection` macro
12012 which creates a special frame when a new section occurs.
12013 (We can't have a frame inside another frame.) This change disables
12014 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
12015 bringing the problem to my attention. This supersedes #145. See
12016 discussion there.
12018 * Textile reader: don't do smart punctuation unless explicitly asked
12019 (#2480). Note that although smart punctuation is part of the textile
12020 spec, it's not always wanted when converting from textile
12021 to, say, Markdown. So it seems better to make this an option.
12023 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
12024 The `comment` environment is handled in a similar way to the
12025 `verbatim` environment, except that its content is discarded.
12027 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
12028 Jesse Rosenthal). This fixes a problem with links in notes.
12030 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
12031 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
12032 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
12033 already. See #895.
12035 * LaTeX writer:
12037 + Use proper command for `\textarabic` (mb21).
12038 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
12039 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
12040 to link to Div or Span elements. We now don't bother defining `\label`
12041 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
12042 + Avoid footnotes in list of figures (#1506).
12043 + Properly handle footnotes in captions (#1506).
12044 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
12045 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
12046 `toccolor` is set (#2508).
12048 * Textile writer: support start number in ordered lists (#2465).
12050 * OpenDocument writer: Allow customization of opendocument
12051 automatic styles. Automatic styles can now be inserted in the
12052 template, which now provides the enclosing `<office:automatic-styles>`
12053 tags (#2520).
12055 * Docx writer: insert space between footnote reference and note (#2527).
12056 This matches Word's default behavior.
12058 * EPUB writer: don't download linked media when `data-external` attribute
12059 set (#2473). By default pandoc downloads all linked media and includes it
12060 in the EPUB container. This can be disabled by setting `data-external` on
12061 the tags linking to media that should not be downloaded. Example:
12063 <audio controls="1">
12064 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
12065 type="audio/mpeg"></source>
12066 </audio>
12068 * HTML writer: use width on whole table if col widths sum to < 100%.
12069 Otherwise some browsers display the table with the columns
12070 separated far apart.
12072 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
12073 `abstract` (Andrew Dunning).
12075 * HTML-based templates (Andrew Dunning):
12077 + Use en dash instead of hyphen between title prefix and title.
12078 + Add `keywords` to metadata.
12079 + Add `lang`, `dir`, `quotes` where missing.
12080 + Always make author and date display conditional.
12081 + Updated dzslides template from source.
12083 * Man template: make "generated by" comment conditional.
12085 * LaTeX, Beamer templates:
12087 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
12088 filled by commands that make babel understand the polyglossia-style
12089 language directives (mb21, #137).
12090 + Improved formatting of conditionals; `$for$` is always provided to allow
12091 multiple options (Andrew Dunning, #141).
12092 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
12093 to improve support for LuaTeX (Andrew Dunning, #135).
12094 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
12095 - use same options for all LaTeX engines;
12096 - add `subtitle` and `keywords` to PDF metadata;
12097 - do not override `hyperref` link coloring without user input, effectively making
12098 the `hidelinks` option the default (removed as a separate variable);
12099 - link colors can be enabled (using a slightly darker version of the old
12100 defaults) using a new `colorlinks` variable, automatically used by
12101 the LaTeX writer when custom colors are specified;
12102 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
12103 `colorlinks`, and is only applied if `colorlinks` is disabled.
12105 * ConTeXt template (Andrew Dunning):
12107 + New variables for controlling styles: `linkstyle`, `linkcolor`,
12108 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
12109 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
12110 `monofont`, `mathfont`, `fontsize`.
12111 + Default template no longer supports MkII.
12112 + Improve writing of title block (suppressing numbering of first page).
12113 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
12114 + Support `subtitle`, `abstract`.
12115 + Support list of figures (`lof`), list of tables (`lot`).
12116 + Disable link styling by default.
12117 + Define styles for all section types.
12118 + Enable microtype.
12119 + Improved formatting of conditionals.
12121 * Beamer template: added code to prevent slide breaks inside paragraphs
12122 (#2422, thanks to Nick Bart). This will matter, in practice, only when
12123 `allowframebreaks` is used. It is especially helpful for bibliography
12124 slides.
12126 * OpenDocument template: Add `<office:automatic-styles>` tag around
12127 automatic styles. The writer now longer provides this (see #2520).
12129 * Restored Text.Pandoc.Compat.Monoid.
12131 * Do not export (<>) from custom Prelude. The Prelude now matches
12132 base 4.8 Prelude's API.
12134 * Don't use custom prelude with ghc 7.10. Use the custom prelude
12135 only for earlier versions. This change makes `stack ghci` and
12136 `cabal repl` work (#2503), at least with ghc 7.10.
12138 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
12139 This prevents problems building haddocks with "C" locale.
12141 * Change default for old-locale flag to False.
12143 * Use stack in deb, osx, and Windows package generators.
12145 * Added Vagrantfile for building deb in vm.
12146 This should help in automating binary package creation. 'make package'
12147 will make the package. 'make package COMMIT=blah' will make the package
12148 from commit blah.
12150 * README:
12152 + Consistent capitalization for pandoc and Markdown.
12153 + Fixed `auto_identifiers` examples (Benoit Schweblin).
12154 + Improved documentation of template variables (Andrew Dunning).
12156## pandoc 1.15.1 (2015-10-15)
12158 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
12159 and reexported from `Text.Pandoc` (Alex Vong). This allows
12160 writers to access it. (Alex Vong) (API change)
12162 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
12163 `subscripts` (#2401).
12165 * Added `odt` as input format (MarLinn). Added new module
12166 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
12167 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
12168 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
12169 Partly implemented features: Citations, Tables.
12171 * Markdown Reader:
12173 + Add basic tests for each header style (Ophir Lifshitz).
12174 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
12175 + Skip spaces in headers (Ophir Lifshitz).
12176 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
12177 `# Header {id="myid" class="foo bar"}`
12178 is now equivalent to `# Header {#myid .foo .bar}`.
12179 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
12180 (Kristof Bastiaensen)
12181 + Pipe tables: allow indented columns. Previously the left-hand column
12182 could not start with 4 or more spaces indent. This was inconvenient
12183 for right-aligned left columns. Note that the first (header column)
12184 must still have 3 or fewer spaces indentation, or the table will be
12185 treated as an indented code block.
12186 + Fix regression: allow HTML comments containing `--`.
12187 Technically this isn't allowed in an HTML comment, but
12188 we've always allowed it, and so do most other implementations.
12189 It is handy if e.g. you want to put command line arguments
12190 in HTML comments.
12192 * LaTeX reader:
12194 + Don't eat excess whitespace after macros with only optional
12195 arguments (#2446).
12196 + Support longtable (#2411).
12197 + Implement `\Cite` (#2335).
12198 + Support abstract environment. The abstract populates an
12199 `abstract` metadata field.
12200 + Properly handle booktabs lines. Lines aren't part of the
12201 pandoc table model, so we just ignore them (#2307).
12203 * HTML reader:
12205 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
12206 + Updated for new automatic header attributes.
12207 + Add auto identifiers if not present on headers. This makes
12208 TOC linking work properly.
12209 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
12210 + Test `<ol>` type, class, and inline list-style(-type) CSS
12211 (Ophir Lifshitz).
12212 + Better handling of "section" elements (#2438). Previously
12213 `<section>` tags were just parsed as raw HTML blocks. With
12214 this change, section elements are parsed as Div elements with
12215 the class "section".
12217 * MediaWiki reader: handle unquoted table attributes (#2355).
12219 * DocBook reader:
12221 + Added proper support for DocBook `xref` elements (Frerich Raabe).
12222 Added `dbContent` field to reader state, so we can lookup
12223 cross refs.
12224 + Handle `informalexample` (#2319).
12226 * Docx Reader:
12228 + Create special punctuation test (Ophir Lifshitz).
12229 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
12230 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
12231 in `headers.docx` with pandoc's current `styles.xml`, which
12232 contains styles for Heading 1 through 6. Added Heading 4
12233 through 7 to the test document. Note that Heading 7 is not
12234 parsed as a Heading because there is no Heading 7 style.
12236 * RST reader: better handling of indirect roles.
12237 Previously the parser failed on this kind of case
12239 .. role:: indirect(code)
12241 .. role:: py(indirect)
12242 :language: python
12244 :py:`hi`
12246 Now it correctly recognizes `:py:` as a code role.
12248 * Org reader:
12250 + Add auto identifiers if not present on headers
12251 (#2354, Juliusz Gonera).
12252 + Allow verse blocks to contain empty lines (#2402,
12253 Albert Krewinkel).
12255 * EPUB reader: stop mangling external URLs (#2284).
12257 * RST writer:
12259 + Don't insert `\ ` when complex expression in matched pairs.
12260 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
12261 + Ensure that `\ ` is inserted when needed before Cite and Span
12262 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
12263 + Normalize headers only in "standalone" mode (#2394).
12265 * Haddock writer: escape `*` and `^` (G. Bataille).
12267 * Markdown writer:
12269 + In TOC, add links to headers (#829).
12270 + Use unicode super/subscripts for digits in plain output
12271 (when the `superscripts` and `subscripts` extensions are
12272 not enabled).
12274 * Docx writer:
12276 + Moved invalid character stripping to `formattedString`.
12277 This avoids an inefficient generic traversal (#2356).
12278 + Use user data directory for `reference.docx` archive.
12279 This allows the test suite to work without installing pandoc first.
12280 It also brings the docx writer in line with the odt writer.
12281 + Tests: docx writer tests now use `../data` for data directory.
12282 This allows tests to be run without installing first.
12283 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
12285 * LaTeX writer:
12287 + Fixed detection of 'chapters' from template.
12288 If a documentclass isn't specified in metadata, but the
12289 template has a hardwired bookish documentclass, act as if
12290 `--chapters` was used. This was the default in earlier
12291 versions, but it has been broken for a little while.
12292 + Correctly recognize book documentclass in metadata (#2395).
12293 + Set language-related variables automatically, depending
12294 on the value of the `lang` field, which is now always
12295 assumed to be in BCP47 format (mb21, #1614, #2437).
12296 + Add `\protect` to `\hyperdef` in inline context. This way we
12297 don't get an error when this is used as a moveable argument (#2136).
12298 + Support all frame attributes in Beamer.
12299 + Percent-encode more special characters in URLs (#1640, #2377).
12300 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12302 * HTML writer:
12304 + Update KaTeX JS and CSS versions (Emily Eisenberg).
12305 + For dzslides, add `role="note"` for speaker notes (#1693).
12306 + Percent-encode more special characters in URLs (#1640, #2377).
12307 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12308 + Render Div with class `section` as `<section>` in HTML5.
12310 * EPUB writer:
12312 + In TOC, replace literal `<br/>` with space (#2105).
12313 + With `--webtex`, include image file rather than `data:` URI (#2363).
12315 * Native writer: format Div properly, with blocks separated.
12317 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
12318 (#2191, mb21).
12320 * Reference Docx:
12322 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
12323 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
12325 * Templates
12327 + Beamer: Add `innertheme`, `outertheme` variables
12328 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
12329 Integrate recent font and language updates from LaTeX template;
12330 allow use of `mainfont` variable for changing the slide text
12331 in XeTeX and LuaTeX (Andrew Dunning, #131).
12332 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
12333 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
12334 (Andrew Dunning, #122). Support handling of bidirectional
12335 text (mb21, #120). Improve reliability of superscripts/subscripts
12336 under XeTeX and prevent letters and numbers from appearing on a
12337 different baseline by removing use of the `realscripts` package
12338 (via `xltxtra`). To restore use of OpenType characters for these
12339 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
12340 `header-includes` (Andrew Dunning, #130). Remove redundant
12341 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
12342 `indent`, `subparagraph` variables (Andrew Dunning).
12343 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
12344 #113). Prevent package clash with `tufte-latex` and other classes that
12345 include `hyperref` or `color` (Xavier Olive, #115).
12346 + ConTeXt: Support handling of bidirectional text (mb21, #120).
12347 + LaTeX and ConTeXt: Use more specific language variables.
12348 Instead of directly using `lang`, we now use `babel-lang` and
12349 `polyglossia-lang` and `context-lang`. These variables are set by
12350 the writers to the necessary values, based on the `lang` variable
12351 (which now always takes a value in BCP47 format). (mb21, #114, #129).
12352 + HTML: Support handling of bidirectional text (mb21, #120).
12353 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
12354 Add dir attribute in html5 (Andrew Dunning).
12355 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
12356 Add `width`, `height` variables (Anrew Dunning). Update template
12357 from 3.1 source (Andrew Dunning). All configuration options are now
12358 available as variables, but are only be included if set (reveal.js
12359 uses defaults otherwise).
12360 + man: Added comment stating that the page is autogenerated by pandoc,
12361 giving version. Added `adjusting` and `hyphenate` variables
12362 (Alex Vong, #123).
12364 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
12366 * MediaBag: ensure that `/` is always used as path separator.
12368 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
12370 * Added `--bash-completion` option. This generates a bash completion
12371 script. To use: `eval "$(pandoc --bash-completion)"`.
12373 * Text.Pandoc.Error: Define Typeable and Exception instances
12374 for PandocError (#2386).
12376 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
12377 This makes keys with extra space at the beginning and end
12378 work: e.g.
12380 [foo]: bar
12382 [ foo ]
12384 will now be a link to bar (it wasn't before).
12386 * Text.Pandoc: disable `auto_identifiers` for epub.
12387 The epub writer inserts its own auto identifiers;
12388 this is more complex due to splitting into "chapter" files.
12390 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
12391 It now reexports Data.Time.
12393 * Use custom Prelude to avoid compiler warnings.
12395 + The (non-exported) prelude is in prelude/Prelude.hs.
12396 + It exports Monoid and Applicative, like base 4.8 prelude,
12397 but works with older base versions.
12398 + It exports (<>) for mappend.
12399 + It hides 'catch' on older base versions.
12401 * Added a `stack.ymal` and stack install instructions to INSTALL.
12403 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
12405 * Added note to CONTRIBUTING.md about ghc versions and travis.
12407 * Clarify docs on block quotes. The space after `>` is optional (#2346).
12409 * Removed obsolete reference to default.csl (#2372).
12411 * List all styles in manual for `--reference-docx` (Chris Black)
12413 * Don't capitalize header links in man page.
12415 * Added section on repl to CONTRIBUTING.md.
12417 * README: Added space after backslash in image example (#2329).
12419 * Document details of citation locator terms (Nick Bart).
12421 * Fixed some internal links in README (#2309).
12423 * Improve CSL documentation, variables documentations,
12424 links, and cross-references in README. (Andrew Dunning)
12426 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
12428 * Use `newManager` instead of `withManager` in recent `http-client`.
12429 This avoids a deprecation warning.
12431 * Allow building with latest versions of http-types,
12432 HUnit, criterion, syb, aeson.
12434 * Updated benchmark program for new criterion API.
12436 * Setup.hs: rewrite so as not to use process, directory, filepath.
12437 Using anything outside base is dangerous, since older
12438 versions of ghc may link against two different versions.
12440 * Added appveyor (Windows continuous integration) builds.
12442 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
12443 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
12444 `make .travis.yml` regenerates it based on the tested-with
12445 field of the cabal file.
12447## pandoc 1.15.0.6 (2015-07-15)
12449 * `--self-contained`: Fixed overaggressive CSS minimization
12450 (#2301, 2286). Previously `--self-contained` wiped out all
12451 spaces in CSS, including semantically significant spaces.
12452 This was a regression from 1.14.x.
12454 * Markdown reader: don't allow bare URI links or autolinks in link
12455 label (#2300). Added test cases.
12457 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
12458 Previously we disallowed `-` at the end of an autolink,
12459 and disallowed the combination `=-`. This commit liberalizes the
12460 rules for allowing punctuation in a bare URI, and adds test cases.
12461 One potential drawback is that you can no longer put a bare
12462 URI in em dashes like this:
12463 `this uri---http://example.com---is an example.`
12464 But in this respect we now match github's treatment of bare URIs.
12466 * HTML writer: support speaker notes in dzslides.
12467 With this change `<div class="notes">` and also `<div class="notes"
12468 role="note">` will be output if `-t dzslides` is used. So we can
12469 have speaker notes in dzslides too. Thanks to maybegeek.
12471 * Updated dzslides template.
12473 * Improved documentation of options to print system default files (#2298).
12474 `--print-default-data-file` and `--print-default-template`.
12476 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
12477 (Tiziano Müller). MathJax seems currently to be the only maintained
12478 math rendering extension for DokuWiki.
12480 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
12481 div as top-level header (#2294). This fixes a bug with `--section-divs`,
12482 where the final references section added by pandoc-citeproc, enclosed in
12483 its own div, got nested in the div for the section previous to it.
12485 * Allow vector 0.11.
12487 * Require cmark > 0.4.
12489## pandoc 1.15.0.5 (2015-07-10)
12491 * HTML writer: Fixed email javascript obfuscation with `mailto:`
12492 URLs (#2280). This fixes a potential security issue. Because
12493 single quotes weren't being escaped in the link portion, a
12494 specially crafted email address could allow javascript code injection.
12496 * RST reader: allow inline formatting in definition list field
12497 names (Lars-Dominik Braun).
12499 * PDF: Make sure `--latex-engine-opt` goes before the filename
12500 on the command line. LaTeX needs the argument to come after
12501 the options (#1779).
12503 * CommonMark writer: fixed tags used for super/subscript.
12505 * ConTeXt template: activate hanging indent for definition lists
12506 (mb21).
12508 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
12509 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
12510 to include `hsb2hs` in Build-Tools in cabal.
12512 * Improved Windows installer (thanks to nkalvi).
12514 + When per-machine installation is chosen, the system path
12515 is updated instead of the user's.
12516 + An appropriate default is used for per-machine installation
12517 directory.
12518 + Admin privileges are no longer required for a per-user install
12520 * Travis: unpack sdist for build to catch packaging bugs.
12522 * Improved documentation on where user templates go (#2272).
12524## pandoc 1.15.0.4 (2015-07-03)
12526 * Added pandoc.1 man page to the repository. It is no longer
12527 built as part of the cabal build process. (This proved too
12528 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
12529 when `README` is changed.
12531 * Copying of the man page now respects `--destdir` (#2262).
12533 * Improved error messages for filters. User is now informed if
12534 the filter requires an interpreter that isn't found in the path,
12535 or if the filter returns an error status.
12537## pandoc 1.15.0.3 (2015-07-02)
12539 * Ensure target directory is created when installing man page.
12541## pandoc 1.15.0.2 (2015-07-02)
12543 * Added files needed for building man page to Extra-Source-Files.
12545## pandoc 1.15.0.1 (2015-07-01)
12547 * Man page is now built and installed as part of the cabal build
12548 process. Removed Makefile target for man page.
12550## pandoc 1.15 (2015-07-01)
12552 * Man page changes:
12554 + Removed `--man1`, `--man5` options (breaking change).
12555 + Removed `Text.Pandoc.ManPages` module (breaking API change).
12556 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
12557 create the man page from README using a custom template and filters.
12558 + Added `man/` directory with template and filters needed to build
12559 man page.
12560 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
12561 Now there is just pandoc.1, which has all the content from README.
12562 This change was needed because of the extensive cross-references
12563 between parts of the README.
12564 + Removed old `data/pandoc.1.template` and
12565 `data/pandoc_markdown.5.template`.
12567 * OpenDocument writer: Do not add a carriage return after a hard
12568 line break (Michael Chladek).
12570 * ConTeXt writer:
12572 + use `\goto` for internal links.
12573 + Added a `%` at end for `\reference` to avoid spurious space.
12575 * Ignore sandbox on 'make quick'
12577## pandoc 1.14.1 (2015-06-30)
12579 * Added `--man1` and `--man5` options to pandoc, allowing
12580 pandoc to generate its own man pages. Man pages are no longer
12581 automatically generated in the build process (the process for
12582 this was too complex and prone to failure, #2190). The
12583 `make-pandoc-man-pages` executable has been removed. The
12584 `man/` directory has been removed, and man page templates
12585 have been moved to `data/`. NOTE TO PACKAGERS: You will no
12586 longer find pandoc's man pages in `man/`, but you can
12587 generate them using `pandoc --man1 > pandoc.1` and `pandoc
12588 --man5 > pandoc_markdown.5`.
12590 * Added new unexported module: `Text.Pandoc.ManPages`.
12592 * `README` now acts like a data file (even though it isn't in
12593 `data/`). So, for example, `pandoc --print-default-data-file README`
12594 will produce the README.) This change was required for the `--man1`
12595 and `--man5` options, since the man pages are produced from the
12596 README, but it may be useful for other purposes as well.
12598 * Allow `reference.docx` and `reference.odt` to be used with
12599 `--print-default-data-file` and to shadow defaults if placed in
12600 the user data directory. Note that as of 1.14, we no longer
12601 include these files as data files; instead, we include their
12602 components. This change causes pandoc to behave as if it has
12603 these data files; they are constructed on demand when needed
12604 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
12606 * Fixed regression in CSS parsing with `--self-contained` (#2224).
12607 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
12608 silently drops big sections of CSS. This commit replaces the
12609 use of css-text with a small but principled CSS preprocessor,
12610 which removes whitespace and comments and replaces `url()` with
12611 base 64 data when possible.
12613 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
12614 This will allow math to work when pages are being viewed locally.
12616 * `Text.Pandoc.Options`: Export `plainExtensions`.
12617 These are the extensions used in `plain` output.
12619 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
12620 math mode; treat them as regular inline text. Normally these will
12621 cause an error in LaTeX, but there are contexts (e.g. `alltt`
12622 environments) where they are allowed.
12624 * HTML reader: allow `<body>` to close `<head>`.
12626 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
12628 * RST reader: Fix reference names with special characters
12629 (Lars-Dominik Braun).
12631 * Textile writer: escape `+` and `-` as entities (#2225).
12633 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
12635 * Plain writer: don't use symbols for super/subscript (#2237).
12636 Simplified code by using `plainExtensions`.
12638 * InDesign writer: Properly escape URLs containing more than one
12639 colon character (gohai).
12641 * Docx writer: Make sure we use dist version of `reference.docx`
12642 (and not the user's version) for certain settings. Taking some
12643 settings values from a user-supplied reference.docx can lead to
12644 corruption. This fixes a regression from the last release (#2249).
12646 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
12647 `getDefaultReferenceODT` (API change). These functions have been
12648 removed from the Docx and ODT writers.
12650 * LaTeX template (Xavier Olive):
12651 + Added `CJKmainfont` and `CJKoptions` variables.
12652 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
12654 * Epub templates: use `author.role`, not `author.type`.
12656 * Bump cmark version to >= 0.3.4.
12658 * Improved Windows installer (#2205, thanks to nkalvi).
12659 Users can now select a per-user or systemwide install, and can set
12660 the installation path. At the end of installation, the install location
12661 is given. The install location is also now given in the list of
12662 installed programs in Control Panel. Cleaner WiX syntax is used for
12663 setting the path.
12665 * Added `download_stats` target to Makefile.
12667## pandoc 1.14.0.4 (2015-06-02)
12669 * Added missing commonmark template.
12671 * Improved try pandoc (moved button, show raw command).
12673## pandoc 1.14.0.3 (2015-06-01)
12675 * Allow compilation with syb 0.5.*.
12677 * Custom writer: fixed some compiler warnings for ghc < 7.10.
12679## pandoc 1.14.0.2 (2015-05-31)
12681 * Allow building with hslua 0.4.
12683## pandoc 1.14.0.1 (2015-05-28)
12685 * Fixed problem with building of `reference.docx` and `reference.odt`
12686 when the `embed_data_files` flag is used. Instead of having a phase
12687 of the build where `reference.docx` and `reference.odt` are created
12688 from their constituent data files, we now construct these archives
12689 from their constituents when a `docx` or `odt` is built. The
12690 constituent files have been moved from `extra-source-files` to
12691 `data-files`, and `reference.docx` and `reference.odt` have been
12692 removed. Users can create their own `reference.docx` or
12693 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
12694 `make-reference-files.hs` has been removed, simplifying the build
12695 process (#2187)
12697 * Don't include generated man pages in extra-source-files (#2189).
12699 * Bumped upper bound for aeson.
12701 * ConTeXt writer: create internal link anchors for Div elements with
12702 identifiers. (This is needed for linked citations to work.)
12704## pandoc 1.14 (2015-05-27)
12706### New features
12708 * Added `commonmark` as input and output format.
12710 * Added `--verbose` flag for debugging output in PDF production (#1840,
12711 #1653).
12713 * Allow wildcards in `--epub-embed-font` arguments (#1939).
12715 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
12717 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
12718 This is enabled by default for those markdown flavors that
12719 support reading shortcut reference links, namely: `markdown`,
12720 `markdown_strict`, `markdown_github`, `markdown_php`.
12721 If the extension is enabled, the reader parses shortcut reference
12722 links like `[foo]`, and the writer creates such links unless doing
12723 so would cause problems. Users of markdown flavors that support
12724 shortcut reference links should not notice a difference in reading
12725 markdown, but the markdown pandoc produces may differ.
12726 If shortcut links are not desired, the extension can be disabled
12727 in the normal way.
12729### Behavior changes
12731 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
12732 A "dirty" TOC is created at the beginning of document.
12733 It can be regenerated after the document has been opened.
12735 * An implicit `--filter pandoc-citeproc` is now triggered only when the
12736 `--bibliography` option is used, and not when the `bibliography`
12737 field in metadata is specified (#1849).
12739 * Markdown reader:
12741 + Reference links with `implicit_header_references` are no longer
12742 case-sensitive (#1606).
12743 + Definition lists no longer require indentation for first line (#2087).
12744 Previously the body of the definition (after the `:` or `~` marker)
12745 needed to be in column 4. This commit relaxes that requirement,
12746 to better match the behavior of PHP Markdown Extra. So, now
12747 this is a valid definition list:
12749 foo
12750 : bar
12751 + Resolve a potentially ambiguity with table captions:
12753 foo
12755 : bar
12757 -----
12758 table
12759 -----
12761 Is "bar" a definition, or the caption for the table? We'll count
12762 it as a caption for the table.
12763 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
12764 Markdown Extra. Note: If you have been using headerless pipe tables,
12765 this change may cause existing tables to break.
12766 + Allow pipe tables with header but no body (#2017).
12767 + Allow a digit as first character of a citation key (Matthias Troffaes).
12768 See https://github.com/jgm/pandoc-citeproc/issues/97
12770 * LaTeX reader:
12772 + Don't limit includes to `.tex` extension (#1882).
12773 If the extension is not `.tex`, it must be given explicitly in
12774 the `\input` or `\include`.
12776 * Docx reader:
12778 + Allow numbering in the style file. This allows inherited styles
12779 with numbering (lists) (Jesse Rosenthal).
12781 * Org reader:
12783 + Support smart punctuation (Craig Bosma).
12784 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
12785 `:noexport:` tag set are not exported. This mirrors org-mode.
12786 + Put header tags into empty spans (Albert Krewinkel, #2160).
12787 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
12788 Instead of being interpreted as part of the headline, the tags are now
12789 put into the attributes of empty spans. Spans without textual content
12790 won't be visible by default, but they are detectable by filters. They
12791 can also be styled using CSS when written as HTML.
12792 + Generalize code block result parsing (Albert Krewinkel).
12793 Previously, only code blocks were recognized as result blocks;
12794 now, any kind of block can be the result.
12796 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
12797 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
12799 * HTML writer:
12801 + Add "inline" or "display" class to math spans (#1914).
12802 This allows inline and display math to be styled differently.
12803 + Include raw latex blocks if `--mathjax` specified (#1938).
12804 + Require highlighting-kate >= 0.5.14 (#1903).
12805 This ensures that all code blocks will be wrapped in a `div`
12806 with class `sourceCode`. Also, the default highlighting CSS
12807 now adds `div.sourceCode { x-overflow: auto; }`, which means
12808 that code blocks (even with line numbers) will acquire a scroll
12809 bar on screens too small to display them (e.g. mobile phones).
12810 See also jgm/highlighting-kate#65.
12812 * LaTeX writer:
12814 + Use a declaration for tight lists (Jose Luis Duran, Joseph
12815 Harriott). Previously, pandoc hard-coded some commands to make
12816 tight lists in LaTeX. Now we use a custom command instead,
12817 allowing the styling to be changed in a macro in the header.
12818 (Note: existing templates may need to be modified to include
12819 the definition of this macro. See the current template.)
12820 + Beamer output: if the header introducing a slide has the
12821 class `fragile`, add the `[fragile]` option to the slide (#2119).
12823 * MediaWiki writer:
12825 + Use `File:` instead of the deprecated `Image:` for images and
12826 other media files (Greg Rundlett).
12828 * DocBook writer:
12830 + Render a `Div (id,_,_) [Para _]` element as a `para` element
12831 with an `id` attribute. This makes links to citations work in
12832 DocBook with pandoc-citeproc.
12834 * RST writer:
12836 + Normalize headings to sequential levels (Nikolay Yakimov).
12837 This is pretty much required by docutils.
12838 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
12839 + Better handling of raw latex inline (#1961). We use
12840 `` :raw-latex:`...` `` and add a definition for this role to
12841 the template.
12843 * EPUB writer:
12845 + Remove `linear=no` from cover `itemref` (#1609).
12846 + Don't use `sup` element for epub footnotes (#1995).
12847 Instead, just use an a element with class `footnoteRef`.
12848 This allows more styling options, and provides better results
12849 in some readers (e.g. iBooks, where anything inside the a
12850 tag breaks popup footnotes).
12851 + Take TOC title from `toc-title` metadata field.
12853 * Docx writer:
12855 + Implemented `FirstParagraph` style (Jesse Rosenthal).
12856 Following the ODT writer, we add the `FirstParagraph` style to the
12857 first text paragraph following an image, blockquote, table, heading,
12858 or beginning of document. This allows it to be styled differently.
12859 The default is for it to be the same as `Normal`.
12860 + Added `BodyText` style (Jesse Rosenthal).
12861 We apply a `BodyText` style to all unstyled paragraphs. This is,
12862 essentially, the same as `Normal`, except that since not everything
12863 inherits from `BodyText` (the metadata won't, for example, or
12864 the headers or footnote numbers), we can change the text in the body
12865 without having to make exceptions for everything. If we do want to
12866 change *everything*, we can still do it through `Normal`.
12867 + Altered `Blockquote` style slightly (Jesse Rosenthal).
12868 Since `BlockQuote` derives from `BodyText`, we just want to specify
12869 by default that it won't indent, regardless of what `BodyText` does.
12870 Note that this will not produce any visible difference in the default
12871 configuration.
12872 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
12873 + Added a style to figure images (Nikolay Yakimov).
12874 Figures with empty captions use style `Figure`.
12875 Figures with nonempty captions use style `Figure with Caption`, which
12876 is based on `Figure`, and additionally has `keepNext` set.
12878 * ODT writer:
12880 + Added figure captions (Nikolay Yakimov). The following styles are
12881 used for figures:
12882 `Figure` -- for figure with empty caption),
12883 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
12884 `FigureCaption` (based on `Caption`) -- for figure captions.
12885 Also, `TableCaption` (based on `Caption`) is used for table captions.
12887### API changes
12889 * New `Text.Pandoc.Error` module with `PandocError` type
12890 (Matthew Pickering).
12892 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
12893 (Matthew Pickering). This allows better handling of errors.
12895 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
12897 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
12899 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
12900 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
12901 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
12902 Youssefi).
12904 * New `Ext_shortcut_reference_links` constructor for `Extension`
12905 (Konstantin Zudov).
12907### Bug fixes
12909 * Markdown reader:
12911 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
12912 + Check for tex macros after indented code (#1973).
12913 + Rewrote `charsInBalancedBrackets` for efficiency.
12914 + Make sure a closing `</div>` doesn't get included in a
12915 definition list item (#2127).
12916 + Don't parse bracketed text as citation if it might be a link,
12917 image, or footnote (Nikolay Yakimov).
12918 + Require space after key in mmd title block (#2026, Nikolay
12919 Yakimov). Require space after key-value delimiter colon in mmd title
12920 block.
12921 + Require nonempty value in mmd title block (Nikolay Yakimov).
12922 + Disable all metadata block extensions when parsing
12923 metadata field values (#2026, Nikolay Yakimov). Otherwise we
12924 could get a mmd title block inside YAML metadata, for example.
12926 * HTML reader:
12928 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
12929 + Handle tables with `<th>` in body rows (#1859, mb21).
12930 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
12931 to see if the input starts with `<!--`. If not, it's bogus comment
12932 mode and we fail `htmlTag`.
12933 + Handle `base` tag; if it has an `href` value, this is added to
12934 all relative URLs in links and images.
12936 * DocBook reader:
12938 + Look inside "info" elements for section titles (#1931).
12940 * Docx reader:
12942 + Parse images in deprecated vml format (Jesse Rosenthal).
12943 + Allow sub/superscript verbatims (Jesse Rosenthal).
12944 Verbatim usually shuts off all other run styles, but we don't want it
12945 to shut off sub/superscript.
12947 * LaTeX reader:
12949 + Handle `tabular*` environment (#1850).
12950 Note that the table width is not actually parsed or taken into
12951 account, but pandoc no longer chokes on it.
12952 + Ignore options in `\lstinline` rather than raising error (#1997).
12953 + Add some test cases for simple tables (Mathias Schenner).
12954 + Handle valign argument in tables (Mathias Schenner) (currently
12955 we just ignore this).
12956 + Allow non-empty colsep in tables (Mathias Schenner).
12957 The `tabular` environment allows non-empty column separators
12958 with the "@{...}" syntax. Previously, pandoc would fail to
12959 parse tables if a non-empty colsep was present. With this
12960 commit, these separators are still ignored, but the table gets
12961 parsed. A test case is included.
12962 + Recognize `\newpage` as a block command.
12963 + Allow block content in `\title{}` (#2001).
12964 + Check for block-level newcommand aliases in blockCommand (Nikolay
12965 Yakimov).
12966 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
12967 + Properly gobble spaces after `\\` (#2007).
12969 * Textile reader:
12971 + Handle newlines in table cells, and empty cells (#1919).
12973 * Org reader:
12975 + Allow image links with non-image targets (Hans-Peter Deifel).
12976 This matches behavior of Org-Mode for links like
12977 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
12979 * Docbook writer:
12981 + Don't print empty id attributes (thanks to Steve Horne).
12983 * HTML writer:
12985 + Fixed list-style-type for numbered example lists.
12986 Should be "decimal," not "example" (#1902).
12987 + Do not omit missing `alt` attribute on `img` tag (#1131,
12988 Konstantin Zudov).
12989 + Allow multiple colgroups in table (#2122).
12990 + In revealjs, ensure that lists in speaker notes don't add "fragment"
12991 classes, which can cause additional keypresses to be needed to
12992 advance a slide (#1394).
12994 * LaTeX writer:
12996 + Don't escape `$` in URL (#1913).
12997 + Don't use listings in headers (Matthew Pickering, #1963).
12998 + Recognize book documentclass if set in metadata (#1971).
12999 This sets `--chapters` implicitly if the documentclass in metadata
13000 is a book documentclass. Previously this was done only if a book
13001 documentclass was set in a variable.
13002 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
13003 + Make `mainlang` work when `lang` is in metadata (#2174).
13005 * Texinfo writer:
13007 + Fix wrapping by using breakable spaces (Tim Lin).
13009 * RST writer:
13011 + Fixed toc depth in RST writer. Previously the depth was being
13012 rendered as a floating point number with a decimal point.
13014 * Markdown writer:
13016 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
13017 compatibility with original Markdown. We now escape `<` and `>`
13018 with entities. Also, we now backslash-escape square brackets.
13019 + Avoid introducing spurious list items through wrapping (#1946).
13020 + Don't emit span tags if plain or raw HTML disabled.
13022 * MediaWiki writer:
13024 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
13026 * AsciiDoc writer:
13028 + Insert some needed blank lines (#1860).
13029 + Avoid wrapping after list marker (#1858).
13031 * EPUB writer:
13033 + Properly handle internal links to IDs in spans, divs (#1884).
13034 + Use plain writer for metadata dc: fields (#2121).
13035 This gives better results when we have, e.g. multiple paragraphs.
13036 Note that tags aren't allowed in these fields.
13037 + Properly handle image links without an extension (#1855).
13038 + Improved chapter splitting and internal link rewriting (#1887,
13039 #2162, #2163). This will ensure that internal links work and
13040 that the references section produced by pandoc-citeproc is
13041 in its own chapter.
13042 + Fixed handling of svg images (#2183).
13044 * ICML writer:
13046 + Better handling of raw blocks and inlines (#1951).
13047 Previously these were always escaped and printed verbatim.
13048 Now they are ignored unless the format is `icml`, in which
13049 case they are passed through unescaped.
13050 + Fixed image URIs in ICML output (gohai).
13052 * Custom writer:
13054 + Raise error if loadstring returns an error status.
13055 + Raise `PandocLuaException` instead of using 'error'.
13056 Eventually we'll change the return type so that no exception
13057 is involved, but at least this can be trapped.
13058 + Use UTF-8 aware bytestring conversion.
13059 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
13060 Also factored out ByteString, since it's only used as an intermediate
13061 representation.
13063 * Docx writer:
13065 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
13066 + Filter out illegal XML characters (#1992, Matthew Pickering).
13067 + Added `noProof` to docx syntax highlighting `SourceCode` style.
13068 + Added footnotes id -1 and 0 (Jesse Rosenthal).
13069 Word uses, by default, footnotes with id -1 and 0 for separators. If a
13070 user modifies `reference.docx`, they will end up with a `settings.xml`
13071 file that references these footnotes, but no such footnotes in the
13072 document. This will produce a corruption error. Here we add these to the
13073 document and `settings.xml` file, so future modifications won't break
13074 the file.
13075 + Handle lists correctly inside table cells (Jesse Rosenthal).
13076 Previously we didn't transform lists inside table cells.
13077 + Set firstRow information in tables (Nikolay Yakimov).
13078 + Don't replace `SourceCode` style in `reference.docx` if it is defined
13079 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
13080 any `SourceCode` and `*Tok` styles in `reference.docx`.
13081 + Attempt to match international style names (#1607, Nikolay Yakimov).
13082 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
13083 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
13084 `Definition`, `First Paragraph`.
13085 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
13086 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
13087 `Footnote Ref -> Footnote Reference`.
13088 + Added `Caption` style (Nikolay Yakimov).
13089 + Changed these styles' inheritance (Nikolay Yakimov):
13090 `Image Caption <- Caption`, `Table Caption <- Caption`.
13091 + Remove `SourceCode` style from `reference.docx` (#1872).
13092 This is added automatically by the docx writer.
13093 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
13095 * `Text.Pandoc.PDF`
13097 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
13098 + More comprehensible errors on image conversion (#2067).
13099 EPS can't be supported without shelling out to something like
13100 ImageMagick, but at least we can avoid mysterious error messages.
13102 * `Text.Pandoc.Shared`:
13104 + Make safeRead safe (#1801, Matthew Pickering).
13105 + Added `mapLeft`, `hush` (Matthew Pickering).
13107 * `Text.Pandoc.Pretty`:
13109 + Remove partial function (Matthew Pickering).
13111 * `Text.Pandoc.SelfContained`:
13113 + Add `;charset=utf-8` to script mime type if missing (#1842).
13114 + Improved building of data URIs (#1940). Now base64 is used except
13115 for `text/*` mime types.
13116 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
13117 + Properly handle data URIs in css urls (#2129).
13118 Use a proper CSS parser (adds dependency on `text-css`).
13120 * `Text.Pandoc.UTF8`:
13122 + Better handling of bare CRs in input files (#2132).
13123 Previously we just stripped them out; now we convert
13124 other line ending styles to LF line endings.
13126 * `Text.Pandoc.ImageSize`:
13128 + Fixed some exif header parsing bugs (#1834).
13129 + Make imageSize return an Either, not a Maybe (#1834).
13130 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
13131 parse failure (rather than `error`).
13132 + Improved warnings when image size can't be determined.
13133 + Removed error landmines (Matthew Pickering).
13135 * Added woff2 to MIME types (Alfred Wechselberger).
13137 * pandoc: When a binary input format is used, warn that file
13138 arguments past the first one are being ignored (Matthew Pickering).
13140### Template changes
13142 * LaTeX template:
13144 + Degrade gracefully if `\paragraph` not defined.
13145 + Include `grffile` together with `graphicx` (#2074).
13146 This properly handles filenames containing spaces and dots.
13147 + Redefine `\paragraph`, `\subparagraph`... to behave more
13148 like section headers (#1658).
13149 + Import hyperref before polyglossia to avoid an error with xelatex,
13150 "please load package hyperref before bidi package" (Nick Bart).
13151 + Added `toccolor` variable to control link color in toc (Kaixhin).
13153 * LaTeX, Beamer templates:
13155 + Provide `\tightlist`, which is now used by the LaTeX writer.
13156 + Use polyglossia in beamer (#85).
13157 + Use `bibliography` instead of `biblio-files`
13158 (#1661). Also use `\addbibresource` instead of `\bibliography` for
13159 biblatex.
13160 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
13161 variable that is derived from a comma-separated list in `lang`;
13162 the last language is `mainlang` and the others are `otherlang`.
13164 * EPUB templates:
13166 + Use `div`, not `p`, for "rights" on title page.
13167 + Added header-includes, include-before, include-after (#1987).
13169 * OpenDocument template:
13171 + Use `text:p` instead of `text:h` for title.
13172 Using `text:h` causes problems with numbering. Closes #2059.
13173 Thanks to @nkalvi for diagnosing this.
13175 * reveal.js template:
13177 + Link to non-minified css, js. The minified versions no longer
13178 ship with the library.
13179 + Correctly include style CSS (#1949).
13180 + New configurable options options: `center`, `maxScale`, `slideNuber`
13181 (Dmitry Smirnov, pandoc-templates#89).
13182 + Moved custom CSS after theme. This allows custom CSS to modify
13183 themes, instead of being replaced by them.
13184 + Allow `center` to be set to false.
13186### Under the hood improvements
13188 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
13189 Yakimov). Instead the repository now includes the component text files,
13190 and the zipped binaries are built from these using a helper
13191 program, `make-reference-files`. This should make maintenance of
13192 these components easier going forward.
13194 * `Text.Pandoc.Parsing`:
13196 + Added new `<+?>` combinator (Nikolay Yakimov).
13197 + Added `stateHeaderKeys` to `ParserState`.
13199 * `make_deb.sh` fixes:
13201 + Detect architecture.
13202 + Add Installed-Size to debian package control file (#1900).
13203 + Use `fakeroot` to get permissions right.
13204 + Use `mkdir` and `cp` instead of `install`.
13205 + Set permissions of directories to 755.
13206 + Install in `/usr` rather than `/usr/local`.
13207 + Compress man pages.
13208 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
13210 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
13211 to assist with transition to `time` 1.5.
13213 * Updated CONTRIBUTING.md with information about issue tags (Matthew
13214 Pickering).
13216 * Updated travis installs to the new sudo-less syntax (Tim Lin).
13218 * Updated dependency version bounds.
13220 * EPUB tests: don't use `joinPath`, which varies across platforms.
13221 Instead, use a forward-slash to join paths, regardless of the
13222 platform. This matches the way `MediaBag` now works.
13224 * Clarify JSON input and output in usage message (Caleb McDaniel).
13226 * Improved INSTALL instructions.
13228 * Always build man pages. Removed make-pandoc-man-pages flag.
13230 * Makefile: removed man target, now that we generate man pages by default.
13232 * README:
13234 + Fixed typos (J. Lewis Muir).
13235 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
13236 + Added note on in-field markup in biblio databases (Nick Bart).
13237 + Fixed misleading example of raw HTML block.
13238 + Various minor formatting and consistency fixes for the program
13239 options (Andreas Lööw).
13240 + Made definition lists for options all "loose" for consistency.
13241 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
13242 `--bib2json` and `--bib2yaml` options (Nick Bart).
13243 + Removed obsolete reference to `mods2yaml` (Nick Bart).
13244 + Added section on syntax highlighting.
13245 + Documented `toccolor` variable.
13247## pandoc 1.13.2.1 (2015-04-15)
13249 * Updated to build with ghc 7.10.1.
13251 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
13253## pandoc 1.13.2 (2014-12-20)
13255 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
13257 * Markdown reader:
13259 + Better handling of paragraph in div (#1591).
13260 Previously text that ended a div would be parsed as Plain
13261 unless there was a blank line before the closing div tag.
13262 + Don't treat a citation as a reference link label (#1763).
13263 + Fix autolinks with following punctuation (#1811).
13264 The price of this is that autolinked bare URIs can no longer
13265 contain `>` characters, but this is not a big issue.
13266 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
13267 + Allow `startnum` to work without `fancy_lists`. Formerly
13268 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
13270 * RST reader (all Daniel Bergey):
13272 + Parse quoted literal blocks (#65). RST quoted literal blocks are
13273 the same as indented literal blocks (which pandoc already supports)
13274 except that the quote character is preserved in each line.
13275 + Parse RST class directives. The class directive accepts one or more
13276 class names, and creates a Div value with those classes. If the
13277 directive has an indented body, the body is parsed as the children of
13278 the Div. If not, the first block following the directive is made a
13279 child of the Div. This differs from the behavior of rst2xml, which
13280 does not create a Div element. Instead, the specified classes are
13281 applied to each child of the directive. However, most Pandoc Block
13282 constructors to not take an Attr argument, so we can't duplicate this
13283 behavior.
13284 + Warn about skipped directives.
13285 + Literal role now produces Code. Code role should have "code" class.
13286 + Improved support for custom roles
13288 - Added `sourceCode` to classes for `:code:` role, and anything
13289 inheriting from it.
13290 - Add the name of the custom role to classes if the Inline
13291 constructor supports Attr.
13292 - If the custom role directive does not specify a parent role,
13293 inherit from the `:span:` role.
13295 This differs somewhat from the `rst2xml.py` behavior. If a custom
13296 role inherits from another custom role, Pandoc will attach both
13297 roles' names as classes. `rst2xml.py` will only use the class of
13298 the directly invoked role (though in the case of inheriting from a
13299 `:code:` role with a `:language:` defined, it will also provide the
13300 inherited language as a class).
13301 + Warn about ignored fields in role directives.
13303 * LaTeX reader:
13305 + Parse label after caption into a span instead of
13306 inserting an additional paragraph of bracketed text (#1747).
13307 + Parse math environments as inline when possible (#1821).
13308 + Better handling of `\noindent` and `\greektext` (#1783).
13309 + Handle `\texorpdfstring` more gracefully.
13310 + Handle `\cref` and `\sep` (Wikiwide).
13311 + Support `\smartcite` and `\Smartcite` from biblatex.
13313 * HTML reader:
13315 + Retain display type of MathML output (#1719, Matthew Pickering).
13316 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
13317 + Make `embed` tag either block or inline (#1756).
13319 * DocBook reader:
13321 + Handle `keycombo`, `keycap` (#1815).
13322 + Get string content in inner tags for literal elements (#1816).
13323 + Handle `menuchoice` elements better, with a `>` between (#1817).
13324 + Include `id` on section headers (#1818).
13325 + Document/test "type" as implemented (Brian O'Sullivan).
13326 + Add support for calloutlist and callout (Brian O'Sullivan).
13327 We treat a calloutlist as a bulleted list. This works well in practice.
13328 + Add support for `classname` (Bryan O'Sullivan).
13330 * Docx reader:
13332 + Fix window path for image lookup (Jesse Rosenthal).
13333 Don't use os-sensitive "combine", since we always want the paths in our
13334 zip-archive to use forward-slashes.
13335 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
13336 When users number their headers, Word understands that as a single item
13337 enumerated list. We make the assumption that such a list is, in fact,
13338 a header.
13339 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
13340 There could be new top-level headers after making lists, so we have to
13341 rewrite links after that.
13342 + Use polyglot header list (Jesse Rosenthal).
13343 We're just keeping a list of header formats that different languages
13344 use as their default styles. At the moment, we have English, German,
13345 Danish, and French. We can continue to add to this.
13346 This is simpler than parsing the styles file, and perhaps less
13347 error-prone, since there seems to be some variations, even within a
13348 language, of how a style file will define headers.
13349 + Remove header class properly in other langs (Jesse Rosenthal).
13350 When we encounter one of the polyglot header styles, we want to remove
13351 that from the par styles after we convert to a header. To do that, we
13352 have to keep track of the style name, and remove it appropriately.
13353 + Account for external link URLs with anchors. Previously, if a URL
13354 had an anchor, the reader would incorrectly identify it as an
13355 internal link and return only the anchor as URL. (Caleb McDaniel)
13356 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
13358 * Org reader:
13360 + Added state changing blanklines (Jesse Rosenthal).
13361 This allows us to emphasize at the beginning of a new paragraph (or, in
13362 general, after blank lines).
13363 + Fixed bug with bulleted lists:
13365 - a
13366 - b
13367 * c
13369 was being parsed as a list, even though an unindented `*`
13370 should make a heading. See
13371 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
13372 + Org reader: absolute, relative paths in link (#1741, Albert
13373 Krewinkel). The org reader was too restrictive when parsing links;
13374 some relative links and links to files given as absolute paths
13375 were not recognized correctly.
13376 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
13377 This is important for use in gitit, which uses empty links
13378 for wikilinks.
13379 + Respect indent when parsing Org bullet lists (#1650, Timothy
13380 Humphries). Fixes issue with top-level bullet list parsing.
13381 + Fix indent issue for definition lists (Timothy Humphries,
13382 see #1650, #1698, #1680).
13383 + Parse multi-inline terms correctly in definition list (#1649,
13384 Matthew Pickering).
13385 + Fix rules for emphasis recognition (Albert Krewinkel).
13386 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
13387 strings. This is wrong, as `,` and `'` are forbidden border chars and
13388 may not occur on the inner border of emphasized text.
13389 + Drop COMMENT document trees (Albert Krewinkel).
13390 Document trees under a header starting with the word `COMMENT` are
13391 comment trees and should not be exported. Those trees are dropped
13392 silently (#1678).
13393 + Properly handle links to `file:target` (Albert Krewinkel).
13394 Org links like `[[file:target][title]]` were not handled correctly,
13395 parsing the link target verbatim. The org reader is changed such that
13396 the leading `file:` is dropped from the link target (see #756, #1812).
13397 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
13398 Org supports special symbols which can be included using LaTeX syntax,
13399 but are actually MathML entities. Examples for this are
13400 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
13401 or `\copy` (the copyright sign ©)
13403 * EPUB reader:
13405 + URI handling improvements. Now we outsource most of the work to
13406 `fetchItem'`. Also, do not include queries in file extensions (#1671).
13408 * LaTeX writer:
13410 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
13411 + Handle consecutive linebreaks (#1733).
13412 + Protect graphics in headers (Jesse Rosenthal).
13413 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
13414 + Put `~` before header in list item text (Jesse Rosenthal).
13415 Because of the built-in line skip, LaTeX can't handle a section header
13416 as the first element in a list item.
13417 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
13418 + Better handling of display math in simple tables (#1754).
13419 We convert display math to inline math in simple tables,
13420 since LaTeX can't deal with display math in simple tables.
13421 + Escape spaces in code (#1694, Bjorn Buckwalter).
13423 * MediaWiki writer:
13425 + Fixed links with URL = text. Previously these were rendered as bare
13426 words, even if the URL was not an absolute URL (#1825).
13428 * ICML writer:
13430 + Don't force all citations into footnotes.
13432 * RTF writer:
13434 + Add blankline at end of output (#1732, Matthew Pickering).
13436 * RST writer:
13438 + Ensure blank line after figure.
13439 + Avoid excess whitespace after last list item (#1777).
13440 + Wrap line blocks with spaces before continuations (#1656).
13441 + Fixed double-rendering of footnotes in RST tables (#1769).
13443 * DokuWiki writer:
13445 + Better handling of block quotes. This change ensures that
13446 multiple paragraph blockquotes are rendered using native `>`
13447 rather than as HTML (#1738).
13448 + Fix external images (#1739). Preface relative links with ":",
13449 absolute URIs without. (Timothy Humphries)
13451 * HTML writer:
13453 + Use protocol-relative URL for mathjax.
13454 + Put newline btw img and caption paragraph.
13455 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
13456 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
13457 This adds `KaTeX` to `HTMLMathMethod` (API change).
13458 + Don't double render when `email-obfuscation=none` (#1625, Matthew
13459 Pickering).
13460 + Make header attributes work outside top level (#1711).
13461 Previously they only appeared on top level header elements.
13462 Now they work e.g. in blockquotes.
13464 * ODT writer:
13466 + Correctly handle images without extensions (#1729).
13467 + Strip querystring in ODT write (#1682, Todd Sifleet).
13469 * FB2 writer:
13471 + Add newline to output.
13473 * EPUB writer:
13475 + Don't add `sourceURL` to absolute URIs (#1669).
13476 + Don't use unsupported `opf:title-type` for epub2.
13477 + Include "landmarks" section in nav document for epub3 (#1757).
13478 + Removed playOrder from navpoint elements in ncx file (#1760).
13479 These aren't required, and they make manual modification of epubs
13480 difficult.
13481 + Extract title even from structured title.
13482 + Don't include nav node in spine unless `--toc` was requested.
13483 Previously we included it in the spine with `linear="no"`, leading
13484 to odd results in some readers (#1593).
13485 + Fixed absolute URI detection (#1672).
13486 + Correctly resolve relative URIs (#1671).
13487 + Use regular page template for `nav.xhtml`, including doctype (#1759).
13489 * Docx writer:
13491 + Put docx table captions above tables (#1641, Nikolay Yakimov).
13492 + Get the page width from the reference docx file, and use
13493 it to scale images that are too large to fit (Grégory Bataille).
13494 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
13495 are inferred based on `<w:name val="heading #">` fallback, if there
13496 are no en-US "Heading#" styles
13497 + Look in user data dir for archive `reference.docx`.
13498 + Renumber header and footer relationships to avoid collisions (Jesse
13499 Rosenthal). We previously took the old relationship names of the
13500 headers and footer in secptr. That led to collisions. We now make
13501 a map of available names in the relationships file, and then rename
13502 in secptr.
13504 * ConTeXt writer:
13506 + Add function toLabel (Mark Szepieniec).
13507 This function can be used to sanitize reference labels so that
13508 they do not contain any of the illegal characters \#[]",{}%()|= .
13509 Currently only Links have their labels sanitized, because they
13510 are the only Elements that use passed labels.
13512 * `Text.Pandoc.Shared`:
13514 + Moved import of `toChunks` outside of CPP conditional (#1590).
13515 + Fix `inDirectory` to reset to the original directory in case
13516 an exception occurs (Freiric Barral).
13518 * Templates:
13520 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
13521 Thanks to bluebirch.
13522 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
13523 (#1616).
13524 + LaTeX template: Add shorthands=off to babel options (#1648).
13525 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
13526 This aids styling, making it possible for example to set 0 margins
13527 on the title page (#1758).
13528 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
13529 Previously we just expected 'title', 'subtitle', 'author', 'date'.
13530 Now we still support those, but also support the format recommended
13531 for epub metadata in the pandoc README:
13533 ---
13534 title:
13535 - type: main
13536 text: My Book
13537 - type: subtitle
13538 text: An investigation of metadata
13539 creator:
13540 - role: author
13541 text: John Smith
13542 - role: editor
13543 text: Sarah Jones
13544 identifier:
13545 - scheme: DOI
13546 text: doi:10.234234.234/33
13547 publisher: My Press
13548 rights: (c) 2007 John Smith, CC BY-NC
13549 ...
13551 * `Text.Pandoc.Templates.getDefaultTemplate`:
13552 don't fail when called with "fb2" (#1660).
13554 * `Text.Pandoc.Parsing`:
13556 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
13557 For example: `$x = \text{the $n$th root of $y$}` (#1677).
13558 + Change `parseFromString` to fail if not all input is consumed.
13559 (Matthew Pickering)
13560 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
13561 used by more readers (API change, Daniel Bergey).
13563 * `Text.Pandoc.Pretty`:
13565 + Improve performance of `realLength` (Matthew Pickering).
13566 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
13567 were getting at the end of markdown fragments (as well as rst, org,
13568 etc.) (#1705).
13570 * `Text.Pandoc.MIME`:
13572 + Add mime type for WebVTT (Jason Ronallo).
13573 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
13574 This is needed for epub3 validation.
13576 * `Text.Pandoc.MediaBag`:
13578 + Fix Windows specific path problems (#1597).
13580 * `Text.Pandoc.Shared`:
13582 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
13584 * Link the test suite using `-threaded`.
13585 This allows the test suite to be run using `+RTS -N`.
13587 * Added `network` dependency under `network-uri` flag in test section.
13589 * Give better error messages when someone tries to convert from
13590 pdf, doc, odt (#1683).
13592 * Added `track` to list of tags treated by `--self-contained` (#1664).
13595## pandoc 1.13.1 (2014-08-30)
13597 * Fixed `--self-contained` with Windows paths (#1558).
13598 Previously `C:\foo.js` was being wrongly interpreted as a URI.
13600 * HTML reader: improved handling of tags that can be block or inline.
13601 Previously a section like this would be enclosed in a paragraph,
13602 with RawInline for the video tags (since video is a tag that can
13603 be either block or inline):
13605 <video controls="controls">
13606 <source src="../videos/test.mp4" type="video/mp4" />
13607 <source src="../videos/test.webm" type="video/webm" />
13608 <p>
13609 The videos can not be played back on your system.<br/>
13610 Try viewing on Youtube (requires Internet connection):
13611 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
13612 Youtube</a>.
13613 </p>
13614 </video>
13616 This change will cause the video and source tags to be parsed
13617 as RawBlock instead, giving better output.
13618 The general change is this: when we're parsing a "plain" sequence
13619 of inlines, we don't parse anything that COULD be a block-level tag.
13621 * Docx reader:
13623 + Be sensitive to user styles. Note that "Hyperlink" is
13624 "blacklisted," as we don't want the default underline styling to be
13625 inherited by all links by default (Jesse Rosenthal).
13626 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
13627 This makes to docx reader's native output fit with the way the markdown
13628 reader understands its markdown output.
13630 * Txt2Tags reader:
13632 + Header is now parsed only if standalone flag is set (Matthew Pickering).
13633 + The header is now parsed as meta information. The first line is the
13634 `title`, the second is the `author` and third line is the `date`
13635 (Matthew Pickering).
13636 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
13637 + Fixed crash when reading from stdin.
13639 * Textile writer: Extended the range of cases where native textile
13640 tables will be used (as opposed to raw HTML): we now handle any
13641 alignment type, but only for simple tables with no captions.
13643 * EPUB writer: Don't use page-progression-direction in EPUB2, which
13644 doesn't support it. Also, if page-progression-direction not specified
13645 in metadata, don't include the attribute even in EPUB3; not including it
13646 is the same as including it with the value "default", as we did before.
13647 (#1550)
13649 * Org writer: Accept example lines with indentation at the beginning
13650 (Calvin Beck).
13652 * DokuWiki writer:
13654 + Refactor to use Reader monad (Matthew Pickering).
13655 + Avoid using raw HTML in table cells; instead, use `\\`
13656 instead of newlines (Jesse Rosenthal).
13657 + Properly handle HTML table cell alignments, and use spacing
13658 to make the tables look prettier (#1566).
13660 * Docx writer:
13662 + Bibliography entries get `Bibliography` style (#1559).
13663 + Implement change tracking (Jesse Rosenthal).
13665 * LaTeX writer:
13667 + Fixed a bug that caused a table caption to repeat across all pages
13668 (Jose Luis Duran).
13669 + Improved vertical spacing in tables and made it customizable using
13670 standard lengths set by booktab. See
13671 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
13672 (Jose Luis Duran).
13673 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
13674 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
13675 + Made horizontal rules more flexible (Jose Luis Duran).
13677 * Text.Pandoc.MIME:
13679 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
13680 Code cleanups (Artyom Kazak).
13682 * Templates:
13684 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
13685 thanks lemzwerg).
13687 * Improved OSX build procedure.
13689 * Added `network-uri` flag, to deal with split of `network-uri` from
13690 `network`.
13692 * Fix build dependencies for the `trypandoc` flag, so that they are
13693 ignored if `trypandoc` flag is set to False (Gabor Pali).
13695 * Updated README to remove outdated claim that `--self-contained`
13696 looks in the user data directory for missing files.
13698## pandoc 1.13.0.1 (2014-08-17)
13700 * Docx writer:
13702 + Fixed regression which bungled list numbering (#1544), causing
13703 all lists to appear as basic ordered lists.
13704 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
13705 Added a property to all table rows where the sum of column widths
13706 is specified in pct (fraction of 5000). This helps persuade Word
13707 to lay out the table with the widths we specify.
13709 * Fixed a bug in Windows 8 which caused pandoc not to find the
13710 `pandoc-citeproc` filter (#1542).
13712 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
13713 Most significantly, the reader now uses Builder, leading to some
13714 performance improvements.
13716 * HTML reader: Parse appropriately styled span as SmallCaps.
13718 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
13719 `superscript`, and `subscript` extensions, respectively, are
13720 deactivated (#1127).
13722 * Added `trypandoc` flag to build CGI executable used in the online
13723 demo.
13725 * Makefile: Added 'quick', 'osxpkg' targets.
13727 * Updated README in templates to indicate templates license.
13728 The templates are dual-licensed, BSD3 and GPL2+.
13730## pandoc 1.13 (15 August 2014)
13732### New features
13734 * Added `docx` as an input format (Jesse Rosenthal). The docx
13735 reader includes conversion of native Word equations to pandoc
13736 LaTeX `Math` elements. Metadata is taken from paragraphs at the
13737 beginning of the document with styles `Author`, `Title`, `Subtitle`,
13738 `Date`, and `Abstract`.
13740 * Added `epub` as an input format (Matthew Pickering). The epub
13741 reader includes conversion of MathML to pandoc LaTeX `Math`
13742 elements.
13744 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
13745 Txt2tags is a lightweight markup format described at
13746 <http://txt2tags.org/>.
13748 * Added `dokuwiki` as an output format (Clare Macrae).
13750 * Added `haddock` as an output format.
13752 * Added `--extract-media` option to extract media contained in a zip
13753 container (docx or epub) while adjusting image paths to point to the
13754 extracted images.
13756 * Added a new markdown extension, `compact_definition_lists`, that
13757 restores the syntax for definition lists of pandoc 1.12.x, allowing
13758 tight definition lists with no blank space between items, and
13759 disallowing lazy wrapping. (See below under behavior changes.)
13761 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
13763 * Added extensions `native_spans` and `native_divs` to activate
13764 parsing of material in HTML span or div tags as Pandoc Span
13765 inlines or Div blocks.
13767 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
13768 Textile, and MediaWiki readers. This is an option intended
13769 for debugging parsing problems; ordinary users should not need
13770 to use it.
13772### Behavior changes
13774 * Changed behavior of the `markdown_attribute` extension, to bring
13775 it in line with PHP markdown extra and multimarkdown. Setting
13776 `markdown="1"` on an outer tag affects all contained tags,
13777 recursively, until it is reversed with `markdown="0"` (#1378).
13779 * Revised markdown definition list syntax (#1429). Both the reader
13780 and writer are affected. This change brings pandoc's definition list
13781 syntax into alignment with that used in PHP markdown extra and
13782 multimarkdown (with the exception that pandoc is more flexible about
13783 the definition markers, allowing tildes as well as colons). Lazily
13784 wrapped definitions are now allowed. Blank space is required
13785 between list items. The space before a definition is used to determine
13786 whether it is a paragraph or a "plain" element. **WARNING: This change
13787 may break existing documents!** Either check your documents for
13788 definition lists without blank space between items, or use
13789 `markdown+compact_definition_lists` for the old behavior.
13791 * `.numberLines` now works in fenced code blocks even if no language
13792 is given (#1287, jgm/highlighting-kate#40).
13794 * Improvements to `--filter`:
13796 + Don't search PATH for a filter with an explicit path.
13797 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
13798 the system path, even if there was a `caps.py` in the working directory.
13799 + Respect shebang if filter is executable (#1389).
13800 + Don't print misleading error message.
13801 Previously pandoc would say that a filter was not found,
13802 even in a case where the filter had a syntax error.
13804 * HTML reader:
13806 + Parse `div` and `span` elements even without `--parse-raw`,
13807 provided `native_divs` and `native_spans` extensions are set.
13808 Motivation: these now generate native pandoc Div and Span
13809 elements, not raw HTML.
13810 + Parse EPUB-specific elements if the `epub_html_exts`
13811 extension is enabled. These include `switch`, `footnote`,
13812 `rearnote`, `noteref`.
13814 * Org reader:
13816 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
13817 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
13818 `\cite{Coffee}`), can be used without any further escaping (Albert
13819 Krewinkel).
13821 * Textile reader and writer:
13823 + The `raw_tex` extension is no longer set by default. You can
13824 enable it with `textile+raw_tex`.
13826 * DocBook reader:
13828 + Support `equation`, `informalequation`, `inlineequation` elements with
13829 `mml:math` content. This is converted into LaTeX and put into a Pandoc
13830 Math inline.
13832 * Revised `plain` output, largely following the style of Project
13833 Gutenberg:
13835 + Emphasis is rendered with `_underscores_`, strong emphasis
13836 with ALL CAPS.
13837 + Headings are rendered differently, with space to set them off,
13838 not with setext style underlines. Level 1 headers are ALL CAPS.
13839 + Math is rendered using unicode when possible, but without the
13840 distracting emphasis markers around variables.
13841 + Footnotes use a regular `[n]` style.
13843 * Markdown writer:
13845 + Horizontal rules are now a line across the whole page.
13846 + Prettier pipe tables. Columns are now aligned (#1323).
13847 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
13848 no longer emits any raw HTML, including span and div tags
13849 generated by Span and Div elements.
13850 + Use span with style for `SmallCaps` (#1360).
13852 * HTML writer:
13854 + Autolinks now have class `uri`, and email autolinks have class
13855 `email`, so they can be styled.
13857 * Docx writer:
13859 + Document formatting is carried over from `reference.docx`.
13860 This includes margins, page size, page orientation, header,
13861 and footer, including images in headers and footers.
13862 + Include abstract (if present) with `Abstract` style (#1451).
13863 + Include subtitle (if present) with `Subtitle` style, rather
13864 than tacking it on to the title (#1451).
13866 * Org writer:
13868 + Write empty span elements with an id attribute as org anchors.
13869 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
13871 * LaTeX writer:
13873 + Put table captions above tables, to match the conventional
13874 standard. (Previously they appeared below tables.)
13875 + Use `\(..\)` instead of `$..$` for inline math (#1464).
13876 + Use `\nolinkurl` in email autolinks. This allows them to be styled
13877 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
13878 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
13879 curly quotes in the PDF output (#1364).
13880 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
13881 do not appear before the overlays in which their markers appear
13882 (#1525).
13883 + Don't produce a `\label{..}` for a Div or Span element. Do produce
13884 a `\hyperdef{..}` (#1519).
13886 * EPUB writer:
13888 + If the metadata includes `page-progression-direction` (which can be
13889 `ltr` or `rtl`, the `page-progression-direction` attribute will
13890 be set in the EPUB spine (#1455).
13892 * Custom lua writers:
13894 + Custom writers now work with `--template`.
13895 + Removed HTML header scaffolding from `sample.lua`.
13896 + Made citation information available in lua writers.
13898 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
13899 adjacent `RawBlock`s when possible.
13901### API changes
13903 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
13905 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
13906 Pickering).
13908 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
13909 Pickering).
13911 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
13912 (Clare Macrae).
13914 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
13916 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
13917 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
13918 readers return a pair of a `Pandoc` document and a `MediaBag` with
13919 the media resources they contain. This can be extracted using
13920 `--extract-media`. Writers that incorporate media (PDF, Docx,
13921 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
13922 for resources in the `MediaBag` generated by the reader, in addition to
13923 the file system or web.
13925 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
13926 Renamed `readTeXMath'` to `texMathToInlines`.
13928 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
13929 `readers` now associates names of readers with `Reader`
13930 structures. This allows inclusion of readers, like the docx
13931 reader, that take binary rather than textual input.
13933 * `Text.Pandoc.Shared`:
13935 + Added `capitalize` (Artyom Kazak), and replaced uses of
13936 `map toUpper` (which give bad results for many languages).
13937 + Added `collapseFilePath`, which removes intermediate `.` and
13938 `..` from a path (Matthew Pickering).
13939 + Added `fetchItem'`, which works like `fetchItem` but searches
13940 a `MediaBag` before looking on the net or file system.
13941 + Added `withTempDir`.
13942 + Added `removeFormatting`.
13943 + Added `extractSpaces` (from HTML reader) and generalized its type
13944 so that it can be used by the docx reader (Matthew Pickering).
13945 + Added `ordNub`.
13946 + Added `normalizeInlines`, `normalizeBlocks`.
13947 + `normalize` is now `Pandoc -> Pandoc` instead of
13948 `Data a :: a -> a`. Some users may need to change their uses of
13949 `normalize` to the newly exported `normalizeInlines` or
13950 `normalizeBlocks`.
13952 * `Text.Pandoc.Options`:
13954 + Added `writerMediaBag` to `WriterOptions`.
13955 + Removed deprecated and no longer used `readerStrict` in
13956 `ReaderOptions`. This is handled by `readerExtensions` now.
13957 + Added `Ext_compact_definition_lists`.
13958 + Added `Ext_epub_html_exts`.
13959 + Added `Ext_native_divs` and `Ext_native_spans`.
13960 This allows users to turn off the default pandoc behavior of
13961 parsing contents of div and span tags in markdown and HTML
13962 as native pandoc Div blocks and Span inlines.
13964 * `Text.Pandoc.Parsing`:
13966 + Generalized `readWith` to `readWithM` (Matthew Pickering).
13967 + Export `runParserT` and `Stream` (Matthew Pickering).
13968 + Added `HasQuoteContext` type class (Matthew Pickering).
13969 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
13970 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
13971 `applyMacros` (Matthew Pickering).
13972 + Added custom `token` (Matthew Pickering).
13973 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
13974 track of the ending tag we're waiting for when we're parsing inside
13975 HTML block tags.
13976 + Added `stateMarkdownAttribute` to `ParserState`. This is used
13977 to keep track of whether the markdown attribute has been set in
13978 an enclosing tag.
13979 + Generalized type of `registerHeader`, using new type classes
13980 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
13981 Pickering). These allow certain common functions to be reused
13982 even in parsers that use custom state (instead of `ParserState`),
13983 such as the MediaWiki reader.
13984 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
13985 and generalized their types (Matthew Pickering).
13987 * `Text.Pandoc.Pretty`:
13989 + Added `nestle`.
13990 + Added `blanklines`, which guarantees a certain number of blank lines
13991 (and no more).
13993### Bug fixes
13995 * Markdown reader:
13997 + Fixed parsing of indented code in list items. Indented code
13998 at the beginning of a list item must be indented eight spaces
13999 from the margin (or edge of the container), or four spaces
14000 from the list marker, whichever is greater.
14001 + Fixed small bug in HTML parsing with `markdown_attribute`, which
14002 caused incorrect tag nesting for input like
14003 `<aside markdown="1">*hi*</aside>`.
14004 + Fixed regression with intraword underscores (#1121).
14005 + Improved parsing of inline links containing quote characters (#1534).
14006 + Slight rewrite of `enclosure`/`emphOrStrong` code.
14007 + Revamped raw HTML block parsing in markdown (#1330).
14008 We no longer include trailing spaces and newlines in the
14009 raw blocks. We look for closing tags for elements (but without
14010 backtracking). Each block-level tag is its own `RawBlock`;
14011 we no longer try to consolidate them (though `--normalize` will do so).
14012 + Combine consecutive latex environments. This helps when you have
14013 two minipages which can't have blank lines between them (#690, #1196).
14014 + Support smallcaps through span.
14015 `<span style="font-variant:small-caps;">foo</span>` will be
14016 parsed as a `SmallCaps` inline, and will work in all output
14017 formats that support small caps (#1360).
14018 + Prevent spurious line breaks after list items (#1137). When the
14019 `hard_line_breaks` option was specified, pandoc would formerly
14020 produce a spurious line break after a tight list item.
14021 + Fixed table parsing bug (#1333).
14022 + Handle `c++` and `objective-c` as language identifiers in
14023 github-style fenced blocks (#1318).
14024 + Inline math must have nonspace before final `$` (#1313).
14026 * LaTeX reader:
14028 + Handle comments at the end of tables. This resolves the issue
14029 illustrated in <http://stackoverflow.com/questions/24009489>.
14030 + Correctly handle table rows with too few cells. LaTeX seems to
14031 treat them as if they have empty cells at the end (#241).
14032 + Handle leading/trailing spaces in `\emph` better.
14033 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
14034 so that we don't get things like `* hi *` in markdown output.
14035 Also applies to `textbf` and some other constructions (#1146).
14036 + Don't assume preamble doesn't contain environments (#1338).
14037 + Allow (and discard) optional argument for `\caption` (James Aspnes).
14039 * HTML reader:
14041 + Fixed major parsing problem with HTML tables. Table cells were
14042 being combined into one cell (#1341).
14043 + Fixed performance issue with malformed HTML tables.
14044 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
14045 + Allow space between `<col>` and `</col>`.
14046 + Added `audio` and `source` in `eitherBlockOrInline`.
14047 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
14048 `blockTags` to `eitherBlockOrInline`.
14049 + `map` and `object` were mistakenly in both lists; they have been removed
14050 from `blockTags`.
14051 + Ignore `DOCTYPE` and `xml` declarations.
14053 * MediaWiki reader:
14055 + Don't parse backslash escapes inside `<source>` (#1445).
14056 + Tightened up template parsing.
14057 The opening `{{` must be followed by an alphanumeric or `:`.
14058 This prevents the exponential slowdown in #1033.
14059 + Support "Bild" for images.
14061 * DocBook reader:
14063 + Better handle elements inside code environments. Pandoc's document
14064 model does not allow structure inside code blocks, but at least this way
14065 we preserve the text (#1449).
14066 + Support `<?asciidoc-br?>` (#1236).
14068 * Textile reader:
14070 + Fixed list parsing. Lists can now start without an intervening
14071 blank line (#1513).
14072 + HTML block-level tags that do not start a line are parsed as
14073 inline HTML and do not interrupt paragraphs (as in RedCloth).
14075 * Org reader:
14077 + Make tildes create inline code (#1345). Also relabeled `code` and
14078 `verbatim` parsers to accord with the org-mode manual.
14079 + Respect `:exports` header argument in code blocks (Craig Bosma).
14080 + Fixed tight lists with sublists (#1437).
14082 * EPUB writer:
14084 + Avoid excess whitespace in `nav.xhtml`. This should improve
14085 TOC view in iBooks (#1392).
14086 + Fixed regression on cover image.
14087 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
14088 because the metadata id was not correct. Now we derive the id from the
14089 actual cover image filename, which we preserve rather than using
14090 "cover-image."
14091 + Keep newlines between block elements. This allows
14092 easier diff-ability (#1424).
14093 + Use `stringify` instead of custom `plainify`.
14094 + Use `renderTags'` for all tag rendering. This properly handles tags
14095 that should be self-closing. Previously `<hr/>` would appear in EPUB
14096 output as `<hr></hr>` (#1420).
14097 + Better handle HTML media tags.
14098 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
14099 can have only one dc:date, so only the first one is used.
14101 * LaTeX writer:
14103 + Correctly handle figures in notes. Notes can't contain figures in
14104 LaTeX, so we fake it to avoid an error (#1053).
14105 + Fixed strikeout + highlighted code (#1294).
14106 Previously strikeout highlighted code caused an error.
14108 * ConTeXt writer:
14110 + Improved detection of autolinks with URLs containing escapes.
14112 * RTF writer:
14114 + Improved image embedding: `fetchItem'` is now used to get the
14115 images, and calculated image sizes are indicated in the RTF.
14116 + Avoid extra paragraph tags in metadata (#1421).
14118 * HTML writer:
14120 + Deactivate "incremental" inside slide speaker notes (#1394).
14121 + Don't include empty items in the table of contents for
14122 slide shows. (These would result from creating a slide
14123 using a horizontal rule.)
14125 * MediaWiki writer:
14127 + Minor renaming of `st` prefixed names.
14129 * AsciiDoc writer:
14131 + Double up emphasis and strong emphasis markers in intraword
14132 contexts, as required by asciidoc (#1441).
14134 * Markdown writer:
14136 + Avoid wrapping that might start a list, blockquote, or header (#1013).
14137 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
14138 + Don't use braced attributes for fenced code (#1416).
14139 If `Ext_fenced_code_attributes` is not set, the first class
14140 attribute will be printed after the opening fence as a bare word.
14141 + Separate adjacent lists of the same kind with an HTML comment (#1458).
14143 * PDF writer:
14145 + Fixed treatment of data uris for images (#1062).
14147 * Docx writer:
14149 + Use Compact style for empty table cells (#1353).
14150 Otherwise we get overly tall lines when there are empty
14151 table cells and the other cells are compact.
14152 + Create overrides per-image for `media/` in reference docx.
14153 This should be somewhat more robust and cover more types of images.
14154 + Improved `entryFromArchive` to avoid an unneeded parse.
14155 + Section numbering carries over from reference.docx (#1305).
14156 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
14157 we assign numbers based on the list marker styles.
14159 * `Text.Pandoc.Options`:
14161 + Removed `Ext_fenced_code_attributes` from `markdown_github`
14162 extensions.
14164 * `Text.Pandoc.ImageSize`:
14166 + Use default instead of failing if image size not found
14167 in exif header (#1358).
14168 + ignore unknown exif header tag rather than crashing.
14169 Some images seem to have tag type of 256, which was causing
14170 a runtime error.
14172 * `Text.Pandoc.Shared`:
14174 + `fetchItem`: unescape URI encoding before reading local file (#1427).
14175 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
14176 doing mime lookup, to improve mime type guessing.
14177 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
14178 other things are treated as relative URIs if `sourceURL` is `Just _`,
14179 otherwise as file paths on the local file system.
14180 + `fetchItem` now properly handles links without a protocol (#1477).
14181 + `fetchItem` now escapes characters not allowed in URIs before trying
14182 to parse the URIs.
14183 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
14185 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
14186 needed to resolve relative URLs when we fetch resources (#750).
14188 * `Text.Pandoc.Parsing`
14190 + Simplified `dash` and `ellipsis` (#1419).
14191 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
14192 + Generalized functions to use `ParsecT` (Matthew Pickering).
14193 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
14194 Pickering).
14196### Template changes
14198 * Added haddock template.
14199 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
14200 be "advisory" in HTML5, but kindlegen seems to require them.
14201 * EPUB3: Put title page in section with `epub:type="titlepage"`.
14202 * LaTeX: Made `\subtitle` work properly (#1327).
14203 * LaTeX/Beamer: remove conditional around date (#1321).
14204 * LaTeX: Added `lot` and `lof` variables, which can be set to
14205 get `\listoftables` and `\listoffigures` (#1407). Note that
14206 these variables can be set at the command line with `-Vlot -Vlof`
14207 or in YAML metadata.
14209### Under the hood improvements
14211 * Rewrote normalize for efficiency (#1385).
14213 * Rewrote Haddock reader to use `haddock-library` (#1346).
14215 + This brings pandoc's rendering of haddock markup in line
14216 with the new haddock.
14217 + Fixed line breaks in `@` code blocks.
14218 + alex and happy are no longer build-depends.
14220 * Added `Text.Pandoc.Compat.Directory` to allow building against
14221 different versions of the `directory` library.
14223 + Added `Text.Pandoc.Compat.Except` to allow building against
14224 different versions of `mtl`.
14226 * Code cleanup in some writers, using Reader monad to avoid
14227 passing options parameter around (Matej Kollar).
14229 * Improved readability in `pandoc.hs`.
14231 * Miscellaneous code cleanups (Artyom Kazak).
14233 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
14234 Thompson).
14236 * Changed `http-conduit` flag to `https`. Depend on `http-client`
14237 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
14238 depends on `conduit` via `yaml`.)
14240 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
14241 This change to highlighting-kate means that PHP fragments no longer need
14242 to start with `<?php`. It also fixes a serious bug causing failures with
14243 ocaml and fsharp.
14245 * Require latest `texmath`. This fixes `\tilde{E}` and allows
14246 `\left` to be used with `]`, `)` etc. (#1319), among many other
14247 improvements.
14249 * Require latest `zip-archive`. This has fixes for unicode path names.
14251 * Added tests for plain writer.
14253 * `Text.Pandoc.Templates`:
14255 + Fail informatively on template syntax errors.
14256 With the move from parsec to attoparsec, we lost good error
14257 reporting. In fact, since we weren't testing for end of input,
14258 malformed templates would fail silently. Here we revert back to
14259 Parsec for better error messages.
14260 + Use `ordNub` (#1022).
14262 * Benchmarks:
14264 + Made benchmarks compile again (Artyom Kazak).
14265 + Fixed so that the failure of one benchmark does not prevent others
14266 from running (Artyom Kazak).
14267 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
14268 + Changed benchmark to use only the test suite, so that benchmarks
14269 run more quickly.
14271 * Windows build script:
14273 + Add `-windows` to file name.
14274 + Use one install command for pandoc, pandoc-citeproc.
14275 + Force install of pandoc-citeproc.
14277 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
14278 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
14279 will extract it into a folder named `SOMETHING.pkg`, which it
14280 will interpret as a defective package (#1308).
14282 * `README`:
14284 + Made headers for all extensions so they have IDs and can be
14285 linked to (Beni Cherniavsky-Paskin).
14286 + Fixed typos (Phillip Alday).
14287 + Fixed documentation of attributes (#1315).
14288 + Clarified documentation on small caps (#1360).
14289 + Better documentation for `fenced_code_attributes` extension
14290 (Caleb McDaniel).
14291 + Documented fact that you can put YAML metadata in a separate file
14292 (#1412).
14295## pandoc 1.12.4.2 (2014-05-14)
14297 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
14299 * Shared: `addMetaValue` now behaves slightly differently:
14300 if both the new and old values are lists, it concatenates their
14301 contents to form a new list.
14303 * LaTeX reader:
14305 + Set `bibliography` in metadata from `\bibliography` or
14306 `\addbibresource` command.
14307 + Don't error on `%foo` with no trailing newline.
14309 * Org reader:
14311 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
14312 + Fix parsing of blank lines within blocks (Albert Krewinkel).
14313 + Support pandoc citation extension (Albert Krewinkel). This can
14314 be turned off by specifying `org-citation` as the input format.
14316 * Markdown reader:
14318 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
14319 other readers (Albert Krewinkel).
14321 * `Text.Pandoc.Parsing`:
14323 + Added `citeKey` (see above).
14324 + Added `HasLastStrPosition` type class and `updateLastStrPos`
14325 and `notAfterString` functions.
14327 * Updated copyright notices (Albert Krewinkel).
14329 * Added default.icml to data files so it installs with the package.
14331 * OSX package:
14333 + The binary is now built with options to ensure that it can be
14334 used with OSX 10.6+.
14335 + Moved OSX package materials to osx directory.
14336 + Added OSX package uninstall script, included in the zip container
14337 (thanks to Daniel T. Staal).
14339## pandoc 1.12.4 (2014-05-07)
14341 * Made it possible to run filters that aren't executable
14342 (#1096). Pandoc first tries to find the executable (searching
14343 the path if path isn't given). If it fails, but the file
14344 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
14345 extension, pandoc runs the filter using the appropriate
14346 interpreter. This should make it easier to use filters on
14347 Windows, and make it more convenient for everyone.
14349 * Added Emacs org-mode reader (Albert Krewinkel).
14351 * Added InDesign ICML Writer (mb21).
14353 * MediaWiki reader:
14355 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
14356 + Fixed bug in certain nested lists (#1213). If a level 2 list was
14357 followed by a level 1 list, the first item of the level 1 list
14358 would be lost.
14359 + Handle table rows containing just an HTML comment (#1230).
14361 * LaTeX reader:
14363 + Give better location information on errors, pointing to line
14364 numbers within included files (#1274).
14365 + LaTeX reader: Better handling of `table` environment (#1204).
14366 Positioning options no longer rendered verbatim.
14367 + Better handling of figure and table with caption (#1204).
14368 + Handle `@{}` and `p{length}` in tabular. The length is not actually
14369 recorded, but at least we get a table (#1180).
14370 + Properly handle `\nocite`. It now adds a `nocite` metadata
14371 field. Citations there will appear in the bibliography but not
14372 in the text (unless you explicitly put a `$nocite$` variable
14373 in your template).
14375 * Markdown reader:
14377 + Ensure that whole numbers in YAML metadata are rendered without
14378 decimal points. (This became necessary with changes to aeson
14379 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
14380 + Fixed regression on line breaks in strict mode (#1203).
14381 + Small efficiency improvements.
14382 + Improved parsing of nested `div`s. Formerly a closing `div` tag
14383 would be missed if it came right after other block-level tags.
14384 + Avoid backtracking when closing `</div>` not found.
14385 + Fixed bug in reference link parsing in `markdown_mmd`.
14386 + Fixed a bug in list parsing (#1154). When reading a raw list
14387 item, we now strip off up to 4 spaces.
14388 + Fixed parsing of empty reference link definitions (#1186).
14389 + Made one-column pipe tables work (#1218).
14391 * Textile reader:
14393 + Better support for attributes. Instead of being ignored, attributes
14394 are now parsed and included in Span inlines. The output will be a bit
14395 different from stock textile: e.g. for `*(foo)hi*`, we'll get
14396 `<em><span class="foo">hi</span></em>` instead of
14397 `<em class="foo">hi</em>`. But at least the data is not lost.
14398 + Improved treatment of HTML spans (%) (#1115).
14399 + Improved link parsing. In particular we now pick up on attributes.
14400 Since pandoc links can't have attributes, we enclose the whole link in
14401 a span if there are attributes (#1008).
14402 + Implemented correct parsing rules for inline markup (#1175, Matthew
14403 Pickering).
14404 + Use Builder (Matthew Pickering).
14406 * DocBook reader:
14408 + Better treatment of `formalpara`. We now emit the title (if present)
14409 as a separate paragraph with boldface text (#1215).
14410 + Set metadata `author` not `authors`.
14411 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
14412 Matthew Pickering).
14413 + Converted current meta information parsing in DocBook to a more
14414 extensible version which is aware of the more recent meta
14415 representation (Matthew Pickering).
14417 * HTML reader:
14419 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
14420 (#1248).
14421 + Treat processing instructions & declarations as block. Previously
14422 these were treated as inline, and included in paragraph tags in HTML
14423 or DocBook output, which is generally not what is wanted (#1233).
14424 + Updated `closes` with rules from HTML5 spec.
14425 + Use Builder (Matthew Pickering, #1162).
14427 * RST reader:
14429 + Remove duplicate `http` in PEP links (Albert Krewinkel).
14430 + Make rst figures true figures (#1168, CasperVector)
14431 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
14432 rST parser now supports: all built-in rST roles, new role definition,
14433 role inheritance, though with some limitations.
14434 + Use `author` rather than `authors` in metadata.
14435 + Better handling of directives. We now correctly handle field
14436 lists that are indented more than three spaces. We treat an
14437 `aafig` directive as a code block with attributes, so it can be
14438 processed in a filter (#1212).
14440 * LaTeX writer:
14442 + Mark span contents with label if span has an ID (Albert Krewinkel).
14443 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
14444 + Handle line breaks in simple table cells (#1217).
14445 + Workaround for level 4-5 headers in quotes. These previously produced
14446 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
14447 This adds an `mbox{}` in these contexts to work around the problem.
14448 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
14449 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
14450 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
14451 ligature with LuaLaTeX but `\/` does.
14452 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
14454 * ConTeXt writer: Improved autolinks (#1270).
14456 * DocBook writer:
14458 + Improve handling of hard line breaks in Docbook writer
14459 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
14460 just for the newline character.
14461 + Don't let line breaks inside footnotes influence the enclosing
14462 paragraph (Neil Mayhew).
14463 + Distinguish tight and loose lists in DocBook output, using
14464 `spacing="compact"` (Neil Mayhew, #1250).
14466 * Docx writer: When needed files are not present in the user's
14467 `reference.docx`, fall back on the versions in the `reference.docx`
14468 in pandoc's data files. This fixes a bug that occurs when a
14469 `reference.docx` saved by LibreOffice is used. (#1185)
14471 * EPUB writer:
14473 + Include extension in epub ids. This fixes a problem with duplicate
14474 extensions for fonts and images with the same base name but different
14475 extensions (#1254).
14476 + Handle files linked in raw `img` tags (#1170).
14477 + Handle media in `audio` source tags (#1170).
14478 Note that we now use a `media` directory rather than `images`.
14479 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
14480 will both be incorporated into `content.opf` and the epub container.
14482 * HTML writer:
14484 + Add colgroup around col tags (#877). Also affects EPUB writer.
14485 + Fixed bug with unnumbered section headings. Unnumbered section
14486 headings (with class `unnumbered`) were getting numbers.
14487 + Improved detection of image links. Previously image links with
14488 queries were not recognized, causing `<embed>` to be used instead
14489 of `<img>`.
14491 * Man writer: Ensure that terms in definition lists aren't line wrapped
14492 (#1195).
14494 * Markdown writer:
14496 + Use proper escapes to avoid unwanted lists (#980). Previously we used
14497 0-width spaces, an ugly hack.
14498 + Use longer backtick fences if needed (#1206). If the content contains a
14499 backtick fence and there are attributes, make sure longer fences are
14500 used to delimit the code. Note: This works well in pandoc, but github
14501 markdown is more limited, and will interpret the first string of three
14502 or more backticks as ending the code block.
14504 * RST writer: Avoid stack overflow with certain tables (#1197).
14506 * RTF writer: Fixed table cells containing paragraphs.
14508 * Custom writer:
14510 + Correctly handle UTF-8 in custom lua scripts (#1189).
14511 + Fix bugs with lua scripts with mixed-case filenames and
14512 paths containing `+` or `-` (#1267). Note that `getWriter`
14513 in `Text.Pandoc` no longer returns a custom writer on input
14514 `foo.lua`.
14516 * AsciiDoc writer: Handle multiblock and empty table cells
14517 (#1245, #1246). Added tests.
14519 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
14521 * `Text.Pandoc.Shared`:
14523 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
14524 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
14525 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
14526 Jesse Rosenthal.
14527 + `openURL`: set proxy with value of http_proxy env variable (#1211).
14528 Note: proxies with non-root paths are not supported, due to
14529 limitations in `http-conduit`.
14531 * `Text.Pandoc.PDF`:
14533 + Ensure that temp directories deleted on Windows (#1192). The PDF is
14534 now read as a strict bytestring, ensuring that process ownership will
14535 be terminated, so the temp directory can be deleted.
14536 + Use `/` as path separators in a few places, even on Windows.
14537 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
14538 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
14539 + Changes to error reporting, to handle non-UTF8 error output.
14541 * `Text.Pandoc.Templates`:
14543 + Removed unneeded datatype context (Merijn Verstraaten).
14545 + YAML objects resolve to "true" in conditionals (#1133).
14546 Note: If `address` is a YAML object and you just have `$address$`
14547 in your template, the word `true` will appear, which may be
14548 unexpected. (Previously nothing would appear.)
14550 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
14551 tags (#1188).
14553 * `Text.Pandoc.Parsing`:
14555 + Made `F` an instance of Applicative (#1138).
14556 + Added `stateCaption`.
14557 + Added `HasMacros`, simplified other typeclasses.
14558 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
14559 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
14560 + Changed the smart punctuation parser to return `Inlines`
14561 rather than `Inline` (Matthew Pickering).
14562 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
14563 from typeclasses of monads to typeclasses of states. This simplifies
14564 the instance definitions and provides more flexibility. Generalized
14565 type of `getOption` and added a default definition. Removed
14566 `askReaderOption`. Added `extractReaderOption`. Added
14567 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
14568 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
14569 `modifyHeaderMap`. Added `extractIdentifierList` and
14570 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
14571 for `getIdentifierList`, `putIdentifierList`, and
14572 `modifyIdentifierList`. The ultimate goal here is to allow different
14573 parsers to use their own, tailored parser states (instead of
14574 `ParserState`) while still using shared functions.
14576 * Template changes:
14578 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
14579 + LaTeX template: Add `linestretch` and `fontfamily` variables.
14580 + LaTeX template: Conditionalize author and date commands.
14581 + Beamer template: Consistent styles for figure and table captions
14582 (aaronwolen).
14583 + LaTeX and beamer template: Adjust widths correctly for oversized
14584 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
14585 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
14586 `upquote` only after `fontenc` (Yihui Xie).
14587 + Beamer template: Added caption package (#1200).
14588 + Beamer template: changes for better unicode handling (KarolS).
14589 + DocBook template: use `authorgroup` if there are authors.
14590 + revealjs template: Move `include-after` to end (certainlyakey).
14591 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
14593 * Bumped version bounds of dependencies.
14595 * Added a `--trace` command line option, for debugging backtracking
14596 bugs. So far this only works with the markdown reader.
14598 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
14600 * Updated travis script to test with multiple GHC versions.
14602 * Force failure of a Travis build if GHC produces warnings (Albert
14603 Krewinkel).
14605 * Add `.editorconfig` (Albert Krewinkel).
14606 See <http://editorconfig.org/> for details.
14608 * Give more useful error message if '-t pdf' is specified (#1155).
14610 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
14612 * Allow `html4` as a synonym of `html` as a reader (it already works
14613 as a writer).
14615 * README:
14617 + Added an explanation of how to use YAML metadata to
14618 force items to appear in the bibliography without citations in
14619 the text (like LaTeX `\nocite`).
14620 + Added note to `--bibtex/--natbib`: not for use in making PDF
14621 (#1194, thanks to nahoj).
14622 + Added explanatory notes about `--natbib` and `--biblatex`.
14623 + Added specification of legal syntax for citation keys.
14624 + Fixed variable defaults documentation (Albert Krewinkel).
14626 * Removed copyright statements for files that have been removed
14627 (Albert Krewinkel).
14629 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
14630 They aren't needed at runtime. We keep README and COPYRIGHT in data
14631 to ensure that they'll be available on all systems on which pandoc
14632 is installed.
14634 * Use cabal sandboxes in Windows build script.
14636## pandoc 1.12.3.3 (2014-02-03)
14638 * To changes to source; recompiled tarball with latest alex and
14639 happy, so they will work with GHC 7.8.
14641## pandoc 1.12.3.2 (2014-02-03)
14643 * Bumped version bounds for blaze-html, blaze-markup.
14645 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
14646 (#1124).
14648 * Fixed mediawiki ordered list parsing (#1122).
14650 * HTML reader: Fixed bug reading inline math with `$$` (#225).
14652 * Added support for LaTeX style literate Haskell code blocks in rST
14653 (Merijn Verstraaten).
14655## pandoc 1.12.3.1 (2014-01-14)
14657 * Relaxed version constraint on binary, allowing the use of binary 0.5.
14660## pandoc 1.12.3 (2014-01-10)
14662 * The `--bibliography` option now sets the `biblio-files` variable.
14663 So, if you're using `--natbib` or `--biblatex`, you can just use
14664 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
14666 * Don't run pandoc-citeproc filter if `--bibliography` is
14667 used together with `--natbib` or `--biblatex` (Florian Eitel).
14669 * Template changes:
14671 + Updated beamer template to include booktabs.
14672 + Added `abstract` variable to LaTeX template.
14673 + Put `header-includes` after `title` in LaTeX template (#908).
14674 + Allow use of `\includegraphics[size]` in beamer.
14675 This just required porting a macro definition from the default
14676 LaTeX template to the default beamer template.
14678 * `reference.docx`: Include `FootnoteText` style.
14679 Otherwise Word ignores the style, even when specified in the `pPr`.
14680 (#901)
14682 * `reference.odt`: Tidied `styles.xml`.
14684 * Relaxed version bounds for dependencies.
14686 * Added `withSocketsDo` around http conduit code in `openURL`,
14687 so it works on Windows (#1080).
14689 * Added `Cite` function to `sample.lua`.
14691 * Markdown reader:
14693 + Fixed regression in title blocks (#1089).
14694 If author field was empty, date was being ignored.
14695 + Allow backslash-newline hard line breaks in grid and
14696 multiline table cells.
14697 + Citation keys may now start with underscores, and may contain
14698 underscores adjacent to internal punctuation.
14700 * LaTeX reader:
14702 + Add support for `Verb` macro (jrnold) (#1090).
14703 + Support babel-style quoting: `` "`..."' ``.
14705 * Properly handle script blocks in strict mode. (That is,
14706 `markdown-markdown_in_html_blocks`.) Previously a spurious
14707 `<p>` tag was being added (#1093).
14709 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
14710 elements.
14712 * LaTeX writer:
14714 + Factored out function for table cell creation.
14715 + Better treatment of footnotes in tables.
14716 Notes now appear in the regular sequence, rather than in the
14717 table cell. (This was a regression in 1.10.)
14719 * HTML reader: Parse name/content pairs from meta tags as metadata.
14720 Closes #1106.
14722 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
14724 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
14726 * ODT writer: Use mathml for proper rendering of formulas.
14727 Note: LibreOffice's support for this seems a bit buggy. But
14728 it should be better than what we had before.
14730 * RST writer: Ensure no blank line after def in definition list (#992).
14732 * Markdown writer: Don't use tilde code blocks with braced attributes in
14733 `markdown_github` output. A consequence of this change is that the
14734 backtick form will be preferred in general if both are enabled. That
14735 is good, as it is much more widespread than the tilde form. (#1084)
14737 * Docx writer: Fixed problem with some modified reference docx files.
14738 Include `word/_rels/settings.xml.rels` if it exists, as well as other
14739 `rels` files besides the ones pandoc generates explicitly.
14741 * HTML writer:
14743 + With `--toc`, headers no longer link to themselves (#1081).
14744 + Omit footnotes from TOC entries. Otherwise we get doubled
14745 footnotes when headers have notes!
14747 * EPUB writer:
14749 + Avoid duplicate notes when headings contain notes.
14750 This arose because the headings are copied into the metadata
14751 "title" field, and the note gets rendered twice. We strip the
14752 note now before putting the heading in "title".
14753 + Strip out footnotes from toc entries.
14754 + Fixed bug with `--epub-stylesheet`. Now the contents of
14755 `writerEpubStylesheet` (set by `--epub-stylesheet`)
14756 should again work, and take precedence over a stylesheet specified
14757 in the metadata.
14759 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
14761 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
14763 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
14764 with `//`.
14766 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
14767 we could only get size information for JFIF format, which led
14768 to squished images in Word documents. Closes #976.
14770 * Removed old `MarkdownTest_1.0.3` directory (#1104).
14773## pandoc 1.12.2.1 (2013-12-08)
14775 * Markdown reader: Fixed regression in list parser, involving
14776 continuation lines containing raw HTML (or even verbatim raw HTML).
14778## pandoc 1.12.2 (2013-12-07)
14780 * Metadata may now be included in YAML blocks in a markdown document.
14781 For example,
14783 ---
14784 title:
14785 - type: main
14786 text: My Book
14787 - type: subtitle
14788 text: An investigation of metadata
14789 creator:
14790 - role: author
14791 text: John Smith
14792 - role: editor
14793 text: Sarah Jones
14794 identifier:
14795 - scheme: DOI
14796 text: doi:10.234234.234/33
14797 publisher: My Press
14798 rights: (c) 2007 John Smith, CC BY-NC
14799 cover-image: img/mypic.jpg
14800 stylesheet: style.css
14801 ...
14803 Metadata may still be provided using `--epub-metadata`; it will
14804 be merged with the metadata in YAML blocks.
14806 * EPUB writer:
14808 + `meta` tags are now used instead of `opf` attributes for EPUB3.
14809 + Insert "svg" property as needed in opf (EPUB 3).
14810 + Simplify `imageTypeOf` using `getMimeType`.
14811 + Add properties attribute to `cover-image` item for EPUB 3.
14812 + Don't include node for `cover.xhtml` if no cover!
14813 + Ensure that same identifier is used throughout (#1044).
14814 If an identifier is given in metadata, we use that; otherwise
14815 we generate a random uuid.
14816 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
14817 Fixes an issue with Calibre putting the cover at the end of the book
14818 if the spine has `linear="no"`. Apparently this is best practice
14819 for other converters as well:
14820 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
14821 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
14822 + Allow partial dates: `YYYY`, `YYYY-MM`.
14824 * Markdown writer: Fix rendering of tight sublists (#1050).
14825 Previously a spurious blank line was included after a tight sublist.
14827 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
14828 This is reported to be necessary to avoid an error from recent
14829 versions of Libre Office when files contain more than one image
14830 Thanks to wmanley for reporting and diagnosing the problem.
14832 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
14833 Instead, let this be set in the template, using `\setupfloat`.
14834 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
14836 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
14838 * Fixed bug with markdown intraword emphasis. Closes #1066.
14840 * Docbook writer: Hierarchicalize block content in metadata.
14841 Previously headers just disappeared from block-level metadata
14842 when it was used in templates. Now we apply the 'hierarchicalize'
14843 transformation. Note that a block headed by a level-2 header will
14844 turn into a `<sect1>` element.
14846 * OpenDocument writer: Skip raw HTML (#1035).
14847 Previously it was erroneously included as verbatim text.
14849 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
14850 This allows better control of formatting, since the `<a>`
14851 tags have a distinguishing class (#1049).
14853 * Docx writer:
14855 + Use mime type info returned by fetchItem.
14856 + Fixed core metadata (#1046).
14857 Don't create empty date nodes if no date given.
14858 Don't create multiple `dc:creator` nodes; instead separate by
14859 semicolons.
14860 + Fix URL for core-properties in `_rels/.rels` (#1046).
14862 * Plain writer: don't print `<span>` tags.
14864 * LaTeX writer:
14866 + Fix definition lists with internal links in terms (#1032).
14867 This fix puts braces around a term that contains an internal
14868 link, to avoid problems with square brackets.
14869 + Properly escape pdftitle, pdfauthor (#1059).
14870 + Use booktabs package for tables (thanks to Jose Luis Duran).
14872 * Updated beamer template. Now references should work properly
14873 (in a slide) when `--biblatex` or `--natbib` is used.
14875 * LaTeX reader:
14877 + Parse contents of curly quotes or matched `"` as quotes.
14878 + Support `\textnormal` as span with class `nodecor`.
14879 This is needed for pandoc-citeproc.
14880 + Improved citation parsing. This fixes a run-time error that occurred
14881 with `\citet{}` (empty list of keys). It also ensures that empty keys
14882 don't get produced.
14884 * MediaWiki reader: Add automatic header identifiers.
14886 * HTML reader:
14888 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
14889 `--parse-raw`.
14890 + Recognize `svg` tags as block level content (thanks to MinRK).
14891 + Parse LaTeX math if appropriate options are set.
14893 * Markdown reader:
14895 + Yaml block must start immediately after `---`. If there's a blank
14896 line after `---`, we interpreted it as a horizontal rule.
14897 + Correctly handle empty bullet list items.
14898 + Stop parsing "list lines" when we hit a block tag.
14899 This fixes exponential slowdown in certain input, e.g.
14900 a series of lists followed by `</div>`.
14902 * Slides: Preserve `<div class="references">` in references slide.
14904 * `Text.Pandoc.Writer.Shared`:
14906 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
14907 attributes, leading to invalid HTML.
14908 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
14909 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
14910 encoded bytestring was returned. We now decode it so it's a proper
14911 image!
14913 * DocBook reader: Handle numerical attributes starting with decimal.
14914 Also use `safeRead` instead of `read`.
14916 * `Text.Pandoc.Parsing`:
14918 + Generalized type of `registerHeader`, using new type classes
14919 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
14920 These allow certain common functions to be reused
14921 even in parsers that use custom state (instead of `ParserState`),
14922 such as the MediaWiki reader.
14923 + Moved inlineMath, displayMath from Markdown reader to Parsing.
14924 Generalize their types and export them from Parsing. (API change.)
14926 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
14927 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
14928 in all the writers. Require `texmath >= 0.6.5.2`.
14930 * `Text.Pandoc.MIME`:
14932 + Add entry for `jfif`.
14933 + In looking up extensions, drop the encoding info.
14934 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
14936 * Templates: Changed how array variables are resolved. Previously if
14937 `foo` is an array (which might be because multiple values were set on
14938 the command line), `$foo$` would resolve to the concatenation of the
14939 elements of foo. This is rarely useful behavior. It has been changed
14940 so that the first value is rendered. Of course, you can still iterate
14941 over the values using `$for(foo)$`. This has the result that you can
14942 override earlier settings using `-V` by putting new values later on the
14943 command line, which is useful for many purposes.
14945 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
14947 * Allow "epub2" as synonym for "epub", "html4" for "html".
14949 * Don't look for slidy files in data files with `--self-contained`.
14951 * Allow `https:` command line arguments to be downloaded.
14953 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
14955## pandoc 1.12.1 (2013-10-20)
14957 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
14958 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
14959 "c": "foo"}`. This new format is easier to work with outside of Haskell.
14960 Incidentally, "t" stands for "tag", "c" for "contents".
14962 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
14963 when converting to markdown (#1027).
14965 * LaTeX reader:
14967 + Ensure that preamble doesn't contribute to the text of
14968 the document.
14969 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
14970 properly, among others.
14971 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
14972 bibtex titles, since we need to know what was protected from
14973 titlecase conversions.
14975 * LaTeX writer:
14977 + Specially escape non-ascii characters in labels.
14978 Otherwise we can get compile errors and other bugs when
14979 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
14980 + Add link anchors for code blocks with identifiers (#1025).
14982 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
14983 It allows fragments identifiers.
14985 * Slide formats:
14987 + A Div element with class "notes" is treated as speaker
14988 notes. Currently beamer goes to `\note{}`, revealjs to
14989 `<aside class="notes">`, and the notes are simply suppressed in
14990 other formats (#925).
14991 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
14992 The old version caused a pause to be inserted before the first
14993 material on a slide. This has been fixed.
14994 + Removed data files for s5, slideous, slidy.
14995 Users of s5 and slideous will have to download the needed
14996 files, as has been documented for some time in the README.
14997 By default, slidy code will be sought on the web, as before.
14999 * HTML writer: Insert command to typeset mathjax only in slideous output
15000 (#966, #1012).
15002 * RST writer: Skip spaces after display math. Otherwise we get indentation
15003 problems, and part of the next paragraph may be rendered as part of the
15004 math.
15006 * OpenDocument writer: Fix formatting of strikeout code (#995),
15007 thanks to wilx. don't use `font-face-decls` variable.
15009 * Fixed test suite so it works with cabal sandboxes.
15011## pandoc 1.12.0.2 (2013-09-20)
15013 * Removed an unused dependency (`stringable`) from pandoc.cabal.
15014 This will help packagers, but users should not need to upgrade.
15016## pandoc 1.12.0.1 (2013-09-20)
15018 * Allow `--metadata` to be repeated for the same key to form a list.
15019 This also has the effect that `--bibliography` can be repeated,
15020 as before.
15022 * Handle boolean values in `--metadata`. Note that anything not parseable
15023 as a YAML boolean or string is treated as a literal string.
15024 You can get a string value with "yes", or any of the strings interpretable
15025 as booleans, by quoting it:
15027 -M boolvalue=yes -M stringvalue='"yes"'
15029 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
15030 option used.
15032 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
15033 in which docx files could not be read by some versions of Word
15034 and LibreOffice (#990).
15036 * Fixed a regression involving slide shows with bibliographies.
15037 The Div container around references messed up the procedure for carving
15038 a document into slides. So we now remove the surrounding Div in
15039 `prepSlides`.
15041 * More informative error message when a filter is not found in path.
15043 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
15044 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
15046 * Don't use unicode_collation in building OSX package:
15047 it adds something like 50MB of dependencies to the package.
15049 * Declare alex and happy as build-tools (#986).
15051## pandoc 1.12 (2013-09-15)
15053### New features
15055 * Much more flexible metadata, including arbitrary fields and structured
15056 values. Metadata can be specified flexibly in pandoc markdown using
15057 YAML metadata blocks, which may occur anywhere in the document:
15059 ---
15060 title: Here is my title.
15061 abstract: |
15062 This is the abstract.
15064 1. It can contain
15065 2. block content
15066 and *inline markup*
15068 tags: [cat, dog, animal]
15069 ...
15071 Metadata fields automatically populate template variables.
15073 * Added `opml` (OPML) as input and output format. The `_note` attribute,
15074 used in OmniOutliner and supported by multimarkdown, is supported.
15075 We treat the contents as markdown blocks under a section header.
15077 * Added `haddock` (Haddock markup) as input format (David Lazar).
15079 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
15080 (Thanks to Jamie F. Olson for the initial patch.)
15081 Nested vertical stacks are used for hierarchical structure.
15082 Results for more than one level of nesting may be odd.
15084 * Custom writers can now be written in lua.
15086 pandoc -t data/sample.lua
15088 will load the script sample.lua and use it as a custom writer.
15089 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
15090 Note that pandoc embeds a lua interpreter, so lua need not be
15091 installed separately.
15093 * New `--filter/-F` option to make it easier to run "filters"
15094 (Pandoc AST transformations that operate on JSON serializations).
15095 Filters are always passed the name of the output format, so their
15096 behavior can be tailored to it. The repository
15097 <https://github.com/jgm/pandocfilters> contains
15098 a python module for writing pandoc filters in python, with
15099 a number of examples.
15101 * Added `--metadata/-M` option.
15102 This is like `--variable/-V`, but actually adds to metadata, not
15103 just variables.
15105 * Added `--print-default-data-file` option, which allows printing
15106 of any of pandoc's data files. (For example,
15107 `pandoc --print-default-data-file reference.odt` will print
15108 `reference.odt`.)
15110 * Added syntax for "pauses" in slide shows:
15112 This gives
15114 . . .
15116 me pause.
15118 * New markdown extensions:
15120 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
15121 rather than being treated as hard line breaks or spaces. This is useful
15122 for some East Asian languages, where spaces aren't used between words,
15123 but text is separated into lines for readability.
15124 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
15125 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
15126 only. (Default for `markdown_github`.) (#807)
15127 + `lists_without_preceding_blankline`: Allow lists to start without
15128 preceding blank space. (Default for `markdown_github`.) (#972)
15130### Behavior changes
15132 * `--toc-level` no longer implies `--toc`.
15133 Reason: EPUB users who don't want a visible TOC may still want
15134 to set the TOC level for in the book navigation.
15136 * `--help` now prints in and out formats in alphabetical order, and
15137 says something about PDF output (#720).
15139 * `--self-contained` now returns less verbose output (telling you
15140 which URLs it is fetching, but not giving the full header). In
15141 addition, there are better error messages when fetching a URL fails.
15143 * Citation support is no longer baked in to core pandoc. Users who
15144 need citations will need to install and use a separate filter
15145 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
15146 `csl`, and `citation-abbreviations` from the metadata, though it
15147 may still be specified on the command line as before.
15149 * A `Cite` element is now created in parsing markdown whether or not
15150 there is a matching reference.
15152 * The `pandoc-citeproc` script will put the bibliography at the
15153 end of the document, as before. However, it will be put inside a `Div`
15154 element with class "references", allowing users some control
15155 over the styling of references. A final header, if any, will
15156 be included in the `Div`.
15158 * The markdown writer will not print a bibliography if the
15159 `citations` extension is enabled. (If the citations are formatted
15160 as markdown citations, it is redundant to have a bibliography,
15161 since one will be generated automatically.)
15163 * Previously we used to store the directory of the first input file,
15164 even if it was local, and used this as a base directory for finding
15165 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
15166 users. So we now look for images relative to the current
15167 working directory, even if the first file argument is in another
15168 directory. Note that this change may break some existing workflows.
15169 If you have been assuming that relative links will be interpreted
15170 relative to the directory of the first file argument, you'll need
15171 to make that the current directory before running pandoc. (#942)
15173 * Better error reporting in some readers, due to changes in `readWith`:
15174 the line in which the error occurred is printed, with a caret pointing
15175 to the column.
15177 * All slide formats now support incremental slide view for definition lists.
15179 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
15180 Parse `:<math>...</math>` as display math. These notations are used with
15181 the MathJax MediaWiki extension.
15183 * All writers: template variables are set automatically from metadata
15184 fields. However, variables specified on the command line with
15185 `--variable` will completely shadow metadata fields.
15187 * If `--variable` is used to set many variables with the same name,
15188 a list is created.
15190 * Man writer: The `title`, `section`, `header`, and `footer` can now
15191 all be set individually in metadata. The `description` variable has been
15192 removed. Quotes have been added so that spaces are allowed in the
15193 title. If you have a title that begins
15195 COMMAND(1) footer here | header here
15197 pandoc will still parse it into a title, section, header, and
15198 footer. But you can also specify these elements explicitly (#885).
15200 * Markdown reader
15202 + Added support for YAML metadata blocks, which can come anywhere
15203 in the document (not just at the beginning). A document can contain
15204 multiple YAML metadata blocks.
15205 + HTML span and div tags are parsed as pandoc Span and Div elements.
15207 * Markdown writer
15209 + Allow simple tables to be printed as grid tables,
15210 if other table options are disabled. This means you can do
15211 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
15212 and all tables will render as grid tables.
15213 + Support YAML title block (render fields in alphabetical order
15214 to make output predictable).
15216### API changes
15218 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
15219 structured metadata. (Note: existing code that pattern-matches
15220 on `Meta` will have to be revised.) Metadata can now contain
15221 indefinitely many fields, with content that can be a string,
15222 a Boolean, a list of `Inline` elements, a list of `Block`
15223 elements, or a map or list of these.
15225 * A new generic block container (`Div`) has been added to `Block`,
15226 and a generic inline container (`Span`) has been added to `Inline`.
15227 These can take attributes. They will render in HTML, Textile,
15228 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
15229 extension) as HTML `<div>` and `<span>` elements; in other formats
15230 they will simply pass through their contents. But they can be
15231 targeted by scripts.
15233 * `Format` is now a newtype, not an alias for String.
15234 Equality comparisons are case-insensitive.
15236 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
15237 functions that are much faster than the SYB functions from
15238 `Text.Pandoc.Generic`. These functions are now used where possible
15239 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
15240 match the generic traversals `bottomUp` and `queryWith`.)
15242 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
15243 instances for the basic pandoc types. They use GHC generics and
15244 should be faster than the old JSON serialization using
15245 `Data.Aeson.Generic`.
15247 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
15248 This is a souped-up version of `readProcessWithErrorcode` that
15249 uses lazy bytestrings instead of strings and allows setting
15250 environment variables. (Used in `Text.Pandoc.PDF`.)
15252 * New module `Text.Pandoc.Readers.OPML`.
15254 * New module `Text.Pandoc.Writers.OPML`.
15256 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
15257 This is based on Haddock's own lexer/parser.
15259 * New module `Text.Pandoc.Writers.Custom`.
15261 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
15262 Either, for better error handling.
15264 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
15266 * Removed `stripTags` from `Text.Pandoc.XML`.
15268 * `Text.Pandoc.Templates`:
15270 + Simplified `Template` type to a newtype.
15271 + Removed `Empty`.
15272 + Changed type of `renderTemplate`: it now takes a JSON context
15273 and a compiled template.
15274 + Export `compileTemplate`.
15275 + Export `renderTemplate'` that takes a string instead of a compiled
15276 template.
15277 + Export `varListToJSON`.
15279 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
15281 * `Text.Pandoc`:
15283 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
15284 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
15285 `Text.Pandoc.JSON` should be used instead. (Compiling against
15286 pandoc-types instead of pandoc will also produce smaller executables.)
15287 * Removed the deprecated `jsonFilter` function.
15288 + Added `readJSON`, `writeJSON` to the API (#817).
15290 * `Text.Pandoc.Options`:
15292 + Added `Ext_lists_without_preceding_blankline`,
15293 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
15294 `Ext_yaml_metadataBlock` to `Extension`.
15295 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
15296 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
15297 first command-line argument is an absolute URL. (So, relative links
15298 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
15299 + All bibliography-related fields have been removed from
15300 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
15301 `readerReferences`, `readerCitationStyle`.
15303 * The `Text.Pandoc.Biblio` module has been removed. Users of the
15304 pandoc library who want citation support will need to use
15305 `Text.CSL.Pandoc` from `pandoc-citeproc`.
15307### Bug fixes
15309 * In markdown, don't autolink a bare URI that is followed by `</a>`
15310 (#937).
15312 * `Text.Pandoc.Shared`
15314 + `openURL` now follows redirects (#701), properly handles `data:`
15315 URIs, and prints diagnostic output to stderr rather than stdout.
15316 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
15317 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
15318 + Fixed `readDefaultDataFile` so it works on Windows.
15319 + Better error messages for `readDefaultDataFile`. Instead of
15320 listing the last path tried, which can confuse people who are
15321 using `--self-contained`, so now we just list the data file name.
15322 + URL-escape pipe characters. Even though these are legal, `Network.URI`
15323 doesn't regard them as legal in URLs. So we escape them first (#535).
15325 * Mathjax in HTML slide shows: include explicit "Typeset" call.
15326 This seems to be needed for some formats (e.g. slideous) and won't
15327 hurt in others (#966).
15329 * `Text.Pandoc.PDF`
15331 + On Windows, create temdir in working directory, since the system
15332 temp directory path may contain tildes, which can cause
15333 problems in LaTeX (#777).
15334 + Put temporary output directory in `TEXINPUTS` (see #917).
15335 + `makePDF` tries to download images that are not found locally,
15336 if the first argument is a URL (#917).
15337 + If compiling with `pdflatex` yields an encoding error, offer
15338 the suggestion to use `--latex-engine=xelatex`.
15340 * Produce automatic header identifiers in parsing textile, RST,
15341 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
15343 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
15344 before treating as a filename. This fixes `--self-contained` when used
15345 with CSS files that include web fonts using the method described here:
15346 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
15347 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
15349 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
15350 percent-encoding, or a `+` character, as final punctuation.
15352 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
15353 EPS images properly sized on conversion to Word.
15355 * Slidy: Use slidy.js rather than slidy.js.gz.
15356 Reason: some browsers have trouble with the gzipped js file,
15357 at least on the local file system (#795).
15359 * Markdown reader
15361 + Properly handle blank line at beginning of input (#882).
15362 + Fixed bug in unmatched reference links. The input
15363 `[*infile*] [*outfile*]` was getting improperly parsed:
15364 "infile" was emphasized, but "*outfile*" was literal (#883).
15365 + Allow internal `+` in citation identifiers (#856).
15366 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
15367 + Do not generate blank title, author, or date metadata elements.
15368 Leave these out entirely if they aren't present.
15369 + Allow backtick code blocks not to be preceded by blank line (#975).
15371 * Textile reader:
15373 + Correctly handle entities.
15374 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
15375 in code blocks, rather than printing them verbatim. Parse attributes
15376 on `<pre>` tag for code blocks.
15378 * HTML reader: Handle non-simple tables (#893). Column widths are read from
15379 `col` tags if present, otherwise divided equally.
15381 * LaTeX reader
15383 + Support alltt environment (#892).
15384 + Support `\textasciitilde`, `\textasciicircum` (#810).
15385 + Treat `\textsl` as emphasized text reader (#850).
15386 + Skip positional options after `\begin{figure}`.
15387 + Support `\v{}` for hacek (#926).
15388 + Don't add spurious ", " to citation suffixes.
15389 This is added when needed in pandoc-citeproc.
15390 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
15391 + Improved support for accented characters (thanks to Scott Morrison).
15392 + Parse label after section command and set id (#951).
15394 * RST reader:
15396 + Don't insert paragraphs where docutils doesn't.
15397 `rst2html` doesn't add `<p>` tags to list items (even when they are
15398 separated by blank lines) unless there are multiple paragraphs in the
15399 list. This commit changes the RST reader to conform more closely to
15400 what docutils does (#880).
15401 + Improved metadata. Treat initial field list as metadata when
15402 standalone specified. Previously ALL fields "title", "author",
15403 "date" in field lists were treated as metadata, even if not at
15404 the beginning. Use `subtitle` metadata field for subtitle.
15405 + Fixed 'authors' metadata parsing in reST. Semicolons separate
15406 different authors.
15408 * MediaWiki reader
15410 + Allow space before table rows.
15411 + Fixed regression for `<ref>URL</ref>`.
15412 `<` is no longer allowed in URLs, according to the uri parser
15413 in `Text.Pandoc.Parsing`. Added a test case.
15414 + Correctly handle indented preformatted text without preceding
15415 or following blank line.
15416 + Fixed `|` links inside table cells. Improved attribute parsing.
15417 + Skip attributes on table rows. Previously we just crashed if
15418 rows had attributes, now we ignore them.
15419 + Ignore attributes on headers.
15420 + Allow `Image:` for images (#971).
15421 + Parse an image with caption in a paragraph by itself as a figure.
15423 * LaTeX writer
15425 + Don't use ligatures in escaping inline code.
15426 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
15427 wherein notes were numbered incorrectly in tables (#827).
15428 + Always create labels for sections. Previously the labels were only
15429 created when there were links to the section in the document (#871).
15430 + Stop escaping `|` in LaTeX math.
15431 This caused problems with array environments (#891).
15432 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
15433 `\` will cause major problems if unescaped.
15434 + Write id for code block to label attribute in LaTeX when listings
15435 is used (thanks to Florian Eitel).
15436 + Scale LaTeX tables so they don't exceed columnwidth.
15437 + Avoid problem with footnotes in unnumbered headers (#940).
15439 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
15440 to the slide if it is one of the header classes. It is recommended
15441 that your bibliography slide have this attribute:
15443 # References {.allowframebreaks}
15445 This causes multiple slides to be created if necessary, depending
15446 on the length of the bibliography.
15448 * ConTeXt writer: Properly handle tables without captions. The old output
15449 only worked in MkII. This should work in MkIV as well (#837).
15451 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
15453 * HTML writer:
15455 + Fixed `--no-highlight` (Alexander Kondratskiy).
15456 + Don't convert to lowercase in email obfuscation (#839).
15457 + Ensure proper escaping in `<title>` and `<meta>` fields.
15459 * AsciiDoc writer:
15461 + Support `--atx-headers` (Max Rydahl Andersen).
15462 + Don't print empty identifier blocks `([[]])` on headers (Max
15463 Rydahl Andersen).
15465 * ODT writer:
15467 + Fixing wrong numbered-list indentation in open document format
15468 (Alexander Kondratskiy) (#369).
15469 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
15470 + Minor changes for ODF 1.2 conformance (#939). We leave the
15471 nonconforming `contextual-spacing` attribute, which is provided by
15472 LibreOffice itself and seems well supported.
15474 * Docx writer:
15476 + Fixed rendering of display math in lists.
15477 In 1.11 and 1.11.1, display math in lists rendered as a new list
15478 item. Now it always appears centered, just as outside of lists,
15479 and in proper display math style, no matter how far indented the
15480 containing list item is (#784).
15481 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
15482 Previously we used `w:cr` (#873).
15483 + Use Compact style for Plain block elements, to
15484 differentiate between tight and loose lists (#775).
15485 + Ignore most components of `reference.docx`.
15486 We take the `word/styles.xml`, `docProps/app.xml`,
15487 `word/theme/theme1.xml`, and `word/fontTable.xml` from
15488 `reference.docx`, ignoring everything else. This should help
15489 with the corruption problems caused when different versions of
15490 Word resave the reference.docx and reorganize things.
15491 + Made `--no-highlight` work properly.
15493 * EPUB writer
15495 + Don't add `dc:creator` tags if present in EPUB metadata.
15496 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
15497 + Don't put blank title page in reading sequence.
15498 Set `linear="no"` if no title block. Addresses #797.
15499 + Download webtex images and include as data URLs.
15500 This allows you to use `--webtex` in creating EPUBs.
15501 Math with `--webtex` is automatically made self-contained.
15502 + In `data/epub.css`, removed highlighting styles (which
15503 are no longer needed, since styles are added by the HTML
15504 writer according to `--highlighting-style`). Simplified
15505 margin fields.
15506 + If resource not found, skip it, as in Docx writer (#916).
15508 * RTF writer:
15510 + Properly handle characters above the 0000-FFFF range.
15511 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
15512 + Fixed regression with RTF table of contents.
15513 + Only autolink absolute URIs. This fixes a regression, #830.
15515 * Markdown writer:
15517 + Only autolink absolute URIs. This fixes a regression, #830.
15518 + Don't wrap attributes in fenced code blocks.
15519 + Write full metadata in MMD style title blocks.
15520 + Put multiple authors on separate lines in pandoc titleblock.
15521 Also, don't wrap long author entries, as new lines get treated
15522 as new authors.
15524 * `Text.Pandoc.Templates`:
15526 + Fixed bug retrieving default template for markdown variants.
15527 + Templates can now contain "record lookups" in variables;
15528 for example, `author.institution` will retrieve the `institution`
15529 field of the `author` variable.
15530 + More consistent behavior of `$for$`. When `foo` is not a list,
15531 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
15532 So if `foo` resolves to "", no output should be produced.
15533 See pandoc-templates#39.
15535 * Citation processing improvements (now part of pandoc-citeproc):
15537 + Fixed `endWithPunct` The new version correctly sees a sentence
15538 ending in '.)' as ending with punctuation. This fixes a bug which
15539 led such sentences to receive an extra period at the end: '.).'.
15540 Thanks to Steve Petersen for reporting.
15541 + Don't interfere with Notes that aren't citation notes.
15542 This fixes a bug in which notes not generated from citations were
15543 being altered (e.g. first letter capitalized) (#898).
15544 + Only capitalize footnote citations when they have a prefix.
15545 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
15546 inserted before it before passing to citeproc-hs, so that bare numbers
15547 are treated as page numbers by default. A suffix not beginning with
15548 punctuation has a space added at the beginning (rather than a comma and
15549 space, as was done before for not-author-in-text citations).
15550 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
15551 properly, with '23' treated as a locator of type 'page'.
15552 + Many improvements to citation rendering, due to fixes in citeproc-hs
15553 (thanks to Andrea Rossato).
15554 + Warnings are issued for undefined citations, which are rendered
15555 as `???`.
15556 + Fixed hanging behavior when locale files cannot be found.
15558### Template changes
15560 * DocBook: Use DocBook 4.5 doctype.
15562 * Org: '#+TITLE:' is inserted before the title.
15563 Previously the writer did this.
15565 * LaTeX: Changes to make mathfont work with xelatex.
15566 We need the mathspec library, not just fontspec, for this.
15567 We also need to set options for setmathfont (#734).
15569 * LaTeX: Use `tex-ansi` mapping for `monofont`.
15570 This ensures that straight quotes appear as straight, rather than
15571 being treated as curly. See #889.
15573 * Made `\includegraphics` more flexible in LaTeX template.
15574 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
15576 * LaTeX/Beamer: Added `classoption` variable.
15577 This is intended for class options like `oneside`; it may
15578 be repeated with different options. (Thanks to Oliver Matthews.)
15580 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
15582 * LaTeX: Added `biblio-style` variable (#920).
15584 * DZSlides: title attribute on title section.
15586 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
15588### Under-the-hood improvements
15590 * Markdown reader:Improved strong/emph parsing, using the strategy of
15591 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
15592 no backtracking, and no keeping track of nesting levels. It will give
15593 different results in some edge cases, but these should not affect normal
15594 uses.
15596 * Added `Text.Pandoc.Compat.Monoid`.
15597 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
15598 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
15600 * Added `Text.Pandoc.Compat.TagSoupEntity`.
15601 This allows pandoc to compile with `tagsoup` 0.13.x.
15602 Thanks to Dirk Ullrich for the patch.
15604 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
15605 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
15606 handle simple math in bibliography fields.)
15608 * Added `Text.Pandoc.Writers.Shared` for shared functions used
15609 only in writers. `metaToJSON` is used in writers to create a
15610 JSON object for use in the templates from the pandoc metadata
15611 and variables. `getField`, `setField`, and `defField` are
15612 for working with JSON template contexts.
15614 * Added `Text.Pandoc.Asciify` utility module.
15615 This exports functions to create ASCII-only versions of identifiers.
15617 * `Text.Pandoc.Parsing`
15619 + Generalized state type on `readWith` (API change).
15620 + Specialize readWith to `String` input. (API change).
15621 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
15622 with `stateMeta` and `stateMeta'`.
15624 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
15625 bytestrings seemed to cause problems using pandoc on 64-bit Windows
15626 7/8 (#874).
15628 * Factored out `registerHeader` from markdown reader, added to
15629 `Text.Pandoc.Parsing`.
15631 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
15632 Reason: < 0.5 does not provide a monoid instance for Attribute,
15633 which is now needed by the HTML writer (#803).
15635 * Added `http-conduit` flag, which allows fetching https resources.
15636 It also brings in a large number of dependencies (`http-conduit`
15637 and its dependencies), which is why for now it is an optional flag
15638 (#820).
15640 * Added CONTRIBUTING.md.
15642 * Improved INSTALL instructions.
15644 * `make-windows-installer.bat`: Removed explicit paths for executables.
15646 * `aeson` is now used instead of `json` for JSON.
15648 * Set default stack size to 16M. This is needed for some large
15649 conversions, esp. if pandoc is compiled with 64-bit ghc.
15651 * Various small documentation improvements.
15652 Thanks to achalddave and drothlis for patches.
15654 * Removed comment that chokes recent versions of CPP (#933).
15656 * Removed support for GHC version < 7.2, since pandoc-types now
15657 requires at least GHC 7.2 for GHC generics.
15660## pandoc 1.11.1 (2013-03-17)
15662 * Markdown reader:
15664 + Fixed regression in which parentheses were lost in link URLs.
15665 Added tests. Closes #786.
15666 + Better handling of unmatched double quotes in `--smart` mode.
15667 These occur frequently in fiction, since it is customary not to
15668 close quotes in dialogue if the speaker does not change between
15669 paragraphs. The unmatched quotes now get turned into literal
15670 left double quotes. (No `Quoted` inline is generated, however.)
15671 Closes #99 (again).
15673 * HTML writer: Fixed numbering mismatch between TOC and sections.
15674 `--number-offset` now affects TOC numbering as well
15675 as section numbering, as it should have all along. Closes #789.
15677 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
15678 as markdown citations, even if `--bibliography` was specified, unless
15679 `citation` extension is disabled. Now, formatted citations are always
15680 printed if `--bibliography` was specified. If you want to reformat
15681 markdown keeping pandoc markdown citations intact, don't use
15682 `--bibliography`. Note that citations parsed from LaTeX documents will
15683 be rendered as pandoc markdown citations when `--bibliography` is not
15684 specified.
15686 * ODT writer: Fixed regression leading to corrupt ODTs.
15687 This was due to a change in the `Show` instance for
15688 `Text.Pandoc.Pretty.Doc`. Closes #780.
15690 * Fixed spacing bugs involving code block attributes in
15691 RST reader and Markdown writer. Closes #763.
15693 * Windows package: Various improvements due to Fyodor Sheremetyev.
15695 + Automatically set installation path (Program Files or Local App Data).
15696 + Set system PATH environment variable when installing for all users.
15697 + Pandoc can installed for all users using the following command.
15698 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
15700 * Bumped QuickCheck version bound.
15702## pandoc 1.11 (2013-03-09)
15704 * Added `--number-offset` option. (See README for description.)
15706 * Added `--default-image-extension` option. (See README for description.)
15708 * `--number-sections` behavior change: headers with class `unnumbered`
15709 will not be numbered.
15711 * `--version` now reports the default data directory.
15713 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
15715 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
15717 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
15718 a field for `Attr` rather than just `String`. (API change.)
15720 * Added `markdown_github` as input format. This was an accidental
15721 omission in 1.10.
15723 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
15724 change.)
15726 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
15728 * Beamer template:
15730 + Fixed captions with longtable. Thanks to Joost Kremers.
15731 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
15733 * LaTeX template:
15735 + Load microtype after fonts. Microtype needs to know
15736 what fonts are being used. Thanks to dfc for the patch.
15737 + Set `secnumdepth` to 5 if `--number-sections` specified.
15738 This yields behavior equivalent to the other writers, numbering
15739 level 4 and 5 headers too. Closes #753.
15741 * HTML reader:
15743 + Handle `<colgroup>` tag.
15744 + Preserve all header attributes.
15746 * LaTeX reader:
15748 + Parse `\hrule` as `HorizontalRule`. Closes #746.
15749 + Parse starred variants of `\section` etc. as headers with
15750 attribute `unnumbered`.
15751 + Read optional attributes in `lstlisting` and `Verbatim` environments.
15752 We convert these to pandoc standard names, e.g. `numberLines`
15753 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
15754 + Handle language attribute for lstlistings.
15755 + Better support for Verbatim and minted environments. Closes #763.
15757 * Markdown reader:
15759 + `-` in an attribute context = `.unnumbered`. The point of this
15760 is to provide a way to specify unnumbered headers in non-English
15761 documents.
15762 + Fixed bug parsing key/value attributes. Parsing failed if you
15763 had an unquoted attribute immediately before the final '}'.
15764 + Make backslash escape work in attributes.
15765 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
15766 pandoc will parse a MMD title block if it sees one, even if
15767 `pandoc_title_blocks` is enabled.
15768 + Refactoring: `litChar` now includes entities, so we don't need
15769 to use `fromEntities` e.g. on titles.
15770 + Allow spaces around borders in pipe tables. Closes #772.
15771 + Allow all punctuation in angle-bracket autolinks. Previously
15772 things like `----` were disallowed, because the uri parser
15773 treated them as trailing punctuation. Closes #768.
15774 + Make `implicit_header_references` work properly when
15775 headers are given explicit identifiers.
15776 + Check for tables before line blocks. Otherwise some pipe
15777 tables get treated as line blocks.
15778 + Allow `&` in emails (for entities).
15779 + Properly handle entities in titles and links. A markdown link
15780 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
15781 Closes #723.
15783 * Textile reader:
15785 + Handle attributes on headers.
15787 * LaTeX reader:
15789 + Add `fig:` as title for images with captions.
15790 This is needed for them to be rendered as figures. Closes #766.
15791 + Never emit an empty paragraph. See #761.
15792 + Handle `\caption` for images in figures. Closes #766.
15793 + Parse `\section*`, etc. as unnumbered sections.
15795 * HTML writer:
15797 + Support header attributes. The attributes go on
15798 the enclosing `section` or `div` tag if `--section-divs` is specified.
15799 + Fixed a regression (only now noticed) in html+lhs output.
15800 Previously the bird tracks were being omitted.
15802 * LaTeX writer:
15804 + Omit lists with no items to avoid LaTeX errors.
15805 + Support line numbering with `--listings`.
15806 If `numberLines` class is present, we add `numbers=left`;
15807 if `startFrom` is present, we add `firstnumber=`. (#763)
15809 * ConTeXt writer:
15811 + Removed `\placecontent`. This produced a duplicate toc,
15812 in conjunction with `\placelist`.
15813 + Use `\title`, `\subject` etc. for headers with
15814 `unnumbered` class.
15816 * Textile writer:
15818 + Support header attributes.
15820 * Markdown writer:
15822 + Use grid tables when needed, and if enabled. Closes #740.
15823 + Render citations as pandoc-markdown citations.
15824 Previously citations were rendered as citeproc-formatted citations
15825 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
15826 unless the `citations` extension is disabled.
15827 If you still want formatted citations in your markdown output,
15828 use `pandoc -t markdown-citations`.
15830 * RST writer:
15832 + Support `:number-lines:` in code blocks.
15834 * Docx writer:
15836 + Better treatment of display math. Display math inside a
15837 paragraph is now put in a separate paragraph, so it will render
15838 properly (centered and without extra blank lines around it).
15839 Partially addresses #742.
15840 + Content types and document rels xml files are now created from
15841 scratch, rather than being taken over from `reference.docx`.
15842 This fixes problems that arise when you edit the `reference.docx`
15843 with Word.
15844 + We also now encode mime types for each individual image rather
15845 than using defaults. This should allow us to handle a wider
15846 range of image types (including PDF). Closes #414.
15847 + Changed style names in `reference docx`.
15848 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
15849 The old names got changed by Word when the `reference.docx` was
15850 edited. Closes #414.
15852 * EPUB writer:
15854 + Fix section numbering. Previously the numbering restarted from 1
15855 in each chapter (with `--number-sections`), though the numbers in
15856 the table of contents were correct.
15857 + Headers with "unnumbered" attribute are not numbered. (Nor do they
15858 cause an increment in running numbering.) Section numbers now work
15859 properly, even when there is material before the first numbered section.
15860 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
15861 but `linear` is set to `no` unless the `--toc` option is specified.
15862 Include `<guide>` element in OPF. This should allow the TOC to
15863 be usable in Kindles when converted with kindlegen. Closes #773.
15865 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
15866 This dramatically reduces the speed penalty that comes from enabling the
15867 `autolink_bare_uris` extension. The penalty is still substantial (in one
15868 test, from 0.33s to 0.44s), but nowhere near what it used to be.
15869 The RST reader is also much faster now, as it autodetects URIs.
15871 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
15872 with class "unnumbered". Unnumbered sections get `[]` for their
15873 section number.
15875 * `Text.Pandoc.Pretty`:
15877 + Fixed `chomp` so it works inside `Prefixed` elements.
15878 + Changed `Show` instance so it is better for debugging.
15880 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
15882 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
15884 * Windows installer improvements:
15886 + The installer is now signed with a certificate (thanks to
15887 Fyodor Sheremetyev).
15888 + WiX is used instead of InnoSetup. The installer is now a
15889 standard msi file.
15890 + The version number is now auto-detected, and need not be
15891 updated separately.
15893 * OSX installer improvements:
15895 + The package and pandoc executable are now signed with a
15896 certificate (thanks to Fyodor Sheremetyev).
15897 + RTF version of license is used.
15898 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
15899 Closes #580.
15901 * Converted COPYING to markdown.
15903 * pandoc.cabal: Require latest versions of highlighting-kate,
15904 texmath, citeproc-hs, zip-archive.
15906## pandoc 1.10.1 (2013-01-23)
15908 * Markdown reader: various optimizations, leading to a
15909 significant performance boost.
15911 * RST reader: Allow anonymous form of inline links:
15912 `` `hello <url>`__ `` Closes #724.
15914 * Mediawiki reader: Don't require newlines after tables.
15915 Thanks to jrunningen for the patch. Closes #733.
15917 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
15918 when output is LaTeX, and applied when it is another format.
15919 Partially addresses #730.
15921 * Markdown and RST readers: Added parser to `block` that skips blank
15922 lines. This fixes a subtle regression involving grid tables with
15923 empty cells. Also added test for grid table with empty cells.
15924 Closes #732.
15926 * RST writer: Use `.. code:: language` for code blocks with language.
15927 Closes #721.
15929 * DocBook writer: Fixed output for hard line breaks, adding a newline
15930 between `<literallayout>` tags.
15932 * Markdown writer: Use an autolink when link text matches url.
15933 Previously we also checked for a null title, but this
15934 test fails for links produced by citeproc-hs in bibliographies.
15935 So, if the link has a title, it will be lost on conversion
15936 to an autolink, but that seems okay.
15938 * Markdown writer: Set title, author, date variables as before.
15939 These are no longer used in the default template, since we use
15940 titleblock, but we set them anyway for those who use custom templates.
15942 * LaTeX writer: Avoid extra space at start/end of table cell.
15943 Thanks to Nick Bart for the suggestion of using @{}.
15945 * `Text.Pandoc.Parsing`:
15947 + More efficient version of `anyLine`.
15948 + Type of `macro` has changed; the parser now returns `Blocks`
15949 instead of `Block`.
15951 * Relaxed old-time version bound, allowing 1.0.*.
15953 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
15954 should create a symlink as described in the README.
15956## pandoc 1.10.0.5 (2013-01-23)
15958 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
15959 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
15960 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
15962 * Markdown reader: Fixed bug with headerless grid tables.
15963 The 1.10 code assumed that each table header cell contains exactly one
15964 block. That failed for headerless tables (0) and also for tables with
15965 multiple blocks in a header cell. The code is fixed and tests provided.
15966 Thanks to Andrew Lee for pointing out the bug.
15968 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
15970 + Tilde code fences can again take a bare language string
15971 (`~~~ haskell`), not just curly-bracketed attributes
15972 (`~~~ {.haskell}`).
15973 + Backtick code blocks can take the curly-bracketed attributes.
15974 + Backtick code blocks don't *require* a language.
15975 + Consolidated code for the two kinds of fenced code blocks.
15977 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
15979 * Markdown writer: Use proportional font for email autolinks with
15980 obfuscation. Closes #714.
15982 * Corrected name of `blank_before_blockquote` in README. Closes #718.
15984 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
15985 The bug prevented an autolink at the end of a string (e.g.
15986 at the end of a line block line) from counting as a link. Closes #711.
15988 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
15989 This should work on Windows, unlike the TH solution with
15990 file-embed.
15992 * Eliminated use of TH in test suite.
15994 * Added `Text.Pandoc.Data` (non-exported) to hold the association
15995 list of embedded data files, if the `embed_data_files` flag is selected.
15996 This isolates the code that needs special treatment with file-embed or
15997 `hsb2hs`.
15999 * Changes to `make-windows-installer.bat`.
16001 + Exit batch file if any of the cabal-dev installs fail.
16002 + There's no longer any need to reinstall `highlighting-kate`.
16003 + Don't start with a `cabal update`; leave that to the user.
16004 + Force reinstall of pandoc.
16006 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
16007 Jens Petersen.
16009## pandoc 1.10.0.4 (2013-01-20)
16011 * Fixed bug with escaped % in LaTeX reader. Closes #710.
16013## pandoc 1.10.0.3 (2013-01-20)
16015 * Added further missing fb2 tests to cabal file.
16017## pandoc 1.10.0.2 (2013-01-20)
16019 * Added fb2 tests to cabal file's extra-source-files.
16021## pandoc 1.10.0.1 (2013-01-20)
16023 * Bump version bounds on test-framework packages.
16025## pandoc 1.10 (2013-01-19)
16027### New features
16029 * New input formats: `mediawiki` (MediaWiki markup).
16031 * New output formats: `epub3` (EPUB v3 with MathML),
16032 `fb2` (FictionBook2 ebooks).
16034 * New `--toc-depth` option, specifying how many levels of
16035 headers to include in a table of contents.
16037 * New `--epub-chapter-level` option, specifying the header
16038 level at which to divide EPUBs into separate files.
16039 Note that this normally affects only performance, not the
16040 visual presentation of the EPUB in a reader.
16042 * Removed the `--strict` option. Instead of using `--strict`,
16043 one can now use the format name `markdown_strict` for either input
16044 or output. This gives more fine-grained control that `--strict`
16045 did, allowing one to convert from pandoc's markdown to strict
16046 markdown or vice versa.
16048 * It is now possible to enable or disable specific syntax
16049 extensions by appending them (with `+` or `-`) to the writer
16050 or reader name. For example,
16052 pandoc -f markdown-footnotes+hard_line_breaks
16054 disables footnotes and enables treating newlines as hard
16055 line breaks. The literate Haskell extensions are now implemented
16056 this way as well, using either `+lhs` or `+literate_haskell`.
16057 For a list of extension names, see the README under
16058 "Pandoc's Markdown."
16060 * The following aliases have been introduced for specific
16061 combinations of markdown extensions: `markdown_phpextra`,
16062 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
16063 work just like regular reader and writer names, and can be modified
16064 with extension modifiers as described above. (Note that conversion
16065 from one markdown dialect to another does not work perfectly,
16066 because there are differences in markdown parsers besides
16067 just the extensions, and because pandoc's internal document model is
16068 not rich enough to capture all of the extensions.)
16070 * New `--html-q-tags` option. The previous default was to use `<q>`
16071 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
16072 Moreover, they are not a robust way of typesetting quotes, since
16073 some user agents don't support them, and some CSS resets (e.g.
16074 bootstrap) prevent pandoc's quotes CSS from working properly.
16075 We now just insert literal quote characters by default in both
16076 `html` and `html5` output, but this option is provided for
16077 those who still want `<q>` tags.
16079 * The markdown reader now prints warnings (to stderr) about
16080 duplicate link and note references. Closes #375.
16082 * Markdown syntax extensions:
16084 + Added pipe tables. Thanks to François Gannaz for the initial patch.
16085 These conform to PHP Markdown Extra's pipe table syntax. A subset
16086 of org-mode table syntax is also supported, which means that you can
16087 use org-mode's nice table editor to create tables.
16089 + Added support for RST-style line blocks. These are
16090 useful for verse and addresses.
16092 + Attributes can now be specified for headers, using the same
16093 syntax as in code blocks. (However, currently only the
16094 identifier has any effect in most writers.) For example,
16096 # My header {#foo}
16098 See [the header above](#foo).
16100 + Pandoc will now act as if link references have been defined
16101 for all headers without explicit identifiers.
16102 So, you can do this:
16104 # My header
16106 Link to [My header].
16107 Another link to [it][My header].
16109 Closes #691.
16111 * LaTeX reader:
16113 + Command macros now work everywhere, including non-math.
16114 Environment macros still not supported.
16115 + `\input` now works, as well as `\include`. TEXINPUTS is used.
16116 Pandoc looks recursively into included files for more included files.
16118### Behavior changes
16120 * The Markdown reader no longer puts the text of autolinks in a
16121 `Code` inline. This means that autolinks will no longer appear
16122 in a monospace font.
16124 * The character `/` can now appear in markdown citation keys.
16126 * HTML blocks in strict_markdown are no longer required to begin
16127 at the left margin. Technically this is required, according to
16128 the markdown syntax document, but `Markdown.pl` and other markdown
16129 processors are more liberal.
16131 * The `-V` option has been changed so that if there are duplicate
16132 variables, those specified later on the command line take precedence.
16134 * Tight lists now work in LaTeX and ConTeXt output.
16136 * The LaTeX writer no longer relien on the `enumerate` package.
16137 Instead, it uses standard LaTeX commands to change the list numbering
16138 style.
16140 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
16141 tables to be split over page boundaries.
16143 * The RST writer now uses a line block to render paragraphs containing
16144 linebreaks (which previously weren't supported at all).
16146 * The markdown writer now applies the `--id-prefix` to footnote IDs.
16147 Closes #614.
16149 * The plain writer no longer uses backslash-escaped line breaks
16150 (which are not very "plain").
16152 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
16153 Read bytestring and use `Text`'s decodeUtf8 instead of using
16154 `System.IO.hGetContents`. This way you get a message saying
16155 "invalid UTF-8 stream" instead of "invalid byte sequence."
16156 You are also told which byte caused the problem.
16158 * Docx, ODT, and EPUB writers now download images specified by a URL
16159 instead of skipping them or raising an error.
16161 * EPUB writer:
16163 + The default CSS now left-aligns headers by default, instead of
16164 centering. This is more consistent with the rest of the writers.
16165 + A proper multi-level table of contents is now used in `toc.ncx`.
16166 There is no longer a subsidiary table of contents at the beginning
16167 of each chapter.
16168 + Code highlighting now works by default.
16169 + Section divs are used by default for better semantic markup.
16170 + The title is used instead of "Title Page" in the table of contents.
16171 Otherwise we have a hard-coded English string, which looks
16172 strange in ebooks written in other languages. Closes #572.
16174 * HTML writer:
16176 + Put mathjax in span with class "math". Closes #562.
16177 + Put citations in a span with class "citation." In HTML5, also include
16178 a `data-cite` attribute with a space-separated list of citation
16179 keys.
16181 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
16182 This treats both `\r\n` and `\n` as `\n` on input, no matter
16183 what platform we're running on.
16185 * Citation processing is now done in the Markdown and LaTeX
16186 readers, not in `pandoc.hs`. This makes it easier for library users
16187 to use citations.
16189### Template changes
16191 * HTML: Added css to template to preserve spaces in `<code>` tags.
16192 Thanks to Dirk Laurie.
16194 * Beamer: Remove English-centric strings in section pages.
16195 Section pages used to have "Section" and a number as well as the
16196 section title. Now they just have the title. Similarly for part
16197 and subsection. Closes #566.
16199 * LaTeX, ConTeXt: Added papersize variable.
16201 * LaTeX, Beamer templates: Use longtable instead of ctable.
16203 * LaTeX, Beamer templates: Don't require 'float' package for tables.
16204 We don't actually seem to use the '[H]' option.
16206 * Markdown, plain: Fixed titleblock so it is just a single string.
16207 Previously separate title, author, and date variables were used,
16208 but this didn't allow different kinds of title blocks.
16210 * EPUB:
16212 + Rationalized templates. Previously there were three different
16213 templates involved in epub production. There is now just one
16214 template, `default.epub` or `default.epub3`. It can now be
16215 overridden using `--template`, just like other templates.
16216 The titlepage is now folded into the default template.
16217 A `titlepage` variable selects it.
16218 + UTF-8, lang tag, meta tags, title element.
16220 * Added scale-to-width feature to beamer template
16222### API changes
16224 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
16225 Previously header identifiers were autogenerated by the writers.
16226 Now they are added in the readers (either automatically or explicitly).
16228 * `Text.Pandoc.Builder`:
16230 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
16231 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
16232 custom Monoid instances for `Many Inline` and `Many Block. This
16233 allows `Many` to be made an instance of `Foldable` and `Traversable`.
16234 + The old `Listable` class has been removed.
16235 + The module now exports `isNull`, `toList`, `fromList`.
16236 + The old `Read` and `Show` instances have been removed; derived
16237 instances are now used.
16238 + Added `headerWith`.
16240 * The readers now take a `ReaderOptions` rather than a `ParserState`
16241 as a parameter. Indeed, not all parsers use the `ParserState` type;
16242 some have a custom state. The motivation for this change was to separate
16243 user-specifiable options from the accounting functions of parser state.
16245 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
16246 formerly in `Text.Pandoc.Shared`, and its associated
16247 data types. It also includes a new type `ReaderOptions`, which
16248 contains many options formerly in `ParserState`, and its associated
16249 data types:
16251 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
16252 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
16253 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
16254 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
16255 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
16256 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
16257 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
16258 + `ParserState.stateIndentedCodeClasses` ->
16259 `ReaderOptions.readerIndentedCodeClasses`.
16260 + Added `ReaderOptions.readerCitationStyle`.
16262 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
16263 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
16264 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
16265 been renamed `writerEpubMetadata` for consistency.
16267 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
16268 longer stylesheet, fonts, reference files as separate parameters.
16270 * Removed `writerLiterateHaskell` from `WriterOptions`, and
16271 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
16272 by an extension (`Ext_literate_haskell`).
16274 * Removed deprecated `writerXeTeX`.
16276 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
16277 Strict is now handled through extensions.
16279 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
16280 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
16281 and `multimarkdownExtensions`, as well as the `Extensions` type.
16283 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
16284 `readMediaWiki`.
16286 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
16287 (thanks to Sergey Astanin).
16289 * `Text.Pandoc`:
16291 + Added `getReader`, `getWriter` to `Text.Pandoc`.
16292 + `writers` is now an association list `(String, Writer)`.
16293 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
16294 an `IOByteStringWriter`. ALL writers are now in the 'writers'
16295 list, including the binary writers and FB2 writer. This allows
16296 code in `pandoc.hs` to be simplified.
16297 + Changed type of `readers`, so all readers are in IO.
16298 Users who want pure readers can still get them form the reader
16299 modules; this just affects the function `getReader` that looks up
16300 a reader based on the format name. The point of this change is to
16301 make it possible to print warnings from the parser.
16303 * `Text.Pandoc.Parsing`:
16305 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
16306 No other module directly imports Parsec. This will make it easier
16307 to change the parsing backend in the future, if we want to.
16308 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
16309 + Export the type synonym `Parser`.
16310 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
16311 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
16312 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
16313 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
16314 + `ParserState` is no longer an instance of `Show`.
16315 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
16316 + Generalized type of `withQuoteContext`.
16317 + Added `guardEnabled`, `guardDisabled`, `getOption`.
16318 + Removed `failIfStrict`.
16319 + `lookupKeySrc` and `fromKey` are no longer exported.
16321 * `Data.Default` instances are now provided for `ReaderOptions`,
16322 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
16323 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
16324 of `defaultWriterOptions` (which is still defined). Closes #546.
16326 * `Text.Pandoc.Shared`:
16328 + Added `safeRead`.
16329 + Renamed `removedLeadingTrailingSpace` to `trim`,
16330 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
16331 + Count `\r` as space in `trim` functions.
16332 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
16333 to `Shared`.
16334 + Removed `failUnlessLHS`.
16335 + Export `compactify'`, formerly in Markdown reader.
16336 + Export `isTightList`.
16337 + Do not export `findDataFile`.
16338 + `readDataFile` now returns a strict ByteString.
16339 + Export `readDataFileUTF8` which returns a String, like the
16340 old `readDataFile`.
16341 + Export `fetchItem` and `openURL`.
16343 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
16344 Removed `readImageSize`.
16346 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
16347 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
16348 `fromStringLazy`.
16350 * `Text.Pandoc.UTF8` is now an exposed module.
16352 * `Text.Pandoc.Biblio`:
16354 + csl parameter now a `String` rather than a `FilePath`.
16355 + Changed type of `processBiblio`. It is no longer in the IO monad.
16356 It now takes a `Maybe Style` argument rather than parameters for CSL
16357 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
16358 the style file and add abbreviations.)
16360 * Markdown reader now exports `readMarkdownWithWarnings`.
16362 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
16363 `rtfEmbedImage`.
16365### Bug fixes
16367 * Make `--ascii` work properly with `--self-contained`. Closes #568.
16369 * Markdown reader:
16371 + Fixed link parser to avoid exponential slowdowns. Closes #620.
16372 Previously the parser would hang on input like this:
16374 [[[[[[[[[[[[[[[[[[hi
16376 We fixed this by making the link parser parser characters
16377 between balanced brackets (skipping brackets in inline code spans),
16378 then parsing the result as an inline list. One change is that
16380 [hi *there]* bud](/url)
16382 is now no longer parsed as a link. But in this respect pandoc behaved
16383 differently from most other implementations anyway, so that seems okay.
16385 + Look for raw html/latex blocks before tables.
16386 Otherwise the following gets parsed as a table:
16388 \begin{code}
16389 --------------
16390 -- My comment.
16391 \end{code}
16393 Closes #578.
16395 * RST reader:
16397 + Added support for `:target:` on `.. image::` blocks
16398 and substitutions.
16399 + Field list fixes:
16401 - Fixed field lists items with body beginning after a new line
16402 (Denis Laxalde).
16403 - Allow any char but ':' in names of field lists in RST reader
16404 (Denis Laxalde).
16405 - Don't allow line breaks in field names.
16406 - Require whitespace after field list field names.
16407 - Don't create empty definition list for metadata field lists.
16408 Previously a field list consisting only of metadata fields (author,
16409 title, date) would be parsed as an empty DefinitionList, which is
16410 not legal in LaTeX and not needed in any format.
16412 + Don't recognize inline-markup starts inside words.
16413 For example, `2*2 = 4*1` should not contain an emphasized
16414 section. Added test case for "Literal symbols". Closes #569.
16415 + Allow dashes as separator in simple tables. Closes #555.
16416 + Added support for `container`, `compound`, `epigraph`,
16417 `rubric`, `highlights`, `pull-quote`.
16418 + Added support for `.. code::`.
16419 + Made directive labels case-insensitive.
16420 + Removed requirement that directives begin at left margin.
16421 This was (correctly) not in earlier releases; docutils doesn't
16422 make the requirement.
16423 + Added support for `replace::` and `unicode::` substitutions.
16424 + Ignore unknown interpreted roles.
16425 + Renamed image parser to `subst`, since it now handles all
16426 substitution references.
16428 * Textile reader:
16430 + Allow newlines before pipes in table. Closes #654.
16431 + Fixed bug with list items containing line breaks.
16432 Now pandoc correctly handles hard line breaks inside list items.
16433 Previously they broke list parsing.
16434 + Implemented comment blocks.
16435 + Fixed bug affected words ending in hyphen.
16436 + Properly handle links with surrounding brackets.
16437 Square brackets need to be used when the link isn't surrounded by
16438 spaces or punctuation, or when the URL ending may be ambiguous.
16439 Closes #564.
16440 + Removed nullBlock. Better to know about parsing problems than
16441 to skip stuff when we get stuck.
16442 + Allow ID attributes on headers.
16443 + Textile reader: Avoid parsing dashes as strikeout.
16444 Previously the input
16446 text--
16447 text--
16448 text--
16449 text--
16451 would be parsed with strikeouts rather than dashes. This fixes
16452 the problem by requiring that a strikeout delimiting - not be
16453 followed by a -. Closes #631.
16454 + Expanded list of `stringBreakers`.
16455 This fixes a bug on input like "(_hello_)" which should
16456 be a parenthesized emphasized "hello".
16457 The new list is taken from the PHP source of textile 2.4.
16458 + Fixed autolinks. Previously the textile reader and writer
16459 incorrectly implemented RST-style autolinks for URLs and email
16460 addresses. This has been fixed. Now an autolink is done this way:
16461 `"$":http://myurl.com`.
16462 + Fixed footnotes bug in textile. This affected notes occurring
16463 before punctuation, e.g. `foo[1].`. Closes #518.
16465 * LaTeX reader:
16467 + Better handling of citation commands.
16468 + Better handling of `\noindent`.
16469 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
16470 Closes #622.
16471 + Made `rawLaTeXInline` try to parse block commands as well. This
16472 is usually what we want, given how `rawLaTeXInline` is used in
16473 the markdown and textile readers. If a block-level LaTeX command
16474 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
16475 we can treat it as raw inline LaTeX.
16476 + Handle `\slash` command. Closes #605.
16477 + Basic `\enquote` support.
16478 + Fixed parsing of paragraphs beginning with a group. Closes #606.
16479 + Use curly quotes for bare straight quotes.
16480 + Support obeylines environment. Closes #604.
16481 + Guard against "begin", "end" in inlineCommand and
16482 blockCommand.
16483 + Better error messages for environments. Now it should tell you that
16484 it was looking for \end{env}, instead of giving "unknown parse error."
16486 * HTML reader:
16488 + Added HTML 5 tags to list of block-level tags.
16489 + HTML reader: Fixed bug in `htmlBalanced`, which
16490 caused hangs in parsing certain markdown input using
16491 strict mode.
16492 + Parse `<q>` as `Quoted DoubleQuote`.
16493 + Handle nested `<q>` tags properly.
16494 + Modified `htmlTag` for fewer false positives.
16495 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
16496 This makes it more useful in the wikimedia and markdown parsers.
16498 * DocBook reader: Support title in "figure" element. Closes #650.
16500 * MediaWiki writer:
16502 + Remove newline after `<br/>` in translation of `LineBreak`
16503 There's no particular need for a newline (other than making the
16504 generated MediaWiki source look nice to a human), and in fact
16505 sometimes it is incorrect: in particular, inside an enumeration, list
16506 items cannot have embedded newline characters. (Brent Yorgey)
16507 + Use `<code>` not `<tt>` for Code.
16509 * Man writer: Escape `-` as `\-`.
16510 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
16511 signs. That is preferable for use with command-line options. See
16512 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
16513 to Andrea Bolognani for bringing the issue to our attention.
16515 * RST writer:
16517 + Improved line block output. Use nonbreaking spaces for
16518 initial indent (otherwise lost in HTML and LaTeX).
16519 Allow multiple paragraphs in a single line block.
16520 Allow soft breaks w continuations in line blocks.
16521 + Properly handle images with no alt text. Closes #678.
16522 + Fixed bug with links with duplicate text. We now (a) use anonymous
16523 links for links with inline URLs, and (b) use an inline link instead
16524 of a reference link if the reference link would require a label that
16525 has already been used for a different link. Closes #511.
16526 + Fixed hyperlinked images. Closes #611. Use `:target:`
16527 field when you have a simple linked image.
16528 + Don't add `:align: center` to figures.
16530 * Texinfo writer: Fixed internal cross-references.
16531 Now we insert anchors after each header, and use `@ref` instead of `@uref`
16532 for links. Commas are now escaped as `@comma{}` only when needed;
16533 previously all commas were escaped. (This change is needed, in part,
16534 because `@ref` commands must be followed by a real comma or period.) Also
16535 insert a blank line in from of `@verbatim` environments.
16537 * DocBook writer:
16539 + Made --id-prefix work in DocBook as well as HTML.
16540 Closes #607.
16541 + Don't include empty captions in figures. Closes #581.
16543 * LaTeX writer:
16545 + Use `\hspace*` for nonbreaking space after line break,
16546 since `~` spaces after a line break are just ignored.
16547 Closes #687.
16548 + Don't escape `_` in URLs or hyperref identifiers.
16549 + Properly escape strings inside `\url{}`. Closes #576.
16550 + Use `[fragile]` only for slides containing code rendered
16551 using listings. Closes #649.
16552 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
16553 highlighting-kate's macros, which redefine `|` as a short verbatim
16554 delimiter. Thanks to Björn Peemöller for raising this issue.
16555 + Use minipage rather than parbox for block containers in tables.
16556 This allows verbatim code to be included in grid tables.
16557 Closes #663.
16558 + Prevent paragraphs containing only linebreaks or spaces.
16560 * HTML writer:
16562 + Included `highlighting-css` for code spans, too.
16563 Previously it was only included if used in a code block. Closes #653.
16564 + Improved line breaks with `<dd>` tags. We now put a newline between
16565 `</dd>` and `<dd>` when there are multiple definitions.
16566 + Changed mathjax cdn url so it doesn't use https. (This caused
16567 problems when used with `--self-contained`.) See #609.
16569 * EPUB writer:
16571 + `--number-sections` now works properly.
16572 + Don't strip meta and link elements in epub metadata.
16573 Patch from aberrancy. Closes #589.
16574 + Fixed a couple validation bugs.
16575 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
16576 of chapters in some readers, which apparently sort ch2 after ch10.
16577 Closes #610.
16579 * ODT writer: properly set title property (Arlo O'Keeffe).
16581 * Docx writer:
16583 + Fixed bug with nested lists. Previously a list like
16585 1. one
16586 - a
16587 - b
16588 2. two
16590 would come out with a bullet instead of "2."
16591 Thanks to Russell Allen for reporting the bug.
16592 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
16593 This seems to fix a problem viewing pandoc-generated
16594 docx files in LibreOffice.
16595 + Use integer ids for bookmarks. Closes #626.
16596 + Added nsid to abstractNum elements. This helps when merging
16597 word documents with numbered or bulleted lists. Closes #627.
16598 + Use separate footnotes.xml for notes.
16599 This seems to help LibreOffice convert the file, even though
16600 it was valid docx before. Closes #637.
16601 + Use rIdNN identifiers for r:embed in images.
16602 + Avoid reading image files again when we've already processed them.
16603 + Fixed typo in `referenc.docx` that prevented image captions from
16604 working. Thanks to Huashan Chen.
16606 * `Text.Pandoc.Parsing`:
16608 + Fixed bug in `withRaw`, which didn't correctly handle the case
16609 where nothing is parsed.
16610 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
16611 though it still doesn't implement quoted strings in email addresses.
16612 + Revised URI parser. It now allows many more schemes, allows
16613 uppercase URIs, and better handles trailing punctuation and
16614 trailing slashes in bare URIs. Added many tests.
16615 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
16616 etc. parse properly. Formerly we had some English-centric heuristics,
16617 but they are no longer needed. Closes #698.
16619 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
16620 This fixes bug with Chinese commas in markdown and reST tables, and
16621 a bug that caused combining characters to be dropped.
16623 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
16625 * `Text.Pandoc.Biblio`:
16627 + Run `mvPunc` and `deNote` on metadata too.
16628 This fixed a bug with notes on titles using footnote styles.
16629 + Fixed bug in fetching CSL files from CSL data directory.
16631 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
16632 is provided. It should be the URL up to the path.
16634 * Fixed/simplified diff output for tests.
16635 Biblio: Make sure mvPunc and deNote run on metadata too.
16636 This fixed a bug with notes on titles using footnote styles.
16638### Under the hood improvements
16640 * We no longer depend on `utf8-string`. Instead we use functions
16641 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
16643 * Use `safeRead` instead of using `reads` directly (various modules).
16645 * "Implicit figures" (images alone in a paragraph) are now handled
16646 differently. The markdown reader gives their titles the prefix `fig:`; the
16647 writers look for this before treating the image as a figure. Though this
16648 is a bit of a hack, it has two advantages: (i) implicit figures can be
16649 limited to the markdown reader, and (ii) they can be deactivated by turning
16650 off the `implicit_figures` extension.
16652 * `catch` from `Control.Exception` is now used instead of the
16653 old Preface `catch`.
16655 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
16656 and `oneOfStrings` (which is now non-backtracking).
16658 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
16659 Now citeproc-hs is fixed upstream, so this is no longer needed.
16660 Closes #531.
16662 * Textile reader: Improved speed of `hyphenedWords`.
16663 This speeds up the textile reader by about a factor of 4.
16665 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
16666 better performance, and automatic normalization.
16668 * Major rewrite of markdown reader:
16670 + Use `Text.Pandoc.Builder` instead of lists. This also
16671 means that everything is normalized automatically.
16672 + Move to a one-pass parsing strategy, returning values in the reader
16673 monad, which are then run (at the end of parsing) against the final
16674 parser state.
16676 * In HTML writer, we now use `toHtml` instead of pre-escaping.
16677 We work around the problem that blaze-html unnecessarily escapes `'`
16678 by pre-escaping just the `'` characters, instead of the whole string.
16679 If blaze-html later stops escaping `'` characters, we can simplify
16680 `strToHtml` to `toHtml`. Closes #629.
16682 * Moved code for embedding images in RTFs from `pandoc.hs` to the
16683 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
16685 * Moved citation processing from `pandoc.hs` into the readers.
16686 This makes things more convenient for library users.
16688 * The man pages are now built by an executable `make-pandoc-man-pages`,
16689 which has its own stanza in the cabal file so that dependencies can be
16690 handled by Cabal. Special treatment in `Setup.hs` ensures that this
16691 executable never gets installed; it is only used to create the man pages.
16693 * The cabal file has been modified so that the pandoc library is used
16694 in building the pandoc executable. (This required moving `pandoc.hs`
16695 from `src` to `.`.) This cuts compile time in half.
16697 * The `executable` and `library` flags have been removed.
16699 * `-threaded` has been removed from ghc-options.
16701 * Version bounds of dependencies have been raised, and the
16702 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
16703 GHC 7.6.
16705 * We now require base >= 4.2.
16707 * Integrated the benchmark program into cabal. One can now do:
16709 cabal configure --enable-benchmarks && cabal build
16710 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
16712 The benchmark now uses README + testsuite, so benchmark results
16713 from older versions aren't comparable.
16715 * Integrated test suite with cabal.
16716 To run tests, configure with `--enable-tests`, then `cabal test`.
16717 You can specify particular tests using `--test-options='-t markdown'`.
16718 No output is shown unless tests fail. The Haskell test modules
16719 have been moved from `src/` to `tests/`.
16721 * Moved all data files and templates to the `data/` subdirectory.
16723 * Added an `embed_data_files` cabal flag. This causes all
16724 data files to be embedded in the binary, so that the binary
16725 is self-sufficient and can be relocated anywhere, copied on
16726 a USB key, etc. The Windows installer now uses this.
16727 (Since we no longer have the option to build the executable
16728 without the library, this is the only way to get a relocatable
16729 binary on Windows.)
16731 * Removed pcre3.dll from windows package.
16732 It isn't needed unless highlighting-kate is compiled with the
16733 `pcre-light` flag. By default, regex-prce-builtin is used.
16736## pandoc 1.9.4.5 (2012-10-21)
16738 * Raised version bounds on network, base64-bytestring, json,
16739 and template-haskell.
16741## pandoc 1.9.4.4 (2012-10-20)
16743 * Removed `tests` flag and made test suite into a proper cabal
16744 test suite, which can now be enabled using `--enable-tests`
16745 and run with `cabal test`.
16747 * Moved man page creation out of `Setup.hs` and into an
16748 executable built by Cabal, but never installed. This
16749 allows dependencies to be specified, and solves a problem
16750 with 1.9.4.3, which could only be installed if `data-default`
16751 had already been installed.
16753 * Updated `lhs-latex.tex` test for latest highlighting-kate
16754 representation of backticks.
16756## pandoc 1.9.4.3 (2012-10-20)
16758 * Removed `-threaded` from default compile flags.
16760 * Modified modules to compile with GHC 7.6 and latest version of time
16761 package.
16763## pandoc 1.9.4.2 (2012-06-29)
16765 * Don't encode/decode file paths if base >= 4.4.
16766 Prior to base 4.4, filepaths and command line arguments were treated
16767 as unencoded lists of bytes, not unicode strings, so we had to work
16768 around that by encoding and decoding them. This commit adds CPP
16769 checks for the base version that intelligibly enable encoding/decoding
16770 when needed. Fixes a bug with multilingual filenames when pandoc was
16771 compiled with ghc 7.4 (#540).
16773 * Don't generate an empty H1 after hrule slide breaks.
16774 We now use a slide-level header with contents `[Str "\0"]` to mark
16775 an hrule break. This avoids creation of an empty H1 in these
16776 contexts. Closes #484.
16778 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
16780 * In make_osx_package.sh, ensure citeproc-hs is built with the
16781 embed_data_files flag.
16783 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
16785 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
16786 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
16788 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
16789 Closes #535.
16791 * Added webm to mime types. Closes #543.
16793 * Added some missing exports and tests to the cabal file
16794 (Alexander V Vershilov).
16796 * Compile with `-rtsopts` and `-threaded` by default.
16798## pandoc 1.9.4.1 (2012-06-08)
16800 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
16802 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
16803 variables. Make TOC links black.
16805 * LaTeX template improvements.
16807 + Don't print date unless one is given explicitly in the document.
16808 + Simplified templates.
16809 + Use fontenc [T1] by default, and lmodern.
16810 + Use microtype if available.
16812 * Biblio:
16814 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
16815 Motivation: `@item1 [50]` should be as close as possible to
16816 `[@item1, 50]`.
16817 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
16818 beginning with a citation to be empty. Closes #531.
16820 * Fixed documentation on mixed lists. Closes #533.
16822## pandoc 1.9.4 (2012-06-03)
16824 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
16825 footnotes and captions. We now handle note citations by inserting
16826 footnotes during initial citation processing, and doing a separate
16827 pass later to remove notes inside notes.
16829 * Added 'zenburn' highlight style from highlighting-kate.
16831 * Added Slideous writer. Slideous is an HTML + javascript slide show
16832 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
16834 * LaTeX writer:
16836 + Ensure we don't have extra blank lines at ends of cells.
16837 This can cause LaTeX errors, as they are interpreted as new paragraphs.
16838 + More consistent interblock spacing.
16839 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
16840 code in LaTeX. Closes #527.
16841 + Ensure that a Verbatim at the end of a footnote is followed by
16842 a newline. (Fixes a regression in the previous version.)
16843 + In default template, use black for internal links and TOC.
16844 Added commented-out code to use footnotes for links, as would
16845 be suitable in print output.
16847 * Beamer writer: When `--incremental` is used, lists inside
16848 a block quote should appear all at once. (This makes Beamer
16849 output consistent with the HTML slide show formats.)
16851 * ConTeXt writer:
16853 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
16854 to avoid gobbling spaces after the `%` sign.
16855 + Ensure space after `\stopformula`.
16857 * Markdown writer:
16859 + Use `:` form instead of `~` in definition lists, for better
16860 compatibility with other markdown implementations.
16861 + Don't wrap the term, because it breaks definition lists.
16862 + Use a nonzero space to prevent false recognition
16863 of list marker in ordered lists. Closes #516.
16865 * Org writer: Add space before language name. Closes #523.
16867 * Docx writer: Simplified bullet characters so they work properly
16868 with Word 2007. Closes #520.
16870 * LaTeX reader: Support `\centerline`.
16872 * RST reader: handle figures. Closes #522.
16874 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
16875 (Paul Rivier)
16877## pandoc 1.9.3 (2012-05-12)
16879 * Added docbook reader (with contributions from Mauro Bieg).
16881 * Fixed bug in `fromEntities`. The previous version would turn
16882 `hi & low you know;` into `hi &`.
16884 * HTML reader:
16886 + Don't skip nonbreaking spaces.
16887 Previously a paragraph containing just `&nbsp;` would be rendered
16888 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
16889 + Support `<col>` and `<caption>` in tables. Closes #486.
16891 * Markdown reader:
16893 + Don't recognize references inside delimited code blocks.
16894 + Allow list items to begin with lists.
16896 * LaTeX reader:
16898 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
16899 + Control sequences can't be followed by a letter.
16900 This fixes a bug where `\begingroup` was parsed as `\begin`
16901 followed by `group`.
16902 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
16903 + Make `\label` and `\ref` sensitive to `--parse-raw`.
16904 If `--parse-raw` is selected, these will be parsed as raw latex
16905 inlines, rather than bracketed text.
16906 + Don't crash on unknown block commands (like `\vspace{10pt}`)
16907 inside `\author`; just skip them. Closes #505.
16909 * Textile reader:
16911 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
16912 + Added support for LaTeX blocks and inlines (Paul Rivier).
16913 + Better conformance to RedCloth inline parsing (Paul Rivier).
16914 + Parse '+text+' as emphasized (should be underlined, but this
16915 is better than leaving literal plus characters in the output.
16917 * Docx writer: Fixed multi-paragraph list items. Previously they each
16918 got a list marker. Closes #457.
16920 * LaTeX writer:
16922 + Added `--no-tex-ligatures` option to avoid replacing
16923 quotation marks and dashes with TeX ligatures.
16924 + Use `fixltx2e` package to provide `\textsubscript`.
16925 + Improve spacing around LaTeX block environments:
16926 quote, verbatim, itemize, description, enumerate.
16927 Closes #502.
16928 + Use blue instead of pink for URL links in latex/pdf output.
16930 * ConTeXt writer: Fixed escaping of `%`.
16931 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
16932 Inside URLs, `%` needs to be escaped as `\%`
16933 Thanks to jmarca and adityam for the fix. Closes #492.
16935 * Texinfo writer: Escape special characters in node titles.
16936 This fixes a problem pointed out by Joost Kremers. Pandoc used
16937 to escape an '@' in a chapter title, but not in the corresponding
16938 node title, leading to invalid texinfo.
16940 * Fixed document encoding in texinfo template.
16941 Resolves Debian Bug #667816.
16943 * Markdown writer:
16945 + Don't force delimited code blocks to be flush left.
16946 Fixes bug with delimited code blocks inside lists etc.
16947 + Escape `<` and `$`.
16949 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
16950 Previously we used `\href{\#ident}{text}`, which didn't work on
16951 all systems. Thanks to Dirk Laurie.
16953 * RST writer: Don't wrap link references. Closes #487.
16955 * Updated to use latest versions of blaze-html, mtl.
16958## pandoc 1.9.2 (2012-04-05)
16960 * LaTeX reader:
16962 + Made `lstlisting` work as a proper verbatim environment.
16963 + Fixed bug parsing LaTeX tables with one column.
16965 * LaTeX writer:
16967 + Use `{}` around `ctable` caption, so that formatting can be used.
16968 + Don't require eurosym package unless document has a €.
16970 * LaTeX template: Added variables for `geometry`, `romanfont`,
16971 `sansfont`, `mathfont`, `mainfont` so users can more easily
16972 customize fonts.
16974 * PDF writer:
16976 + Run latex engine at least two times, to ensure
16977 that PDFs will have hyperlinked bookmarks.
16978 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
16980 * Texinfo writer: retain directories in image paths. (Peter Wang)
16982 * RST writer: Better handling of inline formatting, in accord
16983 with docutils' "inline markup recognition rules" (though we don't
16984 implement the unicode rules fully). Now `hi*there*hi` gets
16985 rendered properly as `hi\ *there*\ hi`, and unnecessary
16986 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
16988 * RST reader:
16990 + Parse `\ ` as null, not escaped space.
16991 + Allow `` :math:`...` `` even when not followed by blank
16992 or `\`. This does not implement the complex rule docutils follows,
16993 but it should be good enough for most purposes.
16994 + Add support for the rST default-role directive. (Greg Maslov)
16996 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
16997 (Greg Maslov)
16999 * Markdown reader: Properly handle citations nested in other inline
17000 elements.
17002 * Markdown writer: don't replace empty alt in image with "image".
17004 * DZSlides: Updated template.html and styles in default template.
17005 Removed bizarre CSS for `q` in dzslides template.
17007 * Avoid repeated `id` attribute in section and header in HTML slides.
17009 * README improvements: new instructions on internal links,
17010 removed misleading note on reST math.
17012 * Build system:
17014 + Fixed Windows installer so that dzslides works.
17015 + Removed stripansi.sh.
17016 + Added .travis.yml for Travis continuous integration support..
17017 + Fixed upper bound for zlib (Sergei Trofimovich).
17018 + Fixed upper bound for test-framework.
17019 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
17022## pandoc 1.9.1.2 (2012-03-09)
17024 * Added `beamer+lhs` as output format.
17026 * Don't escape `<` in `<style>` tags with `--self-contained`.
17027 This fixes a bug which prevented highlighting from working
17028 when using `--self-contained`.
17030 * PDF: run latex engine three times if `--toc` specified.
17031 This fixes page numbers in the table of contents.
17033 * Docx writer: Added TableNormal style to tables.
17035 * LaTeX math environment fixes. `aligned` is now used instead of
17036 the nonexistent `aligned*`. `multline` instead of the nonexistent
17037 `multiline`.
17039 * LaTeX writer: Use `\textasciitilde` for literal `~`.
17041 * HTML writer: Don't escape contents of EQ tags with --gladtex.
17042 This fixes a regression from 1.8.
17044 * Use `<q>` tags for Quoted items for HTML5 output.
17045 The quote style can be changed by modifying the template
17046 or including a css file. A default quote style is included.
17048 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
17049 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
17051 * Updated LaTeX template for better language support.
17052 Use `polyglossia` instead of `babel` with xetex.
17053 Set `lang` as documentclass option.
17054 `\setmainlanguage` will use the last of a comma-separated
17055 list of languages. Thanks to François Gannaz.
17057 * Fixed default LaTeX template so `\euro` and `€` work. The
17058 `eurosym` package is needed if you are using pdflatex.
17060 * Fixed escaping of period in man writer (thanks to Michael Thompson).
17062 * Fixed list label positions in beamer.
17064 * Set `mainlang` variable in context writer.
17065 This parallels behavior of latex writer. `mainlang` is the last
17066 of a comma-separated list of languages in lang.
17068 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
17070 * Changed `-V` so that you can specify a key without a value.
17071 Such keys get the value `true`.
17073 * Fixed permissions on installed man pages - thanks Magnus Therning.
17075 * Windows installer: require XP or higher. The installer is
17076 now compiled on a Windows 7 machine, which fixes a problem
17077 using citation functions on Windows 7.
17079 * OSX package: Check for 64-bit Intel CPU before installing.
17082## pandoc 1.9.1.1 (2012-02-11)
17084 * Better handling of raw latex environments in markdown. Now
17086 \begin{equation}
17087 a_1
17088 \end{equation}
17090 turns into a raw latex block as expected.
17092 * Improvements to LaTeX reader:
17094 + Skip options after block commands.
17095 + Correctly handle `{\\}` in braced.
17096 + Added a needed 'try'.
17097 + Citations: add `, ` to suffix if it doesn't start with space or
17098 punctuation. Otherwise we get no space between the year and the
17099 suffix in author-date styles.
17101 * Added two needed data files for S5. This fixes a problem with
17102 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
17103 which was no longer being used.
17105 * Fixed some minor problems in `reference.docx`:
17106 name on "Date" style, `xCs` instead of `xIs`.
17108 * Fixed a problem creating docx files using a reference docx
17109 modified using Word. The problem seems to be that Word
17110 modifies `_rels/.rels`, changing the Type of the Relationship to
17111 `docProps/core.xml`. Pandoc now changes this back to the correct
17112 value if it has been altered, fixing the problem.
17114 * Fixed html5 template so it works properly with highlighting.
17116## pandoc 1.9.1 (2012-02-09)
17118 * LaTeX reader:
17120 + Fixed regression in 1.9; properly handle escaped $ in latex math.
17121 + Put LaTeX verse environments in blockquotes.
17123 * Markdown reader:
17125 + Limit nesting of strong/emph. This avoids exponential lookahead
17126 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
17127 + Improved attributes syntax (in code blocks/spans): (1)
17128 Attributes can contain line breaks. (2) Values in key-value
17129 attributes can be surrounded by either double or single quotes, or
17130 left unquoted if they contain no spaces.
17132 * Headers no longer wrap in markdown or RST writers.
17134 * Added `stateMaxNestingLevel` to `ParserState`.
17135 We set this to 6, so you can still have `Emph` inside `Emph`,
17136 just not indefinitely.
17138 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
17140 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
17141 is present.
17143 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
17145## pandoc 1.9.0.5 (2012-02-06)
17147 * Changed cabal file so that build-depends for the test program
17148 are not required unless the tests flag is used.
17150 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
17151 form ligatures (dashes) in code spans.
17153## pandoc 1.9.0.4 (2012-02-06)
17155 * Raised version bound on test-framework to avoid problems
17156 compiling tests on GHC 7.4.1.
17158 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
17159 so citations don't just disappear unless you process with
17160 citeproc. Ignore `\bibliographystyle`, `\nocite`.
17162 * Simplified tex2pdf; it will always run latex twice to
17163 resolve table of contents and hyperrefs.
17165## pandoc 1.9.0.3 (2012-02-06)
17167 * Require Cabal >= 1.10.
17169 * Tweaked cabal file to meet Cabal 1.10 requirements.
17171## pandoc 1.9.0.2 (2012-02-05)
17173 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
17174 ghc 6.12.
17176## pandoc 1.9 (2012-02-05)
17178### New features
17180 * Added a Microsoft Word `docx` writer. The writer includes support
17181 for highlighted code and for math (which is converted from TeX to OMML,
17182 Office's native math markup language, using texmath's new OMML module).
17183 A new option `--reference-docx` allows the user to customize the
17184 styles.
17186 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
17188 * Better support for slide shows:
17190 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
17191 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
17193 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
17194 slide presentations.
17196 + New, flexible rules for dividing documents into sections and slides
17197 (see the "Structuring the slide show" in the User's Guide). These
17198 are backward-compatible with the old rules, but they allow slide
17199 shows to be organized into sections and subsections containing
17200 multiple slides.
17202 + A new `--slide-level` option allows users to override defaults
17203 and select a slide level below the first header level with content.
17205 * A new `--self-contained` option produces HTML output that does not
17206 depend on an internet connection or the presence of any external
17207 files. Linked images, CSS, and javascript is downloaded (or fetched
17208 locally) and encoded in `data:` URIs. This is useful for making portable
17209 `HTML slide shows. The --offline` option has been deprecated and is now
17210 `treated as a synonym or --self-contained`.
17212 * Support for PDF output:
17214 + Removed the old `markdown2pdf`.
17215 + `pandoc` can now create PDFs (assuming you have latex and a set of
17216 appropriate packages installed): just specify an output file with the
17217 `.pdf` extension.
17218 + A new option `--latex-engine` allows you to specify `pdflatex`,
17219 `xelatex`, or `lualatex` as the processor.
17221 * Highlighting changes:
17223 + Syntax highlighting is now a standard feature; the `highlighting`
17224 flag is no longer needed when compiling.
17225 + A new `--no-highlight` option allows highlighting to be disabled.
17226 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
17227 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
17228 + A new `--highlight-style` option selects between various highlighting
17229 color themes.
17231 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
17233 * LaTeX `\include` and `\usepackage` commands are now processed,
17234 provided the files are in the working directory.
17236 * EPUB improvements:
17238 + Internal and external links now work in EPUB.
17239 + Raw HTML is allowed.
17240 + New `--epub-embed-font` option.
17241 + Customizable templates for EPUB pages offer more control over
17242 formatting: `epub-page.html`, `epub-coverimage.html`,
17243 `epub-titlepage.html`.
17245 * `--mathml` now works with DocBook.
17247 * Added support for math in RST reader and writer. Inline math uses the
17248 `` :math:`...` `` construct. Display math uses
17250 .. math:: ...
17252 or if the math is multiline,
17254 .. math::
17256 ...
17258 These constructions are now supported now by `rst2latex.py`.
17260 * Github syntax for fenced code blocks is supported in pandoc's
17261 markdown. You can now write
17263 ```ruby
17264 x = 2
17265 ```
17267 instead of
17269 ~~~ {.ruby}
17270 x = 2
17271 ~~~~
17273 * Easier scripting: a new `toJsonFilter` function makes it easier to
17274 write Haskell scripts to manipulate the Pandoc AST.
17275 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
17277### Behavior changes
17279 * Fixed parsing of consecutive lists in markdown.
17280 Pandoc previously behaved like Markdown.pl for consecutive
17281 lists of different styles. Thus, the following would be parsed
17282 as a single ordered list, rather than an ordered list followed
17283 by an unordered list:
17285 1. one
17286 2. two
17288 - one
17289 - two
17291 This change makes pandoc behave more sensibly, parsing this as
17292 two lists. Any change in list type (ordered/unordered) or in
17293 list number style will trigger a new list. Thus, the following
17294 will also be parsed as two lists:
17296 1. one
17297 2. two
17299 a. one
17300 b. two
17302 Since we regard this as a bug in Markdown.pl, and not something
17303 anyone would ever rely on, we do not preserve the old behavior
17304 even when `--strict` is selected.
17306 * Dashes work differently with `--smart`: `---` is always em-dash,
17307 and `--` is always en-dash. Pandoc no longer tries to guess when
17308 `-` should be en-dash. *Note:* This may change how existing documents
17309 look when processed with pandoc. A new option, `--old-dashes`,
17310 is provided for legacy documents.
17312 * The markdown writer now uses setext headers for levels 1-2.
17313 The old behavior (ATX headers for all levels) can be restored
17314 using the new `--atx-headers` option.
17316 * Links are now allowed in markdown image captions. They are also
17317 allowed in links, but will appear there as regular text. So,
17319 [link with [link](/url)](/url)
17321 will turn into
17323 <p><a href="/url">link with link</a></p>
17325 * Improved handling of citations using `citeproc-hs-0.3.4`.
17326 Added `--citation-abbreviations` option.
17328 * Citation keys can no longer end with a punctuation character.
17329 This means that `@item1.` will be parsed as a citation with key
17330 'item1', followed by a period, instead of a citation with key
17331 'item1.', as was the case previously.
17333 * In HTML output, citations are now put in a span with class `citation`.
17335 * The markdown reader now recognizes DocBook block and inline tags.
17336 It was always possible to include raw DocBook tags in a markdown
17337 document, but now pandoc will be able to distinguish block from
17338 inline tags and behave accordingly. Thus, for example,
17340 <sidebar>
17341 hello
17342 </sidebar>
17344 will not be wrapped in `<para>` tags.
17346 * The LaTeX parser has been completely rewritten; it is now much more
17347 accurate, robust, and extensible. However, there are two important
17348 changes in how it treats unknown LaTeX. (1) Previously, unknown
17349 environments became BlockQuote elements; now, they are treated
17350 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
17351 same as `xyz`. (2) Previously, arguments of unknown commands
17352 were passed through with their braces; now the braces are stripped
17353 off.
17355 * `--smart` is no longer selected automatically with `man` output.
17357 * The deprecated `--xetex` option has been removed.
17359 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
17360 instead. `html5` and `html5+lhs` are now separate output formats.
17362 * Single quotes are no longer escaped in HTML output. They do not
17363 need to be escaped outside of attributes.
17365 * Pandoc will no longer transform leading newlines in code
17366 blocks to `<br/>` tags.
17368 * The ODT writer now sizes images appropriately, using the image
17369 size and DPI information embedded in the image.
17371 * `--standalone` is once again implicitly for a non-text output format
17372 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
17373 and get a standalone ODT file.
17375 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
17376 `<section>`.
17378 * The HTML writer now uses `<del>` for strikeout.
17380 * In HTML output with `--section-divs`, the classes `section` and
17381 `level[1,2,..6]` are put on the `div` tags so they can be styled.
17382 In HTML 5 output with `--section-divs`, the classes
17383 `level[1,2,...6]` are put on `section` tags.
17385 * EPUB writer changes:
17387 + The `lang` variable now sets the language
17388 in the metadata (if it is not set, we default to the locale).
17389 + EPUB: UTF-8 is used rather than decimal entities.
17391 * Added `titleslide` class to title slide in S5 template.
17393 * In HTML, EPUB, and docx metadata, the date is normalized into
17394 YYYY-MM-DD format if possible. (This is required for validation.)
17396 * Attributes in highlighted code blocks are now preserved in HTML.
17397 The container element will have the classes, id, and key-value attributes
17398 you specified in the delimited code block. Previously these were stripped
17399 off.
17401 * The reference backlink in the HTML writer no longer has a special
17402 `footnoteBacklink` class.
17404 * The HTML template has been split into `html` and `html5` templates.
17406 * Author and date are treated more consistently in HTML templates.
17407 Authors are now `<h2>`, date `<h3>`.
17409 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
17411 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
17413### Bug fixes
17415 * Better support for combining characters and East Asian wide characters
17416 in markdown and reST.
17418 * Better handling of single quotes with `--smart`.
17419 Previously `D'oh l'*aide*` would be parsed with left and right single
17420 quotes instead of apostrophes. This kind of error is now fixed.
17422 * Highlighting: Use `reads` instead of `read` for better error handling.
17423 Fixes crash on `startNum="abc"`.
17425 * Added blank comment after directives in rst template.
17427 * Unescape entities in citation `refId`. The `refId`s coming
17428 from citeproc contain XML numeric entities, and these don't match with the
17429 citation keys parsed by pandoc. Solution is to unescape them.
17431 * HTML reader: Fixed bug parsing tables with both thead and tbody.
17433 * Markdown reader:
17435 + Better handling of escapes in link URLs and titles.
17436 + Fixed backslash escapes in reference links.
17437 + Fixed bug in table/hrule parsing, by checking that the top
17438 line of a table is not followed by a blank line. This bug caused
17439 slowdowns on some files with hrules and tables, as pandoc tried to
17440 interpret the hrules as the tops of multiline tables.
17441 + Fixed bug in code block attribute parser. Previously the ID attribute
17442 got lost if it didn't come first. Now attributes can come in any order.
17444 * RST reader: allow footnotes followed by newline without space characters.
17446 * LaTeX reader:
17448 + Ignore empty groups {}, { }.
17449 + LaTeX reader: Handle `\@`.
17450 + LaTeX reader: Don't crash on commands like `\itemsep`.
17451 + LaTeX reader: Better handling of letter environments.
17453 * RST writer: Fixed bug involving empty table cells. isSimple was being
17454 calculated in a way that assumed there were no non-empty cells.
17456 * ConTeXt writer:
17458 + Made `--toc` work even without `--number-sections`.
17459 + Escape # in link URLs.
17460 + Use buffering for footnotes containing code blocks.
17461 + Changed 'descr' to 'description', fixed alignment.
17463 * LaTeX writer:
17465 + Escape euro character.
17466 + Don't escape `~` inside `\href{...}`.
17467 + Escape `#` in href URLs.
17468 + Improved detection of book classes. We now check the
17469 `documentclass` variable, and if that is not set, we look through
17470 the template itself. Also, we have added the KOMA classes scrreprt
17471 and scrbook. You can now make a book using
17472 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
17473 + LHS files now set the "listings" variable, so that the definition
17474 of the `code` environment will be included in the template.
17475 + Links are colored blue by default (this can be changed by
17476 modifying `hyperref` settings in the template).
17477 + Added `lang` variable to LaTeX template.
17479 * HTML writer:
17481 + Fixed bug in HTML template with html5 and mathml.
17482 + Don't use self-closing img, br, hr tags for HTML5.
17483 + Use `<section>` for footnotes if HTML5.
17484 + Update HTML templates to use Content-Style-Type meta tag.
17485 + Use separate variables for meta-date, meta-author.
17486 This makes footnotes work in author and date fields.
17487 + Use 'vertical-align:middle' in WebTeX math for better alignment.
17489 * S5/slidy writer: Make footnotes appear on separate slide at end.
17491 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
17492 META-INF/manifest.xml for ODT files will have everything it needs, so
17493 that ODT files modified by LibreOffice can be used as `--reference-odt`.
17495 * `Text.Pandoc.Templates`: Return empty string for json template.
17497 * `Text.Pandoc.Biblio`:
17499 + Expand citations recursively inside nested inlines.
17500 + Treat `\160` as space when parsing locator and suffix.
17501 This fixes a bug with "p. 33" when `--smart` is used. Previously
17502 the whole "p. 33" would be included in the suffix, with no locator.
17503 + Put whole author-in-text citation in a Cite. Previously just the
17504 date and other info went in the Cite.
17505 + Don't add comma+space to prefix if it ends in punctuation.
17507 * Updated chicago-author-date.csl. The old version did not work
17508 properly for edited volumes with no author.
17510 * EPUB writer:
17512 + Add date to EPUB titlepage and metadata.
17513 + Added TOC identifier in EPUB page template.
17514 + Don't generate superfluous file `cover-image.jpg`.
17516### Under the hood improvements
17518 * Modified `make_osx_package.sh` to use cabal-dev.
17519 Items are no longer installed as root.
17520 Man pages are zipped and given proper permissions.
17522 * Modified windows installer generator to use cabal-dev.
17524 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
17525 Setup.hs we now invoke 'runghc' in a way that points it to the correct
17526 package databases, instead of always falling back to the default user
17527 package db.
17529 * Updated to work with GHC 7.4.1.
17531 * Removed dependency on old-time.
17533 * Removed dependency on dlist.
17535 * New slidy directory for "self-contained."
17537 * TeXMath writer: Use unicode thin spaces for thin spaces.
17539 * Markdown citations: don't strip off initial space in locator.
17541### API changes
17543 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
17544 from the native `Inline` type in pandoc-types. Now we use `Str`
17545 elements with unicode.
17547 * Improvements to `Text.Pandoc.Builder`:
17549 + `Inlines` and `Blocks` are now newtypes (not synonyms for
17550 sequences).
17551 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
17552 and a new `Listable` class, which allows these to be manipulated
17553 to some extent like lists. Monoid append includes automatic
17554 normalization.
17555 + `+++` has been replaced by `<>` (mappend).
17557 * Use blaze-html instead of xhtml for HTML generation.
17558 This changes the type of `writeHtml`.
17560 * `Text.Pandoc.Shared`:
17562 + Added `warn` and `err`.
17563 + Removed `unescapeURI`, modified `escapeURI`.
17564 (See under [behavior changes], above.)
17566 * Changes in URI escaping: Previously the readers escaped URIs by
17567 converting unicode characters to octets and then percent encoding.
17568 Now unicode characters are left as they are, and `escapeURI` only
17569 percent-encodes space characters. This gives more readable
17570 URIs, and works well with modern user agents. URIs are no longer unescaped
17571 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
17573 * New module `Text.Pandoc.SelfContained`.
17575 * New module `Text.Pandoc.Docx`.
17577 * New module `Text.Pandoc.PDF`.
17579 * Added `writerBeamer` to `WriterOptions`.
17581 * Added `normalizeDate` to `Text.Pandoc.Shared`.
17583 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
17584 This is like `splitWithIndices`, but it is sensitive to distinctions
17585 between wide, combining, and regular characters.
17587 * `Text.Pandoc.Pretty`:
17589 + Added `chomp` combinator.
17590 + Added `beforeNonBreak` combinator. This allows you to include
17591 something conditionally on it being before a nonblank.
17592 Used for RST inline math.
17593 + Added `charWidth` function. All characters marked W or F in the unicode
17594 spec EastAsianWidth.txt get width 2.
17595 + Added `realLength`, based on `charWidth`. `realLength` is now
17596 used in calculating offsets.
17598 * New module `Text.Pandoc.Slides`, for common functions for breaking
17599 a document into slides.
17601 * Removed `Text.Pandoc.S5`, which is no longer needed.
17603 * Removed `Text.Pandoc.CharacterReferences`. Moved
17604 `characterReference` to `Text.Pandoc.Parsing`.
17605 `decodeCharacterReferences` is replaced by `fromEntities`
17606 in `Text.Pandoc.XML`.
17608 * Added `Text.Pandoc.ImageSize`. This is intened for use
17609 in `docx` and `odt` writers, so the size and dpi of images
17610 can be calculated.
17612 * Removed `writerAscii` in `WriterOptions`.
17614 * Added `writerHighlight` to `WriterOptions`.
17616 * Added `DZSlides` to `HTMLSlideVariant`.
17618 * `writeEPUB` has a new argument for font files to embed.
17620 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
17621 of whether we're parsing the position immediately after a regular
17622 (non-space, non-symbol) string, which is useful for distinguishing
17623 apostrophes from single quote starts.
17625 * `Text.Pandoc.Parsing`:
17627 + `escaped` now returns a `Char`.
17628 + Removed `charsInBalanced'`, added a character parser as
17629 a parameter of `charsInBalanced`. This is needed for
17630 proper handling of escapes, etc.
17631 + Added `withRaw`.
17633 * Added `toEntities` to `Text.Pandoc.XML`.
17635 * `Text.Pandoc.Readers.LaTeX`:
17637 + Export `handleIncludes`.
17638 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
17640 * Added `ToJsonFilter` class and `toJsonFilter` function to
17641 `Text.Pandoc`, deprecating the old `jsonFilter` function.
17643 * `Text.Pandoc.Highlighting`:
17645 + Removed `highlightHtml`, `defaultHighlightingCss`.
17646 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
17647 key functions from highlighting-kate.
17648 + Changed types of highlighting function. `highlight` returns a
17649 `Maybe`, not an `Either`.
17652## pandoc 1.8.2.1 (2011-08-01)
17654 * Adjusted Arbitrary instance to help avoid timeouts in tests.
17656 * Added `Tests.Writers.Markdown` to cabal file.
17658 * Relaxed version bounds on pandoc-types, test-framework.
17660## pandoc 1.8.2 (2011-07-30)
17662 * Added script to produce OS X package.
17664 * Made `templates` directory a git submodule. This should make it
17665 easier for people to revise their custom templates when the default
17666 templates change.
17668 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
17669 **Note:** If you have existing templates in `~/.pandoc/templates`, you
17670 must rename them to conform to the new scheme!
17672 * Default template improvements:
17674 + HTML: Display author and date after title.
17675 + HTML: Made table of contents more customizable. The container
17676 for the TOC is now in the template, so users can insert a header
17677 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
17678 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
17679 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
17680 hard-coding. If you want to put your slidy files in the slidy
17681 subdirectory, for example, you can do
17682 `pandoc -t slidy -V slidy-url=slidy -s`.
17683 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
17684 & writer). Closes #279.
17685 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
17686 + LaTeX: Use different `hyperref` options for `xetex`, fixing
17687 problems with unicode bookmarks (thanks to CircleCode).
17688 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
17689 with `inputenc`. This covers fewer characters but is more
17690 robust with other packages, and `ucs` is unmaintained. Users
17691 who need better unicode support should use xelatex or lualatex.
17693 * If a template specified with `--template` is not found, look for it
17694 in `datadir`. Also, if no extension is provided, supply one based
17695 on the writer. So now you can put your `special.latex` template in
17696 `~/.pandoc/templates`, and use it from any directory via
17697 `pandoc -t latex --template special`.
17699 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
17701 * Fixed smart quotes bug, now handling `'...hi'` properly.
17703 * RST reader:
17705 + Partial support for labeled footnotes.
17706 + Improved accuracy of `simpleReferenceName` parser.
17708 * HTML reader:
17710 + Substitute correct unicode characters for
17711 characters in the 128..159 range, which are often found even in
17712 HTML that purports to be UTF-8.
17714 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
17715 to the title, after a colon and linebreak). Closes #280.
17717 * Leaner `reference.odt`.
17719 * Added unexported module `Text.Pandoc.MIME` for use in
17720 the ODT writer.
17722 * ODT writer: Construct `manifest.xml` based on archive contents.
17723 This fixes a bug in ODTs containing images. Recent versions of
17724 LibreOffice would reject these as corrupt, because `manifest.xml`
17725 did not contain a reference to the image files.
17727 * LaTeX writer:
17729 + Make verbatim environments flush to avoid spurious
17730 blank lines. Closes #277.
17731 + Use `\texttt` and escapes insntead of `\verb!...!`, which
17732 is too fragile (doesn't work in command arguments).
17733 + Use `\enquote{}` for quotes if the template includes
17734 the `csquotes` package. This provides better support for
17735 local quoting styles. (Thanks to Andreas Wagner for the idea.)
17737 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
17738 margin, preventing spurious blank lines.
17740 * Slidy writer:
17742 + Use non-minimized version of `slidy.css` with `--offline`
17743 option, so users can more easily edit it.
17744 + Also fixed a bug in the CSS that prevented proper centering
17745 of title (now reported and fixed upstream).
17747 * S5 writer:
17749 + Replaced `s5/default/slides.js.{comment,packed}` with
17750 new compressed `s5/default/slides.min.js`.
17751 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
17752 when `--offline` is specified. Using inline CSS didn't
17753 work with Chrome or Safari. This fixes offline
17754 S5 on those browsers.
17756 * HTML writer: Removed English title on footnote backlinks.
17757 This is incongrous in non-English documents.
17759 * Docbook writer:
17761 + Use CALS tables. (Some older docbook software does not work
17762 well with XHTML tables.) Closes #77.
17763 + Use `programlisting` tags (instead of `screen`) for code blocks.
17765 * `markdown2pdf`:
17767 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
17768 of `-interaction=batchmode`, which essentially just ignored errors,
17769 leading to bad results. Better to know when something is wrong.
17770 + Fixed issues with non-UTF-8 output of `pdflatex`.
17771 + Better error reporting.
17773 * `--mathjax` now takes an optional URL argument. If it is not
17774 provided, pandoc links directly to the (secure) mathjax CDN,
17775 as now recommended (thanks to dsanson).
17777 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
17778 since the LaTeX writer now produces a file that can be processed by
17779 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
17781 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
17782 to be used to create the PDF.
17785## pandoc 1.8.1.2 (2011-07-16)
17787 * Added `--epub-cover-image` option.
17789 * Documented `--biblatex` and `--natbib` options.
17791 * Allow `--section-divs` with slidy output. Resolves Issue #296.
17793 * Disallow notes within notes in reST and markdown.
17794 These previously caused infinite looping and stack overflows.
17795 For example:
17797 [^1]
17799 [^1]: See [^1]
17801 Note references are allowed in reST notes, so this isn't a full
17802 implementation of reST. That can come later. For now we need to
17803 prevent the stack overflows. Partially resolves Issue #297.
17805 * EPUB writer: Allow non-plain math methods.
17807 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
17808 `(@item1; @item2)` because the final paren was being parsed as part of
17809 the item key.
17811 * Changed URI parser so it doesn't include trailing punctuation.
17812 So, in RST, `http://google.com.` should be parsed as a link followed by a
17813 period. The parser is smart enough to recognize balanced parentheses, as
17814 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
17816 * Markdown+lhs reader: Require space after inverse bird tracks, so that
17817 HTML tags can be used freely at the left margin of a markdown+lhs document.
17818 Thanks to Conal Elliot for the suggestion.
17820 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
17822 * RST reader:
17823 + Fixed bug in in field lists with multi-line items at the
17824 end of the list.
17825 + Added parentheses to RST `specialChars`, so
17826 `(http://google.com)` will be parsed as a link in parens.
17827 Resolves Issue #291.
17828 + Allow `|` followed by newline in RST line block.
17830 * LaTeX reader:
17831 + Support `\dots`.
17832 + Gobble option & space after linebreak `\\[10pt]`.
17834 * Textile reader:
17835 + Make it possible to have colons after links. (qerub)
17836 + Make it possible to have colons after links. (Christoffer Sawicki)
17838 * HTML reader:
17839 + Skip spaces after `<b>`, `<emph>`, etc.
17840 + Handle tbody, thead in simple tables. Closes #274.
17841 + Implicit `Para`s instead of `Plains` in some contexts.
17843 * OpenDocument writer: Use special `First paragraph` style for
17844 first paragraph after most non-paragraph blocks. This allows users to
17845 specify e.g. that only paragraphs after the first paragraph of a block are
17846 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
17848 * LaTeX writer: use `deVerb` on table and picture captions.
17849 Otherwise LaTeX complains about `\verb` inside command argument.
17850 Thanks to bbanier for reporting the bug.
17852 * Markdown writer: Insert HTML comment btw list and indented code block.
17853 This prevents the code block from being interpreted as part of the list.
17855 * EPUB writer: Add a meta element specify the cover.
17856 Some EPUB e-readers, such as the Nook, require a meta element inside the
17857 OPF metadata block to ensure the cover image is properly displayed.
17858 (Kelsey Hightower)
17860 * HTML writer: Use embed tag for images with non-image extensions.
17861 (e.g. PDFs). Closes #264.
17863 * LaTeX writer: Improved tables.
17865 + More space between lines, top-align cells.
17866 + Use ctable package, which allows footnotes and
17867 provides additional options.
17868 + Made cell alignments work in multiline tables.
17869 + Closes #271, #272.
17871 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
17872 Also do this when copying image files into EPUBs and ODTs.
17873 Closes #263.
17875 * Changed to github issue tracker.
17877 * Added failing emph/strong markdown test case due to Perry Wagle.
17879 * Slidy improvements:
17880 + Updated to use Slidy2.
17881 + Fixed bug, unclosed div tag.
17882 + Added `duration` variable in template.
17883 Setting this activates the timer.
17884 + Use 'titlepage' instead of 'cover' for title div.
17887## pandoc 1.8.1.1 (2011-02-13)
17889 * `markdown2pdf`: Removed some debugging lines accidentally included
17890 in the 1.8.1 release. With those lines, the temp directory is created
17891 in the working directory, and it is not deleted. This fix restores
17892 the original behavior.
17894## pandoc 1.8.1 (2011-02-13)
17896 * Added `--ascii` option. Currently supported only in HTML writer,
17897 which it causes to use numerical entities instead of UTF-8.
17899 * EPUB writer: `--toc` now works to provide a table of contents
17900 at the beginning of each chapter.
17902 * LaTeX writer: Change figure defaults to `htbp`.
17903 This prevents "too many unprocessed floats." Resolves
17904 Issue #285.
17906 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
17907 base.
17909 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
17910 Tanimoto. Resolves Issue #286.
17912 * HTML writer: Put line breaks in section divs.
17914 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
17916## pandoc 1.8.0.3 (2011-02-05)
17918 * Fixed Source-repository stanza in cabal file.
17920## pandoc 1.8.0.2 (2011-02-05)
17922 * HTML writer:
17924 + Stringify alt text instead of converting to HTML.
17925 + Break lines after block elements, not inside tags.
17926 HTML output now closely resembles that of tidy. Resolves Issue #134.
17928 * Markdown reader: Fixed bug in footnote block parser (pointed out
17929 by Jesse Rosenthal). The problem arose when the blank line
17930 at the end of a footnote block contained indenting spaces.
17932 * Shared: Improved 'normalize' function so it normalizes Spaces too.
17933 In normal form, Space elements only occur to separate two non-Space
17934 elements. So, we never have [Space], or [, ..., Space].
17936 * Tests:
17938 + Improved Arbitrary instance.
17939 + Added timeout for test instances.
17941 * README:
17943 + Added section on four-space rule for lists. Resolves Issue #283.
17944 + Clarified optional arguments on math options.
17946 * markdown2pdf: Fixed bug with output file extensions.
17947 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
17948 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
17950## pandoc 1.8.0.1 (2011-01-31)
17952 * Revised Interact.hs so that it works with the CPP macros
17953 in the UTF8 module.
17955 * Revised Setup.hs so that we don't call MakeManPage.hs unless
17956 the man pages are out of date.
17958## pandoc 1.8 (2011-01-30)
17960### New features
17962 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
17963 You can now write, for example,
17965 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
17967 and, when you process your document using `pandoc`, specifying
17968 a citation style using `--csl` and a bibliography using `--bibliography`,
17969 the citation will be replaced by an appropriately formatted
17970 citation, and a list of works cited will be added to the end
17971 of the document.
17973 This means that you can switch effortlessly between different citation
17974 and bibliography styles, including footnote, numerical, and author-date
17975 formats. The bibliography can be in any of the following formats: MODS,
17976 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
17977 See the README for further details.
17979 Citations are supported in the markdown reader, using a special
17980 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
17981 (Thanks to Nathan Gass for the natbib and biblatex support.)
17983 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
17984 the `textile` reader, an almost complete implementation of the textile
17985 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
17986 Resolves Issue #51.
17988 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
17990 * New `json` reader and writer, for reading and writing a JSON
17991 representation of the native Pandoc AST. These are much faster
17992 than the `native` reader and writer, and should be used for
17993 serializing Pandoc to text. To convert between the JSON representation
17994 and native Pandoc, use `encodeJSON` and `decodeJSON` from
17995 `Text.JSON.Generic`.
17997 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
17998 to write scripts that transform a JSON-encoded pandoc document.
17999 For example:
18001 -- removelinks.hs - removes links from document
18002 import Text.Pandoc
18003 main = interact $ jsonFilter $ bottomUp removeLink
18004 where removeLink (Link xs _) = Emph xs
18005 removeLink x = x
18007 To use this to remove links while translating markdown to LaTeX:
18009 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
18011 * Attributes are now allowed in inline `Code` elements, for example:
18013 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
18015 The attribute syntax is the same as for delimited code blocks.
18016 `Code` inline has an extra argument place for attributes, just like
18017 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
18018 is compiled with highlighting support. Resolves Issue #119.
18020 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
18021 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
18022 scripts to transform Pandoc documents. Scripts can now change
18023 how each element is rendered in each output format.
18025 * You can now define LaTeX macros in markdown documents, and pandoc
18026 will apply them to TeX math. For example,
18028 \newcommand{\plus}[2]{#1 + #2}
18029 $\plus{3}{4}$
18031 yields `3+4`. Since the macros are applied in the reader, they
18032 will work in every output format, not just LaTeX.
18034 * LaTeX macros can also be used in LaTeX documents (both in math
18035 and in non-math contexts).
18037 * A new `--mathjax` option has been added for displaying
18038 math in HTML using MathJax. Resolves issue #259.
18040 * Footnotes are now supported in the RST reader. (Note, however,
18041 that unlike docutils, pandoc ignores the numeral or symbol used in
18042 the note; footnotes are put in an auto-numbered ordered list.)
18043 Resolves Issue #258.
18045 * A new `--normalize` option causes pandoc to normalize the AST
18046 before writing the document. This means that, for example,
18047 `*hi**there*` will be rendered as `<em>hithere</em>`
18048 instead of `<em>hi</em><em>there</em>`. This is not the default,
18049 because there is a significant performance penalty.
18051 * A new `--chapters` command-line option causes headers
18052 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
18053 Resolves Issue #265.
18055 * In DocBook output, `<chapter>` is now used for top-level
18056 headers if the template contains `<book>`. Resolves Issue #265.
18058 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
18059 the LaTeX writer to use the listings package for code blocks.
18060 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
18061 Millon for the markdown2pdf patch.)
18063 * `markdown2pdf` now supports `--data-dir`.
18065 * URLs in autolinks now have class "url" so they can be styled.
18067 * Improved prettyprinting in most formats. Lines will be wrapped
18068 more evenly and duplicate blank lines avoided.
18070 * New `--columns` command-line option sets the column width for
18071 line wrapping and relative width calculations for tables.
18073 * Made `--smart` work in HTML, RST, and Textile readers, as well
18074 as markdown.
18076 * Added `--html5` option for HTML5 output.
18078 * Added support for listings package in LaTeX reader
18079 (Puneeth Chaganti).
18081 * Added support for simple tables in the LaTeX reader.
18083 * Added support for simple tables in the HTML reader.
18085 * Significant performance improvements in many readers and writers.
18087### API and program changes
18089 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
18090 auxiliary package, `pandoc-types`. This will make it possible for other
18091 programs to supply output in Pandoc format, without depending on the whole
18092 pandoc package.
18094 * Added `Attr` field to `Code`.
18096 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
18097 `RawBlock` and `RawInline`.
18099 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
18100 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
18101 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
18103 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
18105 * `Text.Pandoc` now exports association lists `readers` and `writers`.
18107 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
18108 `readNative` can now read full pandoc documents, block lists, blocks,
18109 inline lists, or inlines. It will interpret `Str "hi"`
18110 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
18111 This should make testing easier.
18113 * Removed deprecated `-C/--custom-header` option.
18114 Use `--template` instead.
18116 * `--biblio-file` has been replaced by `--bibliography`.
18117 `--biblio-format` has been removed; pandoc now guesses the format
18118 from the file extension (see README).
18120 * pandoc will treat an argument as a URI only if it has an
18121 `http(s)` scheme. Previously pandoc would treat some
18122 Windows pathnames beginning with `C:/` as URIs.
18124 * The `--sanitize-html` option and the `stateSanitize` field in
18125 `ParserState` have been removed. Sanitization is better done in the
18126 resulting HTML using `xss-sanitize`, which is based on pandoc's
18127 sanitization, but improved.
18129 * pandoc now adds a newline to the end of its output in fragment
18130 mode (= not `--standalone`).
18132 * Added support for `lang` in `html` tag in the HTML template,
18133 so you can do `pandoc -s -V lang=es`, for example.
18135 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
18136 a boolean argument that selects between "inline" and
18137 "block" HTML.
18139 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
18140 Images are embedded in RTF output when possible (png, jpeg).
18141 Resolves Issue #275.
18143 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
18144 `pretty` package. Changed all writers that used
18145 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
18147 * Rewrote `writeNative` using the new prettyprinting module. It is
18148 now much faster. The output has been made more consistent and compressed.
18149 `writeNative` is also now sensitive to writerStandalone`, and will simply
18150 `print a block list if writerStandalone` is False.
18152 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
18153 blocks and concatenate them, so a separate module is no longer needed.
18155 * `Text.Pandoc.Shared`:
18157 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
18158 `WriterOptions`.
18159 + Added `normalize`.
18160 + Removed unneeded prettyprinting functions:
18161 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
18162 `BlockWrapper`, `wrappedBlocksToDoc`.
18163 + Made `splitBy` take a test instead of an element.
18164 + Added `findDataFile`, refactored `readDataFile`.
18165 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
18166 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
18168 * `Text.Pandoc.Readers.HTML`:
18170 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
18171 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
18172 `htmlBlockElement`, `htmlComment`
18173 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
18174 `isTextTag`
18176 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
18177 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
18178 an inline parser.
18180 * Ellipses are no longer allowed to contain spaces.
18181 Previously we allowed '. . .', ' . . . ', etc. This caused
18182 too many complications, and removed author's flexibility in
18183 combining ellipses with spaces and periods.
18185 * Allow linebreaks in URLs (treat as spaces). Also, a string of
18186 consecutive spaces or tabs is now parsed as a single space. If you have
18187 multiple spaces in your URL, use `%20%20`.
18189 * `Text.Pandoc.Parsing`:
18191 + Removed `refsMatch`.
18192 + Hid `Key` constructor.
18193 + Removed custom `Ord` and `Eq` instances for `Key`.
18194 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
18195 + Generalized type on `readWith`.
18197 * Small change in calculation of relative widths of table columns.
18198 If the size of the header > the specified column width, use
18199 the header size as 100% for purposes of calculating
18200 relative widths of columns.
18202 * Markdown writer now uses some pandoc-specific features when `--strict`
18203 is not specified: `\` newline is used for a hard linebreak instead of
18204 two spaces then a newline. And delimited code blocks are used when
18205 there are attributes.
18207 * HTML writer: improved gladTeX output by setting ENV appropriately
18208 for display or inline math (Jonathan Daugherty).
18210 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
18212 * LaTeX reader:
18214 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
18215 + `\index{}` commands are skipped.
18217 * Added `fontsize` variable to default LaTeX template.
18218 This makes it easy to set the font size using `markdown2pdf`:
18219 `markdown2pdf -V fontsize=12pt input.txt`.
18221 * Fixed problem with strikeout in LaTeX headers when using
18222 hyperref, by adding a command to the default LaTeX template
18223 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
18224 for the fix.
18226 * The `COLUMNS` environment variable no longer has any effect.
18228### Under-the-hood improvements
18230 * Pandoc now compiles with GHC 7. (This alone leads to a
18231 significant performance improvement, 15-20%.)
18233 * Completely rewrote HTML reader using tagsoup as a lexer. The
18234 new reader is faster and more accurate. Unlike the
18235 old reader, it does not get bogged down on some input
18236 (Issues #277, 255). And it handles namespaces in tags
18237 (Issue #274).
18239 * Replaced `escapeStringAsXML` with a faster version.
18241 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
18242 for a significant performance boost.
18244 * Improved performance of all readers by rewriting parsers.
18246 * Simplified Text.Pandoc.CharacterReferences by using
18247 entity lookup functions from TagSoup.
18249 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
18250 from `System.IO` if base >= 4.2. This gives support for
18251 windows line endings on windows.
18253 * Remove duplications in documentation by generating the
18254 pandoc man page from README, using `MakeManPage.hs`.
18256 * README now includes a full description of markdown syntax,
18257 including non-pandoc-specific parts. A new `pandoc_markdown`
18258 man page is extracted from this, so you can look up markdown
18259 syntax by doing `man pandoc_markdown`.
18261 * Completely revised test framework (with help from Nathan Gass).
18262 The new test framework is built when the `tests` Cabal flag is set. It
18263 includes the old integration tests, but also some new unit and quickcheck
18264 tests. Test output has been much improved, and you can now specify a glob
18265 pattern after `cabal test` to indicate which tests should be run;
18266 for example `cabal test citations` will run all the citation tests.
18268 * Added a shell script, `stripansi.sh`, for filtering ANSI control
18269 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
18271 * Added `Interact.hs` to make it easier to use ghci while developing.
18272 `Interact.hs` loads `ghci` from the `src` directory, specifying
18273 all the options needed to load pandoc modules (including
18274 specific package dependencies, which it gets by parsing
18275 dist/setup-config).
18277 * Added `Benchmark.hs`, testing all readers + writers using criterion.
18279 * Added `stats.sh`, to make it easier to collect and archive
18280 benchmark and lines-of-code stats.
18282 * Added upper bounds to all cabal dependencies.
18284 * Include man pages in extra-source-files. This allows users to
18285 install pandoc from the tarball without needing to build the man
18286 pages.
18288### Bug fixes
18290 * Filenames are encoded as UTF8. Resolves Issue #252.
18292 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
18293 were just parsed literally, leading to problems in some output formats.
18294 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
18295 Resolves Issue #270.
18297 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
18298 Spaces at end of line were not being stripped properly,
18299 resulting in unintended LineBreaks.
18301 * Markdown reader:
18303 + Allow HTML comments as inline elements in markdown.
18304 So, `aaa <!-- comment --> bbb` can be a single paragraph.
18305 + Fixed superscripts with links: `^[link](/foo)^` gets
18306 recognized as a superscripted link, not an inline note followed by
18307 garbage.
18308 + Fixed regression, making markdown reference keys case-insensitive again.
18309 Resolves Issue #272.
18310 + Properly handle abbreviations (like `Mr.`) at the end of a line.
18311 + Better handling of intraword underscores, avoiding exponential
18312 slowdowns in some cases. Resolves Issue #182.
18313 + Fixed bug in alignments in tables with blank rows in the header.
18315 * RST reader:
18317 + Field lists now allow spaces in field names, and
18318 block content in field values. (Thanks to Lachlan Musicman
18319 for pointing out the bug.)
18320 + Definition list items are now always `Para` instead of
18321 `Plain`, matching behavior of `rst2xml.py`.
18322 + In image blocks, the description is parsed properly and
18323 used for the alt attribute, not also the title.
18324 + Skip blank lines at beginning of file. Resolves
18325 Debian #611328.
18327 * LaTeX reader:
18329 + Improved parsing of preamble.
18330 Previously you'd get unexpected behavior on a document that
18331 contained `\begin{document}` in, say, a verbatim block.
18332 + Allow spaces between `\begin` or `\end` and `{`.
18333 + Support `\L` and `\l`.
18334 + Skip comments inside paragraphs.
18336 * LaTeX writer:
18338 + Escape strings in `\href{..}`.
18339 + In nonsimple tables, put cells in `\parbox`.
18341 * OpenDocument writer: don't print raw TeX.
18343 * Markdown writer:
18345 + Fixed bug in `Image`. URI was getting unescaped twice!
18346 + Avoid printing extra blank lines at the end if there are
18347 no notes or references.
18349 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
18350 This avoids unwanted interpretation as an optional argument.
18352 * ConTeXt writer: Fixed problem with inline code. Previously
18353 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
18354 If it contains neither, use `\type{}`; otherwise use `\mono{}`
18355 with an escaped version of the string.
18357 * `:` now allowed in HTML tags. Resolves Issue #274.
18361## pandoc 1.6 (2010-07-24)
18363+ New EPUB and HTML Slidy writers. (Issue #122)
18365 - [EPUB] is a standard ebook format, used in Apple's iBooks for
18366 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
18367 reader, and many other devices, and by online ebook readers like
18368 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
18369 but EPUB books can easily be converted to Kindle format.) Now you
18370 can write your book in markdown and produce an ebook with a single
18371 command! I've put up a short [tutorial here].
18372 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
18374+ All input is assumed to be UTF-8, no matter what the locale and ghc
18375 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
18376 Also, a BOM, if present, is stripped from the input.
18378+ Markdown now supports grid tables, whose cells can contain
18379 arbitrary block elements. (Issue #43)
18381+ Sequentially numbered example lists in markdown with `@` marker.
18383+ Markdown table captions can begin with a bare colon and no longer need
18384 to include the English word "table." Also, a caption can now occur
18385 either before or after the table. (Issue #227)
18387+ New command-line options:
18389 - `--epub-stylesheet` allows you to specify a CSS file that will
18390 be used to style your ebook.
18391 - `--epub-metadata` allows you to specify metadata for the ebook.
18392 - `--offline` causes the generated HTML slideshow to include all
18393 needed scripts and stylesheets.
18394 - `--webtex` causes TeX math to be converted to images using the
18395 Google Charts API (unless a different URL is specified).
18396 - `--section-divs` causes div tags to be added around each section
18397 in an HTML document. (Issue #230, 239)
18399+ Default behavior of S5 writer in standalone mode has changed:
18400 previously, it would include all needed scripts and stylesheets
18401 in the generated HTML; now, only links are included unless
18402 the `--offline` option is used.
18404+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
18405 pandoc would enclose sections in div tags with identifiers on the
18406 div tags, so that the sections can be manipulated in javascript.
18407 This caused undesirable interactions with raw HTML div tags. So,
18408 starting with 1.6, the default is to put the identifiers directly
18409 on the header tags, and not to include the divs. The `--section-divs`
18410 option selects the 1.2-1.5 behavior.
18412+ API changes:
18414 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
18415 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
18416 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
18417 `writerIncludeAfter`.
18418 - Added `headerShift` to `Text.Pandoc.Shared`.
18419 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
18420 to a new module, `Text.Pandoc.Parsing`.
18421 - Added `stateHasChapters` to `ParserState`.
18422 - Added `HTMLSlideVariant`.
18423 - Made `KeyTable` a map instead of an association list.
18424 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
18425 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
18426 - Reference keys now have a type of their own (`Key`), with its
18427 own `Ord` instance for case-insensitive comparison.
18428 - Added `Text.Pandoc.Writers.EPUB`.
18429 - Added `Text.Pandoc.UUID`.
18430 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
18431 Removed `saveOpenDocumentAsODT`, added `writeODT`.
18432 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
18433 Removed `prettyPandoc`.
18434 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
18435 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
18436 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
18437 To write S5, you now use `writeHtml` with `writerSlideVariant`
18438 set to `S5Slides` or `SlidySlides`.
18440+ Template changes. If you use custom templates, please update them,
18441 particularly if you use syntax highlighting with pandoc. The old HTML
18442 templates hardcoded highlighting CSS that will no longer work with
18443 the most recent version of highlighting-kate.
18445 - HTML template: avoid empty meta tag if no date.
18446 - HTML template: Use default highlighting CSS from highlighting-kate
18447 instead of hard-coding the CSS into the template.
18448 - HTML template: insert-before text goes before the title, and
18449 immediately after the `<body>` tag, as documented. (Issue #241)
18450 - Added slidy and s5 templates.
18451 - Added amssymb to preamble of latex template. (github Issue 1)
18453+ Removed excess newlines at the end of output. Note: because output
18454 will not contain an extra newline, you may need to make adjustments
18455 if you are inserting pandoc's output into a template.
18457+ In S5 and slidy, horizontal rules now cause a new slide, so you
18458 are no longer limited to one slide per section.
18460+ Improved handling of code in man writer. Inline code is now monospace,
18461 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
18463+ HTML reader parses `<tt>` as Code. (Issue #247)
18465+ html+lhs output now contains bird tracks, even when compiled without
18466 highlighting support. (Issue #242)
18468+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
18469 since they have a special meaning in XML.
18471+ Code improvements in ODT writer. Remote images are now replaced with
18472 their alt text rather than a broken link.
18474+ LaTeX reader improvements:
18476 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
18477 - Parse `\chapter{}` in latex.
18478 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
18479 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
18480 for use in markdown reader.
18481 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
18482 in markdown document.
18484+ LaTeX writer: images are automatically shrunk if they would extend
18485 beyond the page margin.
18487+ Plain, markdown, RST writers now use unicode for smart punctuation.
18489+ Man writer converts math to unicode when possible, as in other writers.
18491+ `markdown2pdf` can now recognize citeproc options.
18493+ Command-line arguments are converted to UTF-8. (Issue #234)
18495+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
18496 This allows it to handle a wider range of formulas. Also, if a formula
18497 cannot be converted, it is left in raw TeX; formulas are no longer
18498 partially converted.
18500+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
18502+ Cabal file changes:
18504 - Removed parsec < 3 restriction.
18505 - Added 'threaded' flag for architectures where GHC lacks a threaded
18506 runtime.
18507 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
18508 - Require highlighting-kate 0.2.7.
18510+ Use explicit imports from `Data.Generics`. Otherwise we have a
18511 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
18513+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
18515[EPUB]: http://en.wikipedia.org/wiki/EPUB
18516[Slidy]: http://www.w3.org/Talks/Tools/Slidy
18517[bookworm]: http://bookworm.oreilly.com/
18518[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
18520## pandoc 1.5.1.1 (2010-03-29)
18522+ Fixed header identifiers (uniqueIdent in Shared) so they
18523 work as advertized in README and are guaranteed to be
18524 valid XHTML names. Thanks to Xyne for reporting the bug.
18526## pandoc 1.5.1 (2010-03-23)
18528+ Fixed treatment of unicode characters in URIs.
18529+ Revised Setup.hs so it works with debian's build process.
18530+ Fixed bug in OpenDocument writer that led to invalid
18531 XML for some input.
18533## pandoc 1.5.0.1 (2010-03-21)
18535+ HTML writer: Fixed error in math writer (with MathML option)
18536 that caused an infinite loop for unparsable MathML.
18538## pandoc 1.5 (2010-03-20)
18540+ Moved repository to [github](http://github.com/jgm/pandoc).
18541+ New `--mathml` option, for display of TeX math as MathML.
18542+ New `--data-dir` option, allowing users to specify a data
18543 directory other than `~/.pandoc`. Files placed in this directory
18544 will be used instead of system defaults.
18545+ New `--base-header-level` option. For example, `--base-header-level=2`
18546 changes level 1 headers to level 2, level 2 to level 3, etc.
18547+ New 'plain' output format: plain text without pictures, hyperlinks,
18548 inline formatting, or anything else that looks even vaguely
18549 markupish.
18550+ Titles and authors in title blocks can now span multiple lines,
18551 as long as the continuation lines begin with a space character.
18552+ When given an absolute URI as a parameter, pandoc will fetch
18553 the content via HTTP.
18554+ The HTML reader has been made much more forgiving. It no
18555 longer requires well-formed xhtml as input.
18556+ `html2markdown` has been removed; it is no longer necessary, given
18557 the last two changes. `pandoc` can be used by itself to convert
18558 web pages to markdown or other formats.
18559+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
18560 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
18561 behave like `hsmarkdown` used to.
18562+ An image in a paragraph by itself is now rendered as a figure
18563 in most writers, with the alt text as the caption.
18564+ Incomplete support for reST tables (simple and grid). Thanks to
18565 Eric Kow. Colspans and rowspans not yet supported.
18566+ In mediawiki, links with relative URLs are now formatted as wikilinks.
18567 Also, headers have been promoted: `= head =` is now level 1 instead of
18568 level 2.
18569+ The markdown reader now handles "inverse bird tracks" when parsing
18570 literate haskell. These are used for haskell example code that
18571 is not part of the literate program.
18572+ The `-B` and `-A` options now imply `-s` and no longer work in
18573 fragment mode.
18574+ Headerless tables are now printed properly in all writers.
18575 In addition, tbody, thead, and cols are used in HTML and Docbook
18576 tables.
18577+ Improved build system; removed obsolete Makefile.
18578+ In LaTeX writer, `\chapter` is now used instead of `\section`.
18579 when the documentclass is book, report, or memoir.
18580+ Many small bug fixes. See [changelog] for details.
18582## pandoc 1.4 (2010-01-02)
18584+ New template system replaces old headers, giving users much
18585 more control over pandoc's output in `--standalone` mode.
18586 Added `--template` and `--variable` options. The `--print-default-header`
18587 option is now `--print-default-template`. See README under
18588 "Templates" for details.
18589+ The old `--custom-header` option should still work, but it has
18590 been deprecated.
18591+ New `--reference-odt` option allows users to customize styles
18592 in ODT output.
18593+ Users may now put custom templates, s5 styles, and a reference
18594 ODT in the `~/.pandoc` directory, where they will override system
18595 defaults. See README for details.
18596+ Unicode is now used whenever possible in HTML and XML output. Entities
18597 are used only where necessary (`&gt;`, `&lt;`, `&quot;`, `&amp;`).
18598+ Authors and dates may now include formatting and notes.
18599+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
18600+ Windows installer now includes highlighting support and
18601 `markdown2pdf` and `hsmarkdown` wrappers.
18602+ Pandoc no longer requires Template Haskell, which should make
18603 it more portable.
18604+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
18605+ See README for other small improvements and bug fixes.
18607## pandoc 1.3 (2009-12-10)
18609+ Added `--id-prefix` option to help prevent duplicate
18610 identifiers when you're generating HTML fragments.
18611+ Added `--indented-code-classes` option, which specifies
18612 default highlighting syntax for indented code blocks.
18613+ `--number-sections` now affects HTML output.
18614+ Improved syntax for markdown definition lists.
18615+ Better looking simple tables.
18616+ Markdown tables without headers are now possible.
18617+ New hard line break syntax: backslash followed by newline.
18618+ Improved performance of markdown reader by ~10% by eliminating the
18619 need for a separate parsing pass for notes.
18620+ Improved syntax highlighting for literate Haskell.
18621+ Support for "..code-block" directive in RST reader.
18622+ Windows binary now includes highlighting support.
18623+ Many bug fixes and small improvements. See [changelog]
18624 for details.
18626## pandoc 1.2.1 (2009-07-18)
18628+ Improved the efficiency of the markdown reader's
18629 abbreviation parsing (should give a big performance
18630 boost with `--smart`).
18631+ HTML writer now wraps sections in divs with unique
18632 identifiers, for easier manipulation.
18633+ Improved LaTeX reader's coverage of math modes.
18634+ Added a portable Haskell version of markdown2pdf (thanks
18635 to Paolo Tanimoto).
18636+ Made `--strict` compatible with `--standalone` and `--toc.`
18637+ Many other small improvements and bug fixes.
18638 See [changelog] for details.
18640## pandoc 1.2 (2009-03-01)
18642+ Added support for literate Haskell. lhs support is triggered by
18643 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
18644 Haskell LaTeX. '.lhs' files are treated by default as literate
18645 markdown.
18646+ Added `--email-obfuscation` option.
18647+ Brought citeproc support up to date for citeproc-hs-0.2.
18648+ Many bugs fixed. See [changelog] for details.
18650## pandoc 1.1 (2008-11-06)
18652+ New `--jsmath` option supporting use of pandoc with [jsMath].
18653+ Classes on HTML table output for better CSS styling.
18654+ Windows installer no longer requires admin privileges.
18655+ Many bugs fixed. See [changelog] for details.
18657## pandoc 1.0 (2008-09-13)
18659+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
18660 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
18661 document).
18662+ New [delimited code blocks](README.html#delimited-code-blocks),
18663 with optional syntax highlighting.
18664+ Reorganized build system: pandoc can now be built using standard
18665 Cabal tools. It can be compiled on Windows without Cygwin.
18666 The tests can also be run without perl or unix tools.
18667+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
18668+ Support for "displayed" math.
18669+ Common abbreviations are now handled more intelligently, with
18670 a non-breaking space (and not a sentence-ending space) after
18671 the period.
18672+ Code is -Wall clean.
18673+ Many bug fixes and small improvements. See [changelog] for
18674 full details.
18676## pandoc 0.46 (2008-01-08)
18678+ Added a `--sanitize-html` option (and a corresponding parameter
18679 in `ParserState` for those using the pandoc libraries in programs).
18680 This option causes pandoc to sanitize HTML (in HTML or Markdown
18681 input) using a whitelist method. Possibly harmful HTML elements
18682 are replaced with HTML comments. This should be useful in the
18683 context of web applications, where pandoc may be used to convert
18684 user input into HTML.
18685+ Made -H, -A, and -B options cumulative: if they are specified
18686 multiple times, multiple files will be included.
18687+ Many bug fixes and small improvements. See [changelog] for full
18688 details.
18690## pandoc 0.45 (2007-12-09)
18692+ Many bug fixes and structural improvements. See [changelog] for
18693 full details.
18694+ Improved treatment of math. Math is now rendered using unicode
18695 by default in HTML, RTF, and DocBook output. For more accurate
18696 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
18697 options are provided. See the [User's Guide](README.html#math) for
18698 details.
18699+ Removed support for box-style block quotes in markdown.
18700+ More idiomatic ConTeXt output.
18701+ Text wrapping in ConTeXt and LaTeX output.
18702+ Pandoc now correctly handles all standard line endings
18703 (CR, LF, CRLF).
18704+ New `--no-wrap` option that disables line wrapping and minimizes
18705 whitespace in HTML output.
18706+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
18707 GHC and GHC_PKG environment variables may be used to specify
18708 which version of the compiler to use, when multiple versions are
18709 installed.
18711## pandoc 0.44 (2007-09-03)
18713 [ John MacFarlane ]
18715 * Fixed bug in HTML writer: when --toc was used, anchors were put around
18716 headers, which is invalid XHTML (block content within inline element).
18717 Now the anchors are put inside the header tags. Resolves Issue #23.
18719 * Added xmlns attribute to html element in html writer tests.
18720 This attribute is added by more recent versions of the
18721 xhtml library (>= 3000), and is required for valid XHTML.
18723 [ Recai Oktaş ]
18725 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
18726 command instead of 'runhaskell', which, on some platforms (such as s390,
18727 alpha, m68k), throws the following error:
18729 runhaskell Setup.hs configure --prefix=/usr
18730 ghc-6.6.1: not built for interactive use
18732 This causes a serious FTBFS bug. Closes: #440668.
18734## pandoc 0.43 (2007-09-02)
18736 [ John MacFarlane ]
18738 * The focus of this release is performance. The markdown parser
18739 is about five times faster than in 0.42, based on benchmarks
18740 with the TextMate manual.
18742 * Main.hs: Replaced CRFilter and tabFilter with single function
18743 tabFilter, which operates on the whole string rather than breaking
18744 it into lines, and handles dos-style line-endings as well as tabs.
18746 * Added separate LaTeX reader and native reader tests; removed
18747 round-trip tests.
18749 * Text.Pandoc.Shared:
18751 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
18752 + General code cleanup (to elimante warnings when compiling with -Wall.)
18753 + Added 'wrapped' function, which helps wrap text into paragraphs,
18754 using the prettyprinting library.
18755 + Rewrote charsInBalanced and charsInBalanced'.
18756 - Documented restriction: open and close must be distinct characters.
18757 - Rearranged options for greater efficiency.
18758 - Bug fix: Changed inner call to charsInBalanced inside
18759 charsInBalanced' to charsInBalanced'.
18760 + anyLine now requires that the line end with a newline (not eof).
18761 This is a harmless assumption, since we always add newlines to the
18762 end of a block before parsing with anyLine, and it yields a 10% speed
18763 boost.
18764 + Removed unnecessary 'try' in anyLine.
18765 + Removed unneeded 'try' from romanNumeral parser.
18766 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
18767 + Removed unneeded 'try' in parseFromString.
18768 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
18769 like 'string'.)
18770 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
18771 'try' is not automatically applied to the 'end' parser. Added
18772 'try' in calls to 'enclosed' where needed. Slight speed increase.
18774 * Writers:
18776 + Replaced individual wrapping routines in RST, Man, and Markdown
18777 writers with 'wrapped' from Text.Pandoc.Shared.
18778 + Rewrote LaTeX writer to use the prettyprinting library,
18779 so we get word wrapping, etc.
18780 + Modified latex writer tests for new latex writer using prettyprinter.
18781 + Fixed bug in LaTeX writer: autolinks would not cause
18782 `\usepackage{url}` to be put in the document header. Also, changes
18783 to state in enumerated list items would be overwritten.
18784 + In Markdown writer, escape paragraphs that begin with ordered list
18785 markers, so they don't get interpreted as ordered lists.
18787 * Text.Pandoc.Reades.LaTeX:
18789 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
18790 numeral after "enum" in "setcounter" would consist entirely of
18791 "i"s. 'enumiv' is legitimate.
18792 + LaTeX command and environment names can't contain numbers.
18793 + Rearranged order of parsers in inline for slight speed improvement.
18794 + Added '`' to special characters and 'unescapedChar'.
18796 * Text.Pandoc.Readers.RST:
18798 + Removed unneeded try's in RST reader; also minor code cleanup.
18799 + Removed tabchar.
18800 + Rearranged parsers in inline (doubled speed).
18802 * Text.Pandoc.Readers.Markdown:
18804 + Skip notes parsing if running in strict mode. (This yields a nice
18805 speed improvement in strict mode.)
18806 + Simplify autolink parsing code, using Network.URI to test for
18807 URIs. Added dependency on network library to debian/control and
18808 pandoc.cabal.
18809 + More perspicuous definition of nonindentSpaces.
18810 + Removed unneeded 'try' in 'rawLine'.
18811 + Combined linebreak and whitespace into a new whitespace parser, to
18812 avoid unnecessary reparsing of space characters.
18813 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
18814 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
18815 + Use lookAhead in parsers for setext headers and definition lists
18816 to see if the next line begins appropriately; if not, don't waste
18817 any more time parsing.
18818 + Don't require blank lines after code block. (It's sufficient to
18819 end code block with a nonindented line.)
18820 + Changed definition of 'emph': italics with '_' must not
18821 be followed by an alphanumeric character. This is to help
18822 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
18823 `[LC<em>TYPE]:my</em>type`.
18824 + Improved Markdown.pl-compatibility in referenceLink: the two parts
18825 of a reference-style link may be separated by one space, but not
18826 more... [a] [link], [not] [a link].
18827 + Fixed markdown inline code parsing so it better accords with
18828 Markdown.pl: the marker for the end of the code section is a clump
18829 of the same number of `'s with which the section began, followed
18830 by a non-` character. So, for example,
18831 ` h ``` i ` -> `<code>h ``` i</code>`.
18832 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
18833 rules are slightly different.
18834 + Rewrote 'para' for greater efficiency.
18835 + Rewrote link parsers for greater efficiency.
18836 + Removed redundant 'referenceLink' in definition of inline (it's
18837 already in 'link').
18838 + Refactored escapeChar so it doesn't need 'try'.
18839 + Refactored hrule for performance in Markdown reader.
18840 + More intelligent rearranging of 'inline' so that most frequently
18841 used parsers are tried first.
18842 + Removed tabchar parser, as whitespace handles tabs anyway.
18844 * Text.Pandoc.CharacterReferences:
18846 + Refactored.
18847 + Removed unnecessary 'try's for a speed improvement.
18848 + Removed unnecessary '&' and ';' from the entity table.
18850 * Build process:
18852 + Makefile: Get VERSION from cabal file, not Main.hs.
18853 + Modified MacPorts Portfile:
18854 - Depend on haddock
18855 - Build and install libraries and library documentation in
18856 addition to pandoc executable
18857 - Added template item for md5 sum in Portfile.in.
18858 - Incorporated changes from MacPorts repository (r28278).
18859 + FreeBSD port: Don't try to generate distinfo in Makefile.
18860 It can be made using 'make makesum' in FreeBSD.
18861 + Make both freebsd and macports targets depend on tarball.
18863 * Website and documentation:
18865 + Updated INSTALL instructions.
18866 + Added pandocwiki demo to website.
18867 + Removed local references to Portfile, since pandoc is now in the
18868 MacPorts repository.
18870## pandoc 0.42 (2007-08-26)
18872 [ John MacFarlane ]
18874 * Main.hs: Use utf8 conversion on the extra files loaded with
18875 the -H, -C, -B, and -A options. This fixes problems with unicode
18876 characters in these files.
18878 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
18879 Text.Pandoc.Readers.HTML and without it we get a linking error when
18880 using the library.
18882 * Markdown reader:
18884 + Added new rule for enhanced markdown ordered lists: if the list
18885 marker is a capital letter followed by a period (including a
18886 single-letter capital roman numeral), then it must be followed by
18887 at least two spaces. The point of this is to avoid accidentally
18888 treating people's initials as list markers: a paragraph might begin,
18889 "B. Russell was an English philosopher," and this shouldn't be
18890 treated as a list. Documented change in README.
18891 + Blocks that start with "p. " and a digit are no longer treated
18892 as ordered lists (it's a page number).
18893 + Added a needed 'try' to listItem.
18894 + Removed check for a following setext header in endline.
18895 A full test is too inefficient (doubles benchmark time), and the
18896 substitute we had before is not 100% accurate.
18897 + Don't use Code elements for autolinks if --strict specified.
18899 * LaTeX writer: When a footnote ends with a Verbatim environment, the
18900 close } of the footnote cannot occur on the same line or an error occurs.
18901 Fixed this by adding a newline before the closing } of every footnote.
18903 * HTML writer:
18904 + Removed incorrect "{}" around style information in HTML tables.
18905 Column widths now work properly in HTML.
18906 + If --strict option is specified (and --toc is not), don't include
18907 identifiers in headers, for better Markdown compatibility.
18909 * Build process:
18911 + Separated $(web_dest) and website targets.
18912 + In website, index.txt is now constructed from template index.txt.in.
18913 + Added freebsd target to Markefile. This creates the freebsd Makefile
18914 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
18915 from the repository.
18916 + Added macport target to Makefile. Portfile is built from template
18917 Portfile.in.
18918 + Removed OSX package targets. (Too many difficulties involving
18919 dependencies on dynamic libraries.)
18920 + More complete INSTALL instructions for all architectures.
18922 * Website:
18923 + Added a programming demo, pandocwiki.
18925 [ Recai Oktaş ]
18927 * Do not forget to close pandoc's ITP. Closes: #391666
18929## pandoc 0.41 (2007-08-19)
18931 [ John MacFarlane ]
18933 * Fixed bugs in HTML reader:
18934 + Skip material at end *only if* `</html>` is present (previously,
18935 only part of the document would be parsed if an error was
18936 found; now a proper error message is given).
18937 + Added new constant eitherBlockOrInline with elements that may
18938 count either as block-level or as inline. Modified isInline and
18939 isBlock to take this into account.
18940 + Modified rawHtmlBlock to accept any tag (even an inline tag):
18941 this is innocuous, because rawHtmlBlock is tried only if a regular
18942 inline element can't be parsed.
18943 + Added a necessary 'try' in definition of 'para'.
18945 * Fixed bug in markdown ordered list parsing. The problem was that
18946 anyOrderedListStart did not check for a space following the
18947 ordered list marker. So in 'A.B. 2007' the parser would be
18948 expecting a list item, but would not find one, causing an error.
18949 Fixed a similar bug in the RST reader. Resolves Issue #22.
18951 * Refactored RST and Markdown readers using parseFromString.
18953 * LaTeX reader will now skip anything after \end{document}.
18955 * Fixed blockquote output in markdown writer: previously, block
18956 quotes in indented contexts would be indented only in the first
18957 line.
18959 * Added note to INSTALL about variations in versions of the xhtml
18960 library that can lead to failed tests (thanks to Leif LeBaron).
18962## pandoc 0.4 (2007-01-16)
18964 [ John MacFarlane ]
18966 * Added two new output formats: groff man pages and ConTeXt. By
18967 default, output files with extensions ".ctx" and ".context" are
18968 assumed to be ConTeXt, and output files with single-digit extensions
18969 are assumed to be man pages.
18971 * Enhanced ordered lists (documented in README, under Lists):
18972 + The OrderedList block element now stores information about
18973 list number style, list number delimiter, and starting number.
18974 + The readers parse this information when possible.
18975 + The writers use this information to style ordered lists.
18976 + The enhancement can be disabled using the --strict option.
18978 * Added support for tables (with a new Table block element). Two kinds
18979 of tables are supported: a simple table with one-line rows, and a
18980 more complex variety with multiline rows. All output formats are
18981 supported, but only markdown tables are parsed at the moment. The
18982 syntax is documented in README.
18984 * Added support for definition lists (with a new DefinitionList block
18985 element). All output and input formats are supported. The syntax is
18986 documented in README.
18988 * Added support for superscripts and subscripts (with new Superscript
18989 and Subscript inline elements). All input and output
18990 formats. The syntax is documented in README.
18992 * Added support for strikeout (with a new Strikeout inline element).
18993 All input and output formats are supported. Thanks to Bradley Kuhn,
18994 who contributed a patch. The syntax is documented in README. Resolves
18995 Issue #18.
18997 * Added a --toc|--table-of-contents option. This causes an automatically
18998 generated table of contents (or an instruction that creates one) to
18999 be inserted at the beginning of the document. Not supported in S5,
19000 DocBook, or man page writers.
19002 * Modified the -m|--asciimathml option:
19004 + If an optional URL argument is provided, a link is inserted
19005 instead of the contents of the ASCIIMathML.js script.
19006 + Nothing is inserted unless the document actually contains
19007 LaTeX math.
19009 * Removed Blank block element as unnecessary.
19011 * Removed Key and Note blocks from the Pandoc data structure. All
19012 links are now stored as explicit links, and note contents are
19013 stored with the (inline) notes.
19015 + All link Targets are now explicit (URL, title) pairs; there
19016 is no longer a 'Ref' target.
19017 + Markdown and RST parsers now need to extract data from key and
19018 note blocks and insert them into the relevant inline elements.
19019 Other parsers have been simplified, since there is no longer any need
19020 to construct separate key and note blocks.
19021 + Markdown, RST, and HTML writers need to construct lists of
19022 notes; Markdown and RST writers need to construct lists of link
19023 references (when the --reference-links option is specified); and
19024 the RST writer needs to construct a list of image substitution
19025 references. All writers have been rewritten to use the State monad
19026 when state is required.
19027 + Several functions (generateReference, keyTable,
19028 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
19029 used by them) have been removed from Text.Pandoc.Shared, since
19030 they are no longer needed. New functions and data structures
19031 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
19032 added. The functions inTags, selfClosingTag, inTagsSimple, and
19033 inTagsIndented have been moved to the DocBook writer, since that
19034 is now the only module that uses them. NoteTable is now exported
19035 in Text.Pandoc.Shared.
19036 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
19037 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
19038 + Added writerNotes and writerReferenceLinks to WriterOptions.
19040 * Added Text.Pandoc module that exports basic readers, writers,
19041 definitions, and utility functions. This should export everything
19042 needed for most uses of Pandoc libraries. The haddock documentation
19043 includes a short example program.
19045 * Text.Pandoc.ASCIIMathML is no longer an exported module.
19047 * Added Text.Pandoc.Blocks module to help in printing markdown
19048 and RST tables. This module provides functions for working with
19049 fixed-width blocks of text--e.g., placing them side by side, as
19050 in a table row.
19052 * Refactored to avoid reliance on Haskell's Text.Regex library, which
19053 (a) is slow, and (b) does not properly handle unicode. This fixed
19054 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
19056 + Replaced 'gsub' with a general list function 'substitute'
19057 that does not rely on Text.Regex.
19058 + Rewrote extractTagType in HTML reader so that it doesn't use
19059 regexs.
19060 + In Markdown reader, replaced email regex test with a custom email
19061 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
19062 with a custom function isSelfClosingTag.
19063 + Modified Docbook writer so that it doesn't rely on Text.Regex for
19064 detecting 'mailto' links.
19065 + Removed escapePreservingRegex and reamped entity-handling
19066 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
19067 avoid reliance on Text.Regex (see below on character reference
19068 handling changes).
19070 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
19072 * Changed handling of XML entities. Entities are now parsed (and unicode
19073 characters returned) in the Markdown and HTML readers, rather than being
19074 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
19075 instead of entities for characters above 128. This makes the HTML and
19076 DocBook output much more readable and more easily editable.
19078 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
19079 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
19080 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
19081 Moved both functions to Text.Pandoc.Writers.Docbook.
19082 + Added characterReference parser to Text.Pandoc.CharacterReferences.
19083 This parses a string and return a unicode character.
19084 + Rewrote decodeCharacterReferences to use the new parser instead of
19085 Text.Regex.
19086 + Added new charRef parser for Markdown and HTML, which replaces the
19087 old 'entity' parser. Added '&' as a special character in Markdown reader.
19088 + Modified HTML and Markdown readers to call decodeEntities on all raw
19089 strings (e.g. authors, dates, link titles), to ensure that no
19090 unprocessed entities are included in the native representation of
19091 the document. (In the HTML reader, most of this work is done by a
19092 change in extractAttributeName.)
19093 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
19094 since a unicode non-breaking space is impossible to distinguish visually
19095 from a regular space. (Resolves Issue #3.)
19096 + Removed encodeEntitiesNumerical.
19097 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
19098 slight performance boost over the old association list.
19099 + Removed unneeded decodeEntities from 'str' parser in HTML and
19100 Markdown readers.
19102 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
19103 fromUTF8, for clarity.
19105 * Replaced old haskell98 module names replaced by hierarchical module
19106 names, e.g. List by Data.List. Removed haskell98 from dependencies
19107 in pandoc.cabal, and added mtl (needed for state monad). Substituted
19108 xhtml for html.
19110 * Refactored and cleaned up character escaping in writers, using
19111 backslashEscapes and escapeStringUsing functions.
19113 * Instead of adding `\n\n` to the end of an input string in Main.hs,
19114 this is now done in the readers. This makes the libraries behave
19115 the way you'd expect from the pandoc program. Resolves Issue #10.
19117 * URLs and email addresses in autolinks are now typeset as Code.
19119 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
19120 doesn't display the whole output unless there's a line ending.
19122 * Major code cleanup in all modules, for greater consistency, concision,
19123 and readability.
19125 * HTML reader:
19127 + Fixed several bugs (extractTagType, attribute parsing).
19128 + Remove Null blocks in lists of blocks when possible.
19129 + Allow HTML comments as raw HTML inline.
19131 * Markdown reader:
19133 + Ordered list items may no longer begin with uppercase letters, or
19134 letters greater than 'n'. (This prevents first initials and page
19135 reference, e.g. 'p. 400', from being parsed as beginning lists.)
19136 Also, numbers beginning list items may no longer end with ')',
19137 which is now allowed only after letters. Note: These changes
19138 may cause documents to be parsed differently. Users should take
19139 care in upgrading.
19140 + Changed autoLink parsing to conform better to Markdown.pl's
19141 behavior. `<google.com>` is not treated as a link, but
19142 `<http://google.com>`, `<ftp://google.com>`, and
19143 `<mailto:google@google.com>` are.
19144 + Cleaned up handling of embedded quotes in link titles. Now these are
19145 stored as a '"' character, not as '&quot;'.
19146 + Use lookAhead parser for the 'first pass' (looking for reference keys),
19147 instead of parsing normally, then using setInput to reset input. This
19148 yields a slight performance boost.
19149 + Fixed several bugs in smart quote recognition.
19150 + Fixed bug in indentSpaces (which didn't properly handle
19151 cases with mixed spaces and tabs).
19152 + Consolidated 'text', 'special', and 'inline' into 'inline'.
19153 + Fixed bug which allowed URL and title to be separated by multiple blank
19154 lines in links and reference keys. They can be on separate lines but
19155 can't have blank lines between them.
19156 + Correctly handle bracketed text inside inline footnotes and links,using
19157 new function inlinesInBalanced. Resolves Issue #14.
19158 + Fixed bug in footnotes: links in footnotes were not being
19159 processed. Solution: three-stage parse. First, get all the
19160 reference keys and add information to state. Next, get all the
19161 notes and add information to state. (Reference keys may be needed
19162 at this stage.) Finally, parse everything else.
19163 + Replaced named constants like 'emphStart' with literals.
19164 + Removed an extra occurrence of escapedChar in definition of inline.
19166 * RST reader:
19168 + Allow the URI in a RST hyperlink target to start on the line
19169 after the reference key.
19170 + Added 'try' in front of 'string', where needed, or used a different
19171 parser. This fixes a bug where ````` would not be correctly parsed as
19172 a verbatim `.
19173 + Fixed slow performance in parsing inline literals in RST reader. The
19174 problem was that ``#`` was seen by 'inline' as a potential link or image.
19175 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
19176 Resolves Issue #8.
19177 + Use lookAhead instead of getInput/setInput in RST reader. Removed
19178 unneeded getState call, since lookAhead automatically saves and
19179 restores the parser state.
19180 + Allow hyperlink target URIs to be split over multiple lines, and
19181 to start on the line after the reference. Resolves Issue #7.
19182 + Fixed handling of autolinks.
19184 * LaTeX reader:
19186 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
19187 for clarity.
19188 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
19189 caret is `\^{}`, not `\^` as before.
19190 + Added parsing for `\url`.
19191 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
19193 * HTML writer:
19195 + Modified HTML writer to use the Text.XHtml library. This results
19196 in cleaner, faster code, and it makes it easier to use Pandoc in
19197 other projects, like wikis, which use Text.XHtml. Two functions are
19198 now provided, writeHtml and writeHtmlString: the former outputs an
19199 Html structure, the latter a rendered string. The S5 writer is also
19200 changed, in parallel ways (writeS5, writeS5String).
19201 + The Html header is now written programmatically, so it has been
19202 removed from the 'headers' directory. The S5 header is still
19203 needed, but the doctype and some of the meta declarations have
19204 been removed, since they are written programmatically. This change
19205 introduces a new dependency on the xhtml package.
19206 + Fixed two bugs in email obfuscation involving improper escaping
19207 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
19208 Issue #9.
19209 + Fixed another bug in email obfuscation: If the text to be obfuscated
19210 contains an entity, this needs to be decoded before obfuscation.
19211 Thanks to thsutton for the patch. Resolves Issue #15.
19212 + Changed the way the backlink is displayed in HTML footnotes.
19213 Instead of appearing on a line by itself, it now generally
19214 appears on the last line of the note. (Exception: when the
19215 note does not end with a Plain or Para block.) This saves space
19216 and looks better.
19217 + Added automatic unique identifiers to headers:
19218 - The identifier is derived from the header via a scheme
19219 documented in README.
19220 - WriterState now includes a list of header identifiers and a table
19221 of contents in addition to notes.
19222 - The function uniqueIdentifiers creates a list of unique identifiers
19223 from a list of inline lists (e.g. headers).
19224 - This list is part of WriterState and gets consumed by blockToHtml
19225 each time a header is encountered.
19226 + Include CSS for .strikethrough class in header only if strikethrough
19227 text appears in the document.
19228 + If the 'strict' option is specified, elements that do not appear in
19229 standard markdown (like definition lists) are passed through as
19230 raw HTML.
19231 + Simplified treatment of autolinks, using pattern matching instead of
19232 conditionals.
19234 * Markdown writer:
19236 + Links in markdown output are now printed as inline links by default,
19237 rather than reference links. A --reference-links option has been added
19238 that forces links to be printed as reference links. Resolves Issue #4.
19239 + Use autolinks when possible. Instead of `[site.com](site.com)`,
19240 use `<site.com>`.
19242 * LaTeX writer:
19244 + Rewrote to use the State monad. The preamble now includes only those
19245 packages that are actually required, given the document's content.
19246 Thus, for example, if strikeout is not used, ulem is not required.
19247 Modified LaTeXHeader accordingly.
19248 + Modified LaTeX writer to insert `\,` between consecutive quotes.
19249 + Removed unused function tableRowColumnWidths.
19250 + Simplified code for escaping special characters.
19251 + Leave extra blank line after `\maketitle`.
19252 + Include empty `\author{}` when no author specified to avoid LaTeX
19253 errors.
19254 + Include fancyvrb code in header only if needed -- that is, only
19255 if there is actually code in a footnote.
19256 + Use `\url{}` for autolinks.
19257 + Include [mathletters] option in ucs package, so that basic unicode
19258 Greek letters will work correctly.
19260 * RST writer: Force blank line before lists, so that sublists will
19261 be handled correctly.
19263 * Docbook writer: Fixed a bug: email links with text, like
19264 [foo](me@bar.baz), were being incorrectly treated as autolinks.
19266 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
19267 Text.Pandoc.Shared.
19269 * Text.Pandoc.Shared:
19271 + Added defaultWriterOptions.
19272 + Added writerTableOfContents to WriterOptions.
19273 + Added writerIgnoreNotes option to WriterOptions. This is needed
19274 for processing header blocks for a table of contents, since notes on
19275 headers should not appear in the TOC.
19276 + Added prettyprinting for native Table format.
19277 + Removed some unneeded imports.
19278 + Moved escape and nullBlock parsers from
19279 Text.ParserCombinators.Pandoc, since the latter is for
19280 general-purpose parsers that don't depend on Text.Pandoc.Definition.
19281 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
19282 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
19283 writer, because HTML writer now uses these in constructing a table
19284 of contents.
19285 + Added clauses for new inline elements (Strikeout, Superscript,
19286 Subscript) to refsMatch.
19287 + Removed backslashEscape; added new functions escapeStringUsing and
19288 backslashEscapes.
19289 + Moved failIfStrict from markdown reader, since it is now used also
19290 by the HTML reader.
19291 + Added a 'try' to the definition of indentSpaces.
19292 + In definition of 'reference', added check to make sure it's not a note
19293 reference.
19294 + Added functions: camelCaseToHyphenated, toRomanNumeral,
19295 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
19296 charsInBalanced', withHorizDisplacement, romanNumeral
19297 + Fixed a bug in the anyLine parser. Previously it would parse an empty
19298 string "", but it should fail on an empty string, or we get an error
19299 when it is used inside "many" combinators.
19300 + Removed followedBy' parser, replacing it with the lookAhead parser from
19301 Parsec.
19302 + Added some needed 'try's before multicharacter parsers, especially in
19303 'option' contexts.
19304 + Removed the 'try' from the 'end' parser in 'enclosed', so that
19305 'enclosed' behaves like 'option', 'manyTill', etc.
19306 + Added lineClump parser, which parses a raw line block up to and
19307 including any following blank lines.
19308 + Renamed parseFromStr to parseFromString.
19309 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
19310 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
19311 in calling code.
19312 + Removed unneeded 'try' in blanklines.
19313 + Removed endsWith function and rewrote calling functions to use
19314 isSuffixOf instead.
19315 + Added >>~ combinator.
19316 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
19317 Space.
19319 * Refactored runtests.pl; added separate tests for tables.
19321 * Shell scripts:
19323 + Added -asxhtml flag to tidy in html2markdown. This will
19324 perhaps help the parser, which expects closing tags.
19325 + Modified markdown2pdf to run pdflatex a second time if --toc or
19326 --table-of-contents was specified; otherwise the table of
19327 contents won't appear.
19328 + Modified markdown2pdf to print a helpful message if the 'ulem'
19329 LaTeX package is required and not found.
19331 * Changes to build process:
19333 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
19334 is now required.
19335 + Removed cabalize and Pandoc.cabal.in. The repository now contains
19336 pandoc.cabal itself.
19337 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
19338 likes the cabal file to have the same name as the tarball.
19339 + Expanded and revised the package description in pandoc.cabal.
19340 Revised the package synopsis.
19341 + The tarball built by 'make tarball' now contains files built from
19342 templates (including man pages and shell scripts), so pandoc can
19343 be built directly using Cabal tools, without preprocessing.
19344 + Executable binaries are now stripped before installing.
19345 + Man pages are now generated from markdown sources, using pandoc's
19346 man page writer.
19347 + Use HTML version of README (instead of RTF) in Mac OS X installer.
19348 + Instead of testing for the existence of a pandoc symlink in build-exec,
19349 use ln -f.
19351 * Documentation:
19353 + Updated README and man pages with information on new features.
19354 + Updated INSTALL instructions with some useful clarifications and
19355 links.
19356 + Updated web content.
19358 * Added FreeBSD port.
19360 [ Recai Oktaş ]
19362 * debian/control:
19364 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
19365 libghc6-xhtml-dev. Removed libghc6-html-dev.
19366 + Suggest texlive-latex-recommended | tetex-extra instead of
19367 tetex-bin. This brings in fancyvrb and unicode support.
19370## pandoc 0.3 (2007-01-05)
19372 [ John MacFarlane ]
19374 * Changes in pandoc options:
19376 + Allow options to follow or precede arguments.
19377 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
19378 + Added '--strict' option.
19379 + Added '-o/--output' option.
19380 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
19381 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
19382 error conditions. This is helpful for writing wrappers.
19383 + Added copyright message to '-v' output, modeled after FSF messages.
19384 + Reformatted usage message so that it doesn't wrap illegibly.
19385 + Removed extra blanks after '-h' and '-D' output.
19387 * Added docbook writer.
19389 * Added implicit setting of default input and output format based
19390 on input and output filename extensions. These defaults are
19391 overridden if explicit input and output formats are specified using
19392 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
19393 and README.
19395 * Allow ordered list items to begin with (single) letters, as well
19396 as numbers. The list item marker may now be terminated either by
19397 '.' or by ')'. This extension to standard markdown is documented
19398 in README.
19400 * Revised footnote syntax. (See README for full details.) The
19401 '[^1]' format now standard in markdown extensions is supported,
19402 as are inline footnotes with this syntax: `^[My note.]`.
19403 The earlier footnote syntax `^(1)` is no longer supported.
19405 * Improved HTML representation of footnotes. All footnotes
19406 are now auto-numbered and appear in an ordered list at the
19407 end of the HTML document. Since the default appearance is now
19408 acceptable, the old footnote styles have been removed from the
19409 HTML header.
19411 * Bug fixes:
19413 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
19414 These readers ran 'runParser' on processed chunks of text to handle
19415 embedded block lists in lists and quotation blocks. But then
19416 any changes made to the parser state in these chunks was lost,
19417 as the state is local to the parser. So, for example, footnotes
19418 didn't work in quotes or list items. The fix: instead of calling
19419 runParser on some raw text, use setInput to make it the input, then
19420 parse it, then use setInput to restore the input to what it was
19421 before. This is shorter and more elegant, and it fixes the problem.
19422 + Fixed bug in notFollowedBy' combinator (adding 'try' before
19423 'parser'). Adjusted code that uses this combinator accordingly.
19424 + Fixed bug in RTF writer that caused improper indentation on
19425 footnotes occurring in indented blocks like lists.
19426 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
19427 and date are parsed correctly. Everything else in the preamble
19428 is skipped.
19429 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
19430 line to count as escaped whitespace.
19431 + Modified LaTeX reader to produce inline links rather than reference
19432 links. Otherwise, links in footnotes aren't handled properly.
19433 + Fixed handling of titles in links in Markdown reader, so that
19434 embedded quotation marks are now handled properly.
19435 + Fixed Markdown reader's handling of embedded brackets in links.
19436 + Fixed Markdown reader so that it only parses bracketed material
19437 as a reference link if there is actually a corresponding key.
19438 + Revised inline code parsing in Markdown reader to conform to
19439 markdown standard. Now any number of `s can begin inline code,
19440 which will end with the same number of `s. For example, to
19441 have two backticks as code, write ``` `` ```. Modified Markdown
19442 writer accordingly.
19443 + Fixed bug in text-wrapping routine in Markdown and RST writers.
19444 Now LineBreaks no longer cause wrapping problems.
19445 + Supported hexadecimal numerical entity references as well as
19446 decimal ones.
19447 + Fixed bug in Markdown reader's handling of underscores and other
19448 inline formatting markers inside reference labels: for example,
19449 in '[A_B]: /url/a_b', the material between underscores was being
19450 parsed as emphasized inlines.
19451 + Changed Markdown reader's handling of backslash escapes so that
19452 only non-alphanumeric characters can be escaped. Strict mode
19453 follows Markdown.pl in only allowing a select group of punctuation
19454 characters to be escaped.
19455 + Modified HTML reader to skip a newline following a `<br>` tag.
19456 Otherwise the newline will be treated as a space at the beginning
19457 of the next line.
19459 * Made handling of code blocks more consistent. Previously, some
19460 readers allowed trailing newlines, while others stripped them.
19461 Now, all readers strip trailing newlines in code blocks. Writers
19462 insert a newline at the end of code blocks as needed.
19464 * Modified readers to make spacing at the end of output more consistent.
19466 * Minor improvements to LaTeX reader:
19468 + `\thanks` now treated like a footnote.
19469 + Simplified parsing of LaTeX command arguments and options.
19470 commandArgs now returns a list of arguments OR options (in
19471 whatever order they appear). The brackets are included, and
19472 a new stripFirstAndLast function is provided to strip them off
19473 when needed. This fixes a problem in dealing with \newcommand
19474 and \newenvironment.
19476 * Revised RTF writer:
19478 + Default font is now Helvetica.
19479 + An `\f0` is added to each `\pard`, so that font resizing works
19480 correctly.
19482 * Moved handling of "smart typography" from the writers to the Markdown
19483 and LaTeX readers. This allows great simplification of the writers
19484 and more accurate smart quotes, dashes, and ellipses. DocBook can
19485 now use `<quote>`. The '--smart' option now toggles an option in
19486 the parser state rather than a writer option. Several new kinds
19487 of inline elements have been added: Quoted, Ellipses, Apostrophe,
19488 EmDash, EnDash.
19490 * Changes in HTML writer:
19492 + Include title block in header even when title is null.
19493 + Made javascript obfuscation of emails even more obfuscatory,
19494 by combining it with entity obfuscation.
19496 * Changed default ASCIIMathML text color to black.
19498 * Test suite:
19500 + Added --strip-trailing-cr option to diff in runtests.pl, for
19501 compatibility with Windows.
19502 + Added regression tests with footnotes in quote blocks and lists.
19504 * Makefile changes:
19506 + osx-pkg target creates a Mac OS X package (directory). New osx
19507 directory contains files needed for construction of the package.
19508 + osx-dmg target creates a compressed disk image containing the package.
19509 + win-pkg target creates Windows binary package.
19510 + tarball target creates distribution source tarball.
19511 + website target generates pandoc's website automatically, including
19512 demos. New 'web' directory contains files needed for construction
19513 of the website (which will be created as the 'pandoc' subdirectory
19514 of 'web').
19515 + Makefile checks to see if we're running Windows/Cygwin; if so,
19516 a '.exe' extension is added to each executable in EXECS.
19518 * Removed all wrappers except markdown2pdf and html2markdown.
19520 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
19521 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
19522 option and disables other options.
19524 * Added code to html2markdown that tries to determine the character
19525 encoding of an HTML file, by parsing the "Content-type" meta tag.
19527 + If the encoding can't be determined, then if the content is local,
19528 the local encoding is used; if it comes from a URL, UTF-8 is used
19529 by default.
19530 + If input is from STDIN, don't try to determine character encoding.
19531 + Encoding can be specified explicitly using '-e' option.
19533 * Improved warning messages in wrappers:
19535 + Print warning if iconv not available
19536 + More user-friendly error messages in markdown2pdf, when
19537 pdflatex fails.
19539 * Code cleanup:
19541 + Renamed 'Text/Pandoc/HtmlEntities' module to
19542 'Text/Pandoc/Entities'. Also changed function names so as
19543 not to be HTML-specific.
19544 + Refactored SGML string escaping functions from HTML and Docbook
19545 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
19546 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
19547 used anywhere.
19548 + Removed splitBySpace and replaced it with a general, polymorphic
19549 splitBy function.
19550 + Refactored LaTeX reader for clarity (added isArg function).
19551 + Converted some CR's to LF's in src/ui/default/print.css.
19552 + Added license text to top of source files.
19553 + Added module data for haddock to source files.
19554 + Reformatted code for consistency.
19556 * Rewrote documentation and man pages. Split README into INSTALL
19557 and README.
19559 * Split LICENSE into COPYING and COPYRIGHT.
19561 * Removed TODO, since we now maintain ToDo on the wiki.
19563 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
19564 duplication.
19566 [ Recai Oktaş ]
19568 * Revamped build process to conform to debian standards and created
19569 a proper debian package. Closes: #391666.
19571 * Modified build process to support GHC 6.6.
19573 + The package can still be compiled using GHC 6.4.2, though because
19574 of dependencies the "make deb" target works only with GHC 6.6+.
19575 + The script 'cabalize' is used to create an appropriate
19576 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
19577 Cabal versions.
19579 * Refactored template processing (fillTemplates.pl).
19581 * Modified wrapper scripts to make them more robust and portable.
19582 To avoid code duplication and ensure consistency, wrappers are
19583 generated via a templating system from templates in src/wrappers.
19585 + Wrappers now accept multiple filenames, when appropriate.
19586 + Spaces and tabs allowed in filenames.
19587 + getopts shell builtin is used for portable option parsing.
19588 + Improved html2markdown's web grabber code, making it more robust,
19589 configurable and verbose. Added '-e', '-g' options.
19592## pandoc 0.2 (2006-08-14)
19594 * Fixed unicode/utf-8 translation
19596## pandoc 0.1 (2006-08-14)
19598 * Initial creation of debian package