git.iko.soy/typeable/pandoc
on 2.5 help sign in
typeable/pandoc/changelog
16031 lines 688 kB history raw
1pandoc (2.5)
3 * Text.Pandoc.App: split into several unexported submodules (Albert
4 Krewinkel): Text.Pandoc.App.FormatHeuristics,
5 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
6 Text.Pandoc.App.OutputSettings. This is motivated partly by the
7 desire to reduce recompilations when something is modified,
8 since App previously depended on virtually every other module.
10 * Text.Pandoc.Extensions
12 + Semantically, `gfm_auto_identifiers` is now a modifier of
13 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
14 be turned on, and then the type of identifier produced depends on
15 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
16 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
17 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
18 GitHub doesn't seem to strip non-ascii characters any more.
20 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
22 + Test AST object equality via Haskell (#5092). Equality of Lua
23 objects representing pandoc AST elements is tested by unmarshalling
24 the objects and comparing the result in Haskell.
25 A new function `equals` which performs this test has been added to the
26 `pandoc.utils` module.
27 + Improve stringify. Meta value strings (MetaString)
28 and booleans (MetaBool) are now converted to the literal string and the
29 lowercase boolean name, respectively. Previously, all values of these
30 types were converted to the empty string.
32 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
33 already exists (Alexander Krotov).
35 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
36 or beginning of line (#5050).
38 * Text.Pandoc.Readers.Markdown
40 + Fix parsing of citations, quotes, and underline emphasis
41 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
42 and underline emphasis were no longer recognized after certain
43 symbols, like parentheses (#5099, #5053).
44 + In pandoc 2.4, a soft break after an abbreviation would be
45 relocated before it to allow for insertion of a nonbreaking
46 space after the abbreviation. This behavior is here reverted.
47 A soft break after an abbreviation will remain, and no nonbreaking
48 space will be added. Those who care about this issue should take care not
49 to end lines with an abbreviation, or to insert nonbreaking spaces
50 manually.
52 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
53 `<body>` (Alexander Krotov). Some libraries include custom elements
54 in their FB2 files.
56 * Text.Pandoc.Readers.HTML
58 + Allow `tfoot` before body rows (#5079).
59 + Parse `<small>` as a Span with class "small" (#5080).
60 + Allow thead containing a row with `td` rather than `th` (#5014).
62 * Text.Pandoc.Readers.LaTeX
64 + Cleaned up handling of dimension arguments. Allow decimal points,
65 preceding space.
66 + Don't allow arguments for verbatim, etc.
67 + Allow space before bracketed options.
68 + Allow optional arguments after `\\` in tables.
69 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
70 but know that these font changing commands take no arguments.
72 * Text.Pandoc.Readers.Muse
74 + Trim whitespace before parsing grid table cells (Alexander Krotov).
75 + Add grid tables support (Alexander Krotov).
77 * Text.Pandoc.Shared
79 + For bibliography match Div with id `refs`, not class `references`.
80 This was a mismatch between pandoc's docx, epub, latex, and markdown
81 writers and the behavior of pandoc-citeproc, which actually looks for a
82 div with id `refs` rather than one with class `references`.
83 + Exactly match GitHub's identifier generating algorithm (#5057).
84 + Add parameter for `Extensions` to `uniqueIdent` and
85 `inlineListToIdentifier` (#5057). [API change]
86 This allows these functions to be sensitive to the settings of
87 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
88 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
89 also means that `gfm_auto_identifiers` can now be used in all formats.
91 * Text.Pandoc.Writers.AsciiDoc
93 + Use `.`+ as list markers to support nested ordered lists (#5087).
94 + Support list number styles (#5089).
95 + Render Spans using `[#id .class]#contents#` (#5080).
97 * Text.Pandoc.Writers.CommonMark
99 + Respect `--ascii` (#5043, quasicomputational).
100 + Make sure `--ascii` affects quotes, super/subscript.
102 * Text.Pandoc.Writers.Docx
104 + Fix bookmarks to headers with long titles (#5091).
105 Word has a 40 character limit for bookmark names. In addition, bookmarks
106 must begin with a letter. Since pandoc's auto-generated identifiers may
107 not respect these constraints, some internal links did not work. With
108 this change, pandoc uses a bookmark name based on the SHA1 hash of the
109 identifier when the identifier isn't a legal bookmark name.
110 + Add bookmarks to code blocks (Nikolay Yakimov).
111 + Add bookmarks to images (Nikolay Yakimov).
112 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
114 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
115 Nodes of the form
117 <meta name="calibre:series" content="Classics on War and Politics"/>
119 are now included from an epub XML metadata file. You can also include
120 this information in your YAML metadata, like so:
122 calibre:
123 series: Classics on War and Policitics
125 In addition, ibooks-specific metadata can now be included via an XML
126 file. (Previously, it could only be included via YAML metadata, see
127 #2693.)
129 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
130 attributes.
132 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
133 This avoids splitting up the output unnecessarily into separate elements.
135 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
136 if `writerIncremental` is True (#5072).
138 * Text.Pandoc.Writers.Muse (Alexander Krotov).
140 + Output tables as grid tables if they have multi-line cells.
141 + Indent simple tables only on the top level.
142 + Output tables with one column as grid tables.
143 + Add support for `--reference-location`.
144 + Internal improvements.
146 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
147 #5095). This was a regression in pandoc 2.4.
149 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
151 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
153 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
154 when there are several choices for a particular character.
156 * data/abbreviations
158 + Add additional abbreviations (Andrew Dunning)
159 Many of these borrowed from the Chicago Manual of Style 10.42,
160 'Scholarly abbreviations'.
162 * Templates
164 + Asciidoc template: add :lang: to title header is lang is set in
165 metadata (#5088).
167 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
168 Disabling the flag will cause derivation of ToJSON and FromJSON
169 instances via GHC Generics instead of Template Haskell. The flag is
170 enabled by default, as deriving via Generics can be slow (see #4083).
172 * trypandoc:
174 + Tweaked drop-down lists.
175 + Put link to site in footer.
176 + Preselect output format.
177 + Update on change of in or out format.
178 + Add man input format.
180 * MANUAL.txt:
182 + Fix outdated description of latex_macros extension.
183 + Clarified placement of bibliography.
184 + Added "A note on security."
185 + Fix note on curly brace syntx for locators.
186 + Document new explicit syntax for citeproc locators.
187 + Remove confusing cross-links for some extensions.
188 + Don't put pandoc in code ticks in heading.
189 + Document that `--ascii` works for gfm and commonmark too.
190 + Add `man` to `--from` options.
192 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
195pandoc (2.4)
197 [new features]
199 * New input format `man` (Yan Pashkovsky, John MacFarlane).
201 [behavior changes]
203 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
204 via the new `writerPreferAscii` field in `WriterOptions`.
205 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
206 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
207 Previously the to-ascii translation was done in Text.Pandoc.App,
208 and thus not available to those using the writer functions
209 directly.
211 * `--ascii` now works with Markdown output. HTML5 character reference
212 entities are used.
214 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
215 guaranteed, but the writer will use commands like `\"{a}` and `\l`
216 whenever possible, to avoid emiting a non-ASCII character.
218 * For HTML5 output, `--ascii` now uses HTML5 character reference
219 entities rather than numerical entities.
221 * Improved detection of format based on extension (in Text.Pandoc.App).
222 We now ensure that if someone tries to convert a file for a
223 format that has a pandoc writer but not a reader, it won't just
224 default to markdown.
226 * Add viz. to abbreviations file (#5007, Nick Fleisher).
228 * AsciiDoc writer: always use single-line section headers,
229 instead of the old underline style (#5038). Previously the single-line
230 style would be used if `--atx-headers` was specified, but
231 now it is always used.
233 * RST writer: Use simple tables when possible (#4750).
235 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
236 quasicomputational). Previously, the writer would unconditionally
237 emit HTML output for subscripts, superscripts, strikeouts (if the
238 strikeout extension is disabled) and small caps, even with
239 `raw_html` disabled. Now there are plain-text (and, where
240 possible, fancy Unicode) fallbacks for all of these corresponding
241 (mostly) to the Markdown fallbacks, and the HTML output is only
242 used when `raw_html` is enabled.
244 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
245 This allows raw openxml blocks and inlines to be used in the pptx
246 writer. Caveats: (1) It's up to the user to write
247 well-formed openxml. The chances for corruption, especially with
248 such a brittle format as pptx, is high. (2) Because of
249 the tricky way that blocks map onto shapes, if you are using
250 a raw block, it should be the only block on a slide
251 (otherwise other text might end up overlapping it). (3) The
252 pptx ooxml namespace abbreviations are different from the
253 docx ooxml namespaces. Again, it's up to the user to get it
254 right. Unzipped document and ooxml specification should be
255 consulted.
257 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
258 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
259 we tell katex to convert the contents of span elements with
260 class "math". Since math has already been identified, this
261 avoids wasted time parsing for LaTeX delimiters. Note, however,
262 that this may yield unexpected results if you have span elements
263 with class "math" that don't contain LaTeX math.
264 Also, use latest version of KaTeX by default (0.9.0).
266 * The man writer now produces ASCII-only output, using groff escapes,
267 for portability.
269 * ODT writer:
271 + Add title, author and date to metadata; any remaining
272 metadata fields are added as `meta:user-defined` tags.
273 + Implement table caption numbering (#4949, Nils Carlson).
274 Captioned tables are numbered and labeled with format "Table 1:
275 caption", where "Table" is replaced by a translation, depending
276 on the value of `lang` in metadata. Uncaptioned tables are not
277 enumerated.
278 + OpenDocument writer: Implement figure numbering in captions (#4944,
279 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
280 The format in the caption is "Figure 1: caption" and so on
281 (where "Figure" is replaced by a translation, depending on the
282 value of `lang` in the metadata). Captioned figures are numbered
283 consecutively and uncaptioned figures are not enumerated. This
284 is necessary in order for LibreOffice to generate an
285 Illustration Index (Table of Figures) for included figures.
287 * RST reader: Pass through fields in unknown directives as div attributes
288 (#4715). Support `class` and `name` attributes for all directives.
290 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
291 Brian Leung). Headers with the corresponding tags should not
292 appear in the output.
294 * Log warnings about missing title attributes now include a
295 suggestion about how to fix the problem (#4909).
297 * Lua filter changes (Albert Krewinkel):
299 + Report traceback when an error occurs. A proper Lua traceback is
300 added if either loading of a file or execution of a filter
301 function fails. This should be of help to authors of Lua filters
302 who need to debug their code.
304 + Allow access to pandoc state (#5015). Lua filters and custom
305 writers now have read-only access to most fields of pandoc's
306 internal state via the global variable `PANDOC_STATE`.
308 + Push ListAttributes via constructor (Albert Krewinkel).
309 This ensures that ListAttributes, as present in OrderedList elements,
310 have additional accessors (viz. `start`, `style`, and `delimiter`).
312 + Rename ReaderOptions fields, use snake_case. Snake case is used
313 in most variable names, using camelCase for these fields was an
314 oversight. A metatable is added to ensure that the old field
315 names remain functional.
317 + Iterate over AST element fields when using `pairs`. This makes
318 it possible to iterate over all ield names of an AST element by
319 using a generic `for` loop with pairs`:
321 for field_name, field_content in pairs(element) do
322 ...
323 end
325 Raw table fields of AST elements should be considered an
326 implementation detail and might change in the future. Accessing
327 element properties should always happen through the fields
328 listed in the Lua filter docs.
330 Note that the iterator currently excludes the `t`/`tag` field.
332 + Ensure that MetaList elements behave like Lists. Methods usable
333 on Lists can also be used on MetaList objects.
335 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
336 object to the constructor `pandoc.MetaList` now returns the
337 passed list as a MetaList. This is consistent with the
338 constructor behavior when passed an (untagged) list.
340 * Custom writers: Custom writers have access to the global variable
341 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
342 a userdata wrapper around the full pandoc AST and exposes two
343 fields, `meta` and `blocks`. The field content is only
344 marshaled on-demand, performance of scripts not accessing the
345 fields remains unaffected.
347 [API changes]
349 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
351 * Text.Pandoc.Shared:
353 + Export `splitSentences`. This was previously duplicated in the Man and
354 Ms writers.
355 + Add `ToString` typeclass (Alexander Krotov).
357 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
359 * Text.Pandoc.Parsing
361 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
362 + Generalize `readWithM` from `[Char]` to any `Char` Stream
363 that is a `ToString` instance (Alexander Krotov).
365 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
367 * Text.Pandoc.XML: add `toHtml5Entities`.
369 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
370 MacFarlane).
372 * Text.Pandoc.Writers.Shared
374 + Add exported functions `toSuperscript` and
375 `toSubscript` (quasicomputational, #4528).
376 + Remove exported functions `metaValueToInlines`,
377 `metaValueToString`. Add new exported functions
378 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
379 `lookupMetaString`. Use these whenever possible for uniformity
380 in writers (Mauro Bieg, #4907). (Note that
381 removed function `metaValueToInlines` was in previous
382 released versions.)
383 + Add `metaValueToString`.
385 * Text.Pandoc.Lua
387 + Expose more useful internals (Albert Krewinkel):
389 - `runFilterFile` to run a Lua filter from file;
390 - data type `Global` and its constructors; and
391 - `setGlobals` to add globals to a Lua environment.
393 This module also contains `Pushable` and `Peekable` instances
394 required to get pandoc's data types to and from Lua. Low-level
395 Lua operation remain hidden in Text.Pandoc.Lua.
397 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
399 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
400 `apply` (Albert Krewinkel).
402 [bug fixes and under-the-hood improvements]
404 * Text.Pandoc.Parsing
406 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
407 + Rewrite `uri` without `withRaw` (Alexander Krotov).
408 + Generalize `parseFromString` and `parseFromString'` to any
409 streams with Char token (Alexander Krotov)
410 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
412 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
413 (Alexander Krotov).
415 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
416 (Alexander Krotov).
418 * Text.Pandoc.App
420 + Work around HXT limitation for --syntax-definition with windows
421 drive (#4836).
422 + Always preserve tabs for man format. We need it for tables.
423 + Split command line parsing code into a separate unexported
424 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
426 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
427 roff documents.
429 * New unexported module Text.Pandoc.RoffChar, provided character
430 escape tables for roff formats.
432 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
433 accept processing instructions (#3123, regression since 2.0).
435 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
436 account for empty lists (Alexander Krotov).
438 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
439 headerless table (#4382).
441 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
442 blocks (Brian Leung).
444 * Text.Pandoc.Readers.Vimwiki:
446 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
447 (Alexander Krotov).
448 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
450 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
451 `[Char]` (Alexander Krotov).
453 * Text.Pandoc.Readers.LaTeX
455 + Allow space at end of math after `\` (#5010).
456 + Add support for `nolinkurl` command (#4992, Brian Leung).
457 + Simplified type on `doMacros'`.
458 + Tokenize before pulling tokens, rather than after (#4408). This
459 has some performance penalty but is more reliable.
460 + Make macroDef polymorphic and allow in inline context.
461 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
462 I have actually seen tex like this in the wild.
463 + Improved parsing of `\def`, `\let`. We now correctly parse:
464 ```
465 \def\bar{hello}
466 \let\fooi\bar
467 \def\fooii{\bar}
468 \fooi +\fooii
470 \def\bar{goodbye}
471 \fooi +\fooii
472 ```
473 + Improve parsing of `\def` argspec.
474 + Skip `\PackageError` commands (see #4408).
475 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
476 so no raw tex should result unless we explicitly say `+raw_tex`.
477 Previously some raw commands did make it through.
478 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
479 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
480 Text.Pandoc.Readers.LaTeX.Lang (unexported).
481 + Simplified accent code using unicode-transforms.
482 New dependency on unicode-transforms package for normalization.
483 + Allow verbatim blocks ending with blank lines (#4624).
484 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
485 This collects some of the general-purpose code from the LaTeX reader,
486 with the aim of making the module smaller.
488 * Text.Pandoc.Readers.Markdown
490 + Fix awkward soft break movements before abbreviations (#4635).
491 + Add updateStrPos in a couple places where needed.
493 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
494 (#4947). These are variants for "complex scripts" like Arabic
495 and are now treated just like b, i (bold, italic).
497 * Text.Pandoc.Readers.Muse (Alexander Krotov)
499 + Try to parse lists before trying to parse table.
500 This ensures that tables inside lists are parsed correctly.
501 + Forbid whitespace after opening and before closing markup
502 elements.
503 + Parse page breaks.
504 + Simplify `museToPandocTable` to get rid of partial functions.
505 + Allow footnotes to start with empty line.
506 + Make sure that the whole text is parsed.
507 + Allow empty headers. Previously empty headers caused parser to
508 terminate without parsing the rest of the document.
509 + Allow examples to be indented with tabs.
510 + Remove indentation from examples indicated by `{{{` and `}}}`.
511 + Fix parsing of empty cells.
512 + Various changes to internals.
513 + Rewrite some parsers in applicative style.
514 + Avoid tagsoup dependency.
515 + Allow table caption to contain `+`.
517 * Text.Pandoc.Writers.LaTeX
519 + Add newline if math ends in a comment (#4880). This prevents the
520 closing delimiter from being swalled up in the comment.
521 + With `--listings`, don't pass through org-babel attributes (#4889).
522 + With `--biblatex`, use `\autocite` when possible (#4960).
523 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
524 we don't have prefixes and suffixes, we use instead
525 `\autocite{a1,a2,a3}`.
526 + Fix description lists contining highlighted code (#4662).
528 * Text.Pandoc.Writers.Man
530 + Don't wrap `.SH` and `.SS` lines (#5019).
531 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
532 one paragraph definitions.
533 + Moved common groff functions to Text.Pandoc.Writers.Groff.
534 * Fix strong/code combination on man (should be `\f[CB]` not
535 `\f[BC]`, see #4973).
536 + Man writer: use `\f[R]` instead of `\f[]` to reset font
537 (Alexander Krotov, #4973).
538 + Move `splitSentences` to Text.Pandoc.Shared.
540 * Text.Pandoc.Writers.Docx
542 + Add framework for custom properties (#3034). So far, we don't
543 actually write any custom properties, but we have the
544 infrastructure to add this.
546 + Handle tables in table cells (#4953). Although this is not
547 documented in the spec, some versions of Word require a `w:p`
548 element inside every table cell. Thus, we add one when the
549 contents of a cell do not already include one (e.g. when a table
550 cell contains a table).
552 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
553 Adjust header levels so that n+1 level headers are only
554 found under n level headers, and the top level is 1.
556 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
557 alignment (#4385). This change eliminates the large gap we used
558 to have between bullet and text, and also ensures that numbers
559 in numbered lists will be right-aligned.
561 * Text.Pandoc.Writers.ZimWiki
563 + Number ordered list items sequentially, rather than always
564 with 1 (#4962).
565 + Remove extra indentation on lists (#4963).
567 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
568 `stylesheet` (Mauro Bieg, #4990).
570 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
571 normal content (#4629). Otherwise a raw block can prevent a
572 paragraph from being recognized as such.
574 * Text.Pandoc.Writers.Ms
576 + Removed old `escapeBar`. We don't need this now that we use
577 `@` for math delim.
578 + Moved common code to Text.Pandoc.Writers.Roff and to
579 Text.Pandoc.RoffChar.
580 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
581 with the man writer).
583 * Text.Pandoc.Writers.Muse (Alexander Krotov).
585 + Add support for grid tables.
586 + Fix Muse writer style.
587 + Use `length` instead of `realLength` to calculate definition
588 indentation. Muse parsers don't take character width into
589 account when calculating indentation.
590 + Do not insert newline before lists.
591 + Use lightweight markup after `</em>` tag.
593 * New unexported module Text.Pandoc.Writers.Roff, providing functions
594 useful for all roff format writers (man, ms).
596 * Text.Pandoc.Lua
598 + Move globals handling to separate module Text.Pandoc.Lua.Global
599 (Albert Krewinkel).
601 + Lua filter internals: push Shared.Element as userdata (Albert
602 Krewinkel). Hierarchical Elements were pushed to Lua as plain
603 tables. This is simple, but has the disadvantage that marshaling
604 is eager: all child elements will be marshaled as part of the
605 object. Using a Lua userdata object instead allows lazy access
606 to fields, causing content marshaling just (but also each time)
607 when a field is accessed. Filters which do not traverse the full
608 element contents tree become faster as a result.
610 [default template changes]
612 * LaTeX template:
614 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
615 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
617 * AsciiDoc template: use single-line style for title.
619 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
620 Yoan Blanc).
622 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
623 (Albert Krewinkel).
625 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
627 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
628 (Albert Krewinkel).
630 [documentation improvements]
632 * INSTALL.md
634 + Add chromeos install instructions (#4958) (Evan Pratten).
635 + Add note about TinyTeX.
637 * MANUAL.txt
639 + Change `groff` -> `roff`.
640 + Implement `--ascii` for Markdown writer.
641 + Clarify LaTeX image dimensions output (Mauro Bieg).
643 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
645 * doc/getting-started.md: Added title to test1.md to avoid warning.
647 * doc/lua-filters.md: merge type references into main document,
648 fix description of Code.text (Albert Krewinkel).
650 [build infrastructure improvements]
652 * Makefile
654 + Makefile: added quick-cabal, full-cabal targets.
655 + Make .msi download targets insensitive to order of appveyor builds.
657 * Update benchmarks for ghc 8.6.1.
659 * pandoc.cabal:
661 + Enable more compiler warnings (Albert Krewinkel).
662 + Make base lower bound 4.8.
663 + Bump upper bound for QuickCheck.
664 + Bump upper bound for binary.
665 + Updated version bounds for containers and haddock-library (#4974).
666 + Added docx/docPropos/custom.xml to cabal data-files.
667 + Require skylighting 0.7.4 (#4920).
668 + New dependency on unicode-transforms package for normalization.
670 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
672 * Added `tools/changelog-helper.sh`.
674 * Added test/grofftest.sh for testing the man reader on real man pages.
676pandoc (2.3.1)
678 * RST reader:
680 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
681 This eliminates a regression introduced after pandoc 2.1.1, which
682 caused inline constructions containing newlines not to be recognized.
683 + Fix bug with internal link targets (#4919). They were gobbling up
684 indented content underneath.
686 * Markdown reader: distinguish autolinks in the AST. With this change,
687 autolinks are parsed as Links with the `uri` class. (The same is true
688 for bare links, if the `autolink_bare_uris` extension is enabled.)
689 Email autolinks are parsed as Links with the `email` class. This
690 allows the distinction to be represented in the AST.
692 * Org reader:
694 + Force inline code blocks to honor export options (Brian Leung).
695 + Parse empty argument array in inline src blocks (Brian Leung).
697 * Muse reader (Alexander Krotov):
699 + Added additional tests.
700 + Do not allow code markup to be followed by digit.
701 + Remove heading level limit.
702 + Simplify `<literal>` tag parsers
703 + Parse Text instead of String. Benchmark shows 7% improvement.
704 + Get rid of HTML parser dependency.
705 + Various code improvements.
707 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
708 We do this in the LaTeX writer, and it avoids problems.
709 Note that `/` works as a LaTeX path separator on Windows.
711 * LaTeX writer:
713 + Add support for multiprenote and multipostnote arguments
714 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
715 the first prefix of a multicite, and the multipostnotes follow the
716 last suffix.
717 + Fix a use of `last` that might take empty list. If you ran with
718 `--biblatex` and have an empty document (metadata but no blocks),
719 pandoc would previously raise an error because of the use of
720 `last` on an empty list.
722 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
723 MonadFail instance (Jonas Scholl).
725 * ODT Writer: Improve table header row style handling (Nils Carlson).
726 This changes the way styles for cells in the header row
727 and normal rows are handled in ODT tables.
728 Previously a new (but identical) style was generated for
729 every table, specifying the style of the cells within the table.
730 After this change there are two style definitions for table cells,
731 one for the cells in the header row, one for all other cells.
732 This doesn't change the actual styles, but makes post-processing
733 changes to the table styles much simpler as it is no longer
734 necessary to introduce new styles for header rows and there are
735 now only two styles where there was previously one per table.
737 * HTML writer:
739 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
740 class was added to autolinks by the HTML writer, but it had to
741 guess what was an autolink and could not distinguish
742 `[http://example.com](http://example.com)` from
743 `<http://example.com>`. It also incorrectly recognized
744 `[pandoc](pandoc)` as an autolink. Now the HTML writer
745 simply passes through the `uri` attribute if it is present,
746 but does not add anything.
747 + Avoid adding extra section nestings for revealjs.
748 Previously revealjs title slides at level (slidelevel - 1)
749 were nested under an extra section element, even when
750 the section contained no additional (vertical) content.
751 That caused problems for some transition effects.
752 + Omit unknown attributes in EPUB2 output. For example,
753 `epub:type` attributes should not be passed through,
754 or the epub produced will not validate.
756 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
757 The JATS spec does not allow these.
759 * Textile writer: don't represent `uri` class explicitly
760 for autolinks (#4913).
762 * Lua filters (Albert Krewinkel):
764 + Cleanup filter execution code.
765 + Better error on test failure.
767 * HTML, Muse reader tests: reduce time taken by round-trip test.
769 * Added cabal.project.
771 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
773 * Use hslua v1.0.0 (Albert Krewinkel).
775 * Fix `translations/ru` to use modern Russian orthography
776 (Ivan Trubach).
778 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
779 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
781pandoc (2.3)
783 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
784 users to specify metadata in a YAML file, regardless of the
785 input format (#1960).
787 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
789 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
790 Mauro Bieg).
792 * Text.Pandoc.Readers.LaTeX.Types:
794 + New type `ArgSpec` (API change).
795 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
796 `Int` (API change).
798 * Markdown reader:
800 + Use `tex` instead of `latex` for raw tex-ish content. We can't
801 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
802 use `tex` always. Note that if `context` or `latex` specifically
803 is desired, you can still force that in a markdown document by
804 using the raw attribute. Note that this change may affect some
805 filters, if they assume that raw tex parsed by the Markdown reader
806 will be RawBlock (Format `latex`). In most cases it should be
807 trivial to modify the filters to accept `tex` as well.
808 + Refactor and reorganize YAML code (Mauro Bieg).
809 + Make `example_lists` work for interrupted lists
810 without `startnum` (#4908).
812 * HTML reader:
814 + Parse `<script type="math/tex` tags as math (#4877).
815 These are used by MathJax in some configurations.
816 + Extract spaces inside links instead of trimming them
817 (Alexander Krotov, #4845).
818 + Added round-trip tests (Alexander Krotov).
819 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
820 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
821 (which is helpful for translation HTML documents using MathJaX).
823 * Org reader (Albert Krewinkel):
825 + Respect export option `p` for planning info. Inclusion of planning info
826 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
827 `p` export option: setting the option to `t` will add all planning
828 information in a *Plain* block below the respective headline.
829 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
830 ghc extensions.
831 + Strip planning info from output. Planning info is parsed, but not
832 included in the output (as is the default with Emacs Org-mode, #4867).
834 * LaTeX reader:
836 + Split some general-purpose definitions into a separate, unexported
837 module, Text.Pandoc.Readers.LaTeX.Parsing. This is to avoid
838 out-of-memory errors compiling the LaTeX reader.
839 + Handle parameter patterns for `\def` (#4768, #4771).
840 For example: `\def\foo#1[#2]{#1 and #2}`.
841 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
842 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
843 argument as the content.
844 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
845 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
846 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
847 will be parsed as a regular Quoted inline (not using the quotes
848 appropriate to the foreign language).
849 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
850 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
851 `\textcircled`. Also fall back to combining characters when composed
852 characters are not available.
853 + Resolve `\ref` for figure numbers.
854 + Support `mintinline` (#4365, Marc Schreiber).
855 + Fix siunitx unit commands so they are only recognized in
856 siunitx contexts (#4842). For example, `\l` outside of an
857 siunitx context should be l-slash, not l (for liter).
858 + Fix double `unnumbered` class (#4838). The `unnumbered` class
859 was being included twice for starred sections.
861 * RST reader: Don't skip link definitions after comments (#4860).
863 * Muse reader (Alexander Krotov):
865 + Close the `</quote>` in indented tag test.
866 There is already a separate test for unclosed `</quote>`.
867 + Autonumber sections in the correct order. Parsing now stops
868 at each section header to ensure the header is registered before
869 parsing of the next section starts.
870 + Move duplicate code into `headingStart` function.
871 + Allow newline after opening `*` or `**`.
872 + Don't allow digits after closing marker in lightweight markup
873 This change makes reader more compatible with Emacs Muse.
874 + Parse `<verse>` tag in one pass instead of using
875 `parseFromString`. This change makes it possible to have
876 verbatim `</verse>` tag inside verse.
878 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
879 (#4336). This allows pandoc to parse ODT document produced by KDE's
880 Calligra.
882 * Muse writer (Alexander Krotov):
884 + Output headers without asterisks if not on the top level.
885 + Never wrap definition list terms.
886 + Set `envInsideBlock = True` when rendering notes.
887 + Use `""` instead of `[]` for empty String.
888 + Check for whitespace in the beginning and end of Str's.
889 + Escape `-`, `;` and `>` in the beginning of strings.
890 + Escape list markers in the beginning of notes.
891 + Normalize inline list before testing if tags should be used.
892 + Use tags instead of lightweight markup for empty strings.
893 + Use lightweight markup when possible.
894 + Escape empty strings. This guarantees that `conditionalEscapeString`
895 never returns empty string.
896 + Wrap conditionalEscapeString result into `Muse` type.
897 This removes the need to pass `envInsideLinkDescription` to it.
898 + Separate `shouldEscapeString` function.
899 + Simplify inline list rendering.
900 + Replace newlines in strings with spaces.
902 * Docx writer:
904 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
905 + Properly handle display math in spans (#4826). This isn't a
906 complete solution, since other nestings of display math may still
907 cause problems, but it should work for what is by far the most
908 common case.
910 * HTML writer:
912 + Always output `<dt>` element, even if it is empty (#4883,
913 Alexander Krotov).
914 + Don't prefix `epub:` attributes with `data-`.
916 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
917 recognize these escapes.
919 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
920 Image scaling was broken when a width was set to a percentage.
922 * EPUB writer: set `epub:type` on body element in each chapter,
923 depending on the `epub:type` of the first section (#4823). This
924 only affects epub3. See
925 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
927 * FB2 writer: put `coverpage` element between title and date rather than in
928 `document-info` element (#4854).
930 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
932 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
933 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
934 tex is now used. Previously we'd "fake it with unicode" and fall
935 back to tex when that didn't work. But newer haddock versions
936 support latex math.
938 * TEI writer:
940 + Ensure that title element is always present, even if empty (#4839).
941 + Put author tags in the template, rather than adding them in
942 the writer (#4839).
944 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
945 `linkcolor` only affects internal links, and `urlcolor` only
946 affects linked URLs. For external links, the option to use is
947 `filecolor`.
949 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
951 * RST writer:
953 + Use `.. raw:: latex` for `tex` content.
954 + Use `.. container` for generic Divs, instead of raw HTML.
955 + Render Divs with admonition classes as admonitions (#4833).
956 Also omit Div with class `admonition-title`. These are generated
957 by the RST reader and should be omitted on round-trip.
959 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
960 (#4855, Antonio Terceiro).
962 * HTML5 template: add the `title-block-header` identifier to the
963 `header` element, to make it easier to style precisely (#4767,
964 J. B. Rainsberger).
966 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
967 José de Mattos Neto).
969 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
970 (#4853, Wandmalfarbe).
972 * TEI template: improve `publicationStmt`. Add support for
973 `publisher`, `address`, `pubPlace`, and `date` variables.
975 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
977 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
979 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
981 * MANUAL.txt:
983 + Clarify that `--biblatex/--natbib` don't work directly for PDF
984 (#4904).
985 + Document `epub:type` attribute (Mauro Bieg, #4901)
986 + Clarify when `--resource-path` has an effect.
987 + More detail on customization in syntax highlighting section.
988 + Document encoding issue with `--listings` (#4871, Damien Clochard).
989 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
990 + Use https for context wiki links (#4910).
992 * CONTRIBUTING.md:
994 + Link to lua-filters repository (#4874).
995 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
997 * lua-filters.md: add links to filters, and to lua-filters repository
998 (#4874).
1000 * INSTALL.md:
1002 + Indicate that cabal >= 2.0 is needed.
1003 + Added chocolatey installation method (#4844, Miodrag Milić).
1005 * Travis: exclude round-trip tests, except for nightly test which can fail.
1007 * Use latest texmath, pandoc-citeproc.
1009 * Use a patched version of foundation until
1010 https://github.com/haskell-foundation/foundation/pull/503
1011 is fixed.
1013 * Clean up appveyor build and Windows package creation.
1014 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
1015 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
1017 * Remove obsolete RELEASE-CHECKLIST.md.
1019 * Added additional compiler warnings in Makefile and CI builds.
1021pandoc (2.2.3.2)
1023 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
1024 This fixes a regression in 2.2.3, which cause boolean values to
1025 be parsed as MetaInlines instead of MetaBool.
1027 We here record another undocumented (but desirable) change in 2.2.3:
1028 numerical metadata fields are now parsed as MetaInlines rather than
1029 MetaString.
1031pandoc (2.2.3.1)
1033 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
1034 (#4817). This fixes a regression in 2.2.3 which caused embedded
1035 mappings (e.g. mappings in sequences) not to work in YAML metadata.
1037pandoc (2.2.3)
1039 * RST reader: improve parsing of inline interpreted text roles (#4811).
1041 + Use a Span with class "title-reference" for the default
1042 title-reference role.
1043 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
1044 and `Str`s for `title-reference`.
1045 + Use Code with class "interpreted-text" instead of Span and Str for
1046 unknown roles. (The RST writer has also been modified to round-trip
1047 this properly.)
1048 + Disallow blank lines in interpreted text.
1049 + Backslash-escape now works in interpreted text.
1050 + Backticks followed by alphanumerics no longer end interpreted text.
1051 + Remove support for nested inlines (Francesco Occhipinti).
1052 RST does not allow nested emphasis, links, or other inline
1053 constructs. This fixes several bugs (#4581, #4561, #4792).
1055 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
1056 Krewinkel). Emphasis was not parsed when it followed directly after
1057 some block types (e.g., lists).
1059 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
1060 keys. Previously in 2.2.2 you could not do
1061 ```
1062 ---
1063 0: bar
1064 ...
1065 ```
1066 but only
1067 ```
1068 ---
1069 '0': bar
1070 ...
1071 ```
1072 With this change, both forms work.
1074 * DocBook reader: metadata handling improvements.
1075 Now we properly parse title and subtitle elements that are direct
1076 children of book and article (as well as children of bookinfo,
1077 articleinfo, or info). We also now use the `subtitle` metadata
1078 field for subtitles, rather than tacking the subtitle on to the
1079 title.
1081 * RST writer:
1083 + Allow images to be directly nested within links (#4810, Francesco
1084 Occhipinti).
1085 + Use `titleblock` instead of `title` variable for title block (#4803,
1086 Francesco Occhipinti). `titleblock` contains a properly formatted
1087 title and subtitle (using top-level headers). `title` and
1088 `subtitle` variables are still available and just contain the
1089 title and subtitle text. Note that this change will require an
1090 update to custom rst templates.
1091 + Render Code with class "interpreted-text" as interpreted text role.
1093 * MediaWiki writer: Avoid extra blank line in tables with empty cells
1094 (#4794). Note that the old output is semantically identical, but the
1095 new output looks better.
1097 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
1098 Krewinkel). Exposes a function converting which flattenes a list of
1099 blocks into a list of inlines. An example use case would be the
1100 conversion of Note elements into other inlines.
1102 * RST template: use `titleblock` instead of `title`. Users of
1103 custom RST templates will want to update this.
1105 * LaTeX template: Moved some beamer code in default.latex template.
1106 This change allows beamer themes to change the template and font (as
1107 Metropolis does) (#4450).
1109 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
1111 * Added test case for #4669 to repository.
1113 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
1115 * MANUAL.txt:
1117 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
1118 + Clarify when `csquotes` is used in LaTeX writer (#4514).
1119 + Add `commonmark` to list of output formats where `raw_tex` has an
1120 effect (see #4527).
1123pandoc (2.2.2.1)
1125 * Fix regression finding templates in user data directory (#4777).
1126 Under version 2.2.1 and prior pandoc found latex templates in the
1127 templates directory under the data directory, but this broke in 2.2.2.
1129 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
1130 `rawLaTeXInline` (#4781). (This primarily affects the markdown
1131 reader, and other readers that accept raw tex.)
1132 Starting in 2.2.2, everything after an `\input` (or `\include`)
1133 in a markdown file would be parsed as raw LaTeX.
1135 * MANUAL:
1137 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
1138 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
1139 Unlike `tags`, `keywords` is used in some of the writers
1140 and default templates.
1142 * Add missing `rollingLinks` option to revealjs template (#4778,
1143 Igor Khorlo).
1145pandoc (2.2.2)
1147 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
1148 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
1150 Note: HsYAML implements YAML 1.2, in which the valid true
1151 values are `true`, `True`, `TRUE`. This means a change in
1152 the semantics of YAML metadata that could affect users:
1153 `y`, `yes`, and `on` no longer count as true values.
1155 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
1156 Bieg).
1158 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
1159 Anders Waldenborg). Non-ascii characters were not stripped from
1160 identifiers even if the `ascii_identifiers` extension was
1161 enabled (which is is by default for gfm).
1163 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
1164 Remove trailing Space from list items. Parse lists that have no space
1165 after marker.
1167 * LaTeX reader:
1169 + Treat `lilypond` as a verbatim environment (#4725).
1170 + Parse figure label into Image id (#4700, Mauro Bieg).
1171 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
1172 + Allow spaces around `\graphicspath` arguments (#4698).
1173 + Handle includes without surrounding blanklines (#4553).
1174 In addition, `\input` can now be used in an inline context,
1175 e.g. to provide part of a paragraph, as it can in LaTeX.
1176 + In `rawLaTeXBlock`, handle macros that resolve to a
1177 `\begin` or `\end` (#4667).
1178 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
1179 Note that this only affected LaTeX in markdown.
1180 + Tighten up reading of beamer overlay specifications (#4669).
1181 Ideally we'd turn these on only when reading beamer, but currently
1182 beamer is not distinguished from latex as an input format.
1183 This commit also activates parsing of overlay specifications
1184 after commands in general (e.g. `\item`), since they can occur
1185 in many contexts in beamer.
1186 + Parse more siunitx unit commands (#4296, #4773).
1187 + Be more forgiving in key/value option parsing (#4761).
1189 * Markdown reader:
1191 + Allow empty code spans, e.g. `` ` ` ``.
1192 + Emojis are now wrapped in Spans with class `emoji` and
1193 attribute `data-emoji` (Anders Waldenborg, #4743).
1194 This allows the writer to handle them in a special way
1195 (e.g. using a special font, or just rendering the
1196 emoji name).
1198 * Muse reader (Alexander Krotov, except where indicated):
1200 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
1201 + Add support for floating images.
1202 + Add support for images with specified width.
1203 + Parse image URLs without "guard" and "takeExtension".
1204 + Split link and image parsing into separate functions.
1205 + Parse links starting with "URL:" explicitly instead of trying to strip
1206 "URL:" prefix after parsing.
1208 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
1209 Alexander Krotov).
1211 * Markdown writer: Preserve `implicit_figures` with attributes, even if
1212 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
1214 * Markdown and commonmark/github writers now respect the `emoji`
1215 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
1216 `:smile:` as `:smile:` rather than converting it to a smile
1217 character.
1219 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
1221 * ODT/OpenDocument writer: Make internal links work (#4358).
1222 This adds proper bookmarks to the headers with non-null IDs.
1224 * EPUB writer: Properly escape pagetitle. Previously we weren't
1225 escaping `&` and other XML characters in the pagetitle, so a title
1226 containing a `&` would be invalid.
1228 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
1229 Mauro Bieg).
1231 * RST writer:
1233 + Don't treat 'example' as a syntax name (#4748).
1234 This fixes conversions from org with example blocks.
1235 + Support `--number-sections` via the `section-numbering`
1236 directive in standalone output.
1238 * reveal.js writer and template: reuse mathjax URL
1239 provided by the argument to `--mathjax` or the normal pandoc default,
1240 rather than a hard-coded one in the template (#4701).
1242 * LaTeX writer:
1244 + Properly handle footnotes in table captions (#4683).
1245 Refactored code from figure captions to use in both places.
1246 + In beamer output, fix single digit column percentage (#4690, Mauro
1247 Bieg).
1249 * FB2 writer (Alexander Krotov):
1251 + Convert Plain to Para in annotation (#2424).
1252 + Fix order of items in title-info (#2424).
1254 * Custom writer: fix error message on script failure (Albert Krewinkel).
1255 Error messages produced by Lua were not displayed by Pandoc.
1257 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
1258 inline containing the emoji character and some attributes with metadata
1259 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
1260 Anders Waldenborg, #4743).
1262 * Text.Pandoc.PDF:
1264 + Revert fix for #4484 (only compress images on last run, #4755).
1265 This will mean some increase in the time it takes to
1266 produce an image-heavy PDF with xelatex, but it will
1267 make tables of contents correct, which is more important.
1268 + Fix logic error in `runTeXProgram`. We were running the tex program
1269 one more time than requested. This should speed up PDF production.
1271 * Allow `--template` to take a URL as argument.
1273 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
1274 highlighting style (#4687, Adrian Sieber, API change).
1276 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
1277 installer the recommended method, and note that on some older versions of
1278 macOS, homebrew installs from source and takes a lot of disk space
1279 (#4664, Ian).
1281 * MANUAL:
1283 + Clarify EPUB linked media (#4756, Mauro Bieg)
1284 + Update manual for "true" YAML values. Now that we're using HsYAML and
1285 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
1286 `y`, `yes`, `on` no longer count as true values.
1287 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
1288 + Update manual on how math is rendered in LaTeX.
1289 + Add proxy description (#4131, Mauro Bieg).
1290 + Clarify that `--toc` requires `--standalone` (#4703).
1291 + Update citation styles link (#4699, wiefling).
1293 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
1294 (kaizshang91). Note that it will not take effect when readers/writers
1295 are called as libraries (#4674).
1297 * Improved translations/fr (#4766, lux-lth).
1299 * Removed inadvertently added `.orig` files from repository (#4648).
1301 * Remove `network-uri` flag and use 'Network.Socket'.
1302 This removes a compiler warning. There is no need for the old
1303 `network-uri` flag, since network 2.6 was released in 2014.
1305 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
1307 * Bump upper bounds for dependent packages.
1309 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
1310 confused because of the way ghc 7.10 is excluded in foundation's
1311 cabal file. This can be removed when haskell-foundation/foundation#500
1312 is fixed.
1314 * Require cabal-version >= 2.0. This is needed for haddock-library.
1317pandoc (2.2.1)
1319 * Restored and undeprecated gladtex for HTML math (#4607).
1321 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
1322 [API change, reverts removal in v2.2]
1323 + Restored and undeprecated `--gladtex` option, removed in v2.2.
1325 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
1327 * Org reader: Fix image filename recognition (Albert Krewinkel).
1328 Use a function from the filepath library to check whether a string is a
1329 valid file name. The custom validity checker that was used before gave
1330 wrong results (e.g. for absolute file paths on Windows,
1331 kawabata/ox-pandoc#52).
1333 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
1335 * HTML writer:
1337 + Strip links from headers when creating TOC (#4340).
1338 Otherwise the TOC entries will not link to the sections.
1339 + Fix regression with tex math environments in HTML + MathJax (#4639).
1341 * Muse writer (Alexander Krotov): Add support for left-align and
1342 right-align classes (#4542).
1344 * Docx writer: Support underline (#4633).
1346 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
1347 `singleQuoteStart` and `doubleQuoteStart` (#4637).
1349 * `test-pandoc-utils.lua`: more robust testing on both windows
1350 and \*nix. Previously the pipe tests were only run if
1351 `\bin/false` and `/bin/sed` were present, which they aren't
1352 in default MacOS and Windows systems. Fixed by using `tr`
1353 and `false`, which should always be in the path on a \*nix
1354 system, and `find` and `echo` for Windows.
1356 * Text.Pandoc.Shared: add `uriPathToPath`.
1357 This adjusts the path from a file: URI in a way that is sensitive
1358 to Windows/Linux differences. Thus, on Windows,
1359 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
1360 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
1362 * Use `uriPathToPath` with file: URIs (#4613).
1364 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
1365 file as before.
1367 * Text.Pandoc.Class: Catch IO errors when writing media files
1368 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
1370 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
1372 * MANUAL (Mauro Bieg):
1374 + Clarify truthiness in template variables (#2281).
1375 + Clarify pipe table width calculation (#4520).
1377 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
1378 CMU Serif gives better typographic results than the previous
1379 Greek fallback DejaVu Serif.
1381 * Make HTML template polyglot (#4606, OvidiusCicero), by making
1382 `<link rel="stylesheet" href="$css$">` self-closing.
1384 * Use texmath 0.11, allowing better translation of non-ASCII
1385 characters in math (#4642).
1387pandoc (2.2)
1389 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
1391 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
1392 and for `ms` and `man`.
1394 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
1395 `--asciimathml` options.
1397 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
1398 Krotov, API change).
1400 * Markdown reader:
1402 + Allow empty key-value attributes, like `title=""` (#2944).
1403 + Handle table w/o following blank line in fenced div (#4560).
1404 + Remove "fallback" for `doubleQuote` parser. Previously the
1405 parser tried to be efficient -- if no end double quote was found,
1406 it would just return the contents. But this could backfire in a
1407 case `**this should "be bold**`, since the fallback would return
1408 the content `"be bold**` and the closing boldface delimiter
1409 would never be encountered.
1410 + Improve computation of the relative width of the last column in a
1411 multiline table, so we can round-trip tables without constantly
1412 shrinking the last column.
1414 * EPUB reader:
1416 + Fix images with space in file path (#4344).
1418 * LaTeX reader:
1420 + Properly resolve section numbers with `\ref` and chapters (#4529).
1421 + Parse sloppypar environment (#4517, Marc Schreiber).
1422 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
1423 Previously there were some bugs in how macros were handled.
1424 + Support `\MakeUppercase`, `\MakeLowercase', `\uppercase`, `\lowercase`,
1425 and also `\MakeTextUppercase` and `\MakeTextLowercase` from textcase
1426 (#4959).
1428 * Textile reader:
1430 + Fixed tables with no body rows (#4513).
1431 Previously these raised an exception.
1433 * Mediawiki reader:
1435 + Improve table parsing (#4508). This fixes detection of table
1436 attributes and also handles `!` characters in cells.
1438 * DocBook reader:
1440 + Properly handle title in `section` element (#4526).
1441 Previously we just got `section_title` for `section` (though `sect1`,
1442 `sect2`, etc. were handled properly).
1443 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
1445 * Docx reader:
1447 + Combine adjacent CodeBlocks with the same attributes into
1448 a single CodeBlock. This prevents a multiline codeblock in
1449 Word from being read as different paragraphs.
1451 * RST reader:
1453 + Allow < 3 spaces indent under directives (#4579).
1454 + Fix anonymous redirects with backticks (#4598).
1456 * Muse reader (Alexander Krotov):
1458 + Add support for Text::Amuse multiline headings.
1459 + Add `<math>` tag support.
1460 + Add support for `<biblio>` and `<play>` tags.
1461 + Allow links to have empty descriptions.
1462 + Require block `<literal>` tags to be on separate lines.
1463 + Allow `-` in anchors.
1464 + Allow verse to be indented.
1465 + Allow nested footnotes.
1466 + Internal improvements.
1468 * Muse writer (Alexander Krotov):
1470 + Escape `>` only at the beginning of a line.
1471 + Escape `]` in image title.
1472 + Escape `]` brackets in URLs as `%5D`.
1473 + Only escape brackets when necessary.
1474 + Escape ordered list markers.
1475 + Do not escape list markers unless preceded by space.
1476 + Escape strings starting with space.
1477 + Escape semicolons and markers after line break.
1478 + Escape `;` to avoid accidental comments.
1479 + Don't break headers, line blocks and tables with line breaks.
1480 + Correctly output empty headings.
1481 + Escape horizontal rule only if at the beginning of the line.
1482 + Escape definition list terms starting with list markers.
1483 + Place header IDs before header.
1484 + Improve span writing.
1485 + Do not join Spans in normalization.
1486 + Don't align ordered list items.
1487 + Remove key-value pairs from attributes before normalization.
1488 + Enable `--wrap=preserve` for all tests by default.
1489 + Reduced `<verbatim>` tags in output.
1490 + Internal changes.
1492 * RST writer:
1494 + Use more consistent indentation (#4563). Previously we
1495 used an odd mix of 3- and 4-space indentation. Now we use 3-space
1496 indentation, except for ordered lists, where indentation must
1497 depend on the width of the list marker.
1498 + Flatten nested inlines (#4368, Francesco Occhipinti).
1499 Nested inlines are not valid RST syntax, so we flatten them following
1500 some readability criteria discussed in #4368.
1502 * EPUB writer:
1504 + Ensure that `pagetitle` is always set, even when structured titles
1505 are used. This prevents spurious warnings about empty title
1506 elements (#4486).
1508 * FB2 writer (Alexander Krotov):
1510 + Output links inline instead of producing notes. Previously all links
1511 were turned into footnotes with unclickable URLs inside.
1512 + Allow emphasis and notes in titles.
1513 + Don't intersperse paragraph with empty lines.
1514 + Convert metadata value `abstract` to book annotation.
1515 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
1516 FB2 does not have a way to represent line breaks inside paragraphs;
1517 previously we used `<empty-line />` elements, but these are not allowed
1518 inside paragraphs.
1520 * Powerpoint writer (Jesse Rosenthal):
1522 + Handle Quoted Inlines (#4532).
1523 + Simplify code with `ParseXml`.
1524 + Allow fallback options when looking for placeholder type.
1525 + Check reference-doc for all layouts.
1526 + Simplify speaker notes logic.
1527 + Change notes state to a simpler per-slide value.
1528 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
1529 means no speaker notes.
1530 + Add tests for improved speaker notes.
1531 + Handle speaker notes earlier in the conversion process.
1532 + Keep notes with related blocks (#4477). Some blocks automatically
1533 split slides (imgs, tables, `column` divs). We assume that any
1534 speaker notes immediately following these are connected to these
1535 elements, and keep them with the related blocks, splitting after them.
1536 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
1537 It contained a nonfree ICC color calibration profile and is not needed
1538 for production of a powerpoint document.
1540 * Markdown writer:
1542 + Include a blank line at the end of the row in a single-row multiline
1543 table, to prevent it from being interpreted as a simple table (#4578).
1545 * CommonMark writer:
1547 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
1548 enabled (#4527, quasicomputational).
1550 * EPUB writer:
1552 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
1554 * LaTeX writer:
1556 + In beamer, don't use format specifier for default ordered lists
1557 (#4556). This gives better results for styles that put ordered list
1558 markers in boxes or circles.
1559 + Update `\lstinline` delimiters (#4369, Tim Parenti).
1561 * Ms writer:
1563 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
1564 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
1565 since the header font is automatically bold (#4552).
1566 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
1567 + Create pdf anchor for a Div with an identifier (#4515).
1568 + Escape `/` character in anchor ids (#4515).
1569 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
1570 to avoid ambiguity.
1572 * Man writer:
1574 + Don't escape U+2019 as `'` (#4550).
1576 * Text.Pandoc.Options:
1578 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
1579 `Text.Pandoc.Options.HTMLMathMethod` [API change].
1581 * Text.Pandoc.Class:
1583 + `writeMedia`: unescape URI-escaping in file path. This avoids
1584 writing things like `file%20one.png` to the file system.
1586 * Text.Pandoc.Parsing:
1588 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
1589 as 1100.
1590 + `uri`: don't treat `*` characters at end as part of URI (#4561).
1592 * Text.Pandoc.MIME:
1594 + Use the alias `application/eps` for EPS (#2067).
1595 This will ensure that we retain the eps extension after reading the
1596 image into a mediabag and writing it again.
1598 * Text.Pandoc.PDF:
1600 + Use `withTempDir` in `html2pdf`.
1601 + With `xelatex`, don't compress images til the last run (#4484).
1602 This saves time for image-heavy documents.
1603 + Don't try to convert EPS files (#2067). `pdflatex` converts them
1604 itself, and JuicyPixels can't do it.
1605 + For `pdflatex`, use a temp directory in the working directory.
1606 Otherwise we can have problems with the EPS conversion pdflatex
1607 tries to do, which can't operate on a file above the working
1608 directory without `--shell-escape`.
1610 * Changes to tests to accommodate changes in pandoc-types.
1611 In <https://github.com/jgm/pandoc-types/pull/36> we changed
1612 the table builder to pad cells. This commit changes tests
1613 (and two readers) to accord with this behavior.
1615 * Set default extensions for `beamer` same as `latex`.
1617 * LaTeX template:
1619 + Add `beameroption` variable (#4359, Étienne Bersac).
1620 + Use `pgfpages` package; this is needed for notes on second
1621 screen in beamer (Étienne Bersac).
1622 + Add `background-image` variable (#4601, John Muccigrosso).
1624 * reveal.js template: Add `background-image` variable (#4600,
1625 John Muccigrosso).
1627 * ms template: Fix date. Previously `.ND` was used, but this only
1628 works if you have a title page, which we don't. Thanks to @teoric.
1630 * Removed pragmas for unused extensions (#4506, Anabra).
1632 * Fix bash completion for `--print-default-data-file` (#4549).
1633 Previously this looked in the filesystem, even if pandoc
1634 was compiled with `embed_data_files` (and sometimes it looked
1635 in a nonexistent build directory). Now the bash completion
1636 script just includes a hard-coded list of data file names.
1638 * MANUAL:
1640 + Clarify template vs metadata variables (#4501, Mauro Bieg).
1641 + Fix raw content example (#4479, Mauro Bieg).
1642 + Specify that you use html for raw output in epub.
1643 + Add examples for raw docx blocks (#4472, Tristan Stenner).
1644 The documentation states that the target format name should match
1645 the output format, which isn't the case for `docx`/`openxml` and
1646 some others.
1647 + Don't say that `empty_paragraphs` affects markdown output (#4540).
1648 + Consolidate input/output format documentation (#4577, Mauro Bieg).
1650 * New README template. Take in/out formats from manual.
1652 * Fix example in lua-filters docs (#4459, HeirOfNorton).
1654 * Use the `-threaded` GHC flag when building benchmarks (#4587,
1655 Francesco Occhipinti).
1657 * Bump temporary upper bound to 1.4.
1659 * Use pandoc-citeproc 0.14.3.1.
1661 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
1663 * Removed old lib directory. This was used for something long ago,
1664 but plays no role now.
1666 * Removed unneeded data file `LaTeXMathML.js`.
1668 * Create 64- and 32-bit versions of Windows binary packages.
1670pandoc (2.1.3)
1672 * Docx reader (Jesse Rosenthal):
1674 + Add tests for nested smart tags.
1675 + Parse nested smart tags.
1676 + Make unwrapSDT into a general `unwrap` function that can unwrap both
1677 nested SDT tags and smartTags. This makes the SmartTags constructor in
1678 the Docx type unnecessary, so we remove it (#4446).
1679 + Remove unused `docxWarnings` (Alexander Krotov).
1681 * RST reader: Allow unicode bullet characters (#4454).
1683 * Haddock reader: Better table handling, using haddock-library's
1684 new table support, if compiled against a version that
1685 includes it. Note that tables with col/rowspans will not
1686 translate well into Pandoc.
1688 * Muse reader (Alexander Krotov):
1690 + Require closing tag to have the same indentation as opening.
1691 + Do not reparse blocks inside unclosed block tag (#4425).
1692 + Parse `<class>` tag (supported by Emacs Muse).
1693 + Do not produce empty Str element for unindented verse lines.
1694 + Don't allow footnote references inside links.
1695 + Allow URL to be empty.
1696 + Require that comment semicolons are in the first column (#4551).
1697 + Various internal improvements.
1699 * LaTeX reader:
1701 + Add support to parse unit string of `\SI` command (closes #4296,
1702 Marc Schreiber).
1704 * Haddock writer: In the writer, we now render tables always as
1705 grid tables, since Haddock supports these.
1707 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
1709 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
1710 docx writer. We want decimal for the top level, not lower roman.
1712 * RST writer:
1714 + Strip whitespace at beginning and ending of inline containers
1715 (#4327, Francesco Occhipinti).
1716 + Filter out empty inline containers (#4434). There is nothing in
1717 RST that corresponds to e.g. `Emph []`, so we just ignore elements
1718 like this (Francesco Occhipinti).
1720 * Muse writer (Alexander Krotov):
1722 + Support spans with anchors.
1723 + Replace smallcaps with emphasis before normalization.
1724 + Output smallcaps as emphasis.
1725 + Expand Cite before list normalization.
1726 + Write empty inline lists as `<verbatim></verbatim>`.
1727 + Remove empty Str from the beginning of inline lists during normalization.
1728 + Escape "-" to avoid creating bullet lists.
1729 + Fix math expansion for more than one expression per paragraph.
1730 + Expand math before inline list normalization.
1732 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
1734 * Ms writer:
1736 + Asciify pdf anchors, since unicode anchors don't work (#4436).
1737 Internal links should be converted automatically, so this shouldn't
1738 affect users directly.
1739 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
1741 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
1742 (#4307). If it's in the title, then we get a titlebar on slides with
1743 the `plain` attribute, when the id is non-null. This fixes a regression
1744 in 2.0.
1746 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
1748 * JATS writer: Remove extraneous, significant whitespace (#4335,
1749 Nokome Bentley).
1751 * html2pdf: inject base tag with current working directory (#4413, Mauro
1752 Bieg). This helps ensure that linked resources are included.
1754 * Add Semigroup instances for everything for which we defined a
1755 Monoid instance previously (API change):
1757 + Text.Pandoc.Class.FileTree.
1758 + Text.Pandoc.Translations.Translations.
1759 + Text.Pandoc.Extensions.Extensions.
1760 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
1761 + Text.Pandoc.Pretty.Doc.
1762 + Text.Pandoc.MediaBag.MediaBag.
1764 * Add custom Prelude to give clean code for Monoid and Semigroup
1765 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
1766 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
1767 in all source files, and Prelude is explicitly imported
1768 (this is necessary for ghci to work properly with the custom prelude).
1770 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
1772 + Export `stripLeadingTrailingSpace`.
1773 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
1774 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
1775 expand cells, even if it results in cells that don't respect relative
1776 widths or surpass page column width. This change affects RST,
1777 Markdown, and Haddock writers.
1779 * Raise error if someone tries to print docx, odt, etc. template (#4441).
1781 * LaTeX template: Provide `bidi` package's option using
1782 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
1783 clash when `polyglossia` loads it first and then it is loaded again
1784 for XeLaTeX.
1786 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
1787 Menke). Instructions on how to install the ICC profiles on ConTeXt
1788 standalone can be found in the wiki:
1789 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
1790 If the ICC profiles are not available the log will contain error
1791 messages.
1793 * Use latest pandoc-types, skylighting
1795 * Use latest pandoc-citeproc in binary package.
1797 * Bump upper bound for time, criterion, haddock-library, exceptions,
1798 http-types, aeson, haddock-library.
1800 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
1802 * pandoc.cabal: fix up other-extensions and language fields.
1803 Language is now consistently `Haskell2010`, and other-extensions
1804 is consistently `NoImplicitPrelude`. Everything else to be specified
1805 in the module header as needed.
1807 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
1808 This is no longer necessary since we no longer support ghc 7.8.
1810 * Make `weigh-pandoc` into a benchmark program.
1811 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
1812 automatically when you build (and run) benchmarks.
1814 * MANUAL: add instructions for background images reveal.js (#4325, John
1815 Muccigrosso).
1817 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
1820pandoc (2.1.2)
1822 * Markdown reader:
1824 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
1825 "nonindent spaces" before the opening and closing `:::`, but this
1826 interfered with list parsing, so now we require the fences to be flush with
1827 the margin of the containing block.
1829 * Commonmark reader:
1831 + `raw_html` is now on by default. It can be disabled explicitly
1832 using `-f commonmark-raw_html`.
1834 * Org reader (Albert Krewinkel):
1836 + Move citation tests to separate module.
1837 + Allow changing emphasis syntax (#4378). The characters allowed before
1838 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
1839 `#+pandoc-emphasis-post`, respectively. This allows to change which
1840 strings are recognized as emphasized text on a per-document or even
1841 per-paragraph basis. Example:
1843 #+pandoc-emphasis-pre: "-\t ('\"{"
1844 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
1846 * LaTeX reader:
1848 + Fixed comments inside citations (#4374).
1849 + Fix regression in package options including underscore (#4424).
1850 + Make `--trace` work.
1851 + Fixed parsing of `tabular*` environment (#4279).
1853 * RST reader:
1855 + Fix regression in parsing of headers with trailing space (#4280).
1857 * Muse reader (Alexander Krotov):
1859 + Enable `<literal>` tags even if amuse extension is enabled.
1860 Amusewiki disables <literal> tags for security reasons.
1861 If user wants similar behavior in pandoc, RawBlocks and RawInlines
1862 can be removed or replaced with filters.
1863 + Remove space prefix from `<literal>` tag contents.
1864 + Do not consume whitespace while looking for closing end tag.
1865 + Convert alphabetical list markers to decimal in round-trip test.
1866 Alphabetical lists are an addition of Text::Amuse.
1867 They are not present in Emacs Muse and can be ambiguous
1868 when list starts with "i.", "c." etc.
1869 + Allow `<quote>` and other tags to be indented.
1870 + Allow single colon in definition list term.
1871 + Fix parsing of verse in lists.
1872 + Improved parsing efficiency. Avoid `parseFromString`.
1873 Lists are parsed in linear instead of exponential time now.
1874 + Replace ParserState with MuseState.
1875 + Prioritize lists with roman numerals over alphabetical lists.
1876 This is to make sure "i." starts a roman numbered list,
1877 instead of a list with letter "i" (followed by "j", "k", ...").
1878 + Fix directive parsing.
1879 + Parse definition lists with multiple descriptions.
1880 + Parse next list item before parsing more item contents.
1881 + Fixed a bug: headers did not terminate lists.
1882 + Move indentation parsing from `definitionListItem` to `definitionList`.
1883 + Paragraph indentation does not indicate nested quote.
1884 Muse allows indentation to indicate quotation or alignment,
1885 but only on the top level, not within a <quote> or list.
1886 + Require that block tags are on separate lines.
1887 Text::Amuse already explicitly requires it anyway.
1888 + Fix matching of closing inline tags.
1889 + Various internal changes.
1890 + Fix parsing of nested definition lists.
1891 + Require only one space for nested definition list indentation.
1892 + Do not remove trailing whitespace from `<code>`.
1893 + Fix parsing of trailing whitespace. Newline after whitespace now
1894 results in softbreak instead of space.
1896 * Docx reader (Jesse Rosenthal, except where noted):
1898 + Handle nested sdt tags (#4415).
1899 + Don't look up dependent run styles if `+styles` is enabled.
1900 + Move pandoc inline styling inside custom-style span.
1901 + Read custom styles (#1843). This will read all paragraph and
1902 character classes as divs and spans, respectively. Dependent styles
1903 will still be resolved, but will be wrapped with appropriate style
1904 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
1905 This can be used in conjunction with the `custom-style` feature in the
1906 docx writer for a pandoc-docx editing workflow. Users can convert from
1907 an input docx, reading the custom-styles, and then use that same input
1908 docx file as a reference-doc for producing an output docx file. Styles
1909 will be maintained across the conversion, even if pandoc doesn't
1910 understand them.
1911 + Small change to Fields hyperlink parser. Previously, unquoted string
1912 required a space at the end of the line (and consumed it). Now we
1913 either take a space (and don't consume it), or end of input.
1914 + Pick table width from the longest row or header (Francesco Occhipinti,
1915 #4360).
1917 * Muse writer (Alexander Krotov):
1919 + Change verse markup: `> ` instead of `<verse>` tag.
1920 + Remove empty strings during inline normalization.
1921 + Don't indent nested definition lists.
1922 + Use unicode quotes for quoted text.
1923 + Write image width specified in percent in Text::Amuse mode.
1924 + Don't wrap displayMath into `<verse>`.
1925 + Escape nonbreaking space (`~~`).
1926 + Join code with different attributes during normalization.
1927 + Indent lists inside Div.
1928 + Support definitions with multiple descriptions.
1930 * Powerpoint writer (Jesse Rosenthal):
1932 + Use table styles This will use the default table style in the
1933 reference-doc file. As a result they will be easier when using
1934 in a template, and match the color scheme.
1935 + Remove empty slides. Because of the way that slides were split, these
1936 could be accidentally produced by comments after images. When animations
1937 are added, there will be a way to add an empty slide with either
1938 incremental lists or pauses.
1939 + Implement syntax highlighting. Note that background colors can't
1940 be implemented in PowerPoint, so highlighting styles that require
1941 these will be incomplete.
1942 + New test framework for pptx. We now compare the output of the
1943 Powerpoint writer with files that we know to (a) not be corrupt,
1944 and (b) to show the desired output behavior (details below).
1945 + Add `notesMaster` to `presentation.xml` if necessary.
1946 + Ignore links and (end)notes in speaker notes.
1947 + Output speaker notes.
1948 + Read speaker note templates conditionally. If there are speaker
1949 notes in the presentation, we read in the notesMasters templates
1950 from the reference pptx file.
1951 + Fix deletion track changes (#4303, Jesse Rosenthal).
1953 * Markdown writer: properly escape @ to avoid capture as citation
1954 (#4366).
1956 * LaTeX writer:
1958 + Put hypertarget inside figure environment (#4388).
1959 This works around a problem with the endfloat package and
1960 makes pandoc's output compatible with it.
1961 + Fix image height with percentage (#4389). This previously caused
1962 the image to be resized to a percentage of textwidth, rather than
1963 textheight.
1965 * ConTeXt writer (Henri Menke):
1967 + New section syntax and support `--section-divs` (#2609).
1968 `\section[my-header]{My Header}` ->
1969 `\section[title={My Header},reference={my-header}]`.
1970 The ConTeXt writer now supports the `--section-divs` option to
1971 write sections in the fenced style, with `\startsection` and
1972 `\stopsection`.
1973 + xtables: correct wrong usage of caption (Henri Menke).
1975 * Docx writer:
1977 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
1978 + Use new golden framework (Jesse Rosenthal).
1979 + Make more deterministic to facilitate testing (Jesse Rosenthal).
1980 - `getUniqueId` now calls to the state to get an incremented digit,
1981 instead of calling to P.uniqueHash.
1982 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
1983 seed (1848), so our randoms should be the same each time.
1984 + Fix ids in comment writing (Jesse Rosenthal). Comments from
1985 `--track-changes=all` were producing corrupt docx, because the
1986 writer was trying to get id from the `(ID,_,_)` field of
1987 the attributes, and ignoring the "id" entry in the key-value pairs. We
1988 now check both.
1990 * Ms writer: Added papersize variable.
1992 * TEI writer:
1994 + Use `height` instead of `depth` for images (#4331).
1995 + Ensure that id prefix is always used.
1996 + Don't emit `role` attribute; that was a leftover from the
1997 Docbook writer.
1998 + Use 'xml:id', not 'id' attribute (#4371).
2000 * AsciiDoc writer:
2002 + Do not output implicit heading IDs (#4363, Alexander
2003 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
2005 * RST writer:
2007 + Remove `blockToRST'` moving its logic into `fixBlocks`
2008 (Francesco Occhipinti).
2009 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
2011 * RST template: remove definition of 'math' role as raw.
2012 This used to be needed prior to v 0.8 of docutils, but
2013 now math support is built-in.
2015 * Slides: Use divs to set incremental/non-incremental (#4381,
2016 Jesse Rosenthal). The old method (list inside blockquote) still
2017 works, but we are encouraging the use of divs with class
2018 `incremental` or `nonincremental`.
2020 * Text.Pandoc.ImageSize:
2022 + Make image size detection for PDFs more robust (#4322).
2023 + Determine image size for PDFs (#4322).
2024 + EMF Image size support (#4375, Andrew Pritchard).
2026 * Text.Pandoc.Extensions:
2028 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
2029 the docx reader (defaulting to off) to read pargraph and character
2030 styles not understood by pandoc (as divs and spans, respectively).
2031 + Made `Ext_raw_html` default for `commonmark` format.
2033 * Text.Pandoc.Parsing:
2035 + Export `manyUntil` (Alexander Krotov, API change).
2036 + Export improved `sepBy1` (Alexander Krotov).
2037 + Export list marker parsers: `upperRoman`, `lowerRoman`,
2038 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
2040 * Tests/Lua: fix tests on windows (Albert Krewinkel).
2042 * Lua: register script name in global variable (#4393). The name of the Lua
2043 script which is executed is made available in the global Lua variable
2044 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
2046 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
2047 There is very little pptx-specific in these tests, so we abstract out
2048 the basic testing function so it can be used for docx as well. This
2049 should allow us to catch some errors in the docx writer that slipped
2050 by the roundtrip testing.
2052 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
2053 functions used to construct AST element values are stored in the Lua
2054 registry for quicker access. Getting a value from the registry is much
2055 faster than getting a global value (partly to idiosyncrasies of hslua);
2056 this change results in a considerable performance boost.
2058 * Documentation:
2060 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
2061 + `doc/lua-filters.md`: document global vars set for filters
2062 (Albert Krewinkel).
2063 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
2064 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
2065 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
2066 Rosenthal). Blockquoted lists are still described, but fenced divs are
2067 presented in preference.
2068 + MANUAL.txt: document header and footer variables (newmana).
2069 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
2070 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
2072 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
2074 * Use latest texmath.
2076 * Use latest pandoc-citeproc.
2078 * Allow exceptions 0.9.
2080 * Require aeson-pretty 0.8.5 (#4394).
2082 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
2084 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
2086 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
2088 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
2089 jarlg).
2092pandoc (2.1.1)
2094 * Markdown reader:
2096 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
2097 blank line. See lierdakil/pandoc-crossref#160.
2098 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
2099 The change both improves performance and fixes a regression whereby
2100 normal citations inside inline notes and figure captions were not
2101 parsed correctly.
2103 * RST reader:
2105 + Better handling for headers with an anchor (#4240). Instead of creating a
2106 Div containing the header, we put the id directly on the header.
2107 This way header promotion will work properly.
2108 + Add aligned environment when needed in math (#4254). `rst2latex.py`
2109 uses an `align*` environment for math in `.. math::` blocks, so this
2110 math may contain line breaks. If it does, we put the math in an
2111 `aligned` environment to simulate `rst2latex.py`'s behavior.
2113 * HTML reader:
2115 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
2117 * LaTeX reader:
2119 + Advance source position at end of stream.
2120 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
2121 extension is set (#4246). This reverts to earlier behavior and is
2122 probably safer on the whole, since some macros only modify things in
2123 included packages, which pandoc's macro expansion can't modify.
2124 + Fixed pos calculation in tokenizing escaped space.
2125 + Allow macro definitions inside macros (#4253). Previously we went into
2126 an infinite loop with
2127 ```
2128 \newcommand{\noop}[1]{#1}
2129 \noop{\newcommand{\foo}[1]{#1}}
2130 \foo{hi}
2131 ```
2132 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
2133 widths for the body were different from widths for the header in some
2134 tables.
2136 * Docx reader (Jesse Rosenthal):
2138 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
2139 hyperlink found in older versions of word. The changes introduced for
2140 this, though, create a framework for parsing further fields in MS Word
2141 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
2142 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
2143 contains a simple parsec parser. At the moment, only simple hyperlink
2144 fields are accepted, but that can be extended in the future.
2146 * Muse reader (Alexander Krotov):
2148 + Parse `~~` as non-breaking space in Text::Amuse mode.
2149 + Refactor list parsing.
2151 * Powerpoint writer (Jesse Rosenthal):
2153 + Change reference to `notesSlide` to `endNotesSlide`.
2154 + Move image sizing into `picProps`.
2155 + Improve table placement.
2156 + Make our own `_rels/.rels` file.
2157 + Import reference-doc images properly.
2158 + Move `Presentation.hs` out of `PandocMonad`.
2159 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
2160 defines the Presentation datatype and goes Pandoc->Presentation;
2161 T.P.W.Pandoc.Output goes Presentation->Archive.
2162 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
2163 + Avoid overlapping blocks in column output.
2164 + Position images correctly in two-column layout.
2165 + Make content shape retrieval environment-aware.
2166 + Improve image handling. We now determine image and caption placement
2167 by getting the dimensions of the content box in a given layout.
2168 This allows for images to be correctly sized and positioned in a
2169 different template. Note that images without captions and headers are
2170 no longer full-screened. We can't do this dependably in different
2171 layouts, because we don't know where the header is (it could be to
2172 the side of the content, for example).
2173 + Read presentation size from reference file. Our presentation size is
2174 now dependent on the reference/template file we use.
2175 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
2176 subheaders will be printed in bold and given a bit of extra space
2177 before them. Note that at the moment, no distinction is made between
2178 levels of headers above the slide header, though that can be changed.
2179 + Check for required files. Since we now import from reference/dist
2180 file by glob, we need to make sure that we're getting the files we
2181 need to make a non-corrupt Powerpoint. This performs that check.
2182 + Improve templating using `--reference-doc`. Templating should work
2183 much more reliably now.
2184 + Include Notes slide in TOC.
2185 + Set notes slide header to slide-level.
2186 + Add table of contents. This is triggered by the `--toc` flag. Note
2187 that in a long slide deck this risks overrunning the text box. The user
2188 can address this by setting `--toc-depth=1`.
2189 + Set notes slide number correctly.
2190 + Clean up adding metadata slide. We want to count the slide numbers
2191 correctly if it's in there.
2192 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
2193 an anchor link. In powerpoint these are links to slides, so we keep
2194 track of a map relating anchors to the slides they occur on.
2195 + Make the slide number available to the blocks. For anchors,
2196 block-processing functions need to know what slide number
2197 they're in. We make the `envCurSlideId` available to blocks.
2198 + Move `curSlideId` to environment.
2199 + Allow setting `toc-title` in metadata.
2200 + Link notes to endnotes slide.
2202 * Markdown writer:
2204 + Fix cell width calculation (#4265). Previously we could get
2205 ever-lengthening cell widths when a table was run repeatedly through
2206 `pandoc -f markdown -t markdown`.
2208 * LaTeX writer:
2210 + Escape `&` in lstinline (Robert Schütz).
2212 * ConTeXt writer:
2214 + Use xtables instead of Tables (#4223, Henri Menke).
2215 Default to xtables for context output. Natural Tables are used
2216 if the new `ntb` extension is set.
2218 * HTML writer:
2220 + Fixed footnote backlinks with `--id-prefix` (#4235).
2222 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
2223 Henri Menke).
2225 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
2226 (Jesse Rosenthal, API change).
2228 * Lua filters (Albert Krewinkel):
2230 + Make `PANDOC_READER_OPTIONS` available.
2231 The options which were used to read the document are made available to
2232 Lua filters via the `PANDOC_READER_OPTIONS` global.
2233 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
2234 on a Pandoc document.
2235 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
2236 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
2237 + Improve error messages. Provide more context about the task
2238 which caused an error.
2240 * data/pandoc.lua (Albert Krewinkel):
2242 + Accept singleton inline as a list. Every constructor which accepts a
2243 list of inlines now also accepts a single inline element for
2244 convenience.
2245 + Accept single block as singleton list. Every constructor which accepts
2246 a list of blocks now also accepts a single block element for
2247 convenience. Furthermore, strings are accepted as shorthand for
2248 `{pandoc.Str "text"}` in constructors.
2249 + Add attr, listAttributes accessors. Elements with
2250 attributes got an additional `attr` accessor. Attributes were
2251 accessible only via the `identifier`, `classes`, and `attributes`,
2252 which was in conflict with the documentation, which indirectly states
2253 that such elements have the an `attr` property.
2254 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
2255 module is closely tied to the pandoc version, which is available via
2256 `PANDOC_VERSION`.
2257 + Fix access to Attr components. Accessing an Attr value (e.g.,
2258 ` Attr().classes`) was broken; the more common case of accessing it via
2259 an Inline or Block element was unaffected by this.
2261 * Move `metaValueToInlines` to from Docx writer to
2262 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
2263 (Jesse Rosenthal).
2265 * MANUAL.txt:
2267 + Clarify otherlangs in LaTeX (#4072).
2268 + Clarify `latex_macros` extension.
2269 + Recommend use of `raw_attribute` extension in header includes (#4253).
2271 * Allow latest QuickCheck, tasty, criterion.
2273 * Remove custom prelude and ghc 7.8 support.
2275 * Reduce compiler noise (exact paths for compiled modules).
2277pandoc (2.1)
2279 * Allow filters and lua filters to be interspersed (#4196). Previously
2280 we ran all lua filters before JSON filters. Now we run filters in
2281 the order they are presented on the command line, whether lua or JSON.
2282 There are two incompatible API changes: The type of `applyFilters`
2283 has changed, and `applyLuaFilters` has been removed. `Filter` is
2284 also now exported.
2286 * Use latest skylighting and omit the `missingIncludes` check, fixing
2287 a major performance regression in earlier releases of the 2.x series
2288 (#4226). Behavior change: If you use a custom syntax definition that
2289 refers to a syntax you haven't loaded, pandoc will now complain when
2290 it is highlighting the text, rather than doing a check at the start.
2291 This change dramatically speeds up invocations of pandoc on short
2292 inputs.
2294 * Text.Pandoc.Class: make `FileTree` opaque (don't export
2295 `FileTree` constructor). This forces users to interact with it using
2296 `insertInFileTree` and `getFileInfo`, which normalize file names.
2298 * Markdown reader:
2300 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
2301 direct, avoiding `parseFromString`. And it performs significantly
2302 better; unfortunately, parsing time still increases exponentially
2303 (see #1735).
2304 + Avoid parsing raw tex unless `\` + letter seen. This seems to
2305 help with the performance problem, #4216.
2307 * LaTeX reader: Simplified a check for raw tex command.
2309 * Muse reader (Alexander Krotov):
2311 + Enable round trip test (#4107).
2312 + Automatically translate `#cover` into `#cover-image`.
2313 Amusewiki uses #cover directive to specify cover image.
2315 * Docx reader (Jesse Rosenthal):
2317 + Allow for insertion/deletion of paragraphs (#3927).
2318 If the paragraph has a deleted or inserted paragraph break (depending
2319 on the track-changes setting) we hold onto it until the next
2320 paragraph. This takes care of accept and reject. For this we introduce
2321 a new state which holds the ils from the previous para if necessary.
2322 For `--track-changes=all`, we add an empty span with class
2323 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
2324 prior to the break to be inserted or deleted.
2325 + Remove unused anchors (#3679). Docx produces a lot of anchors with
2326 nothing pointing to them---we now remove these to produce cleaner
2327 output. Note that this has to occur at the end of the process
2328 because it has to follow link/anchor rewriting.
2329 + Read multiple children of `w:sdtContents`.
2330 + Combine adjacent anchors. There isn't any reason to have numerous
2331 anchors in the same place, since we can't maintain docx's
2332 non-nesting overlapping. So we reduce to a single anchor.
2333 + Improved tests.
2335 * Muse writer (Alexander Krotov): don't escape URIs from AST
2337 * Docx writer:
2339 + Removed redundant subtitle in title (Sebastian Talmon).
2340 + `firstRow` table definition compatibility for Word 2016 (Sebastian
2341 Talmon). Word 2016 seems to use a default value of "1" for table
2342 headers, if there is no firstRow definition (although a default
2343 value of 0 is documented), so all tables get the first Row formatted
2344 as header. Setting the parameter to 0 if the table has no header
2345 row fixes this for Word 2016
2346 + Fix custom styles with spaces in the name (#3290).
2348 * Powerpoint writer (Jesse Rosenthal):
2350 + Ignore Notes div for parity with other slide outputs.
2351 + Set default slidelevel correctly. We had previously defaulted to
2352 slideLevel 2. Now we use the correct behavior of defaulting to the
2353 highest level header followed by content. We change an expected test
2354 result to match this behavior.
2355 + Split blocks correctly for linked images.
2356 + Combine adjacent runs.
2357 + Make inline code inherit code size. Previously (a) the code size
2358 wasn't set when we force size, and (b) the properties was set from
2359 the default, instead of inheriting.
2360 + Simplify `replaceNamedChildren` function.
2361 + Allow linked images. The following markdown:
2362 `[![Image Title](image.jpg)](http://www.example.com)`
2363 will now produce a linked image in the resulting PowerPoint file.
2364 + Fix error with empty table cell. We require an empty `<a:p>` tag,
2365 even if the cell contains no paragraphs---otherwise PowerPoint
2366 complains of corruption.
2367 + Implement two-column slides. This uses the columns/column div
2368 format described in the pandoc manual. At the moment, only two
2369 columns (half the screen each) are allowed. Custom widths are not
2370 supported.
2371 + Added more tests.
2373 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
2375 * Lua filters (Albert Krewinkel):
2377 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
2378 + The current pandoc-types version is made available to Lua programs in
2379 the global `PANDOC_API_VERSION`. It contains the version as a list of
2380 numbers.
2381 + The pandoc version available as a global `PANDOC_VERSION` (a list
2382 of numbers).
2383 + `data/pandoc.lua`: make `Attr` an `AstElement`.
2384 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
2385 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
2386 not set a metatable on the returned value, which made it difficult
2387 to amend objects of these types with new behavior. They are now
2388 subtypes of AstElement, meaning that all their objects can gain
2389 new features when a method is added to the behavior object
2390 (e.g., `pandoc.Pandoc.behavior`).
2391 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
2392 between a type and the behavioral properties of an instance of that
2393 type. The behavior of a type (and all its subtypes) can now be
2394 amended by adding methods to that types `behavior` object, without
2395 exposing the type objects internals. E.g.:
2396 ```lua
2397 pandoc.Inline.behavior.frob = function () print'42' end
2398 local str = pandoc.Str'hello'
2399 str.frob() -- outputs '42'
2400 ```
2401 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
2402 of a given type (e.g., all inline elements) was difficult, as the
2403 table used to lookup unknown methods would be reset every time a
2404 new element of that type was created, preventing recursive property
2405 lookup. This is was changed in that all methods and attributes of
2406 supertypes are now available to their subtypes.
2407 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
2408 fields were named like the Haskell fields, not like the documented,
2409 shorter version. The names are changed to match the documentation
2410 and Citations are given a shared metatable to enable simple
2411 extensibility.
2412 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
2413 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
2414 difficult to handle failures while getting lists or a Map from Lua.
2415 A bug in pandoc, which made it necessary to always pass a tag when
2416 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
2417 module's constructor functions for these values is now optional
2418 (if still recommended).
2419 + Stop exporting `pushPandocModule` (API change). The introduction
2420 of `runPandocLua` renders direct use of this function obsolete.
2421 + Update generation of module docs for lua filters.
2422 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
2423 MacFarlane). I'm sure this was intended in the first place,
2424 but currently only `Meta` is supported.
2426 * Improve benchmarks.
2428 + Set the default extensions properly.
2429 + Improve benchmark argument parsing. You can now say
2430 `make bench BENCHARGS="markdown latex reader"` and both the
2431 markdown and latex readers will be benchmarked.
2433 * MANUAL.txt simplify and add more structure (Mauro Bieg).
2435 * Generate README.md from template and MANUAL.txt.
2436 `make README.md` will generate the README.md after changes
2437 to MANUAL.txt have been made.
2439 * Update copyright notices to include 2018 (Albert Krewinkel).
2441pandoc (2.0.6)
2443 * Added `jats` as an input format.
2445 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
2446 change) (Hamish Mackenzie).
2447 + Improved citation handling in JATS reader. JATS citations
2448 are now converted to pandoc citations, and JATS ref-lists
2449 are converted into a `references` field in metadata, suitable
2450 for use with pandoc-citeproc. Thus a JATS article with embedded
2451 bibliographic information can be processed with pandoc and
2452 pandoc-citeproc to produce a formatted bibliography.
2454 * Allow `--list-extensions` to take an optional FORMAT argument.
2455 This lists the extensions set by default for the selected FORMAT.
2456 The extensions are now alphabetized, and the `+` or `-`
2457 indicating the default setting comes before, rather than after,
2458 the extension.
2460 * Markdown reader:
2462 + Preserve original whitespace between blocks.
2463 + Recognize `\placeformula` as context.
2464 + Be pickier about table captions. A caption starts with a `:` which
2465 can't be followed by punctuation. Otherwise we can falsely interpret
2466 the start of a fenced div, or even a table header line like
2467 `:--:|:--:`, as a caption.
2468 + Always use four space rule for example lists. It would be awkward
2469 to indent example list contents to the first non-space character after
2470 the label, since example list labels are often long. Thanks to
2471 Bernhard Fisseni for the suggestion.
2472 + Improve raw tex parsing. Note that the Markdown reader is also
2473 affected by the `latex_macros` extension changes described below
2474 under the LaTeX reader.
2476 * LaTeX reader:
2478 + `latex_macros` extension changes (#4179). Don't pass through macro
2479 definitions themselves when `latex_macros` is set. The macros
2480 have already been applied. If `latex_macros` is enabled, then
2481 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
2482 a macro definition, and will update pandoc's internal macro map
2483 accordingly, but the empty string will be returned.
2484 + Export `tokenize`, `untokenize` (API change).
2485 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
2486 + Refactored `inlineCommand`.
2487 + Fix bug in tokenizer. Material following `^^` was
2488 dropped if it wasn't a character escape. This only affected
2489 invalid LaTeX, so we didn't see it in the wild, but it appeared
2490 in a QuickCheck test failure.
2491 + Fix regression in LateX tokenization (#4159). This mainly affects the
2492 Markdown reader when parsing raw LaTeX with escaped spaces.
2493 + Add tests of LaTeX tokenizer.
2494 + Support `\foreignlanguage` from babel.
2495 + Be more tolerant of `&` character (#4208). This allows us to parse
2496 unknown tabular environments as raw LaTeX.
2498 * Muse reader (Alexander Krotov):
2500 + Parse anchors immediately after headings as IDs.
2501 + Require that note references does not start with 0.
2502 + Parse empty comments correctly.
2504 * Org reader (Albert Krewinkel):
2506 + Fix asterisks-related parsing error (#4180).
2507 + Support minlevel option for includes (#4154). The level of headers
2508 in included files can be shifted to a higher level by specifying a
2509 minimum header level via the `:minlevel` parameter. E.g.
2510 `#+include: "tour.org" :minlevel 1` will shift the headers in
2511 tour.org such that the topmost headers become level 1 headers.
2512 + Break-up org reader test file into multiple modules.
2514 * OPML reader:
2516 + Enable raw HTML and other extensions by default for notes
2517 (#4164). This fixes a regression in 2.0. Note that extensions can
2518 now be individually disabled, e.g. `-f opml-smart-raw_html`.
2520 * RST reader:
2522 + Allow empty list items (#4193).
2523 + More accurate parsing of references (#4156). Previously we erroneously
2524 included the enclosing backticks in a reference ID (#4156). This
2525 change also disables interpretation of syntax inside references, as
2526 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
2528 * Docx reader:
2530 + Continue lists after interruption (#4025, Jesse Rosenthal).
2531 Docx expects that lists will continue where they left off after an
2532 interruption and introduces a new id if a list is starting again. So
2533 we keep track of the state of lists and use them to define a "start"
2534 attribute, if necessary.
2535 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
2536 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
2537 #4190).
2539 * Plain writer:
2541 + Don't linkify table of contents.
2543 * RST writer:
2545 + Fix anchors for headers (#4188). We were missing an `_`.
2547 * PowerPoint writer (Jesse Rosenthal):
2549 + Treat lists inside BlockQuotes as lists. We don't yet produce
2550 incremental lists in PowerPoint, but we should at least treat lists
2551 inside BlockQuotes as lists, for compatibility with other slide formats.
2552 + Add ability to force size. This replaces the more specific
2553 `blockQuote runProp`, which only affected the size of blockquotes. We
2554 can use this for notes, etc.
2555 + Implement notes. This currently prints all notes on a final slide.
2556 Note that at the moment, there is a danger of text overflowing the
2557 note slide, since there is no logic for adding further slides.
2558 + Implement basic definition list functionality to PowerPoint writer.
2559 + Don't look for default template file for Powerpoint (#4181).
2560 + Add pptx to isTextFormat list. This is used to check standalone
2561 and not writing to the terminal.
2562 + Obey slide level option (Jesse Rosenthal).
2563 + Introduce tests.
2565 * Docx writer:
2567 + Ensure that `distArchive` is the one that comes with pandoc
2568 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
2569 dir) would be used instead, and this could cause problems because a
2570 user-modified docx sometimes lacks vital sections that we count
2571 on the `distArchive` to supply.
2573 * Org writer:
2575 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
2576 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
2577 Alexander Krotov). Otherwise they can be interpreted as footnote
2578 definitions.
2580 * Muse writer (Alexander Krotov):
2582 + Don't wrap note references to the next line (#4172).
2584 * HTML writer:
2586 + Use br elements in line blocks instead of relying on CSS
2587 (#4162). HTML-based templates have had the custom CSS for
2588 `div.line-block` removed. Those maintaining custom templates will want
2589 to remove this too. We still enclose line blocks in a div with class
2590 `line-block`.
2592 * LaTeX writer:
2594 + Use `\renewcommand` for `\textlatin` with babel (#4161).
2595 This avoids a clash with a deprecated `\textlatin` command defined
2596 in Babel.
2597 + Allow fragile=singleslide attribute in beamer slides (#4169).
2598 + Use `\endhead` after `\toprule` in headerless tables (#4207).
2600 * FB2 writer:
2602 + Add cover image specified by `cover-image` meta (Alexander Krotov,
2603 #4195).
2605 * JATS writer (Hamish Mackenzie):
2607 + Support writing `<fig>` and `<table-wrap>` elements
2608 with `<title>` and `<caption>` inside them by using Divs with class set
2609 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
2610 title is included as a Heading so the constraint on where Heading can
2611 occur is also relaxed.
2612 + Leave out empty alt attributes on links.
2613 + Deduplicate image mime type code.
2614 + Make `<p>` optional in `<td>` and `<th>` (#4178).
2615 + Self closing tags for empty xref (#4187).
2616 + Improve support for code language.
2618 * Custom writer:
2620 + Use init file to setup Lua interpreter (Albert Krewinkel).
2621 The same init file (`data/init`) that is used to setup the Lua
2622 interpreter for Lua filters is also used to setup the interpreter of
2623 custom writers.lua.
2624 + Define instances for newtype wrapper (Albert Krewinkel). The custom
2625 writer used its own `ToLuaStack` instance definitions, which made
2626 it difficult to share code with Lua filters, as this could result
2627 in conflicting instances. A `Stringify` wrapper is introduced to
2628 avoid this problem.
2629 + Added tests for custom writer.
2630 + Fixed definition lists and tables in `data/sample.lua`.
2632 * Fixed regression: when target is PDF, writer extensions were being
2633 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
2634 did not work properly.
2636 * Lua modules (Albert Krewinkel):
2638 + Add `pandoc.utils` module, to hold utility functions.
2639 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
2640 define the `pandoc` lua module.
2641 + Make a Haskell module for each Lua module. Move definitions for the
2642 `pandoc.mediabag` modules to a separate Haskell module.
2643 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
2644 + Add function `pandoc.utils.hierarchicalize` (convert list of
2645 Pandoc blocks into (hierarchical) list of Elements).
2646 + Add function `pandoc.utils.normalize_date` (parses a date and
2647 converts it (if possible) to "YYYY-MM-DD" format).
2648 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
2649 of numbers below 4000 into roman numerals).
2650 + Add function `pandoc.utils.stringify` (converts any AST element
2651 to a string with formatting removed).
2652 + `data/init.lua`: load `pandoc.utils` by default
2653 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
2654 utility functions are converted from hybrid lua/haskell functions
2655 into full Haskell functions. This avoids the need for intermediate
2656 `_pipe`/`_read` helper functions, which have dropped.
2657 + pandoc.lua: re-add missing MetaMap function. This was a bug
2658 introduced in version 2.0.4.
2660 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
2661 a pure way to insert an ersatz file into a `FileTree`. In addition, we
2662 normalize paths both on insertion and on lookup.
2664 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
2666 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
2668 * Text.Pandoc.Extensions: Alphabetical order constructors for
2669 `Extension`. This makes them appear in order in `--list-extensions`.
2671 * Allow lenient decoding of latex error logs, which are not always
2672 properly UTF8-encoded (#4200).
2674 * Update latex template to work with recent versions of beamer.
2675 The old template produced numbered sections with some recent
2676 versions of beamer. Thanks to Thomas Hodgson.
2678 * Updated reference.docx (#4175). Instead of just "Hello, world", the
2679 document now contains exemplars of most of the styles that have an
2680 effect on pandoc documents. This makes it easier to see the effect
2681 of style changes.
2683 * Removed `default.theme` data file (#4096). It is no longer needed now
2684 that we have `--print-highlight-style`.
2686 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
2687 We still need this for the alpine static linux build, since
2688 we don't have ghc 8.2.2 for that yet.
2690 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
2691 can put flag settings for pandoc-citeproc there.
2693 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
2694 make releases easier.
2696 * MANUAL.txt:
2698 + Add note on what formats have `+smart` by default.
2699 + Use native syntax for custom-style (#4174, Mauro Bieg).
2700 + Introduce dedicated Extensions section, since some extensions
2701 affect formats other than markdown (Mauro Bieg, #4204).
2702 + Clarify default html output for `--section-divs` (Richard Edwards).
2704 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
2705 Closes jgm/pandoc-website#16.
2707 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
2709pandoc (2.0.5)
2711 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
2712 generated with `--print-highlight-style` (#4133). Improve JSON
2713 serialization of styles.
2715 * Fix CSS issues involving line numbers (#4128).
2716 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
2717 Highlighting CSS no longer sets a generic color for pre and code; we only
2718 set these for class `sourceCode`.
2720 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
2722 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
2723 It works following the standard Pandoc conventions for making other
2724 sorts of slides. Caveats:
2726 + Syntax highlighting is not yet implemented. (This is difficult
2727 because there are no character classes in Powerpoint.)
2728 + Footnotes and Definition lists are not yet implemented. (Notes will
2729 usually take the form of a final slide.
2730 + Image placement and auto-resizing has a few glitches.
2731 + Reference powerpoint files don't work dependably from the command
2732 line. This will be implemented, but at the moment users are advised
2733 to change themes from within Powerpoint.
2735 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
2736 This is for functions used by both Powerpoint and Docx writers.
2738 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
2740 * Add `empty_paragraphs` extension.
2742 + Deprecate `--strip-empty-paragraphs` option. Instead we now
2743 use an `empty_paragraphs` extension that can be enabled on
2744 the reader or writer. By default, disabled.
2745 + Add `Ext_empty_paragraphs` constructor to `Extension`.
2746 + Revert "Docx reader: don't strip out empty paragraphs."
2747 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
2748 + Implement `empty_paragraphs` extension in docx reader and writer,
2749 opendocument writer, HTML reader and writer.
2750 + Add tests for `empty_paragraphs` extension.
2752 * Markdown reader:
2754 + Don't parse native div as table caption (#4119).
2755 + Improved computation of column widths in pipe tables.
2756 Pipe tables with lines longer than the text width (as set
2757 by `--columns`) are now scaled to text width, with the relative
2758 widths of columns determined by the ratios between the
2759 header lines. Previously we computed column widths using
2760 the ratio of header line lengths to column width, so that
2761 tables with narrow header lines were extremely thin, which
2762 was very rarely the desired result.
2764 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
2765 as long as it's not followed by a blank line. This has been fixed at the
2766 tokenizer level.
2768 * Muse reader (Alexander Krotov):
2770 + Add test for `#disable-tables` directive in Emacs mode.
2771 + Don't allow emphasis to be preceded by letter.
2772 + Add underline support in Emacs Muse mode..
2773 + Support multiline directives in Amusewiki mode
2775 * Man writer: omit internal links (#4136). That is, just print the link
2776 text without the URL.
2778 * Markdown reader: accept processing instructions as raw HTML (#4125).
2780 * Lua filters (Albert Krewinkel):
2782 + Use script to initialize the interpreter. The file `init.lua` is
2783 used to initialize the Lua interpreter which is used in Lua filters.
2784 This gives users the option to require libraries which they want to
2785 use in all of their filters, and to extend default modules.
2786 + Fix package loading for Lua 5.1. The list of package searchers is
2787 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
2788 in Lua 5.2 and later.
2789 + Refactor lua module handling. The integration with Lua's package/module
2790 system is improved: A pandoc-specific package searcher is prepended to
2791 the searchers in `package.searchers`. The modules `pandoc` and
2792 `pandoc.mediabag` can now be loaded via `require`.
2793 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
2794 function which makes using Haskell functions as package loaders much
2795 easier.
2797 * reveal.js template: add title-slide identifier to title slide (#4120).
2798 This allows it to be styled more easily.
2800 * LaTeX template: Added support for `pagestyle` variable (#4135,
2801 Thomas Hodgson)
2803 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
2804 error on linux).
2807pandoc (2.0.4)
2809 * Add `--print-highlight-style` option. This generates a JSON version
2810 of a highlighting style, which can be saved as a `.theme` file, modified,
2811 and used with `--highlight-style` (#4106, #4096).
2813 * Add `--strip-empty-paragraphs` option. This works for any input format.
2814 It is primarily intended for use with docx and odt documents where
2815 empty paragraphs have been used for inter-paragraph spaces.
2817 * Support `--webtex` for `gfm` output.
2819 * Recognize `.muse` file extension.
2821 * Support beamer `\alert` in LaTeX reader. Closes #4091.
2823 * Docx reader: don't strip out empty paragraphs (#2252).
2824 Users who have a conversion pipeline from docx may want to consider adding
2825 `--strip-empty-paragraphs` to the command line.
2827 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
2829 * Muse reader (Alexander Krotov):
2831 + Parse markup in definition list terms.
2832 + Allow definition to end with EOF.
2833 + Make code blocks round trip.
2834 + Drop common space prefix from list items.
2835 + Add partial round trip test.
2836 + Don't interpret XML entities.
2837 + Remove `nested`.
2838 + Parse `~~` as non-breaking space in Emacs mode.
2839 + Correctly remove indentation from notes. Exactly one space is
2840 required and considered to be part of the marker.
2841 + Allow list items to be empty.
2842 + Add ordered list test.
2843 + Add more multiline definition tests.
2844 + Don't allow blockquotes within lists.
2845 + Fix reading of multiline definitions.
2846 + Add inline `<literal>` support.
2847 + Concatenate inlines of the same type
2849 * Docx writer: allow empty paragraphs (#2252).
2851 * CommonMark/gfm writer:
2853 + Use raw html for native divs/spans (#4113). This allows a pandoc
2854 markdown native div or span to be rendered in gfm using raw html tags.
2855 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
2856 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
2858 * Muse writer (Alexander Krotov):
2860 + Test that inline math conversion result is normalized.
2861 Without normalization this test produced
2862 `<em>a</em><em>b</em><em>c</em>`.
2863 + Improve inline list normalization and move to writer.
2864 + Escape hash symbol.
2865 + Escape `----` to avoid accidental horizontal rules.
2866 + Escape only `</code>` inside code tag.
2867 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
2869 * LaTeX writer:
2871 + Allow specifying just width or height for image size.
2872 Previously both needed to be specified (unless the image was
2873 being resized to be smaller than its original size).
2874 If height but not width is specified, we now set width to
2875 textwidth. If width but not height is specified, we now set
2876 height to textheight. Since we have `keepaspectratio`, this
2877 yields the desired result.
2878 + Escape `~` and `_` in code with `--listings` (#4111).
2880 * HTML writer: export `tagWithAttributes`. This is a helper allowing
2881 other writers to create single HTML tags.
2883 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
2884 converting the case as needed in LaTeX and ConTeXt writers.
2886 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
2887 so that it no longer produces empty `Para`'s as an artifact.
2889 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
2890 This gives us automatic normalization, so we don't get
2891 for example two consecutive Spaces.
2893 * Include default CSS for 'underline' class in HTML-based templates.
2895 * revealjs template: add `tex2jax` configuration for the
2896 math plugin. With the next release of reveal.js, this will
2897 fix the problem of `$`s outside of math contexts being
2898 interpreted as math delimiters (#4027).
2900 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
2902 + Add basic lua List module (#4099, #4081). The List module is
2903 automatically loaded, but not assigned to a global variable. It can be
2904 included in filters by calling `List = require 'List'`. Lists of blocks,
2905 lists of inlines, and lists of classes are now given `List` as a metatable,
2906 making working with them more convenient. E.g., it is now possible to
2907 concatenate lists of inlines using Lua's concatenation operator `..`
2908 (requires at least one of the operants to have `List` as a metatable):
2910 function Emph (emph)
2911 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
2912 return pandoc.Span(emph.content .. s)
2913 end
2915 The `List` metatable is assigned to the tables which get passed to
2916 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
2917 enables the use of the resulting objects as lists.
2918 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
2919 Pandoc and Meta elements are now pushed by calling the respective
2920 constructor functions of the pandoc Lua module. This makes serialization
2921 consistent with the way blocks and inlines are pushed to lua and allows
2922 to use List methods with the `blocks` value.
2923 + Add documentation for pandoc.List in `lua-filters.md`.
2925 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
2926 `&` (but not a valid entity) following them (#4094, #4088).
2928 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
2929 when `numberLines` is used (#4103).
2931 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
2932 requiring a leading 0 on single-digit days.
2934 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
2935 Bieg, #4095).
2937 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
2938 Previously we only mentioned `--latexmathml`, even if `-m` was
2939 used.
2941 * Changelog: fix description of lua filters in 2.0 release
2942 (Albert Krewinkel). Lua filters were initially run *after* conventional
2943 (JSON) filters. However, this was changed later to make it easier to deal
2944 with files in the mediabag. The changelog is updated to describe that
2945 feature of the 2.0 release correctly.
2947 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
2948 #4085). This reduces compile time and memory usage significantly.
2950 * `lua-filters.md`: Added tikz filter example.
2952 * Create alternative zip file for macOS binaries.
2954 * Create alternative zip file for Windows binaries.
2956 * Update INSTALL.md since we now provide zips for binaries.
2958 * Relax `http-types` dependency (Justus Sagemüller, #4084).
2960 * Add `epub.md`, `getting-started.md` to docs. These used to live in
2961 the website repo.
2963 * Add `packages` target to Makefile.
2965 * Bump bounds for binary, http-types, tasty-hunit
2967pandoc (2.0.3)
2969 * Lua filters: preload text module (Albert Krewinkel, #4077).
2970 The `text` module is preloaded in lua. The module contains some UTF-8
2971 aware string functions, implemented in Haskell. The module is loaded on
2972 request only, e.g.:
2974 text = require 'text'
2975 function Str (s)
2976 s.text = text.upper(s.text)
2977 return s
2978 end
2980 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
2981 #4071). Attribute lists are represented as associative lists in Lua. Pure
2982 associative lists are awkward to work with. A metatable is attached to
2983 attribute lists, allowing to access and use the associative list as if
2984 the attributes were stored in as normal key-value pair in table.
2985 Note that this changes the way `pairs` works on attribute lists. Instead
2986 of producing integer keys and two-element tables, the resulting iterator
2987 function now returns the key and value of those pairs. Use `ipairs` to
2988 get the old behavior. Warning: the new iteration mechanism only works if
2989 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
2991 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
2992 This fixes a bug where pandoc would stop parsing a URI with an
2993 empty attribute: for example, `&a=&b=` wolud stop at `a`.
2994 (The uri parser tries to guess which punctuation characters
2995 are part of the URI and which might be punctuation after it.)
2997 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
2999 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
3000 `WriterOptions`.
3001 + Reimplemented `isEnabled` function from `Options.hs` to accept both
3002 `ReaderOptions` and `WriterOptions`.
3003 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
3005 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
3006 behavior for `muse`. New `Ext_amuse` constructor for
3007 `Extension`. Note: this is switched on by default; for
3008 Emacs behavior, use `muse-amuse`.
3010 * Muse reader (Alexander Krotov):
3012 + Count only one space as part of list item marker.
3013 + Produce SoftBreaks on newlines. Now wrapping can be preserved
3014 with `--wrap=preserve`.
3015 + Add Text::Amuse footnote extensions. Footnote end is indicated by
3016 indentation, so footnotes can be placed anywhere in the text,
3017 not just at the end of it.
3018 + Accept Emacs Muse definition lists when `-amuse`.
3019 Emacs Muse does not require indentation.
3021 * HTML reader:
3023 + Ensure we don't produce level 0 headers (#4076), even for chapter
3024 sections in epubs. This causes problems because writers aren't set
3025 up to expect these.
3026 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
3027 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
3028 `markdown` or `html` `+tex_math_single_backslash`.
3029 + Parse div with class `line-block` as LineBlock.
3030 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
3032 * MANUAL: clarify that math extensions work with HTML.
3033 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
3034 will work with HTML as well as Markdown.
3036 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
3037 #4067).
3039 * RST reader: better support for 'container' directive (#4066).
3040 Create a div, incorporate name attribute and classes.
3042 * LaTeX reader:
3044 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
3045 `rr`. We now expand it like a macro.
3046 + Allow optional args for parbox (#4056).
3047 + Allow optional arguments on `\footnote` (#4062).
3049 * EPUB writer: Fixed path for cover image (#4069). It was previously
3050 `media/media/imagename`, and should have been `media/imagename`.
3052 * Markdown writer: fix bug with doubled footnotes in grid tables
3053 (#4061).
3055 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
3056 Otherwise we seem to get an error; biblatex wants polyglossia
3057 language to be defined.
3059 * Added examples to lua filters documentation.
3062pandoc (2.0.2)
3064 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
3065 `--mimetex`, `--jsmath`.
3067 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
3068 leading to invalid XML in default JATS output with pandoc-citeproc.
3070 * `lua-filters.md`: use real-world man page filter as example.
3072 * Add lua filter functions `walk_inline` and `walk_block`
3073 in the pandoc module, to apply filters inside particular
3074 inline and block elements.
3076 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
3077 into new internal module `Text.Pandoc.Lua.Filter`.
3079 * Markdown reader:
3081 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
3082 This brings our handling of them into alignment with CommonMark's.
3083 + Fix YAML metadata with "chomp" (`|-`). Previously if a
3084 YAML block under `|-` contained a blank line, pandoc would
3085 not parse it as metadata.
3087 * Removed `etc.` from abbreviations file. Often `etc.` ends a
3088 sentence, and we want the period to be treated as a
3089 sentence-ending period.
3091 * Fix regression with `--metadata` (#4054). Values specified with
3092 `--metadata` should replace a metadata value set in the document
3093 itself, rather than creating a list including a new value.
3095 * EPUB writer:
3097 + Fix EPUB OCF structure. #3720 had been improperly implemented.
3098 + Fix modified paths for raw HTML tags (src, poster, etc.)
3099 (#4050, #4055). This had not been updated for the new EPUB
3100 container layout, with a separate text/ subdirectory.
3101 + Fix image paths with empty `--epub-subdirectory`.
3103 * Miscellaneous code cleanup (Alexander Krotov).
3105 * Use pandoc-types 1.17.3, which adds `Walkable` instances
3106 for `[Block] Block` and `[Inline] Inline`.
3108 * Remove obsolete `stack.full.yaml` (#4052).
3110 * Change to using pandoc-citeproc 0.12.1 in binary packages.
3112 * Consolidate math output method documentation (#4049, Mauro Bieg).
3114 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
3116 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
3117 Haskell filters. This is easier and faster.
3119 * Improved `INSTALL.md`.
3121 * Update commands to extract deb archive on Linux (#4043, Salim B).
3124pandoc (2.0.1.1)
3126 * Improved fix to #3989 (parsing of HTML tags containing
3127 `>` in an attribute or comment). The previous fix (in 2.0.1) only
3128 worked in certain cases.
3130 * FB2 writer (Alexander Krotov):
3132 + Add `unrecognised` genre to `<title-info>`
3133 (Alexander Krotov). XML schema requires at least one genre.
3134 + Remove `<annotation>` from `<body>`.
3136 * CommonMark writer: fix strikethrough for `gfm` (#4038).
3138 * Use texmath 0.10, which adds support for a wider range of
3139 symbols and fixes default column alignments in MathML
3140 and OMML.
3142 * Highlighting fixes, using skylighting 0.4.3.2:
3144 + Fix invalid CSS.
3145 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
3146 + Ensure that code lines don't get duplicate identifiers (#4031).
3147 The line identifiers are built using the code block's identifier
3148 as a prefix. If the code block has null identifier, we use
3149 `cb1`, `cb2`, etc.
3151 * Added a few abbreviations to `data/abbreviations`,
3152 and sorted the list (#3984, Wandmalfarbe).
3154 * Improved support for columns in HTML writer (#4028).
3156 + Remove `width` attribute from the `div`.
3157 + Remove space between `<div class="column">` elements,
3158 since this prevents columns whose widths sum to 100%
3159 (the space takes up space).
3160 + Move as much as possible of the CSS to the template.
3161 + Ensure that all the HTML-based templates (including epub)
3162 contain the CSS for columns.
3163 + Columns default to 50% width unless they are given a width
3164 attribute. So if you want two equal-width columns, you
3165 can use a div with class `column` and no `width` attribute.
3167 * SelfContained: use `base64` for css links with media attribute (#4026).
3168 This fixes `--self-contained` with S5.
3170 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
3172 * Issue INFO, not WARNING, when a .sty file cannot be
3173 read in LaTeX reader. It is normally not an issue requiring
3174 a fix from the user if .sty files are not found.
3176 * INSTALL.md: MacOS instructions needed xar -f (adam234).
3178 * MANUAL.txt:
3180 + Clarify that --setext-headers doesn't affect gfm output (#4035).
3181 + Clarify what is needed to open and close a div in `fenced_divs`
3182 (#4039, Tristano Ajmone).
3183 + Removed reference to `default.beamer` in docs (#4024).
3184 Also added mention of other templates affecting PDF output
3185 with different settings.
3187pandoc (2.0.1)
3189 * Fixed regression in parsing of HTML comments in markdown and other
3190 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
3191 The parser stopped at the first `>` character, even if it wasn't
3192 the end of the comment.
3194 * Creole reader (Sascha Wilde):
3196 + Fix some minor typos and formatting.
3197 + Add additional test on nowiki-block after para.
3198 + Fix lists with trailing white space.
3200 * LaTeX reader: handle `%` comment right after command.
3201 For example, `\emph%`.
3203 * Markdown reader: make sure fenced div closers work in lists.
3204 Previously the following failed:
3206 ::: {.class}
3207 1. one
3208 2. two
3209 :::
3211 and you needed a blank line before the closing `:::`.
3213 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
3214 enabled, Divs will be rendered as fenced divs.
3216 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
3217 (#4016).
3219 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
3220 Note: this change may require some changes in CSS rules.
3221 `footnoteRef` has become `footnote-ref`, `titleslide` has
3222 become `title-slide`, and `footnoteBack` has become `footnote-back`.
3224 * JATS writer: Properly pass through author metadata (#4020).
3226 * FB2 writer (Alexander Krotov):
3228 + Write blocks outside of `<p>` in definitions.
3229 + Make bullet lists consistent with ordered lists, repeating
3230 the marker for the outer list rather than indenting sublists,
3231 since indentation does not work in readers.
3232 + Add new style FB2 tests.
3234 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
3235 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
3236 to 'cm'.
3238 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
3240 * Fix broken reference links in manual (Andrew Dunning, #4014)
3242 * Fixed example of slide columns structure in changelog (#4015).
3243 Also documented this feature in MANUAL.txt.
3246pandoc (2.0.0.1)
3248 * EPUB writer:
3250 + Fixed filepaths for nonstandard epub-subdirectory values.
3251 + Ensure that epub2 is recognized as a non-text format,
3252 so that a template is used.
3253 + Don't include "prefix" attribute for ibooks for epub2.
3254 It doesn't validate.
3255 + Fix stylesheet paths; previously we had an incorrect
3256 stylesheet path for the cover page and nav page.
3258 * LaTeX reader:
3260 + Insert space when needed in macro expansion (#4007).
3261 Sometimes we need to insert a space after a control sequence
3262 to prevent it merging with a following letter.
3263 + Allow unbraced arguments for macros (#4007).
3264 + Allow body of macro definition to be unbraced (#4007).
3266 * Linux package build: ensure that pandoc-citeproc is statically linked.
3268 * trypandoc: add native, ms.
3270pandoc (2.0)
3272 [new features]
3274 * New output format `ms` (groff ms). Complete support, including
3275 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
3276 texmath's new eqn writer to convert math to eqn format, so a ms file
3277 produced with this writer should be processed with `groff -ms -e` if
3278 it contains math.
3280 * New output format `jats` (Journal Article Tag Suite). This is an XML
3281 format used in archiving and publishing articles. Note that a
3282 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
3283 unless a stylesheet is specified using `--css`.
3285 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
3286 This uses bindings to GitHub's fork of cmark, so it should parse
3287 gfm exactly as GitHub does (excepting certain postprocessing
3288 steps, involving notifications, emojis, etc.). `markdown_github`
3289 has been deprecated in favor of `gfm`.
3291 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
3293 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
3294 This uses bindings to GitHub's fork of cmark. `markdown_github`
3295 has been deprecated in favor of `gfm`.
3297 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
3299 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
3301 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
3302 Note that there is a new data file, `data/vimwiki.css`, which can
3303 be used to display the HTML produced by this reader and
3304 pandoc's HTML writer in the style of vimwiki's own HTML
3305 export.
3307 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
3309 * New syntax for Divs, with `fenced_divs` extension enabled by
3310 default (#168). This gives an attractive, plain-text way to create
3311 containers for block-level content.
3313 * Added new syntax for including raw content in any output format,
3314 enabled by the `raw_attribute` extension (which is on by default
3315 for `markdown` and `multimarkdown`). The syntax is the same as
3316 for fenced code blocks or code inlines, only with `{=FORMAT}` for
3317 attributes, where `FORMAT` is the name of the output format
3318 (e.g., `ms`, `html`).
3320 * Implement multicolumn support for slide formats (#1710).
3321 The structure expected is:
3323 :::::::::::::: {.columns}
3324 ::: {.column width="40%"}
3325 contents...
3326 :::
3327 ::: {.column width="60%"}
3328 contents...
3329 :::
3330 ::::::::::::::
3332 Support has been added for beamer and all HTML slide formats.
3334 * Allows line comments in templates, beginning with `$--` (#3806).
3335 (Requires doctemplates 0.2.1.)
3337 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
3338 (Stefan Dresselhaus, #3663, #2097).
3340 * Add `--log` option to save log messages in JSON format to a file (#3392).
3342 * Add `--request-header` option, to set request headers when pandoc
3343 makes HTTP requests to fetch external resources. For example:
3344 `--request-header User-Agent:blah`.
3346 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
3347 option works like `--filter` but takes pathnames of special lua filters
3348 and uses the lua interpreter baked into pandoc, so that no external
3349 interpreter is needed. Note that lua filters are all applied before
3350 regular filters, regardless of their position on the command line.
3351 For documentation of lua filters, see `doc/lua-filters.md`.
3353 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
3354 This contains a JSON representation of `ReaderOptions`, so filters
3355 can access it.
3357 * Support creation of pdf via groff `ms` and pdfroff.
3358 `pandoc -t ms -o output.pdf input.txt`.
3360 * Support for PDF generation via HTML and `weasyprint` or `prince`
3361 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
3363 * Added `--epub-subdirectory` option (#3720). This specifies the
3364 subdirectory in the OCF container that holds the EPUB specific content.
3365 We now put all EPUB related content in an `EPUB/` subdirectory by default
3366 (later this will be configurable).
3368 ```
3369 mimetype
3370 META-INF/
3371 com.apple.ibooks.display-options.xml
3372 container.xml
3373 EPUB/ <<--configurable-->>
3374 fonts/ <<--static-->>
3375 font.otf
3376 media/ <<--static-->>
3377 cover.jpg
3378 fig1.jpg
3379 styles/ <<--static-->>
3380 stylesheet.css
3381 content.opf
3382 toc.ncx
3383 text/ <<--static-->>
3384 ch001.xhtml
3385 ```
3387 * Added `--resource-path=SEARCHPATH` command line option (#852).
3388 SEARCHPATH is separated by the usual character, depending on OS
3389 (: on unix, ; on windows). Default resource path is just working
3390 directory. However, the working directory must be explicitly
3391 specified if the `--resource-path` option is used.
3393 * Added `--abbreviations=FILE` option for custom abbreviations file
3394 (#256). Default abbreviations file (`data/abbreviations`) contains
3395 a list of strings that will be recognized by pandoc's
3396 Markdown parser as abbreviations. (A nonbreaking space will
3397 be inserted after the period, preventing a sentence space in
3398 formats like LaTeX.) Users can override the default by putting a file
3399 abbreviations in their user data directory (`~/.pandoc` on *nix).
3401 * Allow a theme file as argument to `--highlight-style`.
3402 Also include a sample, `default.theme`, in `data/`.
3404 * Allow `--syntax-definition` option for dynamic loading of syntax
3405 highlighting definitions (#3334).
3407 * Lists in `markdown` by default now use the CommonMark variable
3408 nesting rules (#3511). The indentation required for a block-level
3409 item to be included in a list item is no longer fixed, but is
3410 determined by the first line of the list item. To be included in
3411 the list item, a block must be indented to the level of the first
3412 non-space content after the list marker. Exception: if are 5 or more
3413 spaces after the list marker, then the content is interpreted as an
3414 indented code block, and continuation paragraphs must be indented
3415 two spaces beyond the end of the list marker. See the CommonMark
3416 spec for more details and examples.
3418 Documents that adhere to the four-space rule should, in most cases,
3419 be parsed the same way by the new rules. Here are some examples
3420 of texts that will be parsed differently:
3422 - a
3423 - b
3425 will be parsed as a list item with a sublist; under the four-space
3426 rule, it would be a list with two items.
3428 - a
3430 code
3432 Here we have an indented code block under the list item, even though it
3433 is only indented six spaces from the margin, because it is four spaces
3434 past the point where a continuation paragraph could begin. With the
3435 four-space rule, this would be a regular paragraph rather than a code
3436 block.
3438 - a
3440 code
3442 Here the code block will start with two spaces, whereas under
3443 the four-space rule, it would start with `code`. With the four-space
3444 rule, indented code under a list item always must be indented eight
3445 spaces from the margin, while the new rules require only that it
3446 be indented four spaces from the beginning of the first non-space
3447 text after the list marker (here, `a`).
3449 This change was motivated by a slew of bug reports from people
3450 who expected lists to work differently (#3125, #2367, #2575, #2210,
3451 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
3452 of CommonMark (now used by GitHub, for example). Those who
3453 prefer the old behavior can use `-f markdown+four_space_rule`.
3455 * Added `four_space_rule` extension. This triggers the old pandoc
3456 parsing rule for content nested under list items (the "four space
3457 rule").
3459 * Added `spaced_reference_links` extension (#2602). It allows whitespace
3460 between the two parts of a reference link: e.g.
3462 [a] [b]
3464 [b]: url
3466 This was previously enabled by default; it is now forbidden by default.
3468 * Add `space_in_atx_header` extension (#3512). This is enabled by default
3469 in pandoc and GitHub markdown but not the other flavors.
3470 This requires a space between the opening #'s and the header
3471 text in ATX headers (as CommonMark does but many other implementations
3472 do not). This is desirable to avoid falsely capturing things like
3474 #hashtag
3476 or
3478 #5
3480 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
3481 #3431).
3483 * Allow ibooks-specific metadata in epubs (#2693). You can now have
3484 the following fields in your YAML metadata, and it will be treated
3485 appropriately in the generated EPUB:
3487 ```
3488 ibooks:
3489 version: 1.3.4
3490 specified-fonts: false
3491 ipad-orientation-lock: portrait-only
3492 iphone-orientation-lock: landscape-only
3493 binding: true
3494 scroll-axis: vertical
3495 ```
3498 [behavior changes]
3500 * Reader functions no longer presuppose that CRs have been
3501 stripped from the input. (They strip CRs themselves, before
3502 parsing, to simplify the parsers.)
3504 * Added support for translations (localization) (#3559).
3505 Currently this only affects the LaTeX reader, for things
3506 like `\figurename`. Translation data files for 46 languages
3507 can be found in `data/translations`.
3509 * Make `--ascii` work with DocBook output too.
3511 * Rename `--latex-engine` to `--pdf-engine`,
3512 and `--latex-engine-opt` to `--pdf-engine-opt`.
3514 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
3515 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
3516 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
3517 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
3519 * With `--filter` R filters are now recognized, even if they are
3520 not executable (#3940, #3941, Andrie de Vries).
3522 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
3524 * Make epub an alias for epub3, not epub2.
3526 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
3527 Multiple stylesheets may be used. Stylesheets will be taken both from
3528 `--css` and from the `stylesheet` metadata field (which can contain
3529 either a file path or a list of them).
3531 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
3532 The argument was for a bridge JavaScript that used to be necessary
3533 in 2004. We have removed the script already.
3535 * `--katex` improvements. The latest version is used, and the
3536 autoload script is loaded by default.
3538 * Change MathJax CDN default since old one is shutting down (#3544).
3539 Note: The new URL requires a version number, which we'll have
3540 to update manually in subsequent pandoc releases in order to
3541 take advantage of mathjax improvements.
3543 * `--self-contained`: don't incorporate elements with `data-external="1"`
3544 (#2656). You can leave an external link as it is by adding the attribute
3545 data-external="1" to the element. Pandoc will then not try to
3546 incorporate its content when `--self-contained` is used. This is
3547 similar to a feature already supported by the EPUB writer.
3549 * Allow `--extract-media` to work with non-binary input formats
3550 (#1583, #2289). If `--extract-media` is supplied with a non-binary
3551 input format, pandoc will attempt to extract the contents of all
3552 linked images, whether in local files, data: uris, or external uris.
3553 They will be named based on the sha1 hash of the contents.
3555 * Make `papersize: a4` work regardless of the case of `a4`.
3556 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
3558 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
3560 * Underlined elements are now treated consistently by readers
3561 (#2270, hftf); they are always put in a Span with class `underline`.
3562 This allows the user to treat them differently from other emphasis,
3563 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
3564 have been changed.
3566 * Improved behavior of `auto_identifiers` when there are explicit ids
3567 (#1745). Previously only autogenerated ids were added to the list
3568 of header identifiers in state, so explicit ids weren't taken
3569 into account when generating unique identifiers. Duplicated
3570 identifiers could result. This simple fix ensures that explicitly given
3571 identifiers are also taken into account.
3573 * Use `table-of-contents` for contents of toc, make `toc` a boolean
3574 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
3575 This allows you to set `toc: true` in the metadata; this
3576 previously produced strange results in some output formats.
3577 For backwards compatibility, `toc` is still set to the
3578 toc contents. But it is recommended that you update templates
3579 to use `table-of-contents` for the toc contents and `toc`
3580 for a boolean flag.
3582 * Change behavior with binary format output to stdout.
3583 Previously, for binary formats, output to stdout was disabled
3584 unless we could detect that the output was being piped (and not
3585 sent to the terminal). Unfortunately, such detection is not
3586 possible on Windows, leaving windows users no way to pipe binary
3587 output. So we have changed the behavior in the following way:
3589 + Output to stdout is allowed when it can be determined that
3590 the output is being piped (on non-Windows platforms).
3591 + If the `-o` option is not used, binary output is never sent
3592 to stdout by default; instead, an error is raised.
3593 + If `-o -` is used, binary output is sent to stdout, regardless
3594 of whether it is being piped. This works on Windows too.
3596 * Better error behavior: uses of `error` have been replaced by
3597 raising of `PandocError`, which can be trapped and handled by the
3598 calling program.
3600 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
3601 GitHub has two Markdown modes, one for long-form documents like READMEs
3602 and one for short things like issue comments. In issue comments, a line
3603 break is treated as a hard line break. In README, wikis, etc., it is
3604 treated as a space as in regular Markdown. Since pandoc is more likely to
3605 be used to convert long-form documents from GitHub Markdown,
3606 `-hard_line_breaks` is a better default.
3608 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
3610 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
3611 Previously they would be transmitted to the template without any
3612 escaping. Note that `--M title='*foo*'` yields a different result from
3614 ---
3615 title: *foo*
3616 ---
3618 In the latter case, we have emphasis; in the former case, just
3619 a string with literal asterisks (which will be escaped
3620 in formats, like Markdown, that require it).
3622 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
3624 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
3625 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
3626 it is valid HTML5. HTML4 is not affected. This will allow us to use
3627 custom attributes in pandoc without producing invalid HTML. (With help
3628 from Wandmalfarbe, #3817.)
3630 * Plain writer: improved super/subscript rendering. We now
3631 handle more non-digit characters for which there are
3632 sub/superscripted unicode characters. When unicode
3633 sub/superscripted characters are not available, we use
3634 `_(..)` or `^(..)` (#3518).
3636 * Docbook, JATS, TEI writers: print INFO message when omitting interior
3637 header (#3750). This only applies to section headers inside list items,
3638 e.g., which were otherwise silently omitted.
3640 * Change to `--reference-links` in Markdown writer (#3701). With
3641 `--reference-location` of `section` or `block`, pandoc will now repeat
3642 references that have been used in earlier sections. The Markdown
3643 reader has also been modified, so that *exactly* repeated references
3644 do not generate a warning, only references with the same label but
3645 different targets. The idea is that, with references after every block,
3646 one might want to repeat references sometimes.
3648 * ODT/OpenDocument writer:
3650 + Support `lang` attribute (#1667).
3651 + Added support for `--toc` (#2836). Thanks to @anayrat.
3653 * Docx writer:
3655 + `lang` meta, see #1667 (Mauro Bieg, #3515).
3656 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
3657 + Use `Table` rather than `Table Normal` for table style (#3275).
3658 `Table Normal` is the default table style and can't be modified.
3659 + Pass through comments (#2994). We assume that comments are defined as
3660 parsed by the docx reader:
3662 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
3663 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
3664 have a comment <span class="comment-end" id="0"></span>on it.
3666 We assume also that the id attributes are unique and properly
3667 matched between comment-start and comment-end.
3668 + Bookmark improvements. Bookmark start/end now surrounds content rather
3669 than preceding it. Bookmarks generated for Div with id
3670 (jgm/pandoc-citeproc#205).
3671 + Add `keywords` metadata to docx document properties (Ian).
3673 * RST writer: support unknown interpreted text roles by
3674 parsing them as `Span` with `role` attributes (#3407). This
3675 way they can be manipulated in the AST.
3677 * HTML writer:
3679 + Line block: Use class instead of style attribute (#1623). We now
3680 issue `<div class="line-block">` and include a default definition
3681 for `line-block` in the default templates, instead of hard-coding a
3682 `style` on the div.
3683 + Add class `footnoteBack` to footnote back references (Timm Albers).
3684 This allows for easier CSS styling.
3685 + Render SmallCaps as span with smallcaps class (#1592), rather than
3686 using a style attribute directly. This gives the user more flexibility
3687 in styling small caps in CSS.
3688 + With reveal.js we use `data-src` instead of `src` for images for
3689 lazy loading.
3690 + Special-case `.stretch` class for images in reveal.js (#1291).
3691 Now in reveal.js, an image with class `stretch` in a paragraph
3692 by itself will stretch to fill the whole screen, with no
3693 caption or figure environment.
3695 * Added warnings for non-rendered blocks to writers.
3697 * Writers now raise an error on template failure.
3699 * When creating a PDF via LaTeX, warn if the font is missing some
3700 characters (#3742).
3702 * Remove initial check for PDF-creating program (#3819).
3703 Instead, just try running it and raise the exception if it
3704 isn't found at that point. This improves things for users of Cygwin
3705 on Windows, where the executable won't be found by `findExecutable`
3706 unless `.exe` is added. The same exception is raised as before, but
3707 at a later point.
3709 * Readers issue warning for duplicate header identifiers (#1745).
3710 Autogenerated header identifiers are given suffixes so as not to clash
3711 with previously used header identifiers. But they may still coincide with
3712 an explicit identifier that is given for a header later in the document,
3713 or with an identifier on a div, span, link, or image. We now issue
3714 a warning in this case, so users can supply an explicit identifier.
3716 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
3717 and `raw_html` extensions.
3719 * Markdown reader:
3721 + Don't allow backslash + newline to affect block structure (#3730).
3722 Note that as a result of this change, the following, which formerly
3723 produced a header with two lines separated by a line break, will
3724 now produce a header followed by a paragraph:
3726 # Hi\
3727 there
3729 This may affect some existing documents that relied on
3730 this undocumented and unintended behavior. This change makes pandoc
3731 more consistent with other Markdown implementations, and with itself
3732 (since the two-space version of a line break doesn't work inside ATX
3733 headers, and neither version works inside Setext headers).
3735 + A space between the opening # and the header is now required for
3736 pandoc and GitHub markdown (but not the other flavors). Disable
3737 the `space_in_atx_header` extension (#3512) to restore the
3738 original behavior.
3741 * Org reader (Albert Krewinkel, unless noted):
3743 + Support `table.el` tables (#3314).
3744 + Support macros (#3401).
3745 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
3746 Recognized include types are `example`, `export`, `src`, and
3747 normal org file inclusion. Advanced features like line numbers
3748 and level selection are not implemented yet.
3749 + Interpret more meta value as inlines. The values of the following
3750 meta variables are now interpreted using org-markup instead of
3751 treating them as pure strings: `keywords` (comma-separated list of
3752 inlines), `subtitle` (inline values), `nocite` (inline values, can
3753 be repeated).
3754 + Support `\n` export option (#3940). This turns all newlines in the
3755 text into hard linebreaks.
3757 * RST reader:
3759 + Improved admonition support (#223). We no longer add an
3760 `admonition` class, we just use the class for the type of admonition,
3761 `note` for example. We put the word corresponding to the label in
3762 a paragraph inside a `Div` at the beginning of the admonition with
3763 class `admonition-title`. This is about as close as we can get to
3764 RST's own output.
3765 + Initial support of `.. table` directive. This allows adding captions
3766 to tables.
3767 + Support `.. line-block` directive. This is deprecated but may still
3768 be in older documents.
3769 + Support scale and align attributes of images (#2662).
3770 + Implemented implicit internal header links (#3475).
3771 + Support RST-style citations (#853). The citations appear at the end
3772 of the document as a definition list in a special div with id
3773 `citations`. Citations link to the definitions.
3774 + Recurse into bodies of unknown directives (#3432).
3775 In most cases it's better to preserve the content than
3776 to emit it. This isn't guaranteed to have good results;
3777 it will fail spectacularly for unknown raw or verbatim directives.
3778 + Handle chained link definitions (#262). For example,
3780 .. _hello:
3781 .. _goodbye: example.com
3783 Here both `hello` and `goodbye` should link to `example.com`.
3784 + Support anchors (#262). E.g.
3786 `hello`
3788 .. _hello:
3790 paragraph
3792 This is supported by putting "paragraph" in a `Div` with id `hello`.
3793 + Support `:widths:` attribute for table directive.
3794 + Implement csv-table directive (#3533). Most attributes are supported,
3795 including `:file:` and `:url:`.
3796 + Support unknown interpreted text roles by parsing them as Span
3797 with "role" attributes (#3407). This way they can be manipulated in
3798 the AST.
3800 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
3802 * LaTeX reader:
3804 + Implemented `\graphicspath` (#736).
3805 + Properly handle column prefixes/suffixes. For example, in
3806 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
3807 each cell will be interpreted as if it has a `$`
3808 before its content and a `$` after (math mode).
3809 + Handle komascript `\dedication` (#1845). It now adds a
3810 `dedication` field to metadata. It is up to the user to supply
3811 a template that uses this variable.
3812 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
3813 `sf`, `bf` (#3488). Spans with a class are used when there is
3814 nothing better.
3815 + Expand `\newenvironment` macros (#987).
3816 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
3817 + Better support for subfigure package (#3577).
3818 A figure with two subfigures turns into two pandoc
3819 figures; the subcaptions are used and the main caption
3820 ignored, unless there are no subcaptions.
3821 + Add support for \vdots (Marc Schreiber, #3607).
3822 + Add basic support for hyphenat package (Marc Schreiber, #3603).
3823 + Add basic `\textcolor` support (Marc Schreiber).
3824 + Add support for `tabularx` environment (Marc Schreiber, #3632).
3825 + Better handling of comments inside math environments (#3113).
3826 This solves a problem with commented out `\end{eqnarray}` inside
3827 an eqnarray (among other things).
3828 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
3829 is selected (#3692). Otherwise skip with a warning. This is better
3830 than trying to parse it as text!
3831 + Add `\colorbox` support (Marc Schreiber).
3832 + Set identifiers on Spans used for `\label`.
3833 + Have `\setmainlanguage` set `lang` in metadata.
3834 + Support etoolbox's `\ifstrequal`.
3835 + Support `plainbreak`, `fancybreak` et al from the memoir class
3836 (bucklereed, #3833).
3837 + Support `\let`. Also, fix regular macros so they're expanded at the
3838 point of use, and NOT also the point of definition. `\let` macros,
3839 by contrast, are expanded at the point of definition. Added an
3840 `ExpansionPoint` field to `Macro` to track this difference.
3841 + Support simple `\def` macros. Note that we still don't support
3842 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
3843 + Support \chaptername, \partname, \abstractname, etc. (#3559,
3844 obsoletes #3560).
3845 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
3846 attributes, so they can be handled in filters (Marc Schreiber, #3639)
3847 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
3848 #3589). Acronyms are not resolved by the reader, but acronym and
3849 glossary information is put into attributes on Spans so that they
3850 can be processed in filters.
3851 + Use `Link` instead of `Span` for `\ref`. This makes more sense
3852 semantically and avoids unnecessary `Span [Link]` nestings when
3853 references are resolved.
3854 + Rudimentary support for `\hyperlink`.
3855 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
3856 + Support `\lq`, `\rq`.
3857 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
3858 (#3853).
3859 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
3860 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
3861 + Support `\k` ogonek accent.
3862 + Improve handling of accents. Handle ogonek, and fall back correctly
3863 with forms like `\"{}`.
3864 + Better support for ogonek accents.
3865 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
3866 + Support for `xspace` (Marc Schreiber, #3797).
3867 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
3868 and `\figurename`.
3869 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
3870 level 0 headers, and parts as level -1 headers. After parsing, we
3871 check for the lowest header level, and if it's less than 1 we bump
3872 everything up so that 1 is the lowest header level. So `\part` will
3873 always produce a header; no command-line options are needed.
3874 + Add block version of `\textcolor` (Marc Schreiber).
3875 + `\textcolor` works as inline and block command (Marc Schreiber).
3876 + `\textcolor` will be parse as span at the beginning of a paragraph
3877 (Marc Schreiber).
3878 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
3879 + Improved handling of include files in LaTeX reader (#3971).
3880 Previously `\include` wouldn't work if the included file
3881 contained, e.g., a begin without a matching end.
3882 + Support `\expandafter` (#3983).
3883 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
3884 as a synonym for `\newcommand`.
3885 + Handle `\lettrine` (Mauro Bieg).
3887 * Math improvements due to updates in texmath:
3889 + Improved handling of accents and upper/lower delimiters.
3890 + Support for output in GNU eqn format (used with *roff).
3891 + Allow `\boldsymbol` + a token without braces, and similarly
3892 with other styling commands.
3893 + Improve parsing of `\mathop` to allow multi-character operator names.
3894 + Add thin space after math operators when "faking it with
3895 unicode."
3897 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
3898 instance for `a -> [a]` (pandoc-types). Note that behavior
3899 will be slightly different, since `bottomUp`'s treatment of
3900 a function `[a] -> [a]` is to apply it to each sublist of a
3901 list, while walk applies it only to maximal sublists.
3902 Usually the latter behavior is what is wanted, and the
3903 former can be simulated when needed. But there may be
3904 existing filters that need to be rewritten in light of the
3905 new behavior. Performance should be improved.
3907 * There are some changes to syntax highlighting due to revisions
3908 in the `skylighting` library:
3910 + Support for `powershell` has been added, and many syntax
3911 definitions have been updated.
3912 + Background colors have been added to the `kate` style.
3913 + The way highlighted code blocks are formatted in HTML has
3914 been changed (David Baynard), in ways that may require
3915 changes in hard-coded CSS affecting highlighting.
3916 (If you haven't included hard-coded highlighting CSS in
3917 your template, you needn't change anything.)
3920 [API changes]
3922 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
3923 This contains definitions of the `PandocMonad` typeclass, the
3924 `PandocIO` and `PandocPure` monads, and associated functions.
3926 * Changed types of all writers and readers.
3928 + We now use `Text` instead of `String` in the interface (#3731).
3929 (We have not yet changed the internals of most readers to work
3930 with `Text`, but making this change in the API now opens up a
3931 path to doing that.)
3932 + The result is now of form `m a` with constraint `PandocMonad m`.
3933 Readers and writers can be combined to form monadic values which
3934 can be run using either `runIO` or `runPure`. If `runIO` is used,
3935 then both readers and writers will be able to do IO when needed
3936 (for include files, for example); if `runPure` is used,
3937 then the functions are pure and will not touch IO.
3938 + Where previously you used
3939 `writeRST def (readMarkdown def "[foo](url)")`, now you
3940 would use
3941 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
3943 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
3944 contains reader helper functions formerly defined in the
3945 top-level `Text.Pandoc` module.
3947 + Changed `StringReader` -> `TextReader`.
3948 + `getReader` now returns a pair of a reader and
3949 `Extensions`, instead of building the extensions into the
3950 reader (#3659). The calling code must explicitly set
3951 `readerExtensions` using the `Extensions` returned. The
3952 point of the change is to make it possible for the calling
3953 code to determine what extensions are being used.
3955 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
3956 This contains writer helper functions formerly defined in the
3957 top-level `Text.Pandoc` module.
3959 + Changed `StringWriter` -> `TextWriter`.
3960 + `getWriter` now returns a pair of a reader and
3961 `Extensions`, instead of building the extensions into the
3962 reader (#3659). The calling code must explicitly set
3963 `readerExtensions` using the `Extensions` returned. The
3964 point of the change is to make it possible for the calling
3965 code to determine what extensions are being used.
3967 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
3968 #3514).
3970 * New module `Text.Pandoc.App`. This abstracts out the functionality
3971 of the command line program (`convertWithOpts`), so it can be reproduced
3972 e.g. in a desktop or web application. Instead of exiting, we throw errors
3973 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
3974 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
3975 The module also exports some utility functions for parsing options
3976 and running filters.
3978 * New module `Text.Pandoc.Logging` (exported module) (#3392).
3979 This now contains the `Verbosity` definition previously in
3980 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
3981 eventually be used instead of raw strings for warnings. This will enable
3982 us, among other things, to provide machine-readable warnings if desired.
3983 Include ToJSON instance and showLogMessage. This gives us the possibility
3984 of both machine-readable and human-readable output for log messages.
3986 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
3988 * New module `Text.Pandoc.Translations`, exporting `Term`,
3989 `Translations`, `readTranslations`.
3991 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
3992 `TokType`, `Line`, `Column`.
3994 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
3996 * Expose some previously private modules (#3260). These are often
3997 helpful to people writing their own reader or writer modules:
3999 + `Text.Pandoc.Writers.Shared`
4000 + `Text.Pandoc.Parsing`
4001 + `Text.Pandoc.Asciify`
4002 + `Text.Pandoc.Emoji`
4003 + `Text.Pandoc.ImageSize`
4004 + `Text.Pandoc.Highlighting`
4006 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
4007 Extension parsing and processing functions were defined in the top-level
4008 `Text.Pandoc` module. These functions are moved to the Extensions
4009 submodule as to enable reuse in other submodules.
4011 * Add `Ext_raw_attribute` constructor for `Extension`.
4013 * Add `Ext_fenced_divs` constructor for `Extension'.
4015 * Add `Ext_four_space_rule` constructor in `Extension`.
4017 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
4019 * Add `Monoid` instance for `Extensions`.
4021 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
4023 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
4025 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
4027 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
4029 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
4031 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
4033 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
4035 * Export `setVerbosity` from `Text.Pandoc`.
4037 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
4039 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
4041 * `Text.Pandoc.UTF8`:
4043 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
4044 Define `toString`, `toStringLazy` in terms of them.
4045 + Add new functions parameterized on `Newline`: `writeFileWith`,
4046 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
4048 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
4050 * `Text.Pandoc.Highlighting`:
4052 + `highlighting` now returns an Either rather than Maybe.
4053 This allows us to display error information returned by the skylighting
4054 library. Display a warning if the highlighting library throws an error.
4055 + Add parameter for `SyntaxMap` to `highlight`.
4057 * `Text.Pandoc.Writers.Math`:
4059 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
4060 we only need to update these in one place.
4062 * `Text.Pandoc.SelfContained`:
4064 + Removed `WriterOptions` parameter from `makeSelfContained`.
4065 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
4066 the need to pass MediaBag around and improves exceptions. It also
4067 opens up the possibility of using makeSelfContained purely.
4068 + Export `makeDataURI`.
4070 * `Text.Pandoc.ImageSize`:
4072 + Export `lengthToDim`, new function `scaleDimension`.
4073 + Export `inEm` from ImageSize (#3450).
4074 + Change `showFl` and `show` instance for `Dimension` so
4075 extra decimal places are omitted.
4076 + Added `Em` as a constructor of `Dimension`.
4077 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
4079 * `Text.Pandoc.Templates`:
4081 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
4082 and raises a proper `PandocTemplateError` if there are problems, rather
4083 than failing with uncatchable `error`.
4084 + Change signature of `getDefaultTemplate`. Now it runs in any instance
4085 of `PandocMonad`, and returns a `String` rather than an `Either` value.
4086 And it no longer takes a `datadir` parameter, since this can be
4087 retrieved from `CommonState`.
4089 * `Text.Pandoc.Options`:
4091 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
4092 The EPUB writer now takes its EPUB subdirectory from this option.
4093 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
4094 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
4095 + Add `writerSyntaxMap` to `WriterOptions`.
4096 + Removed `writerEpubStylesheet` from `WriterOptions`.
4097 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
4098 in `CommonState` in `PandocMonad` instances. (And thus it can be used
4099 by readers too.)
4100 + Changed `writerEpubMetadata` to a `Maybe String`.
4101 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
4102 the `latex_macros` reader extension.
4103 + FromJSON/ToJSON instances for `ReaderOptions`.
4104 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
4105 one string (for the KaTeX base URL), rather than two.
4106 + Removed `writerSourceURL` from `WriterOptions`. We now use
4107 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
4109 * `Text.Pandoc.Shared`:
4111 + `tabFilter` now takes a `Text`, not `String`.
4112 + `openURL`: Changed type from an Either. Now it will just raise
4113 an exception to be trapped later.
4114 + Remove `normalizeSpaces` (#1530).
4115 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
4116 + Export a new function `crFilter`.
4117 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
4118 + Provide custom `isURI` that rejects unknown schemes.
4119 (Albert Krewinkel, #2713). We also export the set of known
4120 `schemes`. The new function replaces the function of the same name
4121 from `Network.URI`, as the latter did not check whether a scheme is
4122 well-known. All official IANA schemes (as of 2017-05-22) are
4123 included in the set of known schemes. The four non-official schemes
4124 `doi`, `isbn`, `javascript`, and `pmid` are kept.
4125 + Remove `err`.
4126 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
4127 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
4128 where they are defined in terms of `PandocMonad`
4129 primitives and have different signatures.
4130 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
4131 + Add `underlineSpan`.
4133 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
4135 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
4136 With the new API one can simply use `getLog` after running
4137 the reader.
4139 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
4140 and `rawLaTeXBlock`. (Both now return a `String`, and they are
4141 polymorphic in state.)
4144 [bug fixes and under-the-hood improvements]
4146 * TEI writer: Added identifiers on `<div>` elements.
4148 * DokuWiki reader: Better handling for code block in list item (#3824).
4150 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
4152 * ZimWiki writer: Removed internal formatting from note and table cells,
4153 because ZimWiki does not support it (Alex Ivkin, #3446).
4155 * MediaWiki writer:
4157 + Updated list of syntax highlighting languages (#3461).
4158 Now `r` gets you `<source>` rather than `<code>` (among others).
4159 + Add display attribute on `<math>` tags (#3452). This allows display
4160 math to be rendered properly.
4161 + Remove newline before `</ref>` (#2652).
4162 + Don't softbreak lines inside list items (#3531).
4164 * Org writer:
4166 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
4167 + Add unit tests (Alexander Krotov).
4168 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
4169 + Do not strip `#` from Org anchor links (Alexander Krotov).
4171 * CommonMark writer:
4173 + Avoid excess blank lines at end of output.
4174 + Prefer pipe tables to HTML tables even if it means losing relative
4175 column width information (#3734).
4176 + Support table, strikethrough extensions, when enabled (as with gfm).
4177 Note that we bypass the commonmark writer from cmark and construct our
4178 own pipe tables, with better results.
4179 + Properly support `--wrap=none`.
4180 + Use smallcaps class for `SmallCaps` (#1592).
4181 + Omit "fig:" prefix in image titles. This is used internally to
4182 indicate internal figures.
4184 * RST writer:
4186 + Properly handle table captions.
4187 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
4188 + Implemented `+/-smart` and improved escaping with `+smart`.
4189 + Add empty comments when needed to avoid including a blockquote
4190 in the indented content of a preceding block (#3675).
4191 + Improve grid table output, fix bug with empty rows (#3516).
4192 Uses the new `gridTable` in Writers.Shared, which is here
4193 improved to better handle 0-width cells.
4194 + Remove space at beginning/end of RST code span (#3496). Otherwise
4195 we get invalid RST. There seems to be no way to escape the space.
4196 + Add header anchors when header has non-standard id (#3937).
4197 + Correctly handle inline code containing backticks, using a `:literal:`
4198 role (#3974).
4199 + Don't backslash-escape word-internal punctuation (#3978).
4201 * Markdown writer:
4203 + Don't include variables in metadata blocks. Previously variables set
4204 on the command line were included in e.g. YAML metadata, contrary to
4205 documentation and intentions.
4206 + Improved escaping with `+smart`.
4207 + Fixed grid tables embedded in grid tables (#2834).
4208 + Use span with class 'smallcaps' for SmallCaps, instead of a style
4209 attribute as before (#1592).
4210 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
4211 extension is enabled (#3454). Otherwise in a document starting with
4212 a literal `%` the first line is wrongly interpreted as a title.
4213 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
4214 properly escape things that would otherwise start ordered lists,
4215 such as
4217 ---
4218 title: 1. inline
4219 ...
4220 + Better handling of tables with empty columns (#3337). We now
4221 calculate the number of columns based on the longest row (or the
4222 length of aligns or widths).
4223 + Escape unordered list markers at beginning of paragraph (#3497), to
4224 avoid false interpretation as a list.
4225 + Escape `|` appropriately.
4226 + Ensure space before list at top level (#3487).
4227 + Avoid spurious blanklines at end of document after tables and list,
4228 for example.
4229 + Fixed bugs in simple/multiline list output (#3384).
4230 Previously we got overlong lists with `--wrap=none`. This is fixed.
4231 Previously a multiline list could become a simple list (and would
4232 always become one with `--wrap=none`).
4233 + Don't emit a simple table if `simple_tables` disabled (#3529).
4234 + Case-insensitive reference links (David A Roberts, #3616).
4235 Ensure that we do not generate reference links whose labels differ only
4236 by case. Also allow implicit reference links when the link
4237 text and label are identical up to case.
4238 + Put space before reference link definitions (Mauro Bieg, #3630).
4239 + Better escaping for links (David A. Roberts, #3619). Previously the
4240 Markdown writer would sometimes create links where there were none
4241 in the source. This is now avoided by selectively escaping bracket
4242 characters when they occur in a place where a link might be created.
4243 + Added missing `\n` (David A. Roberts, #3647).
4244 + Fixed duplicated reference links with `--reference-links`
4245 and `--reference-location=section` (#3674). Also ensure that there
4246 are no empty link references `[]`.
4247 + Avoid inline surround-marking with empty content (#3715).
4248 E.g. we don't want `<strong></strong>` to become `****`.
4249 Similarly for emphasis, super/subscript, strikeout.
4250 + Don't allow soft break in header (#3736).
4251 + Make sure `plain`, `markdown_github`, etc. work for raw.
4252 Previously only `markdown` worked. Note: currently a raw block labeled
4253 `markdown_github` will be printed for any `markdown` format.
4254 + Ensure that `+` and `-` are escaped properly so they don't cause
4255 spurious lists (#3773). Previously they were only
4256 if succeeded by a space, not if they were at end of line.
4257 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
4258 even if the table has relative width information (#3734).
4259 + Markdown writer: don't crash on `Str ""`.
4260 + Make `Span` with null attribute transparent. That is, we don't use
4261 brackets or `<span>` tags to mark spans when there are no attributes;
4262 we simply output the contents.
4263 + Escape pipe characters when `pipe_tables` enabled (#3887).
4264 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
4265 we backslash escape these. Otherwise we use entities as before.
4266 + When writing plain, don't use `&nbsp;` to separate list and indented
4267 code. There's no need for it in this context, since this isn't to be
4268 interpreted using Markdown rules.
4269 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
4270 HTML links containing classes originally now preserve them when using
4271 JavaScript email obfuscation.
4272 + Render `SmallCaps` as a native span when `native_spans` are enabled.
4273 + Always write attributes with `bracketed_spans` (d-dorazio).
4275 * Man writer:
4277 + Fix handling of nested font commands (#3568). Previously pandoc emitted
4278 incorrect markup for bold + italic, for example, or bold + code.
4279 + Avoid error for definition lists with no definitions (#3832).
4281 * DocBook writer:
4283 + Fix internal links with `writerIdentifierPrefix opt`
4284 (#3397, Mauro Bieg).
4286 * Docx writer:
4288 + Don't include bookmarks on headers unless non-null id (#3476).
4289 + Support 9 levels of headers (#1642).
4290 + Allow 9 list levels (#3519).
4291 + Don't take `distArchive` from datadir (#3322). The docx writer takes
4292 components from the distribution's version of `reference.docx` when it
4293 can't find them in a user's custom `reference.docx`. Previously, we
4294 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
4295 to be used as the distribution's reference.docx. This led to a
4296 bizarre situation where pandoc would produce a good docx using
4297 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
4298 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
4299 + Fixed handling of soft hyphen (0173) (#3691).
4300 + Better handling of keywords (#3719).
4301 + Cleaner code for handling dir and style attributes for `Div`.
4302 + Use `Set` for dynamic styles to avoid duplicates.
4303 + Removed redundant element from data/docx/word/numbering.xml.
4304 The elements we need are generated when the document is
4305 compiled; this didn't do anything.
4306 + Activate `evenAndOddHeaders` from reference docx (#3901,
4307 Augustín Martín Barbero).
4309 * ODT/OpenDocument writer:
4311 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
4312 + Use more widely available bullet characters (#1400). The old
4313 characters weren't available in some font sets. These seem to work
4314 well on Windows and Linux versions of LibreOffice.
4315 + Wider labels for lists (#2421). This avoids overly narrow labels for
4316 ordered lists with `()` delimiters. However, arguably it creates
4317 overly wide labels for bullets. Also, lists now start flush with
4318 the margin, rather than indented.
4319 + Fixed dropped elements in some ordered lists (#2434).
4321 * FB2 writer:
4323 + Don't render `RawBlock` as code.
4324 + Don't fail with an error on interior headers (e.g. in list) (#3750).
4325 Instead, omit them with an INFO message.
4326 + Add support for "lang" metadata (Alexander Krotov, #3625).
4327 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
4328 produced one paragraph with `<empty-line/>` elements, which are not
4329 allowed inside `<p>` according to FB2 schema.
4330 + Replace `concatMap` with `cMap` (Alexander Krotov).
4331 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
4332 Krotov, #4004)
4334 * HTML writer:
4336 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
4337 + Render raw inline environments when `--mathjax` used (#3816).
4338 We previously did this only with raw blocks, on the assumption
4339 that math environments would always be raw blocks. This has changed
4340 since we now parse them as inline environments.
4341 + Ensure we don't get two style attributes for width and height.
4342 + Report when not rendering raw inline/block.
4343 + Issue warning if no title specified and template used (#3473).
4344 + Info message if `lang` is unspecified (#3486).
4345 + Removed unused parameter in `dimensionsToAttributeList`.
4346 + Avoid two class attributes when adding `uri` class (#3716).
4347 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
4348 Bieg).
4349 + Use revealjs's math plugin for mathjax (#3743). This is a thin
4350 wrapper around mathjax that makes math look better on revealjs.
4351 + Slidy: use h1 for all slides, even if they were originally
4352 level 2 headers (#3566). Otherwise the built-in table of contents
4353 in Slidy breaks.
4355 * LaTeX writer:
4357 + Don't render LaTeX images with data: URIs (#3636). Note that
4358 `--extract-media` can be used when the input contains data: URIs.
4359 + Make highlighted code blocks work in footnotes (Timm Albers).
4360 + Don't use figure inside table cell (#3836).
4361 + Use proper code for list enumerators (#3891). This should fix problems
4362 with lists that don't use arabic numerals.
4363 + Always add hypertarget when there's a non-empty identifier (#2719).
4364 Previously the hypertargets were only added when there was actually
4365 a link to that identifier.
4366 + Use `%` after hypertarget before code block.
4367 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
4368 fixes formatting problems in beamer citations).
4369 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
4370 of item disappear or are misplaced. Use `\texttt` instead.
4371 + Fix problem with escaping in `lstinline` (#1629). Previously the
4372 LaTeX writer created invalid LaTeX when `--listings` was specified and
4373 a code span occurred inside emphasis or another construction.
4374 + Fix error with line breaks after empty content (#2874). LaTeX
4375 requires something before a line break, so we insert a `~` if no
4376 printable content has yet been emitted.
4377 + Use BCP47 parser.
4378 + Fixed detection of otherlangs (#3770). We weren't recursing into
4379 inline contexts.
4380 + Handle language in inline code with `--listings` (#3422).
4381 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
4382 The textcomp package allows pdfLaTeX to parse `€` directly, making the
4383 `\euro` command unneeded.
4384 + Fixed footnotes in table captions (#2378). Note that if the table has
4385 a first page header and a continuation page header, the notes will
4386 appear only on the first occurrence of the header.
4387 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
4388 Previously you could link to a header above or below slide level but
4389 not *to* slide level. This commit changes that. Hypertargets are
4390 inserted inside frame titles; technically the reference is to just
4391 after the title, but in normal use (where slides are viewed full
4392 screen in a slide show), this does not matter.
4393 + Remove `\strut` at beginning of table cells (#3436). This fixes a
4394 problem with alignment of lists in table cells. The `\strut` at the
4395 end seems to be enough to avoid the too-close spacing that motivated
4396 addition of the strut in #1573.
4397 + Add partial siunitx Support (Marc Schreiber, #3588).
4399 * ConTeXt writer:
4401 + Refactored to use BCP47 module.
4402 + Remove unnecessary `$` (Alexander Krotov, #3482).
4403 + Use header identifiers for chapters (#3968).
4405 * EPUB writer:
4407 + `title_page.xhtml` is now put in `text/`.
4408 + Don't strip formatting in TOC (#1611).
4410 * Textile reader:
4412 + Fix bug for certain links in table cells (#3667).
4413 + Allow 'pre' code in list item (#3916).
4415 * HTML reader:
4417 + Added warnings for ignored material (#3392).
4418 + Better sanity checks to avoid parsing unintended things as
4419 raw HTML in the Markdown reader (#3257).
4420 + Revise treatment of `li` with `id` attribute (#3596). Previously we
4421 always added an empty div before the list item, but this created
4422 problems with spacing in tight lists. Now we do this: If the list
4423 item contents begin with a `Plain` block, we modify the `Plain`
4424 block by adding a `Span` around its contents. Otherwise, we add a
4425 `Div` around the contents of the list item (instead of adding an
4426 empty `Div` to the beginning, as before).
4427 + Add `details` tag to list of block tags (#3694).
4428 + Removed `button` from block tag list (#3717). It is already in the
4429 `eitherBlockOrInlineTag` list, and should be both places.
4430 + Use `Set`s instead of lists for block tag lookup.
4431 + Rewrote to use `Text` throughout. Effect on memory usage is modest
4432 (< 10%).
4433 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
4434 #3765).
4435 + Ensure that paragraphs are closed properly when the parent block
4436 element closes, even without `</p>` (#3794).
4437 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
4438 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
4439 `<main>` closes `<p>` and behaves like a block element generally
4440 + Support column alignments (#1881). These can be set either
4441 with a `width` attribute or with `text-width` in a `style` attribute.
4442 + Modified state type to be an instance of `HasLogMessages`, so
4443 `registerHeader` can issue warnings.
4444 + `</td>` or `</th>` should close any open block tag (#3991).
4445 + `<td>` should close an open `<th>` or `<td>`.
4446 + `htmlTag` improvements (#3989). We previously failed on cases
4447 where an attribute contained a `>` character. This patch fixes the
4448 bug, which especially affects raw HTML in Markdown.
4450 * Txt2Tags reader:
4452 + Newline is not indentation (Alexander Krotov).
4454 * MediaWiki reader:
4456 + Allow extra hyphens after `|-` in tables (#2649).
4457 + Allow blank line after table start (#2649).
4458 + Fixed more table issues (#2649).
4459 + Ensure that list starts begin at left margin (#2606). Including when
4460 they're in tables or other list items.
4461 + Make smart double quotes depend on `smart` extension (#3585).
4462 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
4463 + Modified state type to be an instance of `HasLogMessages`, so
4464 `registerHeader` can issue warnings.
4466 * TWiki reader (Alexander Krotov):
4468 + Remove unnecessary `$` (#3597).
4469 + Simplify `linkText` (#3605).
4471 * EPUB reader:
4473 + Minor refactoring, avoiding explicit MediaBag handling.
4474 This all works behind the scenes in CommonState plumbing.
4476 * Docx reader:
4478 + Don't drop smartTag contents (#2242).
4479 + Handle local namespace declarations (#3365). Previously we didn't
4480 recognize math, for example, when the xmlns declaration occurred on
4481 the element and not the root.
4482 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
4483 does the work of `normalizeSpaces` as well, so we avoid the need for
4484 that function here.
4485 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
4486 paragraphs styled with "HeadingN" as "nth-level header." But if a
4487 document has a custom style named "Heading0", this will produce a
4488 0-level header, which shouldn't exist. We only parse this style
4489 if N>0. Otherwise we treat it as a normal style name, and
4490 follow its dependencies, if any.
4491 + Add tests for avoiding zero-level header (Jesse Rosenthal).
4493 * ODT reader:
4495 + Replaced `collectRights` with Rights from `Data.Either`.
4496 + Remove dead code (Albert Krewinkel).
4498 * Org reader (Albert Krewinkel, unless noted).
4500 + Don't allow tables inside list items (John MacFarlane, #3499).
4501 + Disallow tables on list marker lines (#3499).
4502 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
4503 + Allow emphasized text to be followed by `[` (#3577).
4504 + Handle line numbering switch for src blocks.
4505 The line-numbering switch that can be given to source blocks (`-n` with
4506 an start number as an optional parameter) is parsed and translated to a
4507 class/key-value combination used by highlighting and other readers and
4508 writers.
4509 + Stop adding rundoc prefix to src params. Source block parameter names
4510 are no longer prefixed with `rundoc`. This was intended to simplify
4511 working with the rundoc project, a babel runner. However, the rundoc
4512 project is unmaintained, and adding those markers is not the reader's
4513 job anyway. The original language that is specified for a source
4514 element is now retained as the `data-org-language` attribute and only
4515 added if it differs from the translated language.
4516 + Allow multi-word arguments to src block params (#3477). The reader now
4517 correctly parses src block parameter list even if parameter arguments
4518 contain multiple words.
4519 + Avoid creating `nullMeta` by applying `setMeta` directly
4520 (Alexander Krotov).
4521 + Replace `sequence . map` with `mapM`.
4522 + Fix smart parsing behavior. Parsing of smart quotes and special
4523 characters can either be enabled via the `smart` language extension or
4524 the `'` and `-` export options. Smart parsing is active if either the
4525 extension or export option is enabled. Only smart parsing of special
4526 characters (like ellipses and en and em dashes) is enabled by default,
4527 while smart quotes are disabled. Previously, all smart parsing was
4528 disabled unless the language extension was enabled.
4529 + Subject full doc tree to headline transformations (Albert Krewinkel,
4530 #3695). Emacs parses org documents into a tree structure, which is
4531 then post-processed during exporting. The reader is changed to do the
4532 same, turning the document into a single tree of headlines starting
4533 at level 0.
4534 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
4535 cite keys included special characters also at the end. This caused
4536 problems when citations occur right before colons or at the end of
4537 a sentence. With this change, all non alphanumeric characters at
4538 the end of a cite key are ignored. This also adds `,` to the list
4539 of special characters that are legal in cite keys to better mirror
4540 the behaviour of org-export.
4541 + Fix module names in haddock comments. Copy-pasting had lead to
4542 haddock module descriptions containing the wrong module names.
4543 + Recognize babel result blocks with attributes (#3706). Babel
4544 result blocks can have block attributes like captions and names.
4545 Result blocks with attributes were not recognized and were parsed
4546 as normal blocks without attributes.
4547 + Include tags in headlines. The Emacs default is to include tags in the
4548 headline when exporting. Instead of just empty spans, which contain the
4549 tag name as attribute, tags are rendered as small caps and wrapped in
4550 those spans. Non-breaking spaces serve as separators for multiple tags.
4551 + Respect export option for tags (#3713). Tags are appended to
4552 headlines by default, but will be omitted when the `tags` export option
4553 is set to nil.
4554 + Use `tag-name` attribute instead of `data-tag-name`.
4555 + Use `org-language` attribute rather than `data-org-language`.
4556 + Modified state type to be an instance of `HasLogMessages`, so
4557 `registerHeader` can issue warnings.
4558 + End footnotes after two blank lines. Footnotes can not only be
4559 terminated by the start of a new footnote or a header, but also by two
4560 consecutive blank lines.
4561 + Update emphasis border chars (#3933). The org reader was updated to
4562 match current org-mode behavior: the set of characters which are
4563 acceptable to occur as the first or last character in an org emphasis
4564 have been changed and now allows all non-whitespace chars at the
4565 inner border of emphasized text (see `org-emphasis-regexp-components`).
4567 * RST reader:
4569 + Fixed small bug in list parsing (#3432). Previously the parser didn't
4570 handle properly this case:
4572 * - a
4573 - b
4574 * - c
4575 - d
4576 + Handle multiline cells in simple tables (#1166).
4577 + Parse list table directive (Keiichiro Shikano, #3432).
4578 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
4579 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
4580 + Reorganize block parsers for ~20% faster parsing.
4581 + Fixed `..include::` directive (#3880).
4582 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
4583 Previously pandoc would sometimes combine two line blocks separated
4584 by blanks, and ignore trailing blank lines within the line block.
4585 + Fix indirect hyperlink targets (#512).
4587 * Markdown reader:
4589 + Allow attributes in reference links to start on next line (#3674).
4590 + Parse YAML metadata in a context that sees footnotes defined in
4591 the body of the document (#1279).
4592 + When splitting pipe table cells, skip tex math (#3481).
4593 You might have a `|` character inside math. (Or for that matter
4594 something that the parser might mistake for raw HTML.)
4595 + Treat span with class `smallcaps` as SmallCaps.
4596 This allows users to specify small caps in Markdown this way:
4597 `[my text]{.smallcaps}` (#1592).
4598 + Fixed internal header links (#2397).
4599 This patch also adds `shortcut_reference_links` to the list
4600 of mmd extensions.
4601 + Treat certain environments as inline
4602 when they occur without space surrounding them (#3309, #2171).
4603 E.g. equation, math. This avoids incorrect vertical space
4604 around equations.
4605 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
4606 + Allow latex macro definitions indented 1-3 spaces.
4607 Previously they only worked if nonindented.
4608 + Improved parsing of indented raw HTML blocks (#1841).
4609 Previously we inadvertently interpreted indented HTML as
4610 code blocks. This was a regression. We now seek to determine the
4611 indentation level of the contents of an HTML block, and (optionally)
4612 skip that much indentation. As a side effect, indentation may be
4613 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
4614 used. This is better than having things interpreted as indented
4615 code blocks.
4616 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
4617 + Warn for notes defined but not used (#1718).
4618 + Use `anyLineNewline` (Alexander Krotov).
4619 + Interpret YAML metadata as Inlines when possible (#3755). If
4620 the metadata field is all on one line, we try to interpret it as
4621 Inlines, and only try parsing as Blocks if that fails. If it
4622 extends over one line (including possibly the `|` or `>` character
4623 signaling an indented block), then we parse as Blocks. This was
4624 motivated by some German users finding that `date: '22. Juin 2017'`
4625 got parsed as an ordered list.
4626 + Fixed spurious parsing as citation as reference def (#3840).
4627 We now disallow reference keys starting with `@` if the
4628 `citations` extension is enabled.
4629 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
4630 Previously only `[-@roe]` (with brackets) was recognized as
4631 suppress-author, and `-@roe` was treated the same as `@roe`.
4632 + Fixed parsing of fenced code after list when there is no intervening
4633 blank line (#3733).
4634 + Allow raw latex commands starting with `\start` (#3558). Previously
4635 these weren't allowed because they were interpreted as starting
4636 ConTeXt environments, even without a corresponding `\stop`...
4637 + Added `inlines`, `inlines1`.
4638 + Require nonempty alt text for `implicit_figures` (#2844).
4639 A figure with an empty caption doesn't make sense.
4640 + Removed texmath macro material; now all this is handled
4641 in the LaTeX reader functions.
4642 + Fixed bug with indented code following raw LaTeX (#3947).
4644 * LaTeX reader:
4646 + Rewrote LaTeX reader with proper tokenization (#1390,
4647 #2118, #3236, #3779, #934, #982). This rewrite is primarily
4648 motivated by the need to get macros working properly. A side benefit
4649 is that the reader is significantly faster. We now tokenize the
4650 input text, then parse the token stream. Macros modify the token
4651 stream, so they should now be effective in any context, including
4652 math. Thus, we no longer need the clunky macro processing
4653 capacities of texmath.
4654 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
4655 + Allow `\newcommand\foo{blah}` without braces.
4656 + Support `\lstinputlisting` (#2116).
4657 + Issue warnings when skipping unknown latex commands (#3392).
4658 + Include contents of `\parbox`.
4659 + Allow `\hspace` and `\vspace` to count as raw block or inline.
4660 Previously we would refuse to parse anything as raw inline if
4661 it was in the `blockCommands` list. Now we allow exceptions
4662 if they're listed under ignoreInlines in inlineCommands.
4663 This should make it easier e.g. to include an `\hspace`
4664 between two side-by-side raw LaTeX tables.
4665 + Don't drop contents of `\hypertarget`.
4666 + Handle spaces before `\cite` arguments.
4667 + Allow newpage, clearpage, pagebreak in inline contexts as well as
4668 block contexts (#3494).
4669 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
4670 + Use `pMacroDefinition` in macro (for more direct parsing).
4671 Note that this means that `macro` will now parse one
4672 macro at a time, rather than parsing a whole group together.
4673 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
4674 commands are parsed as raw if `+raw_tex`; otherwise, their argument
4675 is parsed as a bracketed string.
4676 + Don't crash on empty `enumerate` environment (#3707).
4677 + Handle escaped `&` inside table cell (#3708).
4678 + Handle block structure inside table cells (#3709). `minipage` is no
4679 longer required.
4680 + Handle some width specifiers on table columns (#3709). Currently
4681 we only handle the form `0.9\linewidth`. Anything else would have
4682 to be converted to a percentage, using some kind arbitrary assumptions
4683 about line widths.
4684 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
4685 LaTeX reader's treatment of raw commands, but it also affects the
4686 Markdown reader.
4687 + Fixed regression with starred environment names (#3803).
4688 + Handle optional args in raw `\titleformat` (#3804).
4689 + Improved heuristic for raw block/inline. An unknown command at the
4690 beginning of the line that could be either block or inline is
4691 treated as block if we have a sequence of block commands followed by
4692 a newline or a `\startXXX` command (which might start a raw ConTeXt
4693 environment).
4694 + Don't remove macro definitions from the output, even if
4695 `Ext_latex_macros` is set, so that macros will be applied.
4696 Since they're only applied to math in Markdown, removing the macros
4697 can have bad effects. Even for math macros, keeping them should be
4698 harmless.
4699 + Removed `macro`. It is no longer necessary, since the
4700 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
4701 the need for a separate `latexMacro` parser in the Markdown reader.
4702 + Use `label` instead of `data-label` for label in caption (#3639).
4703 + Fixed space after \figurename etc.
4704 + Resolve references to section numbers.
4705 + Fix `\let\a=0` case, with single character token.
4706 + Allow `@` as a letter in control sequences. `@` is commonly used
4707 in macros using `\makeatletter`. Ideally we'd make the tokenizer
4708 sensitive to `\makeatletter` and `\makeatother`, but until then this
4709 seems a good change.
4710 + Track header numbers and correlate with labels.
4711 + Allow `]` inside group in option brackets (#3857).
4712 + lstinline with braces can be used (verb cannot be used with braces)
4713 (Marc Schreiber, #3535).
4714 + Fix keyval function: pandoc did not parse options in braces correctly
4715 (Marc Schreiber, #3642).
4716 + When parsing raw LaTeX commands, include trailing space (#1773).
4717 Otherwise things like `\noindent foo` break and turn into
4718 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
4719 formats that allow `raw_tex`).
4720 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
4721 `\texttt` contexts.
4722 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
4723 + Allow space before `=` in bracketd options (Ben Firshman).
4724 + Be more forgiving in parsing command options. This was needed, for
4725 example, to make some minted options work.
4726 + Strip off quotes in `\include` filenames.
4728 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
4730 * `Text.Pandoc.PDF`:
4732 + Got `--resource-path` working with PDF output (#852).
4733 + Fetch images when generating PDF via context (#3380).
4734 To do this, we create the temp directory as a subdirectory
4735 of the working directory. Since context mk IV by default looks
4736 for images in the parent directory, this works.
4737 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
4738 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
4739 This reduces code duplication.
4740 + `html2pdf`: use stdin instead of intermediate HTML file
4741 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
4742 doesn't use `TEXINPUTS`.
4744 * `Text.Pandoc.Pretty`:
4746 + Simplified definition of `realLength`.
4747 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
4749 * `Text.Pandoc.MIME`:
4751 + Use `application/javascript` (not `application/x-javascript`).
4752 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
4754 * `Text.Pandoc.ImageSize`:
4756 + Improve SVG image size code (Marc Schreiber, #3580).
4757 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
4759 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
4760 and reduction of memory usage in most of the writers.
4762 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
4764 * `Text.Pandoc.SelfContained`:
4766 + Fixed problem with embedded fonts (#3629).
4767 + Refactored getData from `getDataURI` in `SelfContained`.
4768 + Don't use data URIs for script or style (#3423). Instead, just use
4769 script or style tags with the content inside. The old method with
4770 data URIs prevents certain optimizations outside pandoc. Exception:
4771 data URIs are still used when a script contains `</script>` or a
4772 style contains `</`.
4773 + SelfContained: Handle URL inside material retrieved from a URL
4774 (#3629). This can happen e.g. with an @import of a google web font.
4775 (What is imported is some CSS which contains an url reference
4776 to the font itself.) Also, allow unescaped pipe (|) in URL.
4777 + Load resources from `data-src` (needed for lazy loading in
4778 reveal.js slide shows).
4779 + Handle `data-background-image` attribute on section (#3979).
4781 * `Text.Pandoc.Parsing`:
4783 + Added `indentWith` (Alexander Krotov, #3687).
4784 + Added `stateCitations` to `ParserState`.
4785 + Removed `stateChapters` from `ParserState`.
4786 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
4787 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
4788 + Adjusted type of `insertIncludedFile` so it can be used with token
4789 parser.
4790 + Replace old texmath macro stuff from Parsing. Use Macro from
4791 Text.Pandoc.Readers.LaTeX.Types instead.
4792 + Export `insertIncludedFile`.
4793 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
4794 + Replace partial with total function (Albert Krewinkel).
4795 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
4796 `insertIncludeFile` function is generalized to work with all parser
4797 states which are instances of that class.
4798 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
4799 The `insertIncludeFiles` function was generalized and renamed
4800 to `insertIncludedFiles'`; the specialized versions are based on that.
4801 + `many1Till`: Check for the end condition before parsing (Herwig
4802 Stuetz). By not checking for the end condition before the first
4803 parse, the parser was applied too often, consuming too much of the
4804 input. This only affects `many1Till p end` where `p` matches on a
4805 prefix of `end`.
4806 + Provide `parseFromString` (#3690). This is a version of
4807 `parseFromString` specialied to ParserState, which resets
4808 `stateLastStrPos` at the end. This is almost always what we want.
4809 This fixes a bug where `_hi_` wasn't treated as emphasis in the
4810 following, because pandoc got confused about the position of the
4811 last word: `- [o] _hi_`.
4812 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
4813 + Fix `blanklines` documentation (Alexander Krotov, #3843).
4814 + Give less misleading line information with `parseWithString`.
4815 Previously positions would be reported past the end of the chunk.
4816 We now reset the source position within the chunk and report
4817 positions "in chunk."
4818 + Add `anyLineNewline` (Alexander Krotov).
4819 + Provide shared F monad functions for Markdown and Org readers
4820 (Albert Krewinkel). The `F` monads used for delayed evaluation
4821 of certain values in the Markdown and Org readers are based on a
4822 shared data type capturing the common pattern of both `F` types.
4823 + Add `returnF` (Alexander Krotov).
4824 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
4825 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
4826 + Added `readerAbbreviations` to `ParserState`. Markdown reader
4827 now consults this to determine what is an abbreviation.
4828 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
4829 parsers for markdown and rst was combined into one single
4830 parser `gridTable`, slightly changing parsing behavior of both
4831 parsers: (1) The markdown parser now compactifies block content
4832 cell-wise: pure text blocks in cells are now treated as paragraphs
4833 only if the cell contains multiple paragraphs, and as plain blocks
4834 otherwise. Before, this was true only for single-column tables. (2)
4835 The rst parser now accepts newlines and multiple blocks in header
4836 cells.
4837 + Generalize tableWith, gridTableWith (Albert Krewinkel).
4838 The parsing functions `tableWith` and `gridTableWith` are generalized
4839 to work with more parsers. The parser state only has to be an
4840 instance of the `HasOptions` class instead of requiring a concrete
4841 type. Block parsers are required to return blocks wrapped into a
4842 monad, as this makes it possible to use parsers returning results
4843 wrapped in `Future`s.
4845 * `Text.Pandoc.Shared`:
4847 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
4848 + `stringify`: handle Quoted better (#3958). Previously we were losing
4849 the quotation marks in Quoted elements.
4851 * `Text.Pandoc.Writers.Shared`:
4853 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
4854 This allows us to add the variables AFTER using the metadata
4855 to generate a YAML header (in the Markdown writer).
4856 + Added `unsmartify` (previously in RST writer).
4857 Undo literal double curly quotes. Previously we left these.
4858 + Generalize type of `metaToJSON` so it can take a Text. Previously a
4859 String was needed as argument; now any ToJSON instance will do.
4860 + Added `gridTable` (previously in Markdown writer).
4861 + `gridTable`: Refactored to use widths in chars.
4862 + `gridTable`: remove unnecessary extra space in cells.
4863 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
4864 values to become lists.
4865 + Pipe tables: impose minimum cell size (see #3526).
4868 [default template changes]
4870 * HTML templates (including EPUB and HTML slide show templates):
4872 + Make default.html5 polyglot markup conformant (John Luke Bentley,
4873 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
4874 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
4875 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
4876 + Regularized CSS in html/epub/html slide templates (#3485).
4877 All templates now include `code{white-space: pre-wrap}`
4878 and CSS for `q` if `--html-q-tags` is used. Previously some templates
4879 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
4880 included.
4881 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
4882 + `default.revealjs`: make `history` default to true.
4883 + `default.revealjs`: use lazy loading (#2283).
4884 + `default.revealjs`: add `mathjax` variable and some conditional code
4885 to use the MathJaX plugin.
4886 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
4887 + `default.dzslides`: Load Google Font using HTTPS by default
4888 (Yoan Blanc).
4890 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
4891 #3855).
4893 * LaTeX/Beamer template:
4895 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
4896 `default.beamer` has been removed; beamer now uses the
4897 `default.latex` template. Beamer-specific parts are conditional
4898 on the `beamer` variable set by the writer. Note that
4899 `pandoc -D beamer` will return this (combined) template.
4900 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
4901 Beamer loads `xcolor` rather than `color`, and thus the
4902 `dvipsnames` option doesn't take effect. This also provides a wider
4903 range of colour selections with the `svgnames` option.
4904 + Use starred versions of `xcolor` names (Andrew Dunning).
4905 Prevents changes to documents defined using the `dvipsnames` list (e.g.
4906 `Blue` gives a different result with svgnames enabled).
4907 + Load `polyglossia` after header-includes (#3898). It needs to be
4908 loaded as late as possible.
4909 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
4910 XeLaTeX on request.
4911 + Don't load `fontspec` before `unicode-math` (over there).
4912 The `unicode-math` package loads `fontspec` so explicit loading of
4913 `fontspec` before `unicode-math` is not necessary.
4914 + Use `unicode-math` by default in default.latex template. mathspec will
4915 be used in xelatex if the `mathspec` variable is set; otherwise
4916 unicode-math will be used (Václav Haisman).
4917 + Use `dvipsnames` options when `colorlinks` specified (otherwise
4918 we get an error for `maroon`) (Thomas Hodgson).
4919 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
4920 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
4921 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
4922 clash when loading a package (e.g. `tufte-latex`) that uses
4923 `hyperref` settings different from those in the template.
4924 + Add `natbiboptions` variable (#3768).
4925 + Fix links inside captions in LaTeX output with links-as-notes
4926 (Václav Haisman, #3651). Declare our redefined `\href` robust.
4927 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
4928 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
4929 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
4930 packages. Use existing `CJKmainfont` and `CJKoptions` template
4931 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
4932 and `luatexjapresetoptions` for `luatexja-preset`.
4933 + Added `aspectratio` variable to beamer template (Václav Haisman,
4934 #3723).
4935 + Modified template.latex to fix XeLaTex being used with tables
4936 (lwolfsonkin, #3661). Reordered `lang` variable handling to
4937 immediately before `bidi`.
4939 * ConTeXt template: Improved font handling: `simplefonts` is now
4940 obsolete in ConTeXt (Pablo Rodríguez).
4943 [documentation improvements]
4945 * MANUAL.txt:
4947 + Add URL for Prince HTML > PDF engine (Ian, #3919).
4948 + Document that content above slide-level will be omitted in
4949 slide shows. See #3460, #2265.
4950 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
4951 + Small clarification in YAML metadata section.
4952 + Document that html4 is technically XHTML 1.0 transitional.
4953 + Remove refs to highlighting-kate (#3672).
4954 + Document ibooks specific epub metadata.
4955 + Clarify that mathml is used for ODT math.
4956 + Mention limitations of Literate Haskell Support (#3410,
4957 Joachim Breitner).
4958 + Add documentation of limitations of grid tables (Stephen
4959 McDowell, #3864).
4960 + Clarify that meta-json contains transformed values (Jakob Voß,
4961 #3491) Make clear that template variable `meta-json` does not
4962 contain plain text values or JSON output format but field values
4963 transformed to the selected output format.
4965 * COPYRIGHT:
4967 + Clarify that templates are dual-licensed.
4968 + Clarify that pandoc-types is BSD3 licensed.
4969 + List new files not written by jgm (Albert Krewinkel).
4970 + Update dates in copyright notices (Albert Krewinkel). This follows
4971 the suggestions given by the FSF for GPL licensed software.
4972 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
4974 * INSTALL.md:
4976 + Improved instructions for tests with patterns.
4977 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
4979 * CONTRIBUTING.md:
4981 + Fixed typos (Wandmalfarbe, #3479).
4982 + Add "ask on pandoc-discuss" (Mauro Bieg).
4984 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
4985 end of this document is autogenerated from `data/pandoc.lua`
4986 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
4987 (Albert Krewinkel).
4989 * Add `doc/filters.md`. This is the old scripting tutorial from
4990 the website.
4992 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
4993 to using pandoc as a Haskell library.
4996 [build infrastructure improvements]
4998 * Removed `data/templates` submodule. Templates are now a subtree
4999 in `data/templates`. This removes the need to do `git submodule
5000 update`.
5002 * Renamed `tests` -> `test`.
5004 * Remove `https` flag. Always build with HTTPS support.
5006 * Use `file-embed` instead of `hsb2hs` to embed data files when
5007 `embed_data_files` flag is set. `file-embed` gives us better dependency
5008 tracking: if a data file changes, ghc/stack/cabal know to recompile
5009 the Data module. This also removes `hsb2hs` as a build dependency.
5011 * Add `custom-setup` stanza to pandoc, lowercase field names.
5013 * Add `static` Cabal flag.
5015 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
5016 than -OSX. Changed local names from osx to macos.
5018 * make_macos_package.sh - Use strip to reduce executable size.
5020 * Revised binary linux package. Now a completely static executable
5021 is created, using Docker and alpine. We create both a deb and a
5022 tarball. The old `deb` directory has been replaced with a `linux`
5023 directory. Running `make` in the `linux` directory should
5024 perform the build, putting the binary packages in `artifacts/`.
5026 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
5027 pandoc-data packages will be uninstalled; this package provides
5028 both (#3822). Add latex packages as 'suggested', update
5029 description.
5031 * Remove cpphs build requirement -- it is no longer needed.
5033 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
5035 * Name change OSX -> macOS (ickc, #3869).
5037 * Fix casing of Linux, UNIX, and Windows (ickc).
5039 * `.travis.yml`: create a source dist and do cabal build and test there.
5040 That way we catch errors due to files missing from the data
5041 section of pandoc.cabal.
5043 * Makefile:
5045 + Split `make haddock` from `make full`.
5046 + Add BRANCH variable for winpkg.
5047 + Add `lint` target.
5048 + Improve `make full`. Disable optimizations.
5049 Build everything, inc. trypandoc and benchmarks. Use parallel build.
5050 + Allow `make test` to take `TESTARGS`.
5052 * Added new command tests (`Tests.Command`), using small text files
5053 in `test/command/`. Any files added in this directory will be treated
5054 as shell tests (see smart.md for an example). This makes it very easy
5055 to add regression tests etc.
5057 * Test fixes so we can find data files. In old tests & command tests,
5058 we now set the environment variable `pandoc_datadir`. In lua tests,
5059 we set the datadir explicitly.
5061 * Refactored `compareOutput` in docx writer test.
5063 * Consolidated some common functions in `Tests.Helper`.
5065 * Small change to unbalanced bracket test to speed up test suite.
5067 * Speed up Native writer quickcheck tests.
5069 * Use tasty for tests rather than test-framework.
5071 * Add simple Emacs mode to help with Pandoc templates editing.
5072 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
5075pandoc (1.19.2)
5077 * Use skylighting library instead of highlighting-kate for syntax
5078 highlighting. Skylighting is faster and more accurate (#3363).
5079 Later we'll be able to add features like warning messages, dynamic
5080 loading of xml syntax definitions, and dynamic loading of themes.
5082 * Added a new highlight style, `breezeDark`.
5084 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
5085 This allows more languages to be used when using the `--listings`
5086 option.
5088 * OpenDocument writer:
5090 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
5091 + Don't profilerate text styles unnecessarily (#3371).
5092 This change makes the writer create only as many temporary
5093 text styles as are absolutely necessary. It also consolidates
5094 adjacent nodes with the same style.
5096 * Org reader (Albert Krewinkel):
5098 + Allow short hand for single-line raw blocks (Albert Krewinkel,
5099 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
5100 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
5101 + Accept org-ref citations followed by commas (Albert Krewinkel).
5102 Bugfix for an issue which, whenever the citation was immediately
5103 followed by a comma, prevented correct parsing of org-ref citations.
5104 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
5105 `/*strong and emphasized*/`) was interpreted incorrectly in that the
5106 inner markup was not recognized.
5107 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
5109 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
5110 In the past, the docx reader wrote an empty header as an empty list. It
5111 should have the same width as a row (and be filled with empty cells).
5113 * MediaWiki reader:
5115 + Improved handling of display math (#3362). Sometimes display math is
5116 indented with more than one colon. Previously we handled these cases
5117 badly, generating definition lists and missing the math.
5118 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
5119 behavior when the smart option is parsed to match other readers'
5120 behavior.
5122 * Markdown reader:
5124 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
5125 (#3341). Previously this did not properly enable escaped line breaks.
5126 + Disallow space between inline code and attributes (#3326, #3323,
5127 Mauro Bieg).
5129 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
5131 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
5133 * LaTeX writer: allow tables with empty cells to count as "plain."
5134 This addresses a problem of too-wide tables when empty cells
5135 are used. Thanks to Joost Kremers for reporting the issue.
5137 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
5138 Unprefixed numbers where used by older org-mode versions, but are no
5139 longer supported.
5141 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
5142 Mauro Bieg).
5144 * Markdown writer: Fix display math with `--webtex` (#3298).
5146 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
5147 bumper314).
5149 * Templates:
5151 + default.latex: Moved geometry after hyperref (Václav Haisman).
5152 Otherwise PDF sizes can be wrong in some circumstances.
5153 + Copied a few changes from default.latex to default.beamer
5154 (Wandmalfarbe).
5155 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
5156 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
5157 that contain verbatim in notes (#3361). (Note: the beamer template
5158 was updated to match the LaTeX template, but at this point verbatim
5159 in notes seems not to work in beamer.)
5160 + default.latex: Allow passing `microtypeoptions` to microtype
5161 (Václav Haisman).
5162 + default.latex: Add hyphen option to url package.
5163 + default.docbook5: Fix namespace declarations (Mauro Bieg).
5165 * Moved `make_osx_package.sh` to `osx/` directory.
5167 * Travis continuous integration:
5169 + Fix false positives with dist build.
5170 + Speed improvements (Kolen Cheung, #3304, #3357).
5172 * MANUAL.txt:
5174 + Clarify that blank space is needed around footnotes (#3352).
5175 + Fixed typo (#3351, Alexey Rogechev).
5176 + Note that `--wrap=auto` does not work in HTML output.
5177 + Default `--columns` width is 72, not 80.
5178 + Fixed broken links (#3316, Kolen Cheung).
5179 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
5181 * INSTALL.md:
5183 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
5184 + Added instructions for extracting binary from OSX, Windows packages.
5186 * CONTRIBUTING.md: Describe labels currently used in issue tracker
5187 (Albert Krewinkel). The labels have changed over time, the list of
5188 labels is updated to reflect the current set of labels used in the
5189 issue tracker.
5191 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
5193 * Bumped version bounds for dependencies.
5196pandoc (1.19.1)
5198 * Set `PANDOC_VERSION` environment variable for filters (#2640).
5199 This allows filters to check the pandoc version that produced
5200 the JSON they are receiving.
5202 * Docx reader: Ensure one-row tables don't have header (#3285,
5203 Jesse Rosenthal). Tables in MS Word are set by default to have
5204 special first-row formatting, which pandoc uses to determine whether
5205 or not they have a header. This means that one-row tables will, by
5206 default, have only a header -- which we imagine is not what people
5207 want. This change ensures that a one-row table is not understood to
5208 be a header only. Note that this means that it is impossible to
5209 produce a header-only table from docx, even though it is legal
5210 pandoc. But we believe that in nearly all cases, it will be an
5211 accidental (and unwelcome) result
5213 * HTML reader:
5215 + Fixed some bad regressions in HTML table parser (#3280).
5216 This regression leads to the introduction of empty rows
5217 in some circumstances.
5218 + Understand `style=width:` as well as `width` in `col` (#3286).
5220 * RST reader:
5222 + Print warnings when keys, substitition, notes not found.
5223 Previously the parsers failed and we got raw text. Now we get a
5224 link with an empty URL, or empty inlines in the case of a note or
5225 substitution.
5227 + Fix hyperlink aliases (#3283).
5229 * Man writer: Ensure that periods are escaped at beginning of line
5230 (#3270).
5232 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
5233 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
5234 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
5235 are ensured to be written using stared commands (like `\subsection*{}`).
5237 * LaTeX template: use comma not semicolon to separate keywords for
5238 `pdfkeywords`. Thanks to Wandmalfarbe.
5240 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
5241 would sometimes wrap lines too early due to this bug.
5243 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
5244 possible to insert escape codes for content that needs escaping at the
5245 beginning of a line.
5247 * Removed old MathMLInHTML.js from 2004, which should no longer
5248 be needed for MathML with modern browsers.
5250 * Fixed tests with dynamic linking (#2709).
5252 * Makefile: Use stack instead of cabal for targets. This is just
5253 a convenience for developers.
5255 * Fixed bash completion of filenames with space (#2749).
5257 * MANUAL: improved documentation on how to create a custom `reference.docx`.
5259 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
5261pandoc (1.19)
5263 * Changed resolution of filter paths.
5265 + We now first treat the argument of `--filter` as a full (absolute
5266 or relative) path, looking for a program there. If it's found, we
5267 run it.
5268 + If not, and if it is a simple program name or a relative path, we
5269 try resolving it relative to `$DATADIR/filters`.
5270 + If this fails, then we treat it as a program name and look in the
5271 user's PATH.
5272 + Removed a hardcoded '/' that may have caused problems with
5273 Windows paths.
5275 Previously if you did `--filter foo` and you had `foo` in your path and
5276 also an executable `foo` in your working directory, the one in the path
5277 would be used. Now the one in the working directory is used.
5279 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
5280 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
5281 `foo/bar.hs` relative to the working directory.
5283 * Allow `file://` URIs as arguments (#3196). Also improved default reader
5284 format detection. Previously with a URI ending in .md or .markdown,
5285 pandoc would assume HTML input. Now it treats these as markdown.
5287 * Allow to overwrite top-level division type heuristics (#3258,
5288 Albert Krewinkel). Pandoc uses heuristics to determine the most
5289 reasonable top-level division type when emitting LaTeX or
5290 Docbook markup. It is now possible to overwrite this implicitly set
5291 top-level division via the `top-level-division` command line parameter.
5293 * Text.Pandoc.Options \[API changes\]:
5295 + Removed `writerStandalone` field in `WriterOptions`, made
5296 `writerTemplate` a `Maybe` value. Previously setting
5297 `writerStandalone = True` did nothing unless a template was provided
5298 in writerTemplate. Now a fragment will be generated if
5299 `writerTemplate` is `Nothing`; otherwise, the specified template
5300 will be used and standalone output generated.
5301 + `Division` has been renamed `TopLevelDivision` (#3197). The
5302 `Section`, `Chapter`, and `Part` constructors were renamed to
5303 `TopLevelSection`, `TopLevelChapter`, and
5304 `TopLevelPart`, respectively. An additional `TopLevelDefault`
5305 constructor was added, which is now also the new default value of
5306 the `writerTopLevelDivision` field in `WriterOptions`.
5308 * Improved error if they give wrong arg to `--top-level-division`.
5310 * Use new module from texmath to lookup MS font codepoints in Docx reader.
5311 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
5312 lives in texmath (0.9).
5314 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
5315 when the qnames lacked the docbook namespace URI.
5317 * HTML reader:
5319 + Improved table parsing (#3027). We now check explicitly for non-1
5320 rowspan or colspan attributes, and fail when we encounter them.
5321 Previously we checked that each row had the same number of cells,
5322 but that could be true even with rowspans/colspans. And there are
5323 cases where it isn't true in tables that we can handle fine -- e.g.
5324 when a tr element is empty. So now we just pad rows with empty cells
5325 when needed.
5326 + Treat `<math>` as MathML by default unless something else is
5327 explicitly specified in xmlns. Provided it parses as MathML,
5328 of course. Also fixed default which should be to inline math if no
5329 display attribute is used.
5330 + Only treat "a" element as link if it has href (#3226). Otherwise
5331 treat as span.
5333 * Docx reader (Jesse Rosenthal):
5335 + Add a placeholder value for CHART. We wrap `[CHART]` in a
5336 `<span class="chart">`. Note that it maps to inlines because, in
5337 docx, anything in a drawing tag can be part of a larger paragraph.
5338 + Be more specific in parsing images We not only want `w:drawing`,
5339 because that could also include charts. Now we specify
5340 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
5341 a first step toward allowing other sorts of drawing data as well.
5342 + Abstract out function to avoid code repetition.
5343 + Update tests for img title and alt (#3204).
5344 + Handle Alt text and titles in images. We use the "description" field
5345 as alt text and the "title" field as title. These can be accessed
5346 through the "Format Picture" dialog in Word.
5347 + Docx reader utils: handle empty namespace in `elemName`. Previously,
5348 if given an empty namespace `(elemName ns "" "foo")` `elemName`
5349 would output a QName with a `Just ""` namespace. This is never what
5350 we want. Now we output a `Nothing`. If someone *does* want a
5351 `Just ""` in the namespace, they can enter the QName
5352 value explicitly.
5354 * ODT reader/writer:
5356 + Inline code when text has a special style (Hubert Plociniczak). When
5357 a piece of text has a text `Source_Text` then we assume that this is
5358 a piece of the document that represents a code that needs to
5359 be inlined. Adapted the writer to also reflect that change.
5360 Previously it was just writing a 'preformatted' text using a
5361 non-distinguishable font style. Code blocks are still not recognized
5362 by the ODT reader. That's a separate issue.
5363 + Infer table's caption from the paragraph (#3224,
5364 Hubert Plociniczak). ODT's reader always put empty captions for the
5365 parsed tables. This commit
5367 1. checks paragraphs that follow the table definition
5368 2. treats specially a paragraph with a style named 'Table'
5369 3. does some postprocessing of the paragraphs that combines tables
5370 followed immediately by captions
5372 The ODT writer used the `TableCaption` style for the caption
5373 paragraph. This commit follows the OpenOffice approach which allows
5374 for appending captions to table but uses a built-in style named
5375 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
5376 should change the style's name from `TableCaption` to `Table`.
5378 * ODT reader: Infer tables' header props from rows (#3199,
5379 Hubert Plociniczak). ODT reader simply provided an empty header list
5380 which meant that the contents of the whole table, even if not empty, was
5381 simply ignored. While we still do not infer headers we at least have to
5382 provide default properties of columns.
5384 * Markdown reader:
5386 + Allow reference link labels starting with `@...` if `citations`
5387 extension disabled (#3209). Example: in
5389 \[link text\]\[@a\]
5391 `link text` isn't hyperlinked because `[@a]` is parsed as
5392 a citation. Previously this happened whether or not the `citations`
5393 extension was enabled. Now it happens only if the `citations`
5394 extension is enabled.
5395 + Allow alignments to be specified in Markdown grid tables. For
5396 example,
5398 +-------+---------------+--------------------+
5399 | Right | Left | Centered |
5400 +=========:+:=================+:=============:+
5401 | Bananas | $1.34 | built-in wrapper |
5402 +-------+---------------+--------------------+
5404 + Allow Small Caps elements to be created using bracketed spans (as
5405 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
5407 * LaTeX reader:
5409 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
5410 Fixed an error which came up, for example, with `\vspace` inside
5411 a caption. (Captions expect inlines.)
5412 + Improved table handling. We can now parse all of the tables emitted
5413 by pandoc in our tests. The only thing we don't get yet are
5414 alignments and column widths in more complex tables. See #2669.
5415 + Limited support for minipage.
5416 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
5417 + Handle BVerbatim from fancyvrb (#3203).
5418 + Handle hungarumlaut (#3201).
5419 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
5420 (#3184). This allows use of things like `\only<2,3>{my content}` in
5421 Markdown that is going to be converted to beamer.
5423 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
5424 overly long code will appear on every slide.
5426 * Org reader (Albert Krewinkel):
5428 + Respect column width settings (#3246). Table column properties can
5429 optionally specify a column's width with which it is displayed in
5430 the buffer. Some exporters, notably the ODT exporter in org-mode
5431 v9.0, use these values to calculate relative column widths. The org
5432 reader now implements the same behavior. Note that the org-mode
5433 LaTeX and HTML exporters in Emacs don't support this feature yet,
5434 which should be kept in mind by users who use the column
5435 widths parameters.
5436 + Allow HTML attribs on non-figure images (#3222). Images which are
5437 the only element in a paragraph can still be given HTML attributes,
5438 even if the image does not have a caption and is hence not a figure.
5439 The following will add set the `width` attribute of the image to
5440 `50%`:
5442 +ATTR\_HTML: :width 50%
5443 =======================
5445 \[\[file:image.jpg\]\]
5447 + Support `ATTR_HTML` for special blocks (#3182). Special
5448 blocks (i.e. blocks with unrecognized names) can be prefixed with an
5449 `ATTR_HTML` block attribute. The attributes defined in that
5450 meta-directive are added to the `Div` which is used to represent the
5451 special block.
5452 + Support the `todo` export option. The `todo` export option allows to
5453 toggle the inclusion of TODO keywords in the output. Setting this to
5454 `nil` causes TODO keywords to be dropped from headlines. The default
5455 is to include the keywords.
5456 + Add support for todo-markers. Headlines can have optional
5457 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
5458 or `#+TYP_TODO` meta directive. Multiple such directives can be
5459 given, each adding a new set of recognized todo-markers. If no
5460 custom todo-markers are defined, the default `TODO` and `DONE`
5461 markers are used. Todo-markers are conceptually separate from
5462 headline text and are hence excluded when autogenerating
5463 headline IDs. The markers are rendered as spans and labelled with
5464 two classes: One class is the markers name, the other signals the
5465 todo-state of the marker (either `todo` or `done`).
5467 * LaTeX writer:
5469 + Use `\autocites*` when "suppress-author" citation used.
5470 + Ensure that simple tables have simple cells (#2666). If cells
5471 contain more than a single Plain or Para, then we need to set
5472 nonzero widths and put contents into minipages.
5473 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
5475 * Markdown writer:
5477 + Fix calculation of column widths for aligned multiline tables
5478 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
5479 usage for tables when `--columns` is set in such a way that cells
5480 must be very tiny. Now cells are guaranteed to be big enough so that
5481 single words don't need to line break, even if this pushes the line
5482 length above the column width.
5483 + Use bracketed form for native spans when `bracketed_spans`
5484 enabled (#3229).
5485 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
5486 sublist got rendered with a blank line after, while a tight ordered
5487 sublist did not. Now we don't get the blank line in either case.
5488 + Fix escaping of spaces in super/subscript (#3225). Previously two
5489 backslashes were inserted, which gave a literal backslash.
5490 + Adjust widths in Markdown grid tables so that they match
5491 on round-trip.
5493 * Docx writer:
5495 + Give full detail when there are errors converting tex math.
5496 + Handle title text in images (Jesse Rosenthal). We already handled
5497 alt text. This just puts the image "title" into the docx
5498 "title" attr.
5499 + Fixed XML markup for empty cells (#3238). Previously the Compact
5500 style wasn't being applied properly to empty cells.
5502 * HTML writer:
5504 + Updated `renderHtml` import from blaze-html.
5506 * Text.Pandoc.Pretty:
5508 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
5509 caused spurious blank lines in grid tables when we had things like
5510 `blankline $$ blankline`.
5511 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
5512 + Added error message for illegal call to `block` (Björn Peemöller).
5514 * Text.Pandoc.Shared:
5516 + Put `warn` in MonadIO.
5517 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
5518 URL starts with `//` and there is no "base URL" (as there would be
5519 if a URL were used on the command line), then default to http:.
5521 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
5523 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
5524 fixes a crash with `pandoc --version` on unusual systems with no real
5525 user (e.g. SQL Server 2016).
5527 * Added weigh-pandoc for memory usage diagnostics (#3169).
5529 * Use correct mime types for woff and woff2 (#3228).
5531 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
5533 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
5534 1.18 section where it belongs.
5536 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
5537 Kolen Cheung).
5539 * Further revisions to manual for `--version` changes (#3244).
5542pandoc (1.18)
5544 * Added `--list-input-formats`, `--list-output-formats`,
5545 `--list-extensions`, `--list-highlight-languages`, and
5546 `--list-highlight-styles` (#3173). Removed list of highlighting
5547 languages from `--version` output. Removed list of input and output
5548 formats from default `--help` output.
5550 * Added `--reference-location=block|section|document` option
5551 (Jesse Rosenthal). This determines whether Markdown link references
5552 and footnotes are placed at the end of the document, the end of the
5553 section, or the end of the top-level block.
5555 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
5556 This determines what a level-1 header corresponds to in LaTeX,
5557 ConTeXt, DocBook, and TEI output. The default is `section`.
5558 The `--chapters` option has been deprecated in favor of
5559 `--top-level-division=chapter`.
5561 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
5562 is now used in parsing RST and Markdown line blocks, DocBook
5563 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
5564 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
5565 are handled specially in the following output formats: AsciiDoc
5566 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
5567 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
5568 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
5569 other output formats, a paragraph with hard linebreaks is emitted.
5571 * Allow binary formats to be written to stdout (but not to tty) (#2677).
5572 Only works on posix, since we use the unix library to check whether
5573 output is to tty. On Windows, pandoc works as before and always requires
5574 an output file parameter for binary formats.
5576 * Changed JSON output format (Jesse Rosenthal). Previously we used
5577 generically generated JSON, but this was subject to change depending
5578 on the version of aeson pandoc was compiled with. To ensure stability,
5579 we switched to using manually written ToJSON and FromJSON
5580 instances, and encoding the API version. **Note:** pandoc filter
5581 libraries will need to be revised to handle the format change.
5582 Here is a summary of the essential changes:
5584 + The toplevel JSON format is now `{"pandoc-api-version" :
5585 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
5586 instead of `[{"unMeta": META}, [BLOCKS]]`.
5587 Decoding fails if the major and minor version numbers don't
5588 match.
5589 + Leaf nodes no longer have an empty array for their "c" value.
5590 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
5591 rather than `{"t":"Space","c":[]}` as before.
5593 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
5594 module to pandoc-types (Jesse Rosenthal). This makes it easier
5595 to use QuickCheck with pandoc types outside of pandoc itself.
5597 * Add `bracketed_spans` Markdown extension, enabled by default
5598 in pandoc `markdown`. This allows you to create a native span
5599 using this syntax: `[Here is my span]{#id .class key="val"}`.
5601 * Added `angle_brackets_escapable` Markdown extension (#2846).
5602 This is needed because github flavored Markdown has a slightly
5603 different set of escapable symbols than original Markdown;
5604 it includes angle brackets.
5606 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
5608 * Print highlighting-kate version in `--version`.
5610 * `Text.Pandoc.Options`:
5612 + `Extension` has new constructors `Ext_brackted_spans` and
5613 `Ext_angle_brackets_escapable` [API change].
5614 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
5615 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
5616 Rosenthal).
5618 * `--filter`: we now check `$DATADIR/filters` for filters before
5619 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
5620 Voß for the idea). Filters placed in this directory need not
5621 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
5622 or `.rb`, pandoc will run the right interpreter.
5624 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
5625 default (Kolen Cheung).
5627 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
5629 * Execute .js filters with node (Jakob Voß).
5631 * Textile reader:
5633 + Support `bc..` extended code blocks (#3037). Also, remove trailing
5634 newline in code blocks (consistently with Markdown reader).
5635 + Improve table parsing. We now handle cell and row attributes, mostly
5636 by skipping them. However, alignments are now handled properly.
5637 Since in pandoc alignment is per-column, not per-cell, we
5638 try to devine column alignments from cell alignments.
5639 Table captions are also now parsed, and textile indicators
5640 for thead and tfoot no longer cause parse failure. (However,
5641 a row designated as tfoot will just be a regular row in pandoc.)
5642 + Improve definition list parsing. We now allow multiple terms
5643 (which we concatenate with linebreaks). An exponential parsing
5644 bug (#3020) is also fixed.
5645 + Disallow empty URL in explicit link (#3036).
5647 * RST reader:
5649 + Use Div instead of BlockQuote for admonitions (#3031).
5650 The Div has class `admonition` and (if relevant) one of the
5651 following: `attention`, `caution`, `danger`, `error`, `hint`,
5652 `important`, `note`, `tip`, `warning`. **Note:** This will change
5653 the rendering of some RST documents! The word ("Warning", "Attention",
5654 etc.) is no longer added; that must be done with CSS or a filter.
5655 + A Div is now used for `sidebar` as well.
5656 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
5657 space before a footnote marker. We discard those spaces so that footnotes
5658 will be adjacent to the text that comes before it. This is in line with
5659 what rst2latex does.
5660 + Allow empty lines when parsing line blocks (Albert Krewinkel).
5662 * Markdown reader:
5664 + Allow empty lines when parsing line blocks (Albert Krewinkel).
5665 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
5667 * LaTeX reader:
5669 + More robust parsing of unknown environments (#3026).
5670 We no longer fail on things like `^` inside options for tikz.
5671 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
5672 Some custom environments give these a meaning, so we should try not to
5673 fall over when we encounter them.
5674 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
5676 * MediaWiki reader:
5678 + Fix for unquoted attribute values in mediawiki tables (#3053).
5679 Previously an unquoted attribute value in a table row
5680 could cause parsing problems.
5681 + Improved treatment of verbatim constructions (#3055).
5682 Previously these yielded strings of alternating Code and Space
5683 elements; we now incorporate the spaces into the Code. Emphasis
5684 etc. is still possible inside these.
5685 + Properly interpret XML tags in pre environments (#3042). They are meant
5686 to be interpreted as literal text.
5688 * EPUB reader: don't add root path to data: URIs (#3150).
5689 Thanks to @lep for the bug report and patch.
5691 * Org reader (Albert Krewinkel):
5693 + Preserve indentation of verse lines (#3064). Leading spaces in verse
5694 lines are converted to non-breaking spaces, so indentation is preserved.
5695 + Ensure image sources are proper links. Image sources as those in plain
5696 images, image links, or figures, must be proper URIs or relative file
5697 paths to be recognized as images. This restriction is now enforced
5698 for all image sources. This also fixes the reader's usage of uncleaned
5699 image sources, leading to `file:` prefixes not being deleted from
5700 figure images. Thanks to @bsag for noticing this bug.
5701 + Trim verse lines properly (Albert Krewinkel).
5702 + Extract meta parsing code to module. Parsing of meta-data is well
5703 separable from other block parsing tasks. Moving into new module to
5704 get small files and clearly arranged code.
5705 + Read markup only for special meta keys. Most meta-keys should be read
5706 as normal string values, only a few are interpreted as marked-up text.
5707 + Allow multiple, comma-separated authors. Multiple authors can be
5708 specified in the `#+AUTHOR` meta line if they are given as a
5709 comma-separated list.
5710 + Give precedence to later meta lines. The last meta-line of any given
5711 type is the significant line. Previously the value of the first line
5712 was kept, even if more lines of the same type were encountered.
5713 + Read LaTeX_header as header-includes. LaTeX-specific header commands
5714 can be defined in `#+LaTeX_header` lines. They are parsed as
5715 format-specific inlines to ensure that they will only show up in LaTeX
5716 output.
5717 + Set documentclass meta from LaTeX_class.
5718 + Set classoption meta from LaTeX_class_options.
5719 + Read HTML_head as header-includes. HTML-specific head content can be
5720 defined in `#+HTML_head` lines. They are parsed as format-specific
5721 inlines to ensure that they will only show up in HTML output.
5722 + Respect `author` export option. The `author` option controls whether
5723 the author should be included in the final markup. Setting
5724 `#+OPTIONS: author:nil` will drop the author from the final meta-data
5725 output.
5726 + Respect `email` export option. The `email` option controls whether the
5727 email meta-field should be included in the final markup. Setting
5728 `#+OPTIONS: email:nil` will drop the email field from the final
5729 meta-data output.
5730 + Respect `creator` export option. The `creator` option controls whether
5731 the creator meta-field should be included in the final markup. Setting
5732 `#+OPTIONS: creator:nil` will drop the creator field from the final
5733 meta-data output. Org-mode recognizes the special value `comment` for
5734 this field, causing the creator to be included in a comment. This is
5735 difficult to translate to Pandoc internals and is hence interpreted the
5736 same as other truish values (i.e. the meta field is kept if it's
5737 present).
5738 + Respect unnumbered header property (#3095). Sections the `unnumbered`
5739 property should, as the name implies, be excluded from the automatic
5740 numbering of section provided by some output formats. The Pandoc
5741 convention for this is to add an "unnumbered" class to the header. The
5742 reader treats properties as key-value pairs per default, so a special
5743 case is added to translate the above property to a class instead.
5744 + Allow figure with empty caption (Albert Krewinkel, #3161).
5745 A `#+CAPTION` attribute before an image is enough to turn an image into
5746 a figure. This wasn't the case because the `parseFromString` function,
5747 which processes the caption value, would fail on empty values. Adding
5748 a newline character to the caption value fixes this.
5750 * Docx reader:
5752 + Use XML convenience functions (Jesse Rosenthal).
5753 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
5754 the code a lot cleaner than the original XML.Light functions, but they
5755 had been used inconsistently. This puts them in wherever applicable.
5756 + Handle anchor spans with content in headers. Previously, we would only
5757 be able to figure out internal links to a header in a docx if the
5758 anchor span was empty. We change that to read the inlines out of the
5759 first anchor span in a header.
5760 + Let headers use existing id. Previously we always generated an id for
5761 headers (since they wouldn't bring one from Docx). Now we let it use an
5762 existing one if possible. This should allow us to recurs through anchor
5763 spans.
5764 + Use all anchor spans for header ids. Previously we only used the first
5765 anchor span to affect header ids. This allows us to use all the anchor
5766 spans in a header, whether they're nested or not (#3088).
5767 + Test for nested anchor spans in header. This ensures that anchor spans
5768 in header with content (or with other anchor spans inside) will resolve
5769 to links to a header id properly.
5771 * ODT reader (Hubert Plociniczak)
5773 + Include list's starting value. Previously the starting value of
5774 the lists' items has been hardcoded to 1. In reality ODT's list
5775 style definition can provide a new starting value in one of its
5776 attributes.
5777 + Infer caption from the text following the image.
5778 Frame can contain other frames with the text boxes.
5779 + Add `fig:` to title for Image with a caption (as expected
5780 by pandoc's writers).
5781 + Basic support for images in ODT documents.
5782 + Don't duplicate text for anchors (#3143). When creating an anchor
5783 element we were adding its representation as well as the original
5784 content, leading to text duplication.
5786 * DocBook writer:
5788 + Include an anchor element when a div or span has an id (#3102).
5789 Note that DocBook does not have a class attribute, but at least this
5790 provides an anchor for internal links.
5792 * LaTeX writer:
5794 + Don't use * for unnumbered paragraph, subparagraph. The starred
5795 variants don't exist. This helps with part of #3058...it gets rid of
5796 the spurious `*`s. But we still have numbers on the 4th and 5th level
5797 headers.
5798 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
5799 Otherwise they can cause unintended ligatures like `` ?` ``.
5800 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
5801 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
5802 This allows figure placement defaults to be changed by the user
5803 in the template.
5805 * HTML writer (slide show formats): In slide shows, don't change slide title
5806 to level 1 header (#2221).
5808 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
5809 TEI doesn't have `<book>` elements but only generic `<divN>` division
5810 elements. Checking the template for a trailing `</book>` is nonsensical.
5812 * MediaWiki writer: transform filename with underscores in images (#3052).
5813 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
5814 for internal links, but it also needs to happen for images.
5816 * ICML writer: replace partial function (!!) in table handling (#3175,
5817 Mauro Bieg).
5819 * Man writer: allow section numbers that are not a single digit (#3089).
5821 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
5822 (#3068). In AsciiDoc, you must use a special form of emphasis
5823 (double `__`) for intraword emphasis. Pandoc was previously using
5824 this more than necessary.
5826 * EPUB writer: use stringify instead of plain writer for metadata
5827 (#3066). This means that underscores won't be used for emphasis,
5828 or CAPS for bold. The metadata fields will just have unadorned
5829 text.
5831 * Docx Writer:
5833 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
5834 with a `custom-style` key in the attributes will apply the corresponding
5835 key to the contained blocks or inlines.
5836 + Add ReaderT env to the docx writer (Jesse Rosenthal).
5837 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
5838 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
5839 on the command line. For finer-grained control, you can set
5840 the `dir` attribute in Div or Span elements.
5842 * Org writer (Albert Krewinkel):
5844 + Remove blank line after figure caption. Org-mode only treats an image
5845 as a figure if it is directly preceded by a caption.
5846 + Ensure blank line after figure. An Org-mode figure should be surrounded
5847 by blank lines. The figure would be recognized regardless, but images
5848 in the following line would unintentionally be treated as figures as
5849 well.
5850 + Ensure link targets are paths or URLs. Org-mode treats links as
5851 document internal searches unless the link target looks like a URL or
5852 file path, either relative or absolute. This change ensures that this
5853 is always the case.
5854 + Translate language identifiers. Pandoc and Org-mode use different
5855 programming language identifiers. An additional translation between
5856 those identifiers is added to avoid unexpected behavior. This fixes a
5857 problem where language specific source code would sometimes be output
5858 as example code.
5859 + Drop space before footnote markers (Albert Krewinkel, #3162).
5860 The writer no longer adds an extra space before footnote markers.
5862 * Markdown writer:
5864 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
5865 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
5866 is disabled.
5867 + Check for the `raw_html` extension before emitting a raw HTML block.
5868 + Abstract out note/ref function (Jesse Rosenthal).
5869 + Add ReaderT monad for environment variables (Jesse Rosenthal).
5871 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
5872 subtitle, author, date (#3119). Note that, as a result of this change,
5873 authors may need to update CSS.
5875 * revealjs template: Added `notes-server` option
5876 (jgm/pandoc-templates#212, Yoan Blanc).
5878 * Beamer template:
5880 + Restore whitespace between paragraphs. This was
5881 a regression in the last release (jgm/pandoc-templates#207).
5882 + Added `themeoptions` variable (Carsten Gips).
5883 + Added `beamerarticle` variable. This causes the `beamerarticle`
5884 package to be loaded in beamer, to produce an article from beamer
5885 slides. (Carsten Gips)
5886 + Added support for `fontfamilies` structured variable
5887 (Artem Klevtsov).
5888 + Added hypersetup options (Jake Zimmerman).
5890 * LaTeX template:
5892 + Added dummy definition for `\institute`.
5893 This isn't a standard command, and we want to avoid a crash when
5894 `institute` is used with the default template.
5895 + Define default figure placement (Václav Haisman), since pandoc
5896 no longer includes `[htbp]` for figures. Users with custom templates
5897 will want to add this. See #3103.
5898 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
5899 Václav Haisman).
5901 * Moved template compiling/rendering code to a separate library.
5902 `doctemplates`. This allows the pandoc templating system to be
5903 used independently.
5905 * Text.Pandoc.Error: Fix out of index error in `handleError`
5906 (Matthew Pickering). The fix is to not try to show the exact line when
5907 it would cause an out-of-bounds error as a result of included files.
5909 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
5911 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
5912 addresses. Technically `**@user` is a valid email address, but if we
5913 allow things like this, we get bad results in markdown flavors
5914 that autolink raw email addresses (see #2940). So we exclude a few
5915 valid email addresses in order to avoid these more common bad cases.
5917 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
5918 emit the alt text, emphasized. This accords with what the ODT writer
5919 currently does. The user will still get a warning about a nonexistent
5920 image.
5922 * Fix example in API documentation (#3176, Thomas Weißschuh).
5924 * Tell where to get tarball in INSTALL (#3062).
5926 * Rename README to MANUAL.txt and add GitHub-friendly README.md
5927 (Albert Krewinkel, Kolen Cheung).
5929 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
5931 * MANUAL.txt:
5933 + Put note on structured vars in separate paragraph (#2148, Albert
5934 Krewinkel). Make it clearer that structured author variables require a
5935 custom template
5936 + Note that `--katex` works best with `html5` (#3077).
5937 + Fix the LaTeX and EPUB links in manual (Morton Fox).
5938 + Document `biblio-title` variable.
5940 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
5942 * Update KaTeX to v0.6.0 (Kolen Cheung).
5944 * Allow latest dependencies.
5946 * Use texmath 0.8.6.6 (#3040).
5948 * Allow http-client 0.4.30, which is the version in stackage lts.
5949 Previously we required 0.5.
5950 Remove CPP conditionals for earlier versions.
5952 * Remove support for GHC < 7.8 (Jesse Rosenthal).
5954 + Remove Compat.Monoid.
5955 + Remove an inline monad compatibility macro.
5956 + Remove Text.Pandoc.Compat.Except.
5957 + Remove directory compat.
5958 + Change constraint on mtl.
5959 + Remove unnecessary CPP condition in UTF8.
5960 + Bump base lower bound to 4.7.
5961 + Remove 7.6 build from .travis.yaml.
5962 + Bump supported ghc version in CONTRIBUTING.md.
5963 + Add note about GHC version support to INSTALL.
5964 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
5965 + Remove TagSoup compat.
5966 + Add EOL note to time compat module. Because time 1.4 is a boot library
5967 for GHC 7.8, we will support the compatibility module as long as we
5968 support 7.8. But we should be clear about when we will no longer need
5969 it.
5970 + Remove blaze-html CPP conditional.
5971 + Remove unnecessary CPP in custom Prelude.
5973pandoc (1.17.2)
5975 * Added Zim Wiki writer, template and tests. `zimwiki` is now
5976 a valid output format. (Alex Ivkin)
5978 * Changed email-obfuscation default to no obfuscation (#2988).
5979 + `writerEmailObfuscation` in `defaultWriterOptions` is now
5980 `NoObfuscation`.
5981 + the default for the command-line `--email-obfuscation` option is
5982 now `none`.
5984 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
5986 * Org writer:
5988 + Support arbitrary raw inlines (Albert Krewinkel).
5989 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
5990 parlance) to be included as `@@format:raw foreign format text@@`.
5991 + Improve Div handling (Albert Krewinkel). Div blocks handling is
5992 changed to make the output look more like idiomatic org mode:
5993 - Div-wrapped content is output as-is if the div's attribute is the
5994 null attribute.
5995 - Div containers with an id but neither classes nor key-value pairs
5996 are unwrapped and the id is added as an anchor.
5997 - Divs with classes associated with greater block elements are
5998 wrapped in a `#+BEGIN`...`#+END` block.
5999 - The old behavior for Divs with more complex attributes is kept.
6001 * HTML writer:
6003 + Better support for raw LaTeX environments (#2758).
6004 Previously we just passed all raw TeX through when MathJax was used for
6005 HTML math. This passed through too much. With this patch, only raw
6006 LaTeX environments that MathJax can handle get passed through.
6007 This patch also causes raw LaTeX environments to be treated
6008 as math, when possible, with MathML and WebTeX output.
6010 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
6011 (#2993). Markdown line breaks involve a newline, and simple and pipe
6012 tables can't contain one.
6014 * Make --webtex work with the Markdown writer (#1177).
6015 This is a convenient option for people using
6016 websites whose Markdown flavors don't provide for math.
6018 * Docx writer:
6020 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
6021 We treat display math like block quotes, and apply FirstParagraph style
6022 to paragraphs that follow them. These can be styled as the user
6023 wishes. (But, when the user is using indentation, this allows for
6024 paragraphs to continue after display math without indentation.)
6025 + Use actual creation time as doc prop (Jesse Rosenthal).
6026 Previously, we had used the user-supplied date, if available, for Word's
6027 document creation metadata. This could lead to weird results, as in
6028 cases where the user post-dates a document (so the modification might be
6029 prior to the creation). Here we use the actual computer time to set the
6030 document creation.
6032 * LaTeX writer:
6034 + Don't URI-escape image source (#2825). Usually this is a local file,
6035 and replacing spaces with `%20` ruins things.
6036 + Allow 'standout' as a beamer frame option (#3007).
6037 `## Slide title {.standout}`.
6039 * RST reader: Fixed links with no explicit link text. The link
6040 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
6041 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
6042 Closes Debian #828167 -- reported by Christian Heller.
6044 * Textile reader:
6046 + Fixed attributes (#2984). Attributes can't be followed by
6047 a space. So, `_(class)emph_` but `_(noclass) emph_`.
6048 + Fixed exponential parsing bug (#3020).
6049 + Fix overly aggressive interpretation as images (#2998).
6050 Spaces are not allowed in the image URL in textile.
6052 * LaTeX reader:
6054 + Fix `\cite` so it is a NormalCitation not AuthorInText.
6055 + Strip off double quotes around image source if present (#2825).
6056 Avoids interpreting these as part of the literal filename.
6058 * Org reader:
6060 + Add semicolon to list of special chars (Albert Krewinkel)
6061 Semicolons are used as special characters in citations syntax. This
6062 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
6063 suffix]`. Previously, parsing would have failed unless there was a space
6064 or other special character as the last <prefix> character.
6065 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
6066 A specification for an official Org-mode citation syntax was drafted by
6067 Richard Lawrence and enhanced with the help of others on the orgmode
6068 mailing list. Basic support for this citation style is added to the
6069 reader.
6070 + Support arbitrary raw inlines (Albert Krewinkel).
6071 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
6072 parlance) to be included as `@@format:raw foreign format text@@`.
6073 + Remove partial functions (Albert Krewinkel, #2991).
6074 Partial functions like `head` lead to avoidable errors and should be
6075 avoided. They are replaced with total functions.
6076 + Support figure labels (Albert Krewinkel, #2496, #2999).
6077 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
6078 respective image. This allows e.g. the LaTeX to add proper `\label`
6079 markup.
6080 + Improve tag and properties type safety (Albert Krewinkel).
6081 Specific newtype definitions are used to replace stringly typing of tags
6082 and properties. Type safety is increased while readability is improved.
6083 + Parse as headlines, convert to blocks (Albert Krewinkel).
6084 Emacs org-mode is based on outline-mode, which treats documents as trees
6085 with headlines are nodes. The reader is refactored to parse into a
6086 similar tree structure. This simplifies transformations acting on
6087 document (sub-)trees.
6088 * Refactor comment tree handling (Albert Krewinkel).
6089 Comment trees were handled after parsing, as pattern matching on lists
6090 is easier than matching on sequences. The new method of reading
6091 documents as trees allows for more elegant subtree removal.
6092 * Support archived trees export options (Albert Krewinkel).
6093 Handling of archived trees can be modified using the `arch` option.
6094 Archived trees are either dropped, exported completely, or collapsed to
6095 include just the header when the `arch` option is nil, non-nil, or
6096 `headline`, respectively.
6097 * Put export setting parser into module (Albert Krewinkel).
6098 Export option parsing is distinct enough from general block parsing to
6099 justify putting it into a separate module.
6100 * Support headline levels export setting (Albert Krewinkel).
6101 The depths of headlines can be modified using the `H` option. Deeper
6102 headlines will be converted to lists.
6103 * Replace ugly code with view pattern (Albert Krewinkel).
6104 Some less-than-smart code required a pragma switching of overlapping
6105 pattern warnings in order to compile seamlessly. Using view patterns
6106 makes the code easier to read and also doesn't require overlapping
6107 pattern checks to be disabled.
6108 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
6109 Org rules for allowed characters before or after markup chars were not
6110 checked for verbatim text. This resultet in wrong parsing outcomes of
6111 if the verbatim text contained e.g. space enclosed markup characters as
6112 part of the text (`=is_substr = True=`). Forcing the parser to update
6113 the positions of allowed/forbidden markup border characters fixes this.
6115 * LaTeX template: fix for obscure hyperref/xelatex issue.
6116 Here's a minimal case:
6118 \documentclass[]{article}
6119 \usepackage{hyperref}
6120 \begin{document}
6121 \section{\%á}
6122 \end{document}
6124 Without this change, this fails on the second invocation of xelatex.
6125 This affects inputs this like `# %á` with pdf output via xelatex.
6127 * trypandoc: call results 'html' instead of 'result'.
6128 This is for better compatibility with babelmark2.
6130 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
6131 MultiMarkdown was only mentioned as a supported Markdown dialect but not
6132 as a possible input or output format. A brief mention is added
6133 everywhere the other supported markdown dialects are mentioned.
6135 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
6136 Raw HTML is kept when the output format is Emacs Org mode.
6138 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
6140 * Text.Pandoc.Shared:
6142 + Introduce blocksToInlines function (Jesse Rosenthal).
6143 This is a lossy function for converting `[Block] -> [Inline]`. Its main
6144 use, at the moment, is for docx comments, which can contain arbitrary
6145 blocks (except for footnotes), but which will be converted to spans.
6146 This is, at the moment, pretty useless for everything but the basic
6147 `Para` and `Plain` comments. It can be improved, but the docx reader
6148 should probably emit a warning if the comment contains more than this.
6149 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
6150 + Add further formats for `normalizeDate` (Jesse Rosenthal).
6151 We want to avoid illegal dates -- in particular years with greater than
6152 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
6153 `%Y%m`, and finally `%Y`.
6154 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
6155 We only allow years between 1601 and 9999, inclusive. The ISO 8601
6156 actually says that years are supposed to start with 1583, but MS Word
6157 only allows 1601-9999. This should stop corrupted word files if the date
6158 is out of that range, or is parsed incorrectly.
6159 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
6160 Previously we parsed a list of dates, took the first one, and then
6161 tested its year range. That meant that if the first one failed, we
6162 returned nothing, regardless of what the others did. Now we test for
6163 sanity before running `msum` over the list of Maybe values. Anything
6164 failing the test will be Nothing, so will not be a candidate.
6166 * Docx reader:
6168 + Add simple comment functionality. (Jesse Rosenthal).
6169 This adds simple track-changes comment parsing to the docx reader. It is
6170 turned on with `--track-changes=all`. All comments are converted to
6171 inlines, which can list some information. In the future a warning will be
6172 added for comments with formatting that seems like it will be excessively
6173 denatured. Note that comments can extend across blocks. For that reason
6174 there are two spans: `comment-start` and `comment-end`. `comment-start`
6175 will contain the comment. `comment-end` will always be empty. The two
6176 will be associated by a numeric id.
6177 + Enable warnings in top-level reader (Jesse Rosenthal).
6178 Previously we had only allowed for warnings in the parser. Now we allow
6179 for them in the `Docx.hs` as well. The warnings are simply concatenated.
6180 + Add warning for advanced comment formatting. (Jesse Rosenthal).
6181 We can't guarantee we'll convert every comment correctly, though we'll
6182 do the best we can. This warns if the comment includes something other
6183 than Para or Plain.
6184 + Add tests for warnings. (Jesse Rosenthal).
6185 + Add tests for comments (Jesse Rosenthal).
6186 We test for comments, using all track-changes options. Note that we
6187 should only output comments if `--track-changes=all`. We also test for
6188 emitting warnings if there is complicated formatting.
6190 * README: update to include track-changes comments. (Jesse Rosenthal)
6192 * Improved Windows installer - don't ignore properties set on command-line.
6193 See #2708. Needs testing to see if this resolves the issue.
6194 Thanks to @nkalvi.
6196 * Process markdown extensions on command line in L->R order (#2995).
6197 Previously they were processed, very unintuitively, in R->L
6198 order, so that `markdown-tex_math_dollars+tex_math_dollars`
6199 had `tex_math_dollars` disabled.
6201 * Added `secnumdepth` variable to LaTeX template (#2920).
6203 * Include table of contents in README.html in Windows package.
6205 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
6206 In Writers.Shared, we strip leading and trailing spaces for display
6207 math. Since SoftBreak's are treated as spaces, we should strip those
6208 too.
6210 * beamer, latex templates: pass biblatexoptions directly in package load.
6211 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
6213 * CPP workaround for deprecation of `parseUrl` in http-client.
6215 * Removed some redundant class constraints.
6217 * make_oxs_package.sh - use OSX env variable.
6219 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
6220 old installing page from website.
6222 * Added `winpkg` target to Makefile. This downloads the windows package
6223 from appveyor and signs it using the key.
6225 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
6226 Raw TeX is kept verbatim when the output format is Emacs Org mode.
6228 * Support math with haddock-library >= 1.4.
6230 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
6231 wouldn't accept the package.
6233 * Update library dependency versions.
6235pandoc (1.17.1)
6237 * New output format: `docbook5` (Ivo Clarysse).
6239 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
6240 (API change).
6242 * Org writer:
6244 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
6245 This allows header attributes to be added to org documents in the form
6246 of `:PROPERTIES:` drawers. All available attributes are stored as
6247 key/value pairs. This reflects the way the org reader handles
6248 `:PROPERTIES:` blocks.
6249 + Add drawer capability (Carlos Sosa). For the implementation of the
6250 Drawer element in the Org Writer, we make use of a generic Block
6251 container with attributes. The presence of a `drawer` class defines
6252 that the `Div` constructor is a drawer. The first class defines the
6253 drawer name to use. The key-value list in the attributes defines
6254 the keys to add inside the Drawer. Lastly, the list of Block elements
6255 contains miscellaneous blocks elements to add inside of the Drawer.
6256 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
6257 reserved for internal use by Org-mode and should not be used.
6258 The `CUSTOM_ID` property is to be used instead, it is converted to the
6259 `ID` property for certain export format.
6261 * LaTeX writer:
6263 + Ignore `--incremental` unless output format is beamer (#2843).
6264 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
6265 Allow for optional argument in square brackets.
6266 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
6267 This allows one to access the hyphenation patterns in CTAN's
6268 hyph-utf8.
6269 + Add missing languages from hyph-utf8 (Andrew Dunning).
6270 + Improve use of `\strut` with `\minipage` inside tables
6271 (Jose Luis Duran). This improves spacing in multiline
6272 tables.
6273 + Use `{}` around options containing special chars (#2892).
6274 + Avoid lazy `foldl`.
6275 + Don't escape underscore in labels (#2921). Previously they were
6276 escaped as `ux5f`.
6277 + brazilian -> brazil for polyglossia (#2953).
6279 * HTML writer: Ensure mathjax link is added when math appears in footnote
6280 (#2881). Previously if a document only had math in a footnote, the
6281 MathJax link would not be added.
6283 * EPUB writer: set `navpage` variable on nav page.
6284 This allows templates to treat it differently.
6286 * DocBook writer:
6288 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
6289 + Properly handle `ulink`/`link` (Ivo Clarysse).
6291 * EPUB reader:
6293 + Unescape URIs in spine (#2924).
6294 + EPUB reader: normalise link id (Mauro Bieg).
6296 * Docx Reader:
6298 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
6299 `moveTo` and `moveFrom` are track-changes tags that are used when a
6300 block of text is moved in the document. We now recognize these tags and
6301 treat them the same as `insert` and `delete`, respectively. So,
6302 `--track-changes=accept` will show the moved version, while
6303 `--track-changes=reject` will show the original version.
6304 + Tests for track-changes moving (Jesse Rosenthal).
6306 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
6307 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
6308 would error out if zip-archive failed. We change the archive extraction
6309 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
6311 * Markdown, HTML readers: be more forgiving about unescaped `&` in
6312 HTML (#2410). We are now more forgiving about parsing invalid HTML with
6313 unescaped `&` as raw HTML. (Previously any unescaped `&`
6314 would cause pandoc not to recognize the string as raw HTML.)
6316 * Markdown reader:
6318 + Added bracket syntax for native spans (#168).
6319 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
6320 + Added `-s` to markdown-reader-more test.
6322 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
6323 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
6325 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
6326 (roblabla).
6328 * RST reader: Support `:class:` option for code block in RST reader
6329 (Sidharth Kapur).
6331 * Org reader (all Albert Krewinkel, except where noted otherwise):
6333 + Stop padding short table rows.
6334 Emacs Org-mode doesn't add any padding to table rows. The first
6335 row (header or first body row) is used to determine the column count,
6336 no other magic is performed.
6337 + Refactor rows-to-table conversion. This refactors
6338 the codes conversing a list table lines to an org table ADT.
6339 The old code was simplified and is now slightly less ugly.
6340 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
6341 This fixes Org mode parsing of some corner cases regarding empty cells
6342 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
6343 two empty cells, but would be parsed as a single cell containing a pipe
6344 character. Empty rows where parsed as alignment rows and dropped from
6345 the output.
6346 + Fix spacing after LaTeX-style symbols.
6347 The org-reader was dropping space after unescaped LaTeX-style symbol
6348 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
6349 instead. This seems to be because the LaTeX-reader treats the
6350 command-terminating space as part of the command. Dropping the trailing
6351 space from the symbol-command fixes this issue.
6352 + Print empty table rows. Empty table rows should not
6353 be dropped from the output, so row-height is always set to be at least 1.
6354 + Move parser state into separate module.
6355 The org reader code has become large and confusing. Extracting smaller
6356 parts into submodules should help to clean things up.
6357 + Add support for sub/superscript export options.
6358 Org-mode allows to specify export settings via `#+OPTIONS` lines.
6359 Disabling simple sub- and superscripts is one of these export options,
6360 this options is now supported.
6361 + Support special strings export option Parsing of special strings
6362 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
6363 option.
6364 + Support emphasized text export option. Parsing of emphasized text can
6365 be toggled using the `*` option. This influences parsing of text marked
6366 as emphasized, strong, strikeout, and underline. Parsing of inline math,
6367 code, and verbatim text is not affected by this option.
6368 + Support smart quotes export option. Reading of smart quotes can be
6369 toggled using the `'` option.
6370 + Parse but ignore export options. All known export options are parsed
6371 but ignored.
6372 + Refactor block attribute handling. A parser state attribute was used
6373 to keep track of block attributes defined in meta-lines. Global state
6374 is undesirable, so block attributes are no longer saved as part of the
6375 parser state. Old functions and the respective part of the parser state
6376 are removed.
6377 + Use custom `anyLine`. Additional state changes need to be made after
6378 a newline is parsed, otherwise markup may not be recognized correctly.
6379 This fixes a bug where markup after certain block-types would not be
6380 recognized.
6381 + Add support for `ATTR_HTML` attributes (#1906).
6382 Arbitrary key-value pairs can be added to some block types using a
6383 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
6384 when exporting to HTML, but since we cannot make this distinction here,
6385 the attributes are always added. The functionality is now supported
6386 for figures.
6387 + Add `:PROPERTIES:` drawer support (#1877).
6388 Headers can have optional `:PROPERTIES:` drawers associated with them.
6389 These drawers contain key/value pairs like the header's `id`. The
6390 reader adds all listed pairs to the header's attributes; `id` and
6391 `class` attributes are handled specially to match the way `Attr` are
6392 defined. This also changes behavior of how drawers of unknown type
6393 are handled. Instead of including all unknown drawers, those are not
6394 read/exported, thereby matching current Emacs behavior.
6395 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
6396 + Respect drawer export setting. The `d` export option can be used
6397 to control which drawers are exported and which are discarded.
6398 Basic support for this option is added here.
6399 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
6400 Also fix up tab handling for leading whitespace in code blocks.
6401 + Support new syntax for export blocks. Org-mode version 9
6402 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
6403 where `<FORMAT>` is the format of the block's content, the new
6404 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
6405 supported.
6406 + Refactor `BEGIN...END` block parsing.
6407 + Fix handling of whitespace in blocks, allowing content to be indented
6408 less then the block header.
6409 + Support org-ref style citations. The *org-ref* package is an
6410 org-mode extension commonly used to manage citations in org
6411 documents. Basic support for the `cite:citeKey` and
6412 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
6413 + Split code into separate modules, making for cleaner code and
6414 better decoupling.
6416 * Added `docbook5` template.
6418 * `--mathjax` improvements:
6420 + Use new CommonHTML output for MathJax (updated default MathJax URL,
6421 #2858).
6422 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
6423 This is designed for cases where the input is always TeX and maximal
6424 conformity with TeX is desired. It seems to be smaller and load faster
6425 than what we used before. See #2858.
6426 + Load the full MathJax config to maximize loading speed (KolenCheung).
6428 * Bumped upper version bounds to allow use of latest packages
6429 and compilation with ghc 8.
6431 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
6432 #2310, #2310, #2824). This fixes behavior of roots, e.g.
6433 `\sqrt[3]{x}`, and issues with sub/superscript positioning
6434 and matrix column alignment in docx.
6436 * README:
6438 + Clarified documentation of `implicit_header_references` (#2904).
6439 + Improved documentation of `--columns` option.
6441 * Added appveyor setup, with artifacts (Jan Schulz).
6443 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
6445 * LaTeX template: support for custom font families (vladipus).
6446 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
6447 can find some other usages. Example usage in YAML metadata:
6449 fontfamilies:
6450 - name: \cyrillicfont
6451 font: Liberation Serif
6452 - name: \cyrillicfonttt
6453 options: Scale=MatchLowercase
6454 font: Liberation
6456 * Create unsigned msi as build artifact in appveyor build.
6458 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
6460pandoc (1.17.0.3)
6462 * LaTeX writer: Fixed position of label in figures (#2813).
6463 Previously the label wasn't in the right place, and `\ref`
6464 wouldn't work properly.
6465 * Added .tei test files to pandoc.cabal so they'll be included
6466 in tarball (#2811).
6467 * Updated copyright dates.
6469pandoc (1.17.0.2)
6471 * Fixed serious regression in `htmlInBalanced`, which caused
6472 newlines to be omitted in some raw HTML blocks in Markdown
6473 (#2804).
6475pandoc (1.17.0.1)
6477 * File scope is no longer used when there are no input files (i.e.,
6478 when input comes from stdin). Previously file scope was triggered
6479 when the `json` reader was specified and input came from `stdin`,
6480 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
6481 thanks to Fedor Sheremetyev for calling the bug to our attention.)
6482 * Improved documentation of templates (#2797).
6484pandoc (1.17)
6486 * Added `--file-scope` option (Jesse Rosenthal).
6487 By default pandoc operates on multiple files by first concatenating
6488 them (around extra line breaks) and then processing the joined file. So
6489 it only parses a multi-file document at the document scope. This has the
6490 benefit that footnotes and links can be in different files, but for
6491 some purposes it is useful to parse the individual files first
6492 and then combine their outputs (e.g. when the files use footnotes
6493 or links with the same labels). The `--file-scope` option causes
6494 pandoc to parse the files first, and then combine the parsed output,
6495 instead of combining before parsing. `--file-scope` is selected
6496 automatically for binary input files (which cannot be concatenated)
6497 and for pandoc json.
6499 * Add TEI Writer (Chris Forster) and `tei` output format.
6501 * Added a general `ByteStringReader` with warnings, used by the docx
6502 reader (API change, Jesse Rosenthal).
6504 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
6506 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
6507 to `Set String.` This avoids performance problems in documents with
6508 many identically named headers (API change, #2671).
6510 * Removed `tex_math_single_backslash` from `markdown_github` options
6511 (#2707).
6513 * Make language extensions as well as full language names
6514 trigger syntax highlighting. For example, `py` will now work as
6515 well as `python` (jgm/highlighting-kate#83).
6517 * Added `institute` variable to latex, beamer templates (Fraser
6518 Tweedale, Josef Svenningsson).
6520 * Docx reader (Jesse Rosenthal):
6522 + Handle alternate content. Some word functions (especially graphics)
6523 give various choices for content so there can be backwards compatibility.
6524 + Don't turn numbered headers into lists.
6525 + Docx Reader: Add state to the parser, for warnings
6526 + Update feature checklist in source code.
6527 + Get rid of `Modifiable` typeclass.
6528 + Add tests for adjacent hyperlinks.
6529 + Add a "Link" modifier to `Reducible`. We want to make sure that
6530 links have their spaces removed, and are appropriately smushed
6531 together (#2689).
6533 * HTML reader:
6535 + Fixed behavior of base tag (#2777).
6536 If the base path does not end with slash, the last component
6537 will be replaced. E.g. base = `http://example.com/foo`
6538 combines with `bar.html` to give `http://example.com/bar.html`.
6539 If the href begins with a slash, the whole path of the base
6540 is replaced. E.g. base = `http://example.com/foo/` combines
6541 with `/bar.html` to give `http://example.com/bar.html`.
6542 + Rewrote `htmlInBalanced`. This version avoids an exponential
6543 performance problem with `<script>` tags, and it should be faster
6544 in general (#2730).
6545 + Properly handle an empty cell in a simple table (#2718).
6546 + Handle multiple `<meta>` tags with same name. Put them in a list
6547 in the metadata so they are all preserved, rather than (as before)
6548 throwing out all but one..
6550 * Markdown reader:
6552 + Improved pipe table parsing (#2765).
6553 + Allow `+` separators in pipe table cells. We already allowed
6554 them in the header, but not in the body rows, for some reason.
6555 This gives compatibility with org-mode tables.
6556 + Don't cross line boundary parsing pipe table row.
6557 Previously an Emph element could be parsed across the newline
6558 at the end of the pipe table row.
6559 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
6560 performance (#2730).
6561 + Fixed bug with smart quotes around tex math.
6563 * LaTeX reader:
6565 + Handle interior `$` characters in math (#2743). For example,
6566 `$$\hbox{$i$}$$`.
6567 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
6568 This gives better results when people write e.g. `\TeX{}` in Markdown.
6569 + Properly handle LaTeX "math" environment as inline math (#2171).
6571 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
6572 Closes #2674.
6574 * Org reader (Albert Krewinkel):
6576 + Prefix even empty figure names with "fig:" (#2643). The
6577 convention used by pandoc for figures is to mark them by prefixing
6578 the name with `fig:`. The org reader failed to do this if a figure
6579 had no name.
6580 + Refactor link-target processing (#2684).
6582 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
6583 Thanks to @c-foster.
6585 * HTML writer: Don't include alignment attribute for default table columns.
6586 Previously these were given "left" alignment. Better to leave off
6587 alignment attributes altogether (#2694).
6589 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
6590 better compatibility with other Markdown flavors (Henrik Tramberend).
6592 * LaTeX writer:
6594 + Use image identifier to create a label and hypertarget for
6595 figures (Mauro Bieg).
6596 + Avoid double toprule in headerless table with caption (#2742).
6597 + Clean up options parser (Jesse Rosenthal).
6598 + Treat `memoir` template with `article` option as article, instead
6599 of treating all `memoir` templates as books.
6600 + Allow more flexible table alignment (Henrik Tramberend, #2665).
6601 New default is not to include `[c]` option (which is the default
6602 anyway if no positioning is specified). Now LaTeX emplates can
6603 control the overall table alignment in a document by setting the
6604 longtable length variables `LTleft` and `LTright`. For example,
6605 `\setlength\LTleft\parindent\setlength\LTright\fill`
6606 will create left-aligned tables that respect paragraph indentation.
6608 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
6610 * Org writer - pass through RawInline with format "org".
6612 * DokuWiki writer: use `$$` for display math.
6614 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
6616 * Make protocol-relative URIs work again (#2737).
6618 * make_osx_package.sh: Use env variable for developer id certs.
6620 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
6621 problems (#2734).
6623 * Allow `zip-archive` 0.3.
6625 * Allow `aeson` 0.11.
6627pandoc (1.16.0.2)
6629 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
6631 * Fixed regression in latex smart quote parsing (#2645).
6632 In cases where a match was not found for a quote, everything
6633 from the open quote to the end of the paragraph was being dropped.
6635pandoc (1.16.0.1)
6637 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
6638 raises an error if a full path is given.
6640 * Org reader: Fix function dropping subtrees tagged `:noexport`
6641 (Albert Krewinkel, #2628):
6643 * Markdown reader: renormalize table column widths if they exceed 100%
6644 (#2626).
6646 * Textile reader: don't allow block HTML tags in inline contexts.
6647 The reader previously did allow this, following redcloth,
6648 which happily parses
6650 Html blocks can be <div>inlined</div> as well.
6652 as
6654 <p>Html blocks can be <div>inlined</div> as well.</p>
6656 This is invalid HTML. The above sample now produces;
6658 <p>Html blocks can be</p>
6659 <div>
6660 <p>inlined</p>
6661 </div>
6662 <p>as well.</p>
6664 * Improved default template lookup for custom lua scripts (#2625).
6665 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
6666 pandoc would look for the template in
6667 `~/.pandoc/templates/default./path/to/lua/script.lua`.
6668 With this change it will look in the more reasonable
6669 `~/.pandoc/templates/default.script.lua`. This makes it possible to
6670 store default templates for custom writers.
6672 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
6673 (#2615).
6675 * LaTeX writer: restore old treatment of Span (#2624). A Span is
6676 now rendered with surrounding `{}`, as it was before 1.16.
6678 * Entity handling fixes: improved handling of entities like
6679 `&lang;` that require a trailing semicolon. Allow uppercase
6680 `x` in numerical hexadecimal character references, working
6681 around a tagsoup bug.
6683 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
6684 memory use on compile. With aeson 0.10 we were getting an out of
6685 memory error on a 2GB Ubuntu 64-bit VM.
6687 * Improved deb package creation script. Made `DPKGVER` work.
6688 Renamed `COMMIT` to `TREE`. You should now be able to do
6689 `TREE=1.16.0.1 DPKGVER=2 make deb`.
6692pandoc (1.16)
6694 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
6696 + Added syntax for link and image attributes to pandoc's Markdown.
6697 + Updated readers and writers to use link and image attributes
6698 when appropriate.
6699 + Support image attributes in Docx, Textile, RST readers.
6701 * Renamed link attribute extensions. The old `link_attributes` is
6702 now `mmd_link_attributes`, and `link_attributes` now enables the
6703 new pandoc-style link and image attributes (API change).
6704 Note: this change could break some existing workflows.
6706 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
6707 Added threefold wrapping option.
6709 + Command line option: deprecated `--no-wrap`, added
6710 `--wrap=[auto|none|preserve]`
6711 + Added `WrapOption`, exported from `Text.Pandoc.Options`
6712 + Changed type of `writerWrapText` in `WriterOptions` from
6713 `Bool` to `WrapOption`.
6714 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
6715 + Supported `SoftBreak` in readers and writers.
6717 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
6718 change, Mauro Bieg).
6720 * Added `--dpi` command-line option (Mauro Bieg).
6722 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
6723 This change makes `--no-tex-ligatures` affect the LaTeX reader
6724 as well as the LaTeX and ConTeXt writers. If it is used,
6725 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
6726 literally, rather than parsing ligatures for quotation marks
6727 and dashes. And the LaTeX writer will print unicode quotation
6728 mark and dash characters literally, rather than converting
6729 them to the standard ASCII ligatures. Note that `--smart` has
6730 no effect on the LaTeX reader. `--smart` is still the default
6731 for all input formats when LaTeX or ConTeXt is the output format,
6732 *unless* `--no-tex-ligatures` is used.
6734 Some examples to illustrate the logic:
6736 ```
6737 % echo "'hi'" | pandoc -t latex
6738 `hi'
6739 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
6740 'hi'
6741 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
6742 ‘hi’
6743 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
6744 <p>'hi'</p>
6745 % echo "'hi'" | pandoc -f latex
6746 <p>’hi’</p>
6747 ```
6749 * Removed deprecated options `--offline` and `--html5`.
6751 * Fixed language code for Czech (`cs` not `cz`) (#2597).
6753 * Implemented `east_asian_line_breaks` extension (#2586).
6754 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
6755 to `Extension` (API change). This extension is like
6756 `ignore_line_breaks`, but smarter -- it only ignores line breaks
6757 between two East Asian wide characters. This makes it better suited
6758 for writing with a mix of East Asian and non-East Asian scripts.
6760 * Added support for PDF creation via `wkhtmltopdf`.
6761 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
6762 if you have math.) Margins can be set using the variables
6763 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
6764 Other styling can be done through CSS.
6766 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
6767 We were capturing final colons as in `[@foo: bar]`; the citation id
6768 was being parsed as `@foo:`.
6770 * ICML writer:
6772 + Fixed image syntax for local files (#2589).
6773 + Changed type of `writeICML` (Mauro Bieg).
6774 API change: It is now `WriterOptions -> Pandoc -> IO String`.
6775 Also handle new image attributes.
6776 + Intersperse line breaks instead of appending them to
6777 every `ParagraphStyleRange` (Mauro Bieg, #2501).
6778 + Add `Cite` style to citations (Mauro Bieg).
6779 + Added figure handling (#2590, Mauro Bieg).
6780 + Better handling of math. Instead of just printing the raw tex,
6781 we now try to fake it with unicode characters.
6783 * HTML writer: Include `example` class for example lists (#2524).
6785 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
6787 + Support for percentage widths/heights
6788 + Use `Attr` instead of title to get dimensions from ODT walker
6789 to `writeOpenDocument`.
6791 * AsciiDoc writer:
6793 + Support anchors in spans and divs with id elements
6794 (jgm/pandoc-citeproc#143).
6795 + Fixed code blocks (#1861).
6797 * Haddock writer: omit formatting inside links, which isn't supported
6798 by Haddock (#2515).
6800 * MediaWiki writer: Fixed spacing issues in table cells.
6802 + Start cell on new line unless it's a single Para or Plain
6803 (#2606).
6804 + For single Para or Plain, insert a space after the `|` to
6805 avoid problems when the text begins with a character like
6806 `-` (#2604).
6808 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
6810 * LaTeX writer:
6812 + Add support for GAP highlighting using listings (Raniere Silva).
6813 + Consider `header-includes` content as well as templates
6814 when determining whether to use csquotes (Andreas Lööw).
6815 + Create defaults for geometry using `margin-left` etc.
6816 If `geometry` has no value, but `margin-left`, `margin-right`,
6817 `margin-top`, and/or `-margin-bottom` are given, a default value
6818 for `geometry` is created from these. Note that these variables
6819 already affect PDF production via HTML5 with `wkhtmltopdf`.
6821 * ConTeXt writer: set default layout based on `margin-left`, etc.
6822 This sets up `\setuplayout` based on the variables `margin-left`,
6823 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
6824 is given.
6826 * Docx writer: better handling of PDF images. Previously we tried
6827 to get the image size from the image even if an explicit size was
6828 specified. Since we still can't get image size for PDFs, this made
6829 it impossible to use PDF images in docx. Now we don't try to get
6830 the image size when a size is already explicitly specified.
6832 * Markdown writer: use raw HTML for link/image attributes when
6833 the `link_attributes` extension is unset and `raw_html` is set (#2554).
6835 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
6837 * LaTeX reader:
6839 + Improved smart quote parsing (#2555). This fixes redering of
6840 unmatched quotes.
6841 + Use curly quotes for unmatched ` (#2555).
6842 + Allow blank space between braced arguments of commands (#2592).
6844 * Markdown reader:
6846 + Improved pipe table relative widths. Previously pipe table
6847 columns got relative widths (based on the header underscore lines)
6848 when the source of one of the rows was greater in width than the
6849 column width. This gave bad results in some cases where much of
6850 the width of the row was due to nonprinting material (e.g. link
6851 URLs). Now pandoc only looks at printable width (the width of a
6852 plain string version of the source), which should give better results.
6853 Thanks to John Muccigrosso for bringing up the issue.
6854 + Fixed parsing bug with macros. Previously macro definitions in
6855 indented code blocks were being parsed as macro definitions, not code.
6857 * Textile reader: skip over attribute in image source (#2515).
6858 We don't have a place yet for styles or sizes on images, but
6859 we can skip the attributes rather than incorrectly taking them
6860 to be part of the filename.
6862 * Docx reader: Handle dummy list items (Jesse Rosenthal).
6863 These come up when people create a list item and then delete the
6864 bullet. It doesn't refer to any real list item, and we used to ignore
6865 it.
6867 * CommonMark reader/writer rewritten to use latest `cmark`.
6869 * Fixed Emoji character definitions (#2523). There were many bugs in the
6870 definitions.
6872 * `Text.Pandoc.CSS`:
6874 + Added `pickStylesToKVs` function to extract multiple properties at
6875 once (API change, Mauro Bieg).
6876 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
6878 * `trypandoc`: sort drop-down lists.
6880 * Beamer template:
6882 + Made `\euro` conditional on presence of character.
6883 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
6884 + Moved `header-includes` before setting of title (Thomas Hodgson),
6885 to match the LaTeX template (jgm/pandoc-templates#168).
6886 + Added `section-titles` variable (defaults to true)
6887 to enable/suppress section title pages in beamer
6888 slide shows (Thomas Hodgson).
6889 + Moved beamer themes after fonts, so that themes can
6890 change fonts. (Previously the fonts set were being
6891 clobbered by lmodern.sty.) (Thomas Hodgson).
6893 * Beamer/LaTeX template changes (Thomas Hodgson):
6894 + Added `thanks` variable
6895 + Use `parskip.sty` when `indent` isn't set (fall back to using
6896 `setlength` as before if `parskip.sty` isn't available).
6897 + Use `biblio-style` with biblatex.
6898 + Added `biblatexoptions` variable.
6900 * LaTeX template changes:
6902 + Added `paper` after `$papersize$` variable in latex template.
6903 Thus you can say `papersize: a4` and the latex will contain
6904 `a4paper`. This change may break some existing workflows; if
6905 you currently specify `a4paper`, you'll get `a4paperpaper` which
6906 is meaningless. However, the change seems worth it, as it will
6907 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
6908 and html->pdf via wkhtmltopdf.
6909 + Only pass options to color package if `colorlinks` is set
6910 (Andrew Dunning).
6911 + Make definition of `\euro` conditional in xelatex/lualatex,
6912 as it is already for pdflatex (Andrew Dunning).
6913 + Removed setting of `subject` in PDF metadata.
6914 This used to be set to the subtitle, but really the subtitle
6915 need not give the subject. Also, `subtitle` can contain formatting,
6916 so we'd need, at least, a plain text version for this.
6917 + Moved `header-includes` before setting of `\title`, `\author`,
6918 etc. This allows these macros to be redefined.
6919 + Use `\subtitle` command for `subtitle`, instead of tacking it
6920 on to the title as before. We give a no-op fallback definition if it
6921 is not defined. This change should produce much better results
6922 in classes that support `\subtitle`. With the default article
6923 class, which does not define `\subtitle`, subtitles will no
6924 longer be printed unless the user defines `\subtitle` and
6925 redefines `\maketitle`.
6926 + Moved redefinitions of `\paragraph` and `\subparagraph` to
6927 before header-includes.
6929 * Context template:
6931 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
6932 needed for things to work on ConTeXt stable from TeXLive 2015.
6933 + Revert use of `\setuphead` in title block (Andrew Dunning,
6934 Rik Kabel).
6936 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
6938 * Fixed man template so disabling hyphenation actually works.
6939 The command needs to come after .TH.
6941 * Added 'navigation' variable to beamer template (#2543).
6942 Valid values are `empty` (the default), `horizontal`, `vertical`,
6943 and `frame`. Note that this changes the default behavior from
6944 `horizontal` to `empty`. Closes #2543.
6946 * Added `toc` to HTML slide format templates (Andrew Dunning),
6947 so that `--toc` creates a contents slide.
6949 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
6951 * Allow pipe tables with no body rows (#2556).
6952 Previously this raised a runtime error.
6954 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
6955 as URL. The Haskell URI parsing routines will accept "C:" as a
6956 scheme, so we rule that out manually. This helps with
6957 `--self-contained` and absolute Windows paths.
6959 * Define a `meta-json` variable for all writers (#2019). This contains
6960 a JSON version of all the metadata, in the format selected for the
6961 writer. So, for example, to get just the YAML metadata, you can run
6962 pandoc with the following custom template: `$meta-json$`. The intent
6963 is to make it easier for static site generators and other tools to get
6964 at the metadata.
6966 * Document limitations of --self-contained (#2553).
6968 * Improved Citations section of README (#2551). Added information
6969 about `link-citations` and a link to the pandoc-citeproc man page.
6971 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
6972 in base < 4.6.
6974 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
6976 * Improved implicit pandoc-citeproc inclusion.
6977 The filter pandoc-citeproc is automatically used when
6978 `--bibliography` is specified on the command line, unless
6979 `--natbib` or `--biblatex` is used. However, previously this
6980 only worked if `--bibliography` was spelled out in full, and not
6981 if `--biblio` was used.
6983 * reveal.js: Interpret pauses correctly for all headers (#2530).
6984 Previously, when using headers below the slide level, pauses are left
6985 uninterpreted into pauses. In my opinion, unexpected behavior but
6986 intentional looking at the code.
6988 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
6990 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
6991 Bieg, API change).
6993 * ImageSize: Added functions for converting between image dimensions
6994 (Mauro Bieg).
6996 * Use lts-3.18 in stack.yaml. This avoids Windows build
6997 issues with the HTTP library.
6999 * Bump version bounds for dependencies.
7001pandoc (1.15.2.1)
7003 * Added two missing test files, and `stack.yaml`, to
7004 `extra-source-files` so they're included in the source tarball.
7006 * reveal.js template: Fixed parallaxBackground options.
7007 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
7008 need integer values, not strings. (Vaughn Iverson)
7010pandoc (1.15.2)
7012 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
7013 ConTeXt rather than LaTeX (#2463).
7015 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
7017 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
7018 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
7019 (API change).
7021 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
7022 parsing (#2469). Tightened up the inline HTML parser so it disallows
7023 TagWarnings.
7025 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
7027 * Org reader:
7029 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
7030 Paragraphs can be followed by lists, even if there is no blank line
7031 between the two blocks. However, this should only be true if the
7032 paragraph is not within a list, were the preceding block should be
7033 parsed as a plain instead of paragraph (to allow for compact lists).
7034 Thanks to @rgaiacs for bringing this up.
7035 + Allow toggling header args (Albert Krewinkel, #2269).
7036 Org-mode allows to skip the argument of a code block header argument if
7037 it's toggling a value. Argument-less headers are now recognized,
7038 avoiding weird parsing errors.
7039 + Fix markup parsing in headers (Albert Krewinkel, #2504).
7040 Markup as the very first item in a header wasn't recognized. This was
7041 caused by an incorrect parser state: positions at which inline markup
7042 can start need to be marked explicitly by changing the parser state.
7043 This wasn't done for headers. The proper function to update the state
7044 is now called at the beginning of the header parser, fixing this issue.
7045 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
7046 Smart quotes, ellipses, and dashes should behave like normal quotes,
7047 single dashes, and dots with respect to text markup parsing.
7048 + Require whitespace around definition list markers (#2518).
7049 This rule was not checked before, resulting in bugs with footnotes
7050 and some link types.
7052 * Markdown reader:
7054 + Pipe tables with long lines now get relative cell widths (#2471).
7055 If a pipe table contains a line longer than the column width (as set by
7056 `--columns` or 80 by default), relative widths are computed based on the
7057 widths of the separator lines relative to the column width. This should
7058 solve persistent problems with long pipe tables in LaTeX/PDF output, and
7059 give more flexibility for determining relative column widths in other
7060 formats, too. For narrower pipe tables, column widths of 0 are used,
7061 telling pandoc not to specify widths explicitly in output formats that
7062 permit this.
7063 + Improved parser for `mmd_title_block`. We now allow blank metadata
7064 fields. These were explicitly disallowed before.
7065 + Citation keys can now contain `://`, so URLs and DOIs can be used
7066 as citation keys (jgm/pandoc-citeproc#166).
7068 * Beamer template: fix incompatibility of section slides with natbib.
7069 Natbib (and presumably biblatex) bibliography commands create
7070 their own section. Since these are in frame environments,
7071 we have an incompatibility with the `\AtBeginSection` macro
7072 which creates a special frame when a new section occurs.
7073 (We can't have a frame inside another frame.) This change disables
7074 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
7075 bringing the problem to my attention. This supersedes #145. See
7076 discussion there.
7078 * Textile reader: don't do smart punctuation unless explicitly asked
7079 (#2480). Note that although smart punctuation is part of the textile
7080 spec, it's not always wanted when converting from textile
7081 to, say, Markdown. So it seems better to make this an option.
7083 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
7084 The `comment` environment is handled in a similar way to the
7085 `verbatim` environment, except that its content is discarded.
7087 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
7088 Jesse Rosenthal). This fixes a problem with links in notes.
7090 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
7091 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
7092 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
7093 they aren’t set already. See #895.
7095 * LaTeX writer:
7097 + Use proper command for `\textarabic` (Mauro Bieg).
7098 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
7099 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
7100 to link to Div or Span elements. We now don't bother defining `\label`
7101 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
7102 + Avoid footnotes in list of figures (#1506).
7103 + Properly handle footnotes in captions (#1506).
7104 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
7105 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
7106 `toccolor` is set (#2508).
7108 * Textile writer: support start number in ordered lists (#2465).
7110 * OpenDocument writer: Allow customization of opendocument
7111 automatic styles. Automatic styles can now be inserted in the
7112 template, which now provides the enclosing `<office:automatic-styles>`
7113 tags (#2520).
7115 * Docx writer: insert space between footnote reference and note (#2527).
7116 This matches Word's default behavior.
7118 * EPUB writer: don't download linked media when `data-external` attribute
7119 set (#2473). By default pandoc downloads all linked media and includes it
7120 in the EPUB container. This can be disabled by setting `data-external` on
7121 the tags linking to media that should not be downloaded. Example:
7123 <audio controls="1">
7124 <source src="http://example.com/music/toccata.mp3"
7125 data-external="1" type="audio/mpeg">
7126 </source>
7127 </audio>
7129 * HTML writer: use width on whole table if col widths sum to < 100%.
7130 Otherwise some browsers display the table with the columns
7131 separated far apart.
7133 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
7134 `abstract` (Andrew Dunning).
7136 * HTML-based templates (Andrew Dunning):
7138 + Use en dash instead of hyphen between title prefix and title.
7139 + Add `keywords` to metadata.
7140 + Add `lang`, `dir`, `quotes` where missing.
7141 + Always make author and date display conditional.
7142 + Updated dzslides template from source.
7144 * Man template: make "generated by" comment conditional.
7146 * LaTeX, Beamer templates:
7148 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
7149 filled by commands that make babel understand the polyglossia-style
7150 language directives (Mauro Bieg, #137).
7151 + Improved formatting of conditionals; `$for$` is always provided to allow
7152 multiple options (Andrew Dunning, #141).
7153 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
7154 to improve support for LuaTeX (Andrew Dunning, #135).
7155 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
7156 - use same options for all LaTeX engines;
7157 - add `subtitle` and `keywords` to PDF metadata;
7158 - do not override `hyperref` link coloring without user input, effectively making
7159 the `hidelinks` option the default (removed as a separate variable);
7160 - link colors can be enabled (using a slightly darker version of the old
7161 defaults) using a new `colorlinks` variable, automatically used by
7162 the LaTeX writer when custom colors are specified;
7163 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
7164 `colorlinks`, and is only applied if `colorlinks` is disabled.
7166 * ConTeXt template (Andrew Dunning):
7168 + New variables for controlling styles: `linkstyle`, `linkcolor`,
7169 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
7170 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
7171 `monofont`, `mathfont`, `fontsize`.
7172 + Default template no longer supports MkII.
7173 + Improve writing of title block (suppressing numbering of first page).
7174 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
7175 + Support `subtitle`, `abstract`.
7176 + Support list of figures (`lof`), list of tables (`lot`).
7177 + Disable link styling by default.
7178 + Define styles for all section types.
7179 + Enable microtype.
7180 + Improved formatting of conditionals.
7182 * Beamer template: added code to prevent slide breaks inside paragraphs
7183 (#2422, thanks to Nick Bart). This will matter, in practice, only when
7184 `allowframebreaks` is used. It is especially helpful for bibliography
7185 slides.
7187 * OpenDocument template: Add `<office:automatic-styles>` tag around
7188 automatic styles. The writer now longer provides this (see #2520).
7190 * Restored Text.Pandoc.Compat.Monoid.
7192 * Do not export (<>) from custom Prelude. The Prelude now matches
7193 base 4.8 Prelude's API.
7195 * Don't use custom prelude with ghc 7.10. Use the custom prelude
7196 only for earlier versions. This change makes `stack ghci` and
7197 `cabal repl` work (#2503), at least with ghc 7.10.
7199 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
7200 This prevents problems building haddocks with "C" locale.
7202 * Change default for old-locale flag to False.
7204 * Use stack in deb, osx, and Windows package generators.
7206 * Added Vagrantfile for building deb in vm.
7207 This should help in automating binary package creation. 'make package'
7208 will make the package. 'make package COMMIT=blah' will make the package
7209 from commit blah.
7211 * README:
7213 + Consistent capitalization for pandoc and Markdown.
7214 + Fixed `auto_identifiers` examples (Benoit Schweblin).
7215 + Improved documentation of template variables (Andrew Dunning).
7217pandoc (1.15.1.1)
7219 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
7220 This way we have uniform separators, whether on Windows or Linux.
7221 This should solve a problem where on some Windows versions
7222 the data files weren't being found (#2459).
7224pandoc (1.15.1)
7226 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
7227 and reexported from `Text.Pandoc` (Alex Vong). This allows
7228 writers to access it. (Alex Vong) (API change)
7230 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
7231 `subscripts` (#2401).
7233 * Added `odt` as input format (Martin Linnemann). Added new module
7234 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
7235 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
7236 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
7237 Partly implemented features: Citations, Tables.
7239 * Markdown Reader:
7241 + Add basic tests for each header style (Ophir Lifshitz).
7242 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
7243 + Skip spaces in headers (Ophir Lifshitz).
7244 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
7245 `# Header {id="myid" class="foo bar"}`
7246 is now equivalent to `# Header {#myid .foo .bar}`.
7247 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
7248 (Kristof Bastiaensen)
7249 + Pipe tables: allow indented columns. Previously the left-hand column
7250 could not start with 4 or more spaces indent. This was inconvenient
7251 for right-aligned left columns. Note that the first (header column)
7252 must still have 3 or fewer spaces indentation, or the table will be
7253 treated as an indented code block.
7254 + Fix regression: allow HTML comments containing `--`.
7255 Technically this isn't allowed in an HTML comment, but
7256 we've always allowed it, and so do most other implementations.
7257 It is handy if e.g. you want to put command line arguments
7258 in HTML comments.
7260 * LaTeX reader:
7262 + Don't eat excess whitespace after macros with only optional
7263 arguments (#2446).
7264 + Support longtable (#2411).
7265 + Implement `\Cite` (#2335).
7266 + Support abstract environment. The abstract populates an
7267 `abstract` metadata field.
7268 + Properly handle booktabs lines. Lines aren't part of the
7269 pandoc table model, so we just ignore them (#2307).
7271 * HTML reader:
7273 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
7274 + Updated for new automatic header attributes.
7275 + Add auto identifiers if not present on headers. This makes
7276 TOC linking work properly.
7277 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
7278 + Test `<ol>` type, class, and inline list-style(-type) CSS
7279 (Ophir Lifshitz).
7280 + Better handling of "section" elements (#2438). Previously
7281 `<section>` tags were just parsed as raw HTML blocks. With
7282 this change, section elements are parsed as Div elements with
7283 the class "section".
7285 * MediaWiki reader: handle unquoted table attributes (#2355).
7287 * DocBook reader:
7289 + Added proper support for DocBook `xref` elements (Frerich Raabe).
7290 Added `dbContent` field to reader state, so we can lookup
7291 cross refs.
7292 + Handle `informalexample` (#2319).
7294 * Docx Reader:
7296 + Create special punctuation test (Ophir Lifshitz).
7297 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
7298 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
7299 in `headers.docx` with pandoc's current `styles.xml`, which
7300 contains styles for Heading 1 through 6. Added Heading 4
7301 through 7 to the test document. Note that Heading 7 is not
7302 parsed as a Heading because there is no Heading 7 style.
7304 * RST reader: better handling of indirect roles.
7305 Previously the parser failed on this kind of case
7307 .. role:: indirect(code)
7309 .. role:: py(indirect)
7310 :language: python
7312 :py:`hi`
7314 Now it correctly recognizes `:py:` as a code role.
7316 * Org reader:
7318 + Add auto identifiers if not present on headers
7319 (#2354, Juliusz Gonera).
7320 + Allow verse blocks to contain empty lines (#2402,
7321 Albert Krewinkel).
7323 * EPUB reader: stop mangling external URLs (#2284).
7325 * RST writer:
7327 + Don't insert `\ ` when complex expression in matched pairs.
7328 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
7329 + Ensure that `\ ` is inserted when needed before Cite and Span
7330 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
7331 + Normalize headers only in "standalone" mode (#2394).
7333 * Haddock writer: escape `*` and `^` (G. Bataille).
7335 * Markdown writer:
7337 + In TOC, add links to headers (#829).
7338 + Use unicode super/subscripts for digits in plain output
7339 (when the `superscripts` and `subscripts` extensions are
7340 not enabled).
7342 * Docx writer:
7344 + Moved invalid character stripping to `formattedString`.
7345 This avoids an inefficient generic traversal (#2356).
7346 + Use user data directory for `reference.docx` archive.
7347 This allows the test suite to work without installing pandoc first.
7348 It also brings the docx writer in line with the odt writer.
7349 + Tests: docx writer tests now use `../data` for data directory.
7350 This allows tests to be run without installing first.
7351 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
7353 * LaTeX writer:
7355 + Fixed detection of 'chapters' from template.
7356 If a documentclass isn't specified in metadata, but the
7357 template has a hardwired bookish documentclass, act as if
7358 `--chapters` was used. This was the default in earlier
7359 versions, but it has been broken for a little while.
7360 + Correctly recognize book documentclass in metadata (#2395).
7361 + Set language-related variables automatically, depending
7362 on the value of the `lang` field, which is now always
7363 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
7364 + Add `\protect` to `\hyperdef` in inline context. This way we
7365 don't get an error when this is used as a moveable argument (#2136).
7366 + Support all frame attributes in Beamer.
7367 + Percent-encode more special characters in URLs (#1640, #2377).
7368 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
7370 * HTML writer:
7372 + Update KaTeX JS and CSS versions (Emily Eisenberg).
7373 + For dzslides, add `role="note"` for speaker notes (#1693).
7374 + Percent-encode more special characters in URLs (#1640, #2377).
7375 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
7376 + Render Div with class `section` as `<section>` in HTML5.
7378 * EPUB writer:
7380 + In TOC, replace literal `<br/>` with space (#2105).
7381 + With `--webtex`, include image file rather than `data:` URI (#2363).
7383 * Native writer: format Div properly, with blocks separated.
7385 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
7386 (#2191, Mauro Bieg).
7388 * Reference Docx:
7390 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
7391 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
7393 * Templates
7395 + Beamer: Add `innertheme`, `outertheme` variables
7396 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
7397 Integrate recent font and language updates from LaTeX template;
7398 allow use of `mainfont` variable for changing the slide text
7399 in XeTeX and LuaTeX (Andrew Dunning, #131).
7400 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
7401 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
7402 (Andrew Dunning, #122). Support handling of bidirectional
7403 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
7404 under XeTeX and prevent letters and numbers from appearing on a
7405 different baseline by removing use of the `realscripts` package
7406 (via `xltxtra`). To restore use of OpenType characters for these
7407 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
7408 `header-includes` (Andrew Dunning, #130). Remove redundant
7409 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
7410 `indent`, `subparagraph` variables (Andrew Dunning).
7411 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
7412 #113). Prevent package clash with `tufte-latex` and other classes that
7413 include `hyperref` or `color` (Xavier Olive, #115).
7414 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
7415 + LaTeX and ConTeXt: Use more specific language variables.
7416 Instead of directly using `lang`, we now use `babel-lang` and
7417 `polyglossia-lang` and `context-lang`. These variables are set by
7418 the writers to the necessary values, based on the `lang` variable
7419 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
7420 #129).
7421 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
7422 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
7423 Add dir attribute in html5 (Andrew Dunning).
7424 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
7425 Add `width`, `height` variables (Andrew Dunning). Update template
7426 from 3.1 source (Andrew Dunning). All configuration options are now
7427 available as variables, but are only be included if set (reveal.js
7428 uses defaults otherwise).
7429 + man: Added comment stating that the page is autogenerated by pandoc,
7430 giving version. Added `adjusting` and `hyphenate` variables
7431 (Alex Vong, #123).
7433 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
7435 * MediaBag: ensure that `/` is always used as path separator.
7437 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
7439 * Added `--bash-completion` option. This generates a bash completion
7440 script. To use: `eval "$(pandoc --bash-completion)"`.
7442 * Text.Pandoc.Error: Define Typeable and Exception instances
7443 for PandocError (#2386).
7445 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
7446 This makes keys with extra space at the beginning and end
7447 work: e.g.
7449 [foo]: bar
7451 [ foo ]
7453 will now be a link to bar (it wasn't before).
7455 * Text.Pandoc: disable `auto_identifiers` for epub.
7456 The epub writer inserts its own auto identifiers;
7457 this is more complex due to splitting into "chapter" files.
7459 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
7460 It now reexports Data.Time.
7462 * Use custom Prelude to avoid compiler warnings.
7464 + The (non-exported) prelude is in prelude/Prelude.hs.
7465 + It exports Monoid and Applicative, like base 4.8 prelude,
7466 but works with older base versions.
7467 + It exports (<>) for mappend.
7468 + It hides 'catch' on older base versions.
7470 * Added a `stack.ymal` and stack install instructions to INSTALL.
7472 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
7474 * Added note to CONTRIBUTING.md about ghc versions and travis.
7476 * Clarify docs on block quotes. The space after `>` is optional (#2346).
7478 * Removed obsolete reference to default.csl (#2372).
7480 * List all styles in manual for `--reference-docx` (Chris Black)
7482 * Don't capitalize header links in man page.
7484 * Added section on repl to CONTRIBUTING.md.
7486 * README: Added space after backslash in image example (#2329).
7488 * Document details of citation locator terms (Nick Bart).
7490 * Fixed some internal links in README (#2309).
7492 * Improve CSL documentation, variables documentations,
7493 links, and cross-references in README. (Andrew Dunning)
7495 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
7497 * Use `newManager` instead of `withManager` in recent `http-client`.
7498 This avoids a deprecation warning.
7500 * Allow building with latest versions of http-types,
7501 HUnit, criterion, syb, aeson.
7503 * Updated benchmark program for new criterion API.
7505 * Setup.hs: rewrite so as not to use process, directory, filepath.
7506 Using anything outside base is dangerous, since older
7507 versions of ghc may link against two different versions.
7509 * Added appveyor (Windows continuous integration) builds.
7511 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
7512 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
7513 `make .travis.yml` regenerates it based on the tested-with
7514 field of the cabal file.
7516pandoc (1.15.0.6)
7518 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
7519 Previously `--self-contained` wiped out all spaces in CSS,
7520 including semantically significant spaces. This was a regression
7521 from 1.14.x.
7523 * Markdown reader: don't allow bare URI links or autolinks in link
7524 label (#2300). Added test cases.
7526 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
7527 Previously we disallowed `-` at the end of an autolink,
7528 and disallowed the combination `=-`. This commit liberalizes the
7529 rules for allowing punctuation in a bare URI, and adds test cases.
7530 One potential drawback is that you can no longer put a bare
7531 URI in em dashes like this:
7532 `this uri---http://example.com---is an example.`
7533 But in this respect we now match github's treatment of bare URIs.
7535 * HTML writer: support speaker notes in dzslides.
7536 With this change `<div class="notes">` and also `<div class="notes"
7537 role="note">` will be output if `-t dzslides` is used. So we can
7538 have speaker notes in dzslides too. Thanks to maybegeek.
7540 * Updated dzslides template.
7542 * Improved documentation of options to print system default files (#2298).
7543 `--print-default-data-file` and `--print-default-template`.
7545 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
7546 (Tiziano Müller). MathJax seems currently to be the only maintained
7547 math rendering extension for DokuWiki.
7549 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
7550 div as top-level header (#2294). This fixes a bug with `--section-divs`,
7551 where the final references section added by pandoc-citeproc, enclosed in
7552 its own div, got nested in the div for the section previous to it.
7554 * Allow vector 0.11.
7556 * Require cmark > 0.4.
7558pandoc (1.15.0.5)
7560 * HTML writer: Fixed email javascript obfuscation with `mailto:`
7561 URLs (#2280). This fixes a potential security issue. Because
7562 single quotes weren't being escaped in the link portion, a
7563 specially crafted email address could allow javascript code injection.
7565 * Markdown/HTML readers: Avoid parsing partial URLs like
7566 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
7568 * RST reader: allow inline formatting in definition list field
7569 names (Lars-Dominik Braun).
7571 * PDF: Make sure `--latex-engine-opt` goes before the filename
7572 on the command line. LaTeX needs the argument to come after
7573 the options (#1779).
7575 * CommonMark writer: fixed tags used for super/subscript.
7577 * ConTeXt template: activate hanging indent for definition lists
7578 (Mauro Bieg).
7580 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
7581 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
7582 to include `hsb2hs` in Build-Tools in cabal.
7584 * Improved Windows installer (thanks to nkalvi).
7586 + When per-machine installation is chosen, the system path
7587 is updated instead of the user's.
7588 + An appropriate default is used for per-machine installation
7589 directory.
7590 + Admin privileges are no longer required for a per-user install
7592 * Travis: unpack sdist for build to catch packaging bugs.
7594 * Improved documentation on where user templates go (#2272).
7596pandoc (1.15.0.4)
7598 * Added pandoc.1 man page to the repository. It is no longer
7599 built as part of the cabal build process. (This proved too
7600 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
7601 when `README` is changed.
7603 * Copying of the man page now respects `--destdir` (#2262).
7605 * Improved error messages for filters. User is now informed if
7606 the filter requires an interpreter that isn't found in the path,
7607 or if the filter returns an error status.
7609pandoc (1.15.0.3)
7611 * Ensure target directory is created when installing man page.
7613pandoc (1.15.0.2)
7615 * Added files needed for building man page to Extra-Source-Files.
7617pandoc (1.15.0.1)
7619 * Man page is now built and installed as part of the cabal build
7620 process. Removed Makefile target for man page.
7622pandoc (1.15)
7624 * Man page changes:
7626 + Removed `--man1`, `--man5` options (breaking change).
7627 + Removed `Text.Pandoc.ManPages` module (breaking API change).
7628 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
7629 create the man page from README using a custom template and filters.
7630 + Added `man/` directory with template and filters needed to build
7631 man page.
7632 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
7633 Now there is just pandoc.1, which has all the content from README.
7634 This change was needed because of the extensive cross-references
7635 between parts of the README.
7636 + Removed old `data/pandoc.1.template` and
7637 `data/pandoc_markdown.5.template`.
7639 * OpenDocument writer: Do not add a carriage return after a hard
7640 line break (Michael Chladek).
7642 * ConTeXt writer:
7644 + use `\goto` for internal links.
7645 + Added a `%` at end for `\reference` to avoid spurious space.
7647 * Ignore sandbox on 'make quick'
7649pandoc (1.14.1)
7651 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
7652 to generate its own man pages. Man pages are no longer automatically
7653 generated in the build process (the process for this was too complex
7654 and prone to failure, #2190). The `make-pandoc-man-pages` executable
7655 has been removed. The `man/` directory has been removed, and man page
7656 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
7657 longer find pandoc's man pages in `man/`, but you can generate them using
7658 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
7660 * Added new unexported module: `Text.Pandoc.ManPages`.
7662 * `README` now acts like a data file (even though it isn't in
7663 `data/`). So, for example, `pandoc --print-default-data-file README`
7664 will produce the README.) This change was required for the `--man1`
7665 and `--man5` options, since the man pages are produced from the
7666 README, but it may be useful for other purposes as well.
7668 * Allow `reference.docx` and `reference.odt` to be used with
7669 `--print-default-data-file` and to shadow defaults if placed in
7670 the user data directory. Note that as of 1.14, we no longer
7671 include these files as data files; instead, we include their
7672 components. This change causes pandoc to behave as if it has
7673 these data files; they are constructed on demand when needed
7674 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
7676 * Fixed regression in CSS parsing with `--self-contained` (#2224).
7677 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
7678 silently drops big sections of CSS. This commit replaces the
7679 use of css-text with a small but principled CSS preprocessor,
7680 which removes whitespace and comments and replaces `url()` with
7681 base 64 data when possible.
7683 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
7684 This will allow math to work when pages are being viewed locally.
7686 * `Text.Pandoc.Options`: Export `plainExtensions`.
7687 These are the extensions used in `plain` output.
7689 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
7690 math mode; treat them as regular inline text. Normally these will
7691 cause an error in LaTeX, but there are contexts (e.g. `alltt`
7692 environments) where they are allowed.
7694 * HTML reader: allow `<body>` to close `<head>`.
7696 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
7698 * RST reader: Fix reference names with special characters
7699 (Lars-Dominik Braun).
7701 * Textile writer: escape `+` and `-` as entities (#2225).
7703 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
7705 * Plain writer: don't use symbols for super/subscript (#2237).
7706 Simplified code by using `plainExtensions`.
7708 * InDesign writer: Properly escape URLs containing more than one
7709 colon character (gohai).
7711 * Docx writer: Make sure we use dist version of `reference.docx`
7712 (and not the user's version) for certain settings. Taking some
7713 settings values from a user-supplied reference.docx can lead to
7714 corruption. This fixes a regression from the last release (#2249).
7716 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
7717 `getDefaultReferenceODT` (API change). These functions have been
7718 removed from the Docx and ODT writers.
7720 * LaTeX template (Xavier Olive):
7721 + Added `CJKmainfont` and `CJKoptions` variables.
7722 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
7724 * Epub templates: use `author.role`, not `author.type`.
7726 * Bump cmark version to >= 0.3.4.
7728 * Improved Windows installer (#2205, thanks to nkalvi).
7729 Users can now select a per-user or systemwide install, and can set
7730 the installation path. At the end of installation, the install location
7731 is given. The install location is also now given in the list of
7732 installed programs in Control Panel. Cleaner WiX syntax is used for
7733 setting the path.
7735 * Added `download_stats` target to Makefile.
7737pandoc (1.14.0.4)
7739 * Added missing commonmark template.
7741 * Improved try pandoc (moved button, show raw command).
7743pandoc (1.14.0.3)
7745 * Allow compilation with syb 0.5.*.
7747 * Custom writer: fixed some compiler warnings for ghc < 7.10.
7749pandoc (1.14.0.2)
7751 * Allow building with hslua 0.4.
7753pandoc (1.14.0.1)
7755 * Fixed problem with building of `reference.docx` and `reference.odt`
7756 when the `embed_data_files` flag is used. Instead of having a phase
7757 of the build where `reference.docx` and `reference.odt` are created
7758 from their constituent data files, we now construct these archives
7759 from their constituents when a `docx` or `odt` is built. The
7760 constituent files have been moved from `extra-source-files` to
7761 `data-files`, and `reference.docx` and `reference.odt` have been
7762 removed. Users can create their own `reference.docx` or
7763 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
7764 `make-reference-files.hs` has been removed, simplifying the build
7765 process (#2187)
7767 * Don't include generated man pages in extra-source-files (#2189).
7769 * Bumped upper bound for aeson.
7771 * ConTeXt writer: create internal link anchors for Div elements with
7772 identifiers. (This is needed for linked citations to work.)
7774pandoc (1.14)
7776 [new features]
7778 * Added `commonmark` as input and output format.
7780 * Added `--verbose` flag for debugging output in PDF production (#1840,
7781 #1653).
7783 * Allow wildcards in `--epub-embed-font` arguments (#1939).
7785 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
7787 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
7788 This is enabled by default for those markdown flavors that
7789 support reading shortcut reference links, namely: `markdown`,
7790 `markdown_strict`, `markdown_github`, `markdown_php`.
7791 If the extension is enabled, the reader parses shortcut reference
7792 links like `[foo]`, and the writer creates such links unless doing
7793 so would cause problems. Users of markdown flavors that support
7794 shortcut reference links should not notice a difference in reading
7795 markdown, but the markdown pandoc produces may differ.
7796 If shortcut links are not desired, the extension can be disabled
7797 in the normal way.
7799 [behavior changes]
7801 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
7802 A "dirty" TOC is created at the beginning of document.
7803 It can be regenerated after the document has been opened.
7805 * An implicit `--filter pandoc-citeproc` is now triggered only when the
7806 `--bibliography` option is used, and not when the `bibliography`
7807 field in metadata is specified (#1849).
7809 * Markdown reader:
7811 + Reference links with `implicit_header_references` are no longer
7812 case-sensitive (#1606).
7813 + Definition lists no longer require indentation for first line (#2087).
7814 Previously the body of the definition (after the `:` or `~` marker)
7815 needed to be in column 4. This commit relaxes that requirement,
7816 to better match the behavior of PHP Markdown Extra. So, now
7817 this is a valid definition list:
7819 foo
7820 : bar
7821 + Resolve a potentially ambiguity with table captions:
7823 foo
7825 : bar
7827 -----
7828 table
7829 -----
7831 Is "bar" a definition, or the caption for the table? We'll count
7832 it as a caption for the table.
7833 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
7834 Markdown Extra. Note: If you have been using headerless pipe tables,
7835 this change may cause existing tables to break.
7836 + Allow pipe tables with header but no body (#2017).
7837 + Allow a digit as first character of a citation key (Matthias Troffaes).
7838 See https://github.com/jgm/pandoc-citeproc/issues/97
7840 * LaTeX reader:
7842 + Don't limit includes to `.tex` extension (#1882).
7843 If the extension is not `.tex`, it must be given explicitly in
7844 the `\input` or `\include`.
7846 * Docx reader:
7848 + Allow numbering in the style file. This allows inherited styles
7849 with numbering (lists) (Jesse Rosenthal).
7851 * Org reader:
7853 + Support smart punctuation (Craig Bosma).
7854 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
7855 `:noexport:` tag set are not exported. This mirrors org-mode.
7856 + Put header tags into empty spans (Albert Krewinkel, #2160).
7857 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
7858 Instead of being interpreted as part of the headline, the tags are now
7859 put into the attributes of empty spans. Spans without textual content
7860 won't be visible by default, but they are detectable by filters. They
7861 can also be styled using CSS when written as HTML.
7862 + Generalize code block result parsing (Albert Krewinkel).
7863 Previously, only code blocks were recognized as result blocks;
7864 now, any kind of block can be the result.
7866 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
7867 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
7869 * HTML writer:
7871 + Add "inline" or "display" class to math spans (#1914).
7872 This allows inline and display math to be styled differently.
7873 + Include raw latex blocks if `--mathjax` specified (#1938).
7874 + Require highlighting-kate >= 0.5.14 (#1903).
7875 This ensures that all code blocks will be wrapped in a `div`
7876 with class `sourceCode`. Also, the default highlighting CSS
7877 now adds `div.sourceCode { x-overflow: auto; }`, which means
7878 that code blocks (even with line numbers) will acquire a scroll
7879 bar on screens too small to display them (e.g. mobile phones).
7880 See also jgm/highlighting-kate#65.
7882 * LaTeX writer:
7884 + Use a declaration for tight lists (Jose Luis Duran, Joseph
7885 Harriott). Previously, pandoc hard-coded some commands to make
7886 tight lists in LaTeX. Now we use a custom command instead,
7887 allowing the styling to be changed in a macro in the header.
7888 (Note: existing templates may need to be modified to include
7889 the definition of this macro. See the current template.)
7890 + Beamer output: if the header introducing a slide has the
7891 class `fragile`, add the `[fragile]` option to the slide (#2119).
7893 * MediaWiki writer:
7895 + Use `File:` instead of the deprecated `Image:` for images and
7896 other media files (Greg Rundlett).
7898 * DocBook writer:
7900 + Render a `Div (id,_,_) [Para _]` element as a `para` element
7901 with an `id` attribute. This makes links to citations work in
7902 DocBook with pandoc-citeproc.
7904 * RST writer:
7906 + Normalize headings to sequential levels (Nikolay Yakimov).
7907 This is pretty much required by docutils.
7908 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
7909 + Better handling of raw latex inline (#1961). We use
7910 `` :raw-latex:`...` `` and add a definition for this role to
7911 the template.
7913 * EPUB writer:
7915 + Remove `linear=no` from cover `itemref` (#1609).
7916 + Don't use `sup` element for epub footnotes (#1995).
7917 Instead, just use an a element with class `footnoteRef`.
7918 This allows more styling options, and provides better results
7919 in some readers (e.g. iBooks, where anything inside the a
7920 tag breaks popup footnotes).
7921 + Take TOC title from `toc-title` metadata field.
7923 * Docx writer:
7925 + Implemented `FirstParagraph` style (Jesse Rosenthal).
7926 Following the ODT writer, we add the `FirstParagraph` style to the
7927 first text paragraph following an image, blockquote, table, heading,
7928 or beginning of document. This allows it to be styled differently.
7929 The default is for it to be the same as `Normal`.
7930 + Added `BodyText` style (Jesse Rosenthal).
7931 We apply a `BodyText` style to all unstyled paragraphs. This is,
7932 essentially, the same as `Normal`, except that since not everything
7933 inherits from `BodyText` (the metadata won't, for example, or
7934 the headers or footnote numbers), we can change the text in the body
7935 without having to make exceptions for everything. If we do want to
7936 change *everything*, we can still do it through `Normal`.
7937 + Altered `Blockquote` style slightly (Jesse Rosenthal).
7938 Since `BlockQuote` derives from `BodyText`, we just want to specify
7939 by default that it won't indent, regardless of what `BodyText` does.
7940 Note that this will not produce any visible difference in the default
7941 configuration.
7942 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
7943 + Added a style to figure images (Nikolay Yakimov).
7944 Figures with empty captions use style `Figure`.
7945 Figures with nonempty captions use style `Figure with Caption`, which
7946 is based on `Figure`, and additionally has `keepNext` set.
7948 * ODT writer:
7950 + Added figure captions (Nikolay Yakimov). The following styles are
7951 used for figures:
7952 `Figure` -- for figure with empty caption),
7953 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
7954 `FigureCaption` (based on `Caption`) -- for figure captions.
7955 Also, `TableCaption` (based on `Caption`) is used for table captions.
7957 [API changes]
7959 * New `Text.Pandoc.Error` module with `PandocError` type
7960 (Matthew Pickering).
7962 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
7963 (Matthew Pickering). This allows better handling of errors.
7965 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
7967 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
7969 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
7970 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
7971 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
7972 Youssefi).
7974 * New `Ext_shortcut_reference_links` constructor for `Extension`
7975 (Konstantin Zudov).
7977 [bug fixes]
7979 * Markdown reader:
7981 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
7982 + Check for tex macros after indented code (#1973).
7983 + Rewrote `charsInBalancedBrackets` for efficiency.
7984 + Make sure a closing `</div>` doesn't get included in a
7985 definition list item (#2127).
7986 + Don't parse bracketed text as citation if it might be a link,
7987 image, or footnote (Nikolay Yakimov).
7988 + Require space after key in mmd title block (#2026, Nikolay
7989 Yakimov). Require space after key-value delimiter colon in mmd title
7990 block.
7991 + Require nonempty value in mmd title block (Nikolay Yakimov).
7992 + Disable all metadata block extensions when parsing
7993 metadata field values (#2026, Nikolay Yakimov). Otherwise we
7994 could get a mmd title block inside YAML metadata, for example.
7996 * HTML reader:
7998 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
7999 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
8000 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
8001 to see if the input starts with `<!--`. If not, it's bogus comment
8002 mode and we fail `htmlTag`.
8003 + Handle `base` tag; if it has an `href` value, this is added to
8004 all relative URLs in links and images.
8006 * DocBook reader:
8008 + Look inside "info" elements for section titles (#1931).
8010 * Docx reader:
8012 + Parse images in deprecated vml format (Jesse Rosenthal).
8013 + Allow sub/superscript verbatims (Jesse Rosenthal).
8014 Verbatim usually shuts off all other run styles, but we don't want it
8015 to shut off sub/superscript.
8017 * LaTeX reader:
8019 + Handle `tabular*` environment (#1850).
8020 Note that the table width is not actually parsed or taken into
8021 account, but pandoc no longer chokes on it.
8022 + Ignore options in `\lstinline` rather than raising error (#1997).
8023 + Add some test cases for simple tables (Mathias Schenner).
8024 + Handle valign argument in tables (Mathias Schenner) (currently
8025 we just ignore this).
8026 + Allow non-empty colsep in tables (Mathias Schenner).
8027 The `tabular` environment allows non-empty column separators
8028 with the "@{...}" syntax. Previously, pandoc would fail to
8029 parse tables if a non-empty colsep was present. With this
8030 commit, these separators are still ignored, but the table gets
8031 parsed. A test case is included.
8032 + Recognize `\newpage` as a block command.
8033 + Allow block content in \title{} (#2001).
8034 + Check for block-level newcommand aliases in blockCommand (Nikolay
8035 Yakimov).
8036 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
8037 + Properly gobble spaces after `\\` (#2007).
8039 * Textile reader:
8041 + Handle newlines in table cells, and empty cells (#1919).
8043 * Org reader:
8045 + Allow image links with non-image targets (Hans-Peter Deifel).
8046 This matches behavior of Org-Mode for links like
8047 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
8049 * Docbook writer:
8051 + Don't print empty id attributes (thanks to Steve Horne).
8053 * HTML writer:
8055 + Fixed list-style-type for numbered example lists.
8056 Should be "decimal," not "example" (#1902).
8057 + Do not omit missing `alt` attribute on `img` tag (#1131,
8058 Konstantin Zudov).
8059 + Allow multiple colgroups in table (#2122).
8060 + In revealjs, ensure that lists in speaker notes don't add "fragment"
8061 classes, which can cause additional keypresses to be needed to
8062 advance a slide (#1394).
8064 * LaTeX writer:
8066 + Don't escape `$` in URL (#1913).
8067 + Don't use listings in headers (Matthew Pickering, #1963).
8068 + Recognize book documentclass if set in metadata (#1971).
8069 This sets `--chapters` implicitly if the documentclass in metadata
8070 is a book documentclass. Previously this was done only if a book
8071 documentclass was set in a variable.
8072 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
8073 + Make `mainlang` work when `lang` is in metadata (#2174).
8075 * Texinfo writer:
8077 + Fix wrapping by using breakable spaces (Tim Lin).
8079 * RST writer:
8081 + Fixed toc depth in RST writer. Previously the depth was being
8082 rendered as a floating point number with a decimal point.
8084 * Markdown writer:
8086 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
8087 compatibility with original Markdown. We now escape `<` and `>`
8088 with entities. Also, we now backslash-escape square brackets.
8089 + Avoid introducing spurious list items through wrapping (#1946).
8090 + Don't emit span tags if plain or raw HTML disabled.
8092 * MediaWiki writer:
8094 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
8096 * AsciiDoc writer:
8098 + Insert some needed blank lines (#1860).
8099 + Avoid wrapping after list marker (#1858).
8101 * EPUB writer:
8103 + Properly handle internal links to IDs in spans, divs (#1884).
8104 + Use plain writer for metadata dc: fields (#2121).
8105 This gives better results when we have, e.g. multiple paragraphs.
8106 Note that tags aren't allowed in these fields.
8107 + Properly handle image links without an extension (#1855).
8108 + Improved chapter splitting and internal link rewriting (#1887,
8109 #2162, #2163). This will ensure that internal links work and
8110 that the references section produced by pandoc-citeproc is
8111 in its own chapter.
8112 + Fixed handling of svg images (#2183).
8114 * ICML writer:
8116 + Better handling of raw blocks and inlines (#1951).
8117 Previously these were always escaped and printed verbatim.
8118 Now they are ignored unless the format is `icml`, in which
8119 case they are passed through unescaped.
8120 + Fixed image URIs in ICML output (gohai).
8122 * Custom writer:
8124 + Raise error if loadstring returns an error status.
8125 + Raise `PandocLuaException` instead of using 'error'.
8126 Eventually we'll change the return type so that no exception
8127 is involved, but at least this can be trapped.
8128 + Use UTF-8 aware bytestring conversion.
8129 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
8130 Also factored out ByteString, since it's only used as an intermediate
8131 representation.
8133 * Docx writer:
8135 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
8136 + Filter out illegal XML characters (#1992, Matthew Pickering).
8137 + Added `noProof` to docx syntax highlighting `SourceCode` style.
8138 + Added footnotes id -1 and 0 (Jesse Rosenthal).
8139 Word uses, by default, footnotes with id -1 and 0 for separators. If a
8140 user modifies `reference.docx`, they will end up with a `settings.xml`
8141 file that references these footnotes, but no such footnotes in the
8142 document. This will produce a corruption error. Here we add these to the
8143 document and `settings.xml` file, so future modifications won't break
8144 the file.
8145 + Handle lists correctly inside table cells (Jesse Rosenthal).
8146 Previously we didn't transform lists inside table cells.
8147 + Set firstRow information in tables (Nikolay Yakimov).
8148 + Don't replace `SourceCode` style in `reference.docx` if it is defined
8149 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
8150 any `SourceCode` and `*Tok` styles in `reference.docx`.
8151 + Attempt to match international style names (#1607, Nikolay Yakimov).
8152 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
8153 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
8154 `Definition`, `First Paragraph`.
8155 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
8156 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
8157 `Footnote Ref -> Footnote Reference`.
8158 + Added `Caption` style (Nikolay Yakimov).
8159 + Changed these styles' inheritance (Nikolay Yakimov):
8160 `Image Caption <- Caption`, `Table Caption <- Caption`.
8161 + Remove `SourceCode` style from `reference.docx` (#1872).
8162 This is added automatically by the docx writer.
8163 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
8165 * `Text.Pandoc.PDF`
8167 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
8168 #1832).
8169 + More comprehensible errors on image conversion (#2067).
8170 EPS can't be supported without shelling out to something like
8171 ImageMagick, but at least we can avoid mysterious error messages.
8173 * `Text.Pandoc.Shared`:
8175 + Make safeRead safe (#1801, Matthew Pickering).
8176 + Added `mapLeft`, `hush` (Matthew Pickering).
8178 * `Text.Pandoc.Pretty`:
8180 + Remove partial function (Matthew Pickering).
8182 * `Text.Pandoc.SelfContained`:
8184 + Add `;charset=utf-8` to script mime type if missing (#1842).
8185 + Improved building of data URIs (#1940). Now base64 is used except
8186 for `text/*` mime types.
8187 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
8188 + Properly handle data URIs in css urls (#2129).
8189 Use a proper CSS parser (adds dependency on `text-css`).
8191 * `Text.Pandoc.UTF8`:
8193 + Better handling of bare CRs in input files (#2132).
8194 Previously we just stripped them out; now we convert
8195 other line ending styles to LF line endings.
8197 * `Text.Pandoc.ImageSize`:
8199 + Fixed some exif header parsing bugs (#1834).
8200 + Make imageSize return an Either, not a Maybe (#1834).
8201 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
8202 parse failure (rather than `error`).
8203 + Improved warnings when image size can't be determined.
8204 + Removed error landmines (Matthew Pickering).
8206 * Added woff2 to MIME types (Alfred Wechselberger).
8208 * pandoc: When a binary input format is used, warn that file
8209 arguments past the first one are being ignored (Matthew Pickering).
8211 [template changes]
8213 * LaTeX template:
8215 + Degrade gracefully if `\paragraph` not defined.
8216 + Include `grffile` together with `graphicx` (#2074).
8217 This properly handles filenames containing spaces and dots.
8218 + Redefine `\paragraph`, `\subparagraph`... to behave more
8219 like section headers (#1658).
8220 + Import hyperref before polyglossia to avoid an error with xelatex,
8221 "please load package hyperref before bidi package" (Nick Bart).
8222 + Added `toccolor` variable to control link color in toc (Kaixhin).
8224 * LaTeX, Beamer templates:
8226 + Provide `\tightlist`, which is now used by the LaTeX writer.
8227 + Use polyglossia in beamer (#85).
8228 + Use `bibliography` instead of `biblio-files`
8229 (#1661). Also use `\addbibresource` instead of `\bibliography` for
8230 biblatex.
8231 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
8232 variable that is derived from a comma-separated list in `lang`;
8233 the last language is `mainlang` and the others are `otherlang`.
8235 * EPUB templates:
8237 + Use `div`, not `p`, for "rights" on title page.
8238 + Added header-includes, include-before, include-after (#1987).
8240 * OpenDocument template:
8242 + Use `text:p` instead of `text:h` for title.
8243 Using `text:h` causes problems with numbering. Closes #2059.
8244 Thanks to @nkalvi for diagnosing this.
8246 * reveal.js template:
8248 + Link to non-minified css, js. The minified versions no longer
8249 ship with the library.
8250 + Correctly include style CSS (#1949).
8251 + New configurable options options: `center`, `maxScale`, `slideNuber`
8252 (Dmitry Smirnov, pandoc-templates#89).
8253 + Moved custom CSS after theme. This allows custom CSS to modify
8254 themes, instead of being replaced by them.
8255 + Allow `center` to be set to false.
8257 [under the hood improvements]
8259 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
8260 Yakimov). Instead the repository now includes the component text files,
8261 and the zipped binaries are built from these using a helper
8262 program, `make-reference-files`. This should make maintenance of
8263 these components easier going forward.
8265 * `Text.Pandoc.Parsing`:
8267 + Added new `<+?>` combinator (Nikolay Yakimov).
8268 + Added `stateHeaderKeys` to `ParserState`.
8270 * `make_deb.sh` fixes:
8272 + Detect architecture.
8273 + Add Installed-Size to debian package control file (#1900).
8274 + Use `fakeroot` to get permissions right.
8275 + Use `mkdir` and `cp` instead of `install`.
8276 + Set permissions of directories to 755.
8277 + Install in `/usr` rather than `/usr/local`.
8278 + Compress man pages.
8279 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
8281 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
8282 to assist with transition to `time` 1.5.
8284 * Updated CONTRIBUTING.md with information about issue tags (Matthew
8285 Pickering).
8287 * Updated travis installs to the new sudo-less syntax (Tim Lin).
8289 * Updated dependency version bounds.
8291 * EPUB tests: don't use `joinPath`, which varies across platforms.
8292 Instead, use a forward-slash to join paths, regardless of the
8293 platform. This matches the way `MediaBag` now works.
8295 * Clarify JSON input and output in usage message (Caleb McDaniel).
8297 * Improved INSTALL instructions.
8299 * Always build man pages. Removed make-pandoc-man-pages flag.
8301 * Makefile: removed man target, now that we generate man pages by default.
8303 * README:
8305 + Fixed typos (J. Lewis Muir).
8306 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
8307 + Added note on in-field markup in biblio databases (Nick Bart).
8308 + Fixed misleading example of raw HTML block.
8309 + Various minor formatting and consistency fixes for the program
8310 options (Andreas Lööw).
8311 + Made definition lists for options all "loose" for consistency.
8312 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
8313 `--bib2json` and `--bib2yaml` options (Nick Bart).
8314 + Removed obsolete reference to `mods2yaml` (Nick Bart).
8315 + Added section on syntax highlighting.
8316 + Documented `toccolor` variable.
8318pandoc (1.13.2.1)
8320 * Updated to build with ghc 7.10.1.
8322 * Bumped package upper bounds for filepath, blaze-html,
8323 blaze-markup.
8325pandoc (1.13.2)
8327 * TWiki Reader: add new twiki reader (API change, Alexander Sulfrian).
8329 * Markdown reader:
8331 + Better handling of paragraph in div (#1591).
8332 Previously text that ended a div would be parsed as Plain
8333 unless there was a blank line before the closing div tag.
8334 + Don't treat a citation as a reference link label (#1763).
8335 + Fix autolinks with following punctuation (#1811).
8336 The price of this is that autolinked bare URIs can no longer
8337 contain `>` characters, but this is not a big issue.
8338 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
8339 + Allow `startnum` to work without `fancy_lists`. Formerly
8340 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
8342 * RST reader (all Daniel Bergey):
8344 + Parse quoted literal blocks (#65). RST quoted literal blocks are
8345 the same as indented literal blocks (which pandoc already supports)
8346 except that the quote character is preserved in each line.
8347 + Parse RST class directives. The class directive accepts one or more
8348 class names, and creates a Div value with those classes. If the
8349 directive has an indented body, the body is parsed as the children of
8350 the Div. If not, the first block following the directive is made a
8351 child of the Div. This differs from the behavior of rst2xml, which
8352 does not create a Div element. Instead, the specified classes are
8353 applied to each child of the directive. However, most Pandoc Block
8354 constructors to not take an Attr argument, so we can't duplicate this
8355 behavior.
8356 + Warn about skipped directives.
8357 + Literal role now produces Code. Code role should have "code" class.
8358 + Improved support for custom roles
8360 - Added `sourceCode` to classes for `:code:` role, and anything
8361 inheriting from it.
8362 - Add the name of the custom role to classes if the Inline
8363 constructor supports Attr.
8364 - If the custom role directive does not specify a parent role,
8365 inherit from the `:span:` role.
8367 This differs somewhat from the `rst2xml.py` behavior. If a custom
8368 role inherits from another custom role, Pandoc will attach both
8369 roles' names as classes. `rst2xml.py` will only use the class of
8370 the directly invoked role (though in the case of inheriting from a
8371 `:code:` role with a `:language:` defined, it will also provide the
8372 inherited language as a class).
8373 + Warn about ignored fields in role directives.
8375 * LaTeX reader:
8377 + Parse label after caption into a span instead of
8378 inserting an additional paragraph of bracketed text (#1747).
8379 + Parse math environments as inline when possible (#1821).
8380 + Better handling of `\noindent` and `\greektext` (#1783).
8381 + Handle `\texorpdfstring` more gracefully.
8382 + Handle `\cref` and `\sep` (Wikiwide).
8383 + Support `\smartcite` and `\Smartcite` from biblatex.
8385 * HTML reader:
8387 + Retain display type of MathML output (#1719, Matthew Pickering).
8388 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
8389 + Make `embed` tag either block or inline (#1756).
8391 * DocBook reader:
8393 + Handle `keycombo`, `keycap` (#1815).
8394 + Get string content in inner tags for literal elements (#1816).
8395 + Handle `menuchoice` elements better, with a `>` between (#1817).
8396 + Include `id` on section headers (#1818).
8397 + Document/test "type" as implemented (Brian O'Sullivan).
8398 + Add support for calloutlist and callout (Brian O'Sullivan).
8399 We treat a calloutlist as a bulleted list. This works well in practice.
8400 + Add support for `classname` (Bryan O'Sullivan).
8402 * Docx reader:
8404 + Fix window path for image lookup (Jesse Rosenthal).
8405 Don't use os-sensitive "combine", since we always want the paths in our
8406 zip-archive to use forward-slashes.
8407 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
8408 When users number their headers, Word understands that as a single item
8409 enumerated list. We make the assumption that such a list is, in fact,
8410 a header.
8411 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
8412 There could be new top-level headers after making lists, so we have to
8413 rewrite links after that.
8414 + Use polyglot header list (Jesse Rosenthal).
8415 We're just keeping a list of header formats that different languages
8416 use as their default styles. At the moment, we have English, German,
8417 Danish, and French. We can continue to add to this.
8418 This is simpler than parsing the styles file, and perhaps less
8419 error-prone, since there seems to be some variations, even within a
8420 language, of how a style file will define headers.
8421 + Remove header class properly in other langs (Jesse Rosenthal).
8422 When we encounter one of the polyglot header styles, we want to remove
8423 that from the par styles after we convert to a header. To do that, we
8424 have to keep track of the style name, and remove it appropriately.
8425 + Account for external link URLs with anchors. Previously, if a URL
8426 had an anchor, the reader would incorrectly identify it as an
8427 internal link and return only the anchor as URL. (Caleb McDaniel)
8428 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
8430 * Org reader:
8432 + Added state changing blanklines (Jesse Rosenthal).
8433 This allows us to emphasize at the beginning of a new paragraph (or, in
8434 general, after blank lines).
8435 + Fixed bug with bulleted lists:
8437 - a
8438 - b
8439 * c
8441 was being parsed as a list, even though an unindented `*`
8442 should make a heading. See
8443 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
8444 + Org reader: absolute, relative paths in link (#1741, Albert
8445 Krewinkel). The org reader was too restrictive when parsing links;
8446 some relative links and links to files given as absolute paths
8447 were not recognized correctly.
8448 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
8449 This is important for use in gitit, which uses empty links
8450 for wikilinks.
8451 + Respect indent when parsing Org bullet lists (#1650, Timothy
8452 Humphries). Fixes issue with top-level bullet list parsing.
8453 + Fix indent issue for definition lists (Timothy Humphries,
8454 see #1650, #1698, #1680).
8455 + Parse multi-inline terms correctly in definition list (#1649,
8456 Matthew Pickering).
8457 + Fix rules for emphasis recognition (Albert Krewinkel).
8458 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
8459 strings. This is wrong, as `,` and `'` are forbidden border chars and
8460 may not occur on the inner border of emphasized text.
8461 + Drop COMMENT document trees (Albert Krewinkel).
8462 Document trees under a header starting with the word `COMMENT` are
8463 comment trees and should not be exported. Those trees are dropped
8464 silently (#1678).
8465 + Properly handle links to `file:target` (Albert Krewinkel).
8466 Org links like `[[file:target][title]]` were not handled correctly,
8467 parsing the link target verbatim. The org reader is changed such that
8468 the leading `file:` is dropped from the link target (see #756, #1812).
8469 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
8470 Org supports special symbols which can be included using LaTeX syntax,
8471 but are actually MathML entities. Examples for this are
8472 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
8473 or `\copy` (the copyright sign ©)
8475 * EPUB reader:
8477 + URI handling improvements. Now we outsource most of the work to
8478 `fetchItem'`. Also, do not include queries in file extensions (#1671).
8480 * LaTeX writer:
8482 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
8483 + Handle consecutive linebreaks (#1733).
8484 + Protect graphics in headers (Jesse Rosenthal).
8485 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
8486 + Put `~` before header in list item text (Jesse Rosenthal).
8487 Because of the built-in line skip, LaTeX can't handle a section header
8488 as the first element in a list item.
8489 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
8490 + Better handling of display math in simple tables (#1754).
8491 We convert display math to inline math in simple tables,
8492 since LaTeX can't deal with display math in simple tables.
8493 + Escape spaces in code (#1694, Bjorn Buckwalter).
8495 * MediaWiki writer:
8497 + Fixed links with URL = text. Previously these were rendered as bare
8498 words, even if the URL was not an absolute URL (#1825).
8500 * ICML writer:
8502 + Don't force all citations into footnotes.
8504 * RTF writer:
8506 + Add blankline at end of output (#1732, Matthew Pickering).
8508 * RST writer:
8510 + Ensure blank line after figure.
8511 + Avoid exces whitespace after last list item (#1777).
8512 + Wrap line blocks with spaces before continuations (#1656).
8513 + Fixed double-rendering of footnotes in RST tables (#1769).
8515 * DokuWiki writer:
8517 + Better handling of block quotes. This change ensures that
8518 multiple paragraph blockquotes are rendered using native `>`
8519 rather than as HTML (#1738).
8520 + Fix external images (#1739). Preface relative links with ":",
8521 absolute URIs without. (Timothy Humphries)
8523 * HTML writer:
8525 + Use protocol-relative URL for mathjax.
8526 + Put newline btw img and caption paragraph.
8527 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
8528 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
8529 This adds `KaTeX` to `HTMLMathMethod` (API change).
8530 + Don't double render when `email-obfuscation=none` (#1625, Matthew
8531 Pickering).
8532 + Make header attributes work outside top level (#1711).
8533 Previously they only appeared on top level header elements.
8534 Now they work e.g. in blockquotes.
8536 * ODT writer:
8538 + Correctly handle images without extensions (#1729).
8539 + Strip querystring in ODT write (#1682, Todd Sifleet).
8541 * FB2 writer:
8543 + Add newline to output.
8545 * EPUB writer:
8547 + Don't add `sourceURL` to absolute URIs (#1669).
8548 + Don't use unsupported `opf:title-type` for epub2.
8549 + Include "landmarks" section in nav document for epub3 (#1757).
8550 + Removed playOrder from navpoint elements in ncx file (#1760).
8551 These aren't required, and they make manual modification of epubs
8552 difficult.
8553 + Extract title even from structured title.
8554 + Don't include nav node in spine unless `--toc` was requested.
8555 Previously we included it in the spine with `linear="no"`, leading
8556 to odd results in some readers (#1593).
8557 + Fixed absolute URI detection (#1672).
8558 + Correctly resolve relative URIs (#1671).
8559 + Use regular page template for `nav.xhtml`, including doctype (#1759).
8561 * Docx writer:
8563 + Put docx table captions above tables (#1641, Nikolay Yakimov).
8564 + Get the page width from the reference docx file, and use
8565 it to scale images that are too large to fit (Grégory Bataille).
8566 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
8567 are inferred based on `<w:name val="heading #">` fallback, if there
8568 are no en-US "Heading#" styles
8569 + Look in user data dir for archive `reference.docx`.
8570 + Renumber header and footer relationships to avoid collisions (Jesse
8571 Rosenthal). We previously took the old relationship names of the
8572 headers and footer in secptr. That led to collisions. We now make
8573 a map of availabl names in the relationships file, and then rename
8574 in secptr.
8576 * ConTeXt writer:
8578 + Add function toLabel (Mark Szepieniec).
8579 This function can be used to sanitize reference labels so that
8580 they do not contain any of the illegal characters \#[]",{}%()|= .
8581 Currently only Links have their labels sanitized, because they
8582 are the only Elements that use passed labels.
8584 * `Text.Pandoc.Shared`:
8586 + Moved import of `toChunks` outside of CPP conditional (#1590).
8587 + Fix `inDirectory` to reset to the original directory in case
8588 an exception occurs (Freiric Barral).
8590 * Templates:
8592 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
8593 Thanks to bluebirch.
8594 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
8595 (#1616).
8596 + LaTeX template: Add shorthands=off to babel options (#1648).
8597 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
8598 This aids styling, making it possible for example to set 0 margins
8599 on the title page (#1758).
8600 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
8601 Previously we just expected 'title', 'subtitle', 'author', 'date'.
8602 Now we still support those, but also support the format recommended
8603 for epub metadata in the pandoc README:
8605 ---
8606 title:
8607 - type: main
8608 text: My Book
8609 - type: subtitle
8610 text: An investigation of metadata
8611 creator:
8612 - role: author
8613 text: John Smith
8614 - role: editor
8615 text: Sarah Jones
8616 identifier:
8617 - scheme: DOI
8618 text: doi:10.234234.234/33
8619 publisher: My Press
8620 rights: (c) 2007 John Smith, CC BY-NC
8621 ...
8623 * `Text.Pandoc.Templates.getDefaultTemplate`:
8624 don't fail when called with "fb2" (#1660).
8626 * `Text.Pandoc.Parsing`:
8628 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
8629 For example: `$x = \text{the $n$th root of $y$}` (#1677).
8630 + Change `parseFromString` to fail if not all input is consumed.
8631 (Matthew Pickering)
8632 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
8633 used by more readers (API change, Daniel Bergey).
8635 * `Text.Pandoc.Pretty`:
8637 + Improve performance of `realLength` (Matthew Pickering).
8638 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
8639 were getting at the end of markdown fragments (as well as rst, org,
8640 etc.) (#1705).
8642 * `Text.Pandoc.MIME`:
8644 + Add mime type for WebVTT (Jason Ronallo).
8645 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
8646 This is needed for epub3 validation.
8648 * `Text.Pandoc.MediaBag`:
8650 + Fix Windows specific path problems (#1597).
8652 * `Text.Pandoc.Shared`:
8654 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
8656 * Link the test suite using `-threaded`.
8657 This allows the test suite to be run using `+RTS -N`.
8659 * Added `network` dependency under `network-uri` flag in test section.
8661 * Give better error messages when someone tries to convert from
8662 pdf, doc, odt (#1683).
8664 * Added `track` to list of tags treated by `--self-contained` (#1664).
8666pandoc (1.13.1)
8668 * Fixed `--self-contained` with Windows paths (#1558).
8669 Previously `C:\foo.js` was being wrongly interpreted as a URI.
8671 * HTML reader: improved handling of tags that can be block or inline.
8672 Previously a section like this would be enclosed in a paragraph,
8673 with RawInline for the video tags (since video is a tag that can
8674 be either block or inline):
8676 <video controls="controls">
8677 <source src="../videos/test.mp4" type="video/mp4" />
8678 <source src="../videos/test.webm" type="video/webm" />
8679 <p>
8680 The videos can not be played back on your system.<br/>
8681 Try viewing on Youtube (requires Internet connection):
8682 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
8683 Youtube</a>.
8684 </p>
8685 </video>
8687 This change will cause the video and source tags to be parsed
8688 as RawBlock instead, giving better output.
8689 The general change is this: when we're parsing a "plain" sequence
8690 of inlines, we don't parse anything that COULD be a block-level tag.
8692 * Docx reader:
8694 + Be sensitive to user styles. Note that "Hyperlink" is
8695 "blacklisted," as we don't want the default underline styling to be
8696 inherited by all links by default (Jesse Rosenthal).
8697 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
8698 This makes to docx reader's native output fit with the way the markdown
8699 reader understands its markdown output.
8701 * Textile writer: Extended the range of cases where native textile
8702 tables will be used (as opposed to raw HTML): we now handle any
8703 alignment type, but only for simple tables with no captions.
8705 * Txt2Tags reader:
8707 + Header is now parsed only if standalone flag is set (Matthew Pickering).
8708 + The header is now parsed as meta information. The first line is the
8709 `title`, the second is the `author` and third line is the `date`
8710 (Matthew Pickering).
8711 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
8712 + Fixed crash when reading from stdin.
8714 * EPUB writer: Don't use page-progression-direction in EPUB2, which
8715 doesn't support it. Also, if page-progression-direction not specified
8716 in metadata, don't include the attribute even in EPUB3; not including it
8717 is the same as including it with the value "default", as we did before.
8718 (#1550)
8720 * Org writer: Accept example lines with indentation at the beginning
8721 (Calvin Beck).
8723 * DokuWiki writer:
8725 + Refactor to use Reader monad (Matthew Pickering).
8726 + Avoid using raw HTML in table cells; instead, use `\\`
8727 instead of newlines (Jesse Rosenthal).
8728 + Properly handle HTML table cell alignments, and use spacing
8729 to make the tables look prettier (#1566).
8731 * Docx writer:
8733 + Bibliography entries get `Bibliography` style (#1559).
8734 + Implement change tracking (Jesse Rosenthal).
8736 * LaTeX writer:
8738 + Fixed a bug that caused a table caption to repeat across all pages
8739 (Jose Luis Duran).
8740 + Improved vertical spacing in tables and made it customizable using
8741 standard lengths set by booktab. See
8742 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
8743 (Jose Luis Duran).
8744 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
8745 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
8746 + Made horizontal rules more flexible (Jose Luis Duran).
8748 * Text.Pandoc.MIME:
8750 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
8751 Code cleanups (Artyom Kazak).
8753 * Templates:
8755 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
8756 thanks lemzwerg).
8758 * Improved OSX build procedure.
8760 * Added `network-uri` flag, to deal with split of `network-uri` from
8761 `network`.
8763 * Fix build dependencies for the `trypandoc` flag, so that they are
8764 ignored if `trypandoc` flag is set to False (Gabor Pali).
8766 * Updated README to remove outdated claim that `--self-contained`
8767 looks in the user data directory for missing files.
8769pandoc (1.13.0.1)
8771 * Docx writer:
8773 + Fixed regression which bungled list numbering (#1544), causing
8774 all lists to appear as basic ordered lists.
8775 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
8776 Added a property to all table rows where the sum of column widths
8777 is specified in pct (fraction of 5000). This helps persuade Word
8778 to lay out the table with the widths we specify.
8780 * Fixed a bug in Windows 8 which caused pandoc not to find the
8781 `pandoc-citeproc` filter (#1542).
8783 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
8784 Most significantly, the reader now uses Builder, leading to some
8785 performance improvements.
8787 * HTML reader: Parse appropriately styled span as SmallCaps.
8789 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
8790 `superscript`, and `subscript` extensions, respectively, are
8791 deactivated (#1127).
8793 * Added `trypandoc` flag to build CGI executable used in the online
8794 demo.
8796 * Makefile: Added 'quick', 'osxpkg' targets.
8798 * Updated README in templates to indicate templates license.
8799 The templates are dual-licensed, BSD3 and GPL2+.
8801pandoc (1.13)
8803 [new features]
8805 * Added `docx` as an input format (Jesse Rosenthal). The docx
8806 reader includes conversion of native Word equations to pandoc
8807 LaTeX `Math` elements. Metadata is taken from paragraphs at the
8808 beginning of the document with styles `Author`, `Title`, `Subtitle`,
8809 `Date`, and `Abstract`.
8811 * Added `epub` as an input format (Matthew Pickering). The epub
8812 reader includes conversion of MathML to pandoc LaTeX `Math`
8813 elements.
8815 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
8816 Txt2tags is a lightweight markup format described at
8817 <http://txt2tags.org/>.
8819 * Added `dokuwiki` as an output format (Clare Macrae).
8821 * Added `haddock` as an output format.
8823 * Added `--extract-media` option to extract media contained in a zip
8824 container (docx or epub) while adjusting image paths to point to the
8825 extracted images.
8827 * Added a new markdown extension, `compact_definition_lists`, that
8828 restores the syntax for definition lists of pandoc 1.12.x, allowing
8829 tight definition lists with no blank space between items, and
8830 disallowing lazy wrapping. (See below under behavior changes.)
8832 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
8834 * Added extensions `native_spans` and `native_divs` to activate
8835 parsing of material in HTML span or div tags as Pandoc Span
8836 inlines or Div blocks.
8838 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
8839 Textile, and MediaWiki readers. This is an option intended
8840 for debugging parsing problems; ordinary users should not need
8841 to use it.
8843 [behavior changes]
8845 * Changed behavior of the `markdown_attribute` extension, to bring
8846 it in line with PHP markdown extra and multimarkdown. Setting
8847 `markdown="1"` on an outer tag affects all contained tags,
8848 recursively, until it is reversed with `markdown="0"` (#1378).
8850 * Revised markdown definition list syntax (#1429). Both the reader
8851 and writer are affected. This change brings pandoc's definition list
8852 syntax into alignment with that used in PHP markdown extra and
8853 multimarkdown (with the exception that pandoc is more flexible about
8854 the definition markers, allowing tildes as well as colons). Lazily
8855 wrapped definitions are now allowed. Blank space is required
8856 between list items. The space before a definition is used to determine
8857 whether it is a paragraph or a "plain" element. **WARNING: This change
8858 may break existing documents!** Either check your documents for
8859 definition lists without blank space between items, or use
8860 `markdown+compact_definition_lists` for the old behavior.
8862 * `.numberLines` now works in fenced code blocks even if no language
8863 is given (#1287, jgm/highlighting-kate#40).
8865 * Improvements to `--filter`:
8867 + Don't search PATH for a filter with an explicit path.
8868 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
8869 the system path, even if there was a `caps.py` in the working directory.
8870 + Respect shebang if filter is executable (#1389).
8871 + Don't print misleading error message.
8872 Previously pandoc would say that a filter was not found,
8873 even in a case where the filter had a syntax error.
8875 * HTML reader:
8877 + Parse `div` and `span` elements even without `--parse-raw`,
8878 provided `native_divs` and `native_spans` extensions are set.
8879 Motivation: these now generate native pandoc Div and Span
8880 elements, not raw HTML.
8881 + Parse EPUB-specific elements if the `epub_html_exts`
8882 extension is enabled. These include `switch`, `footnote`,
8883 `rearnote`, `noteref`.
8885 * Org reader:
8887 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
8888 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
8889 `\cite{Coffee}`), can be used without any further escaping (Albert
8890 Krewinkel).
8892 * Textile reader and writer:
8894 + The `raw_tex` extension is no longer set by default. You can
8895 enable it with `textile+raw_tex`.
8897 * DocBook reader:
8899 + Support `equation`, `informalequation`, `inlineequation` elements with
8900 `mml:math` content. This is converted into LaTeX and put into a Pandoc
8901 Math inline.
8903 * Revised `plain` output, largely following the style of Project
8904 Gutenberg:
8906 + Emphasis is rendered with `_underscores_`, strong emphasis
8907 with ALL CAPS.
8908 + Headings are rendered differently, with space to set them off,
8909 not with setext style underlines. Level 1 headers are ALL CAPS.
8910 + Math is rendered using unicode when possible, but without the
8911 distracting emphasis markers around variables.
8912 + Footnotes use a regular `[n]` style.
8914 * Markdown writer:
8916 + Horizontal rules are now a line across the whole page.
8917 + Prettier pipe tables. Columns are now aligned (#1323).
8918 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
8919 no longer emits any raw HTML, including span and div tags
8920 generated by Span and Div elements.
8921 + Use span with style for `SmallCaps` (#1360).
8923 * HTML writer:
8925 + Autolinks now have class `uri`, and email autolinks have class
8926 `email`, so they can be styled.
8928 * Docx writer:
8930 + Document formatting is carried over from `reference.docx`.
8931 This includes margins, page size, page orientation, header,
8932 and footer, including images in headers and footers.
8933 + Include abstract (if present) with `Abstract` style (#1451).
8934 + Include subtitle (if present) with `Subtitle` style, rather
8935 than tacking it on to the title (#1451).
8937 * Org writer:
8939 + Write empty span elements with an id attribute as org anchors.
8940 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
8942 * LaTeX writer:
8944 + Put table captions above tables, to match the conventional
8945 standard. (Previously they appeared below tables.)
8946 + Use `\(..\)` instead of `$..$` for inline math (#1464).
8947 + Use `\nolinkurl` in email autolinks. This allows them to be styled
8948 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
8949 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
8950 curly quotes in the PDF output (#1364).
8951 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
8952 do not appear before the overlays in which their markers appear
8953 (#1525).
8954 + Don't produce a `\label{..}` for a Div or Span element. Do produce
8955 a `\hyperdef{..}` (#1519).
8957 * EPUB writer:
8959 + If the metadata includes `page-progression-direction` (which can be
8960 `ltr` or `rtl`, the `page-progression-direction` attribute will
8961 be set in the EPUB spine (#1455).
8963 * Custom lua writers:
8965 + Custom writers now work with `--template`.
8966 + Removed HTML header scaffolding from `sample.lua`.
8967 + Made citation information available in lua writers.
8969 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
8970 adjacent `RawBlock`s when possible.
8972 [API changes]
8974 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
8976 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
8977 Pickering).
8979 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
8980 Pickering).
8982 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
8983 (Clare Macrae).
8985 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
8987 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
8988 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
8989 readers return a pair of a `Pandoc` document and a `MediaBag` with
8990 the media resources they contain. This can be extracted using
8991 `--extract-media`. Writers that incorporate media (PDF, Docx,
8992 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
8993 for resources in the `MediaBag` generated by the reader, in addition to
8994 the file system or web.
8996 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
8997 Renamed `readTeXMath'` to `texMathToInlines`.
8999 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
9000 `readers` now associates names of readers with `Reader`
9001 structures. This allows inclusion of readers, like the docx
9002 reader, that take binary rather than textual input.
9004 * `Text.Pandoc.Shared`:
9006 + Added `capitalize` (Artyom Kazak), and replaced uses of
9007 `map toUpper` (which give bad results for many languages).
9008 + Added `collapseFilePath`, which removes intermediate `.` and
9009 `..` from a path (Matthew Pickering).
9010 + Added `fetchItem'`, which works like `fetchItem` but searches
9011 a `MediaBag` before looking on the net or file system.
9012 + Added `withTempDir`.
9013 + Added `removeFormatting`.
9014 + Added `extractSpaces` (from HTML reader) and generalized its type
9015 so that it can be used by the docx reader (Matthew Pickering).
9016 + Added `ordNub`.
9017 + Added `normalizeInlines`, `normalizeBlocks`.
9018 + `normalize` is now `Pandoc -> Pandoc` instead of
9019 `Data a :: a -> a`. Some users may need to change their uses of
9020 `normalize` to the newly exported `normalizeInlines` or
9021 `normalizeBlocks`.
9023 * `Text.Pandoc.Options`:
9025 + Added `writerMediaBag` to `WriterOptions`.
9026 + Removed deprecated and no longer used `readerStrict` in
9027 `ReaderOptions`. This is handled by `readerExtensions` now.
9028 + Added `Ext_compact_definition_lists`.
9029 + Added `Ext_epub_html_exts`.
9030 + Added `Ext_native_divs` and `Ext_native_spans`.
9031 This allows users to turn off the default pandoc behavior of
9032 parsing contents of div and span tags in markdown and HTML
9033 as native pandoc Div blocks and Span inlines.
9035 * `Text.Pandoc.Parsing`:
9037 + Generalized `readWith` to `readWithM` (Matthew Pickering).
9038 + Export `runParserT` and `Stream` (Matthew Pickering).
9039 + Added `HasQuoteContext` type class (Matthew Pickering).
9040 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
9041 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
9042 `applyMacros` (Matthew Pickering).
9043 + Added custom `token` (Matthew Pickering).
9044 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
9045 track of the ending tag we're waiting for when we're parsing inside
9046 HTML block tags.
9047 + Added `stateMarkdownAttribute` to `ParserState`. This is used
9048 to keep track of whether the markdown attribute has been set in
9049 an enclosing tag.
9050 + Generalized type of `registerHeader`, using new type classes
9051 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
9052 Pickering). These allow certain common functions to be reused
9053 even in parsers that use custom state (instead of `ParserState`),
9054 such as the MediaWiki reader.
9055 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
9056 and generalized their types (Matthew Pickering).
9058 * `Text.Pandoc.Pretty`:
9060 + Added `nestle`.
9061 + Added `blanklines`, which guarantees a certain number of blank lines
9062 (and no more).
9064 [bug fixes]
9066 * Markdown reader:
9068 + Fixed parsing of indented code in list items. Indented code
9069 at the beginning of a list item must be indented eight spaces
9070 from the margin (or edge of the container), or four spaces
9071 from the list marker, whichever is greater.
9072 + Fixed small bug in HTML parsing with `markdown_attribute`, which
9073 caused incorrect tag nesting for input like
9074 `<aside markdown="1">*hi*</aside>`.
9075 + Fixed regression with intraword underscores (#1121).
9076 + Improved parsing of inline links containing quote characters (#1534).
9077 + Slight rewrite of `enclosure`/`emphOrStrong` code.
9078 + Revamped raw HTML block parsing in markdown (#1330).
9079 We no longer include trailing spaces and newlines in the
9080 raw blocks. We look for closing tags for elements (but without
9081 backtracking). Each block-level tag is its own `RawBlock`;
9082 we no longer try to consolidate them (though `--normalize` will do so).
9083 + Combine consecutive latex environments. This helps when you have
9084 two minipages which can't have blank lines between them (#690, #1196).
9085 + Support smallcaps through span.
9086 `<span style="font-variant:small-caps;">foo</span>` will be
9087 parsed as a `SmallCaps` inline, and will work in all output
9088 formats that support small caps (#1360).
9089 + Prevent spurious line breaks after list items (#1137). When the
9090 `hard_line_breaks` option was specified, pandoc would formerly
9091 produce a spurious line break after a tight list item.
9092 + Fixed table parsing bug (#1333).
9093 + Handle `c++` and `objective-c` as language identifiers in
9094 github-style fenced blocks (#1318).
9095 + Inline math must have nonspace before final `$` (#1313).
9097 * LaTeX reader:
9099 + Handle comments at the end of tables. This resolves the issue
9100 illustrated in <http://stackoverflow.com/questions/24009489>.
9101 + Correctly handle table rows with too few cells. LaTeX seems to
9102 treat them as if they have empty cells at the end (#241).
9103 + Handle leading/trailing spaces in `\emph` better.
9104 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
9105 so that we don't get things like `* hi *` in markdown output.
9106 Also applies to `\textbf` and some other constructions (#1146).
9107 + Don't assume preamble doesn't contain environments (#1338).
9108 + Allow (and discard) optional argument for `\caption` (James Aspnes).
9110 * HTML reader:
9112 + Fixed major parsing problem with HTML tables. Table cells were
9113 being combined into one cell (#1341).
9114 + Fixed performance issue with malformed HTML tables.
9115 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
9116 + Allow space between `<col>` and `</col>`.
9117 + Added `audio` and `source` in `eitherBlockOrInline`.
9118 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
9119 `blockTags` to `eitherBlockOrInline`.
9120 + `map` and `object` were mistakenly in both lists; they have been removed
9121 from `blockTags`.
9122 + Ignore `DOCTYPE` and `xml` declarations.
9124 * MediaWiki reader:
9126 + Don't parse backslash escapes inside `<source>` (#1445).
9127 + Tightened up template parsing.
9128 The opening `{{` must be followed by an alphanumeric or `:`.
9129 This prevents the exponential slowdown in #1033.
9130 + Support "Bild" for images.
9132 * DocBook reader:
9134 + Better handle elements inside code environments. Pandoc's document
9135 model does not allow structure inside code blocks, but at least this way
9136 we preserve the text (#1449).
9137 + Support `<?asciidoc-br?>` (#1236).
9139 * Textile reader:
9141 + Fixed list parsing. Lists can now start without an intervening
9142 blank line (#1513).
9143 + HTML block-level tags that do not start a line are parsed as
9144 inline HTML and do not interrupt paragraphs (as in RedCloth).
9146 * Org reader:
9148 + Make tildes create inline code (#1345). Also relabeled `code` and
9149 `verbatim` parsers to accord with the org-mode manual.
9150 + Respect `:exports` header argument in code blocks (Craig Bosma).
9151 + Fixed tight lists with sublists (#1437).
9153 * EPUB writer:
9155 + Avoid excess whitespace in `nav.xhtml`. This should improve
9156 TOC view in iBooks (#1392).
9157 + Fixed regression on cover image.
9158 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
9159 because the metadata id was not correct. Now we derive the id from the
9160 actual cover image filename, which we preserve rather than using
9161 "cover-image."
9162 + Keep newlines between block elements. This allows
9163 easier diff-ability (#1424).
9164 + Use `stringify` instead of custom `plainify`.
9165 + Use `renderTags'` for all tag rendering. This properly handles tags
9166 that should be self-closing. Previously `<hr/>` would appear in EPUB
9167 output as `<hr></hr>` (#1420).
9168 + Better handle HTML media tags.
9169 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
9170 can have only one dc:date, so only the first one is used.
9172 * LaTeX writer:
9174 + Correctly handle figures in notes. Notes can't contain figures in
9175 LaTeX, so we fake it to avoid an error (#1053).
9176 + Fixed strikeout + highlighted code (#1294).
9177 Previously strikeout highlighted code caused an error.
9179 * ConTeXt writer:
9181 + Improved detection of autolinks with URLs containing escapes.
9183 * RTF writer:
9185 + Improved image embedding: `fetchItem'` is now used to get the
9186 images, and calculated image sizes are indicated in the RTF.
9187 + Avoid extra paragraph tags in metadata (#1421).
9189 * HTML writer:
9191 + Deactivate "incremental" inside slide speaker notes (#1394).
9192 + Don't include empty items in the table of contents for
9193 slide shows. (These would result from creating a slide
9194 using a horizontal rule.)
9196 * MediaWiki writer:
9198 + Minor renaming of `st` prefixed names.
9200 * AsciiDoc writer:
9202 + Double up emphasis and strong emphasis markers in intraword
9203 contexts, as required by asciidoc (#1441).
9205 * Markdown writer:
9207 + Avoid wrapping that might start a list, blockquote, or header (#1013).
9208 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
9209 + Don't use braced attributes for fenced code (#1416).
9210 If `Ext_fenced_code_attributes` is not set, the first class
9211 attribute will be printed after the opening fence as a bare word.
9212 + Separate adjacent lists of the same kind with an HTML comment (#1458).
9214 * PDF writer:
9216 + Fixed treatment of data uris for images (#1062).
9218 * Docx writer:
9220 + Use Compact style for empty table cells (#1353).
9221 Otherwise we get overly tall lines when there are empty
9222 table cells and the other cells are compact.
9223 + Create overrides per-image for `media/` in reference docx.
9224 This should be somewhat more robust and cover more types of images.
9225 + Improved `entryFromArchive` to avoid an unneeded parse.
9226 + Section numbering carries over from reference.docx (#1305).
9227 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
9228 we assign numbers based on the list marker styles.
9230 * `Text.Pandoc.Options`:
9232 + Removed `Ext_fenced_code_attributes` from `markdown_github`
9233 extensions.
9235 * `Text.Pandoc.ImageSize`:
9237 + Use default instead of failing if image size not found
9238 in exif header (#1358).
9239 + ignore unknown exif header tag rather than crashing.
9240 Some images seem to have tag type of 256, which was causing
9241 a runtime error.
9243 * `Text.Pandoc.Shared`:
9245 + `fetchItem`: unescape URI encoding before reading local file (#1427).
9246 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
9247 doing mime lookup, to improve mime type guessing.
9248 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
9249 other things are treated as relative URIs if `sourceURL` is `Just _`,
9250 otherwise as file paths on the local file system.
9251 + `fetchItem` now properly handles links without a protocol (#1477).
9252 + `fetchItem` now escapes characters not allowed in URIs before trying
9253 to parse the URIs.
9254 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
9256 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
9257 needed to resolve relative URLs when we fetch resources (#750).
9259 * `Text.Pandoc.Parsing`
9261 + Simplified `dash` and `ellipsis` (#1419).
9262 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
9263 + Generalized functions to use `ParsecT` (Matthew Pickering).
9264 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
9265 Pickering).
9267 [template changes]
9269 * Added haddock template.
9270 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
9271 be "advisory" in HTML5, but kindlegen seems to require them.
9272 * EPUB3: Put title page in section with `epub:type="titlepage"`.
9273 * LaTeX: Made `\subtitle` work properly (#1327).
9274 * LaTeX/Beamer: remove conditional around date (#1321).
9275 * LaTeX: Added `lot` and `lof` variables, which can be set to
9276 get `\listoftables` and `\listoffigures` (#1407). Note that
9277 these variables can be set at the command line with `-Vlot -Vlof`
9278 or in YAML metadata.
9280 [under the hood improvements]
9282 * Rewrote normalize for efficiency (#1385).
9284 * Rewrote Haddock reader to use `haddock-library` (#1346).
9286 + This brings pandoc's rendering of haddock markup in line
9287 with the new haddock.
9288 + Fixed line breaks in `@` code blocks.
9289 + alex and happy are no longer build-depends.
9291 * Added `Text.Pandoc.Compat.Directory` to allow building against
9292 different versions of the `directory` library.
9294 + Added `Text.Pandoc.Compat.Except` to allow building against
9295 different versions of `mtl`.
9297 * Code cleanup in some writers, using Reader monad to avoid
9298 passing options parameter around (Matej Kollar).
9300 * Improved readability in `pandoc.hs`.
9302 * Miscellaneous code cleanups (Artyom Kazak).
9304 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
9305 Thompson).
9307 * Changed `http-conduit` flag to `https`. Depend on `http-client`
9308 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
9309 depends on `conduit` via `yaml`.)
9311 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
9312 This change to highlighting-kate means that PHP fragments no longer need
9313 to start with `<?php`. It also fixes a serious bug causing failures with
9314 ocaml and fsharp.
9316 * Require latest `texmath`. This fixes `\tilde{E}` and allows
9317 `\left` to be used with `]`, `)` etc. (#1319), among many other
9318 improvements.
9320 * Require latest `zip-archive`. This has fixes for unicode path names.
9322 * Added tests for plain writer.
9324 * `Text.Pandoc.Templates`:
9326 + Fail informatively on template syntax errors.
9327 With the move from parsec to attoparsec, we lost good error
9328 reporting. In fact, since we weren't testing for end of input,
9329 malformed templates would fail silently. Here we revert back to
9330 Parsec for better error messages.
9331 + Use `ordNub` (#1022).
9333 * Benchmarks:
9335 + Made benchmarks compile again (Artyom Kazak).
9336 + Fixed so that the failure of one benchmark does not prevent others
9337 from running (Artyom Kazak).
9338 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
9339 + Changed benchmark to use only the test suite, so that benchmarks
9340 run more quickly.
9342 * Windows build script:
9344 + Add `-windows` to file name.
9345 + Use one install command for pandoc, pandoc-citeproc.
9346 + Force install of pandoc-citeproc.
9348 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
9349 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
9350 will extract it into a folder named `SOMETHING.pkg`, which it
9351 will interpret as a defective package (#1308).
9353 * `README`:
9355 + Made headers for all extensions so they have IDs and can be
9356 linked to (Beni Cherniavsky-Paskin).
9357 + Fixed typos (Phillip Alday).
9358 + Fixed documentation of attributes (#1315).
9359 + Clarified documentation on small caps (#1360).
9360 + Better documentation for `fenced_code_attributes` extension
9361 (Caleb McDaniel).
9362 + Documented fact that you can put YAML metadata in a separate file
9363 (#1412).
9366pandoc (1.12.4.2)
9368 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
9370 * Shared: `addMetaValue` now behaves slightly differently:
9371 if both the new and old values are lists, it concatenates their
9372 contents to form a new list.
9374 * LaTeX reader:
9376 + Set `bibliography` in metadata from `\bibliography` or
9377 `\addbibresource` command.
9378 + Don't error on `%foo` with no trailing newline.
9380 * Org reader:
9382 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
9383 + Fix parsing of blank lines within blocks (Albert Krewinkel).
9384 + Support pandoc citation extension (Albert Krewinkel). This can
9385 be turned off by specifying `org-citations` as the input format.
9387 * Markdown reader:
9389 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
9390 other readers (Albert Krewinkel).
9392 * `Text.Pandoc.Parsing`:
9394 + Added `citeKey` (see above).
9395 + Added `HasLastStrPosition` type class and `updateLastStrPos`
9396 and `notAfterString` functions.
9398 * Updated copyright notices (Albert Krewinkel).
9400 * Added default.icml to data files so it installs with the package.
9402 * OSX package:
9404 + The binary is now built with options to ensure that it can be
9405 used with OSX 10.6+.
9406 + Moved OSX package materials to osx directory.
9407 + Added OSX package uninstall script, included in the zip container
9408 (thanks to Daniel T. Staal).
9410pandoc (1.12.4)
9412 * Made it possible to run filters that aren't executable (#1096).
9413 Pandoc first tries to find the executable (searching the path
9414 if path isn't given). If it fails, but the file exists and has
9415 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
9416 using the appropriate interpreter. This should make it easier to
9417 use filters on Windows, and make it more convenient for everyone.
9419 * Added Emacs org-mode reader (Albert Krewinkel).
9421 * Added InDesign ICML Writer (Mauro Bieg).
9423 * MediaWiki reader:
9425 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
9426 + Fixed bug in certain nested lists (#1213). If a level 2 list was
9427 followed by a level 1 list, the first item of the level 1 list
9428 would be lost.
9429 + Handle table rows containing just an HTML comment (#1230).
9431 * LaTeX reader:
9433 + Give better location information on errors, pointing to line
9434 numbers within included files (#1274).
9435 + LaTeX reader: Better handling of `table` environment (#1204).
9436 Positioning options no longer rendered verbatim.
9437 + Better handling of figure and table with caption (#1204).
9438 + Handle `@{}` and `p{length}` in tabular. The length is not actually
9439 recorded, but at least we get a table (#1180).
9440 + Properly handle `\nocite`. It now adds a `nocite` metadata
9441 field. Citations there will appear in the bibliography but not
9442 in the text (unless you explicitly put a `$nocite$` variable
9443 in your template).
9445 * Markdown reader:
9447 + Ensure that whole numbers in YAML metadata are rendered without
9448 decimal points. (This became necessary with changes to aeson
9449 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
9450 + Fixed regression on line breaks in strict mode (#1203).
9451 + Small efficiency improvements.
9452 + Improved parsing of nested `div`s. Formerly a closing `div` tag
9453 would be missed if it came right after other block-level tags.
9454 + Avoid backtracking when closing `</div>` not found.
9455 + Fixed bug in reference link parsing in `markdown_mmd`.
9456 + Fixed a bug in list parsing (#1154). When reading a raw list
9457 item, we now strip off up to 4 spaces.
9458 + Fixed parsing of empty reference link definitions (#1186).
9459 + Made one-column pipe tables work (#1218).
9461 * Textile reader:
9463 + Better support for attributes. Instead of being ignored, attributes
9464 are now parsed and included in Span inlines. The output will be a bit
9465 different from stock textile: e.g. for `*(foo)hi*`, we'll get
9466 `<em><span class="foo">hi</span></em>` instead of
9467 `<em class="foo">hi</em>`. But at least the data is not lost.
9468 + Improved treatment of HTML spans (%) (#1115).
9469 + Improved link parsing. In particular we now pick up on attributes.
9470 Since pandoc links can't have attributes, we enclose the whole link in
9471 a span if there are attributes (#1008).
9472 + Implemented correct parsing rules for inline markup (#1175, Matthew
9473 Pickering).
9474 + Use Builder (Matthew Pickering).
9475 + Fixed list parsing bug (#1500).
9476 + Don't allow inline formatting to extend over newlines.
9477 This matches the behavior of RedCarpet, avoids some ugly bugs,
9478 and improves performance.
9480 * DocBook reader:
9482 + Better treatment of `formalpara`. We now emit the title (if present)
9483 as a separate paragraph with boldface text (#1215).
9484 + Set metadata `author` not `authors`.
9485 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
9486 Matthew Pickering).
9487 + Converted current meta information parsing in DocBook to a more
9488 extensible version which is aware of the more recent meta
9489 representation (Matthew Pickering).
9491 * HTML reader:
9493 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
9494 (#1248).
9495 + Treat processing instructions & declarations as block. Previously
9496 these were treated as inline, and included in paragraph tags in HTML
9497 or DocBook output, which is generally not what is wanted (#1233).
9498 + Updated `closes` with rules from HTML5 spec.
9499 + Use Builder (Matthew Pickering, #1162).
9501 * RST reader:
9503 + Remove duplicate `http` in PEP links (Albert Krewinkel).
9504 + Make rst figures true figures (#1168, CasperVector)
9505 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
9506 rST parser now supports: all built-in rST roles, new role definition,
9507 role inheritance, though with some limitations.
9508 + Use `author` rather than `authors` in metadata.
9509 + Better handling of directives. We now correctly handle field
9510 lists that are indented more than three spaces. We treat an
9511 `aafig` directive as a code block with attributes, so it can be
9512 processed in a filter (#1212).
9514 * LaTeX writer:
9516 + Mark span contents with label if span has an ID (Albert Krewinkel).
9517 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
9518 + Handle line breaks in simple table cells (#1217).
9519 + Workaround for level 4-5 headers in quotes. These previously produced
9520 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
9521 This adds an `mbox{}` in these contexts to work around the problem.
9522 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
9523 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
9524 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
9525 ligature with LuaLaTeX but `\/` does.
9526 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
9528 * ConTeXt writer: Improved autolinks (#1270).
9530 * DocBook writer:
9532 + Improve handling of hard line breaks in Docbook writer
9533 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
9534 just for the newline character.
9535 + Don't let line breaks inside footnotes influence the enclosing
9536 paragraph (Neil Mayhew).
9537 + Distinguish tight and loose lists in DocBook output, using
9538 `spacing="compact"` (Neil Mayhew, #1250).
9540 * Docx writer: When needed files are not present in the user's
9541 `reference.docx`, fall back on the versions in the `reference.docx`
9542 in pandoc's data files. This fixes a bug that occurs when a
9543 `reference.docx` saved by LibreOffice is used. (#1185)
9545 * EPUB writer:
9547 + Include extension in epub ids. This fixes a problem with duplicate
9548 extensions for fonts and images with the same base name but different
9549 extensions (#1254).
9550 + Handle files linked in raw `img` tags (#1170).
9551 + Handle media in `audio` source tags (#1170).
9552 Note that we now use a `media` directory rather than `images`.
9553 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
9554 will both be incorporated into `content.opf` and the epub container.
9556 * HTML writer:
9558 + Add colgroup around col tags (#877). Also affects EPUB writer.
9559 + Fixed bug with unnumbered section headings. Unnumbered section
9560 headings (with class `unnumbered`) were getting numbers.
9561 + Improved detection of image links. Previously image links with
9562 queries were not recognized, causing `<embed>` to be used instead
9563 of `<img>`.
9565 * Man writer: Ensure that terms in definition lists aren't line wrapped
9566 (#1195).
9568 * Markdown writer:
9570 + Use proper escapes to avoid unwanted lists (#980). Previously we used
9571 0-width spaces, an ugly hack.
9572 + Use longer backtick fences if needed (#1206). If the content contains a
9573 backtick fence and there are attributes, make sure longer fences are
9574 used to delimit the code. Note: This works well in pandoc, but github
9575 markdown is more limited, and will interpret the first string of three
9576 or more backticks as ending the code block.
9578 * RST writer: Avoid stack overflow with certain tables (#1197).
9580 * RTF writer: Fixed table cells containing paragraphs.
9582 * Custom writer:
9584 + Correctly handle UTF-8 in custom lua scripts (#1189).
9585 + Fix bugs with lua scripts with mixed-case filenames and
9586 paths containing `+` or `-` (#1267). Note that `getWriter`
9587 in `Text.Pandoc` no longer returns a custom writer on input
9588 `foo.lua`.
9590 * AsciiDoc writer: Handle multiblock and empty table cells
9591 (#1245, #1246). Added tests.
9593 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
9595 * `Text.Pandoc.Shared`:
9597 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
9598 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
9599 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
9600 Jesse Rosenthal.
9601 + `openURL`: set proxy with value of http_proxy env variable (#1211).
9602 Note: proxies with non-root paths are not supported, due to
9603 limitations in `http-conduit`.
9605 * `Text.Pandoc.PDF`:
9607 + Ensure that temp directories deleted on Windows (#1192). The PDF is
9608 now read as a strict bytestring, ensuring that process ownership will
9609 be terminated, so the temp directory can be deleted.
9610 + Use `/` as path separators in a few places, even on Windows.
9611 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
9612 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
9613 + Changes to error reporting, to handle non-UTF8 error output.
9615 * `Text.Pandoc.Templates`:
9617 + Removed unneeded datatype context (Merijn Verstraaten).
9619 + YAML objects resolve to "true" in conditionals (#1133).
9620 Note: If `address` is a YAML object and you just have `$address$`
9621 in your template, the word `true` will appear, which may be
9622 unexpected. (Previously nothing would appear.)
9624 * `Text.Pandoc.SelfContained`:
9626 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
9627 the string.
9628 * It no longer looks in data files. This only made sense when we
9629 had copies of slidy and S5 code there.
9630 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
9631 + Handle `poster` attribute in `video` tags (#1188).
9633 * `Text.Pandoc.Parsing`:
9635 + Made `F` an instance of Applicative (#1138).
9636 + Added `stateCaption`.
9637 + Added `HasMacros`, simplified other typeclasses.
9638 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
9639 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
9640 + Changed the smart punctuation parser to return `Inlines`
9641 rather than `Inline` (Matthew Pickering).
9642 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
9643 from typeclasses of monads to typeclasses of states. This simplifies
9644 the instance definitions and provides more flexibility. Generalized
9645 type of `getOption` and added a default definition. Removed
9646 `askReaderOption`. Added `extractReaderOption`. Added
9647 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
9648 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
9649 `modifyHeaderMap`. Added `extractIdentifierList` and
9650 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
9651 for `getIdentifierList`, `putIdentifierList`, and
9652 `modifyIdentifierList`. The ultimate goal here is to allow different
9653 parsers to use their own, tailored parser states (instead of
9654 `ParserState`) while still using shared functions.
9656 * Template changes:
9658 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
9659 + LaTeX template: Add `linestretch` and `fontfamily` variables.
9660 + LaTeX template: Conditionalize author and date commands.
9661 + Beamer template: Consistent styles for figure and table captions
9662 (aaronwolen).
9663 + LaTeX and beamer template: Adjust widths correctly for oversized
9664 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
9665 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
9666 `upquote` only after `fontenc` (Yihui Xie).
9667 + Beamer template: Added caption package (#1200).
9668 + Beamer template: changes for better unicode handling (KarolS).
9669 + DocBook template: use `authorgroup` if there are authors.
9670 + revealjs template: Move `include-after` to end (certainlyakey).
9671 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
9673 * Bumped version bounds of dependencies.
9675 * Added a `--trace` command line option, for debugging backtracking
9676 bugs. So far this only works with the markdown reader.
9678 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
9680 * Updated travis script to test with multiple GHC versions.
9682 * Force failure of a Travis build if GHC produces warnings (Albert
9683 Krewinkel).
9685 * Add `.editorconfig` (Albert Krewinkel).
9686 See <http://editorconfig.org/> for details.
9688 * Give more useful error message if '-t pdf' is specified (#1155).
9690 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
9692 * Allow `html4` as a synonym of `html` as a reader (it already works
9693 as a writer).
9695 * README:
9697 + Added an explanation of how to use YAML metadata to
9698 force items to appear in the bibliography without citations in
9699 the text (like LaTeX `\nocite`).
9700 + Added note to `--bibtex/--natbib`: not for use in making PDF
9701 (#1194, thanks to nahoj).
9702 + Added explanatory notes about `--natbib` and `--biblatex`.
9703 + Added specification of legal syntax for citation keys.
9704 + Fixed variable defaults documentation (Albert Krewinkel).
9706 * Removed copyright statements for files that have been removed
9707 (Albert Krewinkel).
9709 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
9710 They aren't needed at runtime. We keep README and COPYRIGHT in data
9711 to ensure that they'll be available on all systems on which pandoc
9712 is installed.
9714 * Use cabal sandboxes in Windows build script.
9716pandoc (1.12.3.3)
9718 * To changes to source; recompiled tarball with latest alex and
9719 happy, so they will work with GHC 7.8.
9721pandoc (1.12.3.2)
9723 * Bumped version bounds for blaze-html, blaze-markup.
9725 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
9726 (#1124).
9728 * Fixed mediawiki ordered list parsing (#1122).
9730 * HTML reader: Fixed bug reading inline math with `$$` (#225).
9732 * Added support for LaTeX style literate Haskell code blocks in rST
9733 (Merijn Verstraaten).
9735pandoc (1.12.3.1)
9737 * Relaxed version constraint on binary, allowing the use of binary 0.5.
9739pandoc (1.12.3)
9741 * The `--bibliography` option now sets the `biblio-files` variable.
9742 So, if you're using `--natbib` or `--biblatex`, you can just use
9743 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
9745 * Don't run pandoc-citeproc filter if `--bibliography` is
9746 used together with `--natbib` or `--biblatex` (Florian Eitel).
9748 * Template changes:
9750 + Updated beamer template to include booktabs.
9751 + Added `abstract` variable to LaTeX template.
9752 + Put `header-includes` after `title` in LaTeX template (#908).
9753 + Allow use of `\includegraphics[size]` in beamer.
9754 This just required porting a macro definition from the default
9755 LaTeX template to the default beamer template.
9757 * `reference.docx`: Include `FootnoteText` style.
9758 Otherwise Word ignores the style, even when specified in the `pPr`.
9759 (#901)
9761 * `reference.odt`: Tidied `styles.xml`.
9763 * Relaxed version bounds for dependencies.
9765 * Added `withSocketsDo` around http conduit code in `openURL`,
9766 so it works on Windows (#1080).
9768 * Added `Cite` function to `sample.lua`.
9770 * Markdown reader:
9772 + Fixed regression in title blocks (#1089).
9773 If author field was empty, date was being ignored.
9774 + Allow backslash-newline hard line breaks in grid and
9775 multiline table cells.
9776 + Citation keys may now start with underscores, and may contain
9777 underscores adjacent to internal punctuation.
9779 * LaTeX reader:
9781 + Add support for `Verb` macro (jrnold) (#1090).
9782 + Support babel-style quoting: `` "`..."' ``.
9784 * Properly handle script blocks in strict mode. (That is,
9785 `markdown-markdown_in_html_blocks`.) Previously a spurious
9786 `<p>` tag was being added (#1093).
9788 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
9789 elements.
9791 * LaTeX writer:
9793 + Factored out function for table cell creation.
9794 + Better treatment of footnotes in tables.
9795 Notes now appear in the regular sequence, rather than in the
9796 table cell. (This was a regression in 1.10.)
9798 * HTML reader: Parse name/content pairs from meta tags as metadata.
9799 Closes #1106.
9801 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
9803 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
9805 * ODT writer: Use mathml for proper rendering of formulas.
9806 Note: LibreOffice's support for this seems a bit buggy. But
9807 it should be better than what we had before.
9809 * RST writer: Ensure no blank line after def in definition list (#992).
9811 * Markdown writer: Don't use tilde code blocks with braced attributes in
9812 `markdown_github` output. A consequence of this change is that the
9813 backtick form will be preferred in general if both are enabled. That
9814 is good, as it is much more widespread than the tilde form. (#1084)
9816 * Docx writer: Fixed problem with some modified reference docx files.
9817 Include `word/_rels/settings.xml.rels` if it exists, as well as other
9818 `rels` files besides the ones pandoc generates explicitly.
9820 * HTML writer:
9822 + With `--toc`, headers no longer link to themselves (#1081).
9823 + Omit footnotes from TOC entries. Otherwise we get doubled
9824 footnotes when headers have notes!
9826 * EPUB writer:
9828 + Avoid duplicate notes when headings contain notes.
9829 This arose because the headings are copied into the metadata
9830 "title" field, and the note gets rendered twice. We strip the
9831 note now before putting the heading in "title".
9832 + Strip out footnotes from toc entries.
9833 + Fixed bug with `--epub-stylesheet`. Now the contents of
9834 `writerEpubStylesheet` (set by `--epub-stylesheet`)
9835 should again work, and take precedence over a stylesheet specified
9836 in the metadata.
9838 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
9840 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
9841 with `//`.
9843 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
9844 we could only get size information for JFIF format, which led
9845 to squished images in Word documents. Closes #976.
9847 * Removed old `MarkdownTest_1.0.3` directory (#1104).
9849pandoc (1.12.2.1)
9851 * Markdown reader: Fixed regression in list parser, involving
9852 continuation lines containing raw HTML (or even verbatim raw HTML).
9854pandoc (1.12.2)
9856 * Metadata may now be included in YAML blocks in a markdown document.
9857 For example,
9859 ---
9860 title:
9861 - type: main
9862 text: My Book
9863 - type: subtitle
9864 text: An investigation of metadata
9865 creator:
9866 - role: author
9867 text: John Smith
9868 - role: editor
9869 text: Sarah Jones
9870 identifier:
9871 - scheme: DOI
9872 text: doi:10.234234.234/33
9873 publisher: My Press
9874 rights: (c) 2007 John Smith, CC BY-NC
9875 cover-image: img/mypic.jpg
9876 ...
9878 Metadata may still be provided using `--epub-metadata`; it will
9879 be merged with the metadata in YAML blocks.
9881 * EPUB writer:
9883 + `meta` tags are now used instead of `opf` attributes for EPUB3.
9884 + Insert "svg" property as needed in opf (EPUB 3).
9885 + Simplify `imageTypeOf` using `getMimeType`.
9886 + Add properties attribute to `cover-image` item for EPUB 3.
9887 + Don't include node for `cover.xhtml` if no cover!
9888 + Ensure that same identifier is used throughout (#1044).
9889 If an identifier is given in metadata, we use that; otherwise
9890 we generate a random uuid.
9891 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
9892 Fixes an issue with Calibre putting the cover at the end of the book
9893 if the spine has `linear="no"`. Apparently this is best practice
9894 for other converters as well:
9895 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
9896 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
9897 + Allow partial dates: `YYYY`, `YYYY-MM`.
9899 * Markdown writer: Fix rendering of tight sublists (#1050).
9900 Previously a spurious blank line was included after a tight sublist.
9902 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
9903 This is reported to be necessary to avoid an error from recent
9904 versions of Libre Office when files contain more than one image
9905 Thanks to wmanley for reporting and diagnosing the problem.
9907 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
9908 Instead, let this be set in the template, using `\setupfloat`.
9909 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
9911 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
9913 * Fixed bug with markdown intraword emphasis. Closes #1066.
9915 * Docbook writer: Hierarchicalize block content in metadata.
9916 Previously headers just disappeared from block-level metadata
9917 when it was used in templates. Now we apply the 'hierarchicalize'
9918 transformation. Note that a block headed by a level-2 header will
9919 turn into a `<sect1>` element.
9921 * OpenDocument writer: Skip raw HTML (#1035).
9922 Previously it was erroneously included as verbatim text.
9924 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
9925 This allows better control of formatting, since the `<a>`
9926 tags have a distinguishing class (#1049).
9928 * Docx writer:
9930 + Use mime type info returned by fetchItem.
9931 + Fixed core metadata (#1046).
9932 Don't create empty date nodes if no date given.
9933 Don't create multiple `dc:creator` nodes; instead separate by
9934 semicolons.
9935 + Fix URL for core-properties in `_rels/.rels` (#1046).
9937 * Plain writer: don't print `<span>` tags.
9939 * LaTeX writer:
9941 + Fix definition lists with internal links in terms (#1032).
9942 This fix puts braces around a term that contains an internal
9943 link, to avoid problems with square brackets.
9944 + Properly escape pdftitle, pdfauthor (#1059).
9945 + Use booktabs package for tables (thanks to Jose Luis Duran).
9947 * Updated beamer template. Now references should work properly
9948 (in a slide) when `--biblatex` or `--natbib` is used.
9950 * LaTeX reader:
9952 + Parse contents of curly quotes or matched `"` as quotes.
9953 + Support `\textnormal` as span with class `nodecor`.
9954 This is needed for pandoc-citeproc.
9955 + Improved citation parsing. This fixes a run-time error that occurred
9956 with `\citet{}` (empty list of keys). It also ensures that empty keys
9957 don't get produced.
9959 * MediaWiki reader: Add automatic header identifiers.
9961 * HTML reader:
9963 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
9964 `--parse-raw`.
9965 + Recognize `svg` tags as block level content (thanks to MinRK).
9966 + Parse LaTeX math if appropriate options are set.
9968 * Markdown reader:
9970 + Yaml block must start immediately after `---`. If there's a blank
9971 line after `---`, we interpreted it as a horizontal rule.
9972 + Correctly handle empty bullet list items.
9973 + Stop parsing "list lines" when we hit a block tag.
9974 This fixes exponential slowdown in certain input, e.g.
9975 a series of lists followed by `</div>`.
9977 * Slides: Preserve `<div class="references">` in references slide.
9979 * `Text.Pandoc.Writer.Shared`:
9981 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
9982 attributes, leading to invalid HTML.
9983 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
9984 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
9985 encoded bytestring was returned. We now decode it so it's a proper
9986 image!
9988 * DocBook reader: Handle numerical attributes starting with decimal.
9989 Also use `safeRead` instead of `read`.
9991 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
9992 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
9993 in all the writers. Require `texmath >= 0.6.5.2`.
9995 * `Text.Pandoc.MIME`:
9997 + Add entry for `jfif`.
9998 + In looking up extensions, drop the encoding info.
9999 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
10001 * Templates: Changed how array variables are resolved. Previously if
10002 `foo` is an array (which might be because multiple values were set on
10003 the command line), `$foo$` would resolve to the concatenation of the
10004 elements of foo. This is rarely useful behavior. It has been changed
10005 so that the first value is rendered. Of course, you can still iterate
10006 over the values using `$for(foo)$`. This has the result that you can
10007 override earlier settings using `-V` by putting new values later on the
10008 command line, which is useful for many purposes.
10010 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
10012 * Allow "epub2" as synonym for "epub", "html4" for "html".
10014 * Don't look for slidy files in data files with `--self-contained`.
10016 * Allow `https:` command line arguments to be downloaded.
10018 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
10020pandoc (1.12.1)
10022 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
10023 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
10024 "c": "foo"}`. This new format is easier to work with outside of Haskell.
10025 Incidentally, "t" stands for "tag", "c" for "contents".
10027 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
10028 when converting to markdown (#1027).
10030 * LaTeX reader:
10032 + Ensure that preamble doesn't contribute to the text of
10033 the document.
10034 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
10035 properly, among others.
10036 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
10037 bibtex titles, since we need to know what was protected from
10038 titlecase conversions.
10040 * LaTeX writer:
10042 + Specially escape non-ascii characters in labels.
10043 Otherwise we can get compile errors and other bugs when
10044 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
10045 + Add link anchors for code blocks with identifiers (#1025).
10047 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
10048 It allows fragments identifiers.
10050 * Slide formats:
10052 + A Div element with class "notes" is treated as speaker
10053 notes. Currently beamer goes to `\note{}`, revealjs to
10054 `<aside class="notes">`, and the notes are simply suppressed in
10055 other formats (#925).
10056 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
10057 The old version caused a pause to be inserted before the first
10058 material on a slide. This has been fixed.
10059 + Removed data files for s5, slideous, slidy.
10060 Users of s5 and slideous will have to download the needed
10061 files, as has been documented for some time in the README.
10062 By default, slidy code will be sought on the web, as before.
10064 * HTML writer: Insert command to typeset mathjax only in slideous output
10065 (#966, #1012).
10067 * RST writer: Skip spaces after display math. Otherwise we get indentation
10068 problems, and part of the next paragraph may be rendered as part of the
10069 math.
10071 * OpenDocument writer: Fix formatting of strikeout code (#995),
10072 thanks to wilx. don't use `font-face-decls` variable.
10074 * Fixed test suite so it works with cabal sandboxes.
10076pandoc (1.12.0.2)
10078 * Removed `stringable` dependency.
10080pandoc (1.12.0.1)
10082 * Allow `--metadata` to be repeated for the same key to form a list.
10083 This also has the effect that `--bibliography` can be repeated,
10084 as before.
10086 * Handle boolean values in `--metadata`. Note that anything not parseable
10087 as a YAML boolean or string is treated as a literal string.
10088 You can get a string value with "yes", or any of the strings interpretable
10089 as booleans, by quoting it:
10091 -M boolvalue=yes -M stringvalue='"yes"'
10093 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
10094 option used.
10096 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
10097 in which docx files could not be read by some versions of Word
10098 and LibreOffice (#990).
10100 * Fixed a regression involving slide shows with bibliographies.
10101 The Div container around references messed up the procedure for carving
10102 a document into slides. So we now remove the surrounding Div in
10103 `prepSlides`.
10105 * More informative error message when a filter is not found in path.
10107 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
10108 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
10110 * Don't use unicode_collation in building OSX package:
10111 it adds something like 50MB of dependencies to the package.
10113 * Declare alex and happy as build-tools (#986).
10115pandoc (1.12)
10117 [new features]
10119 * Much more flexible metadata, including arbitrary fields and structured
10120 values. Metadata can be specified flexibly in pandoc markdown using
10121 YAML metadata blocks, which may occur anywhere in the document:
10123 ---
10124 title: Here is my title.
10125 abstract: |
10126 This is the abstract.
10128 1. It can contain
10129 2. block content
10130 and *inline markup*
10132 tags: [cat, dog, animal]
10133 ...
10135 Metadata fields automatically populate template variables.
10137 * Added `opml` (OPML) as input and output format. The `_note` attribute,
10138 used in OmniOutliner and supported by multimarkdown, is supported.
10139 We treat the contents as markdown blocks under a section header.
10141 * Added `haddock` (Haddock markup) as input format (David Lazar).
10143 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
10144 (Thanks to Jamie F. Olson for the initial patch.)
10145 Nested vertical stacks are used for hierarchical structure.
10146 Results for more than one level of nesting may be odd.
10148 * Custom writers can now be written in lua.
10150 pandoc -t data/sample.lua
10152 will load the script sample.lua and use it as a custom writer.
10153 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
10154 Note that pandoc embeds a lua interpreter, so lua need not be
10155 installed separately.
10157 * New `--filter/-F` option to make it easier to run "filters"
10158 (Pandoc AST transformations that operate on JSON serializations).
10159 Filters are always passed the name of the output format, so their
10160 behavior can be tailored to it. The repository
10161 <https://github.com/jgm/pandocfilters> contains
10162 a python module for writing pandoc filters in python, with
10163 a number of examples.
10165 * Added `--metadata/-M` option.
10166 This is like `--variable/-V`, but actually adds to metadata, not
10167 just variables.
10169 * Added `--print-default-data-file` option, which allows printing
10170 of any of pandoc's data files. (For example,
10171 `pandoc --print-default-data-file reference.odt` will print
10172 `reference.odt`.)
10174 * Added syntax for "pauses" in slide shows:
10176 This gives
10178 . . .
10180 me pause.
10182 * New markdown extensions:
10184 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
10185 rather than being treated as hard line breaks or spaces. This is useful
10186 for some East Asian languages, where spaces aren't used between words,
10187 but text is separated into lines for readability.
10188 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
10189 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
10190 only. (Default for `markdown_github`.) (#807)
10191 + `lists_without_preceding_blankline`: Allow lists to start without
10192 preceding blank space. (Default for `markdown_github`.) (#972)
10194 [behavior changes]
10196 * `--toc-level` no longer implies `--toc`.
10197 Reason: EPUB users who don't want a visible TOC may still want
10198 to set the TOC level for in the book navigation.
10200 * `--help` now prints in and out formats in alphabetical order, and
10201 says something about PDF output (#720).
10203 * `--self-contained` now returns less verbose output (telling you
10204 which URLs it is fetching, but not giving the full header). In
10205 addition, there are better error messages when fetching a URL fails.
10207 * Citation support is no longer baked in to core pandoc. Users who
10208 need citations will need to install and use a separate filter
10209 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
10210 `csl`, and `citation-abbreviations` from the metadata, though it
10211 may still be specified on the command line as before.
10213 * A `Cite` element is now created in parsing markdown whether or not
10214 there is a matching reference.
10216 * The `pandoc-citeproc` script will put the bibliography at the
10217 end of the document, as before. However, it will be put inside a `Div`
10218 element with class "references", allowing users some control
10219 over the styling of references. A final header, if any, will
10220 be included in the `Div`.
10222 * The markdown writer will not print a bibliography if the
10223 `citations` extension is enabled. (If the citations are formatted
10224 as markdown citations, it is redundant to have a bibliography,
10225 since one will be generated automatically.)
10227 * Previously we used to store the directory of the first input file,
10228 even if it was local, and used this as a base directory for finding
10229 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
10230 users. So we now look for images relative to the current
10231 working directory, even if the first file argument is in another
10232 directory. Note that this change may break some existing workflows.
10233 If you have been assuming that relative links will be interpreted
10234 relative to the directory of the first file argument, you'll need
10235 to make that the current directory before running pandoc. (#942)
10237 * Better error reporting in some readers, due to changes in `readWith`:
10238 the line in which the error occurred is printed, with a caret pointing
10239 to the column.
10241 * All slide formats now support incremental slide view for definition lists.
10243 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
10244 Parse `:<math>...</math>` as display math. These notations are used with
10245 the MathJax MediaWiki extension.
10247 * All writers: template variables are set automatically from metadata
10248 fields. However, variables specified on the command line with
10249 `--variable` will completely shadow metadata fields.
10251 * If `--variable` is used to set many variables with the same name,
10252 a list is created.
10254 * Man writer: The `title`, `section`, `header`, and `footer` can now
10255 all be set individually in metadata. The `description` variable has been
10256 removed. Quotes have been added so that spaces are allowed in the
10257 title. If you have a title that begins
10259 COMMAND(1) footer here | header here
10261 pandoc will still parse it into a title, section, header, and
10262 footer. But you can also specify these elements explicitly (#885).
10264 * Markdown reader
10266 + Added support for YAML metadata blocks, which can come anywhere
10267 in the document (not just at the beginning). A document can contain
10268 multiple YAML metadata blocks.
10269 + HTML span and div tags are parsed as pandoc Span and Div elements.
10271 * Markdown writer
10273 + Allow simple tables to be printed as grid tables,
10274 if other table options are disabled. This means you can do
10275 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
10276 and all tables will render as grid tables.
10277 + Support YAML title block (render fields in alphabetical order
10278 to make output predictable).
10280 [API changes]
10282 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
10283 structured metadata. (Note: existing code that pattern-matches
10284 on `Meta` will have to be revised.) Metadata can now contain
10285 indefinitely many fields, with content that can be a string,
10286 a Boolean, a list of `Inline` elements, a list of `Block`
10287 elements, or a map or list of these.
10289 * A new generic block container (`Div`) has been added to `Block`,
10290 and a generic inline container (`Span`) has been added to `Inline`.
10291 These can take attributes. They will render in HTML, Textile,
10292 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
10293 extension) as HTML `<div>` and `<span>` elements; in other formats
10294 they will simply pass through their contents. But they can be
10295 targeted by scripts.
10297 * `Format` is now a newtype, not an alias for String.
10298 Equality comparisons are case-insensitive.
10300 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
10301 functions that are much faster than the SYB functions from
10302 `Text.Pandoc.Generic`. These functions are now used where possible
10303 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
10304 match the generic traversals `bottomUp` and `queryWith`.)
10306 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
10307 instances for the basic pandoc types. They use GHC generics and
10308 should be faster than the old JSON serialization using
10309 `Data.Aeson.Generic`.
10311 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
10312 This is a souped-up version of `readProcessWithErrorcode` that
10313 uses lazy bytestrings instead of strings and allows setting
10314 environment variables. (Used in `Text.Pandoc.PDF`.)
10316 * New module `Text.Pandoc.Readers.OPML`.
10318 * New module `Text.Pandoc.Writers.OPML`.
10320 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
10321 This is based on Haddock's own lexer/parser.
10323 * New module `Text.Pandoc.Writers.Custom`.
10325 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
10326 Either, for better error handling.
10328 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
10330 * Removed `stripTags` from `Text.Pandoc.XML`.
10332 * `Text.Pandoc.Templates`:
10334 + Simplified `Template` type to a newtype.
10335 + Removed `Empty`.
10336 + Changed type of `renderTemplate`: it now takes a JSON context
10337 and a compiled template.
10338 + Export `compileTemplate`.
10339 + Export `renderTemplate'` that takes a string instead of a compiled
10340 template.
10341 + Export `varListToJSON`.
10343 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
10344 The signature of `makePDF` has changed and now contains
10345 an additional argument for pdf engine options.
10347 * `Text.Pandoc`:
10349 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
10350 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
10351 `Text.Pandoc.JSON` should be used instead. (Compiling against
10352 pandoc-types instead of pandoc will also produce smaller executables.)
10353 * Removed the deprecated `jsonFilter` function.
10354 + Added `readJSON`, `writeJSON` to the API (#817).
10356 * `Text.Pandoc.Options`:
10358 + Added `Ext_lists_without_preceding_blankline`,
10359 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
10360 `Ext_yaml_metadataBlock` to `Extension`.
10361 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
10362 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
10363 first command-line argument is an absolute URL. (So, relative links
10364 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
10365 + All bibliography-related fields have been removed from
10366 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
10367 `readerReferences`, `readerCitationStyle`.
10368 + Removed `writerPdfArgs` from `WriterOptions`. These are now
10369 passed in as a parameter to `makePDF`.
10371 * The `Text.Pandoc.Biblio` module has been removed. Users of the
10372 pandoc library who want citation support will need to use
10373 `Text.CSL.Pandoc` from `pandoc-citeproc`.
10376 [bug fixes]
10378 * In markdown, don't autolink a bare URI that is followed by `</a>`
10379 (#937).
10381 * `Text.Pandoc.Shared`
10383 + `openURL` now follows redirects (#701), properly handles `data:`
10384 URIs, and prints diagnostic output to stderr rather than stdout.
10385 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
10386 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
10387 + Fixed `readDefaultDataFile` so it works on Windows.
10388 + Better error messages for `readDefaultDataFile`. Instead of
10389 listing the last path tried, which can confuse people who are
10390 using `--self-contained`, so now we just list the data file name.
10391 + URL-escape pipe characters. Even though these are legal, `Network.URI`
10392 doesn't regard them as legal in URLs. So we escape them first (#535).
10394 * Mathjax in HTML slide shows: include explicit "Typeset" call.
10395 This seems to be needed for some formats (e.g. slideous) and won't
10396 hurt in others (#966).
10398 * `Text.Pandoc.PDF`
10400 + On Windows, create temdir in working directory, since the system
10401 temp directory path may contain tildes, which can cause
10402 problems in LaTeX (#777).
10403 + Put temporary output directory in `TEXINPUTS` (see #917).
10404 + `makePDF` tries to download images that are not found locally,
10405 if the first argument is a URL (#917).
10406 + If compiling with `pdflatex` yields an encoding error, offer
10407 the suggestion to use `--latex-engine=xelatex`.
10409 * Produce automatic header identifiers in parsing textile, RST,
10410 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
10412 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
10413 before treating as a filename. This fixes `--self-contained` when used
10414 with CSS files that include web fonts using the method described here:
10415 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
10416 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
10418 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
10419 percent-encoding, or a `+` character, as final punctuation.
10421 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
10422 EPS images properly sized on conversion to Word.
10424 * Slidy: Use slidy.js rather than slidy.js.gz.
10425 Reason: some browsers have trouble with the gzipped js file,
10426 at least on the local file system (#795).
10428 * Markdown reader
10430 + Properly handle blank line at beginning of input (#882).
10431 + Fixed bug in unmatched reference links. The input
10432 `[*infile*] [*outfile*]` was getting improperly parsed:
10433 "infile" was emphasized, but "*outfile*" was literal (#883).
10434 + Allow internal `+` in citation identifiers (#856).
10435 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
10436 + Do not generate blank title, author, or date metadata elements.
10437 Leave these out entirely if they aren't present.
10438 + Allow backtick code blocks not to be preceded by blank line (#975).
10440 * Textile reader:
10442 + Correctly handle entities.
10443 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
10444 in code blocks, rather than printing them verbatim. Parse attributes
10445 on `<pre>` tag for code blocks.
10447 * HTML reader: Handle non-simple tables (#893). Column widths are read from
10448 `col` tags if present, otherwise divided equally.
10450 * LaTeX reader
10452 + Support alltt environment (#892).
10453 + Support `\textasciitilde`, `\textasciicircum` (#810).
10454 + Treat `\textsl` as emphasized text reader (#850).
10455 + Skip positional options after `\begin{figure}`.
10456 + Support `\v{}` for hacek (#926).
10457 + Don't add spurious ", " to citation suffixes.
10458 This is added when needed in pandoc-citeproc.
10459 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
10460 + Improved support for accented characters (thanks to Scott Morrison).
10461 + Parse label after section command and set id (#951).
10463 * RST reader:
10465 + Don't insert paragraphs where docutils doesn't.
10466 `rst2html` doesn't add `<p>` tags to list items (even when they are
10467 separated by blank lines) unless there are multiple paragraphs in the
10468 list. This commit changes the RST reader to conform more closely to
10469 what docutils does (#880).
10470 + Improved metadata. Treat initial field list as metadata when
10471 standalone specified. Previously ALL fields "title", "author",
10472 "date" in field lists were treated as metadata, even if not at
10473 the beginning. Use `subtitle` metadata field for subtitle.
10474 + Fixed 'authors' metadata parsing in reST. Semicolons separate
10475 different authors.
10477 * MediaWiki reader
10479 + Allow space before table rows.
10480 + Fixed regression for `<ref>URL</ref>`.
10481 `<` is no longer allowed in URLs, according to the uri parser
10482 in `Text.Pandoc.Parsing`. Added a test case.
10483 + Correctly handle indented preformatted text without preceding
10484 or following blank line.
10485 + Fixed `|` links inside table cells. Improved attribute parsing.
10486 + Skip attributes on table rows. Previously we just crashed if
10487 rows had attributes, now we ignore them.
10488 + Ignore attributes on headers.
10489 + Allow `Image:` for images (#971).
10490 + Parse an image with caption in a paragraph by itself as a figure.
10492 * LaTeX writer
10494 + Don't use ligatures in escaping inline code.
10495 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
10496 wherein notes were numbered incorrectly in tables (#827).
10497 + Always create labels for sections. Previously the labels were only
10498 created when there were links to the section in the document (#871).
10499 + Stop escaping `|` in LaTeX math.
10500 This caused problems with array environments (#891).
10501 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
10502 `\` will cause major problems if unescaped.
10503 + Write id for code block to label attribute in LaTeX when listings
10504 is used (thanks to Florian Eitel).
10505 + Scale LaTeX tables so they don't exceed columnwidth.
10506 + Avoid problem with footnotes in unnumbered headers (#940).
10508 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
10509 to the slide if it is one of the header classes. It is recommended
10510 that your bibliography slide have this attribute:
10512 # References {.allowframebreaks}
10514 This causes multiple slides to be created if necessary, depending
10515 on the length of the bibliography.
10517 * ConTeXt writer: Properly handle tables without captions. The old output
10518 only worked in MkII. This should work in MkIV as well (#837).
10520 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
10522 * HTML writer:
10524 + Fixed `--no-highlight` (Alexander Kondratskiy).
10525 + Don't convert to lowercase in email obfuscation (#839).
10526 + Ensure proper escaping in `<title>` and `<meta>` fields.
10528 * AsciiDoc writer:
10530 + Support `--atx-headers` (Max Rydahl Andersen).
10531 + Don't print empty identifier blocks `([[]])` on headers (Max
10532 Rydahl Andersen).
10534 * ODT writer:
10536 + Fixing wrong numbered-list indentation in open document format
10537 (Alexander Kondratskiy) (#369).
10538 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
10539 + Minor changes for ODF 1.2 conformance (#939). We leave the
10540 nonconforming `contextual-spacing` attribute, which is provided by
10541 LibreOffice itself and seems well supported.
10543 * Docx writer:
10545 + Fixed rendering of display math in lists.
10546 In 1.11 and 1.11.1, display math in lists rendered as a new list
10547 item. Now it always appears centered, just as outside of lists,
10548 and in proper display math style, no matter how far indented the
10549 containing list item is (#784).
10550 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
10551 Previously we used `w:cr` (#873).
10552 + Use Compact style for Plain block elements, to
10553 differentiate between tight and loose lists (#775).
10554 + Ignore most components of `reference.docx`.
10555 We take the `word/styles.xml`, `docProps/app.xml`,
10556 `word/theme/theme1.xml`, and `word/fontTable.xml` from
10557 `reference.docx`, ignoring everything else. This should help
10558 with the corruption problems caused when different versions of
10559 Word resave the reference.docx and reorganize things.
10560 + Made `--no-highlight` work properly.
10562 * EPUB writer
10564 + Don't add `dc:creator` tags if present in EPUB metadata.
10565 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
10566 + Don't put blank title page in reading sequence.
10567 Set `linear="no"` if no title block. Addresses #797.
10568 + Download webtex images and include as data URLs.
10569 This allows you to use `--webtex` in creating EPUBs.
10570 Math with `--webtex` is automatically made self-contained.
10571 + In `data/epub.css`, removed highlighting styles (which
10572 are no longer needed, since styles are added by the HTML
10573 writer according to `--highlighting-style`). Simplified
10574 margin fields.
10575 + If resource not found, skip it, as in Docx writer (#916).
10577 * RTF writer:
10579 + Properly handle characters above the 0000-FFFF range.
10580 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
10581 + Fixed regression with RTF table of contents.
10582 + Only autolink absolute URIs. This fixes a regression, #830.
10584 * Markdown writer:
10586 + Only autolink absolute URIs. This fixes a regression, #830.
10587 + Don't wrap attributes in fenced code blocks.
10588 + Write full metadata in MMD style title blocks.
10589 + Put multiple authors on separate lines in pandoc titleblock.
10590 Also, don't wrap long author entries, as new lines get treated
10591 as new authors.
10593 * `Text.Pandoc.Templates`:
10595 + Fixed bug retrieving default template for markdown variants.
10596 + Templates can now contain "record lookups" in variables;
10597 for example, `author.institution` will retrieve the `institution`
10598 field of the `author` variable.
10599 + More consistent behavior of `$for$`. When `foo` is not a list,
10600 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
10601 So if `foo` resolves to "", no output should be produced.
10602 See pandoc-templates#39.
10604 * Citation processing improvements (now part of pandoc-citeproc):
10606 + Fixed `endWithPunct` The new version correctly sees a sentence
10607 ending in '.)' as ending with punctuation. This fixes a bug which
10608 led such sentences to receive an extra period at the end: '.).'.
10609 Thanks to Steve Petersen for reporting.
10610 + Don't interfere with Notes that aren't citation notes.
10611 This fixes a bug in which notes not generated from citations were
10612 being altered (e.g. first letter capitalized) (#898).
10613 + Only capitalize footnote citations when they have a prefix.
10614 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
10615 inserted before it before passing to citeproc-hs, so that bare numbers
10616 are treated as page numbers by default. A suffix not beginning with
10617 punctuation has a space added at the beginning (rather than a comma and
10618 space, as was done before for not-author-in-text citations).
10619 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
10620 properly, with '23' treated as a locator of type 'page'.
10621 + Many improvements to citation rendering, due to fixes in citeproc-hs
10622 (thanks to Andrea Rossato).
10623 + Warnings are issued for undefined citations, which are rendered
10624 as `???`.
10625 + Fixed hanging behavior when locale files cannot be found.
10627 [template changes]
10629 * DocBook: Use DocBook 4.5 doctype.
10631 * Org: '#+TITLE:' is inserted before the title.
10632 Previously the writer did this.
10634 * LaTeX: Changes to make mathfont work with xelatex.
10635 We need the mathspec library, not just fontspec, for this.
10636 We also need to set options for setmathfont (#734).
10638 * LaTeX: Use `tex-ansi` mapping for `monofont`.
10639 This ensures that straight quotes appear as straight, rather than
10640 being treated as curly. See #889.
10642 * Made `\includegraphics` more flexible in LaTeX template.
10643 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
10645 * LaTeX/Beamer: Added `classoption` variable.
10646 This is intended for class options like `oneside`; it may
10647 be repeated with different options. (Thanks to Oliver Matthews.)
10649 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
10651 * LaTeX: Added `biblio-style` variable (#920).
10653 * DZSlides: title attribute on title section.
10655 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
10657 [under-the-hood improvements]
10659 * Markdown reader:Improved strong/emph parsing, using the strategy of
10660 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
10661 no backtracking, and no keeping track of nesting levels. It will give
10662 different results in some edge cases, but these should not affect normal
10663 uses.
10665 * Added `Text.Pandoc.Compat.Monoid`.
10666 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
10667 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
10669 * Added `Text.Pandoc.Compat.TagSoupEntity`.
10670 This allows pandoc to compile with `tagsoup` 0.13.x.
10671 Thanks to Dirk Ullrich for the patch.
10673 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
10674 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
10675 handle simple math in bibliography fields.)
10677 * Added `Text.Pandoc.Writers.Shared` for shared functions used
10678 only in writers. `metaToJSON` is used in writers to create a
10679 JSON object for use in the templates from the pandoc metadata
10680 and variables. `getField`, `setField`, and `defField` are
10681 for working with JSON template contexts.
10683 * Added `Text.Pandoc.Asciify` utility module.
10684 This exports functions to create ASCII-only versions of identifiers.
10686 * `Text.Pandoc.Parsing`
10688 + Generalized state type on `readWith` (API change).
10689 + Specialize readWith to `String` input. (API change).
10690 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
10691 with `stateMeta` and `stateMeta'`.
10693 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
10694 bytestrings seemed to cause problems using pandoc on 64-bit Windows
10695 7/8 (#874).
10697 * Factored out `registerHeader` from markdown reader, added to
10698 `Text.Pandoc.Parsing`.
10700 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
10701 Reason: < 0.5 does not provide a monoid instance for Attribute,
10702 which is now needed by the HTML writer (#803).
10704 * Added `http-conduit` flag, which allows fetching https resources.
10705 It also brings in a large number of dependencies (`http-conduit`
10706 and its dependencies), which is why for now it is an optional flag
10707 (#820).
10709 * Added CONTRIBUTING.md.
10711 * Improved INSTALL instructions.
10713 * `make-windows-installer.bat`: Removed explicit paths for executables.
10715 * `aeson` is now used instead of `json` for JSON.
10717 * Set default stack size to 16M. This is needed for some large
10718 conversions, esp. if pandoc is compiled with 64-bit ghc.
10720 * Various small documentation improvements.
10721 Thanks to achalddave and drothlis for patches.
10723 * Removed comment that chokes recent versions of CPP (#933).
10725 * Removed support for GHC version < 7.2, since pandoc-types now
10726 requires at least GHC 7.2 for GHC generics.
10729pandoc (1.11.1)
10731 * Markdown reader:
10733 + Fixed regression in which parentheses were lost in link URLs.
10734 Added tests. Closes #786.
10735 + Better handling of unmatched double quotes in `--smart` mode.
10736 These occur frequently in fiction, since it is customary not to
10737 close quotes in dialogue if the speaker does not change between
10738 paragraphs. The unmatched quotes now get turned into literal
10739 left double quotes. (No `Quoted` inline is generated, however.)
10740 Closes #99 (again).
10742 * HTML writer: Fixed numbering mismatch between TOC and sections.
10743 `--number-offset` now affects TOC numbering as well
10744 as section numbering, as it should have all along. Closes #789.
10746 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
10747 as markdown citations, even if `--bibliography` was specified, unless
10748 `citation` extension is disabled. Now, formatted citations are always
10749 printed if `--bibliography` was specified. If you want to reformat
10750 markdown keeping pandoc markdown citations intact, don't use
10751 `--bibliography`. Note that citations parsed from LaTeX documents will
10752 be rendered as pandoc markdown citations when `--bibliography` is not
10753 specified.
10755 * ODT writer: Fixed regression leading to corrupt ODTs.
10756 This was due to a change in the `Show` instance for
10757 `Text.Pandoc.Pretty.Doc`. Closes #780.
10759 * Fixed spacing bugs involving code block attributes in
10760 RST reader and Markdown writer. Closes #763.
10762 * Windows package: Various improvements due to Fyodor Sheremetyev.
10764 + Automatically set installation path (Program Files or Local App Data).
10765 + Set system PATH environment variable when installing for all users.
10766 + Pandoc can installed for all users using the following command.
10767 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
10769 * Bumped QuickCheck version bound.
10771pandoc (1.11)
10773 * Added `--number-offset` option. (See README for description.)
10775 * Added `--default-image-extension` option. (See README for description.)
10777 * `--number-sections` behavior change: headers with class `unnumbered`
10778 will not be numbered.
10780 * `--version` now reports the default data directory.
10782 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
10784 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
10786 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
10787 a field for `Attr` rather than just `String`. (API change.)
10789 * Added `markdown_github` as input format. This was an accidental
10790 omission in 1.10.
10792 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
10793 change.)
10795 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
10797 * Beamer template:
10799 + Fixed captions with longtable. Thanks to Joost Kremers.
10800 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
10802 * LaTeX template:
10804 + Load microtype after fonts. Microtype needs to know
10805 what fonts are being used. Thanks to dfc for the patch.
10806 + Set `secnumdepth` to 5 if `--number-sections` specified.
10807 This yields behavior equivalent to the other writers, numbering
10808 level 4 and 5 headers too. Closes #753.
10810 * HTML reader:
10812 + Handle `<colgroup>` tag.
10813 + Preserve all header attributes.
10815 * LaTeX reader:
10817 + Parse `\hrule` as `HorizontalRule`. Closes #746.
10818 + Parse starred variants of `\section` etc. as headers with
10819 attribute `unnumbered`.
10820 + Read optional attributes in `lstlisting` and `Verbatim` environments.
10821 We convert these to pandoc standard names, e.g. `numberLines`
10822 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
10823 + Handle language attribute for lstlistings.
10824 + Better support for Verbatim and minted environments. Closes #763.
10826 * Markdown reader:
10828 + `-` in an attribute context = `.unnumbered`. The point of this
10829 is to provide a way to specify unnumbered headers in non-English
10830 documents.
10831 + Fixed bug parsing key/value attributes. Parsing failed if you
10832 had an unquoted attribute immediately before the final '}'.
10833 + Make backslash escape work in attributes.
10834 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
10835 pandoc will parse a MMD title block if it sees one, even if
10836 `pandoc_title_blocks` is enabled.
10837 + Refactoring: `litChar` now includes entities, so we don't need
10838 to use `fromEntities` e.g. on titles.
10839 + Allow spaces around borders in pipe tables. Closes #772.
10840 + Allow all punctuation in angle-bracket autolinks. Previously
10841 things like `----` were disallowed, because the uri parser
10842 treated them as trailing punctuation. Closes #768.
10843 + Make `implicit_header_references` work properly when
10844 headers are given explicit identifiers.
10845 + Check for tables before line blocks. Otherwise some pipe
10846 tables get treated as line blocks.
10847 + Allow `&` in emails (for entities).
10848 + Properly handle entities in titles and links. A markdown link
10849 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
10850 Closes #723.
10852 * Textile reader:
10854 + Handle attributes on headers.
10856 * LaTeX reader:
10858 + Add `fig:` as title for images with captions.
10859 This is needed for them to be rendered as figures. Closes #766.
10860 + Never emit an empty paragraph. See #761.
10861 + Handle `\caption` for images in figures. Closes #766.
10862 + Parse `\section*`, etc. as unnumbered sections.
10864 * HTML writer:
10866 + Support header attributes. The attributes go on
10867 the enclosing `section` or `div` tag if `--section-divs` is specified.
10868 + Fixed a regression (only now noticed) in html+lhs output.
10869 Previously the bird tracks were being omitted.
10871 * LaTeX writer:
10873 + Omit lists with no items to avoid LaTeX errors.
10874 + Support line numbering with `--listings`.
10875 If `numberLines` class is present, we add `numbers=left`;
10876 if `startFrom` is present, we add `firstnumber=`. (#763)
10878 * ConTeXt writer:
10880 + Removed `\placecontent`. This produced a duplicate toc,
10881 in conjunction with `\placelist`.
10882 + Use `\title`, `\subject` etc. for headers with
10883 `unnumbered` class.
10885 * Textile writer:
10887 + Support header attributes.
10889 * Markdown writer:
10891 + Use grid tables when needed, and if enabled. Closes #740.
10892 + Render citations as pandoc-markdown citations.
10893 Previously citations were rendered as citeproc-formatted citations
10894 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
10895 unless the `citations` extension is disabled.
10896 If you still want formatted citations in your markdown output,
10897 use `pandoc -t markdown-citations`.
10899 * RST writer:
10901 + Support `:number-lines:` in code blocks.
10903 * Docx writer:
10905 + Better treatment of display math. Display math inside a
10906 paragraph is now put in a separate paragraph, so it will render
10907 properly (centered and without extra blank lines around it).
10908 Partially addresses #742.
10909 + Content types and document rels xml files are now created from
10910 scratch, rather than being taken over from `reference.docx`.
10911 This fixes problems that arise when you edit the `reference.docx`
10912 with Word.
10913 + We also now encode mime types for each individual image rather
10914 than using defaults. This should allow us to handle a wider
10915 range of image types (including PDF). Closes #414.
10916 + Changed style names in `reference docx`.
10917 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
10918 The old names got changed by Word when the `reference.docx` was
10919 edited. Closes #414.
10921 * EPUB writer:
10923 + Fix section numbering. Previously the numbering restarted from 1
10924 in each chapter (with `--number-sections`), though the numbers in
10925 the table of contents were correct.
10926 + Headers with "unnumbered" attribute are not numbered. (Nor do they
10927 cause an increment in running numbering.) Section numbers now work
10928 properly, even when there is material before the first numbered section.
10929 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
10930 but `linear` is set to `no` unless the `--toc` option is specified.
10931 Include `<guide>` element in OPF. This should allow the TOC to
10932 be usable in Kindles when converted with kindlegen. Closes #773.
10934 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
10935 This dramatically reduces the speed penalty that comes from enabling the
10936 `autolink_bare_uris` extension. The penalty is still substantial (in one
10937 test, from 0.33s to 0.44s), but nowhere near what it used to be.
10938 The RST reader is also much faster now, as it autodetects URIs.
10940 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
10941 with class "unnumbered". Unnumbered sections get `[]` for their
10942 section number.
10944 * `Text.Pandoc.Pretty`:
10946 + Fixed `chomp` so it works inside `Prefixed` elements.
10947 + Changed `Show` instance so it is better for debugging.
10949 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
10951 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
10953 * Windows installer improvements:
10955 + The installer is now signed with a certificate (thanks to
10956 Fyodor Sheremetyev).
10957 + WiX is used instead of InnoSetup. The installer is now a
10958 standard msi file.
10959 + The version number is now auto-detected, and need not be
10960 updated separately.
10962 * OSX installer improvements:
10964 + The package and pandoc executable are now signed with a
10965 certificate (thanks to Fyodor Sheremetyev).
10966 + RTF version of license is used.
10967 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
10968 Closes #580.
10970 * Converted COPYING to markdown.
10972 * pandoc.cabal: Require latest versions of highlighting-kate,
10973 texmath, citeproc-hs, zip-archive.
10975pandoc (1.10.1)
10977 * Markdown reader: various optimizations, leading to a
10978 significant performance boost.
10980 * RST reader: Allow anonymous form of inline links:
10981 `` `hello <url>`__ `` Closes #724.
10983 * Mediawiki reader: Don't require newlines after tables.
10984 Thanks to jrunningen for the patch. Closes #733.
10986 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
10987 when output is LaTeX, and applied when it is another format.
10988 Partially addresses #730.
10990 * Markdown and RST readers: Added parser to `block` that skips blank
10991 lines. This fixes a subtle regression involving grid tables with
10992 empty cells. Also added test for grid table with empty cells.
10993 Closes #732.
10995 * RST writer: Use `.. code:: language` for code blocks with language.
10996 Closes #721.
10998 * DocBook writer: Fixed output for hard line breaks, adding a newline
10999 between `<literallayout>` tags.
11001 * Markdown writer: Use an autolink when link text matches url.
11002 Previously we also checked for a null title, but this
11003 test fails for links produced by citeproc-hs in bibliographies.
11004 So, if the link has a title, it will be lost on conversion
11005 to an autolink, but that seems okay.
11007 * Markdown writer: Set title, author, date variables as before.
11008 These are no longer used in the default template, since we use
11009 titleblock, but we set them anyway for those who use custom templates.
11011 * LaTeX writer: Avoid extra space at start/end of table cell.
11012 Thanks to Nick Bart for the suggestion of using @{}.
11014 * `Text.Pandoc.Parsing`:
11016 + More efficient version of `anyLine`.
11017 + Type of `macro` has changed; the parser now returns `Blocks`
11018 instead of `Block`.
11020 * Relaxed old-time version bound, allowing 1.0.*.
11022 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
11023 should create a symlink as described in the README.
11025pandoc (1.10.0.5)
11027 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
11028 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
11029 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
11031 * Markdown reader: Fixed bug with headerless grid tables.
11032 The 1.10 code assumed that each table header cell contains exactly one
11033 block. That failed for headerless tables (0) and also for tables with
11034 multiple blocks in a header cell. The code is fixed and tests provided.
11035 Thanks to Andrew Lee for pointing out the bug.
11037 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
11039 + Tilde code fences can again take a bare language string
11040 (`~~~ haskell`), not just curly-bracketed attributes
11041 (`~~~ {.haskell}`).
11042 + Backtick code blocks can take the curly-bracketed attributes.
11043 + Backtick code blocks don't *require* a language.
11044 + Consolidated code for the two kinds of fenced code blocks.
11046 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
11048 * Markdown writer: Use proportional font for email autolinks with
11049 obfuscation. Closes #714.
11051 * Corrected name of `blank_before_blockquote` in README. Closes #718.
11053 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
11054 The bug prevented an autolink at the end of a string (e.g.
11055 at the end of a line block line) from counting as a link. Closes #711.
11057 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
11058 This should work on Windows, unlike the TH solution with
11059 file-embed.
11061 * Eliminated use of TH in test suite.
11063 * Added `Text.Pandoc.Data` (non-exported) to hold the association
11064 list of embedded data files, if the `embed_data_files` flag is selected.
11065 This isolates the code that needs special treatment with file-embed or
11066 `hsb2hs`.
11068 * Changes to `make-windows-installer.bat`.
11070 + Exit batch file if any of the cabal-dev installs fail.
11071 + There's no longer any need to reinstall `highlighting-kate`.
11072 + Don't start with a `cabal update`; leave that to the user.
11073 + Force reinstall of pandoc.
11075 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
11076 Jens Petersen.
11078pandoc (1.10.0.4)
11080 * Fixed bug with escaped % in LaTeX reader. Closes #710.
11082pandoc (1.10.0.3)
11084 * Added further missing fb2 tests to cabal file.
11086pandoc (1.10.0.2)
11088 * Added fb2 tests to cabal file's extra-source-files.
11090pandoc (1.10.0.1)
11092 * Bump version bounds on test-framework packages.
11094pandoc (1.10)
11096 [new features]
11098 * New input formats: `mediawiki` (MediaWiki markup).
11100 * New output formats: `epub3` (EPUB v3 with MathML),
11101 `fb2` (FictionBook2 ebooks).
11103 * New `--toc-depth` option, specifying how many levels of
11104 headers to include in a table of contents.
11106 * New `--epub-chapter-level` option, specifying the header
11107 level at which to divide EPUBs into separate files.
11108 Note that this normally affects only performance, not the
11109 visual presentation of the EPUB in a reader.
11111 * Removed the `--strict` option. Instead of using `--strict`,
11112 one can now use the format name `markdown_strict` for either input
11113 or output. This gives more fine-grained control that `--strict`
11114 did, allowing one to convert from pandoc's markdown to strict
11115 markdown or vice versa.
11117 * It is now possible to enable or disable specific syntax
11118 extensions by appending them (with `+` or `-`) to the writer
11119 or reader name. For example,
11121 pandoc -f markdown-footnotes+hard_line_breaks
11123 disables footnotes and enables treating newlines as hard
11124 line breaks. The literate Haskell extensions are now implemented
11125 this way as well, using either `+lhs` or `+literate_haskell`.
11126 For a list of extension names, see the README under
11127 "Pandoc's Markdown."
11129 * The following aliases have been introduced for specific
11130 combinations of markdown extensions: `markdown_phpextra`,
11131 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
11132 work just like regular reader and writer names, and can be modified
11133 with extension modifiers as described above. (Note that conversion
11134 from one markdown dialect to another does not work perfectly,
11135 because there are differences in markdown parsers besides
11136 just the extensions, and because pandoc's internal document model is
11137 not rich enough to capture all of the extensions.)
11139 * New `--html-q-tags` option. The previous default was to use `<q>`
11140 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
11141 Moreover, they are not a robust way of typesetting quotes, since
11142 some user agents don't support them, and some CSS resets (e.g.
11143 bootstrap) prevent pandoc's quotes CSS from working properly.
11144 We now just insert literal quote characters by default in both
11145 `html` and `html5` output, but this option is provided for
11146 those who still want `<q>` tags.
11148 * The markdown reader now prints warnings (to stderr) about
11149 duplicate link and note references. Closes #375.
11151 * Markdown syntax extensions:
11153 + Added pipe tables. Thanks to François Gannaz for the initial patch.
11154 These conform to PHP Markdown Extra's pipe table syntax. A subset
11155 of org-mode table syntax is also supported, which means that you can
11156 use org-mode's nice table editor to create tables.
11158 + Added support for RST-style line blocks. These are
11159 useful for verse and addresses.
11161 + Attributes can now be specified for headers, using the same
11162 syntax as in code blocks. (However, currently only the
11163 identifier has any effect in most writers.) For example,
11165 # My header {#foo}
11167 See [the header above](#foo).
11169 + Pandoc will now act as if link references have been defined
11170 for all headers without explicit identifiers.
11171 So, you can do this:
11173 # My header
11175 Link to [My header].
11176 Another link to [it][My header].
11178 Closes #691.
11180 * LaTeX reader:
11182 + Command macros now work everywhere, including non-math.
11183 Environment macros still not supported.
11184 + `\input` now works, as well as `\include`. TEXINPUTS is used.
11185 Pandoc looks recursively into included files for more included files.
11187 [behavior changes]
11189 * The Markdown reader no longer puts the text of autolinks in a
11190 `Code` inline. This means that autolinks will no longer appear
11191 in a monospace font.
11193 * The character `/` can now appear in markdown citation keys.
11195 * HTML blocks in strict_markdown are no longer required to begin
11196 at the left margin. Technically this is required, according to
11197 the markdown syntax document, but `Markdown.pl` and other markdown
11198 processors are more liberal.
11200 * The `-V` option has been changed so that if there are duplicate
11201 variables, those specified later on the command line take precedence.
11203 * Tight lists now work in LaTeX and ConTeXt output.
11205 * The LaTeX writer no longer relien on the `enumerate` package.
11206 Instead, it uses standard LaTeX commands to change the list numbering
11207 style.
11209 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
11210 tables to be split over page boundaries.
11212 * The RST writer now uses a line block to render paragraphs containing
11213 linebreaks (which previously weren't supported at all).
11215 * The markdown writer now applies the `--id-prefix` to footnote IDs.
11216 Closes #614.
11218 * The plain writer no longer uses backslash-escaped line breaks
11219 (which are not very "plain").
11221 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
11222 Read bytestring and use `Text`'s decodeUtf8 instead of using
11223 `System.IO.hGetContents`. This way you get a message saying
11224 "invalid UTF-8 stream" instead of "invalid byte sequence."
11225 You are also told which byte caused the problem.
11227 * Docx, ODT, and EPUB writers now download images specified by a URL
11228 instead of skipping them or raising an error.
11230 * EPUB writer:
11232 + The default CSS now left-aligns headers by default, instead of
11233 centering. This is more consistent with the rest of the writers.
11234 + A proper multi-level table of contents is now used in `toc.ncx`.
11235 There is no longer a subsidiary table of contents at the beginning
11236 of each chapter.
11237 + Code highlighting now works by default.
11238 + Section divs are used by default for better semantic markup.
11239 + The title is used instead of "Title Page" in the table of contents.
11240 Otherwise we have a hard-coded English string, which looks
11241 strange in ebooks written in other languages. Closes #572.
11243 * HTML writer:
11245 + Put mathjax in span with class "math". Closes #562.
11246 + Put citations in a span with class "citation." In HTML5, also include
11247 a `data-cite` attribute with a space-separated list of citation
11248 keys.
11250 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
11251 This treats both `\r\n` and `\n` as `\n` on input, no matter
11252 what platform we're running on.
11254 * Citation processing is now done in the Markdown and LaTeX
11255 readers, not in `pandoc.hs`. This makes it easier for library users
11256 to use citations.
11258 [template changes]
11260 * HTML: Added css to template to preserve spaces in `<code>` tags.
11261 Thanks to Dirk Laurie.
11263 * Beamer: Remove English-centric strings in section pages.
11264 Section pages used to have "Section" and a number as well as the
11265 section title. Now they just have the title. Similarly for part
11266 and subsection. Closes #566.
11268 * LaTeX, ConTeXt: Added papersize variable.
11270 * LaTeX, Beamer templates: Use longtable instead of ctable.
11272 * LaTeX, Beamer templates: Don't require 'float' package for tables.
11273 We don't actually seem to use the '[H]' option.
11275 * LaTeX: Use `upquote` package if it is available. This fixes
11276 straight quotes in verbatim environments.
11278 * Markdown, plain: Fixed titleblock so it is just a single string.
11279 Previously separate title, author, and date variables were used,
11280 but this didn't allow different kinds of title blocks.
11282 * EPUB:
11284 + Rationalized templates. Previously there were three different
11285 templates involved in epub production. There is now just one
11286 template, `default.epub` or `default.epub3`. It can now be
11287 overridden using `--template`, just like other templates.
11288 The titlepage is now folded into the default template.
11289 A `titlepage` variable selects it.
11290 + UTF-8, lang tag, meta tags, title element.
11292 * Added scale-to-width feature to beamer template
11294 [API changes]
11296 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
11297 Previously header identifiers were autogenerated by the writers.
11298 Now they are added in the readers (either automatically or explicitly).
11300 * `Text.Pandoc.Builder`:
11302 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
11303 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
11304 custom Monoid instances for `Many Inline` and `Many Block. This
11305 allows `Many` to be made an instance of `Foldable` and `Traversable`.
11306 + The old `Listable` class has been removed.
11307 + The module now exports `isNull`, `toList`, `fromList`.
11308 + The old `Read` and `Show` instances have been removed; derived
11309 instances are now used.
11310 + Added `headerWith`.
11312 * The readers now take a `ReaderOptions` rather than a `ParserState`
11313 as a parameter. Indeed, not all parsers use the `ParserState` type;
11314 some have a custom state. The motivation for this change was to separate
11315 user-specifiable options from the accounting functions of parser state.
11317 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
11318 formerly in `Text.Pandoc.Shared`, and its associated
11319 data types. It also includes a new type `ReaderOptions`, which
11320 contains many options formerly in `ParserState`, and its associated
11321 data types:
11323 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
11324 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
11325 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
11326 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
11327 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
11328 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
11329 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
11330 + `ParserState.stateIndentedCodeClasses` ->
11331 `ReaderOptions.readerIndentedCodeClasses`.
11332 + Added `ReaderOptions.readerCitationStyle`.
11334 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
11335 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
11336 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
11337 been renamed `writerEpubMetadata` for consistency.
11339 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
11340 longer stylesheet, fonts, reference files as separate parameters.
11342 * Removed `writerLiterateHaskell` from `WriterOptions`, and
11343 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
11344 by an extension (`Ext_literate_haskell`).
11346 * Removed deprecated `writerXeTeX`.
11348 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
11349 Strict is now handled through extensions.
11351 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
11352 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
11353 and `multimarkdownExtensions`, as well as the `Extensions` type.
11355 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
11356 `readMediaWiki`.
11358 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
11359 (thanks to Sergey Astanin).
11361 * `Text.Pandoc`:
11363 + Added `getReader`, `getWriter` to `Text.Pandoc`.
11364 + `writers` is now an association list `(String, Writer)`.
11365 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
11366 an `IOByteStringWriter`. ALL writers are now in the 'writers'
11367 list, including the binary writers and FB2 writer. This allows
11368 code in `pandoc.hs` to be simplified.
11369 + Changed type of `readers`, so all readers are in IO.
11370 Users who want pure readers can still get them form the reader
11371 modules; this just affects the function `getReader` that looks up
11372 a reader based on the format name. The point of this change is to
11373 make it possible to print warnings from the parser.
11375 * `Text.Pandoc.Parsing`:
11377 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
11378 No other module directly imports Parsec. This will make it easier
11379 to change the parsing backend in the future, if we want to.
11380 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
11381 + Export the type synonym `Parser`.
11382 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
11383 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
11384 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
11385 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
11386 + `ParserState` is no longer an instance of `Show`.
11387 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
11388 + Generalized type of `withQuoteContext`.
11389 + Added `guardEnabled`, `guardDisabled`, `getOption`.
11390 + Removed `failIfStrict`.
11391 + `lookupKeySrc` and `fromKey` are no longer exported.
11393 * `Data.Default` instances are now provided for `ReaderOptions`,
11394 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
11395 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
11396 of `defaultWriterOptions` (which is still defined). Closes #546.
11398 * `Text.Pandoc.Shared`:
11400 + Added `safeRead`.
11401 + Renamed `removedLeadingTrailingSpace` to `trim`,
11402 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
11403 + Count `\r` as space in `trim` functions.
11404 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
11405 to `Shared`.
11406 + Removed `failUnlessLHS`.
11407 + Export `compactify'`, formerly in Markdown reader.
11408 + Export `isTightList`.
11409 + Do not export `findDataFile`.
11410 + `readDataFile` now returns a strict ByteString.
11411 + Export `readDataFileUTF8` which returns a String, like the
11412 old `readDataFile`.
11413 + Export `fetchItem` and `openURL`.
11415 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
11416 Removed `readImageSize`.
11418 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
11419 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
11420 `fromStringLazy`.
11422 * `Text.Pandoc.UTF8` is now an exposed module.
11424 * `Text.Pandoc.Biblio`:
11426 + csl parameter now a `String` rather than a `FilePath`.
11427 + Changed type of `processBiblio`. It is no longer in the IO monad.
11428 It now takes a `Maybe Style` argument rather than parameters for CSL
11429 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
11430 the style file and add abbreviations.)
11432 * Markdown reader now exports `readMarkdownWithWarnings`.
11434 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
11435 `rtfEmbedImage`.
11437 [bug fixes]
11439 * Make `--ascii` work properly with `--self-contained`. Closes #568.
11441 * Markdown reader:
11443 + Fixed link parser to avoid exponential slowdowns. Closes #620.
11444 Previously the parser would hang on input like this:
11446 [[[[[[[[[[[[[[[[[[hi
11448 We fixed this by making the link parser parser characters
11449 between balanced brackets (skipping brackets in inline code spans),
11450 then parsing the result as an inline list. One change is that
11452 [hi *there]* bud](/url)
11454 is now no longer parsed as a link. But in this respect pandoc behaved
11455 differently from most other implementations anyway, so that seems okay.
11457 + Look for raw html/latex blocks before tables.
11458 Otherwise the following gets parsed as a table:
11460 \begin{code}
11461 --------------
11462 -- My comment.
11463 \end{code}
11465 Closes #578.
11467 * RST reader:
11469 + Added support for `:target:` on `.. image::` blocks
11470 and substitutions.
11471 + Field list fixes:
11473 - Fixed field lists items with body beginning after a new line
11474 (Denis Laxalde).
11475 - Allow any char but ':' in names of field lists in RST reader
11476 (Denis Laxalde).
11477 - Don't allow line breaks in field names.
11478 - Require whitespace after field list field names.
11479 - Don't create empty definition list for metadata field lists.
11480 Previously a field list consisting only of metadata fields (author,
11481 title, date) would be parsed as an empty DefinitionList, which is
11482 not legal in LaTeX and not needed in any format.
11484 + Don't recognize inline-markup starts inside words.
11485 For example, `2*2 = 4*1` should not contain an emphasized
11486 section. Added test case for "Literal symbols". Closes #569.
11487 + Allow dashes as separator in simple tables. Closes #555.
11488 + Added support for `container`, `compound`, `epigraph`,
11489 `rubric`, `highlights`, `pull-quote`.
11490 + Added support for `.. code::`.
11491 + Made directive labels case-insensitive.
11492 + Removed requirement that directives begin at left margin.
11493 This was (correctly) not in earlier releases; docutils doesn't
11494 make the requirement.
11495 + Added support for `replace::` and `unicode::` substitutions.
11496 + Ignore unknown interpreted roles.
11497 + Renamed image parser to `subst`, since it now handles all
11498 substitution references.
11500 * Textile reader:
11502 + Allow newlines before pipes in table. Closes #654.
11503 + Fixed bug with list items containing line breaks.
11504 Now pandoc correctly handles hard line breaks inside list items.
11505 Previously they broke list parsing.
11506 + Implemented comment blocks.
11507 + Fixed bug affected words ending in hyphen.
11508 + Properly handle links with surrounding brackets.
11509 Square brackets need to be used when the link isn't surrounded by
11510 spaces or punctuation, or when the URL ending may be ambiguous.
11511 Closes #564.
11512 + Removed nullBlock. Better to know about parsing problems than
11513 to skip stuff when we get stuck.
11514 + Allow ID attributes on headers.
11515 + Textile reader: Avoid parsing dashes as strikeout.
11516 Previously the input
11518 text--
11519 text--
11520 text--
11521 text--
11523 would be parsed with strikeouts rather than dashes. This fixes
11524 the problem by requiring that a strikeout delimiting - not be
11525 followed by a -. Closes #631.
11526 + Expanded list of `stringBreakers`.
11527 This fixes a bug on input like "(_hello_)" which should
11528 be a parenthesized emphasized "hello".
11529 The new list is taken from the PHP source of textile 2.4.
11530 + Fixed autolinks. Previously the textile reader and writer
11531 incorrectly implented RST-style autolinks for URLs and email
11532 addresses. This has been fixed. Now an autolink is done this way:
11533 `"$":http://myurl.com`.
11534 + Fixed footnotes bug in textile. This affected notes occurring
11535 before punctuation, e.g. `foo[1].`. Closes #518.
11537 * LaTeX reader:
11539 + Better handling of citation commands.
11540 + Better handling of `\noindent`.
11541 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
11542 Closes #622.
11543 + Made `rawLaTeXInline` try to parse block commands as well. This
11544 is usually what we want, given how `rawLaTeXInline` is used in
11545 the markdown and textile readers. If a block-level LaTeX command
11546 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
11547 we can treat it as raw inline LaTeX.
11548 + Handle \slash command. Closes #605.
11549 + Basic `\enquote` support.
11550 + Fixed parsing of paragraphs beginning with a group. Closes #606.
11551 + Use curly quotes for bare straight quotes.
11552 + Support obeylines environment. Closes #604.
11553 + Guard against "begin", "end" in inlineCommand and
11554 blockCommand.
11555 + Better error messages for environments. Now it should tell you that
11556 it was looking for \end{env}, instead of giving "unknown parse error."
11558 * HTML reader:
11560 + Added HTML 5 tags to list of block-level tags.
11561 + HTML reader: Fixed bug in `htmlBalanced`, which
11562 caused hangs in parsing certain markdown input using
11563 strict mode.
11564 + Parse `<q>` as `Quoted DoubleQuote`.
11565 + Handle nested `<q>` tags properly.
11566 + Modified `htmlTag` for fewer false positives.
11567 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
11568 This makes it more useful in the wikimedia and markdown parsers.
11570 * DocBook reader: Support title in "figure" element. Closes #650.
11572 * MediaWiki writer:
11574 + Remove newline after `<br/>` in translation of `LineBreak`
11575 There's no particular need for a newline (other than making the
11576 generated MediaWiki source look nice to a human), and in fact
11577 sometimes it is incorrect: in particular, inside an enumeration, list
11578 items cannot have embedded newline characters. (Brent Yorgey)
11579 + Use `<code>` not `<tt>` for Code.
11581 * Man writer: Escape `-` as `\-`.
11582 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
11583 signs. That is preferable for use with command-line options. See
11584 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
11585 to Andrea Bolognani for bringing the issue to our attention.
11587 * RST writer:
11589 + Improved line block output. Use nonbreaking spaces for
11590 initial indent (otherwise lost in HTML and LaTeX).
11591 Allow multiple paragraphs in a single line block.
11592 Allow soft breaks w continuations in line blocks.
11593 + Properly handle images with no alt text. Closes #678.
11594 + Fixed bug with links with duplicate text. We now (a) use anonymous
11595 links for links with inline URLs, and (b) use an inline link instead
11596 of a reference link if the reference link would require a label that
11597 has already been used for a different link. Closes #511.
11598 + Fixed hyperlinked images. Closes #611. Use `:target:`
11599 field when you have a simple linked image.
11600 + Don't add `:align: center` to figures.
11602 * Texinfo writer: Fixed internal cross-references.
11603 Now we insert anchors after each header, and use `@ref` instead of `@uref`
11604 for links. Commas are now escaped as `@comma{}` only when needed;
11605 previously all commas were escaped. (This change is needed, in part,
11606 because `@ref` commands must be followed by a real comma or period.) Also
11607 insert a blank line in from of `@verbatim` environments.
11609 * DocBook writer:
11611 + Made --id-prefix work in DocBook as well as HTML.
11612 Closes #607.
11613 + Don't include empty captions in figures. Closes #581.
11615 * LaTeX writer:
11617 + Use `\hspace*` for nonbreaking space after line break,
11618 since `~` spaces after a line break are just ignored.
11619 Closes #687.
11620 + Don't escape `_` in URLs or hyperref identifiers.
11621 + Properly escape strings inside \url{}. Closes #576.
11622 + Use `[fragile]` only for slides containing code rendered
11623 using listings. Closes #649.
11624 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
11625 highlighting-kate's macros, which redefine `|` as a short verbatim
11626 delimiter. Thanks to Björn Peemöller for raising this issue.
11627 + Use minipage rather than parbox for block containers in tables.
11628 This allows verbatim code to be included in grid tables.
11629 Closes #663.
11630 + Prevent paragraphs containing only linebreaks or spaces.
11632 * HTML writer:
11634 + Included `highlighting-css` for code spans, too.
11635 Previously it was only included if used in a code block. Closes #653.
11636 + Improved line breaks with `<dd>` tags. We now put a newline between
11637 `</dd>` and `<dd>` when there are multiple definitions.
11638 + Changed mathjax cdn url so it doesn't use https. (This caused
11639 problems when used with `--self-contained`.) See #609.
11641 * EPUB writer:
11643 + `--number-sections` now works properly.
11644 + Don't strip meta and link elements in epub metadata.
11645 Patch from aberrancy. Closes #589.
11646 + Fixed a couple validation bugs.
11647 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
11648 of chapters in some readers, which apparently sort ch2 after ch10.
11649 Closes #610.
11651 * ODT writer: properly set title property (Arlo O'Keeffe).
11653 * Docx writer:
11655 + Fixed bug with nested lists. Previously a list like
11657 1. one
11658 - a
11659 - b
11660 2. two
11662 would come out with a bullet instead of "2."
11663 Thanks to Russell Allen for reporting the bug.
11664 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
11665 This seems to fix a problem viewing pandoc-generated
11666 docx files in LibreOffice.
11667 + Use integer ids for bookmarks. Closes #626.
11668 + Added nsid to abstractNum elements. This helps when merging
11669 word documents with numbered or bulleted lists. Closes #627.
11670 + Use separate footnotes.xml for notes.
11671 This seems to help LibreOffice convert the file, even though
11672 it was valid docx before. Closes #637.
11673 + Use rIdNN identifiers for r:embed in images.
11674 + Avoid reading image files again when we've already processed them.
11675 + Fixed typo in `referenc.docx` that prevented image captions from
11676 working. Thanks to Huashan Chen.
11678 * `Text.Pandoc.Parsing`:
11680 + Fixed bug in `withRaw`, which didn't correctly handle the case
11681 where nothing is parsed.
11682 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
11683 though it still doesn't implement quoted strings in email addresses.
11684 + Revised URI parser. It now allows many more schemes, allows
11685 uppercase URIs, and better handles trailing punctuation and
11686 trailing slashes in bare URIs. Added many tests.
11687 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
11688 etc. parse properly. Formerly we had some English-centric heuristics,
11689 but they are no longer needed. Closes #698.
11691 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
11692 This fixes bug with Chinese commas in markdown and reST tables, and
11693 a bug that caused combining characters to be dropped.
11695 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
11697 * `Text.Pandoc.Biblio`:
11699 + Run `mvPunc` and `deNote` on metadata too.
11700 This fixed a bug with notes on titles using footnote styles.
11701 + Fixed bug in fetching CSL files from CSL data directory.
11703 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
11704 is provided. It should be the URL up to the path.
11706 * Fixed/simplified diff output for tests.
11707 Biblio: Make sure mvPunc and deNote run on metadata too.
11708 This fixed a bug with notes on titles using footnote styles.
11710 [under the hood improvements]
11712 * We no longer depend on `utf8-string`. Instead we use functions
11713 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
11715 * Use `safeRead` instead of using `reads` directly (various modules).
11717 * "Implicit figures" (images alone in a paragraph) are now handled
11718 differently. The markdown reader gives their titles the prefix `fig:`; the
11719 writers look for this before treating the image as a figure. Though this
11720 is a bit of a hack, it has two advantages: (i) implicit figures can be
11721 limited to the markdown reader, and (ii) they can be deactivated by turning
11722 off the `implicit_figures` extension.
11724 * `catch` from `Control.Exception` is now used instead of the
11725 old Preface `catch`.
11727 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
11728 and `oneOfStrings` (which is now non-backtracking).
11730 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
11731 Now citeproc-hs is fixed upstream, so this is no longer needed.
11732 Closes #531.
11734 * Textile reader: Improved speed of `hyphenedWords`.
11735 This speeds up the textile reader by about a factor of 4.
11737 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
11738 better performance, and automatic normalization.
11740 * Major rewrite of markdown reader:
11742 + Use `Text.Pandoc.Builder` instead of lists. This also
11743 means that everything is normalized automatically.
11744 + Move to a one-pass parsing strategy, returning values in the reader
11745 monad, which are then run (at the end of parsing) against the final
11746 parser state.
11748 * In HTML writer, we now use `toHtml` instead of pre-escaping.
11749 We work around the problem that blaze-html unnecessarily escapes `'`
11750 by pre-escaping just the `'` characters, instead of the whole string.
11751 If blaze-html later stops escaping `'` characters, we can simplify
11752 `strToHtml` to `toHtml`. Closes #629.
11754 * Moved code for embedding images in RTFs from `pandoc.hs` to the
11755 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
11757 * Moved citation processing from `pandoc.hs` into the readers.
11758 This makes things more convenient for library users.
11760 * The man pages are now built by an executable `make-pandoc-man-pages`,
11761 which has its own stanza in the cabal file so that dependencies can be
11762 handled by Cabal. Special treatment in `Setup.hs` ensures that this
11763 executable never gets installed; it is only used to create the man pages.
11765 * The cabal file has been modified so that the pandoc library is used
11766 in building the pandoc executable. (This required moving `pandoc.hs`
11767 from `src` to `.`.) This cuts compile time in half.
11769 * `-O2` is no longer used in building pandoc. The performance improvement
11770 it yields is so slight that it is not worth it. (Measured with
11771 benchmarks on ghc 7.4.)
11773 * The `executable` and `library` flags have been removed.
11775 * `-threaded` has been removed from ghc-options.
11777 * Version bounds of dependencies have been raised, and the
11778 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
11779 GHC 7.6.
11781 * We now require base >= 4.2.
11783 * Integrated the benchmark program into cabal. One can now do:
11785 cabal configure --enable-benchmarks && cabal build
11786 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
11788 The benchmark now uses README + testsuite, so benchmark results
11789 from older versions aren't comparable.
11791 * Integrated test suite with cabal.
11792 To run tests, configure with `--enable-tests`, then `cabal test`.
11793 You can specify particular tests using `--test-options='-t markdown'`.
11794 No output is shown unless tests fail. The Haskell test modules
11795 have been moved from `src/` to `tests/`.
11797 * Moved all data files and templates to the `data/` subdirectory.
11799 * Added an `embed_data_files` cabal flag. This causes all
11800 data files to be embedded in the binary, so that the binary
11801 is self-sufficient and can be relocated anywhere, copied on
11802 a USB key, etc. The Windows installer now uses this.
11803 (Since we no longer have the option to build the executable
11804 without the library, this is the only way to get a relocatable
11805 binary on Windows.)
11807 * Removed pcre3.dll from windows package.
11808 It isn't needed unless highlighting-kate is compilled with the
11809 `pcre-light` flag. By default, regex-prce-builtin is used.
11812pandoc (1.9.4.2)
11814 * Don't encode/decode file paths if base >= 4.4.
11815 Prior to base 4.4, filepaths and command line arguments were treated
11816 as unencoded lists of bytes, not unicode strings, so we had to work
11817 around that by encoding and decoding them. This commit adds CPP
11818 checks for the base version that intelligibly enable encoding/decoding
11819 when needed. Fixes a bug with multilingual filenames when pandoc was
11820 compiled with ghc 7.4 (#540).
11822 * Don't generate an empty H1 after hrule slide breaks.
11823 We now use a slide-level header with contents `[Str "\0"]` to mark
11824 an hrule break. This avoids creation of an empty H1 in these
11825 contexts. Closes #484.
11827 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
11829 * In make_osx_package.sh, ensure citeproc-hs is built with the
11830 embed_data_files flag.
11832 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
11834 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
11835 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
11837 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
11838 Closes #535.
11840 * Added webm to mime types. Closes #543.
11842 * Added some missing exports and tests to the cabal file
11843 (Alexander V Vershilov).
11845 * Compile with `-rtsopts` and `-threaded` by default.
11847pandoc (1.9.4.1)
11849 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
11851 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
11852 variables. Make TOC links black.
11854 * LaTeX template improvements.
11856 + Don't print date unless one is given explicitly in the document.
11857 + Simplified templates.
11858 + Use fontenc [T1] by default, and lmodern.
11859 + Use microtype if available.
11861 * Biblio:
11863 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
11864 Motivation: `@item1 [50]` should be as close as possible to
11865 `[@item1, 50]`.
11866 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
11867 beginning with a citation to be empty. Closes #531.
11869 * Fixed documentation on mixed lists. Closes #533.
11871pandoc (1.9.4)
11873 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
11874 footnotes and captions. We now handle note citations by inserting
11875 footnotes during initial citation processing, and doing a separate
11876 pass later to remove notes inside notes.
11878 * Added 'zenburn' highlight style from highlighting-kate.
11880 * Added Slideous writer. Slideous is an HTML + javascript slide show
11881 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
11883 * LaTeX writer:
11885 + Ensure we don't have extra blank lines at ends of cells.
11886 This can cause LaTeX errors, as they are interpreted as new paragraphs.
11887 + More consistent interblock spacing.
11888 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
11889 code in LaTeX. Closes #527.
11890 + Ensure that a Verbatim at the end of a footnote is followed by
11891 a newline. (Fixes a regression in the previous version.)
11892 + In default template, use black for internal links and TOC.
11893 Added commented-out code to use footnotes for links, as would
11894 be suitable in print output.
11896 * Beamer writer: When `--incremental` is used, lists inside
11897 a block quote should appear all at once. (This makes Beamer
11898 output consistent with the HTML slide show formats.)
11900 * ConTeXt writer:
11902 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
11903 to avoid gobbling spaces after the `%` sign.
11904 + Ensure space after `\stopformula`.
11906 * Markdown writer:
11908 + Use `:` form instead of `~` in definition lists, for better
11909 compatibility with other markdown implementations.
11910 + Don't wrap the term, because it breaks definition lists.
11911 + Use a nonzero space to prevent false recognition
11912 of list marker in ordered lists. Closes #516.
11914 * Org writer: Add space before language name. Closes #523.
11916 * Docx writer: Simplified bullet characters so they work properly
11917 with Word 2007. Closes #520.
11919 * LaTeX reader: Support `\centerline`.
11921 * RST reader: handle figures. Closes #522.
11923 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
11924 (Paul Rivier)
11926pandoc (1.9.3)
11928 * Fixed bug in `fromEntities`. The previous version would turn
11929 `hi & low you know;` into `hi &`.
11931 * HTML reader:
11933 + Don't skip nonbreaking spaces.
11934 Previously a paragraph containing just `&nbsp;` would be rendered
11935 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
11936 + Support `<col>` and `<caption>` in tables. Closes #486.
11938 * Markdown reader:
11940 + Don't recognize references inside delimited code blocks.
11941 + Allow list items to begin with lists.
11943 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
11945 * LaTeX reader:
11947 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
11948 + Control sequences can't be followed by a letter.
11949 This fixes a bug where `\begingroup` was parsed as `\begin`
11950 followed by `group`.
11951 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
11952 + Make `\label` and `\ref` sensitive to `--parse-raw`.
11953 If `--parse-raw` is selected, these will be parsed as raw latex
11954 inlines, rather than bracketed text.
11955 + Don't crash on unknown block commands (like `\vspace{10pt}`)
11956 inside `\author`; just skip them. Closes #505.
11958 * Textile reader:
11960 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
11961 + Added support for LaTeX blocks and inlines (Paul Rivier).
11962 + Better conformance to RedCloth inline parsing (Paul Rivier).
11963 + Parse '+text+' as emphasized (should be underlined, but this
11964 is better than leaving literal plus characters in the output.
11966 * Docx writer: Fixed multi-paragraph list items. Previously they each
11967 got a list marker. Closes #457.
11969 * LaTeX writer:
11971 + Added `--no-tex-ligatures` option to avoid replacing
11972 quotation marks and dashes with TeX ligatures.
11973 + Use `fixltx2e` package to provide '\textsubscript'.
11974 + Improve spacing around LaTeX block environments:
11975 quote, verbatim, itemize, description, enumerate.
11976 Closes #502.
11977 + Use blue instead of pink for URL links in latex/pdf output.
11979 * ConTeXt writer: Fixed escaping of `%`.
11980 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
11981 Inside URLs, `%` needs to be escaped as `\%`
11982 Thanks to jmarca and adityam for the fix. Closes #492.
11984 * Texinfo writer: Escape special characters in node titles.
11985 This fixes a problem pointed out by Joost Kremers. Pandoc used
11986 to escape an '@' in a chapter title, but not in the corresponding
11987 node title, leading to invalid texinfo.
11989 * Fixed document encoding in texinfo template.
11990 Resolves Debian Bug #667816.
11992 * Markdown writer:
11994 + Don't force delimited code blocks to be flush left.
11995 Fixes bug with delimited code blocks inside lists etc.
11996 + Escape `<` and `$`.
11998 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
11999 Previously we used `\href{\#ident}{text}`, which didn't work on
12000 all systems. Thanks to Dirk Laurie.
12002 * RST writer: Don't wrap link references. Closes #487.
12004 * Updated to use latest versions of blaze-html, mtl.
12007pandoc (1.9.2)
12009 * LaTeX reader:
12011 + Made `lstlisting` work as a proper verbatim environment.
12012 + Fixed bug parsing LaTeX tables with one column.
12014 * LaTeX writer:
12016 + Use `{}` around `ctable` caption, so that formatting can be used.
12017 + Don't require eurosym package unless document has a €.
12019 * LaTeX template: Added variables for `geometry`, `romanfont`,
12020 `sansfont`, `mathfont`, `mainfont` so users can more easily
12021 customize fonts.
12023 * PDF writer:
12025 + Run latex engine at least two times, to ensure
12026 that PDFs will have hyperlinked bookmarks.
12027 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
12029 * Texinfo writer: retain directories in image paths. (Peter Wang)
12031 * RST writer: Better handling of inline formatting, in accord
12032 with docutils' "inline markup recognition rules" (though we don't
12033 implement the unicode rules fully). Now `hi*there*hi` gets
12034 rendered properly as `hi\ *there*\ hi`, and unnecessary
12035 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
12037 * RST reader:
12039 + Parse `\ ` as null, not escaped space.
12040 + Allow `` :math:`...` `` even when not followed by blank
12041 or `\`. This does not implement the complex rule docutils follows,
12042 but it should be good enough for most purposes.
12043 + Add support for the rST default-role directive. (Greg Maslov)
12045 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
12046 (Greg Maslov)
12048 * Markdown reader: Properly handle citations nested in other inline
12049 elements.
12051 * Markdown writer: don't replace empty alt in image with "image".
12053 * DZSlides: Updated template.html and styles in default template.
12054 Removed bizarre CSS for `q` in dzslides template.
12056 * Avoid repeated `id` attribute in section and header in HTML slides.
12058 * README improvements: new instructions on internal links,
12059 removed misleading note on reST math.
12061 * Build system:
12063 + Fixed Windows installer so that dzslides works.
12064 + Removed stripansi.sh.
12065 + Added .travis.yml for Travis continuous integration support..
12066 + Fixed upper bound for zlib (Sergei Trofimovich).
12067 + Fixed upper bound for test-framework.
12068 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
12070pandoc (1.9.1.2)
12072 * Added `beamer+lhs` as output format.
12074 * Don't escape `<` in `<style>` tags with `--self-contained`.
12075 This fixes a bug which prevented highlighting from working
12076 when using `--self-contained`.
12078 * PDF: run latex engine three times if `--toc` specified.
12079 This fixes page numbers in the table of contents.
12081 * Docx writer: Added TableNormal style to tables.
12083 * LaTeX math environment fixes. `aligned` is now used instead of
12084 the nonexistent `aligned*`. `multline` instead of the nonexistent
12085 `multiline`.
12087 * LaTeX writer: Use `\textasciitilde` for literal `~`.
12089 * HTML writer: Don't escape contents of EQ tags with --gladtex.
12090 This fixes a regression from 1.8.
12092 * Use `<q>` tags for Quoted items for HTML5 output.
12093 The quote style can be changed by modifying the template
12094 or including a css file. A default quote style is included.
12096 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
12097 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
12099 * Updated LaTeX template for better language support.
12100 Use `polyglossia` instead of `babel` with xetex.
12101 Set `lang` as documentclass option.
12102 `\setmainlanguage` will use the last of a comma-separated
12103 list of languages. Thanks to François Gannaz.
12105 * Fixed default LaTeX template so `\euro` and `€` work. The
12106 `eurosym` package is needed if you are using pdflatex.
12108 * Fixed escaping of period in man writer (thanks to Michael Thompson).
12110 * Fixed list label positions in beamer.
12112 * Set `mainlang` variable in context writer.
12113 This parallels behavior of latex writer. `mainlang` is the last
12114 of a comma-separated list of languages in lang.
12116 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
12118 * Changed `-V` so that you can specify a key without a value.
12119 Such keys get the value `true`.
12121 * Fixed permissions on installed man pages - thanks Magnus Therning.
12123 * Windows installer: require XP or higher. The installer is
12124 now compiled on a Windows 7 machine, which fixes a problem
12125 using citation functions on Windows 7.
12127 * OSX package: Check for 64-bit Intel CPU before installing.
12129pandoc (1.9.1.1)
12131 * Better handling of raw latex environments in markdown. Now
12133 \begin{equation}
12134 a_1
12135 \end{equation}
12137 turns into a raw latex block as expected.
12139 * Improvements to LaTeX reader:
12141 + Skip options after block commands.
12142 + Correctly handle `{\\}` in braced.
12143 + Added a needed 'try'.
12144 + Citations: add `, ` to suffix if it doesn't start with space or
12145 punctuation. Otherwise we get no space between the year and the
12146 suffix in author-date styles.
12148 * Added two needed data files for S5. This fixes a problem with
12149 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
12150 which was no longer being used.
12152 * Fixed some minor problems in `reference.docx`:
12153 name on "Date" style, `xCs` instead of `xIs`.
12155 * Fixed a problem creating docx files using a reference docx
12156 modified using Word. The problem seems to be that Word
12157 modifies `_rels/.rels`, changing the Type of the Relationship to
12158 `docProps/core.xml`. Pandoc now changes this back to the correct
12159 value if it has been altered, fixing the problem.
12161 * Fixed html5 template so it works properly with highlighting.
12163pandoc (1.9.1)
12165 * LaTeX reader:
12167 + Fixed regression in 1.9; properly handle escaped $ in latex math.
12168 + Put LaTeX verse environments in blockquotes.
12170 * Markdown reader:
12172 + Limit nesting of strong/emph. This avoids exponential lookahead
12173 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
12174 + Improved attributes syntax (inn code blocks/spans):
12175 (1) Attributes can contain line breaks. (2) Values in key-value
12176 attributes can be surrounded by either double or single quotes, or
12177 left unquoted if they contain no spaces.
12179 * Don't wrap headers in markdown or RST writers.
12181 * Added `stateMaxNestingLevel` to `ParserState`.
12182 We set this to 6, so you can still have `Emph` inside `Emph`,
12183 just not indefinitely.
12185 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
12187 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
12188 is present.
12190 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
12192pandoc (1.9.0.5)
12194 * Changed cabal file so that build-depends for the test program
12195 are not required unless the tests flag is used.
12197 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
12198 form ligatures (dashes) in code spans.
12200pandoc (1.9.0.4)
12202 * Raised version bound on test-framework to avoid problems
12203 compiling tests on GHC 7.4.1.
12205 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
12206 so citations don't just disappear unless you process with
12207 citeproc. Ignore `\bibliographystyle`, `\nocite`.
12209 * Simplified tex2pdf; it will always run latex twice to
12210 resolve table of contents and hyperrefs.
12212pandoc (1.9.0.3)
12214 * Require Cabal >= 1.10.
12215 * Tweaked cabal file to meet Cabal 1.10 requirements.
12217pandoc (1.9.0.2)
12219 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
12220 ghc 6.12.
12222pandoc (1.9)
12224 [new features]
12226 * Added a Microsoft Word `docx` writer. The writer includes support
12227 for highlighted code and for math (which is converted from TeX to OMML,
12228 Office's native math markup language, using texmath's new OMML module).
12229 A new option `--reference-docx` allows the user to customize the
12230 styles.
12232 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
12234 * Better support for slide shows:
12236 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
12237 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
12239 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
12240 slide presentations.
12242 + New, flexible rules for dividing documents into sections and slides
12243 (see the "Structuring the slide show" in the User's Guide). These
12244 are backward-compatible with the old rules, but they allow slide
12245 shows to be organized into sections and subsections containing
12246 multiple slides.
12248 + A new `--slide-level` option allows users to override defaults
12249 and select a slide level below the first header level with content.
12251 * A new `--self-contained` option produces HTML output that does not
12252 depend on an internet connection or the presence of any external
12253 files. Linked images, CSS, and javascript is downloaded (or fetched
12254 locally) and encoded in `data:` URIs. This is useful for making portable
12255 `HTML slide shows. The --offline` option has been deprecated and is now
12256 `treated as a synonym or --self-contained`.
12258 * Support for PDF output:
12260 + Removed the old `markdown2pdf`.
12261 + `pandoc` can now create PDFs (assuming you have latex and a set of
12262 appropriate packages installed): just specify an output file with the
12263 `.pdf` extension.
12264 + A new option `--latex-engine` allows you to specify `pdflatex`,
12265 `xelatex`, or `lualatex` as the processor.
12267 * Highlighting changes:
12269 + Syntax highlighting is now a standard feature; the `highlighting`
12270 flag is no longer needed when compiling.
12271 + A new `--no-highlight` option allows highlighting to be disabled.
12272 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
12273 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
12274 + A new `--highlight-style` option selects between various highlighting
12275 color themes.
12277 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
12279 * LaTeX `\include` and `\usepackage` commands are now processed,
12280 provided the files are in the working directory.
12282 * EPUB improvements:
12284 + Internal and external links now work in EPUB.
12285 + Raw HTML is allowed.
12286 + New `--epub-embed-font` option.
12287 + Customizable templates for EPUB pages offer more control over
12288 formatting: `epub-page.html`, `epub-coverimage.html`,
12289 `epub-titlepage.html`.
12291 * `--mathml` now works with DocBook.
12293 * Added support for math in RST reader and writer. Inline math uses the
12294 `` :math:`...` `` construct. Display math uses
12296 .. math:: ...
12298 or if the math is multiline,
12300 .. math::
12302 ...
12304 These constructions are now supported now by `rst2latex.py`.
12306 * GitHub syntax for fenced code blocks is supported in pandoc's
12307 markdown. You can now write
12309 ```ruby
12310 x = 2
12311 ```
12313 instead of
12315 ~~~ {.ruby}
12316 x = 2
12317 ~~~~
12319 * Easier scripting: a new `toJsonFilter` function makes it easier to
12320 write Haskell scripts to manipulate the Pandoc AST.
12322 [behavior changes]
12324 * Fixed parsing of consecutive lists in markdown.
12325 Pandoc previously behaved like Markdown.pl for consecutive
12326 lists of different styles. Thus, the following would be parsed
12327 as a single ordered list, rather than an ordered list followed
12328 by an unordered list:
12330 1. one
12331 2. two
12333 - one
12334 - two
12336 This change makes pandoc behave more sensibly, parsing this as
12337 two lists. Any change in list type (ordered/unordered) or in
12338 list number style will trigger a new list. Thus, the following
12339 will also be parsed as two lists:
12341 1. one
12342 2. two
12344 a. one
12345 b. two
12347 Since we regard this as a bug in Markdown.pl, and not something
12348 anyone would ever rely on, we do not preserve the old behavior
12349 even when `--strict` is selected.
12351 * Dashes work differently with `--smart`: `---` is always em-dash,
12352 and `--` is always en-dash. Pandoc no longer tries to guess when
12353 `-` should be en-dash. *Note:* This may change how existing documents
12354 look when processed with pandoc. A new option, `--old-dashes`,
12355 is provided for legacy documents.
12357 * The markdown writer now uses setext headers for levels 1-2.
12358 The old behavior (ATX headers for all levels) can be restored
12359 using the new `--atx-headers` option.
12361 * Links are now allowed in markdown image captions. They are also
12362 allowed in links, but will appear there as regular text. So,
12364 [link with [link](/url)](/url)
12366 will turn into
12368 <p><a href="/url">link with link</a></p>
12370 * Improved handling of citations using `citeproc-hs-0.3.4`.
12371 Added `--citation-abbreviations` option.
12373 * Citation keys can no longer end with a punctuation character.
12374 This means that `@item1.` will be parsed as a citation with key
12375 'item1', followed by a period, instead of a citation with key
12376 'item1.', as was the case previously.
12378 * In HTML output, citations are now put in a span with class `citation`.
12380 * The markdown reader now recognizes DocBook block and inline tags.
12381 It was always possible to include raw DocBook tags in a markdown
12382 document, but now pandoc will be able to distinguish block from
12383 inline tags and behave accordingly. Thus, for example,
12385 <sidebar>
12386 hello
12387 </sidebar>
12389 will not be wrapped in `<para>` tags.
12391 * The LaTeX parser has been completely rewritten; it is now much more
12392 accurate, robust, and extensible. However, there are two important
12393 changes in how it treats unknown LaTeX. (1) Previously, unknown
12394 environments became BlockQuote elements; now, they are treated
12395 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
12396 same as `xyz`. (2) Previously, arguments of unknown commands
12397 were passed through with their braces; now the braces are stripped
12398 off.
12400 * `--smart` is no longer selected automatically with `man` output.
12402 * The deprecated `--xetex` option has been removed.
12404 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
12405 instead. `html5` and `html5+lhs` are now separate output formats.
12407 * Single quotes are no longer escaped in HTML output. They do not
12408 need to be escaped outside of attributes.
12410 * Pandoc will no longer transform leading newlines in code
12411 blocks to `<br/>` tags.
12413 * The ODT writer now sizes images appropriately, using the image
12414 size and DPI information embedded in the image.
12416 * `--standalone` is once again implicitly for a non-text output format
12417 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
12418 and get a standalone ODT file.
12420 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
12421 `<section>`.
12423 * The HTML writer now uses `<del>` for strikeout.
12425 * In HTML output with `--section-divs`, the classes `section` and
12426 `level[1,2,..6]` are put on the `div` tags so they can be styled.
12427 In HTML 5 output with `--section-divs`, the classes
12428 `level[1,2,...6]` are put on `section` tags.
12430 * EPUB writer changes:
12432 + The `lang` variable now sets the language
12433 in the metadata (if it is not set, we default to the locale).
12434 + EPUB: UTF-8 is used rather than decimal entities.
12436 * Added `titleslide` class to title slide in S5 template.
12438 * In HTML, EPUB, and docx metadata, the date is normalized into
12439 YYYY-MM-DD format if possible. (This is required for validation.)
12441 * Attributes in highlighted code blocks are now preserved in HTML.
12442 The container element will have the classes, id, and key-value attributes
12443 you specified in the delimited code block. Previously these were stripped
12444 off.
12446 * The reference backlink in the HTML writer no longer has a special
12447 `footnoteBacklink` class.
12449 * The HTML template has been split into `html` and `html5` templates.
12451 * Author and date are treated more consistently in HTML templates.
12452 Authors are now `<h2>`, date `<h3>`.
12454 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
12456 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
12458 [bug fixes]
12460 * Better support for combining characters and East Asian wide characters
12461 in markdown and reST.
12463 * Better handling of single quotes with `--smart`.
12464 Previously `D'oh l'*aide*` would be parsed with left and right single
12465 quotes instead of apostrophes. This kind of error is now fixed.
12467 * Highlighting: Use `reads` instead of `read` for better error handling.
12468 Fixes crash on `startNum="abc"`.
12470 * Added blank comment after directives in rst template.
12472 * Unescape entities in citation `refId`. The `refId`s coming
12473 from citeproc contain XML numeric entities, and these don't match with the
12474 citation keys parsed by pandoc. Solution is to unescape them.
12476 * HTML reader: Fixed bug parsing tables with both thead and tbody.
12478 * Markdown reader:
12480 + Better handling of escapes in link URLs and titles.
12481 + Fixed backslash escapes in reference links.
12482 + Fixed bug in table/hrule parsing, by checking that the top
12483 line of a table is not followed by a blank line. This bug caused
12484 slowdowns on some files with hrules and tables, as pandoc tried to
12485 interpret the hrules as the tops of multiline tables.
12486 + Fixed bug in code block attribute parser. Previously the ID attribute
12487 got lost if it didn't come first. Now attributes can come in any order.
12489 * RST reader: allow footnotes followed by newline without space characters.
12491 * LaTeX reader:
12493 + Ignore empty groups {}, { }.
12494 + LaTeX reader: Handle \@.
12495 + LaTeX reader: Don't crash on commands like `\itemsep`.
12496 + LaTeX reader: Better handling of letter environments.
12498 * RST writer: Fixed bug involving empty table cells. isSimple was being
12499 calculated in a way that assumed there were no non-empty cells.
12501 * ConTeXt writer:
12503 + Made `--toc` work even without `--number-sections`.
12504 + Escape # in link URLs.
12505 + Use buffering for footnotes containing code blocks.
12506 + Changed 'descr' to 'description', fixed alignment.
12508 * LaTeX writer:
12510 + Escape euro character.
12511 + Don't escape ~ inside href{...}.
12512 + Escape # in href URLs.
12513 + Improved detection of book classes. We now check the
12514 `documentclass` variable, and if that is not set, we look through
12515 the template itself. Also, we have added the KOMA classes scrreprt
12516 and scrbook. You can now make a book using
12517 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
12518 + LHS files now set the "listings" variable, so that the definition
12519 of the `code` environment will be included in the template.
12520 + Links are colored blue by default (this can be changed by
12521 modifying `hyperref` settings in the template).
12522 + Added `lang` variable to LaTeX template.
12524 * HTML writer:
12526 + Fixed bug in HTML template with html5 and mathml.
12527 + Don't use self-closing img, br, hr tags for HTML5.
12528 + Use `<section>` for footnotes if HTML5.
12529 + Update HTML templates to use Content-Style-Type meta tag.
12530 + Use separate variables for meta-date, meta-author.
12531 This makes footnotes work in author and date fields.
12532 + Use 'vertical-align:middle' in WebTeX math for better alignment.
12534 * S5/slidy writer: Make footnotes appear on separate slide at end.
12536 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
12537 META-INF/manifest.xml for ODT files will have everything it needs, so
12538 that ODT files modified by LibreOffice can be used as `--reference-odt`.
12540 * `Text.Pandoc.Templates`: Return empty string for json template.
12542 * `Text.Pandoc.Biblio`:
12544 + Expand citations recursively inside nested inlines.
12545 + Treat `\160` as space when parsing locator and suffix.
12546 This fixes a bug with "p. 33" when `--smart` is used. Previously
12547 the whole "p. 33" would be included in the suffix, with no locator.
12548 + Put whole author-in-text citation in a Cite. Previously just the
12549 date and other info went in the Cite.
12550 + Don't add comma+space to prefix if it ends in punctuation.
12552 * Updated chicago-author-date.csl. The old version did not work
12553 properly for edited volumes with no author.
12555 * EPUB writer:
12557 + Add date to EPUB titlepage and metadata.
12558 + Added TOC identifier in EPUB page template.
12559 + Don't generate superfluous file `cover-image.jpg`.
12561 [under the hood improvements]
12563 * Modified `make_osx_package.sh` to use cabal-dev.
12564 Items are no longer installed as root.
12565 Man pages are zipped and given proper permissions.
12567 * Modified windows installer generator to use cabal-dev.
12569 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
12570 Setup.hs we now invoke 'runghc' in a way that points it to the correct
12571 package databases, instead of always falling back to the default user
12572 package db.
12574 * Updated to work with GHC 7.4.1.
12576 * Removed dependency on old-time.
12578 * Removed dependency on dlist.
12580 * New slidy directory for "self-contained."
12582 * TeXMath writer: Use unicode thin spaces for thin spaces.
12584 * Markdown citations: don't strip off initial space in locator.
12586 [API changes]
12588 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
12589 from the native `Inline` type in pandoc-types. Now we use `Str`
12590 elements with unicode.
12592 * Improvements to `Text.Pandoc.Builder`:
12594 + `Inlines` and `Blocks` are now newtypes (not synonyms for
12595 sequences).
12596 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
12597 and a new `Listable` class, which allows these to be manipulated
12598 to some extent like lists. Monoid append includes automatic
12599 normalization.
12600 + `+++` has been replaced by `<>` (mappend).
12602 * Use blaze-html instead of xhtml for HTML generation.
12603 This changes the type of `writeHtml`.
12605 * `Text.Pandoc.Shared`:
12607 + Added `warn` and `err`.
12608 + Removed `unescapeURI`, modified `escapeURI`.
12609 (See under [behavior changes], above.)
12611 * Changes in URI escaping: Previously the readers escaped URIs by
12612 converting unicode characters to octets and then percent encoding.
12613 Now unicode characters are left as they are, and `escapeURI` only
12614 percent-encodes space characters. This gives more readable
12615 URIs, and works well with modern user agents. URIs are no longer unescaped
12616 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
12618 * New module `Text.Pandoc.SelfContained`.
12620 * New module `Text.Pandoc.Docx`.
12622 * New module `Text.Pandoc.PDF`.
12624 * Added `writerBeamer` to `WriterOptions`.
12626 * Added `normalizeDate` to `Text.Pandoc.Shared`.
12628 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
12629 This is like `splitWithIndices`, but it is sensitive to distinctions
12630 between wide, combining, and regular characters.
12632 * `Text.Pandoc.Pretty`:
12634 + Added `chomp` combinator.
12635 + Added `beforeNonBreak` combinator. This allows you to include
12636 something conditionally on it being before a nonblank.
12637 Used for RST inline math.
12638 + Added `charWidth` function. All characters marked W or F in the unicode
12639 spec EastAsianWidth.txt get width 2.
12640 + Added `realLength`, based on `charWidth`. `realLength` is now
12641 used in calculating offsets.
12643 * New module `Text.Pandoc.Slides`, for common functions for breaking
12644 a document into slides.
12646 * Removed `Text.Pandoc.S5`, which is no longer needed.
12648 * Removed `Text.Pandoc.CharacterReferences`. Moved
12649 `characterReference` to `Text.Pandoc.Parsing`.
12650 `decodeCharacterReferences` is replaced by `fromEntities`
12651 in `Text.Pandoc.XML`.
12653 * Added `Text.Pandoc.ImageSize`. This is intened for use
12654 in `docx` and `odt` writers, so the size and dpi of images
12655 can be calculated.
12657 * Removed `writerAscii` in `WriterOptions`.
12659 * Added `writerHighlight` to `WriterOptions`.
12661 * Added `DZSlides` to `HTMLSlideVariant`.
12663 * `writeEPUB` has a new argument for font files to embed.
12665 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
12666 of whether we're parsing the position immediately after a regular
12667 (non-space, non-symbol) string, which is useful for distinguishing
12668 apostrophes from single quote starts.
12670 * `Text.Pandoc.Parsing`:
12672 + `escaped` now returns a `Char`.
12673 + Removed `charsInBalanced'`, added a character parser as
12674 a parameter of `charsInBalanced`. This is needed for
12675 proper handling of escapes, etc.
12676 + Added `withRaw`.
12678 * Added `toEntities` to `Text.Pandoc.XML`.
12680 * `Text.Pandoc.Readers.LaTeX`:
12682 + Export `handleIncludes`.
12683 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
12685 * Added `ToJsonFilter` class and `toJsonFilter` function to
12686 `Text.Pandoc`, deprecating the old `jsonFilter` function.
12688 * `Text.Pandoc.Highlighting`:
12690 + Removed `highlightHtml`, `defaultHighlightingCss`.
12691 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
12692 key functions from highlighting-kate.
12693 + Changed types of highlighting function. `highlight` returns a
12694 `Maybe`, not an `Either`.
12696pandoc (1.8.2.1)
12698 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
12700 * Relaxed cabal constraints for pandoc-types.
12702 * Adjusted Arbitrary instance to help avoid timeouts in tests.
12704 * Added `Tests.Writers.Markdown` to cabal file.
12706pandoc (1.8.2)
12708 * Added script to produce OS X package.
12710 * Made `templates` directory a git submodule. This should make it
12711 easier for people to revise their custom templates when the default
12712 templates change.
12714 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
12715 **Note:** If you have existing templates in `~/.pandoc/templates`, you
12716 must rename them to conform to the new scheme!
12718 * Fixed smart quotes bug, now handling `'...hi'` properly.
12720 * RST reader:
12722 + Partial support for labeled footnotes.
12723 + Improved accuracy of `simpleReferenceName` parser.
12725 * HTML reader:
12727 + Substitute correct unicode characters for
12728 characters in the 128..159 range, which are often found even in
12729 HTML that purports to be UTF-8.
12731 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
12732 to the title, after a colon and linebreak). Closes #280.
12734 * Leaner `reference.odt`.
12736 * Added unexported module `Text.Pandoc.MIME` for use in
12737 the ODT writer.
12739 * ODT writer: Construct `manifest.xml` based on archive contents.
12740 This fixes a bug in ODTs containing images. Recent versions of
12741 LibreOffice would reject these as corrupt, because `manifest.xml`
12742 did not contain a reference to the image files.
12744 * LaTeX writer:
12746 + Make verbatim environments flush to avoid spurious
12747 blank lines. Closes #277.
12748 + Use `\texttt` and escapes insntead of `\verb!...!`, which
12749 is too fragile (doesn't work in command arguments).
12750 + Use `\enquote{}` for quotes if the template includes
12751 the `csquotes` package. This provides better support for
12752 local quoting styles. (Thanks to Andreas Wagner for the idea.)
12754 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
12755 margin, preventing spurious blank lines.
12757 * Slidy writer:
12759 + Use non-minimized version of `slidy.css` with `--offline`
12760 option, so users can more easily edit it.
12761 + Also fixed a bug in the CSS that prevented proper centering
12762 of title (now reported and fixed upstream).
12764 * S5 writer:
12766 + Replaced `s5/default/slides.js.{comment,packed}` with
12767 new compressed `s5/default/slides.min.js`.
12768 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
12769 when `--offline` is specified. Using inline CSS didn't
12770 work with Chrome or Safari. This fixes offline
12771 S5 on those browsers.
12773 * HTML writer: Removed English title on footnote backlinks.
12774 This is incongrous in non-English documents.
12776 * Docbook writer:
12778 + Use CALS tables. (Some older docbook software does not work
12779 well with XHTML tables.) Closes #77.
12780 + Use `programlisting` tags (instead of `screen`) for code blocks.
12782 * `markdown2pdf`:
12784 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
12785 of `-interaction=batchmode`, which essentially just ignored errors,
12786 leading to bad results. Better to know when something is wrong.
12787 + Fixed issues with non-UTF-8 output of `pdflatex`.
12788 + Better error reporting.
12790 * `--mathjax` now takes an optional URL argument. If it is not
12791 provided, pandoc links directly to the (secure) mathjax CDN,
12792 as now recommended (thanks to dsanson).
12794 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
12795 since the LaTeX writer now produces a file that can be processed by
12796 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
12798 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
12799 to be used to create the PDF.
12801 * If a template specified with `--template` is not found, look for it
12802 in `datadir`. Also, if no extension is provided, supply one based
12803 on the writer. So now you can put your `special.latex` template in
12804 `~/.pandoc/templates`, and use it from any directory via
12805 `pandoc -t latex --template special`.
12807 * Default template improvements:
12809 + HTML: Display author and date after title.
12810 + HTML: Made table of contents more customizable. The container
12811 for the TOC is now in the template, so users can insert a header
12812 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
12813 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
12814 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
12815 hard-coding. If you want to put your slidy files in the slidy
12816 subdirectory, for example, you can do
12817 `pandoc -t slidy -V slidy-url=slidy -s`.
12818 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
12819 & writer). Closes #279.
12820 + LaTeX: Use different `hyperref` options for `xetex`, fixing
12821 problems with unicode bookmarks (thanks to CircleCode).
12822 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
12823 with `inputenc`. This covers fewer characters but is more
12824 robust with other packages, and `ucs` is unmaintained. Users
12825 who need better unicode support should use xelatex or lualatex.
12827pandoc (1.8.1.2)
12829 * Added `--epub-cover-image` option.
12831 * Documented `--biblatex` and `--natbib` options.
12833 * Allow `--section-divs` with slidy output. Resolves Issue #296.
12835 * Disallow notes within notes in reST and markdown.
12836 These previously caused infinite looping and stack overflows.
12837 For example:
12839 [^1]
12841 [^1]: See [^1]
12843 Note references are allowed in reST notes, so this isn't a full
12844 implementation of reST. That can come later. For now we need to
12845 prevent the stack overflows. Partially resolves Issue #297.
12847 * EPUB writer: Allow non-plain math methods.
12849 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
12850 `(@item1; @item2)` because the final paren was being parsed as part of
12851 the item key.
12853 * Changed URI parser so it doesn't include trailing punctuation.
12854 So, in RST, `http://google.com.` should be parsed as a link followed by a
12855 period. The parser is smart enough to recognize balanced parentheses, as
12856 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
12858 * Markdown+lhs reader: Require space after inverse bird tracks, so that
12859 HTML tags can be used freely at the left margin of a markdown+lhs document.
12860 Thanks to Conal Elliot for the suggestion.
12862 * Markdown reader:
12864 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
12865 + Fixed bug in footnote order (reported by CircleCode).
12867 * RST reader:
12868 + Fixed bug in in field lists with multi-line items at the
12869 end of the list.
12870 + Added parentheses to RST `specialChars`, so
12871 `(http://google.com)` will be parsed as a link in parens.
12872 Resolves Issue #291.
12873 + Allow `|` followed by newline in RST line block.
12875 * LaTeX reader:
12876 + Support `\dots`.
12877 + Gobble option & space after linebreak `\\[10pt]`.
12879 * Textile reader:
12880 + Make it possible to have colons after links. (qerub)
12881 + Make it possible to have colons after links. (Christoffer Sawicki)
12883 * HTML reader:
12884 + Skip spaces after `<b>`, `<emph>`, etc.
12885 + Handle tbody, thead in simple tables. Closes #274.
12886 + Implicit `Para`s instead of `Plains` in some contexts.
12888 * OpenDocument writer: Use special `First paragraph` style for
12889 first paragraph after most non-paragraph blocks. This allows users to
12890 specify e.g. that only paragraphs after the first paragraph of a block are
12891 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
12893 * LaTeX writer: use `deVerb` on table and picture captions.
12894 Otherwise LaTeX complains about `\verb` inside command argument.
12895 Thanks to bbanier for reporting the bug.
12897 * Markdown writer: Insert HTML comment btw list and indented code block.
12898 This prevents the code block from being interpreted as part of the list.
12900 * EPUB writer: Add a meta element specify the cover.
12901 Some EPUB e-readers, such as the Nook, require a meta element inside the
12902 OPF metadata block to ensure the cover image is properly displayed.
12903 (Kelsey Hightower)
12905 * HTML writer: Use embed tag for images with non-image extensions.
12906 (e.g. PDFs). Closes #264.
12908 * LaTeX writer: Improved tables.
12910 + More space between lines, top-align cells.
12911 + Use ctable package, which allows footnotes and
12912 provides additional options.
12913 + Made cell alignments work in multiline tables.
12914 + Closes #271, #272.
12916 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
12917 Also do this when copying image files into EPUBs and ODTs.
12918 Closes #263.
12920 * Changed to github issue tracker.
12922 * Added failing emph/strong markdown test case due to Perry Wagle.
12924 * Slidy improvements:
12925 + Updated to use Slidy2.
12926 + Fixed bug, unclosed div tag.
12927 + Added `duration` variable in template.
12928 Setting this activates the timer.
12929 + Use 'titlepage' instead of 'cover' for title div.
12931pandoc (1.8.1.1)
12933 * `markdown2pdf`: Removed some debugging lines accidentally included
12934 in the 1.8.1 release. With those lines, the temp directory is created
12935 in the working directory, and it is not deleted. This fix restores
12936 the original behavior.
12938pandoc (1.8.1)
12940 * Added `--ascii` option. Currently supported only in HTML writer,
12941 which it causes to use numerical entities instead of UTF-8.
12943 * EPUB writer: `--toc` now works to provide a table of contents
12944 at the beginning of each chapter.
12946 * LaTeX writer: Change figure defaults to `htbp`.
12947 This prevents "too many unprocessed floats." Resolves
12948 Issue #285.
12950 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
12951 base.
12953 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
12954 Tanimoto. Resolves Issue #286.
12956 * HTML writer: Put line breaks in section divs.
12958 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
12960pandoc (1.8.0.3)
12962 * Fixed Source-repository stanza in cabal file.
12964pandoc (1.8.0.2)
12966 * HTML writer:
12968 + Stringify alt text instead of converting to HTML.
12969 + Break lines after block elements, not inside tags.
12970 HTML output now closely resembles that of tidy. Resolves Issue #134.
12972 * Markdown reader: Fixed bug in footnote block parser (pointed out
12973 by Jesse Rosenthal). The problem arose when the blank line
12974 at the end of a footnote block contained indenting spaces.
12976 * Shared: Improved 'normalize' function so it normalizes Spaces too.
12977 In normal form, Space elements only occur to separate two non-Space
12978 elements. So, we never have [Space], or [, ..., Space].
12980 * Tests:
12982 + Improved Arbitrary instance.
12983 + Added timeout for test instances.
12985 * README:
12987 + Added section on four-space rule for lists. Resolves Issue #283.
12988 + Clarified optional arguments on math options.
12990 * markdown2pdf: Fixed bug with output file extensions.
12991 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
12992 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
12994pandoc (1.8.0.1)
12996 * Revised Interact.hs so that it works with the CPP macros
12997 in the UTF8 module.
12999 * Revised Setup.hs so that we don't call MakeManPage.hs unless
13000 the man pages are out of date.
13002pandoc (1.8)
13004 [new features]
13006 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
13007 You can now write, for example,
13009 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
13011 and, when you process your document using `pandoc`, specifying
13012 a citation style using `--csl` and a bibliography using `--bibliography`,
13013 the citation will be replaced by an appropriately formatted
13014 citation, and a list of works cited will be added to the end
13015 of the document.
13017 This means that you can switch effortlessly between different citation
13018 and bibliography styles, including footnote, numerical, and author-date
13019 formats. The bibliography can be in any of the following formats: MODS,
13020 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
13021 See the README for further details.
13023 Citations are supported in the markdown reader, using a special
13024 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
13025 (Thanks to Nathan Gass for the natbib and biblatex support.)
13027 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
13028 the `textile` reader, an almost complete implementation of the textile
13029 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
13030 Resolves Issue #51.
13032 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
13034 * New `json` reader and writer, for reading and writing a JSON
13035 representation of the native Pandoc AST. These are much faster
13036 than the `native` reader and writer, and should be used for
13037 serializing Pandoc to text. To convert between the JSON representation
13038 and native Pandoc, use `encodeJSON` and `decodeJSON` from
13039 `Text.JSON.Generic`.
13041 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
13042 to write scripts that transform a JSON-encoded pandoc document.
13043 For example:
13045 -- removelinks.hs - removes links from document
13046 import Text.Pandoc
13047 main = interact $ jsonFilter $ bottomUp removeLink
13048 where removeLink (Link xs _) = Emph xs
13049 removeLink x = x
13051 To use this to remove links while translating markdown to LaTeX:
13053 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
13055 * Attributes are now allowed in inline `Code` elements, for example:
13057 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
13059 The attribute syntax is the same as for delimited code blocks.
13060 `Code` inline has an extra argument place for attributes, just like
13061 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
13062 is compiled with highlighting support. Resolves Issue #119.
13064 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
13065 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
13066 scripts to transform Pandoc documents. Scripts can now change
13067 how each element is rendered in each output format.
13069 * You can now define LaTeX macros in markdown documents, and pandoc
13070 will apply them to TeX math. For example,
13072 \newcommand{\plus}[2]{#1 + #2}
13073 $\plus{3}{4}$
13075 yields `3+4`. Since the macros are applied in the reader, they
13076 will work in every output format, not just LaTeX.
13078 * LaTeX macros can also be used in LaTeX documents (both in math
13079 and in non-math contexts).
13081 * A new `--mathjax` option has been added for displaying
13082 math in HTML using MathJax. Resolves issue #259.
13084 * Footnotes are now supported in the RST reader. (Note, however,
13085 that unlike docutils, pandoc ignores the numeral or symbol used in
13086 the note; footnotes are put in an auto-numbered ordered list.)
13087 Resolves Issue #258.
13089 * A new `--normalize` option causes pandoc to normalize the AST
13090 before writing the document. This means that, for example,
13091 `*hi**there*` will be rendered as `<em>hithere</em>`
13092 instead of `<em>hi</em><em>there</em>`. This is not the default,
13093 because there is a significant performance penalty.
13095 * A new `--chapters` command-line option causes headers
13096 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
13097 Resolves Issue #265.
13099 * In DocBook output, `<chapter>` is now used for top-level
13100 headers if the template contains `<book>`. Resolves Issue #265.
13102 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
13103 the LaTeX writer to use the listings package for code blocks.
13104 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
13105 Millon for the markdown2pdf patch.)
13107 * `markdown2pdf` now supports `--data-dir`.
13109 * URLs in autolinks now have class "url" so they can be styled.
13111 * Improved prettyprinting in most formats. Lines will be wrapped
13112 more evenly and duplicate blank lines avoided.
13114 * New `--columns` command-line option sets the column width for
13115 line wrapping and relative width calculations for tables.
13117 * Made `--smart` work in HTML, RST, and Textile readers, as well
13118 as markdown.
13120 * Added `--html5` option for HTML5 output.
13122 * Added support for listings package in LaTeX reader
13123 (Puneeth Chaganti).
13125 * Added support for simple tables in the LaTeX reader.
13127 * Added support for simple tables in the HTML reader.
13129 * Significant performance improvements in many readers and writers.
13131 [API and program changes]
13133 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
13134 auxiliary package, `pandoc-types`. This will make it possible for other
13135 programs to supply output in Pandoc format, without depending on the whole
13136 pandoc package.
13138 * Added `Attr` field to `Code`.
13140 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
13141 `RawBlock` and `RawInline`.
13143 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
13144 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
13145 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
13147 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
13149 * `Text.Pandoc` now exports association lists `readers` and `writers`.
13151 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
13152 `readNative` can now read full pandoc documents, block lists, blocks,
13153 inline lists, or inlines. It will interpret `Str "hi"`
13154 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
13155 This should make testing easier.
13157 * Removed deprecated `-C/--custom-header` option.
13158 Use `--template` instead.
13160 * `--biblio-file` has been replaced by `--bibliography`.
13161 `--biblio-format` has been removed; pandoc now guesses the format
13162 from the file extension (see README).
13164 * pandoc will treat an argument as a URI only if it has an
13165 `http(s)` scheme. Previously pandoc would treat some
13166 Windows pathnames beginning with `C:/` as URIs.
13168 * The `--sanitize-html` option and the `stateSanitize` field in
13169 `ParserState` have been removed. Sanitization is better done in the
13170 resulting HTML using `xss-sanitize`, which is based on pandoc's
13171 sanitization, but improved.
13173 * pandoc now adds a newline to the end of its output in fragment
13174 mode (= not `--standalone`).
13176 * Added support for `lang` in `html` tag in the HTML template,
13177 so you can do `pandoc -s -V lang=es`, for example.
13179 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
13180 a boolean argument that selects between "inline" and
13181 "block" HTML.
13183 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
13184 Images are embedded in RTF output when possible (png, jpeg).
13185 Resolves Issue #275.
13187 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
13188 `pretty` package. Changed all writers that used
13189 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
13191 * Rewrote `writeNative` using the new prettyprinting module. It is
13192 now much faster. The output has been made more consistent and compressed.
13193 `writeNative` is also now sensitive to writerStandalone`, and will simply
13194 `print a block list if writerStandalone` is False.
13196 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
13197 blocks and concatenate them, so a separate module is no longer needed.
13199 * `Text.Pandoc.Shared`:
13201 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
13202 `WriterOptions`.
13203 + Added `normalize`.
13204 + Removed unneeded prettyprinting functions:
13205 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
13206 `BlockWrapper`, `wrappedBlocksToDoc`.
13207 + Made `splitBy` take a test instead of an element.
13208 + Added `findDataFile`, refactored `readDataFile`.
13209 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
13210 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
13212 * `Text.Pandoc.Readers.HTML`:
13214 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
13215 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
13216 `htmlBlockElement`, `htmlComment`
13217 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
13218 `isTextTag`
13220 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
13221 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
13222 an inline parser.
13224 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
13226 * Ellipses are no longer allowed to contain spaces.
13227 Previously we allowed '. . .', ' . . . ', etc. This caused
13228 too many complications, and removed author's flexibility in
13229 combining ellipses with spaces and periods.
13231 * Allow linebreaks in URLs (treat as spaces). Also, a string of
13232 consecutive spaces or tabs is now parsed as a single space. If you have
13233 multiple spaces in your URL, use `%20%20`.
13235 * `Text.Pandoc.Parsing`:
13237 + Removed `refsMatch`.
13238 + Hid `Key` constructor.
13239 + Removed custom `Ord` and `Eq` instances for `Key`.
13240 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
13241 + Generalized type on `readWith`.
13243 * Small change in calculation of relative widths of table columns.
13244 If the size of the header > the specified column width, use
13245 the header size as 100% for purposes of calculating
13246 relative widths of columns.
13248 * Markdown writer now uses some pandoc-specific features when `--strict`
13249 is not specified: `\` newline is used for a hard linebreak instead of
13250 two spaces then a newline. And delimited code blocks are used when
13251 there are attributes.
13253 * HTML writer: improved gladTeX output by setting ENV appropriately
13254 for display or inline math (Jonathan Daugherty).
13256 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
13258 * LaTeX reader:
13260 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
13261 + `\index{}` commands are skipped.
13263 * Added `fontsize` variable to default LaTeX template.
13264 This makes it easy to set the font size using `markdown2pdf`:
13265 `markdown2pdf -V fontsize=12pt input.txt`.
13267 * Fixed problem with strikeout in LaTeX headers when using
13268 hyperref, by adding a command to the default LaTeX template
13269 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
13270 for the fix.
13272 * The `COLUMNS` environment variable no longer has any effect.
13274 [under-the-hood improvements]
13276 * Pandoc now compiles with GHC 7. (This alone leads to a
13277 significant performance improvement, 15-20%.)
13279 * Completely rewrote HTML reader using tagsoup as a lexer. The
13280 new reader is faster and more accurate. Unlike the
13281 old reader, it does not get bogged down on some input
13282 (Issues #277, 255). And it handles namespaces in tags
13283 (Issue #274).
13285 * Replaced `escapeStringAsXML` with a faster version.
13287 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
13288 for a significant performance boost.
13290 * Improved performance of all readers by rewriting parsers.
13292 * Simplified Text.Pandoc.CharacterReferences by using
13293 entity lookup functions from TagSoup.
13295 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
13296 from `System.IO` if base >= 4.2. This gives support for
13297 windows line endings on windows.
13299 * Remove duplications in documentation by generating the
13300 pandoc man page from README, using `MakeManPage.hs`.
13302 * README now includes a full description of markdown syntax,
13303 including non-pandoc-specific parts. A new `pandoc_markdown`
13304 man page is extracted from this, so you can look up markdown
13305 syntax by doing `man pandoc_markdown`.
13307 * Completely revised test framework (with help from Nathan Gass).
13308 The new test framework is built when the `tests` Cabal flag is set. It
13309 includes the old integration tests, but also some new unit and quickcheck
13310 tests. Test output has been much improved, and you can now specify a glob
13311 pattern after `cabal test` to indicate which tests should be run;
13312 for example `cabal test citations` will run all the citation tests.
13314 * Added a shell script, `stripansi.sh`, for filtering ANSI control
13315 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
13317 * Added `Interact.hs` to make it easier to use ghci while developing.
13318 `Interact.hs` loads `ghci` from the `src` directory, specifying
13319 all the options needed to load pandoc modules (including
13320 specific package dependencies, which it gets by parsing
13321 dist/setup-config).
13323 * Added `Benchmark.hs`, testing all readers + writers using criterion.
13325 * Added `stats.sh`, to make it easier to collect and archive
13326 benchmark and lines-of-code stats.
13328 * Added upper bounds to all cabal dependencies.
13330 * Include man pages in extra-source-files. This allows users to
13331 install pandoc from the tarball without needing to build the man
13332 pages.
13334 [bug fixes]
13336 * Filenames are encoded as UTF8. Resolves Issue #252.
13338 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
13339 were just parsed literally, leading to problems in some output formats.
13340 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
13341 Resolves Issue #270.
13343 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
13344 Spaces at end of line were not being stripped properly,
13345 resulting in unintended LineBreaks.
13347 * Markdown reader:
13349 + Allow HTML comments as inline elements in markdown.
13350 So, `aaa <!-- comment --> bbb` can be a single paragraph.
13351 + Fixed superscripts with links: `^[link](/foo)^` gets
13352 recognized as a superscripted link, not an inline note followed by
13353 garbage.
13354 + Fixed regression, making markdown reference keys case-insensitive again.
13355 Resolves Issue #272.
13356 + Properly handle abbreviations (like `Mr.`) at the end of a line.
13357 + Better handling of intraword underscores, avoiding exponential
13358 slowdowns in some cases. Resolves Issue #182.
13359 + Fixed bug in alignments in tables with blank rows in the header.
13361 * RST reader:
13363 + Field lists now allow spaces in field names, and
13364 block content in field values. (Thanks to Lachlan Musicman
13365 for pointing out the bug.)
13366 + Definition list items are now always `Para` instead of
13367 `Plain`, matching behavior of `rst2xml.py`.
13368 + In image blocks, the description is parsed properly and
13369 used for the alt attribute, not also the title.
13370 + Skip blank lines at beginning of file. Resolves
13371 Debian #611328.
13373 * LaTeX reader:
13375 + Improved parsing of preamble.
13376 Previously you'd get unexpected behavior on a document that
13377 contained `\begin{document}` in, say, a verbatim block.
13378 + Allow spaces between `\begin` or `\end` and `{`.
13379 + Support `\L` and `\l`.
13380 + Skip comments inside paragraphs.
13382 * LaTeX writer:
13384 + Escape strings in `\href{..}`.
13385 + In nonsimple tables, put cells in `\parbox`.
13387 * OpenDocument writer: don't print raw TeX.
13389 * Markdown writer:
13391 + Fixed bug in `Image`. URI was getting unescaped twice!
13392 + Avoid printing extra blank lines at the end if there are
13393 no notes or references.
13395 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
13396 This avoids unwanted interpretation as an optional argument.
13398 * ConTeXt writer: Fixed problem with inline code. Previously
13399 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
13400 If it contains neither, use `\type{}`; otherwise use `\mono{}`
13401 with an escaped version of the string.
13403 * `:` now allowed in HTML tags. Resolves Issue #274.
13405pandoc (1.6)
13407 [ John MacFarlane ]
13409 * New EPUB and HTML Slidy writers. (Issue #122)
13411 - EPUB is a standard ebook format, used in Apple's iBooks for
13412 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
13413 reader, and many other devices.
13414 - Slidy, like S5, is a system for producing HTML+javascript slide
13415 shows.
13417 * All input is assumed to be UTF-8, no matter what the locale and ghc
13418 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
13419 Also, a BOM, if present, is stripped from the input.
13421 * Markdown now supports grid tables, whose cells can contain
13422 arbitrary block elements. (Issue #43)
13424 * Sequentially numbered example lists in markdown with `@` marker.
13426 * Markdown table captions can begin with a bare colon and no longer need
13427 to include the English word "table." Also, a caption can now occur
13428 either before or after the table. (Issue #227)
13430 * New command-line options:
13432 - `--epub-stylesheet` allows you to specify a CSS file that will
13433 be used to style your ebook.
13434 - `--epub-metadata` allows you to specify metadata for the ebook.
13435 - `--offline` causes the generated HTML slideshow to include all
13436 needed scripts and stylesheets.
13437 - `--webtex` causes TeX math to be converted to images using the
13438 Google Charts API (unless a different URL is specified).
13439 - `--section-divs` causes div tags to be added around each section
13440 in an HTML document. (Issue #230, 239)
13442 * Default behavior of S5 writer in standalone mode has changed:
13443 previously, it would include all needed scripts and stylesheets
13444 in the generated HTML; now, only links are included unless
13445 the `--offline` option is used.
13447 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
13448 pandoc would enclose sections in div tags with identifiers on the
13449 div tags, so that the sections can be manipulated in javascript.
13450 This caused undesirable interactions with raw HTML div tags. So,
13451 starting with 1.6, the default is to put the identifiers directly
13452 on the header tags, and not to include the divs. The `--section-divs`
13453 option selects the 1.2-1.5 behavior.
13455 * API changes:
13457 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
13458 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
13459 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
13460 `writerIncludeAfter`.
13461 - Added `headerShift` to `Text.Pandoc.Shared`.
13462 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
13463 to a new module, `Text.Pandoc.Parsing`.
13464 - Added `stateHasChapters` to `ParserState`.
13465 - Added `HTMLSlideVariant`.
13466 - Made `KeyTable` a map instead of an association list.
13467 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
13468 `docDate`).
13469 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
13470 instances.
13471 - Reference keys now have a type of their own (`Key`), with its
13472 own `Ord` instance for case-insensitive comparison.
13473 - Added `Text.Pandoc.Writers.EPUB`.
13474 - Added `Text.Pandoc.UUID`.
13475 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
13476 Removed `saveOpenDocumentAsODT`, added `writeODT`.
13477 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
13478 Removed `prettyPandoc`.
13479 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
13480 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
13481 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
13482 To write S5, you now use `writeHtml` with `writerSlideVariant`
13483 set to `S5Slides` or `SlidySlides`.
13485 * Template changes. If you use custom templates, please update them,
13486 particularly if you use syntax highlighting with pandoc. The old HTML
13487 templates hardcoded highlighting CSS that will no longer work with
13488 the most recent version of highlighting-kate.
13490 - HTML template: avoid empty meta tag if no date.
13491 - HTML template: Use default highlighting CSS from highlighting-kate
13492 instead of hard-coding the CSS into the template.
13493 - HTML template: insert-before text goes before the title, and
13494 immediately after the <body> tag, as documented. (Issue #241)
13495 - Added slidy and s5 templates.
13496 - Added amssymb to preamble of latex template. (github Issue 1)
13498 * Removed excess newlines at the end of output. Note: because output
13499 will not contain an extra newline, you may need to make adjustments
13500 if you are inserting pandoc's output into a template.
13502 * In S5 and slidy, horizontal rules now cause a new slide, so you
13503 are no longer limited to one slide per section.
13505 * Improved handling of code in man writer. Inline code is now monospace,
13506 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
13508 * HTML reader parses `<tt>` as Code. (Issue #247)
13510 * html+lhs output now contains bird tracks, even when compiled without
13511 highlighting support. (Issue #242)
13513 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
13514 since they have a special meaning in XML.
13516 * Code improvements in ODT writer. Remote images are now replaced with
13517 their alt text rather than a broken link.
13519 * LaTeX reader improvements:
13521 - Made latex `\section`, `\chapter` parsers more forgiving of
13522 whitespace.
13523 - Parse `\chapter{}` in latex.
13524 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
13525 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
13526 for use in markdown reader.
13527 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
13528 in markdown document.
13530 * LaTeX writer: images are automatically shrunk if they would extend
13531 beyond the page margin.
13533 * Plain, markdown, RST writers now use unicode for smart punctuation.
13535 * Man writer converts math to unicode when possible, as in other writers.
13537 * `markdown2pdf` can now recognize citeproc options.
13539 * Command-line arguments are converted to UTF-8. (Issue #234)
13541 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
13542 This allows it to handle a wider range of formulas. Also, if a formula
13543 cannot be converted, it is left in raw TeX; formulas are no longer
13544 partially converted.
13546 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
13547 #143)
13549 * Cabal file changes:
13551 - Removed parsec < 3 restriction.
13552 - Added 'threaded' flag for architectures where GHC lacks a threaded
13553 runtime.
13554 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
13555 - Require highlighting-kate 0.2.7.
13557 * Use explicit imports from `Data.Generics`. Otherwise we have a
13558 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
13560 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
13562pandoc (1.5.1.1)
13564 [ John MacFarlane ]
13566 * Fixed uniqueIdent in Shared so that header identifiers work as
13567 advertized in the README and are are valid XHTML names.
13569pandoc (1.5.1)
13571 [ John MacFarlane ]
13573 * Fixed treatment of unicode characters in URIs.
13574 + Shared now exports escapeURI and unescapeURI. These handle
13575 UTF8 encoding and decoding as well as URI escaping/unescaping.
13576 + Shared: uri and emailAddress now return a pair of the original
13577 parsed text and the escaped URI (in the latter case, with
13578 the mailto: prefix).
13579 + HTML reader: unsanitaryURI has been modified to allow unicode
13580 high characters in a URI.
13581 + Readers: All link and image URIs are now escaped using
13582 escapeURI.
13583 + Markdown and RST writers: unescapeURI is used so that URIs
13584 in these formats are human-readable.
13586 * Setup.hs: Don't assume that the build directory is "dist".
13587 Instead, get it from localBuildInfo.
13589 * OpenDocument writer: Use a Map for stTextStyleAttr.
13590 This avoids duplicates (and invalid xml). Resolves Issue #222.
13592pandoc (1.5.0.1)
13594 [ John MacFarlane ]
13596 * HTML writer: Fixed error in math writer (with MathML option)
13597 that caused an infinite loop for unparsable MathML.
13599pandoc (1.5)
13601 [ John MacFarlane ]
13603 * Added --mathml option. When this is selected, pandoc will convert
13604 TeX math into MathML.
13605 + Added data/MathMLinHTML.js, which is included when no URL is
13606 provided for --mathml. This allows MathML to be displayed (in
13607 better browsers) as text/html.
13608 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
13609 necessary; it was replaced by two lines in pandoc.hs.
13610 + Replaced LaTeXMathML.js.comment and LaTeXMathML.js.packed with a
13611 single combined file, LaTeXMathML.js.
13613 * Added --data-dir option.
13614 This specifies a user data directory. If not specified, will default
13615 to ~/.pandoc on unix or Application Data\pandoc on Windows.
13616 Files placed in the user data directory will override system default
13617 data files.
13619 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
13620 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
13621 Nothing, no user directory is searched for an override.
13623 * Added 'plain' output format. This is similar to markdown, but
13624 removes links, pictures, inline formatting, and most anything that
13625 looks even vaguely markupish. The function writePlain is exported by
13626 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
13628 * Allow multi-line titles and authors in meta block.
13629 Titles may span multiple lines, provided continuation lines
13630 begin with a space character. Separate authors may be put on
13631 multiple lines, provided each line after the first begins with
13632 a space character. Each author must fit on one line. Multiple
13633 authors on a single line may still be separated by a semicolon.
13634 Based on a patch by Justin Bogner.
13636 * When given an absolute URI as parameter, pandoc will try to fetch
13637 the content via HTTP. So you can do:
13638 'pandoc -r html -w markdown http://www.fsf.org'
13639 Adds dependency on HTTP.
13641 * Made HTML reader much more forgiving.
13642 + Incorporated idea (from HXT) that an element can be closed
13643 by an open tag for another element.
13644 + Javascript is partially parsed to make sure that a <script>
13645 section is not closed by a </script> in a comment or string.
13646 + More lenient non-quoted attribute values.
13647 Now we accept anything but a space character, quote, or <>.
13648 This helps in parsing e.g. www.google.com!
13649 + Bare & signs are now parsed as a string. This is a common
13650 HTML mistake.
13651 + Skip a bare < in malformed HTML.
13653 * Removed html2markdown and hsmarkdown.
13654 + html2markdown is no longer needed, since you can now pass URI
13655 arguments to pandoc and directly convert web pages. (Note,
13656 however, that pandoc assumes the pages are UTF8. html2markdown
13657 made an attempt to guess the encoding and convert them.)
13658 + hsmarkdown is pointless -- a large executable that could be
13659 replaced by 'pandoc --strict'.
13661 * In most writers, an image in a paragraph by itself is now rendered
13662 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
13663 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
13664 rendered inline.
13666 * Depend on extensible-exceptions. This allows pandoc to be compiled
13667 on GHC 6.8.
13669 * Added --base-header-level option. For example, --base-header-level=2
13670 will change level 1 headers to level 2, level 2 to level 3, etc.
13671 Closes Debian #563416.
13673 * Incomplete support for RST tables (simple and grid).
13674 Thanks to Eric Kow. Colspans and rowspans not yet supported.
13676 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
13678 * MediaWiki writer: format links with relative URLs as wikilinks.
13679 The new rule: If the link target is an absolute URL, an external
13680 link is created. Otherwise, a wikilink is created.
13682 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
13683 identifier. Note: This may break links to sections that involve
13684 tildes.
13686 * Markdown(+lhs) reader: handle "inverse bird tracks."
13687 Inverse bird tracks (<) are used for haskell example code that is not
13688 part of the literate Haskell program. Resolves Issue #211.
13690 * LaTeX reader:
13691 + Recognize '\ ' (interword space).
13692 + Recognize nonbreaking space '~'.
13693 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
13694 section headers. Don't treat \section as inline LaTeX.
13695 Resolves Issue #202.
13696 + LaTeX reader: allow any special character to be escaped.
13697 Resolves Issue #221.
13698 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
13699 headers. Resolves Issue #207.
13701 * Use template variables for include-before/after.
13702 + These options now imply -s; previously they worked also in fragment
13703 mode.
13704 + Users can now adjust position of include-before and include-after
13705 text in the templates.
13706 + Default position of include-before moved back (as it was before 1.4)
13707 before table of contents.
13708 + Resolves Issue #217.
13710 * Don't print an empty table header: (all writers).
13711 Resolves Issue #210.
13713 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
13715 * HTML writer: Don't include TOC div if table of contents is empty.
13717 * Markdown writer: Fixed citations.
13718 Previously the markdown writer printed raw citation codes, e.g.
13719 [geach1970], rather than the expanded citations provided by
13720 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
13721 This means that the document produced can be processed as a markdown
13722 document without citeproc. Thanks to dsanson for reporting, and
13723 Andrea Rossato for the patch.
13725 * Improved and simplified title block in context template.
13726 Previously it caused an error if there was no title.
13727 This method should also be easier for users to customize.
13729 * Markdown reader:
13730 + Treat p., pp., sec., ch., as abbreviations in smart mode.
13731 + Disallow blank lines in inline code span.
13732 + Allow footnotes to be indented < 4 spaces.
13733 This fixes a regression. A test case has been added.
13734 + Escape spaces in URLs as %20. Previously they were incorrectly
13735 escaped as +, which is appropriate only for the query part of
13736 a URL. Resolves Issue #220.
13737 + Require two spaces after capital letter + period for list item.
13738 Otherwise "E. coli" starts a list. This might change the semantics
13739 of some existing documents, since previously the two-space
13740 requirement was only enforced when the second word started
13741 with a capital letter. But it is consistent with the existing
13742 documentation and follows the principle of least surprise.
13743 Resolves Issue #212.
13745 * LaTeX template: redefine labelwidth when using enumerate package.
13746 Otherwise the list labels (numbers) often extend past the left
13747 margin, which looks bad.
13749 * Mediawiki writer: Don't print a "== Notes ==" header before
13750 references. This is too English-centric. Writers can provide their
13751 own header at the end of the document.
13753 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
13754 level 2, etc. This seems to be correct; it's only by convention
13755 that wikipedia articles have level 2 headers at most.
13756 Patch due to Eric Kow.
13758 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
13759 data files don't need to have been installed. This removes the need to
13760 set HOME.
13762 * HTML reader:
13763 + Handle spaces before <html>. Resolves Issue #216.
13764 + Be forgiving in parsing a bare list within a list.
13765 The following is not valid xhtml, but the intent is clear:
13766 <ol>
13767 <li>one</li>
13768 <ol><li>sub</li></ol>
13769 <li>two</li>
13770 </ol>
13771 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
13773 * Updated INSTALL instructions. cabal method is now promoted.
13775 * Updated markdown2pdf man page. It no longer says all pandoc options
13776 are accepted.
13778 * README/man pages: Removed advice to pipe through tidy before HTML
13779 reader. This is obsolete, now that we have a forgiving HTML parser.
13781 * LaTeX writer: set numbersections template variable, so
13782 the section numbering options work again.
13784 * Removed obsolete Makefile.
13786 * Website: renamed index.txt.in -> index.txt.
13788 * New batch file to make-windows-installer.
13789 + Removed old Makefile.windows
13790 + Added make-windows-installer.bat
13791 + Modified default installer name in pandoc-setup.iss
13793 * Removed freebsd and macports directories.
13794 They are no longer up to date.
13796 * Setup.hs:
13797 + Made man page building sensitive to build verbosity.
13798 + Improved detection of highlighting support in test hook.
13799 + Install wrapper scripts into cabal bin directory.
13800 + Also simplified installManpages.
13801 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
13803 * Changed default of writerXeTeX to False.
13805 * HTML writer: don't include empty UL if --toc but no sections.
13806 Resolves Issue #199.
13808 * LaTeX writer:
13810 + If book, report, or memoir documentclass, use \chapter{}
13811 for first-level headers. Otherwise use \section{}.
13812 + Removed stLink, link template variable. Reason: we now always
13813 include hyperref in the template.
13815 * LaTeX template:
13817 + Only show \author if there are some.
13818 + Always include hyperref package. It is used not just for links but
13819 for toc, section heading bookmarks, footnotes, etc. Also added
13820 unicode=true on hyperref options.
13822 * markdown2pdf: always do at least two runs. hyperref bookmarks
13823 require this.
13825 * cabal file: Removed unneeded dependency on template-haskell.
13827 * Windows installer - fixed bug in data file locations.
13828 Resolves Issue #197.
13830 * Deprecated --custom-header in documentation.
13831 Removed old "Custom Headers" section in README.
13833pandoc (1.4)
13835 [ John MacFarlane ]
13837 * Pandoc will now compile with either GHC 6.10 or 6.12.
13838 + Don't use System.IO.UTF8 when compiling with 6.12
13839 + Use -fno-warn-unused-do-bind option when compiling with 6.12
13841 * Replaced old headers with templates. Now users have much more
13842 control over the way documents appear in --standalone mode,
13843 and writer code is simplified. Resolves Issues #59, 147.
13844 Every effort has been made to retain backwards compatibility.
13845 So, the --custom-header option should still work as before.
13847 + Added Text.Pandoc.Templates. This provides functions for
13848 retrieving default templates and for rendering templates.
13849 + System templates (in the pandoc data directory) can be
13850 overridden by user templates in $HOME/.pandoc/templates.
13851 + Removed Text.Pandoc.DefaultHeaders.
13852 + Removed data/headers directory.
13853 + Added templates directory.
13854 + Added writerTemplate and writerVariables fields to WriterOptions.
13855 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
13856 + Changed --print-default-header to --print-default-template.
13857 + Added --template option.
13858 + Added -V/--variable option to set custom template variables.
13860 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
13862 + Removed need for TH in ODT module. Instead get reference.odt from
13863 data file at run time.
13864 + Removed TH dependency from S5 module. S5 module now exports
13865 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
13866 standalone.
13867 + Refactored LaTeXMathML not to use TH.
13869 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
13870 Meta [Inline] [String] String. Authors and date in Meta are now lists
13871 of Inline elements rather than raw strings. This means that they can
13872 be formatted and can include footnotes. NOTE: This may be a breaking
13873 change for those using pandoc as a library.
13875 * Added readDataFile to Text.Pandoc.Shared. This retrieves
13876 a data file from the user pandoc data directory (~/.pandoc
13877 on unix), or, if not found there, from the system data
13878 directory ($CABALDIR/shared/pandoc-VERSION/). All data
13879 files, including templates, LaTeXMathML.js, s5 styles,
13880 and reference.odt, can be overridden by the user.
13882 * s5 files moved from data/ui/default to s5/default.
13884 * Use unicode instead of entities in HTML and XML output. Resolves
13885 Issue #163.
13887 * Prettier HTML footnote references: put anchor inside sup,
13888 instead of other way. Resolves Issue #191. Thanks to
13889 infinity0x.
13891 * Added --xetex option to pandoc and markdown2pdf.
13892 If --xetex is specified, pandoc produces latex suitable for
13893 processing by xelatex, and markdown2pdf uses xelatex to create
13894 the PDF. Resolves Issue #185.
13896 * RTF writer: multiple authors now occupy multiple paragraphs rather
13897 than using a line break.
13899 * Man writer: now the "--after-body" will come after the "AUTHORS"
13900 section, whereas before it would come before it. This is a
13901 slight break from backwards compatibility.
13903 * Added --reference-odt option, so users may customize the styles
13904 used in pandoc-generated ODT files. Users may also place a
13905 default reference.odt in the ~\.pandoc directory.
13907 * ODT writer:
13908 + Indented and line-broke styles.xml so it can be modified more easily.
13909 + Omitted some unnecessary style declarations.
13910 + Don't wrap text in OpenDocument writer. The tags are too long, making
13911 wrapping ugly and pointless.
13913 * LaTeX reader: use \\ to separate multiple authors.
13915 * Markdown reader: use ; as separator between authors.
13916 This allows you to use ',' within author names: e.g. "John Jones, Jr."
13918 * S5 writer: use linebreak to separate authors in title page.
13920 * RST reader: Allow :: before lhs code block. The RST spec requires the
13921 :: before verbatim blocks. This :: should not be treated as literal
13922 colons. Resolves Issue #189.
13924 * Documented pandoc 1.3's new definition list syntax in README.
13925 (An oversight in the last release.)
13927 * markdown2pdf.hs:
13928 + interpret ! in a log as an error line.
13929 + --toc now works properly.
13931 * Changes in RunTests.hs:
13932 + Use the Diff library rather than a local copy of Diff.hs.
13933 (This vastly increases performance.) This change means that 'cabal
13934 test' presupposes that the Diff library is installed.
13935 + Removed tests/Diff.hs from cabal file.
13936 + Changed RunTests to use local environment. We need at least HOME, so
13937 pandoc can find its data directory.
13939 * Updated windows installer to install data files in the app directory.
13941 * Windows installer now installs portable wrappers hsmarkdown and
13942 markdown2pdf.
13944pandoc (1.3)
13946 [ John MacFarlane ]
13948 * Added --id-prefix option (Issue #41). This adds a prefix to all
13949 automatically generated HTML identifiers, which helps prevent
13950 duplicate identifiers when you're generating a fragment (say a blog
13951 post).
13953 * Added --indented-code-classes option. This specifies classes
13954 to use for indented code blocks. (Patch due to buttock; Issue #87.)
13956 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
13957 (Issue #150).
13959 * Improved syntax for markdown definition lists (Issue #24).
13960 Definition lists are now more compatible with PHP Markdown Extra.
13961 + You can have multiple definitions for a term (but still not
13962 multiple terms).
13963 + Multi-block definitions no longer need a column before each block
13964 (indeed, this will now cause multiple definitions).
13965 + The marker no longer needs to be flush with the left margin,
13966 but can be indented at or two spaces. Also, ~ as well as :
13967 can be used as the marker (this suggestion due to David
13968 Wheeler.)
13969 + There can now be a blank line between the term and the
13970 definitions.
13972 * Better looking simple tables. Resolves Issue #180.
13973 + Markdown reader: simple tables are now given column widths of 0.
13974 + Column width of 0 is interpreted as meaning: use default column width.
13975 + Writers now include explicit column width information only
13976 for multiline tables. (Exception: RTF writer, which requires
13977 column widths. In this case, columns are given equal widths,
13978 adding up to the text width.)
13979 + Simple tables should now look better in most output formats.
13981 * Allow markdown tables without headers (Issue #50).
13982 The new syntax is described in README. Also allow optional line of
13983 dashes at bottom of simple tables.
13985 * Compensate for width of final table column (Issue #144).
13987 * Treat a backslash followed by a newline as a hard line break
13988 in markdown. Resolves Issue #154. This is a nice alternative
13989 to markdown's "invisible" way of indicating hardline breaks
13990 using lines that end with two spaces.
13992 * Improved performance of markdown reader by ~10% by eliminating the
13993 need for a separate parsing pass for notes. Raw notes are now stored
13994 on the first pass (which parses references), then parsed when the
13995 note is inserted into the AST. The stateNotes field in ParserState
13996 is now a list of [(String, String)] pairs instead of [(String,
13997 [Block])].
13999 * In markdown reader, treat 4 or more * or _ in a row as literal
14000 text. (Trying to parse long strings of * or _ as strong or emph
14001 leads to exponential performance problems.)
14003 * Markdown reader: Use + rather than %20 for spaces in URLs.
14005 * Fixed htmlComment parser, adding a needed 'try'.
14007 * Don't print raw HTML in man output.
14009 * Allow . _ and ~ in header identifiers.
14011 * Specially mark code blocks that were "literate" in the input.
14012 They can then be treated differently in the writers. This allows
14013 authors to distinguish bits of the literate program they are writing
14014 from source code examples, even if the examples are marked as
14015 Haskell for highlighting. (Issue #174.)
14017 * Modified html+lhs output to use "haskell" highlighter instead
14018 of "literateHaskell". The highlighting module now adds bird tracks
14019 after highlighting (for HTML output), if the code block has the
14020 "literate" class. This gives better results, because kate's
14021 haskell highlighter is much better than the literateHaskell
14022 highlighter.
14024 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
14025 (Issue #137.)
14027 * Support for "..code-block" directive in RST reader. Not core
14028 RST, but used in Sphinx for code blocks annotated with syntax
14029 information. Thanks to Luke Plant for the patch.
14031 * Added "head" to list of block-level HTML tags. Resolves
14032 Issue #108.
14034 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
14036 * Set utf-8 encoding in texinfo headers.
14038 * Docbook writer: add ids to sections. Use link for internal links.
14039 (Issue #60.)
14041 * Blank lines after lists in MediaWiki writer.
14043 * Properly handle commented-out list items in markdown.
14044 Resolves Issue #142. Example:
14046 - a
14047 <!--
14048 - b
14049 -->
14050 - c
14052 * Changed heuristic in compactify. compactify has to decide whether a
14053 Para that ends a list is a Para intentionally, or just because of
14054 the blank lines at the end of every list. In the latter case the
14055 Para is turned to a Plain. The old heuristic was: change final Para
14056 to Plain iff the other items all end in Plain. This produces bad
14057 results when, for example, an item contains just a Plain and an HTML
14058 comment, as it does in the list above. The new heuristic: change
14059 final Para to Plain iff the other items don't contain a Para.
14061 * Added % as an rst underline character. Resolves Issue #173.
14063 * Fix inline math parser so that \$ is allowed in math.
14064 Resolves Issue #169.
14066 * Translate \int (integral) into unicode when using unicode math
14067 method. Resolves Issue #177.
14069 * markdown2pdf.hs improvements:
14070 + Use System.IO.UTF8.
14071 + Print error messages on last attempt.
14072 + Do not create a backup when overwriting a PDF (Issue #166).
14073 + Accept --longopt=val options.
14074 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
14075 it is properly cleaned.
14077 * Added haddock comments warning that readers assume \n line endings.
14079 * Updated COPYRIGHT file.
14081 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
14082 markdown2pdf. Otherwise strip tries to strip shell scripts when you
14083 install using 'make'.
14085 * Changed Makefile so it doesn't build Haskell wrappers.
14087 * Fixed Makefile so it doesn't try to build man pages in build-doc.
14089 * Install pcre3.dll in Windows install script; this allows us to
14090 package a version of pandoc with highlighting support.
14092pandoc (1.2.1)
14094 [ John MacFarlane ]
14096 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
14097 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
14098 side effect: strings of 0 spaces were interpreted as indentation.
14099 So, with --preserve-tabs, unindented paragraphs were treated as
14100 code. Resolves Issue #138.
14102 * HTML writer: wrap sections in divs. Resolves Issue #70.
14104 + hierarchicalize has been rationalized; it builds a hierarchical
14105 representation of the document from the headers, and simultaneously
14106 gives each section a unique identifier based on the heading title.
14107 + Identifiers are now attached to the divs rather than
14108 to the headers themselves.
14109 + Table of content backlinks go to the beginning of the table, rather
14110 than to the section reference that was clicked.
14111 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
14112 from the HTML writer, since it is now consumed only by
14113 hierarchicalize.
14114 + In --strict mode, pandoc just prints bare headings, as before
14115 (unless --toc has been specified).
14116 + In s5 output, it does not wrap sections in divs, as that seems to
14117 confuse the s5 javascript.
14119 * Man writer: break lines at end of each sentence. groff expects this
14120 and treats '.' and '?' differently when followed by line ending as
14121 opposed to ordinary space. Also, don't escape periods. Instead, use
14122 zero-width character \& to avoid unwanted interpretation of periods
14123 at start of line. Resolves Issue #148.
14125 * Markdown writer: Added '#' and '>' to list of characters to be
14126 escaped in markdown output. Removed '<', as it is not an officially
14127 escapable character. This partially resolves Issue #96.
14129 * Make --smart the default for man output format. Otherwise we have
14130 trouble dividing lists of endlines into sentences.
14132 * DocBook writer: Use language attribute to indicate source language
14133 in code blocks.
14135 * RST reader:
14137 + Allow # to continue list, even if the list was started with an
14138 explicit marker. For example:
14140 A. my list
14141 #. continued
14143 Resolves Issue #140.
14144 + Allow continuation lines in line blocks. Also added test cases for
14145 line blocks for RST reader. Resolves Issue #149.
14146 + Allow explicit links with spaces in URL: `link <to this>`_
14148 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
14149 (which is not in LaTeX) and recognize all the amsmath environments
14150 that are alternatives to eqnarray, namely equation, equation*,
14151 gather, gather*, gathered, multline, multline*, align, align*,
14152 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
14153 Thanks to shreevatsa.public for the patch.
14155 * Markdown reader:
14157 + Allow -, _, :, . in markdown attribute names. These are legal in
14158 XML attribute names.
14159 + Use non-breaking spaces in abbreviations.
14160 + Markdown reader: improved efficiency of abbreviation parsing.
14161 Instead of a separate abbrev parser, we just check for
14162 abbreviations each time we parse a string. This gives a huge
14163 performance boost with -S. Resolves Issue #141.
14165 * Improved efficiency of shared parsers: hexNum, htmlComment,
14166 whitespace, indentSpaces.
14168 * Export HTMLMathMethod in Text.Pandoc.
14170 * Export languagesByExtension in Text.Pandoc.Highlighting.
14172 * Added new Haskell version of markdown2pdf, due to
14173 Paulo Tanimoto. This should be more portable than the old
14174 shell script.
14176 * Made 'pandoc -v' more explicit about compiler options.
14177 Resolves Issue #139.
14179 * pandoc.hs: Made --strict compatible with --standalone, --toc.
14181 * Use Paths_pandoc to get version number, instead of hard-coding it
14182 into Text/Pandoc.hs.
14184pandoc (1.2)
14186 [ John MacFarlane ]
14188 * Added support for literate Haskell. lhs support is triggered by
14189 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
14190 Haskell LaTeX. '.lhs' files are treated by default as literate
14191 markdown.
14193 + Added stateLiterateHaskell to parser state.
14194 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
14195 + Added parser for |inline lhs| to LaTeX reader.
14196 + Added writerLiterateHaskell to WriterOptions.
14197 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
14198 + Added definition of code environment to LaTeX header.
14199 + Added tests (run only if highlighting support compiled in).
14200 + Documented lhs features in man page and README.
14202 * In Text.Pandoc.Definition, added processWith, processWithM,
14203 and queryWith, and deprecated processPandoc and queryPandoc
14204 for these more general functions.
14206 * Fixed bug in mediawiki writer: improper closing tags in tables.
14207 Thanks to Benct Philip Jonsson for reporting the bug.
14209 * Added --email-obfuscation option.
14211 + Added writer option for email obfuscation.
14212 + Implemented email obfuscation options in HTML writer.
14213 + Added option to option parser.
14214 + Documented in README and pandoc man page.
14215 + Resolves Issue #97.
14217 * LaTeX writer: fixed bug with empty table cells.
14218 Resolves Issue #107. Thanks to rodja.trappe for the patch.
14220 * Fixed bug with header spacing in Markdown and RST writers.
14221 A null header (Meta [] [] []) should not cause a blank line
14222 at the beginning of output. But a blank line is needed between
14223 a non-null header and the main text.
14225 * Markdown reader: Relax spacing rules for $$ in display math. Now
14226 space and newlines are allowed after the opening $$ and before the
14227 closing $$. However, the display math cannot contain an entirely
14228 blank line. Resolves Issue #105.
14230 * Markdown reader: Gobble space after Plain blocks containing only
14231 raw html inline. Otherwise following header blocks are not parsed
14232 correctly, since the parser sees blank space before them. Resolves
14233 Issue #124.
14235 * Markdown reader: Allow " as well as '' to end a latex double-quote.
14237 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
14238 Resolves Issue #109.
14240 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
14242 + Added hang' function to Text.Pandoc.Shared; this will be used instead
14243 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
14244 is upgraded, we can go back to hang.
14245 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
14246 + Use hang' (and some different techniques) in RST and markdown writers.
14247 Some output is now a bit different.
14249 * Brought citeproc support up to date for citeproc-hs-0.2.
14250 (Patch by Andrea Rossato.)
14252 * Moved all haskell source to src subdirectory. Renamed Main.hs to
14253 pandoc.hs.
14255 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
14256 For now, keeping the old shell script too.
14258 * Added TemplateHaskell to Extensions for executable, removed
14259 -threaded for library. Thanks to duncan.coutts for the bug report.
14260 Resolves Issue #121.
14262 * Moved some Extra-Source-Files to Data-Files.
14264 * Moved tabFilter to Shared.
14266 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
14267 preserve tabs.
14269 * Minor code cleanup based on hlint suggestions.
14271pandoc (1.1)
14273 [ John MacFarlane ]
14275 * Main.hs:
14277 + Changed date on copyright message in Main.hs.
14278 + Have the '-v' option print syntax highlighting languages
14279 separated by commas, and wrapped in lines, instead of in five
14280 columns as before.
14282 * Added --jsmath option. Resolves Issue #68.
14284 + Added --jsmath option to Main.hs
14285 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
14286 + Handle math appropriately in HTML writer when JsMath selected.
14287 + Documented the option in README and man page.
14289 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
14290 for tight and loose lists. Final Para is changed to Plain if all
14291 other list items *end* with a Plain block. Addresses Issue #99.
14293 * HTML reader:
14295 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
14296 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
14297 Added rawVerbatimBlock parser. Resolves Issue #94.
14299 * Markdown reader:
14301 + Allow URLs with spaces in them in links and references, but escape
14302 them as "%20".
14303 + Allow blank space at the end of horizontal rules.
14305 * RST reader: Modified 'unknownDirective' parser to handle comment
14306 blocks correctly, and added tests for comment blocks. Resolves Issue
14307 #86. Closes Debian Bug #500662.
14309 * HTML writer:
14311 + Include classes on tr elements in HTML output:
14312 "header", "odd", "even". This allows tables to be styled with
14313 lines in alternating colors. Resolves Issue #91.
14314 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
14315 This prevents parts of the document that are not math from being
14316 interpreted as math by LaTeXMathML.js.
14318 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
14319 which were formerly ignored. Resolves Issue #95.
14321 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
14322 between a footnote and immediately following nonspace characters in
14323 LaTeX and ConTeXt output. (This gets interpreted as a space, which
14324 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
14326 * Windows installer: Don't require admin privileges to run
14327 installer. Modified pandoc-setup.iss, and changed modpath.iss to
14328 modify HKCU path if user lacks admin privileges. Also fixed case
14329 where oldpath is empty (previously this led to the new path
14330 beginning with a semicolon).
14332 * Updated INSTALL instructions for Arch packages and OS X install using
14333 cabal-install.
14335 * Removed the (now unneeded) debian directory.
14336 Removed empty Codec and System directories.
14338 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
14340 * Modified Setup.hs so that the "test" target returns an error status
14341 when tests fail, and "build" returns a success status if
14342 the build succeeds. Resolves Issue #100.
14344 * Added BUGS to files in tarball.
14347pandoc (1.0.0.1)
14349 [ John MacFarlane ]
14351 * Removed spurious reference to pdf output format from pandoc(1) man page.
14353pandoc (1.0)
14355 [ Andrea Rossato ]
14357 * Added new OpenDocument writer.
14359 * Added support for SmallCaps inline element.
14361 * Added support for integrating pandoc with citeproc-hs.
14363 + Added Cite element to definition and writers.
14364 + Added Text.Pandoc.Biblio module
14365 + Note: This support is included only if the 'citeproc'
14366 Cabal configuration flag is set.
14368 * Made Pandoc data structure an instance of Typeable.
14369 Added new processPandoc and queryPandoc functions, to query
14370 or transform matching elements in a Pandoc structure.
14372 [ Peter Wang ]
14374 * Added new Texinfo writer.
14376 [ John MacFarlane ]
14378 * Changes to Texinfo writer:
14380 + No space between paragraph and following @verbatim (provides more
14381 pleasing appearance in text formats)
14382 + Blank line consistently after list environments.
14383 + Removed deVerb.
14384 + Use @code instead of @verb for inline code (this solves the character
14385 escaping problem for texi2dvi and texi2pdf).
14386 + Added news of Texinfo writer to README.
14387 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
14388 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
14389 default output extension.
14390 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
14392 * Added tests for OpenDocument writer.
14394 * Added ODT writer (using zip-archive library to package output of
14395 OpenDocument writer). Added odt-styles directory with default ODT styles.
14397 * Added new mediawiki writer and tests.
14399 * Markdown reader: Added support for delimited code blocks, with optional
14400 syntax highlighting using highlighting-kate (if the 'highlighting'
14401 configuration option is selected).
14403 + Currently highlighting is supported only in the HTML writer.
14404 + Delimited code blocks can have attributes; using the language name as
14405 class triggers highlighting.
14406 + New Attributes parameter in CodeBlock structure.
14407 + --version now indicates whether syntax highlighting support is compiled
14408 in, and prints a list of supported languages
14410 * Removed debian directory. Pandoc is no longer a native debian package.
14412 * Changes to build process: pandoc can now be built from the repository
14413 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
14414 without Cygwin).
14416 + Include shell scripts themselves in repo, rather than generating from wrappers.
14417 Removed wrappers directory and wrappers Makefile target.
14418 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
14419 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
14420 from templates in the templates/ directory. Instead, they use template
14421 haskell to read data at compile time from the relevant files in data/.
14422 Template haskell functions go in a new module, Text.Pandoc.TH.
14423 + man pages are now generated in Setup.hs hook, not by Makefile
14424 + Makefile 'tarball' target now calls Cabal's 'sdist'
14425 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
14426 + Added "Build-Type" field to pandoc.cabal to avoid warning.
14427 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
14428 so 'sdist' and 'clean' will work properly.
14429 + Setup.hs now generates man pages in a postbuild hook.
14430 + Added dependency-checking to Setup.hs, so it only rebuilds things
14431 that need rebuilding.
14432 + Added 'library' and 'executable' configuration flags.
14433 Cabal can now be told to build just the library or just the executable.
14434 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
14435 For example: CABALOPTS=-fhighlighting make
14437 * Rewrote test suite so it doesn't depend on perl or unix tools.
14439 + Replaced old runtests.pl with a Haskell script RunTests.hs.
14440 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
14441 + Added test hook to Setup.hs, so tests may be run from cabal.
14442 + Changed Makefile's 'test' target to run tests via cabal.
14443 + Removed old generate.sh.
14444 + Since we no longer have 'sed' to filter out raw HTML sections
14445 from the docbook writer test, or raw LaTeX sections from the
14446 context writer test, we now just include these sections.
14447 They can be taken out if it is necessary to process the files.
14448 + Updated latex and context writer tests to remove extra spaces
14449 after '\\item'
14450 + Added a markdown table reader test.
14451 + Added markdown-reader-more.txt to test suite, for additional test cases
14452 for raw ConTeXt environments and more.
14454 * Compatibility fixes for CPP, Cabal, and haddock:
14456 + Use CPP in "Extensions" field in pandoc.cabal.
14457 + Removed use of backslash string continuations in source files.
14459 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
14460 base >= 3.
14462 * Require parsec < 3.
14463 The compatibility module in parsec 3.0.0 gives far worse performance than
14464 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
14465 version of parsec, and then we'll go to parsec 3.0.0.
14467 * Removed Text.Regex dependencies by rewriting using plain Haskell
14468 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
14470 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
14472 * Makefile:
14474 + Added 'configure' as dependency of 'uninstall-all'.
14475 (It uses the Cabal build program.)
14476 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
14477 Note that Cabal will automatically choose the ghc-pkg appropriate
14478 for the compiler selected, so normally specifying GHC by itself
14479 is sufficient.
14481 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
14482 its IO and conversion functions.
14484 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
14485 everything is -Wall clean.
14487 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
14488 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
14489 (These are caused by the Lift instance for ByteString.)
14491 * Changed the comment used to replace unsafe HTML if sanitize-html option
14492 selected.
14494 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
14496 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
14498 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
14499 "nbsp" isn't a predefined XML entity.
14501 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
14502 Added some try's in ordered list parsers.
14504 * Man writer: don't escape " as \".
14506 * Allow newline before URL in markdown link references. Resolves Issue #81.
14507 Added tests for this issue in new "markdown-reader-more" tests.
14508 Changed RunTests.hs to run these tests.
14510 * Support for display math. Resolves Issue #47.
14512 + Added a DisplayMath/InlineMath selector to Math inlines.
14513 + Markdown parser yields DisplayMath for $$...$$.
14514 + LaTeX parser yields DisplayMath when appropriate. Removed
14515 mathBlock parsers, since the same effect is achieved by the math
14516 inline parsers, now that they handle display math.
14517 + Writers handle DisplayMath as appropriate for the format.
14518 + Modified tests accordingly; added new tests for display math.
14520 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
14521 to LaTeX in its display of math, and supports many non-math LaTeX environments.
14523 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
14524 + Modified HTML writer to print raw TeX when LaTeXMathML is
14525 being used instead of suppressing it.
14526 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
14527 + Replaced ASCIIMathML with LaTeXMathML in source files.
14528 + Modified README and pandoc man page source.
14529 + Added --latexmathml option (kept --asciimathml as a synonym
14530 for backwards compatibility)
14532 * Markdown reader: Parse setext headers before atx headers.
14533 Test case:
14534 # hi
14535 ====
14536 parsed by Markdown.pl as an H1 header with contents "# hi".
14538 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
14539 The marker on the first list item determines the type of the whole
14540 list. Thus, a list like
14541 1. one
14542 - two
14543 * three
14544 gets parsed as a single ordered list. (Previous versions of pandoc
14545 treated this as an ordered list with an unordered sublist.)
14547 * Markdown smart typography:
14549 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
14550 + Use nonbreaking spaces after known abbreviations in markdown parser.
14551 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
14552 not produce a sentence-separating space. Resolves Issue #75.
14554 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
14556 * Treat '\ ' in (extended) markdown as nonbreaking space.
14557 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
14559 * The '--sanitize-html' option now examines URIs in markdown links
14560 and images, and in HTML href and src attributes. If the URI scheme
14561 is not on a whitelist of safe schemes, it is rejected. The main point
14562 is to prevent cross-site scripting attacks using 'javascript:' URIs.
14563 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
14564 and http://ha.ckers.org/xss.html. Resolves Issue #62.
14566 * HTML writer:
14568 + Override Text.XHtml's stringToHtml function,
14569 so that characters below 0xff are not converted to numerical entity
14570 references. Also convert '\160' to "&nbsp;". This should aid readability
14571 and editability of the HTML source. It does presuppose that the HTML
14572 will be served as UTF-8.
14573 + In code blocks, change leading newlines to <br /> tags.
14574 (Some browsers ignore them.) Resolves Issue #71.
14575 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
14576 + Use style attributes rather than css classes for strikethrough
14577 and ordered list styles. This works better when fragments, rather than
14578 standalone documents, are generated.
14580 * HTML reader: Count anything that isn't a known block (HTML) tag as an
14581 inline tag (rather than the other way around). Added "html", "head", and
14582 "body" to list of block tags. Resolves Issue #66, allowing
14583 <lj> to count as an inline tag.
14585 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
14586 boldface, and other inline elements. Resolves Issue #64.
14588 * LaTeX reader: improvements in raw LaTeX parsing.
14590 + "loose punctuation" (like {}) parsed as Space
14591 + Para elements must contain more than Str "" and Space elements
14592 + Added parser for "\ignore" command used in literate haskell.
14593 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
14594 mode, these parsers simply strip off the command part and allow
14595 the arguments to be parsed normally. So, for example,
14596 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
14597 Str "{\\emph{hi}}".
14598 + Parse lhs "code" environments as verbatim.
14599 Refactored parsers for verbatim environments.
14600 + Removed specialEnvironment parser.
14601 + parse '{}', if present, after \textless, \textgreater,
14602 \textbar, \textbackslash, \ldots.
14603 + Parse unescaped special characters verbatim rather than
14604 changing them to spaces. This way arguments of unknown
14605 commands will appear in braces.
14607 * Parse raw ConTeXt environments as TeX in markdown reader.
14608 Resolves Issue #73.
14610 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
14612 * Made some structural changes to parsing of raw LaTeX environments.
14613 Previously there was a special block parser for LaTeX environments.
14614 It returned a Para element containing the raw TeX inline. This has
14615 been removed, and the raw LaTeX environment parser is now used in the
14616 rawLaTeXInline parser. The effect is exactly the same, except that we
14617 can now handle consecutive LaTeX and ConTeXt environments not separated
14618 by spaces. This new flexibility is required by the example in
14619 Issue #73:
14621 \placeformula \startformula
14622 L_{1} = L_{2}
14623 \stopformula
14625 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
14626 returns a string) rather than rawLaTeXEnvironment (which returns a block
14627 element). This is more likely to be useful in other applications.
14629 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
14630 \textsubscript conflicts with a definition in the memoir class.
14631 Resolves Issue #65.
14633 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
14635 * Added amsmath package to default LaTeX header. Resolves Issue #48.
14637 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
14638 list introduction lines.
14640 * Changed Float to Double in definition of Table element.
14641 (Double is more efficient in GHC.)
14643 * Fixed bug in Markdown parser: regular $s triggering math mode.
14644 For example: "shoes ($20) and socks ($5)."
14645 The fix consists in two new restrictions:
14647 + the $ that ends a math span may not be directly followed by a digit.
14648 + no blank lines may be included within a math span.
14650 Thanks to Joseph Reagle for noticing the bug.
14652 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
14653 Removed 'joinWithSep' from Text.Pandoc.Shared.
14655 * Updated README and man pages. Acknowledge contributors in README.
14656 Added paragraph to README about producing S5 with separate CSS/javascript.
14658 * Updated INSTALL to reflect new build system (including configuration
14659 options) and document new dependencies. Added note to INSTALL that
14660 Cabal >= 1.2 is required for build. Resolves Issue #74.
14662 * Fixed some haddock documentation errors.
14664 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
14666pandoc (0.46) unstable; urgency=low
14668 [ John MacFarlane ]
14670 * Made -H, -A, and -B options cumulative: if they are specified
14671 multiple times, multiple files will be included.
14673 * Added optional HTML sanitization using a whitelist.
14674 When this option is specified (--sanitize-html on the command line),
14675 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
14676 attributes will be removed. This option should be especially useful
14677 for those who want to use pandoc libraries in web applications, where
14678 users will provide the input.
14680 + Main.hs: Added --sanitize-html option.
14682 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
14684 + Text.Pandoc.Readers.HTML:
14685 - Added whitelists of sanitaryTags and sanitaryAttributes.
14686 - Added parsers to check these lists (and state) to see if a given
14687 tag or attribute should be counted unsafe.
14688 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
14689 with comments.
14690 - Modified htmlAttribute to remove unsafe attributes.
14691 - Modified htmlScript and htmlStyle to remove these elements if
14692 unsafe.
14694 + Modified README and man pages to document new option.
14696 * Improved handling of email addresses in markdown and reStructuredText.
14697 Consolidated uri and email address parsers. (Resolves Issue #37.)
14699 + New emailAddress and uri parsers in Text.Pandoc.Shared.
14700 - uri parser uses parseURI from Network.URI.
14701 - emailAddress parser properly handles email addresses with periods
14702 in them.
14704 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
14705 and Text.Pandoc.Readers.Markdown.
14707 * Markdown reader:
14709 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
14710 nested in an Emph. (A '*' is only recognized as the end of the
14711 emphasis if it's not the beginning of a strong emphasis.)
14713 + Moved blockQuote parser before list parsers for performance.
14715 + Modified 'source' parser to allow backslash-escapes in URLs.
14716 So, for example, [my](/url\(1\)) yields a link to /url(1).
14717 Resolves Issue #34.
14719 + Disallowed links within links. (Resolves Issue #35.)
14720 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
14721 instead of hard-coding the inline parser takes an inline parser
14722 as a parameter.
14723 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
14724 - Removed unneeded inlineString function.
14725 - Added inlineNonLink parser, which is now used in the definition of
14726 reference.
14727 - Added inlineParsers list and redefined inline and inlineNonLink parsers
14728 in terms of it.
14729 - Added failIfLink parser.
14731 + Better handling of parentheses in URLs and quotation marks in titles.
14732 - 'source' parser first tries to parse URL with balanced parentheses;
14733 if that doesn't work, it tries to parse everything beginning with
14734 '(' and ending with ')'.
14735 - source parser now uses an auxiliary function source'.
14736 - linkTitle parser simplified and improved, under assumption that it
14737 will be called in context of source'.
14739 + Make 'block' conditional on strictness state, instead of using
14740 failIfStrict in block parsers. Use a different ordering of parsers
14741 in strict mode (raw HTML block before paragraph) for performance.
14742 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
14743 Simplified htmlBlock, since we know it's only called in strict
14744 mode.
14746 + Improved handling of raw HTML. (Resolves Issue #36.)
14747 - Tags that can be either block or inline (e.g. <ins>) should
14748 be treated as block when appropriate and as inline when
14749 appropriate. Thus, for example,
14750 <ins>hi</ins>
14751 should be treated as a paragraph with inline <ins> tags, while
14752 <ins>
14754 </ins>
14755 should be treated as a paragraph within <ins> tags.
14756 - Moved htmlBlock after para in list of block parsers. This ensures
14757 that tags that can be either block or inline get parsed as inline
14758 when appropriate.
14759 - Modified rawHtmlInline' so that block elements aren't treated as
14760 inline.
14761 - Modified para parser so that paragraphs containing only HTML tags and
14762 blank space are not allowed. Treat these as raw HTML blocks instead.
14764 + Fixed bug wherein HTML preceding a code block could cause it to
14765 be parsed as a paragraph. The problem is that the HTML parser
14766 used to eat all blank space after an HTML block, including the
14767 indentation of the code block. (Resolves Issue #39.)
14768 - In Text.Pandoc.Readers.HTML, removed parsing of following space
14769 from rawHtmlBlock.
14770 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
14771 indentation is eaten *only* on the first line after the HTML
14772 block. This means that in
14773 <div>
14774 foo
14775 <div>
14776 the foo won't be treated as a code block, but in
14777 <div>
14779 foo
14781 </div>
14782 it will. This seems the right approach for least surprise.
14784 * RST reader:
14786 + Fixed bug in parsing explicit links (resolves Issue #44).
14787 The problem was that we were looking for inlines until a '<' character
14788 signaled the start of the URL; so, if you hit a reference-style link,
14789 it would keep looking til the end of the document. Fix: change
14790 inline => (notFollowedBy (char '`') >> inline). Note that this won't
14791 allow code inlines in links, but these aren't allowed in resT anyway.
14793 + Cleaned up parsing of reference names in key blocks and links.
14794 Allow nonquoted reference links to contain isolated '.', '-', '_', so
14795 so that strings like 'a_b_' count as links.
14797 + Removed unnecessary check for following link in str.
14798 This is unnecessary now that link is above str in the definition of
14799 'inline'.
14801 * HTML reader:
14803 + Modified rawHtmlBlock so it parses </html> and </body> tags.
14804 This allows these tags to be handled correctly in Markdown.
14805 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
14806 since these are handled in parseHtml. (Resolves Issue #38.)
14808 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
14810 + Don't interpret contents of style tags as markdown.
14811 (Resolves Issue #40.)
14812 - Added htmlStyle, analogous to htmlScript.
14813 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
14814 - Moved "script" from the list of tags that can be either block or
14815 inline to the list of block tags.
14817 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
14818 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
14819 inline tags would be included in raw HTML blocks.
14821 + Modified anyHtmlBlockTag to test for (not inline) rather than
14822 directly for block. This allows us to handle e.g. docbook in
14823 the markdown reader.
14825 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
14826 Updated LaTeX reader test to use --parse-raw.
14828 * HTML writer:
14830 + Modified rules for automatic HTML header identifiers to
14831 ensure that identifiers begin with an alphabetic character.
14832 The new rules are described in README. (Resolves Issue #33.)
14834 + Changed handling of titles in HTML writer so you don't get
14835 "titleprefix - " followed by nothing.
14837 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
14838 spacing. Each block element is wrapped with either Pad or Reg.
14839 Pad'ed elements are guaranteed to have a blank line in between.
14841 * RST writer:
14843 + Refactored RST writer to use a record instead of a tuple for state,
14844 and to include options in state so it doesn't need to be passed as
14845 a parameter.
14847 + Use an interpreted text role to render math in restructuredText.
14848 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
14849 strategy.
14851 [ Recai Oktaş ]
14853 * Debian packaging changes:
14855 + Remove the empty 'include' directory in -dev package, which lintian
14856 complains about.
14857 + Bump Standarts-Version to 3.7.3.
14858 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
14859 lintian.
14861 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
14863pandoc (0.45) unstable; urgency=low
14865 [ John MacFarlane ]
14867 * Simplified parsing of reference keys and notes in markdown and RST
14868 readers: The Reference data structure from Text.Pandoc.Shared is no
14869 longer needed, since referenceKey and noteBlock parses return strings
14870 (as many blank lines as were occupied by the key or note) and update
14871 state themselves. getPosition and setPosition are now used to ensure
14872 that error messages will give the correct line number. This yields
14873 cleaner (and slightly faster) code, with more accurate parsing error
14874 messages.
14876 * Added new Math inline element:
14878 + Markdown and LaTeX readers now convert TeX math into Math elements,
14879 not TeX.
14880 + This allows math to be treated differently from raw TeX in output.
14881 TeX elements are no longer printed in output formats other than
14882 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
14884 * New default handling of math in writers:
14886 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
14887 parses raw TeX math and outputs a string of Pandoc inlines that
14888 tries to render it as far as possible using unicode characters,
14889 lapsing into literal TeX when needed.
14890 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
14891 and Docbook, if no other method for displaying math in HTML is
14892 specified. Enclosing $'s are no longer printed by default.
14893 + By default, math is put inside `<span class="math">`. This way it can be
14894 distinguished from the surrounding text, e.g. put in a different
14895 font.
14897 * New --gladtex and --mimetex options for display of math in HTML:
14899 + If --gladtex is specified, math is output between `<eq>` tags, so
14900 it can be processed by gladTeX.
14901 + If --mimetex is specified, math is put in `<img>` tags with a link
14902 to the mimetex CGI script (or any other script that takes TeX math
14903 as input and outputs an image). The URL of the script may be
14904 specified, but defaults to /cgi-bin/mimetex.cgi.
14905 + HTMLMathMethod structure in WriterOptions keeps track of how to
14906 display math in HTML output.
14907 + Updated README with a description of the four options for displaying
14908 math in HTML.
14910 * HTML reader:
14912 + Fixed bug: parser for minimized attributes should not swallow
14913 trailing spaces.
14914 + Simplified HTML attribute parsing.
14915 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
14916 longer needed. `<pre>` suffices. All HTML tags in the code block
14917 (e.g. for syntax highlighting) are skipped, because they are not
14918 portable to other output formats. A `<code>...</code>` block not
14919 surrounded by `<pre>` now counts as inline HTML, not a code block.
14920 + Remove just one leading and one trailing newline from contents of
14921 `<pre>...</pre>` in codeBlock parser.
14923 * Markdown reader:
14925 + Removed support for box-style block quotes.
14926 + Require space before title in links and references.
14927 This fixes a bug in parsing URLs like http://silly/url(withparen).
14928 + Improved and simplified setextHeader parser.
14929 + Fixed logic in smart quote parsing, adding some needed 'try'
14930 statements.
14931 + Fixed smart quote parsing so that unicode characters 8216 and 8217
14932 are recognized as single quotes, and 8220 and 8221 as double quotes.
14934 * RST reader:
14936 + Fixed bug in parsing of code blocks. Previously a full tab indent
14937 was required, but RST allows code to be indented any amount.
14938 Resolves Issue #27.
14939 + Allow field lists to be indented.
14940 + Parse the contents of field lists instead of treating as a raw string.
14941 + Represent field lists as definition lists instead of blockquotes.
14942 + Fixed bug in which metadata would be overridden if the document
14943 contained multiple field lists.
14944 + Parse fields associated with '.. image::' blocks, and use 'alt'
14945 field, if given, for image alt and title attributes.
14947 * LaTeX reader:
14949 + Modified specialChar so that '"' characters are parsed.
14950 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
14952 * HTML writer:
14954 + Changes in handling of math (see above).
14955 + Don't produce HTML for table of contents if there are
14956 no headers. (This would be an empty list, which is invalid XHTML.)
14958 * Markdown writer:
14960 + Don't print title attribute if title is empty. (This differs from
14961 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
14962 Gruber has indicated that he prefers this behavior.) Adjusted test
14963 suite accordingly.
14964 + Fixed incorrect line wrapping in paragraphs including hard line
14965 breaks. Resolves Issue #25.
14966 + Fixed bug in markdown writer: If an ordered list item began with
14967 a marker greater than 3 characters in width, and the item took more
14968 than one line, it would appear on the line after the list marker,
14969 e.g.:
14971 (12)
14972 My list item.
14973 Multiline.
14975 Now it works as follows:
14977 (12) My list item.
14978 Multiline.
14980 * RST writer
14982 + Fixed bug in RST writer's handling of ordered lists. Previously,
14983 list items with multiple lines would not always line up with
14984 single-line list items. Now, list items are nested the length of
14985 the list marker + 1. This looks better and ensures that list items
14986 all line up. (Note that list markers are padded to the length of
14987 the longest list marker in the series.)
14988 + Use 3-space indent for unordered lists.
14989 + If label for a link reference contains a colon, surround it by `
14990 signs so it won't be interpreted as the end of the link label.
14992 * LaTeX writer:
14994 + Cleaner output for footnotes. Footnotes now always begin on a new
14995 line, and the final } is on a line by itself only when it needs to
14996 be (i.e. only when the note ends with a Verbatim environment).
14997 + Added writer options to state, so state doesn't need to be passed as
14998 a parameter.
14999 + Text wrapping now provided, using wrapTeXIfNeeded.
15001 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
15002 (thanks to Idris Samawi Hamid for suggestions).
15004 + PrettyPrint module now used for output.
15005 + Writer options are now in state, so they don't have to be passed as
15006 a parameter.
15007 + Text wrapping now provided, using wrapTeXIfNeeded.
15008 + Better treatment of footnotes: footnotes are always on lines by
15009 themselves, and the final } is on a line by itself only when
15010 it needs to be (after \stoptyping).
15011 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
15012 depending on whether --number-sections option is selected.
15013 + Extra blank line inserted after \stopitemize
15014 + Use new, "official" definition of blockquote environment. Also, use
15015 blank line after \startblockquote to balance blank line at the end.
15016 + Both itemized and enumerated lists are now generated using
15017 \start-stopitemize, with appropriate options. Removed definitions
15018 of ltxenum and ltxitem, which are no longer needed. Provided
15019 defaults for itemized lists in the preamble. State keeps track of
15020 ordered list level, so that when default numbering is specified,
15021 the appropriate scheme can be used.
15022 + Changed \useurl to \useURL.
15023 + Changed link color from red to blue.
15024 + Use \subsubsubsubsection etc., since these are supported
15025 (up to at least sub x 5).
15027 * Text.Pandoc.Shared:
15029 + Save and restore position in parseFromString, so that accurate
15030 error messages can be given.
15031 + Improved efficiency of romanNumeral parser.
15032 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
15033 that footnotes occur on lines by themselves (to make them
15034 easier to see and move) and do not screw up line wrapping.
15036 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
15037 if present. Windows Notepad and other applications insert a
15038 BOM at the beginning of a UTF8 file.
15040 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
15041 addition to "\r\n" and '\n').
15043 * Added a writer option for wrapped text and a command-line option
15044 '--no-wrap', which disables text wrapping and minimizes whitespace
15045 in HTML. (Resolves Issue #26.)
15047 + Added support for '--no-wrap' to Main.hs.
15048 + Added wrapIfNeeded function to Text.Pandoc.Shared.
15049 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
15050 Markdown writers.
15051 + Added render and renderFragment helpers to HTML writer.
15053 * Modified html2markdown to run tidy only if the HTML cannot be
15054 parsed. Previously html2markdown piped all input through tidy
15055 before passing it to pandoc. This caused problems on certain pages
15056 (e.g. http://daringfireball.com/markdown) which have well-formed
15057 XHTML that causes tidy to choke. The solution is to pipe through
15058 tidy only if pandoc cannot parse the input by itself. This means
15059 that a temp file is now always used, even when input comes from a
15060 local file or standard input.
15062 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
15063 Text.Pandoc library.
15065 * pandoc.cabal:
15067 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
15068 6.8, pretty and containers must be added to Build-Depends, and it
15069 is desirable to use the -O2 compiler option.) Cabal configurations
15070 allows one to select options depending on the compiler version.
15071 For GHC 6.6, the splitBase option can be disabled.
15072 + pandoc.cabal.ghc66 is provided for users with older versions of
15073 Cabal, which do not support configurations.
15074 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
15075 '--enable-(executable|library)-profiling' is specified. Updated
15076 PROFILING instructions accordingly.
15078 * Makefile:
15080 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
15081 is copied to pandoc.cabal, and the old pandoc.cabal is copied
15082 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
15083 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
15084 will work properly with either GHC 6.6 or 6.8.
15085 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
15086 This is where current versions of Cabal put it.
15087 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
15088 + Removed dependency of templates on ./templates, which is circular
15089 now that templates is a subdirectory of the top-level.
15091 * MacPorts Portfile:
15093 + Modified to install the pandoc library in addition to programs.
15094 + Installation must be done manually rather than using Makefile's
15095 install-all.
15096 + Note that the library must be registered in the activate phase,
15097 after the library files have been copied out of the destroot.
15098 Cabal generates a 'register.sh' script that will do this.
15100 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
15101 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
15102 Closes: #445235
15104 * debian/rules: Converted to UTF-8.
15106 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
15108 * Updated ASCIIMathML.js to latest version.
15110 * Directory structure:
15112 + Moved everything from src into the top-level directory.
15113 + Changed references to source directory in Makefile and
15114 pandoc.cabal.*.
15115 + Moved ASCIIMathML.js, headers, and ui into templates directory.
15116 + Modified fillTemplates.pl to reflect new paths.
15118 [ Recai Oktaş ]
15120 * Makefile: Fixed the issue of having two copies of the library
15121 documentation under some usage scenarios.
15123 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
15124 and GHC_PKG configurable through the environment, to support
15125 unusual ghc installations. For example:
15126 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
15128 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
15130pandoc (0.44) unstable; urgency=low
15132 [ John MacFarlane ]
15134 * Fixed bug in HTML writer: when --toc was used, anchors were put around
15135 headers, which is invalid XHTML (block content within inline element).
15136 Now the anchors are put inside the header tags. Resolves Issue #23.
15138 * Added xmlns attribute to html element in html writer tests.
15139 This attribute is added by more recent versions of the
15140 xhtml library (>= 3000), and is required for valid XHTML.
15142 [ Recai Oktaş ]
15144 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
15145 command instead of 'runhaskell', which, on some platforms (such as s390,
15146 alpha, m68k), throws the following error:
15148 runhaskell Setup.hs configure --prefix=/usr
15149 ghc-6.6.1: not built for interactive use
15151 This causes a serious FTBFS bug. Closes: #440668.
15153 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
15155pandoc (0.43) unstable; urgency=low
15157 [ John MacFarlane ]
15159 * The focus of this release is performance. The markdown parser
15160 is about five times faster than in 0.42, based on benchmarks
15161 with the TextMate manual.
15163 * Main.hs: Replaced CRFilter and tabFilter with single function
15164 tabFilter, which operates on the whole string rather than breaking
15165 it into lines, and handles dos-style line-endings as well as tabs.
15167 * Added separate LaTeX reader and native reader tests; removed
15168 round-trip tests.
15170 * Text.Pandoc.Shared:
15172 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
15173 + General code cleanup (to elimante warnings when compiling with -Wall.)
15174 + Added 'wrapped' function, which helps wrap text into paragraphs,
15175 using the prettyprinting library.
15176 + Rewrote charsInBalanced and charsInBalanced'.
15177 - Documented restriction: open and close must be distinct characters.
15178 - Rearranged options for greater efficiency.
15179 - Bug fix: Changed inner call to charsInBalanced inside
15180 charsInBalanced' to charsInBalanced'.
15181 + anyLine now requires that the line end with a newline (not eof).
15182 This is a harmless assumption, since we always add newlines to the
15183 end of a block before parsing with anyLine, and it yields a 10% speed
15184 boost.
15185 + Removed unnecessary 'try' in anyLine.
15186 + Removed unneeded 'try' from romanNumeral parser.
15187 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
15188 + Removed unneeded 'try' in parseFromString.
15189 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
15190 like 'string'.)
15191 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
15192 'try' is not automatically applied to the 'end' parser. Added
15193 'try' in calls to 'enclosed' where needed. Slight speed increase.
15195 * Writers:
15197 + Replaced individual wrapping routines in RST, Man, and Markdown
15198 writers with 'wrapped' from Text.Pandoc.Shared.
15199 + Rewrote LaTeX writer to use the prettyprinting library,
15200 so we get word wrapping, etc.
15201 + Modified latex writer tests for new latex writer using prettyprinter.
15202 + Fixed bug in LaTeX writer: autolinks would not cause
15203 '\usepackage{url}' to be put in the document header. Also, changes
15204 to state in enumerated list items would be overwritten.
15205 + In Markdown writer, escape paragraphs that begin with ordered list
15206 markers, so they don't get interpreted as ordered lists.
15208 * Text.Pandoc.Reades.LaTeX:
15210 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
15211 numeral after "enum" in "setcounter" would consist entirely of
15212 "i"s. 'enumiv' is legitimate.
15213 + LaTeX command and environment names can't contain numbers.
15214 + Rearranged order of parsers in inline for slight speed improvement.
15215 + Added '`' to special characters and 'unescapedChar'.
15217 * Text.Pandoc.Readers.RST:
15219 + Removed unneeded try's in RST reader; also minor code cleanup.
15220 + Removed tabchar.
15221 + Rearranged parsers in inline (doubled speed).
15223 * Text.Pandoc.Readers.Markdown:
15225 + Skip notes parsing if running in strict mode. (This yields a nice
15226 speed improvement in strict mode.)
15227 + Simplify autolink parsing code, using Network.URI to test for
15228 URIs. Added dependency on network library to debian/control and
15229 pandoc.cabal.
15230 + More perspicuous definition of nonindentSpaces.
15231 + Removed unneeded 'try' in 'rawLine'.
15232 + Combined linebreak and whitespace into a new whitespace parser, to
15233 avoid unnecessary reparsing of space characters.
15234 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
15235 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
15236 + Use lookAhead in parsers for setext headers and definition lists
15237 to see if the next line begins appropriately; if not, don't waste
15238 any more time parsing.
15239 + Don't require blank lines after code block. (It's sufficient to
15240 end code block with a nonindented line.)
15241 + Changed definition of 'emph': italics with '_' must not
15242 be followed by an alphanumeric character. This is to help
15243 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
15244 `[LC<em>TYPE]:my</em>type`.
15245 + Improved Markdown.pl-compatibility in referenceLink: the two parts
15246 of a reference-style link may be separated by one space, but not
15247 more... [a] [link], [not] [a link].
15248 + Fixed markdown inline code parsing so it better accords with
15249 Markdown.pl: the marker for the end of the code section is a clump
15250 of the same number of `'s with which the section began, followed
15251 by a non-` character. So, for example,
15252 ` h ``` i ` -> `<code>h ``` i</code>`.
15253 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
15254 rules are slightly different.
15255 + Rewrote 'para' for greater efficiency.
15256 + Rewrote link parsers for greater efficiency.
15257 + Removed redundant 'referenceLink' in definition of inline (it's
15258 already in 'link').
15259 + Refactored escapeChar so it doesn't need 'try'.
15260 + Refactored hrule for performance in Markdown reader.
15261 + More intelligent rearranging of 'inline' so that most frequently
15262 used parsers are tried first.
15263 + Removed tabchar parser, as whitespace handles tabs anyway.
15265 * Text.Pandoc.CharacterReferences:
15267 + Refactored.
15268 + Removed unnecessary 'try's for a speed improvement.
15269 + Removed unnecessary '&' and ';' from the entity table.
15271 * Build process:
15273 + Makefile: Get VERSION from cabal file, not Main.hs.
15274 + Modified MacPorts Portfile:
15275 - Depend on haddock
15276 - Build and install libraries and library documentation in
15277 addition to pandoc executable
15278 - Added template item for md5 sum in Portfile.in.
15279 - Incorporated changes from MacPorts repository (r28278).
15280 + FreeBSD port: Don't try to generate distinfo in Makefile.
15281 It can be made using 'make makesum' in FreeBSD.
15282 + Make both freebsd and macports targets depend on tarball.
15284 * Website and documentation:
15286 + Updated INSTALL instructions.
15287 + Added pandocwiki demo to website.
15288 + Removed local references to Portfile, since pandoc is now in the
15289 MacPorts repository.
15291 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
15293pandoc (0.42) unstable; urgency=low
15295 [ John MacFarlane ]
15297 * Main.hs: Use utf8 conversion on the extra files loaded with
15298 the -H, -C, -B, and -A options. This fixes problems with unicode
15299 characters in these files.
15301 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
15302 Text.Pandoc.Readers.HTML and without it we get a linking error when
15303 using the library.
15305 * Markdown reader:
15307 + Added new rule for enhanced markdown ordered lists: if the list
15308 marker is a capital letter followed by a period (including a
15309 single-letter capital roman numeral), then it must be followed by
15310 at least two spaces. The point of this is to avoid accidentally
15311 treating people's initials as list markers: a paragraph might begin,
15312 "B. Russell was an English philosopher," and this shouldn't be
15313 treated as a list. Documented change in README.
15314 + Blocks that start with "p. " and a digit are no longer treated
15315 as ordered lists (it's a page number).
15316 + Added a needed 'try' to listItem.
15317 + Removed check for a following setext header in endline.
15318 A full test is too inefficient (doubles benchmark time), and the
15319 substitute we had before is not 100% accurate.
15320 + Don't use Code elements for autolinks if --strict specified.
15322 * LaTeX writer: When a footnote ends with a Verbatim environment, the
15323 close } of the footnote cannot occur on the same line or an error occurs.
15324 Fixed this by adding a newline before the closing } of every footnote.
15326 * HTML writer:
15327 + Removed incorrect "{}" around style information in HTML tables.
15328 Column widths now work properly in HTML.
15329 + If --strict option is specified (and --toc is not), don't include
15330 identifiers in headers, for better Markdown compatibility.
15332 * Build process:
15334 + Separated $(web_dest) and website targets.
15335 + In website, index.txt is now constructed from template index.txt.in.
15336 + Added freebsd target to Markefile. This creates the freebsd Makefile
15337 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
15338 from the repository.
15339 + Added macport target to Makefile. Portfile is built from template
15340 Portfile.in.
15341 + Removed OSX package targets. (Too many difficulties involving
15342 dependencies on dynamic libraries.)
15343 + More complete INSTALL instructions for all architectures.
15345 * Website:
15346 + Added a programming demo, pandocwiki.
15348 [ Recai Oktaş ]
15350 * Do not forget to close pandoc's ITP. Closes: #391666
15352 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
15354pandoc (0.41) unstable; urgency=low
15356 [ John MacFarlane ]
15358 * Fixed bugs in HTML reader:
15359 + Skip material at end *only if* `</html>` is present (previously,
15360 only part of the document would be parsed if an error was
15361 found; now a proper error message is given).
15362 + Added new constant eitherBlockOrInline with elements that may
15363 count either as block-level or as inline. Modified isInline and
15364 isBlock to take this into account.
15365 + Modified rawHtmlBlock to accept any tag (even an inline tag):
15366 this is innocuous, because rawHtmlBlock is tried only if a regular
15367 inline element can't be parsed.
15368 + Added a necessary 'try' in definition of 'para'.
15370 * Fixed bug in markdown ordered list parsing. The problem was that
15371 anyOrderedListStart did not check for a space following the
15372 ordered list marker. So in 'A.B. 2007' the parser would be
15373 expecting a list item, but would not find one, causing an error.
15374 Fixed a similar bug in the RST reader. Resolves Issue #22.
15376 * Refactored RST and Markdown readers using parseFromString.
15378 * LaTeX reader will now skip anything after \end{document}.
15380 * Fixed blockquote output in markdown writer: previously, block
15381 quotes in indented contexts would be indented only in the first
15382 line.
15384 * Added note to INSTALL about variations in versions of the xhtml
15385 library that can lead to failed tests (thanks to Leif LeBaron).
15387 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
15389pandoc (0.4) unstable; urgency=low
15391 [ John MacFarlane ]
15393 * Added two new output formats: groff man pages and ConTeXt. By
15394 default, output files with extensions ".ctx" and ".context" are
15395 assumed to be ConTeXt, and output files with single-digit extensions
15396 are assumed to be man pages.
15398 * Enhanced ordered lists (documented in README, under Lists):
15399 + The OrderedList block element now stores information about
15400 list number style, list number delimiter, and starting number.
15401 + The readers parse this information when possible.
15402 + The writers use this information to style ordered lists.
15403 + The enhancement can be disabled using the --strict option.
15405 * Added support for tables (with a new Table block element). Two kinds
15406 of tables are supported: a simple table with one-line rows, and a
15407 more complex variety with multiline rows. All output formats are
15408 supported, but only markdown tables are parsed at the moment. The
15409 syntax is documented in README.
15411 * Added support for definition lists (with a new DefinitionList block
15412 element). All output and input formats are supported. The syntax is
15413 documented in README.
15415 * Added support for superscripts and subscripts (with new Superscript
15416 and Subscript inline elements). All input and output
15417 formats. The syntax is documented in README.
15419 * Added support for strikeout (with a new Strikeout inline element).
15420 All input and output formats are supported. Thanks to Bradley Kuhn,
15421 who contributed a patch. The syntax is documented in README. Resolves
15422 Issue #18.
15424 * Added a --toc|--table-of-contents option. This causes an automatically
15425 generated table of contents (or an instruction that creates one) to
15426 be inserted at the beginning of the document. Not supported in S5,
15427 DocBook, or man page writers.
15429 * Modified the -m|--asciimathml option:
15431 + If an optional URL argument is provided, a link is inserted
15432 instead of the contents of the ASCIIMathML.js script.
15433 + Nothing is inserted unless the document actually contains
15434 LaTeX math.
15436 * Removed Blank block element as unnecessary.
15438 * Removed Key and Note blocks from the Pandoc data structure. All
15439 links are now stored as explicit links, and note contents are
15440 stored with the (inline) notes.
15442 + All link Targets are now explicit (URL, title) pairs; there
15443 is no longer a 'Ref' target.
15444 + Markdown and RST parsers now need to extract data from key and
15445 note blocks and insert them into the relevant inline elements.
15446 Other parsers have been simplified, since there is no longer any need
15447 to construct separate key and note blocks.
15448 + Markdown, RST, and HTML writers need to construct lists of
15449 notes; Markdown and RST writers need to construct lists of link
15450 references (when the --reference-links option is specified); and
15451 the RST writer needs to construct a list of image substitution
15452 references. All writers have been rewritten to use the State monad
15453 when state is required.
15454 + Several functions (generateReference, keyTable,
15455 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
15456 used by them) have been removed from Text.Pandoc.Shared, since
15457 they are no longer needed. New functions and data structures
15458 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
15459 added. The functions inTags, selfClosingTag, inTagsSimple, and
15460 inTagsIndented have been moved to the DocBook writer, since that
15461 is now the only module that uses them. NoteTable is now exported
15462 in Text.Pandoc.Shared.
15463 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
15464 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
15465 + Added writerNotes and writerReferenceLinks to WriterOptions.
15467 * Added Text.Pandoc module that exports basic readers, writers,
15468 definitions, and utility functions. This should export everything
15469 needed for most uses of Pandoc libraries. The haddock documentation
15470 includes a short example program.
15472 * Text.Pandoc.ASCIIMathML is no longer an exported module.
15474 * Added Text.Pandoc.Blocks module to help in printing markdown
15475 and RST tables. This module provides functions for working with
15476 fixed-width blocks of text--e.g., placing them side by side, as
15477 in a table row.
15479 * Refactored to avoid reliance on Haskell's Text.Regex library, which
15480 (a) is slow, and (b) does not properly handle unicode. This fixed
15481 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
15483 + Replaced 'gsub' with a general list function 'substitute'
15484 that does not rely on Text.Regex.
15485 + Rewrote extractTagType in HTML reader so that it doesn't use
15486 regexs.
15487 + In Markdown reader, replaced email regex test with a custom email
15488 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
15489 with a custom function isSelfClosingTag.
15490 + Modified Docbook writer so that it doesn't rely on Text.Regex for
15491 detecting 'mailto' links.
15492 + Removed escapePreservingRegex and reamped entity-handling
15493 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
15494 avoid reliance on Text.Regex (see below on character reference
15495 handling changes).
15497 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
15499 * Changed handling of XML entities. Entities are now parsed (and unicode
15500 characters returned) in the Markdown and HTML readers, rather than being
15501 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
15502 instead of entities for characters above 128. This makes the HTML and
15503 DocBook output much more readable and more easily editable.
15505 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
15506 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
15507 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
15508 Moved both functions to Text.Pandoc.Writers.Docbook.
15509 + Added characterReference parser to Text.Pandoc.CharacterReferences.
15510 This parses a string and return a unicode character.
15511 + Rewrote decodeCharacterReferences to use the new parser instead of
15512 Text.Regex.
15513 + Added new charRef parser for Markdown and HTML, which replaces the
15514 old 'entity' parser. Added '&' as a special character in Markdown reader.
15515 + Modified HTML and Markdown readers to call decodeEntities on all raw
15516 strings (e.g. authors, dates, link titles), to ensure that no
15517 unprocessed entities are included in the native representation of
15518 the document. (In the HTML reader, most of this work is done by a
15519 change in extractAttributeName.)
15520 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
15521 since a unicode non-breaking space is impossible to distinguish visually
15522 from a regular space. (Resolves Issue #3.)
15523 + Removed encodeEntitiesNumerical.
15524 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
15525 slight performance boost over the old association list.
15526 + Removed unneeded decodeEntities from 'str' parser in HTML and
15527 Markdown readers.
15529 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
15530 fromUTF8, for clarity.
15532 * Replaced old haskell98 module names replaced by hierarchical module
15533 names, e.g. List by Data.List. Removed haskell98 from dependencies
15534 in pandoc.cabal, and added mtl (needed for state monad). Substituted
15535 xhtml for html.
15537 * Refactored and cleaned up character escaping in writers, using
15538 backslashEscapes and escapeStringUsing functions.
15540 * Instead of adding "\n\n" to the end of an input string in Main.hs,
15541 this is now done in the readers. This makes the libraries behave
15542 the way you'd expect from the pandoc program. Resolves Issue #10.
15544 * URLs and email addresses in autolinks are now typeset as Code.
15546 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
15547 doesn't display the whole output unless there's a line ending.
15549 * Major code cleanup in all modules, for greater consistency, concision,
15550 and readability.
15552 * HTML reader:
15554 + Fixed several bugs (extractTagType, attribute parsing).
15555 + Remove Null blocks in lists of blocks when possible.
15556 + Allow HTML comments as raw HTML inline.
15558 * Markdown reader:
15560 + Ordered list items may no longer begin with uppercase letters, or
15561 letters greater than 'n'. (This prevents first initials and page
15562 reference, e.g. 'p. 400', from being parsed as beginning lists.)
15563 Also, numbers beginning list items may no longer end with ')',
15564 which is now allowed only after letters. Note: These changes
15565 may cause documents to be parsed differently. Users should take
15566 care in upgrading.
15567 + Changed autoLink parsing to conform better to Markdown.pl's
15568 behavior. `<google.com>` is not treated as a link, but
15569 `<http://google.com>`, `<ftp://google.com>`, and
15570 `<mailto:google@google.com>` are.
15571 + Cleaned up handling of embedded quotes in link titles. Now these are
15572 stored as a '"' character, not as '&quot;'.
15573 + Use lookAhead parser for the 'first pass' (looking for reference keys),
15574 instead of parsing normally, then using setInput to reset input. This
15575 yields a slight performance boost.
15576 + Fixed several bugs in smart quote recognition.
15577 + Fixed bug in indentSpaces (which didn't properly handle
15578 cases with mixed spaces and tabs).
15579 + Consolidated 'text', 'special', and 'inline' into 'inline'.
15580 + Fixed bug which allowed URL and title to be separated by multiple blank
15581 lines in links and reference keys. They can be on separate lines but
15582 can't have blank lines between them.
15583 + Correctly handle bracketed text inside inline footnotes and links,using
15584 new function inlinesInBalanced. Resolves Issue #14.
15585 + Fixed bug in footnotes: links in footnotes were not being
15586 processed. Solution: three-stage parse. First, get all the
15587 reference keys and add information to state. Next, get all the
15588 notes and add information to state. (Reference keys may be needed
15589 at this stage.) Finally, parse everything else.
15590 + Replaced named constants like 'emphStart' with literals.
15591 + Removed an extra occurrence of escapedChar in definition of inline.
15593 * RST reader:
15595 + Allow the URI in a RST hyperlink target to start on the line
15596 after the reference key.
15597 + Added 'try' in front of 'string', where needed, or used a different
15598 parser. This fixes a bug where ````` would not be correctly parsed as
15599 a verbatim `.
15600 + Fixed slow performance in parsing inline literals in RST reader. The
15601 problem was that ``#`` was seen by 'inline' as a potential link or image.
15602 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
15603 Resolves Issue #8.
15604 + Use lookAhead instead of getInput/setInput in RST reader. Removed
15605 unneeded getState call, since lookAhead automatically saves and
15606 restores the parser state.
15607 + Allow hyperlink target URIs to be split over multiple lines, and
15608 to start on the line after the reference. Resolves Issue #7.
15609 + Fixed handling of autolinks.
15611 * LaTeX reader:
15613 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
15614 for clarity.
15615 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
15616 caret is \^{}, not \^ as before.
15617 + Added parsing for \url.
15618 + Parse \texttt{} as code, provided there's nothing fancy inside.
15620 * HTML writer:
15622 + Modified HTML writer to use the Text.XHtml library. This results
15623 in cleaner, faster code, and it makes it easier to use Pandoc in
15624 other projects, like wikis, which use Text.XHtml. Two functions are
15625 now provided, writeHtml and writeHtmlString: the former outputs an
15626 Html structure, the latter a rendered string. The S5 writer is also
15627 changed, in parallel ways (writeS5, writeS5String).
15628 + The Html header is now written programmatically, so it has been
15629 removed from the 'headers' directory. The S5 header is still
15630 needed, but the doctype and some of the meta declarations have
15631 been removed, since they are written programmatically. This change
15632 introduces a new dependency on the xhtml package.
15633 + Fixed two bugs in email obfuscation involving improper escaping
15634 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
15635 Issue #9.
15636 + Fixed another bug in email obfuscation: If the text to be obfuscated
15637 contains an entity, this needs to be decoded before obfuscation.
15638 Thanks to thsutton for the patch. Resolves Issue #15.
15639 + Changed the way the backlink is displayed in HTML footnotes.
15640 Instead of appearing on a line by itself, it now generally
15641 appears on the last line of the note. (Exception: when the
15642 note does not end with a Plain or Para block.) This saves space
15643 and looks better.
15644 + Added automatic unique identifiers to headers:
15645 - The identifier is derived from the header via a scheme
15646 documented in README.
15647 - WriterState now includes a list of header identifiers and a table
15648 of contents in addition to notes.
15649 - The function uniqueIdentifiers creates a list of unique identifiers
15650 from a list of inline lists (e.g. headers).
15651 - This list is part of WriterState and gets consumed by blockToHtml
15652 each time a header is encountered.
15653 + Include CSS for .strikethrough class in header only if strikethrough
15654 text appears in the document.
15655 + If the 'strict' option is specified, elements that do not appear in
15656 standard markdown (like definition lists) are passed through as
15657 raw HTML.
15658 + Simplified treatment of autolinks, using pattern matching instead of
15659 conditionals.
15661 * Markdown writer:
15663 + Links in markdown output are now printed as inline links by default,
15664 rather than reference links. A --reference-links option has been added
15665 that forces links to be printed as reference links. Resolves Issue #4.
15666 + Use autolinks when possible. Instead of `[site.com](site.com)`,
15667 use `<site.com>`.
15669 * LaTeX writer:
15671 + Rewrote to use the State monad. The preamble now includes only those
15672 packages that are actually required, given the document's content.
15673 Thus, for example, if strikeout is not used, ulem is not required.
15674 Modified LaTeXHeader accordingly.
15675 + Modified LaTeX writer to insert '\,' between consecutive quotes.
15676 + Removed unused function tableRowColumnWidths.
15677 + Simplified code for escaping special characters.
15678 + Leave extra blank line after \maketitle.
15679 + Include empty '\author{}' when no author specified to avoid LaTeX
15680 errors.
15681 + Include fancyvrb code in header only if needed -- that is, only
15682 if there is actually code in a footnote.
15683 + Use \url{} for autolinks.
15684 + Include [mathletters] option in ucs package, so that basic unicode
15685 Greek letters will work correctly.
15687 * RST writer: Force blank line before lists, so that sublists will
15688 be handled correctly.
15690 * Docbook writer: Fixed a bug: email links with text, like
15691 [foo](me@bar.baz), were being incorrectly treated as autolinks.
15693 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
15694 Text.Pandoc.Shared.
15696 * Text.Pandoc.Shared:
15698 + Added defaultWriterOptions.
15699 + Added writerTableOfContents to WriterOptions.
15700 + Added writerIgnoreNotes option to WriterOptions. This is needed
15701 for processing header blocks for a table of contents, since notes on
15702 headers should not appear in the TOC.
15703 + Added prettyprinting for native Table format.
15704 + Removed some unneeded imports.
15705 + Moved escape and nullBlock parsers from
15706 Text.ParserCombinators.Pandoc, since the latter is for
15707 general-purpose parsers that don't depend on Text.Pandoc.Definition.
15708 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
15709 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
15710 writer, because HTML writer now uses these in constructing a table
15711 of contents.
15712 + Added clauses for new inline elements (Strikeout, Superscript,
15713 Subscript) to refsMatch.
15714 + Removed backslashEscape; added new functions escapeStringUsing and
15715 backslashEscapes.
15716 + Moved failIfStrict from markdown reader, since it is now used also
15717 by the HTML reader.
15718 + Added a 'try' to the definition of indentSpaces.
15719 + In definition of 'reference', added check to make sure it's not a note
15720 reference.
15721 + Added functions: camelCaseToHyphenated, toRomanNumeral,
15722 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
15723 charsInBalanced', withHorizDisplacement, romanNumeral
15724 + Fixed a bug in the anyLine parser. Previously it would parse an empty
15725 string "", but it should fail on an empty string, or we get an error
15726 when it is used inside "many" combinators.
15727 + Removed followedBy' parser, replacing it with the lookAhead parser from
15728 Parsec.
15729 + Added some needed 'try's before multicharacter parsers, especially in
15730 'option' contexts.
15731 + Removed the 'try' from the 'end' parser in 'enclosed', so that
15732 'enclosed' behaves like 'option', 'manyTill', etc.
15733 + Added lineClump parser, which parses a raw line block up to and
15734 including any following blank lines.
15735 + Renamed parseFromStr to parseFromString.
15736 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
15737 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
15738 in calling code.
15739 + Removed unneeded 'try' in blanklines.
15740 + Removed endsWith function and rewrote calling functions to use
15741 isSuffixOf instead.
15742 + Added >>~ combinator.
15743 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
15744 Space.
15746 * Refactored runtests.pl; added separate tests for tables.
15748 * Shell scripts:
15750 + Added -asxhtml flag to tidy in html2markdown. This will
15751 perhaps help the parser, which expects closing tags.
15752 + Modified markdown2pdf to run pdflatex a second time if --toc or
15753 --table-of-contents was specified; otherwise the table of
15754 contents won't appear.
15755 + Modified markdown2pdf to print a helpful message if the 'ulem'
15756 LaTeX package is required and not found.
15758 * Changes to build process:
15760 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
15761 is now required.
15762 + Removed cabalize and Pandoc.cabal.in. The repository now contains
15763 pandoc.cabal itself.
15764 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
15765 likes the cabal file to have the same name as the tarball.
15766 + Expanded and revised the package description in pandoc.cabal.
15767 Revised the package synopsis.
15768 + The tarball built by 'make tarball' now contains files built from
15769 templates (including man pages and shell scripts), so pandoc can
15770 be built directly using Cabal tools, without preprocessing.
15771 + Executable binaries are now stripped before installing.
15772 + Man pages are now generated from markdown sources, using pandoc's
15773 man page writer.
15774 + Use HTML version of README (instead of RTF) in Mac OS X installer.
15775 + Instead of testing for the existence of a pandoc symlink in build-exec,
15776 use ln -f.
15778 * Documentation:
15780 + Updated README and man pages with information on new features.
15781 + Updated INSTALL instructions with some useful clarifications and
15782 links.
15783 + Updated web content.
15785 * Added FreeBSD port.
15787 [ Recai Oktaş ]
15789 * debian/control:
15791 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
15792 libghc6-xhtml-dev. Removed libghc6-html-dev.
15793 + Suggest texlive-latex-recommended | tetex-extra instead of
15794 tetex-bin. This brings in fancyvrb and unicode support.
15796 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
15798pandoc (0.3) unstable; urgency=low
15800 [ John MacFarlane ]
15802 * Changes in pandoc options:
15804 + Allow options to follow or precede arguments.
15805 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
15806 + Added '--strict' option.
15807 + Added '-o/--output' option.
15808 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
15809 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
15810 error conditions. This is helpful for writing wrappers.
15811 + Added copyright message to '-v' output, modeled after FSF messages.
15812 + Reformatted usage message so that it doesn't wrap illegibly.
15813 + Removed extra blanks after '-h' and '-D' output.
15815 * Added docbook writer.
15817 * Added implicit setting of default input and output format based
15818 on input and output filename extensions. These defaults are
15819 overridden if explicit input and output formats are specified using
15820 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
15821 and README.
15823 * Allow ordered list items to begin with (single) letters, as well
15824 as numbers. The list item marker may now be terminated either by
15825 '.' or by ')'. This extension to standard markdown is documented
15826 in README.
15828 * Revised footnote syntax. (See README for full details.) The
15829 '[^1]' format now standard in markdown extensions is supported,
15830 as are inline footnotes with this syntax: `^[My note.]`.
15831 The earlier footnote syntax `^(1)` is no longer supported.
15833 * Improved HTML representation of footnotes. All footnotes
15834 are now auto-numbered and appear in an ordered list at the
15835 end of the HTML document. Since the default appearance is now
15836 acceptable, the old footnote styles have been removed from the
15837 HTML header.
15839 * Bug fixes:
15841 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
15842 These readers ran 'runParser' on processed chunks of text to handle
15843 embedded block lists in lists and quotation blocks. But then
15844 any changes made to the parser state in these chunks was lost,
15845 as the state is local to the parser. So, for example, footnotes
15846 didn't work in quotes or list items. The fix: instead of calling
15847 runParser on some raw text, use setInput to make it the input, then
15848 parse it, then use setInput to restore the input to what it was
15849 before. This is shorter and more elegant, and it fixes the problem.
15850 + Fixed bug in notFollowedBy' combinator (adding 'try' before
15851 'parser'). Adjusted code that uses this combinator accordingly.
15852 + Fixed bug in RTF writer that caused improper indentation on
15853 footnotes occurring in indented blocks like lists.
15854 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
15855 and date are parsed correctly. Everything else in the preamble
15856 is skipped.
15857 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
15858 line to count as escaped whitespace.
15859 + Modified LaTeX reader to produce inline links rather than reference
15860 links. Otherwise, links in footnotes aren't handled properly.
15861 + Fixed handling of titles in links in Markdown reader, so that
15862 embedded quotation marks are now handled properly.
15863 + Fixed Markdown reader's handling of embedded brackets in links.
15864 + Fixed Markdown reader so that it only parses bracketed material
15865 as a reference link if there is actually a corresponding key.
15866 + Revised inline code parsing in Markdown reader to conform to
15867 markdown standard. Now any number of `s can begin inline code,
15868 which will end with the same number of `s. For example, to
15869 have two backticks as code, write ``` `` ```. Modified Markdown
15870 writer accordingly.
15871 + Fixed bug in text-wrapping routine in Markdown and RST writers.
15872 Now LineBreaks no longer cause wrapping problems.
15873 + Supported hexadecimal numerical entity references as well as
15874 decimal ones.
15875 + Fixed bug in Markdown reader's handling of underscores and other
15876 inline formatting markers inside reference labels: for example,
15877 in '[A_B]: /url/a_b', the material between underscores was being
15878 parsed as emphasized inlines.
15879 + Changed Markdown reader's handling of backslash escapes so that
15880 only non-alphanumeric characters can be escaped. Strict mode
15881 follows Markdown.pl in only allowing a select group of punctuation
15882 characters to be escaped.
15883 + Modified HTML reader to skip a newline following a `<br>` tag.
15884 Otherwise the newline will be treated as a space at the beginning
15885 of the next line.
15887 * Made handling of code blocks more consistent. Previously, some
15888 readers allowed trailing newlines, while others stripped them.
15889 Now, all readers strip trailing newlines in code blocks. Writers
15890 insert a newline at the end of code blocks as needed.
15892 * Modified readers to make spacing at the end of output more consistent.
15894 * Minor improvements to LaTeX reader:
15896 + '\thanks' now treated like a footnote.
15897 + Simplified parsing of LaTeX command arguments and options.
15898 commandArgs now returns a list of arguments OR options (in
15899 whatever order they appear). The brackets are included, and
15900 a new stripFirstAndLast function is provided to strip them off
15901 when needed. This fixes a problem in dealing with \newcommand
15902 and \newenvironment.
15904 * Revised RTF writer:
15906 + Default font is now Helvetica.
15907 + An '\f0' is added to each '\pard', so that font resizing works
15908 correctly.
15910 * Moved handling of "smart typography" from the writers to the Markdown
15911 and LaTeX readers. This allows great simplification of the writers
15912 and more accurate smart quotes, dashes, and ellipses. DocBook can
15913 now use `<quote>`. The '--smart' option now toggles an option in
15914 the parser state rather than a writer option. Several new kinds
15915 of inline elements have been added: Quoted, Ellipses, Apostrophe,
15916 EmDash, EnDash.
15918 * Changes in HTML writer:
15920 + Include title block in header even when title is null.
15921 + Made javascript obfuscation of emails even more obfuscatory,
15922 by combining it with entity obfuscation.
15924 * Changed default ASCIIMathML text color to black.
15926 * Test suite:
15928 + Added --strip-trailing-cr option to diff in runtests.pl, for
15929 compatibility with Windows.
15930 + Added regression tests with footnotes in quote blocks and lists.
15932 * Makefile changes:
15934 + osx-pkg target creates a Mac OS X package (directory). New osx
15935 directory contains files needed for construction of the package.
15936 + osx-dmg target creates a compressed disk image containing the package.
15937 + win-pkg target creates Windows binary package.
15938 + tarball target creates distribution source tarball.
15939 + website target generates pandoc's website automatically, including
15940 demos. New 'web' directory contains files needed for construction
15941 of the website (which will be created as the 'pandoc' subdirectory
15942 of 'web').
15943 + Makefile checks to see if we're running Windows/Cygwin; if so,
15944 a '.exe' extension is added to each executable in EXECS.
15946 * Removed all wrappers except markdown2pdf and html2markdown.
15948 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
15949 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
15950 option and disables other options.
15952 * Added code to html2markdown that tries to determine the character
15953 encoding of an HTML file, by parsing the "Content-type" meta tag.
15955 + If the encoding can't be determined, then if the content is local,
15956 the local encoding is used; if it comes from a URL, UTF-8 is used
15957 by default.
15958 + If input is from STDIN, don't try to determine character encoding.
15959 + Encoding can be specified explicitly using '-e' option.
15961 * Improved warning messages in wrappers:
15963 + Print warning if iconv not available
15964 + More user-friendly error messages in markdown2pdf, when
15965 pdflatex fails.
15967 * Code cleanup:
15969 + Renamed 'Text/Pandoc/HtmlEntities' module to
15970 'Text/Pandoc/Entities'. Also changed function names so as
15971 not to be HTML-specific.
15972 + Refactored SGML string escaping functions from HTML and Docbook
15973 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
15974 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
15975 used anywhere.
15976 + Removed splitBySpace and replaced it with a general, polymorphic
15977 splitBy function.
15978 + Refactored LaTeX reader for clarity (added isArg function).
15979 + Converted some CR's to LF's in src/ui/default/print.css.
15980 + Added license text to top of source files.
15981 + Added module data for haddock to source files.
15982 + Reformatted code for consistency.
15984 * Rewrote documentation and man pages. Split README into INSTALL
15985 and README.
15987 * Split LICENSE into COPYING and COPYRIGHT.
15989 * Removed TODO, since we now maintain ToDo on the wiki.
15991 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
15992 duplication.
15994 [ Recai Oktaş ]
15996 * Revamped build process to conform to debian standards and created
15997 a proper debian package. Closes: #391666.
15999 * Modified build process to support GHC 6.6.
16001 + The package can still be compiled using GHC 6.4.2, though because
16002 of dependencies the "make deb" target works only with GHC 6.6+.
16003 + The script 'cabalize' is used to create an appropriate
16004 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
16005 Cabal versions.
16007 * Refactored template processing (fillTemplates.pl).
16009 * Modified wrapper scripts to make them more robust and portable.
16010 To avoid code duplication and ensure consistency, wrappers are
16011 generated via a templating system from templates in src/wrappers.
16013 + Wrappers now accept multiple filenames, when appropriate.
16014 + Spaces and tabs allowed in filenames.
16015 + getopts shell builtin is used for portable option parsing.
16016 + Improved html2markdown's web grabber code, making it more robust,
16017 configurable and verbose. Added '-e', '-g' options.
16019 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
16021pandoc (0.2) unstable; urgency=low
16023 * Fixed unicode/utf-8 translation
16025 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
16027pandoc (0.1) unstable; urgency=low
16029 * Initial creation of debian package
16031 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400