git.iko.soy/typeable/pandoc
on 2.13 help sign in
typeable/pandoc/changelog.md
19749 lines 848 kB history raw
1# Revision history for pandoc
3## pandoc 2.13 (2021-03-21)
5 * Support `yaml_metadata_block` extension for `commonmark`, `gfm` (#6537).
6 This supported is a bit more limited than with pandoc's
7 `markdown`. The YAML block must be the first thing in the input,
8 and the leaf notes are parsed in isolation from the rest of
9 the document. So, for example, you can't use reference
10 links if the references are defined later in the document.
12 * Fix fallback to default partials when custom templates are used.
13 If the directory containing a template does not contain the partial,
14 it should be sought in the default templates, but this was not
15 working properly (#7164).
17 * Handle `nocite` better with `--biblatex` and `--natbib` (#4585).
18 Previously the nocite metadata field was ignored with these formats.
19 Now it populates a `nocite-ids` template variable and causes a
20 `\nocite` command to be issued.
22 * Text.Pandoc.Citeproc: apply `fixLinks` correctly (#7130). This is code
23 that incorporates a prefix like `https://doi.org/` into a following link
24 when appropriate.
26 * Text.Pandoc.Shared:
28 + Remove `backslashEscapes`, `escapeStringUsing` [API change]. Replace
29 these inefficient association list lookups with more efficient escaping
30 functions in the writers that used them (for a 10-25% performance boost
31 in org, haddock, rtf, texinfo writers).
32 + Remove `ToString`, `ToText` typeclasses [API change]. These were needed
33 for the transition from String to Text, but they are no longer used and
34 may clash with other things.
35 + Simplify `compactDL`.
37 * Text.Pandoc.Parsing:
39 + Change type of `readWithM` so that it is no longer polymorphic
40 [API change]. The `ToText` class has been removed, and now that we've
41 completed the transition to Text we no longer need this to operate
42 on Strings.
43 + Remove `F` type synonym [API change]. Muse and Org were defining their
44 own `F` anyway.
46 * Text.Pandoc.Readers.Metadata:
48 + Export `yamlMetaBlock` [API change].
49 + Make `yamlBsToMeta`, `yamlBsToRefs` polymorphic on the parser state
50 [API change].
52 * Markdown reader: Fix regression with `tex_math_backslash` (#7155).
54 * MediaWiki reader: Allow block-level content in notes (ref) (#7145).
56 * Jira reader (Albert Krewinkel):
58 + Fixed parsing of autolinks (i.e., of bare URLs in the text).
59 Previously an autolink would take up the rest of a line, as spaces
60 were allowed characters in these items.
61 + Emoji character sequences no longer cause parsing failures. This was
62 due to missing backtracking when emoji parsing fails.
63 + Mark divs created from panels with class "panel".
65 * RST reader: fix logic for ending comments (#7134). Previously comments
66 sometimes got extended too far.
68 * DocBook writer: include Header attributes as XML attributes on
69 section (Erik Rask). Attributes with key names that are not allowed
70 as XML attributes are dropped, as are attributes with invalid values
71 and `xml:id` (DocBook 5) and `id` (DocBook 4).
73 * Docx writer:
75 + Make `nsid` in `abstractNum` deterministic. Previously we assigned
76 a random number, but we don't need random values, so now we just
77 assign a value based on the list marker.
78 + Use integral values for `w:tblW` (#7141).
80 * Jira writer (Albert Krewinkel):
82 + Block quotes are only rendered as `bq.` if they do not contain a
83 linebreak.
84 + Jira writer: improve div/panel handling. Include div attributes in
85 panels, always render divs with class `panel` as panels, and
86 avoid nesting of panels.
88 * HTML writer: Add warnings on duplicate attribute values.
89 This prevents emitting invalid HTML. Ultimately it would be good to
90 prevent this in the types themselves, but this is better for now.
92 * Org writer: Prevent unintended creation of ordered list items (#7132,
93 Albert Krewinkel). Adjust line wrapping if default wrapping would cause
94 a line to be read as an ordered list item.
96 * JATS templates: support 'equal-contrib' attrib for authors (Albert
97 Krewinkel). Authors who contributed equally to a paper may be marked
98 with `equal-contrib`.
100 * reveal.js template: replace JS comment with HTML (#7154, Florian Kohrt).
102 * Text.Pandoc.Logging: Add `DuplicateAttribute` constructor to `LogMessage`.
103 [API change]
105 * Use `-j4` for linux release build. This speeds up the build dramatically
106 on arm.
108 * cabal.project: remove ghcoptions. Move flags to top level, so they can
109 be set differently on the command line.
111 * Require latest texmath, skylighting, citeproc, jira-wiki-markup.
112 (The latest skylighting fixes a bad bug with Haskell syntax highlighting.)
113 Narrow version bounds for texmath, skylighting, and citeproc, since
114 the test output depend on them.
116 * Use doclayout 0.3.0.2. This significantly reduces the time and memory
117 needed to compile pandoc.
119 * Use `foldl'` instead of `foldl` everywhere.
121 * Update bounds for random (#7156, Alexey Kuleshevich).
123 * Remove uses of some partial functions.
125 * Don't bake in a larger stack size for the executable.
127 * Test improvements:
129 + Use `getExecutablePath` from base, avoiding the dependency on
130 `executable-path`.
131 + Factor out `setupEnvironment` in Helpers, to avoid code duplication.
132 + Fix finding of data files by setting teh `pandoc_datadir` environment
133 variable when we shell out to pandoc. This avoids the need to use
134 `--data-dir` for the tests, which caused problems finding `pandoc.lua`
135 when compiling without the `embed_data_files` flag (#7163).
137 * Benchmark improvements:
139 + Build `+RTS -A8m -RTS` into default ghc-options for benchmark.
140 This is necessary to get accurate benchmark results; otherwise we
141 are largely measuring garbage collecting, some not related to the
142 current benchmark.
143 + Allow specifying BASELINE file in 'make bench' for comparison
144 (otherwise the latest benchmark is chosen by default).
145 + Force `readFile` in benchmarks early (Bodigrim).
147 * CONTRIBUTING: suggest using a `cabal.project.local` file (#7153,
148 Albert Krewinkel).
150 * Add ghcid-test to Makefile. This loads the test suite in ghcid.
153## pandoc 2.12 (2021-03-08)
155 * `--resource-path` now accumulates if specified multiple
156 times (#6152). Resource paths specified later on the command line are
157 prepended to those specified earlier. Thus,
158 `--resource-path foo --resource-path bar:baz` is equivalent to
159 `--resource-path bar:bas:foo`. (The previous behavior was
160 for the last `--resource-path` to replace all the rest.)
161 `resource-path` in defaults files behaves the same way: it
162 will be prepended to the resource path set by earlier
163 command line options or defaults files. This change
164 facilitates the use of multiple defaults files: each can
165 specify a directory containing resources it refers to
166 without clobbering the resource paths set by the others.
168 * Allow defaults files to refer to the home directory, the
169 user data directory, and the directory containing the defaults file
170 itself (#5871, #5982, #5977). In fields that expect file paths
171 (and only in these fields),
173 + `${VARIABLE}` will expand to the value of the environment variable
174 `VARIABLE` (and in particular `${HOME}` will expand to the path
175 of the home directory). A warning will be raised for undefined
176 variables.
177 + `${USERDATA}` will expand to the path of the user data
178 directory in force when the defaults file is being processed.
179 + `${.}` will expand to the directory containing the defaults file.
180 (This allows default files to be placed in a directory containing
181 resources they make use of.)
183 * When downloading content from URL arguments, be sensitive to
184 the character encoding (#5600). We can properly handle UTF-8 and latin1
185 (ISO-8859-1); for others we raise an error. Fall back to latin1 if
186 no charset is given in the mime type and UTF-8 decoding fails.
188 * Allow abbreviations that don't end in a period to be
189 specified using `--abbreviations` (#7124).
191 * Add new unexported module Text.Pandoc.XML.Light, as well
192 as Text.Pandoc.XML.Light.Types, Text.Pantoc.XML.Light.Proc,
193 Text.Pandoc.XML.Light.Output. (Closes #6001, #6565, #7091).
195 This module exports definitions of `Element` and `Content`
196 that are isomorphic to xml-light's, but with Text
197 instead of String. This allows us to keep most of the code in existing
198 readers that use xml-light, but avoid lots of unnecessary allocation.
200 We also add versions of the functions from xml-light's
201 Text.XML.Light.Output and Text.XML.Light.Proc that operate on our
202 modified XML types, and functions that convert xml-light types to our
203 types (since some of our dependencies, like texmath, use xml-light).
205 We export functions that use xml-conduit's parser to produce an
206 `Element` or `[Content]`. This allows existing pandoc code to use
207 a better parser without much modification.
209 The new parser is used in all places where xml-light's parser was
210 previously used. Benchmarks show a significant performance improvement
211 in parsing XML-based formats (with docbook, opml, jats, and docx
212 almost twice as fast, odt and fb2 more than twice as fast).
214 In addition, the new parser gives us better error reporting than
215 xml-light. We report XML errors, when possible, using the new
216 `PandocXMLError` constructor in `PandocError`.
218 These changes revealed the need for some changes in the tests. The
219 docbook-reader.docbook test lacked definitions for the entities it used;
220 these have been added. And the docx golden tests have been updated,
221 because the new parser does not preserve the order of attributes.
223 * DocBook reader:
225 + Avoid expensive tree normalization step, as it is not necessary
226 with the new XML parser.
227 + Support `informalfigure` (#7079) (Nils Carlson).
229 * Docx reader:
231 + Use Map instead of list for Namespaces. This gives a speedup of
232 about 5-10%. With this and the XML parsing changes, the docx reader
233 is now about twice as fast as in the previous release.
235 * HTML reader:
237 + Small performance tweaks.
238 + Also, remove exported class `NamedTag(..)` [API change]. This was just
239 intended to smooth over the transition from String to Text and is no
240 longer needed.
241 + As a result, the functions `isInlineTag` and `isBlockTag`
242 are no longer polymorphic; they apply to a `Tag Text` [API change].
243 + Do a lookahead to find the right parser to use. This takes
244 benchmarks from 34ms to 23ms, with less allocation.
245 + Fix bad handling of empty `src` attribute in `iframe` (#7099).
246 If `src` is empty, we simply skip the `iframe`.
247 If `src` is invalid or cannot be fetched, we issue a warning
248 nd skip instead of failing with an error.
250 * JATS reader:
252 + Avoid tree normalization, which is no longer necessary given the
253 new XML parser.
255 * LaTeX reader:
257 + Don't export `tokenize`, `untokenize` [API change]. These are internal
258 implementation details, which were only exported for testing.
259 They don't belong in the public API.
260 + Improved efficiency of the parser. With these changes the reader
261 is almost twice as fast as in the last release in our benchmarks.
262 + Code cleanup, removing some unnecessary things.
263 + Rewrite `withRaw` so it doesn't rely on fragile assumptions
264 about token positions (which break when macros are expanded)
265 (#7092). This requires the addition of `sEnableWithRaw` and
266 `sRawTokens` in `LaTeXState`, and a new combinator `disablingWithRaw`
267 to disable collecting of raw tokens in certain contexts.
268 Add `parseFromToks` to Text.Pandoc.Readers.LaTeX.Parsing.
269 Fix parsing of single character tokens so it doesn't mess
270 up the new raw token collecting. These changes slightly increase
271 allocations and have a small performance impact.
272 + Handle some bibtex/biblatex-specific commands that used to be
273 dealt with in pandoc-citeproc (#7049).
274 + Optimize `satisfyTok`, avoiding unnecessary macro expansion steps.
275 Benchmarks after this change show 2/3 of the run time and 2/3 of the
276 allocation of the Feb. 10 benchmarks.
277 + Removed `sExpanded` in state. This isn't actually needed and checking
278 it doesn't change anything.
279 + Improve `braced'`. Remove the parameter, have it parse the
280 opening brace, and make it more efficient.
281 + Factor out pieces of the LaTeX reader to make the module smaller.
282 This reduces memory demands when compiling. Created
283 Text.Pandoc.Readers.{LaTeX,Math,Citation,Table,Macro,Inline}.
284 Changed Text.Pandoc.Readers.LaTeX.SIunitx to export a command map
285 instead of individual commands.
286 + Handle table cells containing `&` in `\verb` (#7129).
288 * Make Text.Pandoc.Readers.LaTeX.Types an unexported module [API change].
290 * Markdown reader:
292 + Improved handling of mmd link attributes in references (#7080).
293 Previously they only worked for links that had titles.
294 + Improved efficiency of the parser (benchmarks show a 15% speedup).
296 * OPML reader:
298 + Avoid tree normalization, which is no longer necessary with the
299 new XML parser.
301 * ODT reader:
303 + Finer-grained errors on parse failure (#7091).
304 + Give more information if the zip container can't be unpacked.
306 * Org reader:
308 + Support `task_lists` extension (Albert Krewinkel, #6336).
309 + Fix bug in org-ref citation parsing (Albert Krewinkel, #7101).
310 The org-ref syntax allows to list multiple citations separated by
311 comma. Previously commas were accepted as part of the citation id,
312 so all citation lists were parsed as one single citation.
314 * RST reader:
316 + Use `getTimestamp` instead of `getCurrentTime` to fetch timestamp.
317 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
318 + RST reader: fix handling of header in CSV tables (#7064).
319 The interpretation of this line is not affected by the delim option.
321 * Jira reader:
323 + Modified the Doc parser to skip leading blank lines. This fixes
324 parsing of documents which start with multiple blank lines (Albert
325 Krewinkel, #7095).
326 + Prevent URLs within link aliases to be treated as autolinks (Albert
327 Krewinkel, #6944).
329 * Text.Pandoc.Shared
331 + Remove formerly exported functions that are no longer used in the
332 code base: `splitByIndices`, `splitStringByIndicies`, `substitute`,
333 and `underlineSpan` (which had been deprecated in April 2020)
334 [API change].
335 + Export `handleTaskListItem` (Albert Krewinkel) [API change].
336 + Change `defaultUserDataDirs` to `defaultUserDataDir` [API
337 change]. We determine what is the default user data directory
338 by seeing whether the XDG directory and/or legacy
339 directory exist.
341 * BibTeX writer:
343 + BibTeX writer: use doclayout and doctemplate. This change allows
344 bibtex/biblatex output to wrap as other formats do,
345 depending on the settings of `--wrap` and `--columns` (#7068).
347 * CSL JSON writer:
349 + Output `[]` if no references in input, instead of raising a
350 PandocAppError as before.
352 * Docx writer:
354 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
355 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
357 * EPUB writer:
359 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
360 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds (#7093).
361 This does not suffice to fully enable reproducible in EPUB, since
362 a unique id is still being generated for each build.
363 + Support `belongs-to-collection` metadata (#7063) (Nick Berendsen).
365 * JATS writer:
367 + Escape special chars in reference elements (Albert Krewinkel).
368 Prevents the generation of invalid markup if a citation element
369 contains an ampersand or another character with a special meaning
370 in XML.
372 * Jira writer:
374 + Use Span identifiers as anchors (Albert Krewinkel).
375 + Use `{noformat}` instead of `{code}` for unknown languages (Albert
376 Krewinkel). Code blocks which are not marked as a language supported
377 by Jira are rendered as preformatted text via `{noformat}` blocks.
379 * LaTeX writer:
381 + Adjust hypertargets to beginnings of paragraphs (#7078).
382 Use `\vadjust pre` so that the hypertarget takes you to the beginning
383 of the paragraph rather than one line down.
384 This makes a particular difference for links to citations using
385 `--citeproc` and `link-citations: true`.
386 + Change BCP47 lang tag from `jp` to `ja` (Mauro Bieg, #7047).
387 + Use function instead of map for accent lookup (should be
388 more efficient).
389 + Split the module to make it easier to compile on low-memory
390 systems: added Text.Pandoc.Writers.LaTeX.{Util,Citation,Lang}.
392 * Markdown writer:
394 + Handle math right before digit. We insert an HTML comment to
395 avoid a `$` right before a digit, which pandoc will not recognize
396 as a math delimiter.
397 + Split the module to make it easier to compile on low-memory
398 systems: added Text.Pandoc.Writers.Markdown.{Types,Inline}.
400 * ODT writer:
402 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
403 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
404 + Update default ODT style (Lorenzo). Previously, the "First paragraph"
405 style inherited from "Standard" but not from "Text body." Now
406 it is adjusted to inherit from "Text body", to avoid some ugly
407 spacing issues. It may be necessary to update a custom `reference.odt`
408 in light of this change.
410 * Org writer:
412 + Support `task_lists` extension (Albert Krewinkel, #6336).
414 * Pptx writer:
416 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
417 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
419 * JATS templates: tag `author.name` as `string-name` (Albert Krewinkel).
420 The partitioning the components of a name into surname, given names,
421 etc. is not always possible or not available. Using `author.name`
422 allows to give the full name as a fallback to be used when
423 `author.surname` is not available.
425 * Add default templates for bibtex and biblatex, so that
426 the variables `header-include`, `include-before`, `include-after`
427 (or alternatively the command line options
428 `--include-in-header`, `--include-before-body`, `--include-after-body`)
429 may be used.
431 * LaTeX template:
433 + Update to iftex package (#7073) (Andrew Dunning)
434 + Wrap url colours in braces (#7121) (Loïc Grobol).
436 * revealjs template: Add 'center' option for vertical slide centering.
437 (maurerle, #7104).
439 * Text.Pandoc.XML: Improve efficiency of `fromEntities`.
441 * Text.Pandoc.MIME
443 + Add exported function `getCharset` [API change].
445 * Text.Pandoc.UTF8: change IO functions to return Text, not String
446 [API change]. This affects `readFile`, `getContents`, `writeFileWith`,
447 `writeFile`, `putStrWith`, `putStr`, `putStrLnWith`, `putStrLn`.
448 `hPutStrWith`, `hPutStr`, `hPutStrLnWith`, `hPutStrLn`, `hGetContents`.
449 This avoids the need to uselessly create a linked list of characters
450 when emiting output.
452 * Text.Pandoc.App
454 + Add `parseOptionsFromArgs` [API change, new exported function].
455 + Add fields for CSL options to `Opt` [API change]:
456 `optCSL`, `optbibliography`, `optCitationAbbreviations`.
458 * Text.Pandoc.Citeproc.BibTeX
460 + `Text.Pandoc.Citeproc.writeBibTeXString` now returns
461 `Doc Text` instead of `Text` (#7068).
462 + Correctly handle `pages` (= `page` in CSL) (#7067).
463 + Correctly handle BibLaTeX `langid` (= `language` in CSL, #7067).
464 + In BibTeX output, protect foreign titles since there's no language
465 field (#7067).
466 + Clean up BibTeX parsing (#7049). Previously there was a messy code
467 path that gave strange results in some cases, not passing through raw
468 tex but trying to extract a string content. This was an artefact of
469 trying to handle some special bibtex-specific commands in the BibTeX
470 reader. Now we just handle these in the LaTeX reader and simplify
471 parsing in the BibTeX reader. This does mean that more raw tex will
472 be passed through (and currently this is not sensitive to the
473 `raw_tex` extension; this should be fixed).
475 * Text.Pandoc.Citeproc.MetaValue
477 + Correctly parse "raw" date value in markdown references metadata.
478 (See jgm/citeproc#53.)
480 * Text.Pandoc.Citeproc
482 + Use https URLs for links (Salim B, #7122).
484 * Text.Pandoc.Class
486 + Add `getTimestamp` [API change]. This attempts to read the
487 `SOURCE_DATE_EPOCH` environment variable and parse a UTC time
488 from it (treating it as a unix date stamp, see
489 https://reproducible-builds.org/specs/source-date-epoch/). If the
490 variable is not set or can't be parsed as a unix date stamp, then the
491 function returns the current date.
493 * Text.Pandoc.Error
495 + Add `PandocUnsupportedCharsetError` constructor for
496 `PandocError` [API change].
497 + Export `renderError` [API change].
498 + Refactor `handleError` to use `renderError`. This allows us render
499 error messages without exiting.
501 * Text.Pandoc.Extensions
503 + `Ext_task_lists` is now supported by org (and turned
504 on by default) (Albert Krewinkel, #6336).
505 + Remove `Ext_fenced_code_attributes` from allowed commonmark attributes
506 (#7097). This attribute was listed as allowed, but it didn't actually
507 do anything. Use `attributes` for code attributes and more.
509 * Lua subsystem:
511 + Always load built-in Lua scripts from default data-dir (Albert
512 Krewinkel). The Lua modules `pandoc` and `pandoc.List` are now always
513 loaded from the system's default data directory. Loading from a
514 different directory by overriding the default path, e.g. via
515 `--data-dir`, is no longer supported to avoid unexpected behavior
516 and to address security concerns.
517 + Add module "pandoc.path" (Albert Krewinkel, #6001, #6565).
518 The module allows to work with file paths in a convenient and
519 platform-independent manner.
520 + Use strict evaluation when retrieving AST value from the stack
521 (Albert Krewinkel, #6674).
523 * Text.Pandoc.PDF
525 + Disable `smart` extension when building PDF via LaTeX.
526 This is to prevent accidental creation of ligatures like
527 `` ?` `` and `` !` `` (especially in languages with quotations like
528 German), and similar ligature issues. (See jgm/citeproc#54.)
530 * Text.Pandoc.CSV:
532 + Fix parsing of unquoted values (#7112). Previously we didn't allow
533 unescaped quotes in unquoted values, but they are allowed
534 in CSV.
536 * Test suite:
538 + Use a more robust method for testing the executable. Many
539 of our tests require running the pandoc executable. This
540 is problematic for a few different reasons. First,
541 cabal-install will sometimes run the test suite after
542 building the library but before building the executable,
543 which means the executable isn't in place for the tests.
544 One can work around that by first building, then building
545 and running the tests, but that's fragile. Second, we
546 have to find the executable. So far, we've done that using
547 a function `findPandoc` that attempts to locate it
548 relative to the test executable (which can be located
549 using findExecutablePath). But the logic here is delicate
550 and work with every combination of options. To solve both
551 problems, we add an `--emulate` option to the
552 `test-pandoc` executable. When `--emulate` occurs as the
553 first argument passed to `test-pandoc`, the program simply
554 emulates the regular pandoc executable, using the rest of
555 the arguments (after `--emulate`). Thus, `test-pandoc
556 --emulate -f markdown -t latex` is just like `pandoc -f
557 markdown -t latex`. Since all the work is done by library
558 functions, implementing this emulation just takes a couple
559 lines of code and should be entirely reliable. With this
560 change, we can test the pandoc executable by running the
561 test program itself (locatable using `findExecutablePath`)
562 with the `--emulate` option. This removes the need for the
563 fragile `findPandoc` step, and it means we can run our
564 integration tests even when we're just building the
565 library, not the executable. [Note: part of this change
566 involved simplifying some complex handling to set
567 environment variables for dynamic library paths. I have
568 tested a build with `--enable-dynamic-executable`, and it
569 works, but further testing may be needed.]
570 + Print accurate location if a test fails (Albert
571 Krewinkel). Ensures that tasty-hunit reports the location
572 of the failing test instead of the location of the helper
573 `test` function.
575 * Documentation: Update URLs and use `https` where possible (#7122,
576 Salim B).
578 * Add `doc/libraries.md`, a description of libraries that support pandoc.
580 * MANUAL.txt
582 + MANUAL: block-level formatting is not allowed in line blocks (#7107).
583 + Clarify `tex_math_dollars` extension. Note that no blank lines
584 are allowed between the delimiters in display math.
585 + Add MANUAL section on reproducible builds.
586 + Document no template fallback for absolute path (#7077, Nixon
587 Enraght-Moony.)
588 + Improve docs for cite-method.
589 + Update README and man page.
591 * Makefile: in `make bench`, create CSV files for comparison and compare
592 against previous benchmark run. Add timestamp to CSV filenames.
594 * cabal.project: don't explicitly set -trypandoc.
595 If we do, this can't be overridden on the cabal command line.
597 * doc/lua-filters.md: improve documentation for
598 `pandoc.mediabag.insert`, `pandoc.mediabag.fetch`,
599 `directory`, `normalize` (Albert Krewinkel).
601 * Allow base64-bytestring-1.2.* (Dmitrii Kovanikov)
603 * Require jira-wiki-markup 1.3.3 (Albert Krewinkel)
605 * Require citeproc 0.3.0.8, which correctly titlecases when titles
606 contain non-ASCII characters.
608 * Use skylighting 0.10.4. This version of skylighting uses xml-conduit
609 rather than hxt. This speeds up parsing of XML syntax definitions
610 fourfold, and removes four packages from pandoc's dependency graph:
611 hxt-charproperties, hxt-unicode, hxt-regex-xmlschema, hxt.
613 * Add script `tools/parseTimings.pl` to help pin down which
614 modules take the most time and memory to compile.
616 * Avoid unnecessary use of NoImplicitPrelude pragma (#7089) (Albert
617 Krewinkel)
619 * Benchmarks
621 + Use the lighter-weight tasty-bench instead of criterion.
622 + Run writer benchmarks for binary formats too.
623 + Alphabetize benchmarks.
624 + Don't run benchmarks for bibliography formats
625 (yet; we need a special input for them).
626 + Show allocation data
627 + Clean up benchmark code.
628 + Allow specifying patterns using `-p blah'.
630 * trypandoc: add 2 second timeout.
632 * Use `-split-sections` in creating linux release binary.
633 This reduces executable size significantly (by about 30%).
635 * Remove `weigh-pandoc`. It's not really useful any more, now that our
636 regular benchmarks include data on allocation.
638 * Improve linux package build process and add script to
639 automate building an arm64 binary package.
642## pandoc 2.11.4 (2021-01-22)
644 * Add `biblatex`, `bibtex` as output formats (closes #7040).
646 * Recognize more extensions as markdown by default (#7034):
647 `mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`.
649 * Implement defaults file inheritance (#6924, David Martschenko).
650 Allow defaults files to inherit options from other defaults files by
651 specifying them with the following syntax:
652 `defaults: [list of defaults files or single defaults file]`.
654 * Fix infinite HTTP requests when writing epubs from URL source (#7013).
655 Due to a bug in code added to avoid overwriting the cover image
656 if it had the form `fileX.YYY`, pandoc made an endless sequence
657 of HTTP requests when writing epub with input from a URL.
659 * Org reader:
661 + Allow multiple pipe chars in todo sequences (Albert Krewinkel, #7014).
662 Additional pipe chars, used to separate "action" state from "no further
663 action" states, are ignored. E.g., for the following sequence, both
664 `DONE` and `FINISHED` are states with no further action required:
665 `#+TODO: UNFINISHED | DONE | FINISHED`.
666 + Restructure output of captioned code blocks (Albert Krewinkel, #6977).
667 The Div wrapper of code blocks with captions now has the class
668 "captioned-content". The caption itself is added as a Plain block
669 inside a Div of class "caption". This makes it easier to write filters
670 which match on captioned code blocks. Existing filters will need to be
671 updated.
672 + Mark verbatim code with class `verbatim` (Dimitri Sabadie, #6998).
674 * LaTeX reader:
676 + Handle `filecontents` environment (#7003).
677 + Put contents of unknown environments in a Div when `raw_tex` is not
678 enabled (#6997). (When `raw_tex` is enabled, the whole environment is
679 parsed as a raw block.) The class name is the name of the environment.
680 Previously, we just included the contents without the surrounding Div,
681 but having a record of the environment's boundaries and name can be
682 useful.
684 * Mediawiki reader:
686 + Allow space around storng/emph delimiters (#6993).
688 * New module Text.Pandoc.Writers.BibTeX, exporting
689 writeBibTeX and writeBibLaTeX. [API change]
691 * LaTeX writer:
693 + Revert table line height increase in 2.11.3 (#6996).
694 In 2.11.3 we started adding `\addlinespace`, which produced less dense
695 tables. This wasn't an intentional change; I misunderstood a comment in
696 the discussion leading up to the change. This commit restores the earlier
697 default table appearance. Note that if you want a less dense table, you
698 can use something like `\def\arraystretch{1.5}` in your header.
700 * EPUB writer:
702 + Adjust internal links to identifiers defined in raw HTML sections
703 after splitting into chapters (#7000).
704 + Recognize `Format "html4"`, `Format "html5"` as raw HTML.
705 + Adjust internal links to images, links, and tables after splitting into
706 chapters. Previously we only did this for Div and Span and Header
707 elements (see #7000).
709 * Ms writer:
711 + Don't justify text inside table cells.
713 * JATS writer:
715 + Use `<element-citation>` if `element_citations`
716 extension is enabled (Albert Krewinkel).
717 + Fix citations (Albert Krewinkel, #7018). By default
718 we use formatted citations.
719 + Ensure that `<disp-quote>` is always wrapped in `<p>` (#7041).
721 * Markdown writer:
723 + Cleaned up raw formats. We now react appropriately
724 to `gfm`, `commonmark`, and `commonmark_x` as raw formats.
726 * RST writer:
728 + Fix bug with dropped content from inside spans with a class in
729 some cases (#7039).
731 * Docx writer:
733 + Handle table header using styles (#7008). Instead of hard-coding
734 the border and header cell vertical alignment, we now let this
735 be determined by the Table style, making use of Word's
736 "conditional formatting" for the table's first row. For
737 headerless tables, we use the tblLook element to tell Word
738 not to apply conditional first-row formatting.
740 * Commonmark writer:
742 + Implement start number on ordered lists (#7009). Previously they always
743 started at 1, but according to the spec the start number is respected.
745 * HTML writer:
747 + Fix implicit_figure at end of footnotes (#7006).
749 * ConTeXt template: Remove `\setupthinrules` from default template.
750 The width parameter this used is not actually supported,
751 and the command didn't do anything.
753 * Text.Pandoc.Extensions:
755 + Add `Ext_element_citations` constructor (Albert Krewinkel).
757 * Text.Pandoc.Citeproc.BibTeX: New unexported function
758 `writeBibtexString`.
760 * Text.Pandoc.Citeproc:
762 + Use finer grained imports (Albert Krewinkel).
763 + Factor out and export `getStyle` [API change].
764 + Export `getReferences` [API change, #7106].
765 + Factor out getLang.
767 * Text.Pandoc.Parsing: modify `gridTableWith'` for headerless tables.
768 If the table lacks a header, the header row should be an empty
769 list. Previously we got a list of empty cells, which caused
770 an empty header to be emitted instead of no header. In LaTeX/PDF
771 output that meant we got a double top line with space between.
773 * ImageSize: use `viewBox` for SVG if no length, width attributes (#7045).
774 This change allows pandoc to extract size information from more SVGs.
776 * Add simple default.nix.
778 * Use commonmark 0.1.1.3.
780 * Use citeproc 0.3.0.5.
782 * Update default CSL to use latest chicago-author-date.csl.
784 * CONTRIBUTING.md: add note on GNU xargs.
786 * MANUAL.txt:
788 + Update description of `-L`/`--lua-filter`.
789 + Document use of citations in note styles (#6828).
791## pandoc 2.11.3.2 (2020-12-29)
793 * HTML reader: use renderTags' from Text.Pandoc.Shared (Albert Krewinkel).
794 A side effect of this change is that empty `<col>` elements are written
795 as self-closing tags in raw HTML blocks.
797 * Asciidoc writer: Add support for writing nested tables (#6972, timo-a).
798 Asciidoc supports one level of nesting. If deeper tables are to be
799 written, they are omitted and a warning is issued.
801 * Docx writer: fix nested tables with captions (#6983).
802 Previously we got unreadable content, because docx seems
803 to want a `<w:p>` element (even an empty one) at the end of
804 every table cell.
806 * Powerpoint writer: allow arbitrary OOXML in raw inline elements
807 (Albert Krewinkel). The raw text is now included verbatim in the
808 output. Previously is was parsed into XML elements, which prevented
809 the inclusion of partial XML snippets.
811 * LaTeX writer: support colspans and rowspans in tables (#6950,
812 Albert Krewinkel). Note that the multirow package is needed for
813 rowspans. It is included in the latex template under a variable,
814 so that it won't be used unless needed for a table.
816 * HTML writer: don't include p tags in CSL bibliography entries
817 (#6966). Fixes a regression in 2.11.3.
819 * Add `meta-description` variable to HTML templates (#6982). This
820 is populated by the writer by stringifying the `description`
821 field of metadata (Jerry Sky). The `description` meta tag will
822 make the generated HTML documents more complete and SEO-friendly.
824 * Citeproc: fix handling of empty URL variables (`DOI`, etc.).
825 The `linkifyVariables` function was changing these to links
826 which then got treated as non-empty by citeproc, leading
827 to wrong results (e.g. ignoring nonempty URL when empty DOI is present).
828 See jgm/citeproc#41.
830 * Use citeproc 0.3.0.3. Fixes an issue in author-only citations when
831 both an author and translator are present, and an issue with
832 citation group delimiters.
834 * Require texmath 0.12.1. This improves siunitx support in math,
835 fixes bugs with `\*mod` family operators and arrays, and avoids
836 italicizing symbols and operator names in docx output.
838 * Ensure that the perl interpreter used for filters with `.pl`
839 extension (wuffi).
841 * MANUAL: note that textarea content is never parsed as Markdown
842 (Albert Krewinkel).
845## pandoc 2.11.3.1 (2020-12-18)
847 * Added some missing files to extra-source-files and data
848 files, so they are included in the sdist tarball. Closes #6961.
849 Cleaned up some extraneous data and test files, and added
850 a CI check to ensure that the test and data files included
851 in the sdist match what is in the git repository.
853 * Use citeproc 0.3.0.1, which avoids removing nonbreaking
854 space at the end of the `initialize-with` attribute. (Some
855 journals require nonbreaking space after initials, and this
856 makes that possible.)
858## pandoc 2.11.3 (2020-12-17)
860 * With `--bibliography` (or `bibliography` in metadata), a
861 URL may now be provided, and pandoc will fetch the resource.
862 In addition, if a file path is provided and it is not
863 found relative to the working directory, the resource
864 path will be searched (#6940).
866 * Add `sourcepos` extension for `commonmark`, `gfm`, `commonmark_x`
867 (#4565). With the `sourcepos` extension set set, `data-pos`
868 attributes are added to the AST by the commonmark reader. No other
869 readers are affected. The `data-pos` attributes are put on elements
870 that accept attributes; for other elements, an enlosing Div or Span
871 is added to hold the attributes.
873 * Change extensions for `commonmark_x`: replace `auto_identifiers`
874 with `gfm_auto_identifiers` (#6863). `commonmark_x` never actually
875 supported `auto_identifiers` (it didn't do anything), because the
876 underlying library implements gfm-style identifiers only. Attempts
877 to add the `auto_identifiers` extension to `commonmark` will now
878 fail with an error.
880 * HTML reader:
882 + Split module into several submodules (Albert Krewinkel). Reducing
883 module size should reduce memory use during compilation.
884 + Support advanced table features (Albert Krewinkel):
885 block level content in captions, row and colspans,
886 body headers, row head columns, footers, attributes.
887 + Disable round-trip testing for tables. Information for cell
888 alignment in a column is not preserved during round-trips (Albert
889 Krewinkel).
890 + Allow finer grained options for tag omission (Albert Krewinkel).
891 + Simplify list attribute handling (Albert Krewinkel).
892 + Pay attention to `lang` attributes on body element (#6938).
893 These (as well as `lang` attributes on the html element) should update
894 lang in metadata.
895 + Retain attribute prefixes and avoid duplicates (#6938).
896 Previously we stripped attribute prefixes, reading `xml:lang` as
897 `lang` for example. This resulted in two duplicate `lang`
898 attributes when `xml:lang` and `lang` were both used. This commit
899 causes the prefixes to be retained, and also avoids invald
900 duplicate attributes.
902 * Commonmark reader:
904 + Refactor `specFor`.
905 + Set input name to `""` to avoid clutter in sourcepos output.
907 * Org reader:
909 + Parse `#+LANGUAGE` into `lang` metadata field (#6845, Albert
910 Krewinkel).
911 + Preserve targets of spurious links (#6916, Albert
912 Krewinkel). Links with (internal) targets that the reader doesn't
913 know about are converted into emphasized text. Information on the
914 link target is now preserved by wrapping the text in a Span of class
915 `spurious-link`, with an attribute `target` set to the link's
916 original target. This allows to recover and fix broken or unknown
917 links with filters.
919 * DocBook reader:
921 + Table text width support (#6791, Nils Carlson).
922 Table width in relation to text width is not natively supported
923 by docbook but is by the docbook `fo` stylesheets through an XML
924 processing instruction, `<?dbfo table-width="50%"?>`.
926 * LaTeX reader:
928 + Improve parsing of command options (#6869, #6873).
929 In cases where we run into trouble parsing inlines til the
930 closing `]`, e.g. quotes, we return a plain string with the
931 option contents. Previously we mistakenly included the brackets
932 in this string.
933 + Preserve center environment (#6852, Igor Pashev).
934 The contents of the `center` environment are put in a `Div`
935 with class `center`.
936 + Don't parse `\rule` with width 0 as horizontal rule. These are
937 sometimes used as spacers in LaTeX.
938 + Don't apply theorem default styling to a figure inside (#6925).
939 If we put an image in italics, then when rendering to Markdown
940 we no longer get an implicit figure.
942 * Dokuwiki reader:
944 + Handle unknown interwiki links better (#6932).
945 DokuWiki lets the user define his own Interwiki links. Previously
946 pandoc reacted to these by emitting a google search link, which is
947 not helpful. Instead, we now just emit the full URL including the
948 wikilink prefix, e.g. `faquk>FAQ-mathml`. This at least gives users
949 the ability to modify the links using filters.
951 * Markdown writer:
953 + Properly handle boolean values in writing YAML metadata (#6388).
954 + Ensure that a new csl-block begins on a new line (#6921).
955 This just looks better and doesn't affect the semantics.
957 * RST writer:
959 + Better image handling (#6948). An image alone in its paragraph
960 (but not a figure) is now rendered as an independent image, with an
961 `alt` attribute if a description is supplied. An inline image that
962 is not alone in its paragraph will be rendered, as before, using a
963 substitution. Such an image cannot have a "center", "left", or
964 "right" alignment, so the classes `align-center`, `align-left`, or
965 `align-right` are ignored. However, `align-top`, `align-middle`,
966 `align-bottom` will generate a corresponding `align` attribute.
968 * Docx writer:
970 + Keep raw openxml strings verbatim (#6933, Albert Krewinkel).
971 + Use Content instead of Element. This allows us to inject
972 raw OpenXML into the document without reparsing it into an
973 Element, which is necessary if you want to inject an open
974 tag or close tag.
975 + Fix bullets/lists indentation, so that the first level is slightly
976 indented to the right instead of right on the margin (cholonam).
977 + Support bold and italic in "complex script" (#6911).
978 Previously bold and italics didn't work properly in LTR
979 text. This commit causes the w:bCs and w:iCs attributes
980 to be used, in addition to w:b and w:i, for bold and
981 italics respectively.
983 * ICML writer:
985 + Fix image bounding box for custom widths/heighta (Mauro Bieg, #6936).
987 * LaTeX writer:
989 + Improve table spacing (#6842, #6860).
990 Remove the `\strut` that was added at the end of minipage
991 environments in cells. Replace `\tabularnewline` with
992 `\\ \addlinespace`.
993 + Improve calculation of column spacing (#6883).
994 + Extract table handling into separate module (Albert Krewinkel).
995 + Fix bug with nested `csl-` display Spans (#6921).
996 + Improve longtable output (#6883). Don't create minipages for
997 regular paragraphs. Put width and alignment information in the
998 longtable column descriptors.
1000 * OpenDocument writer:
1002 + Support for table width as a percentage of text width
1003 (#6792, Nils Carson).
1004 + Implement Div and Span ident support (#6755, Nils Carson).
1005 Spans and Divs containing an ident in the Attr will become bookmarks
1006 or sections with idents in OpenDocument format.
1007 + Add two extensions, `xrefs_name` and `xrefs_number` (#6774, Nils
1008 Carlson). Links to headings, figures and tables inside the
1009 document are substituted with cross-references that will use the
1010 name or caption of the referenced item for `xrefs_name` or the
1011 number for `xrefs_number`. For the `xrefs_number` to be useful
1012 heading numbers must be enabled in the generated document and
1013 table and figure captions must be enabled using for example the
1014 `native_numbering` extension. In order for numbers and reference
1015 text to be updated the generated document must be refreshed.
1017 * JATS writer:
1019 + Support advanced table features (Albert Krewinkel).
1020 + Support author affiliations (#6687, Albert Krewinkel).
1022 * Docbook writer:
1024 + Use correct id attribute consistently (Jan Tojnar).
1025 DocBook5 should always use `xml:id` instead of `id`.
1026 + Handle admonition titles better (Jan Tojnar).
1027 Docbook reader produces a `Div` with `title` class for `<title>`
1028 element within an “admonition” element. Markdown writer then turns
1029 this into a fenced div with `title` class attribute. Since fenced
1030 divs are block elements, their content is recognized as a
1031 paragraph by the Markdown reader. This is an issue for Docbook
1032 writer because it would produce an invalid DocBook document from
1033 such AST – the `<title>` element can only contain “inline”
1034 elements. Handle this special case separately by unwrapping
1035 the paragraph before creating the `<title>` element.
1036 + Add XML namespaces to top-level elements (#6923, Jan Tojnar).
1037 Previously, we only added `xmlns` attributes to chapter
1038 elements, even when running with `--top-level-division=section`.
1039 These namespaces are now added to part and section elements too,
1040 when they are the selected top-level divisions.
1041 We do not need to add namespaces to documents produced with
1042 `--standalone` flag, since those will already have xmlns attribute on
1043 the root element in the template.
1045 * HTML writer:
1047 + Fix handling of nested `csl-` display spans (#6921).
1048 Previously inner Spans used to represent CSL display attributes were
1049 not rendered as div tags as intended.
1051 * EPUB writer:
1053 + Include title page in landmarks (#6919).
1054 Note that the toc is also included if `--toc` is specified.
1055 + Add frontmatter type on body element for nav.xhtml (#6918).
1057 * EPUB templates: use preserveAspectRatio="xMidYMid" for cover image (#6895,
1058 Shin Sang-jae). This change affects both the epub2 and the epub3
1059 templates. It avoids distortion of the cover image by requiring that the
1060 aspect ratio be preserved.
1062 * LaTeX template:
1064 + Include `csquotes` package if `csquotes` variable set.
1065 + Put back `amssymb`. We need it for checkboxes in todo lists,
1066 and maybe for other things. In this location it seems compatible
1067 with the cases that prompted #6469 and PR #6762.
1068 + Disable language-specific shorthands in babel (#6817, #6887).
1069 Babel defines "shorthands" for some languages, and these can
1070 produce unexpected results. For example, in Spanish, `1.22`
1071 gets rendered as `122`, and `et~al.` as `etal`.
1072 One would think that babel's `shorthands=off` option (which
1073 we were using) would disable these, but it doesn't. So we
1074 remove `shorthands=off` and add some code that redefines
1075 the shorthands macro. Eventually this will be fixed in babel,
1076 I hope, and we can revert to something simpler.
1078 * JATS template: allow array of persistent institute ids in `pid`
1079 (Albert Krewinkel).
1081 * Text.Pandoc.Parsing: minor code and efficiency improvements.
1083 * Text.Pandoc.Extension:
1085 + Add `Ext_sourcepos` constructor for `Extension` [API change].
1086 + Add `Ext_xrefs_name` and `Ext_xrefs_number` constructors for
1087 `Extension` (Nils Carson) [API change].
1089 * Text.Pandoc.Citeproc:
1091 + Fix truncation of `[Citation]` list in `Cite` inside footnotes (#6890).
1092 This affected author-in-text citations in footnotes. It didn't cause
1093 problems for the printed output, but for filters that expected the
1094 citation id and other information.
1095 + Allow the use of both inline and external references (#6951),
1096 as with pandoc-citeproc. References defined in the document's
1097 metadata take priority over references with the same id defined in
1098 an external bibliography.
1099 + Use `fetchItem` to get external bibliography (#6940).
1100 + Ensure that BCP47 lang codes can be used. We ignore the variants
1101 and just use the base lang code and country code when passing off
1102 to citeproc.
1103 + Citeproc BibTeX parser: revert change in `getRawField`
1104 which was made (for reasons forgotten) when transferring
1105 this code from pandoc-citeproc. The change led to `--` in
1106 URLs being interpreted as en-dashes, which is unwanted (#6874).
1108 * Text.Pandoc.ImageSize:
1110 + Default to DPI 72 if the format specifies DPI of 0 (#6880).
1111 This shouldn't happen, in general, but it can happen with
1112 JPEGs that don't conform to the spec. Having a DPI of 0
1113 will blow up size calculations (division by 0).
1114 + ImageSize: use JuicyPixels to determine size for png, jpeg, and
1115 gif, instead of doing our own binary parsing (#6936). This
1116 gives more reliable results.
1118 * Text.Pandoc.CSS:
1120 + Remove `foldOrElse` (internal module) (Albert Krewinkel).
1122 * Use skylighting 0.10.2 (#6625).
1124 * Use citeproc 0.3. This fixes issues with references with
1125 duplicate ids (jgm/citeproc#36).
1127 * Use doctemplates 0.9. This fixes issues with boolean
1128 metadata values in the Markdown writer (#6388)
1129 and in `meta-json` (#6650). It also fixes
1130 issues with nested for loops in templates.
1132 * Add translations zh-Hans.yaml and zh-Hant.yaml (#6904, #6909,
1133 Kolen Cheung, taotieren).
1135 * Add tests: True to cabal.project.
1136 This fixes some CI failures for cabal.
1138 * Normalize test/tables/*.native (#6888, Kolen Cheung).
1140 * Move executable to `app` directory to avoid problems with cabal repl.
1142 * CONTRIBUTING: add section "How can I help?" (#6892, Albert Krewinkel).
1143 Also adds a paragraph aimed at highlighting the importance of feature
1144 maintenance.
1146 * MANUAL: Document that --number-sections works in `ms` (#6935).
1149## pandoc 2.11.2 (2020-11-19)
1151 * Default to using ATX (`##`-style) headings for Markdown output
1152 (#6662, Aner Lucero). Previously we used Setext (underlined) headings
1153 by default for levels 1--2.
1155 * Add option `--markdown-headings=atx|setext`, and deprecate
1156 `--atx-headers` (#6662, Aner Lucero).
1158 * Support `markdown-headings` in defaults files.
1160 * Fix corner case in YAML metadata parsing (#6823). Previously YAML
1161 metadata would sometimes not get recognized if a field ended with a
1162 newline followed by spaces.
1164 * `--self-contained`: increase coverage (#6854).
1165 Previously we only self-contained attributes for certain tag names
1166 (`img`, `embed`, `video`, `input`, `audio`, `source`, `track`,
1167 `section`). Now we self-contain any occurrence of `src`,
1168 `data-src`, `poster`, or `data-background-image`, on any tag; and
1169 also `href` on `link` tags.
1171 * Markdown reader:
1173 + Fix detection of locators following in-text citations.
1174 Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be
1175 incorrectly parsed as a prefix of `@bar` rather than a suffix of
1176 `@foo`.
1177 + Improve period suppression algorithm for citations in notes
1178 in note citation styles (#6835).
1179 + Don't increment `stateNoteNumber` for example list references.
1180 This helps with #6836 (a bug in which example list references
1181 disturb calculation of citation note number and affect when
1182 `ibid` is triggered).
1184 * LaTeX reader:
1186 + Move `getNextNumber` from Readers.LaTeX to Readers.LaTeX.Parsing.
1187 + Fix negative numbers in siunitx commands. A change in pandoc 2.11
1188 broke negative numbers, e.g. `\SI{-33}{\celcius}` or `\num{-3}`.
1189 This fixes the regression.
1191 * DocBook reader: drop period in formalpara title
1192 and put it in a div with class `formalpara-title`, so that
1193 people can reformat with filters (#6562).
1195 * Man reader: improve handling of `.IP` (#6858). We now better handle
1196 `.IP` when it is used with non-bullet, non-numbered lists, creating a
1197 definition list. We also skip blank lines like groff itself.
1199 * Bibtex reader: fall back on `en-US` if locale for LANG not found.
1200 This reproduces earlier pandoc-citeproc behavior (jgm/citeproc#26).
1202 * JATS writer:
1204 + Wrap all tables (Albert Krewinkel).
1205 All `<table>` elements are put inside `<table-wrap>` elements, as the
1206 former are not valid as immediate child elements of `<body>`.
1207 + Move Table handling to separate module (Albert Krewinkel).
1208 Adds two new unexported modules:
1209 Text.Pandoc.Writers.JATS.Types, Text.Pandoc.Writers.JATS.Table.
1211 * Org writer:
1213 + Replace org #+KEYWORDS with #+keywords (TEC).
1214 As of ~2 years ago, lower case keywords became the standard (though
1215 they are handled case insensitive, as always).
1216 + Update org supported languages and identifiers according to the
1217 current list contained in
1218 <https://orgmode.org/worg/org-contrib/babel/languages/index.html>
1219 (TEC).
1221 * Only use `filterIpynbOutput` if input format is ipynb (#6841).
1222 Before this change content could go missing from divs with class
1223 `output`, even when non-ipynb was being converted.
1225 * When checking reader/writer name, check base name now that we permit
1226 extensions on formats other than markdown.
1228 * Text.Pandoc.PDF: Fix `changePathSeparators` for Windows (#6173).
1229 Previously a path beginning with a drive, like `C:\foo\bar`, was
1230 translated to `C:\/foo/bar`, which caused problems.
1231 With this fix, the backslashes are removed.
1233 * Text.Pandoc.Logging:
1235 + Add constructor `ATXHeadingInLHS` to `LogMessage` [API change].
1236 + Add constructor `EnvironmentVariableUndefined` to
1237 `LogMessage` [API change].
1239 * Fix error that is given when people specify `doc` output (#6834,
1240 gison93).
1242 * LaTeX template: add a `\break` after parbox in `CSLRightInline`.
1243 This should fix spacing problems between entries with numeric styles.
1244 Also fix number of params on `CSLReferences`.
1246 * reveal.js template: Put quotes around `controlsLayout`,
1247 `controlsBackArrows`, and `display`, since these require strings.
1248 Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
1250 * Use citeproc 0.2. This fixes a bug with title case around parentheses.
1252 * pandoc.cabal: remove 'static' flag.
1253 This isn't really necessary and can be misleading (e.g. on macOS,
1254 where a fully static build isn't possible). cabal's new option
1255 `--enable-executable-static` does the same. On stack you can add
1256 something like this to the options for your executable in package.yaml:
1258 ld-options: -static -pthread
1260 * Remove obsolete bibutils flag setting in `linux/make_artifacts.sh`.
1262 * Manual:
1264 + Correct `link-citation` -> `link-citations`.
1265 + Add a sentence about `pagetitle` for HTML (#6843, Alex Toldaiev).
1267 * INSTALL.md: Remove references to `pandoc-citeproc` (#6857).
1269 * CONTRIBUTING: describe hlint and how it's used (#6840, Albert
1270 Krewinkel).
1272## pandoc 2.11.1.1 (2020-11-07)
1274 * Citeproc: improve punctuation in in-text note citations (#6813).
1275 Previously in-text note citations inside a footnote would sometimes have
1276 the final period stripped, even if it was needed (e.g. on the end of
1277 'ibid').
1279 * Use citeproc 0.1.1.1. This improves the decision about when
1280 to use `ibid` in cases where citations are used inside
1281 a footnote (#6813).
1283 * Support `nocase` spans for `csljson` output.
1285 * Require latest commonmark, commonmark-extensions.
1286 This fixes a bug with `autolink_bare_uris` and commonmark.
1288 * LaTeX reader: better handling of `\\` inside math in table cells (#6811).
1290 * DokuWiki writer: translate language names for code elements
1291 and improve whitespace (#6807).
1293 * MediaWiki writer: use `syntaxhighlight` tag instead of deprecated
1294 `source` for highlighted code (#6810). Also support `startFrom`
1295 attribute and `numberLines`.
1297 * Lint code in PRs and when committing to master (#6790,
1298 Albert Krewinkel).
1300 * doc/filters.md: describe technical details of filter invocations (#6815,
1301 Albert Krewinkel).
1304## pandoc 2.11.1 (2020-11-03)
1306 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
1308 * HTML reader:
1310 + Parse contents of iframes (#6770).
1311 + Parse inline svg as image unless `raw_html` is set in the reader (in
1312 which case the svg is passed through as raw HTML) (#6770).
1314 * LaTeX reader:
1316 + Fix bug parsing macro arguments (#6796). If `\cL` is
1317 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
1318 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
1319 pandoc was expanding it to `\tilde\mathcal{L}`. This is
1320 fixed by parsing the arguments in "verbatim mode" when the
1321 macro expands arguments at the point of use.
1322 + Properly support optional (cite) argument for
1323 `\blockquote` from `csquotes` (#6802).
1325 * LaTeX writer: Improved calculation of table column widths.
1326 We now have LaTeX do the calculation, using `\tabcolsep`.
1327 So we should now have accurate relative column widths no
1328 matter what the text width. The default template has been modified to load
1329 the calc package if tables are used.
1331 * HTML writer: Fix duplicate "class" attribute for table
1332 rows (Andy Morris).
1334 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
1335 (Albert Krewinkel). The map-based YAML representation of filters expects
1336 `type` and `path` fields. The path field had to be present for all filter
1337 types, but is not used for citeproc filters. The field can now be omitted
1338 when type is "citeproc", as described in the MANUAL.
1340 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
1341 for `PandocError` [API change]. This ensures that bibliography parsing
1342 errors generate messages that include the bibliography file name --
1343 otherwise it can be quite mysterious where it is coming from.
1345 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
1346 This is used with the JATS writer, so this fixes a regression
1347 in pandoc 2.11 with JATS output and citeproc.
1349 * Allow `citation-abbreviations` in defaults file.
1351 * JATS templates: ensure `jats_publishing` output is valid
1352 (Albert Krewinkel).
1354 * LaTeX template: Fix `CSLRightInline`, so that it does not
1355 run over the right margin.
1357 * HTML template: default CSS tweaks (Mauro Bieg and John
1358 MacFarlane).
1360 - Fix margin before codeblock
1361 - Add `monobackgroundcolor` variable, making the background color
1362 and padding of code optional.
1363 - Ensure that backgrounds from highlighting styles take precedence over
1364 monobackgroundcolor
1365 - Remove list markers from TOC
1366 - Add margin-bottom where needed
1367 - Remove italics from blockquote styling
1368 - Change borders and spacing in tables to be more consistent with other
1369 output formats
1370 - Style h5, h6
1371 - Set font-size for print media to 12pt.
1372 - Reduce interline space.
1373 - Reduce interparagraph space.
1374 - Reduce line width.
1375 - Remove the special `line-height: 1` for table cells.
1376 - Remove the special line-height for pre.
1377 - Ensure that there is a bit more space before a heading
1378 than after.
1379 - Slightly reduced space after title header.
1380 - Add CSS example to MANUAL
1382 * man template: Change comment that triggers `tbl` from
1383 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
1385 * Use latest commonmark, commonmark-extensions.
1386 This fixes a bug with nested blocks in footnotes with the
1387 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
1389 * Citeproc: use comma for in-text citations inside footnotes.
1390 When an author-in-text citation like `@foo` occurs in a footnote,
1391 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
1392 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
1393 This gives better results. Note that normal citations are still
1394 rendered in parentheses.
1396 * Use latest citeproc:
1398 + citeproc no longer capitalizes notes, so we do it
1399 in pandoc when appropriate.
1400 + Closes #6783.
1402 * Clarify manual on `--track-changes` (#6801).
1404 * Add `doc/jats.md` to document pandoc's handling of JATS
1405 (#6794, Albert Krewinkel).
1407 * Fix code example in lua-filters.md (#6795).
1409## pandoc 2.11.0.4 (2020-10-21)
1411 * Commonmark writer: fix regression with fenced divs (#6768).
1412 Starting with 2.10.1, fenced divs no longer render with
1413 HTML div tags in commonmark output. This is a regression
1414 due to our transition from cmark-gfm. This commit fixes it.
1416 * Use released version of citeproc. (This fixes a mis-step
1417 in the 2.11.0.3 release, which is now deprecated.)
1419 * Use latest sylighting, with support for `groovy`.
1421 * Document that --html-q-tags requires the smart extension on the reader
1422 (#6766).
1424## pandoc 2.11.0.3 (2020-10-20)
1426 * Use latest citeproc (closes #6765). This fixes a problem with
1427 author-in-text citations for references including both an author
1428 and an editor. Previously, both were included in the text, but only
1429 the author should be.
1431 * With `--citeproc`, ensure that the final period is removed when
1432 citations that occur in notes in note-based styles get put in
1433 parentheses. See jgm/citeproc#20.
1435 * Normalize rewritten image paths with `--extract-media` (#6761).
1436 This change will avoid mixed paths like this one when
1437 `--extract-media` is used with a Word file:
1438 `![](C:\Git\TIJ4\Markdown/media/image30.wmf)`. Instead we'll get
1439 `![](C:\Git\TIJ4\Markdown`media`image30.wmf)`.
1441 * Modify `--version` output. Use space more efficiently and report the
1442 citeproc and ipynb versions, along with skylighting, texmath, and
1443 pandoc-types. Drop the word "default" before "user data directory."
1445 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
1446 Also ensure that bibliodiv without a title no longer results in
1447 an empty Header.
1449 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
1450 than normal (#6763, Denis Maier).
1452 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
1453 See <https://tex.stackexchange.com/a/549938>.
1455 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
1457 * MANUAL:
1459 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
1460 + Remove org from list of input formats supporting raw_tex (#6753,
1461 Nick Fleisher).
1464## pandoc 2.11.0.2 (2020-10-15)
1466 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
1468 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
1470 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
1471 involving spacing between components of a reference in certain styles
1472 (e.g. `cell.csl`).
1474 * Fix typos in comments, doc strings, error messages, and tests
1475 (Albert Krewinkel, #6738).
1477## pandoc 2.11.0.1 (2020-10-13)
1479 * LaTeX reader: support more acronym commands (#6746):
1480 `\acl`, `\aclp`, and capitalized versions of already
1481 supported commands.
1483 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
1484 Otherwise we get bad results for non-table, non-paragraph
1485 lines containing pipe characters.
1487 * Markdown writer: Fix autolinks rendering for gfm (#6740).
1488 Previously, autolinks rendered as raw HTML, due to the
1489 `class="uri"` added by pandoc's markdown reader.
1491 * LaTeX writer:
1493 + Escape option values in lstlistings environment (#6742).
1494 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
1495 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
1496 `\usepackage[shorthands=off,main=brazilian]{babel}`.
1498 * Depend on latest citeproc (0.1.0.1).
1500 + This fixes the citation number issue with ieee.csl and other
1501 styles that do not explicitly sort bibliographies (#6741). (Pandoc
1502 was numbering them by their order in the bibliography file,
1503 rather than the order cited, as required by the CSL spec.)
1504 + Fixes groupin/collapsing with citation items with prefixes.
1506 * default.latex: fix `CSLReference` macro definition.
1508 * Fix MANUAL.txt CSL JSON conversion examples.
1510 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
1513## pandoc 2.11 (2020-10-11)
1515 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
1516 It is no longer necessary to use the external `pandoc-citeproc`
1517 filter. `--citeproc` behaves like a filter and can be positioned
1518 relative to other filters as they appear on the command line.
1520 The new built-in citation processing uses the citeproc library,
1521 a reimplementation of CSL citation processing that fixes many
1522 of the shortcomings of pandoc-citeproc. In general, citation
1523 processing should work much the same as it did with pandoc-citeproc,
1524 but with greater fidelity to CSL styles and better performance.
1525 (The tests from the pandoc-citeproc package have been carried
1526 over to pandoc.) The following differences should be noted:
1528 - At this point, only some of the writers (HTML, ms, LaTeX) properly
1529 interpret CSL display styles. You should get decent output in
1530 all formats (at least as good as with pandoc-citeproc), but
1531 indentation and block-alignment may not be right.
1533 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
1534 styles. Pandoc instead searches the `csl` subdirectory of
1535 the pandoc user data directory (e.g., `~/.pandoc/csl` or
1536 `~/.local/share/pandoc/csl`). Users who already keep
1537 CSL styles in `~/.csl` may find it convenient to add a
1538 symlink.
1540 - Some of the bibliography formats supported by pandoc-citeproc (via
1541 hs-bibutils) are no longer supported: Copac, EndNote,
1542 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
1543 you may use the `bibutils` utility to convert to BibLaTeX.
1544 We now support only BibTeX, BibLaTeX, CSL JSON,
1545 and pandoc's YAML/Markdown analogue of CSL JSON.
1547 - pandoc-citeproc would always retrieve the independent parent
1548 of a dependent style by doing an HTTP request. pandoc will
1549 now first seek the independent parent locally (in the resource
1550 path or in the `csl` subdirectory of the pandoc user data
1551 directory) before resorting to HTTP. In addition, you may
1552 omit the `.csl` extension, e.g. `--csl zoology`.
1554 - Using the `--bibliography` option (or including
1555 `bibliography` in YAML metadata) no longer triggers
1556 citation processing implicitly: one must always use the
1557 `--citeproc` option if citation processing is wanted.
1559 * Add `csljson` as and input and output format. This allows pandoc
1560 to convert between `csljson` and other bibliography formats
1561 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
1562 and to generate formatted versions of CSL JSON bibliographies
1563 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
1565 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
1566 to convert between BibLaTeX and BibTeX and other bibliography formats,
1567 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
1568 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
1570 * Raise informative errors when YAML metadata parsing fails (#6730).
1571 Previously the command would succeed, returning empty metadata,
1572 with no errors or warnings.
1574 * Sort languages in `--list-highlight-languages` output (#6718,
1575 Albert Krewinkel). Languages were previously sorted by their
1576 long name, which leads to unexpected results).
1578 * Add CSS to default HTML template (#6601, Mauro Bieg). This
1579 greatly improves the default typography in pandoc's HTML
1580 output. The CSS is sensitive to a number of variables
1581 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
1582 details. To restore the earlier, more spartan output, you can
1583 disable this with `-M document-css=false`.
1585 * Support `--toc-depth` option for ODT writer (#6696, niszet).
1587 * Fix issues with Windows UNC paths with some options (#5127).
1589 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
1590 `commonmark` and `gfm` extensions. These shouldn't really be counted
1591 as extensions, because they can't be disabled in commonmark.
1592 Adjust markdown writer to check for the commonmark variant in addition
1593 to extensions.
1595 * Add these extensions to `gfm` and `commonmark`:
1596 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
1597 These can't really be disabled in the reader, but they need to be enabled
1598 in the writer or we just get indented code.
1600 * Make sure proper set of extensions is recognized for `commonmark_x`.
1602 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
1604 * Markdown reader:
1606 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
1607 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
1608 specialized to references.
1609 + Set `citationNoteNum` accurately in citations.
1610 + Revise abbreviation support. Don't insert a nonbreaking space after a
1611 potential abbreviation if it comes right before a note or citation.
1612 This causes problems for citeproc's moving of note citations.
1614 * LaTeX reader:
1616 + Support missing siunitx commands (#6658).
1617 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
1618 + Improved uncertainty handling in slunitx.
1619 + Factored out siunitx stuff into separate unexposed module.
1620 + Fix improper empty cell filtering (#6689, Christian Despres).
1621 + Fix parsing of "show name" in `\newtheorem` (#6734).
1622 Previously we were just treating it as a string and
1623 ignoring accents and formatting.
1624 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
1625 cells (#6603, Laurent P. René de Cotret).
1626 + Table cell parser not consuming spaces correctly (#6596,
1627 Laurent P. René de Cotret).
1628 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
1629 + Allow blank lines inside `\author` (#6324).
1631 * DocBook reader:
1633 + Don't squelch space at end of emphasis and other inline elements;
1634 instead, move it outside the element (#6719).
1635 + Implement table cell alignment (#6698, Nils Carlson).
1636 + Implement column span support for tables (#6492, Nils Carlson).
1637 + Update list of block level tags (#6610).
1640 * JATS reader:
1642 + Don't squelch space at end of emphasis and other inline elements;
1643 instead, move it outside the element (#6719).
1645 * RST reader:
1647 + Apply `.. class::` directly to following Header rather than creating
1648 a surrounding Div (#6699).
1650 * Docx reader:
1652 + Allow empty dates in comments and tracked changes (#6726, Diego
1653 Balseiro).
1655 * Markdown writer:
1657 + Be less aggressive about using quotes for YAML values,
1658 allowing e.g. a quotation mark or bracket as long as it's not at the
1659 beginning of the line.
1660 + Use double quotes for YAML metadata (#6727).
1661 + Sort YAML metadata keys in Markdown output case-insensitive.
1664 * Asciidoc writer:
1666 + Support asciidoctor's block figures (#6538, argent0).
1668 * LaTeX writer:
1670 + Fix spacing issue with list in definition list.
1671 When a list occurs at the beginning of a definition list definition,
1672 it can start on the same line as the label, which looks bad.
1673 Fix that by starting such lists with an `\item[]`.
1675 * HTML writer:
1677 + Support intermediate table headers (#5314, Albert Krewinkel).
1678 + Support attributes on all table elements (Albert Krewinkel).
1679 + Render table footers if present (#6314, Albert Krewinkel).
1680 + Fix addition of `doc-biblioentry` role.
1681 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
1683 * ICML writer:
1685 + Support internal document links (#5541, Leonard Rosenthol).
1686 + Changed default link state to invisible (#6676, Leonard Rosenthol).
1688 * Docx writer:
1690 + Better handle list items whose contents are lists (#5948, Michael
1691 Hoffmann). If the first element of a bulleted or ordered list is
1692 another list, then that first item would previously disappear if the
1693 target format is docx.
1694 + Separate adjacent tables (#4315). Word combines adjacent tables,
1695 so to prevent this we insert an empty paragraph between two
1696 adjacent tables.
1698 * Org writer:
1700 + Don't force blank line after headings (#6554).
1702 * OpenDocument writer:
1704 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
1705 + New table cell support with row and column spans (#6682, Nils Carson).
1706 + Syntax highlighting for inline code (#6711, niszet).
1708 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
1709 [API change]. This depends on several other, unexported
1710 modules under Text.Pandoc.Citeproc.
1712 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
1713 [API change]
1715 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
1716 [API change]
1718 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
1719 `readBibLaTeX`. [API change]
1721 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
1722 [API change] This runs the processCitations transformation.
1723 We need to treat it like a filter so it can be placed
1724 in the sequence of filter runs (after some, before others).
1725 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
1726 so this special filter may be specified either way in a defaults file
1727 (or by `citeproc: true`, though this gives no control of positioning
1728 relative to other filters).
1730 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
1731 (#6655, Christian Despres). This module (which should generally
1732 be imported qualified to avoid name conflicts) provides a
1733 `Table` type that mirrors the structure of a pandoc `Table`,
1734 but with added inferred information so that the writers do not have to
1735 lay out tables themselves. The `toTable` and `fromTable` functions convert
1736 between an annotated `Table` and a regular pandoc `Table`. In addition to
1737 producing a `Table` with coherent and well-formed annotations, the
1738 `toTable` function also normalizes its input table like the table
1739 builder does. Tests ensure that `toTable` normalizes tables exactly
1740 like the table builder, and that its annotations are coherent.
1742 * Text.Pandoc.Logging:
1744 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
1745 [API change].
1746 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
1748 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
1749 These allow specifying an id filter so we parse only references
1750 that are used in the document.
1752 * Text.Pandoc.Parsing:
1754 + Export ParseError [API change].
1755 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
1756 [API change]. These are used to populate note numbers for citation
1757 processing.
1759 * Fix apparent typos in sample.lua (#6729, William Lupton).
1760 Also make the writer less aggressive in escaping quotes.
1762 * Text.Pandoc.Options:
1764 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
1765 (#6599, Kolen Cheung). This drops the MathML support (which we
1766 don't need for HTML math rendering) and includes the full JavaScript,
1767 which makes it possible to use `--self-contained` (though there may
1768 still be issues if the required math fonts aren't available). This
1769 change should also reduce latency in pages with lots of formulas.
1770 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
1771 added this in processing command line options, but not in processing
1772 defaults files, which was inconsistent.
1774 * epub.css: Fix cover page selectors and add note explaining their use
1775 (#6649, a-vrma).
1777 * Add data files needed for Text.Pandoc.Citeproc: these include
1778 `default.csl` in the data directory and a `citeproc` directory that
1779 is only used at compile-time for biblatex localizations. Note that we've
1780 added `file-embed` as a mandatory rather than a conditional
1781 dependency, because of the biblatex localization files.
1783 * Lua filters:
1785 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
1786 A new type `SimpleTable` is made available to Lua filters. It is
1787 similar to the `Table` type in pandoc versions before 2.10;
1788 conversion functions from and to the new Table type are provided.
1789 Old filters using tables now require minimal changes and can use, e.g.,
1791 if PANDOC_VERSION > {2,10,1} then
1792 pandoc.Table = pandoc.SimpleTable
1793 end
1795 and
1797 function Table (tbl)
1798 tbl = pandoc.utils.to_simple_table(tbl)
1799 …
1800 return pandoc.utils.from_simple_table(tbl)
1801 end
1803 to work with the current pandoc version.
1805 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
1806 This changes the Lua API. It is highly unlikely for this change to affect
1807 existing filters, since the documentation for the new Table constructor
1808 (and type) was incomplete and partly wrong before. The Lua API is now
1809 more consistent, as all constructors for elements with attributes now
1810 take attributes as the last parameter.
1812 * MANUAL.txt:
1814 * Add a dedicated Citations section which consolidates the information
1815 the manual used to contain about citation processing, and incorporates
1816 some information formerly found in the pandoc-citeproc man page.
1817 + Add note about lualatex using `selnolig`.
1818 + Remove duplicate `seriespage` (#6568, Blake Eryx).
1819 + Remove lists of support extensions for markdown variants (#6604).
1820 Instead, offer the advice to use `--list-extensions=FORMAT`.
1821 + Fix position of attributes in header (Albert Krewinkel).
1822 + Delete obsolete section on compact and loose lists (#6684).
1825 * doc/lua-filters.md:
1827 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
1828 + Document Underline type and constructor (Albert Krewinkel).
1829 + Document `body` field (Albert Krewinkel).
1830 + Add missing header attribute
1831 + Add missing Link.title field (Albert Krewinkel).
1832 + Make the setting-the-date example conditional (the-solipsist).
1833 This makes the example a bit more realistic.
1834 + Remove outdated link table example.
1836 * doc/org.md:
1838 + Add section on tables (Albert Krewinkel).
1839 + Add section on handling of unknown directives (Albert Krewinkel).
1841 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
1843 * Use golden test framework for command tests. This means that
1844 `--accept` can be used to update expected output.
1846 * Use the `smart` extension when generating pandoc's man page (#6613).
1848 * Release-candidate: don't build windows i386.
1849 So far we haven't been able to figure out how to get
1850 stack to use a 32-bit ghc.
1852 * Use `null` instead of deprecated `Builder.isNull`.
1854 * Makefile:
1856 + Fix macospkg target to fetch target from S3 artifacts.
1857 + Fix pandoc-templates target to include all partials.
1859 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
1861 * Sort build depends in pandoc.cabal alphabetically (#6691,
1862 Albert Krewinkel).
1864 * Add .travis.yml for macos release candidate build (#6622).
1865 We need to build the release candidate on Travis rather
1866 than GitHub actions, because GH has macos 10.15, and
1867 binaries compiled on that OS will not work with 10.13.
1868 This build is only triggered on `rc/*` branches.
1870 * Remove instructions for building pandoc-citeproc from CI and
1871 release binary build instructions. We will no longer distribute
1872 pandoc-citeproc.
1874 * Fix math rendering in trypandoc (this broke after
1875 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
1877 * Use latest versions of skylighting, commonmark (#6589),
1878 comonmark-extensions, commonmark-pandoc, texmath.
1880 * Relax version bounds for hslua, hslua-module-text, bytestring.
1882 * Use released pandoc-types 1.22. This changes the JSON
1883 encoding slightly for the new table types introduced
1884 in 1.21, so they're more consistent with the rest.
1885 Developers of libraries for pandoc filters will want
1886 to take note.
1888 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
1890 * Code cleanup (#6678, Joseph C. Sible).
1892 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
1893 Krewinkel).
1895 * Remove duplicate `tshow` definition.
1897 * Linux release candidate build: use ghc-musl container. This simplifies
1898 our build process (over using a customized alpine container).
1901## pandoc 2.10.1 (2020-07-23)
1903 * Add `commonmark_x` output format. This is `commonmark` with a number
1904 of useful pandoc extensions enabled.
1906 * Many more extensions now work with `commonmark` and `gfm`.
1908 * Add generic `attributes` extension. This allows attributes to
1909 be added to any block or inline element in a uniform way. Since
1910 the Pandoc AST doesn't include attributes on each element type,
1911 the attributes will sometimes be added by creating a surrounding
1912 Div or Span container. Currently this extension is only
1913 compatible with the `commonmark` and `gfm` readers.
1915 To add an attribute to a block-level element, e.g. a paragraph,
1916 put it before the block:
1917 ```
1918 {#mypara}
1919 This is a paragraph.
1920 ```
1921 Multiple attributes may be used and will be combined:
1922 ```
1923 {#mypara}
1924 {.blue .warning key="val"}
1925 This is a paragraph.
1926 ```
1927 To add an attribute to an inline-level element, put it
1928 immediately after the element:
1929 ```
1930 *emphasized text*{.special}
1931 ```
1933 * Support `--number-sections` for docx output (#1413).
1935 * LaTeX reader:
1937 + Support `\SIRange` reader (#6418, Emerson Harkin).
1938 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
1939 Supports `\multirow` and `\multicolumn`.
1940 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
1941 proof environments, including labels and references. The only thing
1942 that is unsupported is the second optional argument, which causes
1943 numbering to be reset after the specified series is incremented.
1944 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
1945 of the LaTeX reader to ease compilation on resource-limited systems.
1947 * RST reader:
1949 + Fix csv tables with multiline cells (#6549).
1950 + Fix spurious newlines in some attributes from directives.
1951 + Avoid extra newline in included code blocks.
1953 * Commonmark reader:
1955 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
1956 parsing. This avoids depending on a C library
1957 and allows us to support more pandoc extensions for
1958 `commonmark` and `gfm`.
1960 * DocBook reader:
1962 + Parse releaseinfo as metadata (#6542).
1964 * Docx reader:
1966 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
1967 Yakimov).
1968 + Code cleanup/refactoring (Nikolay Yakimov).
1970 * Org reader (Albert Krewinkel):
1972 + Respect export setting which disables entities
1973 MathML-like entities, e.g., `\alpha`, can be disabled with the
1974 `#+OPTION: e:nil` export setting (Albert Krewinkel).
1975 + Respect export setting disabling footnotes. Footnotes can be removed
1976 from the final document with the `#+OPTION: f:nil` export setting.
1977 + Respect tables-excluding export setting. Tables can be removed from
1978 the final document with the `#+OPTION: |:nil` export setting.
1980 * Markdown writer:
1982 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
1983 doesn't catch quotes that have already been turned to entities.
1984 + Add `writeCommonmark` (new exported function, API change).
1985 + Use unicode super/subscript characters when possible if the
1986 `superscript` or `subscript` extension or `raw_html` aren't available.
1987 + Render caption as following paragraph when `table_caption` extension
1988 is not enabled.
1989 + Use numerical labels for reference links that are longer
1990 than 999 characters or contain square brackets, for conformity
1991 with commonmark (#6560).
1993 * Commonmark writer:
1995 + Instead of using cmark-gfm, use `writeCommonmark` from the
1996 Markdown writer. This function calls the markdown writer
1997 with appropriate extensions and a few small modifications
1998 (e.g. not requiring backslashes before spaces inside
1999 super/subscripts). With this change `comonmark` and
2000 `gfm` output can be used with a wider selection of
2001 extensions.
2003 * Jira writer: keep image caption as alt attribute (#6529, Albert
2004 Krewinkel).
2006 * HTML writer:
2008 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
2009 Screen readers read an image's `alt` attribute and the figure caption,
2010 both of which come from the same source in pandoc. The figure caption is
2011 hidden from screen readers with the `aria-hidden` attribute. This
2012 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
2013 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
2015 * Ms writer:
2017 + Fix code highlighting with blank lines. Previously blank lines
2018 were simply omitted from highlighted code.
2019 + Escape starting periods in ms writer code blocks (#6505, Michael
2020 Hoffmann). If a line of ms code block output starts with a period (.),
2021 it should be prepended by `\&` so that it is not interpreted as a roff
2022 command.
2024 * Text.Pandoc.Extensions:
2026 + Add `raw_markdown` extension (which only affects `ipynb`
2027 input).
2028 + Trim down `githubMarkdownExtensions`.
2029 Previously it included all of the following, which make
2030 sense for the legacy `markdown_github` but not for `gfm`,
2031 since they are part of base commonmark and thus
2032 can't be turned off in `gfm`:
2034 - `Ext_all_symbols_escapable`
2035 - `Ext_backtick_code_blocks`
2036 - `Ext_fenced_code_blocks`
2037 - `Ext_space_in_atx_header`
2038 - `Ext_intraword_underscores`
2039 - `Ext_lists_without_preceding_blankline`
2040 - `Ext_shortcut_reference_links`
2042 These have been removed from `githubMarkdownExtensions`, though
2043 they're still turned on for legacy `markdown_github`.
2044 + Add `Ext_attributes` constructor for `Extension` [API change].
2046 * LaTeX template: use selnolig to selectively suppress ligatures with
2047 lualatex (#6534).
2049 * Benchmark bytestring readers (Nikolay Yakimov).
2051 * Documentation:
2053 + Update using-the-pandoc-api.md (favonia).
2054 + Fix Typos in lua-filters.md (tajmone).
2055 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
2056 headings for the extensions.
2057 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
2058 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
2059 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
2060 Replaces #6500, thanks to @ickc.
2064## pandoc 2.10 (2020-06-29)
2066 * Use pandoc-types 1.21. This adds two things:
2068 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
2069 + More expressive types for tables (#1024, Christian Despres).
2070 Tables can now take attributes; and rowspans and colspans,
2071 column headers, multiple row headers, table head and foot
2072 can all be represented. (Note, however, that reader and
2073 writer support for these features is still lacking, so
2074 most users won't see any differences in table conversion
2075 yet. These changes just lay the foundation for further
2076 improvements.)
2078 * Support new Underline element in readers and writers (#6277,
2079 Vaibhav Sagar).
2081 * Support new Table type (Christian Despres).
2082 The Builder.simpleTable now only adds a row to the TableHead
2083 when the given header row is not null. This uncovered an
2084 inconsistency in the readers: some would unconditionally
2085 emit a header filled with empty cells, even if the header
2086 was not present. Now every reader has the conditional
2087 behaviour. Only the XWiki writer depended on the header row
2088 being always present; it now pads its head as necessary.
2090 * Add an option to disable certificate validation (#6156, Cédric Couralet,
2091 Cécile Chemin, Juliette Fourcot). This commit adds the option
2092 `--no-check-certificate`, which disables certificate checking when
2093 resources are fetched by HTTP.
2095 * Unify defaults and markdown metadata parsers (#6328, Nikolay
2096 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
2097 properly handle errors in `yamlToMeta`. This fixes parsing
2098 of Boolean fields in metadata withinin defaults files and reduces
2099 code duplication.
2101 * Docbook reader:
2103 + Implement `<procedure>` (#6442, Mathieu Boespflug).
2104 + Implement `<phrase>` (#6438, Mathieu Boespflug).
2105 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
2106 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
2107 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
2109 * JATS reader:
2111 + Handle "label" element in section title (#6288).
2112 + Parse abstract element into metadata field of same name
2113 (#6480, Albert Krewinkel).
2115 * Jira reader (Albert Krewinkel):
2117 + Resolve multiple parsing problems, including issues with empty
2118 table cells, faulty recognition of closing emphasis characters, and
2119 parsing of image attributes (#6212, #6219, #6220).
2120 + Two consecutive markup chars are now parsed verbatim (#6343);
2121 styled text must not be empty.
2122 + Newlines are no longer allowed within styled text (#6325).
2123 + Links to anchors are now parsed as links (#6407).
2124 + Retain image attributes (#6234). Jira images attributes as in
2125 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
2126 images, such as `!example.gif|thumbnail!`, are marked by a
2127 `thumbnail` class in their attributes.
2128 + Use Underline for inserted text (#6237). Previously, the span was
2129 marked with the non-standard class `inserted`.
2130 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
2131 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
2132 + Support citations, attachment links, and user links (#6231, #6238,
2133 #6239).
2134 + Resolve parsing issues of blockquote, color (#6233, #6235).
2136 * HTML reader:
2138 + Parse attributes into table attributes.
2139 + Support `<bdo>` (#5794, Tristan de Cacqueray).
2140 + Add `summary` to list of block-level HTML tags (#6385).
2141 This improves support for summary/details inside Markdown.
2142 NOTE: you need to include a blank line before the closing
2143 `</details>`, if you want the last part of the content to
2144 be parsed as a paragraph.
2145 + Fix parsing unclosed th elements in a table (#6247).
2147 * Commonmark reader: Implement `implicit_figures` extension (#6350).
2149 * Markdown Reader:
2151 + Fix inline code in lists (#6284, Nikolay Yakimov).
2152 Previously inline code containing list markers was sometimes
2153 parsed incorrectly.
2154 + Don't require blank line after grid table (#6481).
2155 This allows grid tables to be enclosed in fenced divs with no
2156 intervening blank lines.
2158 * LaTeX reader:
2160 + Don't parse beyond `\end{document}` (#6380).
2161 This required some internal changes to `\subfile` handling.
2162 + Better handling of `\lettrine`. SmallCaps instead of Span
2163 for the part after the initial capital. Ensure that both
2164 arguments are parsed, so that in Markdown both
2165 are treated as raw LateX. (Closes #6258.)
2167 * Org reader (Albert Krewinkel):
2169 + Recognize images with uppercase extensions (#6472).
2170 + Keep unknown keyword lines as raw org. The lines of unknown
2171 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
2172 but kept as raw `org` blocks. This ensures that more information
2173 is retained when round-tripping org-mode files; additionally,
2174 this change makes it possible to support non-standard org
2175 extensions via filters.
2176 + Unify keyword handling. Handling of export settings and other
2177 keywords (like `#+LINK`) has been combined and unified.
2178 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
2179 settings. These export settings are treated like their non-extra
2180 counterparts, i.e., the values are added to the `header-includes`
2181 metadata list.
2182 + Allow multiple `#+SUBTITLE` export settings. The values of all
2183 lines are read as inlines and collected in the `subtitle`
2184 metadata field.
2185 + Read `#+INSTITUTE` values as text with markup. The value is
2186 stored in the `institute` metadata field and used in the
2187 default beamer presentation template.
2188 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
2189 settings has changed: Org now allows multiple such lines
2190 and adds a space between the contents of each line. Pandoc
2191 now always parses these settings as meta inlines; setting
2192 values are no longer treated as comma-separated lists.
2193 Note that a Lua filter can be used to restore the previous
2194 behavior.
2195 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
2196 are now treated as text with markup. If multiple such
2197 lines are given, then all lines are read and separated by soft
2198 linebreaks.
2199 + Honor tex export option (#4070). The `tex` export option can be set
2200 with `#+OPTION: tex:nil` and allows three settings:
2201 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
2202 as raw TeX. `nil` removes all LaTeX fragments from the document.
2203 `verbatim` treats LaTeX as text.
2206 * RST reader:
2208 + Pass arbitrary attributes through in code blocks (#6465).
2209 Exceptions: name (which becomes the id), class (which becomes the
2210 classes), and number-lines (which is treated specially to fit
2211 with pandoc highlighting).
2212 + Handle `date::` directive (#6276).
2214 * Textile reader: support `pre.` for code blocks (#6454).
2216 * Ipynb reader:
2218 + Implement `raw_markdown` extension (#5408). Specifying
2219 `-f ipynb+raw_markdown` will cause Markdown cells
2220 to be represented as raw Markdown blocks, instead of being
2221 parsed. This is not what you want when going from `ipynb`
2222 to other formats, but it may be useful when going from `ipynb`
2223 to Markdown or to `ipynb`, to avoid semantically insignificant
2224 changes in the contents of the Markdown cells that might
2225 otherwise be introduced.
2226 + Handle application/pdf output as image (#6430).
2227 + Properly handle image/svg+xml as an image (#6430).
2229 * Docx reader:
2231 + Distinguish between docx parsing and docx container unpacking errors.
2233 * MediaWiki reader:
2235 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
2237 * Vimwiki reader:
2239 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
2240 Nested syntaxes are specified like this:
2241 ```
2242 {{{sql
2243 SELECT * FROM table
2244 }}}
2245 ```
2246 The preformatted code block parser has been extended to check if the
2247 first attribute of the block is not a `key=value` pair, and in that
2248 case it will be considered as a class.
2251 * Jira writer (Albert Krewinkel):
2253 + Always escape braces (#6478). Braces are now always escaped, even
2254 within words or when surrounded by whitespace. Jira and
2255 Confluence treat braces specially.
2256 + Convert Underline to inserted text (`+inserted+`).
2257 + Add image attributes (#6234). Image attributes are added
2258 to the output as image parameters. If the image has a
2259 class "thumbnail", then a thumbnail image is generated;
2260 all other attributes are discarded in this case.
2262 * LaTeX writer:
2264 + Ensure that `-M csquotes` works even in fragment mode (#6265).
2265 + Escape `^` specially for listings (#6460).
2266 + Create hypertarget for links with identifier (#6360).
2267 + Distinguish between single and double quotes when using enquote
2268 package (#6457, dbecher-ito).
2269 + Add support for customizable alignment of columns in beamer (#6331,
2270 andrebauer).
2271 + Add support for customizable alignment of columns in beamer
2272 (#4805, #4150, andrebauer).
2274 * HTML writer:
2276 + Use CSS in favor of `<br>` for display math (#6372)
2277 Some CSS to ensure that display math is
2278 displayed centered and on a new line is now included
2279 in the default HTML-based templates; this may be
2280 overridden if the user wants a different behavior.
2282 * Org writer:
2284 + Clean-up Div handling (Albert Krewinkel).
2286 * Docx writer:
2288 + Enable column and row bands for tables (#6371).
2289 This change will not have any effect with the default style.
2290 However, it enables users to use a style (via a reference.docx)
2291 that turns on row and/or column bands.
2293 * OpenDocument (and ODT) writer:
2295 + Add custom-style "Abstract" in metadata abstract.
2296 This ensures that the abstract is rendered with style Abstract.
2297 + Enable custom-style attribute on a Div.
2298 This allows you to apply a custom style to contained paragraphs.
2300 * DocBook writer:
2302 + Add id of figure to enclosed image.
2303 + Add personname element to docbook author (#6244).
2305 * FB2 writer:
2307 + Properly handle cover-image containing spaces (#6391).
2309 * Markdown writer:
2311 + Ensure consistent padding for pipe tables (#6240).
2312 + Avoid unnecessary escapes before intraword `_` when
2313 `intraword_underscores` extension is enabled (#6296).
2315 * RST writer:
2317 + Properly handle images with same alt text (#6194).
2318 Previously we created duplicate references for these in rendering RST.
2320 * AsciiDoc writer:
2322 + Add blank line after Div (#6308).
2324 * Haddock Writer:
2326 + Support Haddock tables (Joe Hermaszewski).
2327 See this PR on Haddock for details on the table format:
2328 <https://github.com/haskell/haddock/pull/718>.
2330 * PowerPoint writer (Jesse Rosenthal):
2332 + Write math input verbatim in speaker notes (#6301).
2333 OMML in speaker notes would lead to corrupt PowerPoint output. We now
2334 output the OMML verbatim as LaTeX in the speaker notes.
2336 * LaTeX template: Make polyglossia package options list-aware
2337 (#6444, Frederik Elwert).
2339 * Reveal.js template:
2341 + Update template for reveal.js 4.0.0 (#6390, Salim B).
2342 + Update template with newly available options (#6347, Jake Zimmerman).
2343 + Use CDN version of revealjs v4 by default (#6408).
2345 * opendocument template: Add abstract and subtitle to opendocument
2346 template (#6369).
2348 * reference.odt: clean up styles. Add Abstract.
2349 Change Author, Date to centered paragraphs with no character
2350 styling.
2352 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
2353 This fixes a problem in iBooks v2.4 with our earlier
2354 horizontally scrolling code blocks. The problem seems to
2355 be a bug in iBooks, not pandoc, but since iBooks is a major
2356 target we're changing pandoc's default behavior so that
2357 pandoc-produced epubs work on that platform.
2359 * Text.Pandoc.PDF:
2361 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
2362 `wkhtmltopdf` changed in recent versions to require this for
2363 access to local files. This fixes PDF via HTML5 with `--css`.
2364 + Send verbose output to stderr, not stdout (#6483).
2366 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
2367 (#6464, Michael Reed).
2369 * Text.Pandoc.Shared:
2371 + `makeSections`: omit number attribute when unnumbered class
2372 is present (#6339). Previously the attribute was included but given
2373 an empty value, and this caused the table of contents creation
2374 functions in Text.Pandoc.Writers.Shared to think these items had
2375 numbers, which meant that they were included in the TOC even if the
2376 `unlisted` class was used.
2377 + Deprecate `underlineSpan` in Shared in favor of
2378 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
2379 + `renderTags'`: use self-closing tag for col element (#6295).
2381 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
2382 return the same value twice in a row. Make `getRandomUUID`
2383 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
2385 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
2387 * Fixed Katex standalone script (#6399, Lucas Escot).
2388 Global macros are now persistent when using the HTML Writer with the
2389 `--katex` option.
2391 * Lua subsystem (Albert Krewinkel):
2393 + Use new type PandocLua for all pandoc Lua operations (API change).
2394 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
2395 and can thus be used in a way similar to `PandocIO`.
2396 + Use PandocError for exceptions in Lua subsystem (API change).
2397 The PandocError type is used throughout the Lua subsystem. All Lua
2398 functions throw an exception of this type if an error occurs. The
2399 `LuaException` type is removed and no longer exported from
2400 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
2401 is added to PandocError.
2403 * Lua filters: improve error messages for failing filters (#6332,
2404 Albert Krewinkel). Print the Lua error properly instead of
2405 displaying their `show` string.
2407 * Use latest skylighting. This fixes a bug with lua multiline
2408 comments (and may improve handling of other syntaxes as well).
2409 IT also adds `aria-hidden="true"` to the empty a elements, which
2410 helps people who use screen readers.
2412 * Use latest texmath.
2414 * Require latest doctemplates 0.8.2.
2415 This adds support for template pipes `first`, `rest`,
2416 `last`, `allbutlast`.
2418 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
2419 been updated for ghc 8.10 (see #6187).
2421 * Dependency adjustments:
2423 + Allow haddock-library 1.9.x.
2424 + Allow hslua 1.1 (#6243, Felix Yan).
2425 + Allow base64-bytestring 1.1.
2426 + Use latest jira-wiki-markup.
2427 + Allow http-client 0.7.
2428 + Allow tasty 1.3.x.
2429 + Allow aeson 1.5 (#6400, Felix Yan).
2430 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
2431 + Bump QuickCheck upper bound.
2433 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
2434 #6209, #6225, #6229, #6226, #6340).
2436 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
2438 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
2440 * trypandoc improvements (Mike Tzou):
2442 + Add standalone option to the command text (#6210).
2443 + Update third party libraries.
2445 * MANUAL.txt:
2447 + Clarify template partial naming (#6476, Mauro Bieg).
2448 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
2449 Krewinkel). In the past, Jira's wiki markup was also used by -- and
2450 could be imported into -- Atlassian Confluence.
2451 + Add link to print-css.rocks (#6272, Mauro Bieg).
2452 + Clarify pipe table column width adjustment (#6254).
2453 + Fix ATX header syntax.
2454 + Fix misleading note about image size conversions (#6353).
2455 + Update links to reveal.js documentation (#6386, Salim B).
2456 + Separate adjacent verbatim code blocks (#6307, tom-audm).
2458 * org.md:
2460 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
2461 + Describe all supported export options in detail.
2463 * lua-filters.md:
2465 + Fix description of BulletList Lua type (Levi Gruspe).
2466 + Use pandoc.system module in TikZ example (Albert
2467 Krewinkel). Showcase temporary directory handling with
2468 `with_temporary_directory` and `with_working_directory`.
2470 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
2471 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
2472 The old pandoc port is still at version 1.5.1.1
2474 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
2476 * Bump `cabal-version` to 2.2 (#6377).
2478 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
2479 Boespflug).
2481 * CI action to check for commit message length (Nikolay Yakimov, #6398).
2484## pandoc 2.9.2.1 (2020-03-23)
2486 * Markdown reader: Fix table alignment when heading begins with t (#6153).
2487 Due to a typo (`t` instead of `\t`) we were center aligning column
2488 headings that begin with a lowercase `t`!
2490 * Text.Pandoc.Readers.Roff:
2492 + Fix parsing of `\.` in man/ms readers (#6175).
2493 Previously due to a typo it was being parsed as `` ` ``.
2494 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
2495 as a backtick.
2497 * Jira reader (Albert Krewinkel):
2499 + Fix parsing of tables without preceding blankline (#6198).
2500 A bug was fixed which caused faulty parsing if a table was not
2501 preceded by a newline and the first table cell had no space
2502 after the initial `|` characters.
2503 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
2504 caused non-emphasized text containing digits and/or non-special
2505 symbols (like dots) to sometimes be parsed incorrectly.
2506 + Support colored inline text, indented lists (#6183, #6184).
2508 * Ms writer:
2510 + Fix definition lists so indent even when paragraph indent is
2511 set to 0 (as is the default). Also ensure indent for display math
2512 that falls back to TeX.
2513 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
2515 * EPUB writer: fix regression on detection of front/back/bodymatter
2516 (#6170). This bug caused sections with epub:type `dedication` to be
2517 misplaced in bodymatter instead of frontmatter as specified
2518 in the manual. The same problem would affect other epub:types.
2519 The pattern matching needed to be changed with the use of
2520 `makeSection`.
2522 * AsciiDoc writer: remove redundant `otherwise` guard in
2523 `inlineToAsciiDoc` (#6146, Ryan Scott).
2525 * Text.Pandoc.Class:
2527 + Fix missing import when data files are not embedded (Albert Krewinkel).
2528 + Subdivide Text.Pandoc.Class into small unexported modules
2529 and ensure that all functions have Haddock documentation (#6106,
2530 Albert Krewinkel).
2531 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
2532 Krewinkel).
2534 * Text.Pandoc.XML: Add to list of HTML5 attributes:
2535 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
2536 `imagesizes`, `imagesrcset`, `loading`.
2538 * Use implicit Prelude (#6187, Albert Krewinkel).
2539 The previous behavior was introduced as a fix for #4464. It seems that
2540 this change alone did not fix the issue, and `stack ghci` and `cabal
2541 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
2542 for these versions. Given this, it seems cleaner to revert to the
2543 implicit Prelude.
2545 * Always use custom prelude (#6187, Albert Krewinkel).
2546 Previously, the custom prelude was used only with older GHC versions, as
2547 a workaround for problems with ghci. The ghci problems are resolved by
2548 replacing package `base` with `base-noprelude`, allowing for consistent
2549 use of the custom prelude across all GHC versions.
2551 * Remove outdated checks for no longer supported base versions
2552 (Albert Krewinkel).
2554 * PDF via wkhtmltopdf: put user-specified options last (#6171).
2555 Certain options (e.g. `cover`) need to come after flags on
2556 the command line.
2558 * Text.Pandoc.App: set resource path at the beginning so it can affect
2559 things like include-in-header (#5982).
2561 * Change macOS release candidate CI process so that notarized
2562 packages can be produced (#6169).
2564 * Make MANUAL more explicit about nonbreaking space handling by
2565 `all_symbols_escapable` (#6154, Fabien Schurter).
2567 * trypandoc (Mike Tzou):
2569 + Add checkbox for standalone option (#6189).
2570 + Use strict mode for JavaScript code (#6188).
2571 + Fetch resources over https (#6188).
2572 + Remove unnecessary attributes on style, script elements (#6188).
2574 * Use details tag to make GitHub releases changelog collapsible.
2576 * Update filter code in doc/filters.md so it works with latest pandoc
2577 (#6185).
2579 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
2580 This is used to build the static linux binaries.
2583## pandoc 2.9.2 (2020-02-15)
2585 * Add `csv` as an input format (#6100). The CSV table is converted into a
2586 pandoc simple table. A new module Text.Pandoc.Readers.CSV
2587 exports `readCSV` [API change].
2589 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
2591 - `jats_archiving` for the "Archiving and Interchange Tag Set",
2592 - `jats_publishing` for the "Journal Publishing Tag Set", and
2593 - `jats_articleauthoring` for the "Article Authoring Tag Set."
2595 The `jats` output format is now an alias for `jats_archiving`.
2596 The module Text.Pandoc.Writers.JATS now exports
2597 `writeJatsArchiving`, `writeJatsPublishing`, and
2598 `writeJatsArticleAuthoring`, as well as the legacy
2599 `writeJATS` [API change].
2601 * `--defaults`: Support `bibliography` and `csl` fields.
2602 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
2603 Text.Pandoc.App.Opt (internal change).
2605 * Add timing info for filters in `--verbose` mode (#6112).
2606 When verbose mode is specified (verbosity == INFO), print a
2607 notice when running a filter and when a filter completes (including
2608 timing).
2610 * LaTeX reader:
2612 + Allow `&` in LaTeX citation keys (#6110).
2613 + Improve caption and label parsing.
2614 + Don't emit empty Span elements for labels.
2615 + Put tables with labels in a surrounding Div.
2616 + Resolve `\ref` to table numbers (#6137).
2617 + Skip comments in more places where this is needed (#6114).
2618 + Allow beamer overlays for all commands in all raw tex (#6043).
2619 This affects parsing of raw tex in LaTeX and in Markdown and
2620 other formats.
2621 + Improve parsing of raw environments (#6034). If parsing fails
2622 in a raw environment (e.g. due to special characters like unescaped
2623 `_`), try again as a verbatim environment, which is less sensitive to
2624 special characters. This allows us to capture special environments
2625 that change catcodes as raw tex when `-f latex+raw_tex` is used.
2627 * RST reader:
2629 + Add highlight directive (#6140, Lucas Escot).
2631 * MediaWiki writer:
2633 + Prevent triple `[[[` which confuses MediaWiki (#6119).
2635 * HTML reader:
2637 + Don't parse `data-id` as `id` attribute. And similarly don't
2638 parse any `data-X` as `X` when `X` is a valid HTML attribute.
2640 * Org reader:
2642 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
2643 Speeds up parsing of single-word, markup-less sub- and superscripts.
2645 * LaTeX writer:
2647 + Group biblatex citations even with prefix and suffix (#5849, Ethan
2648 Riley). Previously biblatex citations were only grouped if there
2649 was no prefix. This patch allows them to be grouped in subgroups split
2650 by prefixes and suffixes, which allows better citation sorting.
2651 + Fix regression in handling of columns in beamer slides (#6033).
2652 Columns in title slides were causing problems with
2653 slide division.
2654 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
2656 * HTML writer:
2658 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
2659 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
2660 adding a parameter to `makeSections` so this could be done at that
2661 level; then it would also affect other writers that construct
2662 TOC manually.
2663 + reveal.js: restore old behavior for 2D nesting (#6032).
2664 The fix to #6030 actually changed behavior, so that the
2665 2D nesting occurred at slide level N-1 and N, instead of
2666 at the top-level section. This commit restores the v2.7.3 behavior.
2667 If there are more than 2 levels, the top level is horizontal
2668 and the rest are collapsed to vertical.
2669 + reveal.js: ensure that pauses work even in title slides (#5819).
2671 * Markdown writer:
2673 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
2675 * Docx writer:
2677 + Fix regression with Compact style on tight lists (#6072).
2678 Starting in 2.8, the docx writer no longer distinguishes between tight
2679 and loose lists, since the Compact style is omitted. This is a
2680 side-effect of the fix to #5670, as explained in the changelog. This
2681 patch fixes the problem by extending the exception currently offered to
2682 Plain blocks inside tables to Plain blocks inside list items.
2684 * Jira writer:
2686 + Fix output of table headers (Albert Krewinkel, #6035).
2688 * Add Text.Pandoc.Image with unexported svgToPng.
2690 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
2691 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
2692 [API change]
2694 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
2695 Joseph C. Sible).
2697 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
2698 constructors to LogMessage [API change].
2700 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
2701 would sometimes be inserted at the end.
2703 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
2704 (#6002). Otherwise we can get a clash with documentclasses that
2705 already load the package.
2707 * Lua filters:
2709 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
2710 Inline and Block elements can now be filtered via `Inlines` and
2711 `Blocks` functions, respectively. This is helpful if a filter
2712 conversion depends on the order of elements rather than a single
2713 element. For example, the following filter can be used to remove all
2714 spaces before a citation:
2716 function isSpaceBeforeCite (spc, cite)
2717 return spc and spc.t == 'Space'
2718 and cite and cite.t == 'Cite'
2719 end
2721 function Inlines (inlines)
2722 for i = #inlines-1,1,-1 do
2723 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
2724 inlines:remove(i)
2725 end
2726 end
2727 return inlines
2728 end
2730 + Add methods `insert`, `remove`, and `sort` to pandoc.List
2731 (Albert Krewinkel). Example of use:
2733 local numbers = pandoc.List {2, 3, 1}
2734 numbers:sort() -- numbers is now {1, 2, 3}
2735 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
2736 It is now possible to construct a new List via
2737 `pandoc.List()` instead of `pandoc.List:new()`.
2738 + Add tests for pandoc.List module (Albert Krewinkel).
2740 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
2741 instead of `String`. This avoids some unnecessary unpacking.
2743 * Use versioned directory for windows release zipfile.
2744 Also remove old `make-windows-installer.bat`, superseded by GitHub
2745 actions workflow, and modify `pandoc.wxs` for new paths.
2747 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
2748 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
2750 * Fix hlint warnings (Albert Krewinkel).
2752 * Use latest doclayout, doctemplates (#6031). The new version of
2753 doclayout fixes a memory leak that affected `--include-in-header` with
2754 large files (and possibly other cases involving extremely long lines).
2756 * Use latest texmath.
2758 * Use latest skylighting and fix test suite (#6086).
2760 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
2761 Fix typo in error message (#6135).
2763 * Add Docker and GH Actions instructions/links to INSTALL.md.
2765 * Update filter documentation (#6065). Improve cabal v2 instructions.
2766 Remove example using pandoc API directly (we have other
2767 docs for that and it was outdated).
2769 * Lua filter docs:
2771 + Cross-link constructors and types (Albert Krewinkel).
2772 Thanks to @bpj for the idea.
2773 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
2774 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
2775 Links and anchors now follow consistent conventions, like
2776 lowercase-only anchor names. This breaks some links to specific
2777 sections in the document, but will make it much easier to link
2778 documentation in the future.
2779 + Clarify filter function execution order (#6059, Albert Krewinkel).
2781 * In docs, update URLs and use `https:` wherever possible (#6090,
2782 Salim B).
2784## pandoc 2.9.1.1 (2020-01-05)
2786 * Markdown reader:
2788 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
2790 * LaTeX writer:
2792 + Fix regression in beamer slide structure with certain slide levels
2793 (#6030).
2794 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
2795 + Properly handle unnumbered headings level 4+ (#6018).
2796 Previously the `\paragraph` command was used instead of
2797 `\paragraph*` for unnumbered level 4 headings.
2799 * HTML writer:
2801 + Fix revealjs slide structure regression with certain slide levels
2802 (#6030).
2803 + Add newlines to make slide show output more readable.
2805 * Org writer:
2807 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
2809 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
2810 and interchange DTD rather than the more restrictive journal publishing
2811 DTD (which doesn't permit ext-link as a valid child).
2813 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
2814 overwritten (#6027). Previously it wasn't overridden if the file already
2815 existed, which led to bad results on subsequent runs when
2816 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
2817 dir.
2819 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
2820 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
2821 with block-level content. `getLang` has been modified to handle this.
2822 Previously in these cases the LaTeX writer would not properly set the
2823 "main language" of the document.
2825 * Fix `test/tables.org` (Albert Krewinkel).
2827 * Use HTTPS in copyright message (Felix Yan, #6010)
2830## pandoc 2.9.1 (2019-12-23)
2832 * Add Jira reader (Albert Krewinkel, #5556).
2834 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
2835 #5926). The following improvements are included in this change:
2837 + non-jira raw blocks are fully discarded instead of showing
2838 as blank lines;
2839 + table cells can contain multiple blocks;
2840 + unnecessary blank lines are removed from the output;
2841 + markup chars within words are properly surrounded by
2842 braces;
2843 + preserving soft linebreaks via `--wrap=preserve` is
2844 supported.
2846 Note that backslashes are rendered as HTML entities, as there
2847 appears no alternative to produce a plain backslash if it is
2848 followed by markup. This may cause problems when used with
2849 confluence, where rendering seems to fail in this case.
2851 * Fix regression with `--number-sections`. Starting with 2.8,
2852 `--number-sections` also had the effect of `--section-divs`,
2853 even if `--section-divs` was not specified.
2855 * Improved table of contents generation in markdown, RTF,
2856 commonmark, better handling cases where section headings are
2857 enclosed in divs.
2859 * Ensure that later default file values for `variable` replace
2860 earlier ones (5988).
2862 * HTML reader: Add `nav` to list of block-level tags.
2864 * Org reader (Albert Krewinkel):
2866 + Wrap named table in Div, using name as id (#5984).
2867 Tables which are given a name via `#+NAME:` or `#+LABEL:`
2868 are wrapped in an additional Div, with the name set as the
2869 Div's ID.
2870 + Report parsing errors properly.
2871 + Fix parsing problem for colons in headline (#5993).
2873 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
2874 `--verbose` mode, avoiding an error on platforms that
2875 default to something other than UTF-8 (#5997).
2877 * Text.Pandoc.Templates: Strip directory before trying to find
2878 partial in data files (#5987).
2880 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
2881 doubled "number" attributes in EPUB output (or anywhere
2882 else) (#5986).
2884 * Added tests for `--toc` and `--section-divs`.
2886 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
2887 Jared Lander).
2889 * MANUAL: A bit clearer explanation for `--base-header-level`.
2890 We now say exactly how to translate between the deprecated
2891 `--base-header-level` and `--shift-heading-level-by`.
2893 * lua-filters.md:
2895 + Remove spurious dot in title (#5996, Mauro Bieg).
2896 + Replace metadata example with image centering (#6004,
2897 Albert Krewinkel). Thanks to @efx for proposing this filter.
2900## pandoc 2.9 (2019-12-11)
2902 * Text.Pandoc.Templates [API change]
2904 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
2905 Wrapping these around an instance of `PandocMonad` gives
2906 us different instances of `TemplateMonad`, with different
2907 search behavior in retrieving partials.
2908 To compile a template and limit partial search to pandoc's
2909 data files, use `runWithDefaultPartials (compileTemplate ...)`.
2910 To compile a template and allow partials to be found locally
2911 (either on the file system or via HTTP, in the event that
2912 the main template has an absolute URL), ue
2913 `runWithPartials (compileTemplate ...)`.
2914 + Export `getTemplate`, which seeks a template locally,
2915 or via HTTP if the template has an absolute URL, falling
2916 back to the data files if not found.
2917 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
2918 and compiles the result, raising an error on failure.
2920 * Text.Pandoc.Class [API change]
2922 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
2923 These were too limiting and caused a bug whereby a local
2924 partial could be used even when the default template was requested.
2925 We now rely on instances provided in the Templates module.
2927 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
2929 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
2930 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
2931 elements: otherwise longer titles that run over multiple lines will look
2932 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
2934 * reveal.js template: Add title-slide-attributes variable (#5981,
2935 Frederik Elwert).
2937 * More informative JSON parse error (#5973).
2939 * Use external emojis package (forked from pandoc). Removed emoji data
2940 in Text.Pandoc.Emoji.
2942 * Fix regression in `makeSections` (#5965).
2943 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
2944 header attributes on the containing Div. In 2.8 this behavior changed,
2945 which broke some tools depending on pandoc. Here we roll back this change,
2946 so that attributes again migrate from the header to the containing Div when
2947 `makeSections` is run. Note that attributes are retained on the header as
2948 well (unlike before) -- with the exception of the `id` attribute, which of
2949 course cannot be duplicated.
2951 * Fix `--toc-depth` regression in 2.8 (#5967).
2953 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
2954 to avoid confusion with the other notion of filter used by pandoc.
2956 * Fix README.md so that relative links from manual become absolute.
2957 Previously they'd be broken links when viewed on GitHub or Hackage.
2958 So we add the base URL for the pandoc manual.
2960 * Document display math syntax in manual.
2962## pandoc 2.8.1 (2019-12-05)
2964 * Add `ascii_identifiers` as a supported extension for `markdown`.
2965 This fixes a regression in 2.8.
2967 * Fix regression with behavior of `--variable` (#5962).
2968 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
2969 with 2.8 it produced just `2`. This commit restores the earlier
2970 behavior.
2972 * Roll back part of of `--shift-heading-level-by` change (#5957).
2973 With positive heading shifts, starting in 2.8 this option
2974 caused metadata titles to be removed and changed to regular
2975 headings. This behavior is incompatible with the old
2976 behavior of `--base-header-level` and breaks old workflows,
2977 so we have rolled back the change. Note that there is now an
2978 asymmetry in positive and negative heading level shifts:
2979 With positive shifts, the metadata title stays the same and
2980 does not get changed to a heading in the body, while with
2981 negative shifts, a heading can be converted into the
2982 metadata title.
2984 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
2985 column Divs into sections.
2987 * HTML writer: add task-list class to ul if all elements are
2988 task list items. This will allow styling unordered task
2989 lists in a way that omits the bullet.
2991 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
2993 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
2994 conventions (#5945, Denis Maier). The old version had a too large
2995 a skip at the beginning of the reference list.
2997 * LaTeX template: keep the `\author{}` command even if author is not
2998 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
3000 * Generate Emoji module with TH.
3002 + Add Text.Pandoc.Emoji.TH.
3003 + Replace long literal list in Text.Pandoc.Emoji with one-liner
3004 generating it from `emoji.json` using TH.
3005 + Add Makefile target to download `emoji.json`.
3006 + Remove `tools/emoji.hs`.
3008 * Increase GC allocation space for compilation in cabal.project.
3010 * Clean up manual on PDF generation backend options (#5940).
3012 * Update release checklist to include code signing step and update
3013 Windows release-candidate builds (#5950).
3016## pandoc 2.8.0.1 (2019-11-26)
3018 * List `pdf` in `--list-output-formats`.
3019 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
3020 would not have an effect on EPUB output.
3021 * RST writer: Use grid tables for one-column tables, since
3022 simple tables clash with heading syntax in this case (#5936).
3023 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
3024 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
3025 templates.
3026 * Update default man template using `nowrap` for .TH heading (#5929).
3027 * HTML templates: Add support for `toc-title` variable (#5930,
3028 Alexandre Franke).
3029 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
3030 (#5927, Ian Max Andolina).
3031 * Use skylighting 0.8.3.
3033## pandoc 2.8 (2019-11-22)
3035 * Improvements in templates system (from doctemplates):
3037 + Pandoc templates now support a number of new features that
3038 have been added in doctemplates: notably, `elseif`, `it`,
3039 partials, filters, and syntax to control nesting and reflowing of
3040 text. These changes make pandoc more suitable out of the
3041 box for generating plain-text documents from data in YAML
3042 metadata. It can create enumerated lists and even tabular
3043 structures.
3044 + We now used templates parameterized on doclayout Doc types.
3045 The main impact of this change is better reflowing of
3046 content interpolated into templates. Previously,
3047 interpolated variables were rendered independently and
3048 interpolated as strings, which could lead to overly long
3049 lines. Now the templates interpolated as Doc values which
3050 may include breaking spaces, and reflowing occurs after
3051 template interpolation rather than before.
3052 + Remove code from the LaTeX, Docbook, and JATS writers that
3053 looked in the template for strings to determine whether it
3054 is a book or an article, or whether csquotes is used. This
3055 was always kludgy and unreliable.
3056 + Change template code to use new API for doctemplates.
3058 * Add `--defaults`/`-d` option. This adds the ability to specify
3059 a collection of default values for options in a YAML file. For
3060 example, one might define a set of defaults for letters,
3061 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
3062 See the documentation of this feature in MANUAL.txt.
3064 * Raise error on unsupported extensions (#4338).
3066 * The `--list-extensions[=FORMAT]` option now lists only
3067 extensions that affect the given FORMAT.
3069 * Add `-L` option as shortcut for `--lua-filter`.
3071 * Add `--shift-heading-level-by` option and deprecate
3072 `--base-heading-level` (#5615). The new option does
3073 everything the old one does, but also allows negative shifts.
3074 It also promotes the document metadata (if not null) to a
3075 level-1 heading with a +1 shift, and demotes an initial
3076 level-1 heading to document metadata with a -1 shift. This
3077 supports converting documents that use an initial level-1
3078 heading for the document title.
3080 * Allow `--metadata-file` to be used repeatedly to include
3081 multiple metadata files (Owen McGrath, #5702). Values in
3082 files specified first will be overridden by those in later
3083 files.
3085 * `--ascii` now uses numerical hex character references (#5718).
3087 * Allow PDF output to stdout (#5751). PDF output now behaves like other
3088 binary formats: it will not be output to the terminal, but can be
3089 sent to stdout using either `-o -` or a pipe. The intermediate format
3090 will be determined based on the setting of `--pdf-engine`.
3092 * Make some writers sensitive to 'unlisted' class on headings (#1762).
3093 If this is present on a heading with the 'unnumbered' class,
3094 the heading won't appear in the TOC. This class has no
3095 effect if 'unnumbered' is not also specified. This affects HTML-based
3096 writers (including slide shows and EPUB), LateX (including beamer), RTF,
3097 and PowerPoint. Other writers do not yet support `unlisted`.
3099 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
3100 we also now use emoji names for emojis when `ascii_identifiers`
3101 is enabled.
3103 * When `--ipynb-output` is used with the default "best" format, strip
3104 ANSI escape codes for non-ipynb output (#5633). These cause problems
3105 in many formats, including LaTeX.
3107 * Don't look for template files remotely for remote input (#5579).
3108 Previously pandoc would look for the template at a remote URL when a
3109 URL was used for the input file, instead of taking it from the
3110 data directory.
3112 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
3113 Previously `header-includes` set as a variable would be
3114 clobbered by material included using `--include-in-header`.
3116 * Change merge behavior for metadata. Previously, if a document
3117 contained two YAML metadata blocks that set the same field, the
3118 conflict would be resolved in favor of the first. Now it is resolved
3119 in favor of the second (due to a change in pandoc-types).
3120 This makes the behavior more uniform with other things in pandoc
3121 (such as reference links and `--metadata-file`).
3123 * Don't add a newline to fragment output if there's already one.
3125 * Change exit codes and document in MANUAL.txt:
3127 + `PandocAppError` was 1, is now 4
3128 + `PandocOptionError` was 2, is now 6
3129 + `PandocMakePDFError` was 65, is now 66
3131 * Switch to new pandoc-types and use Text instead of String [API change].
3132 (Christian Despres, #5884).
3134 * HTML reader:
3136 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
3137 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
3138 element with an inner Span.
3139 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
3140 The `<samp>` element is parsed as Code with class `sample`.
3141 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
3142 The `<var>` element is parsed as Code with class `variable`.
3143 + Add support for `<mark>` elements (Florian B, #5797). Parse
3144 `<mark>` elements from HTML as Spans with class `mark`.
3145 + Add support for `<kbd>` elements, parsing them as Span with class
3146 `kbd` (Daniele D'Orazio, #5796).
3147 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
3148 (#5882, Florian Beeres).
3150 * Markdown reader:
3152 + Headers: don't parse content over newline boundary (#5714).
3153 + Handle inline code more eagerly within lists (Brian Leung, #5627).
3154 + Removed some needless lookaheads.
3155 + Don't parse footnote body unless extension enabled.
3156 + Fix small super/subscript issue (#5878). Superscripts and subscripts
3157 cannot contain spaces, but newlines were previously allowed
3158 (unintentionally). This led to bad interactions in some cases
3159 with footnotes. With this change newlines are also not allowed inside
3160 super/subscripts.
3161 + Use `take1WhileP` for `str`, table row. This yields a small but
3162 measurable performance improvement.
3165 * LaTeX reader:
3167 + Fix parsing of optional arguments that contain braced text (#5740).
3168 + Don't try to parse includes if `raw_tex` is set (#5673).
3169 When the `raw_tex` extension is set, we just carry through
3170 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
3171 + Properly handle optional arguments for macros (#5682).
3172 + Fix `\\` in `\parbox` inside a table cell (#5711).
3173 + Improve `withRaw` so it can handle cases where the token string is
3174 modified by a parser (e.g. accent when it only takes part of a Word
3175 token) (#5686). This fixes a bug that caused the ends of
3176 certain documents to be dropped.
3177 + Handle `\passthrough` macro used by latex writer (#5659).
3178 + Support tex `\tt` command (#5654).
3179 + Search for image with list of extensions like latex does, if an
3180 extension is not provided (#4933).
3181 + Handle `\looseness` command values better (#4439).
3182 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
3183 When `+raw_tex` is enabled, these are passed through literally.
3184 Otherwise, they are handled in a way that emulates LaTeX's behavior.
3185 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
3186 They are now ignored if the corresponding command or environment
3187 is already defined.
3188 + Support epigraph command in LaTeX Reader (oquechy, #3523).
3189 + Ensure that expanded macros in raw LaTeX end with a space
3190 if the original did (#4442).
3191 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
3192 + Add `tikzcd` to list of special environments (Eigil Rischel).
3193 This allows it to be processed by filters, in the same way that
3194 one can do for `tikzpicture`.
3196 * Roff reader:
3198 + Better support for `while`.
3199 + More improvements in parsing conditionals.
3200 + Fix problem parsing comments before macro.
3201 + Improve handling of groups.
3202 + Better parsing of groups (#5410). We now allow groups
3203 where the closing `\\}` isn't at the beginning of a line.
3205 * RST reader:
3207 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
3208 + Fixed parsing of indented blocks (#5753). We were requiring
3209 consistent indentation, but this isn't required by RST.
3210 + Use title, not admonition-title, for admonition title.
3211 This puts RST reader into alignment with docbook reader.
3212 + Don't strip final underscore from absolute URI (#5763).
3213 + Avoid spurious warning when resolving links to internal anchors
3214 ending with `_` (#5763).
3216 * Org reader:
3218 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
3219 Attributes for LaTeX output are accepted as valid block attributes;
3220 however, their values are ignored.
3221 + Modify handling of example blocks (Brian Leung, #5717).
3222 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
3223 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
3224 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
3225 reasonable way, but their other components can be
3226 positioned otherwise.
3227 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
3228 Comment lines in Org-mode can be completely empty.
3230 * Muse reader (Alexander Krotov):
3232 + Add RTL support (#5551).
3233 + Do not allow closing asterisks to be followed by `*`.
3234 + Do not split series of asterisks into symbols and emphasis (#5821).
3235 + Do not terminate emphasis on `*` not followed by space.
3237 * DokuWiki reader:
3239 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
3241 * Docx reader:
3243 + Move style-parsing-specific code to a new unexported module,
3244 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
3245 + Move StyleMap to docx writer (Nikolay Yakimov).
3246 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
3247 Rosenthal). The left-to-right direction setting in docx is used
3248 in the spec only for overriding an explicit right-to-left setting.
3249 We only process it when it happens in a paragraph set with BiDi.
3250 This is especially important for docs exported from Google Docs,
3251 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
3252 + Fix list number resumption for sublists (#4324).
3253 The first list item of a sublist should not resume numbering
3254 from the number of the last sublist item of the same level,
3255 if that sublist was a sublist of a different list item.
3257 * Docbook reader:
3259 + Richer parse for admonitions (Michael Peyton Jones, #1234).
3260 Instead of parsing admonitions as blockquotes, we now parse
3261 them as Divs with an appropriate class. We also handle titles
3262 for admonitions as a nested Div with the "title" class.
3263 + Fix nesting of chapters and sections (#5864, Florian Klink,
3264 Félix Baylac-Jacqué).
3265 + Fix bug with entities in mathphrase element (#5885).
3267 * MediaWiki reader:
3269 + Skip optional `{{table}}` template (#5757).
3271 * LaTeX reader:
3273 + Fix dollar-math parsing to ensure that space is left between a
3274 control sequence and a following letter (#5836).
3275 + In `untokenize`, ensure space between control sequence
3276 and following letter (#5836).
3277 + Don't omit macro definitions defined in the preamble.
3278 These were formerly omitted (though they still affected macro
3279 resolution if `latex_macros` was set). Now they are included in
3280 the document body.
3281 + Parse macro definitions as raw LaTeX when `latex_macros` is
3282 disabled. (When `latex_macros` is enabled, we omit them, since
3283 pandoc is applying the macros itself.)
3284 + Fix a hang/memory leak in certain circumstances (#5845).
3285 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
3286 `rawLaTeXParser`. This allows us to repeat retokenizing
3287 unnecessarily in e.g. `rawLaTeXBlock`.
3288 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
3289 Add all titling commands to existing definition for `\dedication`.
3290 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
3292 * Markdown writer:
3294 + Ensure proper nesting when we have long ordered list markers (#5705).
3295 + Make `plain` output plainer (#5741). Previously we used the following
3296 Project Gutenberg conventions for plain output: extra space before and
3297 after level 1 and 2 headings, all-caps for strong emphasis,
3298 underscores surrounding regular emphasis. Now these
3299 conventions are used only when the `gutenberg` extension is
3300 enabled. By default, Strong and Emph are rendered without
3301 special formatting, and headings are rendered without
3302 special formatting, and with only one blank line following.
3303 To restore the former behavior, use `-t plain+gutenberg`.
3304 + Prefer using raw_attribute when enabled (#4311).
3305 The `raw_attribute` will be used to mark raw bits, even HTML
3306 and LaTeX, and even when `raw_html` and `raw_tex` are
3307 enabled, as they are by default. To get the old behavior,
3308 disable `raw_attribute` in the writer.
3309 + Prefer `pipe_tables` to raw HTML even when we must
3310 lose width information (#2608, #4497).
3311 + Improve escaping in list items (#5918).
3313 * AsciiDoc writer:
3315 + Don't include `+` in code blocks for regular asciidoc.
3316 This is asciidoctor-specific.
3317 + Handle admonitions (#5690).
3319 * LaTeX writer:
3321 + Add thin space when needed in LaTeX quote ligatures (#5684).
3322 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
3323 + Use `cslreferences` environment for csl bibliographies.
3324 This allows bibliographies to receive special formatting.
3325 The template now contains definition of this environment (enabled
3326 only when CSL is used). It also defines a `\cslhangindent` length.
3327 This is set to 2em by default when the bibliography style specifies
3328 a hanging indent. To override the length, you can use e.g.
3329 `\setlength{\cslhangindent}{7em}` in header-includes.
3330 See jgm/pandoc-citeproc#410.
3331 + Strip off `{}` around locator for biblatex/natbib output (#5722).
3332 + Fix line breaks at start of paragraph (#3324).
3333 Previously we just omitted these. Now we render them
3334 using `\hfill\break` instead of `\\`. This is a revision
3335 of a PR by @sabine (#5591) who should be credited with the idea.
3336 + We no longer look in the template or header-includes to see if a
3337 book or article documentclass is used, or to see whether the
3338 `csquotes` package is used. To use `csquotes` for LaTeX, set
3339 `csquotes` in your variables or metadata. To specify a book
3340 style, use the `documentclass` variable or
3341 `--top-level-division`.
3342 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
3343 `\linethickness`, which apparently only ever worked "by accident"
3344 and no longer works with recent updates to texlive.
3346 * ConTeXt writer:
3348 + Add option to include source files in ConTeXt PDFs (Tristan
3349 Stenner, #5578). The metadata field or variable
3350 (`includesource`) can be set to attach the source documents
3351 to the resulting PDF.
3352 + Customizable type of PDF/A for the ConTeXt writer (Karl
3353 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
3354 Also updated color profile settings in accordance with ConTeXt wiki,
3355 and made ICC profile and output intent for PDF/A customizable
3356 using `pdfaiccprofile` and `pdfaintent`.
3357 + Unit tests: adjust code property to avoid an irrelevant
3358 failure involving inline code with two consecutive newlines.
3359 + Set `csl-hanging-indent` variable if needed.
3360 + Use special environment for CSL references.
3361 + Use braces, not start/stop, for inline language tags.
3362 This prevents unwanted gobbling of spaces.
3364 * HTML writer:
3366 + Use numeric character references with `--ascii` (#5718).
3367 Previously we used named character references with html5 output.
3368 But these aren't valid XML, and we aim to produce html5 that is
3369 also valid XHTML (polyglot markup). (This is also needed for epub3.)
3370 + Ensure that line numbers in code blocks get id-prefix (#5650).
3371 + Ensure TeX formulas are rendered correctly (Philip Pesca,
3372 #5658). The web service passed in to `--webtex` may render
3373 formulas using inline or display style by default.
3374 Prefixing formulas with the appropriate command ensures
3375 they are rendered correctly.
3376 + Render inline formulas correctly with `--webtex` (Philip
3377 Pesca, #5655). We add `\textstyle` to the beginning of the
3378 formula to ensure it will be rendered in inline style.
3379 + Pass through `aria-` attributes to HTML5 (#5642).
3380 + Render a Quoted element with an inner Span with
3381 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
3382 + Render a Span with class `mark` using the `<mark>` element
3383 (Florian Beeres, #5797).
3384 + Render Span with class `dfn` using `<dfn>` element
3385 (Florian Beeres, #5882).
3386 + Render Span with class `kbd` using `<kbd>` element (Daniele
3387 D'Orazio, #5796).
3388 + Render Code with class `variable` using `<var>` element
3389 (Amogh Rathore, #5799).
3390 + Render Code with class `sample` using `<samp>` element
3391 (Amogh Rathore, #5799).
3393 * EPUB writer:
3395 + Improve splitting into chapters (#5761), using `makeSection`.
3396 + Avoid issuing warning multiple times when title not set (see #5760).
3397 + Use svg tag wrapper for cover image (#5638). In addition, the
3398 code generating the image has been moved to the template, to make it
3399 more customizable. NOTE: Those who use custom EPUB
3400 templates will need to adjust their templates, adding the
3401 code to generate the cover image. (Previously this was just
3402 inserted into 'body'.)
3403 + Improve toChapters, making it work better if there are Divs
3404 around sections.
3405 + Add support for EPUB2 covers (blmage, #3992).
3406 + Do not override existing "fileN" medias when writing to EPUB format
3407 (blmage, #4206).
3408 + Ensure that `lang` variable is set on all chapters (so that it
3409 will add an `xml:lang` attribute on the `html` element).
3411 * RST writer:
3413 + Removed remnants of `admonition-title`.
3414 + Fix handling of `:align:` on figures and images (#4420).
3415 When the image has the `align-right` (etc.) class, we now use
3416 an `:align:` attribute.
3417 + Improve spacing for tables with no width information (#5899).
3418 If a simple table would be too wide, we use a grid table.
3419 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
3420 The check whether a complex inline element following a string must
3421 be escaped, now depends on the last character of the string instead
3422 of the first.
3423 + Ensure there's a blank line before tables (#5898).
3425 * Dokuwiki writer:
3427 + Handle mixed lists without HTML fallback (#5107).
3429 * XWiki writer:
3431 + Fix multiline table (Zihang Chen, #5683).
3433 * Muse writer:
3435 + Add RTL support (Alexander Krotov, #5551).
3437 * Man writer:
3439 + Suppress non-absolute link URLs (#5770). Absolute URLs are
3440 still printed in parentheses following the link text, but relative
3441 URLs are suppressed (just as internal links starting with '#'
3442 always have been).
3443 + Improved definition list term output. Now we boldface code but
3444 not other things. This matches the most common style in man pages
3445 (particularly option lists).
3447 * Ms writer:
3449 + Use `.LP` instead of `.PP` for line block (#5588).
3450 + Use boldface for definition terms in DefinitionLists.
3452 * JATS writer:
3454 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
3455 + Update template to v1.1dtd (#5632, Arfon Smith).
3456 + Update `data/jats.csl` to avoid commas between editor
3457 name-part elements. (#5629)
3458 + Add `abstract` to template (Mauro Bieg).
3460 * TEI writer:
3462 + Don't strip hash from internal links (#5922).
3464 * Jira writer:
3466 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
3467 + Remove extraneous newline after single-line block quotes
3468 (#5858, Albert Krewinkel).
3469 + Improve escaping of special characters, using backslash escapes
3470 instead of HTML entities (#5858, Albert Krewinkel).
3472 * OpenDocument writer:
3474 + Avoid duplicate attributes (#4634). We use the innermost
3475 attribute in nested cases.
3476 + If `native_numbering` extension is set, use native OpenDocument
3477 enumeration for figures and tables (Nils Carlson).
3478 + Place caption before table (#5681, Dmitry Pogodin).
3480 * ODT writer:
3482 + Add a test for MathML formulas in ODT documents (blmage).
3483 + Improve the parsing of frames in ODT documents (blmage).
3485 * Docx writer:
3487 + Make handling of styles more robust in localized versions
3488 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
3489 style names, not ids, for assigning semantic meaning, since
3490 the ids can change depending on the locale. Style name
3491 comparisons are case-insensitive, since those are
3492 case-insensitive in Word. Since docx style names can have
3493 spaces in them, and pandoc-markdown classes can't, anywhere
3494 when style name is used as a class name, spaces are
3495 replaced with ASCII dashes `-`. Code styles, i.e. "Source
3496 Code" and "Verbatim Char" now honor style inheritance. Docx
3497 Reader now honours "Compact" style (used in
3498 Pandoc-generated docx). The side-effect is that "Compact"
3499 style no longer shows up in docx+styles output. Styles
3500 inherited from "Compact" will still show up.
3501 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
3502 + Internal improvements and code simplification (Nikolay Yakimov).
3503 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
3504 #5670). This change prevents custom styles on divs and spans
3505 from overriding styles on certain elements inside them, like
3506 headings, blockquotes, and links. On those elements, the
3507 "native" style is required for the element to display correctly.
3508 This change also allows nesting of custom styles; in order to do so,
3509 it removes the default "Compact" style applied to Plain blocks,
3510 except when inside a table.
3511 + Add `proofState` to list of elements carried over from
3512 settings.xml in the reference.docx (Krystof Beuermann, #5703).
3513 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
3514 Martín Barbero, #5645). Also, make list para properties go first.
3515 This reordering of properties shouldn't be necessary but
3516 it seems Word Online does not understand the docx correctly otherwise.
3518 * PowerPoint writer:
3520 + Code formatting is now context dependent (Jeroen de Haas, #5573).
3521 This commit alters the way in which the Powerpoint writer treats
3522 inline code and code blocks. Inline code is now formatted at
3523 the same size as the surrounding text. Code blocks are now given
3524 a margin and font size according to their level.
3525 Furthermore this commit allows changing the font with which code is
3526 formatted via the `monofont` option.
3527 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
3528 Starting numbers for ordered lists were previously ignored. Now
3529 we specify the number if it is something other than 1.
3531 * Text.Pandoc.Parsing:
3533 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
3534 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
3535 unsuffixed counterparts but pack some or all of their output
3536 (Christian Despres, #5884).
3537 + Add `stateAllowLineBreaks` to `ParserState` [API change].
3538 + Fix inline parsing in grid table cells (#5708).
3539 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
3540 rather than a `SourcePos` [API change].
3541 + Make `parseFromString'` and `gridTableWith` and
3542 `gridTableWith'` polymorphic in the parser state,
3543 constraining it with `HasLastStrPosition` [API change].
3544 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
3545 + Rename takeWhileP -> take1WhileP and clean it up.
3546 (It doesn't match the empty sequence.)
3548 * Text.Pandoc.PDF:
3550 + For PDFs via HTML, ensure temp file is deleted even if the pdf
3551 program is not found (#5720).
3552 + Better detection of a Cygwin environment (#5451).
3553 + Don't assume tex log file is UTF8-encoded (#5872).
3554 Fall back to latin1 if it can't be read as UTF-8.
3556 * Text.Pandoc.Extensions:
3558 + Export new function `getAllExtensions`, which returns the
3559 extensions that affect a given format (whether enabled by default
3560 or not) [API change].
3561 + Change type of `parseFormatSpec` from
3562 `Either ParseError (String, Extensions -> Extensions)`
3563 to `Either ParseError (String, [Extension], [Extension])`
3564 [API change].
3565 + Add `Ext_gutenberg` constructor to `Extension` [API change].
3566 + Add `Ext_native_numbering` constructor to `Extension` [API change]
3567 (Nils Carlson).
3569 * Text.Pandoc.Readers, Text.Pandoc.Writers:
3571 + Change type of `getReader` and `getWriter` so they return
3572 a value in the PandocMonad instance rather than an Either
3573 [API change]. Exceptions for unknown formats and unsupported
3574 extensions are now raised by these functions.
3576 * Text.Pandoc.App
3578 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
3579 (Owen McGrath, #5702) [API change].
3581 * Text.Pandoc.Logging:
3583 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
3584 Issue this warning when we're falling back to markdown or
3585 html because we don't recognize the extension of the input or
3586 output files.
3587 + Clarify warning for missing title (#5760).
3588 + Add `UnusualConversion` constructor to `LogMessage` [API change]
3589 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
3591 * Lua filters:
3593 + Improve function documentation (Albert Krewkinkel).
3594 + Traverse nested blocks and inlines in correct order (Albert
3595 Krewinkel, #5667). Traversal methods are updated to use the new
3596 Walk module so that sequences with nested Inline (or Block) elements
3597 are traversed in the order in which they appear in the linearized
3598 document.
3599 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
3600 Lua filters must be able to traverse sequences of AST
3601 elements and to replace elements by splicing sequences back
3602 in their place. Special `Walkable` instances can be used for
3603 this; those are provided in a new module
3604 `Text.Pandoc.Lua.Walk`.
3605 + `Attr` values can now be given as normal Lua tables (Albert
3606 Krewinkel, #5744). This can be used as a convenient alternative
3607 to constructing `Attr` values with `pandoc.Attr`. Identifiers
3608 are taken from the `id` field, classes must be given as
3609 space separated words in the `class` field. All remaining fields
3610 are included as attributes. With this change, the following lines
3611 now create equal elements:
3612 ```
3613 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
3614 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
3615 ```
3616 This also works when using the *attr* setter:
3617 ```
3618 local span = pandoc.Span 'text'
3619 span.attr = {id = 'test', class = 'a b', check = 1}
3620 ```
3621 Furthermore, the *attributes* field of AST elements can now be a
3622 plain key-value table even when using the `attributes` accessor:
3623 ```
3624 local span = pandoc.Span 'test'
3625 span.attributes = {check = 1} -- works as expected now
3626 ```
3627 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
3628 use `hierarchicalize` will need to be rewritten to use
3629 `make_sections`.
3630 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
3631 + Fix Lua function names in pandoc.system (niszet). Change
3632 `get_current_directory` to `get_working_directory` and
3633 `with_temp_directory` to `with_temporary_directory`, to
3634 conform to the manual.
3636 * Text.Pandoc.Error:
3638 + Add constructors `PandocUnknownReaderError`,
3639 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
3640 [API change].
3641 + Better message for `PandocShouldNeverHappenError`.
3642 + Better message for `PandocTemplateError`.
3644 * Text.Pandoc.Emoji:
3646 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
3647 which uses the list from the gem GitHub uses. Future updates
3648 can be done with this tool.
3650 * Text.Pandoc.PDF:
3652 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
3653 in the process of creating a PDF (#5721).
3655 * Text.Pandoc.Shared:
3657 + Replace `Element` and `makeHierarchical` with `makeSections`.
3658 Now that we have Divs, we can use them to represent the
3659 structure of sections, and we don't need a special Element type.
3660 `makeSections` reorganizes a block list, adding Divs with class
3661 `section` around sections, and adding numbering if needed.
3662 This change also fixes some longstanding issues recognizing section
3663 structure when the document contains Divs (#3057, see also #997).
3664 + Remove `Element` type [API change]
3665 + Remove `makeHierarchicalize` [API change]
3666 + Add `makeSections` [API change]
3667 + Export `deLink` [API change]
3668 + Make `filterIpynbOutput` strip ANSI escapes from code in output
3669 for non-ipynb formats, when the default "best" option is used with
3670 `--ipynb-output` (#5633).
3671 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
3672 + Improve `isTight` (#5857). If a list has an empty item,
3673 this should not count against its being a tight list.
3674 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
3675 This is a mapping of HTML span-like elements that are internally
3676 represented as a Span with a single class.
3677 + Change the implementation of `htmlSpanLikeElements` to retain
3678 classes and attributes (#5882, Florian Beeres).
3680 * Text.Pandoc.Slides: recognize content in Divs when determining
3681 slide level.
3683 * Text.Pandoc.SelfContained:
3685 + Omit content-type on type attribute for `<style>` (#5725).
3686 It doesn't seem to be valid for HTML5, and as a result Chrome
3687 ignores the style element.
3689 * Text.Pandoc.Pretty has been removed [API change].
3690 We now use the new external doclayout module instead.
3692 * Text.Pandoc.Writers.Shared:
3694 + Remove `metaToJSON`, `metaToJSON'` [API change].
3695 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
3696 `resetField` to work with Context rather than JSON values. [API change]
3697 + Export new function `endsWithPlain` [API change].
3698 + Change `gridTables` so it does better at keeping the widths of
3699 columns (#4320) and does better at figuring out column widths
3700 when no widths are given (#5899).
3702 * Text.Pandoc.Options
3704 + Change type of `writerTemplate` to `Maybe Template` instead
3705 of `Maybe String`.
3706 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
3707 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
3708 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
3709 In each case we use lowercase (or hyphenated lowercase) for
3710 constructors to line up more closely with command-line option
3711 values. This is a breaking change for those who manually decode or
3712 encode JSON for these data types (e.g. for `ReaderOptions` or
3713 `WriterOptions`).
3715 * Text.Pandoc.Filters:
3717 + Add `FromYAML` instance for `Filter`.
3718 + `applyFilters`: Add and apply filters in order (not reversed)
3719 This changes `applyFilters` from Text.Pandoc.Filter so
3720 that it does a left fold rather than a right fold, applying
3721 the filters in the order listed.
3723 * Text.Pandoc.XML:
3725 + Change `toEntities` to emit numerical hex character references
3726 (#5718).
3728 * Text.Pandoc.Highlighting:
3730 + Add additional listings languages (Wandmalfarbe).
3732 * Text.Pandoc.MediaBag:
3734 + Some of the types using Strings were switched to use FilePath instead
3735 (Christian Despres, #5884).
3737 * Text.Pandoc.Templates:
3739 + Don't import/export `varListToJSON` [API change]. It is removed in
3740 doctemplates >= 0.3.
3741 + Change type of `renderTemplate'` [API change]. Return value is
3742 now Text rather than being polymorphic. This makes room for
3743 upcoming removal of the `TemplateTarget` class from doctemplates.
3745 * Text.Pandoc.App.Opt [API changes]:
3747 + More convenient To/FromJSON instances. Make the field names
3748 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
3749 Anyone who is using JSON serialization of Opt will need to adjust
3750 things accordingly.
3751 + Change `optHighlightStyle` to a `Maybe String` instead of
3752 `Maybe Style`. Do the parsing/loading of themes later, after
3753 option parsing.
3754 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
3755 `optShiftHeadingLevelBy`, to avoid redundancy.
3756 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
3757 match the option.
3758 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
3759 or `crlf` will work.
3760 + Change `optVariables` from `[(String, String)]` to `Context Text`.
3761 + Change `optMetadata` to `Meta`, to allow structured values.
3762 The current behavior of the `--metadata` option stays the same.
3763 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
3764 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
3765 + Rename `optMetadataFile` to `optMetadataFiles`.
3766 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
3767 + Rename `optWrapText` to `optWrap`.
3768 + Add `IpynbOutput` enumerated type: use this instead of
3769 a string for `optIpynbOutput`.
3770 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
3771 `Nothing` means: nothing specified.
3772 `Just []` means: an empty list specified (e.g. in defaults).
3773 + List fields in Opt so they aren't reversed (#5881) [API change].
3774 Previously `optIncludeInHeader`, etc. were in reverse order.
3775 + The `sourcefile` variable is now always a list. It used to be
3776 sometimes a string, sometimes a list (when there was more than one).
3778 * Template changes:
3780 + default.latex: added code for `cslreferences` environment,
3781 to be used for pandoc-citeproc references. A `csl-hanging-indent`
3782 variable (set automatically if there is a `hanging-ident`
3783 class on the references Div) controls whether contents of this
3784 environment receive a hanging indent.
3785 + default.latex: Add `space` as default option for xeCJK, so that
3786 spaces between words are preserved (#5855, jeongminkim-islab).
3787 This is necessary for Korean.
3788 + default.latex: Remove include of `grffile` (#5848).
3789 This package used to be needed for proper handling of image filenames
3790 containing periods (in addition to the period before the extension).
3791 It no longer works with the latest LaTeX kernel and graphicx,
3792 so we have removed it. Future versions of graphicx will handle
3793 these filenames without the need for `grffile`.
3794 + default.context: add a saner default for page numbers.
3795 Previously they appeared centered at the top of the page;
3796 now we put them centered at the bottom, unless the `pagenumbering`
3797 variable is set.
3798 + default.context: define a start-stop-pair `cslreferences` to
3799 allow for hanging indents in the bibliography (#5875, Denis Maier).
3800 + default.ms: update defaults. Use Palatino font, use slightly
3801 wider interparagraph space, don't indent paragraphs,
3802 and put page numbers on the bottom. This brings ms output
3803 closer to default LaTeX output.
3804 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
3805 + default.muse: handle multiple authors better.
3806 + docbook4, docbook5 templates: add indentation to body.
3807 + HTML-based templates: use `styles.html` partial to avoid
3808 code duplication.
3809 + HTML-based templates: change indentation of styles in template.
3811 * reference.docx (#5820):
3813 + Change Block Text (block quote) style so that the same font
3814 is used as in the body text, and the block text is indented
3815 left and right.
3816 + All headings now have a uniform color.
3817 + Level-1 headings no longer set `w:themeShade="B5"`.
3818 + Level-2 headings are now 14 point rather than 16 point.
3819 + Level-3 headings are now 12 point rather than 14 point.
3820 + Level-4 headings are italic rather than bold.
3822 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
3823 new hanging indents.
3825 * pandoc.cabal:
3827 + Repeat ghc-options in all stanzas.
3828 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
3829 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
3830 (Albert Krewinkel).
3831 + Add cabal.project to extra-source-files (Albert Krewinkel).
3832 + Add dependency on skylighting-core (#5729). Even though it shouldn't
3833 be needed, some tools require it.
3834 + Require latest pandoc-types, texmath, skylighting, haddock-library.
3835 + Ensure TemplateHaskell is added to other-extensions when it is
3836 used (Vanessa McHale, #5728).
3837 + Remove `derive_json_via_th` flag; always use TH. This cuts down
3838 on code duplication and reduces the chance for errors. See #4083.
3840 * Makefile:
3842 + Add ghci target.
3843 + Add ghcid target.
3844 + Remove references to obsolete flag (#5694).
3846 * Benchmarks: fix failure on ipynb.
3848 * Use MathJax 3 (zorkow).
3850 * KaTeX math: respect `classoption=fleqn` variable,
3851 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
3853 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
3855 * Use throwError instead of fail when appropriate.
3857 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
3859 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
3860 This is intended to make it easier to test differences in zip
3861 containers, like epub, docx, or odt.
3863 * Add `.gitattributes` (#5747). This ensures that the golden files
3864 in `test/fb2/reader/` don't have newlines converted. This should fix
3865 a test failure on GitHub CI with Windows.
3867 * Reorder options in `--help`.
3869 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
3871 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
3873 * Fix trypandoc with `getReader`/`getWriter` changes.
3875 * Allow building pandoc with GHC 8.8.
3877 * linux tarball: add architecture `-amd64` to filename.
3878 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
3880 * MANUAL.txt:
3882 + Add section for exit codes.
3883 + Document some pptx limitations in slide show section:
3884 No incremental display (#5689). No pause with `. . .` (#5701).
3885 + reveal.js flags (Mauro Bieg, #5653).
3886 + Document addition of `data-` prefix to unknown attributes in HTML5.
3887 + Link to YAML spec (Mauro Bieg, #5687).
3888 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
3889 + Use a table for exit codes.
3890 + Put all template variable docs into one section.
3891 + Use ATX headers consistently.
3892 + Add fuller documentation of templates (#5779), including
3893 new template syntax, partials, etc.
3894 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
3895 + Clarify when macro definitions are passed as raw latex.
3896 In Markdown input, they are always passed through. In LaTeX, only if
3897 `latex_macros` is disabled.
3898 + Clarify that `--dpi` provides a default and doesn't override
3899 dpi values specified in the images themselves (#5721).
3900 + Document how to use custom writers with `--standalone` (#5866).
3901 + Clarify `--preserve-tabs` default.
3903 * INSTALL.md:
3905 + Fix instructions for libicu.
3906 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
3908 * CONTRIBUTING.md:
3910 + Add information on tests (Agustín Martín Barbero, #5652).
3911 + Add information about command test naming to CONTRIBUTING (Florian B).
3913 * Fix typos in changelog and comments (#5896, Brian Wignall).
3915 * doc/lua-filters.md:
3917 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
3918 + Improve metadata replacement example in lua-filters doc (#5851).
3919 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
3920 #5892).
3922## pandoc 2.7.3 (2019-06-11)
3924 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
3925 Albert Krewinkel).
3927 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
3928 This form is now supported in multimarkdown,
3929 in addition to `tex_math_double_backslash`.
3931 * Fix `--self-contained` so it works when output format has extensions.
3932 Previously if you used `--self-contained` with `html-smart` or
3933 `html+smart`, it wouldn't work.
3935 * Add template variable `curdir` with working directory
3936 from which pandoc is run (#5464).
3938 * Markdown reader: don't create implicit reference for empty header
3939 (#5549).
3941 * Muse reader: allow images inside link descriptions (Alexander Krotov).
3943 * HTML reader: epub related fixes.
3945 + With epub extensions, check for `epub:type` in addition to `type`.
3946 + Fix problem with noteref parsing which caused block-level
3947 content to be eaten with the noteref.
3948 + Rename `pAnyTag` to `pAny`.
3949 + Refactor note resolution.
3950 + Trim definition list terms (Alexander Krotov).
3952 * LaTeX reader:
3954 + Add braces when resolving `\DeclareMathOperator`
3955 (#5441). These seem to be needed for xelatex but not pdflatex.
3956 + Allow newlines in `\mintinline`.
3957 + Pass through unknown listings language as class (#5540).
3958 Previously if the language was not in the list of languages supported
3959 by listings, it would not be added as a class, so highlighting
3960 would not be triggered.
3961 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
3962 This change affects the markdown reader and other readers that allow raw
3963 LaTeX. Previously, trailing `{}` would be included for unknown
3964 commands, but not for known commands. However, they are sometimes used
3965 to avoid a trailing space after the command. The chances that a `{}`
3966 after a LaTeX command is not part of the command are very small.
3968 * MediaWiki reader: handle multiple attributes in table row (#5471,
3969 chinapedia).
3971 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
3972 property are put into Span inlines with `dir="rtl"`.
3974 * DocBook reader: Issue `IgnoredElement` warnings.
3976 * Org reader (Albert Krewinkel):
3978 + Fix planning elements in headers level 3 and higher
3979 (#5494). Planning info is now always placed before
3980 the subtree contents. Previously, the planning info was placed after
3981 the content if the header's subtree was converted to a list, which
3982 happens with headers of level 3 and higher per default.
3983 + Omit, but warn about unknown export options. Unknown export
3984 options are properly ignored and omitted from the output.
3985 + Prefer plain symbols over math symbols (#5483).
3986 Symbols like `\alpha` are output plain and unemphasized, not as math.
3987 + Recognize emphasis after TODO/DONE keyword (#5484).
3989 * FB2 reader:
3991 + Skip unknown elements rather than throwing errors (#5560).
3992 Sometimes custom elements are used (e.g. `id` element
3993 inside `author`); previously the reader would halt with an error.
3994 Now it skips the element and issues an `IgnoredElement` warning.
3995 + Parse notes (#5493, Alexander Krotov).
3996 + Internal improvements (Alexander Krotov).
3998 * OpenDocument writer: Roll back automatic figure/table numbering
3999 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
4000 to use pandoc-crossref. So this has been rolled back for now,
4001 until we find a good solution to make this behavior optional
4002 (or a creative way to let pandoc-crossref and this feature
4003 to coexist).
4005 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
4006 change] (Albert Krewinkel).
4008 * EPUB writer:
4010 + Don't include 'landmarks' if there aren't any.
4011 Previously we could get an empty ol element, which caused
4012 validation errors with epubcheck.
4013 + Ensure unique ids for styleesheets in content.opf (#5463).
4014 + Make stylesheet link compatible with kindlegen (#5466,
4015 Eric Schrijver). Pandoc omitted `type="text/css"` from both
4016 `<style>` and `<rel="stylesheet">` elements in all templates, which
4017 is valid according to the spec. However, Amazon’s kindlegen software
4018 relies on this attribute on `<link>` elements when detecting
4019 stylesheets to include.
4021 * HTML writer:
4023 + Output video and audio elements depending on file
4024 extension of the image path (Mauro Bieg).
4025 + Emit empty alt tag in figures (#5518, Mauro Bieg).
4026 The same text is already in the <figcaption> and
4027 screen-readers would read it twice, see #4737.
4028 + Don't add variation selector if it's already there.
4029 This fixes round-trip failures.
4030 + Prevent gratuitous emojification on iOS (#5469).
4031 iOS chooses to render a number of Unicode entities, including '↩', as
4032 big colorful emoji. This can be defeated by appending Unicode
4033 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
4034 character when escaping strings, for both '↩' and '↔'. If other
4035 characters prove problematic, they can simply be added to
4036 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
4037 rendered as `<p>` elements (#5457).
4039 * RST writer: treat Span with no attributes as transparent (#5446).
4040 Previously an Emph inside a Span was being treated as
4041 nested markup and ignored. With this patch, the Span
4042 is just ignored.
4044 * LaTeX writer:
4046 + Include inline code attributes with `--listings` (#5420).
4047 + Don't produce columns environment unless beamer (#5485).
4048 + Fix footnote in image caption. Regression: the fix for #4683 broke
4049 this case.
4050 + Don't highlight code in headings (#5574). This causes
4051 compilation errors.
4052 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
4054 * EPUB writer: Fix document section assignments (#5546).
4055 For example, introduction should go in bodymatter, not frontmatter, and
4056 epigraph, conclusion, and afterward should go in bodymatter, not
4057 backmatter. For the full list of assignments, see the manual.
4059 * Markdown writer:
4061 + Add backslashes to avoid unwanted interpretation of
4062 definition list terms as other kinds of block (#554).
4063 + Ensure the code fence is long enough (#5519).
4064 Previously too few backticks were used when the code block
4065 contained an indented line of backticks. (Ditto tildes.)
4066 + Handle labels with integer names (Jesse Rosenthal, #5495).
4067 Previously if labels had integer names, it could produce a conflict
4068 with auto-labeled reference links. Now we test for a conflict and
4069 find the next available integer. This involves adding a new state
4070 variable `stPrevRefs` to keep track of refs used in other document
4071 parts when using `--reference-location=block|section`
4073 * Textile writer: fix closing tag for math output (Albert Krewinkel).
4074 Opening and closing tag for math output match now.
4076 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
4077 Krewinkel). Emacs always uses two spaces when indenting the content of
4078 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
4079 indent contents by the space-equivalent of one tab, but now always uses
4080 two spaces, too.
4082 * Asciidoc writer:
4084 + Use `` `+...+` `` form for inline code.
4085 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
4086 To get a pure literal code span, use `` `+a__b__c+` ``.
4087 + Use proper smart quotes with asciidoctor (#5487).
4088 Asciidoctor has a different format for smart quotes.
4089 + Use doubled ## when necessary for spans (#5566).
4090 + Ensure correct nesting of strong/emph (#5565): strong
4091 must be the outer element.
4093 * JATS writer:
4095 + Wrap elements with p when needed (#5570). The JATS spec restricts
4096 what elements can go inside `fn` and `list-item`. So we wrap other
4097 elements inside `<p specific-use="wrapper">` when needed.
4098 + Properly handle footnotes (#5511) according to "best practice."
4099 (Group them at the end in `<fn-group>` and use `<xref>` elements
4100 to link them.)
4101 + Fix citations with PMID so they validate (#5481). This includes
4102 an update to data/jats.csl.
4103 + Ensure validity of `<pub-date>` by parsing the date and
4104 extracting year, month, and day, as expected. Also add an
4105 iso-8601-date attribute automatically.
4106 + Don't use `<break>` element for LineBreak. It is only
4107 allowed in a few special contexts, and not in `<p>` elements.
4108 + Don't make `<string-name>` a child of `<string>`, which is illegal.
4110 * FB2 writer:
4112 + Do not wrap note references into `<sup>` and brackets
4113 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
4114 display links with type="note" as a superscript.
4115 + Use genre metadata field (#5478).
4117 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
4119 * Add unicode code point in "Missing character" warning (#5538).
4120 If the character isn't in the console font, the message is pretty useless,
4121 so we show the code point for anything non-ASCII.
4123 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
4124 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
4125 turned into `Version` objects. The objects simplify version-appropriate
4126 comparisons while maintaining backward-compatibility.
4127 A function `pandoc.types.Version` is added as part of the newly
4128 introduced module `pandoc.types`, allowing users to create version
4129 objects in scripts.
4131 * pandoc lua module (Albert Krewinkel):
4133 - Fix deletion of nonexistent attributes (#5569).
4134 - Better tests for Attr and AttributeList.
4136 * pandoc.mediabag lua module (Albert Krewinkel):
4138 + Add function `delete` for deleting a single item.
4139 + Add function `empty` for removing all entries.
4140 + Add function `items` for iterating over mediabag.
4142 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
4143 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
4144 URLs were handled wrongly and pandoc attempted to make HTTP
4145 requests, which failed.
4147 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
4149 * Text.Pandoc.Shared:
4151 + Add `onlySimpleTableCells` [API change]
4152 (Mauro Bieg) and use this to consolidate simple-table detection
4153 (#5524). This fixes an inconsistency in the HTML reader, which did not
4154 treat tables with `<p>` inside cells as simple.
4155 + `metaToJSON`: treat digits starting with 0 as a string, not a number
4156 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
4158 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
4159 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
4160 readers which don't have access to parsec source positions.
4162 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
4164 * Improve output of Lua tests (#5499, Albert Krewinkel).
4165 This makes use of tasty-lua, a package to write tests in Lua
4166 and integrate the results into Tasty output. Test output becomes
4167 more informative: individual tests and test groups become visible
4168 in test output. Failures are reported with helpful error messages.
4170 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
4171 The `system` Lua module provides utility functions to interact with the
4172 operating- and file system. E.g.
4173 `print(pandoc.system.get_current_directory())`
4174 or
4175 ```lua
4176 pandoc.system.with_temporary_directory('tikz', function (dir)
4177 -- write and compile a TikZ file with pdflatex
4178 end)
4179 ```
4181 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
4183 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
4184 Beamer already loads geometry, so we need to use the `\geometry`
4185 command to set geometry options.
4187 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
4188 NOTE: Those who use a custom CSS stylesheet with EPUB should
4189 add these lines:
4191 code{ white-space: pre-wrap; }
4192 span.smallcaps{ font-variant: small-caps; }
4193 span.underline{ text-decoration: underline; }
4194 q { quotes: "“" "”" "‘" "’"; }
4195 div.column{ display: inline-block; vertical-align: top; width: 50%; }
4197 * reveal.js template:
4199 + Updates for revealjs 3.8.0 (#5435, ebiim).
4200 + Remove reference to head.min.js (#5448, Winnie Hellmann).
4201 NOTE: users will need to update reveal.js to at least 3.8.0
4202 for their presentations generated with this version of pandoc
4203 to work correctly.
4205 * Text.Pandoc.PDF:
4207 + Replace `</>` with literal `/` (#5451).
4208 We use forward-slash for a directory separator in tmpDir,
4209 even on Windows (because that's what tex likes). So we
4210 should not put a backslash between the tmpDir and the
4211 filename on Windows. This is harmless enough in normal
4212 Windows setups, but it breaks on Cygwin.
4213 Thanks to @cc2x for noticing and diagnosing the problem.
4214 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
4215 This is currently possible with `mklatex` and `-outdir`, but
4216 was not yet possible with xelatex and `-output-directory`.
4217 + For PDF via ms/pdfroff, make TOC appear at beginning and in
4218 PDF bookmarks (#5553). Previously the TOC appeared at the end
4219 of the document, and was not bookmarked. To keep it at the end,
4220 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
4222 * Fix broken links in documents (#5473, Shim Myeongseob).
4223 Also, use absolute links to pandoc.org when possible, so that
4224 the links can be followed by people viewing these documents
4225 on GitHub.
4227 * Improved sample lua tikz filter in lua-filters docs (#5445,
4228 Matthew Doty). There are three changes:
4230 + It only processes elements which begin with `\begin{tikzpicture}`
4231 + It uses pdf2svg instead of imagemagick to preserve fidelity
4232 + The images produced have transparent backgrounds
4234 * MANUAL.txt:
4236 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
4237 + Fix typo (#5489, Christian Krause).
4239 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
4241 * Disable missing-home-modules warning in `stack.yaml`.
4242 Otherwise `stack ghci` fails.
4245## pandoc 2.7.2 (2019-04-05)
4247 * Add XWiki writer (#1800, Derek Chen-Becker).
4248 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
4250 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
4252 * Vimwiki reader: improve handling of internal links (#5414).
4253 We no longer append `.html` to link targets, and we add a title
4254 `wikilink`. This mirrors behavior of other wiki readers. Generally
4255 the `.html` extension is not wanted. It may be important for output
4256 to HTML in certain circumstances, but it can always be added using a
4257 filter that matches on links with title `wikilink`.
4259 If your workflow requires the current behavior, here is a lua filter
4260 that will add the `.html` extension:
4262 ```lua
4263 function Link(el)
4264 if el.title == 'wikilink' then
4265 el.target = el.target .. ".html"
4266 end
4267 return el
4268 end
4269 ```
4270 * ipynb reader:
4272 + Use format `ipynb` for raw cell where no format given.
4273 + Avoid introducing spurious `.0` on integers in metadata.
4275 * Markdown reader: fenced div takes priority over setext header.
4277 * HTML reader: read `data-foo` attribute into `foo` (#5392).
4278 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
4279 attributes. But the attributes are represented in the AST without
4280 the `data-` prefix, so we should strip this when reading HTML.
4282 * LaTeX reader: Improve autolink detection (#5340).
4284 * PowerPoint writer (Jesse Rosenthal):
4286 + Expand builtin reference doc to model all layouts.
4287 The previous built-in reference doc had only title and content
4288 layouts. Add in a section-header slide and a two-content slide, so
4289 users can more easily modify it to build their own templates.
4290 + Always open up in slide view. When editing a
4291 template/reference-doc, the user might be in Master view, but when
4292 producing a slide show, it is assumed that slide view will be
4293 desired.
4294 + Remove `handoutsMasterList` from template presentation.xml
4295 + Fix numerous errors in templating (#5402). Previously, some templates
4296 produced by Office 365 (MacOS) would not render with `--reference-doc`
4297 correctly. We now apply correct shapes for content, and build
4298 shape trees correctly.
4299 + Make default placeholder type for template lookup.
4300 + Apply speaker notes to metadata slide if applicable.
4301 + Test for speaker notes after breaking header.
4302 + Correctly handle notes after section-title header.
4303 Previously, if notes came after a section-title header (ie, a level-1
4304 header in a slide-level=2 presentation), they would go on the next
4305 slide. This keeps them on the slide with the header.
4306 + Internal improvements.
4308 * ipynb writer:
4310 + Use format `ipynb` for raw cell where no format given.
4311 According to nbformat docs, this is supposed to render in every
4312 format. We don't do that, but we at least preserve it as a raw
4313 block in markdown, so you can round-trip.
4314 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
4315 HTML blocks, e.g. one for the open tag and one for a close tag.
4316 If these aren't consolidated, only one will show up in output cell.
4317 + Fixed carry-over of nbformat from metadata.
4318 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
4320 * LaTeX writer:
4322 + Avoid inadvertently creating ?` or !` ligatures (#5407).
4323 These are upside down ? and !, resp.
4324 + Fix footnotes in table caption and cells (#5367). This fixes a
4325 bug wherein footnotes appeared in the wrong order, and with
4326 duplicate numbers, when in table captions and cells.
4327 We now use regular `\footnote` commands, even in the table
4328 caption and the minipages containing cells. Apparently
4329 longtable knows how to handle this.
4331 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
4333 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
4335 * Markdown writer:
4337 + Better rendering of numbers (#5398). If the number is integral,
4338 we render it as an integral not a float.
4339 + Proper rendering of empty map in YAML metadata (#5398). Should
4340 be `{}`, not empty string.
4341 + Properly escape attributes in Markdown writer (#5369).
4342 + Be sure implicit figures work in list contexts (#5368).
4343 Previously they would sometimes not work: e.g., when they
4344 occurred in final paragraphs in lists that were originally
4345 parsed as Plain and converted later using PlainToPara.
4347 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
4348 We previously added the attribute `type="textWrapping"`, but
4349 this causes problems on Word Online.
4351 * LaTeX template (Andrew Dunning):
4353 + Ensure correct heading/table order (#5365). Improve workaround
4354 (#1658) for tables following headings. The new solution works whether
4355 or not the `indent` variable is enabled.
4356 + Remove `subparagraph` variable. The default is now to use run-in
4357 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
4358 To get the previous default behavior (where these were formatted as
4359 blocks, like `\subsubsection`), set the `block-headings` variable.
4360 + Add pandoc to PDF metadata (#5388).
4361 + Group graphics-related code (#5389).
4362 + Move `\setstretch` after front matter (#5179). Ensures that
4363 `\maketitle`, `\tableofcontents`, and so forth are not affected by
4364 changes to line spacing.
4366 * Update data/jats.csl to avoid commas between name-part elements
4367 (#5397).
4369 * Add support for golang (`go`) with `--listings` (#5427).
4371 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
4372 We now do a better job marshalling numbers from MetaString
4373 or MetaInlines into JSON Number.
4375 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
4376 integers. Pandoc's MetaValue doesn't have a distinguished number type,
4377 so numbers are put in MetaStrings. If the MetaString consists
4378 entirely of digits, we convert it to a Number. We should probably
4379 consider adding a MetaNumber constructor to MetaValue, for better
4380 round-tripping with JSON etc. This change aids round-tripping in
4381 ipynb metadata fields, like `toc_depth`.
4383 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
4384 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
4386 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
4387 a wider range of PDFs (#4322, with help from Richard Davis).
4389 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
4391 * Fix harmless error in file-scope code (#5422).
4393 * MANUAL.txt:
4395 + Improve 'header' and 'heading' usage (#5423, Andrew
4396 Dunning). The term 'header' was being used where 'heading'
4397 is more appropriate.
4398 + Add paragraph on options affecting markdown in ipynb.
4400 * stack.yaml - remove -Wmissing-home-modules
4401 This seems to cause problems with stack ghci. Remove RTS options.
4403 * Add ghc-options to cabal.project.
4405 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
4407 * linux build process: Remove clone of pandoc-citeproc (#5366).
4408 It wasn't being used; cabal.project specifies the version to use.
4410## pandoc 2.7.1 (2019-03-14)
4412 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
4413 Runs tectonic on STDIN instead of a temporary .tex file, so that it
4414 looks in the working directory for `\include` and `\input` like the rest
4415 of the engines. Allows overriding the output directory
4416 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
4418 * Allow `-o/--output` to be used with `--print-default-data-file`,
4419 `--print-highlighting-style`, `--print-default-template`.
4420 Note that `-o` must occur BEFORE the `--print*` command on the command
4421 line (this is documented, #5357).
4423 * LaTeX reader:
4425 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
4426 Tilley). These are parsed as a Span with class `underline`, as
4427 with other readers.
4428 + Ensure that `\Footcite` and `\Footcites` get put in a note.
4430 * ipynb reader:
4432 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
4433 We now include every output format. Pruning is handled by
4434 `--ipynb-output`.
4435 + Better handling of cell metadata. We now include even complex cell
4436 metadata in the Div's attributes (as JSON, in complex cases, or
4437 as plain strings in simple cases).
4439 * ipynb writer:
4441 + Recurse into native divs for output cell data (#5354).
4442 + Render cell metadata fields from div attributes.
4444 * Docx writer: avoid extra copy of abstractNum and num elements
4445 in numbering.xml. This caused pandoc-produced docx files to
4446 be uneditable using Word Online (#5358).
4448 * Markdown writer: improve handling of raw blocks/inline.
4449 We now emit raw content using `raw_attribute` when no more
4450 direct method is available. Use of `raw_attribute` can be
4451 forced by disabling `raw_html` and `raw_tex`.
4453 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
4454 and remove frontmatter from `scrreprt`.
4456 * LaTeX template:
4458 + Improve readability (#5363, Andrew Dunning).
4459 + Robust section numbering removal (#5351, Andrew Dunning).
4460 Ensures that section numbering does not reappear with custom
4461 section levels. See <https://tex.stackexchange.com/questions/473653/>.
4462 + Better handling of front/main/backmatter (#5348).
4463 In pandoc 2.7 we assumed that every class with chapters would accept
4464 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
4465 report does not). So pandoc 2.7 breaks on report class by including an
4466 unsupported command. Instead of the `book-class` variable, we use two
4467 variables, `has-chapters` and `has-frontmatter`, and set these
4468 intelligently in the writer.
4470 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
4471 images are prioritized over text. `best` should include everything
4472 for ipynb.
4474 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
4475 data files even if they haven't been installed. Remove old
4476 `pandoc_datadir` environment variable, which hasn't done anything for a
4477 long time.
4479 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
4481 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
4483 * Use latest pandoc-citeproc, texmath.
4486## pandoc 2.7 (2019-03-03)
4488 * Use XDG data directory for user data directory (#3582). Instead of
4489 `$HOME/.pandoc`, the default user data directory is now
4490 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
4491 `$HOME/.local/share` but can be overridden by setting the
4492 environment variable. If this directory is missing, then
4493 `$HOME/.pandoc` is searched instead, for backwards compatibility.
4494 However, we recommend moving local pandoc data files from
4495 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
4496 default user data directory remains the same.
4498 * Slide show formats behavior change: content under headers
4499 less than slide level is no longer ignored, but included in
4500 the title slide (for HTML slide shows) or in a slide after
4501 the title slide (for beamer). This change makes possible
4502 2D reveal.js slideshows with content in the top slide on
4503 each stack (#4317, #5237).
4505 * Add command line option `--ipynb-output=all|none|best` (#5339).
4506 Output cells in ipynb notebooks often contain several different
4507 versions of an output, with different MIME types, e.g. an HTML
4508 table and a plain-text fallback. Specifying `--ipynb-output=best`
4509 (the default) ensures that the best version for the output format
4510 is used. `all` includes all versions, and `none` suppresses them
4511 all, leaving output cells empty.
4513 * `asciidoctor` is now an output format separate from `asciidoc`,
4514 to accommodate some minor implementation-specific differences
4515 (currently just in the treatment of display math).
4517 * Add `latexmk` as an option for `--pdf-engine` (#3195).
4518 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
4519 a persistent temp directory.
4521 * Markdown reader:
4523 + Improve tight/loose list handling (#5285). Previously the
4524 algorithm allowed list items with a mix of Para and Plain, which
4525 is never wanted.
4526 + Add newline when parsing blocks in YAML (#5271). Otherwise last
4527 block gets parsed as a Plain rather than a Para. This is a
4528 regression in pandoc 2.x. This patch restores pandoc 1.19
4529 behavior.
4530 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
4531 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
4532 + Fix bug parsing fenced code blocks (#5304). Previously parsing
4533 would break if the code block contained a string of backticks of
4534 sufficient length followed by something other than end of line.
4536 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
4537 requires nested braces. Otherwise some legitimate command and
4538 environment definitions can break.
4540 * Docx reader (Jesse Rosenthal):
4542 + Rename `getDocumentPath` as `getDocumentXmlPath`.
4543 + Use field notation for setting `ReaderEnv`.
4544 + Figure out `document.xml` path once at the beginning of parsing, and
4545 add it to the environment, so we can avoid repeated lookups.
4546 + Dynamically determine main document xml path (#5277).
4547 The desktop Word program places the main document file in
4548 `word/document.xml`, but the online word places it in
4549 `word/document2.xml`. This file path is actually stated in the root
4550 `_rels/.rels` file, in the `Relationship` element with an
4551 `http://../officedocument` type.
4552 + Fix paths in archive to prevent Windows failure (#5277).
4553 Some paths in archives are absolute (have an opening slash) which, for
4554 reasons unknown, produces a failure in the test suite on MS
4555 Windows. This fixes that by removing the leading slash if it exists.
4556 + Add comments to aid code readability.
4557 + Trim space inside the last inline (#5273).
4558 + Unwrap sdt elements in footnotes and comments (#5302).
4560 * Muse reader (Alexander Krotov):
4562 + Test that block level markup does not break `<verbatim>`.
4563 + Add secondary note support.
4565 * ipynb reader: handle images referring to attachments. Previously
4566 we didn't strip off the attachment: prefix, so even though the
4567 attachment was available in the mediabag, pandoc couldn't find it.
4569 * JATS reader:
4571 + Fix parsing of figures (#5321). This ensures that a figure
4572 containing a single image is parsed as a pandoc "implicit
4573 figure" (i.e., a Para with a single Image whose title attribute
4574 begins with `fig:`). More complex figures will still be parsed
4575 as divs.
4576 + Support `fig-group` block element (#5317).
4577 + Handle citations with multiple references (#5310). The `rid`
4578 attribute can have a space-separated list of ids.
4580 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
4581 Handle display math appropriately for Asciidoctor.
4583 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
4584 Mauro Bieg).
4586 * HTML writer:
4588 + Implement WAI-ARIA roles for (end)notes, citations, and
4589 bibliography (#4213). Note that doc-biblioref is only used when
4590 link-citations produces links, since it belongs on links.
4591 + Include content (including speaker notes) in title slides
4592 (#4317, #5237).
4594 * ipynb writer:
4596 + Ensure final newline.
4597 + Only include metadata under `jupyter` field.
4598 + Don't create attachments for images with absolute URIs,
4599 including data: URIs (#5303).
4600 + Keep plain text fallbacks in output even if a richer format is
4601 included (#5293). We don't know what output format will be needed.
4602 See the `--ipynb-output` command line option for a way to control
4603 what formats are included in the output.
4605 * Markdown writer: use `markdown="1"` when appropriate for Divs:
4606 when `native_divs` and `markdown_in_html_blocks` are disabled
4607 but `raw_html` and `markdown_attribute` are enabled.
4609 * LaTeX writer:
4611 + Use right fold for `escapeString`. This is more elegant than
4612 the explicit recursive code we were using.
4613 + Avoid `{}` after control sequences when escaping.
4614 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
4615 ellipsis package. This patch causes pandoc to avoid emitting
4616 the `{}` when it is not necessary. Now `\ldots` and other
4617 control sequences used in escaping will be followed by either
4618 a `{}`, a space, or nothing, depending on context.
4619 + For beamer, include contents under headers superordinate to
4620 slidelevel (#4317). Currently we keep the fancy title slide, and
4621 add a new slide with the same title and whatever content was
4622 under the header.
4624 * Powerpoint writer (Jesse Rosenthal): support underlines.
4625 Use span with single class "underline" as in docx writer.
4627 * Muse writer: escape secondary notes (Alexander Krotov).
4629 * FB2 writer: add section identifiers support (#5229, John KetzerX).
4631 * Make `--fail-if-warnings` work for PDF output (#5343).
4633 * Lua filters (Albert Krewinkel):
4635 + Load module `pandoc` before calling `init.lua` (#5287). The file
4636 `init.lua` in pandoc's data directory is run as part of pandoc's
4637 Lua initialization process. Previously, the `pandoc` module was
4638 loaded in `init.lua`, and the structure for marshaling was
4639 set up after. This allowed simple patching of element
4640 marshaling, but made using `init.lua` more difficult. Now, all
4641 required modules are now loaded before calling `init.lua`. The
4642 file can be used entirely for user customization. Patching
4643 marshaling functions, while discouraged, is still possible via
4644 the `debug` module.
4645 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
4646 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
4647 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
4648 `utils`, and `text`, respectively.
4650 * Text.Pandoc.Lua (Albert Krewinkel):
4652 + Split `StackInstances` into smaller Marshaling modules.
4653 + Get `CommonState` from Lua global. This allows more control over
4654 the common state from within Lua scripts.
4656 * LaTeX template:
4658 + Support the `subject` metadata variable (#5289, Pascal Wagler).
4659 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
4660 for book classes (#5306).
4662 * epub3 template: Add titlepage class to section (#5269).
4664 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
4666 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
4668 * Text.Pandoc.Shared:
4670 + Remove `withTempDir` [API change].
4671 + Add new exported function `defaultUserDataDirs` [API change].
4672 + Add `filterIpynbOutput` [API change].
4673 + `compactify`: Avoid lists with a mix of Plain and Para elements
4674 (#5285).
4676 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
4677 (#5334, Mauro Bieg).
4679 * Text.Pandoc.Extensions:
4681 + More carefully groom ipynb default extensions.
4682 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
4684 * Text.Pandoc.PDF:
4686 + Use system temp directory when possible (#1192). Previously we
4687 created temp dirs in the working directory, partly (a) because
4688 there were problems using the system temp directory on Windows,
4689 when their pathnames included tildes, and partly (b) because
4690 programs like `epstopdf.pl` would not be allowed to write to
4691 directories outside the working directory in restricted mode. We
4692 now (a) use the system temp dir except when the path includes
4693 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
4694 subsidiary programs can use the system temp directory. This
4695 addresses problems that occurred when pandoc was used in a
4696 synced directory (such as Dropbox).
4697 + Change types of subsidiary functions to PandocIO, to allow
4698 warnings to be threaded through (#5343).
4700 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
4702 * Tests: avoid calling `findPandoc` multiple times.
4704 * Old tests: remove need for temp files by using `pipeProcess`.
4706 * Added simple ipynb reader/writer tests (#5274).
4708 * Rearrange `--help` output in a more rational way, with common
4709 options at the beginning and options grouped by function (#5336).
4711 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
4713 * Add missing copyright notices and remove license boilerplate (#4592,
4714 Albert Krewinkel).
4716 * Use latest basement/foundation on 32bit windows.
4718 * Use latest skylighting (#5328). Custom syntax definitions no
4719 longer try to load `language.dtd`.
4721 * Require texmath 0.11.2.1
4723 * Use latest pandoc-citeproc (0.16.1.1).
4725 * MANUAL.txt:
4727 + Clarify variable substitution indentation in templates (#5338,
4728 Agustín Martín Barbero).
4729 + Reorder custom-styles section (#5324, Mauro Bieg).
4731## pandoc 2.6 (2019-01-30)
4733 * Support ipynb (Jupyter notebook) as input and output format.
4735 + Add `ipynb` as input and output format (extension `.ipynb`).
4736 + Added Text.Pandoc.Readers.Ipynb [API change].
4737 + Added Text.Pandoc.Writers.Ipynb [API change].
4738 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
4739 [API change].
4740 + Depend on ipynb library.
4741 + Note: there is no template for ipynb.
4743 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
4744 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
4745 as an input format.
4747 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
4748 extension. Task lists are supported from markdown and gfm input.
4749 They should work, to some degree, in all output formats, though in
4750 most formats you'll get a bullet list with a unicode character for
4751 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
4752 box is used as the list marker. API changes:
4754 + Added constructor `Ext_task_lists` to `Extension`.
4755 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
4756 Text.Pandoc.Shared.
4758 * Allow some command line options to take URL in addition to FILE.
4759 `--include-in-header`, `--include-before-body`, `--include-after-body`.
4761 * HTML reader:
4763 + Handle empty `start` attribute (see #5162).
4764 + Treat `textarea` as a verbatim environment (#5241) and preserve
4765 spacing.
4767 * RST reader:
4769 + Change treatment of `number-lines` directive (Brian Leung,
4770 #5207). Directives of this type without numeric inputs should
4771 not have a `startFrom` attribute; with a blank value, the
4772 writers can produce extra whitespace.
4773 + Removed superfluous `sourceCode` class on code blocks (#5047).
4774 + Handle `sourcecode` directive as synonynm for `code` (#5204).
4776 * Markdown reader:
4778 + Remove `sourceCode` class for literate Haskell code blocks
4779 (#5047). Reverse order of `literate` and `haskell` classes on
4780 code blocks when parsing literate Haskell, so `haskell` is
4781 first.
4782 + Treat `<textarea>` as a verbatim environment (#5241).
4784 * Org reader:
4786 + Handle `minlevel` option differently (#5190, Brian Leung).
4787 When `minlevel` exceeds the original minimum level observed in
4788 the file to be included, every heading should be shifted
4789 rightward.
4790 + Allow for case of `:minlevel == 0` (#5190).
4791 + Fix treatment of links to images (#5191, Albert Krewinkel).
4792 Links with descriptions which are pointing to images are no
4793 longer parsed as inline images, but as links.
4794 + Add support for #+SELECT_TAGS (Brian Leung).
4795 + Separate filtering logic from conversion function (Brian Leung).
4797 * TWiki reader: Fix performance issue with underscores (#3921).
4799 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
4800 We may not still be exactly matching mediawiki's algorithm.
4802 * LaTeX reader:
4804 + Remove `sourceCode` class for literate Haskell code blocks
4805 (#5047). Reverse order of `literate` and `haskell` classes on
4806 code blocks when parsing literate Haskell, so `haskell` is
4807 first.
4808 + Support `\DeclareMathOperator` (#5149).
4809 + Support `\inputminted` (#5103).
4810 + Support `\endinput` (#5233).
4811 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
4812 was interpreted as a file extension, leading pandoc not to add
4813 `.tex` (and thus not to find the file). The new behavior matches
4814 tex more closely.
4816 * Man reader:
4818 + Use `mapLeft` from Shared instead of defining own.
4820 * Docx reader (Jesse Rosenthal):
4822 + Handle level overrides (#5134).
4824 * Docx writer:
4826 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
4827 Also supports additional core properties: `subject`, `lang`,
4828 `category`, `description`.
4829 + Make Level into a real type, instead of an alias for a tuple
4830 (Jesse Rosenthal).
4832 * ICML writer (Mauro Bieg):
4834 + Support custom-styles (#5137, see #2106).
4835 + Support unnumbered headers (#5140).
4837 * Texinfo writer: Use header identifier for anchor if present (#4731).
4838 Previously we were overwriting an existing identifier with a new one.
4840 * Org writer: Preserve line-numbering for example and code blocks
4841 (Brian Leung).
4843 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
4844 in HTML and PDF as a unicode minus sign.
4846 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
4848 * RST writer: Don't wrap simple table header lines (#5128).
4850 * Asciidoc writer: Shorter delimiters for tables, blockquotes
4851 (#4364). This matches asciidoctor reference docs.
4853 * Dokuwiki writer: Remove automatic `:` prefix before internal image
4854 links (#5183, Damien Clochard). This prevented users from making
4855 relative image links.
4857 * Zimwiki writer: remove automatic colon prefix before internal
4858 images (#5183, Damien Clochard).
4860 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
4861 (#5105). Captions used to have the word 'caption' prepended; this
4862 has been removed. Also, 'thumb' is used instead of 'frame' to
4863 allow images to be resized.
4865 * reveal.js writer:
4867 + Ensure that we don't get > 2 levels of section nesting,
4868 even with slide level > 2 (#5168).
4869 + If slide level == N but there is no N-level header, make
4870 sure the next header with level > N gets treated as a slide
4871 and put in a section, rather than remaining loose (#5168).
4873 * Markdown writer:
4875 + Make `plain` RawBlocks pass through in `plain` output.
4876 + Include needed whitespace after HTML figure (#5121).
4877 We use HTML for a figure in markdown dialects that can't
4878 represent it natively.
4880 * Commonmark writer:
4882 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
4883 + Implement `--toc` (`writerTableOfContents`)
4884 in commonmark/gfm writers (#5172).
4886 * EPUB writer:
4888 + Ensure that picture transforms are done on metadata too.
4889 + Small fixes to `nav.xhtml`:
4890 Add 'landmarks' id attribute to the landmarks nav.
4891 Replace old default CSS removing numbers from ol.toc li
4892 with new rules that match `nav#toc ol, nav#landmarks ol`.
4893 We keep the `toc` class on `ol` for backwards compatibility.
4895 * LaTeX writer:
4897 + Make raw content marked `beamer` pass through in `beamer`
4898 output (pandoc/lua-filters#40).
4899 + Beamer: avoid duplicated `fragile` property in some cases
4900 (#5208).
4901 + Add `#` special characters for listings (#4939).
4902 This character needs special handling in `\lstinline`.
4904 * RTF writer: use `toTableOfContents` from Shared to replace
4905 old duplicated code.
4907 * Pptx writer:
4909 + Support custom properties. Also supports additional core
4910 properties: `subject`, `category`, `description` (#5252,
4911 Agustín Martín Barbero).
4912 + Use `toTableOfContents` from Shared to replace old duplicated code.
4914 * ODT writer (Augustín Martín Barbero):
4916 + Fix typo in custom properties (#2839).
4917 + Improve standard properties, including the following core
4918 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
4919 `keywords`, `initial-creator` (from authors), `creation-date`
4920 (actual creation date) (#5252).
4922 * Custom writers:
4924 + Allow '-' in filenames for custom lua writers (#5187).
4925 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
4926 + sample.lua: Add a missing `>` (MichaWiedenmann).
4928 * reveal.js template: Add `zoomKey` config (#4249).
4930 * HTML5 template: Remove unnecessary type="text/css" on style and
4931 link for HTML5 (#5146).
4933 * LaTeX template (Andrew Dunning, except where noted):
4935 + Prevent fontspec from scaling `mainfont` to match the default
4936 font, Latin Modern. A main font set to 12pt could
4937 previously appear between 11pt to 13pt depending on its design.
4938 To return to the earlier rendering, use `-V
4939 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
4940 + Display monospaced fonts without TeX ligatures when using
4941 `--pdf-engine=lualatex`. It now matches the behaviour of other
4942 engines (#5212, #5218).
4943 + Remove the deprecated `romanfont` variable. The functionality of
4944 `mainfont` is identical (#5218).
4945 + Render `\subtitle` with the standard document classes.
4946 Previously, `subtitle` only appeared when using the KOMA-Script
4947 classes or Beamer (#5213, #5244).
4948 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
4949 several language selection problems, notably with retaining
4950 French spacing conventions when switching to a verbatim
4951 environment or another language; and in printing Greek text
4952 without hyphenation (#5193).
4953 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
4954 available, improving the appearance of URLs by allowing them to
4955 break at additional points (#5193).
4956 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
4957 to correct heading levels in PDF bookmarks: see the [KOMA-Script
4958 3.26 release notes](https://komascript.de/release3.26) (#5193).
4959 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
4960 avoid a possible error when using additional packages alongside
4961 footnotes in tables (#5193, closes #4861).
4962 + Remove obsolete `fixltx2e` package, which has no functionality
4963 with TeX Live 2015 or later (#5193).
4964 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
4965 + Restrict `institute` variable to Beamer (#5219).
4966 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
4967 package if available to make footnotes in tables compatible
4968 with `hyperref` (#5234).
4969 + Number parts and chapters in book classes only if the
4970 `numbersections` variable is set, for consistency with other
4971 output formats. To return to the previous behaviour, use
4972 `-V numbersections -V secnumdepth=0` (#5235).
4973 + Reindent file (#5193).
4974 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
4975 + Set default listings language for lua, assembler (#5227, John
4976 MacFarlane). Otherwise we get an error when trying to compile code
4977 with lua or assembler code. To change the default dialect
4978 (currently 5.3 for lua and x86masm for assembler), you can use
4979 `--include-in-header` to inject something like
4980 `\lstset{defaultdialect=[5.2]Lua}`.
4982 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
4983 in an instance of PandocMonad, like the other readers and
4984 writers. [API change]
4986 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
4987 in an instance of PandocMonad, like the other readers and
4988 writers. [API change]
4990 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
4991 for `PandocError`. [API change]
4993 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
4994 This is refactored out from the Markdown writer.
4995 It can be used in other writers to create a table of contents.
4997 * Improve error messages for UTF-8 decoding errors. Now we give
4998 the filename and byte offset (#4765).
5000 * Text.Pandoc.XML: Strip out illegal XML characters in
5001 `escapeXMLString` (#5119).
5003 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
5004 The implementation of `pipeProcess` was rewritten to fix sporadic
5005 failures caused by prematurely closed pipes.
5007 * Use `safeRead` instead of `read` everywhere in the code
5008 (John MacFarlane, Mauro Bieg, #5162, #5180).
5010 * Text.Pandoc.SelfContained: Decompress `.svgz` when
5011 converting to `data:` URI (#5163, Alexander Krotov).
5013 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
5014 (#5175, Alexander Krotov). [API change]
5016 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
5017 When pandoc is compiled with ghc 8.6, Windows paths are treated
5018 differently, and paths beginning `\\server` no longer work.
5019 This commit rewrites such patsh to `\\?\UNC\server` which works.
5020 The change operates at the level of argument parsing, so it
5021 only affects the command line program.
5023 * Simplify/fix reading of `--metadata` values on command line
5024 to avoid problems relating to hvr/HsYAML#7 (#5177).
5026 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
5027 Krewinkel). Incorrect types to pandoc element constructors are
5028 automatically converted to the correct types when possible. This was
5029 already done for most constructors, but conversions are now also done
5030 for nested types (like lists of lists).
5032 * Removed custom Setup.hs, use build-type: simple. The only thing we
5033 gained from the custom build was automatic installation of the man
5034 page when using 'cabal install'. But custom builds cause problems,
5035 e.g., with cross-compilation. Installation of the man page is
5036 better handled by packagers. Note to packagers (e.g. Debian): it
5037 may be necessary to add a step installing the man page with the
5038 next release.
5040 * Allow latest http-client, tasty, zip-archive, Glob.
5042 * Require skylighting >= 0.7.5, adding support for sml, J,
5043 typescript.
5045 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
5046 works well with cabal v2.
5048 * INSTALL.md:
5050 + Use button for installer links (John MacFarlane, Mauro Bieg,
5051 #5167).
5052 + Fix links and bump required stack version (max).
5053 + Improve installation notes on associated software (Andrew
5054 Dunning). Includes explanation of how to install related tools
5055 with package managers (since the method of installing
5056 `rsvg-convert` is not obvious).
5058 * doc/org.md: improve documentation of org features (Albert
5059 Krewinkel).
5061 * doc/lua-filters.md: use 3rd level headers for module fields.
5063 * MANUAL:
5065 + Clarify automatic identifiers (#5201). We remove
5066 non-alphanumerics. This includes, e.g., emojis.
5067 + Fix example for Div with id (Geoffrey Ely).
5068 + Update list of LaTeX packages used.
5069 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
5070 + Mention `raw_attribute` in documentation for `raw_html` and
5071 `raw_tex` (#5240, thanks to @eiro).
5072 + Clarify that `$sep$` must come right before `$endfor$` in templates
5073 (#5243, Lev Givon).
5074 + Document metadata support for docx, odt, pptx writers (Agustín
5075 Martín Barbero).
5076 + Reorganize template variables (#5249, Andrew Dunning).
5077 Add additional headings to categorize variables, and
5078 alphabetize when there is large number; add more examples.
5079 + Document `date-meta` template variable (#5260, Tristan Stenner).
5081 * trypandoc: Fix CSS and viewport.
5083## pandoc 2.5 (2018-11-27)
5085 * Text.Pandoc.App: split into several unexported submodules (Albert
5086 Krewinkel): Text.Pandoc.App.FormatHeuristics,
5087 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
5088 Text.Pandoc.App.OutputSettings. This is motivated partly by the
5089 desire to reduce recompilations when something is modified,
5090 since App previously depended on virtually every other module.
5092 * Text.Pandoc.Extensions
5094 + Semantically, `gfm_auto_identifiers` is now a modifier of
5095 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
5096 be turned on, and then the type of identifier produced depends on
5097 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
5098 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
5099 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
5100 GitHub doesn't seem to strip non-ascii characters any more.
5102 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
5104 + Test AST object equality via Haskell (#5092). Equality of Lua
5105 objects representing pandoc AST elements is tested by unmarshalling
5106 the objects and comparing the result in Haskell.
5107 A new function `equals` which performs this test has been added to the
5108 `pandoc.utils` module.
5109 + Improve stringify. Meta value strings (MetaString)
5110 and booleans (MetaBool) are now converted to the literal string and the
5111 lowercase boolean name, respectively. Previously, all values of these
5112 types were converted to the empty string.
5114 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
5115 already exists (Alexander Krotov).
5117 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
5118 or beginning of line (#5050).
5120 * Text.Pandoc.Readers.Markdown
5122 + Fix parsing of citations, quotes, and underline emphasis
5123 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
5124 and underline emphasis were no longer recognized after certain
5125 symbols, like parentheses (#5099, #5053).
5126 + In pandoc 2.4, a soft break after an abbreviation would be
5127 relocated before it to allow for insertion of a nonbreaking
5128 space after the abbreviation. This behavior is here reverted.
5129 A soft break after an abbreviation will remain, and no nonbreaking
5130 space will be added. Those who care about this issue should take care not
5131 to end lines with an abbreviation, or to insert nonbreaking spaces
5132 manually.
5134 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
5135 `<body>` (Alexander Krotov). Some libraries include custom elements
5136 in their FB2 files.
5138 * Text.Pandoc.Readers.HTML
5140 + Allow `tfoot` before body rows (#5079).
5141 + Parse `<small>` as a Span with class "small" (#5080).
5142 + Allow thead containing a row with `td` rather than `th` (#5014).
5144 * Text.Pandoc.Readers.LaTeX
5146 + Cleaned up handling of dimension arguments. Allow decimal points,
5147 preceding space.
5148 + Don't allow arguments for verbatim, etc.
5149 + Allow space before bracketed options.
5150 + Allow optional arguments after `\\` in tables.
5151 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
5152 but know that these font changing commands take no arguments.
5154 * Text.Pandoc.Readers.Muse
5156 + Trim whitespace before parsing grid table cells (Alexander Krotov).
5157 + Add grid tables support (Alexander Krotov).
5159 * Text.Pandoc.Shared
5161 + For bibliography match Div with id `refs`, not class `references`.
5162 This was a mismatch between pandoc's docx, epub, latex, and markdown
5163 writers and the behavior of pandoc-citeproc, which actually looks for a
5164 div with id `refs` rather than one with class `references`.
5165 + Exactly match GitHub's identifier generating algorithm (#5057).
5166 + Add parameter for `Extensions` to `uniqueIdent` and
5167 `inlineListToIdentifier` (#5057). [API change]
5168 This allows these functions to be sensitive to the settings of
5169 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
5170 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
5171 also means that `gfm_auto_identifiers` can now be used in all formats.
5173 * Text.Pandoc.Writers.AsciiDoc
5175 + Use `.`+ as list markers to support nested ordered lists (#5087).
5176 + Support list number styles (#5089).
5177 + Render Spans using `[#id .class]#contents#` (#5080).
5179 * Text.Pandoc.Writers.CommonMark
5181 + Respect `--ascii` (#5043, quasicomputational).
5182 + Make sure `--ascii` affects quotes, super/subscript.
5184 * Text.Pandoc.Writers.Docx
5186 + Fix bookmarks to headers with long titles (#5091).
5187 Word has a 40 character limit for bookmark names. In addition, bookmarks
5188 must begin with a letter. Since pandoc's auto-generated identifiers may
5189 not respect these constraints, some internal links did not work. With
5190 this change, pandoc uses a bookmark name based on the SHA1 hash of the
5191 identifier when the identifier isn't a legal bookmark name.
5192 + Add bookmarks to code blocks (Nikolay Yakimov).
5193 + Add bookmarks to images (Nikolay Yakimov).
5194 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
5196 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
5197 Nodes of the form
5199 <meta name="calibre:series" content="Classics on War and Politics"/>
5201 are now included from an epub XML metadata file. You can also include
5202 this information in your YAML metadata, like so:
5204 calibre:
5205 series: Classics on War and Policitics
5207 In addition, ibooks-specific metadata can now be included via an XML
5208 file. (Previously, it could only be included via YAML metadata, see
5209 #2693.)
5211 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
5212 attributes.
5214 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
5215 This avoids splitting up the output unnecessarily into separate elements.
5217 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
5218 if `writerIncremental` is True (#5072).
5220 * Text.Pandoc.Writers.Muse (Alexander Krotov).
5222 + Output tables as grid tables if they have multi-line cells.
5223 + Indent simple tables only on the top level.
5224 + Output tables with one column as grid tables.
5225 + Add support for `--reference-location`.
5226 + Internal improvements.
5228 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
5229 #5095). This was a regression in pandoc 2.4.
5231 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
5233 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
5235 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
5236 when there are several choices for a particular character.
5238 * data/abbreviations
5240 + Add additional abbreviations (Andrew Dunning)
5241 Many of these borrowed from the Chicago Manual of Style 10.42,
5242 'Scholarly abbreviations'.
5244 * Templates
5246 + Asciidoc template: add :lang: to title header is lang is set in
5247 metadata (#5088).
5249 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
5250 Disabling the flag will cause derivation of ToJSON and FromJSON
5251 instances via GHC Generics instead of Template Haskell. The flag is
5252 enabled by default, as deriving via Generics can be slow (see #4083).
5254 * trypandoc:
5256 + Tweaked drop-down lists.
5257 + Put link to site in footer.
5258 + Preselect output format.
5259 + Update on change of in or out format.
5260 + Add man input format.
5262 * MANUAL.txt:
5264 + Fix outdated description of latex_macros extension.
5265 + Clarified placement of bibliography.
5266 + Added "A note on security."
5267 + Fix note on curly brace syntx for locators.
5268 + Document new explicit syntax for citeproc locators.
5269 + Remove confusing cross-links for some extensions.
5270 + Don't put pandoc in code ticks in heading.
5271 + Document that `--ascii` works for gfm and commonmark too.
5272 + Add `man` to `--from` options.
5274 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
5277## pandoc 2.4 (2018-11-03)
5279### New features
5281 * New input format `man` (Yan Pashkovsky, John MacFarlane).
5283### Behavior changes
5285 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
5286 via the new `writerPreferAscii` field in `WriterOptions`.
5287 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
5288 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
5289 Previously the to-ascii translation was done in Text.Pandoc.App,
5290 and thus not available to those using the writer functions
5291 directly.
5293 * `--ascii` now works with Markdown output. HTML5 character reference
5294 entities are used.
5296 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
5297 guaranteed, but the writer will use commands like `\"{a}` and `\l`
5298 whenever possible, to avoid emitting a non-ASCII character.
5300 * For HTML5 output, `--ascii` now uses HTML5 character reference
5301 entities rather than numerical entities.
5303 * Improved detection of format based on extension (in Text.Pandoc.App).
5304 We now ensure that if someone tries to convert a file for a
5305 format that has a pandoc writer but not a reader, it won't just
5306 default to markdown.
5308 * Add viz. to abbreviations file (#5007, Nick Fleisher).
5310 * AsciiDoc writer: always use single-line section headers,
5311 instead of the old underline style (#5038). Previously the single-line
5312 style would be used if `--atx-headers` was specified, but
5313 now it is always used.
5315 * RST writer: Use simple tables when possible (#4750).
5317 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
5318 quasicomputational). Previously, the writer would unconditionally
5319 emit HTML output for subscripts, superscripts, strikeouts (if the
5320 strikeout extension is disabled) and small caps, even with
5321 `raw_html` disabled. Now there are plain-text (and, where
5322 possible, fancy Unicode) fallbacks for all of these corresponding
5323 (mostly) to the Markdown fallbacks, and the HTML output is only
5324 used when `raw_html` is enabled.
5326 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
5327 This allows raw openxml blocks and inlines to be used in the pptx
5328 writer. Caveats: (1) It's up to the user to write
5329 well-formed openxml. The chances for corruption, especially with
5330 such a brittle format as pptx, is high. (2) Because of
5331 the tricky way that blocks map onto shapes, if you are using
5332 a raw block, it should be the only block on a slide
5333 (otherwise other text might end up overlapping it). (3) The
5334 pptx ooxml namespace abbreviations are different from the
5335 docx ooxml namespaces. Again, it's up to the user to get it
5336 right. Unzipped document and ooxml specification should be
5337 consulted.
5339 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
5340 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
5341 we tell katex to convert the contents of span elements with
5342 class "math". Since math has already been identified, this
5343 avoids wasted time parsing for LaTeX delimiters. Note, however,
5344 that this may yield unexpected results if you have span elements
5345 with class "math" that don't contain LaTeX math.
5346 Also, use latest version of KaTeX by default (0.9.0).
5348 * The man writer now produces ASCII-only output, using groff escapes,
5349 for portability.
5351 * ODT writer:
5353 + Add title, author and date to metadata; any remaining
5354 metadata fields are added as `meta:user-defined` tags.
5355 + Implement table caption numbering (#4949, Nils Carlson).
5356 Captioned tables are numbered and labeled with format "Table 1:
5357 caption", where "Table" is replaced by a translation, depending
5358 on the value of `lang` in metadata. Uncaptioned tables are not
5359 enumerated.
5360 + OpenDocument writer: Implement figure numbering in captions (#4944,
5361 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
5362 The format in the caption is "Figure 1: caption" and so on
5363 (where "Figure" is replaced by a translation, depending on the
5364 value of `lang` in the metadata). Captioned figures are numbered
5365 consecutively and uncaptioned figures are not enumerated. This
5366 is necessary in order for LibreOffice to generate an
5367 Illustration Index (Table of Figures) for included figures.
5369 * RST reader: Pass through fields in unknown directives as div attributes
5370 (#4715). Support `class` and `name` attributes for all directives.
5372 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
5373 Brian Leung). Headers with the corresponding tags should not
5374 appear in the output.
5376 * Log warnings about missing title attributes now include a
5377 suggestion about how to fix the problem (#4909).
5379 * Lua filter changes (Albert Krewinkel):
5381 + Report traceback when an error occurs. A proper Lua traceback is
5382 added if either loading of a file or execution of a filter
5383 function fails. This should be of help to authors of Lua filters
5384 who need to debug their code.
5386 + Allow access to pandoc state (#5015). Lua filters and custom
5387 writers now have read-only access to most fields of pandoc's
5388 internal state via the global variable `PANDOC_STATE`.
5390 + Push ListAttributes via constructor (Albert Krewinkel).
5391 This ensures that ListAttributes, as present in OrderedList elements,
5392 have additional accessors (viz. `start`, `style`, and `delimiter`).
5394 + Rename ReaderOptions fields, use snake_case. Snake case is used
5395 in most variable names, using camelCase for these fields was an
5396 oversight. A metatable is added to ensure that the old field
5397 names remain functional.
5399 + Iterate over AST element fields when using `pairs`. This makes
5400 it possible to iterate over all ield names of an AST element by
5401 using a generic `for` loop with pairs`:
5403 for field_name, field_content in pairs(element) do
5404 ...
5405 end
5407 Raw table fields of AST elements should be considered an
5408 implementation detail and might change in the future. Accessing
5409 element properties should always happen through the fields
5410 listed in the Lua filter docs.
5412 Note that the iterator currently excludes the `t`/`tag` field.
5414 + Ensure that MetaList elements behave like Lists. Methods usable
5415 on Lists can also be used on MetaList objects.
5417 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
5418 object to the constructor `pandoc.MetaList` now returns the
5419 passed list as a MetaList. This is consistent with the
5420 constructor behavior when passed an (untagged) list.
5422 * Custom writers: Custom writers have access to the global variable
5423 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
5424 a userdata wrapper around the full pandoc AST and exposes two
5425 fields, `meta` and `blocks`. The field content is only
5426 marshaled on-demand, performance of scripts not accessing the
5427 fields remains unaffected.
5429### API changes
5431 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
5433 * Text.Pandoc.Shared:
5435 + Export `splitSentences`. This was previously duplicated in the Man and
5436 Ms writers.
5437 + Add `ToString` typeclass (Alexander Krotov).
5439 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
5441 * Text.Pandoc.Parsing
5443 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
5444 + Generalize `readWithM` from `[Char]` to any `Char` Stream
5445 that is a `ToString` instance (Alexander Krotov).
5447 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
5449 * Text.Pandoc.XML: add `toHtml5Entities`.
5451 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
5452 MacFarlane).
5454 * Text.Pandoc.Writers.Shared
5456 + Add exported functions `toSuperscript` and
5457 `toSubscript` (quasicomputational, #4528).
5458 + Remove exported functions `metaValueToInlines`,
5459 `metaValueToString`. Add new exported functions
5460 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
5461 `lookupMetaString`. Use these whenever possible for uniformity
5462 in writers (Mauro Bieg, #4907). (Note that
5463 removed function `metaValueToInlines` was in previous
5464 released versions.)
5465 + Add `metaValueToString`.
5467 * Text.Pandoc.Lua
5469 + Expose more useful internals (Albert Krewinkel):
5471 - `runFilterFile` to run a Lua filter from file;
5472 - data type `Global` and its constructors; and
5473 - `setGlobals` to add globals to a Lua environment.
5475 This module also contains `Pushable` and `Peekable` instances
5476 required to get pandoc's data types to and from Lua. Low-level
5477 Lua operation remain hidden in Text.Pandoc.Lua.
5479 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
5481 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
5482 `apply` (Albert Krewinkel).
5484### Bug fixes and under-the-hood improvements
5486 * Text.Pandoc.Parsing
5488 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
5489 + Rewrite `uri` without `withRaw` (Alexander Krotov).
5490 + Generalize `parseFromString` and `parseFromString'` to any
5491 streams with Char token (Alexander Krotov)
5492 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
5494 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
5495 (Alexander Krotov).
5497 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
5498 (Alexander Krotov).
5500 * Text.Pandoc.App
5502 + Work around HXT limitation for --syntax-definition with windows
5503 drive (#4836).
5504 + Always preserve tabs for man format. We need it for tables.
5505 + Split command line parsing code into a separate unexported
5506 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
5508 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
5509 roff documents.
5511 * New unexported module Text.Pandoc.RoffChar, provided character
5512 escape tables for roff formats.
5514 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
5515 accept processing instructions (#3123, regression since 2.0).
5517 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
5518 account for empty lists (Alexander Krotov).
5520 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
5521 headerless table (#4382).
5523 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
5524 blocks (Brian Leung).
5526 * Text.Pandoc.Readers.Vimwiki:
5528 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
5529 (Alexander Krotov).
5530 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
5532 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
5533 `[Char]` (Alexander Krotov).
5535 * Text.Pandoc.Readers.LaTeX
5537 + Allow space at end of math after `\` (#5010).
5538 + Add support for `nolinkurl` command (#4992, Brian Leung).
5539 + Simplified type on `doMacros'`.
5540 + Tokenize before pulling tokens, rather than after (#4408). This
5541 has some performance penalty but is more reliable.
5542 + Make macroDef polymorphic and allow in inline context.
5543 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
5544 I have actually seen tex like this in the wild.
5545 + Improved parsing of `\def`, `\let`. We now correctly parse:
5546 ```
5547 \def\bar{hello}
5548 \let\fooi\bar
5549 \def\fooii{\bar}
5550 \fooi +\fooii
5552 \def\bar{goodbye}
5553 \fooi +\fooii
5554 ```
5555 + Improve parsing of `\def` argspec.
5556 + Skip `\PackageError` commands (see #4408).
5557 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
5558 so no raw tex should result unless we explicitly say `+raw_tex`.
5559 Previously some raw commands did make it through.
5560 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
5561 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
5562 Text.Pandoc.Readers.LaTeX.Lang (unexported).
5563 + Simplified accent code using unicode-transforms.
5564 New dependency on unicode-transforms package for normalization.
5565 + Allow verbatim blocks ending with blank lines (#4624).
5566 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
5567 This collects some of the general-purpose code from the LaTeX reader,
5568 with the aim of making the module smaller.
5570 * Text.Pandoc.Readers.Markdown
5572 + Fix awkward soft break movements before abbreviations (#4635).
5573 + Add updateStrPos in a couple places where needed.
5575 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
5576 (#4947). These are variants for "complex scripts" like Arabic
5577 and are now treated just like b, i (bold, italic).
5579 * Text.Pandoc.Readers.Muse (Alexander Krotov)
5581 + Try to parse lists before trying to parse table.
5582 This ensures that tables inside lists are parsed correctly.
5583 + Forbid whitespace after opening and before closing markup
5584 elements.
5585 + Parse page breaks.
5586 + Simplify `museToPandocTable` to get rid of partial functions.
5587 + Allow footnotes to start with empty line.
5588 + Make sure that the whole text is parsed.
5589 + Allow empty headers. Previously empty headers caused parser to
5590 terminate without parsing the rest of the document.
5591 + Allow examples to be indented with tabs.
5592 + Remove indentation from examples indicated by `{{{` and `}}}`.
5593 + Fix parsing of empty cells.
5594 + Various changes to internals.
5595 + Rewrite some parsers in applicative style.
5596 + Avoid tagsoup dependency.
5597 + Allow table caption to contain `+`.
5599 * Text.Pandoc.Writers.LaTeX
5601 + Add newline if math ends in a comment (#4880). This prevents the
5602 closing delimiter from being swalled up in the comment.
5603 + With `--listings`, don't pass through org-babel attributes (#4889).
5604 + With `--biblatex`, use `\autocite` when possible (#4960).
5605 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
5606 we don't have prefixes and suffixes, we use instead
5607 `\autocite{a1,a2,a3}`.
5608 + Fix description lists contining highlighted code (#4662).
5610 * Text.Pandoc.Writers.Man
5612 + Don't wrap `.SH` and `.SS` lines (#5019).
5613 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
5614 one paragraph definitions.
5615 + Moved common groff functions to Text.Pandoc.Writers.Groff.
5616 * Fix strong/code combination on man (should be `\f[CB]` not
5617 `\f[BC]`, see #4973).
5618 + Man writer: use `\f[R]` instead of `\f[]` to reset font
5619 (Alexander Krotov, #4973).
5620 + Move `splitSentences` to Text.Pandoc.Shared.
5622 * Text.Pandoc.Writers.Docx
5624 + Add framework for custom properties (#3034). So far, we don't
5625 actually write any custom properties, but we have the
5626 infrastructure to add this.
5628 + Handle tables in table cells (#4953). Although this is not
5629 documented in the spec, some versions of Word require a `w:p`
5630 element inside every table cell. Thus, we add one when the
5631 contents of a cell do not already include one (e.g. when a table
5632 cell contains a table).
5634 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
5635 Adjust header levels so that n+1 level headers are only
5636 found under n level headers, and the top level is 1.
5638 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
5639 alignment (#4385). This change eliminates the large gap we used
5640 to have between bullet and text, and also ensures that numbers
5641 in numbered lists will be right-aligned.
5643 * Text.Pandoc.Writers.ZimWiki
5645 + Number ordered list items sequentially, rather than always
5646 with 1 (#4962).
5647 + Remove extra indentation on lists (#4963).
5649 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
5650 `stylesheet` (Mauro Bieg, #4990).
5652 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
5653 normal content (#4629). Otherwise a raw block can prevent a
5654 paragraph from being recognized as such.
5656 * Text.Pandoc.Writers.Ms
5658 + Removed old `escapeBar`. We don't need this now that we use
5659 `@` for math delim.
5660 + Moved common code to Text.Pandoc.Writers.Roff and to
5661 Text.Pandoc.RoffChar.
5662 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
5663 with the man writer).
5665 * Text.Pandoc.Writers.Muse (Alexander Krotov).
5667 + Add support for grid tables.
5668 + Fix Muse writer style.
5669 + Use `length` instead of `realLength` to calculate definition
5670 indentation. Muse parsers don't take character width into
5671 account when calculating indentation.
5672 + Do not insert newline before lists.
5673 + Use lightweight markup after `</em>` tag.
5675 * New unexported module Text.Pandoc.Writers.Roff, providing functions
5676 useful for all roff format writers (man, ms).
5678 * Text.Pandoc.Lua
5680 + Move globals handling to separate module Text.Pandoc.Lua.Global
5681 (Albert Krewinkel).
5683 + Lua filter internals: push Shared.Element as userdata (Albert
5684 Krewinkel). Hierarchical Elements were pushed to Lua as plain
5685 tables. This is simple, but has the disadvantage that marshaling
5686 is eager: all child elements will be marshaled as part of the
5687 object. Using a Lua userdata object instead allows lazy access
5688 to fields, causing content marshaling just (but also each time)
5689 when a field is accessed. Filters which do not traverse the full
5690 element contents tree become faster as a result.
5692### Default template changes
5694 * LaTeX template:
5696 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
5697 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
5699 * AsciiDoc template: use single-line style for title.
5701 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
5702 Yoan Blanc).
5704 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
5705 (Albert Krewinkel).
5707 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
5709 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
5710 (Albert Krewinkel).
5712### Documentation improvements
5714 * INSTALL.md
5716 + Add chromeos install instructions (#4958) (Evan Pratten).
5717 + Add note about TinyTeX.
5719 * MANUAL.txt
5721 + Change `groff` -> `roff`.
5722 + Implement `--ascii` for Markdown writer.
5723 + Clarify LaTeX image dimensions output (Mauro Bieg).
5725 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
5727 * doc/getting-started.md: Added title to test1.md to avoid warning.
5729 * doc/lua-filters.md: merge type references into main document,
5730 fix description of Code.text (Albert Krewinkel).
5732### Build infrastructure improvements
5734 * Makefile
5736 + Makefile: added quick-cabal, full-cabal targets.
5737 + Make .msi download targets insensitive to order of appveyor builds.
5739 * Update benchmarks for ghc 8.6.1.
5741 * pandoc.cabal:
5743 + Enable more compiler warnings (Albert Krewinkel).
5744 + Make base lower bound 4.8.
5745 + Bump upper bound for QuickCheck.
5746 + Bump upper bound for binary.
5747 + Updated version bounds for containers and haddock-library (#4974).
5748 + Added docx/docPropos/custom.xml to cabal data-files.
5749 + Require skylighting 0.7.4 (#4920).
5750 + New dependency on unicode-transforms package for normalization.
5752 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
5754 * Added `tools/changelog-helper.sh`.
5756 * Added test/grofftest.sh for testing the man reader on real man pages.
5758## pandoc 2.3.1 (2018-09-28)
5760 * RST reader:
5762 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
5763 This eliminates a regression introduced after pandoc 2.1.1, which
5764 caused inline constructions containing newlines not to be recognized.
5765 + Fix bug with internal link targets (#4919). They were gobbling up
5766 indented content underneath.
5768 * Markdown reader: distinguish autolinks in the AST. With this change,
5769 autolinks are parsed as Links with the `uri` class. (The same is true
5770 for bare links, if the `autolink_bare_uris` extension is enabled.)
5771 Email autolinks are parsed as Links with the `email` class. This
5772 allows the distinction to be represented in the AST.
5774 * Org reader:
5776 + Force inline code blocks to honor export options (Brian Leung).
5777 + Parse empty argument array in inline src blocks (Brian Leung).
5779 * Muse reader (Alexander Krotov):
5781 + Added additional tests.
5782 + Do not allow code markup to be followed by digit.
5783 + Remove heading level limit.
5784 + Simplify `<literal>` tag parsers
5785 + Parse Text instead of String. Benchmark shows 7% improvement.
5786 + Get rid of HTML parser dependency.
5787 + Various code improvements.
5789 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
5790 We do this in the LaTeX writer, and it avoids problems.
5791 Note that `/` works as a LaTeX path separator on Windows.
5793 * LaTeX writer:
5795 + Add support for multiprenote and multipostnote arguments
5796 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
5797 the first prefix of a multicite, and the multipostnotes follow the
5798 last suffix.
5799 + Fix a use of `last` that might take empty list. If you ran with
5800 `--biblatex` and have an empty document (metadata but no blocks),
5801 pandoc would previously raise an error because of the use of
5802 `last` on an empty list.
5804 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
5805 MonadFail instance (Jonas Scholl).
5807 * ODT Writer: Improve table header row style handling (Nils Carlson).
5808 This changes the way styles for cells in the header row
5809 and normal rows are handled in ODT tables.
5810 Previously a new (but identical) style was generated for
5811 every table, specifying the style of the cells within the table.
5812 After this change there are two style definitions for table cells,
5813 one for the cells in the header row, one for all other cells.
5814 This doesn't change the actual styles, but makes post-processing
5815 changes to the table styles much simpler as it is no longer
5816 necessary to introduce new styles for header rows and there are
5817 now only two styles where there was previously one per table.
5819 * HTML writer:
5821 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
5822 class was added to autolinks by the HTML writer, but it had to
5823 guess what was an autolink and could not distinguish
5824 `[http://example.com](http://example.com)` from
5825 `<http://example.com>`. It also incorrectly recognized
5826 `[pandoc](pandoc)` as an autolink. Now the HTML writer
5827 simply passes through the `uri` attribute if it is present,
5828 but does not add anything.
5829 + Avoid adding extra section nestings for revealjs.
5830 Previously revealjs title slides at level (slidelevel - 1)
5831 were nested under an extra section element, even when
5832 the section contained no additional (vertical) content.
5833 That caused problems for some transition effects.
5834 + Omit unknown attributes in EPUB2 output. For example,
5835 `epub:type` attributes should not be passed through,
5836 or the epub produced will not validate.
5838 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
5839 The JATS spec does not allow these.
5841 * Textile writer: don't represent `uri` class explicitly
5842 for autolinks (#4913).
5844 * Lua filters (Albert Krewinkel):
5846 + Cleanup filter execution code.
5847 + Better error on test failure.
5849 * HTML, Muse reader tests: reduce time taken by round-trip test.
5851 * Added cabal.project.
5853 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
5855 * Use hslua v1.0.0 (Albert Krewinkel).
5857 * Fix `translations/ru` to use modern Russian orthography
5858 (Ivan Trubach).
5860 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
5861 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
5863## pandoc 2.3 (2018-09-16)
5865 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
5866 users to specify metadata in a YAML file, regardless of the
5867 input format (#1960).
5869 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
5871 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
5872 Mauro Bieg).
5874 * Text.Pandoc.Readers.LaTeX.Types:
5876 + New type `ArgSpec` (API change).
5877 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
5878 `Int` (API change).
5880 * Markdown reader:
5882 + Use `tex` instead of `latex` for raw tex-ish content. We can't
5883 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
5884 use `tex` always. Note that if `context` or `latex` specifically
5885 is desired, you can still force that in a markdown document by
5886 using the raw attribute. Note that this change may affect some
5887 filters, if they assume that raw tex parsed by the Markdown reader
5888 will be RawBlock (Format `latex`). In most cases it should be
5889 trivial to modify the filters to accept `tex` as well.
5890 + Refactor and reorganize YAML code (Mauro Bieg).
5891 + Make `example_lists` work for interrupted lists
5892 without `startnum` (#4908).
5894 * HTML reader:
5896 + Parse `<script type="math/tex` tags as math (#4877).
5897 These are used by MathJax in some configurations.
5898 + Extract spaces inside links instead of trimming them
5899 (Alexander Krotov, #4845).
5900 + Added round-trip tests (Alexander Krotov).
5901 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
5902 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
5903 (which is helpful for translation HTML documents using MathJaX).
5905 * Org reader (Albert Krewinkel):
5907 + Respect export option `p` for planning info. Inclusion of planning info
5908 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
5909 `p` export option: setting the option to `t` will add all planning
5910 information in a *Plain* block below the respective headline.
5911 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
5912 ghc extensions.
5913 + Strip planning info from output. Planning info is parsed, but not
5914 included in the output (as is the default with Emacs Org-mode, #4867).
5916 * LaTeX reader:
5918 + Handle parameter patterns for `\def` (#4768, #4771).
5919 For example: `\def\foo#1[#2]{#1 and #2}`.
5920 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
5921 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
5922 argument as the content.
5923 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
5924 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
5925 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
5926 will be parsed as a regular Quoted inline (not using the quotes
5927 appropriate to the foreign language).
5928 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
5929 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
5930 `\textcircled`. Also fall back to combining characters when composed
5931 characters are not available.
5932 + Resolve `\ref` for figure numbers.
5933 + Support `mintinline` (#4365, Marc Schreiber).
5934 + Fix siunitx unit commands so they are only recognized in
5935 siunitx contexts (#4842). For example, `\l` outside of an
5936 siunitx context should be l-slash, not l (for liter).
5937 + Fix double `unnumbered` class (#4838). The `unnumbered` class
5938 was being included twice for starred sections.
5940 * RST reader: Don't skip link definitions after comments (#4860).
5942 * Muse reader (Alexander Krotov):
5944 + Close the `</quote>` in indented tag test.
5945 There is already a separate test for unclosed `</quote>`.
5946 + Autonumber sections in the correct order. Parsing now stops
5947 at each section header to ensure the header is registered before
5948 parsing of the next section starts.
5949 + Move duplicate code into `headingStart` function.
5950 + Allow newline after opening `*` or `**`.
5951 + Don't allow digits after closing marker in lightweight markup
5952 This change makes reader more compatible with Emacs Muse.
5953 + Parse `<verse>` tag in one pass instead of using
5954 `parseFromString`. This change makes it possible to have
5955 verbatim `</verse>` tag inside verse.
5957 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
5958 (#4336). This allows pandoc to parse ODT document produced by KDE's
5959 Calligra.
5961 * Muse writer (Alexander Krotov):
5963 + Output headers without asterisks if not on the top level.
5964 + Never wrap definition list terms.
5965 + Set `envInsideBlock = True` when rendering notes.
5966 + Use `""` instead of `[]` for empty String.
5967 + Check for whitespace in the beginning and end of Str's.
5968 + Escape `-`, `;` and `>` in the beginning of strings.
5969 + Escape list markers in the beginning of notes.
5970 + Normalize inline list before testing if tags should be used.
5971 + Use tags instead of lightweight markup for empty strings.
5972 + Use lightweight markup when possible.
5973 + Escape empty strings. This guarantees that `conditionalEscapeString`
5974 never returns empty string.
5975 + Wrap conditionalEscapeString result into `Muse` type.
5976 This removes the need to pass `envInsideLinkDescription` to it.
5977 + Separate `shouldEscapeString` function.
5978 + Simplify inline list rendering.
5979 + Replace newlines in strings with spaces.
5981 * Docx writer:
5983 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
5984 + Properly handle display math in spans (#4826). This isn't a
5985 complete solution, since other nestings of display math may still
5986 cause problems, but it should work for what is by far the most
5987 common case.
5989 * HTML writer:
5991 + Always output `<dt>` element, even if it is empty (#4883,
5992 Alexander Krotov).
5993 + Don't prefix `epub:` attributes with `data-`.
5995 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
5996 recognize these escapes.
5998 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
5999 Image scaling was broken when a width was set to a percentage.
6001 * EPUB writer: set `epub:type` on body element in each chapter,
6002 depending on the `epub:type` of the first section (#4823). This
6003 only affects epub3. See
6004 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
6006 * FB2 writer: put `coverpage` element between title and date rather than in
6007 `document-info` element (#4854).
6009 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
6011 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
6012 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
6013 tex is now used. Previously we'd "fake it with unicode" and fall
6014 back to tex when that didn't work. But newer haddock versions
6015 support latex math.
6017 * TEI writer:
6019 + Ensure that title element is always present, even if empty (#4839).
6020 + Put author tags in the template, rather than adding them in
6021 the writer (#4839).
6023 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
6024 `linkcolor` only affects internal links, and `urlcolor` only
6025 affects linked URLs. For external links, the option to use is
6026 `filecolor`.
6028 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
6030 * RST writer:
6032 + Use `.. raw:: latex` for `tex` content.
6033 + Use `.. container` for generic Divs, instead of raw HTML.
6034 + Render Divs with admonition classes as admonitions (#4833).
6035 Also omit Div with class `admonition-title`. These are generated
6036 by the RST reader and should be omitted on round-trip.
6038 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
6039 (#4855, Antonio Terceiro).
6041 * HTML5 template: add the `title-block-header` identifier to the
6042 `header` element, to make it easier to style precisely (#4767,
6043 J. B. Rainsberger).
6045 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
6046 José de Mattos Neto).
6048 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
6049 (#4853, Wandmalfarbe).
6051 * TEI template: improve `publicationStmt`. Add support for
6052 `publisher`, `address`, `pubPlace`, and `date` variables.
6054 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
6056 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
6058 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
6060 * MANUAL.txt:
6062 + Clarify that `--biblatex/--natbib` don't work directly for PDF
6063 (#4904).
6064 + Document `epub:type` attribute (Mauro Bieg, #4901)
6065 + Clarify when `--resource-path` has an effect.
6066 + More detail on customization in syntax highlighting section.
6067 + Document encoding issue with `--listings` (#4871, Damien Clochard).
6068 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
6069 + Use https for context wiki links (#4910).
6071 * CONTRIBUTING.md:
6073 + Link to lua-filters repository (#4874).
6074 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
6076 * lua-filters.md: add links to filters, and to lua-filters repository
6077 (#4874).
6079 * INSTALL.md:
6081 + Indicate that cabal >= 2.0 is needed.
6082 + Added chocolatey installation method (#4844, Miodrag Milić).
6084 * Travis: exclude round-trip tests, except for nightly test which can fail.
6086 * Use latest texmath, pandoc-citeproc.
6088 * Use a patched version of foundation until
6089 https://github.com/haskell-foundation/foundation/pull/503
6090 is fixed.
6092 * Clean up appveyor build and Windows package creation.
6093 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
6094 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
6096 * Remove obsolete RELEASE-CHECKLIST.md.
6098 * Added additional compiler warnings in Makefile and CI builds.
6100## pandoc 2.2.3.2 (2018-08-07)
6102 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
6103 This fixes a regression in 2.2.3, which cause boolean values to
6104 be parsed as MetaInlines instead of MetaBool.
6106 We here record another undocumented (but desirable) change in 2.2.3:
6107 numerical metadata fields are now parsed as MetaInlines rather than
6108 MetaString.
6110## pandoc 2.2.3.1 (2018-08-06)
6112 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
6113 (#4817). This fixes a regression in 2.2.3 which caused embedded
6114 mappings (e.g. mappings in sequences) not to work in YAML metadata.
6116## pandoc 2.2.3 (2018-08-05)
6118 * RST reader: improve parsing of inline interpreted text roles (#4811).
6120 + Use a Span with class "title-reference" for the default
6121 title-reference role.
6122 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
6123 and `Str`s for `title-reference`.
6124 + Use Code with class "interpreted-text" instead of Span and Str for
6125 unknown roles. (The RST writer has also been modified to round-trip
6126 this properly.)
6127 + Disallow blank lines in interpreted text.
6128 + Backslash-escape now works in interpreted text.
6129 + Backticks followed by alphanumerics no longer end interpreted text.
6130 + Remove support for nested inlines (Francesco Occhipinti).
6131 RST does not allow nested emphasis, links, or other inline
6132 constructs. This fixes several bugs (#4581, #4561, #4792).
6134 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
6135 Krewinkel). Emphasis was not parsed when it followed directly after
6136 some block types (e.g., lists).
6138 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
6139 keys. Previously in 2.2.2 you could not do
6140 ```
6141 ---
6142 0: bar
6143 ...
6144 ```
6145 but only
6146 ```
6147 ---
6148 '0': bar
6149 ...
6150 ```
6151 With this change, both forms work.
6153 * DocBook reader: metadata handling improvements.
6154 Now we properly parse title and subtitle elements that are direct
6155 children of book and article (as well as children of bookinfo,
6156 articleinfo, or info). We also now use the `subtitle` metadata
6157 field for subtitles, rather than tacking the subtitle on to the
6158 title.
6160 * RST writer:
6162 + Allow images to be directly nested within links (#4810, Francesco
6163 Occhipinti).
6164 + Use `titleblock` instead of `title` variable for title block (#4803,
6165 Francesco Occhipinti). `titleblock` contains a properly formatted
6166 title and subtitle (using top-level headers). `title` and
6167 `subtitle` variables are still available and just contain the
6168 title and subtitle text. Note that this change will require an
6169 update to custom rst templates.
6170 + Render Code with class "interpreted-text" as interpreted text role.
6172 * MediaWiki writer: Avoid extra blank line in tables with empty cells
6173 (#4794). Note that the old output is semantically identical, but the
6174 new output looks better.
6176 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
6177 Krewinkel). Exposes a function converting which flattenes a list of
6178 blocks into a list of inlines. An example use case would be the
6179 conversion of Note elements into other inlines.
6181 * RST template: use `titleblock` instead of `title`. Users of
6182 custom RST templates will want to update this.
6184 * LaTeX template: Moved some beamer code in default.latex template.
6185 This change allows beamer themes to change the template and font (as
6186 Metropolis does) (#4450).
6188 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
6190 * Added test case for #4669 to repository.
6192 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
6194 * MANUAL.txt:
6196 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
6197 + Clarify when `csquotes` is used in LaTeX writer (#4514).
6198 + Add `commonmark` to list of output formats where `raw_tex` has an
6199 effect (see #4527).
6202## pandoc 2.2.2.1 (2018-07-19)
6204 * Fix regression finding templates in user data directory (#4777).
6205 Under version 2.2.1 and prior pandoc found latex templates in the
6206 templates directory under the data directory, but this broke in 2.2.2.
6208 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
6209 `rawLaTeXInline` (#4781). (This primarily affects the markdown
6210 reader, and other readers that accept raw tex.)
6211 Starting in 2.2.2, everything after an `\input` (or `\include`)
6212 in a markdown file would be parsed as raw LaTeX.
6214 * MANUAL:
6216 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
6217 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
6218 Unlike `tags`, `keywords` is used in some of the writers
6219 and default templates.
6221 * Add missing `rollingLinks` option to revealjs template (#4778,
6222 Igor Khorlo).
6224## pandoc 2.2.2 (2018-07-16)
6226 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
6227 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
6229 Note: HsYAML implements YAML 1.2, in which the valid true
6230 values are `true`, `True`, `TRUE`. This means a change in
6231 the semantics of YAML metadata that could affect users:
6232 `y`, `yes`, and `on` no longer count as true values.
6234 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
6235 Bieg).
6237 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
6238 Anders Waldenborg). Non-ascii characters were not stripped from
6239 identifiers even if the `ascii_identifiers` extension was
6240 enabled (which is is by default for gfm).
6242 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
6243 Remove trailing Space from list items. Parse lists that have no space
6244 after marker.
6246 * LaTeX reader:
6248 + Treat `lilypond` as a verbatim environment (#4725).
6249 + Parse figure label into Image id (#4700, Mauro Bieg).
6250 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
6251 + Allow spaces around `\graphicspath` arguments (#4698).
6252 + Handle includes without surrounding blanklines (#4553).
6253 In addition, `\input` can now be used in an inline context,
6254 e.g. to provide part of a paragraph, as it can in LaTeX.
6255 + In `rawLaTeXBlock`, handle macros that resolve to a
6256 `\begin` or `\end` (#4667).
6257 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
6258 Note that this only affected LaTeX in markdown.
6259 + Tighten up reading of beamer overlay specifications (#4669).
6260 Ideally we'd turn these on only when reading beamer, but currently
6261 beamer is not distinguished from latex as an input format.
6262 This commit also activates parsing of overlay specifications
6263 after commands in general (e.g. `\item`), since they can occur
6264 in many contexts in beamer.
6265 + Parse more siunitx unit commands (#4296, #4773).
6266 + Be more forgiving in key/value option parsing (#4761).
6268 * Markdown reader:
6270 + Allow empty code spans, e.g. `` ` ` ``.
6271 + Emojis are now wrapped in Spans with class `emoji` and
6272 attribute `data-emoji` (Anders Waldenborg, #4743).
6273 This allows the writer to handle them in a special way
6274 (e.g. using a special font, or just rendering the
6275 emoji name).
6277 * Muse reader (Alexander Krotov, except where indicated):
6279 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
6280 + Add support for floating images.
6281 + Add support for images with specified width.
6282 + Parse image URLs without "guard" and "takeExtension".
6283 + Split link and image parsing into separate functions.
6284 + Parse links starting with "URL:" explicitly instead of trying to strip
6285 "URL:" prefix after parsing.
6287 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
6288 Alexander Krotov).
6290 * Markdown writer: Preserve `implicit_figures` with attributes, even if
6291 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
6293 * Markdown and commonmark/github writers now respect the `emoji`
6294 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
6295 `:smile:` as `:smile:` rather than converting it to a smile
6296 character.
6298 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
6300 * ODT/OpenDocument writer: Make internal links work (#4358).
6301 This adds proper bookmarks to the headers with non-null IDs.
6303 * EPUB writer: Properly escape pagetitle. Previously we weren't
6304 escaping `&` and other XML characters in the pagetitle, so a title
6305 containing a `&` would be invalid.
6307 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
6308 Mauro Bieg).
6310 * RST writer:
6312 + Don't treat 'example' as a syntax name (#4748).
6313 This fixes conversions from org with example blocks.
6314 + Support `--number-sections` via the `section-numbering`
6315 directive in standalone output.
6317 * reveal.js writer and template: reuse mathjax URL
6318 provided by the argument to `--mathjax` or the normal pandoc default,
6319 rather than a hard-coded one in the template (#4701).
6321 * LaTeX writer:
6323 + Properly handle footnotes in table captions (#4683).
6324 Refactored code from figure captions to use in both places.
6325 + In beamer output, fix single digit column percentage (#4690, Mauro
6326 Bieg).
6328 * FB2 writer (Alexander Krotov):
6330 + Convert Plain to Para in annotation (#2424).
6331 + Fix order of items in title-info (#2424).
6333 * Custom writer: fix error message on script failure (Albert Krewinkel).
6334 Error messages produced by Lua were not displayed by Pandoc.
6336 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
6337 inline containing the emoji character and some attributes with metadata
6338 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
6339 Anders Waldenborg, #4743).
6341 * Text.Pandoc.PDF:
6343 + Revert fix for #4484 (only compress images on last run, #4755).
6344 This will mean some increase in the time it takes to
6345 produce an image-heavy PDF with xelatex, but it will
6346 make tables of contents correct, which is more important.
6347 + Fix logic error in `runTeXProgram`. We were running the tex program
6348 one more time than requested. This should speed up PDF production.
6350 * Allow `--template` to take a URL as argument.
6352 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
6353 highlighting style (#4687, Adrian Sieber, API change).
6355 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
6356 installer the recommended method, and note that on some older versions of
6357 macOS, homebrew installs from source and takes a lot of disk space
6358 (#4664, Ian).
6360 * MANUAL:
6362 + Clarify EPUB linked media (#4756, Mauro Bieg)
6363 + Update manual for "true" YAML values. Now that we're using HsYAML and
6364 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
6365 `y`, `yes`, `on` no longer count as true values.
6366 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
6367 + Update manual on how math is rendered in LaTeX.
6368 + Add proxy description (#4131, Mauro Bieg).
6369 + Clarify that `--toc` requires `--standalone` (#4703).
6370 + Update citation styles link (#4699, wiefling).
6372 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
6373 (kaizshang91). Note that it will not take effect when readers/writers
6374 are called as libraries (#4674).
6376 * Improved translations/fr (#4766, lux-lth).
6378 * Removed inadvertently added `.orig` files from repository (#4648).
6380 * Remove `network-uri` flag and use 'Network.Socket'.
6381 This removes a compiler warning. There is no need for the old
6382 `network-uri` flag, since network 2.6 was released in 2014.
6384 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
6386 * Bump upper bounds for dependent packages.
6388 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
6389 confused because of the way ghc 7.10 is excluded in foundation's
6390 cabal file. This can be removed when haskell-foundation/foundation#500
6391 is fixed.
6393 * Require cabal-version >= 2.0. This is needed for haddock-library.
6398## pandoc 2.2.1 (2018-05-10)
6400 * Restored and undeprecated gladtex for HTML math (#4607).
6402 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
6403 [API change, reverts removal in v2.2]
6404 + Restored and undeprecated `--gladtex` option, removed in v2.2.
6406 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
6408 * Org reader: Fix image filename recognition (Albert Krewinkel).
6409 Use a function from the filepath library to check whether a string is a
6410 valid file name. The custom validity checker that was used before gave
6411 wrong results (e.g. for absolute file paths on Windows,
6412 kawabata/ox-pandoc#52).
6414 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
6416 * HTML writer:
6418 + Strip links from headers when creating TOC (#4340).
6419 Otherwise the TOC entries will not link to the sections.
6420 + Fix regression with tex math environments in HTML + MathJax (#4639).
6422 * Muse writer (Alexander Krotov): Add support for left-align and
6423 right-align classes (#4542).
6425 * Docx writer: Support underline (#4633).
6427 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
6428 `singleQuoteStart` and `doubleQuoteStart` (#4637).
6430 * `test-pandoc-utils.lua`: more robust testing on both windows
6431 and \*nix. Previously the pipe tests were only run if
6432 `\bin/false` and `/bin/sed` were present, which they aren't
6433 in default MacOS and Windows systems. Fixed by using `tr`
6434 and `false`, which should always be in the path on a \*nix
6435 system, and `find` and `echo` for Windows.
6437 * Text.Pandoc.Shared: add `uriPathToPath`.
6438 This adjusts the path from a file: URI in a way that is sensitive
6439 to Windows/Linux differences. Thus, on Windows,
6440 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
6441 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
6443 * Use `uriPathToPath` with file: URIs (#4613).
6445 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
6446 file as before.
6448 * Text.Pandoc.Class: Catch IO errors when writing media files
6449 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
6451 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
6453 * MANUAL (Mauro Bieg):
6455 + Clarify truthiness in template variables (#2281).
6456 + Clarify pipe table width calculation (#4520).
6458 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
6459 CMU Serif gives better typographic results than the previous
6460 Greek fallback DejaVu Serif.
6462 * Make HTML template polyglot (#4606, OvidiusCicero), by making
6463 `<link rel="stylesheet" href="$css$">` self-closing.
6465 * Use texmath 0.11, allowing better translation of non-ASCII
6466 characters in math (#4642).
6469## pandoc 2.2 (2018-04-27)
6471 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
6473 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
6474 and for `ms` and `man`.
6476 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
6477 `--asciimathml` options.
6479 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
6480 Krotov, API change).
6482 * Markdown reader:
6484 + Allow empty key-value attributes, like `title=""` (#2944).
6485 + Handle table w/o following blank line in fenced div (#4560).
6486 + Remove "fallback" for `doubleQuote` parser. Previously the
6487 parser tried to be efficient -- if no end double quote was found,
6488 it would just return the contents. But this could backfire in a
6489 case `**this should "be bold**`, since the fallback would return
6490 the content `"be bold**` and the closing boldface delimiter
6491 would never be encountered.
6492 + Improve computation of the relative width of the last column in a
6493 multiline table, so we can round-trip tables without constantly
6494 shrinking the last column.
6496 * EPUB reader:
6498 + Fix images with space in file path (#4344).
6500 * LaTeX reader:
6502 + Properly resolve section numbers with `\ref` and chapters (#4529).
6503 + Parse sloppypar environment (#4517, Marc Schreiber).
6504 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
6505 Previously there were some bugs in how macros were handled.
6506 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
6507 `\lowercase`, and also `\MakeTextUppercase` and
6508 `\MakeTextLowercase` from textcase (#4959).
6510 * Textile reader:
6512 + Fixed tables with no body rows (#4513).
6513 Previously these raised an exception.
6515 * Mediawiki reader:
6517 + Improve table parsing (#4508). This fixes detection of table
6518 attributes and also handles `!` characters in cells.
6520 * DocBook reader:
6522 + Properly handle title in `section` element (#4526).
6523 Previously we just got `section_title` for `section` (though `sect1`,
6524 `sect2`, etc. were handled properly).
6525 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
6527 * Docx reader:
6529 + Combine adjacent CodeBlocks with the same attributes into
6530 a single CodeBlock. This prevents a multiline codeblock in
6531 Word from being read as different paragraphs.
6533 * RST reader:
6535 + Allow < 3 spaces indent under directives (#4579).
6536 + Fix anonymous redirects with backticks (#4598).
6538 * Muse reader (Alexander Krotov):
6540 + Add support for Text::Amuse multiline headings.
6541 + Add `<math>` tag support.
6542 + Add support for `<biblio>` and `<play>` tags.
6543 + Allow links to have empty descriptions.
6544 + Require block `<literal>` tags to be on separate lines.
6545 + Allow `-` in anchors.
6546 + Allow verse to be indented.
6547 + Allow nested footnotes.
6548 + Internal improvements.
6550 * Muse writer (Alexander Krotov):
6552 + Escape `>` only at the beginning of a line.
6553 + Escape `]` in image title.
6554 + Escape `]` brackets in URLs as `%5D`.
6555 + Only escape brackets when necessary.
6556 + Escape ordered list markers.
6557 + Do not escape list markers unless preceded by space.
6558 + Escape strings starting with space.
6559 + Escape semicolons and markers after line break.
6560 + Escape `;` to avoid accidental comments.
6561 + Don't break headers, line blocks and tables with line breaks.
6562 + Correctly output empty headings.
6563 + Escape horizontal rule only if at the beginning of the line.
6564 + Escape definition list terms starting with list markers.
6565 + Place header IDs before header.
6566 + Improve span writing.
6567 + Do not join Spans in normalization.
6568 + Don't align ordered list items.
6569 + Remove key-value pairs from attributes before normalization.
6570 + Enable `--wrap=preserve` for all tests by default.
6571 + Reduced `<verbatim>` tags in output.
6572 + Internal changes.
6574 * RST writer:
6576 + Use more consistent indentation (#4563). Previously we
6577 used an odd mix of 3- and 4-space indentation. Now we use 3-space
6578 indentation, except for ordered lists, where indentation must
6579 depend on the width of the list marker.
6580 + Flatten nested inlines (#4368, Francesco Occhipinti).
6581 Nested inlines are not valid RST syntax, so we flatten them following
6582 some readability criteria discussed in #4368.
6584 * EPUB writer:
6586 + Ensure that `pagetitle` is always set, even when structured titles
6587 are used. This prevents spurious warnings about empty title
6588 elements (#4486).
6590 * FB2 writer (Alexander Krotov):
6592 + Output links inline instead of producing notes. Previously all links
6593 were turned into footnotes with unclickable URLs inside.
6594 + Allow emphasis and notes in titles.
6595 + Don't intersperse paragraph with empty lines.
6596 + Convert metadata value `abstract` to book annotation.
6597 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
6598 FB2 does not have a way to represent line breaks inside paragraphs;
6599 previously we used `<empty-line />` elements, but these are not allowed
6600 inside paragraphs.
6602 * Powerpoint writer (Jesse Rosenthal):
6604 + Handle Quoted Inlines (#4532).
6605 + Simplify code with `ParseXml`.
6606 + Allow fallback options when looking for placeholder type.
6607 + Check reference-doc for all layouts.
6608 + Simplify speaker notes logic.
6609 + Change notes state to a simpler per-slide value.
6610 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
6611 means no speaker notes.
6612 + Add tests for improved speaker notes.
6613 + Handle speaker notes earlier in the conversion process.
6614 + Keep notes with related blocks (#4477). Some blocks automatically
6615 split slides (imgs, tables, `column` divs). We assume that any
6616 speaker notes immediately following these are connected to these
6617 elements, and keep them with the related blocks, splitting after them.
6618 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
6619 It contained a nonfree ICC color calibration profile and is not needed
6620 for production of a powerpoint document.
6622 * Markdown writer:
6624 + Include a blank line at the end of the row in a single-row multiline
6625 table, to prevent it from being interpreted as a simple table (#4578).
6627 * CommonMark writer:
6629 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
6630 enabled (#4527, quasicomputational).
6632 * EPUB writer:
6634 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
6636 * LaTeX writer:
6638 + In beamer, don't use format specifier for default ordered lists
6639 (#4556). This gives better results for styles that put ordered list
6640 markers in boxes or circles.
6641 + Update `\lstinline` delimiters (#4369, Tim Parenti).
6643 * Ms writer:
6645 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
6646 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
6647 since the header font is automatically bold (#4552).
6648 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
6649 + Create pdf anchor for a Div with an identifier (#4515).
6650 + Escape `/` character in anchor ids (#4515).
6651 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
6652 to avoid ambiguity.
6654 * Man writer:
6656 + Don't escape U+2019 as `'` (#4550).
6658 * Text.Pandoc.Options:
6660 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
6661 `Text.Pandoc.Options.HTMLMathMethod` [API change].
6663 * Text.Pandoc.Class:
6665 + `writeMedia`: unescape URI-escaping in file path. This avoids
6666 writing things like `file%20one.png` to the file system.
6668 * Text.Pandoc.Parsing:
6670 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
6671 as 1100.
6672 + `uri`: don't treat `*` characters at end as part of URI (#4561).
6674 * Text.Pandoc.MIME:
6676 + Use the alias `application/eps` for EPS (#2067).
6677 This will ensure that we retain the eps extension after reading the
6678 image into a mediabag and writing it again.
6680 * Text.Pandoc.PDF:
6682 + Use `withTempDir` in `html2pdf`.
6683 + With `xelatex`, don't compress images til the last run (#4484).
6684 This saves time for image-heavy documents.
6685 + Don't try to convert EPS files (#2067). `pdflatex` converts them
6686 itself, and JuicyPixels can't do it.
6687 + For `pdflatex`, use a temp directory in the working directory.
6688 Otherwise we can have problems with the EPS conversion pdflatex
6689 tries to do, which can't operate on a file above the working
6690 directory without `--shell-escape`.
6692 * Changes to tests to accommodate changes in pandoc-types.
6693 In <https://github.com/jgm/pandoc-types/pull/36> we changed
6694 the table builder to pad cells. This commit changes tests
6695 (and two readers) to accord with this behavior.
6697 * Set default extensions for `beamer` same as `latex`.
6699 * LaTeX template:
6701 + Add `beameroption` variable (#4359, Étienne Bersac).
6702 + Use `pgfpages` package; this is needed for notes on second
6703 screen in beamer (Étienne Bersac).
6704 + Add `background-image` variable (#4601, John Muccigrosso).
6706 * reveal.js template: Add `background-image` variable (#4600,
6707 John Muccigrosso).
6709 * ms template: Fix date. Previously `.ND` was used, but this only
6710 works if you have a title page, which we don't. Thanks to @teoric.
6712 * Removed pragmas for unused extensions (#4506, Anabra).
6714 * Fix bash completion for `--print-default-data-file` (#4549).
6715 Previously this looked in the filesystem, even if pandoc
6716 was compiled with `embed_data_files` (and sometimes it looked
6717 in a nonexistent build directory). Now the bash completion
6718 script just includes a hard-coded list of data file names.
6720 * MANUAL:
6722 + Clarify template vs metadata variables (#4501, Mauro Bieg).
6723 + Fix raw content example (#4479, Mauro Bieg).
6724 + Specify that you use html for raw output in epub.
6725 + Add examples for raw docx blocks (#4472, Tristan Stenner).
6726 The documentation states that the target format name should match
6727 the output format, which isn't the case for `docx`/`openxml` and
6728 some others.
6729 + Don't say that `empty_paragraphs` affects markdown output (#4540).
6730 + Consolidate input/output format documentation (#4577, Mauro Bieg).
6732 * New README template. Take in/out formats from manual.
6734 * Fix example in lua-filters docs (#4459, HeirOfNorton).
6736 * Use the `-threaded` GHC flag when building benchmarks (#4587,
6737 Francesco Occhipinti).
6739 * Bump temporary upper bound to 1.4.
6741 * Use pandoc-citeproc 0.14.3.1.
6743 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
6745 * Removed old lib directory. This was used for something long ago,
6746 but plays no role now.
6748 * Removed unneeded data file `LaTeXMathML.js`.
6750 * Create 64- and 32-bit versions of Windows binary packages.
6752## pandoc 2.1.3 (2018-03-18)
6754 * Docx reader (Jesse Rosenthal):
6756 + Add tests for nested smart tags.
6757 + Parse nested smart tags.
6758 + Make unwrapSDT into a general `unwrap` function that can unwrap both
6759 nested SDT tags and smartTags. This makes the SmartTags constructor in
6760 the Docx type unnecessary, so we remove it (#4446).
6761 + Remove unused `docxWarnings` (Alexander Krotov).
6763 * RST reader: Allow unicode bullet characters (#4454).
6765 * Haddock reader: Better table handling, using haddock-library's
6766 new table support, if compiled against a version that
6767 includes it. Note that tables with col/rowspans will not
6768 translate well into Pandoc.
6770 * Muse reader (Alexander Krotov):
6772 + Various internal improvements.
6773 + Require closing tag to have the same indentation as opening.
6774 + Do not reparse blocks inside unclosed block tag (#4425).
6775 + Parse `<class>` tag (supported by Emacs Muse).
6776 + Do not produce empty Str element for unindented verse lines.
6778 * LaTeX reader:
6780 + Add support to parse unit string of `\SI` command (closes #4296,
6781 Marc Schreiber).
6783 * Haddock writer: In the writer, we now render tables always as
6784 grid tables, since Haddock supports these.
6786 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
6788 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
6789 docx writer. We want decimal for the top level, not lower roman.
6791 * RST writer:
6793 + Strip whitespace at beginning and ending of inline containers
6794 (#4327, Francesco Occhipinti).
6795 + Filter out empty inline containers (#4434). There is nothing in
6796 RST that corresponds to e.g. `Emph []`, so we just ignore elements
6797 like this (Francesco Occhipinti).
6799 * Muse writer (Alexander Krotov):
6801 + Support spans with anchors.
6802 + Replace smallcaps with emphasis before normalization.
6803 + Output smallcaps as emphasis.
6804 + Expand Cite before list normalization.
6805 + Write empty inline lists as `<verbatim></verbatim>`.
6806 + Remove empty Str from the beginning of inline lists during normalization.
6807 + Escape "-" to avoid creating bullet lists.
6808 + Fix math expansion for more than one expression per paragraph.
6809 + Expand math before inline list normalization.
6811 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
6813 * Ms writer:
6815 + Asciify pdf anchors, since unicode anchors don't work (#4436).
6816 Internal links should be converted automatically, so this shouldn't
6817 affect users directly.
6818 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
6820 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
6821 (#4307). If it's in the title, then we get a titlebar on slides with
6822 the `plain` attribute, when the id is non-null. This fixes a regression
6823 in 2.0.
6825 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
6827 * JATS writer: Remove extraneous, significant whitespace (#4335,
6828 Nokome Bentley).
6830 * html2pdf: inject base tag with current working directory (#4413, Mauro
6831 Bieg). This helps ensure that linked resources are included.
6833 * Add Semigroup instances for everything for which we defined a
6834 Monoid instance previously (API change):
6836 + Text.Pandoc.Class.FileTree.
6837 + Text.Pandoc.Translations.Translations.
6838 + Text.Pandoc.Extensions.Extensions.
6839 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
6840 + Text.Pandoc.Pretty.Doc.
6841 + Text.Pandoc.MediaBag.MediaBag.
6843 * Add custom Prelude to give clean code for Monoid and Semigroup
6844 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
6845 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
6846 in all source files, and Prelude is explicitly imported
6847 (this is necessary for ghci to work properly with the custom prelude).
6849 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
6851 + Export `stripLeadingTrailingSpace`.
6852 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
6853 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
6854 expand cells, even if it results in cells that don't respect relative
6855 widths or surpass page column width. This change affects RST,
6856 Markdown, and Haddock writers.
6858 * Raise error if someone tries to print docx, odt, etc. template (#4441).
6860 * LaTeX template: Provide `bidi` package's option using
6861 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
6862 clash when `polyglossia` loads it first and then it is loaded again
6863 for XeLaTeX.
6865 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
6866 Menke). Instructions on how to install the ICC profiles on ConTeXt
6867 standalone can be found in the wiki:
6868 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
6869 If the ICC profiles are not available the log will contain error
6870 messages.
6872 * Use latest pandoc-types, skylighting
6874 * Use latest pandoc-citeproc in binary package.
6876 * Bump upper bound for time, criterion, haddock-library, exceptions,
6877 http-types, aeson, haddock-library.
6879 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
6881 * pandoc.cabal: fix up other-extensions and language fields.
6882 Language is now consistently `Haskell2010`, and other-extensions
6883 is consistently `NoImplicitPrelude`. Everything else to be specified
6884 in the module header as needed.
6886 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
6887 This is no longer necessary since we no longer support ghc 7.8.
6889 * Make `weigh-pandoc` into a benchmark program.
6890 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
6891 automatically when you build (and run) benchmarks.
6893 * MANUAL: add instructions for background images reveal.js (#4325, John
6894 Muccigrosso).
6896 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
6898## pandoc 2.1.2 (2018-03-02)
6900 * Markdown reader:
6902 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
6903 "nonindent spaces" before the opening and closing `:::`, but this
6904 interfered with list parsing, so now we require the fences to be flush with
6905 the margin of the containing block.
6907 * Commonmark reader:
6909 + `raw_html` is now on by default. It can be disabled explicitly
6910 using `-f commonmark-raw_html`.
6912 * Org reader (Albert Krewinkel):
6914 + Move citation tests to separate module.
6915 + Allow changing emphasis syntax (#4378). The characters allowed before
6916 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
6917 `#+pandoc-emphasis-post`, respectively. This allows to change which
6918 strings are recognized as emphasized text on a per-document or even
6919 per-paragraph basis. Example:
6921 #+pandoc-emphasis-pre: "-\t ('\"{"
6922 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
6924 * LaTeX reader:
6926 + Fixed comments inside citations (#4374).
6927 + Fix regression in package options including underscore (#4424).
6928 + Make `--trace` work.
6929 + Fixed parsing of `tabular*` environment (#4279).
6931 * RST reader:
6933 + Fix regression in parsing of headers with trailing space (#4280).
6935 * Muse reader (Alexander Krotov):
6937 + Enable `<literal>` tags even if amuse extension is enabled.
6938 Amusewiki disables <literal> tags for security reasons.
6939 If user wants similar behavior in pandoc, RawBlocks and RawInlines
6940 can be removed or replaced with filters.
6941 + Remove space prefix from `<literal>` tag contents.
6942 + Do not consume whitespace while looking for closing end tag.
6943 + Convert alphabetical list markers to decimal in round-trip test.
6944 Alphabetical lists are an addition of Text::Amuse.
6945 They are not present in Emacs Muse and can be ambiguous
6946 when list starts with "i.", "c." etc.
6947 + Allow `<quote>` and other tags to be indented.
6948 + Allow single colon in definition list term.
6949 + Fix parsing of verse in lists.
6950 + Improved parsing efficiency. Avoid `parseFromString`.
6951 Lists are parsed in linear instead of exponential time now.
6952 + Replace ParserState with MuseState.
6953 + Prioritize lists with roman numerals over alphabetical lists.
6954 This is to make sure "i." starts a roman numbered list,
6955 instead of a list with letter "i" (followed by "j", "k", ...").
6956 + Fix directive parsing.
6957 + Parse definition lists with multiple descriptions.
6958 + Parse next list item before parsing more item contents.
6959 + Fixed a bug: headers did not terminate lists.
6960 + Move indentation parsing from `definitionListItem` to `definitionList`.
6961 + Paragraph indentation does not indicate nested quote.
6962 Muse allows indentation to indicate quotation or alignment,
6963 but only on the top level, not within a <quote> or list.
6964 + Require that block tags are on separate lines.
6965 Text::Amuse already explicitly requires it anyway.
6966 + Fix matching of closing inline tags.
6967 + Various internal changes.
6968 + Fix parsing of nested definition lists.
6969 + Require only one space for nested definition list indentation.
6970 + Do not remove trailing whitespace from `<code>`.
6971 + Fix parsing of trailing whitespace. Newline after whitespace now
6972 results in softbreak instead of space.
6974 * Docx reader (Jesse Rosenthal, except where noted):
6976 + Handle nested sdt tags (#4415).
6977 + Don't look up dependant run styles if `+styles` is enabled.
6978 + Move pandoc inline styling inside custom-style span.
6979 + Read custom styles (#1843). This will read all paragraph and
6980 character classes as divs and spans, respectively. Dependent styles
6981 will still be resolved, but will be wrapped with appropriate style
6982 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
6983 This can be used in conjunction with the `custom-style` feature in the
6984 docx writer for a pandoc-docx editing workflow. Users can convert from
6985 an input docx, reading the custom-styles, and then use that same input
6986 docx file as a reference-doc for producing an output docx file. Styles
6987 will be maintained across the conversion, even if pandoc doesn't
6988 understand them.
6989 + Small change to Fields hyperlink parser. Previously, unquoted string
6990 required a space at the end of the line (and consumed it). Now we
6991 either take a space (and don't consume it), or end of input.
6992 + Pick table width from the longest row or header (Francesco Occhipinti,
6993 #4360).
6995 * Muse writer (Alexander Krotov):
6997 + Change verse markup: `> ` instead of `<verse>` tag.
6998 + Remove empty strings during inline normalization.
6999 + Don't indent nested definition lists.
7000 + Use unicode quotes for quoted text.
7001 + Write image width specified in percent in Text::Amuse mode.
7002 + Don't wrap displayMath into `<verse>`.
7003 + Escape nonbreaking space (`~~`).
7004 + Join code with different attributes during normalization.
7005 + Indent lists inside Div.
7006 + Support definitions with multiple descriptions.
7008 * Powerpoint writer (Jesse Rosenthal):
7010 + Use table styles This will use the default table style in the
7011 reference-doc file. As a result they will be easier when using
7012 in a template, and match the color scheme.
7013 + Remove empty slides. Because of the way that slides were split, these
7014 could be accidentally produced by comments after images. When animations
7015 are added, there will be a way to add an empty slide with either
7016 incremental lists or pauses.
7017 + Implement syntax highlighting. Note that background colors can't
7018 be implemented in PowerPoint, so highlighting styles that require
7019 these will be incomplete.
7020 + New test framework for pptx. We now compare the output of the
7021 Powerpoint writer with files that we know to (a) not be corrupt,
7022 and (b) to show the desired output behavior (details below).
7023 + Add `notesMaster` to `presentation.xml` if necessary.
7024 + Ignore links and (end)notes in speaker notes.
7025 + Output speaker notes.
7026 + Read speaker note templates conditionally. If there are speaker
7027 notes in the presentation, we read in the notesMasters templates
7028 from the reference pptx file.
7029 + Fix deletion track changes (#4303, Jesse Rosenthal).
7031 * Markdown writer: properly escape @ to avoid capture as citation
7032 (#4366).
7034 * LaTeX writer:
7036 + Put hypertarget inside figure environment (#4388).
7037 This works around a problem with the endfloat package and
7038 makes pandoc's output compatible with it.
7039 + Fix image height with percentage (#4389). This previously caused
7040 the image to be resized to a percentage of textwidth, rather than
7041 textheight.
7043 * ConTeXt writer (Henri Menke):
7045 + New section syntax and support `--section-divs` (#2609).
7046 `\section[my-header]{My Header}` ->
7047 `\section[title={My Header},reference={my-header}]`.
7048 The ConTeXt writer now supports the `--section-divs` option to
7049 write sections in the fenced style, with `\startsection` and
7050 `\stopsection`.
7051 + xtables: correct wrong usage of caption (Henri Menke).
7053 * Docx writer:
7055 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
7056 + Use new golden framework (Jesse Rosenthal).
7057 + Make more deterministic to facilitate testing (Jesse Rosenthal).
7058 - `getUniqueId` now calls to the state to get an incremented digit,
7059 instead of calling to P.uniqueHash.
7060 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
7061 seed (1848), so our randoms should be the same each time.
7062 + Fix ids in comment writing (Jesse Rosenthal). Comments from
7063 `--track-changes=all` were producing corrupt docx, because the
7064 writer was trying to get id from the `(ID,_,_)` field of
7065 the attributes, and ignoring the "id" entry in the key-value pairs. We
7066 now check both.
7068 * Ms writer: Added papersize variable.
7070 * TEI writer:
7072 + Use `height` instead of `depth` for images (#4331).
7073 + Ensure that id prefix is always used.
7074 + Don't emit `role` attribute; that was a leftover from the
7075 Docbook writer.
7076 + Use 'xml:id', not 'id' attribute (#4371).
7078 * AsciiDoc writer:
7080 + Do not output implicit heading IDs (#4363, Alexander
7081 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
7083 * RST writer:
7085 + Remove `blockToRST'` moving its logic into `fixBlocks`
7086 (Francesco Occhipinti).
7087 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
7089 * RST template: remove definition of 'math' role as raw.
7090 This used to be needed prior to v 0.8 of docutils, but
7091 now math support is built-in.
7093 * Slides: Use divs to set incremental/non-incremental (#4381,
7094 Jesse Rosenthal). The old method (list inside blockquote) still
7095 works, but we are encouraging the use of divs with class
7096 `incremental` or `nonincremental`.
7098 * Text.Pandoc.ImageSize:
7100 + Make image size detection for PDFs more robust (#4322).
7101 + Determine image size for PDFs (#4322).
7102 + EMF Image size support (#4375, Andrew Pritchard).
7104 * Text.Pandoc.Extensions:
7106 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
7107 the docx reader (defaulting to off) to read pargraph and character
7108 styles not understood by pandoc (as divs and spans, respectively).
7109 + Made `Ext_raw_html` default for `commonmark` format.
7111 * Text.Pandoc.Parsing:
7113 + Export `manyUntil` (Alexander Krotov, API change).
7114 + Export improved `sepBy1` (Alexander Krotov).
7115 + Export list marker parsers: `upperRoman`, `lowerRoman`,
7116 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
7118 * Tests/Lua: fix tests on windows (Albert Krewinkel).
7120 * Lua: register script name in global variable (#4393). The name of the Lua
7121 script which is executed is made available in the global Lua variable
7122 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
7124 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
7125 There is very little pptx-specific in these tests, so we abstract out
7126 the basic testing function so it can be used for docx as well. This
7127 should allow us to catch some errors in the docx writer that slipped
7128 by the roundtrip testing.
7130 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
7131 functions used to construct AST element values are stored in the Lua
7132 registry for quicker access. Getting a value from the registry is much
7133 faster than getting a global value (partly to idiosyncrasies of hslua);
7134 this change results in a considerable performance boost.
7136 * Documentation:
7138 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
7139 + `doc/lua-filters.md`: document global vars set for filters
7140 (Albert Krewinkel).
7141 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
7142 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
7143 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
7144 Rosenthal). Blockquoted lists are still described, but fenced divs are
7145 presented in preference.
7146 + MANUAL.txt: document header and footer variables (newmana).
7147 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
7148 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
7150 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
7152 * Use latest texmath.
7154 * Use latest pandoc-citeproc.
7156 * Allow exceptions 0.9.
7158 * Require aeson-pretty 0.8.5 (#4394).
7160 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
7162 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
7164 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
7166 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
7167 jarlg).
7169## pandoc 2.1.1 (2018-01-18)
7171 * Markdown reader:
7173 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
7174 blank line. See lierdakil/pandoc-crossref#160.
7175 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
7176 The change both improves performance and fixes a regression whereby
7177 normal citations inside inline notes and figure captions were not
7178 parsed correctly.
7180 * RST reader:
7182 + Better handling for headers with an anchor (#4240). Instead of creating a
7183 Div containing the header, we put the id directly on the header.
7184 This way header promotion will work properly.
7185 + Add aligned environment when needed in math (#4254). `rst2latex.py`
7186 uses an `align*` environment for math in `.. math::` blocks, so this
7187 math may contain line breaks. If it does, we put the math in an
7188 `aligned` environment to simulate `rst2latex.py`'s behavior.
7190 * HTML reader:
7192 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
7194 * LaTeX reader:
7196 + Advance source position at end of stream.
7197 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
7198 extension is set (#4246). This reverts to earlier behavior and is
7199 probably safer on the whole, since some macros only modify things in
7200 included packages, which pandoc's macro expansion can't modify.
7201 + Fixed pos calculation in tokenizing escaped space.
7202 + Allow macro definitions inside macros (#4253). Previously we went into
7203 an infinite loop with
7204 ```
7205 \newcommand{\noop}[1]{#1}
7206 \noop{\newcommand{\foo}[1]{#1}}
7207 \foo{hi}
7208 ```
7209 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
7210 widths for the body were different from widths for the header in some
7211 tables.
7213 * Docx reader (Jesse Rosenthal):
7215 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
7216 hyperlink found in older versions of word. The changes introduced for
7217 this, though, create a framework for parsing further fields in MS Word
7218 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
7219 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
7220 contains a simple parsec parser. At the moment, only simple hyperlink
7221 fields are accepted, but that can be extended in the future.
7223 * Muse reader (Alexander Krotov):
7225 + Parse `~~` as non-breaking space in Text::Amuse mode.
7226 + Refactor list parsing.
7228 * Powerpoint writer (Jesse Rosenthal):
7230 + Change reference to `notesSlide` to `endNotesSlide`.
7231 + Move image sizing into `picProps`.
7232 + Improve table placement.
7233 + Make our own `_rels/.rels` file.
7234 + Import reference-doc images properly.
7235 + Move `Presentation.hs` out of `PandocMonad`.
7236 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
7237 defines the Presentation datatype and goes Pandoc->Presentation;
7238 T.P.W.Pandoc.Output goes Presentation->Archive.
7239 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
7240 + Avoid overlapping blocks in column output.
7241 + Position images correctly in two-column layout.
7242 + Make content shape retrieval environment-aware.
7243 + Improve image handling. We now determine image and caption placement
7244 by getting the dimensions of the content box in a given layout.
7245 This allows for images to be correctly sized and positioned in a
7246 different template. Note that images without captions and headers are
7247 no longer full-screened. We can't do this dependably in different
7248 layouts, because we don't know where the header is (it could be to
7249 the side of the content, for example).
7250 + Read presentation size from reference file. Our presentation size is
7251 now dependent on the reference/template file we use.
7252 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
7253 subheaders will be printed in bold and given a bit of extra space
7254 before them. Note that at the moment, no distinction is made between
7255 levels of headers above the slide header, though that can be changed.
7256 + Check for required files. Since we now import from reference/dist
7257 file by glob, we need to make sure that we're getting the files we
7258 need to make a non-corrupt Powerpoint. This performs that check.
7259 + Improve templating using `--reference-doc`. Templating should work
7260 much more reliably now.
7261 + Include Notes slide in TOC.
7262 + Set notes slide header to slide-level.
7263 + Add table of contents. This is triggered by the `--toc` flag. Note
7264 that in a long slide deck this risks overrunning the text box. The user
7265 can address this by setting `--toc-depth=1`.
7266 + Set notes slide number correctly.
7267 + Clean up adding metadata slide. We want to count the slide numbers
7268 correctly if it's in there.
7269 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
7270 an anchor link. In powerpoint these are links to slides, so we keep
7271 track of a map relating anchors to the slides they occur on.
7272 + Make the slide number available to the blocks. For anchors,
7273 block-processing functions need to know what slide number
7274 they're in. We make the `envCurSlideId` available to blocks.
7275 + Move `curSlideId` to environment.
7276 + Allow setting `toc-title` in metadata.
7277 + Link notes to endnotes slide.
7279 * Markdown writer:
7281 + Fix cell width calculation (#4265). Previously we could get
7282 ever-lengthening cell widths when a table was run repeatedly through
7283 `pandoc -f markdown -t markdown`.
7285 * LaTeX writer:
7287 + Escape `&` in lstinline (Robert Schütz).
7289 * ConTeXt writer:
7291 + Use xtables instead of Tables (#4223, Henri Menke).
7292 Default to xtables for context output. Natural Tables are used
7293 if the new `ntb` extension is set.
7295 * HTML writer:
7297 + Fixed footnote backlinks with `--id-prefix` (#4235).
7299 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
7300 Henri Menke).
7302 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
7303 (Jesse Rosenthal, API change).
7305 * Lua filters (Albert Krewinkel):
7307 + Make `PANDOC_READER_OPTIONS` available.
7308 The options which were used to read the document are made available to
7309 Lua filters via the `PANDOC_READER_OPTIONS` global.
7310 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
7311 on a Pandoc document.
7312 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
7313 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
7314 + Improve error messages. Provide more context about the task
7315 which caused an error.
7317 * data/pandoc.lua (Albert Krewinkel):
7319 + Accept singleton inline as a list. Every constructor which accepts a
7320 list of inlines now also accepts a single inline element for
7321 convenience.
7322 + Accept single block as singleton list. Every constructor which accepts
7323 a list of blocks now also accepts a single block element for
7324 convenience. Furthermore, strings are accepted as shorthand for
7325 `{pandoc.Str "text"}` in constructors.
7326 + Add attr, listAttributes accessors. Elements with
7327 attributes got an additional `attr` accessor. Attributes were
7328 accessible only via the `identifier`, `classes`, and `attributes`,
7329 which was in conflict with the documentation, which indirectly states
7330 that such elements have the an `attr` property.
7331 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
7332 module is closely tied to the pandoc version, which is available via
7333 `PANDOC_VERSION`.
7334 + Fix access to Attr components. Accessing an Attr value (e.g.,
7335 ` Attr().classes`) was broken; the more common case of accessing it via
7336 an Inline or Block element was unaffected by this.
7338 * Move `metaValueToInlines` to from Docx writer to
7339 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
7340 (Jesse Rosenthal).
7342 * MANUAL.txt:
7344 + Clarify otherlangs in LaTeX (#4072).
7345 + Clarify `latex_macros` extension.
7346 + Recommend use of `raw_attribute` extension in header includes (#4253).
7348 * Allow latest QuickCheck, tasty, criterion.
7350 * Remove custom prelude and ghc 7.8 support.
7352 * Reduce compiler noise (exact paths for compiled modules).
7354## pandoc 2.1 (2018-01-07)
7356 * Allow filters and lua filters to be interspersed (#4196). Previously
7357 we ran all lua filters before JSON filters. Now we run filters in
7358 the order they are presented on the command line, whether lua or JSON.
7359 There are two incompatible API changes: The type of `applyFilters`
7360 has changed, and `applyLuaFilters` has been removed. `Filter` is
7361 also now exported.
7363 * Use latest skylighting and omit the `missingIncludes` check, fixing
7364 a major performance regression in earlier releases of the 2.x series
7365 (#4226). Behavior change: If you use a custom syntax definition that
7366 refers to a syntax you haven't loaded, pandoc will now complain when
7367 it is highlighting the text, rather than doing a check at the start.
7368 This change dramatically speeds up invocations of pandoc on short
7369 inputs.
7371 * Text.Pandoc.Class: make `FileTree` opaque (don't export
7372 `FileTree` constructor). This forces users to interact with it using
7373 `insertInFileTree` and `getFileInfo`, which normalize file names.
7375 * Markdown reader:
7377 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
7378 direct, avoiding `parseFromString`. And it performs significantly
7379 better; unfortunately, parsing time still increases exponentially
7380 (see #1735).
7381 + Avoid parsing raw tex unless `\` + letter seen. This seems to
7382 help with the performance problem, #4216.
7384 * LaTeX reader: Simplified a check for raw tex command.
7386 * Muse reader (Alexander Krotov):
7388 + Enable round trip test (#4107).
7389 + Automatically translate `#cover` into `#cover-image`.
7390 Amusewiki uses #cover directive to specify cover image.
7392 * Docx reader (Jesse Rosenthal):
7394 + Allow for insertion/deletion of paragraphs (#3927).
7395 If the paragraph has a deleted or inserted paragraph break (depending
7396 on the track-changes setting) we hold onto it until the next
7397 paragraph. This takes care of accept and reject. For this we introduce
7398 a new state which holds the ils from the previous para if necessary.
7399 For `--track-changes=all`, we add an empty span with class
7400 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
7401 prior to the break to be inserted or deleted.
7402 + Remove unused anchors (#3679). Docx produces a lot of anchors with
7403 nothing pointing to them---we now remove these to produce cleaner
7404 output. Note that this has to occur at the end of the process
7405 because it has to follow link/anchor rewriting.
7406 + Read multiple children of `w:sdtContents`.
7407 + Combine adjacent anchors. There isn't any reason to have numerous
7408 anchors in the same place, since we can't maintain docx's
7409 non-nesting overlapping. So we reduce to a single anchor.
7410 + Improved tests.
7412 * Muse writer (Alexander Krotov): don't escape URIs from AST
7414 * Docx writer:
7416 + Removed redundant subtitle in title (Sebastian Talmon).
7417 + `firstRow` table definition compatibility for Word 2016 (Sebastian
7418 Talmon). Word 2016 seems to use a default value of "1" for table
7419 headers, if there is no firstRow definition (although a default
7420 value of 0 is documented), so all tables get the first Row formatted
7421 as header. Setting the parameter to 0 if the table has no header
7422 row fixes this for Word 2016
7423 + Fix custom styles with spaces in the name (#3290).
7425 * Powerpoint writer (Jesse Rosenthal):
7427 + Ignore Notes div for parity with other slide outputs.
7428 + Set default slidelevel correctly. We had previously defaulted to
7429 slideLevel 2. Now we use the correct behavior of defaulting to the
7430 highest level header followed by content. We change an expected test
7431 result to match this behavior.
7432 + Split blocks correctly for linked images.
7433 + Combine adjacent runs.
7434 + Make inline code inherit code size. Previously (a) the code size
7435 wasn't set when we force size, and (b) the properties was set from
7436 the default, instead of inheriting.
7437 + Simplify `replaceNamedChildren` function.
7438 + Allow linked images. The following markdown:
7439 `[![Image Title](image.jpg)](http://www.example.com)`
7440 will now produce a linked image in the resulting PowerPoint file.
7441 + Fix error with empty table cell. We require an empty `<a:p>` tag,
7442 even if the cell contains no paragraphs---otherwise PowerPoint
7443 complains of corruption.
7444 + Implement two-column slides. This uses the columns/column div
7445 format described in the pandoc manual. At the moment, only two
7446 columns (half the screen each) are allowed. Custom widths are not
7447 supported.
7448 + Added more tests.
7450 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
7452 * Lua filters (Albert Krewinkel):
7454 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
7455 + The current pandoc-types version is made available to Lua programs in
7456 the global `PANDOC_API_VERSION`. It contains the version as a list of
7457 numbers.
7458 + The pandoc version available as a global `PANDOC_VERSION` (a list
7459 of numbers).
7460 + `data/pandoc.lua`: make `Attr` an `AstElement`.
7461 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
7462 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
7463 not set a metatable on the returned value, which made it difficult
7464 to amend objects of these types with new behavior. They are now
7465 subtypes of AstElement, meaning that all their objects can gain
7466 new features when a method is added to the behavior object
7467 (e.g., `pandoc.Pandoc.behavior`).
7468 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
7469 between a type and the behavioral properties of an instance of that
7470 type. The behavior of a type (and all its subtypes) can now be
7471 amended by adding methods to that types `behavior` object, without
7472 exposing the type objects internals. E.g.:
7473 ```lua
7474 pandoc.Inline.behavior.frob = function () print'42' end
7475 local str = pandoc.Str'hello'
7476 str.frob() -- outputs '42'
7477 ```
7478 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
7479 of a given type (e.g., all inline elements) was difficult, as the
7480 table used to lookup unknown methods would be reset every time a
7481 new element of that type was created, preventing recursive property
7482 lookup. This is was changed in that all methods and attributes of
7483 supertypes are now available to their subtypes.
7484 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
7485 fields were named like the Haskell fields, not like the documented,
7486 shorter version. The names are changed to match the documentation
7487 and Citations are given a shared metatable to enable simple
7488 extensibility.
7489 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
7490 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
7491 difficult to handle failures while getting lists or a Map from Lua.
7492 A bug in pandoc, which made it necessary to always pass a tag when
7493 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
7494 module's constructor functions for these values is now optional
7495 (if still recommended).
7496 + Stop exporting `pushPandocModule` (API change). The introduction
7497 of `runPandocLua` renders direct use of this function obsolete.
7498 + Update generation of module docs for lua filters.
7499 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
7500 MacFarlane). I'm sure this was intended in the first place,
7501 but currently only `Meta` is supported.
7503 * Improve benchmarks.
7505 + Set the default extensions properly.
7506 + Improve benchmark argument parsing. You can now say
7507 `make bench BENCHARGS="markdown latex reader"` and both the
7508 markdown and latex readers will be benchmarked.
7510 * MANUAL.txt simplify and add more structure (Mauro Bieg).
7512 * Generate README.md from template and MANUAL.txt.
7513 `make README.md` will generate the README.md after changes
7514 to MANUAL.txt have been made.
7516 * Update copyright notices to include 2018 (Albert Krewinkel).
7518## pandoc 2.0.6 (2017-12-28)
7520 * Added `jats` as an input format.
7522 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
7523 change) (Hamish Mackenzie).
7524 + Improved citation handling in JATS reader. JATS citations
7525 are now converted to pandoc citations, and JATS ref-lists
7526 are converted into a `references` field in metadata, suitable
7527 for use with pandoc-citeproc. Thus a JATS article with embedded
7528 bibliographic information can be processed with pandoc and
7529 pandoc-citeproc to produce a formatted bibliography.
7531 * Allow `--list-extensions` to take an optional FORMAT argument.
7532 This lists the extensions set by default for the selected FORMAT.
7533 The extensions are now alphabetized, and the `+` or `-`
7534 indicating the default setting comes before, rather than after,
7535 the extension.
7537 * Markdown reader:
7539 + Preserve original whitespace between blocks.
7540 + Recognize `\placeformula` as context.
7541 + Be pickier about table captions. A caption starts with a `:` which
7542 can't be followed by punctuation. Otherwise we can falsely interpret
7543 the start of a fenced div, or even a table header line like
7544 `:--:|:--:`, as a caption.
7545 + Always use four space rule for example lists. It would be awkward
7546 to indent example list contents to the first non-space character after
7547 the label, since example list labels are often long. Thanks to
7548 Bernhard Fisseni for the suggestion.
7549 + Improve raw tex parsing. Note that the Markdown reader is also
7550 affected by the `latex_macros` extension changes described below
7551 under the LaTeX reader.
7553 * LaTeX reader:
7555 + `latex_macros` extension changes (#4179). Don't pass through macro
7556 definitions themselves when `latex_macros` is set. The macros
7557 have already been applied. If `latex_macros` is enabled, then
7558 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
7559 a macro definition, and will update pandoc's internal macro map
7560 accordingly, but the empty string will be returned.
7561 + Export `tokenize`, `untokenize` (API change).
7562 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
7563 + Refactored `inlineCommand`.
7564 + Fix bug in tokenizer. Material following `^^` was
7565 dropped if it wasn't a character escape. This only affected
7566 invalid LaTeX, so we didn't see it in the wild, but it appeared
7567 in a QuickCheck test failure.
7568 + Fix regression in LateX tokenization (#4159). This mainly affects the
7569 Markdown reader when parsing raw LaTeX with escaped spaces.
7570 + Add tests of LaTeX tokenizer.
7571 + Support `\foreignlanguage` from babel.
7572 + Be more tolerant of `&` character (#4208). This allows us to parse
7573 unknown tabular environments as raw LaTeX.
7575 * Muse reader (Alexander Krotov):
7577 + Parse anchors immediately after headings as IDs.
7578 + Require that note references does not start with 0.
7579 + Parse empty comments correctly.
7581 * Org reader (Albert Krewinkel):
7583 + Fix asterisks-related parsing error (#4180).
7584 + Support minlevel option for includes (#4154). The level of headers
7585 in included files can be shifted to a higher level by specifying a
7586 minimum header level via the `:minlevel` parameter. E.g.
7587 `#+include: "tour.org" :minlevel 1` will shift the headers in
7588 tour.org such that the topmost headers become level 1 headers.
7589 + Break-up org reader test file into multiple modules.
7591 * OPML reader:
7593 + Enable raw HTML and other extensions by default for notes
7594 (#4164). This fixes a regression in 2.0. Note that extensions can
7595 now be individually disabled, e.g. `-f opml-smart-raw_html`.
7597 * RST reader:
7599 + Allow empty list items (#4193).
7600 + More accurate parsing of references (#4156). Previously we erroneously
7601 included the enclosing backticks in a reference ID (#4156). This
7602 change also disables interpretation of syntax inside references, as
7603 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
7605 * Docx reader:
7607 + Continue lists after interruption (#4025, Jesse Rosenthal).
7608 Docx expects that lists will continue where they left off after an
7609 interruption and introduces a new id if a list is starting again. So
7610 we keep track of the state of lists and use them to define a "start"
7611 attribute, if necessary.
7612 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
7613 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
7614 #4190).
7616 * Plain writer:
7618 + Don't linkify table of contents.
7620 * RST writer:
7622 + Fix anchors for headers (#4188). We were missing an `_`.
7624 * PowerPoint writer (Jesse Rosenthal):
7626 + Treat lists inside BlockQuotes as lists. We don't yet produce
7627 incremental lists in PowerPoint, but we should at least treat lists
7628 inside BlockQuotes as lists, for compatibility with other slide formats.
7629 + Add ability to force size. This replaces the more specific
7630 `blockQuote runProp`, which only affected the size of blockquotes. We
7631 can use this for notes, etc.
7632 + Implement notes. This currently prints all notes on a final slide.
7633 Note that at the moment, there is a danger of text overflowing the
7634 note slide, since there is no logic for adding further slides.
7635 + Implement basic definition list functionality to PowerPoint writer.
7636 + Don't look for default template file for Powerpoint (#4181).
7637 + Add pptx to isTextFormat list. This is used to check standalone
7638 and not writing to the terminal.
7639 + Obey slide level option (Jesse Rosenthal).
7640 + Introduce tests.
7642 * Docx writer:
7644 + Ensure that `distArchive` is the one that comes with pandoc
7645 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
7646 dir) would be used instead, and this could cause problems because a
7647 user-modified docx sometimes lacks vital sections that we count
7648 on the `distArchive` to supply.
7650 * Org writer:
7652 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
7653 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
7654 Alexander Krotov). Otherwise they can be interpreted as footnote
7655 definitions.
7657 * Muse writer (Alexander Krotov):
7659 + Don't wrap note references to the next line (#4172).
7661 * HTML writer:
7663 + Use br elements in line blocks instead of relying on CSS
7664 (#4162). HTML-based templates have had the custom CSS for
7665 `div.line-block` removed. Those maintaining custom templates will want
7666 to remove this too. We still enclose line blocks in a div with class
7667 `line-block`.
7669 * LaTeX writer:
7671 + Use `\renewcommand` for `\textlatin` with babel (#4161).
7672 This avoids a clash with a deprecated `\textlatin` command defined
7673 in Babel.
7674 + Allow fragile=singleslide attribute in beamer slides (#4169).
7675 + Use `\endhead` after `\toprule` in headerless tables (#4207).
7677 * FB2 writer:
7679 + Add cover image specified by `cover-image` meta (Alexander Krotov,
7680 #4195).
7682 * JATS writer (Hamish Mackenzie):
7684 + Support writing `<fig>` and `<table-wrap>` elements
7685 with `<title>` and `<caption>` inside them by using Divs with class set
7686 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
7687 title is included as a Heading so the constraint on where Heading can
7688 occur is also relaxed.
7689 + Leave out empty alt attributes on links.
7690 + Deduplicate image mime type code.
7691 + Make `<p>` optional in `<td>` and `<th>` (#4178).
7692 + Self closing tags for empty xref (#4187).
7693 + Improve support for code language.
7695 * Custom writer:
7697 + Use init file to setup Lua interpreter (Albert Krewinkel).
7698 The same init file (`data/init`) that is used to setup the Lua
7699 interpreter for Lua filters is also used to setup the interpreter of
7700 custom writers.lua.
7701 + Define instances for newtype wrapper (Albert Krewinkel). The custom
7702 writer used its own `ToLuaStack` instance definitions, which made
7703 it difficult to share code with Lua filters, as this could result
7704 in conflicting instances. A `Stringify` wrapper is introduced to
7705 avoid this problem.
7706 + Added tests for custom writer.
7707 + Fixed definition lists and tables in `data/sample.lua`.
7709 * Fixed regression: when target is PDF, writer extensions were being
7710 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
7711 did not work properly.
7713 * Lua modules (Albert Krewinkel):
7715 + Add `pandoc.utils` module, to hold utility functions.
7716 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
7717 define the `pandoc` lua module.
7718 + Make a Haskell module for each Lua module. Move definitions for the
7719 `pandoc.mediabag` modules to a separate Haskell module.
7720 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
7721 + Add function `pandoc.utils.hierarchicalize` (convert list of
7722 Pandoc blocks into (hierarchical) list of Elements).
7723 + Add function `pandoc.utils.normalize_date` (parses a date and
7724 converts it (if possible) to "YYYY-MM-DD" format).
7725 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
7726 of numbers below 4000 into roman numerals).
7727 + Add function `pandoc.utils.stringify` (converts any AST element
7728 to a string with formatting removed).
7729 + `data/init.lua`: load `pandoc.utils` by default
7730 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
7731 utility functions are converted from hybrid lua/haskell functions
7732 into full Haskell functions. This avoids the need for intermediate
7733 `_pipe`/`_read` helper functions, which have dropped.
7734 + pandoc.lua: re-add missing MetaMap function. This was a bug
7735 introduced in version 2.0.4.
7737 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
7738 a pure way to insert an ersatz file into a `FileTree`. In addition, we
7739 normalize paths both on insertion and on lookup.
7741 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
7743 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
7745 * Text.Pandoc.Extensions: Alphabetical order constructors for
7746 `Extension`. This makes them appear in order in `--list-extensions`.
7748 * Allow lenient decoding of latex error logs, which are not always
7749 properly UTF8-encoded (#4200).
7751 * Update latex template to work with recent versions of beamer.
7752 The old template produced numbered sections with some recent
7753 versions of beamer. Thanks to Thomas Hodgson.
7755 * Updated reference.docx (#4175). Instead of just "Hello, world", the
7756 document now contains exemplars of most of the styles that have an
7757 effect on pandoc documents. This makes it easier to see the effect
7758 of style changes.
7760 * Removed `default.theme` data file (#4096). It is no longer needed now
7761 that we have `--print-highlight-style`.
7763 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
7764 We still need this for the alpine static linux build, since
7765 we don't have ghc 8.2.2 for that yet.
7767 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
7768 can put flag settings for pandoc-citeproc there.
7770 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
7771 make releases easier.
7773 * MANUAL.txt:
7775 + Add note on what formats have `+smart` by default.
7776 + Use native syntax for custom-style (#4174, Mauro Bieg).
7777 + Introduce dedicated Extensions section, since some extensions
7778 affect formats other than markdown (Mauro Bieg, #4204).
7779 + Clarify default html output for `--section-divs` (Richard Edwards).
7781 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
7782 Closes jgm/pandoc-website#16.
7784 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
7786## pandoc 2.0.5 (2017-12-12)
7788 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
7789 generated with `--print-highlight-style` (#4133). Improve JSON
7790 serialization of styles.
7792 * Fix CSS issues involving line numbers (#4128).
7793 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
7794 Highlighting CSS no longer sets a generic color for pre and code; we only
7795 set these for class `sourceCode`.
7797 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
7799 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
7800 It works following the standard Pandoc conventions for making other
7801 sorts of slides. Caveats:
7803 + Syntax highlighting is not yet implemented. (This is difficult
7804 because there are no character classes in Powerpoint.)
7805 + Footnotes and Definition lists are not yet implemented. (Notes will
7806 usually take the form of a final slide.
7807 + Image placement and auto-resizing has a few glitches.
7808 + Reference powerpoint files don't work dependably from the command
7809 line. This will be implemented, but at the moment users are advised
7810 to change themes from within Powerpoint.
7812 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
7813 This is for functions used by both Powerpoint and Docx writers.
7815 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
7817 * Add `empty_paragraphs` extension.
7819 + Deprecate `--strip-empty-paragraphs` option. Instead we now
7820 use an `empty_paragraphs` extension that can be enabled on
7821 the reader or writer. By default, disabled.
7822 + Add `Ext_empty_paragraphs` constructor to `Extension`.
7823 + Revert "Docx reader: don't strip out empty paragraphs."
7824 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
7825 + Implement `empty_paragraphs` extension in docx reader and writer,
7826 opendocument writer, html reader and writer.
7827 + Add tests for `empty_paragraphs` extension.
7829 * Markdown reader:
7831 + Don't parse native div as table caption (#4119).
7832 + Improved computation of column widths in pipe tables.
7833 Pipe tables with lines longer than the text width (as set
7834 by `--columns`) are now scaled to text width, with the relative
7835 widths of columns determined by the ratios between the
7836 header lines. Previously we computed column widths using
7837 the ratio of header line lengths to column width, so that
7838 tables with narrow header lines were extremely thin, which
7839 was very rarely the desired result.
7841 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
7842 as long as it's not followed by a blank line. This has been fixed at the
7843 tokenizer level.
7845 * Muse reader (Alexander Krotov):
7847 + Add test for `#disable-tables` directive in Emacs mode.
7848 + Don't allow emphasis to be preceded by letter.
7849 + Add underline support in Emacs Muse mode..
7850 + Support multiline directives in Amusewiki mode
7852 * Man writer: omit internal links (#4136). That is, just print the link
7853 text without the URL.
7855 * Markdown reader: accept processing instructions as raw HTML (#4125).
7857 * Lua filters (Albert Krewinkel):
7859 + Use script to initialize the interpreter. The file `init.lua` is
7860 used to initialize the Lua interpreter which is used in Lua filters.
7861 This gives users the option to require libraries which they want to
7862 use in all of their filters, and to extend default modules.
7863 + Fix package loading for Lua 5.1. The list of package searchers is
7864 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
7865 in Lua 5.2 and later.
7866 + Refactor lua module handling. The integration with Lua's package/module
7867 system is improved: A pandoc-specific package searcher is prepended to
7868 the searchers in `package.searchers`. The modules `pandoc` and
7869 `pandoc.mediabag` can now be loaded via `require`.
7870 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
7871 function which makes using Haskell functions as package loaders much
7872 easier.
7874 * reveal.js template: add title-slide identifier to title slide (#4120).
7875 This allows it to be styled more easily.
7877 * LaTeX template: Added support for `pagestyle` variable (#4135,
7878 Thomas Hodgson)
7880 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
7881 error on linux).
7884## pandoc 2.0.4 (2017-12-03)
7886 * Add `--print-highlight-style` option. This generates a JSON version
7887 of a highlighting style, which can be saved as a `.theme` file, modified,
7888 and used with `--highlight-style` (#4106, #4096).
7890 * Add `--strip-empty-paragraphs` option. This works for any input format.
7891 It is primarily intended for use with docx and odt documents where
7892 empty paragraphs have been used for inter-paragraph spaces.
7894 * Support `--webtex` for `gfm` output.
7896 * Recognize `.muse` file extension.
7898 * Support beamer `\alert` in LaTeX reader. Closes #4091.
7900 * Docx reader: don't strip out empty paragraphs (#2252).
7901 Users who have a conversion pipeline from docx may want to consider adding
7902 `--strip-empty-paragraphs` to the command line.
7904 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
7906 * Muse reader (Alexander Krotov):
7908 + Parse markup in definition list terms.
7909 + Allow definition to end with EOF.
7910 + Make code blocks round trip.
7911 + Drop common space prefix from list items.
7912 + Add partial round trip test.
7913 + Don't interpret XML entities.
7914 + Remove `nested`.
7915 + Parse `~~` as non-breaking space in Emacs mode.
7916 + Correctly remove indentation from notes. Exactly one space is
7917 required and considered to be part of the marker.
7918 + Allow list items to be empty.
7919 + Add ordered list test.
7920 + Add more multiline definition tests.
7921 + Don't allow blockquotes within lists.
7922 + Fix reading of multiline definitions.
7923 + Add inline `<literal>` support.
7924 + Concatenate inlines of the same type
7926 * Docx writer: allow empty paragraphs (#2252).
7928 * CommonMark/gfm writer:
7930 + Use raw html for native divs/spans (#4113). This allows a pandoc
7931 markdown native div or span to be rendered in gfm using raw html tags.
7932 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
7933 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
7935 * Muse writer (Alexander Krotov):
7937 + Test that inline math conversion result is normalized.
7938 Without normalization this test produced
7939 `<em>a</em><em>b</em><em>c</em>`.
7940 + Improve inline list normalization and move to writer.
7941 + Escape hash symbol.
7942 + Escape `----` to avoid accidental horizontal rules.
7943 + Escape only `</code>` inside code tag.
7944 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
7946 * LaTeX writer:
7948 + Allow specifying just width or height for image size.
7949 Previously both needed to be specified (unless the image was
7950 being resized to be smaller than its original size).
7951 If height but not width is specified, we now set width to
7952 textwidth. If width but not height is specified, we now set
7953 height to textheight. Since we have `keepaspectratio`, this
7954 yields the desired result.
7955 + Escape `~` and `_` in code with `--listings` (#4111).
7957 * HTML writer: export `tagWithAttributes`. This is a helper allowing
7958 other writers to create single HTML tags.
7960 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
7961 converting the case as needed in LaTeX and ConTeXt writers.
7963 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
7964 so that it no longer produces empty `Para`'s as an artifact.
7966 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
7967 This gives us automatic normalization, so we don't get
7968 for example two consecutive Spaces.
7970 * Include default CSS for 'underline' class in HTML-based templates.
7972 * revealjs template: add `tex2jax` configuration for the
7973 math plugin. With the next release of reveal.js, this will
7974 fix the problem of `$`s outside of math contexts being
7975 interpreted as math delimiters (#4027).
7977 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
7979 + Add basic lua List module (#4099, #4081). The List module is
7980 automatically loaded, but not assigned to a global variable. It can be
7981 included in filters by calling `List = require 'List'`. Lists of blocks,
7982 lists of inlines, and lists of classes are now given `List` as a metatable,
7983 making working with them more convenient. E.g., it is now possible to
7984 concatenate lists of inlines using Lua's concatenation operator `..`
7985 (requires at least one of the operants to have `List` as a metatable):
7987 function Emph (emph)
7988 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
7989 return pandoc.Span(emph.content .. s)
7990 end
7992 The `List` metatable is assigned to the tables which get passed to
7993 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
7994 enables the use of the resulting objects as lists.
7995 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
7996 Pandoc and Meta elements are now pushed by calling the respective
7997 constructor functions of the pandoc Lua module. This makes serialization
7998 consistent with the way blocks and inlines are pushed to lua and allows
7999 to use List methods with the `blocks` value.
8000 + Add documentation for pandoc.List in `lua-filters.md`.
8002 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
8003 `&` (but not a valid entity) following them (#4094, #4088).
8005 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
8006 when `numberLines` is used (#4103).
8008 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
8009 requiring a leading 0 on single-digit days.
8011 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
8012 Bieg, #4095).
8014 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
8015 Previously we only mentioned `--latexmathml`, even if `-m` was
8016 used.
8018 * Changelog: fix description of lua filters in 2.0 release
8019 (Albert Krewinkel). Lua filters were initially run *after* conventional
8020 (JSON) filters. However, this was changed later to make it easier to deal
8021 with files in the mediabag. The changelog is updated to describe that
8022 feature of the 2.0 release correctly.
8024 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
8025 #4085). This reduces compile time and memory usage significantly.
8027 * `lua-filters.md`: Added tikz filter example.
8029 * Create alternative zip file for macOS binaries.
8031 * Create alternative zip file for Windows binaries.
8033 * Update INSTALL.md since we now provide zips for binaries.
8035 * Relax `http-types` dependency (Justus Sagemüller, #4084).
8037 * Add `epub.md`, `getting-started.md` to docs. These used to live in
8038 the website repo.
8040 * Add `packages` target to Makefile.
8042 * Bump bounds for binary, http-types, tasty-hunit
8044## pandoc 2.0.3 (2017-11-20)
8046 * Lua filters: preload text module (Albert Krewinkel, #4077).
8047 The `text` module is preloaded in lua. The module contains some UTF-8
8048 aware string functions, implemented in Haskell. The module is loaded on
8049 request only, e.g.:
8051 text = require 'text'
8052 function Str (s)
8053 s.text = text.upper(s.text)
8054 return s
8055 end
8057 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
8058 #4071). Attribute lists are represented as associative lists in Lua. Pure
8059 associative lists are awkward to work with. A metatable is attached to
8060 attribute lists, allowing to access and use the associative list as if
8061 the attributes were stored in as normal key-value pair in table.
8062 Note that this changes the way `pairs` works on attribute lists. Instead
8063 of producing integer keys and two-element tables, the resulting iterator
8064 function now returns the key and value of those pairs. Use `ipairs` to
8065 get the old behavior. Warning: the new iteration mechanism only works if
8066 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
8068 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
8069 This fixes a bug where pandoc would stop parsing a URI with an
8070 empty attribute: for example, `&a=&b=` wolud stop at `a`.
8071 (The uri parser tries to guess which punctuation characters
8072 are part of the URI and which might be punctuation after it.)
8074 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
8076 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
8077 `WriterOptions`.
8078 + Reimplemented `isEnabled` function from `Options.hs` to accept both
8079 `ReaderOptions` and `WriterOptions`.
8080 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
8082 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
8083 behavior for `muse`. New `Ext_amuse` constructor for
8084 `Extension`. Note: this is switched on by default; for
8085 Emacs behavior, use `muse-amuse`.
8087 * Muse reader (Alexander Krotov):
8089 + Count only one space as part of list item marker.
8090 + Produce SoftBreaks on newlines. Now wrapping can be preserved
8091 with `--wrap=preserve`.
8092 + Add Text::Amuse footnote extensions. Footnote end is indicated by
8093 indentation, so footnotes can be placed anywhere in the text,
8094 not just at the end of it.
8095 + Accept Emacs Muse definition lists when `-amuse`.
8096 Emacs Muse does not require indentation.
8098 * HTML reader:
8100 + Ensure we don't produce level 0 headers (#4076), even for chapter
8101 sections in epubs. This causes problems because writers aren't set
8102 up to expect these.
8103 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
8104 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
8105 `markdown` or `html` `+tex_math_single_backslash`.
8107 * MANUAL: clarify that math extensions work with HTML.
8108 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
8109 will work with HTML as well as Markdown.
8111 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
8112 #4067).
8114 * RST reader: better support for 'container' directive (#4066).
8115 Create a div, incorporate name attribute and classes.
8117 * LaTeX reader:
8119 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
8120 `rr`. We now expand it like a macro.
8121 + Allow optional args for parbox (#4056).
8122 + Allow optional arguments on `\footnote` (#4062).
8124 * EPUB writer: Fixed path for cover image (#4069). It was previously
8125 `media/media/imagename`, and should have been `media/imagename`.
8127 * Markdown writer: fix bug with doubled footnotes in grid tables
8128 (#4061).
8130 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
8131 Otherwise we seem to get an error; biblatex wants polyglossia
8132 language to be defined.
8134 * Added examples to lua filters documentation.
8137## pandoc 2.0.2 (2017-11-12)
8139 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
8140 `--mimetex`, `--jsmath`.
8142 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
8143 leading to invalid XML in default JATS output with pandoc-citeproc.
8145 * `lua-filters.md`: use real-world man page filter as example.
8147 * Add lua filter functions `walk_inline` and `walk_block`
8148 in the pandoc module, to apply filters inside particular
8149 inline and block elements.
8151 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
8152 into new internal module `Text.Pandoc.Lua.Filter`.
8154 * Markdown reader:
8156 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
8157 This brings our handling of them into alignment with CommonMark's.
8158 + Fix YAML metadata with "chomp" (`|-`). Previously if a
8159 YAML block under `|-` contained a blank line, pandoc would
8160 not parse it as metadata.
8162 * Removed `etc.` from abbreviations file. Often `etc.` ends a
8163 sentence, and we want the period to be treated as a
8164 sentence-ending period.
8166 * Fix regression with `--metadata` (#4054). Values specified with
8167 `--metadata` should replace a metadata value set in the document
8168 itself, rather than creating a list including a new value.
8170 * EPUB writer:
8172 + Fix EPUB OCF structure. #3720 had been improperly implemented.
8173 + Fix modified paths for raw HTML tags (src, poster, etc.)
8174 (#4050, #4055). This had not been updated for the new EPUB
8175 container layout, with a separate text/ subdirectory.
8176 + Fix image paths with empty `--epub-subdirectory`.
8178 * Miscellaneous code cleanup (Alexander Krotov).
8180 * Use pandoc-types 1.17.3, which adds `Walkable` instances
8181 for `[Block] Block` and `[Inline] Inline`.
8183 * Remove obsolete `stack.full.yaml` (#4052).
8185 * Change to using pandoc-citeproc 0.12.1 in binary packages.
8187 * Consolidate math output method documentation (#4049, Mauro Bieg).
8189 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
8191 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
8192 Haskell filters. This is easier and faster.
8194 * Improved `INSTALL.md`.
8196 * Update commands to extract deb archive on Linux (#4043, Salim B).
8199## pandoc 2.0.1.1 (2017-11-04)
8201 * Improved fix to #3989 (parsing of HTML tags containing
8202 `>` in an attribute or comment). The previous fix (in 2.0.1) only
8203 worked in certain cases.
8205 * FB2 writer (Alexander Krotov):
8207 + Add `unrecognised` genre to `<title-info>`
8208 (Alexander Krotov). XML schema requires at least one genre.
8209 + Remove `<annotation>` from `<body>`.
8211 * CommonMark writer: fix strikethrough for `gfm` (#4038).
8213 * Use texmath 0.10, which adds support for a wider range of
8214 symbols and fixes default column alignments in MathML
8215 and OMML.
8217 * Highlighting fixes, using skylighting 0.4.3.2:
8219 + Fix invalid CSS.
8220 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
8221 + Ensure that code lines don't get duplicate identifiers (#4031).
8222 The line identifiers are built using the code block's identifier
8223 as a prefix. If the code block has null identifier, we use
8224 `cb1`, `cb2`, etc.
8226 * Added a few abbreviations to `data/abbreviations`,
8227 and sorted the list (#3984, Wandmalfarbe).
8229 * Improved support for columns in HTML writer (#4028).
8231 + Remove `width` attribute from the `div`.
8232 + Remove space between `<div class="column">` elements,
8233 since this prevents columns whose widths sum to 100%
8234 (the space takes up space).
8235 + Move as much as possible of the CSS to the template.
8236 + Ensure that all the HTML-based templates (including epub)
8237 contain the CSS for columns.
8238 + Columns default to 50% width unless they are given a width
8239 attribute. So if you want two equal-width columns, you
8240 can use a div with class `column` and no `width` attribute.
8242 * SelfContained: use `base64` for css links with media attribute (#4026).
8243 This fixes `--self-contained` with S5.
8245 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
8247 * INSTALL.md: MacOS instructions needed xar -f (adam234).
8249 * MANUAL.txt:
8251 + Clarify that --setext-headers doesn't affect gfm output (#4035).
8252 + Clarify what is needed to open and close a div in `fenced_divs`
8253 (#4039, Tristano Ajmone).
8254 + Removed reference to `default.beamer` in docs (#4024).
8255 Also added mention of other templates affecting PDF output
8256 with different settings.
8259## pandoc 2.0.1 (2017-10-31)
8261 * Fixed regression in parsing of HTML comments in markdown and other
8262 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
8263 The parser stopped at the first `>` character, even if it wasn't
8264 the end of the comment.
8266 * Creole reader (Sascha Wilde):
8268 + Fix some minor typos and formatting.
8269 + Add additional test on nowiki-block after para.
8270 + Fix lists with trailing white space.
8272 * LaTeX reader: handle `%` comment right after command.
8273 For example, `\emph%`.
8275 * Markdown reader: make sure fenced div closers work in lists.
8276 Previously the following failed:
8278 ::: {.class}
8279 1. one
8280 2. two
8281 :::
8283 and you needed a blank line before the closing `:::`.
8285 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
8286 enabled, Divs will be rendered as fenced divs.
8288 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
8289 (#4016).
8291 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
8292 Note: this change may require some changes in CSS rules.
8293 `footnoteRef` has become `footnote-ref`, `titleslide` has
8294 become `title-slide`, and `footnoteBack` has become `footnote-back`.
8296 * JATS writer: Properly pass through author metadata (#4020).
8298 * FB2 writer (Alexander Krotov):
8300 + Write blocks outside of `<p>` in definitions.
8301 + Make bullet lists consistent with ordered lists, repeating
8302 the marker for the outer list rather than indenting sublists,
8303 since indentation does not work in readers.
8304 + Add new style FB2 tests.
8306 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
8307 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
8308 to 'cm'.
8310 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
8312 * Fix broken reference links in manual (Andrew Dunning, #4014)
8314 * Fixed example of slide columns structure in changelog (#4015).
8315 Also documented this feature in MANUAL.txt.
8318## pandoc 2.0.0.1 (2017-10-30)
8320 * EPUB writer:
8322 + Fixed filepaths for nonstandard epub-subdirectory values.
8323 + Ensure that epub2 is recognized as a non-text format,
8324 so that a template is used.
8325 + Don't include "prefix" attribute for ibooks for epub2.
8326 It doesn't validate.
8327 + Fix stylesheet paths; previously we had an incorrect
8328 stylesheet path for the cover page and nav page.
8330 * LaTeX reader:
8332 + Insert space when needed in macro expansion (#4007).
8333 Sometimes we need to insert a space after a control sequence
8334 to prevent it merging with a following letter.
8335 + Allow unbraced arguments for macros (#4007).
8336 + Allow body of macro definition to be unbraced (#4007).
8338 * Linux package build: ensure that pandoc-citeproc is statically linked.
8340 * trypandoc: add native, ms.
8343## pandoc 2.0 (2017-10-29)
8345### New features
8347 * New output format `ms` (groff ms). Complete support, including
8348 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
8349 texmath's new eqn writer to convert math to eqn format, so a ms file
8350 produced with this writer should be processed with `groff -ms -e` if
8351 it contains math.
8353 * New output format `jats` (Journal Article Tag Suite). This is an XML
8354 format used in archiving and publishing articles. Note that a
8355 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
8356 unless a stylesheet is specified using `--css`.
8358 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
8359 This uses bindings to GitHub's fork of cmark, so it should parse
8360 gfm exactly as GitHub does (excepting certain postprocessing
8361 steps, involving notifications, emojis, etc.). `markdown_github`
8362 has been deprecated in favor of `gfm`.
8364 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
8366 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
8367 This uses bindings to GitHub's fork of cmark. `markdown_github`
8368 has been deprecated in favor of `gfm`.
8370 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
8372 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
8374 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
8375 Note that there is a new data file, `data/vimwiki.css`, which can
8376 be used to display the HTML produced by this reader and
8377 pandoc's HTML writer in the style of vimwiki's own HTML
8378 export.
8380 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
8382 * New syntax for Divs, with `fenced_divs` extension enabled by
8383 default (#168). This gives an attractive, plain-text way to create
8384 containers for block-level content.
8386 * Added new syntax for including raw content in any output format,
8387 enabled by the `raw_attribute` extension (which is on by default
8388 for `markdown` and `multimarkdown`). The syntax is the same as
8389 for fenced code blocks or code inlines, only with `{=FORMAT}` for
8390 attributes, where `FORMAT` is the name of the output format
8391 (e.g., `ms`, `html`).
8393 * Implement multicolumn support for slide formats (#1710).
8394 The structure expected is:
8396 :::::::::::::: {.columns}
8397 ::: {.column width="40%"}
8398 contents...
8399 :::
8400 ::: {.column width="60%"}
8401 contents...
8402 :::
8403 ::::::::::::::
8405 Support has been added for beamer and all HTML slide formats.
8407 * Allows line comments in templates, beginning with `$--` (#3806).
8408 (Requires doctemplates 0.2.1.)
8410 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
8411 (Stefan Dresselhaus, #3663, #2097).
8413 * Add `--log` option to save log messages in JSON format to a file (#3392).
8415 * Add `--request-header` option, to set request headers when pandoc
8416 makes HTTP requests to fetch external resources. For example:
8417 `--request-header User-Agent:blah`.
8419 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
8420 option works like `--filter` but takes pathnames of special lua filters
8421 and uses the lua interpreter baked into pandoc, so that no external
8422 interpreter is needed. Note that lua filters are all applied after
8423 regular filters, regardless of their position on the command line.
8424 For documentation of lua filters, see `doc/lua-filters.md`.
8426 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
8427 This contains a JSON representation of `ReaderOptions`, so filters
8428 can access it.
8430 * Support creation of pdf via groff `ms` and pdfroff.
8431 `pandoc -t ms -o output.pdf input.txt`.
8433 * Support for PDF generation via HTML and `weasyprint` or `prince`
8434 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
8436 * Added `--epub-subdirectory` option (#3720). This specifies the
8437 subdirectory in the OCF container that holds the EPUB specific content.
8438 We now put all EPUB related content in an `EPUB/` subdirectory by default
8439 (later this will be configurable).
8441 ```
8442 mimetype
8443 META-INF/
8444 com.apple.ibooks.display-options.xml
8445 container.xml
8446 EPUB/ <<--configurable-->>
8447 fonts/ <<--static-->>
8448 font.otf
8449 media/ <<--static-->>
8450 cover.jpg
8451 fig1.jpg
8452 styles/ <<--static-->>
8453 stylesheet.css
8454 content.opf
8455 toc.ncx
8456 text/ <<--static-->>
8457 ch001.xhtml
8458 ```
8460 * Added `--resource-path=SEARCHPATH` command line option (#852).
8461 SEARCHPATH is separated by the usual character, depending on OS
8462 (: on unix, ; on windows). Default resource path is just working
8463 directory. However, the working directory must be explicitly
8464 specified if the `--resource-path` option is used.
8466 * Added --abbreviations=FILE option for custom abbreviations file
8467 (#256). Dfault abbreviations file (`data/abbreviations`) contains
8468 a list of strings that will be recognized by pandoc's
8469 Markdown parser as abbreviations. (A nonbreaking space will
8470 be inserted after the period, preventing a sentence space in
8471 formats like LaTeX.) Users can override the default by putting a file
8472 abbreviations in their user data directory (`~/.pandoc` on *nix).
8474 * Allow a theme file as argument to `--highlight-style`.
8475 Also include a sample, `default.theme`, in `data/`.
8477 * Allow `--syntax-definition` option for dynamic loading of syntax
8478 highlighting definitions (#3334).
8480 * Lists in `markdown` by default now use the CommonMark variable
8481 nesting rules (#3511). The indentation required for a block-level
8482 item to be included in a list item is no longer fixed, but is
8483 determined by the first line of the list item. To be included in
8484 the list item, a block must be indented to the level of the first
8485 non-space content after the list marker. Exception: if are 5 or more
8486 spaces after the list marker, then the content is interpreted as an
8487 indented code block, and continuation paragraphs must be indented
8488 two spaces beyond the end of the list marker. See the CommonMark
8489 spec for more details and examples.
8491 Documents that adhere to the four-space rule should, in most cases,
8492 be parsed the same way by the new rules. Here are some examples
8493 of texts that will be parsed differently:
8495 - a
8496 - b
8498 will be parsed as a list item with a sublist; under the four-space
8499 rule, it would be a list with two items.
8501 - a
8503 code
8505 Here we have an indented code block under the list item, even though it
8506 is only indented six spaces from the margin, because it is four spaces
8507 past the point where a continuation paragraph could begin. With the
8508 four-space rule, this would be a regular paragraph rather than a code
8509 block.
8511 - a
8513 code
8515 Here the code block will start with two spaces, whereas under
8516 the four-space rule, it would start with `code`. With the four-space
8517 rule, indented code under a list item always must be indented eight
8518 spaces from the margin, while the new rules require only that it
8519 be indented four spaces from the beginning of the first non-space
8520 text after the list marker (here, `a`).
8522 This change was motivated by a slew of bug reports from people
8523 who expected lists to work differently (#3125, #2367, #2575, #2210,
8524 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
8525 of CommonMark (now used by GitHub, for example). Those who
8526 prefer the old behavior can use `-f markdown+four_space_rule`.
8528 * Added `four_space_rule` extension. This triggers the old pandoc
8529 parsing rule for content nested under list items (the "four space
8530 rule").
8532 * Added `spaced_reference_links` extension (#2602). It allows whitespace
8533 between the two parts of a reference link: e.g.
8535 [a] [b]
8537 [b]: url
8539 This was previously enabled by default; now it is forbidden by default.
8541 * Add `space_in_atx_header` extension (#3512). This is enabled by default
8542 in pandoc and GitHub markdown but not the other flavors.
8543 This requirse a space between the opening #'s and the header
8544 text in ATX headers (as CommonMark does but many other implementations
8545 do not). This is desirable to avoid falsely capturing things ilke
8547 #hashtag
8549 or
8551 #5
8553 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
8554 #3431).
8556 * Allow ibooks-specific metadata in epubs (#2693). You can now have
8557 the following fields in your YAML metadata, and it will be treated
8558 appropriately in the generated EPUB:
8560 ```
8561 ibooks:
8562 version: 1.3.4
8563 specified-fonts: false
8564 ipad-orientation-lock: portrait-only
8565 iphone-orientation-lock: landscape-only
8566 binding: true
8567 scroll-axis: vertical
8568 ```
8571### Behavior changes
8573 * Reader functions no longer presuppose that CRs have been
8574 stripped from the input. (They strip CRs themselves, before
8575 parsing, to simplify the parsers.)
8577 * Added support for translations (localization) (#3559).
8578 Currently this only affects the LaTeX reader, for things
8579 like `\figurename`. Translation data files for 46 languages
8580 can be found in `data/translations`.
8582 * Make `--ascii` work with DocBook output too.
8584 * Rename `--latex-engine` to `--pdf-engine`,
8585 and `--latex-engine-opt` to `--pdf-engine-opt`.
8587 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
8588 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
8589 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
8590 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
8592 * With `--filter` R filters are now recognized, even if they are
8593 not executable (#3940, #3941, Andrie de Vries).
8595 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
8597 * Make epub an alias for epub3, not epub2.
8599 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
8600 Multiple stylesheets may be used. Stylesheets will be taken both from
8601 `--css` and from the `stylesheet` metadata field (which can contain
8602 either a file path or a list of them).
8604 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
8605 The argument was for a bridge JavaScript that used to be necessary
8606 in 2004. We have removed the script already.
8608 * `--katex` improvements. The latest version is used, and the
8609 autoload script is loaded by default.
8611 * Change MathJax CDN default since old one is shutting down (#3544).
8612 Note: The new URL requires a version number, which we'll have
8613 to update manually in subsequent pandoc releases in order to
8614 take advantage of mathjax improvements.
8616 * `--self-contained`: don't incorporate elements with `data-external="1"`
8617 (#2656). You can leave an external link as it is by adding the attribute
8618 data-external="1" to the element. Pandoc will then not try to
8619 incorporate its content when `--self-contained` is used. This is
8620 similar to a feature already supported by the EPUB writer.
8622 * Allow `--extract-media` to work with non-binary input formats
8623 (#1583, #2289). If `--extract-media` is supplied with a non-binary
8624 input format, pandoc will attempt to extract the contents of all
8625 linked images, whether in local files, data: uris, or external uris.
8626 They will be named based on the sha1 hash of the contents.
8628 * Make `papersize: a4` work regardless of the case of `a4`.
8629 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
8631 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
8633 * Underlined elements are now treated consistently by readers
8634 (#2270, hftf); they are always put in a Span with class `underline`.
8635 This allows the user to treat them differently from other emphasis,
8636 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
8637 have been changed.
8639 * Improved behavior of `auto_identifiers` when there are explicit ids
8640 (#1745). Previously only autogenerated ids were added to the list
8641 of header identifiers in state, so explicit ids weren't taken
8642 into account when generating unique identifiers. Duplicated
8643 identifiers could result. This simple fix ensures that explicitly given
8644 identifiers are also taken into account.
8646 * Use `table-of-contents` for contents of toc, make `toc` a boolean
8647 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
8648 This allows you to set `toc: true` in the metadata; this
8649 previously produced strange results in some output formats.
8650 For backwards compatibility, `toc` is still set to the
8651 toc contents. But it is recommended that you update templates
8652 to use `table-of-contents` for the toc contents and `toc`
8653 for a boolean flag.
8655 * Change behavior with binary format output to stdout.
8656 Previously, for binary formats, output to stdout was disabled
8657 unless we could detect that the output was being piped (and not
8658 sent to the terminal). Unfortunately, such detection is not
8659 possible on Windows, leaving windows users no way to pipe binary
8660 output. So we have changed the behavior in the following way:
8662 + Output to stdout is allowed when it can be determined that
8663 the output is being piped (on non-Windows platforms).
8664 + If the `-o` option is not used, binary output is never sent
8665 to stdout by default; instead, an error is raised.
8666 + If `-o -` is used, binary output is sent to stdout, regardless
8667 of whether it is being piped. This works on Windows too.
8669 * Better error behavior: uses of `error` have been replaced by
8670 raising of `PandocError`, which can be trapped and handled by the
8671 calling program.
8673 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
8674 GitHub has two Markdown modes, one for long-form documents like READMEs
8675 and one for short things like issue comments. In issue comments, a line
8676 break is treated as a hard line break. In README, wikis, etc., it is
8677 treated as a space as in regular Markdown. Since pandoc is more likely to
8678 be used to convert long-form documents from GitHub Markdown,
8679 `-hard_line_breaks` is a better default.
8681 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
8683 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
8684 Previously they would be transmitted to the template without any
8685 escaping. Note that `--M title='*foo*'` yields a different result from
8687 ---
8688 title: *foo*
8689 ---
8691 In the latter case, we have emphasis; in the former case, just
8692 a string with literal asterisks (which will be escaped
8693 in formats, like Markdown, that require it).
8695 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
8697 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
8698 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
8699 it is valid HTML5. HTML4 is not affected. This will allow us to use
8700 custom attributes in pandoc without producing invalid HTML. (With help
8701 from Wandmalfarbe, #3817.)
8703 * Plain writer: improved super/subscript rendering. We now
8704 handle more non-digit characters for which there are
8705 sub/superscripted unicode characters. When unicode
8706 sub/superscripted characters are not available, we use
8707 `_(..)` or `^(..)` (#3518).
8709 * Docbook, JATS, TEI writers: print INFO message when omitting interior
8710 header (#3750). This only applies to section headers inside list items,
8711 e.g., which were otherwise silently omitted.
8713 * Change to `--reference-links` in Markdown writer (#3701). With
8714 `--reference-location` of `section` or `block`, pandoc will now repeat
8715 references that have been used in earlier sections. The Markdown
8716 reader has also been modified, so that *exactly* repeated references
8717 do not generate a warning, only references with the same label but
8718 different targets. The idea is that, with references after every block,
8719 one might want to repeat references sometimes.
8721 * ODT/OpenDocument writer:
8723 + Support `lang` attribute (#1667).
8724 + Added support for `--toc` (#2836). Thanks to @anayrat.
8726 * Docx writer:
8728 + `lang` meta, see #1667 (Mauro Bieg, #3515).
8729 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
8730 + Use `Table` rather than `Table Normal` for table style (#3275).
8731 `Table Normal` is the default table style and can't be modified.
8732 + Pass through comments (#2994). We assume that comments are defined as
8733 parsed by the docx reader:
8735 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
8736 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
8737 have a comment <span class="comment-end" id="0"></span>on it.
8739 We assume also that the id attributes are unique and properly
8740 matched between comment-start and comment-end.
8741 + Bookmark improvements. Bookmark start/end now surrounds content rather
8742 than preceding it. Bookmarks generated for Div with id
8743 (jgm/pandoc-citeproc#205).
8744 + Add `keywords` metadata to docx document properties (Ian).
8746 * RST writer: support unknown interpreted text roles by
8747 parsing them as `Span` with `role` attributes (#3407). This
8748 way they can be manipulated in the AST.
8750 * HTML writer:
8752 + Line block: Use class instead of style attribute (#1623). We now
8753 issue `<div class="line-block">` and include a default definition
8754 for `line-block` in the default templates, instead of hard-coding a
8755 `style` on the div.
8756 + Add class `footnoteBack` to footnote back references (Timm Albers).
8757 This allows for easier CSS styling.
8758 + Render SmallCaps as span with smallcaps class (#1592), rather than
8759 using a style attribute directly. This gives the user more flexibility
8760 in styling small caps in CSS.
8761 + With reveal.js we use `data-src` instead of `src` for images for
8762 lazy loading.
8763 + Special-case `.stretch` class for images in reveal.js (#1291).
8764 Now in reveal.js, an image with class `stretch` in a paragraph
8765 by itself will stretch to fill the whole screen, with no
8766 caption or figure environment.
8768 * Added warnings for non-rendered blocks to writers.
8770 * Writers now raise an error on template failure.
8772 * When creating a PDF via LaTeX, warn if the font is missing some
8773 characters (#3742).
8775 * Remove initial check for PDF-creating program (#3819).
8776 Instead, just try running it and raise the exception if it
8777 isn't found at that point. This improves things for users of Cygwin
8778 on Windows, where the executable won't be found by `findExecutable`
8779 unless `.exe` is added. The same exception is raised as before, but
8780 at a later point.
8782 * Readers issue warning for duplicate header identifiers (#1745).
8783 Autogenerated header identifiers are given suffixes so as not to clash
8784 with previously used header identifiers. But they may still coincide with
8785 an explicit identifier that is given for a header later in the document,
8786 or with an identifier on a div, span, link, or image. We now issue
8787 a warning in this case, so users can supply an explicit identifier.
8789 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
8790 and `raw_html` extensions.
8792 * Markdown reader:
8794 + Don't allow backslash + newline to affect block structure (#3730).
8795 Note that as a result of this change, the following, which formerly
8796 produced a header with two lines separated by a line break, will
8797 now produce a header followed by a paragraph:
8799 # Hi\
8800 there
8802 This may affect some existing documents that relied on
8803 this undocumented and unintended behavior. This change makes pandoc
8804 more consistent with other Markdown implementations, and with itself
8805 (since the two-space version of a line break doesn't work inside ATX
8806 headers, and neither version works inside Setext headers).
8809 * Org reader (Albert Krewinkel, unless noted):
8811 + Support `table.el` tables (#3314).
8812 + Support macros (#3401).
8813 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
8814 Recognized include types are `example`, `export`, `src`, and
8815 normal org file inclusion. Advanced features like line numbers
8816 and level selection are not implemented yet.
8817 + Interpret more meta value as inlines. The values of the following
8818 meta variables are now interpreted using org-markup instead of
8819 treating them as pure strings: `keywords` (comma-separated list of
8820 inlines), `subtitle` (inline values), `nocite` (inline values, can
8821 be repeated).
8822 + Support `\n` export option (#3940). This turns all newlines in the
8823 text into hard linebreaks.
8825 * RST reader:
8827 + Improved admonition support (#223). We no longer add an
8828 `admonition` class, we just use the class for the type of admonition,
8829 `note` for example. We put the word corresponding to the label in
8830 a paragraph inside a `Div` at the beginning of the admonition with
8831 class `admonition-title`. This is about as close as we can get to
8832 RST's own output.
8833 + Initial support of `.. table` directive. This allows adding captions
8834 to tables.
8835 + Support `.. line-block` directive. This is deprecated but may still
8836 be in older documents.
8837 + Support scale and align attributes of images (#2662).
8838 + Implemented implicit internal header links (#3475).
8839 + Support RST-style citations (#853). The citations appear at the end
8840 of the document as a definition list in a special div with id
8841 `citations`. Citations link to the definitions.
8842 + Recurse into bodies of unknown directives (#3432).
8843 In most cases it's better to preserve the content than
8844 to emit it. This isn't guaranteed to have good results;
8845 it will fail spectacularly for unknown raw or verbatim directives.
8846 + Handle chained link definitions (#262). For example,
8848 .. _hello:
8849 .. _goodbye: example.com
8851 Here both `hello` and `goodbye` should link to `example.com`.
8852 + Support anchors (#262). E.g.
8854 `hello`
8856 .. _hello:
8858 paragraph
8860 This is supported by putting "paragraph" in a `Div` with id `hello`.
8861 + Support `:widths:` attribute for table directive.
8862 + Implement csv-table directive (#3533). Most attributes are supported,
8863 including `:file:` and `:url:`.
8864 + Support unknown interpreted text roles by parsing them as Span
8865 with "role" attributes (#3407). This way they can be manipulated in
8866 the AST.
8868 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
8870 * LaTeX reader:
8872 + Implemented `\graphicspath` (#736).
8873 + Properly handle column prefixes/suffixes. For example, in
8874 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
8875 each cell will be interpreted as if it has a `$`
8876 before its content and a `$` after (math mode).
8877 + Handle komascript `\dedication` (#1845). It now adds a
8878 `dedication` field to metadata. It is up to the user to supply
8879 a template that uses this variable.
8880 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
8881 `sf`, `bf` (#3488). Spans with a class are used when there is
8882 nothing better.
8883 + Expand `\newenvironment` macros (#987).
8884 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
8885 + Better support for subfigure package (#3577).
8886 A figure with two subfigures turns into two pandoc
8887 figures; the subcaptions are used and the main caption
8888 ignored, unless there are no subcaptions.
8889 + Add support for `\vdots` (Marc Schreiber, #3607).
8890 + Add basic support for hyphenat package (Marc Schreiber, #3603).
8891 + Add basic `\textcolor` support (Marc Schreiber).
8892 + Add support for `tabularx` environment (Marc Schreiber, #3632).
8893 + Better handling of comments inside math environments (#3113).
8894 This solves a problem with commented out `\end{eqnarray}` inside
8895 an eqnarray (among other things).
8896 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
8897 is selected (#3692). Otherwise skip with a warning. This is better
8898 than trying to parse it as text!
8899 + Add `\colorbox` support (Marc Schreiber).
8900 + Set identifiers on Spans used for `\label`.
8901 + Have `\setmainlanguage` set `lang` in metadata.
8902 + Support etoolbox's `\ifstrequal`.
8903 + Support `plainbreak`, `fancybreak` et al from the memoir class
8904 (bucklereed, #3833).
8905 + Support `\let`. Also, fix regular macros so they're expanded at the
8906 point of use, and NOT also the point of definition. `\let` macros,
8907 by contrast, are expanded at the point of definition. Added an
8908 `ExpansionPoint` field to `Macro` to track this difference.
8909 + Support simple `\def` macros. Note that we still don't support
8910 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
8911 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
8912 obsoletes #3560).
8913 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
8914 attributes, so they can be handled in filters (Marc Schreiber, #3639)
8915 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
8916 #3589). Acronyms are not resolved by the reader, but acronym and
8917 glossary information is put into attributes on Spans so that they
8918 can be processed in filters.
8919 + Use `Link` instead of `Span` for `\ref`. This makes more sense
8920 semantically and avoids unnecessary `Span [Link]` nestings when
8921 references are resolved.
8922 + Rudimentary support for `\hyperlink`.
8923 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
8924 + Support `\lq`, `\rq`.
8925 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
8926 (#3853).
8927 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
8928 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
8929 + Support `\k` ogonek accent.
8930 + Improve handling of accents. Handle ogonek, and fall back correctly
8931 with forms like `\"{}`.
8932 + Better support for ogonek accents.
8933 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
8934 + Support for `xspace` (Marc Schreiber, #3797).
8935 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
8936 and `\figurename`.
8937 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
8938 level 0 headers, and parts as level -1 headers. After parsing, we
8939 check for the lowest header level, and if it's less than 1 we bump
8940 everything up so that 1 is the lowest header level. So `\part` will
8941 always produce a header; no command-line options are needed.
8942 + Add block version of `\textcolor` (Marc Schreiber).
8943 + `\textcolor` works as inline and block command (Marc Schreiber).
8944 + `\textcolor` will be parse as span at the beginning of a paragraph
8945 (Marc Schreiber).
8946 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
8947 + Improved handling of include files in LaTeX reader (#3971).
8948 Previously `\include` wouldn't work if the included file
8949 contained, e.g., a begin without a matching end.
8950 + Support `\expandafter` (#3983).
8951 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
8952 as a synonym for `\newcommand`.
8953 + Handle `\lettrine` (Mauro Bieg).
8955 * Math improvements due to updates in texmath:
8957 + Improved handling of accents and upper/lower delimiters.
8958 + Support for output in GNU eqn format (used with *roff).
8959 + Allow `\boldsymbol` + a token without braces, and similarly
8960 with other styling commands.
8961 + Improve parsing of `\mathop` to allow multi-character operator names.
8962 + Add thin space after math operators when "faking it with
8963 unicode."
8965 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
8966 instance for `a -> [a]` (pandoc-types). Note that behavior
8967 will be slightly different, since `bottomUp`'s treatment of
8968 a function `[a] -> [a]` is to apply it to each sublist of a
8969 list, while walk applies it only to maximal sublists.
8970 Usually the latter behavior is what is wanted, and the
8971 former can be simulated when needed. But there may be
8972 existing filters that need to be rewritten in light of the
8973 new behavior. Performance should be improved.
8975 * There are some changes to syntax highlighting due to revisions
8976 in the `skylighting` library:
8978 + Support for `powershell` has been added, and many syntax
8979 definitions have been updated.
8980 + Background colors have been added to the `kate` style.
8981 + The way highlighted code blocks are formatted in HTML has
8982 been changed (David Baynard), in ways that may require
8983 changes in hard-coded CSS affecting highlighting.
8984 (If you haven't included hard-coded highlighting CSS in
8985 your template, you needn't change anything.)
8988### API changes
8990 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
8991 This contains definitions of the `PandocMonad` typeclass, the
8992 `PandocIO` and `PandocPure` monads, and associated functions.
8994 * Changed types of all writers and readers.
8996 + We now use `Text` instead of `String` in the interface (#3731).
8997 (We have not yet changed the internals of most readers to work
8998 with `Text`, but making this change in the API now opens up a
8999 path to doing that.)
9000 + The result is now of form `m a` with constraint `PandocMonad m`.
9001 Readers and writers can be combined to form monadic values which
9002 can be run using either `runIO` or `runPure`. If `runIO` is used,
9003 then both readers and writers will be able to do IO when needed
9004 (for include files, for example); if `runPure` is used,
9005 then the functions are pure and will not touch IO.
9006 + Where previously you used
9007 `writeRST def (readMarkdown def "[foo](url)")`, now you
9008 would use
9009 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
9011 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
9012 contains reader helper functions formerly defined in the
9013 top-level `Text.Pandoc` module.
9015 + Changed `StringReader` -> `TextReader`.
9016 + `getReader` now returns a pair of a reader and
9017 `Extensions`, instead of building the extensions into the
9018 reader (#3659). The calling code must explicitly set
9019 `readerExtensions` using the `Extensions` returned. The
9020 point of the change is to make it possible for the calling
9021 code to determine what extensions are being used.
9023 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
9024 This contains writer helper functions formerly defined in the
9025 top-level `Text.Pandoc` module.
9027 + Changed `StringWriter` -> `TextWriter`.
9028 + `getWriter` now returns a pair of a reader and
9029 `Extensions`, instead of building the extensions into the
9030 reader (#3659). The calling code must explicitly set
9031 `readerExtensions` using the `Extensions` returned. The
9032 point of the change is to make it possible for the calling
9033 code to determine what extensions are being used.
9035 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
9036 #3514).
9038 * New module `Text.Pandoc.App`. This abstracts out the functionality
9039 of the command line program (`convertWithOpts`), so it can be reproduced
9040 e.g. in a desktop or web application. Instead of exiting, we throw errors
9041 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
9042 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
9043 The module also exports some utility functions for parsing options
9044 and running filters.
9046 * New module `Text.Pandoc.Logging` (exported module) (#3392).
9047 This now contains the `Verbosity` definition previously in
9048 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
9049 eventually be used instead of raw strings for warnings. This will enable
9050 us, among other things, to provide machine-readable warnings if desired.
9051 Include ToJSON instance and showLogMessage. This gives us the possibility
9052 of both machine-readable and human-readable output for log messages.
9054 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
9056 * New module `Text.Pandoc.Translations`, exporting `Term`,
9057 `Translations`, `readTranslations`.
9059 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
9060 `TokType`, `Line`, `Column`.
9062 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
9064 * Expose some previously private modules (#3260). These are often
9065 helpful to people writing their own reader or writer modules:
9067 + `Text.Pandoc.Writers.Shared`
9068 + `Text.Pandoc.Parsing`
9069 + `Text.Pandoc.Asciify`
9070 + `Text.Pandoc.Emoji`
9071 + `Text.Pandoc.ImageSize`
9072 + `Text.Pandoc.Highlighting`
9074 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
9075 Extension parsing and processing functions were defined in the top-level
9076 `Text.Pandoc` module. These functions are moved to the Extensions
9077 submodule as to enable reuse in other submodules.
9079 * Add `Ext_raw_attribute` constructor for `Extension`.
9081 * Add `Ext_fenced_divs` constructor for `Extension'.
9083 * Add `Ext_four_space_rule` constructor in `Extension`.
9085 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
9087 * Add `Monoid` instance for `Extensions`.
9089 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
9091 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
9093 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
9095 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
9097 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
9099 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
9101 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
9103 * Export `setVerbosity` from `Text.Pandoc`.
9105 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
9107 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
9109 * `Text.Pandoc.UTF8`:
9111 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
9112 Define `toString`, `toStringLazy` in terms of them.
9113 + Add new functions parameterized on `Newline`: `writeFileWith`,
9114 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
9116 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
9118 * `Text.Pandoc.Highlighting`:
9120 + `highlighting` now returns an Either rather than Maybe.
9121 This allows us to display error information returned by the skylighting
9122 library. Display a warning if the highlighting library throws an error.
9123 + Add parameter for `SyntaxMap` to `highlight`.
9125 * `Text.Pandoc.Writers.Math`:
9127 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
9128 we only need to update these in one place.
9130 * `Text.Pandoc.SelfContained`:
9132 + Removed `WriterOptions` parameter from `makeSelfContained`.
9133 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
9134 the need to pass MediaBag around and improves exceptions. It also
9135 opens up the possibility of using makeSelfContained purely.
9136 + Export `makeDataURI`.
9138 * `Text.Pandoc.ImageSize`:
9140 + Export `lengthToDim`, new function `scaleDimension`.
9141 + Export `inEm` from ImageSize (#3450).
9142 + Change `showFl` and `show` instance for `Dimension` so
9143 extra decimal places are omitted.
9144 + Added `Em` as a constructor of `Dimension`.
9145 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
9147 * `Text.Pandoc.Templates`:
9149 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
9150 and raises a proper `PandocTemplateError` if there are problems, rather
9151 than failing with uncatchable `error`.
9152 + Change signature of `getDefaultTemplate`. Now it runs in any instance
9153 of `PandocMonad`, and returns a `String` rather than an `Either` value.
9154 And it no longer takes a `datadir` parameter, since this can be
9155 retrieved from `CommonState`.
9157 * `Text.Pandoc.Options`:
9159 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
9160 The EPUB writer now takes its EPUB subdirectory from this option.
9161 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
9162 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
9163 + Add `writerSyntaxMap` to `WriterOptions`.
9164 + Removed `writerEpubStylesheet` from `WriterOptions`.
9165 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
9166 in `CommonState` in `PandocMonad` instances. (And thus it can be used
9167 by readers too.)
9168 + Changed `writerEpubMetadata` to a `Maybe String`.
9169 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
9170 the `latex_macros` reader extension.
9171 + FromJSON/ToJSON instances for `ReaderOptions`.
9172 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
9173 one string (for the KaTeX base URL), rather than two.
9174 + Removed `writerSourceURL` from `WriterOptions`. We now use
9175 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
9177 * `Text.Pandoc.Shared`:
9179 + `tabFilter` now takes a `Text`, not `String`.
9180 + `openURL`: Changed type from an Either. Now it will just raise
9181 an exception to be trapped later.
9182 + Remove `normalizeSpaces` (#1530).
9183 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
9184 + Export a new function `crFilter`.
9185 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
9186 + Provide custom `isURI` that rejects unknown schemes.
9187 (Albert Krewinkel, #2713). We also export the set of known
9188 `schemes`. The new function replaces the function of the same name
9189 from `Network.URI`, as the latter did not check whether a scheme is
9190 well-known. All official IANA schemes (as of 2017-05-22) are
9191 included in the set of known schemes. The four non-official schemes
9192 `doi`, `isbn`, `javascript`, and `pmid` are kept.
9193 + Remove `err`.
9194 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
9195 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
9196 where they are defined in terms of `PandocMonad`
9197 primitives and have different signatures.
9198 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
9199 + Add `underlineSpan`.
9201 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
9203 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
9204 With the new API one can simply use `getLog` after running
9205 the reader.
9207 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
9208 and `rawLaTeXBlock`. (Both now return a `String`, and they are
9209 polymorphic in state.)
9212### Bug fixes and under-the-hood improvements
9214 * TEI writer: Added identifiers on `<div>` elements.
9216 * DokuWiki reader: Better handling for code block in list item (#3824).
9218 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
9220 * ZimWiki writer: Removed internal formatting from note and table cells,
9221 because ZimWiki does not support it (Alex Ivkin, #3446).
9223 * MediaWiki writer:
9225 + Updated list of syntax highlighting languages (#3461).
9226 Now `r` gets you `<source>` rather than `<code>` (among others).
9227 + Add display attribute on `<math>` tags (#3452). This allows display
9228 math to be rendered properly.
9229 + Remove newline before `</ref>` (#2652).
9230 + Don't softbreak lines inside list items (#3531).
9232 * Org writer:
9234 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
9235 + Add unit tests (Alexander Krotov).
9236 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
9237 + Do not strip `#` from Org anchor links (Alexander Krotov).
9239 * CommonMark writer:
9241 + Avoid excess blank lines at end of output.
9242 + Prefer pipe tables to HTML tables even if it means losing relative
9243 column width information (#3734).
9244 + Support table, strikethrough extensions, when enabled (as with gfm).
9245 Note that we bypass the commonmark writer from cmark and construct our
9246 own pipe tables, with better results.
9247 + Properly support `--wrap=none`.
9248 + Use smallcaps class for `SmallCaps` (#1592).
9249 + Omit "fig:" prefix in image titles. This is used internally to
9250 indicate internal figures.
9252 * RST writer:
9254 + Properly handle table captions.
9255 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
9256 + Implemented `+/-smart` and improved escaping with `+smart`.
9257 + Add empty comments when needed to avoid including a blockquote
9258 in the indented content of a preceding block (#3675).
9259 + Improve grid table output, fix bug with empty rows (#3516).
9260 Uses the new `gridTable` in Writers.Shared, which is here
9261 improved to better handle 0-width cells.
9262 + Remove space at beginning/end of RST code span (#3496). Otherwise
9263 we get invalid RST. There seems to be no way to escape the space.
9264 + Add header anchors when header has non-standard id (#3937).
9265 + Correctly handle inline code containing backticks, using a `:literal:`
9266 role (#3974).
9267 + Don't backslash-escape word-internal punctuation (#3978).
9269 * Markdown writer:
9271 + Don't include variables in metadata blocks. Previously variables set
9272 on the command line were included in e.g. YAML metadata, contrary to
9273 documentation and intentions.
9274 + Improved escaping with `+smart`.
9275 + Fixed grid tables embedded in grid tables (#2834).
9276 + Use span with class 'smallcaps' for SmallCaps, instead of a style
9277 attribute as before (#1592).
9278 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
9279 extension is enabled (#3454). Otherwise in a document starting with
9280 a literal `%` the first line is wrongly interpreted as a title.
9281 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
9282 properly escape things that would otherwise start ordered lists,
9283 such as
9285 ---
9286 title: 1. inline
9287 ...
9288 + Better handling of tables with empty columns (#3337). We now
9289 calculate the number of columns based on the longest row (or the
9290 length of aligns or widths).
9291 + Escape unordered list markers at beginning of paragraph (#3497), to
9292 avoid false interpretation as a list.
9293 + Escape `|` appropriately.
9294 + Ensure space before list at top level (#3487).
9295 + Avoid spurious blanklines at end of document after tables and list,
9296 for example.
9297 + Fixed bugs in simple/multiline list output (#3384).
9298 Previously we got overlong lists with `--wrap=none`. This is fixed.
9299 Previously a multiline list could become a simple list (and would
9300 always become one with `--wrap=none`).
9301 + Don't emit a simple table if `simple_tables` disabled (#3529).
9302 + Case-insensitive reference links (David A Roberts, #3616).
9303 Ensure that we do not generate reference links whose labels differ only
9304 by case. Also allow implicit reference links when the link
9305 text and label are identical up to case.
9306 + Put space before reference link definitions (Mauro Bieg, #3630).
9307 + Better escaping for links (David A. Roberts, #3619). Previously the
9308 Markdown writer would sometimes create links where there were none
9309 in the source. This is now avoided by selectively escaping bracket
9310 characters when they occur in a place where a link might be created.
9311 + Added missing `\n` (David A. Roberts, #3647).
9312 + Fixed duplicated reference links with `--reference-links`
9313 and `--reference-location=section` (#3674). Also ensure that there
9314 are no empty link references `[]`.
9315 + Avoid inline surround-marking with empty content (#3715).
9316 E.g. we don't want `<strong></strong>` to become `****`.
9317 Similarly for emphasis, super/subscript, strikeout.
9318 + Don't allow soft break in header (#3736).
9319 + Make sure `plain`, `markdown_github`, etc. work for raw.
9320 Previously only `markdown` worked. Note: currently a raw block labeled
9321 `markdown_github` will be printed for any `markdown` format.
9322 + Ensure that `+` and `-` are escaped properly so they don't cause
9323 spurious lists (#3773). Previously they were only
9324 if succeeded by a space, not if they were at end of line.
9325 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
9326 even if the table has relative width information (#3734).
9327 + Markdown writer: don't crash on `Str ""`.
9328 + Make `Span` with null attribute transparent. That is, we don't use
9329 brackets or `<span>` tags to mark spans when there are no attributes;
9330 we simply output the contents.
9331 + Escape pipe characters when `pipe_tables` enabled (#3887).
9332 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
9333 we backslash escape these. Otherwise we use entities as before.
9334 + When writing plain, don't use `&nbsp;` to separate list and indented
9335 code. There's no need for it in this context, since this isn't to be
9336 interpreted using Markdown rules.
9337 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
9338 HTML links containing classes originally now preserve them when using
9339 javascript email obfuscation.
9340 + Render `SmallCaps` as a native span when `native_spans` are enabled.
9341 + Always write attributes with `bracketed_spans` (d-dorazio).
9343 * Man writer:
9345 + Fix handling of nested font commands (#3568). Previously pandoc emitted
9346 incorrect markup for bold + italic, for example, or bold + code.
9347 + Avoid error for definition lists with no definitions (#3832).
9349 * DocBook writer:
9351 + Fix internal links with `writerIdentifierPrefix opt`
9352 (#3397, Mauro Bieg).
9354 * Docx writer:
9356 + Don't include bookmarks on headers unless non-null id (#3476).
9357 + Support 9 levels of headers (#1642).
9358 + Allow 9 list levels (#3519).
9359 + Don't take `distArchive` from datadir (#3322). The docx writer takes
9360 components from the distribution's version of `reference.docx` when it
9361 can't find them in a user's custom `reference.docx`. Previously, we
9362 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
9363 to be used as the distribution's reference.docx. This led to a
9364 bizarre situation where pandoc would produce a good docx using
9365 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
9366 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
9367 + Fixed handling of soft hyphen (0173) (#3691).
9368 + Better handling of keywords (#3719).
9369 + Cleaner code for handling dir and style attributes for `Div`.
9370 + Use `Set` for dynamic styles to avoid duplicates.
9371 + Removed redundant element from data/docx/word/numbering.xml.
9372 The elements we need are generated when the document is
9373 compiled; this didn't do anything.
9374 + Activate `evenAndOddHeaders` from reference docx (#3901,
9375 Augustín Martín Barbero).
9377 * ODT/OpenDocument writer:
9379 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
9380 + Use more widely available bullet characters (#1400). The old
9381 characters weren't available in some font sets. These seem to work
9382 well on Windows and Linux versions of LibreOffice.
9383 + Wider labels for lists (#2421). This avoids overly narrow labels for
9384 ordered lists with `()` delimiters. However, arguably it creates
9385 overly wide labels for bullets. Also, lists now start flush with
9386 the margin, rather than indented.
9387 + Fixed dropped elements in some ordered lists (#2434).
9389 * FB2 writer:
9391 + Don't render `RawBlock` as code.
9392 + Don't fail with an error on interior headers (e.g. in list) (#3750).
9393 Instead, omit them with an INFO message.
9394 + Add support for "lang" metadata (Alexander Krotov, #3625).
9395 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
9396 produced one paragraph with `<empty-line/>` elements, which are not
9397 allowed inside `<p>` according to FB2 schema.
9398 + Replace `concatMap` with `cMap` (Alexander Krotov).
9399 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
9400 Krotov, #4004)
9402 * HTML writer:
9404 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
9405 + Render raw inline environments when `--mathjax` used (#3816).
9406 We previously did this only with raw blocks, on the assumption
9407 that math environments would always be raw blocks. This has changed
9408 since we now parse them as inline environments.
9409 + Ensure we don't get two style attributes for width and height.
9410 + Report when not rendering raw inline/block.
9411 + Issue warning if no title specified and template used (#3473).
9412 + Info message if `lang` is unspecified (#3486).
9413 + Removed unused parameter in `dimensionsToAttributeList`.
9414 + Avoid two class attributes when adding `uri` class (#3716).
9415 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
9416 Bieg).
9417 + Use revealjs's math plugin for mathjax (#3743). This is a thin
9418 wrapper around mathjax that makes math look better on revealjs.
9419 + Slidy: use h1 for all slides, even if they were originally
9420 level 2 headers (#3566). Otherwise the built-in table of contents
9421 in Slidy breaks.
9423 * LaTeX writer:
9425 + Don't render LaTeX images with data: URIs (#3636). Note that
9426 `--extract-media` can be used when the input contains data: URIs.
9427 + Make highlighted code blocks work in footnotes (Timm Albers).
9428 + Don't use figure inside table cell (#3836).
9429 + Use proper code for list enumerators (#3891). This should fix problems
9430 with lists that don't use arabic numerals.
9431 + Always add hypertarget when there's a non-empty identifier (#2719).
9432 Previously the hypertargets were only added when there was actually
9433 a link to that identifier.
9434 + Use `%` after hypertarget before code block.
9435 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
9436 fixes formatting problems in beamer citations).
9437 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
9438 of item disappear or are misplaced. Use `\texttt` instead.
9439 + Fix problem with escaping in `lstinline` (#1629). Previously the
9440 LaTeX writer created invalid LaTeX when `--listings` was specified and
9441 a code span occurred inside emphasis or another construction.
9442 + Fix error with line breaks after empty content (#2874). LaTeX
9443 requires something before a line break, so we insert a `~` if no
9444 printable content has yet been emitted.
9445 + Use BCP47 parser.
9446 + Fixed detection of otherlangs (#3770). We weren't recursing into
9447 inline contexts.
9448 + Handle language in inline code with `--listings` (#3422).
9449 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
9450 The textcomp package allows pdfLaTeX to parse `€` directly, making the
9451 `\euro` command unneeded.
9452 + Fixed footnotes in table captions (#2378). Note that if the table has
9453 a first page header and a continuation page header, the notes will
9454 appear only on the first occurrence of the header.
9455 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
9456 Previously you could link to a header above or below slide level but
9457 not *to* slide level. This commit changes that. Hypertargets are
9458 inserted inside frame titles; technically the reference is to just
9459 after the title, but in normal use (where slides are viewed full
9460 screen in a slide show), this does not matter.
9461 + Remove `\strut` at beginning of table cells (#3436). This fixes a
9462 problem with alignment of lists in table cells. The `\strut` at the
9463 end seems to be enough to avoid the too-close spacing that motivated
9464 addition of the strut in #1573.
9465 + Add partial siunitx Support (Marc Schreiber, #3588).
9467 * ConTeXt writer:
9469 + Refactored to use BCP47 module.
9470 + Remove unnecessary `$` (Alexander Krotov, #3482).
9471 + Use header identifiers for chapters (#3968).
9473 * EPUB writer:
9475 + `title_page.xhtml` is now put in `text/`.
9476 + Don't strip formatting in TOC (#1611).
9478 * Textile reader:
9480 + Fix bug for certain links in table cells (#3667).
9481 + Allow 'pre' code in list item (#3916).
9483 * HTML reader:
9485 + Added warnings for ignored material (#3392).
9486 + Better sanity checks to avoid parsing unintended things as
9487 raw HTML in the Markdown reader (#3257).
9488 + Revise treatment of `li` with `id` attribute (#3596). Previously we
9489 always added an empty div before the list item, but this created
9490 problems with spacing in tight lists. Now we do this: If the list
9491 item contents begin with a `Plain` block, we modify the `Plain`
9492 block by adding a `Span` around its contents. Otherwise, we add a
9493 `Div` around the contents of the list item (instead of adding an
9494 empty `Div` to the beginning, as before).
9495 + Add `details` tag to list of block tags (#3694).
9496 + Removed `button` from block tag list (#3717). It is already in the
9497 `eitherBlockOrInlineTag` list, and should be both places.
9498 + Use `Set`s instead of lists for block tag lookup.
9499 + Rewrote to use `Text` throughout. Effect on memory usage is modest
9500 (< 10%).
9501 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
9502 #3765).
9503 + Ensure that paragraphs are closed properly when the parent block
9504 element closes, even without `</p>` (#3794).
9505 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
9506 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
9507 `<main>` closes `<p>` and behaves like a block element generally
9508 + Support column alignments (#1881). These can be set either
9509 with a `width` attribute or with `text-width` in a `style` attribute.
9510 + Modified state type to be an instance of `HasLogMessages`, so
9511 `registerHeader` can issue warnings.
9512 + `</td>` or `</th>` should close any open block tag (#3991).
9513 + `<td>` should close an open `<th>` or `<td>`.
9514 + `htmlTag` improvements (#3989). We previously failed on cases
9515 where an attribute contained a `>` character. This patch fixes the
9516 bug, which especially affects raw HTML in Markdown.
9518 * Txt2Tags reader:
9520 + Newline is not indentation (Alexander Krotov).
9522 * MediaWiki reader:
9524 + Allow extra hyphens after `|-` in tables (#2649).
9525 + Allow blank line after table start (#2649).
9526 + Fixed more table issues (#2649).
9527 + Ensure that list starts begin at left margin (#2606). Including when
9528 they're in tables or other list items.
9529 + Make smart double quotes depend on `smart` extension (#3585).
9530 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
9531 + Modified state type to be an instance of `HasLogMessages`, so
9532 `registerHeader` can issue warnings.
9534 * TWiki reader (Alexander Krotov):
9536 + Remove unnecessary `$` (#3597).
9537 + Simplify `linkText` (#3605).
9539 * EPUB reader:
9541 + Minor refactoring, avoiding explicit MediaBag handling.
9542 This all works behind the scenes in CommonState plumbing.
9544 * Docx reader:
9546 + Don't drop smartTag contents (#2242).
9547 + Handle local namespace declarations (#3365). Previously we didn't
9548 recognize math, for example, when the xmlns declaration occurred on
9549 the element and not the root.
9550 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
9551 does the work of `normalizeSpaces` as well, so we avoid the need for
9552 that function here.
9553 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
9554 paragraphs styled with "HeadingN" as "nth-level header." But if a
9555 document has a custom style named "Heading0", this will produce a
9556 0-level header, which shouldn't exist. We only parse this style
9557 if N>0. Otherwise we treat it as a normal style name, and
9558 follow its dependencies, if any.
9559 + Add tests for avoiding zero-level header (Jesse Rosenthal).
9561 * ODT reader:
9563 + Replaced `collectRights` with Rights from `Data.Either`.
9564 + Remove dead code (Albert Krewinkel).
9566 * Org reader (Albert Krewinkel, unless noted).
9568 + Don't allow tables inside list items (John MacFarlane, #3499).
9569 + Disallow tables on list marker lines (#3499).
9570 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
9571 + Allow emphasized text to be followed by `[` (#3577).
9572 + Handle line numbering switch for src blocks.
9573 The line-numbering switch that can be given to source blocks (`-n` with
9574 an start number as an optional parameter) is parsed and translated to a
9575 class/key-value combination used by highlighting and other readers and
9576 writers.
9577 + Stop adding rundoc prefix to src params. Source block parameter names
9578 are no longer prefixed with `rundoc`. This was intended to simplify
9579 working with the rundoc project, a babel runner. However, the rundoc
9580 project is unmaintained, and adding those markers is not the reader's
9581 job anyway. The original language that is specified for a source
9582 element is now retained as the `data-org-language` attribute and only
9583 added if it differs from the translated language.
9584 + Allow multi-word arguments to src block params (#3477). The reader now
9585 correctly parses src block parameter list even if parameter arguments
9586 contain multiple words.
9587 + Avoid creating `nullMeta` by applying `setMeta` directly
9588 (Alexander Krotov).
9589 + Replace `sequence . map` with `mapM`.
9590 + Fix smart parsing behavior. Parsing of smart quotes and special
9591 characters can either be enabled via the `smart` language extension or
9592 the `'` and `-` export options. Smart parsing is active if either the
9593 extension or export option is enabled. Only smart parsing of special
9594 characters (like ellipses and en and em dashes) is enabled by default,
9595 while smart quotes are disabled. Previously, all smart parsing was
9596 disabled unless the language extension was enabled.
9597 + Subject full doc tree to headline transformations (Albert Krewinkel,
9598 #3695). Emacs parses org documents into a tree structure, which is
9599 then post-processed during exporting. The reader is changed to do the
9600 same, turning the document into a single tree of headlines starting
9601 at level 0.
9602 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
9603 cite keys included special characters also at the end. This caused
9604 problems when citations occur right before colons or at the end of
9605 a sentence. With this change, all non alphanumeric characters at
9606 the end of a cite key are ignored. This also adds `,` to the list
9607 of special characters that are legal in cite keys to better mirror
9608 the behaviour of org-export.
9609 + Fix module names in haddock comments. Copy-pasting had lead to
9610 haddock module descriptions containing the wrong module names.
9611 + Recognize babel result blocks with attributes (#3706). Babel
9612 result blocks can have block attributes like captions and names.
9613 Result blocks with attributes were not recognized and were parsed
9614 as normal blocks without attributes.
9615 + Include tags in headlines. The Emacs default is to include tags in the
9616 headline when exporting. Instead of just empty spans, which contain the
9617 tag name as attribute, tags are rendered as small caps and wrapped in
9618 those spans. Non-breaking spaces serve as separators for multiple tags.
9619 + Respect export option for tags (#3713). Tags are appended to
9620 headlines by default, but will be omitted when the `tags` export option
9621 is set to nil.
9622 + Use `tag-name` attribute instead of `data-tag-name`.
9623 + Use `org-language` attribute rather than `data-org-language`.
9624 + Modified state type to be an instance of `HasLogMessages`, so
9625 `registerHeader` can issue warnings.
9626 + End footnotes after two blank lines. Footnotes can not only be
9627 terminated by the start of a new footnote or a header, but also by two
9628 consecutive blank lines.
9629 + Update emphasis border chars (#3933). The org reader was updated to
9630 match current org-mode behavior: the set of characters which are
9631 acceptable to occur as the first or last character in an org emphasis
9632 have been changed and now allows all non-whitespace chars at the
9633 inner border of emphasized text (see `org-emphasis-regexp-components`).
9635 * RST reader:
9637 + Fixed small bug in list parsing (#3432). Previously the parser didn't
9638 handle properly this case:
9640 * - a
9641 - b
9642 * - c
9643 - d
9644 + Handle multiline cells in simple tables (#1166).
9645 + Parse list table directive (Keiichiro Shikano, #3432).
9646 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
9647 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
9648 + Reorganize block parsers for ~20% faster parsing.
9649 + Fixed `..include::` directive (#3880).
9650 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
9651 Previously pandoc would sometimes combine two line blocks separated
9652 by blanks, and ignore trailing blank lines within the line block.
9653 + Fix indirect hyperlink targets (#512).
9655 * Markdown reader:
9657 + Allow attributes in reference links to start on next line (#3674).
9658 + Parse YAML metadata in a context that sees footnotes defined in
9659 the body of the document (#1279).
9660 + When splitting pipe table cells, skip tex math (#3481).
9661 You might have a `|` character inside math. (Or for that matter
9662 something that the parser might mistake for raw HTML.)
9663 + Treat span with class `smallcaps` as SmallCaps.
9664 This allows users to specify small caps in Markdown this way:
9665 `[my text]{.smallcaps}` (#1592).
9666 + Fixed internal header links (#2397).
9667 This patch also adds `shortcut_reference_links` to the list
9668 of mmd extensions.
9669 + Treat certain environments as inline
9670 when they occur without space surrounding them (#3309, #2171).
9671 E.g. equation, math. This avoids incorrect vertical space
9672 around equations.
9673 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
9674 + Allow latex macro definitions indented 1-3 spaces.
9675 Previously they only worked if nonindented.
9676 + Improved parsing of indented raw HTML blocks (#1841).
9677 Previously we inadvertently interpreted indented HTML as
9678 code blocks. This was a regression. We now seek to determine the
9679 indentation level of the contents of an HTML block, and (optionally)
9680 skip that much indentation. As a side effect, indentation may be
9681 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
9682 used. This is better than having things interpreted as indented
9683 code blocks.
9684 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
9685 + Warn for notes defined but not used (#1718).
9686 + Use `anyLineNewline` (Alexander Krotov).
9687 + Interpret YAML metadata as Inlines when possible (#3755). If
9688 the metadata field is all on one line, we try to interpret it as
9689 Inlines, and only try parsing as Blocks if that fails. If it
9690 extends over one line (including possibly the `|` or `>` character
9691 signaling an indented block), then we parse as Blocks. This was
9692 motivated by some German users finding that `date: '22. Juin 2017'`
9693 got parsed as an ordered list.
9694 + Fixed spurious parsing as citation as reference def (#3840).
9695 We now disallow reference keys starting with `@` if the
9696 `citations` extension is enabled.
9697 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
9698 Previously only `[-@roe]` (with brackets) was recognized as
9699 suppress-author, and `-@roe` was treated the same as `@roe`.
9700 + Fixed parsing of fenced code after list when there is no intervening
9701 blank line (#3733).
9702 + Allow raw latex commands starting with `\start` (#3558). Previously
9703 these weren't allowed because they were interpreted as starting
9704 ConTeXt environments, even without a corresponding `\stop`...
9705 + Added `inlines`, `inlines1`.
9706 + Require nonempty alt text for `implicit_figures` (#2844).
9707 A figure with an empty caption doesn't make sense.
9708 + Removed texmath macro material; now all this is handled
9709 in the LaTeX reader functions.
9710 + Fixed bug with indented code following raw LaTeX (#3947).
9712 * LaTeX reader:
9714 + Rewrote LaTeX reader with proper tokenization (#1390,
9715 #2118, #3236, #3779, #934, #982). This rewrite is primarily
9716 motivated by the need to get macros working properly. A side benefit
9717 is that the reader is significantly faster. We now tokenize the
9718 input text, then parse the token stream. Macros modify the token
9719 stream, so they should now be effective in any context, including
9720 math. Thus, we no longer need the clunky macro processing
9721 capacities of texmath.
9722 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
9723 + Allow `\newcommand\foo{blah}` without braces.
9724 + Support `\lstinputlisting` (#2116).
9725 + Issue warnings when skipping unknown latex commands (#3392).
9726 + Include contents of `\parbox`.
9727 + Allow `\hspace` and `\vspace` to count as raw block or inline.
9728 Previously we would refuse to parse anything as raw inline if
9729 it was in the `blockCommands` list. Now we allow exceptions
9730 if they're listed under ignoreInlines in inlineCommands.
9731 This should make it easier e.g. to include an `\hspace`
9732 between two side-by-side raw LaTeX tables.
9733 + Don't drop contents of `\hypertarget`.
9734 + Handle spaces before `\cite` arguments.
9735 + Allow newpage, clearpage, pagebreak in inline contexts as well as
9736 block contexts (#3494).
9737 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
9738 + Use `pMacroDefinition` in macro (for more direct parsing).
9739 Note that this means that `macro` will now parse one
9740 macro at a time, rather than parsing a whole group together.
9741 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
9742 commands are parsed as raw if `+raw_tex`; otherwise, their argument
9743 is parsed as a bracketed string.
9744 + Don't crash on empty `enumerate` environment (#3707).
9745 + Handle escaped `&` inside table cell (#3708).
9746 + Handle block structure inside table cells (#3709). `minipage` is no
9747 longer required.
9748 + Handle some width specifiers on table columns (#3709). Currently
9749 we only handle the form `0.9\linewidth`. Anything else would have
9750 to be converted to a percentage, using some kind arbitrary assumptions
9751 about line widths.
9752 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
9753 LaTeX reader's treatment of raw commands, but it also affects the
9754 Markdown reader.
9755 + Fixed regression with starred environment names (#3803).
9756 + Handle optional args in raw `\titleformat` (#3804).
9757 + Improved heuristic for raw block/inline. An unknown command at the
9758 beginning of the line that could be either block or inline is
9759 treated as block if we have a sequence of block commands followed by
9760 a newline or a `\startXXX` command (which might start a raw ConTeXt
9761 environment).
9762 + Don't remove macro definitions from the output, even if
9763 `Ext_latex_macros` is set, so that macros will be applied.
9764 Since they're only applied to math in Markdown, removing the macros
9765 can have bad effects. Even for math macros, keeping them should be
9766 harmless.
9767 + Removed `macro`. It is no longer necessary, since the
9768 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
9769 the need for a separate `latexMacro` parser in the Markdown reader.
9770 + Use `label` instead of `data-label` for label in caption (#3639).
9771 + Fixed space after `\figurename` etc.
9772 + Resolve references to section numbers.
9773 + Fix `\let\a=0` case, with single character token.
9774 + Allow `@` as a letter in control sequences. `@` is commonly used
9775 in macros using `\makeatletter`. Ideally we'd make the tokenizer
9776 sensitive to `\makeatletter` and `\makeatother`, but until then this
9777 seems a good change.
9778 + Track header numbers and correlate with labels.
9779 + Allow `]` inside group in option brackets (#3857).
9780 + lstinline with braces can be used (verb cannot be used with braces)
9781 (Marc Schreiber, #3535).
9782 + Fix keyval function: pandoc did not parse options in braces correctly
9783 (Marc Schreiber, #3642).
9784 + When parsing raw LaTeX commands, include trailing space (#1773).
9785 Otherwise things like `\noindent foo` break and turn into
9786 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
9787 formats that allow `raw_tex`).
9788 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
9789 `\texttt` contexts.
9790 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
9791 + Allow space before `=` in bracketd options (Ben Firshman).
9792 + Be more forgiving in parsing command options. This was needed, for
9793 example, to make some minted options work.
9794 + Strip off quotes in `\include` filenames.
9796 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
9798 * `Text.Pandoc.PDF`:
9800 + Got `--resource-path` working with PDF output (#852).
9801 + Fetch images when generating PDF via context (#3380).
9802 To do this, we create the temp directory as a subdirectory
9803 of the working directory. Since context mk IV by default looks
9804 for images in the parent directory, this works.
9805 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
9806 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
9807 This reduces code duplication.
9808 + `html2pdf`: use stdin instead of intermediate HTML file
9809 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
9810 doesn't use `TEXINPUTS`.
9812 * `Text.Pandoc.Pretty`:
9814 + Simplified definition of `realLength`.
9815 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
9817 * `Text.Pandoc.MIME`:
9819 + Use `application/javascript` (not `application/x-javascript`).
9820 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
9822 * `Text.Pandoc.ImageSize`:
9824 + Improve SVG image size code (Marc Schreiber, #3580).
9825 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
9827 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
9828 and reduction of memory usage in most of the writers.
9830 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
9832 * `Text.Pandoc.SelfContained`:
9834 + Fixed problem with embedded fonts (#3629).
9835 + Refactored getData from `getDataURI` in `SelfContained`.
9836 + Don't use data URIs for script or style (#3423). Instead, just use
9837 script or style tags with the content inside. The old method with
9838 data URIs prevents certain optimizations outside pandoc. Exception:
9839 data URIs are still used when a script contains `</script>` or a
9840 style contains `</`.
9841 + SelfContained: Handle URL inside material retrieved from a URL
9842 (#3629). This can happen e.g. with an @import of a google web font.
9843 (What is imported is some CSS which contains an url reference
9844 to the font itself.) Also, allow unescaped pipe (|) in URL.
9845 + Load resources from `data-src` (needed for lazy loading in
9846 reveal.js slide shows).
9847 + Handle `data-background-image` attribute on section (#3979).
9849 * `Text.Pandoc.Parsing`:
9851 + Added `indentWith` (Alexander Krotov, #3687).
9852 + Added `stateCitations` to `ParserState`.
9853 + Removed `stateChapters` from `ParserState`.
9854 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
9855 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
9856 + Adjusted type of `insertIncludedFile` so it can be used with token
9857 parser.
9858 + Replace old texmath macro stuff from Parsing. Use Macro from
9859 Text.Pandoc.Readers.LaTeX.Types instead.
9860 + Export `insertIncludedFile`.
9861 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
9862 + Replace partial with total function (Albert Krewinkel).
9863 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
9864 `insertIncludeFile` function is generalized to work with all parser
9865 states which are instances of that class.
9866 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
9867 The `insertIncludeFiles` function was generalized and renamed
9868 to `insertIncludedFiles'`; the specialized versions are based on that.
9869 + `many1Till`: Check for the end condition before parsing (Herwig
9870 Stuetz). By not checking for the end condition before the first
9871 parse, the parser was applied too often, consuming too much of the
9872 input. This only affects `many1Till p end` where `p` matches on a
9873 prefix of `end`.
9874 + Provide `parseFromString` (#3690). This is a version of
9875 `parseFromString` specialied to ParserState, which resets
9876 `stateLastStrPos` at the end. This is almost always what we want.
9877 This fixes a bug where `_hi_` wasn't treated as emphasis in the
9878 following, because pandoc got confused about the position of the
9879 last word: `- [o] _hi_`.
9880 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
9881 + Fix `blanklines` documentation (Alexander Krotov, #3843).
9882 + Give less misleading line information with `parseWithString`.
9883 Previously positions would be reported past the end of the chunk.
9884 We now reset the source position within the chunk and report
9885 positions "in chunk."
9886 + Add `anyLineNewline` (Alexander Krotov).
9887 + Provide shared F monad functions for Markdown and Org readers
9888 (Albert Krewinkel). The `F` monads used for delayed evaluation
9889 of certain values in the Markdown and Org readers are based on a
9890 shared data type capturing the common pattern of both `F` types.
9891 + Add `returnF` (Alexander Krotov).
9892 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
9893 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
9894 + Added `readerAbbreviations` to `ParserState`. Markdown reader
9895 now consults this to determine what is an abbreviation.
9896 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
9897 parsers for markdown and rst was combined into one single
9898 parser `gridTable`, slightly changing parsing behavior of both
9899 parsers: (1) The markdown parser now compactifies block content
9900 cell-wise: pure text blocks in cells are now treated as paragraphs
9901 only if the cell contains multiple paragraphs, and as plain blocks
9902 otherwise. Before, this was true only for single-column tables. (2)
9903 The rst parser now accepts newlines and multiple blocks in header
9904 cells.
9905 + Generalize tableWith, gridTableWith (Albert Krewinkel).
9906 The parsing functions `tableWith` and `gridTableWith` are generalized
9907 to work with more parsers. The parser state only has to be an
9908 instance of the `HasOptions` class instead of requiring a concrete
9909 type. Block parsers are required to return blocks wrapped into a
9910 monad, as this makes it possible to use parsers returning results
9911 wrapped in `Future`s.
9913 * `Text.Pandoc.Shared`:
9915 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
9916 + `stringify`: handle Quoted better (#3958). Previously we were losing
9917 the quotation marks in Quoted elements.
9919 * `Text.Pandoc.Writers.Shared`:
9921 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
9922 This allows us to add the variables AFTER using the metadata
9923 to generate a YAML header (in the Markdown writer).
9924 + Added `unsmartify` (previously in RST writer).
9925 Undo literal double curly quotes. Previously we left these.
9926 + Generalize type of `metaToJSON` so it can take a Text. Previously a
9927 String was needed as argument; now any ToJSON instance will do.
9928 + Added `gridTable` (previously in Markdown writer).
9929 + `gridTable`: Refactored to use widths in chars.
9930 + `gridTable`: remove unnecessary extra space in cells.
9931 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
9932 values to become lists.
9933 + Pipe tables: impose minimum cell size (see #3526).
9936### Default template changes
9938 * HTML templates (including EPUB and HTML slide show templates):
9940 + Make default.html5 polyglot markup conformant (John Luke Bentley,
9941 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
9942 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
9943 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
9944 + Regularized CSS in html/epub/html slide templates (#3485).
9945 All templates now include `code{white-space: pre-wrap}`
9946 and CSS for `q` if `--html-q-tags` is used. Previously some templates
9947 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
9948 included.
9949 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
9950 + `default.revealjs`: make `history` default to true.
9951 + `default.revealjs`: use lazy loading (#2283).
9952 + `default.revealjs`: add `mathjax` variable and some conditional code
9953 to use the MathJaX plugin.
9954 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
9955 + `default.dzslides`: Load Google Font using HTTPS by default
9956 (Yoan Blanc).
9958 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
9959 #3855).
9961 * LaTeX/Beamer template:
9963 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
9964 `default.beamer` has been removed; beamer now uses the
9965 `default.latex` template. Beamer-specific parts are conditional
9966 on the `beamer` variable set by the writer. Note that
9967 `pandoc -D beamer` will return this (combined) template.
9968 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
9969 Beamer loads `xcolor` rather than `color`, and thus the
9970 `dvipsnames` option doesn't take effect. This also provides a wider
9971 range of colour selections with the `svgnames` option.
9972 + Use starred versions of `xcolor` names (Andrew Dunning).
9973 Prevents changes to documents defined using the `dvipsnames` list (e.g.
9974 `Blue` gives a different result with svgnames enabled).
9975 + Load `polyglossia` after header-includes (#3898). It needs to be
9976 loaded as late as possible.
9977 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
9978 XeLaTeX on request.
9979 + Don't load `fontspec` before `unicode-math` (over there).
9980 The `unicode-math` package loads `fontspec` so explicit loading of
9981 `fontspec` before `unicode-math` is not necessary.
9982 + Use `unicode-math` by default in default.latex template. mathspec will
9983 be used in xelatex if the `mathspec` variable is set; otherwise
9984 unicode-math will be used (Václav Haisman).
9985 + Use `dvipsnames` options when `colorlinks` specified (otherwise
9986 we get an error for `maroon`) (Thomas Hodgson).
9987 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
9988 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
9989 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
9990 clash when loading a package (e.g. `tufte-latex`) that uses
9991 `hyperref` settings different from those in the template.
9992 + Add `natbiboptions` variable (#3768).
9993 + Fix links inside captions in LaTeX output with links-as-notes
9994 (Václav Haisman, #3651). Declare our redefined `\href` robust.
9995 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
9996 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
9997 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
9998 packages. Use existing `CJKmainfont` and `CJKoptions` template
9999 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
10000 and `luatexjapresetoptions` for `luatexja-preset`.
10001 + Added `aspectratio` variable to beamer template (Václav Haisman,
10002 #3723).
10003 + Modified template.latex to fix XeLaTex being used with tables
10004 (lwolfsonkin, #3661). Reordered `lang` variable handling to
10005 immediately before `bidi`.
10007 * ConTeXt template: Improved font handling: `simplefonts` is now
10008 obsolete in ConTeXt (Pablo Rodríguez).
10011### Documentation improvements
10013 * MANUAL.txt:
10015 + Add URL for Prince HTML > PDF engine (Ian, #3919).
10016 + Document that content above slide-level will be omitted in
10017 slide shows. See #3460, #2265.
10018 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
10019 + Small clarification in YAML metadata section.
10020 + Document that html4 is technically XHTML 1.0 transitional.
10021 + Remove refs to highlighting-kate (#3672).
10022 + Document ibooks specific epub metadata.
10023 + Clarify that mathml is used for ODT math.
10024 + Mention limitations of Literate Haskell Support (#3410,
10025 Joachim Breitner).
10026 + Add documentation of limitations of grid tables (Stephen
10027 McDowell, #3864).
10028 + Clarify that meta-json contains transformed values (Jakob Voß,
10029 #3491) Make clear that template variable `meta-json` does not
10030 contain plain text values or JSON output format but field values
10031 transformed to the selected output format.
10033 * COPYRIGHT:
10035 + Clarify that templates are dual-licensed.
10036 + Clarify that pandoc-types is BSD3 licensed.
10037 + List new files not written by jgm (Albert Krewinkel).
10038 + Update dates in copyright notices (Albert Krewinkel). This follows
10039 the suggestions given by the FSF for GPL licensed software.
10040 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
10042 * INSTALL.md:
10044 + Improved instructions for tests with patterns.
10045 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
10047 * CONTRIBUTING.md:
10049 + Fixed typos (Wandmalfarbe, #3479).
10050 + Add "ask on pandoc-discuss" (Mauro Bieg).
10052 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
10053 end of this document is autogenerated from `data/pandoc.lua`
10054 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
10055 (Albert Krewinkel).
10057 * Add `doc/filters.md`. This is the old scripting tutorial from
10058 the website.
10060 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
10061 to using pandoc as a Haskell library.
10064### Build infrastructure improvements
10066 * Removed `data/templates` submodule. Templates are now a subtree
10067 in `data/templates`. This removes the need to do `git submodule
10068 update`.
10070 * Renamed `tests` -> `test`.
10072 * Remove `https` flag. Always build with HTTPS support.
10074 * Use `file-embed` instead of `hsb2hs` to embed data files when
10075 `embed_data_files` flag is set. `file-embed` gives us better dependency
10076 tracking: if a data file changes, ghc/stack/cabal know to recompile
10077 the Data module. This also removes `hsb2hs` as a build dependency.
10079 * Add `custom-setup` stanza to pandoc, lowercase field names.
10081 * Add `static` Cabal flag.
10083 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
10084 than -OSX. Changed local names from osx to macos.
10086 * make_macos_package.sh - Use strip to reduce executable size.
10088 * Revised binary linux package. Now a completely static executable
10089 is created, using Docker and alpine. We create both a deb and a
10090 tarball. The old `deb` directory has been replaced with a `linux`
10091 directory. Running `make` in the `linux` directory should
10092 perform the build, putting the binary packages in `artifacts/`.
10094 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
10095 pandoc-data packages will be uninstalled; this package provides
10096 both (#3822). Add latex packages as 'suggested', update
10097 description.
10099 * Remove cpphs build requirement -- it is no longer needed.
10101 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
10103 * Name change OSX -> macOS (ickc, #3869).
10105 * Fix casing of Linux, UNIX, and Windows (ickc).
10107 * `.travis.yml`: create a source dist and do cabal build and test there.
10108 That way we catch errors due to files missing from the data
10109 section of pandoc.cabal.
10111 * Makefile:
10113 + Split `make haddock` from `make full`.
10114 + Add BRANCH variable for winpkg.
10115 + Add `lint` target.
10116 + Improve `make full`. Disable optimizations.
10117 Build everything, inc. trypandoc and benchmarks. Use parallel build.
10118 + Allow `make test` to take `TESTARGS`.
10120 * Added new command tests (`Tests.Command`), using small text files
10121 in `test/command/`. Any files added in this directory will be treated
10122 as shell tests (see smart.md for an example). This makes it very easy
10123 to add regression tests etc.
10125 * Test fixes so we can find data files. In old tests & command tests,
10126 we now set the environment variable `pandoc_datadir`. In lua tests,
10127 we set the datadir explicitly.
10129 * Refactored `compareOutput` in docx writer test.
10131 * Consolidated some common functions in `Tests.Helper`.
10133 * Small change to unbalanced bracket test to speed up test suite.
10135 * Speed up Native writer quickcheck tests.
10137 * Use tasty for tests rather than test-framework.
10139 * Add simple Emacs mode to help with Pandoc templates editing.
10140 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
10143## pandoc 1.19.2.4 (2017-09-10)
10145 * Add dependencies on texmath and skylighting to the executable.
10146 This is needed for dependency version numbers to be available,
10147 with Cabal > 2.
10149## pandoc 1.19.2.3 (2017-09-09)
10151 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
10153## pandoc 1.19.2.2 (2017-09-08)
10155 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
10156 compile with Cabal 2.x, so we require an earlier version via
10157 setup-depends. The following packages need newer versions with
10158 GHC 8.2.1 and had their constraints relaxed accordingly:
10159 executable-path, process, syb, and time.
10161## pandoc 1.19.2.1 (2017-01-31)
10163 * Require skylighting >= 0.1.1.4.
10164 * Adjust test output for skylighting version.
10165 * Relax upper bounds on blaze-html and blaze-markup.
10167## pandoc 1.19.2 (2017-01-29)
10169 * Use skylighting library instead of highlighting-kate for syntax
10170 highlighting. Skylighting is faster and more accurate (#3363).
10171 Later we'll be able to add features like warning messages, dynamic
10172 loading of xml syntax definitions, and dynamic loading of themes.
10174 * Added a new highlight style, `breezeDark`.
10176 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
10177 This allows more languages to be used when using the `--listings`
10178 option.
10180 * OpenDocument writer:
10182 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
10183 + Don't profilerate text styles unnecessarily (#3371).
10184 This change makes the writer create only as many temporary
10185 text styles as are absolutely necessary. It also consolidates
10186 adjacent nodes with the same style.
10188 * Org reader (Albert Krewinkel):
10190 + Allow short hand for single-line raw blocks (Albert Krewinkel,
10191 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
10192 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
10193 + Accept org-ref citations followed by commas (Albert Krewinkel).
10194 Bugfix for an issue which, whenever the citation was immediately
10195 followed by a comma, prevented correct parsing of org-ref citations.
10196 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
10197 `/*strong and emphasized*/`) was interpreted incorrectly in that the
10198 inner markup was not recognized.
10199 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
10201 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
10202 In the past, the docx reader wrote an empty header as an empty list. It
10203 should have the same width as a row (and be filled with empty cells).
10205 * MediaWiki reader:
10207 + Improved handling of display math (#3362). Sometimes display math is
10208 indented with more than one colon. Previously we handled these cases
10209 badly, generating definition lists and missing the math.
10210 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
10211 behavior when the smart option is parsed to match other readers'
10212 behavior.
10214 * Markdown reader:
10216 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
10217 (#3341). Previously this did not properly enable escaped line breaks.
10218 + Disallow space between inline code and attributes (#3326, #3323,
10219 Mauro Bieg).
10221 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
10223 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
10225 * LaTeX writer: allow tables with empty cells to count as "plain."
10226 This addresses a problem of too-wide tables when empty cells
10227 are used. Thanks to Joost Kremers for reporting the issue.
10229 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
10230 Unprefixed numbers where used by older org-mode versions, but are no
10231 longer supported.
10233 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
10234 Mauro Bieg).
10236 * Markdown writer: Fix display math with `--webtex` (#3298).
10238 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
10239 bumper314).
10241 * Templates:
10243 + default.latex: Moved geometry after hyperref (Václav Haisman).
10244 Otherwise PDF sizes can be wrong in some circumstances.
10245 + Copied a few changes from default.latex to default.beamer
10246 (Wandmalfarbe).
10247 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
10248 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
10249 that contain verbatim in notes (#3361). (Note: the beamer template
10250 was updated to match the LaTeX template, but at this point verbatim
10251 in notes seems not to work in beamer.)
10252 + default.latex: Allow passing `microtypeoptions` to microtype
10253 (Václav Haisman).
10254 + default.latex: Add hyphen option to url package.
10255 + default.docbook5: Fix namespace declarations (Mauro Bieg).
10257 * Moved `make_osx_package.sh` to `osx/` directory.
10259 * Travis continuous integration:
10261 + Fix false positives with dist build.
10262 + Speed improvements (Kolen Cheung, #3304, #3357).
10264 * MANUAL.txt:
10266 + Clarify that blank space is needed around footnotes (#3352).
10267 + Fixed typo (#3351, Alexey Rogechev).
10268 + Note that `--wrap=auto` does not work in HTML output.
10269 + Default `--columns` width is 72, not 80.
10270 + Fixed broken links (#3316, Kolen Cheung).
10271 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
10273 * INSTALL.md:
10275 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
10276 + Added instructions for extracting binary from OSX, Windows packages.
10278 * CONTRIBUTING.md: Describe labels currently used in issue tracker
10279 (Albert Krewinkel). The labels have changed over time, the list of
10280 labels is updated to reflect the current set of labels used in the
10281 issue tracker.
10283 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
10285 * Bumped version bounds for dependencies.
10288## pandoc 1.19.1 (2016-12-10)
10290 * Set `PANDOC_VERSION` environment variable for filters (#2640).
10291 This allows filters to check the pandoc version that produced
10292 the JSON they are receiving.
10294 * Docx reader: Ensure one-row tables don't have header (#3285,
10295 Jesse Rosenthal). Tables in MS Word are set by default to have
10296 special first-row formatting, which pandoc uses to determine whether
10297 or not they have a header. This means that one-row tables will, by
10298 default, have only a header -- which we imagine is not what people
10299 want. This change ensures that a one-row table is not understood to
10300 be a header only. Note that this means that it is impossible to
10301 produce a header-only table from docx, even though it is legal
10302 pandoc. But we believe that in nearly all cases, it will be an
10303 accidental (and unwelcome) result
10305 * HTML reader:
10307 + Fixed some bad regressions in HTML table parser (#3280).
10308 This regression leads to the introduction of empty rows
10309 in some circumstances.
10310 + Understand `style=width:` as well as `width` in `col` (#3286).
10312 * RST reader:
10314 + Print warnings when keys, substitition, notes not found.
10315 Previously the parsers failed and we got raw text. Now we get a
10316 link with an empty URL, or empty inlines in the case of a note or
10317 substitution.
10319 + Fix hyperlink aliases (#3283).
10321 * Man writer: Ensure that periods are escaped at beginning of line
10322 (#3270).
10324 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
10325 (#3272, Albert Krewinkel). Fix interaction of top-level
10326 divisions `part` or `chapter` with unnumbered headers when
10327 emitting LaTeX. Headers are ensured to be written using
10328 stared commands (like `\subsection*{}`).
10330 * LaTeX template: use comma not semicolon to separate keywords for
10331 `pdfkeywords`. Thanks to Wandmalfarbe.
10333 * Markdown writer: Fixed incorrect word wrapping (#3277).
10334 Previously pandoc would sometimes wrap lines too early due to
10335 this bug.
10337 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
10338 possible to insert escape codes for content that needs escaping at the
10339 beginning of a line.
10341 * Removed old MathMLInHTML.js from 2004, which should no longer
10342 be needed for MathML with modern browsers.
10344 * Fixed tests with dynamic linking (#2709).
10346 * Makefile: Use stack instead of cabal for targets. This is just
10347 a convenience for developers.
10349 * Fixed bash completion of filenames with space (#2749).
10351 * MANUAL: improved documentation on how to create a custom
10352 `reference.docx`.
10354 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
10356## pandoc 1.19 (2016-12-01)
10358 * Changed resolution of filter paths.
10360 + We now first treat the argument of `--filter` as a full (absolute
10361 or relative) path, looking for a program there. If it's found, we
10362 run it.
10363 + If not, and if it is a simple program name or a relative path, we
10364 try resolving it relative to `$DATADIR/filters`.
10365 + If this fails, then we treat it as a program name and look in the
10366 user's PATH.
10367 + Removed a hardcoded '/' that may have caused problems with
10368 Windows paths.
10370 Previously if you did `--filter foo` and you had `foo` in your path and
10371 also an executable `foo` in your working directory, the one in the path
10372 would be used. Now the one in the working directory is used.
10374 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
10375 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
10376 `foo/bar.hs` relative to the working directory.
10378 * Allow `file://` URIs as arguments (#3196). Also improved default reader
10379 format detection. Previously with a URI ending in .md or .markdown,
10380 pandoc would assume HTML input. Now it treats these as markdown.
10382 * Allow to overwrite top-level division type heuristics (#3258,
10383 Albert Krewinkel). Pandoc uses heuristics to determine the most
10384 reasonable top-level division type when emitting LaTeX or
10385 Docbook markup. It is now possible to overwrite this implicitly set
10386 top-level division via the `top-level-division` command line parameter.
10388 * Text.Pandoc.Options \[API changes\]:
10390 + Removed `writerStandalone` field in `WriterOptions`, made
10391 `writerTemplate` a `Maybe` value. Previously setting
10392 `writerStandalone = True` did nothing unless a template was provided
10393 in writerTemplate. Now a fragment will be generated if
10394 `writerTemplate` is `Nothing`; otherwise, the specified template
10395 will be used and standalone output generated.
10396 + `Division` has been renamed `TopLevelDivision` (#3197). The
10397 `Section`, `Chapter`, and `Part` constructors were renamed to
10398 `TopLevelSection`, `TopLevelChapter`, and
10399 `TopLevelPart`, respectively. An additional `TopLevelDefault`
10400 constructor was added, which is now also the new default value of
10401 the `writerTopLevelDivision` field in `WriterOptions`.
10403 * Improved error if they give wrong arg to `--top-level-division`.
10405 * Use new module from texmath to lookup MS font codepoints in Docx reader.
10406 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
10407 lives in texmath (0.9).
10409 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
10410 when the qnames lacked the docbook namespace URI.
10412 * HTML reader:
10414 + Improved table parsing (#3027). We now check explicitly for non-1
10415 rowspan or colspan attributes, and fail when we encounter them.
10416 Previously we checked that each row had the same number of cells,
10417 but that could be true even with rowspans/colspans. And there are
10418 cases where it isn't true in tables that we can handle fine -- e.g.
10419 when a tr element is empty. So now we just pad rows with empty cells
10420 when needed.
10421 + Treat `<math>` as MathML by default unless something else is
10422 explicitly specified in xmlns. Provided it parses as MathML,
10423 of course. Also fixed default which should be to inline math if no
10424 display attribute is used.
10425 + Only treat "a" element as link if it has href (#3226). Otherwise
10426 treat as span.
10428 * Docx reader (Jesse Rosenthal):
10430 + Add a placeholder value for CHART. We wrap `[CHART]` in a
10431 `<span class="chart">`. Note that it maps to inlines because, in
10432 docx, anything in a drawing tag can be part of a larger paragraph.
10433 + Be more specific in parsing images We not only want `w:drawing`,
10434 because that could also include charts. Now we specify
10435 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
10436 a first step toward allowing other sorts of drawing data as well.
10437 + Abstract out function to avoid code repetition.
10438 + Update tests for img title and alt (#3204).
10439 + Handle Alt text and titles in images. We use the "description" field
10440 as alt text and the "title" field as title. These can be accessed
10441 through the "Format Picture" dialog in Word.
10442 + Docx reader utils: handle empty namespace in `elemName`. Previously,
10443 if given an empty namespace `(elemName ns "" "foo")` `elemName`
10444 would output a QName with a `Just ""` namespace. This is never what
10445 we want. Now we output a `Nothing`. If someone *does* want a
10446 `Just ""` in the namespace, they can enter the QName
10447 value explicitly.
10449 * ODT reader/writer:
10451 + Inline code when text has a special style (Hubert Plociniczak). When
10452 a piece of text has a text `Source_Text` then we assume that this is
10453 a piece of the document that represents a code that needs to
10454 be inlined. Adapted the writer to also reflect that change.
10455 Previously it was just writing a 'preformatted' text using a
10456 non-distinguishable font style. Code blocks are still not recognized
10457 by the ODT reader. That's a separate issue.
10458 + Infer table's caption from the paragraph (#3224,
10459 Hubert Plociniczak). ODT's reader always put empty captions for the
10460 parsed tables. This commit
10462 1. checks paragraphs that follow the table definition
10463 2. treats specially a paragraph with a style named 'Table'
10464 3. does some postprocessing of the paragraphs that combines tables
10465 followed immediately by captions
10467 The ODT writer used the `TableCaption` style for the caption
10468 paragraph. This commit follows the OpenOffice approach which allows
10469 for appending captions to table but uses a built-in style named
10470 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
10471 should change the style's name from `TableCaption` to `Table`.
10473 * ODT reader: Infer tables' header props from rows (#3199,
10474 Hubert Plociniczak). ODT reader simply provided an empty header list
10475 which meant that the contents of the whole table, even if not empty, was
10476 simply ignored. While we still do not infer headers we at least have to
10477 provide default properties of columns.
10479 * Markdown reader:
10481 + Allow reference link labels starting with `@...` if `citations`
10482 extension disabled (#3209). Example: in
10484 \[link text\]\[@a\]
10486 `link text` isn't hyperlinked because `[@a]` is parsed as
10487 a citation. Previously this happened whether or not the `citations`
10488 extension was enabled. Now it happens only if the `citations`
10489 extension is enabled.
10490 + Allow alignments to be specified in Markdown grid tables. For
10491 example,
10493 +-------+---------------+--------------------+
10494 | Right | Left | Centered |
10495 +=========:+:=================+:=============:+
10496 | Bananas | $1.34 | built-in wrapper |
10497 +-------+---------------+--------------------+
10499 + Allow Small Caps elements to be created using bracketed spans (as
10500 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
10502 * LaTeX reader:
10504 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
10505 Fixed an error which came up, for example, with `\vspace` inside
10506 a caption. (Captions expect inlines.)
10507 + Improved table handling. We can now parse all of the tables emitted
10508 by pandoc in our tests. The only thing we don't get yet are
10509 alignments and column widths in more complex tables. See #2669.
10510 + Limited support for minipage.
10511 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
10512 + Handle BVerbatim from fancyvrb (#3203).
10513 + Handle hungarumlaut (#3201).
10514 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
10515 (#3184). This allows use of things like `\only<2,3>{my content}` in
10516 Markdown that is going to be converted to beamer.
10518 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
10519 overly long code will appear on every slide.
10521 * Org reader (Albert Krewinkel):
10523 + Respect column width settings (#3246). Table column properties can
10524 optionally specify a column's width with which it is displayed in
10525 the buffer. Some exporters, notably the ODT exporter in org-mode
10526 v9.0, use these values to calculate relative column widths. The org
10527 reader now implements the same behavior. Note that the org-mode
10528 LaTeX and HTML exporters in Emacs don't support this feature yet,
10529 which should be kept in mind by users who use the column
10530 widths parameters.
10531 + Allow HTML attribs on non-figure images (#3222). Images which are
10532 the only element in a paragraph can still be given HTML attributes,
10533 even if the image does not have a caption and is hence not a figure.
10534 The following will add set the `width` attribute of the image to
10535 `50%`:
10537 +ATTR\_HTML: :width 50%
10538 =======================
10540 \[\[file:image.jpg\]\]
10542 + Support `ATTR_HTML` for special blocks (#3182). Special
10543 blocks (i.e. blocks with unrecognized names) can be prefixed with an
10544 `ATTR_HTML` block attribute. The attributes defined in that
10545 meta-directive are added to the `Div` which is used to represent the
10546 special block.
10547 + Support the `todo` export option. The `todo` export option allows to
10548 toggle the inclusion of TODO keywords in the output. Setting this to
10549 `nil` causes TODO keywords to be dropped from headlines. The default
10550 is to include the keywords.
10551 + Add support for todo-markers. Headlines can have optional
10552 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
10553 or `#+TYP_TODO` meta directive. Multiple such directives can be
10554 given, each adding a new set of recognized todo-markers. If no
10555 custom todo-markers are defined, the default `TODO` and `DONE`
10556 markers are used. Todo-markers are conceptually separate from
10557 headline text and are hence excluded when autogenerating
10558 headline IDs. The markers are rendered as spans and labelled with
10559 two classes: One class is the markers name, the other signals the
10560 todo-state of the marker (either `todo` or `done`).
10562 * LaTeX writer:
10564 + Use `\autocites*` when "suppress-author" citation used.
10565 + Ensure that simple tables have simple cells (#2666). If cells
10566 contain more than a single Plain or Para, then we need to set
10567 nonzero widths and put contents into minipages.
10568 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
10570 * Markdown writer:
10572 + Fix calculation of column widths for aligned multiline tables
10573 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
10574 usage for tables when `--columns` is set in such a way that cells
10575 must be very tiny. Now cells are guaranteed to be big enough so that
10576 single words don't need to line break, even if this pushes the line
10577 length above the column width.
10578 + Use bracketed form for native spans when `bracketed_spans`
10579 enabled (#3229).
10580 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
10581 sublist got rendered with a blank line after, while a tight ordered
10582 sublist did not. Now we don't get the blank line in either case.
10583 + Fix escaping of spaces in super/subscript (#3225). Previously two
10584 backslashes were inserted, which gave a literal backslash.
10585 + Adjust widths in Markdown grid tables so that they match
10586 on round-trip.
10588 * Docx writer:
10590 + Give full detail when there are errors converting tex math.
10591 + Handle title text in images (Jesse Rosenthal). We already handled
10592 alt text. This just puts the image "title" into the docx
10593 "title" attr.
10594 + Fixed XML markup for empty cells (#3238). Previously the Compact
10595 style wasn't being applied properly to empty cells.
10597 * HTML writer:
10599 + Updated `renderHtml` import from blaze-html.
10601 * Text.Pandoc.Pretty:
10603 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
10604 caused spurious blank lines in grid tables when we had things like
10605 `blankline $$ blankline`.
10606 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
10607 + Added error message for illegal call to `block` (Björn Peemöller).
10609 * Text.Pandoc.Shared:
10611 + Put `warn` in MonadIO.
10612 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
10613 URL starts with `//` and there is no "base URL" (as there would be
10614 if a URL were used on the command line), then default to http:.
10616 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
10618 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
10619 fixes a crash with `pandoc --version` on unusual systems with no real
10620 user (e.g. SQL Server 2016).
10622 * Added weigh-pandoc for memory usage diagnostics (#3169).
10624 * Use correct mime types for woff and woff2 (#3228).
10626 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
10628 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
10629 1.18 section where it belongs.
10631 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
10632 Kolen Cheung).
10634 * Further revisions to manual for `--version` changes (#3244).
10638## pandoc 1.18 (2016-10-26)
10640 * Added `--list-input-formats`, `--list-output-formats`,
10641 `--list-extensions`, `--list-highlight-languages`, and
10642 `--list-highlight-styles` (#3173). Removed list of highlighting
10643 languages from `--version` output. Removed list of input and output
10644 formats from default `--help` output.
10646 * Added `--reference-location=block|section|document` option
10647 (Jesse Rosenthal). This determines whether Markdown link references
10648 and footnotes are placed at the end of the document, the end of the
10649 section, or the end of the top-level block.
10651 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
10652 This determines what a level-1 header corresponds to in LaTeX,
10653 ConTeXt, DocBook, and TEI output. The default is `section`.
10654 The `--chapters` option has been deprecated in favor of
10655 `--top-level-division=chapter`.
10657 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
10658 is now used in parsing RST and Markdown line blocks, DocBook
10659 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
10660 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
10661 are handled specially in the following output formats: AsciiDoc
10662 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
10663 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
10664 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
10665 other output formats, a paragraph with hard linebreaks is emitted.
10667 * Allow binary formats to be written to stdout (but not to tty) (#2677).
10668 Only works on posix, since we use the unix library to check whether
10669 output is to tty. On Windows, pandoc works as before and always requires
10670 an output file parameter for binary formats.
10672 * Changed JSON output format (Jesse Rosenthal). Previously we used
10673 generically generated JSON, but this was subject to change depending
10674 on the version of aeson pandoc was compiled with. To ensure stability,
10675 we switched to using manually written ToJSON and FromJSON
10676 instances, and encoding the API version. **Note:** pandoc filter
10677 libraries will need to be revised to handle the format change.
10678 Here is a summary of the essential changes:
10680 + The toplevel JSON format is now `{"pandoc-api-version" :
10681 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
10682 instead of `[{"unMeta": META}, [BLOCKS]]`.
10683 Decoding fails if the major and minor version numbers don't
10684 match.
10685 + Leaf nodes no longer have an empty array for their "c" value.
10686 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
10687 rather than `{"t":"Space","c":[]}` as before.
10689 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
10690 module to pandoc-types (Jesse Rosenthal). This makes it easier
10691 to use QuickCheck with pandoc types outside of pandoc itself.
10693 * Add `bracketed_spans` Markdown extension, enabled by default
10694 in pandoc `markdown`. This allows you to create a native span
10695 using this syntax: `[Here is my span]{#id .class key="val"}`.
10697 * Added `angle_brackets_escapable` Markdown extension (#2846).
10698 This is needed because github flavored Markdown has a slightly
10699 different set of escapable symbols than original Markdown;
10700 it includes angle brackets.
10702 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
10704 * Print highlighting-kate version in `--version`.
10706 * `Text.Pandoc.Options`:
10708 + `Extension` has new constructors `Ext_brackted_spans` and
10709 `Ext_angle_brackets_escapable` [API change].
10710 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
10711 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
10712 Rosenthal).
10714 * `--filter`: we now check `$DATADIR/filters` for filters before
10715 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
10716 Voß for the idea). Filters placed in this directory need not
10717 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
10718 or `.rb`, pandoc will run the right interpreter.
10720 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
10721 default (Kolen Cheung).
10723 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
10725 * Execute .js filters with node (Jakob Voß).
10727 * Textile reader:
10729 + Support `bc..` extended code blocks (#3037). Also, remove trailing
10730 newline in code blocks (consistently with Markdown reader).
10731 + Improve table parsing. We now handle cell and row attributes, mostly
10732 by skipping them. However, alignments are now handled properly.
10733 Since in pandoc alignment is per-column, not per-cell, we
10734 try to devine column alignments from cell alignments.
10735 Table captions are also now parsed, and textile indicators
10736 for thead and tfoot no longer cause parse failure. (However,
10737 a row designated as tfoot will just be a regular row in pandoc.)
10738 + Improve definition list parsing. We now allow multiple terms
10739 (which we concatenate with linebreaks). An exponential parsing
10740 bug (#3020) is also fixed.
10741 + Disallow empty URL in explicit link (#3036).
10743 * RST reader:
10745 + Use Div instead of BlockQuote for admonitions (#3031).
10746 The Div has class `admonition` and (if relevant) one of the
10747 following: `attention`, `caution`, `danger`, `error`, `hint`,
10748 `important`, `note`, `tip`, `warning`. **Note:** This will change
10749 the rendering of some RST documents! The word ("Warning", "Attention",
10750 etc.) is no longer added; that must be done with CSS or a filter.
10751 + A Div is now used for `sidebar` as well.
10752 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
10753 space before a footnote marker. We discard those spaces so that footnotes
10754 will be adjacent to the text that comes before it. This is in line with
10755 what rst2latex does.
10756 + Allow empty lines when parsing line blocks (Albert Krewinkel).
10758 * Markdown reader:
10760 + Allow empty lines when parsing line blocks (Albert Krewinkel).
10761 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
10763 * LaTeX reader:
10765 + More robust parsing of unknown environments (#3026).
10766 We no longer fail on things like `^` inside options for tikz.
10767 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
10768 Some custom environments give these a meaning, so we should try not to
10769 fall over when we encounter them.
10770 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
10772 * MediaWiki reader:
10774 + Fix for unquoted attribute values in mediawiki tables (#3053).
10775 Previously an unquoted attribute value in a table row
10776 could cause parsing problems.
10777 + Improved treatment of verbatim constructions (#3055).
10778 Previously these yielded strings of alternating Code and Space
10779 elements; we now incorporate the spaces into the Code. Emphasis
10780 etc. is still possible inside these.
10781 + Properly interpret XML tags in pre environments (#3042). They are meant
10782 to be interpreted as literal text.
10784 * EPUB reader: don't add root path to data: URIs (#3150).
10785 Thanks to @lep for the bug report and patch.
10787 * Org reader (Albert Krewinkel):
10789 + Preserve indentation of verse lines (#3064). Leading spaces in verse
10790 lines are converted to non-breaking spaces, so indentation is preserved.
10791 + Ensure image sources are proper links. Image sources as those in plain
10792 images, image links, or figures, must be proper URIs or relative file
10793 paths to be recognized as images. This restriction is now enforced
10794 for all image sources. This also fixes the reader's usage of uncleaned
10795 image sources, leading to `file:` prefixes not being deleted from
10796 figure images. Thanks to @bsag for noticing this bug.
10797 + Trim verse lines properly (Albert Krewinkel).
10798 + Extract meta parsing code to module. Parsing of meta-data is well
10799 separable from other block parsing tasks. Moving into new module to
10800 get small files and clearly arranged code.
10801 + Read markup only for special meta keys. Most meta-keys should be read
10802 as normal string values, only a few are interpreted as marked-up text.
10803 + Allow multiple, comma-separated authors. Multiple authors can be
10804 specified in the `#+AUTHOR` meta line if they are given as a
10805 comma-separated list.
10806 + Give precedence to later meta lines. The last meta-line of any given
10807 type is the significant line. Previously the value of the first line
10808 was kept, even if more lines of the same type were encountered.
10809 + Read LaTeX_header as header-includes. LaTeX-specific header commands
10810 can be defined in `#+LaTeX_header` lines. They are parsed as
10811 format-specific inlines to ensure that they will only show up in LaTeX
10812 output.
10813 + Set documentclass meta from LaTeX_class.
10814 + Set classoption meta from LaTeX_class_options.
10815 + Read HTML_head as header-includes. HTML-specific head content can be
10816 defined in `#+HTML_head` lines. They are parsed as format-specific
10817 inlines to ensure that they will only show up in HTML output.
10818 + Respect `author` export option. The `author` option controls whether
10819 the author should be included in the final markup. Setting
10820 `#+OPTIONS: author:nil` will drop the author from the final meta-data
10821 output.
10822 + Respect `email` export option. The `email` option controls whether the
10823 email meta-field should be included in the final markup. Setting
10824 `#+OPTIONS: email:nil` will drop the email field from the final
10825 meta-data output.
10826 + Respect `creator` export option. The `creator` option controls whether
10827 the creator meta-field should be included in the final markup. Setting
10828 `#+OPTIONS: creator:nil` will drop the creator field from the final
10829 meta-data output. Org-mode recognizes the special value `comment` for
10830 this field, causing the creator to be included in a comment. This is
10831 difficult to translate to Pandoc internals and is hence interpreted the
10832 same as other truish values (i.e. the meta field is kept if it's
10833 present).
10834 + Respect unnumbered header property (#3095). Sections the `unnumbered`
10835 property should, as the name implies, be excluded from the automatic
10836 numbering of section provided by some output formats. The Pandoc
10837 convention for this is to add an "unnumbered" class to the header. The
10838 reader treats properties as key-value pairs per default, so a special
10839 case is added to translate the above property to a class instead.
10840 + Allow figure with empty caption (Albert Krewinkel, #3161).
10841 A `#+CAPTION` attribute before an image is enough to turn an image into
10842 a figure. This wasn't the case because the `parseFromString` function,
10843 which processes the caption value, would fail on empty values. Adding
10844 a newline character to the caption value fixes this.
10846 * Docx reader:
10848 + Use XML convenience functions (Jesse Rosenthal).
10849 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
10850 the code a lot cleaner than the original XML.Light functions, but they
10851 had been used inconsistently. This puts them in wherever applicable.
10852 + Handle anchor spans with content in headers. Previously, we would only
10853 be able to figure out internal links to a header in a docx if the
10854 anchor span was empty. We change that to read the inlines out of the
10855 first anchor span in a header.
10856 + Let headers use existing id. Previously we always generated an id for
10857 headers (since they wouldn't bring one from Docx). Now we let it use an
10858 existing one if possible. This should allow us to recurs through anchor
10859 spans.
10860 + Use all anchor spans for header ids. Previously we only used the first
10861 anchor span to affect header ids. This allows us to use all the anchor
10862 spans in a header, whether they're nested or not (#3088).
10863 + Test for nested anchor spans in header. This ensures that anchor spans
10864 in header with content (or with other anchor spans inside) will resolve
10865 to links to a header id properly.
10867 * ODT reader (Hubert Plociniczak)
10869 + Include list's starting value. Previously the starting value of
10870 the lists' items has been hardcoded to 1. In reality ODT's list
10871 style definition can provide a new starting value in one of its
10872 attributes.
10873 + Infer caption from the text following the image.
10874 Frame can contain other frames with the text boxes.
10875 + Add `fig:` to title for Image with a caption (as expected
10876 by pandoc's writers).
10877 + Basic support for images in ODT documents.
10878 + Don't duplicate text for anchors (#3143). When creating an anchor
10879 element we were adding its representation as well as the original
10880 content, leading to text duplication.
10882 * DocBook writer:
10884 + Include an anchor element when a div or span has an id (#3102).
10885 Note that DocBook does not have a class attribute, but at least this
10886 provides an anchor for internal links.
10888 * LaTeX writer:
10890 + Don't use * for unnumbered paragraph, subparagraph. The starred
10891 variants don't exist. This helps with part of #3058...it gets rid of
10892 the spurious `*`s. But we still have numbers on the 4th and 5th level
10893 headers.
10894 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
10895 Otherwise they can cause unintended ligatures like `` ?` ``.
10896 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
10897 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
10898 This allows figure placement defaults to be changed by the user
10899 in the template.
10901 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
10902 TEI doesn't have `<book>` elements but only generic `<divN>` division
10903 elements. Checking the template for a trailing `</book>` is nonsensical.
10905 * MediaWiki writer: transform filename with underscores in images (#3052).
10906 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
10907 for internal links, but it also needs to happen for images.
10909 * ICML writer: replace partial function (!!) in table handling (#3175,
10910 Mauro Bieg).
10912 * Man writer: allow section numbers that are not a single digit (#3089).
10914 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
10915 (#3068). In AsciiDoc, you must use a special form of emphasis
10916 (double `__`) for intraword emphasis. Pandoc was previously using
10917 this more than necessary.
10919 * EPUB writer: use stringify instead of plain writer for metadata
10920 (#3066). This means that underscores won't be used for emphasis,
10921 or CAPS for bold. The metadata fields will just have unadorned
10922 text.
10924 * Docx Writer:
10926 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
10927 with a `custom-style` key in the attributes will apply the corresponding
10928 key to the contained blocks or inlines.
10929 + Add ReaderT env to the docx writer (Jesse Rosenthal).
10930 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
10931 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
10932 on the command line. For finer-grained control, you can set
10933 the `dir` attribute in Div or Span elements.
10935 * Org writer (Albert Krewinkel):
10937 + Remove blank line after figure caption. Org-mode only treats an image
10938 as a figure if it is directly preceded by a caption.
10939 + Ensure blank line after figure. An Org-mode figure should be surrounded
10940 by blank lines. The figure would be recognized regardless, but images
10941 in the following line would unintentionally be treated as figures as
10942 well.
10943 + Ensure link targets are paths or URLs. Org-mode treats links as
10944 document internal searches unless the link target looks like a URL or
10945 file path, either relative or absolute. This change ensures that this
10946 is always the case.
10947 + Translate language identifiers. Pandoc and Org-mode use different
10948 programming language identifiers. An additional translation between
10949 those identifiers is added to avoid unexpected behavior. This fixes a
10950 problem where language specific source code would sometimes be output
10951 as example code.
10952 + Drop space before footnote markers (Albert Krewinkel, #3162).
10953 The writer no longer adds an extra space before footnote markers.
10955 * Markdown writer:
10957 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
10958 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
10959 is disabled.
10960 + Check for the `raw_html` extension before emitting a raw HTML block.
10961 + Abstract out note/ref function (Jesse Rosenthal).
10962 + Add ReaderT monad for environment variables (Jesse Rosenthal).
10964 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
10965 subtitle, author, date (#3119). Note that, as a result of this change,
10966 authors may need to update CSS.
10968 * revealjs template: Added `notes-server` option
10969 (jgm/pandoc-templates#212, Yoan Blanc).
10971 * Beamer template:
10973 + Restore whitespace between paragraphs. This was
10974 a regression in the last release (jgm/pandoc-templates#207).
10975 + Added `themeoptions` variable (Carsten Gips).
10976 + Added `beamerarticle` variable. This causes the `beamerarticle`
10977 package to be loaded in beamer, to produce an article from beamer
10978 slides. (Carsten Gips)
10979 + Added support for `fontfamilies` structured variable
10980 (Artem Klevtsov).
10981 + Added hypersetup options (Jake Zimmerman).
10983 * LaTeX template:
10985 + Added dummy definition for `\institute`.
10986 This isn't a standard command, and we want to avoid a crash when
10987 `institute` is used with the default template.
10988 + Define default figure placement (Václav Haisman), since pandoc
10989 no longer includes `[htbp]` for figures. Users with custom templates
10990 will want to add this. See #3103.
10991 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
10992 Václav Haisman).
10994 * Moved template compiling/rendering code to a separate library.
10995 `doctemplates`. This allows the pandoc templating system to be
10996 used independently.
10998 * Text.Pandoc.Error: Fix out of index error in `handleError`
10999 (Matthew Pickering). The fix is to not try to show the exact line when
11000 it would cause an out-of-bounds error as a result of included files.
11002 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
11004 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
11005 addresses. Technically `**@user` is a valid email address, but if we
11006 allow things like this, we get bad results in markdown flavors
11007 that autolink raw email addresses (see #2940). So we exclude a few
11008 valid email addresses in order to avoid these more common bad cases.
11010 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
11011 emit the alt text, emphasized. This accords with what the ODT writer
11012 currently does. The user will still get a warning about a nonexistent
11013 image.
11015 * Fix example in API documentation (#3176, Thomas Weißschuh).
11017 * Tell where to get tarball in INSTALL (#3062).
11019 * Rename README to MANUAL.txt and add GitHub-friendly README.md
11020 (Albert Krewinkel, Kolen Cheung).
11022 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
11024 * MANUAL.txt:
11026 + Put note on structured vars in separate paragraph (#2148, Albert
11027 Krewinkel). Make it clearer that structured author variables require a
11028 custom template
11029 + Note that `--katex` works best with `html5` (#3077).
11030 + Fix the LaTeX and EPUB links in manual (Morton Fox).
11031 + Document `biblio-title` variable.
11033 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
11035 * Update KaTeX to v0.6.0 (Kolen Cheung).
11037 * Allow latest dependencies.
11039 * Use texmath 0.8.6.6 (#3040).
11041 * Allow http-client 0.4.30, which is the version in stackage lts.
11042 Previously we required 0.5.
11043 Remove CPP conditionals for earlier versions.
11045 * Remove support for GHC < 7.8 (Jesse Rosenthal).
11047 + Remove Compat.Monoid.
11048 + Remove an inline monad compatibility macro.
11049 + Remove Text.Pandoc.Compat.Except.
11050 + Remove directory compat.
11051 + Change constraint on mtl.
11052 + Remove unnecessary CPP condition in UTF8.
11053 + Bump base lower bound to 4.7.
11054 + Remove 7.6 build from .travis.yaml.
11055 + Bump supported ghc version in CONTRIBUTING.md.
11056 + Add note about GHC version support to INSTALL.
11057 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
11058 + Remove TagSoup compat.
11059 + Add EOL note to time compat module. Because time 1.4 is a boot library
11060 for GHC 7.8, we will support the compatibility module as long as we
11061 support 7.8. But we should be clear about when we will no longer need
11062 it.
11063 + Remove blaze-html CPP conditional.
11064 + Remove unnecessary CPP in custom Prelude.
11066## pandoc 1.17.2 (2016-07-17)
11068 * Added Zim Wiki writer, template and tests. `zimwiki` is now
11069 a valid output format. (Alex Ivkin)
11071 * Changed email-obfuscation default to no obfuscation (#2988).
11072 + `writerEmailObfuscation` in `defaultWriterOptions` is now
11073 `NoObfuscation`.
11074 + the default for the command-line `--email-obfuscation` option is
11075 now `none`.
11077 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
11079 * Org writer:
11081 + Support arbitrary raw inlines (Albert Krewinkel).
11082 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
11083 parlance) to be included as `@@format:raw foreign format text@@`.
11084 + Improve Div handling (Albert Krewinkel). Div blocks handling is
11085 changed to make the output look more like idiomatic org mode:
11086 - Div-wrapped content is output as-is if the div's attribute is the
11087 null attribute.
11088 - Div containers with an id but neither classes nor key-value pairs
11089 are unwrapped and the id is added as an anchor.
11090 - Divs with classes associated with greater block elements are
11091 wrapped in a `#+BEGIN`...`#+END` block.
11092 - The old behavior for Divs with more complex attributes is kept.
11094 * HTML writer: Better support for raw LaTeX environments (#2758).
11095 Previously we just passed all raw TeX through when MathJax
11096 was used for HTML math. This passed through too much.
11097 With this patch, only raw LaTeX environments that MathJax
11098 can handle get passed through.
11099 This patch also causes raw LaTeX environments to be treated
11100 as math, when possible, with MathML and WebTeX output.
11102 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
11103 (#2993). Markdown line breaks involve a newline, and simple and pipe
11104 tables can't contain one.
11106 * Make --webtex work with the Markdown writer (#1177).
11107 This is a convenient option for people using
11108 websites whose Markdown flavors don't provide for math.
11110 * Docx writer:
11112 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
11113 We treat display math like block quotes, and apply FirstParagraph style
11114 to paragraphs that follow them. These can be styled as the user
11115 wishes. (But, when the user is using indentation, this allows for
11116 paragraphs to continue after display math without indentation.)
11117 + Use actual creation time as doc prop (Jesse Rosenthal).
11118 Previously, we had used the user-supplied date, if available, for Word's
11119 document creation metadata. This could lead to weird results, as in
11120 cases where the user post-dates a document (so the modification might be
11121 prior to the creation). Here we use the actual computer time to set the
11122 document creation.
11124 * LaTeX writer:
11126 + Don't URI-escape image source (#2825). Usually this is a local file,
11127 and replacing spaces with `%20` ruins things.
11128 + Allow 'standout' as a beamer frame option (#3007).
11129 `## Slide title {.standout}`.
11131 * RST reader: Fixed links with no explicit link text. The link
11132 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
11133 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
11134 Closes Debian #828167 -- reported by Christian Heller.
11136 * Textile reader:
11138 + Fixed attributes (#2984). Attributes can't be followed by
11139 a space. So, `_(class)emph_` but `_(noclass) emph_`.
11140 + Fixed exponential parsing bug (#3020).
11141 + Fix overly aggressive interpretation as images (#2998).
11142 Spaces are not allowed in the image URL in textile.
11144 * LaTeX reader:
11146 + Fix `\cite` so it is a NormalCitation not AuthorInText.
11147 + Strip off double quotes around image source if present (#2825).
11148 Avoids interpreting these as part of the literal filename.
11150 * Org reader:
11152 + Add semicolon to list of special chars (Albert Krewinkel)
11153 Semicolons are used as special characters in citations syntax. This
11154 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
11155 suffix]`. Previously, parsing would have failed unless there was a space
11156 or other special character as the last <prefix> character.
11157 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
11158 A specification for an official Org-mode citation syntax was drafted by
11159 Richard Lawrence and enhanced with the help of others on the orgmode
11160 mailing list. Basic support for this citation style is added to the
11161 reader.
11162 + Support arbitrary raw inlines (Albert Krewinkel).
11163 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
11164 parlance) to be included as `@@format:raw foreign format text@@`.
11165 + Remove partial functions (Albert Krewinkel, #2991).
11166 Partial functions like `head` lead to avoidable errors and should be
11167 avoided. They are replaced with total functions.
11168 + Support figure labels (Albert Krewinkel, #2496, #2999).
11169 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
11170 respective image. This allows e.g. the LaTeX to add proper `\label`
11171 markup.
11172 + Improve tag and properties type safety (Albert Krewinkel).
11173 Specific newtype definitions are used to replace stringly typing of tags
11174 and properties. Type safety is increased while readability is improved.
11175 + Parse as headlines, convert to blocks (Albert Krewinkel).
11176 Emacs org-mode is based on outline-mode, which treats documents as trees
11177 with headlines are nodes. The reader is refactored to parse into a
11178 similar tree structure. This simplifies transformations acting on
11179 document (sub-)trees.
11180 * Refactor comment tree handling (Albert Krewinkel).
11181 Comment trees were handled after parsing, as pattern matching on lists
11182 is easier than matching on sequences. The new method of reading
11183 documents as trees allows for more elegant subtree removal.
11184 * Support archived trees export options (Albert Krewinkel).
11185 Handling of archived trees can be modified using the `arch` option.
11186 Archived trees are either dropped, exported completely, or collapsed to
11187 include just the header when the `arch` option is nil, non-nil, or
11188 `headline`, respectively.
11189 * Put export setting parser into module (Albert Krewinkel).
11190 Export option parsing is distinct enough from general block parsing to
11191 justify putting it into a separate module.
11192 * Support headline levels export setting (Albert Krewinkel).
11193 The depths of headlines can be modified using the `H` option. Deeper
11194 headlines will be converted to lists.
11195 * Replace ugly code with view pattern (Albert Krewinkel).
11196 Some less-than-smart code required a pragma switching of overlapping
11197 pattern warnings in order to compile seamlessly. Using view patterns
11198 makes the code easier to read and also doesn't require overlapping
11199 pattern checks to be disabled.
11200 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
11201 Org rules for allowed characters before or after markup chars were not
11202 checked for verbatim text. This resultet in wrong parsing outcomes of
11203 if the verbatim text contained e.g. space enclosed markup characters as
11204 part of the text (`=is_substr = True=`). Forcing the parser to update
11205 the positions of allowed/forbidden markup border characters fixes this.
11207 * LaTeX template: fix for obscure hyperref/xelatex issue.
11208 Here's a minimal case:
11210 \documentclass[]{article}
11211 \usepackage{hyperref}
11212 \begin{document}
11213 \section{\%á}
11214 \end{document}
11216 Without this change, this fails on the second invocation of xelatex.
11217 This affects inputs this like `# %á` with pdf output via xelatex.
11219 * trypandoc: call results 'html' instead of 'result'.
11220 This is for better compatibility with babelmark2.
11222 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
11223 MultiMarkdown was only mentioned as a supported Markdown dialect but not
11224 as a possible input or output format. A brief mention is added
11225 everywhere the other supported markdown dialects are mentioned.
11227 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
11228 Raw HTML is kept when the output format is Emacs Org mode.
11230 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
11232 * Text.Pandoc.Shared:
11234 + Introduce blocksToInlines function (Jesse Rosenthal).
11235 This is a lossy function for converting `[Block] -> [Inline]`. Its main
11236 use, at the moment, is for docx comments, which can contain arbitrary
11237 blocks (except for footnotes), but which will be converted to spans.
11238 This is, at the moment, pretty useless for everything but the basic
11239 `Para` and `Plain` comments. It can be improved, but the docx reader
11240 should probably emit a warning if the comment contains more than this.
11241 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
11242 + Add further formats for `normalizeDate` (Jesse Rosenthal).
11243 We want to avoid illegal dates -- in particular years with greater than
11244 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
11245 `%Y%m`, and finally `%Y`.
11246 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
11247 We only allow years between 1601 and 9999, inclusive. The ISO 8601
11248 actually says that years are supposed to start with 1583, but MS Word
11249 only allows 1601-9999. This should stop corrupted word files if the date
11250 is out of that range, or is parsed incorrectly.
11251 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
11252 Previously we parsed a list of dates, took the first one, and then
11253 tested its year range. That meant that if the first one failed, we
11254 returned nothing, regardless of what the others did. Now we test for
11255 sanity before running `msum` over the list of Maybe values. Anything
11256 failing the test will be Nothing, so will not be a candidate.
11258 * Docx reader:
11260 + Add simple comment functionality. (Jesse Rosenthal).
11261 This adds simple track-changes comment parsing to the docx reader. It is
11262 turned on with `--track-changes=all`. All comments are converted to
11263 inlines, which can list some information. In the future a warning will be
11264 added for comments with formatting that seems like it will be excessively
11265 denatured. Note that comments can extend across blocks. For that reason
11266 there are two spans: `comment-start` and `comment-end`. `comment-start`
11267 will contain the comment. `comment-end` will always be empty. The two
11268 will be associated by a numeric id.
11269 + Enable warnings in top-level reader (Jesse Rosenthal).
11270 Previously we had only allowed for warnings in the parser. Now we allow
11271 for them in the `Docx.hs` as well. The warnings are simply concatenated.
11272 + Add warning for advanced comment formatting. (Jesse Rosenthal).
11273 We can't guarantee we'll convert every comment correctly, though we'll
11274 do the best we can. This warns if the comment includes something other
11275 than Para or Plain.
11276 + Add tests for warnings. (Jesse Rosenthal).
11277 + Add tests for comments (Jesse Rosenthal).
11278 We test for comments, using all track-changes options. Note that we
11279 should only output comments if `--track-changes=all`. We also test for
11280 emitting warnings if there is complicated formatting.
11282 * README: update to include track-changes comments. (Jesse Rosenthal)
11284 * Improved Windows installer - don't ignore properties set on command-line.
11285 See #2708. Needs testing to see if this resolves the issue.
11286 Thanks to @nkalvi.
11288 * Process markdown extensions on command line in L->R order (#2995).
11289 Previously they were processed, very unintuitively, in R->L
11290 order, so that `markdown-tex_math_dollars+tex_math_dollars`
11291 had `tex_math_dollars` disabled.
11293 * Added `secnumdepth` variable to LaTeX template (#2920).
11295 * Include table of contents in README.html in Windows package.
11297 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
11298 In Writers.Shared, we strip leading and trailing spaces for display
11299 math. Since SoftBreak's are treated as spaces, we should strip those
11300 too.
11302 * beamer, latex templates: pass biblatexoptions directly in package load.
11303 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
11305 * CPP workaround for deprecation of `parseUrl` in http-client.
11307 * Removed some redundant class constraints.
11309 * make_oxs_package.sh - use OSX env variable.
11311 * Added `winpkg` target to Makefile. This downloads the windows package
11312 from appveyor and signs it using the key.
11314 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
11315 Raw TeX is kept verbatim when the output format is Emacs Org mode.
11317 * Support math with haddock-library >= 1.4.
11319 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
11320 wouldn't accept the package.
11322 * Update library dependency versions.
11324## pandoc 1.17.1 (2016-06-04)
11326 * New output format: `docbook5` (Ivo Clarysse).
11328 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
11329 (API change).
11331 * Org writer:
11333 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
11334 This allows header attributes to be added to org documents in the form
11335 of `:PROPERTIES:` drawers. All available attributes are stored as
11336 key/value pairs. This reflects the way the org reader handles
11337 `:PROPERTIES:` blocks.
11338 + Add drawer capability (Carlos Sosa). For the implementation of the
11339 Drawer element in the Org Writer, we make use of a generic Block
11340 container with attributes. The presence of a `drawer` class defines
11341 that the `Div` constructor is a drawer. The first class defines the
11342 drawer name to use. The key-value list in the attributes defines
11343 the keys to add inside the Drawer. Lastly, the list of Block elements
11344 contains miscellaneous blocks elements to add inside of the Drawer.
11345 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
11346 reserved for internal use by Org-mode and should not be used.
11347 The `CUSTOM_ID` property is to be used instead, it is converted to the
11348 `ID` property for certain export format.
11350 * LaTeX writer:
11352 + Ignore `--incremental` unless output format is beamer (#2843).
11353 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
11354 Allow for optional argument in square brackets.
11355 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
11356 This allows one to access the hyphenation patterns in CTAN's
11357 hyph-utf8.
11358 + Add missing languages from hyph-utf8 (Andrew Dunning).
11359 + Improve use of `\strut` with `\minipage` inside tables
11360 (Jose Luis Duran). This improves spacing in multiline
11361 tables.
11362 + Use `{}` around options containing special chars (#2892).
11363 + Avoid lazy `foldl`.
11364 + Don't escape underscore in labels (#2921). Previously they were
11365 escaped as `ux5f`.
11366 + brazilian -> brazil for polyglossia (#2953).
11368 * HTML writer: Ensure mathjax link is added when math appears in footnote
11369 (#2881). Previously if a document only had math in a footnote, the
11370 MathJax link would not be added.
11372 * EPUB writer: set `navpage` variable on nav page.
11373 This allows templates to treat it differently.
11375 * DocBook writer:
11377 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
11378 + Properly handle `ulink`/`link` (Ivo Clarysse).
11380 * EPUB reader:
11382 + Unescape URIs in spine (#2924).
11383 + EPUB reader: normalise link id (Mauro Bieg).
11385 * Docx Reader:
11387 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
11388 `moveTo` and `moveFrom` are track-changes tags that are used when a
11389 block of text is moved in the document. We now recognize these tags and
11390 treat them the same as `insert` and `delete`, respectively. So,
11391 `--track-changes=accept` will show the moved version, while
11392 `--track-changes=reject` will show the original version.
11393 + Tests for track-changes moving (Jesse Rosenthal).
11395 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
11396 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
11397 would error out if zip-archive failed. We change the archive extraction
11398 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
11400 * Markdown, HTML readers: be more forgiving about unescaped `&` in
11401 HTML (#2410). We are now more forgiving about parsing invalid HTML with
11402 unescaped `&` as raw HTML. (Previously any unescaped `&`
11403 would cause pandoc not to recognize the string as raw HTML.)
11405 * Markdown reader:
11407 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
11408 + Added `-s` to markdown-reader-more test.
11410 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
11411 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
11413 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
11414 (roblabla).
11416 * RST reader: Support `:class:` option for code block in RST reader
11417 (Sidharth Kapur).
11419 * Org reader (all Albert Krewinkel, except where noted otherwise):
11421 + Stop padding short table rows.
11422 Emacs Org-mode doesn't add any padding to table rows. The first
11423 row (header or first body row) is used to determine the column count,
11424 no other magic is performed.
11425 + Refactor rows-to-table conversion. This refactors
11426 the codes conversing a list table lines to an org table ADT.
11427 The old code was simplified and is now slightly less ugly.
11428 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
11429 This fixes Org mode parsing of some corner cases regarding empty cells
11430 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
11431 two empty cells, but would be parsed as a single cell containing a pipe
11432 character. Empty rows where parsed as alignment rows and dropped from
11433 the output.
11434 + Fix spacing after LaTeX-style symbols.
11435 The org-reader was dropping space after unescaped LaTeX-style symbol
11436 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
11437 instead. This seems to be because the LaTeX-reader treats the
11438 command-terminating space as part of the command. Dropping the trailing
11439 space from the symbol-command fixes this issue.
11440 + Print empty table rows. Empty table rows should not
11441 be dropped from the output, so row-height is always set to be at least 1.
11442 + Move parser state into separate module.
11443 The org reader code has become large and confusing. Extracting smaller
11444 parts into submodules should help to clean things up.
11445 + Add support for sub/superscript export options.
11446 Org-mode allows to specify export settings via `#+OPTIONS` lines.
11447 Disabling simple sub- and superscripts is one of these export options,
11448 this options is now supported.
11449 + Support special strings export option Parsing of special strings
11450 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
11451 option.
11452 + Support emphasized text export option. Parsing of emphasized text can
11453 be toggled using the `*` option. This influences parsing of text marked
11454 as emphasized, strong, strikeout, and underline. Parsing of inline math,
11455 code, and verbatim text is not affected by this option.
11456 + Support smart quotes export option. Reading of smart quotes can be
11457 toggled using the `'` option.
11458 + Parse but ignore export options. All known export options are parsed
11459 but ignored.
11460 + Refactor block attribute handling. A parser state attribute was used
11461 to keep track of block attributes defined in meta-lines. Global state
11462 is undesirable, so block attributes are no longer saved as part of the
11463 parser state. Old functions and the respective part of the parser state
11464 are removed.
11465 + Use custom `anyLine`. Additional state changes need to be made after
11466 a newline is parsed, otherwise markup may not be recognized correctly.
11467 This fixes a bug where markup after certain block-types would not be
11468 recognized.
11469 + Add support for `ATTR_HTML` attributes (#1906).
11470 Arbitrary key-value pairs can be added to some block types using a
11471 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
11472 when exporting to HTML, but since we cannot make this distinction here,
11473 the attributes are always added. The functionality is now supported
11474 for figures.
11475 + Add `:PROPERTIES:` drawer support (#1877).
11476 Headers can have optional `:PROPERTIES:` drawers associated with them.
11477 These drawers contain key/value pairs like the header's `id`. The
11478 reader adds all listed pairs to the header's attributes; `id` and
11479 `class` attributes are handled specially to match the way `Attr` are
11480 defined. This also changes behavior of how drawers of unknown type
11481 are handled. Instead of including all unknown drawers, those are not
11482 read/exported, thereby matching current Emacs behavior.
11483 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
11484 + Respect drawer export setting. The `d` export option can be used
11485 to control which drawers are exported and which are discarded.
11486 Basic support for this option is added here.
11487 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
11488 Also fix up tab handling for leading whitespace in code blocks.
11489 + Support new syntax for export blocks. Org-mode version 9
11490 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
11491 where `<FORMAT>` is the format of the block's content, the new
11492 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
11493 supported.
11494 + Refactor `BEGIN...END` block parsing.
11495 + Fix handling of whitespace in blocks, allowing content to be indented
11496 less then the block header.
11497 + Support org-ref style citations. The *org-ref* package is an
11498 org-mode extension commonly used to manage citations in org
11499 documents. Basic support for the `cite:citeKey` and
11500 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
11501 + Split code into separate modules, making for cleaner code and
11502 better decoupling.
11504 * Added `docbook5` template.
11506 * `--mathjax` improvements:
11508 + Use new CommonHTML output for MathJax (updated default MathJax URL,
11509 #2858).
11510 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
11511 This is designed for cases where the input is always TeX and maximal
11512 conformity with TeX is desired. It seems to be smaller and load faster
11513 than what we used before. See #2858.
11514 + Load the full MathJax config to maximize loading speed (KolenCheung).
11516 * Bumped upper version bounds to allow use of latest packages
11517 and compilation with ghc 8.
11519 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
11520 #2310, #2310, #2824). This fixes behavior of roots, e.g.
11521 `\sqrt[3]{x}`, and issues with sub/superscript positioning
11522 and matrix column alignment in docx.
11524 * README:
11526 + Clarified documentation of `implicit_header_references` (#2904).
11527 + Improved documentation of `--columns` option.
11529 * Added appveyor setup, with artefacts (Jan Schulz).
11531 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
11533 * LaTeX template: support for custom font families (vladipus).
11534 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
11535 can find some other usages. Example usage in YAML metadata:
11537 fontfamilies:
11538 - name: \cyrillicfont
11539 font: Liberation Serif
11540 - name: \cyrillicfonttt
11541 options: Scale=MatchLowercase
11542 font: Liberation
11544 * Create unsigned msi as build artifact in appveyor build.
11546 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
11550## pandoc 1.17.0.3 (2016-03-24)
11552 * LaTeX writer: Fixed position of label in figures (#2813).
11553 Previously the label wasn't in the right place, and `\ref`
11554 wouldn't work properly.
11555 * Added .tei test files to pandoc.cabal so they'll be included
11556 in tarball (#2811).
11557 * Updated copyright dates.
11559## pandoc 1.17.0.2 (2016-03-23)
11561 * Fixed serious regression in `htmlInBalanced`, which caused
11562 newlines to be omitted in some raw HTML blocks in Markdown
11563 (#2804).
11565## pandoc 1.17.0.1 (2016-03-21)
11567 * File scope is no longer used when there are no input files (i.e.,
11568 when input comes from stdin). Previously file scope was triggered
11569 when the `json` reader was specified and input came from `stdin`,
11570 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
11571 thanks to Fedor Sheremetyev for calling the bug to our attention.)
11572 * Improved documentation of templates (#2797).
11574## pandoc 1.17 (2016-03-20)
11576 * Added `--file-scope` option (Jesse Rosenthal).
11577 By default pandoc operates on multiple files by first concatenating
11578 them (around extra line breaks) and then processing the joined file. So
11579 it only parses a multi-file document at the document scope. This has the
11580 benefit that footnotes and links can be in different files, but for
11581 some purposes it is useful to parse the individual files first
11582 and then combine their outputs (e.g. when the files use footnotes
11583 or links with the same labels). The `--file-scope` option causes
11584 pandoc to parse the files first, and then combine the parsed output,
11585 instead of combining before parsing. `--file-scope` is selected
11586 automatically for binary input files (which cannot be concatenated)
11587 and for pandoc json.
11589 * Add TEI Writer (Chris Forster) and `tei` output format.
11591 * Added a general `ByteStringReader` with warnings, used by the docx
11592 reader (API change, Jesse Rosenthal).
11594 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
11596 * Changed type of `Shared.uniqueIdent` argument from
11597 `[String]` to `Set String`. This avoids performance problems in documents
11598 with many identically named headers (API change, #2671).
11600 * Removed `tex_math_single_backslash` from `markdown_github` options
11601 (#2707).
11603 * Make language extensions as well as full language names
11604 trigger syntax highlighting. For example, `py` will now work as
11605 well as `python` (jgm/highlighting-kate#83).
11607 * Added `institute` variable to latex, beamer templates (Fraser
11608 Tweedale, Josef Svenningsson).
11610 * Docx reader (Jesse Rosenthal):
11612 + Handle alternate content. Some word functions (especially graphics)
11613 give various choices for content so there can be backwards compatibility.
11614 + Don't turn numbered headers into lists.
11615 + Docx Reader: Add state to the parser, for warnings
11616 + Update feature checklist in source code.
11617 + Get rid of `Modifiable` typeclass.
11618 + Add tests for adjacent hyperlinks.
11619 + Add a "Link" modifier to `Reducible`. We want to make sure that
11620 links have their spaces removed, and are appropriately smushed
11621 together (#2689).
11623 * HTML reader:
11625 + Fixed behavior of base tag (#2777).
11626 If the base path does not end with slash, the last component
11627 will be replaced. E.g. base = `http://example.com/foo`
11628 combines with `bar.html` to give `http://example.com/bar.html`.
11629 If the href begins with a slash, the whole path of the base
11630 is replaced. E.g. base = `http://example.com/foo/` combines
11631 with `/bar.html` to give `http://example.com/bar.html`.
11632 + Rewrote `htmlInBalanced`. This version avoids an exponential
11633 performance problem with `<script>` tags, and it should be faster
11634 in general (#2730).
11635 + Properly handle an empty cell in a simple table (#2718).
11636 + Handle multiple `<meta>` tags with same name. Put them in a list
11637 in the metadata so they are all preserved, rather than (as before)
11638 throwing out all but one..
11640 * Markdown reader:
11642 + Improved pipe table parsing (#2765).
11643 + Allow `+` separators in pipe table cells. We already allowed
11644 them in the header, but not in the body rows, for some reason.
11645 This gives compatibility with org-mode tables.
11646 + Don't cross line boundary parsing pipe table row.
11647 Previously an Emph element could be parsed across the newline
11648 at the end of the pipe table row.
11649 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
11650 performance (#2730).
11651 + Fixed bug with smart quotes around tex math.
11653 * LaTeX reader:
11655 + Handle interior `$` characters in math (#2743). For example,
11656 `$$\hbox{$i$}$$`.
11657 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
11658 This gives better results when people write e.g. `\TeX{}` in Markdown.
11659 + Properly handle LaTeX "math" environment as inline math (#2171).
11661 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
11662 Closes #2674.
11664 * Org reader (Albert Krewinkel):
11666 + Prefix even empty figure names with "fig:" (#2643). The
11667 convention used by pandoc for figures is to mark them by prefixing
11668 the name with `fig:`. The org reader failed to do this if a figure
11669 had no name.
11670 + Refactor link-target processing (#2684).
11672 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
11673 Thanks to @c-foster.
11675 * HTML writer: Don't include alignment attribute for default table columns.
11676 Previously these were given "left" alignment. Better to leave off
11677 alignment attributes altogether (#2694).
11679 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
11680 better compatibility with other Markdown flavors (Henrik Tramberend).
11682 * LaTeX writer:
11684 + Use image identifier to create a label and hypertarget for
11685 figures (Mauro Bieg).
11686 + Avoid double toprule in headerless table with caption (#2742).
11687 + Clean up options parser (Jesse Rosenthal).
11688 + Treat `memoir` template with `article` option as article, instead
11689 of treating all `memoir` templates as books.
11690 + Allow more flexible table alignment (Henrik Tramberend, #2665).
11691 New default is not to include `[c]` option (which is the default
11692 anyway if no positioning is specified). Now LaTeX emplates can
11693 control the overall table alignment in a document by setting the
11694 longtable length variables `LTleft` and `LTright`. For example,
11695 `\setlength\LTleft\parindent\setlength\LTright\fill`
11696 will create left-aligned tables that respect paragraph indentation.
11698 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
11700 * Org writer - pass through RawInline with format "org".
11702 * DokuWiki writer: use `$$` for display math.
11704 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
11706 * Make protocol-relative URIs work again (#2737).
11708 * make_osx_package.sh: Use env variable for developer id certs.
11710 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
11711 problems (#2734).
11713 * Allow `zip-archive` 0.3.
11715 * Allow `aeson` 0.11.
11717## pandoc 1.16.0.2 (2016-01-12)
11719 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
11721 * Fixed regression in latex smart quote parsing (#2645).
11722 In cases where a match was not found for a quote, everything
11723 from the open quote to the end of the paragraph was being dropped.
11725## pandoc 1.16.0.1 (2016-01-10)
11727 * Fixed regression with `--latex-engine` (#2618). In 1.16
11728 `--latex-engine` raises an error if a full path is given.
11730 * Org reader: Fix function dropping subtrees tagged `:noexport`
11731 (Albert Krewinkel, #2628):
11733 * Markdown reader: renormalize table column widths if they exceed 100%
11734 (#2626).
11736 * Textile reader: don't allow block HTML tags in inline contexts.
11737 The reader previously did allow this, following redcloth,
11738 which happily parses
11740 Html blocks can be <div>inlined</div> as well.
11744 <p>Html blocks can be <div>inlined</div> as well.</p>
11746 This is invalid HTML. The above sample now produces;
11748 <p>Html blocks can be</p>
11749 <div>
11750 <p>inlined</p>
11751 </div>
11752 <p>as well.</p>
11754 * Improved default template lookup for custom lua scripts (#2625).
11755 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
11756 pandoc would look for the template in
11757 `~/.pandoc/templates/default./path/to/lua/script.lua`.
11758 With this change it will look in the more reasonable
11759 `~/.pandoc/templates/default.script.lua`. This makes it possible to
11760 store default templates for custom writers.
11762 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
11763 (#2615).
11765 * LaTeX writer: restore old treatment of Span (#2624). A Span is
11766 now rendered with surrounding `{}`, as it was before 1.16.
11768 * Entity handling fixes: improved handling of entities like
11769 `&lang;` that require a trailing semicolon. Allow uppercase
11770 `x` in numerical hexadecimal character references, working
11771 around a tagsoup bug.
11773 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
11774 memory use on compile. With aeson 0.10 we were getting an out of
11775 memory error on a 2GB Ubuntu 64-bit VM.
11777 * Improved deb package creation script. Made `DPKGVER` work.
11778 Renamed `COMMIT` to `TREE`. You should now be able to do
11779 `TREE=1.16.0.1 DPKGVER=2 make deb`.
11782## pandoc 1.16 (2016-01-02)
11784 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
11786 + Added syntax for link and image attributes to pandoc's Markdown.
11787 + Updated readers and writers to use link and image attributes
11788 when appropriate.
11789 + Support image attributes in Docx, Textile, RST readers.
11791 * Renamed link attribute extensions. The old `link_attributes` is
11792 now `mmd_link_attributes`, and `link_attributes` now enables the
11793 new pandoc-style link and image attributes (API change).
11794 Note: this change could break some existing workflows.
11796 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
11797 Added threefold wrapping option.
11799 + Command line option: deprecated `--no-wrap`, added
11800 `--wrap=[auto|none|preserve]`
11801 + Added `WrapOption`, exported from `Text.Pandoc.Options`
11802 + Changed type of `writerWrapText` in `WriterOptions` from
11803 `Bool` to `WrapOption`.
11804 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
11805 + Supported `SoftBreak` in readers and writers.
11807 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
11808 change, Mauro Bieg).
11810 * Added `--dpi` command-line option (Mauro Bieg).
11812 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
11813 This change makes `--no-tex-ligatures` affect the LaTeX reader
11814 as well as the LaTeX and ConTeXt writers. If it is used,
11815 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
11816 literally, rather than parsing ligatures for quotation marks
11817 and dashes. And the LaTeX writer will print unicode quotation
11818 mark and dash characters literally, rather than converting
11819 them to the standard ASCII ligatures. Note that `--smart` has
11820 no effect on the LaTeX reader. `--smart` is still the default
11821 for all input formats when LaTeX or ConTeXt is the output format,
11822 *unless* `--no-tex-ligatures` is used.
11824 Some examples to illustrate the logic:
11826 ```
11827 % echo "'hi'" | pandoc -t latex
11828 `hi'
11829 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
11830 'hi'
11831 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
11832 ‘hi’
11833 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
11834 <p>'hi'</p>
11835 % echo "'hi'" | pandoc -f latex
11836 <p>’hi’</p>
11837 ```
11839 * Removed deprecated options `--offline` and `--html5`.
11841 * Fixed language code for Czech (`cs` not `cz`) (#2597).
11843 * Implemented `east_asian_line_breaks` extension (#2586).
11844 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
11845 to `Extension` (API change). This extension is like
11846 `ignore_line_breaks`, but smarter -- it only ignores line breaks
11847 between two East Asian wide characters. This makes it better suited
11848 for writing with a mix of East Asian and non-East Asian scripts.
11850 * Added support for PDF creation via `wkhtmltopdf`.
11851 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
11852 if you have math.) Margins can be set using the variables
11853 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
11854 Other styling can be done through CSS.
11856 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
11857 We were capturing final colons as in `[@foo: bar]`; the citation id
11858 was being parsed as `@foo:`.
11860 * ICML writer:
11862 + Fixed image syntax for local files (#2589).
11863 + Changed type of `writeICML` (Mauro Bieg).
11864 API change: It is now `WriterOptions -> Pandoc -> IO String`.
11865 Also handle new image attributes.
11866 + Intersperse line breaks instead of appending them to
11867 every `ParagraphStyleRange` (Mauro Bieg, #2501).
11868 + Add `Cite` style to citations (Mauro Bieg).
11869 + Added figure handling (#2590, Mauro Bieg).
11870 + Better handling of math. Instead of just printing the raw tex,
11871 we now try to fake it with unicode characters.
11873 * HTML writer: Include `example` class for example lists (#2524).
11875 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
11877 + Support for percentage widths/heights
11878 + Use `Attr` instead of title to get dimensions from ODT walker
11879 to `writeOpenDocument`.
11881 * AsciiDoc writer:
11883 + Support anchors in spans and divs with id elements
11884 (jgm/pandoc-citeproc#143).
11885 + Fixed code blocks (#1861).
11887 * Haddock writer: omit formatting inside links, which isn't supported
11888 by Haddock (#2515).
11890 * MediaWiki writer: Fixed spacing issues in table cells.
11892 + Start cell on new line unless it's a single Para or Plain
11893 (#2606).
11894 + For single Para or Plain, insert a space after the `|` to
11895 avoid problems when the text begins with a character like
11896 `-` (#2604).
11898 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
11900 * LaTeX writer:
11902 + Add support for GAP highlighting using listings (Raniere Silva).
11903 + Consider `header-includes` content as well as templates
11904 when determining whether to use csquotes (Andreas Lööw).
11905 + Create defaults for geometry using `margin-left` etc.
11906 If `geometry` has no value, but `margin-left`, `margin-right`,
11907 `margin-top`, and/or `-margin-bottom` are given, a default value
11908 for `geometry` is created from these. Note that these variables
11909 already affect PDF production via HTML5 with `wkhtmltopdf`.
11911 * ConTeXt writer: set default layout based on `margin-left`, etc.
11912 This sets up `\setuplayout` based on the variables `margin-left`,
11913 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
11914 is given.
11916 * Docx writer: better handling of PDF images. Previously we tried
11917 to get the image size from the image even if an explicit size was
11918 specified. Since we still can't get image size for PDFs, this made
11919 it impossible to use PDF images in docx. Now we don't try to get
11920 the image size when a size is already explicitly specified.
11922 * Markdown writer: use raw HTML for link/image attributes when
11923 the `link_attributes` extension is unset and `raw_html` is set (#2554).
11925 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
11927 * LaTeX reader:
11929 + Improved smart quote parsing (#2555). This fixes redering of
11930 unmatched quotes.
11931 + Use curly quotes for unmatched ` (#2555).
11932 + Allow blank space between braced arguments of commands (#2592).
11934 * Markdown reader:
11936 + Improved pipe table relative widths. Previously pipe table
11937 columns got relative widths (based on the header underscore lines)
11938 when the source of one of the rows was greater in width than the
11939 column width. This gave bad results in some cases where much of
11940 the width of the row was due to nonprinting material (e.g. link
11941 URLs). Now pandoc only looks at printable width (the width of a
11942 plain string version of the source), which should give better results.
11943 Thanks to John Muccigrosso for bringing up the issue.
11944 + Fixed parsing bug with macros. Previously macro definitions in
11945 indented code blocks were being parsed as macro definitions, not code.
11947 * Textile reader: skip over attribute in image source (#2515).
11948 We don't have a place yet for styles or sizes on images, but
11949 we can skip the attributes rather than incorrectly taking them
11950 to be part of the filename.
11952 * Docx reader: Handle dummy list items (Jesse Rosenthal).
11953 These come up when people create a list item and then delete the
11954 bullet. It doesn't refer to any real list item, and we used to ignore
11955 it.
11957 * CommonMark reader/writer rewritten to use latest `cmark`.
11959 * Fixed Emoji character definitions (#2523). There were many bugs in the
11960 definitions.
11962 * `Text.Pandoc.CSS`:
11964 + Added `pickStylesToKVs` function to extract multiple properties at
11965 once (API change, Mauro Bieg).
11966 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
11968 * `trypandoc`: sort drop-down lists.
11970 * Beamer template:
11972 + Made `\euro` conditional on presence of character.
11973 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
11974 + Moved `header-includes` before setting of title (Thomas Hodgson),
11975 to match the LaTeX template (jgm/pandoc-templates#168).
11976 + Added `section-titles` variable (defaults to true)
11977 to enable/suppress section title pages in beamer
11978 slide shows (Thomas Hodgson).
11979 + Moved beamer themes after fonts, so that themes can
11980 change fonts. (Previously the fonts set were being
11981 clobbered by lmodern.sty.) (Thomas Hodgson).
11983 * Beamer/LaTeX template changes (Thomas Hodgson):
11984 + Added `thanks` variable
11985 + Use `parskip.sty` when `indent` isn't set (fall back to using
11986 `setlength` as before if `parskip.sty` isn't available).
11987 + Use `biblio-style` with biblatex.
11988 + Added `biblatexoptions` variable.
11990 * LaTeX template changes:
11992 + Added `paper` after `$papersize$` variable in latex template.
11993 Thus you can say `papersize: a4` and the latex will contain
11994 `a4paper`. This change may break some existing workflows; if
11995 you currently specify `a4paper`, you'll get `a4paperpaper` which
11996 is meaningless. However, the change seems worth it, as it will
11997 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
11998 and html->pdf via wkhtmltopdf.
11999 + Only pass options to color package if `colorlinks` is set
12000 (Andrew Dunning).
12001 + Make definition of `\euro` conditional in xelatex/lualatex,
12002 as it is already for pdflatex (Andrew Dunning).
12003 + Removed setting of `subject` in PDF metadata.
12004 This used to be set to the subtitle, but really the subtitle
12005 need not give the subject. Also, `subtitle` can contain formatting,
12006 so we'd need, at least, a plain text version for this.
12007 + Moved `header-includes` before setting of `\title`, `\author`,
12008 etc. This allows these macros to be redefined.
12009 + Use `\subtitle` command for `subtitle`, instead of tacking it
12010 on to the title as before. We give a no-op fallback definition if it
12011 is not defined. This change should produce much better results
12012 in classes that support `\subtitle`. With the default article
12013 class, which does not define `\subtitle`, subtitles will no
12014 longer be printed unless the user defines `\subtitle` and
12015 redefines `\maketitle`.
12016 + Moved redefinitions of `\paragraph` and `\subparagraph` to
12017 before header-includes.
12019 * Context template:
12021 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
12022 needed for things to work on ConTeXt stable from TeXLive 2015.
12023 + Revert use of `\setuphead` in title block (Andrew Dunning,
12024 Rik Kabel).
12026 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
12028 * Fixed man template so disabling hyphenation actually works.
12029 The command needs to come after .TH.
12031 * Added 'navigation' variable to beamer template (#2543).
12032 Valid values are `empty` (the default), `horizontal`, `vertical`,
12033 and `frame`. Note that this changes the default behavior from
12034 `horizontal` to `empty`. Closes #2543.
12036 * Added `toc` to HTML slide format templates (Andrew Dunning),
12037 so that `--toc` creates a contents slide.
12039 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
12041 * Allow pipe tables with no body rows (#2556).
12042 Previously this raised a runtime error.
12044 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
12045 as URL. The Haskell URI parsing routines will accept "C:" as a
12046 scheme, so we rule that out manually. This helps with
12047 `--self-contained` and absolute Windows paths.
12049 * Define a `meta-json` variable for all writers (#2019). This contains
12050 a JSON version of all the metadata, in the format selected for the
12051 writer. So, for example, to get just the YAML metadata, you can run
12052 pandoc with the following custom template: `$meta-json$`. The intent
12053 is to make it easier for static site generators and other tools to get
12054 at the metadata.
12056 * Document limitations of --self-contained (#2553).
12058 * Improved Citations section of README (#2551). Added information
12059 about `link-citations` and a link to the pandoc-citeproc man page.
12061 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
12062 in base < 4.6.
12064 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
12066 * Improved implicit pandoc-citeproc inclusion.
12067 The filter pandoc-citeproc is automatically used when
12068 `--bibliography` is specified on the command line, unless
12069 `--natbib` or `--biblatex` is used. However, previously this
12070 only worked if `--bibliography` was spelled out in full, and not
12071 if `--biblio` was used.
12073 * reveal.js: Interpret pauses correctly for all headers (#2530).
12074 Previously, when using headers below the slide level, pauses are left
12075 uninterpreted into pauses. In my opinion, unexpected behavior but
12076 intentional looking at the code.
12078 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
12080 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
12081 Bieg, API change).
12083 * ImageSize: Added functions for converting between image dimensions
12084 (Mauro Bieg).
12086 * Use lts-3.18 in stack.yaml. This avoids Windows build
12087 issues with the HTTP library.
12089 * Bump version bounds for dependencies.
12091## pandoc 1.15.2.1 (2015-11-16)
12093 * Added two missing test files, and `stack.yaml`, to
12094 `extra-source-files` so they're included in the source tarball.
12096 * reveal.js template: Fixed parallaxBackground options.
12097 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
12098 need integer values, not strings. (Vaughn Iverson)
12100## pandoc 1.15.2 (2015-11-15)
12102 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
12103 ConTeXt rather than LaTeX (#2463).
12105 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
12107 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
12108 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
12109 (API change).
12111 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
12112 parsing (#2469). Tightened up the inline HTML parser so it disallows
12113 TagWarnings.
12115 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
12117 * Org reader:
12119 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
12120 Paragraphs can be followed by lists, even if there is no blank line
12121 between the two blocks. However, this should only be true if the
12122 paragraph is not within a list, were the preceding block should be
12123 parsed as a plain instead of paragraph (to allow for compact lists).
12124 Thanks to @rgaiacs for bringing this up.
12125 + Allow toggling header args (Albert Krewinkel, #2269).
12126 Org-mode allows to skip the argument of a code block header argument if
12127 it's toggling a value. Argument-less headers are now recognized,
12128 avoiding weird parsing errors.
12129 + Fix markup parsing in headers (Albert Krewinkel, #2504).
12130 Markup as the very first item in a header wasn't recognized. This was
12131 caused by an incorrect parser state: positions at which inline markup
12132 can start need to be marked explicitly by changing the parser state.
12133 This wasn't done for headers. The proper function to update the state
12134 is now called at the beginning of the header parser, fixing this issue.
12135 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
12136 Smart quotes, ellipses, and dashes should behave like normal quotes,
12137 single dashes, and dots with respect to text markup parsing.
12138 + Require whitespace around definition list markers (#2518).
12139 This rule was not checked before, resulting in bugs with footnotes
12140 and some link types.
12142 * Markdown reader:
12144 + Pipe tables with long lines now get relative cell widths (#2471).
12145 If a pipe table contains a line longer than the column width (as set by
12146 `--columns` or 80 by default), relative widths are computed based on the
12147 widths of the separator lines relative to the column width. This should
12148 solve persistent problems with long pipe tables in LaTeX/PDF output, and
12149 give more flexibility for determining relative column widths in other
12150 formats, too. For narrower pipe tables, column widths of 0 are used,
12151 telling pandoc not to specify widths explicitly in output formats that
12152 permit this.
12153 + Improved parser for `mmd_title_block`. We now allow blank metadata
12154 fields. These were explicitly disallowed before.
12155 + Citation keys can now contain `://`, so URLs and DOIs can be used
12156 as citation keys (jgm/pandoc-citeproc#166).
12158 * Beamer template: fix incompatibility of section slides with natbib.
12159 Natbib (and presumably biblatex) bibliography commands create
12160 their own section. Since these are in frame environments,
12161 we have an incompatibility with the `\AtBeginSection` macro
12162 which creates a special frame when a new section occurs.
12163 (We can't have a frame inside another frame.) This change disables
12164 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
12165 bringing the problem to my attention. This supersedes #145. See
12166 discussion there.
12168 * Textile reader: don't do smart punctuation unless explicitly asked
12169 (#2480). Note that although smart punctuation is part of the textile
12170 spec, it's not always wanted when converting from textile
12171 to, say, Markdown. So it seems better to make this an option.
12173 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
12174 The `comment` environment is handled in a similar way to the
12175 `verbatim` environment, except that its content is discarded.
12177 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
12178 Jesse Rosenthal). This fixes a problem with links in notes.
12180 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
12181 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
12182 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
12183 already. See #895.
12185 * LaTeX writer:
12187 + Use proper command for `\textarabic` (mb21).
12188 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
12189 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
12190 to link to Div or Span elements. We now don't bother defining `\label`
12191 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
12192 + Avoid footnotes in list of figures (#1506).
12193 + Properly handle footnotes in captions (#1506).
12194 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
12195 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
12196 `toccolor` is set (#2508).
12198 * Textile writer: support start number in ordered lists (#2465).
12200 * OpenDocument writer: Allow customization of opendocument
12201 automatic styles. Automatic styles can now be inserted in the
12202 template, which now provides the enclosing `<office:automatic-styles>`
12203 tags (#2520).
12205 * Docx writer: insert space between footnote reference and note (#2527).
12206 This matches Word's default behavior.
12208 * EPUB writer: don't download linked media when `data-external` attribute
12209 set (#2473). By default pandoc downloads all linked media and includes it
12210 in the EPUB container. This can be disabled by setting `data-external` on
12211 the tags linking to media that should not be downloaded. Example:
12213 <audio controls="1">
12214 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
12215 type="audio/mpeg"></source>
12216 </audio>
12218 * HTML writer: use width on whole table if col widths sum to < 100%.
12219 Otherwise some browsers display the table with the columns
12220 separated far apart.
12222 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
12223 `abstract` (Andrew Dunning).
12225 * HTML-based templates (Andrew Dunning):
12227 + Use en dash instead of hyphen between title prefix and title.
12228 + Add `keywords` to metadata.
12229 + Add `lang`, `dir`, `quotes` where missing.
12230 + Always make author and date display conditional.
12231 + Updated dzslides template from source.
12233 * Man template: make "generated by" comment conditional.
12235 * LaTeX, Beamer templates:
12237 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
12238 filled by commands that make babel understand the polyglossia-style
12239 language directives (mb21, #137).
12240 + Improved formatting of conditionals; `$for$` is always provided to allow
12241 multiple options (Andrew Dunning, #141).
12242 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
12243 to improve support for LuaTeX (Andrew Dunning, #135).
12244 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
12245 - use same options for all LaTeX engines;
12246 - add `subtitle` and `keywords` to PDF metadata;
12247 - do not override `hyperref` link coloring without user input, effectively making
12248 the `hidelinks` option the default (removed as a separate variable);
12249 - link colors can be enabled (using a slightly darker version of the old
12250 defaults) using a new `colorlinks` variable, automatically used by
12251 the LaTeX writer when custom colors are specified;
12252 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
12253 `colorlinks`, and is only applied if `colorlinks` is disabled.
12255 * ConTeXt template (Andrew Dunning):
12257 + New variables for controlling styles: `linkstyle`, `linkcolor`,
12258 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
12259 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
12260 `monofont`, `mathfont`, `fontsize`.
12261 + Default template no longer supports MkII.
12262 + Improve writing of title block (suppressing numbering of first page).
12263 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
12264 + Support `subtitle`, `abstract`.
12265 + Support list of figures (`lof`), list of tables (`lot`).
12266 + Disable link styling by default.
12267 + Define styles for all section types.
12268 + Enable microtype.
12269 + Improved formatting of conditionals.
12271 * Beamer template: added code to prevent slide breaks inside paragraphs
12272 (#2422, thanks to Nick Bart). This will matter, in practice, only when
12273 `allowframebreaks` is used. It is especially helpful for bibliography
12274 slides.
12276 * OpenDocument template: Add `<office:automatic-styles>` tag around
12277 automatic styles. The writer now longer provides this (see #2520).
12279 * Restored Text.Pandoc.Compat.Monoid.
12281 * Do not export (<>) from custom Prelude. The Prelude now matches
12282 base 4.8 Prelude's API.
12284 * Don't use custom prelude with ghc 7.10. Use the custom prelude
12285 only for earlier versions. This change makes `stack ghci` and
12286 `cabal repl` work (#2503), at least with ghc 7.10.
12288 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
12289 This prevents problems building haddocks with "C" locale.
12291 * Change default for old-locale flag to False.
12293 * Use stack in deb, osx, and Windows package generators.
12295 * Added Vagrantfile for building deb in vm.
12296 This should help in automating binary package creation. 'make package'
12297 will make the package. 'make package COMMIT=blah' will make the package
12298 from commit blah.
12300 * README:
12302 + Consistent capitalization for pandoc and Markdown.
12303 + Fixed `auto_identifiers` examples (Benoit Schweblin).
12304 + Improved documentation of template variables (Andrew Dunning).
12306## pandoc 1.15.1 (2015-10-15)
12308 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
12309 and reexported from `Text.Pandoc` (Alex Vong). This allows
12310 writers to access it. (Alex Vong) (API change)
12312 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
12313 `subscripts` (#2401).
12315 * Added `odt` as input format (MarLinn). Added new module
12316 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
12317 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
12318 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
12319 Partly implemented features: Citations, Tables.
12321 * Markdown Reader:
12323 + Add basic tests for each header style (Ophir Lifshitz).
12324 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
12325 + Skip spaces in headers (Ophir Lifshitz).
12326 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
12327 `# Header {id="myid" class="foo bar"}`
12328 is now equivalent to `# Header {#myid .foo .bar}`.
12329 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
12330 (Kristof Bastiaensen)
12331 + Pipe tables: allow indented columns. Previously the left-hand column
12332 could not start with 4 or more spaces indent. This was inconvenient
12333 for right-aligned left columns. Note that the first (header column)
12334 must still have 3 or fewer spaces indentation, or the table will be
12335 treated as an indented code block.
12336 + Fix regression: allow HTML comments containing `--`.
12337 Technically this isn't allowed in an HTML comment, but
12338 we've always allowed it, and so do most other implementations.
12339 It is handy if e.g. you want to put command line arguments
12340 in HTML comments.
12342 * LaTeX reader:
12344 + Don't eat excess whitespace after macros with only optional
12345 arguments (#2446).
12346 + Support longtable (#2411).
12347 + Implement `\Cite` (#2335).
12348 + Support abstract environment. The abstract populates an
12349 `abstract` metadata field.
12350 + Properly handle booktabs lines. Lines aren't part of the
12351 pandoc table model, so we just ignore them (#2307).
12353 * HTML reader:
12355 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
12356 + Updated for new automatic header attributes.
12357 + Add auto identifiers if not present on headers. This makes
12358 TOC linking work properly.
12359 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
12360 + Test `<ol>` type, class, and inline list-style(-type) CSS
12361 (Ophir Lifshitz).
12362 + Better handling of "section" elements (#2438). Previously
12363 `<section>` tags were just parsed as raw HTML blocks. With
12364 this change, section elements are parsed as Div elements with
12365 the class "section".
12367 * MediaWiki reader: handle unquoted table attributes (#2355).
12369 * DocBook reader:
12371 + Added proper support for DocBook `xref` elements (Frerich Raabe).
12372 Added `dbContent` field to reader state, so we can lookup
12373 cross refs.
12374 + Handle `informalexample` (#2319).
12376 * Docx Reader:
12378 + Create special punctuation test (Ophir Lifshitz).
12379 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
12380 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
12381 in `headers.docx` with pandoc's current `styles.xml`, which
12382 contains styles for Heading 1 through 6. Added Heading 4
12383 through 7 to the test document. Note that Heading 7 is not
12384 parsed as a Heading because there is no Heading 7 style.
12386 * RST reader: better handling of indirect roles.
12387 Previously the parser failed on this kind of case
12389 .. role:: indirect(code)
12391 .. role:: py(indirect)
12392 :language: python
12394 :py:`hi`
12396 Now it correctly recognizes `:py:` as a code role.
12398 * Org reader:
12400 + Add auto identifiers if not present on headers
12401 (#2354, Juliusz Gonera).
12402 + Allow verse blocks to contain empty lines (#2402,
12403 Albert Krewinkel).
12405 * EPUB reader: stop mangling external URLs (#2284).
12407 * RST writer:
12409 + Don't insert `\ ` when complex expression in matched pairs.
12410 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
12411 + Ensure that `\ ` is inserted when needed before Cite and Span
12412 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
12413 + Normalize headers only in "standalone" mode (#2394).
12415 * Haddock writer: escape `*` and `^` (G. Bataille).
12417 * Markdown writer:
12419 + In TOC, add links to headers (#829).
12420 + Use unicode super/subscripts for digits in plain output
12421 (when the `superscripts` and `subscripts` extensions are
12422 not enabled).
12424 * Docx writer:
12426 + Moved invalid character stripping to `formattedString`.
12427 This avoids an inefficient generic traversal (#2356).
12428 + Use user data directory for `reference.docx` archive.
12429 This allows the test suite to work without installing pandoc first.
12430 It also brings the docx writer in line with the odt writer.
12431 + Tests: docx writer tests now use `../data` for data directory.
12432 This allows tests to be run without installing first.
12433 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
12435 * LaTeX writer:
12437 + Fixed detection of 'chapters' from template.
12438 If a documentclass isn't specified in metadata, but the
12439 template has a hardwired bookish documentclass, act as if
12440 `--chapters` was used. This was the default in earlier
12441 versions, but it has been broken for a little while.
12442 + Correctly recognize book documentclass in metadata (#2395).
12443 + Set language-related variables automatically, depending
12444 on the value of the `lang` field, which is now always
12445 assumed to be in BCP47 format (mb21, #1614, #2437).
12446 + Add `\protect` to `\hyperdef` in inline context. This way we
12447 don't get an error when this is used as a moveable argument (#2136).
12448 + Support all frame attributes in Beamer.
12449 + Percent-encode more special characters in URLs (#1640, #2377).
12450 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12452 * HTML writer:
12454 + Update KaTeX JS and CSS versions (Emily Eisenberg).
12455 + For dzslides, add `role="note"` for speaker notes (#1693).
12456 + Percent-encode more special characters in URLs (#1640, #2377).
12457 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12458 + Render Div with class `section` as `<section>` in HTML5.
12460 * EPUB writer:
12462 + In TOC, replace literal `<br/>` with space (#2105).
12463 + With `--webtex`, include image file rather than `data:` URI (#2363).
12465 * Native writer: format Div properly, with blocks separated.
12467 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
12468 (#2191, mb21).
12470 * Reference Docx:
12472 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
12473 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
12475 * Templates
12477 + Beamer: Add `innertheme`, `outertheme` variables
12478 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
12479 Integrate recent font and language updates from LaTeX template;
12480 allow use of `mainfont` variable for changing the slide text
12481 in XeTeX and LuaTeX (Andrew Dunning, #131).
12482 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
12483 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
12484 (Andrew Dunning, #122). Support handling of bidirectional
12485 text (mb21, #120). Improve reliability of superscripts/subscripts
12486 under XeTeX and prevent letters and numbers from appearing on a
12487 different baseline by removing use of the `realscripts` package
12488 (via `xltxtra`). To restore use of OpenType characters for these
12489 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
12490 `header-includes` (Andrew Dunning, #130). Remove redundant
12491 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
12492 `indent`, `subparagraph` variables (Andrew Dunning).
12493 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
12494 #113). Prevent package clash with `tufte-latex` and other classes that
12495 include `hyperref` or `color` (Xavier Olive, #115).
12496 + ConTeXt: Support handling of bidirectional text (mb21, #120).
12497 + LaTeX and ConTeXt: Use more specific language variables.
12498 Instead of directly using `lang`, we now use `babel-lang` and
12499 `polyglossia-lang` and `context-lang`. These variables are set by
12500 the writers to the necessary values, based on the `lang` variable
12501 (which now always takes a value in BCP47 format). (mb21, #114, #129).
12502 + HTML: Support handling of bidirectional text (mb21, #120).
12503 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
12504 Add dir attribute in html5 (Andrew Dunning).
12505 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
12506 Add `width`, `height` variables (Anrew Dunning). Update template
12507 from 3.1 source (Andrew Dunning). All configuration options are now
12508 available as variables, but are only be included if set (reveal.js
12509 uses defaults otherwise).
12510 + man: Added comment stating that the page is autogenerated by pandoc,
12511 giving version. Added `adjusting` and `hyphenate` variables
12512 (Alex Vong, #123).
12514 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
12516 * MediaBag: ensure that `/` is always used as path separator.
12518 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
12520 * Added `--bash-completion` option. This generates a bash completion
12521 script. To use: `eval "$(pandoc --bash-completion)"`.
12523 * Text.Pandoc.Error: Define Typeable and Exception instances
12524 for PandocError (#2386).
12526 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
12527 This makes keys with extra space at the beginning and end
12528 work: e.g.
12530 [foo]: bar
12532 [ foo ]
12534 will now be a link to bar (it wasn't before).
12536 * Text.Pandoc: disable `auto_identifiers` for epub.
12537 The epub writer inserts its own auto identifiers;
12538 this is more complex due to splitting into "chapter" files.
12540 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
12541 It now reexports Data.Time.
12543 * Use custom Prelude to avoid compiler warnings.
12545 + The (non-exported) prelude is in prelude/Prelude.hs.
12546 + It exports Monoid and Applicative, like base 4.8 prelude,
12547 but works with older base versions.
12548 + It exports (<>) for mappend.
12549 + It hides 'catch' on older base versions.
12551 * Added a `stack.ymal` and stack install instructions to INSTALL.
12553 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
12555 * Added note to CONTRIBUTING.md about ghc versions and travis.
12557 * Clarify docs on block quotes. The space after `>` is optional (#2346).
12559 * Removed obsolete reference to default.csl (#2372).
12561 * List all styles in manual for `--reference-docx` (Chris Black)
12563 * Don't capitalize header links in man page.
12565 * Added section on repl to CONTRIBUTING.md.
12567 * README: Added space after backslash in image example (#2329).
12569 * Document details of citation locator terms (Nick Bart).
12571 * Fixed some internal links in README (#2309).
12573 * Improve CSL documentation, variables documentations,
12574 links, and cross-references in README. (Andrew Dunning)
12576 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
12578 * Use `newManager` instead of `withManager` in recent `http-client`.
12579 This avoids a deprecation warning.
12581 * Allow building with latest versions of http-types,
12582 HUnit, criterion, syb, aeson.
12584 * Updated benchmark program for new criterion API.
12586 * Setup.hs: rewrite so as not to use process, directory, filepath.
12587 Using anything outside base is dangerous, since older
12588 versions of ghc may link against two different versions.
12590 * Added appveyor (Windows continuous integration) builds.
12592 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
12593 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
12594 `make .travis.yml` regenerates it based on the tested-with
12595 field of the cabal file.
12597## pandoc 1.15.0.6 (2015-07-15)
12599 * `--self-contained`: Fixed overaggressive CSS minimization
12600 (#2301, 2286). Previously `--self-contained` wiped out all
12601 spaces in CSS, including semantically significant spaces.
12602 This was a regression from 1.14.x.
12604 * Markdown reader: don't allow bare URI links or autolinks in link
12605 label (#2300). Added test cases.
12607 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
12608 Previously we disallowed `-` at the end of an autolink,
12609 and disallowed the combination `=-`. This commit liberalizes the
12610 rules for allowing punctuation in a bare URI, and adds test cases.
12611 One potential drawback is that you can no longer put a bare
12612 URI in em dashes like this:
12613 `this uri---http://example.com---is an example.`
12614 But in this respect we now match github's treatment of bare URIs.
12616 * HTML writer: support speaker notes in dzslides.
12617 With this change `<div class="notes">` and also `<div class="notes"
12618 role="note">` will be output if `-t dzslides` is used. So we can
12619 have speaker notes in dzslides too. Thanks to maybegeek.
12621 * Updated dzslides template.
12623 * Improved documentation of options to print system default files (#2298).
12624 `--print-default-data-file` and `--print-default-template`.
12626 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
12627 (Tiziano Müller). MathJax seems currently to be the only maintained
12628 math rendering extension for DokuWiki.
12630 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
12631 div as top-level header (#2294). This fixes a bug with `--section-divs`,
12632 where the final references section added by pandoc-citeproc, enclosed in
12633 its own div, got nested in the div for the section previous to it.
12635 * Allow vector 0.11.
12637 * Require cmark > 0.4.
12639## pandoc 1.15.0.5 (2015-07-10)
12641 * HTML writer: Fixed email javascript obfuscation with `mailto:`
12642 URLs (#2280). This fixes a potential security issue. Because
12643 single quotes weren't being escaped in the link portion, a
12644 specially crafted email address could allow javascript code injection.
12646 * RST reader: allow inline formatting in definition list field
12647 names (Lars-Dominik Braun).
12649 * PDF: Make sure `--latex-engine-opt` goes before the filename
12650 on the command line. LaTeX needs the argument to come after
12651 the options (#1779).
12653 * CommonMark writer: fixed tags used for super/subscript.
12655 * ConTeXt template: activate hanging indent for definition lists
12656 (mb21).
12658 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
12659 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
12660 to include `hsb2hs` in Build-Tools in cabal.
12662 * Improved Windows installer (thanks to nkalvi).
12664 + When per-machine installation is chosen, the system path
12665 is updated instead of the user's.
12666 + An appropriate default is used for per-machine installation
12667 directory.
12668 + Admin privileges are no longer required for a per-user install
12670 * Travis: unpack sdist for build to catch packaging bugs.
12672 * Improved documentation on where user templates go (#2272).
12674## pandoc 1.15.0.4 (2015-07-03)
12676 * Added pandoc.1 man page to the repository. It is no longer
12677 built as part of the cabal build process. (This proved too
12678 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
12679 when `README` is changed.
12681 * Copying of the man page now respects `--destdir` (#2262).
12683 * Improved error messages for filters. User is now informed if
12684 the filter requires an interpreter that isn't found in the path,
12685 or if the filter returns an error status.
12687## pandoc 1.15.0.3 (2015-07-02)
12689 * Ensure target directory is created when installing man page.
12691## pandoc 1.15.0.2 (2015-07-02)
12693 * Added files needed for building man page to Extra-Source-Files.
12695## pandoc 1.15.0.1 (2015-07-01)
12697 * Man page is now built and installed as part of the cabal build
12698 process. Removed Makefile target for man page.
12700## pandoc 1.15 (2015-07-01)
12702 * Man page changes:
12704 + Removed `--man1`, `--man5` options (breaking change).
12705 + Removed `Text.Pandoc.ManPages` module (breaking API change).
12706 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
12707 create the man page from README using a custom template and filters.
12708 + Added `man/` directory with template and filters needed to build
12709 man page.
12710 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
12711 Now there is just pandoc.1, which has all the content from README.
12712 This change was needed because of the extensive cross-references
12713 between parts of the README.
12714 + Removed old `data/pandoc.1.template` and
12715 `data/pandoc_markdown.5.template`.
12717 * OpenDocument writer: Do not add a carriage return after a hard
12718 line break (Michael Chladek).
12720 * ConTeXt writer:
12722 + use `\goto` for internal links.
12723 + Added a `%` at end for `\reference` to avoid spurious space.
12725 * Ignore sandbox on 'make quick'
12727## pandoc 1.14.1 (2015-06-30)
12729 * Added `--man1` and `--man5` options to pandoc, allowing
12730 pandoc to generate its own man pages. Man pages are no longer
12731 automatically generated in the build process (the process for
12732 this was too complex and prone to failure, #2190). The
12733 `make-pandoc-man-pages` executable has been removed. The
12734 `man/` directory has been removed, and man page templates
12735 have been moved to `data/`. NOTE TO PACKAGERS: You will no
12736 longer find pandoc's man pages in `man/`, but you can
12737 generate them using `pandoc --man1 > pandoc.1` and `pandoc
12738 --man5 > pandoc_markdown.5`.
12740 * Added new unexported module: `Text.Pandoc.ManPages`.
12742 * `README` now acts like a data file (even though it isn't in
12743 `data/`). So, for example, `pandoc --print-default-data-file README`
12744 will produce the README.) This change was required for the `--man1`
12745 and `--man5` options, since the man pages are produced from the
12746 README, but it may be useful for other purposes as well.
12748 * Allow `reference.docx` and `reference.odt` to be used with
12749 `--print-default-data-file` and to shadow defaults if placed in
12750 the user data directory. Note that as of 1.14, we no longer
12751 include these files as data files; instead, we include their
12752 components. This change causes pandoc to behave as if it has
12753 these data files; they are constructed on demand when needed
12754 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
12756 * Fixed regression in CSS parsing with `--self-contained` (#2224).
12757 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
12758 silently drops big sections of CSS. This commit replaces the
12759 use of css-text with a small but principled CSS preprocessor,
12760 which removes whitespace and comments and replaces `url()` with
12761 base 64 data when possible.
12763 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
12764 This will allow math to work when pages are being viewed locally.
12766 * `Text.Pandoc.Options`: Export `plainExtensions`.
12767 These are the extensions used in `plain` output.
12769 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
12770 math mode; treat them as regular inline text. Normally these will
12771 cause an error in LaTeX, but there are contexts (e.g. `alltt`
12772 environments) where they are allowed.
12774 * HTML reader: allow `<body>` to close `<head>`.
12776 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
12778 * RST reader: Fix reference names with special characters
12779 (Lars-Dominik Braun).
12781 * Textile writer: escape `+` and `-` as entities (#2225).
12783 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
12785 * Plain writer: don't use symbols for super/subscript (#2237).
12786 Simplified code by using `plainExtensions`.
12788 * InDesign writer: Properly escape URLs containing more than one
12789 colon character (gohai).
12791 * Docx writer: Make sure we use dist version of `reference.docx`
12792 (and not the user's version) for certain settings. Taking some
12793 settings values from a user-supplied reference.docx can lead to
12794 corruption. This fixes a regression from the last release (#2249).
12796 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
12797 `getDefaultReferenceODT` (API change). These functions have been
12798 removed from the Docx and ODT writers.
12800 * LaTeX template (Xavier Olive):
12801 + Added `CJKmainfont` and `CJKoptions` variables.
12802 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
12804 * Epub templates: use `author.role`, not `author.type`.
12806 * Bump cmark version to >= 0.3.4.
12808 * Improved Windows installer (#2205, thanks to nkalvi).
12809 Users can now select a per-user or systemwide install, and can set
12810 the installation path. At the end of installation, the install location
12811 is given. The install location is also now given in the list of
12812 installed programs in Control Panel. Cleaner WiX syntax is used for
12813 setting the path.
12815 * Added `download_stats` target to Makefile.
12817## pandoc 1.14.0.4 (2015-06-02)
12819 * Added missing commonmark template.
12821 * Improved try pandoc (moved button, show raw command).
12823## pandoc 1.14.0.3 (2015-06-01)
12825 * Allow compilation with syb 0.5.*.
12827 * Custom writer: fixed some compiler warnings for ghc < 7.10.
12829## pandoc 1.14.0.2 (2015-05-31)
12831 * Allow building with hslua 0.4.
12833## pandoc 1.14.0.1 (2015-05-28)
12835 * Fixed problem with building of `reference.docx` and `reference.odt`
12836 when the `embed_data_files` flag is used. Instead of having a phase
12837 of the build where `reference.docx` and `reference.odt` are created
12838 from their constituent data files, we now construct these archives
12839 from their constituents when a `docx` or `odt` is built. The
12840 constituent files have been moved from `extra-source-files` to
12841 `data-files`, and `reference.docx` and `reference.odt` have been
12842 removed. Users can create their own `reference.docx` or
12843 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
12844 `make-reference-files.hs` has been removed, simplifying the build
12845 process (#2187)
12847 * Don't include generated man pages in extra-source-files (#2189).
12849 * Bumped upper bound for aeson.
12851 * ConTeXt writer: create internal link anchors for Div elements with
12852 identifiers. (This is needed for linked citations to work.)
12854## pandoc 1.14 (2015-05-27)
12856### New features
12858 * Added `commonmark` as input and output format.
12860 * Added `--verbose` flag for debugging output in PDF production (#1840,
12861 #1653).
12863 * Allow wildcards in `--epub-embed-font` arguments (#1939).
12865 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
12867 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
12868 This is enabled by default for those markdown flavors that
12869 support reading shortcut reference links, namely: `markdown`,
12870 `markdown_strict`, `markdown_github`, `markdown_php`.
12871 If the extension is enabled, the reader parses shortcut reference
12872 links like `[foo]`, and the writer creates such links unless doing
12873 so would cause problems. Users of markdown flavors that support
12874 shortcut reference links should not notice a difference in reading
12875 markdown, but the markdown pandoc produces may differ.
12876 If shortcut links are not desired, the extension can be disabled
12877 in the normal way.
12879### Behavior changes
12881 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
12882 A "dirty" TOC is created at the beginning of document.
12883 It can be regenerated after the document has been opened.
12885 * An implicit `--filter pandoc-citeproc` is now triggered only when the
12886 `--bibliography` option is used, and not when the `bibliography`
12887 field in metadata is specified (#1849).
12889 * Markdown reader:
12891 + Reference links with `implicit_header_references` are no longer
12892 case-sensitive (#1606).
12893 + Definition lists no longer require indentation for first line (#2087).
12894 Previously the body of the definition (after the `:` or `~` marker)
12895 needed to be in column 4. This commit relaxes that requirement,
12896 to better match the behavior of PHP Markdown Extra. So, now
12897 this is a valid definition list:
12899 foo
12900 : bar
12901 + Resolve a potentially ambiguity with table captions:
12903 foo
12905 : bar
12907 -----
12908 table
12909 -----
12911 Is "bar" a definition, or the caption for the table? We'll count
12912 it as a caption for the table.
12913 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
12914 Markdown Extra. Note: If you have been using headerless pipe tables,
12915 this change may cause existing tables to break.
12916 + Allow pipe tables with header but no body (#2017).
12917 + Allow a digit as first character of a citation key (Matthias Troffaes).
12918 See https://github.com/jgm/pandoc-citeproc/issues/97
12920 * LaTeX reader:
12922 + Don't limit includes to `.tex` extension (#1882).
12923 If the extension is not `.tex`, it must be given explicitly in
12924 the `\input` or `\include`.
12926 * Docx reader:
12928 + Allow numbering in the style file. This allows inherited styles
12929 with numbering (lists) (Jesse Rosenthal).
12931 * Org reader:
12933 + Support smart punctuation (Craig Bosma).
12934 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
12935 `:noexport:` tag set are not exported. This mirrors org-mode.
12936 + Put header tags into empty spans (Albert Krewinkel, #2160).
12937 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
12938 Instead of being interpreted as part of the headline, the tags are now
12939 put into the attributes of empty spans. Spans without textual content
12940 won't be visible by default, but they are detectable by filters. They
12941 can also be styled using CSS when written as HTML.
12942 + Generalize code block result parsing (Albert Krewinkel).
12943 Previously, only code blocks were recognized as result blocks;
12944 now, any kind of block can be the result.
12946 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
12947 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
12949 * HTML writer:
12951 + Add "inline" or "display" class to math spans (#1914).
12952 This allows inline and display math to be styled differently.
12953 + Include raw latex blocks if `--mathjax` specified (#1938).
12954 + Require highlighting-kate >= 0.5.14 (#1903).
12955 This ensures that all code blocks will be wrapped in a `div`
12956 with class `sourceCode`. Also, the default highlighting CSS
12957 now adds `div.sourceCode { x-overflow: auto; }`, which means
12958 that code blocks (even with line numbers) will acquire a scroll
12959 bar on screens too small to display them (e.g. mobile phones).
12960 See also jgm/highlighting-kate#65.
12962 * LaTeX writer:
12964 + Use a declaration for tight lists (Jose Luis Duran, Joseph
12965 Harriott). Previously, pandoc hard-coded some commands to make
12966 tight lists in LaTeX. Now we use a custom command instead,
12967 allowing the styling to be changed in a macro in the header.
12968 (Note: existing templates may need to be modified to include
12969 the definition of this macro. See the current template.)
12970 + Beamer output: if the header introducing a slide has the
12971 class `fragile`, add the `[fragile]` option to the slide (#2119).
12973 * MediaWiki writer:
12975 + Use `File:` instead of the deprecated `Image:` for images and
12976 other media files (Greg Rundlett).
12978 * DocBook writer:
12980 + Render a `Div (id,_,_) [Para _]` element as a `para` element
12981 with an `id` attribute. This makes links to citations work in
12982 DocBook with pandoc-citeproc.
12984 * RST writer:
12986 + Normalize headings to sequential levels (Nikolay Yakimov).
12987 This is pretty much required by docutils.
12988 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
12989 + Better handling of raw latex inline (#1961). We use
12990 `` :raw-latex:`...` `` and add a definition for this role to
12991 the template.
12993 * EPUB writer:
12995 + Remove `linear=no` from cover `itemref` (#1609).
12996 + Don't use `sup` element for epub footnotes (#1995).
12997 Instead, just use an a element with class `footnoteRef`.
12998 This allows more styling options, and provides better results
12999 in some readers (e.g. iBooks, where anything inside the a
13000 tag breaks popup footnotes).
13001 + Take TOC title from `toc-title` metadata field.
13003 * Docx writer:
13005 + Implemented `FirstParagraph` style (Jesse Rosenthal).
13006 Following the ODT writer, we add the `FirstParagraph` style to the
13007 first text paragraph following an image, blockquote, table, heading,
13008 or beginning of document. This allows it to be styled differently.
13009 The default is for it to be the same as `Normal`.
13010 + Added `BodyText` style (Jesse Rosenthal).
13011 We apply a `BodyText` style to all unstyled paragraphs. This is,
13012 essentially, the same as `Normal`, except that since not everything
13013 inherits from `BodyText` (the metadata won't, for example, or
13014 the headers or footnote numbers), we can change the text in the body
13015 without having to make exceptions for everything. If we do want to
13016 change *everything*, we can still do it through `Normal`.
13017 + Altered `Blockquote` style slightly (Jesse Rosenthal).
13018 Since `BlockQuote` derives from `BodyText`, we just want to specify
13019 by default that it won't indent, regardless of what `BodyText` does.
13020 Note that this will not produce any visible difference in the default
13021 configuration.
13022 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
13023 + Added a style to figure images (Nikolay Yakimov).
13024 Figures with empty captions use style `Figure`.
13025 Figures with nonempty captions use style `Figure with Caption`, which
13026 is based on `Figure`, and additionally has `keepNext` set.
13028 * ODT writer:
13030 + Added figure captions (Nikolay Yakimov). The following styles are
13031 used for figures:
13032 `Figure` -- for figure with empty caption),
13033 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
13034 `FigureCaption` (based on `Caption`) -- for figure captions.
13035 Also, `TableCaption` (based on `Caption`) is used for table captions.
13037### API changes
13039 * New `Text.Pandoc.Error` module with `PandocError` type
13040 (Matthew Pickering).
13042 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
13043 (Matthew Pickering). This allows better handling of errors.
13045 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
13047 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
13049 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
13050 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
13051 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
13052 Youssefi).
13054 * New `Ext_shortcut_reference_links` constructor for `Extension`
13055 (Konstantin Zudov).
13057### Bug fixes
13059 * Markdown reader:
13061 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
13062 + Check for tex macros after indented code (#1973).
13063 + Rewrote `charsInBalancedBrackets` for efficiency.
13064 + Make sure a closing `</div>` doesn't get included in a
13065 definition list item (#2127).
13066 + Don't parse bracketed text as citation if it might be a link,
13067 image, or footnote (Nikolay Yakimov).
13068 + Require space after key in mmd title block (#2026, Nikolay
13069 Yakimov). Require space after key-value delimiter colon in mmd title
13070 block.
13071 + Require nonempty value in mmd title block (Nikolay Yakimov).
13072 + Disable all metadata block extensions when parsing
13073 metadata field values (#2026, Nikolay Yakimov). Otherwise we
13074 could get a mmd title block inside YAML metadata, for example.
13076 * HTML reader:
13078 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
13079 + Handle tables with `<th>` in body rows (#1859, mb21).
13080 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
13081 to see if the input starts with `<!--`. If not, it's bogus comment
13082 mode and we fail `htmlTag`.
13083 + Handle `base` tag; if it has an `href` value, this is added to
13084 all relative URLs in links and images.
13086 * DocBook reader:
13088 + Look inside "info" elements for section titles (#1931).
13090 * Docx reader:
13092 + Parse images in deprecated vml format (Jesse Rosenthal).
13093 + Allow sub/superscript verbatims (Jesse Rosenthal).
13094 Verbatim usually shuts off all other run styles, but we don't want it
13095 to shut off sub/superscript.
13097 * LaTeX reader:
13099 + Handle `tabular*` environment (#1850).
13100 Note that the table width is not actually parsed or taken into
13101 account, but pandoc no longer chokes on it.
13102 + Ignore options in `\lstinline` rather than raising error (#1997).
13103 + Add some test cases for simple tables (Mathias Schenner).
13104 + Handle valign argument in tables (Mathias Schenner) (currently
13105 we just ignore this).
13106 + Allow non-empty colsep in tables (Mathias Schenner).
13107 The `tabular` environment allows non-empty column separators
13108 with the "@{...}" syntax. Previously, pandoc would fail to
13109 parse tables if a non-empty colsep was present. With this
13110 commit, these separators are still ignored, but the table gets
13111 parsed. A test case is included.
13112 + Recognize `\newpage` as a block command.
13113 + Allow block content in `\title{}` (#2001).
13114 + Check for block-level newcommand aliases in blockCommand (Nikolay
13115 Yakimov).
13116 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
13117 + Properly gobble spaces after `\\` (#2007).
13119 * Textile reader:
13121 + Handle newlines in table cells, and empty cells (#1919).
13123 * Org reader:
13125 + Allow image links with non-image targets (Hans-Peter Deifel).
13126 This matches behavior of Org-Mode for links like
13127 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
13129 * Docbook writer:
13131 + Don't print empty id attributes (thanks to Steve Horne).
13133 * HTML writer:
13135 + Fixed list-style-type for numbered example lists.
13136 Should be "decimal," not "example" (#1902).
13137 + Do not omit missing `alt` attribute on `img` tag (#1131,
13138 Konstantin Zudov).
13139 + Allow multiple colgroups in table (#2122).
13140 + In revealjs, ensure that lists in speaker notes don't add "fragment"
13141 classes, which can cause additional keypresses to be needed to
13142 advance a slide (#1394).
13144 * LaTeX writer:
13146 + Don't escape `$` in URL (#1913).
13147 + Don't use listings in headers (Matthew Pickering, #1963).
13148 + Recognize book documentclass if set in metadata (#1971).
13149 This sets `--chapters` implicitly if the documentclass in metadata
13150 is a book documentclass. Previously this was done only if a book
13151 documentclass was set in a variable.
13152 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
13153 + Make `mainlang` work when `lang` is in metadata (#2174).
13155 * Texinfo writer:
13157 + Fix wrapping by using breakable spaces (Tim Lin).
13159 * RST writer:
13161 + Fixed toc depth in RST writer. Previously the depth was being
13162 rendered as a floating point number with a decimal point.
13164 * Markdown writer:
13166 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
13167 compatibility with original Markdown. We now escape `<` and `>`
13168 with entities. Also, we now backslash-escape square brackets.
13169 + Avoid introducing spurious list items through wrapping (#1946).
13170 + Don't emit span tags if plain or raw HTML disabled.
13172 * MediaWiki writer:
13174 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
13176 * AsciiDoc writer:
13178 + Insert some needed blank lines (#1860).
13179 + Avoid wrapping after list marker (#1858).
13181 * EPUB writer:
13183 + Properly handle internal links to IDs in spans, divs (#1884).
13184 + Use plain writer for metadata dc: fields (#2121).
13185 This gives better results when we have, e.g. multiple paragraphs.
13186 Note that tags aren't allowed in these fields.
13187 + Properly handle image links without an extension (#1855).
13188 + Improved chapter splitting and internal link rewriting (#1887,
13189 #2162, #2163). This will ensure that internal links work and
13190 that the references section produced by pandoc-citeproc is
13191 in its own chapter.
13192 + Fixed handling of svg images (#2183).
13194 * ICML writer:
13196 + Better handling of raw blocks and inlines (#1951).
13197 Previously these were always escaped and printed verbatim.
13198 Now they are ignored unless the format is `icml`, in which
13199 case they are passed through unescaped.
13200 + Fixed image URIs in ICML output (gohai).
13202 * Custom writer:
13204 + Raise error if loadstring returns an error status.
13205 + Raise `PandocLuaException` instead of using 'error'.
13206 Eventually we'll change the return type so that no exception
13207 is involved, but at least this can be trapped.
13208 + Use UTF-8 aware bytestring conversion.
13209 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
13210 Also factored out ByteString, since it's only used as an intermediate
13211 representation.
13213 * Docx writer:
13215 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
13216 + Filter out illegal XML characters (#1992, Matthew Pickering).
13217 + Added `noProof` to docx syntax highlighting `SourceCode` style.
13218 + Added footnotes id -1 and 0 (Jesse Rosenthal).
13219 Word uses, by default, footnotes with id -1 and 0 for separators. If a
13220 user modifies `reference.docx`, they will end up with a `settings.xml`
13221 file that references these footnotes, but no such footnotes in the
13222 document. This will produce a corruption error. Here we add these to the
13223 document and `settings.xml` file, so future modifications won't break
13224 the file.
13225 + Handle lists correctly inside table cells (Jesse Rosenthal).
13226 Previously we didn't transform lists inside table cells.
13227 + Set firstRow information in tables (Nikolay Yakimov).
13228 + Don't replace `SourceCode` style in `reference.docx` if it is defined
13229 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
13230 any `SourceCode` and `*Tok` styles in `reference.docx`.
13231 + Attempt to match international style names (#1607, Nikolay Yakimov).
13232 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
13233 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
13234 `Definition`, `First Paragraph`.
13235 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
13236 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
13237 `Footnote Ref -> Footnote Reference`.
13238 + Added `Caption` style (Nikolay Yakimov).
13239 + Changed these styles' inheritance (Nikolay Yakimov):
13240 `Image Caption <- Caption`, `Table Caption <- Caption`.
13241 + Remove `SourceCode` style from `reference.docx` (#1872).
13242 This is added automatically by the docx writer.
13243 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
13245 * `Text.Pandoc.PDF`
13247 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
13248 + More comprehensible errors on image conversion (#2067).
13249 EPS can't be supported without shelling out to something like
13250 ImageMagick, but at least we can avoid mysterious error messages.
13252 * `Text.Pandoc.Shared`:
13254 + Make safeRead safe (#1801, Matthew Pickering).
13255 + Added `mapLeft`, `hush` (Matthew Pickering).
13257 * `Text.Pandoc.Pretty`:
13259 + Remove partial function (Matthew Pickering).
13261 * `Text.Pandoc.SelfContained`:
13263 + Add `;charset=utf-8` to script mime type if missing (#1842).
13264 + Improved building of data URIs (#1940). Now base64 is used except
13265 for `text/*` mime types.
13266 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
13267 + Properly handle data URIs in css urls (#2129).
13268 Use a proper CSS parser (adds dependency on `text-css`).
13270 * `Text.Pandoc.UTF8`:
13272 + Better handling of bare CRs in input files (#2132).
13273 Previously we just stripped them out; now we convert
13274 other line ending styles to LF line endings.
13276 * `Text.Pandoc.ImageSize`:
13278 + Fixed some exif header parsing bugs (#1834).
13279 + Make imageSize return an Either, not a Maybe (#1834).
13280 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
13281 parse failure (rather than `error`).
13282 + Improved warnings when image size can't be determined.
13283 + Removed error landmines (Matthew Pickering).
13285 * Added woff2 to MIME types (Alfred Wechselberger).
13287 * pandoc: When a binary input format is used, warn that file
13288 arguments past the first one are being ignored (Matthew Pickering).
13290### Template changes
13292 * LaTeX template:
13294 + Degrade gracefully if `\paragraph` not defined.
13295 + Include `grffile` together with `graphicx` (#2074).
13296 This properly handles filenames containing spaces and dots.
13297 + Redefine `\paragraph`, `\subparagraph`... to behave more
13298 like section headers (#1658).
13299 + Import hyperref before polyglossia to avoid an error with xelatex,
13300 "please load package hyperref before bidi package" (Nick Bart).
13301 + Added `toccolor` variable to control link color in toc (Kaixhin).
13303 * LaTeX, Beamer templates:
13305 + Provide `\tightlist`, which is now used by the LaTeX writer.
13306 + Use polyglossia in beamer (#85).
13307 + Use `bibliography` instead of `biblio-files`
13308 (#1661). Also use `\addbibresource` instead of `\bibliography` for
13309 biblatex.
13310 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
13311 variable that is derived from a comma-separated list in `lang`;
13312 the last language is `mainlang` and the others are `otherlang`.
13314 * EPUB templates:
13316 + Use `div`, not `p`, for "rights" on title page.
13317 + Added header-includes, include-before, include-after (#1987).
13319 * OpenDocument template:
13321 + Use `text:p` instead of `text:h` for title.
13322 Using `text:h` causes problems with numbering. Closes #2059.
13323 Thanks to @nkalvi for diagnosing this.
13325 * reveal.js template:
13327 + Link to non-minified css, js. The minified versions no longer
13328 ship with the library.
13329 + Correctly include style CSS (#1949).
13330 + New configurable options options: `center`, `maxScale`, `slideNuber`
13331 (Dmitry Smirnov, pandoc-templates#89).
13332 + Moved custom CSS after theme. This allows custom CSS to modify
13333 themes, instead of being replaced by them.
13334 + Allow `center` to be set to false.
13336### Under the hood improvements
13338 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
13339 Yakimov). Instead the repository now includes the component text files,
13340 and the zipped binaries are built from these using a helper
13341 program, `make-reference-files`. This should make maintenance of
13342 these components easier going forward.
13344 * `Text.Pandoc.Parsing`:
13346 + Added new `<+?>` combinator (Nikolay Yakimov).
13347 + Added `stateHeaderKeys` to `ParserState`.
13349 * `make_deb.sh` fixes:
13351 + Detect architecture.
13352 + Add Installed-Size to debian package control file (#1900).
13353 + Use `fakeroot` to get permissions right.
13354 + Use `mkdir` and `cp` instead of `install`.
13355 + Set permissions of directories to 755.
13356 + Install in `/usr` rather than `/usr/local`.
13357 + Compress man pages.
13358 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
13360 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
13361 to assist with transition to `time` 1.5.
13363 * Updated CONTRIBUTING.md with information about issue tags (Matthew
13364 Pickering).
13366 * Updated travis installs to the new sudo-less syntax (Tim Lin).
13368 * Updated dependency version bounds.
13370 * EPUB tests: don't use `joinPath`, which varies across platforms.
13371 Instead, use a forward-slash to join paths, regardless of the
13372 platform. This matches the way `MediaBag` now works.
13374 * Clarify JSON input and output in usage message (Caleb McDaniel).
13376 * Improved INSTALL instructions.
13378 * Always build man pages. Removed make-pandoc-man-pages flag.
13380 * Makefile: removed man target, now that we generate man pages by default.
13382 * README:
13384 + Fixed typos (J. Lewis Muir).
13385 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
13386 + Added note on in-field markup in biblio databases (Nick Bart).
13387 + Fixed misleading example of raw HTML block.
13388 + Various minor formatting and consistency fixes for the program
13389 options (Andreas Lööw).
13390 + Made definition lists for options all "loose" for consistency.
13391 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
13392 `--bib2json` and `--bib2yaml` options (Nick Bart).
13393 + Removed obsolete reference to `mods2yaml` (Nick Bart).
13394 + Added section on syntax highlighting.
13395 + Documented `toccolor` variable.
13397## pandoc 1.13.2.1 (2015-04-15)
13399 * Updated to build with ghc 7.10.1.
13401 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
13403## pandoc 1.13.2 (2014-12-20)
13405 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
13407 * Markdown reader:
13409 + Better handling of paragraph in div (#1591).
13410 Previously text that ended a div would be parsed as Plain
13411 unless there was a blank line before the closing div tag.
13412 + Don't treat a citation as a reference link label (#1763).
13413 + Fix autolinks with following punctuation (#1811).
13414 The price of this is that autolinked bare URIs can no longer
13415 contain `>` characters, but this is not a big issue.
13416 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
13417 + Allow `startnum` to work without `fancy_lists`. Formerly
13418 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
13420 * RST reader (all Daniel Bergey):
13422 + Parse quoted literal blocks (#65). RST quoted literal blocks are
13423 the same as indented literal blocks (which pandoc already supports)
13424 except that the quote character is preserved in each line.
13425 + Parse RST class directives. The class directive accepts one or more
13426 class names, and creates a Div value with those classes. If the
13427 directive has an indented body, the body is parsed as the children of
13428 the Div. If not, the first block following the directive is made a
13429 child of the Div. This differs from the behavior of rst2xml, which
13430 does not create a Div element. Instead, the specified classes are
13431 applied to each child of the directive. However, most Pandoc Block
13432 constructors to not take an Attr argument, so we can't duplicate this
13433 behavior.
13434 + Warn about skipped directives.
13435 + Literal role now produces Code. Code role should have "code" class.
13436 + Improved support for custom roles
13438 - Added `sourceCode` to classes for `:code:` role, and anything
13439 inheriting from it.
13440 - Add the name of the custom role to classes if the Inline
13441 constructor supports Attr.
13442 - If the custom role directive does not specify a parent role,
13443 inherit from the `:span:` role.
13445 This differs somewhat from the `rst2xml.py` behavior. If a custom
13446 role inherits from another custom role, Pandoc will attach both
13447 roles' names as classes. `rst2xml.py` will only use the class of
13448 the directly invoked role (though in the case of inheriting from a
13449 `:code:` role with a `:language:` defined, it will also provide the
13450 inherited language as a class).
13451 + Warn about ignored fields in role directives.
13453 * LaTeX reader:
13455 + Parse label after caption into a span instead of
13456 inserting an additional paragraph of bracketed text (#1747).
13457 + Parse math environments as inline when possible (#1821).
13458 + Better handling of `\noindent` and `\greektext` (#1783).
13459 + Handle `\texorpdfstring` more gracefully.
13460 + Handle `\cref` and `\sep` (Wikiwide).
13461 + Support `\smartcite` and `\Smartcite` from biblatex.
13463 * HTML reader:
13465 + Retain display type of MathML output (#1719, Matthew Pickering).
13466 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
13467 + Make `embed` tag either block or inline (#1756).
13469 * DocBook reader:
13471 + Handle `keycombo`, `keycap` (#1815).
13472 + Get string content in inner tags for literal elements (#1816).
13473 + Handle `menuchoice` elements better, with a `>` between (#1817).
13474 + Include `id` on section headers (#1818).
13475 + Document/test "type" as implemented (Brian O'Sullivan).
13476 + Add support for calloutlist and callout (Brian O'Sullivan).
13477 We treat a calloutlist as a bulleted list. This works well in practice.
13478 + Add support for `classname` (Bryan O'Sullivan).
13480 * Docx reader:
13482 + Fix window path for image lookup (Jesse Rosenthal).
13483 Don't use os-sensitive "combine", since we always want the paths in our
13484 zip-archive to use forward-slashes.
13485 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
13486 When users number their headers, Word understands that as a single item
13487 enumerated list. We make the assumption that such a list is, in fact,
13488 a header.
13489 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
13490 There could be new top-level headers after making lists, so we have to
13491 rewrite links after that.
13492 + Use polyglot header list (Jesse Rosenthal).
13493 We're just keeping a list of header formats that different languages
13494 use as their default styles. At the moment, we have English, German,
13495 Danish, and French. We can continue to add to this.
13496 This is simpler than parsing the styles file, and perhaps less
13497 error-prone, since there seems to be some variations, even within a
13498 language, of how a style file will define headers.
13499 + Remove header class properly in other langs (Jesse Rosenthal).
13500 When we encounter one of the polyglot header styles, we want to remove
13501 that from the par styles after we convert to a header. To do that, we
13502 have to keep track of the style name, and remove it appropriately.
13503 + Account for external link URLs with anchors. Previously, if a URL
13504 had an anchor, the reader would incorrectly identify it as an
13505 internal link and return only the anchor as URL. (Caleb McDaniel)
13506 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
13508 * Org reader:
13510 + Added state changing blanklines (Jesse Rosenthal).
13511 This allows us to emphasize at the beginning of a new paragraph (or, in
13512 general, after blank lines).
13513 + Fixed bug with bulleted lists:
13515 - a
13516 - b
13517 * c
13519 was being parsed as a list, even though an unindented `*`
13520 should make a heading. See
13521 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
13522 + Org reader: absolute, relative paths in link (#1741, Albert
13523 Krewinkel). The org reader was too restrictive when parsing links;
13524 some relative links and links to files given as absolute paths
13525 were not recognized correctly.
13526 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
13527 This is important for use in gitit, which uses empty links
13528 for wikilinks.
13529 + Respect indent when parsing Org bullet lists (#1650, Timothy
13530 Humphries). Fixes issue with top-level bullet list parsing.
13531 + Fix indent issue for definition lists (Timothy Humphries,
13532 see #1650, #1698, #1680).
13533 + Parse multi-inline terms correctly in definition list (#1649,
13534 Matthew Pickering).
13535 + Fix rules for emphasis recognition (Albert Krewinkel).
13536 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
13537 strings. This is wrong, as `,` and `'` are forbidden border chars and
13538 may not occur on the inner border of emphasized text.
13539 + Drop COMMENT document trees (Albert Krewinkel).
13540 Document trees under a header starting with the word `COMMENT` are
13541 comment trees and should not be exported. Those trees are dropped
13542 silently (#1678).
13543 + Properly handle links to `file:target` (Albert Krewinkel).
13544 Org links like `[[file:target][title]]` were not handled correctly,
13545 parsing the link target verbatim. The org reader is changed such that
13546 the leading `file:` is dropped from the link target (see #756, #1812).
13547 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
13548 Org supports special symbols which can be included using LaTeX syntax,
13549 but are actually MathML entities. Examples for this are
13550 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
13551 or `\copy` (the copyright sign ©)
13553 * EPUB reader:
13555 + URI handling improvements. Now we outsource most of the work to
13556 `fetchItem'`. Also, do not include queries in file extensions (#1671).
13558 * LaTeX writer:
13560 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
13561 + Handle consecutive linebreaks (#1733).
13562 + Protect graphics in headers (Jesse Rosenthal).
13563 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
13564 + Put `~` before header in list item text (Jesse Rosenthal).
13565 Because of the built-in line skip, LaTeX can't handle a section header
13566 as the first element in a list item.
13567 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
13568 + Better handling of display math in simple tables (#1754).
13569 We convert display math to inline math in simple tables,
13570 since LaTeX can't deal with display math in simple tables.
13571 + Escape spaces in code (#1694, Bjorn Buckwalter).
13573 * MediaWiki writer:
13575 + Fixed links with URL = text. Previously these were rendered as bare
13576 words, even if the URL was not an absolute URL (#1825).
13578 * ICML writer:
13580 + Don't force all citations into footnotes.
13582 * RTF writer:
13584 + Add blankline at end of output (#1732, Matthew Pickering).
13586 * RST writer:
13588 + Ensure blank line after figure.
13589 + Avoid excess whitespace after last list item (#1777).
13590 + Wrap line blocks with spaces before continuations (#1656).
13591 + Fixed double-rendering of footnotes in RST tables (#1769).
13593 * DokuWiki writer:
13595 + Better handling of block quotes. This change ensures that
13596 multiple paragraph blockquotes are rendered using native `>`
13597 rather than as HTML (#1738).
13598 + Fix external images (#1739). Preface relative links with ":",
13599 absolute URIs without. (Timothy Humphries)
13601 * HTML writer:
13603 + Use protocol-relative URL for mathjax.
13604 + Put newline btw img and caption paragraph.
13605 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
13606 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
13607 This adds `KaTeX` to `HTMLMathMethod` (API change).
13608 + Don't double render when `email-obfuscation=none` (#1625, Matthew
13609 Pickering).
13610 + Make header attributes work outside top level (#1711).
13611 Previously they only appeared on top level header elements.
13612 Now they work e.g. in blockquotes.
13614 * ODT writer:
13616 + Correctly handle images without extensions (#1729).
13617 + Strip querystring in ODT write (#1682, Todd Sifleet).
13619 * FB2 writer:
13621 + Add newline to output.
13623 * EPUB writer:
13625 + Don't add `sourceURL` to absolute URIs (#1669).
13626 + Don't use unsupported `opf:title-type` for epub2.
13627 + Include "landmarks" section in nav document for epub3 (#1757).
13628 + Removed playOrder from navpoint elements in ncx file (#1760).
13629 These aren't required, and they make manual modification of epubs
13630 difficult.
13631 + Extract title even from structured title.
13632 + Don't include nav node in spine unless `--toc` was requested.
13633 Previously we included it in the spine with `linear="no"`, leading
13634 to odd results in some readers (#1593).
13635 + Fixed absolute URI detection (#1672).
13636 + Correctly resolve relative URIs (#1671).
13637 + Use regular page template for `nav.xhtml`, including doctype (#1759).
13639 * Docx writer:
13641 + Put docx table captions above tables (#1641, Nikolay Yakimov).
13642 + Get the page width from the reference docx file, and use
13643 it to scale images that are too large to fit (Grégory Bataille).
13644 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
13645 are inferred based on `<w:name val="heading #">` fallback, if there
13646 are no en-US "Heading#" styles
13647 + Look in user data dir for archive `reference.docx`.
13648 + Renumber header and footer relationships to avoid collisions (Jesse
13649 Rosenthal). We previously took the old relationship names of the
13650 headers and footer in secptr. That led to collisions. We now make
13651 a map of available names in the relationships file, and then rename
13652 in secptr.
13654 * ConTeXt writer:
13656 + Add function toLabel (Mark Szepieniec).
13657 This function can be used to sanitize reference labels so that
13658 they do not contain any of the illegal characters \#[]",{}%()|= .
13659 Currently only Links have their labels sanitized, because they
13660 are the only Elements that use passed labels.
13662 * `Text.Pandoc.Shared`:
13664 + Moved import of `toChunks` outside of CPP conditional (#1590).
13665 + Fix `inDirectory` to reset to the original directory in case
13666 an exception occurs (Freiric Barral).
13668 * Templates:
13670 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
13671 Thanks to bluebirch.
13672 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
13673 (#1616).
13674 + LaTeX template: Add shorthands=off to babel options (#1648).
13675 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
13676 This aids styling, making it possible for example to set 0 margins
13677 on the title page (#1758).
13678 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
13679 Previously we just expected 'title', 'subtitle', 'author', 'date'.
13680 Now we still support those, but also support the format recommended
13681 for epub metadata in the pandoc README:
13683 ---
13684 title:
13685 - type: main
13686 text: My Book
13687 - type: subtitle
13688 text: An investigation of metadata
13689 creator:
13690 - role: author
13691 text: John Smith
13692 - role: editor
13693 text: Sarah Jones
13694 identifier:
13695 - scheme: DOI
13696 text: doi:10.234234.234/33
13697 publisher: My Press
13698 rights: (c) 2007 John Smith, CC BY-NC
13699 ...
13701 * `Text.Pandoc.Templates.getDefaultTemplate`:
13702 don't fail when called with "fb2" (#1660).
13704 * `Text.Pandoc.Parsing`:
13706 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
13707 For example: `$x = \text{the $n$th root of $y$}` (#1677).
13708 + Change `parseFromString` to fail if not all input is consumed.
13709 (Matthew Pickering)
13710 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
13711 used by more readers (API change, Daniel Bergey).
13713 * `Text.Pandoc.Pretty`:
13715 + Improve performance of `realLength` (Matthew Pickering).
13716 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
13717 were getting at the end of markdown fragments (as well as rst, org,
13718 etc.) (#1705).
13720 * `Text.Pandoc.MIME`:
13722 + Add mime type for WebVTT (Jason Ronallo).
13723 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
13724 This is needed for epub3 validation.
13726 * `Text.Pandoc.MediaBag`:
13728 + Fix Windows specific path problems (#1597).
13730 * `Text.Pandoc.Shared`:
13732 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
13734 * Link the test suite using `-threaded`.
13735 This allows the test suite to be run using `+RTS -N`.
13737 * Added `network` dependency under `network-uri` flag in test section.
13739 * Give better error messages when someone tries to convert from
13740 pdf, doc, odt (#1683).
13742 * Added `track` to list of tags treated by `--self-contained` (#1664).
13745## pandoc 1.13.1 (2014-08-30)
13747 * Fixed `--self-contained` with Windows paths (#1558).
13748 Previously `C:\foo.js` was being wrongly interpreted as a URI.
13750 * HTML reader: improved handling of tags that can be block or inline.
13751 Previously a section like this would be enclosed in a paragraph,
13752 with RawInline for the video tags (since video is a tag that can
13753 be either block or inline):
13755 <video controls="controls">
13756 <source src="../videos/test.mp4" type="video/mp4" />
13757 <source src="../videos/test.webm" type="video/webm" />
13758 <p>
13759 The videos can not be played back on your system.<br/>
13760 Try viewing on Youtube (requires Internet connection):
13761 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
13762 Youtube</a>.
13763 </p>
13764 </video>
13766 This change will cause the video and source tags to be parsed
13767 as RawBlock instead, giving better output.
13768 The general change is this: when we're parsing a "plain" sequence
13769 of inlines, we don't parse anything that COULD be a block-level tag.
13771 * Docx reader:
13773 + Be sensitive to user styles. Note that "Hyperlink" is
13774 "blacklisted," as we don't want the default underline styling to be
13775 inherited by all links by default (Jesse Rosenthal).
13776 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
13777 This makes to docx reader's native output fit with the way the markdown
13778 reader understands its markdown output.
13780 * Txt2Tags reader:
13782 + Header is now parsed only if standalone flag is set (Matthew Pickering).
13783 + The header is now parsed as meta information. The first line is the
13784 `title`, the second is the `author` and third line is the `date`
13785 (Matthew Pickering).
13786 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
13787 + Fixed crash when reading from stdin.
13789 * Textile writer: Extended the range of cases where native textile
13790 tables will be used (as opposed to raw HTML): we now handle any
13791 alignment type, but only for simple tables with no captions.
13793 * EPUB writer: Don't use page-progression-direction in EPUB2, which
13794 doesn't support it. Also, if page-progression-direction not specified
13795 in metadata, don't include the attribute even in EPUB3; not including it
13796 is the same as including it with the value "default", as we did before.
13797 (#1550)
13799 * Org writer: Accept example lines with indentation at the beginning
13800 (Calvin Beck).
13802 * DokuWiki writer:
13804 + Refactor to use Reader monad (Matthew Pickering).
13805 + Avoid using raw HTML in table cells; instead, use `\\`
13806 instead of newlines (Jesse Rosenthal).
13807 + Properly handle HTML table cell alignments, and use spacing
13808 to make the tables look prettier (#1566).
13810 * Docx writer:
13812 + Bibliography entries get `Bibliography` style (#1559).
13813 + Implement change tracking (Jesse Rosenthal).
13815 * LaTeX writer:
13817 + Fixed a bug that caused a table caption to repeat across all pages
13818 (Jose Luis Duran).
13819 + Improved vertical spacing in tables and made it customizable using
13820 standard lengths set by booktab. See
13821 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
13822 (Jose Luis Duran).
13823 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
13824 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
13825 + Made horizontal rules more flexible (Jose Luis Duran).
13827 * Text.Pandoc.MIME:
13829 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
13830 Code cleanups (Artyom Kazak).
13832 * Templates:
13834 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
13835 thanks lemzwerg).
13837 * Improved OSX build procedure.
13839 * Added `network-uri` flag, to deal with split of `network-uri` from
13840 `network`.
13842 * Fix build dependencies for the `trypandoc` flag, so that they are
13843 ignored if `trypandoc` flag is set to False (Gabor Pali).
13845 * Updated README to remove outdated claim that `--self-contained`
13846 looks in the user data directory for missing files.
13848## pandoc 1.13.0.1 (2014-08-17)
13850 * Docx writer:
13852 + Fixed regression which bungled list numbering (#1544), causing
13853 all lists to appear as basic ordered lists.
13854 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
13855 Added a property to all table rows where the sum of column widths
13856 is specified in pct (fraction of 5000). This helps persuade Word
13857 to lay out the table with the widths we specify.
13859 * Fixed a bug in Windows 8 which caused pandoc not to find the
13860 `pandoc-citeproc` filter (#1542).
13862 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
13863 Most significantly, the reader now uses Builder, leading to some
13864 performance improvements.
13866 * HTML reader: Parse appropriately styled span as SmallCaps.
13868 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
13869 `superscript`, and `subscript` extensions, respectively, are
13870 deactivated (#1127).
13872 * Added `trypandoc` flag to build CGI executable used in the online
13873 demo.
13875 * Makefile: Added 'quick', 'osxpkg' targets.
13877 * Updated README in templates to indicate templates license.
13878 The templates are dual-licensed, BSD3 and GPL2+.
13880## pandoc 1.13 (15 August 2014)
13882### New features
13884 * Added `docx` as an input format (Jesse Rosenthal). The docx
13885 reader includes conversion of native Word equations to pandoc
13886 LaTeX `Math` elements. Metadata is taken from paragraphs at the
13887 beginning of the document with styles `Author`, `Title`, `Subtitle`,
13888 `Date`, and `Abstract`.
13890 * Added `epub` as an input format (Matthew Pickering). The epub
13891 reader includes conversion of MathML to pandoc LaTeX `Math`
13892 elements.
13894 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
13895 Txt2tags is a lightweight markup format described at
13896 <http://txt2tags.org/>.
13898 * Added `dokuwiki` as an output format (Clare Macrae).
13900 * Added `haddock` as an output format.
13902 * Added `--extract-media` option to extract media contained in a zip
13903 container (docx or epub) while adjusting image paths to point to the
13904 extracted images.
13906 * Added a new markdown extension, `compact_definition_lists`, that
13907 restores the syntax for definition lists of pandoc 1.12.x, allowing
13908 tight definition lists with no blank space between items, and
13909 disallowing lazy wrapping. (See below under behavior changes.)
13911 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
13913 * Added extensions `native_spans` and `native_divs` to activate
13914 parsing of material in HTML span or div tags as Pandoc Span
13915 inlines or Div blocks.
13917 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
13918 Textile, and MediaWiki readers. This is an option intended
13919 for debugging parsing problems; ordinary users should not need
13920 to use it.
13922### Behavior changes
13924 * Changed behavior of the `markdown_attribute` extension, to bring
13925 it in line with PHP markdown extra and multimarkdown. Setting
13926 `markdown="1"` on an outer tag affects all contained tags,
13927 recursively, until it is reversed with `markdown="0"` (#1378).
13929 * Revised markdown definition list syntax (#1429). Both the reader
13930 and writer are affected. This change brings pandoc's definition list
13931 syntax into alignment with that used in PHP markdown extra and
13932 multimarkdown (with the exception that pandoc is more flexible about
13933 the definition markers, allowing tildes as well as colons). Lazily
13934 wrapped definitions are now allowed. Blank space is required
13935 between list items. The space before a definition is used to determine
13936 whether it is a paragraph or a "plain" element. **WARNING: This change
13937 may break existing documents!** Either check your documents for
13938 definition lists without blank space between items, or use
13939 `markdown+compact_definition_lists` for the old behavior.
13941 * `.numberLines` now works in fenced code blocks even if no language
13942 is given (#1287, jgm/highlighting-kate#40).
13944 * Improvements to `--filter`:
13946 + Don't search PATH for a filter with an explicit path.
13947 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
13948 the system path, even if there was a `caps.py` in the working directory.
13949 + Respect shebang if filter is executable (#1389).
13950 + Don't print misleading error message.
13951 Previously pandoc would say that a filter was not found,
13952 even in a case where the filter had a syntax error.
13954 * HTML reader:
13956 + Parse `div` and `span` elements even without `--parse-raw`,
13957 provided `native_divs` and `native_spans` extensions are set.
13958 Motivation: these now generate native pandoc Div and Span
13959 elements, not raw HTML.
13960 + Parse EPUB-specific elements if the `epub_html_exts`
13961 extension is enabled. These include `switch`, `footnote`,
13962 `rearnote`, `noteref`.
13964 * Org reader:
13966 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
13967 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
13968 `\cite{Coffee}`), can be used without any further escaping (Albert
13969 Krewinkel).
13971 * Textile reader and writer:
13973 + The `raw_tex` extension is no longer set by default. You can
13974 enable it with `textile+raw_tex`.
13976 * DocBook reader:
13978 + Support `equation`, `informalequation`, `inlineequation` elements with
13979 `mml:math` content. This is converted into LaTeX and put into a Pandoc
13980 Math inline.
13982 * Revised `plain` output, largely following the style of Project
13983 Gutenberg:
13985 + Emphasis is rendered with `_underscores_`, strong emphasis
13986 with ALL CAPS.
13987 + Headings are rendered differently, with space to set them off,
13988 not with setext style underlines. Level 1 headers are ALL CAPS.
13989 + Math is rendered using unicode when possible, but without the
13990 distracting emphasis markers around variables.
13991 + Footnotes use a regular `[n]` style.
13993 * Markdown writer:
13995 + Horizontal rules are now a line across the whole page.
13996 + Prettier pipe tables. Columns are now aligned (#1323).
13997 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
13998 no longer emits any raw HTML, including span and div tags
13999 generated by Span and Div elements.
14000 + Use span with style for `SmallCaps` (#1360).
14002 * HTML writer:
14004 + Autolinks now have class `uri`, and email autolinks have class
14005 `email`, so they can be styled.
14007 * Docx writer:
14009 + Document formatting is carried over from `reference.docx`.
14010 This includes margins, page size, page orientation, header,
14011 and footer, including images in headers and footers.
14012 + Include abstract (if present) with `Abstract` style (#1451).
14013 + Include subtitle (if present) with `Subtitle` style, rather
14014 than tacking it on to the title (#1451).
14016 * Org writer:
14018 + Write empty span elements with an id attribute as org anchors.
14019 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
14021 * LaTeX writer:
14023 + Put table captions above tables, to match the conventional
14024 standard. (Previously they appeared below tables.)
14025 + Use `\(..\)` instead of `$..$` for inline math (#1464).
14026 + Use `\nolinkurl` in email autolinks. This allows them to be styled
14027 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
14028 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
14029 curly quotes in the PDF output (#1364).
14030 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
14031 do not appear before the overlays in which their markers appear
14032 (#1525).
14033 + Don't produce a `\label{..}` for a Div or Span element. Do produce
14034 a `\hyperdef{..}` (#1519).
14036 * EPUB writer:
14038 + If the metadata includes `page-progression-direction` (which can be
14039 `ltr` or `rtl`, the `page-progression-direction` attribute will
14040 be set in the EPUB spine (#1455).
14042 * Custom lua writers:
14044 + Custom writers now work with `--template`.
14045 + Removed HTML header scaffolding from `sample.lua`.
14046 + Made citation information available in lua writers.
14048 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
14049 adjacent `RawBlock`s when possible.
14051### API changes
14053 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
14055 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
14056 Pickering).
14058 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
14059 Pickering).
14061 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
14062 (Clare Macrae).
14064 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
14066 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
14067 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
14068 readers return a pair of a `Pandoc` document and a `MediaBag` with
14069 the media resources they contain. This can be extracted using
14070 `--extract-media`. Writers that incorporate media (PDF, Docx,
14071 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
14072 for resources in the `MediaBag` generated by the reader, in addition to
14073 the file system or web.
14075 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
14076 Renamed `readTeXMath'` to `texMathToInlines`.
14078 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
14079 `readers` now associates names of readers with `Reader`
14080 structures. This allows inclusion of readers, like the docx
14081 reader, that take binary rather than textual input.
14083 * `Text.Pandoc.Shared`:
14085 + Added `capitalize` (Artyom Kazak), and replaced uses of
14086 `map toUpper` (which give bad results for many languages).
14087 + Added `collapseFilePath`, which removes intermediate `.` and
14088 `..` from a path (Matthew Pickering).
14089 + Added `fetchItem'`, which works like `fetchItem` but searches
14090 a `MediaBag` before looking on the net or file system.
14091 + Added `withTempDir`.
14092 + Added `removeFormatting`.
14093 + Added `extractSpaces` (from HTML reader) and generalized its type
14094 so that it can be used by the docx reader (Matthew Pickering).
14095 + Added `ordNub`.
14096 + Added `normalizeInlines`, `normalizeBlocks`.
14097 + `normalize` is now `Pandoc -> Pandoc` instead of
14098 `Data a :: a -> a`. Some users may need to change their uses of
14099 `normalize` to the newly exported `normalizeInlines` or
14100 `normalizeBlocks`.
14102 * `Text.Pandoc.Options`:
14104 + Added `writerMediaBag` to `WriterOptions`.
14105 + Removed deprecated and no longer used `readerStrict` in
14106 `ReaderOptions`. This is handled by `readerExtensions` now.
14107 + Added `Ext_compact_definition_lists`.
14108 + Added `Ext_epub_html_exts`.
14109 + Added `Ext_native_divs` and `Ext_native_spans`.
14110 This allows users to turn off the default pandoc behavior of
14111 parsing contents of div and span tags in markdown and HTML
14112 as native pandoc Div blocks and Span inlines.
14114 * `Text.Pandoc.Parsing`:
14116 + Generalized `readWith` to `readWithM` (Matthew Pickering).
14117 + Export `runParserT` and `Stream` (Matthew Pickering).
14118 + Added `HasQuoteContext` type class (Matthew Pickering).
14119 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
14120 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
14121 `applyMacros` (Matthew Pickering).
14122 + Added custom `token` (Matthew Pickering).
14123 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
14124 track of the ending tag we're waiting for when we're parsing inside
14125 HTML block tags.
14126 + Added `stateMarkdownAttribute` to `ParserState`. This is used
14127 to keep track of whether the markdown attribute has been set in
14128 an enclosing tag.
14129 + Generalized type of `registerHeader`, using new type classes
14130 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
14131 Pickering). These allow certain common functions to be reused
14132 even in parsers that use custom state (instead of `ParserState`),
14133 such as the MediaWiki reader.
14134 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
14135 and generalized their types (Matthew Pickering).
14137 * `Text.Pandoc.Pretty`:
14139 + Added `nestle`.
14140 + Added `blanklines`, which guarantees a certain number of blank lines
14141 (and no more).
14143### Bug fixes
14145 * Markdown reader:
14147 + Fixed parsing of indented code in list items. Indented code
14148 at the beginning of a list item must be indented eight spaces
14149 from the margin (or edge of the container), or four spaces
14150 from the list marker, whichever is greater.
14151 + Fixed small bug in HTML parsing with `markdown_attribute`, which
14152 caused incorrect tag nesting for input like
14153 `<aside markdown="1">*hi*</aside>`.
14154 + Fixed regression with intraword underscores (#1121).
14155 + Improved parsing of inline links containing quote characters (#1534).
14156 + Slight rewrite of `enclosure`/`emphOrStrong` code.
14157 + Revamped raw HTML block parsing in markdown (#1330).
14158 We no longer include trailing spaces and newlines in the
14159 raw blocks. We look for closing tags for elements (but without
14160 backtracking). Each block-level tag is its own `RawBlock`;
14161 we no longer try to consolidate them (though `--normalize` will do so).
14162 + Combine consecutive latex environments. This helps when you have
14163 two minipages which can't have blank lines between them (#690, #1196).
14164 + Support smallcaps through span.
14165 `<span style="font-variant:small-caps;">foo</span>` will be
14166 parsed as a `SmallCaps` inline, and will work in all output
14167 formats that support small caps (#1360).
14168 + Prevent spurious line breaks after list items (#1137). When the
14169 `hard_line_breaks` option was specified, pandoc would formerly
14170 produce a spurious line break after a tight list item.
14171 + Fixed table parsing bug (#1333).
14172 + Handle `c++` and `objective-c` as language identifiers in
14173 github-style fenced blocks (#1318).
14174 + Inline math must have nonspace before final `$` (#1313).
14176 * LaTeX reader:
14178 + Handle comments at the end of tables. This resolves the issue
14179 illustrated in <http://stackoverflow.com/questions/24009489>.
14180 + Correctly handle table rows with too few cells. LaTeX seems to
14181 treat them as if they have empty cells at the end (#241).
14182 + Handle leading/trailing spaces in `\emph` better.
14183 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
14184 so that we don't get things like `* hi *` in markdown output.
14185 Also applies to `textbf` and some other constructions (#1146).
14186 + Don't assume preamble doesn't contain environments (#1338).
14187 + Allow (and discard) optional argument for `\caption` (James Aspnes).
14189 * HTML reader:
14191 + Fixed major parsing problem with HTML tables. Table cells were
14192 being combined into one cell (#1341).
14193 + Fixed performance issue with malformed HTML tables.
14194 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
14195 + Allow space between `<col>` and `</col>`.
14196 + Added `audio` and `source` in `eitherBlockOrInline`.
14197 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
14198 `blockTags` to `eitherBlockOrInline`.
14199 + `map` and `object` were mistakenly in both lists; they have been removed
14200 from `blockTags`.
14201 + Ignore `DOCTYPE` and `xml` declarations.
14203 * MediaWiki reader:
14205 + Don't parse backslash escapes inside `<source>` (#1445).
14206 + Tightened up template parsing.
14207 The opening `{{` must be followed by an alphanumeric or `:`.
14208 This prevents the exponential slowdown in #1033.
14209 + Support "Bild" for images.
14211 * DocBook reader:
14213 + Better handle elements inside code environments. Pandoc's document
14214 model does not allow structure inside code blocks, but at least this way
14215 we preserve the text (#1449).
14216 + Support `<?asciidoc-br?>` (#1236).
14218 * Textile reader:
14220 + Fixed list parsing. Lists can now start without an intervening
14221 blank line (#1513).
14222 + HTML block-level tags that do not start a line are parsed as
14223 inline HTML and do not interrupt paragraphs (as in RedCloth).
14225 * Org reader:
14227 + Make tildes create inline code (#1345). Also relabeled `code` and
14228 `verbatim` parsers to accord with the org-mode manual.
14229 + Respect `:exports` header argument in code blocks (Craig Bosma).
14230 + Fixed tight lists with sublists (#1437).
14232 * EPUB writer:
14234 + Avoid excess whitespace in `nav.xhtml`. This should improve
14235 TOC view in iBooks (#1392).
14236 + Fixed regression on cover image.
14237 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
14238 because the metadata id was not correct. Now we derive the id from the
14239 actual cover image filename, which we preserve rather than using
14240 "cover-image."
14241 + Keep newlines between block elements. This allows
14242 easier diff-ability (#1424).
14243 + Use `stringify` instead of custom `plainify`.
14244 + Use `renderTags'` for all tag rendering. This properly handles tags
14245 that should be self-closing. Previously `<hr/>` would appear in EPUB
14246 output as `<hr></hr>` (#1420).
14247 + Better handle HTML media tags.
14248 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
14249 can have only one dc:date, so only the first one is used.
14251 * LaTeX writer:
14253 + Correctly handle figures in notes. Notes can't contain figures in
14254 LaTeX, so we fake it to avoid an error (#1053).
14255 + Fixed strikeout + highlighted code (#1294).
14256 Previously strikeout highlighted code caused an error.
14258 * ConTeXt writer:
14260 + Improved detection of autolinks with URLs containing escapes.
14262 * RTF writer:
14264 + Improved image embedding: `fetchItem'` is now used to get the
14265 images, and calculated image sizes are indicated in the RTF.
14266 + Avoid extra paragraph tags in metadata (#1421).
14268 * HTML writer:
14270 + Deactivate "incremental" inside slide speaker notes (#1394).
14271 + Don't include empty items in the table of contents for
14272 slide shows. (These would result from creating a slide
14273 using a horizontal rule.)
14275 * MediaWiki writer:
14277 + Minor renaming of `st` prefixed names.
14279 * AsciiDoc writer:
14281 + Double up emphasis and strong emphasis markers in intraword
14282 contexts, as required by asciidoc (#1441).
14284 * Markdown writer:
14286 + Avoid wrapping that might start a list, blockquote, or header (#1013).
14287 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
14288 + Don't use braced attributes for fenced code (#1416).
14289 If `Ext_fenced_code_attributes` is not set, the first class
14290 attribute will be printed after the opening fence as a bare word.
14291 + Separate adjacent lists of the same kind with an HTML comment (#1458).
14293 * PDF writer:
14295 + Fixed treatment of data uris for images (#1062).
14297 * Docx writer:
14299 + Use Compact style for empty table cells (#1353).
14300 Otherwise we get overly tall lines when there are empty
14301 table cells and the other cells are compact.
14302 + Create overrides per-image for `media/` in reference docx.
14303 This should be somewhat more robust and cover more types of images.
14304 + Improved `entryFromArchive` to avoid an unneeded parse.
14305 + Section numbering carries over from reference.docx (#1305).
14306 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
14307 we assign numbers based on the list marker styles.
14309 * `Text.Pandoc.Options`:
14311 + Removed `Ext_fenced_code_attributes` from `markdown_github`
14312 extensions.
14314 * `Text.Pandoc.ImageSize`:
14316 + Use default instead of failing if image size not found
14317 in exif header (#1358).
14318 + ignore unknown exif header tag rather than crashing.
14319 Some images seem to have tag type of 256, which was causing
14320 a runtime error.
14322 * `Text.Pandoc.Shared`:
14324 + `fetchItem`: unescape URI encoding before reading local file (#1427).
14325 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
14326 doing mime lookup, to improve mime type guessing.
14327 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
14328 other things are treated as relative URIs if `sourceURL` is `Just _`,
14329 otherwise as file paths on the local file system.
14330 + `fetchItem` now properly handles links without a protocol (#1477).
14331 + `fetchItem` now escapes characters not allowed in URIs before trying
14332 to parse the URIs.
14333 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
14335 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
14336 needed to resolve relative URLs when we fetch resources (#750).
14338 * `Text.Pandoc.Parsing`
14340 + Simplified `dash` and `ellipsis` (#1419).
14341 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
14342 + Generalized functions to use `ParsecT` (Matthew Pickering).
14343 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
14344 Pickering).
14346### Template changes
14348 * Added haddock template.
14349 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
14350 be "advisory" in HTML5, but kindlegen seems to require them.
14351 * EPUB3: Put title page in section with `epub:type="titlepage"`.
14352 * LaTeX: Made `\subtitle` work properly (#1327).
14353 * LaTeX/Beamer: remove conditional around date (#1321).
14354 * LaTeX: Added `lot` and `lof` variables, which can be set to
14355 get `\listoftables` and `\listoffigures` (#1407). Note that
14356 these variables can be set at the command line with `-Vlot -Vlof`
14357 or in YAML metadata.
14359### Under the hood improvements
14361 * Rewrote normalize for efficiency (#1385).
14363 * Rewrote Haddock reader to use `haddock-library` (#1346).
14365 + This brings pandoc's rendering of haddock markup in line
14366 with the new haddock.
14367 + Fixed line breaks in `@` code blocks.
14368 + alex and happy are no longer build-depends.
14370 * Added `Text.Pandoc.Compat.Directory` to allow building against
14371 different versions of the `directory` library.
14373 + Added `Text.Pandoc.Compat.Except` to allow building against
14374 different versions of `mtl`.
14376 * Code cleanup in some writers, using Reader monad to avoid
14377 passing options parameter around (Matej Kollar).
14379 * Improved readability in `pandoc.hs`.
14381 * Miscellaneous code cleanups (Artyom Kazak).
14383 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
14384 Thompson).
14386 * Changed `http-conduit` flag to `https`. Depend on `http-client`
14387 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
14388 depends on `conduit` via `yaml`.)
14390 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
14391 This change to highlighting-kate means that PHP fragments no longer need
14392 to start with `<?php`. It also fixes a serious bug causing failures with
14393 ocaml and fsharp.
14395 * Require latest `texmath`. This fixes `\tilde{E}` and allows
14396 `\left` to be used with `]`, `)` etc. (#1319), among many other
14397 improvements.
14399 * Require latest `zip-archive`. This has fixes for unicode path names.
14401 * Added tests for plain writer.
14403 * `Text.Pandoc.Templates`:
14405 + Fail informatively on template syntax errors.
14406 With the move from parsec to attoparsec, we lost good error
14407 reporting. In fact, since we weren't testing for end of input,
14408 malformed templates would fail silently. Here we revert back to
14409 Parsec for better error messages.
14410 + Use `ordNub` (#1022).
14412 * Benchmarks:
14414 + Made benchmarks compile again (Artyom Kazak).
14415 + Fixed so that the failure of one benchmark does not prevent others
14416 from running (Artyom Kazak).
14417 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
14418 + Changed benchmark to use only the test suite, so that benchmarks
14419 run more quickly.
14421 * Windows build script:
14423 + Add `-windows` to file name.
14424 + Use one install command for pandoc, pandoc-citeproc.
14425 + Force install of pandoc-citeproc.
14427 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
14428 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
14429 will extract it into a folder named `SOMETHING.pkg`, which it
14430 will interpret as a defective package (#1308).
14432 * `README`:
14434 + Made headers for all extensions so they have IDs and can be
14435 linked to (Beni Cherniavsky-Paskin).
14436 + Fixed typos (Phillip Alday).
14437 + Fixed documentation of attributes (#1315).
14438 + Clarified documentation on small caps (#1360).
14439 + Better documentation for `fenced_code_attributes` extension
14440 (Caleb McDaniel).
14441 + Documented fact that you can put YAML metadata in a separate file
14442 (#1412).
14445## pandoc 1.12.4.2 (2014-05-14)
14447 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
14449 * Shared: `addMetaValue` now behaves slightly differently:
14450 if both the new and old values are lists, it concatenates their
14451 contents to form a new list.
14453 * LaTeX reader:
14455 + Set `bibliography` in metadata from `\bibliography` or
14456 `\addbibresource` command.
14457 + Don't error on `%foo` with no trailing newline.
14459 * Org reader:
14461 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
14462 + Fix parsing of blank lines within blocks (Albert Krewinkel).
14463 + Support pandoc citation extension (Albert Krewinkel). This can
14464 be turned off by specifying `org-citation` as the input format.
14466 * Markdown reader:
14468 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
14469 other readers (Albert Krewinkel).
14471 * `Text.Pandoc.Parsing`:
14473 + Added `citeKey` (see above).
14474 + Added `HasLastStrPosition` type class and `updateLastStrPos`
14475 and `notAfterString` functions.
14477 * Updated copyright notices (Albert Krewinkel).
14479 * Added default.icml to data files so it installs with the package.
14481 * OSX package:
14483 + The binary is now built with options to ensure that it can be
14484 used with OSX 10.6+.
14485 + Moved OSX package materials to osx directory.
14486 + Added OSX package uninstall script, included in the zip container
14487 (thanks to Daniel T. Staal).
14489## pandoc 1.12.4 (2014-05-07)
14491 * Made it possible to run filters that aren't executable
14492 (#1096). Pandoc first tries to find the executable (searching
14493 the path if path isn't given). If it fails, but the file
14494 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
14495 extension, pandoc runs the filter using the appropriate
14496 interpreter. This should make it easier to use filters on
14497 Windows, and make it more convenient for everyone.
14499 * Added Emacs org-mode reader (Albert Krewinkel).
14501 * Added InDesign ICML Writer (mb21).
14503 * MediaWiki reader:
14505 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
14506 + Fixed bug in certain nested lists (#1213). If a level 2 list was
14507 followed by a level 1 list, the first item of the level 1 list
14508 would be lost.
14509 + Handle table rows containing just an HTML comment (#1230).
14511 * LaTeX reader:
14513 + Give better location information on errors, pointing to line
14514 numbers within included files (#1274).
14515 + LaTeX reader: Better handling of `table` environment (#1204).
14516 Positioning options no longer rendered verbatim.
14517 + Better handling of figure and table with caption (#1204).
14518 + Handle `@{}` and `p{length}` in tabular. The length is not actually
14519 recorded, but at least we get a table (#1180).
14520 + Properly handle `\nocite`. It now adds a `nocite` metadata
14521 field. Citations there will appear in the bibliography but not
14522 in the text (unless you explicitly put a `$nocite$` variable
14523 in your template).
14525 * Markdown reader:
14527 + Ensure that whole numbers in YAML metadata are rendered without
14528 decimal points. (This became necessary with changes to aeson
14529 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
14530 + Fixed regression on line breaks in strict mode (#1203).
14531 + Small efficiency improvements.
14532 + Improved parsing of nested `div`s. Formerly a closing `div` tag
14533 would be missed if it came right after other block-level tags.
14534 + Avoid backtracking when closing `</div>` not found.
14535 + Fixed bug in reference link parsing in `markdown_mmd`.
14536 + Fixed a bug in list parsing (#1154). When reading a raw list
14537 item, we now strip off up to 4 spaces.
14538 + Fixed parsing of empty reference link definitions (#1186).
14539 + Made one-column pipe tables work (#1218).
14541 * Textile reader:
14543 + Better support for attributes. Instead of being ignored, attributes
14544 are now parsed and included in Span inlines. The output will be a bit
14545 different from stock textile: e.g. for `*(foo)hi*`, we'll get
14546 `<em><span class="foo">hi</span></em>` instead of
14547 `<em class="foo">hi</em>`. But at least the data is not lost.
14548 + Improved treatment of HTML spans (%) (#1115).
14549 + Improved link parsing. In particular we now pick up on attributes.
14550 Since pandoc links can't have attributes, we enclose the whole link in
14551 a span if there are attributes (#1008).
14552 + Implemented correct parsing rules for inline markup (#1175, Matthew
14553 Pickering).
14554 + Use Builder (Matthew Pickering).
14556 * DocBook reader:
14558 + Better treatment of `formalpara`. We now emit the title (if present)
14559 as a separate paragraph with boldface text (#1215).
14560 + Set metadata `author` not `authors`.
14561 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
14562 Matthew Pickering).
14563 + Converted current meta information parsing in DocBook to a more
14564 extensible version which is aware of the more recent meta
14565 representation (Matthew Pickering).
14567 * HTML reader:
14569 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
14570 (#1248).
14571 + Treat processing instructions & declarations as block. Previously
14572 these were treated as inline, and included in paragraph tags in HTML
14573 or DocBook output, which is generally not what is wanted (#1233).
14574 + Updated `closes` with rules from HTML5 spec.
14575 + Use Builder (Matthew Pickering, #1162).
14577 * RST reader:
14579 + Remove duplicate `http` in PEP links (Albert Krewinkel).
14580 + Make rst figures true figures (#1168, CasperVector)
14581 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
14582 rST parser now supports: all built-in rST roles, new role definition,
14583 role inheritance, though with some limitations.
14584 + Use `author` rather than `authors` in metadata.
14585 + Better handling of directives. We now correctly handle field
14586 lists that are indented more than three spaces. We treat an
14587 `aafig` directive as a code block with attributes, so it can be
14588 processed in a filter (#1212).
14590 * LaTeX writer:
14592 + Mark span contents with label if span has an ID (Albert Krewinkel).
14593 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
14594 + Handle line breaks in simple table cells (#1217).
14595 + Workaround for level 4-5 headers in quotes. These previously produced
14596 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
14597 This adds an `mbox{}` in these contexts to work around the problem.
14598 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
14599 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
14600 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
14601 ligature with LuaLaTeX but `\/` does.
14602 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
14604 * ConTeXt writer: Improved autolinks (#1270).
14606 * DocBook writer:
14608 + Improve handling of hard line breaks in Docbook writer
14609 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
14610 just for the newline character.
14611 + Don't let line breaks inside footnotes influence the enclosing
14612 paragraph (Neil Mayhew).
14613 + Distinguish tight and loose lists in DocBook output, using
14614 `spacing="compact"` (Neil Mayhew, #1250).
14616 * Docx writer: When needed files are not present in the user's
14617 `reference.docx`, fall back on the versions in the `reference.docx`
14618 in pandoc's data files. This fixes a bug that occurs when a
14619 `reference.docx` saved by LibreOffice is used. (#1185)
14621 * EPUB writer:
14623 + Include extension in epub ids. This fixes a problem with duplicate
14624 extensions for fonts and images with the same base name but different
14625 extensions (#1254).
14626 + Handle files linked in raw `img` tags (#1170).
14627 + Handle media in `audio` source tags (#1170).
14628 Note that we now use a `media` directory rather than `images`.
14629 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
14630 will both be incorporated into `content.opf` and the epub container.
14632 * HTML writer:
14634 + Add colgroup around col tags (#877). Also affects EPUB writer.
14635 + Fixed bug with unnumbered section headings. Unnumbered section
14636 headings (with class `unnumbered`) were getting numbers.
14637 + Improved detection of image links. Previously image links with
14638 queries were not recognized, causing `<embed>` to be used instead
14639 of `<img>`.
14641 * Man writer: Ensure that terms in definition lists aren't line wrapped
14642 (#1195).
14644 * Markdown writer:
14646 + Use proper escapes to avoid unwanted lists (#980). Previously we used
14647 0-width spaces, an ugly hack.
14648 + Use longer backtick fences if needed (#1206). If the content contains a
14649 backtick fence and there are attributes, make sure longer fences are
14650 used to delimit the code. Note: This works well in pandoc, but github
14651 markdown is more limited, and will interpret the first string of three
14652 or more backticks as ending the code block.
14654 * RST writer: Avoid stack overflow with certain tables (#1197).
14656 * RTF writer: Fixed table cells containing paragraphs.
14658 * Custom writer:
14660 + Correctly handle UTF-8 in custom lua scripts (#1189).
14661 + Fix bugs with lua scripts with mixed-case filenames and
14662 paths containing `+` or `-` (#1267). Note that `getWriter`
14663 in `Text.Pandoc` no longer returns a custom writer on input
14664 `foo.lua`.
14666 * AsciiDoc writer: Handle multiblock and empty table cells
14667 (#1245, #1246). Added tests.
14669 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
14671 * `Text.Pandoc.Shared`:
14673 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
14674 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
14675 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
14676 Jesse Rosenthal.
14677 + `openURL`: set proxy with value of http_proxy env variable (#1211).
14678 Note: proxies with non-root paths are not supported, due to
14679 limitations in `http-conduit`.
14681 * `Text.Pandoc.PDF`:
14683 + Ensure that temp directories deleted on Windows (#1192). The PDF is
14684 now read as a strict bytestring, ensuring that process ownership will
14685 be terminated, so the temp directory can be deleted.
14686 + Use `/` as path separators in a few places, even on Windows.
14687 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
14688 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
14689 + Changes to error reporting, to handle non-UTF8 error output.
14691 * `Text.Pandoc.Templates`:
14693 + Removed unneeded datatype context (Merijn Verstraaten).
14695 + YAML objects resolve to "true" in conditionals (#1133).
14696 Note: If `address` is a YAML object and you just have `$address$`
14697 in your template, the word `true` will appear, which may be
14698 unexpected. (Previously nothing would appear.)
14700 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
14701 tags (#1188).
14703 * `Text.Pandoc.Parsing`:
14705 + Made `F` an instance of Applicative (#1138).
14706 + Added `stateCaption`.
14707 + Added `HasMacros`, simplified other typeclasses.
14708 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
14709 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
14710 + Changed the smart punctuation parser to return `Inlines`
14711 rather than `Inline` (Matthew Pickering).
14712 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
14713 from typeclasses of monads to typeclasses of states. This simplifies
14714 the instance definitions and provides more flexibility. Generalized
14715 type of `getOption` and added a default definition. Removed
14716 `askReaderOption`. Added `extractReaderOption`. Added
14717 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
14718 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
14719 `modifyHeaderMap`. Added `extractIdentifierList` and
14720 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
14721 for `getIdentifierList`, `putIdentifierList`, and
14722 `modifyIdentifierList`. The ultimate goal here is to allow different
14723 parsers to use their own, tailored parser states (instead of
14724 `ParserState`) while still using shared functions.
14726 * Template changes:
14728 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
14729 + LaTeX template: Add `linestretch` and `fontfamily` variables.
14730 + LaTeX template: Conditionalize author and date commands.
14731 + Beamer template: Consistent styles for figure and table captions
14732 (aaronwolen).
14733 + LaTeX and beamer template: Adjust widths correctly for oversized
14734 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
14735 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
14736 `upquote` only after `fontenc` (Yihui Xie).
14737 + Beamer template: Added caption package (#1200).
14738 + Beamer template: changes for better unicode handling (KarolS).
14739 + DocBook template: use `authorgroup` if there are authors.
14740 + revealjs template: Move `include-after` to end (certainlyakey).
14741 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
14743 * Bumped version bounds of dependencies.
14745 * Added a `--trace` command line option, for debugging backtracking
14746 bugs. So far this only works with the markdown reader.
14748 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
14750 * Updated travis script to test with multiple GHC versions.
14752 * Force failure of a Travis build if GHC produces warnings (Albert
14753 Krewinkel).
14755 * Add `.editorconfig` (Albert Krewinkel).
14756 See <http://editorconfig.org/> for details.
14758 * Give more useful error message if '-t pdf' is specified (#1155).
14760 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
14762 * Allow `html4` as a synonym of `html` as a reader (it already works
14763 as a writer).
14765 * README:
14767 + Added an explanation of how to use YAML metadata to
14768 force items to appear in the bibliography without citations in
14769 the text (like LaTeX `\nocite`).
14770 + Added note to `--bibtex/--natbib`: not for use in making PDF
14771 (#1194, thanks to nahoj).
14772 + Added explanatory notes about `--natbib` and `--biblatex`.
14773 + Added specification of legal syntax for citation keys.
14774 + Fixed variable defaults documentation (Albert Krewinkel).
14776 * Removed copyright statements for files that have been removed
14777 (Albert Krewinkel).
14779 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
14780 They aren't needed at runtime. We keep README and COPYRIGHT in data
14781 to ensure that they'll be available on all systems on which pandoc
14782 is installed.
14784 * Use cabal sandboxes in Windows build script.
14786## pandoc 1.12.3.3 (2014-02-03)
14788 * To changes to source; recompiled tarball with latest alex and
14789 happy, so they will work with GHC 7.8.
14791## pandoc 1.12.3.2 (2014-02-03)
14793 * Bumped version bounds for blaze-html, blaze-markup.
14795 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
14796 (#1124).
14798 * Fixed mediawiki ordered list parsing (#1122).
14800 * HTML reader: Fixed bug reading inline math with `$$` (#225).
14802 * Added support for LaTeX style literate Haskell code blocks in rST
14803 (Merijn Verstraaten).
14805## pandoc 1.12.3.1 (2014-01-14)
14807 * Relaxed version constraint on binary, allowing the use of binary 0.5.
14810## pandoc 1.12.3 (2014-01-10)
14812 * The `--bibliography` option now sets the `biblio-files` variable.
14813 So, if you're using `--natbib` or `--biblatex`, you can just use
14814 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
14816 * Don't run pandoc-citeproc filter if `--bibliography` is
14817 used together with `--natbib` or `--biblatex` (Florian Eitel).
14819 * Template changes:
14821 + Updated beamer template to include booktabs.
14822 + Added `abstract` variable to LaTeX template.
14823 + Put `header-includes` after `title` in LaTeX template (#908).
14824 + Allow use of `\includegraphics[size]` in beamer.
14825 This just required porting a macro definition from the default
14826 LaTeX template to the default beamer template.
14828 * `reference.docx`: Include `FootnoteText` style.
14829 Otherwise Word ignores the style, even when specified in the `pPr`.
14830 (#901)
14832 * `reference.odt`: Tidied `styles.xml`.
14834 * Relaxed version bounds for dependencies.
14836 * Added `withSocketsDo` around http conduit code in `openURL`,
14837 so it works on Windows (#1080).
14839 * Added `Cite` function to `sample.lua`.
14841 * Markdown reader:
14843 + Fixed regression in title blocks (#1089).
14844 If author field was empty, date was being ignored.
14845 + Allow backslash-newline hard line breaks in grid and
14846 multiline table cells.
14847 + Citation keys may now start with underscores, and may contain
14848 underscores adjacent to internal punctuation.
14850 * LaTeX reader:
14852 + Add support for `Verb` macro (jrnold) (#1090).
14853 + Support babel-style quoting: `` "`..."' ``.
14855 * Properly handle script blocks in strict mode. (That is,
14856 `markdown-markdown_in_html_blocks`.) Previously a spurious
14857 `<p>` tag was being added (#1093).
14859 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
14860 elements.
14862 * LaTeX writer:
14864 + Factored out function for table cell creation.
14865 + Better treatment of footnotes in tables.
14866 Notes now appear in the regular sequence, rather than in the
14867 table cell. (This was a regression in 1.10.)
14869 * HTML reader: Parse name/content pairs from meta tags as metadata.
14870 Closes #1106.
14872 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
14874 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
14876 * ODT writer: Use mathml for proper rendering of formulas.
14877 Note: LibreOffice's support for this seems a bit buggy. But
14878 it should be better than what we had before.
14880 * RST writer: Ensure no blank line after def in definition list (#992).
14882 * Markdown writer: Don't use tilde code blocks with braced attributes in
14883 `markdown_github` output. A consequence of this change is that the
14884 backtick form will be preferred in general if both are enabled. That
14885 is good, as it is much more widespread than the tilde form. (#1084)
14887 * Docx writer: Fixed problem with some modified reference docx files.
14888 Include `word/_rels/settings.xml.rels` if it exists, as well as other
14889 `rels` files besides the ones pandoc generates explicitly.
14891 * HTML writer:
14893 + With `--toc`, headers no longer link to themselves (#1081).
14894 + Omit footnotes from TOC entries. Otherwise we get doubled
14895 footnotes when headers have notes!
14897 * EPUB writer:
14899 + Avoid duplicate notes when headings contain notes.
14900 This arose because the headings are copied into the metadata
14901 "title" field, and the note gets rendered twice. We strip the
14902 note now before putting the heading in "title".
14903 + Strip out footnotes from toc entries.
14904 + Fixed bug with `--epub-stylesheet`. Now the contents of
14905 `writerEpubStylesheet` (set by `--epub-stylesheet`)
14906 should again work, and take precedence over a stylesheet specified
14907 in the metadata.
14909 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
14911 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
14913 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
14914 with `//`.
14916 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
14917 we could only get size information for JFIF format, which led
14918 to squished images in Word documents. Closes #976.
14920 * Removed old `MarkdownTest_1.0.3` directory (#1104).
14923## pandoc 1.12.2.1 (2013-12-08)
14925 * Markdown reader: Fixed regression in list parser, involving
14926 continuation lines containing raw HTML (or even verbatim raw HTML).
14928## pandoc 1.12.2 (2013-12-07)
14930 * Metadata may now be included in YAML blocks in a markdown document.
14931 For example,
14933 ---
14934 title:
14935 - type: main
14936 text: My Book
14937 - type: subtitle
14938 text: An investigation of metadata
14939 creator:
14940 - role: author
14941 text: John Smith
14942 - role: editor
14943 text: Sarah Jones
14944 identifier:
14945 - scheme: DOI
14946 text: doi:10.234234.234/33
14947 publisher: My Press
14948 rights: (c) 2007 John Smith, CC BY-NC
14949 cover-image: img/mypic.jpg
14950 stylesheet: style.css
14951 ...
14953 Metadata may still be provided using `--epub-metadata`; it will
14954 be merged with the metadata in YAML blocks.
14956 * EPUB writer:
14958 + `meta` tags are now used instead of `opf` attributes for EPUB3.
14959 + Insert "svg" property as needed in opf (EPUB 3).
14960 + Simplify `imageTypeOf` using `getMimeType`.
14961 + Add properties attribute to `cover-image` item for EPUB 3.
14962 + Don't include node for `cover.xhtml` if no cover!
14963 + Ensure that same identifier is used throughout (#1044).
14964 If an identifier is given in metadata, we use that; otherwise
14965 we generate a random uuid.
14966 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
14967 Fixes an issue with Calibre putting the cover at the end of the book
14968 if the spine has `linear="no"`. Apparently this is best practice
14969 for other converters as well:
14970 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
14971 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
14972 + Allow partial dates: `YYYY`, `YYYY-MM`.
14974 * Markdown writer: Fix rendering of tight sublists (#1050).
14975 Previously a spurious blank line was included after a tight sublist.
14977 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
14978 This is reported to be necessary to avoid an error from recent
14979 versions of Libre Office when files contain more than one image
14980 Thanks to wmanley for reporting and diagnosing the problem.
14982 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
14983 Instead, let this be set in the template, using `\setupfloat`.
14984 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
14986 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
14988 * Fixed bug with markdown intraword emphasis. Closes #1066.
14990 * Docbook writer: Hierarchicalize block content in metadata.
14991 Previously headers just disappeared from block-level metadata
14992 when it was used in templates. Now we apply the 'hierarchicalize'
14993 transformation. Note that a block headed by a level-2 header will
14994 turn into a `<sect1>` element.
14996 * OpenDocument writer: Skip raw HTML (#1035).
14997 Previously it was erroneously included as verbatim text.
14999 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
15000 This allows better control of formatting, since the `<a>`
15001 tags have a distinguishing class (#1049).
15003 * Docx writer:
15005 + Use mime type info returned by fetchItem.
15006 + Fixed core metadata (#1046).
15007 Don't create empty date nodes if no date given.
15008 Don't create multiple `dc:creator` nodes; instead separate by
15009 semicolons.
15010 + Fix URL for core-properties in `_rels/.rels` (#1046).
15012 * Plain writer: don't print `<span>` tags.
15014 * LaTeX writer:
15016 + Fix definition lists with internal links in terms (#1032).
15017 This fix puts braces around a term that contains an internal
15018 link, to avoid problems with square brackets.
15019 + Properly escape pdftitle, pdfauthor (#1059).
15020 + Use booktabs package for tables (thanks to Jose Luis Duran).
15022 * Updated beamer template. Now references should work properly
15023 (in a slide) when `--biblatex` or `--natbib` is used.
15025 * LaTeX reader:
15027 + Parse contents of curly quotes or matched `"` as quotes.
15028 + Support `\textnormal` as span with class `nodecor`.
15029 This is needed for pandoc-citeproc.
15030 + Improved citation parsing. This fixes a run-time error that occurred
15031 with `\citet{}` (empty list of keys). It also ensures that empty keys
15032 don't get produced.
15034 * MediaWiki reader: Add automatic header identifiers.
15036 * HTML reader:
15038 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
15039 `--parse-raw`.
15040 + Recognize `svg` tags as block level content (thanks to MinRK).
15041 + Parse LaTeX math if appropriate options are set.
15043 * Markdown reader:
15045 + Yaml block must start immediately after `---`. If there's a blank
15046 line after `---`, we interpreted it as a horizontal rule.
15047 + Correctly handle empty bullet list items.
15048 + Stop parsing "list lines" when we hit a block tag.
15049 This fixes exponential slowdown in certain input, e.g.
15050 a series of lists followed by `</div>`.
15052 * Slides: Preserve `<div class="references">` in references slide.
15054 * `Text.Pandoc.Writer.Shared`:
15056 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
15057 attributes, leading to invalid HTML.
15058 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
15059 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
15060 encoded bytestring was returned. We now decode it so it's a proper
15061 image!
15063 * DocBook reader: Handle numerical attributes starting with decimal.
15064 Also use `safeRead` instead of `read`.
15066 * `Text.Pandoc.Parsing`:
15068 + Generalized type of `registerHeader`, using new type classes
15069 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
15070 These allow certain common functions to be reused
15071 even in parsers that use custom state (instead of `ParserState`),
15072 such as the MediaWiki reader.
15073 + Moved inlineMath, displayMath from Markdown reader to Parsing.
15074 Generalize their types and export them from Parsing. (API change.)
15076 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
15077 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
15078 in all the writers. Require `texmath >= 0.6.5.2`.
15080 * `Text.Pandoc.MIME`:
15082 + Add entry for `jfif`.
15083 + In looking up extensions, drop the encoding info.
15084 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
15086 * Templates: Changed how array variables are resolved. Previously if
15087 `foo` is an array (which might be because multiple values were set on
15088 the command line), `$foo$` would resolve to the concatenation of the
15089 elements of foo. This is rarely useful behavior. It has been changed
15090 so that the first value is rendered. Of course, you can still iterate
15091 over the values using `$for(foo)$`. This has the result that you can
15092 override earlier settings using `-V` by putting new values later on the
15093 command line, which is useful for many purposes.
15095 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
15097 * Allow "epub2" as synonym for "epub", "html4" for "html".
15099 * Don't look for slidy files in data files with `--self-contained`.
15101 * Allow `https:` command line arguments to be downloaded.
15103 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
15105## pandoc 1.12.1 (2013-10-20)
15107 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
15108 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
15109 "c": "foo"}`. This new format is easier to work with outside of Haskell.
15110 Incidentally, "t" stands for "tag", "c" for "contents".
15112 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
15113 when converting to markdown (#1027).
15115 * LaTeX reader:
15117 + Ensure that preamble doesn't contribute to the text of
15118 the document.
15119 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
15120 properly, among others.
15121 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
15122 bibtex titles, since we need to know what was protected from
15123 titlecase conversions.
15125 * LaTeX writer:
15127 + Specially escape non-ascii characters in labels.
15128 Otherwise we can get compile errors and other bugs when
15129 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
15130 + Add link anchors for code blocks with identifiers (#1025).
15132 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
15133 It allows fragments identifiers.
15135 * Slide formats:
15137 + A Div element with class "notes" is treated as speaker
15138 notes. Currently beamer goes to `\note{}`, revealjs to
15139 `<aside class="notes">`, and the notes are simply suppressed in
15140 other formats (#925).
15141 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
15142 The old version caused a pause to be inserted before the first
15143 material on a slide. This has been fixed.
15144 + Removed data files for s5, slideous, slidy.
15145 Users of s5 and slideous will have to download the needed
15146 files, as has been documented for some time in the README.
15147 By default, slidy code will be sought on the web, as before.
15149 * HTML writer: Insert command to typeset mathjax only in slideous output
15150 (#966, #1012).
15152 * RST writer: Skip spaces after display math. Otherwise we get indentation
15153 problems, and part of the next paragraph may be rendered as part of the
15154 math.
15156 * OpenDocument writer: Fix formatting of strikeout code (#995),
15157 thanks to wilx. don't use `font-face-decls` variable.
15159 * Fixed test suite so it works with cabal sandboxes.
15161## pandoc 1.12.0.2 (2013-09-20)
15163 * Removed an unused dependency (`stringable`) from pandoc.cabal.
15164 This will help packagers, but users should not need to upgrade.
15166## pandoc 1.12.0.1 (2013-09-20)
15168 * Allow `--metadata` to be repeated for the same key to form a list.
15169 This also has the effect that `--bibliography` can be repeated,
15170 as before.
15172 * Handle boolean values in `--metadata`. Note that anything not parseable
15173 as a YAML boolean or string is treated as a literal string.
15174 You can get a string value with "yes", or any of the strings interpretable
15175 as booleans, by quoting it:
15177 -M boolvalue=yes -M stringvalue='"yes"'
15179 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
15180 option used.
15182 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
15183 in which docx files could not be read by some versions of Word
15184 and LibreOffice (#990).
15186 * Fixed a regression involving slide shows with bibliographies.
15187 The Div container around references messed up the procedure for carving
15188 a document into slides. So we now remove the surrounding Div in
15189 `prepSlides`.
15191 * More informative error message when a filter is not found in path.
15193 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
15194 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
15196 * Don't use unicode_collation in building OSX package:
15197 it adds something like 50MB of dependencies to the package.
15199 * Declare alex and happy as build-tools (#986).
15201## pandoc 1.12 (2013-09-15)
15203### New features
15205 * Much more flexible metadata, including arbitrary fields and structured
15206 values. Metadata can be specified flexibly in pandoc markdown using
15207 YAML metadata blocks, which may occur anywhere in the document:
15209 ---
15210 title: Here is my title.
15211 abstract: |
15212 This is the abstract.
15214 1. It can contain
15215 2. block content
15216 and *inline markup*
15218 tags: [cat, dog, animal]
15219 ...
15221 Metadata fields automatically populate template variables.
15223 * Added `opml` (OPML) as input and output format. The `_note` attribute,
15224 used in OmniOutliner and supported by multimarkdown, is supported.
15225 We treat the contents as markdown blocks under a section header.
15227 * Added `haddock` (Haddock markup) as input format (David Lazar).
15229 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
15230 (Thanks to Jamie F. Olson for the initial patch.)
15231 Nested vertical stacks are used for hierarchical structure.
15232 Results for more than one level of nesting may be odd.
15234 * Custom writers can now be written in lua.
15236 pandoc -t data/sample.lua
15238 will load the script sample.lua and use it as a custom writer.
15239 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
15240 Note that pandoc embeds a lua interpreter, so lua need not be
15241 installed separately.
15243 * New `--filter/-F` option to make it easier to run "filters"
15244 (Pandoc AST transformations that operate on JSON serializations).
15245 Filters are always passed the name of the output format, so their
15246 behavior can be tailored to it. The repository
15247 <https://github.com/jgm/pandocfilters> contains
15248 a python module for writing pandoc filters in python, with
15249 a number of examples.
15251 * Added `--metadata/-M` option.
15252 This is like `--variable/-V`, but actually adds to metadata, not
15253 just variables.
15255 * Added `--print-default-data-file` option, which allows printing
15256 of any of pandoc's data files. (For example,
15257 `pandoc --print-default-data-file reference.odt` will print
15258 `reference.odt`.)
15260 * Added syntax for "pauses" in slide shows:
15262 This gives
15264 . . .
15266 me pause.
15268 * New markdown extensions:
15270 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
15271 rather than being treated as hard line breaks or spaces. This is useful
15272 for some East Asian languages, where spaces aren't used between words,
15273 but text is separated into lines for readability.
15274 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
15275 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
15276 only. (Default for `markdown_github`.) (#807)
15277 + `lists_without_preceding_blankline`: Allow lists to start without
15278 preceding blank space. (Default for `markdown_github`.) (#972)
15280### Behavior changes
15282 * `--toc-level` no longer implies `--toc`.
15283 Reason: EPUB users who don't want a visible TOC may still want
15284 to set the TOC level for in the book navigation.
15286 * `--help` now prints in and out formats in alphabetical order, and
15287 says something about PDF output (#720).
15289 * `--self-contained` now returns less verbose output (telling you
15290 which URLs it is fetching, but not giving the full header). In
15291 addition, there are better error messages when fetching a URL fails.
15293 * Citation support is no longer baked in to core pandoc. Users who
15294 need citations will need to install and use a separate filter
15295 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
15296 `csl`, and `citation-abbreviations` from the metadata, though it
15297 may still be specified on the command line as before.
15299 * A `Cite` element is now created in parsing markdown whether or not
15300 there is a matching reference.
15302 * The `pandoc-citeproc` script will put the bibliography at the
15303 end of the document, as before. However, it will be put inside a `Div`
15304 element with class "references", allowing users some control
15305 over the styling of references. A final header, if any, will
15306 be included in the `Div`.
15308 * The markdown writer will not print a bibliography if the
15309 `citations` extension is enabled. (If the citations are formatted
15310 as markdown citations, it is redundant to have a bibliography,
15311 since one will be generated automatically.)
15313 * Previously we used to store the directory of the first input file,
15314 even if it was local, and used this as a base directory for finding
15315 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
15316 users. So we now look for images relative to the current
15317 working directory, even if the first file argument is in another
15318 directory. Note that this change may break some existing workflows.
15319 If you have been assuming that relative links will be interpreted
15320 relative to the directory of the first file argument, you'll need
15321 to make that the current directory before running pandoc. (#942)
15323 * Better error reporting in some readers, due to changes in `readWith`:
15324 the line in which the error occurred is printed, with a caret pointing
15325 to the column.
15327 * All slide formats now support incremental slide view for definition lists.
15329 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
15330 Parse `:<math>...</math>` as display math. These notations are used with
15331 the MathJax MediaWiki extension.
15333 * All writers: template variables are set automatically from metadata
15334 fields. However, variables specified on the command line with
15335 `--variable` will completely shadow metadata fields.
15337 * If `--variable` is used to set many variables with the same name,
15338 a list is created.
15340 * Man writer: The `title`, `section`, `header`, and `footer` can now
15341 all be set individually in metadata. The `description` variable has been
15342 removed. Quotes have been added so that spaces are allowed in the
15343 title. If you have a title that begins
15345 COMMAND(1) footer here | header here
15347 pandoc will still parse it into a title, section, header, and
15348 footer. But you can also specify these elements explicitly (#885).
15350 * Markdown reader
15352 + Added support for YAML metadata blocks, which can come anywhere
15353 in the document (not just at the beginning). A document can contain
15354 multiple YAML metadata blocks.
15355 + HTML span and div tags are parsed as pandoc Span and Div elements.
15357 * Markdown writer
15359 + Allow simple tables to be printed as grid tables,
15360 if other table options are disabled. This means you can do
15361 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
15362 and all tables will render as grid tables.
15363 + Support YAML title block (render fields in alphabetical order
15364 to make output predictable).
15366### API changes
15368 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
15369 structured metadata. (Note: existing code that pattern-matches
15370 on `Meta` will have to be revised.) Metadata can now contain
15371 indefinitely many fields, with content that can be a string,
15372 a Boolean, a list of `Inline` elements, a list of `Block`
15373 elements, or a map or list of these.
15375 * A new generic block container (`Div`) has been added to `Block`,
15376 and a generic inline container (`Span`) has been added to `Inline`.
15377 These can take attributes. They will render in HTML, Textile,
15378 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
15379 extension) as HTML `<div>` and `<span>` elements; in other formats
15380 they will simply pass through their contents. But they can be
15381 targeted by scripts.
15383 * `Format` is now a newtype, not an alias for String.
15384 Equality comparisons are case-insensitive.
15386 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
15387 functions that are much faster than the SYB functions from
15388 `Text.Pandoc.Generic`. These functions are now used where possible
15389 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
15390 match the generic traversals `bottomUp` and `queryWith`.)
15392 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
15393 instances for the basic pandoc types. They use GHC generics and
15394 should be faster than the old JSON serialization using
15395 `Data.Aeson.Generic`.
15397 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
15398 This is a souped-up version of `readProcessWithErrorcode` that
15399 uses lazy bytestrings instead of strings and allows setting
15400 environment variables. (Used in `Text.Pandoc.PDF`.)
15402 * New module `Text.Pandoc.Readers.OPML`.
15404 * New module `Text.Pandoc.Writers.OPML`.
15406 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
15407 This is based on Haddock's own lexer/parser.
15409 * New module `Text.Pandoc.Writers.Custom`.
15411 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
15412 Either, for better error handling.
15414 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
15416 * Removed `stripTags` from `Text.Pandoc.XML`.
15418 * `Text.Pandoc.Templates`:
15420 + Simplified `Template` type to a newtype.
15421 + Removed `Empty`.
15422 + Changed type of `renderTemplate`: it now takes a JSON context
15423 and a compiled template.
15424 + Export `compileTemplate`.
15425 + Export `renderTemplate'` that takes a string instead of a compiled
15426 template.
15427 + Export `varListToJSON`.
15429 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
15431 * `Text.Pandoc`:
15433 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
15434 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
15435 `Text.Pandoc.JSON` should be used instead. (Compiling against
15436 pandoc-types instead of pandoc will also produce smaller executables.)
15437 * Removed the deprecated `jsonFilter` function.
15438 + Added `readJSON`, `writeJSON` to the API (#817).
15440 * `Text.Pandoc.Options`:
15442 + Added `Ext_lists_without_preceding_blankline`,
15443 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
15444 `Ext_yaml_metadataBlock` to `Extension`.
15445 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
15446 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
15447 first command-line argument is an absolute URL. (So, relative links
15448 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
15449 + All bibliography-related fields have been removed from
15450 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
15451 `readerReferences`, `readerCitationStyle`.
15453 * The `Text.Pandoc.Biblio` module has been removed. Users of the
15454 pandoc library who want citation support will need to use
15455 `Text.CSL.Pandoc` from `pandoc-citeproc`.
15457### Bug fixes
15459 * In markdown, don't autolink a bare URI that is followed by `</a>`
15460 (#937).
15462 * `Text.Pandoc.Shared`
15464 + `openURL` now follows redirects (#701), properly handles `data:`
15465 URIs, and prints diagnostic output to stderr rather than stdout.
15466 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
15467 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
15468 + Fixed `readDefaultDataFile` so it works on Windows.
15469 + Better error messages for `readDefaultDataFile`. Instead of
15470 listing the last path tried, which can confuse people who are
15471 using `--self-contained`, so now we just list the data file name.
15472 + URL-escape pipe characters. Even though these are legal, `Network.URI`
15473 doesn't regard them as legal in URLs. So we escape them first (#535).
15475 * Mathjax in HTML slide shows: include explicit "Typeset" call.
15476 This seems to be needed for some formats (e.g. slideous) and won't
15477 hurt in others (#966).
15479 * `Text.Pandoc.PDF`
15481 + On Windows, create temdir in working directory, since the system
15482 temp directory path may contain tildes, which can cause
15483 problems in LaTeX (#777).
15484 + Put temporary output directory in `TEXINPUTS` (see #917).
15485 + `makePDF` tries to download images that are not found locally,
15486 if the first argument is a URL (#917).
15487 + If compiling with `pdflatex` yields an encoding error, offer
15488 the suggestion to use `--latex-engine=xelatex`.
15490 * Produce automatic header identifiers in parsing textile, RST,
15491 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
15493 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
15494 before treating as a filename. This fixes `--self-contained` when used
15495 with CSS files that include web fonts using the method described here:
15496 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
15497 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
15499 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
15500 percent-encoding, or a `+` character, as final punctuation.
15502 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
15503 EPS images properly sized on conversion to Word.
15505 * Slidy: Use slidy.js rather than slidy.js.gz.
15506 Reason: some browsers have trouble with the gzipped js file,
15507 at least on the local file system (#795).
15509 * Markdown reader
15511 + Properly handle blank line at beginning of input (#882).
15512 + Fixed bug in unmatched reference links. The input
15513 `[*infile*] [*outfile*]` was getting improperly parsed:
15514 "infile" was emphasized, but "*outfile*" was literal (#883).
15515 + Allow internal `+` in citation identifiers (#856).
15516 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
15517 + Do not generate blank title, author, or date metadata elements.
15518 Leave these out entirely if they aren't present.
15519 + Allow backtick code blocks not to be preceded by blank line (#975).
15521 * Textile reader:
15523 + Correctly handle entities.
15524 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
15525 in code blocks, rather than printing them verbatim. Parse attributes
15526 on `<pre>` tag for code blocks.
15528 * HTML reader: Handle non-simple tables (#893). Column widths are read from
15529 `col` tags if present, otherwise divided equally.
15531 * LaTeX reader
15533 + Support alltt environment (#892).
15534 + Support `\textasciitilde`, `\textasciicircum` (#810).
15535 + Treat `\textsl` as emphasized text reader (#850).
15536 + Skip positional options after `\begin{figure}`.
15537 + Support `\v{}` for hacek (#926).
15538 + Don't add spurious ", " to citation suffixes.
15539 This is added when needed in pandoc-citeproc.
15540 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
15541 + Improved support for accented characters (thanks to Scott Morrison).
15542 + Parse label after section command and set id (#951).
15544 * RST reader:
15546 + Don't insert paragraphs where docutils doesn't.
15547 `rst2html` doesn't add `<p>` tags to list items (even when they are
15548 separated by blank lines) unless there are multiple paragraphs in the
15549 list. This commit changes the RST reader to conform more closely to
15550 what docutils does (#880).
15551 + Improved metadata. Treat initial field list as metadata when
15552 standalone specified. Previously ALL fields "title", "author",
15553 "date" in field lists were treated as metadata, even if not at
15554 the beginning. Use `subtitle` metadata field for subtitle.
15555 + Fixed 'authors' metadata parsing in reST. Semicolons separate
15556 different authors.
15558 * MediaWiki reader
15560 + Allow space before table rows.
15561 + Fixed regression for `<ref>URL</ref>`.
15562 `<` is no longer allowed in URLs, according to the uri parser
15563 in `Text.Pandoc.Parsing`. Added a test case.
15564 + Correctly handle indented preformatted text without preceding
15565 or following blank line.
15566 + Fixed `|` links inside table cells. Improved attribute parsing.
15567 + Skip attributes on table rows. Previously we just crashed if
15568 rows had attributes, now we ignore them.
15569 + Ignore attributes on headers.
15570 + Allow `Image:` for images (#971).
15571 + Parse an image with caption in a paragraph by itself as a figure.
15573 * LaTeX writer
15575 + Don't use ligatures in escaping inline code.
15576 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
15577 wherein notes were numbered incorrectly in tables (#827).
15578 + Always create labels for sections. Previously the labels were only
15579 created when there were links to the section in the document (#871).
15580 + Stop escaping `|` in LaTeX math.
15581 This caused problems with array environments (#891).
15582 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
15583 `\` will cause major problems if unescaped.
15584 + Write id for code block to label attribute in LaTeX when listings
15585 is used (thanks to Florian Eitel).
15586 + Scale LaTeX tables so they don't exceed columnwidth.
15587 + Avoid problem with footnotes in unnumbered headers (#940).
15589 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
15590 to the slide if it is one of the header classes. It is recommended
15591 that your bibliography slide have this attribute:
15593 # References {.allowframebreaks}
15595 This causes multiple slides to be created if necessary, depending
15596 on the length of the bibliography.
15598 * ConTeXt writer: Properly handle tables without captions. The old output
15599 only worked in MkII. This should work in MkIV as well (#837).
15601 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
15603 * HTML writer:
15605 + Fixed `--no-highlight` (Alexander Kondratskiy).
15606 + Don't convert to lowercase in email obfuscation (#839).
15607 + Ensure proper escaping in `<title>` and `<meta>` fields.
15609 * AsciiDoc writer:
15611 + Support `--atx-headers` (Max Rydahl Andersen).
15612 + Don't print empty identifier blocks `([[]])` on headers (Max
15613 Rydahl Andersen).
15615 * ODT writer:
15617 + Fixing wrong numbered-list indentation in open document format
15618 (Alexander Kondratskiy) (#369).
15619 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
15620 + Minor changes for ODF 1.2 conformance (#939). We leave the
15621 nonconforming `contextual-spacing` attribute, which is provided by
15622 LibreOffice itself and seems well supported.
15624 * Docx writer:
15626 + Fixed rendering of display math in lists.
15627 In 1.11 and 1.11.1, display math in lists rendered as a new list
15628 item. Now it always appears centered, just as outside of lists,
15629 and in proper display math style, no matter how far indented the
15630 containing list item is (#784).
15631 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
15632 Previously we used `w:cr` (#873).
15633 + Use Compact style for Plain block elements, to
15634 differentiate between tight and loose lists (#775).
15635 + Ignore most components of `reference.docx`.
15636 We take the `word/styles.xml`, `docProps/app.xml`,
15637 `word/theme/theme1.xml`, and `word/fontTable.xml` from
15638 `reference.docx`, ignoring everything else. This should help
15639 with the corruption problems caused when different versions of
15640 Word resave the reference.docx and reorganize things.
15641 + Made `--no-highlight` work properly.
15643 * EPUB writer
15645 + Don't add `dc:creator` tags if present in EPUB metadata.
15646 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
15647 + Don't put blank title page in reading sequence.
15648 Set `linear="no"` if no title block. Addresses #797.
15649 + Download webtex images and include as data URLs.
15650 This allows you to use `--webtex` in creating EPUBs.
15651 Math with `--webtex` is automatically made self-contained.
15652 + In `data/epub.css`, removed highlighting styles (which
15653 are no longer needed, since styles are added by the HTML
15654 writer according to `--highlighting-style`). Simplified
15655 margin fields.
15656 + If resource not found, skip it, as in Docx writer (#916).
15658 * RTF writer:
15660 + Properly handle characters above the 0000-FFFF range.
15661 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
15662 + Fixed regression with RTF table of contents.
15663 + Only autolink absolute URIs. This fixes a regression, #830.
15665 * Markdown writer:
15667 + Only autolink absolute URIs. This fixes a regression, #830.
15668 + Don't wrap attributes in fenced code blocks.
15669 + Write full metadata in MMD style title blocks.
15670 + Put multiple authors on separate lines in pandoc titleblock.
15671 Also, don't wrap long author entries, as new lines get treated
15672 as new authors.
15674 * `Text.Pandoc.Templates`:
15676 + Fixed bug retrieving default template for markdown variants.
15677 + Templates can now contain "record lookups" in variables;
15678 for example, `author.institution` will retrieve the `institution`
15679 field of the `author` variable.
15680 + More consistent behavior of `$for$`. When `foo` is not a list,
15681 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
15682 So if `foo` resolves to "", no output should be produced.
15683 See pandoc-templates#39.
15685 * Citation processing improvements (now part of pandoc-citeproc):
15687 + Fixed `endWithPunct` The new version correctly sees a sentence
15688 ending in '.)' as ending with punctuation. This fixes a bug which
15689 led such sentences to receive an extra period at the end: '.).'.
15690 Thanks to Steve Petersen for reporting.
15691 + Don't interfere with Notes that aren't citation notes.
15692 This fixes a bug in which notes not generated from citations were
15693 being altered (e.g. first letter capitalized) (#898).
15694 + Only capitalize footnote citations when they have a prefix.
15695 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
15696 inserted before it before passing to citeproc-hs, so that bare numbers
15697 are treated as page numbers by default. A suffix not beginning with
15698 punctuation has a space added at the beginning (rather than a comma and
15699 space, as was done before for not-author-in-text citations).
15700 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
15701 properly, with '23' treated as a locator of type 'page'.
15702 + Many improvements to citation rendering, due to fixes in citeproc-hs
15703 (thanks to Andrea Rossato).
15704 + Warnings are issued for undefined citations, which are rendered
15705 as `???`.
15706 + Fixed hanging behavior when locale files cannot be found.
15708### Template changes
15710 * DocBook: Use DocBook 4.5 doctype.
15712 * Org: '#+TITLE:' is inserted before the title.
15713 Previously the writer did this.
15715 * LaTeX: Changes to make mathfont work with xelatex.
15716 We need the mathspec library, not just fontspec, for this.
15717 We also need to set options for setmathfont (#734).
15719 * LaTeX: Use `tex-ansi` mapping for `monofont`.
15720 This ensures that straight quotes appear as straight, rather than
15721 being treated as curly. See #889.
15723 * Made `\includegraphics` more flexible in LaTeX template.
15724 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
15726 * LaTeX/Beamer: Added `classoption` variable.
15727 This is intended for class options like `oneside`; it may
15728 be repeated with different options. (Thanks to Oliver Matthews.)
15730 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
15732 * LaTeX: Added `biblio-style` variable (#920).
15734 * DZSlides: title attribute on title section.
15736 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
15738### Under-the-hood improvements
15740 * Markdown reader:Improved strong/emph parsing, using the strategy of
15741 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
15742 no backtracking, and no keeping track of nesting levels. It will give
15743 different results in some edge cases, but these should not affect normal
15744 uses.
15746 * Added `Text.Pandoc.Compat.Monoid`.
15747 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
15748 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
15750 * Added `Text.Pandoc.Compat.TagSoupEntity`.
15751 This allows pandoc to compile with `tagsoup` 0.13.x.
15752 Thanks to Dirk Ullrich for the patch.
15754 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
15755 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
15756 handle simple math in bibliography fields.)
15758 * Added `Text.Pandoc.Writers.Shared` for shared functions used
15759 only in writers. `metaToJSON` is used in writers to create a
15760 JSON object for use in the templates from the pandoc metadata
15761 and variables. `getField`, `setField`, and `defField` are
15762 for working with JSON template contexts.
15764 * Added `Text.Pandoc.Asciify` utility module.
15765 This exports functions to create ASCII-only versions of identifiers.
15767 * `Text.Pandoc.Parsing`
15769 + Generalized state type on `readWith` (API change).
15770 + Specialize readWith to `String` input. (API change).
15771 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
15772 with `stateMeta` and `stateMeta'`.
15774 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
15775 bytestrings seemed to cause problems using pandoc on 64-bit Windows
15776 7/8 (#874).
15778 * Factored out `registerHeader` from markdown reader, added to
15779 `Text.Pandoc.Parsing`.
15781 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
15782 Reason: < 0.5 does not provide a monoid instance for Attribute,
15783 which is now needed by the HTML writer (#803).
15785 * Added `http-conduit` flag, which allows fetching https resources.
15786 It also brings in a large number of dependencies (`http-conduit`
15787 and its dependencies), which is why for now it is an optional flag
15788 (#820).
15790 * Added CONTRIBUTING.md.
15792 * Improved INSTALL instructions.
15794 * `make-windows-installer.bat`: Removed explicit paths for executables.
15796 * `aeson` is now used instead of `json` for JSON.
15798 * Set default stack size to 16M. This is needed for some large
15799 conversions, esp. if pandoc is compiled with 64-bit ghc.
15801 * Various small documentation improvements.
15802 Thanks to achalddave and drothlis for patches.
15804 * Removed comment that chokes recent versions of CPP (#933).
15806 * Removed support for GHC version < 7.2, since pandoc-types now
15807 requires at least GHC 7.2 for GHC generics.
15810## pandoc 1.11.1 (2013-03-17)
15812 * Markdown reader:
15814 + Fixed regression in which parentheses were lost in link URLs.
15815 Added tests. Closes #786.
15816 + Better handling of unmatched double quotes in `--smart` mode.
15817 These occur frequently in fiction, since it is customary not to
15818 close quotes in dialogue if the speaker does not change between
15819 paragraphs. The unmatched quotes now get turned into literal
15820 left double quotes. (No `Quoted` inline is generated, however.)
15821 Closes #99 (again).
15823 * HTML writer: Fixed numbering mismatch between TOC and sections.
15824 `--number-offset` now affects TOC numbering as well
15825 as section numbering, as it should have all along. Closes #789.
15827 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
15828 as markdown citations, even if `--bibliography` was specified, unless
15829 `citation` extension is disabled. Now, formatted citations are always
15830 printed if `--bibliography` was specified. If you want to reformat
15831 markdown keeping pandoc markdown citations intact, don't use
15832 `--bibliography`. Note that citations parsed from LaTeX documents will
15833 be rendered as pandoc markdown citations when `--bibliography` is not
15834 specified.
15836 * ODT writer: Fixed regression leading to corrupt ODTs.
15837 This was due to a change in the `Show` instance for
15838 `Text.Pandoc.Pretty.Doc`. Closes #780.
15840 * Fixed spacing bugs involving code block attributes in
15841 RST reader and Markdown writer. Closes #763.
15843 * Windows package: Various improvements due to Fyodor Sheremetyev.
15845 + Automatically set installation path (Program Files or Local App Data).
15846 + Set system PATH environment variable when installing for all users.
15847 + Pandoc can installed for all users using the following command.
15848 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
15850 * Bumped QuickCheck version bound.
15852## pandoc 1.11 (2013-03-09)
15854 * Added `--number-offset` option. (See README for description.)
15856 * Added `--default-image-extension` option. (See README for description.)
15858 * `--number-sections` behavior change: headers with class `unnumbered`
15859 will not be numbered.
15861 * `--version` now reports the default data directory.
15863 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
15865 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
15867 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
15868 a field for `Attr` rather than just `String`. (API change.)
15870 * Added `markdown_github` as input format. This was an accidental
15871 omission in 1.10.
15873 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
15874 change.)
15876 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
15878 * Beamer template:
15880 + Fixed captions with longtable. Thanks to Joost Kremers.
15881 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
15883 * LaTeX template:
15885 + Load microtype after fonts. Microtype needs to know
15886 what fonts are being used. Thanks to dfc for the patch.
15887 + Set `secnumdepth` to 5 if `--number-sections` specified.
15888 This yields behavior equivalent to the other writers, numbering
15889 level 4 and 5 headers too. Closes #753.
15891 * HTML reader:
15893 + Handle `<colgroup>` tag.
15894 + Preserve all header attributes.
15896 * LaTeX reader:
15898 + Parse `\hrule` as `HorizontalRule`. Closes #746.
15899 + Parse starred variants of `\section` etc. as headers with
15900 attribute `unnumbered`.
15901 + Read optional attributes in `lstlisting` and `Verbatim` environments.
15902 We convert these to pandoc standard names, e.g. `numberLines`
15903 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
15904 + Handle language attribute for lstlistings.
15905 + Better support for Verbatim and minted environments. Closes #763.
15907 * Markdown reader:
15909 + `-` in an attribute context = `.unnumbered`. The point of this
15910 is to provide a way to specify unnumbered headers in non-English
15911 documents.
15912 + Fixed bug parsing key/value attributes. Parsing failed if you
15913 had an unquoted attribute immediately before the final '}'.
15914 + Make backslash escape work in attributes.
15915 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
15916 pandoc will parse a MMD title block if it sees one, even if
15917 `pandoc_title_blocks` is enabled.
15918 + Refactoring: `litChar` now includes entities, so we don't need
15919 to use `fromEntities` e.g. on titles.
15920 + Allow spaces around borders in pipe tables. Closes #772.
15921 + Allow all punctuation in angle-bracket autolinks. Previously
15922 things like `----` were disallowed, because the uri parser
15923 treated them as trailing punctuation. Closes #768.
15924 + Make `implicit_header_references` work properly when
15925 headers are given explicit identifiers.
15926 + Check for tables before line blocks. Otherwise some pipe
15927 tables get treated as line blocks.
15928 + Allow `&` in emails (for entities).
15929 + Properly handle entities in titles and links. A markdown link
15930 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
15931 Closes #723.
15933 * Textile reader:
15935 + Handle attributes on headers.
15937 * LaTeX reader:
15939 + Add `fig:` as title for images with captions.
15940 This is needed for them to be rendered as figures. Closes #766.
15941 + Never emit an empty paragraph. See #761.
15942 + Handle `\caption` for images in figures. Closes #766.
15943 + Parse `\section*`, etc. as unnumbered sections.
15945 * HTML writer:
15947 + Support header attributes. The attributes go on
15948 the enclosing `section` or `div` tag if `--section-divs` is specified.
15949 + Fixed a regression (only now noticed) in html+lhs output.
15950 Previously the bird tracks were being omitted.
15952 * LaTeX writer:
15954 + Omit lists with no items to avoid LaTeX errors.
15955 + Support line numbering with `--listings`.
15956 If `numberLines` class is present, we add `numbers=left`;
15957 if `startFrom` is present, we add `firstnumber=`. (#763)
15959 * ConTeXt writer:
15961 + Removed `\placecontent`. This produced a duplicate toc,
15962 in conjunction with `\placelist`.
15963 + Use `\title`, `\subject` etc. for headers with
15964 `unnumbered` class.
15966 * Textile writer:
15968 + Support header attributes.
15970 * Markdown writer:
15972 + Use grid tables when needed, and if enabled. Closes #740.
15973 + Render citations as pandoc-markdown citations.
15974 Previously citations were rendered as citeproc-formatted citations
15975 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
15976 unless the `citations` extension is disabled.
15977 If you still want formatted citations in your markdown output,
15978 use `pandoc -t markdown-citations`.
15980 * RST writer:
15982 + Support `:number-lines:` in code blocks.
15984 * Docx writer:
15986 + Better treatment of display math. Display math inside a
15987 paragraph is now put in a separate paragraph, so it will render
15988 properly (centered and without extra blank lines around it).
15989 Partially addresses #742.
15990 + Content types and document rels xml files are now created from
15991 scratch, rather than being taken over from `reference.docx`.
15992 This fixes problems that arise when you edit the `reference.docx`
15993 with Word.
15994 + We also now encode mime types for each individual image rather
15995 than using defaults. This should allow us to handle a wider
15996 range of image types (including PDF). Closes #414.
15997 + Changed style names in `reference docx`.
15998 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
15999 The old names got changed by Word when the `reference.docx` was
16000 edited. Closes #414.
16002 * EPUB writer:
16004 + Fix section numbering. Previously the numbering restarted from 1
16005 in each chapter (with `--number-sections`), though the numbers in
16006 the table of contents were correct.
16007 + Headers with "unnumbered" attribute are not numbered. (Nor do they
16008 cause an increment in running numbering.) Section numbers now work
16009 properly, even when there is material before the first numbered section.
16010 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
16011 but `linear` is set to `no` unless the `--toc` option is specified.
16012 Include `<guide>` element in OPF. This should allow the TOC to
16013 be usable in Kindles when converted with kindlegen. Closes #773.
16015 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
16016 This dramatically reduces the speed penalty that comes from enabling the
16017 `autolink_bare_uris` extension. The penalty is still substantial (in one
16018 test, from 0.33s to 0.44s), but nowhere near what it used to be.
16019 The RST reader is also much faster now, as it autodetects URIs.
16021 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
16022 with class "unnumbered". Unnumbered sections get `[]` for their
16023 section number.
16025 * `Text.Pandoc.Pretty`:
16027 + Fixed `chomp` so it works inside `Prefixed` elements.
16028 + Changed `Show` instance so it is better for debugging.
16030 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
16032 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
16034 * Windows installer improvements:
16036 + The installer is now signed with a certificate (thanks to
16037 Fyodor Sheremetyev).
16038 + WiX is used instead of InnoSetup. The installer is now a
16039 standard msi file.
16040 + The version number is now auto-detected, and need not be
16041 updated separately.
16043 * OSX installer improvements:
16045 + The package and pandoc executable are now signed with a
16046 certificate (thanks to Fyodor Sheremetyev).
16047 + RTF version of license is used.
16048 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
16049 Closes #580.
16051 * Converted COPYING to markdown.
16053 * pandoc.cabal: Require latest versions of highlighting-kate,
16054 texmath, citeproc-hs, zip-archive.
16056## pandoc 1.10.1 (2013-01-23)
16058 * Markdown reader: various optimizations, leading to a
16059 significant performance boost.
16061 * RST reader: Allow anonymous form of inline links:
16062 `` `hello <url>`__ `` Closes #724.
16064 * Mediawiki reader: Don't require newlines after tables.
16065 Thanks to jrunningen for the patch. Closes #733.
16067 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
16068 when output is LaTeX, and applied when it is another format.
16069 Partially addresses #730.
16071 * Markdown and RST readers: Added parser to `block` that skips blank
16072 lines. This fixes a subtle regression involving grid tables with
16073 empty cells. Also added test for grid table with empty cells.
16074 Closes #732.
16076 * RST writer: Use `.. code:: language` for code blocks with language.
16077 Closes #721.
16079 * DocBook writer: Fixed output for hard line breaks, adding a newline
16080 between `<literallayout>` tags.
16082 * Markdown writer: Use an autolink when link text matches url.
16083 Previously we also checked for a null title, but this
16084 test fails for links produced by citeproc-hs in bibliographies.
16085 So, if the link has a title, it will be lost on conversion
16086 to an autolink, but that seems okay.
16088 * Markdown writer: Set title, author, date variables as before.
16089 These are no longer used in the default template, since we use
16090 titleblock, but we set them anyway for those who use custom templates.
16092 * LaTeX writer: Avoid extra space at start/end of table cell.
16093 Thanks to Nick Bart for the suggestion of using @{}.
16095 * `Text.Pandoc.Parsing`:
16097 + More efficient version of `anyLine`.
16098 + Type of `macro` has changed; the parser now returns `Blocks`
16099 instead of `Block`.
16101 * Relaxed old-time version bound, allowing 1.0.*.
16103 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
16104 should create a symlink as described in the README.
16106## pandoc 1.10.0.5 (2013-01-23)
16108 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
16109 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
16110 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
16112 * Markdown reader: Fixed bug with headerless grid tables.
16113 The 1.10 code assumed that each table header cell contains exactly one
16114 block. That failed for headerless tables (0) and also for tables with
16115 multiple blocks in a header cell. The code is fixed and tests provided.
16116 Thanks to Andrew Lee for pointing out the bug.
16118 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
16120 + Tilde code fences can again take a bare language string
16121 (`~~~ haskell`), not just curly-bracketed attributes
16122 (`~~~ {.haskell}`).
16123 + Backtick code blocks can take the curly-bracketed attributes.
16124 + Backtick code blocks don't *require* a language.
16125 + Consolidated code for the two kinds of fenced code blocks.
16127 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
16129 * Markdown writer: Use proportional font for email autolinks with
16130 obfuscation. Closes #714.
16132 * Corrected name of `blank_before_blockquote` in README. Closes #718.
16134 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
16135 The bug prevented an autolink at the end of a string (e.g.
16136 at the end of a line block line) from counting as a link. Closes #711.
16138 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
16139 This should work on Windows, unlike the TH solution with
16140 file-embed.
16142 * Eliminated use of TH in test suite.
16144 * Added `Text.Pandoc.Data` (non-exported) to hold the association
16145 list of embedded data files, if the `embed_data_files` flag is selected.
16146 This isolates the code that needs special treatment with file-embed or
16147 `hsb2hs`.
16149 * Changes to `make-windows-installer.bat`.
16151 + Exit batch file if any of the cabal-dev installs fail.
16152 + There's no longer any need to reinstall `highlighting-kate`.
16153 + Don't start with a `cabal update`; leave that to the user.
16154 + Force reinstall of pandoc.
16156 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
16157 Jens Petersen.
16159## pandoc 1.10.0.4 (2013-01-20)
16161 * Fixed bug with escaped % in LaTeX reader. Closes #710.
16163## pandoc 1.10.0.3 (2013-01-20)
16165 * Added further missing fb2 tests to cabal file.
16167## pandoc 1.10.0.2 (2013-01-20)
16169 * Added fb2 tests to cabal file's extra-source-files.
16171## pandoc 1.10.0.1 (2013-01-20)
16173 * Bump version bounds on test-framework packages.
16175## pandoc 1.10 (2013-01-19)
16177### New features
16179 * New input formats: `mediawiki` (MediaWiki markup).
16181 * New output formats: `epub3` (EPUB v3 with MathML),
16182 `fb2` (FictionBook2 ebooks).
16184 * New `--toc-depth` option, specifying how many levels of
16185 headers to include in a table of contents.
16187 * New `--epub-chapter-level` option, specifying the header
16188 level at which to divide EPUBs into separate files.
16189 Note that this normally affects only performance, not the
16190 visual presentation of the EPUB in a reader.
16192 * Removed the `--strict` option. Instead of using `--strict`,
16193 one can now use the format name `markdown_strict` for either input
16194 or output. This gives more fine-grained control that `--strict`
16195 did, allowing one to convert from pandoc's markdown to strict
16196 markdown or vice versa.
16198 * It is now possible to enable or disable specific syntax
16199 extensions by appending them (with `+` or `-`) to the writer
16200 or reader name. For example,
16202 pandoc -f markdown-footnotes+hard_line_breaks
16204 disables footnotes and enables treating newlines as hard
16205 line breaks. The literate Haskell extensions are now implemented
16206 this way as well, using either `+lhs` or `+literate_haskell`.
16207 For a list of extension names, see the README under
16208 "Pandoc's Markdown."
16210 * The following aliases have been introduced for specific
16211 combinations of markdown extensions: `markdown_phpextra`,
16212 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
16213 work just like regular reader and writer names, and can be modified
16214 with extension modifiers as described above. (Note that conversion
16215 from one markdown dialect to another does not work perfectly,
16216 because there are differences in markdown parsers besides
16217 just the extensions, and because pandoc's internal document model is
16218 not rich enough to capture all of the extensions.)
16220 * New `--html-q-tags` option. The previous default was to use `<q>`
16221 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
16222 Moreover, they are not a robust way of typesetting quotes, since
16223 some user agents don't support them, and some CSS resets (e.g.
16224 bootstrap) prevent pandoc's quotes CSS from working properly.
16225 We now just insert literal quote characters by default in both
16226 `html` and `html5` output, but this option is provided for
16227 those who still want `<q>` tags.
16229 * The markdown reader now prints warnings (to stderr) about
16230 duplicate link and note references. Closes #375.
16232 * Markdown syntax extensions:
16234 + Added pipe tables. Thanks to François Gannaz for the initial patch.
16235 These conform to PHP Markdown Extra's pipe table syntax. A subset
16236 of org-mode table syntax is also supported, which means that you can
16237 use org-mode's nice table editor to create tables.
16239 + Added support for RST-style line blocks. These are
16240 useful for verse and addresses.
16242 + Attributes can now be specified for headers, using the same
16243 syntax as in code blocks. (However, currently only the
16244 identifier has any effect in most writers.) For example,
16246 # My header {#foo}
16248 See [the header above](#foo).
16250 + Pandoc will now act as if link references have been defined
16251 for all headers without explicit identifiers.
16252 So, you can do this:
16254 # My header
16256 Link to [My header].
16257 Another link to [it][My header].
16259 Closes #691.
16261 * LaTeX reader:
16263 + Command macros now work everywhere, including non-math.
16264 Environment macros still not supported.
16265 + `\input` now works, as well as `\include`. TEXINPUTS is used.
16266 Pandoc looks recursively into included files for more included files.
16268### Behavior changes
16270 * The Markdown reader no longer puts the text of autolinks in a
16271 `Code` inline. This means that autolinks will no longer appear
16272 in a monospace font.
16274 * The character `/` can now appear in markdown citation keys.
16276 * HTML blocks in strict_markdown are no longer required to begin
16277 at the left margin. Technically this is required, according to
16278 the markdown syntax document, but `Markdown.pl` and other markdown
16279 processors are more liberal.
16281 * The `-V` option has been changed so that if there are duplicate
16282 variables, those specified later on the command line take precedence.
16284 * Tight lists now work in LaTeX and ConTeXt output.
16286 * The LaTeX writer no longer relien on the `enumerate` package.
16287 Instead, it uses standard LaTeX commands to change the list numbering
16288 style.
16290 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
16291 tables to be split over page boundaries.
16293 * The RST writer now uses a line block to render paragraphs containing
16294 linebreaks (which previously weren't supported at all).
16296 * The markdown writer now applies the `--id-prefix` to footnote IDs.
16297 Closes #614.
16299 * The plain writer no longer uses backslash-escaped line breaks
16300 (which are not very "plain").
16302 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
16303 Read bytestring and use `Text`'s decodeUtf8 instead of using
16304 `System.IO.hGetContents`. This way you get a message saying
16305 "invalid UTF-8 stream" instead of "invalid byte sequence."
16306 You are also told which byte caused the problem.
16308 * Docx, ODT, and EPUB writers now download images specified by a URL
16309 instead of skipping them or raising an error.
16311 * EPUB writer:
16313 + The default CSS now left-aligns headers by default, instead of
16314 centering. This is more consistent with the rest of the writers.
16315 + A proper multi-level table of contents is now used in `toc.ncx`.
16316 There is no longer a subsidiary table of contents at the beginning
16317 of each chapter.
16318 + Code highlighting now works by default.
16319 + Section divs are used by default for better semantic markup.
16320 + The title is used instead of "Title Page" in the table of contents.
16321 Otherwise we have a hard-coded English string, which looks
16322 strange in ebooks written in other languages. Closes #572.
16324 * HTML writer:
16326 + Put mathjax in span with class "math". Closes #562.
16327 + Put citations in a span with class "citation." In HTML5, also include
16328 a `data-cite` attribute with a space-separated list of citation
16329 keys.
16331 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
16332 This treats both `\r\n` and `\n` as `\n` on input, no matter
16333 what platform we're running on.
16335 * Citation processing is now done in the Markdown and LaTeX
16336 readers, not in `pandoc.hs`. This makes it easier for library users
16337 to use citations.
16339### Template changes
16341 * HTML: Added css to template to preserve spaces in `<code>` tags.
16342 Thanks to Dirk Laurie.
16344 * Beamer: Remove English-centric strings in section pages.
16345 Section pages used to have "Section" and a number as well as the
16346 section title. Now they just have the title. Similarly for part
16347 and subsection. Closes #566.
16349 * LaTeX, ConTeXt: Added papersize variable.
16351 * LaTeX, Beamer templates: Use longtable instead of ctable.
16353 * LaTeX, Beamer templates: Don't require 'float' package for tables.
16354 We don't actually seem to use the '[H]' option.
16356 * Markdown, plain: Fixed titleblock so it is just a single string.
16357 Previously separate title, author, and date variables were used,
16358 but this didn't allow different kinds of title blocks.
16360 * EPUB:
16362 + Rationalized templates. Previously there were three different
16363 templates involved in epub production. There is now just one
16364 template, `default.epub` or `default.epub3`. It can now be
16365 overridden using `--template`, just like other templates.
16366 The titlepage is now folded into the default template.
16367 A `titlepage` variable selects it.
16368 + UTF-8, lang tag, meta tags, title element.
16370 * Added scale-to-width feature to beamer template
16372### API changes
16374 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
16375 Previously header identifiers were autogenerated by the writers.
16376 Now they are added in the readers (either automatically or explicitly).
16378 * `Text.Pandoc.Builder`:
16380 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
16381 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
16382 custom Monoid instances for `Many Inline` and `Many Block. This
16383 allows `Many` to be made an instance of `Foldable` and `Traversable`.
16384 + The old `Listable` class has been removed.
16385 + The module now exports `isNull`, `toList`, `fromList`.
16386 + The old `Read` and `Show` instances have been removed; derived
16387 instances are now used.
16388 + Added `headerWith`.
16390 * The readers now take a `ReaderOptions` rather than a `ParserState`
16391 as a parameter. Indeed, not all parsers use the `ParserState` type;
16392 some have a custom state. The motivation for this change was to separate
16393 user-specifiable options from the accounting functions of parser state.
16395 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
16396 formerly in `Text.Pandoc.Shared`, and its associated
16397 data types. It also includes a new type `ReaderOptions`, which
16398 contains many options formerly in `ParserState`, and its associated
16399 data types:
16401 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
16402 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
16403 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
16404 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
16405 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
16406 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
16407 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
16408 + `ParserState.stateIndentedCodeClasses` ->
16409 `ReaderOptions.readerIndentedCodeClasses`.
16410 + Added `ReaderOptions.readerCitationStyle`.
16412 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
16413 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
16414 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
16415 been renamed `writerEpubMetadata` for consistency.
16417 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
16418 longer stylesheet, fonts, reference files as separate parameters.
16420 * Removed `writerLiterateHaskell` from `WriterOptions`, and
16421 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
16422 by an extension (`Ext_literate_haskell`).
16424 * Removed deprecated `writerXeTeX`.
16426 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
16427 Strict is now handled through extensions.
16429 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
16430 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
16431 and `multimarkdownExtensions`, as well as the `Extensions` type.
16433 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
16434 `readMediaWiki`.
16436 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
16437 (thanks to Sergey Astanin).
16439 * `Text.Pandoc`:
16441 + Added `getReader`, `getWriter` to `Text.Pandoc`.
16442 + `writers` is now an association list `(String, Writer)`.
16443 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
16444 an `IOByteStringWriter`. ALL writers are now in the 'writers'
16445 list, including the binary writers and FB2 writer. This allows
16446 code in `pandoc.hs` to be simplified.
16447 + Changed type of `readers`, so all readers are in IO.
16448 Users who want pure readers can still get them form the reader
16449 modules; this just affects the function `getReader` that looks up
16450 a reader based on the format name. The point of this change is to
16451 make it possible to print warnings from the parser.
16453 * `Text.Pandoc.Parsing`:
16455 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
16456 No other module directly imports Parsec. This will make it easier
16457 to change the parsing backend in the future, if we want to.
16458 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
16459 + Export the type synonym `Parser`.
16460 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
16461 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
16462 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
16463 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
16464 + `ParserState` is no longer an instance of `Show`.
16465 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
16466 + Generalized type of `withQuoteContext`.
16467 + Added `guardEnabled`, `guardDisabled`, `getOption`.
16468 + Removed `failIfStrict`.
16469 + `lookupKeySrc` and `fromKey` are no longer exported.
16471 * `Data.Default` instances are now provided for `ReaderOptions`,
16472 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
16473 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
16474 of `defaultWriterOptions` (which is still defined). Closes #546.
16476 * `Text.Pandoc.Shared`:
16478 + Added `safeRead`.
16479 + Renamed `removedLeadingTrailingSpace` to `trim`,
16480 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
16481 + Count `\r` as space in `trim` functions.
16482 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
16483 to `Shared`.
16484 + Removed `failUnlessLHS`.
16485 + Export `compactify'`, formerly in Markdown reader.
16486 + Export `isTightList`.
16487 + Do not export `findDataFile`.
16488 + `readDataFile` now returns a strict ByteString.
16489 + Export `readDataFileUTF8` which returns a String, like the
16490 old `readDataFile`.
16491 + Export `fetchItem` and `openURL`.
16493 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
16494 Removed `readImageSize`.
16496 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
16497 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
16498 `fromStringLazy`.
16500 * `Text.Pandoc.UTF8` is now an exposed module.
16502 * `Text.Pandoc.Biblio`:
16504 + csl parameter now a `String` rather than a `FilePath`.
16505 + Changed type of `processBiblio`. It is no longer in the IO monad.
16506 It now takes a `Maybe Style` argument rather than parameters for CSL
16507 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
16508 the style file and add abbreviations.)
16510 * Markdown reader now exports `readMarkdownWithWarnings`.
16512 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
16513 `rtfEmbedImage`.
16515### Bug fixes
16517 * Make `--ascii` work properly with `--self-contained`. Closes #568.
16519 * Markdown reader:
16521 + Fixed link parser to avoid exponential slowdowns. Closes #620.
16522 Previously the parser would hang on input like this:
16524 [[[[[[[[[[[[[[[[[[hi
16526 We fixed this by making the link parser parser characters
16527 between balanced brackets (skipping brackets in inline code spans),
16528 then parsing the result as an inline list. One change is that
16530 [hi *there]* bud](/url)
16532 is now no longer parsed as a link. But in this respect pandoc behaved
16533 differently from most other implementations anyway, so that seems okay.
16535 + Look for raw html/latex blocks before tables.
16536 Otherwise the following gets parsed as a table:
16538 \begin{code}
16539 --------------
16540 -- My comment.
16541 \end{code}
16543 Closes #578.
16545 * RST reader:
16547 + Added support for `:target:` on `.. image::` blocks
16548 and substitutions.
16549 + Field list fixes:
16551 - Fixed field lists items with body beginning after a new line
16552 (Denis Laxalde).
16553 - Allow any char but ':' in names of field lists in RST reader
16554 (Denis Laxalde).
16555 - Don't allow line breaks in field names.
16556 - Require whitespace after field list field names.
16557 - Don't create empty definition list for metadata field lists.
16558 Previously a field list consisting only of metadata fields (author,
16559 title, date) would be parsed as an empty DefinitionList, which is
16560 not legal in LaTeX and not needed in any format.
16562 + Don't recognize inline-markup starts inside words.
16563 For example, `2*2 = 4*1` should not contain an emphasized
16564 section. Added test case for "Literal symbols". Closes #569.
16565 + Allow dashes as separator in simple tables. Closes #555.
16566 + Added support for `container`, `compound`, `epigraph`,
16567 `rubric`, `highlights`, `pull-quote`.
16568 + Added support for `.. code::`.
16569 + Made directive labels case-insensitive.
16570 + Removed requirement that directives begin at left margin.
16571 This was (correctly) not in earlier releases; docutils doesn't
16572 make the requirement.
16573 + Added support for `replace::` and `unicode::` substitutions.
16574 + Ignore unknown interpreted roles.
16575 + Renamed image parser to `subst`, since it now handles all
16576 substitution references.
16578 * Textile reader:
16580 + Allow newlines before pipes in table. Closes #654.
16581 + Fixed bug with list items containing line breaks.
16582 Now pandoc correctly handles hard line breaks inside list items.
16583 Previously they broke list parsing.
16584 + Implemented comment blocks.
16585 + Fixed bug affected words ending in hyphen.
16586 + Properly handle links with surrounding brackets.
16587 Square brackets need to be used when the link isn't surrounded by
16588 spaces or punctuation, or when the URL ending may be ambiguous.
16589 Closes #564.
16590 + Removed nullBlock. Better to know about parsing problems than
16591 to skip stuff when we get stuck.
16592 + Allow ID attributes on headers.
16593 + Textile reader: Avoid parsing dashes as strikeout.
16594 Previously the input
16596 text--
16597 text--
16598 text--
16599 text--
16601 would be parsed with strikeouts rather than dashes. This fixes
16602 the problem by requiring that a strikeout delimiting - not be
16603 followed by a -. Closes #631.
16604 + Expanded list of `stringBreakers`.
16605 This fixes a bug on input like "(_hello_)" which should
16606 be a parenthesized emphasized "hello".
16607 The new list is taken from the PHP source of textile 2.4.
16608 + Fixed autolinks. Previously the textile reader and writer
16609 incorrectly implemented RST-style autolinks for URLs and email
16610 addresses. This has been fixed. Now an autolink is done this way:
16611 `"$":http://myurl.com`.
16612 + Fixed footnotes bug in textile. This affected notes occurring
16613 before punctuation, e.g. `foo[1].`. Closes #518.
16615 * LaTeX reader:
16617 + Better handling of citation commands.
16618 + Better handling of `\noindent`.
16619 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
16620 Closes #622.
16621 + Made `rawLaTeXInline` try to parse block commands as well. This
16622 is usually what we want, given how `rawLaTeXInline` is used in
16623 the markdown and textile readers. If a block-level LaTeX command
16624 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
16625 we can treat it as raw inline LaTeX.
16626 + Handle `\slash` command. Closes #605.
16627 + Basic `\enquote` support.
16628 + Fixed parsing of paragraphs beginning with a group. Closes #606.
16629 + Use curly quotes for bare straight quotes.
16630 + Support obeylines environment. Closes #604.
16631 + Guard against "begin", "end" in inlineCommand and
16632 blockCommand.
16633 + Better error messages for environments. Now it should tell you that
16634 it was looking for \end{env}, instead of giving "unknown parse error."
16636 * HTML reader:
16638 + Added HTML 5 tags to list of block-level tags.
16639 + HTML reader: Fixed bug in `htmlBalanced`, which
16640 caused hangs in parsing certain markdown input using
16641 strict mode.
16642 + Parse `<q>` as `Quoted DoubleQuote`.
16643 + Handle nested `<q>` tags properly.
16644 + Modified `htmlTag` for fewer false positives.
16645 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
16646 This makes it more useful in the wikimedia and markdown parsers.
16648 * DocBook reader: Support title in "figure" element. Closes #650.
16650 * MediaWiki writer:
16652 + Remove newline after `<br/>` in translation of `LineBreak`
16653 There's no particular need for a newline (other than making the
16654 generated MediaWiki source look nice to a human), and in fact
16655 sometimes it is incorrect: in particular, inside an enumeration, list
16656 items cannot have embedded newline characters. (Brent Yorgey)
16657 + Use `<code>` not `<tt>` for Code.
16659 * Man writer: Escape `-` as `\-`.
16660 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
16661 signs. That is preferable for use with command-line options. See
16662 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
16663 to Andrea Bolognani for bringing the issue to our attention.
16665 * RST writer:
16667 + Improved line block output. Use nonbreaking spaces for
16668 initial indent (otherwise lost in HTML and LaTeX).
16669 Allow multiple paragraphs in a single line block.
16670 Allow soft breaks w continuations in line blocks.
16671 + Properly handle images with no alt text. Closes #678.
16672 + Fixed bug with links with duplicate text. We now (a) use anonymous
16673 links for links with inline URLs, and (b) use an inline link instead
16674 of a reference link if the reference link would require a label that
16675 has already been used for a different link. Closes #511.
16676 + Fixed hyperlinked images. Closes #611. Use `:target:`
16677 field when you have a simple linked image.
16678 + Don't add `:align: center` to figures.
16680 * Texinfo writer: Fixed internal cross-references.
16681 Now we insert anchors after each header, and use `@ref` instead of `@uref`
16682 for links. Commas are now escaped as `@comma{}` only when needed;
16683 previously all commas were escaped. (This change is needed, in part,
16684 because `@ref` commands must be followed by a real comma or period.) Also
16685 insert a blank line in from of `@verbatim` environments.
16687 * DocBook writer:
16689 + Made --id-prefix work in DocBook as well as HTML.
16690 Closes #607.
16691 + Don't include empty captions in figures. Closes #581.
16693 * LaTeX writer:
16695 + Use `\hspace*` for nonbreaking space after line break,
16696 since `~` spaces after a line break are just ignored.
16697 Closes #687.
16698 + Don't escape `_` in URLs or hyperref identifiers.
16699 + Properly escape strings inside `\url{}`. Closes #576.
16700 + Use `[fragile]` only for slides containing code rendered
16701 using listings. Closes #649.
16702 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
16703 highlighting-kate's macros, which redefine `|` as a short verbatim
16704 delimiter. Thanks to Björn Peemöller for raising this issue.
16705 + Use minipage rather than parbox for block containers in tables.
16706 This allows verbatim code to be included in grid tables.
16707 Closes #663.
16708 + Prevent paragraphs containing only linebreaks or spaces.
16710 * HTML writer:
16712 + Included `highlighting-css` for code spans, too.
16713 Previously it was only included if used in a code block. Closes #653.
16714 + Improved line breaks with `<dd>` tags. We now put a newline between
16715 `</dd>` and `<dd>` when there are multiple definitions.
16716 + Changed mathjax cdn url so it doesn't use https. (This caused
16717 problems when used with `--self-contained`.) See #609.
16719 * EPUB writer:
16721 + `--number-sections` now works properly.
16722 + Don't strip meta and link elements in epub metadata.
16723 Patch from aberrancy. Closes #589.
16724 + Fixed a couple validation bugs.
16725 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
16726 of chapters in some readers, which apparently sort ch2 after ch10.
16727 Closes #610.
16729 * ODT writer: properly set title property (Arlo O'Keeffe).
16731 * Docx writer:
16733 + Fixed bug with nested lists. Previously a list like
16735 1. one
16736 - a
16737 - b
16738 2. two
16740 would come out with a bullet instead of "2."
16741 Thanks to Russell Allen for reporting the bug.
16742 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
16743 This seems to fix a problem viewing pandoc-generated
16744 docx files in LibreOffice.
16745 + Use integer ids for bookmarks. Closes #626.
16746 + Added nsid to abstractNum elements. This helps when merging
16747 word documents with numbered or bulleted lists. Closes #627.
16748 + Use separate footnotes.xml for notes.
16749 This seems to help LibreOffice convert the file, even though
16750 it was valid docx before. Closes #637.
16751 + Use rIdNN identifiers for r:embed in images.
16752 + Avoid reading image files again when we've already processed them.
16753 + Fixed typo in `referenc.docx` that prevented image captions from
16754 working. Thanks to Huashan Chen.
16756 * `Text.Pandoc.Parsing`:
16758 + Fixed bug in `withRaw`, which didn't correctly handle the case
16759 where nothing is parsed.
16760 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
16761 though it still doesn't implement quoted strings in email addresses.
16762 + Revised URI parser. It now allows many more schemes, allows
16763 uppercase URIs, and better handles trailing punctuation and
16764 trailing slashes in bare URIs. Added many tests.
16765 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
16766 etc. parse properly. Formerly we had some English-centric heuristics,
16767 but they are no longer needed. Closes #698.
16769 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
16770 This fixes bug with Chinese commas in markdown and reST tables, and
16771 a bug that caused combining characters to be dropped.
16773 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
16775 * `Text.Pandoc.Biblio`:
16777 + Run `mvPunc` and `deNote` on metadata too.
16778 This fixed a bug with notes on titles using footnote styles.
16779 + Fixed bug in fetching CSL files from CSL data directory.
16781 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
16782 is provided. It should be the URL up to the path.
16784 * Fixed/simplified diff output for tests.
16785 Biblio: Make sure mvPunc and deNote run on metadata too.
16786 This fixed a bug with notes on titles using footnote styles.
16788### Under the hood improvements
16790 * We no longer depend on `utf8-string`. Instead we use functions
16791 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
16793 * Use `safeRead` instead of using `reads` directly (various modules).
16795 * "Implicit figures" (images alone in a paragraph) are now handled
16796 differently. The markdown reader gives their titles the prefix `fig:`; the
16797 writers look for this before treating the image as a figure. Though this
16798 is a bit of a hack, it has two advantages: (i) implicit figures can be
16799 limited to the markdown reader, and (ii) they can be deactivated by turning
16800 off the `implicit_figures` extension.
16802 * `catch` from `Control.Exception` is now used instead of the
16803 old Preface `catch`.
16805 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
16806 and `oneOfStrings` (which is now non-backtracking).
16808 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
16809 Now citeproc-hs is fixed upstream, so this is no longer needed.
16810 Closes #531.
16812 * Textile reader: Improved speed of `hyphenedWords`.
16813 This speeds up the textile reader by about a factor of 4.
16815 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
16816 better performance, and automatic normalization.
16818 * Major rewrite of markdown reader:
16820 + Use `Text.Pandoc.Builder` instead of lists. This also
16821 means that everything is normalized automatically.
16822 + Move to a one-pass parsing strategy, returning values in the reader
16823 monad, which are then run (at the end of parsing) against the final
16824 parser state.
16826 * In HTML writer, we now use `toHtml` instead of pre-escaping.
16827 We work around the problem that blaze-html unnecessarily escapes `'`
16828 by pre-escaping just the `'` characters, instead of the whole string.
16829 If blaze-html later stops escaping `'` characters, we can simplify
16830 `strToHtml` to `toHtml`. Closes #629.
16832 * Moved code for embedding images in RTFs from `pandoc.hs` to the
16833 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
16835 * Moved citation processing from `pandoc.hs` into the readers.
16836 This makes things more convenient for library users.
16838 * The man pages are now built by an executable `make-pandoc-man-pages`,
16839 which has its own stanza in the cabal file so that dependencies can be
16840 handled by Cabal. Special treatment in `Setup.hs` ensures that this
16841 executable never gets installed; it is only used to create the man pages.
16843 * The cabal file has been modified so that the pandoc library is used
16844 in building the pandoc executable. (This required moving `pandoc.hs`
16845 from `src` to `.`.) This cuts compile time in half.
16847 * The `executable` and `library` flags have been removed.
16849 * `-threaded` has been removed from ghc-options.
16851 * Version bounds of dependencies have been raised, and the
16852 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
16853 GHC 7.6.
16855 * We now require base >= 4.2.
16857 * Integrated the benchmark program into cabal. One can now do:
16859 cabal configure --enable-benchmarks && cabal build
16860 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
16862 The benchmark now uses README + testsuite, so benchmark results
16863 from older versions aren't comparable.
16865 * Integrated test suite with cabal.
16866 To run tests, configure with `--enable-tests`, then `cabal test`.
16867 You can specify particular tests using `--test-options='-t markdown'`.
16868 No output is shown unless tests fail. The Haskell test modules
16869 have been moved from `src/` to `tests/`.
16871 * Moved all data files and templates to the `data/` subdirectory.
16873 * Added an `embed_data_files` cabal flag. This causes all
16874 data files to be embedded in the binary, so that the binary
16875 is self-sufficient and can be relocated anywhere, copied on
16876 a USB key, etc. The Windows installer now uses this.
16877 (Since we no longer have the option to build the executable
16878 without the library, this is the only way to get a relocatable
16879 binary on Windows.)
16881 * Removed pcre3.dll from windows package.
16882 It isn't needed unless highlighting-kate is compiled with the
16883 `pcre-light` flag. By default, regex-prce-builtin is used.
16886## pandoc 1.9.4.5 (2012-10-21)
16888 * Raised version bounds on network, base64-bytestring, json,
16889 and template-haskell.
16891## pandoc 1.9.4.4 (2012-10-20)
16893 * Removed `tests` flag and made test suite into a proper cabal
16894 test suite, which can now be enabled using `--enable-tests`
16895 and run with `cabal test`.
16897 * Moved man page creation out of `Setup.hs` and into an
16898 executable built by Cabal, but never installed. This
16899 allows dependencies to be specified, and solves a problem
16900 with 1.9.4.3, which could only be installed if `data-default`
16901 had already been installed.
16903 * Updated `lhs-latex.tex` test for latest highlighting-kate
16904 representation of backticks.
16906## pandoc 1.9.4.3 (2012-10-20)
16908 * Removed `-threaded` from default compile flags.
16910 * Modified modules to compile with GHC 7.6 and latest version of time
16911 package.
16913## pandoc 1.9.4.2 (2012-06-29)
16915 * Don't encode/decode file paths if base >= 4.4.
16916 Prior to base 4.4, filepaths and command line arguments were treated
16917 as unencoded lists of bytes, not unicode strings, so we had to work
16918 around that by encoding and decoding them. This commit adds CPP
16919 checks for the base version that intelligibly enable encoding/decoding
16920 when needed. Fixes a bug with multilingual filenames when pandoc was
16921 compiled with ghc 7.4 (#540).
16923 * Don't generate an empty H1 after hrule slide breaks.
16924 We now use a slide-level header with contents `[Str "\0"]` to mark
16925 an hrule break. This avoids creation of an empty H1 in these
16926 contexts. Closes #484.
16928 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
16930 * In make_osx_package.sh, ensure citeproc-hs is built with the
16931 embed_data_files flag.
16933 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
16935 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
16936 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
16938 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
16939 Closes #535.
16941 * Added webm to mime types. Closes #543.
16943 * Added some missing exports and tests to the cabal file
16944 (Alexander V Vershilov).
16946 * Compile with `-rtsopts` and `-threaded` by default.
16948## pandoc 1.9.4.1 (2012-06-08)
16950 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
16952 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
16953 variables. Make TOC links black.
16955 * LaTeX template improvements.
16957 + Don't print date unless one is given explicitly in the document.
16958 + Simplified templates.
16959 + Use fontenc [T1] by default, and lmodern.
16960 + Use microtype if available.
16962 * Biblio:
16964 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
16965 Motivation: `@item1 [50]` should be as close as possible to
16966 `[@item1, 50]`.
16967 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
16968 beginning with a citation to be empty. Closes #531.
16970 * Fixed documentation on mixed lists. Closes #533.
16972## pandoc 1.9.4 (2012-06-03)
16974 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
16975 footnotes and captions. We now handle note citations by inserting
16976 footnotes during initial citation processing, and doing a separate
16977 pass later to remove notes inside notes.
16979 * Added 'zenburn' highlight style from highlighting-kate.
16981 * Added Slideous writer. Slideous is an HTML + javascript slide show
16982 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
16984 * LaTeX writer:
16986 + Ensure we don't have extra blank lines at ends of cells.
16987 This can cause LaTeX errors, as they are interpreted as new paragraphs.
16988 + More consistent interblock spacing.
16989 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
16990 code in LaTeX. Closes #527.
16991 + Ensure that a Verbatim at the end of a footnote is followed by
16992 a newline. (Fixes a regression in the previous version.)
16993 + In default template, use black for internal links and TOC.
16994 Added commented-out code to use footnotes for links, as would
16995 be suitable in print output.
16997 * Beamer writer: When `--incremental` is used, lists inside
16998 a block quote should appear all at once. (This makes Beamer
16999 output consistent with the HTML slide show formats.)
17001 * ConTeXt writer:
17003 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
17004 to avoid gobbling spaces after the `%` sign.
17005 + Ensure space after `\stopformula`.
17007 * Markdown writer:
17009 + Use `:` form instead of `~` in definition lists, for better
17010 compatibility with other markdown implementations.
17011 + Don't wrap the term, because it breaks definition lists.
17012 + Use a nonzero space to prevent false recognition
17013 of list marker in ordered lists. Closes #516.
17015 * Org writer: Add space before language name. Closes #523.
17017 * Docx writer: Simplified bullet characters so they work properly
17018 with Word 2007. Closes #520.
17020 * LaTeX reader: Support `\centerline`.
17022 * RST reader: handle figures. Closes #522.
17024 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
17025 (Paul Rivier)
17027## pandoc 1.9.3 (2012-05-12)
17029 * Added docbook reader (with contributions from Mauro Bieg).
17031 * Fixed bug in `fromEntities`. The previous version would turn
17032 `hi & low you know;` into `hi &`.
17034 * HTML reader:
17036 + Don't skip nonbreaking spaces.
17037 Previously a paragraph containing just `&nbsp;` would be rendered
17038 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
17039 + Support `<col>` and `<caption>` in tables. Closes #486.
17041 * Markdown reader:
17043 + Don't recognize references inside delimited code blocks.
17044 + Allow list items to begin with lists.
17046 * LaTeX reader:
17048 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
17049 + Control sequences can't be followed by a letter.
17050 This fixes a bug where `\begingroup` was parsed as `\begin`
17051 followed by `group`.
17052 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
17053 + Make `\label` and `\ref` sensitive to `--parse-raw`.
17054 If `--parse-raw` is selected, these will be parsed as raw latex
17055 inlines, rather than bracketed text.
17056 + Don't crash on unknown block commands (like `\vspace{10pt}`)
17057 inside `\author`; just skip them. Closes #505.
17059 * Textile reader:
17061 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
17062 + Added support for LaTeX blocks and inlines (Paul Rivier).
17063 + Better conformance to RedCloth inline parsing (Paul Rivier).
17064 + Parse '+text+' as emphasized (should be underlined, but this
17065 is better than leaving literal plus characters in the output.
17067 * Docx writer: Fixed multi-paragraph list items. Previously they each
17068 got a list marker. Closes #457.
17070 * LaTeX writer:
17072 + Added `--no-tex-ligatures` option to avoid replacing
17073 quotation marks and dashes with TeX ligatures.
17074 + Use `fixltx2e` package to provide `\textsubscript`.
17075 + Improve spacing around LaTeX block environments:
17076 quote, verbatim, itemize, description, enumerate.
17077 Closes #502.
17078 + Use blue instead of pink for URL links in latex/pdf output.
17080 * ConTeXt writer: Fixed escaping of `%`.
17081 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
17082 Inside URLs, `%` needs to be escaped as `\%`
17083 Thanks to jmarca and adityam for the fix. Closes #492.
17085 * Texinfo writer: Escape special characters in node titles.
17086 This fixes a problem pointed out by Joost Kremers. Pandoc used
17087 to escape an '@' in a chapter title, but not in the corresponding
17088 node title, leading to invalid texinfo.
17090 * Fixed document encoding in texinfo template.
17091 Resolves Debian Bug #667816.
17093 * Markdown writer:
17095 + Don't force delimited code blocks to be flush left.
17096 Fixes bug with delimited code blocks inside lists etc.
17097 + Escape `<` and `$`.
17099 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
17100 Previously we used `\href{\#ident}{text}`, which didn't work on
17101 all systems. Thanks to Dirk Laurie.
17103 * RST writer: Don't wrap link references. Closes #487.
17105 * Updated to use latest versions of blaze-html, mtl.
17108## pandoc 1.9.2 (2012-04-05)
17110 * LaTeX reader:
17112 + Made `lstlisting` work as a proper verbatim environment.
17113 + Fixed bug parsing LaTeX tables with one column.
17115 * LaTeX writer:
17117 + Use `{}` around `ctable` caption, so that formatting can be used.
17118 + Don't require eurosym package unless document has a €.
17120 * LaTeX template: Added variables for `geometry`, `romanfont`,
17121 `sansfont`, `mathfont`, `mainfont` so users can more easily
17122 customize fonts.
17124 * PDF writer:
17126 + Run latex engine at least two times, to ensure
17127 that PDFs will have hyperlinked bookmarks.
17128 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
17130 * Texinfo writer: retain directories in image paths. (Peter Wang)
17132 * RST writer: Better handling of inline formatting, in accord
17133 with docutils' "inline markup recognition rules" (though we don't
17134 implement the unicode rules fully). Now `hi*there*hi` gets
17135 rendered properly as `hi\ *there*\ hi`, and unnecessary
17136 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
17138 * RST reader:
17140 + Parse `\ ` as null, not escaped space.
17141 + Allow `` :math:`...` `` even when not followed by blank
17142 or `\`. This does not implement the complex rule docutils follows,
17143 but it should be good enough for most purposes.
17144 + Add support for the rST default-role directive. (Greg Maslov)
17146 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
17147 (Greg Maslov)
17149 * Markdown reader: Properly handle citations nested in other inline
17150 elements.
17152 * Markdown writer: don't replace empty alt in image with "image".
17154 * DZSlides: Updated template.html and styles in default template.
17155 Removed bizarre CSS for `q` in dzslides template.
17157 * Avoid repeated `id` attribute in section and header in HTML slides.
17159 * README improvements: new instructions on internal links,
17160 removed misleading note on reST math.
17162 * Build system:
17164 + Fixed Windows installer so that dzslides works.
17165 + Removed stripansi.sh.
17166 + Added .travis.yml for Travis continuous integration support..
17167 + Fixed upper bound for zlib (Sergei Trofimovich).
17168 + Fixed upper bound for test-framework.
17169 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
17172## pandoc 1.9.1.2 (2012-03-09)
17174 * Added `beamer+lhs` as output format.
17176 * Don't escape `<` in `<style>` tags with `--self-contained`.
17177 This fixes a bug which prevented highlighting from working
17178 when using `--self-contained`.
17180 * PDF: run latex engine three times if `--toc` specified.
17181 This fixes page numbers in the table of contents.
17183 * Docx writer: Added TableNormal style to tables.
17185 * LaTeX math environment fixes. `aligned` is now used instead of
17186 the nonexistent `aligned*`. `multline` instead of the nonexistent
17187 `multiline`.
17189 * LaTeX writer: Use `\textasciitilde` for literal `~`.
17191 * HTML writer: Don't escape contents of EQ tags with --gladtex.
17192 This fixes a regression from 1.8.
17194 * Use `<q>` tags for Quoted items for HTML5 output.
17195 The quote style can be changed by modifying the template
17196 or including a css file. A default quote style is included.
17198 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
17199 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
17201 * Updated LaTeX template for better language support.
17202 Use `polyglossia` instead of `babel` with xetex.
17203 Set `lang` as documentclass option.
17204 `\setmainlanguage` will use the last of a comma-separated
17205 list of languages. Thanks to François Gannaz.
17207 * Fixed default LaTeX template so `\euro` and `€` work. The
17208 `eurosym` package is needed if you are using pdflatex.
17210 * Fixed escaping of period in man writer (thanks to Michael Thompson).
17212 * Fixed list label positions in beamer.
17214 * Set `mainlang` variable in context writer.
17215 This parallels behavior of latex writer. `mainlang` is the last
17216 of a comma-separated list of languages in lang.
17218 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
17220 * Changed `-V` so that you can specify a key without a value.
17221 Such keys get the value `true`.
17223 * Fixed permissions on installed man pages - thanks Magnus Therning.
17225 * Windows installer: require XP or higher. The installer is
17226 now compiled on a Windows 7 machine, which fixes a problem
17227 using citation functions on Windows 7.
17229 * OSX package: Check for 64-bit Intel CPU before installing.
17232## pandoc 1.9.1.1 (2012-02-11)
17234 * Better handling of raw latex environments in markdown. Now
17236 \begin{equation}
17237 a_1
17238 \end{equation}
17240 turns into a raw latex block as expected.
17242 * Improvements to LaTeX reader:
17244 + Skip options after block commands.
17245 + Correctly handle `{\\}` in braced.
17246 + Added a needed 'try'.
17247 + Citations: add `, ` to suffix if it doesn't start with space or
17248 punctuation. Otherwise we get no space between the year and the
17249 suffix in author-date styles.
17251 * Added two needed data files for S5. This fixes a problem with
17252 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
17253 which was no longer being used.
17255 * Fixed some minor problems in `reference.docx`:
17256 name on "Date" style, `xCs` instead of `xIs`.
17258 * Fixed a problem creating docx files using a reference docx
17259 modified using Word. The problem seems to be that Word
17260 modifies `_rels/.rels`, changing the Type of the Relationship to
17261 `docProps/core.xml`. Pandoc now changes this back to the correct
17262 value if it has been altered, fixing the problem.
17264 * Fixed html5 template so it works properly with highlighting.
17266## pandoc 1.9.1 (2012-02-09)
17268 * LaTeX reader:
17270 + Fixed regression in 1.9; properly handle escaped $ in latex math.
17271 + Put LaTeX verse environments in blockquotes.
17273 * Markdown reader:
17275 + Limit nesting of strong/emph. This avoids exponential lookahead
17276 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
17277 + Improved attributes syntax (in code blocks/spans): (1)
17278 Attributes can contain line breaks. (2) Values in key-value
17279 attributes can be surrounded by either double or single quotes, or
17280 left unquoted if they contain no spaces.
17282 * Headers no longer wrap in markdown or RST writers.
17284 * Added `stateMaxNestingLevel` to `ParserState`.
17285 We set this to 6, so you can still have `Emph` inside `Emph`,
17286 just not indefinitely.
17288 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
17290 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
17291 is present.
17293 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
17295## pandoc 1.9.0.5 (2012-02-06)
17297 * Changed cabal file so that build-depends for the test program
17298 are not required unless the tests flag is used.
17300 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
17301 form ligatures (dashes) in code spans.
17303## pandoc 1.9.0.4 (2012-02-06)
17305 * Raised version bound on test-framework to avoid problems
17306 compiling tests on GHC 7.4.1.
17308 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
17309 so citations don't just disappear unless you process with
17310 citeproc. Ignore `\bibliographystyle`, `\nocite`.
17312 * Simplified tex2pdf; it will always run latex twice to
17313 resolve table of contents and hyperrefs.
17315## pandoc 1.9.0.3 (2012-02-06)
17317 * Require Cabal >= 1.10.
17319 * Tweaked cabal file to meet Cabal 1.10 requirements.
17321## pandoc 1.9.0.2 (2012-02-05)
17323 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
17324 ghc 6.12.
17326## pandoc 1.9 (2012-02-05)
17328### New features
17330 * Added a Microsoft Word `docx` writer. The writer includes support
17331 for highlighted code and for math (which is converted from TeX to OMML,
17332 Office's native math markup language, using texmath's new OMML module).
17333 A new option `--reference-docx` allows the user to customize the
17334 styles.
17336 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
17338 * Better support for slide shows:
17340 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
17341 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
17343 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
17344 slide presentations.
17346 + New, flexible rules for dividing documents into sections and slides
17347 (see the "Structuring the slide show" in the User's Guide). These
17348 are backward-compatible with the old rules, but they allow slide
17349 shows to be organized into sections and subsections containing
17350 multiple slides.
17352 + A new `--slide-level` option allows users to override defaults
17353 and select a slide level below the first header level with content.
17355 * A new `--self-contained` option produces HTML output that does not
17356 depend on an internet connection or the presence of any external
17357 files. Linked images, CSS, and javascript is downloaded (or fetched
17358 locally) and encoded in `data:` URIs. This is useful for making portable
17359 `HTML slide shows. The --offline` option has been deprecated and is now
17360 `treated as a synonym or --self-contained`.
17362 * Support for PDF output:
17364 + Removed the old `markdown2pdf`.
17365 + `pandoc` can now create PDFs (assuming you have latex and a set of
17366 appropriate packages installed): just specify an output file with the
17367 `.pdf` extension.
17368 + A new option `--latex-engine` allows you to specify `pdflatex`,
17369 `xelatex`, or `lualatex` as the processor.
17371 * Highlighting changes:
17373 + Syntax highlighting is now a standard feature; the `highlighting`
17374 flag is no longer needed when compiling.
17375 + A new `--no-highlight` option allows highlighting to be disabled.
17376 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
17377 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
17378 + A new `--highlight-style` option selects between various highlighting
17379 color themes.
17381 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
17383 * LaTeX `\include` and `\usepackage` commands are now processed,
17384 provided the files are in the working directory.
17386 * EPUB improvements:
17388 + Internal and external links now work in EPUB.
17389 + Raw HTML is allowed.
17390 + New `--epub-embed-font` option.
17391 + Customizable templates for EPUB pages offer more control over
17392 formatting: `epub-page.html`, `epub-coverimage.html`,
17393 `epub-titlepage.html`.
17395 * `--mathml` now works with DocBook.
17397 * Added support for math in RST reader and writer. Inline math uses the
17398 `` :math:`...` `` construct. Display math uses
17400 .. math:: ...
17402 or if the math is multiline,
17404 .. math::
17406 ...
17408 These constructions are now supported now by `rst2latex.py`.
17410 * Github syntax for fenced code blocks is supported in pandoc's
17411 markdown. You can now write
17413 ```ruby
17414 x = 2
17415 ```
17417 instead of
17419 ~~~ {.ruby}
17420 x = 2
17421 ~~~~
17423 * Easier scripting: a new `toJsonFilter` function makes it easier to
17424 write Haskell scripts to manipulate the Pandoc AST.
17425 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
17427### Behavior changes
17429 * Fixed parsing of consecutive lists in markdown.
17430 Pandoc previously behaved like Markdown.pl for consecutive
17431 lists of different styles. Thus, the following would be parsed
17432 as a single ordered list, rather than an ordered list followed
17433 by an unordered list:
17435 1. one
17436 2. two
17438 - one
17439 - two
17441 This change makes pandoc behave more sensibly, parsing this as
17442 two lists. Any change in list type (ordered/unordered) or in
17443 list number style will trigger a new list. Thus, the following
17444 will also be parsed as two lists:
17446 1. one
17447 2. two
17449 a. one
17450 b. two
17452 Since we regard this as a bug in Markdown.pl, and not something
17453 anyone would ever rely on, we do not preserve the old behavior
17454 even when `--strict` is selected.
17456 * Dashes work differently with `--smart`: `---` is always em-dash,
17457 and `--` is always en-dash. Pandoc no longer tries to guess when
17458 `-` should be en-dash. *Note:* This may change how existing documents
17459 look when processed with pandoc. A new option, `--old-dashes`,
17460 is provided for legacy documents.
17462 * The markdown writer now uses setext headers for levels 1-2.
17463 The old behavior (ATX headers for all levels) can be restored
17464 using the new `--atx-headers` option.
17466 * Links are now allowed in markdown image captions. They are also
17467 allowed in links, but will appear there as regular text. So,
17469 [link with [link](/url)](/url)
17471 will turn into
17473 <p><a href="/url">link with link</a></p>
17475 * Improved handling of citations using `citeproc-hs-0.3.4`.
17476 Added `--citation-abbreviations` option.
17478 * Citation keys can no longer end with a punctuation character.
17479 This means that `@item1.` will be parsed as a citation with key
17480 'item1', followed by a period, instead of a citation with key
17481 'item1.', as was the case previously.
17483 * In HTML output, citations are now put in a span with class `citation`.
17485 * The markdown reader now recognizes DocBook block and inline tags.
17486 It was always possible to include raw DocBook tags in a markdown
17487 document, but now pandoc will be able to distinguish block from
17488 inline tags and behave accordingly. Thus, for example,
17490 <sidebar>
17491 hello
17492 </sidebar>
17494 will not be wrapped in `<para>` tags.
17496 * The LaTeX parser has been completely rewritten; it is now much more
17497 accurate, robust, and extensible. However, there are two important
17498 changes in how it treats unknown LaTeX. (1) Previously, unknown
17499 environments became BlockQuote elements; now, they are treated
17500 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
17501 same as `xyz`. (2) Previously, arguments of unknown commands
17502 were passed through with their braces; now the braces are stripped
17503 off.
17505 * `--smart` is no longer selected automatically with `man` output.
17507 * The deprecated `--xetex` option has been removed.
17509 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
17510 instead. `html5` and `html5+lhs` are now separate output formats.
17512 * Single quotes are no longer escaped in HTML output. They do not
17513 need to be escaped outside of attributes.
17515 * Pandoc will no longer transform leading newlines in code
17516 blocks to `<br/>` tags.
17518 * The ODT writer now sizes images appropriately, using the image
17519 size and DPI information embedded in the image.
17521 * `--standalone` is once again implicitly for a non-text output format
17522 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
17523 and get a standalone ODT file.
17525 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
17526 `<section>`.
17528 * The HTML writer now uses `<del>` for strikeout.
17530 * In HTML output with `--section-divs`, the classes `section` and
17531 `level[1,2,..6]` are put on the `div` tags so they can be styled.
17532 In HTML 5 output with `--section-divs`, the classes
17533 `level[1,2,...6]` are put on `section` tags.
17535 * EPUB writer changes:
17537 + The `lang` variable now sets the language
17538 in the metadata (if it is not set, we default to the locale).
17539 + EPUB: UTF-8 is used rather than decimal entities.
17541 * Added `titleslide` class to title slide in S5 template.
17543 * In HTML, EPUB, and docx metadata, the date is normalized into
17544 YYYY-MM-DD format if possible. (This is required for validation.)
17546 * Attributes in highlighted code blocks are now preserved in HTML.
17547 The container element will have the classes, id, and key-value attributes
17548 you specified in the delimited code block. Previously these were stripped
17549 off.
17551 * The reference backlink in the HTML writer no longer has a special
17552 `footnoteBacklink` class.
17554 * The HTML template has been split into `html` and `html5` templates.
17556 * Author and date are treated more consistently in HTML templates.
17557 Authors are now `<h2>`, date `<h3>`.
17559 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
17561 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
17563### Bug fixes
17565 * Better support for combining characters and East Asian wide characters
17566 in markdown and reST.
17568 * Better handling of single quotes with `--smart`.
17569 Previously `D'oh l'*aide*` would be parsed with left and right single
17570 quotes instead of apostrophes. This kind of error is now fixed.
17572 * Highlighting: Use `reads` instead of `read` for better error handling.
17573 Fixes crash on `startNum="abc"`.
17575 * Added blank comment after directives in rst template.
17577 * Unescape entities in citation `refId`. The `refId`s coming
17578 from citeproc contain XML numeric entities, and these don't match with the
17579 citation keys parsed by pandoc. Solution is to unescape them.
17581 * HTML reader: Fixed bug parsing tables with both thead and tbody.
17583 * Markdown reader:
17585 + Better handling of escapes in link URLs and titles.
17586 + Fixed backslash escapes in reference links.
17587 + Fixed bug in table/hrule parsing, by checking that the top
17588 line of a table is not followed by a blank line. This bug caused
17589 slowdowns on some files with hrules and tables, as pandoc tried to
17590 interpret the hrules as the tops of multiline tables.
17591 + Fixed bug in code block attribute parser. Previously the ID attribute
17592 got lost if it didn't come first. Now attributes can come in any order.
17594 * RST reader: allow footnotes followed by newline without space characters.
17596 * LaTeX reader:
17598 + Ignore empty groups {}, { }.
17599 + LaTeX reader: Handle `\@`.
17600 + LaTeX reader: Don't crash on commands like `\itemsep`.
17601 + LaTeX reader: Better handling of letter environments.
17603 * RST writer: Fixed bug involving empty table cells. isSimple was being
17604 calculated in a way that assumed there were no non-empty cells.
17606 * ConTeXt writer:
17608 + Made `--toc` work even without `--number-sections`.
17609 + Escape # in link URLs.
17610 + Use buffering for footnotes containing code blocks.
17611 + Changed 'descr' to 'description', fixed alignment.
17613 * LaTeX writer:
17615 + Escape euro character.
17616 + Don't escape `~` inside `\href{...}`.
17617 + Escape `#` in href URLs.
17618 + Improved detection of book classes. We now check the
17619 `documentclass` variable, and if that is not set, we look through
17620 the template itself. Also, we have added the KOMA classes scrreprt
17621 and scrbook. You can now make a book using
17622 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
17623 + LHS files now set the "listings" variable, so that the definition
17624 of the `code` environment will be included in the template.
17625 + Links are colored blue by default (this can be changed by
17626 modifying `hyperref` settings in the template).
17627 + Added `lang` variable to LaTeX template.
17629 * HTML writer:
17631 + Fixed bug in HTML template with html5 and mathml.
17632 + Don't use self-closing img, br, hr tags for HTML5.
17633 + Use `<section>` for footnotes if HTML5.
17634 + Update HTML templates to use Content-Style-Type meta tag.
17635 + Use separate variables for meta-date, meta-author.
17636 This makes footnotes work in author and date fields.
17637 + Use 'vertical-align:middle' in WebTeX math for better alignment.
17639 * S5/slidy writer: Make footnotes appear on separate slide at end.
17641 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
17642 META-INF/manifest.xml for ODT files will have everything it needs, so
17643 that ODT files modified by LibreOffice can be used as `--reference-odt`.
17645 * `Text.Pandoc.Templates`: Return empty string for json template.
17647 * `Text.Pandoc.Biblio`:
17649 + Expand citations recursively inside nested inlines.
17650 + Treat `\160` as space when parsing locator and suffix.
17651 This fixes a bug with "p. 33" when `--smart` is used. Previously
17652 the whole "p. 33" would be included in the suffix, with no locator.
17653 + Put whole author-in-text citation in a Cite. Previously just the
17654 date and other info went in the Cite.
17655 + Don't add comma+space to prefix if it ends in punctuation.
17657 * Updated chicago-author-date.csl. The old version did not work
17658 properly for edited volumes with no author.
17660 * EPUB writer:
17662 + Add date to EPUB titlepage and metadata.
17663 + Added TOC identifier in EPUB page template.
17664 + Don't generate superfluous file `cover-image.jpg`.
17666### Under the hood improvements
17668 * Modified `make_osx_package.sh` to use cabal-dev.
17669 Items are no longer installed as root.
17670 Man pages are zipped and given proper permissions.
17672 * Modified windows installer generator to use cabal-dev.
17674 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
17675 Setup.hs we now invoke 'runghc' in a way that points it to the correct
17676 package databases, instead of always falling back to the default user
17677 package db.
17679 * Updated to work with GHC 7.4.1.
17681 * Removed dependency on old-time.
17683 * Removed dependency on dlist.
17685 * New slidy directory for "self-contained."
17687 * TeXMath writer: Use unicode thin spaces for thin spaces.
17689 * Markdown citations: don't strip off initial space in locator.
17691### API changes
17693 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
17694 from the native `Inline` type in pandoc-types. Now we use `Str`
17695 elements with unicode.
17697 * Improvements to `Text.Pandoc.Builder`:
17699 + `Inlines` and `Blocks` are now newtypes (not synonyms for
17700 sequences).
17701 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
17702 and a new `Listable` class, which allows these to be manipulated
17703 to some extent like lists. Monoid append includes automatic
17704 normalization.
17705 + `+++` has been replaced by `<>` (mappend).
17707 * Use blaze-html instead of xhtml for HTML generation.
17708 This changes the type of `writeHtml`.
17710 * `Text.Pandoc.Shared`:
17712 + Added `warn` and `err`.
17713 + Removed `unescapeURI`, modified `escapeURI`.
17714 (See under [behavior changes], above.)
17716 * Changes in URI escaping: Previously the readers escaped URIs by
17717 converting unicode characters to octets and then percent encoding.
17718 Now unicode characters are left as they are, and `escapeURI` only
17719 percent-encodes space characters. This gives more readable
17720 URIs, and works well with modern user agents. URIs are no longer unescaped
17721 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
17723 * New module `Text.Pandoc.SelfContained`.
17725 * New module `Text.Pandoc.Docx`.
17727 * New module `Text.Pandoc.PDF`.
17729 * Added `writerBeamer` to `WriterOptions`.
17731 * Added `normalizeDate` to `Text.Pandoc.Shared`.
17733 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
17734 This is like `splitWithIndices`, but it is sensitive to distinctions
17735 between wide, combining, and regular characters.
17737 * `Text.Pandoc.Pretty`:
17739 + Added `chomp` combinator.
17740 + Added `beforeNonBreak` combinator. This allows you to include
17741 something conditionally on it being before a nonblank.
17742 Used for RST inline math.
17743 + Added `charWidth` function. All characters marked W or F in the unicode
17744 spec EastAsianWidth.txt get width 2.
17745 + Added `realLength`, based on `charWidth`. `realLength` is now
17746 used in calculating offsets.
17748 * New module `Text.Pandoc.Slides`, for common functions for breaking
17749 a document into slides.
17751 * Removed `Text.Pandoc.S5`, which is no longer needed.
17753 * Removed `Text.Pandoc.CharacterReferences`. Moved
17754 `characterReference` to `Text.Pandoc.Parsing`.
17755 `decodeCharacterReferences` is replaced by `fromEntities`
17756 in `Text.Pandoc.XML`.
17758 * Added `Text.Pandoc.ImageSize`. This is intened for use
17759 in `docx` and `odt` writers, so the size and dpi of images
17760 can be calculated.
17762 * Removed `writerAscii` in `WriterOptions`.
17764 * Added `writerHighlight` to `WriterOptions`.
17766 * Added `DZSlides` to `HTMLSlideVariant`.
17768 * `writeEPUB` has a new argument for font files to embed.
17770 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
17771 of whether we're parsing the position immediately after a regular
17772 (non-space, non-symbol) string, which is useful for distinguishing
17773 apostrophes from single quote starts.
17775 * `Text.Pandoc.Parsing`:
17777 + `escaped` now returns a `Char`.
17778 + Removed `charsInBalanced'`, added a character parser as
17779 a parameter of `charsInBalanced`. This is needed for
17780 proper handling of escapes, etc.
17781 + Added `withRaw`.
17783 * Added `toEntities` to `Text.Pandoc.XML`.
17785 * `Text.Pandoc.Readers.LaTeX`:
17787 + Export `handleIncludes`.
17788 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
17790 * Added `ToJsonFilter` class and `toJsonFilter` function to
17791 `Text.Pandoc`, deprecating the old `jsonFilter` function.
17793 * `Text.Pandoc.Highlighting`:
17795 + Removed `highlightHtml`, `defaultHighlightingCss`.
17796 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
17797 key functions from highlighting-kate.
17798 + Changed types of highlighting function. `highlight` returns a
17799 `Maybe`, not an `Either`.
17802## pandoc 1.8.2.1 (2011-08-01)
17804 * Adjusted Arbitrary instance to help avoid timeouts in tests.
17806 * Added `Tests.Writers.Markdown` to cabal file.
17808 * Relaxed version bounds on pandoc-types, test-framework.
17810## pandoc 1.8.2 (2011-07-30)
17812 * Added script to produce OS X package.
17814 * Made `templates` directory a git submodule. This should make it
17815 easier for people to revise their custom templates when the default
17816 templates change.
17818 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
17819 **Note:** If you have existing templates in `~/.pandoc/templates`, you
17820 must rename them to conform to the new scheme!
17822 * Default template improvements:
17824 + HTML: Display author and date after title.
17825 + HTML: Made table of contents more customizable. The container
17826 for the TOC is now in the template, so users can insert a header
17827 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
17828 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
17829 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
17830 hard-coding. If you want to put your slidy files in the slidy
17831 subdirectory, for example, you can do
17832 `pandoc -t slidy -V slidy-url=slidy -s`.
17833 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
17834 & writer). Closes #279.
17835 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
17836 + LaTeX: Use different `hyperref` options for `xetex`, fixing
17837 problems with unicode bookmarks (thanks to CircleCode).
17838 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
17839 with `inputenc`. This covers fewer characters but is more
17840 robust with other packages, and `ucs` is unmaintained. Users
17841 who need better unicode support should use xelatex or lualatex.
17843 * If a template specified with `--template` is not found, look for it
17844 in `datadir`. Also, if no extension is provided, supply one based
17845 on the writer. So now you can put your `special.latex` template in
17846 `~/.pandoc/templates`, and use it from any directory via
17847 `pandoc -t latex --template special`.
17849 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
17851 * Fixed smart quotes bug, now handling `'...hi'` properly.
17853 * RST reader:
17855 + Partial support for labeled footnotes.
17856 + Improved accuracy of `simpleReferenceName` parser.
17858 * HTML reader:
17860 + Substitute correct unicode characters for
17861 characters in the 128..159 range, which are often found even in
17862 HTML that purports to be UTF-8.
17864 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
17865 to the title, after a colon and linebreak). Closes #280.
17867 * Leaner `reference.odt`.
17869 * Added unexported module `Text.Pandoc.MIME` for use in
17870 the ODT writer.
17872 * ODT writer: Construct `manifest.xml` based on archive contents.
17873 This fixes a bug in ODTs containing images. Recent versions of
17874 LibreOffice would reject these as corrupt, because `manifest.xml`
17875 did not contain a reference to the image files.
17877 * LaTeX writer:
17879 + Make verbatim environments flush to avoid spurious
17880 blank lines. Closes #277.
17881 + Use `\texttt` and escapes insntead of `\verb!...!`, which
17882 is too fragile (doesn't work in command arguments).
17883 + Use `\enquote{}` for quotes if the template includes
17884 the `csquotes` package. This provides better support for
17885 local quoting styles. (Thanks to Andreas Wagner for the idea.)
17887 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
17888 margin, preventing spurious blank lines.
17890 * Slidy writer:
17892 + Use non-minimized version of `slidy.css` with `--offline`
17893 option, so users can more easily edit it.
17894 + Also fixed a bug in the CSS that prevented proper centering
17895 of title (now reported and fixed upstream).
17897 * S5 writer:
17899 + Replaced `s5/default/slides.js.{comment,packed}` with
17900 new compressed `s5/default/slides.min.js`.
17901 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
17902 when `--offline` is specified. Using inline CSS didn't
17903 work with Chrome or Safari. This fixes offline
17904 S5 on those browsers.
17906 * HTML writer: Removed English title on footnote backlinks.
17907 This is incongrous in non-English documents.
17909 * Docbook writer:
17911 + Use CALS tables. (Some older docbook software does not work
17912 well with XHTML tables.) Closes #77.
17913 + Use `programlisting` tags (instead of `screen`) for code blocks.
17915 * `markdown2pdf`:
17917 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
17918 of `-interaction=batchmode`, which essentially just ignored errors,
17919 leading to bad results. Better to know when something is wrong.
17920 + Fixed issues with non-UTF-8 output of `pdflatex`.
17921 + Better error reporting.
17923 * `--mathjax` now takes an optional URL argument. If it is not
17924 provided, pandoc links directly to the (secure) mathjax CDN,
17925 as now recommended (thanks to dsanson).
17927 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
17928 since the LaTeX writer now produces a file that can be processed by
17929 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
17931 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
17932 to be used to create the PDF.
17935## pandoc 1.8.1.2 (2011-07-16)
17937 * Added `--epub-cover-image` option.
17939 * Documented `--biblatex` and `--natbib` options.
17941 * Allow `--section-divs` with slidy output. Resolves Issue #296.
17943 * Disallow notes within notes in reST and markdown.
17944 These previously caused infinite looping and stack overflows.
17945 For example:
17947 [^1]
17949 [^1]: See [^1]
17951 Note references are allowed in reST notes, so this isn't a full
17952 implementation of reST. That can come later. For now we need to
17953 prevent the stack overflows. Partially resolves Issue #297.
17955 * EPUB writer: Allow non-plain math methods.
17957 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
17958 `(@item1; @item2)` because the final paren was being parsed as part of
17959 the item key.
17961 * Changed URI parser so it doesn't include trailing punctuation.
17962 So, in RST, `http://google.com.` should be parsed as a link followed by a
17963 period. The parser is smart enough to recognize balanced parentheses, as
17964 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
17966 * Markdown+lhs reader: Require space after inverse bird tracks, so that
17967 HTML tags can be used freely at the left margin of a markdown+lhs document.
17968 Thanks to Conal Elliot for the suggestion.
17970 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
17972 * RST reader:
17973 + Fixed bug in in field lists with multi-line items at the
17974 end of the list.
17975 + Added parentheses to RST `specialChars`, so
17976 `(http://google.com)` will be parsed as a link in parens.
17977 Resolves Issue #291.
17978 + Allow `|` followed by newline in RST line block.
17980 * LaTeX reader:
17981 + Support `\dots`.
17982 + Gobble option & space after linebreak `\\[10pt]`.
17984 * Textile reader:
17985 + Make it possible to have colons after links. (qerub)
17986 + Make it possible to have colons after links. (Christoffer Sawicki)
17988 * HTML reader:
17989 + Skip spaces after `<b>`, `<emph>`, etc.
17990 + Handle tbody, thead in simple tables. Closes #274.
17991 + Implicit `Para`s instead of `Plains` in some contexts.
17993 * OpenDocument writer: Use special `First paragraph` style for
17994 first paragraph after most non-paragraph blocks. This allows users to
17995 specify e.g. that only paragraphs after the first paragraph of a block are
17996 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
17998 * LaTeX writer: use `deVerb` on table and picture captions.
17999 Otherwise LaTeX complains about `\verb` inside command argument.
18000 Thanks to bbanier for reporting the bug.
18002 * Markdown writer: Insert HTML comment btw list and indented code block.
18003 This prevents the code block from being interpreted as part of the list.
18005 * EPUB writer: Add a meta element specify the cover.
18006 Some EPUB e-readers, such as the Nook, require a meta element inside the
18007 OPF metadata block to ensure the cover image is properly displayed.
18008 (Kelsey Hightower)
18010 * HTML writer: Use embed tag for images with non-image extensions.
18011 (e.g. PDFs). Closes #264.
18013 * LaTeX writer: Improved tables.
18015 + More space between lines, top-align cells.
18016 + Use ctable package, which allows footnotes and
18017 provides additional options.
18018 + Made cell alignments work in multiline tables.
18019 + Closes #271, #272.
18021 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
18022 Also do this when copying image files into EPUBs and ODTs.
18023 Closes #263.
18025 * Changed to github issue tracker.
18027 * Added failing emph/strong markdown test case due to Perry Wagle.
18029 * Slidy improvements:
18030 + Updated to use Slidy2.
18031 + Fixed bug, unclosed div tag.
18032 + Added `duration` variable in template.
18033 Setting this activates the timer.
18034 + Use 'titlepage' instead of 'cover' for title div.
18037## pandoc 1.8.1.1 (2011-02-13)
18039 * `markdown2pdf`: Removed some debugging lines accidentally included
18040 in the 1.8.1 release. With those lines, the temp directory is created
18041 in the working directory, and it is not deleted. This fix restores
18042 the original behavior.
18044## pandoc 1.8.1 (2011-02-13)
18046 * Added `--ascii` option. Currently supported only in HTML writer,
18047 which it causes to use numerical entities instead of UTF-8.
18049 * EPUB writer: `--toc` now works to provide a table of contents
18050 at the beginning of each chapter.
18052 * LaTeX writer: Change figure defaults to `htbp`.
18053 This prevents "too many unprocessed floats." Resolves
18054 Issue #285.
18056 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
18057 base.
18059 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
18060 Tanimoto. Resolves Issue #286.
18062 * HTML writer: Put line breaks in section divs.
18064 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
18066## pandoc 1.8.0.3 (2011-02-05)
18068 * Fixed Source-repository stanza in cabal file.
18070## pandoc 1.8.0.2 (2011-02-05)
18072 * HTML writer:
18074 + Stringify alt text instead of converting to HTML.
18075 + Break lines after block elements, not inside tags.
18076 HTML output now closely resembles that of tidy. Resolves Issue #134.
18078 * Markdown reader: Fixed bug in footnote block parser (pointed out
18079 by Jesse Rosenthal). The problem arose when the blank line
18080 at the end of a footnote block contained indenting spaces.
18082 * Shared: Improved 'normalize' function so it normalizes Spaces too.
18083 In normal form, Space elements only occur to separate two non-Space
18084 elements. So, we never have [Space], or [, ..., Space].
18086 * Tests:
18088 + Improved Arbitrary instance.
18089 + Added timeout for test instances.
18091 * README:
18093 + Added section on four-space rule for lists. Resolves Issue #283.
18094 + Clarified optional arguments on math options.
18096 * markdown2pdf: Fixed bug with output file extensions.
18097 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
18098 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
18100## pandoc 1.8.0.1 (2011-01-31)
18102 * Revised Interact.hs so that it works with the CPP macros
18103 in the UTF8 module.
18105 * Revised Setup.hs so that we don't call MakeManPage.hs unless
18106 the man pages are out of date.
18108## pandoc 1.8 (2011-01-30)
18110### New features
18112 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
18113 You can now write, for example,
18115 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
18117 and, when you process your document using `pandoc`, specifying
18118 a citation style using `--csl` and a bibliography using `--bibliography`,
18119 the citation will be replaced by an appropriately formatted
18120 citation, and a list of works cited will be added to the end
18121 of the document.
18123 This means that you can switch effortlessly between different citation
18124 and bibliography styles, including footnote, numerical, and author-date
18125 formats. The bibliography can be in any of the following formats: MODS,
18126 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
18127 See the README for further details.
18129 Citations are supported in the markdown reader, using a special
18130 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
18131 (Thanks to Nathan Gass for the natbib and biblatex support.)
18133 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
18134 the `textile` reader, an almost complete implementation of the textile
18135 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
18136 Resolves Issue #51.
18138 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
18140 * New `json` reader and writer, for reading and writing a JSON
18141 representation of the native Pandoc AST. These are much faster
18142 than the `native` reader and writer, and should be used for
18143 serializing Pandoc to text. To convert between the JSON representation
18144 and native Pandoc, use `encodeJSON` and `decodeJSON` from
18145 `Text.JSON.Generic`.
18147 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
18148 to write scripts that transform a JSON-encoded pandoc document.
18149 For example:
18151 -- removelinks.hs - removes links from document
18152 import Text.Pandoc
18153 main = interact $ jsonFilter $ bottomUp removeLink
18154 where removeLink (Link xs _) = Emph xs
18155 removeLink x = x
18157 To use this to remove links while translating markdown to LaTeX:
18159 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
18161 * Attributes are now allowed in inline `Code` elements, for example:
18163 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
18165 The attribute syntax is the same as for delimited code blocks.
18166 `Code` inline has an extra argument place for attributes, just like
18167 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
18168 is compiled with highlighting support. Resolves Issue #119.
18170 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
18171 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
18172 scripts to transform Pandoc documents. Scripts can now change
18173 how each element is rendered in each output format.
18175 * You can now define LaTeX macros in markdown documents, and pandoc
18176 will apply them to TeX math. For example,
18178 \newcommand{\plus}[2]{#1 + #2}
18179 $\plus{3}{4}$
18181 yields `3+4`. Since the macros are applied in the reader, they
18182 will work in every output format, not just LaTeX.
18184 * LaTeX macros can also be used in LaTeX documents (both in math
18185 and in non-math contexts).
18187 * A new `--mathjax` option has been added for displaying
18188 math in HTML using MathJax. Resolves issue #259.
18190 * Footnotes are now supported in the RST reader. (Note, however,
18191 that unlike docutils, pandoc ignores the numeral or symbol used in
18192 the note; footnotes are put in an auto-numbered ordered list.)
18193 Resolves Issue #258.
18195 * A new `--normalize` option causes pandoc to normalize the AST
18196 before writing the document. This means that, for example,
18197 `*hi**there*` will be rendered as `<em>hithere</em>`
18198 instead of `<em>hi</em><em>there</em>`. This is not the default,
18199 because there is a significant performance penalty.
18201 * A new `--chapters` command-line option causes headers
18202 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
18203 Resolves Issue #265.
18205 * In DocBook output, `<chapter>` is now used for top-level
18206 headers if the template contains `<book>`. Resolves Issue #265.
18208 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
18209 the LaTeX writer to use the listings package for code blocks.
18210 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
18211 Millon for the markdown2pdf patch.)
18213 * `markdown2pdf` now supports `--data-dir`.
18215 * URLs in autolinks now have class "url" so they can be styled.
18217 * Improved prettyprinting in most formats. Lines will be wrapped
18218 more evenly and duplicate blank lines avoided.
18220 * New `--columns` command-line option sets the column width for
18221 line wrapping and relative width calculations for tables.
18223 * Made `--smart` work in HTML, RST, and Textile readers, as well
18224 as markdown.
18226 * Added `--html5` option for HTML5 output.
18228 * Added support for listings package in LaTeX reader
18229 (Puneeth Chaganti).
18231 * Added support for simple tables in the LaTeX reader.
18233 * Added support for simple tables in the HTML reader.
18235 * Significant performance improvements in many readers and writers.
18237### API and program changes
18239 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
18240 auxiliary package, `pandoc-types`. This will make it possible for other
18241 programs to supply output in Pandoc format, without depending on the whole
18242 pandoc package.
18244 * Added `Attr` field to `Code`.
18246 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
18247 `RawBlock` and `RawInline`.
18249 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
18250 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
18251 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
18253 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
18255 * `Text.Pandoc` now exports association lists `readers` and `writers`.
18257 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
18258 `readNative` can now read full pandoc documents, block lists, blocks,
18259 inline lists, or inlines. It will interpret `Str "hi"`
18260 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
18261 This should make testing easier.
18263 * Removed deprecated `-C/--custom-header` option.
18264 Use `--template` instead.
18266 * `--biblio-file` has been replaced by `--bibliography`.
18267 `--biblio-format` has been removed; pandoc now guesses the format
18268 from the file extension (see README).
18270 * pandoc will treat an argument as a URI only if it has an
18271 `http(s)` scheme. Previously pandoc would treat some
18272 Windows pathnames beginning with `C:/` as URIs.
18274 * The `--sanitize-html` option and the `stateSanitize` field in
18275 `ParserState` have been removed. Sanitization is better done in the
18276 resulting HTML using `xss-sanitize`, which is based on pandoc's
18277 sanitization, but improved.
18279 * pandoc now adds a newline to the end of its output in fragment
18280 mode (= not `--standalone`).
18282 * Added support for `lang` in `html` tag in the HTML template,
18283 so you can do `pandoc -s -V lang=es`, for example.
18285 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
18286 a boolean argument that selects between "inline" and
18287 "block" HTML.
18289 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
18290 Images are embedded in RTF output when possible (png, jpeg).
18291 Resolves Issue #275.
18293 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
18294 `pretty` package. Changed all writers that used
18295 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
18297 * Rewrote `writeNative` using the new prettyprinting module. It is
18298 now much faster. The output has been made more consistent and compressed.
18299 `writeNative` is also now sensitive to writerStandalone`, and will simply
18300 `print a block list if writerStandalone` is False.
18302 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
18303 blocks and concatenate them, so a separate module is no longer needed.
18305 * `Text.Pandoc.Shared`:
18307 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
18308 `WriterOptions`.
18309 + Added `normalize`.
18310 + Removed unneeded prettyprinting functions:
18311 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
18312 `BlockWrapper`, `wrappedBlocksToDoc`.
18313 + Made `splitBy` take a test instead of an element.
18314 + Added `findDataFile`, refactored `readDataFile`.
18315 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
18316 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
18318 * `Text.Pandoc.Readers.HTML`:
18320 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
18321 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
18322 `htmlBlockElement`, `htmlComment`
18323 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
18324 `isTextTag`
18326 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
18327 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
18328 an inline parser.
18330 * Ellipses are no longer allowed to contain spaces.
18331 Previously we allowed '. . .', ' . . . ', etc. This caused
18332 too many complications, and removed author's flexibility in
18333 combining ellipses with spaces and periods.
18335 * Allow linebreaks in URLs (treat as spaces). Also, a string of
18336 consecutive spaces or tabs is now parsed as a single space. If you have
18337 multiple spaces in your URL, use `%20%20`.
18339 * `Text.Pandoc.Parsing`:
18341 + Removed `refsMatch`.
18342 + Hid `Key` constructor.
18343 + Removed custom `Ord` and `Eq` instances for `Key`.
18344 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
18345 + Generalized type on `readWith`.
18347 * Small change in calculation of relative widths of table columns.
18348 If the size of the header > the specified column width, use
18349 the header size as 100% for purposes of calculating
18350 relative widths of columns.
18352 * Markdown writer now uses some pandoc-specific features when `--strict`
18353 is not specified: `\` newline is used for a hard linebreak instead of
18354 two spaces then a newline. And delimited code blocks are used when
18355 there are attributes.
18357 * HTML writer: improved gladTeX output by setting ENV appropriately
18358 for display or inline math (Jonathan Daugherty).
18360 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
18362 * LaTeX reader:
18364 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
18365 + `\index{}` commands are skipped.
18367 * Added `fontsize` variable to default LaTeX template.
18368 This makes it easy to set the font size using `markdown2pdf`:
18369 `markdown2pdf -V fontsize=12pt input.txt`.
18371 * Fixed problem with strikeout in LaTeX headers when using
18372 hyperref, by adding a command to the default LaTeX template
18373 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
18374 for the fix.
18376 * The `COLUMNS` environment variable no longer has any effect.
18378### Under-the-hood improvements
18380 * Pandoc now compiles with GHC 7. (This alone leads to a
18381 significant performance improvement, 15-20%.)
18383 * Completely rewrote HTML reader using tagsoup as a lexer. The
18384 new reader is faster and more accurate. Unlike the
18385 old reader, it does not get bogged down on some input
18386 (Issues #277, 255). And it handles namespaces in tags
18387 (Issue #274).
18389 * Replaced `escapeStringAsXML` with a faster version.
18391 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
18392 for a significant performance boost.
18394 * Improved performance of all readers by rewriting parsers.
18396 * Simplified Text.Pandoc.CharacterReferences by using
18397 entity lookup functions from TagSoup.
18399 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
18400 from `System.IO` if base >= 4.2. This gives support for
18401 windows line endings on windows.
18403 * Remove duplications in documentation by generating the
18404 pandoc man page from README, using `MakeManPage.hs`.
18406 * README now includes a full description of markdown syntax,
18407 including non-pandoc-specific parts. A new `pandoc_markdown`
18408 man page is extracted from this, so you can look up markdown
18409 syntax by doing `man pandoc_markdown`.
18411 * Completely revised test framework (with help from Nathan Gass).
18412 The new test framework is built when the `tests` Cabal flag is set. It
18413 includes the old integration tests, but also some new unit and quickcheck
18414 tests. Test output has been much improved, and you can now specify a glob
18415 pattern after `cabal test` to indicate which tests should be run;
18416 for example `cabal test citations` will run all the citation tests.
18418 * Added a shell script, `stripansi.sh`, for filtering ANSI control
18419 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
18421 * Added `Interact.hs` to make it easier to use ghci while developing.
18422 `Interact.hs` loads `ghci` from the `src` directory, specifying
18423 all the options needed to load pandoc modules (including
18424 specific package dependencies, which it gets by parsing
18425 dist/setup-config).
18427 * Added `Benchmark.hs`, testing all readers + writers using criterion.
18429 * Added `stats.sh`, to make it easier to collect and archive
18430 benchmark and lines-of-code stats.
18432 * Added upper bounds to all cabal dependencies.
18434 * Include man pages in extra-source-files. This allows users to
18435 install pandoc from the tarball without needing to build the man
18436 pages.
18438### Bug fixes
18440 * Filenames are encoded as UTF8. Resolves Issue #252.
18442 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
18443 were just parsed literally, leading to problems in some output formats.
18444 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
18445 Resolves Issue #270.
18447 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
18448 Spaces at end of line were not being stripped properly,
18449 resulting in unintended LineBreaks.
18451 * Markdown reader:
18453 + Allow HTML comments as inline elements in markdown.
18454 So, `aaa <!-- comment --> bbb` can be a single paragraph.
18455 + Fixed superscripts with links: `^[link](/foo)^` gets
18456 recognized as a superscripted link, not an inline note followed by
18457 garbage.
18458 + Fixed regression, making markdown reference keys case-insensitive again.
18459 Resolves Issue #272.
18460 + Properly handle abbreviations (like `Mr.`) at the end of a line.
18461 + Better handling of intraword underscores, avoiding exponential
18462 slowdowns in some cases. Resolves Issue #182.
18463 + Fixed bug in alignments in tables with blank rows in the header.
18465 * RST reader:
18467 + Field lists now allow spaces in field names, and
18468 block content in field values. (Thanks to Lachlan Musicman
18469 for pointing out the bug.)
18470 + Definition list items are now always `Para` instead of
18471 `Plain`, matching behavior of `rst2xml.py`.
18472 + In image blocks, the description is parsed properly and
18473 used for the alt attribute, not also the title.
18474 + Skip blank lines at beginning of file. Resolves
18475 Debian #611328.
18477 * LaTeX reader:
18479 + Improved parsing of preamble.
18480 Previously you'd get unexpected behavior on a document that
18481 contained `\begin{document}` in, say, a verbatim block.
18482 + Allow spaces between `\begin` or `\end` and `{`.
18483 + Support `\L` and `\l`.
18484 + Skip comments inside paragraphs.
18486 * LaTeX writer:
18488 + Escape strings in `\href{..}`.
18489 + In nonsimple tables, put cells in `\parbox`.
18491 * OpenDocument writer: don't print raw TeX.
18493 * Markdown writer:
18495 + Fixed bug in `Image`. URI was getting unescaped twice!
18496 + Avoid printing extra blank lines at the end if there are
18497 no notes or references.
18499 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
18500 This avoids unwanted interpretation as an optional argument.
18502 * ConTeXt writer: Fixed problem with inline code. Previously
18503 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
18504 If it contains neither, use `\type{}`; otherwise use `\mono{}`
18505 with an escaped version of the string.
18507 * `:` now allowed in HTML tags. Resolves Issue #274.
18511## pandoc 1.6 (2010-07-24)
18513+ New EPUB and HTML Slidy writers. (Issue #122)
18515 - [EPUB] is a standard ebook format, used in Apple's iBooks for
18516 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
18517 reader, and many other devices, and by online ebook readers like
18518 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
18519 but EPUB books can easily be converted to Kindle format.) Now you
18520 can write your book in markdown and produce an ebook with a single
18521 command! I've put up a short [tutorial here].
18522 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
18524+ All input is assumed to be UTF-8, no matter what the locale and ghc
18525 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
18526 Also, a BOM, if present, is stripped from the input.
18528+ Markdown now supports grid tables, whose cells can contain
18529 arbitrary block elements. (Issue #43)
18531+ Sequentially numbered example lists in markdown with `@` marker.
18533+ Markdown table captions can begin with a bare colon and no longer need
18534 to include the English word "table." Also, a caption can now occur
18535 either before or after the table. (Issue #227)
18537+ New command-line options:
18539 - `--epub-stylesheet` allows you to specify a CSS file that will
18540 be used to style your ebook.
18541 - `--epub-metadata` allows you to specify metadata for the ebook.
18542 - `--offline` causes the generated HTML slideshow to include all
18543 needed scripts and stylesheets.
18544 - `--webtex` causes TeX math to be converted to images using the
18545 Google Charts API (unless a different URL is specified).
18546 - `--section-divs` causes div tags to be added around each section
18547 in an HTML document. (Issue #230, 239)
18549+ Default behavior of S5 writer in standalone mode has changed:
18550 previously, it would include all needed scripts and stylesheets
18551 in the generated HTML; now, only links are included unless
18552 the `--offline` option is used.
18554+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
18555 pandoc would enclose sections in div tags with identifiers on the
18556 div tags, so that the sections can be manipulated in javascript.
18557 This caused undesirable interactions with raw HTML div tags. So,
18558 starting with 1.6, the default is to put the identifiers directly
18559 on the header tags, and not to include the divs. The `--section-divs`
18560 option selects the 1.2-1.5 behavior.
18562+ API changes:
18564 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
18565 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
18566 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
18567 `writerIncludeAfter`.
18568 - Added `headerShift` to `Text.Pandoc.Shared`.
18569 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
18570 to a new module, `Text.Pandoc.Parsing`.
18571 - Added `stateHasChapters` to `ParserState`.
18572 - Added `HTMLSlideVariant`.
18573 - Made `KeyTable` a map instead of an association list.
18574 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
18575 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
18576 - Reference keys now have a type of their own (`Key`), with its
18577 own `Ord` instance for case-insensitive comparison.
18578 - Added `Text.Pandoc.Writers.EPUB`.
18579 - Added `Text.Pandoc.UUID`.
18580 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
18581 Removed `saveOpenDocumentAsODT`, added `writeODT`.
18582 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
18583 Removed `prettyPandoc`.
18584 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
18585 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
18586 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
18587 To write S5, you now use `writeHtml` with `writerSlideVariant`
18588 set to `S5Slides` or `SlidySlides`.
18590+ Template changes. If you use custom templates, please update them,
18591 particularly if you use syntax highlighting with pandoc. The old HTML
18592 templates hardcoded highlighting CSS that will no longer work with
18593 the most recent version of highlighting-kate.
18595 - HTML template: avoid empty meta tag if no date.
18596 - HTML template: Use default highlighting CSS from highlighting-kate
18597 instead of hard-coding the CSS into the template.
18598 - HTML template: insert-before text goes before the title, and
18599 immediately after the `<body>` tag, as documented. (Issue #241)
18600 - Added slidy and s5 templates.
18601 - Added amssymb to preamble of latex template. (github Issue 1)
18603+ Removed excess newlines at the end of output. Note: because output
18604 will not contain an extra newline, you may need to make adjustments
18605 if you are inserting pandoc's output into a template.
18607+ In S5 and slidy, horizontal rules now cause a new slide, so you
18608 are no longer limited to one slide per section.
18610+ Improved handling of code in man writer. Inline code is now monospace,
18611 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
18613+ HTML reader parses `<tt>` as Code. (Issue #247)
18615+ html+lhs output now contains bird tracks, even when compiled without
18616 highlighting support. (Issue #242)
18618+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
18619 since they have a special meaning in XML.
18621+ Code improvements in ODT writer. Remote images are now replaced with
18622 their alt text rather than a broken link.
18624+ LaTeX reader improvements:
18626 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
18627 - Parse `\chapter{}` in latex.
18628 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
18629 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
18630 for use in markdown reader.
18631 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
18632 in markdown document.
18634+ LaTeX writer: images are automatically shrunk if they would extend
18635 beyond the page margin.
18637+ Plain, markdown, RST writers now use unicode for smart punctuation.
18639+ Man writer converts math to unicode when possible, as in other writers.
18641+ `markdown2pdf` can now recognize citeproc options.
18643+ Command-line arguments are converted to UTF-8. (Issue #234)
18645+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
18646 This allows it to handle a wider range of formulas. Also, if a formula
18647 cannot be converted, it is left in raw TeX; formulas are no longer
18648 partially converted.
18650+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
18652+ Cabal file changes:
18654 - Removed parsec < 3 restriction.
18655 - Added 'threaded' flag for architectures where GHC lacks a threaded
18656 runtime.
18657 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
18658 - Require highlighting-kate 0.2.7.
18660+ Use explicit imports from `Data.Generics`. Otherwise we have a
18661 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
18663+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
18665[EPUB]: http://en.wikipedia.org/wiki/EPUB
18666[Slidy]: http://www.w3.org/Talks/Tools/Slidy
18667[bookworm]: http://bookworm.oreilly.com/
18668[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
18670## pandoc 1.5.1.1 (2010-03-29)
18672+ Fixed header identifiers (uniqueIdent in Shared) so they
18673 work as advertized in README and are guaranteed to be
18674 valid XHTML names. Thanks to Xyne for reporting the bug.
18676## pandoc 1.5.1 (2010-03-23)
18678+ Fixed treatment of unicode characters in URIs.
18679+ Revised Setup.hs so it works with debian's build process.
18680+ Fixed bug in OpenDocument writer that led to invalid
18681 XML for some input.
18683## pandoc 1.5.0.1 (2010-03-21)
18685+ HTML writer: Fixed error in math writer (with MathML option)
18686 that caused an infinite loop for unparsable MathML.
18688## pandoc 1.5 (2010-03-20)
18690+ Moved repository to [github](http://github.com/jgm/pandoc).
18691+ New `--mathml` option, for display of TeX math as MathML.
18692+ New `--data-dir` option, allowing users to specify a data
18693 directory other than `~/.pandoc`. Files placed in this directory
18694 will be used instead of system defaults.
18695+ New `--base-header-level` option. For example, `--base-header-level=2`
18696 changes level 1 headers to level 2, level 2 to level 3, etc.
18697+ New 'plain' output format: plain text without pictures, hyperlinks,
18698 inline formatting, or anything else that looks even vaguely
18699 markupish.
18700+ Titles and authors in title blocks can now span multiple lines,
18701 as long as the continuation lines begin with a space character.
18702+ When given an absolute URI as a parameter, pandoc will fetch
18703 the content via HTTP.
18704+ The HTML reader has been made much more forgiving. It no
18705 longer requires well-formed xhtml as input.
18706+ `html2markdown` has been removed; it is no longer necessary, given
18707 the last two changes. `pandoc` can be used by itself to convert
18708 web pages to markdown or other formats.
18709+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
18710 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
18711 behave like `hsmarkdown` used to.
18712+ An image in a paragraph by itself is now rendered as a figure
18713 in most writers, with the alt text as the caption.
18714+ Incomplete support for reST tables (simple and grid). Thanks to
18715 Eric Kow. Colspans and rowspans not yet supported.
18716+ In mediawiki, links with relative URLs are now formatted as wikilinks.
18717 Also, headers have been promoted: `= head =` is now level 1 instead of
18718 level 2.
18719+ The markdown reader now handles "inverse bird tracks" when parsing
18720 literate haskell. These are used for haskell example code that
18721 is not part of the literate program.
18722+ The `-B` and `-A` options now imply `-s` and no longer work in
18723 fragment mode.
18724+ Headerless tables are now printed properly in all writers.
18725 In addition, tbody, thead, and cols are used in HTML and Docbook
18726 tables.
18727+ Improved build system; removed obsolete Makefile.
18728+ In LaTeX writer, `\chapter` is now used instead of `\section`.
18729 when the documentclass is book, report, or memoir.
18730+ Many small bug fixes. See [changelog] for details.
18732## pandoc 1.4 (2010-01-02)
18734+ New template system replaces old headers, giving users much
18735 more control over pandoc's output in `--standalone` mode.
18736 Added `--template` and `--variable` options. The `--print-default-header`
18737 option is now `--print-default-template`. See README under
18738 "Templates" for details.
18739+ The old `--custom-header` option should still work, but it has
18740 been deprecated.
18741+ New `--reference-odt` option allows users to customize styles
18742 in ODT output.
18743+ Users may now put custom templates, s5 styles, and a reference
18744 ODT in the `~/.pandoc` directory, where they will override system
18745 defaults. See README for details.
18746+ Unicode is now used whenever possible in HTML and XML output. Entities
18747 are used only where necessary (`&gt;`, `&lt;`, `&quot;`, `&amp;`).
18748+ Authors and dates may now include formatting and notes.
18749+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
18750+ Windows installer now includes highlighting support and
18751 `markdown2pdf` and `hsmarkdown` wrappers.
18752+ Pandoc no longer requires Template Haskell, which should make
18753 it more portable.
18754+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
18755+ See README for other small improvements and bug fixes.
18757## pandoc 1.3 (2009-12-10)
18759+ Added `--id-prefix` option to help prevent duplicate
18760 identifiers when you're generating HTML fragments.
18761+ Added `--indented-code-classes` option, which specifies
18762 default highlighting syntax for indented code blocks.
18763+ `--number-sections` now affects HTML output.
18764+ Improved syntax for markdown definition lists.
18765+ Better looking simple tables.
18766+ Markdown tables without headers are now possible.
18767+ New hard line break syntax: backslash followed by newline.
18768+ Improved performance of markdown reader by ~10% by eliminating the
18769 need for a separate parsing pass for notes.
18770+ Improved syntax highlighting for literate Haskell.
18771+ Support for "..code-block" directive in RST reader.
18772+ Windows binary now includes highlighting support.
18773+ Many bug fixes and small improvements. See [changelog]
18774 for details.
18776## pandoc 1.2.1 (2009-07-18)
18778+ Improved the efficiency of the markdown reader's
18779 abbreviation parsing (should give a big performance
18780 boost with `--smart`).
18781+ HTML writer now wraps sections in divs with unique
18782 identifiers, for easier manipulation.
18783+ Improved LaTeX reader's coverage of math modes.
18784+ Added a portable Haskell version of markdown2pdf (thanks
18785 to Paolo Tanimoto).
18786+ Made `--strict` compatible with `--standalone` and `--toc.`
18787+ Many other small improvements and bug fixes.
18788 See [changelog] for details.
18790## pandoc 1.2 (2009-03-01)
18792+ Added support for literate Haskell. lhs support is triggered by
18793 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
18794 Haskell LaTeX. '.lhs' files are treated by default as literate
18795 markdown.
18796+ Added `--email-obfuscation` option.
18797+ Brought citeproc support up to date for citeproc-hs-0.2.
18798+ Many bugs fixed. See [changelog] for details.
18800## pandoc 1.1 (2008-11-06)
18802+ New `--jsmath` option supporting use of pandoc with [jsMath].
18803+ Classes on HTML table output for better CSS styling.
18804+ Windows installer no longer requires admin privileges.
18805+ Many bugs fixed. See [changelog] for details.
18807## pandoc 1.0 (2008-09-13)
18809+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
18810 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
18811 document).
18812+ New [delimited code blocks](README.html#delimited-code-blocks),
18813 with optional syntax highlighting.
18814+ Reorganized build system: pandoc can now be built using standard
18815 Cabal tools. It can be compiled on Windows without Cygwin.
18816 The tests can also be run without perl or unix tools.
18817+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
18818+ Support for "displayed" math.
18819+ Common abbreviations are now handled more intelligently, with
18820 a non-breaking space (and not a sentence-ending space) after
18821 the period.
18822+ Code is -Wall clean.
18823+ Many bug fixes and small improvements. See [changelog] for
18824 full details.
18826## pandoc 0.46 (2008-01-08)
18828+ Added a `--sanitize-html` option (and a corresponding parameter
18829 in `ParserState` for those using the pandoc libraries in programs).
18830 This option causes pandoc to sanitize HTML (in HTML or Markdown
18831 input) using a whitelist method. Possibly harmful HTML elements
18832 are replaced with HTML comments. This should be useful in the
18833 context of web applications, where pandoc may be used to convert
18834 user input into HTML.
18835+ Made -H, -A, and -B options cumulative: if they are specified
18836 multiple times, multiple files will be included.
18837+ Many bug fixes and small improvements. See [changelog] for full
18838 details.
18840## pandoc 0.45 (2007-12-09)
18842+ Many bug fixes and structural improvements. See [changelog] for
18843 full details.
18844+ Improved treatment of math. Math is now rendered using unicode
18845 by default in HTML, RTF, and DocBook output. For more accurate
18846 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
18847 options are provided. See the [User's Guide](README.html#math) for
18848 details.
18849+ Removed support for box-style block quotes in markdown.
18850+ More idiomatic ConTeXt output.
18851+ Text wrapping in ConTeXt and LaTeX output.
18852+ Pandoc now correctly handles all standard line endings
18853 (CR, LF, CRLF).
18854+ New `--no-wrap` option that disables line wrapping and minimizes
18855 whitespace in HTML output.
18856+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
18857 GHC and GHC_PKG environment variables may be used to specify
18858 which version of the compiler to use, when multiple versions are
18859 installed.
18861## pandoc 0.44 (2007-09-03)
18863 [ John MacFarlane ]
18865 * Fixed bug in HTML writer: when --toc was used, anchors were put around
18866 headers, which is invalid XHTML (block content within inline element).
18867 Now the anchors are put inside the header tags. Resolves Issue #23.
18869 * Added xmlns attribute to html element in html writer tests.
18870 This attribute is added by more recent versions of the
18871 xhtml library (>= 3000), and is required for valid XHTML.
18873 [ Recai Oktaş ]
18875 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
18876 command instead of 'runhaskell', which, on some platforms (such as s390,
18877 alpha, m68k), throws the following error:
18879 runhaskell Setup.hs configure --prefix=/usr
18880 ghc-6.6.1: not built for interactive use
18882 This causes a serious FTBFS bug. Closes: #440668.
18884## pandoc 0.43 (2007-09-02)
18886 [ John MacFarlane ]
18888 * The focus of this release is performance. The markdown parser
18889 is about five times faster than in 0.42, based on benchmarks
18890 with the TextMate manual.
18892 * Main.hs: Replaced CRFilter and tabFilter with single function
18893 tabFilter, which operates on the whole string rather than breaking
18894 it into lines, and handles dos-style line-endings as well as tabs.
18896 * Added separate LaTeX reader and native reader tests; removed
18897 round-trip tests.
18899 * Text.Pandoc.Shared:
18901 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
18902 + General code cleanup (to elimante warnings when compiling with -Wall.)
18903 + Added 'wrapped' function, which helps wrap text into paragraphs,
18904 using the prettyprinting library.
18905 + Rewrote charsInBalanced and charsInBalanced'.
18906 - Documented restriction: open and close must be distinct characters.
18907 - Rearranged options for greater efficiency.
18908 - Bug fix: Changed inner call to charsInBalanced inside
18909 charsInBalanced' to charsInBalanced'.
18910 + anyLine now requires that the line end with a newline (not eof).
18911 This is a harmless assumption, since we always add newlines to the
18912 end of a block before parsing with anyLine, and it yields a 10% speed
18913 boost.
18914 + Removed unnecessary 'try' in anyLine.
18915 + Removed unneeded 'try' from romanNumeral parser.
18916 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
18917 + Removed unneeded 'try' in parseFromString.
18918 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
18919 like 'string'.)
18920 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
18921 'try' is not automatically applied to the 'end' parser. Added
18922 'try' in calls to 'enclosed' where needed. Slight speed increase.
18924 * Writers:
18926 + Replaced individual wrapping routines in RST, Man, and Markdown
18927 writers with 'wrapped' from Text.Pandoc.Shared.
18928 + Rewrote LaTeX writer to use the prettyprinting library,
18929 so we get word wrapping, etc.
18930 + Modified latex writer tests for new latex writer using prettyprinter.
18931 + Fixed bug in LaTeX writer: autolinks would not cause
18932 `\usepackage{url}` to be put in the document header. Also, changes
18933 to state in enumerated list items would be overwritten.
18934 + In Markdown writer, escape paragraphs that begin with ordered list
18935 markers, so they don't get interpreted as ordered lists.
18937 * Text.Pandoc.Reades.LaTeX:
18939 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
18940 numeral after "enum" in "setcounter" would consist entirely of
18941 "i"s. 'enumiv' is legitimate.
18942 + LaTeX command and environment names can't contain numbers.
18943 + Rearranged order of parsers in inline for slight speed improvement.
18944 + Added '`' to special characters and 'unescapedChar'.
18946 * Text.Pandoc.Readers.RST:
18948 + Removed unneeded try's in RST reader; also minor code cleanup.
18949 + Removed tabchar.
18950 + Rearranged parsers in inline (doubled speed).
18952 * Text.Pandoc.Readers.Markdown:
18954 + Skip notes parsing if running in strict mode. (This yields a nice
18955 speed improvement in strict mode.)
18956 + Simplify autolink parsing code, using Network.URI to test for
18957 URIs. Added dependency on network library to debian/control and
18958 pandoc.cabal.
18959 + More perspicuous definition of nonindentSpaces.
18960 + Removed unneeded 'try' in 'rawLine'.
18961 + Combined linebreak and whitespace into a new whitespace parser, to
18962 avoid unnecessary reparsing of space characters.
18963 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
18964 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
18965 + Use lookAhead in parsers for setext headers and definition lists
18966 to see if the next line begins appropriately; if not, don't waste
18967 any more time parsing.
18968 + Don't require blank lines after code block. (It's sufficient to
18969 end code block with a nonindented line.)
18970 + Changed definition of 'emph': italics with '_' must not
18971 be followed by an alphanumeric character. This is to help
18972 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
18973 `[LC<em>TYPE]:my</em>type`.
18974 + Improved Markdown.pl-compatibility in referenceLink: the two parts
18975 of a reference-style link may be separated by one space, but not
18976 more... [a] [link], [not] [a link].
18977 + Fixed markdown inline code parsing so it better accords with
18978 Markdown.pl: the marker for the end of the code section is a clump
18979 of the same number of `'s with which the section began, followed
18980 by a non-` character. So, for example,
18981 ` h ``` i ` -> `<code>h ``` i</code>`.
18982 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
18983 rules are slightly different.
18984 + Rewrote 'para' for greater efficiency.
18985 + Rewrote link parsers for greater efficiency.
18986 + Removed redundant 'referenceLink' in definition of inline (it's
18987 already in 'link').
18988 + Refactored escapeChar so it doesn't need 'try'.
18989 + Refactored hrule for performance in Markdown reader.
18990 + More intelligent rearranging of 'inline' so that most frequently
18991 used parsers are tried first.
18992 + Removed tabchar parser, as whitespace handles tabs anyway.
18994 * Text.Pandoc.CharacterReferences:
18996 + Refactored.
18997 + Removed unnecessary 'try's for a speed improvement.
18998 + Removed unnecessary '&' and ';' from the entity table.
19000 * Build process:
19002 + Makefile: Get VERSION from cabal file, not Main.hs.
19003 + Modified MacPorts Portfile:
19004 - Depend on haddock
19005 - Build and install libraries and library documentation in
19006 addition to pandoc executable
19007 - Added template item for md5 sum in Portfile.in.
19008 - Incorporated changes from MacPorts repository (r28278).
19009 + FreeBSD port: Don't try to generate distinfo in Makefile.
19010 It can be made using 'make makesum' in FreeBSD.
19011 + Make both freebsd and macports targets depend on tarball.
19013 * Website and documentation:
19015 + Updated INSTALL instructions.
19016 + Added pandocwiki demo to website.
19017 + Removed local references to Portfile, since pandoc is now in the
19018 MacPorts repository.
19020## pandoc 0.42 (2007-08-26)
19022 [ John MacFarlane ]
19024 * Main.hs: Use utf8 conversion on the extra files loaded with
19025 the -H, -C, -B, and -A options. This fixes problems with unicode
19026 characters in these files.
19028 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
19029 Text.Pandoc.Readers.HTML and without it we get a linking error when
19030 using the library.
19032 * Markdown reader:
19034 + Added new rule for enhanced markdown ordered lists: if the list
19035 marker is a capital letter followed by a period (including a
19036 single-letter capital roman numeral), then it must be followed by
19037 at least two spaces. The point of this is to avoid accidentally
19038 treating people's initials as list markers: a paragraph might begin,
19039 "B. Russell was an English philosopher," and this shouldn't be
19040 treated as a list. Documented change in README.
19041 + Blocks that start with "p. " and a digit are no longer treated
19042 as ordered lists (it's a page number).
19043 + Added a needed 'try' to listItem.
19044 + Removed check for a following setext header in endline.
19045 A full test is too inefficient (doubles benchmark time), and the
19046 substitute we had before is not 100% accurate.
19047 + Don't use Code elements for autolinks if --strict specified.
19049 * LaTeX writer: When a footnote ends with a Verbatim environment, the
19050 close } of the footnote cannot occur on the same line or an error occurs.
19051 Fixed this by adding a newline before the closing } of every footnote.
19053 * HTML writer:
19054 + Removed incorrect "{}" around style information in HTML tables.
19055 Column widths now work properly in HTML.
19056 + If --strict option is specified (and --toc is not), don't include
19057 identifiers in headers, for better Markdown compatibility.
19059 * Build process:
19061 + Separated $(web_dest) and website targets.
19062 + In website, index.txt is now constructed from template index.txt.in.
19063 + Added freebsd target to Markefile. This creates the freebsd Makefile
19064 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
19065 from the repository.
19066 + Added macport target to Makefile. Portfile is built from template
19067 Portfile.in.
19068 + Removed OSX package targets. (Too many difficulties involving
19069 dependencies on dynamic libraries.)
19070 + More complete INSTALL instructions for all architectures.
19072 * Website:
19073 + Added a programming demo, pandocwiki.
19075 [ Recai Oktaş ]
19077 * Do not forget to close pandoc's ITP. Closes: #391666
19079## pandoc 0.41 (2007-08-19)
19081 [ John MacFarlane ]
19083 * Fixed bugs in HTML reader:
19084 + Skip material at end *only if* `</html>` is present (previously,
19085 only part of the document would be parsed if an error was
19086 found; now a proper error message is given).
19087 + Added new constant eitherBlockOrInline with elements that may
19088 count either as block-level or as inline. Modified isInline and
19089 isBlock to take this into account.
19090 + Modified rawHtmlBlock to accept any tag (even an inline tag):
19091 this is innocuous, because rawHtmlBlock is tried only if a regular
19092 inline element can't be parsed.
19093 + Added a necessary 'try' in definition of 'para'.
19095 * Fixed bug in markdown ordered list parsing. The problem was that
19096 anyOrderedListStart did not check for a space following the
19097 ordered list marker. So in 'A.B. 2007' the parser would be
19098 expecting a list item, but would not find one, causing an error.
19099 Fixed a similar bug in the RST reader. Resolves Issue #22.
19101 * Refactored RST and Markdown readers using parseFromString.
19103 * LaTeX reader will now skip anything after \end{document}.
19105 * Fixed blockquote output in markdown writer: previously, block
19106 quotes in indented contexts would be indented only in the first
19107 line.
19109 * Added note to INSTALL about variations in versions of the xhtml
19110 library that can lead to failed tests (thanks to Leif LeBaron).
19112## pandoc 0.4 (2007-01-16)
19114 [ John MacFarlane ]
19116 * Added two new output formats: groff man pages and ConTeXt. By
19117 default, output files with extensions ".ctx" and ".context" are
19118 assumed to be ConTeXt, and output files with single-digit extensions
19119 are assumed to be man pages.
19121 * Enhanced ordered lists (documented in README, under Lists):
19122 + The OrderedList block element now stores information about
19123 list number style, list number delimiter, and starting number.
19124 + The readers parse this information when possible.
19125 + The writers use this information to style ordered lists.
19126 + The enhancement can be disabled using the --strict option.
19128 * Added support for tables (with a new Table block element). Two kinds
19129 of tables are supported: a simple table with one-line rows, and a
19130 more complex variety with multiline rows. All output formats are
19131 supported, but only markdown tables are parsed at the moment. The
19132 syntax is documented in README.
19134 * Added support for definition lists (with a new DefinitionList block
19135 element). All output and input formats are supported. The syntax is
19136 documented in README.
19138 * Added support for superscripts and subscripts (with new Superscript
19139 and Subscript inline elements). All input and output
19140 formats. The syntax is documented in README.
19142 * Added support for strikeout (with a new Strikeout inline element).
19143 All input and output formats are supported. Thanks to Bradley Kuhn,
19144 who contributed a patch. The syntax is documented in README. Resolves
19145 Issue #18.
19147 * Added a --toc|--table-of-contents option. This causes an automatically
19148 generated table of contents (or an instruction that creates one) to
19149 be inserted at the beginning of the document. Not supported in S5,
19150 DocBook, or man page writers.
19152 * Modified the -m|--asciimathml option:
19154 + If an optional URL argument is provided, a link is inserted
19155 instead of the contents of the ASCIIMathML.js script.
19156 + Nothing is inserted unless the document actually contains
19157 LaTeX math.
19159 * Removed Blank block element as unnecessary.
19161 * Removed Key and Note blocks from the Pandoc data structure. All
19162 links are now stored as explicit links, and note contents are
19163 stored with the (inline) notes.
19165 + All link Targets are now explicit (URL, title) pairs; there
19166 is no longer a 'Ref' target.
19167 + Markdown and RST parsers now need to extract data from key and
19168 note blocks and insert them into the relevant inline elements.
19169 Other parsers have been simplified, since there is no longer any need
19170 to construct separate key and note blocks.
19171 + Markdown, RST, and HTML writers need to construct lists of
19172 notes; Markdown and RST writers need to construct lists of link
19173 references (when the --reference-links option is specified); and
19174 the RST writer needs to construct a list of image substitution
19175 references. All writers have been rewritten to use the State monad
19176 when state is required.
19177 + Several functions (generateReference, keyTable,
19178 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
19179 used by them) have been removed from Text.Pandoc.Shared, since
19180 they are no longer needed. New functions and data structures
19181 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
19182 added. The functions inTags, selfClosingTag, inTagsSimple, and
19183 inTagsIndented have been moved to the DocBook writer, since that
19184 is now the only module that uses them. NoteTable is now exported
19185 in Text.Pandoc.Shared.
19186 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
19187 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
19188 + Added writerNotes and writerReferenceLinks to WriterOptions.
19190 * Added Text.Pandoc module that exports basic readers, writers,
19191 definitions, and utility functions. This should export everything
19192 needed for most uses of Pandoc libraries. The haddock documentation
19193 includes a short example program.
19195 * Text.Pandoc.ASCIIMathML is no longer an exported module.
19197 * Added Text.Pandoc.Blocks module to help in printing markdown
19198 and RST tables. This module provides functions for working with
19199 fixed-width blocks of text--e.g., placing them side by side, as
19200 in a table row.
19202 * Refactored to avoid reliance on Haskell's Text.Regex library, which
19203 (a) is slow, and (b) does not properly handle unicode. This fixed
19204 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
19206 + Replaced 'gsub' with a general list function 'substitute'
19207 that does not rely on Text.Regex.
19208 + Rewrote extractTagType in HTML reader so that it doesn't use
19209 regexs.
19210 + In Markdown reader, replaced email regex test with a custom email
19211 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
19212 with a custom function isSelfClosingTag.
19213 + Modified Docbook writer so that it doesn't rely on Text.Regex for
19214 detecting 'mailto' links.
19215 + Removed escapePreservingRegex and reamped entity-handling
19216 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
19217 avoid reliance on Text.Regex (see below on character reference
19218 handling changes).
19220 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
19222 * Changed handling of XML entities. Entities are now parsed (and unicode
19223 characters returned) in the Markdown and HTML readers, rather than being
19224 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
19225 instead of entities for characters above 128. This makes the HTML and
19226 DocBook output much more readable and more easily editable.
19228 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
19229 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
19230 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
19231 Moved both functions to Text.Pandoc.Writers.Docbook.
19232 + Added characterReference parser to Text.Pandoc.CharacterReferences.
19233 This parses a string and return a unicode character.
19234 + Rewrote decodeCharacterReferences to use the new parser instead of
19235 Text.Regex.
19236 + Added new charRef parser for Markdown and HTML, which replaces the
19237 old 'entity' parser. Added '&' as a special character in Markdown reader.
19238 + Modified HTML and Markdown readers to call decodeEntities on all raw
19239 strings (e.g. authors, dates, link titles), to ensure that no
19240 unprocessed entities are included in the native representation of
19241 the document. (In the HTML reader, most of this work is done by a
19242 change in extractAttributeName.)
19243 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
19244 since a unicode non-breaking space is impossible to distinguish visually
19245 from a regular space. (Resolves Issue #3.)
19246 + Removed encodeEntitiesNumerical.
19247 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
19248 slight performance boost over the old association list.
19249 + Removed unneeded decodeEntities from 'str' parser in HTML and
19250 Markdown readers.
19252 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
19253 fromUTF8, for clarity.
19255 * Replaced old haskell98 module names replaced by hierarchical module
19256 names, e.g. List by Data.List. Removed haskell98 from dependencies
19257 in pandoc.cabal, and added mtl (needed for state monad). Substituted
19258 xhtml for html.
19260 * Refactored and cleaned up character escaping in writers, using
19261 backslashEscapes and escapeStringUsing functions.
19263 * Instead of adding `\n\n` to the end of an input string in Main.hs,
19264 this is now done in the readers. This makes the libraries behave
19265 the way you'd expect from the pandoc program. Resolves Issue #10.
19267 * URLs and email addresses in autolinks are now typeset as Code.
19269 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
19270 doesn't display the whole output unless there's a line ending.
19272 * Major code cleanup in all modules, for greater consistency, concision,
19273 and readability.
19275 * HTML reader:
19277 + Fixed several bugs (extractTagType, attribute parsing).
19278 + Remove Null blocks in lists of blocks when possible.
19279 + Allow HTML comments as raw HTML inline.
19281 * Markdown reader:
19283 + Ordered list items may no longer begin with uppercase letters, or
19284 letters greater than 'n'. (This prevents first initials and page
19285 reference, e.g. 'p. 400', from being parsed as beginning lists.)
19286 Also, numbers beginning list items may no longer end with ')',
19287 which is now allowed only after letters. Note: These changes
19288 may cause documents to be parsed differently. Users should take
19289 care in upgrading.
19290 + Changed autoLink parsing to conform better to Markdown.pl's
19291 behavior. `<google.com>` is not treated as a link, but
19292 `<http://google.com>`, `<ftp://google.com>`, and
19293 `<mailto:google@google.com>` are.
19294 + Cleaned up handling of embedded quotes in link titles. Now these are
19295 stored as a '"' character, not as '&quot;'.
19296 + Use lookAhead parser for the 'first pass' (looking for reference keys),
19297 instead of parsing normally, then using setInput to reset input. This
19298 yields a slight performance boost.
19299 + Fixed several bugs in smart quote recognition.
19300 + Fixed bug in indentSpaces (which didn't properly handle
19301 cases with mixed spaces and tabs).
19302 + Consolidated 'text', 'special', and 'inline' into 'inline'.
19303 + Fixed bug which allowed URL and title to be separated by multiple blank
19304 lines in links and reference keys. They can be on separate lines but
19305 can't have blank lines between them.
19306 + Correctly handle bracketed text inside inline footnotes and links,using
19307 new function inlinesInBalanced. Resolves Issue #14.
19308 + Fixed bug in footnotes: links in footnotes were not being
19309 processed. Solution: three-stage parse. First, get all the
19310 reference keys and add information to state. Next, get all the
19311 notes and add information to state. (Reference keys may be needed
19312 at this stage.) Finally, parse everything else.
19313 + Replaced named constants like 'emphStart' with literals.
19314 + Removed an extra occurrence of escapedChar in definition of inline.
19316 * RST reader:
19318 + Allow the URI in a RST hyperlink target to start on the line
19319 after the reference key.
19320 + Added 'try' in front of 'string', where needed, or used a different
19321 parser. This fixes a bug where ````` would not be correctly parsed as
19322 a verbatim `.
19323 + Fixed slow performance in parsing inline literals in RST reader. The
19324 problem was that ``#`` was seen by 'inline' as a potential link or image.
19325 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
19326 Resolves Issue #8.
19327 + Use lookAhead instead of getInput/setInput in RST reader. Removed
19328 unneeded getState call, since lookAhead automatically saves and
19329 restores the parser state.
19330 + Allow hyperlink target URIs to be split over multiple lines, and
19331 to start on the line after the reference. Resolves Issue #7.
19332 + Fixed handling of autolinks.
19334 * LaTeX reader:
19336 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
19337 for clarity.
19338 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
19339 caret is `\^{}`, not `\^` as before.
19340 + Added parsing for `\url`.
19341 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
19343 * HTML writer:
19345 + Modified HTML writer to use the Text.XHtml library. This results
19346 in cleaner, faster code, and it makes it easier to use Pandoc in
19347 other projects, like wikis, which use Text.XHtml. Two functions are
19348 now provided, writeHtml and writeHtmlString: the former outputs an
19349 Html structure, the latter a rendered string. The S5 writer is also
19350 changed, in parallel ways (writeS5, writeS5String).
19351 + The Html header is now written programmatically, so it has been
19352 removed from the 'headers' directory. The S5 header is still
19353 needed, but the doctype and some of the meta declarations have
19354 been removed, since they are written programmatically. This change
19355 introduces a new dependency on the xhtml package.
19356 + Fixed two bugs in email obfuscation involving improper escaping
19357 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
19358 Issue #9.
19359 + Fixed another bug in email obfuscation: If the text to be obfuscated
19360 contains an entity, this needs to be decoded before obfuscation.
19361 Thanks to thsutton for the patch. Resolves Issue #15.
19362 + Changed the way the backlink is displayed in HTML footnotes.
19363 Instead of appearing on a line by itself, it now generally
19364 appears on the last line of the note. (Exception: when the
19365 note does not end with a Plain or Para block.) This saves space
19366 and looks better.
19367 + Added automatic unique identifiers to headers:
19368 - The identifier is derived from the header via a scheme
19369 documented in README.
19370 - WriterState now includes a list of header identifiers and a table
19371 of contents in addition to notes.
19372 - The function uniqueIdentifiers creates a list of unique identifiers
19373 from a list of inline lists (e.g. headers).
19374 - This list is part of WriterState and gets consumed by blockToHtml
19375 each time a header is encountered.
19376 + Include CSS for .strikethrough class in header only if strikethrough
19377 text appears in the document.
19378 + If the 'strict' option is specified, elements that do not appear in
19379 standard markdown (like definition lists) are passed through as
19380 raw HTML.
19381 + Simplified treatment of autolinks, using pattern matching instead of
19382 conditionals.
19384 * Markdown writer:
19386 + Links in markdown output are now printed as inline links by default,
19387 rather than reference links. A --reference-links option has been added
19388 that forces links to be printed as reference links. Resolves Issue #4.
19389 + Use autolinks when possible. Instead of `[site.com](site.com)`,
19390 use `<site.com>`.
19392 * LaTeX writer:
19394 + Rewrote to use the State monad. The preamble now includes only those
19395 packages that are actually required, given the document's content.
19396 Thus, for example, if strikeout is not used, ulem is not required.
19397 Modified LaTeXHeader accordingly.
19398 + Modified LaTeX writer to insert `\,` between consecutive quotes.
19399 + Removed unused function tableRowColumnWidths.
19400 + Simplified code for escaping special characters.
19401 + Leave extra blank line after `\maketitle`.
19402 + Include empty `\author{}` when no author specified to avoid LaTeX
19403 errors.
19404 + Include fancyvrb code in header only if needed -- that is, only
19405 if there is actually code in a footnote.
19406 + Use `\url{}` for autolinks.
19407 + Include [mathletters] option in ucs package, so that basic unicode
19408 Greek letters will work correctly.
19410 * RST writer: Force blank line before lists, so that sublists will
19411 be handled correctly.
19413 * Docbook writer: Fixed a bug: email links with text, like
19414 [foo](me@bar.baz), were being incorrectly treated as autolinks.
19416 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
19417 Text.Pandoc.Shared.
19419 * Text.Pandoc.Shared:
19421 + Added defaultWriterOptions.
19422 + Added writerTableOfContents to WriterOptions.
19423 + Added writerIgnoreNotes option to WriterOptions. This is needed
19424 for processing header blocks for a table of contents, since notes on
19425 headers should not appear in the TOC.
19426 + Added prettyprinting for native Table format.
19427 + Removed some unneeded imports.
19428 + Moved escape and nullBlock parsers from
19429 Text.ParserCombinators.Pandoc, since the latter is for
19430 general-purpose parsers that don't depend on Text.Pandoc.Definition.
19431 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
19432 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
19433 writer, because HTML writer now uses these in constructing a table
19434 of contents.
19435 + Added clauses for new inline elements (Strikeout, Superscript,
19436 Subscript) to refsMatch.
19437 + Removed backslashEscape; added new functions escapeStringUsing and
19438 backslashEscapes.
19439 + Moved failIfStrict from markdown reader, since it is now used also
19440 by the HTML reader.
19441 + Added a 'try' to the definition of indentSpaces.
19442 + In definition of 'reference', added check to make sure it's not a note
19443 reference.
19444 + Added functions: camelCaseToHyphenated, toRomanNumeral,
19445 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
19446 charsInBalanced', withHorizDisplacement, romanNumeral
19447 + Fixed a bug in the anyLine parser. Previously it would parse an empty
19448 string "", but it should fail on an empty string, or we get an error
19449 when it is used inside "many" combinators.
19450 + Removed followedBy' parser, replacing it with the lookAhead parser from
19451 Parsec.
19452 + Added some needed 'try's before multicharacter parsers, especially in
19453 'option' contexts.
19454 + Removed the 'try' from the 'end' parser in 'enclosed', so that
19455 'enclosed' behaves like 'option', 'manyTill', etc.
19456 + Added lineClump parser, which parses a raw line block up to and
19457 including any following blank lines.
19458 + Renamed parseFromStr to parseFromString.
19459 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
19460 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
19461 in calling code.
19462 + Removed unneeded 'try' in blanklines.
19463 + Removed endsWith function and rewrote calling functions to use
19464 isSuffixOf instead.
19465 + Added >>~ combinator.
19466 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
19467 Space.
19469 * Refactored runtests.pl; added separate tests for tables.
19471 * Shell scripts:
19473 + Added -asxhtml flag to tidy in html2markdown. This will
19474 perhaps help the parser, which expects closing tags.
19475 + Modified markdown2pdf to run pdflatex a second time if --toc or
19476 --table-of-contents was specified; otherwise the table of
19477 contents won't appear.
19478 + Modified markdown2pdf to print a helpful message if the 'ulem'
19479 LaTeX package is required and not found.
19481 * Changes to build process:
19483 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
19484 is now required.
19485 + Removed cabalize and Pandoc.cabal.in. The repository now contains
19486 pandoc.cabal itself.
19487 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
19488 likes the cabal file to have the same name as the tarball.
19489 + Expanded and revised the package description in pandoc.cabal.
19490 Revised the package synopsis.
19491 + The tarball built by 'make tarball' now contains files built from
19492 templates (including man pages and shell scripts), so pandoc can
19493 be built directly using Cabal tools, without preprocessing.
19494 + Executable binaries are now stripped before installing.
19495 + Man pages are now generated from markdown sources, using pandoc's
19496 man page writer.
19497 + Use HTML version of README (instead of RTF) in Mac OS X installer.
19498 + Instead of testing for the existence of a pandoc symlink in build-exec,
19499 use ln -f.
19501 * Documentation:
19503 + Updated README and man pages with information on new features.
19504 + Updated INSTALL instructions with some useful clarifications and
19505 links.
19506 + Updated web content.
19508 * Added FreeBSD port.
19510 [ Recai Oktaş ]
19512 * debian/control:
19514 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
19515 libghc6-xhtml-dev. Removed libghc6-html-dev.
19516 + Suggest texlive-latex-recommended | tetex-extra instead of
19517 tetex-bin. This brings in fancyvrb and unicode support.
19520## pandoc 0.3 (2007-01-05)
19522 [ John MacFarlane ]
19524 * Changes in pandoc options:
19526 + Allow options to follow or precede arguments.
19527 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
19528 + Added '--strict' option.
19529 + Added '-o/--output' option.
19530 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
19531 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
19532 error conditions. This is helpful for writing wrappers.
19533 + Added copyright message to '-v' output, modeled after FSF messages.
19534 + Reformatted usage message so that it doesn't wrap illegibly.
19535 + Removed extra blanks after '-h' and '-D' output.
19537 * Added docbook writer.
19539 * Added implicit setting of default input and output format based
19540 on input and output filename extensions. These defaults are
19541 overridden if explicit input and output formats are specified using
19542 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
19543 and README.
19545 * Allow ordered list items to begin with (single) letters, as well
19546 as numbers. The list item marker may now be terminated either by
19547 '.' or by ')'. This extension to standard markdown is documented
19548 in README.
19550 * Revised footnote syntax. (See README for full details.) The
19551 '[^1]' format now standard in markdown extensions is supported,
19552 as are inline footnotes with this syntax: `^[My note.]`.
19553 The earlier footnote syntax `^(1)` is no longer supported.
19555 * Improved HTML representation of footnotes. All footnotes
19556 are now auto-numbered and appear in an ordered list at the
19557 end of the HTML document. Since the default appearance is now
19558 acceptable, the old footnote styles have been removed from the
19559 HTML header.
19561 * Bug fixes:
19563 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
19564 These readers ran 'runParser' on processed chunks of text to handle
19565 embedded block lists in lists and quotation blocks. But then
19566 any changes made to the parser state in these chunks was lost,
19567 as the state is local to the parser. So, for example, footnotes
19568 didn't work in quotes or list items. The fix: instead of calling
19569 runParser on some raw text, use setInput to make it the input, then
19570 parse it, then use setInput to restore the input to what it was
19571 before. This is shorter and more elegant, and it fixes the problem.
19572 + Fixed bug in notFollowedBy' combinator (adding 'try' before
19573 'parser'). Adjusted code that uses this combinator accordingly.
19574 + Fixed bug in RTF writer that caused improper indentation on
19575 footnotes occurring in indented blocks like lists.
19576 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
19577 and date are parsed correctly. Everything else in the preamble
19578 is skipped.
19579 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
19580 line to count as escaped whitespace.
19581 + Modified LaTeX reader to produce inline links rather than reference
19582 links. Otherwise, links in footnotes aren't handled properly.
19583 + Fixed handling of titles in links in Markdown reader, so that
19584 embedded quotation marks are now handled properly.
19585 + Fixed Markdown reader's handling of embedded brackets in links.
19586 + Fixed Markdown reader so that it only parses bracketed material
19587 as a reference link if there is actually a corresponding key.
19588 + Revised inline code parsing in Markdown reader to conform to
19589 markdown standard. Now any number of `s can begin inline code,
19590 which will end with the same number of `s. For example, to
19591 have two backticks as code, write ``` `` ```. Modified Markdown
19592 writer accordingly.
19593 + Fixed bug in text-wrapping routine in Markdown and RST writers.
19594 Now LineBreaks no longer cause wrapping problems.
19595 + Supported hexadecimal numerical entity references as well as
19596 decimal ones.
19597 + Fixed bug in Markdown reader's handling of underscores and other
19598 inline formatting markers inside reference labels: for example,
19599 in '[A_B]: /url/a_b', the material between underscores was being
19600 parsed as emphasized inlines.
19601 + Changed Markdown reader's handling of backslash escapes so that
19602 only non-alphanumeric characters can be escaped. Strict mode
19603 follows Markdown.pl in only allowing a select group of punctuation
19604 characters to be escaped.
19605 + Modified HTML reader to skip a newline following a `<br>` tag.
19606 Otherwise the newline will be treated as a space at the beginning
19607 of the next line.
19609 * Made handling of code blocks more consistent. Previously, some
19610 readers allowed trailing newlines, while others stripped them.
19611 Now, all readers strip trailing newlines in code blocks. Writers
19612 insert a newline at the end of code blocks as needed.
19614 * Modified readers to make spacing at the end of output more consistent.
19616 * Minor improvements to LaTeX reader:
19618 + `\thanks` now treated like a footnote.
19619 + Simplified parsing of LaTeX command arguments and options.
19620 commandArgs now returns a list of arguments OR options (in
19621 whatever order they appear). The brackets are included, and
19622 a new stripFirstAndLast function is provided to strip them off
19623 when needed. This fixes a problem in dealing with \newcommand
19624 and \newenvironment.
19626 * Revised RTF writer:
19628 + Default font is now Helvetica.
19629 + An `\f0` is added to each `\pard`, so that font resizing works
19630 correctly.
19632 * Moved handling of "smart typography" from the writers to the Markdown
19633 and LaTeX readers. This allows great simplification of the writers
19634 and more accurate smart quotes, dashes, and ellipses. DocBook can
19635 now use `<quote>`. The '--smart' option now toggles an option in
19636 the parser state rather than a writer option. Several new kinds
19637 of inline elements have been added: Quoted, Ellipses, Apostrophe,
19638 EmDash, EnDash.
19640 * Changes in HTML writer:
19642 + Include title block in header even when title is null.
19643 + Made javascript obfuscation of emails even more obfuscatory,
19644 by combining it with entity obfuscation.
19646 * Changed default ASCIIMathML text color to black.
19648 * Test suite:
19650 + Added --strip-trailing-cr option to diff in runtests.pl, for
19651 compatibility with Windows.
19652 + Added regression tests with footnotes in quote blocks and lists.
19654 * Makefile changes:
19656 + osx-pkg target creates a Mac OS X package (directory). New osx
19657 directory contains files needed for construction of the package.
19658 + osx-dmg target creates a compressed disk image containing the package.
19659 + win-pkg target creates Windows binary package.
19660 + tarball target creates distribution source tarball.
19661 + website target generates pandoc's website automatically, including
19662 demos. New 'web' directory contains files needed for construction
19663 of the website (which will be created as the 'pandoc' subdirectory
19664 of 'web').
19665 + Makefile checks to see if we're running Windows/Cygwin; if so,
19666 a '.exe' extension is added to each executable in EXECS.
19668 * Removed all wrappers except markdown2pdf and html2markdown.
19670 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
19671 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
19672 option and disables other options.
19674 * Added code to html2markdown that tries to determine the character
19675 encoding of an HTML file, by parsing the "Content-type" meta tag.
19677 + If the encoding can't be determined, then if the content is local,
19678 the local encoding is used; if it comes from a URL, UTF-8 is used
19679 by default.
19680 + If input is from STDIN, don't try to determine character encoding.
19681 + Encoding can be specified explicitly using '-e' option.
19683 * Improved warning messages in wrappers:
19685 + Print warning if iconv not available
19686 + More user-friendly error messages in markdown2pdf, when
19687 pdflatex fails.
19689 * Code cleanup:
19691 + Renamed 'Text/Pandoc/HtmlEntities' module to
19692 'Text/Pandoc/Entities'. Also changed function names so as
19693 not to be HTML-specific.
19694 + Refactored SGML string escaping functions from HTML and Docbook
19695 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
19696 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
19697 used anywhere.
19698 + Removed splitBySpace and replaced it with a general, polymorphic
19699 splitBy function.
19700 + Refactored LaTeX reader for clarity (added isArg function).
19701 + Converted some CR's to LF's in src/ui/default/print.css.
19702 + Added license text to top of source files.
19703 + Added module data for haddock to source files.
19704 + Reformatted code for consistency.
19706 * Rewrote documentation and man pages. Split README into INSTALL
19707 and README.
19709 * Split LICENSE into COPYING and COPYRIGHT.
19711 * Removed TODO, since we now maintain ToDo on the wiki.
19713 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
19714 duplication.
19716 [ Recai Oktaş ]
19718 * Revamped build process to conform to debian standards and created
19719 a proper debian package. Closes: #391666.
19721 * Modified build process to support GHC 6.6.
19723 + The package can still be compiled using GHC 6.4.2, though because
19724 of dependencies the "make deb" target works only with GHC 6.6+.
19725 + The script 'cabalize' is used to create an appropriate
19726 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
19727 Cabal versions.
19729 * Refactored template processing (fillTemplates.pl).
19731 * Modified wrapper scripts to make them more robust and portable.
19732 To avoid code duplication and ensure consistency, wrappers are
19733 generated via a templating system from templates in src/wrappers.
19735 + Wrappers now accept multiple filenames, when appropriate.
19736 + Spaces and tabs allowed in filenames.
19737 + getopts shell builtin is used for portable option parsing.
19738 + Improved html2markdown's web grabber code, making it more robust,
19739 configurable and verbose. Added '-e', '-g' options.
19742## pandoc 0.2 (2006-08-14)
19744 * Fixed unicode/utf-8 translation
19746## pandoc 0.1 (2006-08-14)
19748 * Initial creation of debian package