git.iko.soy/typeable/pandoc
on 4eff607 help sign in
typeable/pandoc/changelog
10309 lines 435 kB history raw
1pandoc (1.17.3)
3 * Add `bracketed_spans` Markdown extension, enabled by default
4 in pandoc `markdown`. This allows you to create a native span
5 using this syntax: `[Here is my span]{#id .class key="val"}`.
7 * `Text.Pandoc.Options.Extension` has a new constructor
8 `Ext_brackted_spans` [API change].
10 * `--filter`: we now check `$DATADIR/filters` for filters before
11 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
12 Voß for the idea). Filters placed in this directory need not
13 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
14 or `.rb`, pandoc will run the right interpreter.
16 * Textile reader:
18 + Support `bc..` extended code blocks (#3037). Also, remove trailing
19 newline in code blocks (consistently with Markdown reader).
20 + Improve table parsing. We now handle cell and row attributes, mostly
21 by skipping them. However, alignments are now handled properly.
22 Since in pandoc alignment is per-column, not per-cell, we
23 try to devine column alignments from cell alignments.
24 Table captions are also now parsed, and textile indicators
25 for thead and tfoot no longer cause parse failure. (However,
26 a row designated as tfoot will just be a regular row in pandoc.)
27 + Improve definition list parsing. We now allow multiple terms
28 (which we concatenate with linebreaks). An exponential parsing
29 bug (#3020) is also fixed.
30 + Disallow empty URL in explicit link (#3036).
32 * RST reader:
34 + Use Div instead of BlockQuote for admonitions (#3031).
35 The Div has class `admonition` and (if relevant) one of the
36 following: `attention`, `caution`, `danger`, `error`, `hint`,
37 `important`, `note`, `tip`, `warning`. **Note:** This will change
38 the rendering of some RST documents! The word ("Warning", "Attention",
39 etc.) is no longer added; that must be done with CSS or a filter.
40 + A Div is now used for `sidebar` as well.
42 * LaTeX reader:
44 + More robust parsing of unknown environments (#3026).
45 We no longer fail on things like `^` inside options for tikz.
46 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
47 Some custom environments give these a meaning, so we should try not to
48 fall over when we encounter them.
49 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
51 * MediaWiki reader:
53 + Fix for unquoted attribute values in mediawiki tables (#3053).
54 Previously an unquoted attribute value in a table row
55 could cause parsing problems.
56 + Improved treatment of verbatim constructions (#3055).
57 Previously these yielded strings of alternating Code and Space
58 elements; we now incorporate the spaces into the Code. Emphasis
59 etc. is still possible inside these.
60 + Properly interpret XML tags in pre environments (#3042). They are meant
61 to be interpreted as literal text.
63 * Org reader (Albert Krewinkel):
65 + Preserve indentation of verse lines (#3064). Leading spaces in verse
66 lines are converted to non-breaking spaces, so indentation is preserved.
67 + Ensure image sources are proper links. Image sources as those in plain
68 images, image links, or figures, must be proper URIs or relative file
69 paths to be recognized as images. This restriction is now enforced
70 for all image sources. This also fixes the reader's usage of uncleaned
71 image sources, leading to `file:` prefixes not being deleted from figure
72 images. Thanks to @bsag for noticing this bug.
73 + Extract meta parsing code to module. Parsing of meta-data is well
74 separable from other block parsing tasks. Moving into new module to get
75 small files and clearly arranged code.
76 + Read markup only for special meta keys. Most meta-keys should be read
77 as normal string values, only a few are interpreted as marked-up text.
78 + Allow multiple, comma-separated authors. Multiple authors can be specified
79 in the `#+AUTHOR` meta line if they are given as a comma-separated list.
80 + Give precedence to later meta lines. The last meta-line of any given type
81 is the significant line. Previously the value of the first line was kept,
82 even if more lines of the same type were encounterd.
83 + Read LaTeX_header as header-includes. LaTeX-specific header commands
84 can be defined in `#+LaTeX_header` lines. They are parsed as
85 format-specific inlines to ensure that they will only show up in LaTeX
86 output.
87 + Set documentclass meta from LaTeX_class.
88 + Set classoption meta from LaTeX_class_options.
89 + Read HTML_head as header-includes. HTML-specific head content can be
90 defined in `#+HTML_head` lines. They are parsed as format-specific
91 inlines to ensure that they will only show up in HTML output.
92 + Respect `author` export option. The `author` option controls whether the
93 author should be included in the final markup. Setting
94 `#+OPTIONS: author:nil` will drop the author from the final meta-data
95 output.
96 + Respect `email` export option. The `email` option controls whether the
97 email meta-field should be included in the final markup. Setting
98 `#+OPTIONS: email:nil` will drop the email field from the final meta-data
99 output.
100 + Respect `creator` export option. The `creator` option controls whether
101 the creator meta-field should be included in the final markup. Setting
102 `#+OPTIONS: creator:nil` will drop the creator field from the final
103 meta-data output. Org-mode recognizes the special value `comment` for
104 this field, causing the creator to be included in a comment. This is
105 difficult to translate to Pandoc internals and is hence interpreted the
106 same as other truish values (i.e. the meta field is kept if it's present).
107 + Respect unnumbered header property (#3095). Sections the `unnumbered`
108 property should, as the name implies, be excluded from the automatic
109 numbering of section provided by some output formats. The Pandoc
110 convention for this is to add an "unnumbered" class to the header. The
111 reader treats properties as key-value pairs per default, so a special
112 case is added to translate the above property to a class instead.
114 * Docx reader:
116 + Use XML convenience functions (Jesse Rosenthal).
117 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make the
118 code a lot cleaner than the original XML.Light functions, but they had
119 been used inconsistently. This puts them in wherever applicable.
120 + Handle anchor spans with content in headers. Previously, we would only
121 be able to figure out internal links to a header in a docx if the anchor
122 span was empty. We change that to read the inlines out of the first
123 anchor span in a header.
124 + Let headers use exisiting id. Previously we always generated an id for
125 headers (since they wouldn't bring one from Docx). Now we let it use an
126 existing one if possible. This should allow us to recurs through anchor
127 spans.
128 + Use all anchor spans for header ids. Previously we only used the first
129 anchor span to affect header ids. This allows us to use all the anchor
130 spans in a header, whether they're nested or not (#3088).
131 + Test for nested anchor spans in header. This ensures that anchor spans
132 in header with content (or with other anchor spans inside) will resolve
133 to links to a header id properly.
135 * DocBook writer:
137 + Include an anchor element when a div or span has an id (#3102).
138 Note that DocBook does not have a class attribute, but at least this
139 provides an anchor for internal links.
141 * LaTeX writer:
143 + Don't use * for unnumbered paragraph, subparagraph. The starred variants
144 don't exist. This helps with part of #3058...it gets rid of the spurious
145 `*`s. But we still have numbers on the 4th and 5th level headers.
146 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
147 Otherwise they can cause unintended ligatures like `` ?` ``.
148 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
149 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
150 This allows figure placement defaults to be changed by the user
151 in the template.
153 * Text.Pandoc.Error: Fix out of index error in `handleError`
154 (Matthew Pickering). The fix is to not try to show the exact line when it
155 would cause an out-of-bounds error as a result of included files.
157 * Man writer:
159 + Allow section numbers that are not a single digit (#3089).
161 * Docx Writer:
163 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
164 with a `custom-style` key in the attributes will apply the corresponding
165 key to the contained blocks or inlines.
167 * Org writer (Albert Krewinkel):
169 + Remove blank line after figure caption. Org-mode only treats an image
170 as a figure if it is directly preceded by a caption.
171 + Ensure blank line after figure. An Org-mode figure should be surrounded
172 by blank lines. The figure would be recognized regardless, but images
173 in the following line would unintentionally be treated as figures as
174 well.
175 + Ensure link targets are paths or URLs. Org-mode treats links as
176 document internal searches unless the link target looks like a URL or
177 file path, either relative or absolute. This change ensures that this
178 is always the case.
179 + Translate language identifiers. Pandoc and Org-mode use different
180 programming language identifiers. An additional translation between
181 those identifiers is added to avoid unexpected behavior. This fixes a
182 problem where language specific source code would sometimes be output
183 as example code.
185 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
186 subtitle, author, date (#3119). Note that, as a result of this change,
187 authors may need to update CSS.
189 * revealjs template: Added `notes-server` option (jgm/pandoc-templates#212,
190 Yoan Blanc).
192 * Beamer template:
194 + Restore whitespace between paragraphs. This was
195 a regression in the last release (jgm/pandoc-templates#207).
196 + Added `themeoptions` variable (Carsten Gips).
197 + Added `beamerarticle` variable. This causes the `beamerarticle`
198 package to be loaded in beamer, to produce an article from beamer slides.
199 (Carsten Gips)
200 + Added support for `fontfamilies` structured variable
201 (Artem Klevtsov).
203 * LaTeX template:
205 + Added dummy definition for `\institute`.
206 This isn't a standard command, and we want to avoid a crash when
207 `institute` is used with the default template.
208 + Define default figure placement (Václav Haisman), since pandoc
209 no longer includes `[htbp]` for figures. Users with custom templates
210 will want to add this. See #3103.
211 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
212 Václav Haisman).
214 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
215 emit the alt text, emphasized. This accords with what the ODT writer
216 currently does. The user will still get a warning about a nonexistent
217 image.
219 * Tell where to get tarball in INSTALL (#3062).
221 * Rename README to MANUAL.txt and add GitHub-friendly README.md
222 (Albert Krewinkel).
224 * MANUAL.txt:
226 + Put note on structured vars in separate paragraph (#2148, Albert
227 Krewinkel). Make it clearer that structured author variables require a
228 custom template
229 + Note that `--katex` works best with `html5` (#3077).
230 + Fix the LaTeX and EPUB links in manual (Morton Fox).
232 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
234 * Allow aeson 1.0.*.
236 * Use texmath 0.8.6.5 (#3040).
238 * Remove support for GHC < 7.8 (Jesse Rosenthal).
240 + Remove Compat.Monoid.
241 + Remove an inline monad compatibility macro.
242 + Remove Text.Pandoc.Compat.Except.
243 + Remove directory compat.
244 + Change constraint on mtl.
245 + Remove unnecessary CPP condition in UTF8.
246 + Bump base lower bound to 4.7.
247 + Remove 7.6 build from .travis.yaml.
248 + Bump supported ghc version in CONTRIBUTING.md.
249 + Add note about GHC version support to INSTALL.
250 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
251 + Remove TagSoup compat.
252 + Add EOL note to time compat module. Because time 1.4 is a boot library
253 for GHC 7.8, we will support the compatibility module as long as we
254 support 7.8. But we should be clear about when we will no longer need it.
255 + Remove blaze-html CPP conditional.
256 + Remove http-client CPP conditionals.
257 + Remove unnecessary CPP in custom Prelude.
259pandoc (1.17.2)
261 * Added Zim Wiki writer, template and tests. `zimwiki` is now
262 a valid output format. (Alex Ivkin)
264 * Changed email-obfuscation default to no obfuscation (#2988).
265 + `writerEmailObfuscation` in `defaultWriterOptions` is now
266 `NoObfuscation`.
267 + the default for the command-line `--email-obfuscation` option is
268 now `none`.
270 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
272 * Org writer:
274 + Support arbitrary raw inlines (Albert Krewinkel).
275 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
276 parlance) to be included as `@@format:raw foreign format text@@`.
277 + Improve Div handling (Albert Krewinkel). Div blocks handling is
278 changed to make the output look more like idiomatic org mode:
279 - Div-wrapped content is output as-is if the div's attribute is the
280 null attribute.
281 - Div containers with an id but neither classes nor key-value pairs
282 are unwrapped and the id is added as an anchor.
283 - Divs with classes associated with greater block elements are
284 wrapped in a `#+BEGIN`...`#+END` block.
285 - The old behavior for Divs with more complex attributes is kept.
287 * HTML writer: Better support for raw LaTeX environments (#2758).
288 Previously we just passed all raw TeX through when MathJax
289 was used for HTML math. This passed through too much.
290 With this patch, only raw LaTeX environments that MathJax
291 can handle get passed through.
292 This patch also causes raw LaTeX environments to be treated
293 as math, when possible, with MathML and WebTeX output.
295 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
296 (#2993). Markdown line breaks involve a newline, and simple and pipe
297 tables can't contain one.
299 * Make --webtex work with the Markdown writer (#1177).
300 This is a convenient option for people using
301 websites whose Markdown flavors don't provide for math.
303 * Docx writer:
305 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
306 We treat display math like block quotes, and apply FirstParagraph style
307 to paragraphs that follow them. These can be styled as the user
308 wishes. (But, when the user is using indentation, this allows for
309 paragraphs to continue after display math without indentation.)
310 + Use actual creation time as doc prop (Jesse Rosenthal).
311 Previously, we had used the user-supplied date, if available, for Word's
312 document creation metadata. This could lead to weird results, as in
313 cases where the user post-dates a document (so the modification might be
314 prior to the creation). Here we use the actual computer time to set the
315 document creation.
317 * LaTeX writer:
319 + Don't URI-escape image source (#2825). Usually this is a local file,
320 and replacing spaces with `%20` ruins things.
321 + Allow 'standout' as a beamer frame option (#3007).
322 `## Slide title {.standout}`.
324 * RST reader: Fixed links with no explicit link text. The link
325 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
326 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
327 Closes Debian #828167 -- reported by Christian Heller.
329 * Textile reader:
331 + Fixed attributes (#2984). Attributes can't be followed by
332 a space. So, `_(class)emph_` but `_(noclass) emph_`.
333 + Fixed exponential parsing bug (#3020).
334 + Fix overly aggressive interpretation as images (#2998).
335 Spaces are not allowed in the image URL in textile.
337 * LaTeX reader:
339 + Fix `\cite` so it is a NormalCitation not AuthorInText.
340 + Strip off double quotes around image source if present (#2825).
341 Avoids interpreting these as part of the literal filename.
343 * Org reader:
345 + Add semicolon to list of special chars (Albert Krewinkel)
346 Semicolons are used as special characters in citations syntax. This
347 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
348 suffix]`. Previously, parsing would have failed unless there was a space
349 or other special character as the last <prefix> character.
350 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
351 A specification for an official Org-mode citation syntax was drafted by
352 Richard Lawrence and enhanced with the help of others on the orgmode
353 mailing list. Basic support for this citation style is added to the
354 reader.
355 + Support arbitrary raw inlines (Albert Krewinkel).
356 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
357 parlance) to be included as `@@format:raw foreign format text@@`.
358 + Remove partial functions (Albert Krewinkel, #2991).
359 Partial functions like `head` lead to avoidable errors and should be
360 avoided. They are replaced with total functions.
361 + Support figure labels (Albert Krewinkel, #2496, #2999).
362 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
363 respective image. This allows e.g. the LaTeX to add proper `\label`
364 markup.
365 + Improve tag and properties type safety (Albert Krewinkel).
366 Specific newtype definitions are used to replace stringly typing of tags
367 and properties. Type safety is increased while readability is improved.
368 + Parse as headlines, convert to blocks (Albert Krewinkel).
369 Emacs org-mode is based on outline-mode, which treats documents as trees
370 with headlines are nodes. The reader is refactored to parse into a
371 similar tree structure. This simplifies transformations acting on
372 document (sub-)trees.
373 * Refactor comment tree handling (Albert Krewinkel).
374 Comment trees were handled after parsing, as pattern matching on lists
375 is easier than matching on sequences. The new method of reading
376 documents as trees allows for more elegant subtree removal.
377 * Support archived trees export options (Albert Krewinkel).
378 Handling of archived trees can be modified using the `arch` option.
379 Archived trees are either dropped, exported completely, or collapsed to
380 include just the header when the `arch` option is nil, non-nil, or
381 `headline`, respectively.
382 * Put export setting parser into module (Albert Krewinkel).
383 Export option parsing is distinct enough from general block parsing to
384 justify putting it into a separate module.
385 * Support headline levels export setting (Albert Krewinkel).
386 The depths of headlines can be modified using the `H` option. Deeper
387 headlines will be converted to lists.
388 * Replace ugly code with view pattern (Albert Krewinkel).
389 Some less-than-smart code required a pragma switching of overlapping
390 pattern warnings in order to compile seamlessly. Using view patterns
391 makes the code easier to read and also doesn't require overlapping
392 pattern checks to be disabled.
393 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
394 Org rules for allowed characters before or after markup chars were not
395 checked for verbatim text. This resultet in wrong parsing outcomes of
396 if the verbatim text contained e.g. space enclosed markup characters as
397 part of the text (`=is_substr = True=`). Forcing the parser to update
398 the positions of allowed/forbidden markup border characters fixes this.
400 * LaTeX template: fix for obscure hyperref/xelatex issue.
401 Here's a minimal case:
403 \documentclass[]{article}
404 \usepackage{hyperref}
405 \begin{document}
406 \section{\%á}
407 \end{document}
409 Without this change, this fails on the second invocation of xelatex.
410 This affects inputs this like `# %á` with pdf output via xelatex.
412 * trypandoc: call results 'html' instead of 'result'.
413 This is for better compatibility with babelmark2.
415 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
416 MultiMarkdown was only mentioned as a supported Markdown dialect but not
417 as a possible input or output format. A brief mention is added
418 everywhere the other supported markdown dialects are mentioned.
420 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
421 Raw HTML is kept when the output format is Emacs Org mode.
423 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
425 * Text.Pandoc.Shared:
427 + Introduce blocksToInlines function (Jesse Rosenthal).
428 This is a lossy function for converting `[Block] -> [Inline]`. Its main
429 use, at the moment, is for docx comments, which can contain arbitrary
430 blocks (except for footnotes), but which will be converted to spans.
431 This is, at the moment, pretty useless for everything but the basic
432 `Para` and `Plain` comments. It can be improved, but the docx reader
433 should probably emit a warning if the comment contains more than this.
434 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
435 + Add further formats for `normalizeDate` (Jesse Rosenthal).
436 We want to avoid illegal dates -- in particular years with greater than
437 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
438 `%Y%m`, and finally `%Y`.
439 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
440 We only allow years between 1601 and 9999, inclusive. The ISO 8601
441 actually says that years are supposed to start with 1583, but MS Word
442 only allows 1601-9999. This should stop corrupted word files if the date
443 is out of that range, or is parsed incorrectly.
444 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
445 Previously we parsed a list of dates, took the first one, and then
446 tested its year range. That meant that if the first one failed, we
447 returned nothing, regardless of what the others did. Now we test for
448 sanity before running `msum` over the list of Maybe values. Anything
449 failing the test will be Nothing, so will not be a candidate.
451 * Docx reader:
453 + Add simple comment functionality. (Jesse Rosenthal).
454 This adds simple track-changes comment parsing to the docx reader. It is
455 turned on with `--track-changes=all`. All comments are converted to
456 inlines, which can list some information. In the future a warning will be
457 added for comments with formatting that seems like it will be excessively
458 denatured. Note that comments can extend across blocks. For that reason
459 there are two spans: `comment-start` and `comment-end`. `comment-start`
460 will contain the comment. `comment-end` will always be empty. The two
461 will be associated by a numeric id.
462 + Enable warnings in top-level reader (Jesse Rosenthal).
463 Previously we had only allowed for warnings in the parser. Now we allow
464 for them in the `Docx.hs` as well. The warnings are simply concatenated.
465 + Add warning for advanced comment formatting. (Jesse Rosenthal).
466 We can't guarantee we'll convert every comment correctly, though we'll
467 do the best we can. This warns if the comment includes something other
468 than Para or Plain.
469 + Add tests for warnings. (Jesse Rosenthal).
470 + Add tests for comments (Jesse Rosenthal).
471 We test for comments, using all track-changes options. Note that we
472 should only output comments if `--track-changes=all`. We also test for
473 emitting warnings if there is complicated formatting.
475 * README: update to include track-changes comments. (Jesse Rosenthal)
477 * Improved Windows installer - don't ignore properties set on command-line.
478 See #2708. Needs testing to see if this resolves the issue.
479 Thanks to @nkalvi.
481 * Process markdown extensions on command line in L->R order (#2995).
482 Previously they were processed, very unintuitively, in R->L
483 order, so that `markdown-tex_math_dollars+tex_math_dollars`
484 had `tex_math_dollars` disabled.
486 * Added `secnumdepth` variable to LaTeX template (#2920).
488 * Include table of contents in README.html in Windows package.
490 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
491 In Writers.Shared, we strip leading and trailing spaces for display
492 math. Since SoftBreak's are treated as spaces, we should strip those
493 too.
495 * beamer, latex templates: pass biblatexoptions directly in package load.
496 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
498 * CPP workaround for deprecation of `parseUrl` in http-client.
500 * Removed some redundant class constraints.
502 * make_oxs_package.sh - use OSX env variable.
504 * Added `winpkg` target to Makefile. This downloads the windows package
505 from appveyor and signs it using the key.
507 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
508 Raw TeX is kept verbatim when the output format is Emacs Org mode.
510 * Support math with haddock-library >= 1.4.
512 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
513 wouldn't accept the package.
515 * Update library dependency versions.
517pandoc (1.17.1)
519 * New output format: `docbook5` (Ivo Clarysse).
521 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
522 (API change).
524 * Org writer:
526 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
527 This allows header attributes to be added to org documents in the form
528 of `:PROPERTIES:` drawers. All available attributes are stored as
529 key/value pairs. This reflects the way the org reader handles
530 `:PROPERTIES:` blocks.
531 + Add drawer capability (Carlos Sosa). For the implementation of the
532 Drawer element in the Org Writer, we make use of a generic Block
533 container with attributes. The presence of a `drawer` class defines
534 that the `Div` constructor is a drawer. The first class defines the
535 drawer name to use. The key-value list in the attributes defines
536 the keys to add inside the Drawer. Lastly, the list of Block elements
537 contains miscellaneous blocks elements to add inside of the Drawer.
538 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
539 reserved for internal use by Org-mode and should not be used.
540 The `CUSTOM_ID` property is to be used instead, it is converted to the
541 `ID` property for certain export format.
543 * LaTeX writer:
545 + Ignore `--incremental` unless output format is beamer (#2843).
546 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
547 Allow for optional argument in square brackets.
548 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
549 This allows one to access the hyphenation patterns in CTAN's
550 hyph-utf8.
551 + Add missing languages from hyph-utf8 (Andrew Dunning).
552 + Improve use of `\strut` with `\minipage` inside tables
553 (Jose Luis Duran). This improves spacing in multiline
554 tables.
555 + Use `{}` around options containing special chars (#2892).
556 + Avoid lazy `foldl`.
557 + Don't escape underscore in labels (#2921). Previously they were
558 escaped as `ux5f`.
559 + brazilian -> brazil for polyglossia (#2953).
561 * HTML writer: Ensure mathjax link is added when math appears in footnote
562 (#2881). Previously if a document only had math in a footnote, the
563 MathJax link would not be added.
565 * EPUB writer: set `navpage` variable on nav page.
566 This allows templates to treat it differently.
568 * DocBook writer:
570 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
571 + Properly handle `ulink`/`link` (Ivo Clarysse).
573 * EPUB reader:
575 + Unescape URIs in spine (#2924).
576 + EPUB reader: normalise link id (Mauro Bieg).
578 * Docx Reader:
580 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
581 `moveTo` and `moveFrom` are track-changes tags that are used when a
582 block of text is moved in the document. We now recognize these tags and
583 treat them the same as `insert` and `delete`, respectively. So,
584 `--track-changes=accept` will show the moved version, while
585 `--track-changes=reject` will show the original version.
586 + Tests for track-changes moving (Jesse Rosenthal).
588 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
589 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
590 would error out if zip-archive failed. We change the archive extraction
591 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
593 * Markdown, HTML readers: be more forgiving about unescaped `&` in
594 HTML (#2410). We are now more forgiving about parsing invalid HTML with
595 unescaped `&` as raw HTML. (Previously any unescaped `&`
596 would cause pandoc not to recognize the string as raw HTML.)
598 * Markdown reader:
600 + Added bracket syntax for native spans (#168).
601 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
602 + Added `-s` to markdown-reader-more test.
604 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
605 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
607 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
608 (roblabla).
610 * RST reader: Support `:class:` option for code block in RST reader
611 (Sidharth Kapur).
613 * Org reader (all Albert Krewinkel, except where noted otherwise):
615 + Stop padding short table rows.
616 Emacs Org-mode doesn't add any padding to table rows. The first
617 row (header or first body row) is used to determine the column count,
618 no other magic is performed.
619 + Refactor rows-to-table conversion. This refactors
620 the codes conversing a list table lines to an org table ADT.
621 The old code was simplified and is now slightly less ugly.
622 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
623 This fixes Org mode parsing of some corner cases regarding empty cells
624 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
625 two empty cells, but would be parsed as a single cell containing a pipe
626 character. Empty rows where parsed as alignment rows and dropped from
627 the output.
628 + Fix spacing after LaTeX-style symbols.
629 The org-reader was droping space after unescaped LaTeX-style symbol
630 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
631 instead. This seems to be because the LaTeX-reader treats the
632 command-terminating space as part of the command. Dropping the trailing
633 space from the symbol-command fixes this issue.
634 + Print empty table rows. Empty table rows should not
635 be dropped from the output, so row-height is always set to be at least 1.
636 + Move parser state into separate module.
637 The org reader code has become large and confusing. Extracting smaller
638 parts into submodules should help to clean things up.
639 + Add support for sub/superscript export options.
640 Org-mode allows to specify export settings via `#+OPTIONS` lines.
641 Disabling simple sub- and superscripts is one of these export options,
642 this options is now supported.
643 + Support special strings export option Parsing of special strings
644 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
645 option.
646 + Support emphasized text export option. Parsing of emphasized text can
647 be toggled using the `*` option. This influences parsing of text marked
648 as emphasized, strong, strikeout, and underline. Parsing of inline math,
649 code, and verbatim text is not affected by this option.
650 + Support smart quotes export option. Reading of smart quotes can be
651 toggled using the `'` option.
652 + Parse but ignore export options. All known export options are parsed
653 but ignored.
654 + Refactor block attribute handling. A parser state attribute was used
655 to keep track of block attributes defined in meta-lines. Global state
656 is undesirable, so block attributes are no longer saved as part of the
657 parser state. Old functions and the respective part of the parser state
658 are removed.
659 + Use custom `anyLine`. Additional state changes need to be made after
660 a newline is parsed, otherwise markup may not be recognized correctly.
661 This fixes a bug where markup after certain block-types would not be
662 recognized.
663 + Add support for `ATTR_HTML` attributes (#1906).
664 Arbitrary key-value pairs can be added to some block types using a
665 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
666 when exporting to HTML, but since we cannot make this distinction here,
667 the attributes are always added. The functionality is now supported
668 for figures.
669 + Add `:PROPERTIES:` drawer support (#1877).
670 Headers can have optional `:PROPERTIES:` drawers associated with them.
671 These drawers contain key/value pairs like the header's `id`. The
672 reader adds all listed pairs to the header's attributes; `id` and
673 `class` attributes are handled specially to match the way `Attr` are
674 defined. This also changes behavior of how drawers of unknown type
675 are handled. Instead of including all unknown drawers, those are not
676 read/exported, thereby matching current Emacs behavior.
677 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
678 + Respect drawer export setting. The `d` export option can be used
679 to control which drawers are exported and which are discarded.
680 Basic support for this option is added here.
681 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
682 Also fix up tab handling for leading whitespace in code blocks.
683 + Support new syntax for export blocks. Org-mode version 9
684 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
685 where `<FORMAT>` is the format of the block's content, the new
686 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
687 supported.
688 + Refactor `BEGIN...END` block parsing.
689 + Fix handling of whitespace in blocks, allowing content to be indented
690 less then the block header.
691 + Support org-ref style citations. The *org-ref* package is an
692 org-mode extension commonly used to manage citations in org
693 documents. Basic support for the `cite:citeKey` and
694 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
695 + Split code into separate modules, making for cleaner code and
696 better decoupling.
698 * Added `docbook5` template.
700 * `--mathjax` improvements:
702 + Use new CommonHTML output for MathJax (updated default MathJax URL,
703 #2858).
704 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
705 This is designed for cases where the input is always TeX and maximal
706 conformity with TeX is desired. It seems to be smaller and load faster
707 than what we used before. See #2858.
708 + Load the full MathJax config to maximize loading speed (KolenCheung).
710 * Bumped upper version bounds to allow use of latest packages
711 and compilation with ghc 8.
713 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
714 #2310, #2310, #2824). This fixes behavior of roots, e.g.
715 `\sqrt[3]{x}`, and issues with sub/superscript positioning
716 and matrix column alignment in docx.
718 * README:
720 + Clarified documentation of `implicit_header_references` (#2904).
721 + Improved documentation of `--columns` option.
723 * Added appveyor setup, with artefacts (Jan Schulz).
725 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
727 * LaTeX template: support for custom font families (vladipus).
728 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
729 can find some other usages. Example usage in YAML metadata:
731 fontfamilies:
732 - name: \cyrillicfont
733 font: Liberation Serif
734 - name: \cyrillicfonttt
735 options: Scale=MatchLowercase
736 font: Liberation
738 * Create unsigned msi as build artifact in appveyor build.
740 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
742pandoc (1.17.0.3)
744 * LaTeX writer: Fixed position of label in figures (#2813).
745 Previously the label wasn't in the right place, and `\ref`
746 wouldn't work properly.
747 * Added .tei test files to pandoc.cabal so they'll be included
748 in tarball (#2811).
749 * Updated copyright dates.
751pandoc (1.17.0.2)
753 * Fixed serious regression in `htmlInBalanced`, which caused
754 newlines to be omitted in some raw HTML blocks in Markdown
755 (#2804).
757pandoc (1.17.0.1)
759 * File scope is no longer used when there are no input files (i.e.,
760 when input comes from stdin). Previously file scope was triggered
761 when the `json` reader was specified and input came from `stdin`,
762 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
763 thanks to Fedor Sheremetyev for calling the bug to our attention.)
764 * Improved documentation of templates (#2797).
766pandoc (1.17)
768 * Added `--file-scope` option (Jesse Rosenthal).
769 By default pandoc operates on multiple files by first concatenating
770 them (around extra line breaks) and then processing the joined file. So
771 it only parses a multi-file document at the document scope. This has the
772 benefit that footnotes and links can be in different files, but for
773 some purposes it is useful to parse the individual files first
774 and then combine their outputs (e.g. when the files use footnotes
775 or links with the same labels). The `--file-scope` option causes
776 pandoc to parse the files first, and then combine the parsed output,
777 instead of combining before parsing. `--file-scope` is selected
778 automatically for binary input files (which cannot be concatenated)
779 and for pandoc json.
781 * Add TEI Writer (Chris Forster) and `tei` output format.
783 * Added a general `ByteStringReader` with warnings, used by the docx
784 reader (API change, Jesse Rosenthal).
786 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
788 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
789 to `Set String.` This avoids performance problems in documents with
790 many identically named headers (API change, #2671).
792 * Removed `tex_math_single_backslash` from `markdown_github` options
793 (#2707).
795 * Make language extensions as well as full language names
796 trigger syntax highlighting. For example, `py` will now work as
797 well as `python` (jgm/highlighting-kate#83).
799 * Added `institute` variable to latex, beamer templates (Fraser
800 Tweedale, Josef Svenningsson).
802 * Docx reader (Jesse Rosenthal):
804 + Handle alternate content. Some word functions (especially graphics)
805 give various choices for content so there can be backwards compatibility.
806 + Don't turn numbered headers into lists.
807 + Docx Reader: Add state to the parser, for warnings
808 + Update feature checklist in source code.
809 + Get rid of `Modifiable` typeclass.
810 + Add tests for adjacent hyperlinks.
811 + Add a "Link" modifier to `Reducible`. We want to make sure that
812 links have their spaces removed, and are appropriately smushed
813 together (#2689).
815 * HTML reader:
817 + Fixed behavior of base tag (#2777).
818 If the base path does not end with slash, the last component
819 will be replaced. E.g. base = `http://example.com/foo`
820 combines with `bar.html` to give `http://example.com/bar.html`.
821 If the href begins with a slash, the whole path of the base
822 is replaced. E.g. base = `http://example.com/foo/` combines
823 with `/bar.html` to give `http://example.com/bar.html`.
824 + Rewrote `htmlInBalanced`. This version avoids an exponential
825 performance problem with `<script>` tags, and it should be faster
826 in general (#2730).
827 + Properly handle an empty cell in a simple table (#2718).
828 + Handle multiple `<meta>` tags with same name. Put them in a list
829 in the metadata so they are all preserved, rather than (as before)
830 throwing out all but one..
832 * Markdown reader:
834 + Improved pipe table parsing (#2765).
835 + Allow `+` separators in pipe table cells. We already allowed
836 them in the header, but not in the body rows, for some reason.
837 This gives compatibility with org-mode tables.
838 + Don't cross line boundary parsing pipe table row.
839 Previously an Emph element could be parsed across the newline
840 at the end of the pipe table row.
841 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
842 performance (#2730).
843 + Fixed bug with smart quotes around tex math.
845 * LaTeX reader:
847 + Handle interior `$` characters in math (#2743). For example,
848 `$$\hbox{$i$}$$`.
849 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
850 This gives better results when people write e.g. `\TeX{}` in Markdown.
851 + Properly handle LaTeX "math" environment as inline math (#2171).
853 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
854 Closes #2674.
856 * Org reader (Albert Krewinkel):
858 + Prefix even empty figure names with "fig:" (#2643). The
859 convention used by pandoc for figures is to mark them by prefixing
860 the name with `fig:`. The org reader failed to do this if a figure
861 had no name.
862 + Refactor link-target processing (#2684).
864 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
865 Thanks to @c-foster.
867 * HTML writer: Don't include alignment attribute for default table columns.
868 Previously these were given "left" alignment. Better to leave off
869 alignment attributes altogether (#2694).
871 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
872 better compatibility with other Markdown flavors (Henrik Tramberend).
874 * LaTeX writer:
876 + Use image identifier to create a label and hypertarget for
877 figures (Mauro Bieg).
878 + Avoid double toprule in headerless table with caption (#2742).
879 + Clean up options parser (Jesse Rosenthal).
880 + Treat `memoir` template with `article` option as article, instead
881 of treating all `memoir` templates as books.
882 + Allow more flexible table alignment (Henrik Tramberend, #2665).
883 New default is not to include `[c]` option (which is the default
884 anyway if no positioning is specified). Now LaTeX emplates can
885 control the overall table alignment in a document by setting the
886 longtable length variables `LTleft` and `LTright`. For example,
887 `\setlength\LTleft\parindent\setlength\LTright\fill`
888 will create left-aligned tables that respect paragraph indentation.
890 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
892 * Org writer - pass through RawInline with format "org".
894 * DokuWiki writer: use `$$` for display math.
896 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
898 * Make protocol-relative URIs work again (#2737).
900 * make_osx_package.sh: Use env variable for developer id certs.
902 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
903 problems (#2734).
905 * Allow `zip-archive` 0.3.
907 * Allow `aeson` 0.11.
909pandoc (1.16.0.2)
911 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
913 * Fixed regression in latex smart quote parsing (#2645).
914 In cases where a match was not found for a quote, everything
915 from the open quote to the end of the paragraph was being dropped.
917pandoc (1.16.0.1)
919 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
920 raises an error if a full path is given.
922 * Org reader: Fix function dropping subtrees tagged `:noexport`
923 (Albert Krewinkel, #2628):
925 * Markdown reader: renormalize table column widths if they exceed 100%
926 (#2626).
928 * Textile reader: don't allow block HTML tags in inline contexts.
929 The reader previously did allow this, following redcloth,
930 which happily parses
932 Html blocks can be <div>inlined</div> as well.
934 as
936 <p>Html blocks can be <div>inlined</div> as well.</p>
938 This is invalid HTML. The above sample now produces;
940 <p>Html blocks can be</p>
941 <div>
942 <p>inlined</p>
943 </div>
944 <p>as well.</p>
946 * Improved default template lookup for custom lua scripts (#2625).
947 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
948 pandoc would look for the template in
949 `~/.pandoc/templates/default./path/to/lua/script.lua`.
950 With this change it will look in the more reasonable
951 `~/.pandoc/templates/default.script.lua`. This makes it possible to
952 store default templates for custom writers.
954 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
955 (#2615).
957 * LaTeX writer: restore old treatment of Span (#2624). A Span is
958 now rendered with surrounding `{}`, as it was before 1.16.
960 * Entity handling fixes: improved handling of entities like
961 `&lang;` that require a trailing semicolon. Allow uppercase
962 `x` in numerical hexidecimal character references, working
963 around a tagsoup bug.
965 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
966 memory use on compile. With aeson 0.10 we were getting an out of
967 memory error on a 2GB Ubuntu 64-bit VM.
969 * Improved deb package creation script. Made `DPKGVER` work.
970 Renamed `COMMIT` to `TREE`. You should now be able to do
971 `TREE=1.16.0.1 DPKGVER=2 make deb`.
974pandoc (1.16)
976 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
978 + Added syntax for link and image attributes to pandoc's Markdown.
979 + Updated readers and writers to use link and image attributes
980 when appropriate.
981 + Support image attributes in Docx, Textile, RST readers.
983 * Renamed link attribute extensions. The old `link_attributes` is
984 now `mmd_link_attributes`, and `link_attributes` now enables the
985 new pandoc-style link and image attributes (API change).
986 Note: this change could break some existing workflows.
988 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
989 Added threefold wrapping option.
991 + Command line option: deprecated `--no-wrap`, added
992 `--wrap=[auto|none|preserve]`
993 + Added `WrapOption`, exported from `Text.Pandoc.Options`
994 + Changed type of `writerWrapText` in `WriterOptions` from
995 `Bool` to `WrapOption`.
996 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
997 + Supported `SoftBreak` in readers and writers.
999 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
1000 change, Mauro Bieg).
1002 * Added `--dpi` command-line option (Mauro Bieg).
1004 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
1005 This change makes `--no-tex-ligatures` affect the LaTeX reader
1006 as well as the LaTeX and ConTeXt writers. If it is used,
1007 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
1008 literally, rather than parsing ligatures for quotation marks
1009 and dashes. And the LaTeX writer will print unicode quotation
1010 mark and dash characters literally, rather than converting
1011 them to the standard ASCII ligatures. Note that `--smart` has
1012 no effect on the LaTeX reader. `--smart` is still the default
1013 for all input formats when LaTeX or ConTeXt is the output format,
1014 *unless* `--no-tex-ligatures` is used.
1016 Some examples to illustrate the logic:
1018 ```
1019 % echo "'hi'" | pandoc -t latex
1020 `hi'
1021 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
1022 'hi'
1023 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
1024 ‘hi’
1025 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
1026 <p>'hi'</p>
1027 % echo "'hi'" | pandoc -f latex
1028 <p>’hi’</p>
1029 ```
1031 * Removed deprecated options `--offline` and `--html5`.
1033 * Fixed language code for Czech (`cs` not `cz`) (#2597).
1035 * Implemented `east_asian_line_breaks` extension (#2586).
1036 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
1037 to `Extension` (API change). This extension is like
1038 `ignore_line_breaks`, but smarter -- it only ignores line breaks
1039 between two East Asian wide characters. This makes it better suited
1040 for writing with a mix of East Asian and non-East Asian scripts.
1042 * Added support for PDF creation via `wkhtmltopdf`.
1043 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
1044 if you have math.) Margins can be set using the variables
1045 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
1046 Other styling can be done through CSS.
1048 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
1049 We were capturing final colons as in `[@foo: bar]`; the citation id
1050 was being parsed as `@foo:`.
1052 * ICML writer:
1054 + Fixed image syntax for local files (#2589).
1055 + Changed type of `writeICML` (Mauro Bieg).
1056 API change: It is now `WriterOptions -> Pandoc -> IO String`.
1057 Also handle new image attributes.
1058 + Intersperse line breaks instead of appending them to
1059 every `ParagraphStyleRange` (Mauro Bieg, #2501).
1060 + Add `Cite` style to citations (Mauro Bieg).
1061 + Added figure handling (#2590, Mauro Bieg).
1062 + Better handling of math. Instead of just printing the raw tex,
1063 we now try to fake it with unicode characters.
1065 * HTML writer: Include `example` class for example lists (#2524).
1067 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
1069 + Support for percentage widths/heights
1070 + Use `Attr` instead of title to get dimensions from ODT walker
1071 to `writeOpenDocument`.
1073 * AsciiDoc writer:
1075 + Support anchors in spans and divs with id elements
1076 (jgm/pandoc-citeproc#143).
1077 + Fixed code blocks (#1861).
1079 * Haddock writer: omit formatting inside links, which isn't supported
1080 by Haddock (#2515).
1082 * MediaWiki writer: Fixed spacing issues in table cells.
1084 + Start cell on new line unless it's a single Para or Plain
1085 (#2606).
1086 + For single Para or Plain, insert a space after the `|` to
1087 avoid problems when the text begins with a character like
1088 `-` (#2604).
1090 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
1092 * LaTeX writer:
1094 + Add support for GAP highlighting using listings (Raniere Silva).
1095 + Consider `header-includes` content as well as templates
1096 when determining whether to use csquotes (Andreas Lööw).
1097 + Create defaults for geometry using `margin-left` etc.
1098 If `geometry` has no value, but `margin-left`, `margin-right`,
1099 `margin-top`, and/or `-margin-bottom` are given, a default value
1100 for `geometry` is created from these. Note that these variables
1101 already affect PDF production via HTML5 with `wkhtmltopdf`.
1103 * ConTeXt writer: set default layout based on `margin-left`, etc.
1104 This sets up `\setuplayout` based on the variables `margin-left`,
1105 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
1106 is given.
1108 * Docx writer: better handling of PDF images. Previously we tried
1109 to get the image size from the image even if an explicit size was
1110 specified. Since we still can't get image size for PDFs, this made
1111 it impossible to use PDF images in docx. Now we don't try to get
1112 the image size when a size is already explicitly specified.
1114 * Markdown writer: use raw HTML for link/image attributes when
1115 the `link_attributes` extension is unset and `raw_html` is set (#2554).
1117 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
1119 * LaTeX reader:
1121 + Improved smart quote parsing (#2555). This fixes redering of
1122 unmatched quotes.
1123 + Use curly quotes for unmatched ` (#2555).
1124 + Allow blank space between braced arguments of commands (#2592).
1126 * Markdown reader:
1128 + Improved pipe table relative widths. Previously pipe table
1129 columns got relative widths (based on the header underscore lines)
1130 when the source of one of the rows was greater in width than the
1131 column width. This gave bad results in some cases where much of
1132 the width of the row was due to nonprinting material (e.g. link
1133 URLs). Now pandoc only looks at printable width (the width of a
1134 plain string version of the source), which should give better results.
1135 Thanks to John Muccigrosso for bringing up the issue.
1136 + Fixed parsing bug with macros. Previously macro definitions in
1137 indented code blocks were being parsed as macro definitions, not code.
1139 * Textile reader: skip over attribute in image source (#2515).
1140 We don't have a place yet for styles or sizes on images, but
1141 we can skip the attributes rather than incorrectly taking them
1142 to be part of the filename.
1144 * Docx reader: Handle dummy list items (Jesse Rosenthal).
1145 These come up when people create a list item and then delete the
1146 bullet. It doesn't refer to any real list item, and we used to ignore
1147 it.
1149 * CommonMark reader/writer rewritten to use latest `cmark`.
1151 * Fixed Emoji character definitions (#2523). There were many bugs in the
1152 definitions.
1154 * `Text.Pandoc.CSS`:
1156 + Added `pickStylesToKVs` function to extract multiple properties at
1157 once (API change, Mauro Bieg).
1158 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
1160 * `trypandoc`: sort drop-down lists.
1162 * Beamer template:
1164 + Made `\euro` conditional on presence of character.
1165 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
1166 + Moved `header-includes` before setting of title (Thomas Hodgson),
1167 to match the LaTeX template (jgm/pandoc-templates#168).
1168 + Added `section-titles` variable (defaults to true)
1169 to enable/suppress section title pages in beamer
1170 slide shows (Thomas Hodgson).
1171 + Moved beamer themes after fonts, so that themes can
1172 change fonts. (Previously the fonts set were being
1173 clobbered by lmodern.sty.) (Thomas Hodgson).
1175 * Beamer/LaTeX template changes (Thomas Hodgson):
1176 + Added `thanks` variable
1177 + Use `parskip.sty` when `indent` isn't set (fall back to using
1178 `setlength` as before if `parskip.sty` isn't available).
1179 + Use `biblio-style` with biblatex.
1180 + Added `biblatexoptions` variable.
1182 * LaTeX template changes:
1184 + Added `paper` after `$papersize$` variable in latex template.
1185 Thus you can say `papersize: a4` and the latex will contain
1186 `a4paper`. This change may break some existing workflows; if
1187 you currently specify `a4paper`, you'll get `a4paperpaper` which
1188 is meaningless. However, the change seems worth it, as it will
1189 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
1190 and html->pdf via wkhtmltopdf.
1191 + Only pass options to color package if `colorlinks` is set
1192 (Andrew Dunning).
1193 + Make definition of `\euro` conditional in xelatex/lualatex,
1194 as it is already for pdflatex (Andrew Dunning).
1195 + Removed setting of `subject` in PDF metadata.
1196 This used to be set to the subtitle, but really the subtitle
1197 need not give the subject. Also, `subtitle` can contain formatting,
1198 so we'd need, at least, a plain text version for this.
1199 + Moved `header-includes` before setting of `\title`, `\author`,
1200 etc. This allows these macros to be redefined.
1201 + Use `\subtitle` command for `subtitle`, instead of tacking it
1202 on to the title as before. We give a no-op fallback definition if it
1203 is not defined. This change should produce much better results
1204 in classes that support `\subtitle`. With the default article
1205 class, which does not define `\subtitle`, subtitles will no
1206 longer be printed unless the user defines `\subtitle` and
1207 redefines `\maketitle`.
1208 + Moved redefinitions of `\paragraph` and `\subparagraph` to
1209 before header-includes.
1211 * Context template:
1213 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
1214 needed for things to work on ConTeXt stable from TeXLive 2015.
1215 + Revert use of `\setuphead` in title block (Andrew Dunning,
1216 Rik Kabel).
1218 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
1220 * Fixed man template so disabling hyphenation actually works.
1221 The command needs to come after .TH.
1223 * Added 'navigation' variable to beamer template (#2543).
1224 Valid values are `empty` (the default), `horizontal`, `vertical`,
1225 and `frame`. Note that this changes the default behavior from
1226 `horizontal` to `empty`. Closes #2543.
1228 * Added `toc` to HTML slide format templates (Andrew Dunning),
1229 so that `--toc` creates a contents slide.
1231 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
1233 * Allow pipe tables with no body rows (#2556).
1234 Previously this raised a runtime error.
1236 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
1237 as URL. The Haskell URI parsing routines will accept "C:" as a
1238 scheme, so we rule that out manually. This helps with
1239 `--self-contained` and absolute Windows paths.
1241 * Define a `meta-json` variable for all writers (#2019). This contains
1242 a JSON version of all the metadata, in the format selected for the
1243 writer. So, for example, to get just the YAML metadata, you can run
1244 pandoc with the following custom template: `$meta-json$`. The intent
1245 is to make it easier for static site generators and other tools to get
1246 at the metadata.
1248 * Document limitations of --self-contained (#2553).
1250 * Improved Citations section of README (#2551). Added information
1251 about `link-citations` and a link to the pandoc-citeproc man page.
1253 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
1254 in base < 4.6.
1256 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
1258 * Improved implicit pandoc-citeproc inclusion.
1259 The filter pandoc-citeproc is automatically used when
1260 `--bibliography` is specified on the command line, unless
1261 `--natbib` or `--biblatex` is used. However, previously this
1262 only worked if `--bibliography` was spelled out in full, and not
1263 if `--biblio` was used.
1265 * reveal.js: Interpret pauses correctly for all headers (#2530).
1266 Previously, when using headers below the slide level, pauses are left
1267 uninterpreted into pauses. In my opinion, unexpected behavior but
1268 intentional looking at the code.
1270 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
1272 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
1273 Bieg, API change).
1275 * ImageSize: Added functions for converting between image dimensions
1276 (Mauro Bieg).
1278 * Use lts-3.18 in stack.yaml. This avoids Windows build
1279 issues with the HTTP library.
1281 * Bump version bounds for dependencies.
1283pandoc (1.15.2.1)
1285 * Added two missing test files, and `stack.yaml`, to
1286 `extra-source-files` so they're included in the source tarball.
1288 * reveal.js template: Fixed parallaxBackground options.
1289 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
1290 need integer values, not strings. (Vaughn Iverson)
1292pandoc (1.15.2)
1294 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
1295 ConTeXt rather than LaTeX (#2463).
1297 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
1299 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
1300 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
1301 (API change).
1303 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
1304 parsing (#2469). Tightened up the inline HTML parser so it disallows
1305 TagWarnings.
1307 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
1309 * Org reader:
1311 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
1312 Paragraphs can be followed by lists, even if there is no blank line
1313 between the two blocks. However, this should only be true if the
1314 paragraph is not within a list, were the preceding block should be
1315 parsed as a plain instead of paragraph (to allow for compact lists).
1316 Thanks to @rgaiacs for bringing this up.
1317 + Allow toggling header args (Albert Krewinkel, #2269).
1318 Org-mode allows to skip the argument of a code block header argument if
1319 it's toggling a value. Argument-less headers are now recognized,
1320 avoiding weird parsing errors.
1321 + Fix markup parsing in headers (Albert Krewinkel, #2504).
1322 Markup as the very first item in a header wasn't recognized. This was
1323 caused by an incorrect parser state: positions at which inline markup
1324 can start need to be marked explicitly by changing the parser state.
1325 This wasn't done for headers. The proper function to update the state
1326 is now called at the beginning of the header parser, fixing this issue.
1327 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
1328 Smart quotes, ellipses, and dashes should behave like normal quotes,
1329 single dashes, and dots with respect to text markup parsing.
1330 + Require whitespace around definition list markers (#2518).
1331 This rule was not checked before, resulting in bugs with footnotes
1332 and some link types.
1334 * Markdown reader:
1336 + Pipe tables with long lines now get relative cell widths (#2471).
1337 If a pipe table contains a line longer than the column width (as set by
1338 `--columns` or 80 by default), relative widths are computed based on the
1339 widths of the separator lines relative to the column width. This should
1340 solve persistent problems with long pipe tables in LaTeX/PDF output, and
1341 give more flexibility for determining relative column widths in other
1342 formats, too. For narrower pipe tables, column widths of 0 are used,
1343 telling pandoc not to specify widths explicitly in output formats that
1344 permit this.
1345 + Improved parser for `mmd_title_block`. We now allow blank metadata
1346 fields. These were explicitly disallowed before.
1347 + Citation keys can now contain `://`, so URLs and DOIs can be used
1348 as citation keys (jgm/pandoc-citeproc#166).
1350 * Beamer template: fix incompatibility of section slides with natbib.
1351 Natbib (and presumably biblatex) bibliography commands create
1352 their own section. Since these are in frame environments,
1353 we have an incompatibility with the `\AtBeginSection` macro
1354 which creates a special frame when a new section occurs.
1355 (We can't have a frame inside another frame.) This change disables
1356 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
1357 bringing the problem to my attention. This supersedes #145. See
1358 discussion there.
1360 * Textile reader: don't do smart punctuation unless explicitly asked
1361 (#2480). Note that although smart punctuation is part of the textile
1362 spec, it's not always wanted when converting from textile
1363 to, say, Markdown. So it seems better to make this an option.
1365 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
1366 The `comment` environment is handled in a similar way to the
1367 `verbatim` environment, except that its content is discarded.
1369 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
1370 Jesse Rosenthal). This fixes a problem with links in notes.
1372 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
1373 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
1374 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
1375 they aren’t set already. See #895.
1377 * LaTeX writer:
1379 + Use proper command for `\textarabic` (Mauro Bieg).
1380 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
1381 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
1382 to link to Div or Span elements. We now don't bother defining `\label`
1383 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
1384 + Avoid footnotes in list of figures (#1506).
1385 + Properly handle footnotes in captions (#1506).
1386 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
1387 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
1388 `toccolor` is set (#2508).
1390 * Textile writer: support start number in ordered lists (#2465).
1392 * OpenDocument writer: Allow customization of opendocument
1393 automatic styles. Automatic styles can now be inserted in the
1394 template, which now provides the enclosing `<office:automatic-styles>`
1395 tags (#2520).
1397 * Docx writer: insert space between footnote reference and note (#2527).
1398 This matches Word's default behavior.
1400 * EPUB writer: don't download linked media when `data-external` attribute
1401 set (#2473). By default pandoc downloads all linked media and includes it
1402 in the EPUB container. This can be disabled by setting `data-external` on
1403 the tags linking to media that should not be downloaded. Example:
1405 <audio controls="1">
1406 <source src="http://example.com/music/toccata.mp3"
1407 data-external="1" type="audio/mpeg">
1408 </source>
1409 </audio>
1411 * HTML writer: use width on whole table if col widths sum to < 100%.
1412 Otherwise some browsers display the table with the columns
1413 separated far apart.
1415 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
1416 `abstract` (Andrew Dunning).
1418 * HTML-based templates (Andrew Dunning):
1420 + Use en dash instead of hyphen between title prefix and title.
1421 + Add `keywords` to metadata.
1422 + Add `lang`, `dir`, `quotes` where missing.
1423 + Always make author and date display conditional.
1424 + Updated dzslides template from source.
1426 * Man template: make "generated by" comment conditional.
1428 * LaTeX, Beamer templates:
1430 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
1431 filled by commands that make babel understand the polyglossia-style
1432 language directives (Mauro Bieg, #137).
1433 + Improved formatting of conditionals; `$for$` is always provided to allow
1434 multiple options (Andrew Dunning, #141).
1435 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
1436 to improve support for LuaTeX (Andrew Dunning, #135).
1437 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
1438 - use same options for all LaTeX engines;
1439 - add `subtitle` and `keywords` to PDF metadata;
1440 - do not override `hyperref` link coloring without user input, effectively making
1441 the `hidelinks` option the default (removed as a separate variable);
1442 - link colors can be enabled (using a slightly darker version of the old
1443 defaults) using a new `colorlinks` variable, automatically used by
1444 the LaTeX writer when custom colors are specified;
1445 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
1446 `colorlinks`, and is only applied if `colorlinks` is disabled.
1448 * ConTeXt template (Andrew Dunning):
1450 + New variables for controlling styles: `linkstyle`, `linkcolor`,
1451 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
1452 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
1453 `monofont`, `mathfont`, `fontsize`.
1454 + Default template no longer supports MkII.
1455 + Improve writing of title block (suppressing numbering of first page).
1456 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
1457 + Support `subtitle`, `abstract`.
1458 + Support list of figures (`lof`), list of tables (`lot`).
1459 + Disable link styling by default.
1460 + Define styles for all section types.
1461 + Enable microtype.
1462 + Improved formatting of conditionals.
1464 * Beamer template: added code to prevent slide breaks inside paragraphs
1465 (#2422, thanks to Nick Bart). This will matter, in practice, only when
1466 `allowframebreaks` is used. It is especially helpful for bibliography
1467 slides.
1469 * OpenDocument template: Add `<office:automatic-styles>` tag around
1470 automatic styles. The writer now longer provides this (see #2520).
1472 * Restored Text.Pandoc.Compat.Monoid.
1474 * Do not export (<>) from custom Prelude. The Prelude now matches
1475 base 4.8 Prelude's API.
1477 * Don't use custom prelude with ghc 7.10. Use the custom prelude
1478 only for earlier versions. This change makes `stack ghci` and
1479 `cabal repl` work (#2503), at least with ghc 7.10.
1481 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
1482 This prevents problems building haddocks with "C" locale.
1484 * Change default for old-locale flag to False.
1486 * Use stack in deb, osx, and Windows package generators.
1488 * Added Vagrantfile for building deb in vm.
1489 This should help in automating binary package creation. 'make package'
1490 will make the package. 'make package COMMIT=blah' will make the package
1491 from commit blah.
1493 * README:
1495 + Consistent capitalization for pandoc and Markdown.
1496 + Fixed `auto_identifiers` examples (Benoit Schweblin).
1497 + Improved documentation of template variables (Andrew Dunning).
1499pandoc (1.15.1.1)
1501 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
1502 This way we have uniform separators, whether on Windows or Linux.
1503 This should solve a problem where on some Windows versions
1504 the data files weren't being found (#2459).
1506pandoc (1.15.1)
1508 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
1509 and reexported from `Text.Pandoc` (Alex Vong). This allows
1510 writers to access it. (Alex Vong) (API change)
1512 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
1513 `subscripts` (#2401).
1515 * Added `odt` as input format (Martin Linnemann). Added new module
1516 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
1517 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
1518 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
1519 Partly implemented features: Citations, Tables.
1521 * Markdown Reader:
1523 + Add basic tests for each header style (Ophir Lifshitz).
1524 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
1525 + Skip spaces in headers (Ophir Lifshitz).
1526 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
1527 `# Header {id="myid" class="foo bar"}`
1528 is now equivalent to `# Header {#myid .foo .bar}`.
1529 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
1530 (Kristof Bastiaensen)
1531 + Pipe tables: allow indented columns. Previously the left-hand column
1532 could not start with 4 or more spaces indent. This was inconvenient
1533 for right-aligned left columns. Note that the first (header column)
1534 must still have 3 or fewer spaces indentation, or the table will be
1535 treated as an indented code block.
1536 + Fix regression: allow HTML comments containing `--`.
1537 Technically this isn't allowed in an HTML comment, but
1538 we've always allowed it, and so do most other implementations.
1539 It is handy if e.g. you want to put command line arguments
1540 in HTML comments.
1542 * LaTeX reader:
1544 + Don't eat excess whitespace after macros with only optional
1545 arguments (#2446).
1546 + Support longtable (#2411).
1547 + Implement `\Cite` (#2335).
1548 + Support abstract environment. The abstract populates an
1549 `abstract` metadata field.
1550 + Properly handle booktabs lines. Lines aren't part of the
1551 pandoc table model, so we just ignore them (#2307).
1553 * HTML reader:
1555 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
1556 + Updated for new automatic header attributes.
1557 + Add auto identifiers if not present on headers. This makes
1558 TOC linking work properly.
1559 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
1560 + Test `<ol>` type, class, and inline list-style(-type) CSS
1561 (Ophir Lifshitz).
1562 + Better handling of "section" elements (#2438). Previously
1563 `<section>` tags were just parsed as raw HTML blocks. With
1564 this change, section elements are parsed as Div elements with
1565 the class "section".
1567 * MediaWiki reader: handle unquoted table attributes (#2355).
1569 * DocBook reader:
1571 + Added proper support for DocBook `xref` elements (Frerich Raabe).
1572 Added `dbContent` field to reader state, so we can lookup
1573 cross refs.
1574 + Handle `informalexample` (#2319).
1576 * Docx Reader:
1578 + Create special punctuation test (Ophir Lifshitz).
1579 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
1580 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
1581 in `headers.docx` with pandoc's current `styles.xml`, which
1582 contains styles for Heading 1 through 6. Added Heading 4
1583 through 7 to the test document. Note that Heading 7 is not
1584 parsed as a Heading because there is no Heading 7 style.
1586 * RST reader: better handling of indirect roles.
1587 Previously the parser failed on this kind of case
1589 .. role:: indirect(code)
1591 .. role:: py(indirect)
1592 :language: python
1594 :py:`hi`
1596 Now it correctly recognizes `:py:` as a code role.
1598 * Org reader:
1600 + Add auto identifiers if not present on headers
1601 (#2354, Juliusz Gonera).
1602 + Allow verse blocks to contain empty lines (#2402,
1603 Albert Krewinkel).
1605 * EPUB reader: stop mangling external URLs (#2284).
1607 * RST writer:
1609 + Don't insert `\ ` when complex expression in matched pairs.
1610 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
1611 + Ensure that `\ ` is inserted when needed before Cite and Span
1612 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
1613 + Normalize headers only in "standalone" mode (#2394).
1615 * Haddock writer: escape `*` and `^` (G. Bataille).
1617 * Markdown writer:
1619 + In TOC, add links to headers (#829).
1620 + Use unicode super/subscripts for digits in plain output
1621 (when the `superscripts` and `subscripts` extensions are
1622 not enabled).
1624 * Docx writer:
1626 + Moved invalid character stripping to `formattedString`.
1627 This avoids an inefficient generic traversal (#2356).
1628 + Use user data directory for `reference.docx` archive.
1629 This allows the test suite to work without installing pandoc first.
1630 It also brings the docx writer in line with the odt writer.
1631 + Tests: docx writer tests now use `../data` for data directory.
1632 This allows tests to be run without installing first.
1633 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
1635 * LaTeX writer:
1637 + Fixed detection of 'chapters' from template.
1638 If a documentclass isn't specified in metadata, but the
1639 template has a hardwired bookish documentclass, act as if
1640 `--chapters` was used. This was the default in earlier
1641 versions, but it has been broken for a little while.
1642 + Correctly recognize book documentclass in metadata (#2395).
1643 + Set language-related variables automatically, depending
1644 on the value of the `lang` field, which is now always
1645 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
1646 + Add `\protect` to `\hyperdef` in inline context. This way we
1647 don't get an error when this is used as a moveable argument (#2136).
1648 + Support all frame attributes in Beamer.
1649 + Percent-encode more special characters in URLs (#1640, #2377).
1650 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
1652 * HTML writer:
1654 + Update KaTeX JS and CSS versions (Emily Eisenberg).
1655 + For dzslides, add `role="note"` for speaker notes (#1693).
1656 + Percent-encode more special characters in URLs (#1640, #2377).
1657 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
1658 + Render Div with class `section` as `<section>` in HTML5.
1660 * EPUB writer:
1662 + In TOC, replace literal `<br/>` with space (#2105).
1663 + With `--webtex`, include image file rather than `data:` URI (#2363).
1665 * Native writer: format Div properly, with blocks separated.
1667 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
1668 (#2191, Mauro Bieg).
1670 * Reference Docx:
1672 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
1673 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
1675 * Templates
1677 + Beamer: Add `innertheme`, `outertheme` variables
1678 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
1679 Integrate recent font and language updates from LaTeX template;
1680 allow use of `mainfont` variable for changing the slide text
1681 in XeTeX and LuaTeX (Andrew Dunning, #131).
1682 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
1683 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
1684 (Andrew Dunning, #122). Support handling of bidirectional
1685 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
1686 under XeTeX and prevent letters and numbers from appearing on a
1687 different baseline by removing use of the `realscripts` package
1688 (via `xltxtra`). To restore use of OpenType characters for these
1689 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
1690 `header-includes` (Andrew Dunning, #130). Remove redundant
1691 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
1692 `indent`, `subparagraph` variables (Andrew Dunning).
1693 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
1694 #113). Prevent package clash with `tufte-latex` and other classes that
1695 include `hyperref` or `color` (Xavier Olive, #115).
1696 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
1697 + LaTeX and ConTeXt: Use more specific language variables.
1698 Instead of directly using `lang`, we now use `babel-lang` and
1699 `polyglossia-lang` and `context-lang`. These variables are set by
1700 the writers to the necessary values, based on the `lang` variable
1701 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
1702 #129).
1703 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
1704 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
1705 Add dir attribute in html5 (Andrew Dunning).
1706 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
1707 Add `width`, `height` variables (Andrew Dunning). Update template
1708 from 3.1 source (Andrew Dunning). All configuration options are now
1709 available as variables, but are only be included if set (reveal.js
1710 uses defaults otherwise).
1711 + man: Added comment stating that the page is autogenerated by pandoc,
1712 giving version. Added `adjusting` and `hyphenate` variables
1713 (Alex Vong, #123).
1715 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
1717 * MediaBag: ensure that `/` is always used as path separator.
1719 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
1721 * Added `--bash-completion` option. This generates a bash completion
1722 script. To use: `eval "$(pandoc --bash-completion)"`.
1724 * Text.Pandoc.Error: Define Typeable and Exception instances
1725 for PandocError (#2386).
1727 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
1728 This makes keys with extra space at the beginning and end
1729 work: e.g.
1731 [foo]: bar
1733 [ foo ]
1735 will now be a link to bar (it wasn't before).
1737 * Text.Pandoc: disable `auto_identifiers` for epub.
1738 The epub writer inserts its own auto identifiers;
1739 this is more complex due to splitting into "chapter" files.
1741 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
1742 It now reexports Data.Time.
1744 * Use custom Prelude to avoid compiler warnings.
1746 + The (non-exported) prelude is in prelude/Prelude.hs.
1747 + It exports Monoid and Applicative, like base 4.8 prelude,
1748 but works with older base versions.
1749 + It exports (<>) for mappend.
1750 + It hides 'catch' on older base versions.
1752 * Added a `stack.ymal` and stack install instructions to INSTALL.
1754 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
1756 * Added note to CONTRIBUTING.md about ghc versions and travis.
1758 * Clarify docs on block quotes. The space after `>` is optional (#2346).
1760 * Removed obsolete reference to default.csl (#2372).
1762 * List all styles in manual for `--reference-docx` (Chris Black)
1764 * Don't capitalize header links in man page.
1766 * Added section on repl to CONTRIBUTING.md.
1768 * README: Added space after backslash in image example (#2329).
1770 * Document details of citation locator terms (Nick Bart).
1772 * Fixed some internal links in README (#2309).
1774 * Improve CSL documentation, variables documentations,
1775 links, and cross-references in README. (Andrew Dunning)
1777 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
1779 * Use `newManager` instead of `withManager` in recent `http-client`.
1780 This avoids a deprecation warning.
1782 * Allow building with latest versions of http-types,
1783 HUnit, criterion, syb, aeson.
1785 * Updated benchmark program for new criterion API.
1787 * Setup.hs: rewrite so as not to use process, directory, filepath.
1788 Using anything outside base is dangerous, since older
1789 versions of ghc may link against two different versions.
1791 * Added appveyor (Windows continuous integration) builds.
1793 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
1794 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
1795 `make .travis.yml` regenerates it based on the tested-with
1796 field of the cabal file.
1798pandoc (1.15.0.6)
1800 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
1801 Previously `--self-contained` wiped out all spaces in CSS,
1802 including semantically significant spaces. This was a regression
1803 from 1.14.x.
1805 * Markdown reader: don't allow bare URI links or autolinks in link
1806 label (#2300). Added test cases.
1808 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
1809 Previously we disallowed `-` at the end of an autolink,
1810 and disallowed the combination `=-`. This commit liberalizes the
1811 rules for allowing punctuation in a bare URI, and adds test cases.
1812 One potential drawback is that you can no longer put a bare
1813 URI in em dashes like this:
1814 `this uri---http://example.com---is an example.`
1815 But in this respect we now match github's treatment of bare URIs.
1817 * HTML writer: support speaker notes in dzslides.
1818 With this change `<div class="notes">` and also `<div class="notes"
1819 role="note">` will be output if `-t dzslides` is used. So we can
1820 have speaker notes in dzslides too. Thanks to maybegeek.
1822 * Updated dzslides template.
1824 * Improved documentation of options to print system default files (#2298).
1825 `--print-default-data-file` and `--print-default-template`.
1827 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
1828 (Tiziano Müller). MathJax seems currently to be the only maintained
1829 math rendering extension for DokuWiki.
1831 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
1832 div as top-level header (#2294). This fixes a bug with `--section-divs`,
1833 where the final references section added by pandoc-citeproc, enclosed in
1834 its own div, got nested in the div for the section previous to it.
1836 * Allow vector 0.11.
1838 * Require cmark > 0.4.
1840pandoc (1.15.0.5)
1842 * HTML writer: Fixed email javascript obfuscation with `mailto:`
1843 URLs (#2280). This fixes a potential security issue. Because
1844 single quotes weren't being escaped in the link portion, a
1845 specially crafted email address could allow javascript code injection.
1847 * Markdown/HTML readers: Avoid parsing partial URLs like
1848 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
1850 * RST reader: allow inline formatting in definition list field
1851 names (Lars-Dominik Braun).
1853 * PDF: Make sure `--latex-engine-opt` goes before the filename
1854 on the command line. LaTeX needs the argument to come after
1855 the options (#1779).
1857 * CommonMark writer: fixed tags used for super/subscript.
1859 * ConTeXt template: activate hanging indent for definition lists
1860 (Mauro Bieg).
1862 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
1863 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
1864 to include `hsb2hs` in Build-Tools in cabal.
1866 * Improved Windows installer (thanks to nkalvi).
1868 + When per-machine installation is chosen, the system path
1869 is updated instead of the user's.
1870 + An appropriate default is used for per-machine installation
1871 directory.
1872 + Admin privileges are no longer required for a per-user install
1874 * Travis: unpack sdist for build to catch packaging bugs.
1876 * Improved documentation on where user templates go (#2272).
1878pandoc (1.15.0.4)
1880 * Added pandoc.1 man page to the repository. It is no longer
1881 built as part of the cabal build process. (This proved too
1882 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
1883 when `README` is changed.
1885 * Copying of the man page now respects `--destdir` (#2262).
1887 * Improved error messages for filters. User is now informed if
1888 the filter requires an interpreter that isn't found in the path,
1889 or if the filter returns an error status.
1891pandoc (1.15.0.3)
1893 * Ensure target directory is created when installing man page.
1895pandoc (1.15.0.2)
1897 * Added files needed for building man page to Extra-Source-Files.
1899pandoc (1.15.0.1)
1901 * Man page is now built and installed as part of the cabal build
1902 process. Removed Makefile target for man page.
1904pandoc (1.15)
1906 * Man page changes:
1908 + Removed `--man1`, `--man5` options (breaking change).
1909 + Removed `Text.Pandoc.ManPages` module (breaking API change).
1910 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
1911 create the man page from README using a custom template and filters.
1912 + Added `man/` directory with template and filters needed to build
1913 man page.
1914 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
1915 Now there is just pandoc.1, which has all the content from README.
1916 This change was needed because of the extensive cross-references
1917 between parts of the README.
1918 + Removed old `data/pandoc.1.template` and
1919 `data/pandoc_markdown.5.template`.
1921 * OpenDocument writer: Do not add a carriage return after a hard
1922 line break (Michael Chladek).
1924 * ConTeXt writer:
1926 + use `\goto` for internal links.
1927 + Added a `%` at end for `\reference` to avoid spurious space.
1929 * Ignore sandbox on 'make quick'
1931pandoc (1.14.1)
1933 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
1934 to generate its own man pages. Man pages are no longer automatically
1935 generated in the build process (the process for this was too complex
1936 and prone to failure, #2190). The `make-pandoc-man-pages` executable
1937 has been removed. The `man/` directory has been removed, and man page
1938 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
1939 longer find pandoc's man pages in `man/`, but you can generate them using
1940 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
1942 * Added new unexported module: `Text.Pandoc.ManPages`.
1944 * `README` now acts like a data file (even though it isn't in
1945 `data/`). So, for example, `pandoc --print-default-data-file README`
1946 will produce the README.) This change was required for the `--man1`
1947 and `--man5` options, since the man pages are produced from the
1948 README, but it may be useful for other purposes as well.
1950 * Allow `reference.docx` and `reference.odt` to be used with
1951 `--print-default-data-file` and to shadow defaults if placed in
1952 the user data directory. Note that as of 1.14, we no longer
1953 include these files as data files; instead, we include their
1954 components. This change causes pandoc to behave as if it has
1955 these data files; they are constructed on demand when needed
1956 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
1958 * Fixed regression in CSS parsing with `--self-contained` (#2224).
1959 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
1960 silently drops big sections of CSS. This commit replaces the
1961 use of css-text with a small but principled CSS preprocessor,
1962 which removes whitespace and comments and replaces `url()` with
1963 base 64 data when possible.
1965 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
1966 This will allow math to work when pages are being viewed locally.
1968 * `Text.Pandoc.Options`: Export `plainExtensions`.
1969 These are the extensions used in `plain` output.
1971 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
1972 math mode; treat them as regular inline text. Normally these will
1973 cause an error in LaTeX, but there are contexts (e.g. `alltt`
1974 environments) where they are allowed.
1976 * HTML reader: allow `<body>` to close `<head>`.
1978 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
1980 * RST reader: Fix reference names with special characters
1981 (Lars-Dominik Braun).
1983 * Textile writer: escape `+` and `-` as entities (#2225).
1985 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
1987 * Plain writer: don't use symbols for super/subscript (#2237).
1988 Simplified code by using `plainExtensions`.
1990 * InDesign writer: Properly escape URLs containing more than one
1991 colon character (gohai).
1993 * Docx writer: Make sure we use dist version of `reference.docx`
1994 (and not the user's version) for certain settings. Taking some
1995 settings values from a user-supplied reference.docx can lead to
1996 corruption. This fixes a regression from the last release (#2249).
1998 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
1999 `getDefaultReferenceODT` (API change). These functions have been
2000 removed from the Docx and ODT writers.
2002 * LaTeX template (Xavier Olive):
2003 + Added `CJKmainfont` and `CJKoptions` variables.
2004 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
2006 * Epub templates: use `author.role`, not `author.type`.
2008 * Bump cmark version to >= 0.3.4.
2010 * Improved Windows installer (#2205, thanks to nkalvi).
2011 Users can now select a per-user or systemwide install, and can set
2012 the installation path. At the end of installation, the install location
2013 is given. The install location is also now given in the list of
2014 installed programs in Control Panel. Cleaner WiX syntax is used for
2015 setting the path.
2017 * Added `download_stats` target to Makefile.
2019pandoc (1.14.0.4)
2021 * Added missing commonmark template.
2023 * Improved try pandoc (moved button, show raw command).
2025pandoc (1.14.0.3)
2027 * Allow compilation with syb 0.5.*.
2029 * Custom writer: fixed some compiler warnings for ghc < 7.10.
2031pandoc (1.14.0.2)
2033 * Allow building with hslua 0.4.
2035pandoc (1.14.0.1)
2037 * Fixed problem with building of `reference.docx` and `reference.odt`
2038 when the `embed_data_files` flag is used. Instead of having a phase
2039 of the build where `reference.docx` and `reference.odt` are created
2040 from their constituent data files, we now construct these archives
2041 from their constituents when a `docx` or `odt` is built. The
2042 constituent files have been moved from `extra-source-files` to
2043 `data-files`, and `reference.docx` and `reference.odt` have been
2044 removed. Users can create their own `reference.docx` or
2045 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
2046 `make-reference-files.hs` has been removed, simplifying the build
2047 process (#2187)
2049 * Don't include generated man pages in extra-source-files (#2189).
2051 * Bumped upper bound for aeson.
2053 * ConTeXt writer: create internal link anchors for Div elements with
2054 identifiers. (This is needed for linked citations to work.)
2056pandoc (1.14)
2058 [new features]
2060 * Added `commonmark` as input and output format.
2062 * Added `--verbose` flag for debugging output in PDF production (#1840,
2063 #1653).
2065 * Allow wildcards in `--epub-embed-font` arguments (#1939).
2067 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
2069 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
2070 This is enabled by default for those markdown flavors that
2071 support reading shortcut reference links, namely: `markdown`,
2072 `markdown_strict`, `markdown_github`, `markdown_php`.
2073 If the extension is enabled, the reader parses shortcut reference
2074 links like `[foo]`, and the writer creates such links unless doing
2075 so would cause problems. Users of markdown flavors that support
2076 shortcut reference links should not notice a difference in reading
2077 markdown, but the markdown pandoc produces may differ.
2078 If shortcut links are not desired, the extension can be disabled
2079 in the normal way.
2081 [behavior changes]
2083 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
2084 A "dirty" TOC is created at the beginning of document.
2085 It can be regenerated after the document has been opened.
2087 * An implicit `--filter pandoc-citeproc` is now triggered only when the
2088 `--bibliography` option is used, and not when the `bibliography`
2089 field in metadata is specified (#1849).
2091 * Markdown reader:
2093 + Reference links with `implicit_header_references` are no longer
2094 case-sensitive (#1606).
2095 + Definition lists no longer require indentation for first line (#2087).
2096 Previously the body of the definition (after the `:` or `~` marker)
2097 needed to be in column 4. This commit relaxes that requirement,
2098 to better match the behavior of PHP Markdown Extra. So, now
2099 this is a valid definition list:
2101 foo
2102 : bar
2103 + Resolve a potentially ambiguity with table captions:
2105 foo
2107 : bar
2109 -----
2110 table
2111 -----
2113 Is "bar" a definition, or the caption for the table? We'll count
2114 it as a caption for the table.
2115 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
2116 Markdown Extra. Note: If you have been using headerless pipe tables,
2117 this change may cause existing tables to break.
2118 + Allow pipe tables with header but no body (#2017).
2119 + Allow a digit as first character of a citation key (Matthias Troffaes).
2120 See https://github.com/jgm/pandoc-citeproc/issues/97
2122 * LaTeX reader:
2124 + Don't limit includes to `.tex` extension (#1882).
2125 If the extension is not `.tex`, it must be given explicitly in
2126 the `\input` or `\include`.
2128 * Docx reader:
2130 + Allow numbering in the style file. This allows inherited styles
2131 with numbering (lists) (Jesse Rosenthal).
2133 * Org reader:
2135 + Support smart punctuation (Craig Bosma).
2136 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
2137 `:noexport:` tag set are not exported. This mirrors org-mode.
2138 + Put header tags into empty spans (Albert Krewinkel, #2160).
2139 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
2140 Instead of being interpreted as part of the headline, the tags are now
2141 put into the attributes of empty spans. Spans without textual content
2142 won't be visible by default, but they are detectable by filters. They
2143 can also be styled using CSS when written as HTML.
2144 + Generalize code block result parsing (Albert Krewinkel).
2145 Previously, only code blocks were recognized as result blocks;
2146 now, any kind of block can be the result.
2148 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
2149 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
2151 * HTML writer:
2153 + Add "inline" or "display" class to math spans (#1914).
2154 This allows inline and display math to be styled differently.
2155 + Include raw latex blocks if `--mathjax` specified (#1938).
2156 + Require highlighting-kate >= 0.5.14 (#1903).
2157 This ensures that all code blocks will be wrapped in a `div`
2158 with class `sourceCode`. Also, the default highlighting CSS
2159 now adds `div.sourceCode { x-overflow: auto; }`, which means
2160 that code blocks (even with line numbers) will acquire a scroll
2161 bar on screens too small to display them (e.g. mobile phones).
2162 See also jgm/highlighting-kate#65.
2164 * LaTeX writer:
2166 + Use a declaration for tight lists (Jose Luis Duran, Joseph
2167 Harriott). Previously, pandoc hard-coded some commands to make
2168 tight lists in LaTeX. Now we use a custom command instead,
2169 allowing the styling to be changed in a macro in the header.
2170 (Note: existing templates may need to be modified to include
2171 the definition of this macro. See the current template.)
2172 + Beamer output: if the header introducing a slide has the
2173 class `fragile`, add the `[fragile]` option to the slide (#2119).
2175 * MediaWiki writer:
2177 + Use `File:` instead of the deprecated `Image:` for images and
2178 other media files (Greg Rundlett).
2180 * DocBook writer:
2182 + Render a `Div (id,_,_) [Para _]` element as a `para` element
2183 with an `id` attribute. This makes links to citations work in
2184 DocBook with pandoc-citeproc.
2186 * RST writer:
2188 + Normalize headings to sequential levels (Nikolay Yakimov).
2189 This is pretty much required by docutils.
2190 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
2191 + Better handling of raw latex inline (#1961). We use
2192 `` :raw-latex:`...` `` and add a definition for this role to
2193 the template.
2195 * EPUB writer:
2197 + Remove `linear=no` from cover `itemref` (#1609).
2198 + Don't use `sup` element for epub footnotes (#1995).
2199 Instead, just use an a element with class `footnoteRef`.
2200 This allows more styling options, and provides better results
2201 in some readers (e.g. iBooks, where anything inside the a
2202 tag breaks popup footnotes).
2203 + Take TOC title from `toc-title` metadata field.
2205 * Docx writer:
2207 + Implemented `FirstParagraph` style (Jesse Rosenthal).
2208 Following the ODT writer, we add the `FirstParagraph` style to the
2209 first text paragraph following an image, blockquote, table, heading,
2210 or beginning of document. This allows it to be styled differently.
2211 The default is for it to be the same as `Normal`.
2212 + Added `BodyText` style (Jesse Rosenthal).
2213 We apply a `BodyText` style to all unstyled paragraphs. This is,
2214 essentially, the same as `Normal`, except that since not everything
2215 inherits from `BodyText` (the metadata won't, for example, or
2216 the headers or footnote numbers), we can change the text in the body
2217 without having to make exceptions for everything. If we do want to
2218 change *everything*, we can still do it through `Normal`.
2219 + Altered `Blockquote` style slightly (Jesse Rosenthal).
2220 Since `BlockQuote` derives from `BodyText`, we just want to specify
2221 by default that it won't indent, regardless of what `BodyText` does.
2222 Note that this will not produce any visible difference in the default
2223 configuration.
2224 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
2225 + Added a style to figure images (Nikolay Yakimov).
2226 Figures with empty captions use style `Figure`.
2227 Figures with nonempty captions use style `Figure with Caption`, which
2228 is based on `Figure`, and additionally has `keepNext` set.
2230 * ODT writer:
2232 + Added figure captions (Nikolay Yakimov). The following styles are
2233 used for figures:
2234 `Figure` -- for figure with empty caption),
2235 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
2236 `FigureCaption` (based on `Caption`) -- for figure captions.
2237 Also, `TableCaption` (based on `Caption`) is used for table captions.
2239 [API changes]
2241 * New `Text.Pandoc.Error` module with `PandocError` type
2242 (Matthew Pickering).
2244 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
2245 (Matthew Pickering). This allows better handling of errors.
2247 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
2249 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
2251 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
2252 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
2253 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
2254 Youssefi).
2256 * New `Ext_shortcut_reference_links` constructor for `Extension`
2257 (Konstantin Zudov).
2259 [bug fixes]
2261 * Markdown reader:
2263 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
2264 + Check for tex macros after indented code (#1973).
2265 + Rewrote `charsInBalancedBrackets` for efficiency.
2266 + Make sure a closing `</div>` doesn't get included in a
2267 definition list item (#2127).
2268 + Don't parse bracketed text as citation if it might be a link,
2269 image, or footnote (Nikolay Yakimov).
2270 + Require space after key in mmd title block (#2026, Nikolay
2271 Yakimov). Require space after key-value delimiter colon in mmd title
2272 block.
2273 + Require nonempty value in mmd title block (Nikolay Yakimov).
2274 + Disable all metadata block extensions when parsing
2275 metadata field values (#2026, Nikolay Yakimov). Otherwise we
2276 could get a mmd title block inside YAML metadata, for example.
2278 * HTML reader:
2280 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
2281 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
2282 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
2283 to see if the input starts with `<!--`. If not, it's bogus comment
2284 mode and we fail `htmlTag`.
2285 + Handle `base` tag; if it has an `href` value, this is added to
2286 all relative URLs in links and images.
2288 * DocBook reader:
2290 + Look inside "info" elements for section titles (#1931).
2292 * Docx reader:
2294 + Parse images in deprecated vml format (Jesse Rosenthal).
2295 + Allow sub/superscript verbatims (Jesse Rosenthal).
2296 Verbatim usually shuts off all other run styles, but we don't want it
2297 to shut off sub/superscript.
2299 * LaTeX reader:
2301 + Handle `tabular*` environment (#1850).
2302 Note that the table width is not actually parsed or taken into
2303 account, but pandoc no longer chokes on it.
2304 + Ignore options in `\lstinline` rather than raising error (#1997).
2305 + Add some test cases for simple tables (Mathias Schenner).
2306 + Handle valign argument in tables (Mathias Schenner) (currently
2307 we just ignore this).
2308 + Allow non-empty colsep in tables (Mathias Schenner).
2309 The `tabular` environment allows non-empty column separators
2310 with the "@{...}" syntax. Previously, pandoc would fail to
2311 parse tables if a non-empty colsep was present. With this
2312 commit, these separators are still ignored, but the table gets
2313 parsed. A test case is included.
2314 + Recognize `\newpage` as a block command.
2315 + Allow block content in \title{} (#2001).
2316 + Check for block-level newcommand aliases in blockCommand (Nikolay
2317 Yakimov).
2318 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
2319 + Properly gobble spaces after `\\` (#2007).
2321 * Textile reader:
2323 + Handle newlines in table cells, and empty cells (#1919).
2325 * Org reader:
2327 + Allow image links with non-image targets (Hans-Peter Deifel).
2328 This matches behavior of Org-Mode for links like
2329 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
2331 * Docbook writer:
2333 + Don't print empty id attributes (thanks to Steve Horne).
2335 * HTML writer:
2337 + Fixed list-style-type for numbered example lists.
2338 Should be "decimal," not "example" (#1902).
2339 + Do not omit missing `alt` attribute on `img` tag (#1131,
2340 Konstantin Zudov).
2341 + Allow multiple colgroups in table (#2122).
2342 + In revealjs, ensure that lists in speaker notes don't add "fragment"
2343 classes, which can cause additional keypresses to be needed to
2344 advance a slide (#1394).
2346 * LaTeX writer:
2348 + Don't escape `$` in URL (#1913).
2349 + Don't use listings in headers (Matthew Pickering, #1963).
2350 + Recognize book documentclass if set in metadata (#1971).
2351 This sets `--chapters` implicitly if the documentclass in metadata
2352 is a book documentclass. Previously this was done only if a book
2353 documentclass was set in a variable.
2354 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
2355 + Make `mainlang` work when `lang` is in metadata (#2174).
2357 * Texinfo writer:
2359 + Fix wrapping by using breakable spaces (Tim Lin).
2361 * RST writer:
2363 + Fixed toc depth in RST writer. Previously the depth was being
2364 rendered as a floating point number with a decimal point.
2366 * Markdown writer:
2368 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
2369 compatibility with original Markdown. We now escape `<` and `>`
2370 with entities. Also, we now backslash-escape square brackets.
2371 + Avoid introducing spurious list items through wrapping (#1946).
2372 + Don't emit span tags if plain or raw HTML disabled.
2374 * MediaWiki writer:
2376 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
2378 * AsciiDoc writer:
2380 + Insert some needed blank lines (#1860).
2381 + Avoid wrapping after list marker (#1858).
2383 * EPUB writer:
2385 + Properly handle internal links to IDs in spans, divs (#1884).
2386 + Use plain writer for metadata dc: fields (#2121).
2387 This gives better results when we have, e.g. multiple paragraphs.
2388 Note that tags aren't allowed in these fields.
2389 + Properly handle image links without an extension (#1855).
2390 + Improved chapter splitting and internal link rewriting (#1887,
2391 #2162, #2163). This will ensure that internal links work and
2392 that the references section produced by pandoc-citeproc is
2393 in its own chapter.
2394 + Fixed handling of svg images (#2183).
2396 * ICML writer:
2398 + Better handling of raw blocks and inlines (#1951).
2399 Previously these were always escaped and printed verbatim.
2400 Now they are ignored unless the format is `icml`, in which
2401 case they are passed through unescaped.
2402 + Fixed image URIs in ICML output (gohai).
2404 * Custom writer:
2406 + Raise error if loadstring returns an error status.
2407 + Raise `PandocLuaException` instead of using 'error'.
2408 Eventually we'll change the return type so that no exception
2409 is involved, but at least this can be trapped.
2410 + Use UTF-8 aware bytestring conversion.
2411 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
2412 Also factored out ByteString, since it's only used as an intermediate
2413 representation.
2415 * Docx writer:
2417 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
2418 + Filter out illegal XML characters (#1992, Matthew Pickering).
2419 + Added `noProof` to docx syntax highlighting `SourceCode` style.
2420 + Added footnotes id -1 and 0 (Jesse Rosenthal).
2421 Word uses, by default, footnotes with id -1 and 0 for separators. If a
2422 user modifies `reference.docx`, they will end up with a `settings.xml`
2423 file that references these footnotes, but no such footnotes in the
2424 document. This will produce a corruption error. Here we add these to the
2425 document and `settings.xml` file, so future modifications won't break
2426 the file.
2427 + Handle lists correctly inside table cells (Jesse Rosenthal).
2428 Previously we didn't transform lists inside table cells.
2429 + Set firstRow information in tables (Nikolay Yakimov).
2430 + Don't replace `SourceCode` style in `reference.docx` if it is defined
2431 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
2432 any `SourceCode` and `*Tok` styles in `reference.docx`.
2433 + Attempt to match international style names (#1607, Nikolay Yakimov).
2434 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
2435 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
2436 `Definition`, `First Paragraph`.
2437 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
2438 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
2439 `Footnote Ref -> Footnote Reference`.
2440 + Added `Caption` style (Nikolay Yakimov).
2441 + Changed these styles' inheritance (Nikolay Yakimov):
2442 `Image Caption <- Caption`, `Table Caption <- Caption`.
2443 + Remove `SourceCode` style from `reference.docx` (#1872).
2444 This is added automatically by the docx writer.
2445 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
2447 * `Text.Pandoc.PDF`
2449 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
2450 #1832).
2451 + More comprehensible errors on image conversion (#2067).
2452 EPS can't be supported without shelling out to something like
2453 ImageMagick, but at least we can avoid mysterious error messages.
2455 * `Text.Pandoc.Shared`:
2457 + Make safeRead safe (#1801, Matthew Pickering).
2458 + Addded `mapLeft`, `hush` (Matthew Pickering).
2460 * `Text.Pandoc.Pretty`:
2462 + Remove partial function (Matthew Pickering).
2464 * `Text.Pandoc.SelfContained`:
2466 + Add `;charset=utf-8` to script mime type if missing (#1842).
2467 + Improved building of data URIs (#1940). Now base64 is used except
2468 for `text/*` mime types.
2469 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
2470 + Properly handle data URIs in css urls (#2129).
2471 Use a proper CSS parser (adds dependency on `text-css`).
2473 * `Text.Pandoc.UTF8`:
2475 + Better handling of bare CRs in input files (#2132).
2476 Previously we just stripped them out; now we convert
2477 other line ending styles to LF line endings.
2479 * `Text.Pandoc.ImageSize`:
2481 + Fixed some exif header parsing bugs (#1834).
2482 + Make imageSize return an Either, not a Maybe (#1834).
2483 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
2484 parse failure (rather than `error`).
2485 + Improved warnings when image size can't be determined.
2486 + Removed error landmines (Matthew Pickering).
2488 * Added woff2 to MIME types (Alfred Wechselberger).
2490 * pandoc: When a binary input format is used, warn that file
2491 arguments past the first one are being ignored (Matthew Pickering).
2493 [template changes]
2495 * LaTeX template:
2497 + Degrade gracefully if `\paragraph` not defined.
2498 + Include `grffile` together with `graphicx` (#2074).
2499 This properly handles filenames containing spaces and dots.
2500 + Redefine `\paragraph`, `\subparagraph`... to behave more
2501 like section headers (#1658).
2502 + Import hyperref before polyglossia to avoid an error with xelatex,
2503 "please load package hyperref before bidi package" (Nick Bart).
2504 + Added `toccolor` variable to control link color in toc (Kaixhin).
2506 * LaTeX, Beamer templates:
2508 + Provide `\tightlist`, which is now used by the LaTeX writer.
2509 + Use polyglossia in beamer (#85).
2510 + Use `bibliography` instead of `biblio-files`
2511 (#1661). Also use `\addbibresource` instead of `\bibliography` for
2512 biblatex.
2513 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
2514 variable that is derived from a comma-separated list in `lang`;
2515 the last language is `mainlang` and the others are `otherlang`.
2517 * EPUB templates:
2519 + Use `div`, not `p`, for "rights" on title page.
2520 + Added header-includes, include-before, include-after (#1987).
2522 * OpenDocument template:
2524 + Use `text:p` instead of `text:h` for title.
2525 Using `text:h` causes problems with numbering. Closes #2059.
2526 Thansk to @nkalvi for diagnosing this.
2528 * reveal.js template:
2530 + Link to non-minified css, js. The minified versions no longer
2531 ship with the library.
2532 + Correctly include style CSS (#1949).
2533 + New configurable options options: `center`, `maxScale`, `slideNuber`
2534 (Dmitry Smirnov, pandoc-templates#89).
2535 + Moved custom CSS after theme. This allows custom CSS to modify
2536 themes, instead of being replaced by them.
2537 + Allow `center` to be set to false.
2539 [under the hood improvements]
2541 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
2542 Yakimov). Instead the repository now includes the component text files,
2543 and the zipped binaries are built from these using a helper
2544 program, `make-reference-files`. This should make maintenance of
2545 these components easier going forward.
2547 * `Text.Pandoc.Parsing`:
2549 + Added new `<+?>` combinator (Nikolay Yakimov).
2550 + Added `stateHeaderKeys` to `ParserState`.
2552 * `make_deb.sh` fixes:
2554 + Detect architecture.
2555 + Add Installed-Size to debian package control file (#1900).
2556 + Use `fakeroot` to get permissions right.
2557 + Use `mkdir` and `cp` instead of `install`.
2558 + Set permissions of directories to 755.
2559 + Install in `/usr` rather than `/usr/local`.
2560 + Compress man pages.
2561 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
2563 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
2564 to assist with transition to `time` 1.5.
2566 * Updated CONTRIBUTING.md with information about issue tags (Matthew
2567 Pickering).
2569 * Updated travis installs to the new sudo-less syntax (Tim Lin).
2571 * Updated dependency version bounds.
2573 * EPUB tests: don't use `joinPath`, which varies across platforms.
2574 Instead, use a forward-slash to join paths, regardless of the
2575 platform. This matches the way `MediaBag` now works.
2577 * Clarify JSON input and output in usage message (Caleb McDaniel).
2579 * Improved INSTALL instructions.
2581 * Always build man pages. Removed make-pandoc-man-pages flag.
2583 * Makefile: removed man target, now that we generate man pages by default.
2585 * README:
2587 + Fixed typos (J. Lewis Muir).
2588 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
2589 + Added note on in-field markup in biblio databases (Nick Bart).
2590 + Fixed misleading example of raw HTML block.
2591 + Various minor formatting and consistency fixes for the program
2592 options (Andreas Lööw).
2593 + Made definition lists for options all "loose" for consistency.
2594 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
2595 `--bib2json` and `--bib2yaml` options (Nick Bart).
2596 + Removed obsolete reference to `mods2yaml` (Nick Bart).
2597 + Added section on syntax highlighting.
2598 + Documented `toccolor` variable.
2600pandoc (1.13.2.1)
2602 * Updated to build with ghc 7.10.1.
2604 * Bumped package upper bounds for filepath, blaze-html,
2605 blaze-markup.
2607pandoc (1.13.2)
2609 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
2611 * Markdown reader:
2613 + Better handling of paragraph in div (#1591).
2614 Previously text that ended a div would be parsed as Plain
2615 unless there was a blank line before the closing div tag.
2616 + Don't treat a citation as a reference link label (#1763).
2617 + Fix autolinks with following punctuation (#1811).
2618 The price of this is that autolinked bare URIs can no longer
2619 contain `>` characters, but this is not a big issue.
2620 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
2621 + Allow `startnum` to work without `fancy_lists`. Formerly
2622 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
2624 * RST reader (all Daniel Bergey):
2626 + Parse quoted literal blocks (#65). RST quoted literal blocks are
2627 the same as indented literal blocks (which pandoc already supports)
2628 except that the quote character is preserved in each line.
2629 + Parse RST class directives. The class directive accepts one or more
2630 class names, and creates a Div value with those classes. If the
2631 directive has an indented body, the body is parsed as the children of
2632 the Div. If not, the first block folowing the directive is made a
2633 child of the Div. This differs from the behavior of rst2xml, which
2634 does not create a Div element. Instead, the specified classes are
2635 applied to each child of the directive. However, most Pandoc Block
2636 constructors to not take an Attr argument, so we can't duplicate this
2637 behavior.
2638 + Warn about skipped directives.
2639 + Literal role now produces Code. Code role should have "code" class.
2640 + Improved support for custom roles
2642 - Added `sourceCode` to classes for `:code:` role, and anything
2643 inheriting from it.
2644 - Add the name of the custom role to classes if the Inline
2645 constructor supports Attr.
2646 - If the custom role directive does not specify a parent role,
2647 inherit from the `:span:` role.
2649 This differs somewhat from the `rst2xml.py` behavior. If a custom
2650 role inherits from another custom role, Pandoc will attach both
2651 roles' names as classes. `rst2xml.py` will only use the class of
2652 the directly invoked role (though in the case of inheriting from a
2653 `:code:` role with a `:language:` defined, it will also provide the
2654 inherited language as a class).
2655 + Warn about ignored fields in role directives.
2657 * LaTeX reader:
2659 + Parse label after caption into a span instead of
2660 inserting an additional paragraph of bracketed text (#1747).
2661 + Parse math environments as inline when possible (#1821).
2662 + Better handling of `\noindent` and `\greektext` (#1783).
2663 + Handle `\texorpdfstring` more gracefully.
2664 + Handle `\cref` and `\sep` (Wikiwide).
2665 + Support `\smartcite` and `\Smartcite` from biblatex.
2667 * HTML reader:
2669 + Retain display type of MathML output (#1719, Matthew Pickering).
2670 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
2671 + Make `embed` tag either block or inline (#1756).
2673 * DocBook reader:
2675 + Handle `keycombo`, `keycap` (#1815).
2676 + Get string content in inner tags for literal elements (#1816).
2677 + Handle `menuchoice` elements better, with a `>` between (#1817).
2678 + Include `id` on section headers (#1818).
2679 + Document/test "type" as implemented (Brian O'Sullivan).
2680 + Add support for calloutlist and callout (Brian O'Sullivan).
2681 We treat a calloutlist as a bulleted list. This works well in practice.
2682 + Add support for `classname` (Bryan O'Sullivan).
2684 * Docx reader:
2686 + Fix window path for image lookup (Jesse Rosenthal).
2687 Don't use os-sensitive "combine", since we always want the paths in our
2688 zip-archive to use forward-slashes.
2689 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
2690 When users number their headers, Word understands that as a single item
2691 enumerated list. We make the assumption that such a list is, in fact,
2692 a header.
2693 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
2694 There could be new top-level headers after making lists, so we have to
2695 rewrite links after that.
2696 + Use polyglot header list (Jesse Rosenthal).
2697 We're just keeping a list of header formats that different languages
2698 use as their default styles. At the moment, we have English, German,
2699 Danish, and French. We can continue to add to this.
2700 This is simpler than parsing the styles file, and perhaps less
2701 error-prone, since there seems to be some variations, even within a
2702 language, of how a style file will define headers.
2703 + Remove header class properly in other langs (Jesse Rosenthal).
2704 When we encounter one of the polyglot header styles, we want to remove
2705 that from the par styles after we convert to a header. To do that, we
2706 have to keep track of the style name, and remove it appropriately.
2707 + Account for external link URLs with anchors. Previously, if a URL
2708 had an anchor, the reader would incorrectly identify it as an
2709 internal link and return only the anchor as URL. (Caleb McDaniel)
2710 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
2712 * Org reader:
2714 + Added state changing blanklines (Jesse Rosenthal).
2715 This allows us to emphasize at the beginning of a new paragraph (or, in
2716 general, after blank lines).
2717 + Fixed bug with bulleted lists:
2719 - a
2720 - b
2721 * c
2723 was being parsed as a list, even though an unindented `*`
2724 should make a heading. See
2725 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
2726 + Org reader: absolute, relative paths in link (#1741, Albert
2727 Krewinkel). The org reader was too restrictive when parsing links;
2728 some relative links and links to files given as absolute paths
2729 were not recognized correctly.
2730 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
2731 This is important for use in gitit, which uses empty links
2732 for wikilinks.
2733 + Respect indent when parsing Org bullet lists (#1650, Timothy
2734 Humphries). Fixes issue with top-level bullet list parsing.
2735 + Fix indent issue for definition lists (Timothy Humphries,
2736 see #1650, #1698, #1680).
2737 + Parse multi-inline terms correctly in definition list (#1649,
2738 Matthew Pickering).
2739 + Fix rules for emphasis recognition (Albert Krewinkel).
2740 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
2741 strings. This is wrong, as `,` and `'` are forbidden border chars and
2742 may not occur on the inner border of emphasized text.
2743 + Drop COMMENT document trees (Albert Krewinkel).
2744 Document trees under a header starting with the word `COMMENT` are
2745 comment trees and should not be exported. Those trees are dropped
2746 silently (#1678).
2747 + Properly handle links to `file:target` (Albert Krewinkel).
2748 Org links like `[[file:target][title]]` were not handled correctly,
2749 parsing the link target verbatim. The org reader is changed such that
2750 the leading `file:` is dropped from the link target (see #756, #1812).
2751 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
2752 Org supports special symbols which can be included using LaTeX syntax,
2753 but are actually MathML entities. Examples for this are
2754 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
2755 or `\copy` (the copyright sign ©)
2757 * EPUB reader:
2759 + URI handling improvements. Now we outsource most of the work to
2760 `fetchItem'`. Also, do not include queries in file extensions (#1671).
2762 * LaTeX writer:
2764 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
2765 + Handle consecutive linebreaks (#1733).
2766 + Protect graphics in headers (Jesse Rosenthal).
2767 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
2768 + Put `~` before header in list item text (Jesse Rosenthal).
2769 Because of the built-in line skip, LaTeX can't handle a section header
2770 as the first element in a list item.
2771 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
2772 + Better handling of display math in simple tables (#1754).
2773 We convert display math to inline math in simple tables,
2774 since LaTeX can't deal with display math in simple tables.
2775 + Escape spaces in code (#1694, Bjorn Buckwalter).
2777 * MediaWiki writer:
2779 + Fixed links with URL = text. Previously these were rendered as bare
2780 words, even if the URL was not an absolute URL (#1825).
2782 * ICML writer:
2784 + Don't force all citations into footnotes.
2786 * RTF writer:
2788 + Add blankline at end of output (#1732, Matthew Pickering).
2790 * RST writer:
2792 + Ensure blank line after figure.
2793 + Avoid exces whitespace after last list item (#1777).
2794 + Wrap line blocks with spaces before continuations (#1656).
2795 + Fixed double-rendering of footnotes in RST tables (#1769).
2797 * DokuWiki writer:
2799 + Better handling of block quotes. This change ensures that
2800 multiple paragraph blockquotes are rendered using native `>`
2801 rather than as HTML (#1738).
2802 + Fix external images (#1739). Preface relative links with ":",
2803 absolute URIs without. (Timothy Humphries)
2805 * HTML writer:
2807 + Use protocol-relative URL for mathjax.
2808 + Put newline btw img and caption paragraph.
2809 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
2810 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
2811 This adds `KaTeX` to `HTMLMathMethod` (API change).
2812 + Don't double render when `email-obfuscation=none` (#1625, Matthew
2813 Pickering).
2814 + Make header attributes work outside top level (#1711).
2815 Previously they only appeared on top level header elements.
2816 Now they work e.g. in blockquotes.
2818 * ODT writer:
2820 + Correctly handle images without extensions (#1729).
2821 + Strip querystring in ODT write (#1682, Todd Sifleet).
2823 * FB2 writer:
2825 + Add newline to output.
2827 * EPUB writer:
2829 + Don't add `sourceURL` to absolute URIs (#1669).
2830 + Don't use unsupported `opf:title-type` for epub2.
2831 + Include "landmarks" section in nav document for epub3 (#1757).
2832 + Removed playOrder from navpoint elements in ncx file (#1760).
2833 These aren't required, and they make manual modification of epubs
2834 difficult.
2835 + Extract title even from structured title.
2836 + Don't include nav node in spine unless `--toc` was requested.
2837 Previously we included it in the spine with `linear="no"`, leading
2838 to odd results in some readers (#1593).
2839 + Fixed absolute URI detection (#1672).
2840 + Correctly resolve relative URIs (#1671).
2841 + Use regular page template for `nav.xhtml`, including doctype (#1759).
2843 * Docx writer:
2845 + Put docx table captions above tables (#1641, Nikolay Yakimov).
2846 + Get the page width from the reference docx file, and use
2847 it to scale images that are too large to fit (Grégory Bataille).
2848 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
2849 are inferred based on `<w:name val="heading #">` fallback, if there
2850 are no en-US "Heading#" styles
2851 + Look in user data dir for archive `reference.docx`.
2852 + Renumber header and footer relationships to avoid collisions (Jesse
2853 Rosenthal). We previously took the old relationship names of the
2854 headers and footer in secptr. That led to collisions. We now make
2855 a map of availabl names in the relationships file, and then rename
2856 in secptr.
2858 * ConTeXt writer:
2860 + Add function toLabel (Mark Szepieniec).
2861 This function can be used to sanitize reference labels so that
2862 they do not contain any of the illegal characters \#[]",{}%()|= .
2863 Currently only Links have their labels sanitized, because they
2864 are the only Elements that use passed labels.
2866 * `Text.Pandoc.Shared`:
2868 + Moved import of `toChunks` outside of CPP conditional (#1590).
2869 + Fix `inDirectory` to reset to the original directory in case
2870 an exception occurs (Freiric Barral).
2872 * Templates:
2874 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
2875 Thanks to bluebirch.
2876 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
2877 (#1616).
2878 + LaTeX template: Add shorthands=off to babel options (#1648).
2879 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
2880 This aids styling, making it possible for example to set 0 margins
2881 on the title page (#1758).
2882 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
2883 Previously we just expected 'title', 'subtitle', 'author', 'date'.
2884 Now we still support those, but also support the format recommended
2885 for epub metadata in the pandoc README:
2887 ---
2888 title:
2889 - type: main
2890 text: My Book
2891 - type: subtitle
2892 text: An investigation of metadata
2893 creator:
2894 - role: author
2895 text: John Smith
2896 - role: editor
2897 text: Sarah Jones
2898 identifier:
2899 - scheme: DOI
2900 text: doi:10.234234.234/33
2901 publisher: My Press
2902 rights: (c) 2007 John Smith, CC BY-NC
2903 ...
2905 * `Text.Pandoc.Templates.getDefaultTemplate`:
2906 don't fail when called with "fb2" (#1660).
2908 * `Text.Pandoc.Parsing`:
2910 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
2911 For example: `$x = \text{the $n$th root of $y$}` (#1677).
2912 + Change `parseFromString` to fail if not all input is consumed.
2913 (Matthew Pickering)
2914 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
2915 used by more readers (API change, Daniel Bergey).
2917 * `Text.Pandoc.Pretty`:
2919 + Improve performance of `realLength` (Matthew Pickering).
2920 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
2921 were getting at the end of markdown fragments (as well as rst, org,
2922 etc.) (#1705).
2924 * `Text.Pandoc.MIME`:
2926 + Add mime type for WebVTT (Jason Ronallo).
2927 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
2928 This is needed for epub3 validation.
2930 * `Text.Pandoc.MediaBag`:
2932 + Fix Windows specific path problems (#1597).
2934 * `Text.Pandoc.Shared`:
2936 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
2938 * Link the test suite using `-threaded`.
2939 This allows the test suite to be run using `+RTS -N`.
2941 * Added `network` dependency under `network-uri` flag in test section.
2943 * Give better error messages when someone tries to convert from
2944 pdf, doc, odt (#1683).
2946 * Added `track` to list of tags treated by `--self-contained` (#1664).
2948pandoc (1.13.1)
2950 * Fixed `--self-contained` with Windows paths (#1558).
2951 Previously `C:\foo.js` was being wrongly interpreted as a URI.
2953 * HTML reader: improved handling of tags that can be block or inline.
2954 Previously a section like this would be enclosed in a paragraph,
2955 with RawInline for the video tags (since video is a tag that can
2956 be either block or inline):
2958 <video controls="controls">
2959 <source src="../videos/test.mp4" type="video/mp4" />
2960 <source src="../videos/test.webm" type="video/webm" />
2961 <p>
2962 The videos can not be played back on your system.<br/>
2963 Try viewing on Youtube (requires Internet connection):
2964 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
2965 Youtube</a>.
2966 </p>
2967 </video>
2969 This change will cause the video and source tags to be parsed
2970 as RawBlock instead, giving better output.
2971 The general change is this: when we're parsing a "plain" sequence
2972 of inlines, we don't parse anything that COULD be a block-level tag.
2974 * Docx reader:
2976 + Be sensitive to user styles. Note that "Hyperlink" is
2977 "blacklisted," as we don't want the default underline styling to be
2978 inherited by all links by default (Jesse Rosenthal).
2979 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
2980 This makes to docx reader's native output fit with the way the markdown
2981 reader understands its markdown output.
2983 * Textile writer: Extended the range of cases where native textile
2984 tables will be used (as opposed to raw HTML): we now handle any
2985 alignment type, but only for simple tables with no captions.
2987 * Txt2Tags reader:
2989 + Header is now parsed only if standalone flag is set (Matthew Pickering).
2990 + The header is now parsed as meta information. The first line is the
2991 `title`, the second is the `author` and third line is the `date`
2992 (Matthew Pickering).
2993 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
2994 + Fixed crash when reading from stdin.
2996 * EPUB writer: Don't use page-progression-direction in EPUB2, which
2997 doesn't support it. Also, if page-progression-direction not specified
2998 in metadata, don't include the attribute even in EPUB3; not including it
2999 is the same as including it with the value "default", as we did before.
3000 (#1550)
3002 * Org writer: Accept example lines with indentation at the beginning
3003 (Calvin Beck).
3005 * DokuWiki writer:
3007 + Refactor to use Reader monad (Matthew Pickering).
3008 + Avoid using raw HTML in table cells; instead, use `\\`
3009 instead of newlines (Jesse Rosenthal).
3010 + Properly handle HTML table cell alignments, and use spacing
3011 to make the tables look prettier (#1566).
3013 * Docx writer:
3015 + Bibliography entries get `Bibliography` style (#1559).
3016 + Implement change tracking (Jesse Rosenthal).
3018 * LaTeX writer:
3020 + Fixed a bug that caused a table caption to repeat across all pages
3021 (Jose Luis Duran).
3022 + Improved vertical spacing in tables and made it customizable using
3023 standard lengths set by booktab. See
3024 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
3025 (Jose Luis Duran).
3026 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
3027 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
3028 + Made horizontal rules more flexible (Jose Luis Duran).
3030 * Text.Pandoc.MIME:
3032 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
3033 Code cleanups (Artyom Kazak).
3035 * Templates:
3037 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
3038 thanks lemzwerg).
3040 * Improved OSX build procedure.
3042 * Added `network-uri` flag, to deal with split of `network-uri` from
3043 `network`.
3045 * Fix build dependencies for the `trypandoc` flag, so that they are
3046 ignored if `trypandoc` flag is set to False (Gabor Pali).
3048 * Updated README to remove outdated claim that `--self-contained`
3049 looks in the user data directory for missing files.
3051pandoc (1.13.0.1)
3053 * Docx writer:
3055 + Fixed regression which bungled list numbering (#1544), causing
3056 all lists to appear as basic ordered lists.
3057 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
3058 Added a property to all table rows where the sum of column widths
3059 is specified in pct (fraction of 5000). This helps persuade Word
3060 to lay out the table with the widths we specify.
3062 * Fixed a bug in Windows 8 which caused pandoc not to find the
3063 `pandoc-citeproc` filter (#1542).
3065 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
3066 Most significantly, the reader now uses Builder, leading to some
3067 performance improvements.
3069 * HTML reader: Parse appropriately styled span as SmallCaps.
3071 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
3072 `superscript`, and `subscript` extensions, respectively, are
3073 deactivated (#1127).
3075 * Added `trypandoc` flag to build CGI executable used in the online
3076 demo.
3078 * Makefile: Added 'quick', 'osxpkg' targets.
3080 * Updated README in templates to indicate templates license.
3081 The templates are dual-licensed, BSD3 and GPL2+.
3083pandoc (1.13)
3085 [new features]
3087 * Added `docx` as an input format (Jesse Rosenthal). The docx
3088 reader includes conversion of native Word equations to pandoc
3089 LaTeX `Math` elements. Metadata is taken from paragraphs at the
3090 beginning of the document with styles `Author`, `Title`, `Subtitle`,
3091 `Date`, and `Abstract`.
3093 * Added `epub` as an input format (Matthew Pickering). The epub
3094 reader includes conversion of MathML to pandoc LaTeX `Math`
3095 elements.
3097 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
3098 Txt2tags is a lightweight markup format described at
3099 <http://txt2tags.org/>.
3101 * Added `dokuwiki` as an output format (Clare Macrae).
3103 * Added `haddock` as an output format.
3105 * Added `--extract-media` option to extract media contained in a zip
3106 container (docx or epub) while adjusting image paths to point to the
3107 extracted images.
3109 * Added a new markdown extension, `compact_definition_lists`, that
3110 restores the syntax for definition lists of pandoc 1.12.x, allowing
3111 tight definition lists with no blank space between items, and
3112 disallowing lazy wrapping. (See below under behavior changes.)
3114 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
3116 * Added extensions `native_spans` and `native_divs` to activate
3117 parsing of material in HTML span or div tags as Pandoc Span
3118 inlines or Div blocks.
3120 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
3121 Textile, and MediaWiki readers. This is an option intended
3122 for debugging parsing problems; ordinary users should not need
3123 to use it.
3125 [behavior changes]
3127 * Changed behavior of the `markdown_attribute` extension, to bring
3128 it in line with PHP markdown extra and multimarkdown. Setting
3129 `markdown="1"` on an outer tag affects all contained tags,
3130 recursively, until it is reversed with `markdown="0"` (#1378).
3132 * Revised markdown definition list syntax (#1429). Both the reader
3133 and writer are affected. This change brings pandoc's definition list
3134 syntax into alignment with that used in PHP markdown extra and
3135 multimarkdown (with the exception that pandoc is more flexible about
3136 the definition markers, allowing tildes as well as colons). Lazily
3137 wrapped definitions are now allowed. Blank space is required
3138 between list items. The space before a definition is used to determine
3139 whether it is a paragraph or a "plain" element. **WARNING: This change
3140 may break existing documents!** Either check your documents for
3141 definition lists without blank space between items, or use
3142 `markdown+compact_definition_lists` for the old behavior.
3144 * `.numberLines` now works in fenced code blocks even if no language
3145 is given (#1287, jgm/highlighting-kate#40).
3147 * Improvements to `--filter`:
3149 + Don't search PATH for a filter with an explicit path.
3150 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
3151 the system path, even if there was a `caps.py` in the working directory.
3152 + Respect shebang if filter is executable (#1389).
3153 + Don't print misleading error message.
3154 Previously pandoc would say that a filter was not found,
3155 even in a case where the filter had a syntax error.
3157 * HTML reader:
3159 + Parse `div` and `span` elements even without `--parse-raw`,
3160 provided `native_divs` and `native_spans` extensions are set.
3161 Motivation: these now generate native pandoc Div and Span
3162 elements, not raw HTML.
3163 + Parse EPUB-specific elements if the `epub_html_exts`
3164 extension is enabled. These include `switch`, `footnote`,
3165 `rearnote`, `noteref`.
3167 * Org reader:
3169 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
3170 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
3171 `\cite{Coffee}`), can be used without any further escaping (Albert
3172 Krewinkel).
3174 * Textile reader and writer:
3176 + The `raw_tex` extension is no longer set by default. You can
3177 enable it with `textile+raw_tex`.
3179 * DocBook reader:
3181 + Support `equation`, `informalequation`, `inlineequation` elements with
3182 `mml:math` content. This is converted into LaTeX and put into a Pandoc
3183 Math inline.
3185 * Revised `plain` output, largely following the style of Project
3186 Gutenberg:
3188 + Emphasis is rendered with `_underscores_`, strong emphasis
3189 with ALL CAPS.
3190 + Headings are rendered differently, with space to set them off,
3191 not with setext style underlines. Level 1 headers are ALL CAPS.
3192 + Math is rendered using unicode when possible, but without the
3193 distracting emphasis markers around variables.
3194 + Footnotes use a regular `[n]` style.
3196 * Markdown writer:
3198 + Horizontal rules are now a line across the whole page.
3199 + Prettier pipe tables. Columns are now aligned (#1323).
3200 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
3201 no longer emits any raw HTML, including span and div tags
3202 generated by Span and Div elements.
3203 + Use span with style for `SmallCaps` (#1360).
3205 * HTML writer:
3207 + Autolinks now have class `uri`, and email autolinks have class
3208 `email`, so they can be styled.
3210 * Docx writer:
3212 + Document formatting is carried over from `reference.docx`.
3213 This includes margins, page size, page orientation, header,
3214 and footer, including images in headers and footers.
3215 + Include abstract (if present) with `Abstract` style (#1451).
3216 + Include subtitle (if present) with `Subtitle` style, rather
3217 than tacking it on to the title (#1451).
3219 * Org writer:
3221 + Write empty span elements with an id attribute as org anchors.
3222 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
3224 * LaTeX writer:
3226 + Put table captions above tables, to match the conventional
3227 standard. (Previously they appeared below tables.)
3228 + Use `\(..\)` instead of `$..$` for inline math (#1464).
3229 + Use `\nolinkurl` in email autolinks. This allows them to be styled
3230 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
3231 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
3232 curly quotes in the PDF output (#1364).
3233 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
3234 do not appear before the overlays in which their markers appear
3235 (#1525).
3236 + Don't produce a `\label{..}` for a Div or Span element. Do produce
3237 a `\hyperdef{..}` (#1519).
3239 * EPUB writer:
3241 + If the metadata includes `page-progression-direction` (which can be
3242 `ltr` or `rtl`, the `page-progression-direction` attribute will
3243 be set in the EPUB spine (#1455).
3245 * Custom lua writers:
3247 + Custom writers now work with `--template`.
3248 + Removed HTML header scaffolding from `sample.lua`.
3249 + Made citation information available in lua writers.
3251 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
3252 adjacent `RawBlock`s when possible.
3254 [API changes]
3256 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
3258 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
3259 Pickering).
3261 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
3262 Pickering).
3264 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
3265 (Clare Macrae).
3267 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
3269 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
3270 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
3271 readers return a pair of a `Pandoc` document and a `MediaBag` with
3272 the media resources they contain. This can be extracted using
3273 `--extract-media`. Writers that incorporate media (PDF, Docx,
3274 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
3275 for resources in the `MediaBag` generated by the reader, in addition to
3276 the file system or web.
3278 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
3279 Renamed `readTeXMath'` to `texMathToInlines`.
3281 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
3282 `readers` now associates names of readers with `Reader`
3283 structures. This allows inclusion of readers, like the docx
3284 reader, that take binary rather than textual input.
3286 * `Text.Pandoc.Shared`:
3288 + Added `capitalize` (Artyom Kazak), and replaced uses of
3289 `map toUpper` (which give bad results for many languages).
3290 + Added `collapseFilePath`, which removes intermediate `.` and
3291 `..` from a path (Matthew Pickering).
3292 + Added `fetchItem'`, which works like `fetchItem` but searches
3293 a `MediaBag` before looking on the net or file system.
3294 + Added `withTempDir`.
3295 + Added `removeFormatting`.
3296 + Added `extractSpaces` (from HTML reader) and generalized its type
3297 so that it can be used by the docx reader (Matthew Pickering).
3298 + Added `ordNub`.
3299 + Added `normalizeInlines`, `normalizeBlocks`.
3300 + `normalize` is now `Pandoc -> Pandoc` instead of
3301 `Data a :: a -> a`. Some users may need to change their uses of
3302 `normalize` to the newly exported `normalizeInlines` or
3303 `normalizeBlocks`.
3305 * `Text.Pandoc.Options`:
3307 + Added `writerMediaBag` to `WriterOptions`.
3308 + Removed deprecated and no longer used `readerStrict` in
3309 `ReaderOptions`. This is handled by `readerExtensions` now.
3310 + Added `Ext_compact_definition_lists`.
3311 + Added `Ext_epub_html_exts`.
3312 + Added `Ext_native_divs` and `Ext_native_spans`.
3313 This allows users to turn off the default pandoc behavior of
3314 parsing contents of div and span tags in markdown and HTML
3315 as native pandoc Div blocks and Span inlines.
3317 * `Text.Pandoc.Parsing`:
3319 + Generalized `readWith` to `readWithM` (Matthew Pickering).
3320 + Export `runParserT` and `Stream` (Matthew Pickering).
3321 + Added `HasQuoteContext` type class (Matthew Pickering).
3322 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
3323 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
3324 `applyMacros` (Matthew Pickering).
3325 + Added custom `token` (Matthew Pickering).
3326 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
3327 track of the ending tag we're waiting for when we're parsing inside
3328 HTML block tags.
3329 + Added `stateMarkdownAttribute` to `ParserState`. This is used
3330 to keep track of whether the markdown attribute has been set in
3331 an enclosing tag.
3332 + Generalized type of `registerHeader`, using new type classes
3333 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
3334 Pickering). These allow certain common functions to be reused
3335 even in parsers that use custom state (instead of `ParserState`),
3336 such as the MediaWiki reader.
3337 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
3338 and generalized their types (Matthew Pickering).
3340 * `Text.Pandoc.Pretty`:
3342 + Added `nestle`.
3343 + Added `blanklines`, which guarantees a certain number of blank lines
3344 (and no more).
3346 [bug fixes]
3348 * Markdown reader:
3350 + Fixed parsing of indented code in list items. Indented code
3351 at the beginning of a list item must be indented eight spaces
3352 from the margin (or edge of the container), or four spaces
3353 from the list marker, whichever is greater.
3354 + Fixed small bug in HTML parsing with `markdown_attribute`, which
3355 caused incorrect tag nesting for input like
3356 `<aside markdown="1">*hi*</aside>`.
3357 + Fixed regression with intraword underscores (#1121).
3358 + Improved parsing of inline links containing quote characters (#1534).
3359 + Slight rewrite of `enclosure`/`emphOrStrong` code.
3360 + Revamped raw HTML block parsing in markdown (#1330).
3361 We no longer include trailing spaces and newlines in the
3362 raw blocks. We look for closing tags for elements (but without
3363 backtracking). Each block-level tag is its own `RawBlock`;
3364 we no longer try to consolidate them (though `--normalize` will do so).
3365 + Combine consecutive latex environments. This helps when you have
3366 two minipages which can't have blank lines between them (#690, #1196).
3367 + Support smallcaps through span.
3368 `<span style="font-variant:small-caps;">foo</span>` will be
3369 parsed as a `SmallCaps` inline, and will work in all output
3370 formats that support small caps (#1360).
3371 + Prevent spurious line breaks after list items (#1137). When the
3372 `hard_line_breaks` option was specified, pandoc would formerly
3373 produce a spurious line break after a tight list item.
3374 + Fixed table parsing bug (#1333).
3375 + Handle `c++` and `objective-c` as language identifiers in
3376 github-style fenced blocks (#1318).
3377 + Inline math must have nonspace before final `$` (#1313).
3379 * LaTeX reader:
3381 + Handle comments at the end of tables. This resolves the issue
3382 illustrated in <http://stackoverflow.com/questions/24009489>.
3383 + Correctly handle table rows with too few cells. LaTeX seems to
3384 treat them as if they have empty cells at the end (#241).
3385 + Handle leading/trailing spaces in `\emph` better.
3386 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
3387 so that we don't get things like `* hi *` in markdown output.
3388 Also applies to `\textbf` and some other constructions (#1146).
3389 + Don't assume preamble doesn't contain environments (#1338).
3390 + Allow (and discard) optional argument for `\caption` (James Aspnes).
3392 * HTML reader:
3394 + Fixed major parsing problem with HTML tables. Table cells were
3395 being combined into one cell (#1341).
3396 + Fixed performance issue with malformed HTML tables.
3397 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
3398 + Allow space between `<col>` and `</col>`.
3399 + Added `audio` and `source` in `eitherBlockOrInline`.
3400 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
3401 `blockTags` to `eitherBlockOrInline`.
3402 + `map` and `object` were mistakenly in both lists; they have been removed
3403 from `blockTags`.
3404 + Ignore `DOCTYPE` and `xml` declarations.
3406 * MediaWiki reader:
3408 + Don't parse backslash escapes inside `<source>` (#1445).
3409 + Tightened up template parsing.
3410 The opening `{{` must be followed by an alphanumeric or `:`.
3411 This prevents the exponential slowdown in #1033.
3412 + Support "Bild" for images.
3414 * DocBook reader:
3416 + Better handle elements inside code environments. Pandoc's document
3417 model does not allow structure inside code blocks, but at least this way
3418 we preserve the text (#1449).
3419 + Support `<?asciidoc-br?>` (#1236).
3421 * Textile reader:
3423 + Fixed list parsing. Lists can now start without an intervening
3424 blank line (#1513).
3425 + HTML block-level tags that do not start a line are parsed as
3426 inline HTML and do not interrupt paragraphs (as in RedCloth).
3428 * Org reader:
3430 + Make tildes create inline code (#1345). Also relabeled `code` and
3431 `verbatim` parsers to accord with the org-mode manual.
3432 + Respect `:exports` header argument in code blocks (Craig Bosma).
3433 + Fixed tight lists with sublists (#1437).
3435 * EPUB writer:
3437 + Avoid excess whitespace in `nav.xhtml`. This should improve
3438 TOC view in iBooks (#1392).
3439 + Fixed regression on cover image.
3440 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
3441 because the metadata id was not correct. Now we derive the id from the
3442 actual cover image filename, which we preserve rather than using
3443 "cover-image."
3444 + Keep newlines between block elements. This allows
3445 easier diff-ability (#1424).
3446 + Use `stringify` instead of custom `plainify`.
3447 + Use `renderTags'` for all tag rendering. This properly handles tags
3448 that should be self-closing. Previously `<hr/>` would appear in EPUB
3449 output as `<hr></hr>` (#1420).
3450 + Better handle HTML media tags.
3451 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
3452 can have only one dc:date, so only the first one is used.
3454 * LaTeX writer:
3456 + Correctly handle figures in notes. Notes can't contain figures in
3457 LaTeX, so we fake it to avoid an error (#1053).
3458 + Fixed strikeout + highlighted code (#1294).
3459 Previously strikeout highlighted code caused an error.
3461 * ConTeXt writer:
3463 + Improved detection of autolinks with URLs containing escapes.
3465 * RTF writer:
3467 + Improved image embedding: `fetchItem'` is now used to get the
3468 images, and calculated image sizes are indicated in the RTF.
3469 + Avoid extra paragraph tags in metadata (#1421).
3471 * HTML writer:
3473 + Deactivate "incremental" inside slide speaker notes (#1394).
3474 + Don't include empty items in the table of contents for
3475 slide shows. (These would result from creating a slide
3476 using a horizontal rule.)
3478 * MediaWiki writer:
3480 + Minor renaming of `st` prefixed names.
3482 * AsciiDoc writer:
3484 + Double up emphasis and strong emphasis markers in intraword
3485 contexts, as required by asciidoc (#1441).
3487 * Markdown writer:
3489 + Avoid wrapping that might start a list, blockquote, or header (#1013).
3490 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
3491 + Don't use braced attributes for fenced code (#1416).
3492 If `Ext_fenced_code_attributes` is not set, the first class
3493 attribute will be printed after the opening fence as a bare word.
3494 + Separate adjacent lists of the same kind with an HTML comment (#1458).
3496 * PDF writer:
3498 + Fixed treatment of data uris for images (#1062).
3500 * Docx writer:
3502 + Use Compact style for empty table cells (#1353).
3503 Otherwise we get overly tall lines when there are empty
3504 table cells and the other cells are compact.
3505 + Create overrides per-image for `media/` in reference docx.
3506 This should be somewhat more robust and cover more types of images.
3507 + Improved `entryFromArchive` to avoid an unneeded parse.
3508 + Section numbering carries over from reference.docx (#1305).
3509 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
3510 we assign numbers based on the list marker styles.
3512 * `Text.Pandoc.Options`:
3514 + Removed `Ext_fenced_code_attributes` from `markdown_github`
3515 extensions.
3517 * `Text.Pandoc.ImageSize`:
3519 + Use default instead of failing if image size not found
3520 in exif header (#1358).
3521 + ignore unknown exif header tag rather than crashing.
3522 Some images seem to have tag type of 256, which was causing
3523 a runtime error.
3525 * `Text.Pandoc.Shared`:
3527 + `fetchItem`: unescape URI encoding before reading local file (#1427).
3528 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
3529 doing mime lookup, to improve mime type guessing.
3530 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
3531 other things are treated as relative URIs if `sourceURL` is `Just _`,
3532 otherwise as file paths on the local file system.
3533 + `fetchItem` now properly handles links without a protocol (#1477).
3534 + `fetchItem` now escapes characters not allowed in URIs before trying
3535 to parse the URIs.
3536 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
3538 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
3539 needed to resolve relative URLs when we fetch resources (#750).
3541 * `Text.Pandoc.Parsing`
3543 + Simplified `dash` and `ellipsis` (#1419).
3544 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
3545 + Generalized functions to use `ParsecT` (Matthew Pickering).
3546 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
3547 Pickering).
3549 [template changes]
3551 * Added haddock template.
3552 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
3553 be "advisory" in HTML5, but kindlegen seems to require them.
3554 * EPUB3: Put title page in section with `epub:type="titlepage"`.
3555 * LaTeX: Made `\subtitle` work properly (#1327).
3556 * LaTeX/Beamer: remove conditional around date (#1321).
3557 * LaTeX: Added `lot` and `lof` variables, which can be set to
3558 get `\listoftables` and `\listoffigures` (#1407). Note that
3559 these variables can be set at the command line with `-Vlot -Vlof`
3560 or in YAML metadata.
3562 [under the hood improvements]
3564 * Rewrote normalize for efficiency (#1385).
3566 * Rewrote Haddock reader to use `haddock-library` (#1346).
3568 + This brings pandoc's rendering of haddock markup in line
3569 with the new haddock.
3570 + Fixed line breaks in `@` code blocks.
3571 + alex and happy are no longer build-depends.
3573 * Added `Text.Pandoc.Compat.Directory` to allow building against
3574 different versions of the `directory` library.
3576 + Added `Text.Pandoc.Compat.Except` to allow building against
3577 different verions of `mtl`.
3579 * Code cleanup in some writers, using Reader monad to avoid
3580 passing options parameter around (Matej Kollar).
3582 * Improved readability in `pandoc.hs`.
3584 * Miscellaneous code cleanups (Artyom Kazak).
3586 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
3587 Thompson).
3589 * Changed `http-conduit` flag to `https`. Depend on `http-client`
3590 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
3591 depends on `conduit` via `yaml`.)
3593 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
3594 This change to highlighting-kate means that PHP fragments no longer need
3595 to start with `<?php`. It also fixes a serious bug causing failures with
3596 ocaml and fsharp.
3598 * Require latest `texmath`. This fixes `\tilde{E}` and allows
3599 `\left` to be used with `]`, `)` etc. (#1319), among many other
3600 improvements.
3602 * Require latest `zip-archive`. This has fixes for unicode path names.
3604 * Added tests for plain writer.
3606 * `Text.Pandoc.Templates`:
3608 + Fail informatively on template syntax errors.
3609 With the move from parsec to attoparsec, we lost good error
3610 reporting. In fact, since we weren't testing for end of input,
3611 malformed templates would fail silently. Here we revert back to
3612 Parsec for better error messages.
3613 + Use `ordNub` (#1022).
3615 * Benchmarks:
3617 + Made benchmarks compile again (Artyom Kazak).
3618 + Fixed so that the failure of one benchmark does not prevent others
3619 from running (Artyom Kazak).
3620 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
3621 + Changed benchmark to use only the test suite, so that benchmarks
3622 run more quickly.
3624 * Windows build script:
3626 + Add `-windows` to file name.
3627 + Use one install command for pandoc, pandoc-citeproc.
3628 + Force install of pandoc-citeproc.
3630 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
3631 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
3632 will extract it into a folder named `SOMETHING.pkg`, which it
3633 will interpret as a defective package (#1308).
3635 * `README`:
3637 + Made headers for all extensions so they have IDs and can be
3638 linked to (Beni Cherniavsky-Paskin).
3639 + Fixed typos (Phillip Alday).
3640 + Fixed documentation of attributes (#1315).
3641 + Clarified documentation on small caps (#1360).
3642 + Better documentation for `fenced_code_attributes` extension
3643 (Caleb McDaniel).
3644 + Documented fact that you can put YAML metadata in a separate file
3645 (#1412).
3648pandoc (1.12.4.2)
3650 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
3652 * Shared: `addMetaValue` now behaves slightly differently:
3653 if both the new and old values are lists, it concatenates their
3654 contents to form a new list.
3656 * LaTeX reader:
3658 + Set `bibliography` in metadata from `\bibliography` or
3659 `\addbibresource` command.
3660 + Don't error on `%foo` with no trailing newline.
3662 * Org reader:
3664 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
3665 + Fix parsing of blank lines within blocks (Albert Krewinkel).
3666 + Support pandoc citation extension (Albert Krewinkel). This can
3667 be turned off by specifying `org-citations` as the input format.
3669 * Markdown reader:
3671 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
3672 other readers (Albert Krewinkel).
3674 * `Text.Pandoc.Parsing`:
3676 + Added `citeKey` (see above).
3677 + Added `HasLastStrPosition` type class and `updateLastStrPos`
3678 and `notAfterString` functions.
3680 * Updated copyright notices (Albert Krewinkel).
3682 * Added default.icml to data files so it installs with the package.
3684 * OSX package:
3686 + The binary is now built with options to ensure that it can be
3687 used with OSX 10.6+.
3688 + Moved OSX package materials to osx directory.
3689 + Added OSX package uninstall script, included in the zip container
3690 (thanks to Daniel T. Staal).
3692pandoc (1.12.4)
3694 * Made it possible to run filters that aren't executable (#1096).
3695 Pandoc first tries to find the executable (searching the path
3696 if path isn't given). If it fails, but the file exists and has
3697 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
3698 using the appropriate interpreter. This should make it easier to
3699 use filters on Windows, and make it more convenient for everyone.
3701 * Added Emacs org-mode reader (Albert Krewinkel).
3703 * Added InDesign ICML Writer (Mauro Bieg).
3705 * MediaWiki reader:
3707 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
3708 + Fixed bug in certain nested lists (#1213). If a level 2 list was
3709 followed by a level 1 list, the first item of the level 1 list
3710 would be lost.
3711 + Handle table rows containing just an HTML comment (#1230).
3713 * LaTeX reader:
3715 + Give better location information on errors, pointing to line
3716 numbers within included files (#1274).
3717 + LaTeX reader: Better handling of `table` environment (#1204).
3718 Positioning options no longer rendered verbatim.
3719 + Better handling of figure and table with caption (#1204).
3720 + Handle `@{}` and `p{length}` in tabular. The length is not actually
3721 recorded, but at least we get a table (#1180).
3722 + Properly handle `\nocite`. It now adds a `nocite` metadata
3723 field. Citations there will appear in the bibliography but not
3724 in the text (unless you explicitly put a `$nocite$` variable
3725 in your template).
3727 * Markdown reader:
3729 + Ensure that whole numbers in YAML metadata are rendered without
3730 decimal points. (This became necessary with changes to aeson
3731 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
3732 + Fixed regression on line breaks in strict mode (#1203).
3733 + Small efficiency improvements.
3734 + Improved parsing of nested `div`s. Formerly a closing `div` tag
3735 would be missed if it came right after other block-level tags.
3736 + Avoid backtracking when closing `</div>` not found.
3737 + Fixed bug in reference link parsing in `markdown_mmd`.
3738 + Fixed a bug in list parsing (#1154). When reading a raw list
3739 item, we now strip off up to 4 spaces.
3740 + Fixed parsing of empty reference link definitions (#1186).
3741 + Made one-column pipe tables work (#1218).
3743 * Textile reader:
3745 + Better support for attributes. Instead of being ignored, attributes
3746 are now parsed and included in Span inlines. The output will be a bit
3747 different from stock textile: e.g. for `*(foo)hi*`, we'll get
3748 `<em><span class="foo">hi</span></em>` instead of
3749 `<em class="foo">hi</em>`. But at least the data is not lost.
3750 + Improved treatment of HTML spans (%) (#1115).
3751 + Improved link parsing. In particular we now pick up on attributes.
3752 Since pandoc links can't have attributes, we enclose the whole link in
3753 a span if there are attributes (#1008).
3754 + Implemented correct parsing rules for inline markup (#1175, Matthew
3755 Pickering).
3756 + Use Builder (Matthew Pickering).
3757 + Fixed list parsing bug (#1500).
3758 + Don't allow inline formatting to extend over newlines.
3759 This matches the behavior of RedCarpet, avoids some ugly bugs,
3760 and improves performance.
3762 * DocBook reader:
3764 + Better treatment of `formalpara`. We now emit the title (if present)
3765 as a separate paragraph with boldface text (#1215).
3766 + Set metadata `author` not `authors`.
3767 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
3768 Matthew Pickering).
3769 + Converted current meta information parsing in DocBook to a more
3770 extensible version which is aware of the more recent meta
3771 representation (Matthew Pickering).
3773 * HTML reader:
3775 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
3776 (#1248).
3777 + Treat processing instructions & declarations as block. Previously
3778 these were treated as inline, and included in paragraph tags in HTML
3779 or DocBook output, which is generally not what is wanted (#1233).
3780 + Updated `closes` with rules from HTML5 spec.
3781 + Use Builder (Matthew Pickering, #1162).
3783 * RST reader:
3785 + Remove duplicate `http` in PEP links (Albert Krewinkel).
3786 + Make rst figures true figures (#1168, CasperVector)
3787 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
3788 rST parser now supports: all built-in rST roles, new role definition,
3789 role inheritance, though with some limitations.
3790 + Use `author` rather than `authors` in metadata.
3791 + Better handling of directives. We now correctly handle field
3792 lists that are indented more than three spaces. We treat an
3793 `aafig` directive as a code block with attributes, so it can be
3794 processed in a filter (#1212).
3796 * LaTeX writer:
3798 + Mark span contents with label if span has an ID (Albert Krewinkel).
3799 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
3800 + Handle line breaks in simple table cells (#1217).
3801 + Workaround for level 4-5 headers in quotes. These previously produced
3802 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
3803 This adds an `mbox{}` in these contexts to work around the problem.
3804 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
3805 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
3806 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
3807 ligature with LuaLaTeX but `\/` does.
3808 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
3810 * ConTeXt writer: Improved autolinks (#1270).
3812 * DocBook writer:
3814 + Improve handling of hard line breaks in Docbook writer
3815 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
3816 just for the newline character.
3817 + Don't let line breaks inside footnotes influence the enclosing
3818 paragraph (Neil Mayhew).
3819 + Distinguish tight and loose lists in DocBook output, using
3820 `spacing="compact"` (Neil Mayhew, #1250).
3822 * Docx writer: When needed files are not present in the user's
3823 `reference.docx`, fall back on the versions in the `reference.docx`
3824 in pandoc's data files. This fixes a bug that occurs when a
3825 `reference.docx` saved by LibreOffice is used. (#1185)
3827 * EPUB writer:
3829 + Include extension in epub ids. This fixes a problem with duplicate
3830 extensions for fonts and images with the same base name but different
3831 extensions (#1254).
3832 + Handle files linked in raw `img` tags (#1170).
3833 + Handle media in `audio` source tags (#1170).
3834 Note that we now use a `media` directory rather than `images`.
3835 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
3836 will both be incorporated into `content.opf` and the epub container.
3838 * HTML writer:
3840 + Add colgroup around col tags (#877). Also affects EPUB writer.
3841 + Fixed bug with unnumbered section headings. Unnumbered section
3842 headings (with class `unnumbered`) were getting numbers.
3843 + Improved detection of image links. Previously image links with
3844 queries were not recognized, causing `<embed>` to be used instead
3845 of `<img>`.
3847 * Man writer: Ensure that terms in definition lists aren't line wrapped
3848 (#1195).
3850 * Markdown writer:
3852 + Use proper escapes to avoid unwanted lists (#980). Previously we used
3853 0-width spaces, an ugly hack.
3854 + Use longer backtick fences if needed (#1206). If the content contains a
3855 backtick fence and there are attributes, make sure longer fences are
3856 used to delimit the code. Note: This works well in pandoc, but github
3857 markdown is more limited, and will interpret the first string of three
3858 or more backticks as ending the code block.
3860 * RST writer: Avoid stack overflow with certain tables (#1197).
3862 * RTF writer: Fixed table cells containing paragraphs.
3864 * Custom writer:
3866 + Correctly handle UTF-8 in custom lua scripts (#1189).
3867 + Fix bugs with lua scripts with mixed-case filenames and
3868 paths containing `+` or `-` (#1267). Note that `getWriter`
3869 in `Text.Pandoc` no longer returns a custom writer on input
3870 `foo.lua`.
3872 * AsciiDoc writer: Handle multiblock and empty table cells
3873 (#1245, #1246). Added tests.
3875 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
3877 * `Text.Pandoc.Shared`:
3879 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
3880 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
3881 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
3882 Jesse Rosenthal.
3883 + `openURL`: set proxy with value of http_proxy env variable (#1211).
3884 Note: proxies with non-root paths are not supported, due to
3885 limitations in `http-conduit`.
3887 * `Text.Pandoc.PDF`:
3889 + Ensure that temp directories deleted on Windows (#1192). The PDF is
3890 now read as a strict bytestring, ensuring that process ownership will
3891 be terminated, so the temp directory can be deleted.
3892 + Use `/` as path separators in a few places, even on Windows.
3893 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
3894 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
3895 + Changes to error reporting, to handle non-UTF8 error output.
3897 * `Text.Pandoc.Templates`:
3899 + Removed unneeded datatype context (Merijn Verstraaten).
3901 + YAML objects resolve to "true" in conditionals (#1133).
3902 Note: If `address` is a YAML object and you just have `$address$`
3903 in your template, the word `true` will appear, which may be
3904 unexpected. (Previously nothing would appear.)
3906 * `Text.Pandoc.SelfContained`:
3908 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
3909 the string.
3910 * It no longer looks in data files. This only made sense when we
3911 had copies of slidy and S5 code there.
3912 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
3913 + Handle `poster` attribute in `video` tags (#1188).
3915 * `Text.Pandoc.Parsing`:
3917 + Made `F` an instance of Applicative (#1138).
3918 + Added `stateCaption`.
3919 + Added `HasMacros`, simplified other typeclasses.
3920 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
3921 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
3922 + Changed the smart punctuation parser to return `Inlines`
3923 rather than `Inline` (Matthew Pickering).
3924 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
3925 from typeclasses of monads to typeclasses of states. This simplifies
3926 the instance definitions and provides more flexibility. Generalized
3927 type of `getOption` and added a default definition. Removed
3928 `askReaderOption`. Added `extractReaderOption`. Added
3929 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
3930 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
3931 `modifyHeaderMap`. Added `extractIdentifierList` and
3932 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
3933 for `getIdentifierList`, `putIdentifierList`, and
3934 `modifyIdentifierList`. The ultimate goal here is to allow different
3935 parsers to use their own, tailored parser states (instead of
3936 `ParserState`) while still using shared functions.
3938 * Template changes:
3940 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
3941 + LaTeX template: Add `linestretch` and `fontfamily` variables.
3942 + LaTeX template: Conditionalize author and date commands.
3943 + Beamer template: Consistent styles for figure and table captions
3944 (aaronwolen).
3945 + LaTeX and beamer template: Adjust widths correctly for oversized
3946 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
3947 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
3948 `upquote` only after `fontenc` (Yihui Xie).
3949 + Beamer template: Added caption package (#1200).
3950 + Beamer template: changes for better unicode handling (KarolS).
3951 + DocBook template: use `authorgroup` if there are authors.
3952 + revealjs template: Move `include-after` to end (certainlyakey).
3953 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
3955 * Bumped version bounds of dependencies.
3957 * Added a `--trace` command line option, for debugging backtracking
3958 bugs. So far this only works with the markdown reader.
3960 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
3962 * Updated travis script to test with multiple GHC versions.
3964 * Force failure of a Travis build if GHC produces warnings (Albert
3965 Krewinkel).
3967 * Add `.editorconfig` (Albert Krewinkel).
3968 See <http://editorconfig.org/> for details.
3970 * Give more useful error message if '-t pdf' is specified (#1155).
3972 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
3974 * Allow `html4` as a synonym of `html` as a reader (it already works
3975 as a writer).
3977 * README:
3979 + Added an explanation of how to use YAML metadata to
3980 force items to appear in the bibliography without citations in
3981 the text (like LaTeX `\nocite`).
3982 + Added note to `--bibtex/--natbib`: not for use in making PDF
3983 (#1194, thanks to nahoj).
3984 + Added explanatory notes about `--natbib` and `--biblatex`.
3985 + Added specification of legal syntax for citation keys.
3986 + Fixed variable defaults documentation (Albert Krewinkel).
3988 * Removed copyright statements for files that have been removed
3989 (Albert Krewinkel).
3991 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
3992 They aren't needed at runtime. We keep README and COPYRIGHT in data
3993 to ensure that they'll be available on all systems on which pandoc
3994 is installed.
3996 * Use cabal sandboxes in Windows build script.
3998pandoc (1.12.3.3)
4000 * To changes to source; recompiled tarball with latest alex and
4001 happy, so they will work with GHC 7.8.
4003pandoc (1.12.3.2)
4005 * Bumped version bounds for blaze-html, blaze-markup.
4007 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
4008 (#1124).
4010 * Fixed mediawiki ordered list parsing (#1122).
4012 * HTML reader: Fixed bug reading inline math with `$$` (#225).
4014 * Added support for LaTeX style literate Haskell code blocks in rST
4015 (Merijn Verstraaten).
4017pandoc (1.12.3.1)
4019 * Relaxed version constraint on binary, allowing the use of binary 0.5.
4021pandoc (1.12.3)
4023 * The `--bibliography` option now sets the `biblio-files` variable.
4024 So, if you're using `--natbib` or `--biblatex`, you can just use
4025 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
4027 * Don't run pandoc-citeproc filter if `--bibliography` is
4028 used together with `--natbib` or `--biblatex` (Florian Eitel).
4030 * Template changes:
4032 + Updated beamer template to include booktabs.
4033 + Added `abstract` variable to LaTeX template.
4034 + Put `header-includes` after `title` in LaTeX template (#908).
4035 + Allow use of `\includegraphics[size]` in beamer.
4036 This just required porting a macro definition from the default
4037 LaTeX template to the default beamer template.
4039 * `reference.docx`: Include `FootnoteText` style.
4040 Otherwise Word ignores the style, even when specified in the `pPr`.
4041 (#901)
4043 * `reference.odt`: Tidied `styles.xml`.
4045 * Relaxed version bounds for dependencies.
4047 * Added `withSocketsDo` around http conduit code in `openURL`,
4048 so it works on Windows (#1080).
4050 * Added `Cite` function to `sample.lua`.
4052 * Markdown reader:
4054 + Fixed regression in title blocks (#1089).
4055 If author field was empty, date was being ignored.
4056 + Allow backslash-newline hard line breaks in grid and
4057 multiline table cells.
4058 + Citation keys may now start with underscores, and may contain
4059 underscores adjacent to internal punctuation.
4061 * LaTeX reader:
4063 + Add support for `Verb` macro (jrnold) (#1090).
4064 + Support babel-style quoting: `` "`..."' ``.
4066 * Properly handle script blocks in strict mode. (That is,
4067 `markdown-markdown_in_html_blocks`.) Previously a spurious
4068 `<p>` tag was being added (#1093).
4070 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
4071 elements.
4073 * LaTeX writer:
4075 + Factored out function for table cell creation.
4076 + Better treatment of footnotes in tables.
4077 Notes now appear in the regular sequence, rather than in the
4078 table cell. (This was a regression in 1.10.)
4080 * HTML reader: Parse name/content pairs from meta tags as metadata.
4081 Closes #1106.
4083 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
4085 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
4087 * ODT writer: Use mathml for proper rendering of formulas.
4088 Note: LibreOffice's support for this seems a bit buggy. But
4089 it should be better than what we had before.
4091 * RST writer: Ensure no blank line after def in definition list (#992).
4093 * Markdown writer: Don't use tilde code blocks with braced attributes in
4094 `markdown_github` output. A consequence of this change is that the
4095 backtick form will be preferred in general if both are enabled. That
4096 is good, as it is much more widespread than the tilde form. (#1084)
4098 * Docx writer: Fixed problem with some modified reference docx files.
4099 Include `word/_rels/settings.xml.rels` if it exists, as well as other
4100 `rels` files besides the ones pandoc generates explicitly.
4102 * HTML writer:
4104 + With `--toc`, headers no longer link to themselves (#1081).
4105 + Omit footnotes from TOC entries. Otherwise we get doubled
4106 footnotes when headers have notes!
4108 * EPUB writer:
4110 + Avoid duplicate notes when headings contain notes.
4111 This arose because the headings are copied into the metadata
4112 "title" field, and the note gets rendered twice. We strip the
4113 note now before putting the heading in "title".
4114 + Strip out footnotes from toc entries.
4115 + Fixed bug with `--epub-stylesheet`. Now the contents of
4116 `writerEpubStylesheet` (set by `--epub-stylesheet`)
4117 should again work, and take precedence over a stylesheet specified
4118 in the metadata.
4120 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
4122 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
4123 with `//`.
4125 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
4126 we could only get size information for JFIF format, which led
4127 to squished images in Word documents. Closes #976.
4129 * Removed old `MarkdownTest_1.0.3` directory (#1104).
4131pandoc (1.12.2.1)
4133 * Markdown reader: Fixed regression in list parser, involving
4134 continuation lines containing raw HTML (or even verbatim raw HTML).
4136pandoc (1.12.2)
4138 * Metadata may now be included in YAML blocks in a markdown document.
4139 For example,
4141 ---
4142 title:
4143 - type: main
4144 text: My Book
4145 - type: subtitle
4146 text: An investigation of metadata
4147 creator:
4148 - role: author
4149 text: John Smith
4150 - role: editor
4151 text: Sarah Jones
4152 identifier:
4153 - scheme: DOI
4154 text: doi:10.234234.234/33
4155 publisher: My Press
4156 rights: (c) 2007 John Smith, CC BY-NC
4157 cover-image: img/mypic.jpg
4158 ...
4160 Metadata may still be provided using `--epub-metadata`; it will
4161 be merged with the metadata in YAML blocks.
4163 * EPUB writer:
4165 + `meta` tags are now used instead of `opf` attributes for EPUB3.
4166 + Insert "svg" property as needed in opf (EPUB 3).
4167 + Simplify `imageTypeOf` using `getMimeType`.
4168 + Add properties attribute to `cover-image` item for EPUB 3.
4169 + Don't include node for `cover.xhtml` if no cover!
4170 + Ensure that same identifier is used throughout (#1044).
4171 If an identifier is given in metadata, we use that; otherwise
4172 we generate a random uuid.
4173 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
4174 Fixes an issue with Calibre putting the cover at the end of the book
4175 if the spine has `linear="no"`. Apparently this is best practice
4176 for other converters as well:
4177 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
4178 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
4179 + Allow partial dates: `YYYY`, `YYYY-MM`.
4181 * Markdown writer: Fix rendering of tight sublists (#1050).
4182 Previously a spurious blank line was included after a tight sublist.
4184 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
4185 This is reported to be necessary to avoid an error from recent
4186 versions of Libre Office when files contain more than one image
4187 Thanks to wmanley for reporting and diagnosing the problem.
4189 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
4190 Instead, let this be set in the template, using `\setupfloat`.
4191 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
4193 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
4195 * Fixed bug with markdown intraword emphasis. Closes #1066.
4197 * Docbook writer: Hierarchicalize block content in metadata.
4198 Previously headers just disappeared from block-level metadata
4199 when it was used in templates. Now we apply the 'hierarchicalize'
4200 transformation. Note that a block headed by a level-2 header will
4201 turn into a `<sect1>` element.
4203 * OpenDocument writer: Skip raw HTML (#1035).
4204 Previously it was erroneously included as verbatim text.
4206 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
4207 This allows better control of formatting, since the `<a>`
4208 tags have a distinguishing class (#1049).
4210 * Docx writer:
4212 + Use mime type info returned by fetchItem.
4213 + Fixed core metadata (#1046).
4214 Don't create empty date nodes if no date given.
4215 Don't create multiple `dc:creator` nodes; instead separate by
4216 semicolons.
4217 + Fix URL for core-properties in `_rels/.rels` (#1046).
4219 * Plain writer: don't print `<span>` tags.
4221 * LaTeX writer:
4223 + Fix definition lists with internal links in terms (#1032).
4224 This fix puts braces around a term that contains an internal
4225 link, to avoid problems with square brackets.
4226 + Properly escape pdftitle, pdfauthor (#1059).
4227 + Use booktabs package for tables (thanks to Jose Luis Duran).
4229 * Updated beamer template. Now references should work properly
4230 (in a slide) when `--biblatex` or `--natbib` is used.
4232 * LaTeX reader:
4234 + Parse contents of curly quotes or matched `"` as quotes.
4235 + Support `\textnormal` as span with class `nodecor`.
4236 This is needed for pandoc-citeproc.
4237 + Improved citation parsing. This fixes a run-time error that occured
4238 with `\citet{}` (empty list of keys). It also ensures that empty keys
4239 don't get produced.
4241 * MediaWiki reader: Add automatic header identifiers.
4243 * HTML reader:
4245 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
4246 `--parse-raw`.
4247 + Recognize `svg` tags as block level content (thanks to MinRK).
4248 + Parse LaTeX math if appropriate options are set.
4250 * Markdown reader:
4252 + Yaml block must start immediately after `---`. If there's a blank
4253 line after `---`, we interpreted it as a horizontal rule.
4254 + Correctly handle empty bullet list items.
4255 + Stop parsing "list lines" when we hit a block tag.
4256 This fixes exponential slowdown in certain input, e.g.
4257 a series of lists followed by `</div>`.
4259 * Slides: Preserve `<div class="references">` in references slide.
4261 * `Text.Pandoc.Writer.Shared`:
4263 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
4264 attributes, leading to invalid HTML.
4265 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
4266 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
4267 encoded bytestring was returned. We now decode it so it's a proper
4268 image!
4270 * DocBook reader: Handle numerical attributes starting with decimal.
4271 Also use `safeRead` instead of `read`.
4273 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
4274 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
4275 in all the writers. Require `texmath >= 0.6.5.2`.
4277 * `Text.Pandoc.MIME`:
4279 + Add entry for `jfif`.
4280 + In looking up extensions, drop the encoding info.
4281 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
4283 * Templates: Changed how array variables are resolved. Previously if
4284 `foo` is an array (which might be because multiple values were set on
4285 the command line), `$foo$` would resolve to the concatenation of the
4286 elements of foo. This is rarely useful behavior. It has been changed
4287 so that the first value is rendered. Of course, you can still iterate
4288 over the values using `$for(foo)$`. This has the result that you can
4289 override earlier settings using `-V` by putting new values later on the
4290 command line, which is useful for many purposes.
4292 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
4294 * Allow "epub2" as synonym for "epub", "html4" for "html".
4296 * Don't look for slidy files in data files with `--self-contained`.
4298 * Allow `https:` command line arguments to be downloaded.
4300 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
4302pandoc (1.12.1)
4304 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
4305 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
4306 "c": "foo"}`. This new format is easier to work with outside of Haskell.
4307 Incidentally, "t" stands for "tag", "c" for "contents".
4309 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
4310 when converting to markdown (#1027).
4312 * LaTeX reader:
4314 + Ensure that preamble doesn't contribute to the text of
4315 the document.
4316 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
4317 properly, among others.
4318 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
4319 bibtex titles, since we need to know what was protected from
4320 titlecase conversions.
4322 * LaTeX writer:
4324 + Specially escape non-ascii characters in labels.
4325 Otherwise we can get compile errors and other bugs when
4326 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
4327 + Add link anchors for code blocks with identifiers (#1025).
4329 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
4330 It allows fragments identifiers.
4332 * Slide formats:
4334 + A Div element with class "notes" is treated as speaker
4335 notes. Currently beamer goes to `\note{}`, revealjs to
4336 `<aside class="notes">`, and the notes are simply suppressed in
4337 other formats (#925).
4338 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
4339 The old version caused a pause to be inserted before the first
4340 material on a slide. This has been fixed.
4341 + Removed data files for s5, slideous, slidy.
4342 Users of s5 and slideous will have to download the needed
4343 files, as has been documented for some time in the README.
4344 By default, slidy code will be sought on the web, as before.
4346 * HTML writer: Insert command to typeset mathjax only in slideous output
4347 (#966, #1012).
4349 * RST writer: Skip spaces after display math. Otherwise we get indentation
4350 problems, and part of the next paragraph may be rendered as part of the
4351 math.
4353 * OpenDocument writer: Fix formatting of strikeout code (#995),
4354 thanks to wilx. don't use `font-face-decls` variable.
4356 * Fixed test suite so it works with cabal sandboxes.
4358pandoc (1.12.0.2)
4360 * Removed `stringable` dependency.
4362pandoc (1.12.0.1)
4364 * Allow `--metadata` to be repeated for the same key to form a list.
4365 This also has the effect that `--bibliography` can be repeated,
4366 as before.
4368 * Handle boolean values in `--metadata`. Note that anything not parseable
4369 as a YAML boolean or string is treated as a literal string.
4370 You can get a string value with "yes", or any of the strings interpretable
4371 as booleans, by quoting it:
4373 -M boolvalue=yes -M stringvalue='"yes"'
4375 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
4376 option used.
4378 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
4379 in which docx files could not be read by some versions of Word
4380 and LibreOffice (#990).
4382 * Fixed a regression involving slide shows with bibliographies.
4383 The Div container around references messed up the procedure for carving
4384 a document into slides. So we now remove the surrounding Div in
4385 `prepSlides`.
4387 * More informative error message when a filter is not found in path.
4389 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
4390 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
4392 * Don't use unicode_collation in building OSX package:
4393 it adds something like 50MB of dependencies to the package.
4395 * Declare alex and happy as build-tools (#986).
4397pandoc (1.12)
4399 [new features]
4401 * Much more flexible metadata, including arbitrary fields and structured
4402 values. Metadata can be specified flexibly in pandoc markdown using
4403 YAML metadata blocks, which may occur anywhere in the document:
4405 ---
4406 title: Here is my title.
4407 abstract: |
4408 This is the abstract.
4410 1. It can contain
4411 2. block content
4412 and *inline markup*
4414 tags: [cat, dog, animal]
4415 ...
4417 Metadata fields automatically populate template variables.
4419 * Added `opml` (OPML) as input and output format. The `_note` attribute,
4420 used in OmniOutliner and supported by multimarkdown, is supported.
4421 We treat the contents as markdown blocks under a section header.
4423 * Added `haddock` (Haddock markup) as input format (David Lazar).
4425 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
4426 (Thanks to Jamie F. Olson for the initial patch.)
4427 Nested vertical stacks are used for hierarchical structure.
4428 Results for more than one level of nesting may be odd.
4430 * Custom writers can now be written in lua.
4432 pandoc -t data/sample.lua
4434 will load the script sample.lua and use it as a custom writer.
4435 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
4436 Note that pandoc embeds a lua interpreter, so lua need not be
4437 installed separately.
4439 * New `--filter/-F` option to make it easier to run "filters"
4440 (Pandoc AST transformations that operate on JSON serializations).
4441 Filters are always passed the name of the output format, so their
4442 behavior can be tailored to it. The repository
4443 <https://github.com/jgm/pandocfilters> contains
4444 a python module for writing pandoc filters in python, with
4445 a number of examples.
4447 * Added `--metadata/-M` option.
4448 This is like `--variable/-V`, but actually adds to metadata, not
4449 just variables.
4451 * Added `--print-default-data-file` option, which allows printing
4452 of any of pandoc's data files. (For example,
4453 `pandoc --print-default-data-file reference.odt` will print
4454 `reference.odt`.)
4456 * Added syntax for "pauses" in slide shows:
4458 This gives
4460 . . .
4462 me pause.
4464 * New markdown extensions:
4466 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
4467 rather than being treated as hard line breaks or spaces. This is useful
4468 for some East Asian languages, where spaces aren't used between words,
4469 but text is separated into lines for readability.
4470 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
4471 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
4472 only. (Default for `markdown_github`.) (#807)
4473 + `lists_without_preceding_blankline`: Allow lists to start without
4474 preceding blank space. (Default for `markdown_github`.) (#972)
4476 [behavior changes]
4478 * `--toc-level` no longer implies `--toc`.
4479 Reason: EPUB users who don't want a visible TOC may still want
4480 to set the TOC level for in the book navigation.
4482 * `--help` now prints in and out formats in alphabetical order, and
4483 says something about PDF output (#720).
4485 * `--self-contained` now returns less verbose output (telling you
4486 which URLs it is fetching, but not giving the full header). In
4487 addition, there are better error messages when fetching a URL fails.
4489 * Citation support is no longer baked in to core pandoc. Users who
4490 need citations will need to install and use a separate filter
4491 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
4492 `csl`, and `citation-abbreviations` from the metadata, though it
4493 may still be specified on the command line as before.
4495 * A `Cite` element is now created in parsing markdown whether or not
4496 there is a matching reference.
4498 * The `pandoc-citeproc` script will put the bibliography at the
4499 end of the document, as before. However, it will be put inside a `Div`
4500 element with class "references", allowing users some control
4501 over the styling of references. A final header, if any, will
4502 be included in the `Div`.
4504 * The markdown writer will not print a bibliography if the
4505 `citations` extension is enabled. (If the citations are formatted
4506 as markdown citations, it is redundant to have a bibliography,
4507 since one will be generated automatically.)
4509 * Previously we used to store the directory of the first input file,
4510 even if it was local, and used this as a base directory for finding
4511 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
4512 users. So we now look for images relative to the current
4513 working directory, even if the first file argument is in another
4514 directory. Note that this change may break some existing workflows.
4515 If you have been assuming that relative links will be interpreted
4516 relative to the directory of the first file argument, you'll need
4517 to make that the current directory before running pandoc. (#942)
4519 * Better error reporting in some readers, due to changes in `readWith`:
4520 the line in which the error occured is printed, with a caret pointing
4521 to the column.
4523 * All slide formats now support incremental slide view for definition lists.
4525 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
4526 Parse `:<math>...</math>` as display math. These notations are used with
4527 the MathJax MediaWiki extension.
4529 * All writers: template variables are set automatically from metadata
4530 fields. However, variables specified on the command line with
4531 `--variable` will completely shadow metadata fields.
4533 * If `--variable` is used to set many variables with the same name,
4534 a list is created.
4536 * Man writer: The `title`, `section`, `header`, and `footer` can now
4537 all be set individually in metadata. The `description` variable has been
4538 removed. Quotes have been added so that spaces are allowed in the
4539 title. If you have a title that begins
4541 COMMAND(1) footer here | header here
4543 pandoc will still parse it into a title, section, header, and
4544 footer. But you can also specify these elements explicitly (#885).
4546 * Markdown reader
4548 + Added support for YAML metadata blocks, which can come anywhere
4549 in the document (not just at the beginning). A document can contain
4550 multiple YAML metadata blocks.
4551 + HTML span and div tags are parsed as pandoc Span and Div elements.
4553 * Markdown writer
4555 + Allow simple tables to be printed as grid tables,
4556 if other table options are disabled. This means you can do
4557 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
4558 and all tables will render as grid tables.
4559 + Support YAML title block (render fields in alphabetical order
4560 to make output predictable).
4562 [API changes]
4564 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
4565 structured metadata. (Note: existing code that pattern-matches
4566 on `Meta` will have to be revised.) Metadata can now contain
4567 indefinitely many fields, with content that can be a string,
4568 a Boolean, a list of `Inline` elements, a list of `Block`
4569 elements, or a map or list of these.
4571 * A new generic block container (`Div`) has been added to `Block`,
4572 and a generic inline container (`Span`) has been added to `Inline`.
4573 These can take attributes. They will render in HTML, Textile,
4574 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
4575 extension) as HTML `<div>` and `<span>` elements; in other formats
4576 they will simply pass through their contents. But they can be
4577 targeted by scripts.
4579 * `Format` is now a newtype, not an alias for String.
4580 Equality comparisons are case-insensitive.
4582 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
4583 functions that are much faster than the SYB functions from
4584 `Text.Pandoc.Generic`. These functions are now used where possible
4585 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
4586 match the generic traversals `bottomUp` and `queryWith`.)
4588 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
4589 instances for the basic pandoc types. They use GHC generics and
4590 should be faster than the old JSON serialization using
4591 `Data.Aeson.Generic`.
4593 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
4594 This is a souped-up version of `readProcessWithErrorcode` that
4595 uses lazy bytestrings instead of strings and allows setting
4596 environment variables. (Used in `Text.Pandoc.PDF`.)
4598 * New module `Text.Pandoc.Readers.OPML`.
4600 * New module `Text.Pandoc.Writers.OPML`.
4602 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
4603 This is based on Haddock's own lexer/parser.
4605 * New module `Text.Pandoc.Writers.Custom`.
4607 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
4608 Either, for better error handling.
4610 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
4612 * Removed `stripTags` from `Text.Pandoc.XML`.
4614 * `Text.Pandoc.Templates`:
4616 + Simplified `Template` type to a newtype.
4617 + Removed `Empty`.
4618 + Changed type of `renderTemplate`: it now takes a JSON context
4619 and a compiled template.
4620 + Export `compileTemplate`.
4621 + Export `renderTemplate'` that takes a string instead of a compiled
4622 template.
4623 + Export `varListToJSON`.
4625 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
4627 * `Text.Pandoc`:
4629 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
4630 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
4631 `Text.Pandoc.JSON` should be used instead. (Compiling against
4632 pandoc-types instead of pandoc will also produce smaller executables.)
4633 * Removed the deprecated `jsonFilter` function.
4634 + Added `readJSON`, `writeJSON` to the API (#817).
4636 * `Text.Pandoc.Options`:
4638 + Added `Ext_lists_without_preceding_blankline`,
4639 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
4640 `Ext_yaml_metadataBlock` to `Extension`.
4641 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
4642 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
4643 first command-line argument is an absolute URL. (So, relative links
4644 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
4645 + All bibliography-related fields have been removed from
4646 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
4647 `readerReferences`, `readerCitationStyle`.
4649 * The `Text.Pandoc.Biblio` module has been removed. Users of the
4650 pandoc library who want citation support will need to use
4651 `Text.CSL.Pandoc` from `pandoc-citeproc`.
4654 [bug fixes]
4656 * In markdown, don't autolink a bare URI that is followed by `</a>`
4657 (#937).
4659 * `Text.Pandoc.Shared`
4661 + `openURL` now follows redirects (#701), properly handles `data:`
4662 URIs, and prints diagnostic output to stderr rather than stdout.
4663 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
4664 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
4665 + Fixed `readDefaultDataFile` so it works on Windows.
4666 + Better error messages for `readDefaultDataFile`. Instead of
4667 listing the last path tried, which can confuse people who are
4668 using `--self-contained`, so now we just list the data file name.
4669 + URL-escape pipe characters. Even though these are legal, `Network.URI`
4670 doesn't regard them as legal in URLs. So we escape them first (#535).
4672 * Mathjax in HTML slide shows: include explicit "Typeset" call.
4673 This seems to be needed for some formats (e.g. slideous) and won't
4674 hurt in others (#966).
4676 * `Text.Pandoc.PDF`
4678 + On Windows, create temdir in working directory, since the system
4679 temp directory path may contain tildes, which can cause
4680 problems in LaTeX (#777).
4681 + Put temporary output directory in `TEXINPUTS` (see #917).
4682 + `makePDF` tries to download images that are not found locally,
4683 if the first argument is a URL (#917).
4684 + If compiling with `pdflatex` yields an encoding error, offer
4685 the suggestion to use `--latex-engine=xelatex`.
4687 * Produce automatic header identifiers in parsing textile, RST,
4688 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
4690 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
4691 before treating as a filename. This fixes `--self-contained` when used
4692 with CSS files that include web fonts using the method described here:
4693 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
4694 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
4696 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
4697 percent-encoding, or a `+` character, as final punctuation.
4699 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
4700 EPS images properly sized on conversion to Word.
4702 * Slidy: Use slidy.js rather than slidy.js.gz.
4703 Reason: some browsers have trouble with the gzipped js file,
4704 at least on the local file system (#795).
4706 * Markdown reader
4708 + Properly handle blank line at beginning of input (#882).
4709 + Fixed bug in unmatched reference links. The input
4710 `[*infile*] [*outfile*]` was getting improperly parsed:
4711 "infile" was emphasized, but "*outfile*" was literal (#883).
4712 + Allow internal `+` in citation identifiers (#856).
4713 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
4714 + Do not generate blank title, author, or date metadata elements.
4715 Leave these out entirely if they aren't present.
4716 + Allow backtick code blocks not to be preceded by blank line (#975).
4718 * Textile reader:
4720 + Correctly handle entities.
4721 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
4722 in code blocks, rather than printing them verbatim. Parse attributes
4723 on `<pre>` tag for code blocks.
4725 * HTML reader: Handle non-simple tables (#893). Column widths are read from
4726 `col` tags if present, otherwise divided equally.
4728 * LaTeX reader
4730 + Support alltt environment (#892).
4731 + Support `\textasciitilde`, `\textasciicircum` (#810).
4732 + Treat `\textsl` as emphasized text reader (#850).
4733 + Skip positional options after `\begin{figure}`.
4734 + Support `\v{}` for hacek (#926).
4735 + Don't add spurious ", " to citation suffixes.
4736 This is added when needed in pandoc-citeproc.
4737 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
4738 + Improved support for accented characters (thanks to Scott Morrison).
4739 + Parse label after section command and set id (#951).
4741 * RST reader:
4743 + Don't insert paragraphs where docutils doesn't.
4744 `rst2html` doesn't add `<p>` tags to list items (even when they are
4745 separated by blank lines) unless there are multiple paragraphs in the
4746 list. This commit changes the RST reader to conform more closely to
4747 what docutils does (#880).
4748 + Improved metadata. Treat initial field list as metadata when
4749 standalone specified. Previously ALL fields "title", "author",
4750 "date" in field lists were treated as metadata, even if not at
4751 the beginning. Use `subtitle` metadata field for subtitle.
4752 + Fixed 'authors' metadata parsing in reST. Semicolons separate
4753 different authors.
4755 * MediaWiki reader
4757 + Allow space before table rows.
4758 + Fixed regression for `<ref>URL</ref>`.
4759 `<` is no longer allowed in URLs, according to the uri parser
4760 in `Text.Pandoc.Parsing`. Added a test case.
4761 + Correctly handle indented preformatted text without preceding
4762 or following blank line.
4763 + Fixed `|` links inside table cells. Improved attribute parsing.
4764 + Skip attributes on table rows. Previously we just crashed if
4765 rows had attributes, now we ignore them.
4766 + Ignore attributes on headers.
4767 + Allow `Image:` for images (#971).
4768 + Parse an image with caption in a paragraph by itself as a figure.
4770 * LaTeX writer
4772 + Don't use ligatures in escaping inline code.
4773 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
4774 wherein notes were numbered incorrectly in tables (#827).
4775 + Always create labels for sections. Previously the labels were only
4776 created when there were links to the section in the document (#871).
4777 + Stop escaping `|` in LaTeX math.
4778 This caused problems with array environments (#891).
4779 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
4780 `\` will cause major problems if unescaped.
4781 + Write id for code block to label attribute in LaTeX when listings
4782 is used (thanks to Florian Eitel).
4783 + Scale LaTeX tables so they don't exceed columnwidth.
4784 + Avoid problem with footnotes in unnumbered headers (#940).
4786 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
4787 to the slide if it is one of the header classes. It is recommended
4788 that your bibliography slide have this attribute:
4790 # References {.allowframebreaks}
4792 This causes multiple slides to be created if necessary, depending
4793 on the length of the bibliography.
4795 * ConTeXt writer: Properly handle tables without captions. The old output
4796 only worked in MkII. This should work in MkIV as well (#837).
4798 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
4800 * HTML writer:
4802 + Fixed `--no-highlight` (Alexander Kondratskiy).
4803 + Don't convert to lowercase in email obfuscation (#839).
4804 + Ensure proper escaping in `<title>` and `<meta>` fields.
4806 * AsciiDoc writer:
4808 + Support `--atx-headers` (Max Rydahl Andersen).
4809 + Don't print empty identifier blocks `([[]])` on headers (Max
4810 Rydahl Andersen).
4812 * ODT writer:
4814 + Fixing wrong numbered-list indentation in open document format
4815 (Alexander Kondratskiy) (#369).
4816 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
4817 + Minor changes for ODF 1.2 conformance (#939). We leave the
4818 nonconforming `contextual-spacing` attribute, which is provided by
4819 LibreOffice itself and seems well supported.
4821 * Docx writer:
4823 + Fixed rendering of display math in lists.
4824 In 1.11 and 1.11.1, display math in lists rendered as a new list
4825 item. Now it always appears centered, just as outside of lists,
4826 and in proper display math style, no matter how far indented the
4827 containing list item is (#784).
4828 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
4829 Previously we used `w:cr` (#873).
4830 + Use Compact style for Plain block elements, to
4831 differentiate between tight and loose lists (#775).
4832 + Ignore most components of `reference.docx`.
4833 We take the `word/styles.xml`, `docProps/app.xml`,
4834 `word/theme/theme1.xml`, and `word/fontTable.xml` from
4835 `reference.docx`, ignoring everything else. This should help
4836 with the corruption problems caused when different versions of
4837 Word resave the reference.docx and reorganize things.
4838 + Made `--no-highlight` work properly.
4840 * EPUB writer
4842 + Don't add `dc:creator` tags if present in EPUB metadata.
4843 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
4844 + Don't put blank title page in reading sequence.
4845 Set `linear="no"` if no title block. Addresses #797.
4846 + Download webtex images and include as data URLs.
4847 This allows you to use `--webtex` in creating EPUBs.
4848 Math with `--webtex` is automatically made self-contained.
4849 + In `data/epub.css`, removed highlighting styles (which
4850 are no longer needed, since styles are added by the HTML
4851 writer according to `--highlighting-style`). Simplified
4852 margin fields.
4853 + If resource not found, skip it, as in Docx writer (#916).
4855 * RTF writer:
4857 + Properly handle characters above the 0000-FFFF range.
4858 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
4859 + Fixed regression with RTF table of contents.
4860 + Only autolink absolute URIs. This fixes a regression, #830.
4862 * Markdown writer:
4864 + Only autolink absolute URIs. This fixes a regression, #830.
4865 + Don't wrap attributes in fenced code blocks.
4866 + Write full metadata in MMD style title blocks.
4867 + Put multiple authors on separate lines in pandoc titleblock.
4868 Also, don't wrap long author entries, as new lines get treated
4869 as new authors.
4871 * `Text.Pandoc.Templates`:
4873 + Fixed bug retrieving default template for markdown variants.
4874 + Templates can now contain "record lookups" in variables;
4875 for example, `author.institution` will retrieve the `institution`
4876 field of the `author` variable.
4877 + More consistent behavior of `$for$`. When `foo` is not a list,
4878 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
4879 So if `foo` resolves to "", no output should be produced.
4880 See pandoc-templates#39.
4882 * Citation processing improvements (now part of pandoc-citeproc):
4884 + Fixed `endWithPunct` The new version correctly sees a sentence
4885 ending in '.)' as ending with punctuation. This fixes a bug which
4886 led such sentences to receive an extra period at the end: '.).'.
4887 Thanks to Steve Petersen for reporting.
4888 + Don't interfere with Notes that aren't citation notes.
4889 This fixes a bug in which notes not generated from citations were
4890 being altered (e.g. first letter capitalized) (#898).
4891 + Only capitalize footnote citations when they have a prefix.
4892 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
4893 inserted before it before passing to citeproc-hs, so that bare numbers
4894 are treated as page numbers by default. A suffix not beginning with
4895 punctuation has a space added at the beginning (rather than a comma and
4896 space, as was done before for not-author-in-text citations).
4897 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
4898 properly, with '23' treated as a locator of type 'page'.
4899 + Many improvements to citation rendering, due to fixes in citeproc-hs
4900 (thanks to Andrea Rossato).
4901 + Warnings are issued for undefined citations, which are rendered
4902 as `???`.
4903 + Fixed hanging behavior when locale files cannot be found.
4905 [template changes]
4907 * DocBook: Use DocBook 4.5 doctype.
4909 * Org: '#+TITLE:' is inserted before the title.
4910 Previously the writer did this.
4912 * LaTeX: Changes to make mathfont work with xelatex.
4913 We need the mathspec library, not just fontspec, for this.
4914 We also need to set options for setmathfont (#734).
4916 * LaTeX: Use `tex-ansi` mapping for `monofont`.
4917 This ensures that straight quotes appear as straight, rather than
4918 being treated as curly. See #889.
4920 * Made `\includegraphics` more flexible in LaTeX template.
4921 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
4923 * LaTeX/Beamer: Added `classoption` variable.
4924 This is intended for class options like `oneside`; it may
4925 be repeated with different options. (Thanks to Oliver Matthews.)
4927 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
4929 * LaTeX: Added `biblio-style` variable (#920).
4931 * DZSlides: title attribute on title section.
4933 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
4935 [under-the-hood improvements]
4937 * Markdown reader:Improved strong/emph parsing, using the strategy of
4938 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
4939 no backtracking, and no keeping track of nesting levels. It will give
4940 different results in some edge cases, but these should not affect normal
4941 uses.
4943 * Added `Text.Pandoc.Compat.Monoid`.
4944 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
4945 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
4947 * Added `Text.Pandoc.Compat.TagSoupEntity`.
4948 This allows pandoc to compile with `tagsoup` 0.13.x.
4949 Thanks to Dirk Ullrich for the patch.
4951 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
4952 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
4953 handle simple math in bibliography fields.)
4955 * Added `Text.Pandoc.Writers.Shared` for shared functions used
4956 only in writers. `metaToJSON` is used in writers to create a
4957 JSON object for use in the templates from the pandoc metadata
4958 and variables. `getField`, `setField`, and `defField` are
4959 for working with JSON template contexts.
4961 * Added `Text.Pandoc.Asciify` utility module.
4962 This exports functions to create ASCII-only versions of identifiers.
4964 * `Text.Pandoc.Parsing`
4966 + Generalized state type on `readWith` (API change).
4967 + Specialize readWith to `String` input. (API change).
4968 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
4969 with `stateMeta` and `stateMeta'`.
4971 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
4972 bytestrings seemed to cause problems using pandoc on 64-bit Windows
4973 7/8 (#874).
4975 * Factored out `registerHeader` from markdown reader, added to
4976 `Text.Pandoc.Parsing`.
4978 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
4979 Reason: < 0.5 does not provide a monoid instance for Attribute,
4980 which is now needed by the HTML writer (#803).
4982 * Added `http-conduit` flag, which allows fetching https resources.
4983 It also brings in a large number of dependencies (`http-conduit`
4984 and its dependencies), which is why for now it is an optional flag
4985 (#820).
4987 * Added CONTRIBUTING.md.
4989 * Improved INSTALL instructions.
4991 * `make-windows-installer.bat`: Removed explicit paths for executables.
4993 * `aeson` is now used instead of `json` for JSON.
4995 * Set default stack size to 16M. This is needed for some large
4996 conversions, esp. if pandoc is compiled with 64-bit ghc.
4998 * Various small documentation improvements.
4999 Thanks to achalddave and drothlis for patches.
5001 * Removed comment that chokes recent versions of CPP (#933).
5003 * Removed support for GHC version < 7.2, since pandoc-types now
5004 requires at least GHC 7.2 for GHC generics.
5007pandoc (1.11.1)
5009 * Markdown reader:
5011 + Fixed regression in which parentheses were lost in link URLs.
5012 Added tests. Closes #786.
5013 + Better handling of unmatched double quotes in `--smart` mode.
5014 These occur frequently in fiction, since it is customary not to
5015 close quotes in dialogue if the speaker does not change between
5016 paragraphs. The unmatched quotes now get turned into literal
5017 left double quotes. (No `Quoted` inline is generated, however.)
5018 Closes #99 (again).
5020 * HTML writer: Fixed numbering mismatch between TOC and sections.
5021 `--number-offset` now affects TOC numbering as well
5022 as section numbering, as it should have all along. Closes #789.
5024 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
5025 as markdown citations, even if `--bibliography` was specified, unless
5026 `citation` extension is disabled. Now, formatted citations are always
5027 printed if `--bibliography` was specified. If you want to reformat
5028 markdown keeping pandoc markdown citations intact, don't use
5029 `--bibliography`. Note that citations parsed from LaTeX documents will
5030 be rendered as pandoc markdown citations when `--bibliography` is not
5031 specified.
5033 * ODT writer: Fixed regression leading to corrupt ODTs.
5034 This was due to a change in the `Show` instance for
5035 `Text.Pandoc.Pretty.Doc`. Closes #780.
5037 * Fixed spacing bugs involving code block attributes in
5038 RST reader and Markdown writer. Closes #763.
5040 * Windows package: Various improvements due to Fyodor Sheremetyev.
5042 + Automatically set installation path (Program Files or Local App Data).
5043 + Set system PATH environment variable when installing for all users.
5044 + Pandoc can installed for all users using the following command.
5045 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
5047 * Bumped QuickCheck version bound.
5049pandoc (1.11)
5051 * Added `--number-offset` option. (See README for description.)
5053 * Added `--default-image-extension` option. (See README for description.)
5055 * `--number-sections` behavior change: headers with class `unnumbered`
5056 will not be numbered.
5058 * `--version` now reports the default data directory.
5060 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
5062 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
5064 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
5065 a field for `Attr` rather than just `String`. (API change.)
5067 * Added `markdown_github` as input format. This was an accidental
5068 omission in 1.10.
5070 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
5071 change.)
5073 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
5075 * Beamer template:
5077 + Fixed captions with longtable. Thanks to Joost Kremers.
5078 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
5080 * LaTeX template:
5082 + Load microtype after fonts. Microtype needs to know
5083 what fonts are being used. Thanks to dfc for the patch.
5084 + Set `secnumdepth` to 5 if `--number-sections` specified.
5085 This yields behavior equivalent to the other writers, numbering
5086 level 4 and 5 headers too. Closes #753.
5088 * HTML reader:
5090 + Handle `<colgroup>` tag.
5091 + Preserve all header attributes.
5093 * LaTeX reader:
5095 + Parse `\hrule` as `HorizontalRule`. Closes #746.
5096 + Parse starred variants of `\section` etc. as headers with
5097 attribute `unnumbered`.
5098 + Read optional attributes in `lstlisting` and `Verbatim` environments.
5099 We convert these to pandoc standard names, e.g. `numberLines`
5100 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
5101 + Handle language attribute for lstlistings.
5102 + Better support for Verbatim and minted environments. Closes #763.
5104 * Markdown reader:
5106 + `-` in an attribute context = `.unnumbered`. The point of this
5107 is to provide a way to specify unnumbered headers in non-English
5108 documents.
5109 + Fixed bug parsing key/value attributes. Parsing failed if you
5110 had an unquoted attribute immediately before the final '}'.
5111 + Make backslash escape work in attributes.
5112 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
5113 pandoc will parse a MMD title block if it sees one, even if
5114 `pandoc_title_blocks` is enabled.
5115 + Refactoring: `litChar` now includes entities, so we don't need
5116 to use `fromEntities` e.g. on titles.
5117 + Allow spaces around borders in pipe tables. Closes #772.
5118 + Allow all punctuation in angle-bracket autolinks. Previously
5119 things like `----` were disallowed, because the uri parser
5120 treated them as trailing punctuation. Closes #768.
5121 + Make `implicit_header_references` work properly when
5122 headers are given explicit identifiers.
5123 + Check for tables before line blocks. Otherwise some pipe
5124 tables get treated as line blocks.
5125 + Allow `&` in emails (for entities).
5126 + Properly handle entities in titles and links. A markdown link
5127 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
5128 Closes #723.
5130 * Textile reader:
5132 + Handle attributes on headers.
5134 * LaTeX reader:
5136 + Add `fig:` as title for images with captions.
5137 This is needed for them to be rendered as figures. Closes #766.
5138 + Never emit an empty paragraph. See #761.
5139 + Handle `\caption` for images in figures. Closes #766.
5140 + Parse `\section*`, etc. as unnumbered sections.
5142 * HTML writer:
5144 + Support header attributes. The attributes go on
5145 the enclosing `section` or `div` tag if `--section-divs` is specified.
5146 + Fixed a regression (only now noticed) in html+lhs output.
5147 Previously the bird tracks were being omitted.
5149 * LaTeX writer:
5151 + Omit lists with no items to avoid LaTeX errors.
5152 + Support line numbering with `--listings`.
5153 If `numberLines` class is present, we add `numbers=left`;
5154 if `startFrom` is present, we add `firstnumber=`. (#763)
5156 * ConTeXt writer:
5158 + Removed `\placecontent`. This produced a duplicate toc,
5159 in conjunction with `\placelist`.
5160 + Use `\title`, `\subject` etc. for headers with
5161 `unnumbered` class.
5163 * Textile writer:
5165 + Support header attributes.
5167 * Markdown writer:
5169 + Use grid tables when needed, and if enabled. Closes #740.
5170 + Render citations as pandoc-markdown citations.
5171 Previously citations were rendered as citeproc-formatted citations
5172 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
5173 unless the `citations` extension is disabled.
5174 If you still want formatted citations in your markdown output,
5175 use `pandoc -t markdown-citations`.
5177 * RST writer:
5179 + Support `:number-lines:` in code blocks.
5181 * Docx writer:
5183 + Better treatment of display math. Display math inside a
5184 paragraph is now put in a separate paragraph, so it will render
5185 properly (centered and without extra blank lines around it).
5186 Partially addresses #742.
5187 + Content types and document rels xml files are now created from
5188 scratch, rather than being taken over from `reference.docx`.
5189 This fixes problems that arise when you edit the `reference.docx`
5190 with Word.
5191 + We also now encode mime types for each individual image rather
5192 than using defaults. This should allow us to handle a wider
5193 range of image types (including PDF). Closes #414.
5194 + Changed style names in `reference docx`.
5195 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
5196 The old names got changed by Word when the `reference.docx` was
5197 edited. Closes #414.
5199 * EPUB writer:
5201 + Fix section numbering. Previously the numbering restarted from 1
5202 in each chapter (with `--number-sections`), though the numbers in
5203 the table of contents were correct.
5204 + Headers with "unnumbered" attribute are not numbered. (Nor do they
5205 cause an increment in running numbering.) Section numbers now work
5206 properly, even when there is material before the first numbered section.
5207 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
5208 but `linear` is set to `no` unless the `--toc` option is specified.
5209 Include `<guide>` element in OPF. This should allow the TOC to
5210 be useable in Kindles when converted with kindlegen. Closes #773.
5212 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
5213 This dramatically reduces the speed penalty that comes from enabling the
5214 `autolink_bare_uris` extension. The penalty is still substantial (in one
5215 test, from 0.33s to 0.44s), but nowhere near what it used to be.
5216 The RST reader is also much faster now, as it autodetects URIs.
5218 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
5219 with class "unnumbered". Unnumbered sections get `[]` for their
5220 section number.
5222 * `Text.Pandoc.Pretty`:
5224 + Fixed `chomp` so it works inside `Prefixed` elements.
5225 + Changed `Show` instance so it is better for debugging.
5227 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
5229 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
5231 * Windows installer improvements:
5233 + The installer is now signed with a certificate (thanks to
5234 Fyodor Sheremetyev).
5235 + WiX is used instead of InnoSetup. The installer is now a
5236 standard msi file.
5237 + The version number is now auto-detected, and need not be
5238 updated separately.
5240 * OSX installer improvements:
5242 + The package and pandoc executable are now signed with a
5243 certificate (thanks to Fyodor Sheremetyev).
5244 + RTF version of license is used.
5245 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
5246 Closes #580.
5248 * Converted COPYING to markdown.
5250 * pandoc.cabal: Require latest versions of highlighting-kate,
5251 texmath, citeproc-hs, zip-archive.
5253pandoc (1.10.1)
5255 * Markdown reader: various optimizations, leading to a
5256 significant performance boost.
5258 * RST reader: Allow anonymous form of inline links:
5259 `` `hello <url>`__ `` Closes #724.
5261 * Mediawiki reader: Don't require newlines after tables.
5262 Thanks to jrunningen for the patch. Closes #733.
5264 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
5265 when output is LaTeX, and applied when it is another format.
5266 Partially addresses #730.
5268 * Markdown and RST readers: Added parser to `block` that skips blank
5269 lines. This fixes a subtle regression involving grid tables with
5270 empty cells. Also added test for grid table with empty cells.
5271 Closes #732.
5273 * RST writer: Use `.. code:: language` for code blocks with language.
5274 Closes #721.
5276 * DocBook writer: Fixed output for hard line breaks, adding a newline
5277 between `<literallayout>` tags.
5279 * Markdown writer: Use an autolink when link text matches url.
5280 Previously we also checked for a null title, but this
5281 test fails for links produced by citeproc-hs in bibliographies.
5282 So, if the link has a title, it will be lost on conversion
5283 to an autolink, but that seems okay.
5285 * Markdown writer: Set title, author, date variables as before.
5286 These are no longer used in the default template, since we use
5287 titleblock, but we set them anyway for those who use custom templates.
5289 * LaTeX writer: Avoid extra space at start/end of table cell.
5290 Thanks to Nick Bart for the suggestion of using @{}.
5292 * `Text.Pandoc.Parsing`:
5294 + More efficient version of `anyLine`.
5295 + Type of `macro` has changed; the parser now returns `Blocks`
5296 instead of `Block`.
5298 * Relaxed old-time version bound, allowing 1.0.*.
5300 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
5301 should create a symlink as described in the README.
5303pandoc (1.10.0.5)
5305 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
5306 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
5307 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
5309 * Markdown reader: Fixed bug with headerless grid tables.
5310 The 1.10 code assumed that each table header cell contains exactly one
5311 block. That failed for headerless tables (0) and also for tables with
5312 multiple blocks in a header cell. The code is fixed and tests provided.
5313 Thanks to Andrew Lee for pointing out the bug.
5315 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
5317 + Tilde code fences can again take a bare language string
5318 (`~~~ haskell`), not just curly-bracketed attributes
5319 (`~~~ {.haskell}`).
5320 + Backtick code blocks can take the curly-bracketed attributes.
5321 + Backtick code blocks don't *require* a language.
5322 + Consolidated code for the two kinds of fenced code blocks.
5324 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
5326 * Markdown writer: Use proportional font for email autolinks with
5327 obfuscation. Closes #714.
5329 * Corrected name of `blank_before_blockquote` in README. Closes #718.
5331 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
5332 The bug prevented an autolink at the end of a string (e.g.
5333 at the end of a line block line) from counting as a link. Closes #711.
5335 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
5336 This should work on Windows, unlike the TH solution with
5337 file-embed.
5339 * Eliminated use of TH in test suite.
5341 * Added `Text.Pandoc.Data` (non-exported) to hold the association
5342 list of embedded data files, if the `embed_data_files` flag is selected.
5343 This isolates the code that needs special treatment with file-embed or
5344 `hsb2hs`.
5346 * Changes to `make-windows-installer.bat`.
5348 + Exit batch file if any of the cabal-dev installs fail.
5349 + There's no longer any need to reinstall `highlighting-kate`.
5350 + Don't start with a `cabal update`; leave that to the user.
5351 + Force reinstall of pandoc.
5353 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
5354 Jens Petersen.
5356pandoc (1.10.0.4)
5358 * Fixed bug with escaped % in LaTeX reader. Closes #710.
5360pandoc (1.10.0.3)
5362 * Added further missing fb2 tests to cabal file.
5364pandoc (1.10.0.2)
5366 * Added fb2 tests to cabal file's extra-source-files.
5368pandoc (1.10.0.1)
5370 * Bump version bounds on test-framework packages.
5372pandoc (1.10)
5374 [new features]
5376 * New input formats: `mediawiki` (MediaWiki markup).
5378 * New output formats: `epub3` (EPUB v3 with MathML),
5379 `fb2` (FictionBook2 ebooks).
5381 * New `--toc-depth` option, specifying how many levels of
5382 headers to include in a table of contents.
5384 * New `--epub-chapter-level` option, specifying the header
5385 level at which to divide EPUBs into separate files.
5386 Note that this normally affects only performance, not the
5387 visual presentation of the EPUB in a reader.
5389 * Removed the `--strict` option. Instead of using `--strict`,
5390 one can now use the format name `markdown_strict` for either input
5391 or output. This gives more fine-grained control that `--strict`
5392 did, allowing one to convert from pandoc's markdown to strict
5393 markdown or vice versa.
5395 * It is now possible to enable or disable specific syntax
5396 extensions by appending them (with `+` or `-`) to the writer
5397 or reader name. For example,
5399 pandoc -f markdown-footnotes+hard_line_breaks
5401 disables footnotes and enables treating newlines as hard
5402 line breaks. The literate Haskell extensions are now implemented
5403 this way as well, using either `+lhs` or `+literate_haskell`.
5404 For a list of extension names, see the README under
5405 "Pandoc's Markdown."
5407 * The following aliases have been introduced for specific
5408 combinations of markdown extensions: `markdown_phpextra`,
5409 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
5410 work just like regular reader and writer names, and can be modified
5411 with extension modifiers as described above. (Note that conversion
5412 from one markdown dialect to another does not work perfectly,
5413 because there are differences in markdown parsers besides
5414 just the extensions, and because pandoc's internal document model is
5415 not rich enough to capture all of the extensions.)
5417 * New `--html-q-tags` option. The previous default was to use `<q>`
5418 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
5419 Moreover, they are not a robust way of typesetting quotes, since
5420 some user agents don't support them, and some CSS resets (e.g.
5421 bootstrap) prevent pandoc's quotes CSS from working properly.
5422 We now just insert literal quote characters by default in both
5423 `html` and `html5` output, but this option is provided for
5424 those who still want `<q>` tags.
5426 * The markdown reader now prints warnings (to stderr) about
5427 duplicate link and note references. Closes #375.
5429 * Markdown syntax extensions:
5431 + Added pipe tables. Thanks to François Gannaz for the initial patch.
5432 These conform to PHP Markdown Extra's pipe table syntax. A subset
5433 of org-mode table syntax is also supported, which means that you can
5434 use org-mode's nice table editor to create tables.
5436 + Added support for RST-style line blocks. These are
5437 useful for verse and addresses.
5439 + Attributes can now be specified for headers, using the same
5440 syntax as in code blocks. (However, currently only the
5441 identifier has any effect in most writers.) For example,
5443 # My header {#foo}
5445 See [the header above](#foo).
5447 + Pandoc will now act as if link references have been defined
5448 for all headers without explicit identifiers.
5449 So, you can do this:
5451 # My header
5453 Link to [My header].
5454 Another link to [it][My header].
5456 Closes #691.
5458 * LaTeX reader:
5460 + Command macros now work everywhere, including non-math.
5461 Environment macros still not supported.
5462 + `\input` now works, as well as `\include`. TEXINPUTS is used.
5463 Pandoc looks recursively into included files for more included files.
5465 [behavior changes]
5467 * The Markdown reader no longer puts the text of autolinks in a
5468 `Code` inline. This means that autolinks will no longer appear
5469 in a monospace font.
5471 * The character `/` can now appear in markdown citation keys.
5473 * HTML blocks in strict_markdown are no longer required to begin
5474 at the left margin. Technically this is required, according to
5475 the markdown syntax document, but `Markdown.pl` and other markdown
5476 processors are more liberal.
5478 * The `-V` option has been changed so that if there are duplicate
5479 variables, those specified later on the command line take precedence.
5481 * Tight lists now work in LaTeX and ConTeXt output.
5483 * The LaTeX writer no longer relien on the `enumerate` package.
5484 Instead, it uses standard LaTeX commands to change the list numbering
5485 style.
5487 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
5488 tables to be split over page boundaries.
5490 * The RST writer now uses a line block to render paragraphs containing
5491 linebreaks (which previously weren't supported at all).
5493 * The markdown writer now applies the `--id-prefix` to footnote IDs.
5494 Closes #614.
5496 * The plain writer no longer uses backslash-escaped line breaks
5497 (which are not very "plain").
5499 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
5500 Read bytestring and use `Text`'s decodeUtf8 instead of using
5501 `System.IO.hGetContents`. This way you get a message saying
5502 "invalid UTF-8 stream" instead of "invalid byte sequence."
5503 You are also told which byte caused the problem.
5505 * Docx, ODT, and EPUB writers now download images specified by a URL
5506 instead of skipping them or raising an error.
5508 * EPUB writer:
5510 + The default CSS now left-aligns headers by default, instead of
5511 centering. This is more consistent with the rest of the writers.
5512 + A proper multi-level table of contents is now used in `toc.ncx`.
5513 There is no longer a subsidiary table of contents at the beginning
5514 of each chapter.
5515 + Code highlighting now works by default.
5516 + Section divs are used by default for better semantic markup.
5517 + The title is used instead of "Title Page" in the table of contents.
5518 Otherwise we have a hard-coded English string, which looks
5519 strange in ebooks written in other languages. Closes #572.
5521 * HTML writer:
5523 + Put mathjax in span with class "math". Closes #562.
5524 + Put citations in a span with class "citation." In HTML5, also include
5525 a `data-cite` attribute with a space-separated list of citation
5526 keys.
5528 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
5529 This treats both `\r\n` and `\n` as `\n` on input, no matter
5530 what platform we're running on.
5532 * Citation processing is now done in the Markdown and LaTeX
5533 readers, not in `pandoc.hs`. This makes it easier for library users
5534 to use citations.
5536 [template changes]
5538 * HTML: Added css to template to preserve spaces in `<code>` tags.
5539 Thanks to Dirk Laurie.
5541 * Beamer: Remove English-centric strings in section pages.
5542 Section pages used to have "Section" and a number as well as the
5543 section title. Now they just have the title. Similarly for part
5544 and subsection. Closes #566.
5546 * LaTeX, ConTeXt: Added papersize variable.
5548 * LaTeX, Beamer templates: Use longtable instead of ctable.
5550 * LaTeX, Beamer templates: Don't require 'float' package for tables.
5551 We don't actually seem to use the '[H]' option.
5553 * LaTeX: Use `upquote` package if it is available. This fixes
5554 straight quotes in verbatim environments.
5556 * Markdown, plain: Fixed titleblock so it is just a single string.
5557 Previously separate title, author, and date variables were used,
5558 but this didn't allow different kinds of title blocks.
5560 * EPUB:
5562 + Rationalized templates. Previously there were three different
5563 templates involved in epub production. There is now just one
5564 template, `default.epub` or `default.epub3`. It can now be
5565 overridden using `--template`, just like other templates.
5566 The titlepage is now folded into the default template.
5567 A `titlepage` variable selects it.
5568 + UTF-8, lang tag, meta tags, title element.
5570 * Added scale-to-width feature to beamer template
5572 [API changes]
5574 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
5575 Previously header identifers were autogenerated by the writers.
5576 Now they are added in the readers (either automatically or explicitly).
5578 * `Text.Pandoc.Builder`:
5580 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
5581 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
5582 custom Monoid instances for `Many Inline` and `Many Block. This
5583 allows `Many` to be made an instance of `Foldable` and `Traversable`.
5584 + The old `Listable` class has been removed.
5585 + The module now exports `isNull`, `toList`, `fromList`.
5586 + The old `Read` and `Show` instances have been removed; derived
5587 instances are now used.
5588 + Added `headerWith`.
5590 * The readers now take a `ReaderOptions` rather than a `ParserState`
5591 as a parameter. Indeed, not all parsers use the `ParserState` type;
5592 some have a custom state. The motivation for this change was to separate
5593 user-specifiable options from the accounting functions of parser state.
5595 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
5596 formerly in `Text.Pandoc.Shared`, and its associated
5597 data types. It also includes a new type `ReaderOptions`, which
5598 contains many options formerly in `ParserState`, and its associated
5599 data types:
5601 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
5602 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
5603 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
5604 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
5605 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
5606 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
5607 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
5608 + `ParserState.stateIndentedCodeClasses` ->
5609 `ReaderOptions.readerIndentedCodeClasses`.
5610 + Added `ReaderOptions.readerCitationStyle`.
5612 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
5613 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
5614 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
5615 been renamed `writerEpubMetadata` for consistency.
5617 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
5618 longer stylesheet, fonts, reference files as separate parameters.
5620 * Removed `writerLiterateHaskell` from `WriterOptions`, and
5621 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
5622 by an extension (`Ext_literate_haskell`).
5624 * Removed deprecated `writerXeTeX`.
5626 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
5627 Strict is now handled through extensions.
5629 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
5630 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
5631 and `multimarkdownExtensions`, as well as the `Extensions` type.
5633 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
5634 `readMediaWiki`.
5636 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
5637 (thanks to Sergey Astanin).
5639 * `Text.Pandoc`:
5641 + Added `getReader`, `getWriter` to `Text.Pandoc`.
5642 + `writers` is now an association list `(String, Writer)`.
5643 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
5644 an `IOByteStringWriter`. ALL writers are now in the 'writers'
5645 list, including the binary writers and FB2 writer. This allows
5646 code in `pandoc.hs` to be simplified.
5647 + Changed type of `readers`, so all readers are in IO.
5648 Users who want pure readers can still get them form the reader
5649 modules; this just affects the function `getReader` that looks up
5650 a reader based on the format name. The point of this change is to
5651 make it possible to print warnings from the parser.
5653 * `Text.Pandoc.Parsing`:
5655 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
5656 No other module directly imports Parsec. This will make it easier
5657 to change the parsing backend in the future, if we want to.
5658 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
5659 + Export the type synonym `Parser`.
5660 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
5661 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
5662 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
5663 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
5664 + `ParserState` is no longer an instance of `Show`.
5665 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
5666 + Generalized type of `withQuoteContext`.
5667 + Added `guardEnabled`, `guardDisabled`, `getOption`.
5668 + Removed `failIfStrict`.
5669 + `lookupKeySrc` and `fromKey` are no longer exported.
5671 * `Data.Default` instances are now provided for `ReaderOptions`,
5672 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
5673 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
5674 of `defaultWriterOptions` (which is still defined). Closes #546.
5676 * `Text.Pandoc.Shared`:
5678 + Added `safeRead`.
5679 + Renamed `removedLeadingTrailingSpace` to `trim`,
5680 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
5681 + Count `\r` as space in `trim` functions.
5682 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
5683 to `Shared`.
5684 + Removed `failUnlessLHS`.
5685 + Export `compactify'`, formerly in Markdown reader.
5686 + Export `isTightList`.
5687 + Do not export `findDataFile`.
5688 + `readDataFile` now returns a strict ByteString.
5689 + Export `readDataFileUTF8` which returns a String, like the
5690 old `readDataFile`.
5691 + Export `fetchItem` and `openURL`.
5693 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
5694 Removed `readImageSize`.
5696 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
5697 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
5698 `fromStringLazy`.
5700 * `Text.Pandoc.UTF8` is now an exposed module.
5702 * `Text.Pandoc.Biblio`:
5704 + csl parameter now a `String` rather than a `FilePath`.
5705 + Changed type of `processBiblio`. It is no longer in the IO monad.
5706 It now takes a `Maybe Style` argument rather than parameters for CSL
5707 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
5708 the style file and add abbreviations.)
5710 * Markdown reader now exports `readMarkdownWithWarnings`.
5712 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
5713 `rtfEmbedImage`.
5715 [bug fixes]
5717 * Make `--ascii` work properly with `--self-contained`. Closes #568.
5719 * Markdown reader:
5721 + Fixed link parser to avoid exponential slowdowns. Closes #620.
5722 Previously the parser would hang on input like this:
5724 [[[[[[[[[[[[[[[[[[hi
5726 We fixed this by making the link parser parser characters
5727 between balanced brackets (skipping brackets in inline code spans),
5728 then parsing the result as an inline list. One change is that
5730 [hi *there]* bud](/url)
5732 is now no longer parsed as a link. But in this respect pandoc behaved
5733 differently from most other implementations anyway, so that seems okay.
5735 + Look for raw html/latex blocks before tables.
5736 Otherwise the following gets parsed as a table:
5738 \begin{code}
5739 --------------
5740 -- My comment.
5741 \end{code}
5743 Closes #578.
5745 * RST reader:
5747 + Added support for `:target:` on `.. image::` blocks
5748 and substitutions.
5749 + Field list fixes:
5751 - Fixed field lists items with body beginning after a new line
5752 (Denis Laxalde).
5753 - Allow any char but ':' in names of field lists in RST reader
5754 (Denis Laxalde).
5755 - Don't allow line breaks in field names.
5756 - Require whitespace after field list field names.
5757 - Don't create empty definition list for metadata field lists.
5758 Previously a field list consisting only of metadata fields (author,
5759 title, date) would be parsed as an empty DefinitionList, which is
5760 not legal in LaTeX and not needed in any format.
5762 + Don't recognize inline-markup starts inside words.
5763 For example, `2*2 = 4*1` should not contain an emphasized
5764 section. Added test case for "Literal symbols". Closes #569.
5765 + Allow dashes as separator in simple tables. Closes #555.
5766 + Added support for `container`, `compound`, `epigraph`,
5767 `rubric`, `highlights`, `pull-quote`.
5768 + Added support for `.. code::`.
5769 + Made directive labels case-insensitive.
5770 + Removed requirement that directives begin at left margin.
5771 This was (correctly) not in earlier releases; docutils doesn't
5772 make the requirement.
5773 + Added support for `replace::` and `unicode::` substitutions.
5774 + Ignore unknown interpreted roles.
5775 + Renamed image parser to `subst`, since it now handles all
5776 substitution references.
5778 * Textile reader:
5780 + Allow newlines before pipes in table. Closes #654.
5781 + Fixed bug with list items containing line breaks.
5782 Now pandoc correctly handles hard line breaks inside list items.
5783 Previously they broke list parsing.
5784 + Implemented comment blocks.
5785 + Fixed bug affected words ending in hyphen.
5786 + Properly handle links with surrounding brackets.
5787 Square brackets need to be used when the link isn't surrounded by
5788 spaces or punctuation, or when the URL ending may be ambiguous.
5789 Closes #564.
5790 + Removed nullBlock. Better to know about parsing problems than
5791 to skip stuff when we get stuck.
5792 + Allow ID attributes on headers.
5793 + Textile reader: Avoid parsing dashes as strikeout.
5794 Previously the input
5796 text--
5797 text--
5798 text--
5799 text--
5801 would be parsed with strikeouts rather than dashes. This fixes
5802 the problem by requiring that a strikeout delimiting - not be
5803 followed by a -. Closes #631.
5804 + Expanded list of `stringBreakers`.
5805 This fixes a bug on input like "(_hello_)" which should
5806 be a parenthesized emphasized "hello".
5807 The new list is taken from the PHP source of textile 2.4.
5808 + Fixed autolinks. Previously the textile reader and writer
5809 incorrectly implented RST-style autolinks for URLs and email
5810 addresses. This has been fixed. Now an autolink is done this way:
5811 `"$":http://myurl.com`.
5812 + Fixed footnotes bug in textile. This affected notes occuring
5813 before punctuation, e.g. `foo[1].`. Closes #518.
5815 * LaTeX reader:
5817 + Better handling of citation commands.
5818 + Better handling of `\noindent`.
5819 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
5820 Closes #622.
5821 + Made `rawLaTeXInline` try to parse block commands as well. This
5822 is usually what we want, given how `rawLaTeXInline` is used in
5823 the markdown and textile readers. If a block-level LaTeX command
5824 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
5825 we can treat it as raw inline LaTeX.
5826 + Handle \slash command. Closes #605.
5827 + Basic `\enquote` support.
5828 + Fixed parsing of paragraphs beginning with a group. Closes #606.
5829 + Use curly quotes for bare straight quotes.
5830 + Support obeylines environment. Closes #604.
5831 + Guard against "begin", "end" in inlineCommand and
5832 blockCommand.
5833 + Better error messages for environments. Now it should tell you that
5834 it was looking for \end{env}, instead of giving "unknown parse error."
5836 * HTML reader:
5838 + Added HTML 5 tags to list of block-level tags.
5839 + HTML reader: Fixed bug in `htmlBalanced`, which
5840 caused hangs in parsing certain markdown input using
5841 strict mode.
5842 + Parse `<q>` as `Quoted DoubleQuote`.
5843 + Handle nested `<q>` tags properly.
5844 + Modified `htmlTag` for fewer false positives.
5845 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
5846 This makes it more useful in the wikimedia and markdown parsers.
5848 * DocBook reader: Support title in "figure" element. Closes #650.
5850 * MediaWiki writer:
5852 + Remove newline after `<br/>` in translation of `LineBreak`
5853 There's no particular need for a newline (other than making the
5854 generated MediaWiki source look nice to a human), and in fact
5855 sometimes it is incorrect: in particular, inside an enumeration, list
5856 items cannot have embedded newline characters. (Brent Yorgey)
5857 + Use `<code>` not `<tt>` for Code.
5859 * Man writer: Escape `-` as `\-`.
5860 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
5861 signs. That is preferable for use with command-line options. See
5862 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
5863 to Andrea Bolognani for bringing the issue to our attention.
5865 * RST writer:
5867 + Improved line block output. Use nonbreaking spaces for
5868 initial indent (otherwise lost in HTML and LaTeX).
5869 Allow multiple paragraphs in a single line block.
5870 Allow soft breaks w continuations in line blocks.
5871 + Properly handle images with no alt text. Closes #678.
5872 + Fixed bug with links with duplicate text. We now (a) use anonymous
5873 links for links with inline URLs, and (b) use an inline link instead
5874 of a reference link if the reference link would require a label that
5875 has already been used for a different link. Closes #511.
5876 + Fixed hyperlinked images. Closes #611. Use `:target:`
5877 field when you have a simple linked image.
5878 + Don't add `:align: center` to figures.
5880 * Texinfo writer: Fixed internal cross-references.
5881 Now we insert anchors after each header, and use `@ref` instead of `@uref`
5882 for links. Commas are now escaped as `@comma{}` only when needed;
5883 previously all commas were escaped. (This change is needed, in part,
5884 because `@ref` commands must be followed by a real comma or period.) Also
5885 insert a blank line in from of `@verbatim` environments.
5887 * DocBook writer:
5889 + Made --id-prefix work in DocBook as well as HTML.
5890 Closes #607.
5891 + Don't include empty captions in figures. Closes #581.
5893 * LaTeX writer:
5895 + Use `\hspace*` for nonbreaking space after line break,
5896 since `~` spaces after a line break are just ignored.
5897 Closes #687.
5898 + Don't escape `_` in URLs or hyperref identifiers.
5899 + Properly escape strings inside \url{}. Closes #576.
5900 + Use `[fragile]` only for slides containing code rendered
5901 using listings. Closes #649.
5902 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
5903 highlighting-kate's macros, which redefine `|` as a short verbatim
5904 delimiter. Thanks to Björn Peemöller for raising this issue.
5905 + Use minipage rather than parbox for block containers in tables.
5906 This allows verbatim code to be included in grid tables.
5907 Closes #663.
5908 + Prevent paragraphs containing only linebreaks or spaces.
5910 * HTML writer:
5912 + Included `highlighting-css` for code spans, too.
5913 Previously it was only included if used in a code block. Closes #653.
5914 + Improved line breaks with `<dd>` tags. We now put a newline between
5915 `</dd>` and `<dd>` when there are multiple definitions.
5916 + Changed mathjax cdn url so it doesn't use https. (This caused
5917 problems when used with `--self-contained`.) See #609.
5919 * EPUB writer:
5921 + `--number-sections` now works properly.
5922 + Don't strip meta and link elements in epub metadata.
5923 Patch from aberrancy. Closes #589.
5924 + Fixed a couple validation bugs.
5925 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
5926 of chapters in some readers, which apparently sort ch2 after ch10.
5927 Closes #610.
5929 * ODT writer: properly set title property (Arlo O'Keeffe).
5931 * Docx writer:
5933 + Fixed bug with nested lists. Previously a list like
5935 1. one
5936 - a
5937 - b
5938 2. two
5940 would come out with a bullet instead of "2."
5941 Thanks to Russell Allen for reporting the bug.
5942 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
5943 This seems to fix a problem viewing pandoc-generated
5944 docx files in LibreOffice.
5945 + Use integer ids for bookmarks. Closes #626.
5946 + Added nsid to abstractNum elements. This helps when merging
5947 word documents with numbered or bulleted lists. Closes #627.
5948 + Use separate footnotes.xml for notes.
5949 This seems to help LibreOffice convert the file, even though
5950 it was valid docx before. Closes #637.
5951 + Use rIdNN identifiers for r:embed in images.
5952 + Avoid reading image files again when we've already processed them.
5953 + Fixed typo in `referenc.docx` that prevented image captions from
5954 working. Thanks to Huashan Chen.
5956 * `Text.Pandoc.Parsing`:
5958 + Fixed bug in `withRaw`, which didn't correctly handle the case
5959 where nothing is parsed.
5960 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
5961 though it still doesn't implement quoted strings in email addresses.
5962 + Revised URI parser. It now allows many more schemes, allows
5963 uppercase URIs, and better handles trailing punctuation and
5964 trailing slashes in bare URIs. Added many tests.
5965 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
5966 etc. parse properly. Formerly we had some English-centric heuristics,
5967 but they are no longer needed. Closes #698.
5969 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
5970 This fixes bug with Chinese commas in markdown and reST tables, and
5971 a bug that caused combining characters to be dropped.
5973 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
5975 * `Text.Pandoc.Biblio`:
5977 + Run `mvPunc` and `deNote` on metadata too.
5978 This fixed a bug with notes on titles using footnote styles.
5979 + Fixed bug in fetching CSL files from CSL data directory.
5981 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
5982 is provided. It should be the URL up to the path.
5984 * Fixed/simplified diff output for tests.
5985 Biblio: Make sure mvPunc and deNote run on metadata too.
5986 This fixed a bug with notes on titles using footnote styles.
5988 [under the hood improvements]
5990 * We no longer depend on `utf8-string`. Instead we use functions
5991 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
5993 * Use `safeRead` instead of using `reads` directly (various modules).
5995 * "Implicit figures" (images alone in a paragraph) are now handled
5996 differently. The markdown reader gives their titles the prefix `fig:`; the
5997 writers look for this before treating the image as a figure. Though this
5998 is a bit of a hack, it has two advantages: (i) implicit figures can be
5999 limited to the markdown reader, and (ii) they can be deactivated by turning
6000 off the `implicit_figures` extension.
6002 * `catch` from `Control.Exception` is now used instead of the
6003 old Preface `catch`.
6005 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
6006 and `oneOfStrings` (which is now non-backtracking).
6008 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
6009 Now citeproc-hs is fixed upstream, so this is no longer needed.
6010 Closes #531.
6012 * Textile reader: Improved speed of `hyphenedWords`.
6013 This speeds up the textile reader by about a factor of 4.
6015 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
6016 better performance, and automatic normalization.
6018 * Major rewrite of markdown reader:
6020 + Use `Text.Pandoc.Builder` instead of lists. This also
6021 means that everything is normalized automatically.
6022 + Move to a one-pass parsing strategy, returning values in the reader
6023 monad, which are then run (at the end of parsing) against the final
6024 parser state.
6026 * In HTML writer, we now use `toHtml` instead of pre-escaping.
6027 We work around the problem that blaze-html unnecessarily escapes `'`
6028 by pre-escaping just the `'` characters, instead of the whole string.
6029 If blaze-html later stops escaping `'` characters, we can simplify
6030 `strToHtml` to `toHtml`. Closes #629.
6032 * Moved code for embedding images in RTFs from `pandoc.hs` to the
6033 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
6035 * Moved citation processing from `pandoc.hs` into the readers.
6036 This makes things more convenient for library users.
6038 * The man pages are now built by an executable `make-pandoc-man-pages`,
6039 which has its own stanza in the cabal file so that dependencies can be
6040 handled by Cabal. Special treatment in `Setup.hs` ensures that this
6041 executable never gets installed; it is only used to create the man pages.
6043 * The cabal file has been modified so that the pandoc library is used
6044 in building the pandoc executable. (This required moving `pandoc.hs`
6045 from `src` to `.`.) This cuts compile time in half.
6047 * `-O2` is no longer used in building pandoc. The performance improvement
6048 it yields is so slight that it is not worth it. (Measured with
6049 benchmarks on ghc 7.4.)
6051 * The `executable` and `library` flags have been removed.
6053 * `-threaded` has been removed from ghc-options.
6055 * Version bounds of dependencies have been raised, and the
6056 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
6057 GHC 7.6.
6059 * We now require base >= 4.2.
6061 * Integrated the benchmark program into cabal. One can now do:
6063 cabal configure --enable-benchmarks && cabal build
6064 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
6066 The benchmark now uses README + testsuite, so benchmark results
6067 from older versions aren't comparable.
6069 * Integrated test suite with cabal.
6070 To run tests, configure with `--enable-tests`, then `cabal test`.
6071 You can specify particular tests using `--test-options='-t markdown'`.
6072 No output is shown unless tests fail. The Haskell test modules
6073 have been moved from `src/` to `tests/`.
6075 * Moved all data files and templates to the `data/` subdirectory.
6077 * Added an `embed_data_files` cabal flag. This causes all
6078 data files to be embedded in the binary, so that the binary
6079 is self-sufficient and can be relocated anywhere, copied on
6080 a USB key, etc. The Windows installer now uses this.
6081 (Since we no longer have the option to build the executable
6082 without the library, this is the only way to get a relocatable
6083 binary on Windows.)
6085 * Removed pcre3.dll from windows package.
6086 It isn't needed unless highlighting-kate is compilled with the
6087 `pcre-light` flag. By default, regex-prce-builtin is used.
6090pandoc (1.9.4.2)
6092 * Don't encode/decode file paths if base >= 4.4.
6093 Prior to base 4.4, filepaths and command line arguments were treated
6094 as unencoded lists of bytes, not unicode strings, so we had to work
6095 around that by encoding and decoding them. This commit adds CPP
6096 checks for the base version that intelligibly enable encoding/decoding
6097 when needed. Fixes a bug with multilingual filenames when pandoc was
6098 compiled with ghc 7.4 (#540).
6100 * Don't generate an empty H1 after hrule slide breaks.
6101 We now use a slide-level header with contents `[Str "\0"]` to mark
6102 an hrule break. This avoids creation of an empty H1 in these
6103 contexts. Closes #484.
6105 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
6107 * In make_osx_package.sh, ensure citeproc-hs is built with the
6108 embed_data_files flag.
6110 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
6112 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
6113 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
6115 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
6116 Closes #535.
6118 * Added webm to mime types. Closes #543.
6120 * Added some missing exports and tests to the cabal file
6121 (Alexander V Vershilov).
6123 * Compile with `-rtsopts` and `-threaded` by default.
6125pandoc (1.9.4.1)
6127 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
6129 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
6130 variables. Make TOC links black.
6132 * LaTeX template improvements.
6134 + Don't print date unless one is given explicitly in the document.
6135 + Simplified templates.
6136 + Use fontenc [T1] by default, and lmodern.
6137 + Use microtype if available.
6139 * Biblio:
6141 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
6142 Motivation: `@item1 [50]` should be as close as possible to
6143 `[@item1, 50]`.
6144 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
6145 beginning with a citation to be empty. Closes #531.
6147 * Fixed documentation on mixed lists. Closes #533.
6149pandoc (1.9.4)
6151 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
6152 footnotes and captions. We now handle note citations by inserting
6153 footnotes during initial citation processing, and doing a separate
6154 pass later to remove notes inside notes.
6156 * Added 'zenburn' highlight style from highlighting-kate.
6158 * Added Slideous writer. Slideous is an HTML + javascript slide show
6159 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
6161 * LaTeX writer:
6163 + Ensure we don't have extra blank lines at ends of cells.
6164 This can cause LaTeX errors, as they are interpreted as new paragraphs.
6165 + More consistent interblock spacing.
6166 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
6167 code in LaTeX. Closes #527.
6168 + Ensure that a Verbatim at the end of a footnote is followed by
6169 a newline. (Fixes a regression in the previous version.)
6170 + In default template, use black for internal links and TOC.
6171 Added commented-out code to use footnotes for links, as would
6172 be suitable in print output.
6174 * Beamer writer: When `--incremental` is used, lists inside
6175 a block quote should appear all at once. (This makes Beamer
6176 output consistent with the HTML slide show formats.)
6178 * ConTeXt writer:
6180 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
6181 to avoid gobbling spaces after the `%` sign.
6182 + Ensure space after `\stopformula`.
6184 * Markdown writer:
6186 + Use `:` form instead of `~` in definition lists, for better
6187 compatibility with other markdown implementations.
6188 + Don't wrap the term, because it breaks definition lists.
6189 + Use a nonzero space to prevent false recognition
6190 of list marker in ordered lists. Closes #516.
6192 * Org writer: Add space before language name. Closes #523.
6194 * Docx writer: Simplified bullet characters so they work properly
6195 with Word 2007. Closes #520.
6197 * LaTeX reader: Support `\centerline`.
6199 * RST reader: handle figures. Closes #522.
6201 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
6202 (Paul Rivier)
6204pandoc (1.9.3)
6206 * Fixed bug in `fromEntities`. The previous version would turn
6207 `hi & low you know;` into `hi &`.
6209 * HTML reader:
6211 + Don't skip nonbreaking spaces.
6212 Previously a paragraph containing just `&nbsp;` would be rendered
6213 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
6214 + Support `<col>` and `<caption>` in tables. Closes #486.
6216 * Markdown reader:
6218 + Don't recognize references inside delimited code blocks.
6219 + Allow list items to begin with lists.
6221 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
6223 * LaTeX reader:
6225 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
6226 + Control sequences can't be followed by a letter.
6227 This fixes a bug where `\begingroup` was parsed as `\begin`
6228 followed by `group`.
6229 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
6230 + Make `\label` and `\ref` sensitive to `--parse-raw`.
6231 If `--parse-raw` is selected, these will be parsed as raw latex
6232 inlines, rather than bracketed text.
6233 + Don't crash on unknown block commands (like `\vspace{10pt}`)
6234 inside `\author`; just skip them. Closes #505.
6236 * Textile reader:
6238 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
6239 + Added support for LaTeX blocks and inlines (Paul Rivier).
6240 + Better conformance to RedCloth inline parsing (Paul Rivier).
6241 + Parse '+text+' as emphasized (should be underlined, but this
6242 is better than leaving literal plus characters in the output.
6244 * Docx writer: Fixed multi-paragraph list items. Previously they each
6245 got a list marker. Closes #457.
6247 * LaTeX writer:
6249 + Added `--no-tex-ligatures` option to avoid replacing
6250 quotation marks and dashes with TeX ligatures.
6251 + Use `fixltx2e` package to provide '\textsubscript'.
6252 + Improve spacing around LaTeX block environments:
6253 quote, verbatim, itemize, description, enumerate.
6254 Closes #502.
6255 + Use blue instead of pink for URL links in latex/pdf output.
6257 * ConTeXt writer: Fixed escaping of `%`.
6258 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
6259 Inside URLs, `%` needs to be escaped as `\%`
6260 Thanks to jmarca and adityam for the fix. Closes #492.
6262 * Texinfo writer: Escape special characters in node titles.
6263 This fixes a problem pointed out by Joost Kremers. Pandoc used
6264 to escape an '@' in a chapter title, but not in the corresponding
6265 node title, leading to invalid texinfo.
6267 * Fixed document encoding in texinfo template.
6268 Resolves Debian Bug #667816.
6270 * Markdown writer:
6272 + Don't force delimited code blocks to be flush left.
6273 Fixes bug with delimited code blocks inside lists etc.
6274 + Escape `<` and `$`.
6276 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
6277 Previously we used `\href{\#ident}{text}`, which didn't work on
6278 all systems. Thanks to Dirk Laurie.
6280 * RST writer: Don't wrap link references. Closes #487.
6282 * Updated to use latest versions of blaze-html, mtl.
6285pandoc (1.9.2)
6287 * LaTeX reader:
6289 + Made `lstlisting` work as a proper verbatim environment.
6290 + Fixed bug parsing LaTeX tables with one column.
6292 * LaTeX writer:
6294 + Use `{}` around `ctable` caption, so that formatting can be used.
6295 + Don't require eurosym package unless document has a €.
6297 * LaTeX template: Added variables for `geometry`, `romanfont`,
6298 `sansfont`, `mathfont`, `mainfont` so users can more easily
6299 customize fonts.
6301 * PDF writer:
6303 + Run latex engine at least two times, to ensure
6304 that PDFs will have hyperlinked bookmarks.
6305 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
6307 * Texinfo writer: retain directories in image paths. (Peter Wang)
6309 * RST writer: Better handling of inline formatting, in accord
6310 with docutils' "inline markup recognition rules" (though we don't
6311 implement the unicode rules fully). Now `hi*there*hi` gets
6312 rendered properly as `hi\ *there*\ hi`, and unnecessary
6313 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
6315 * RST reader:
6317 + Parse `\ ` as null, not escaped space.
6318 + Allow `` :math:`...` `` even when not followed by blank
6319 or `\`. This does not implement the complex rule docutils follows,
6320 but it should be good enough for most purposes.
6321 + Add support for the rST default-role directive. (Greg Maslov)
6323 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
6324 (Greg Maslov)
6326 * Markdown reader: Properly handle citations nested in other inline
6327 elements.
6329 * Markdown writer: don't replace empty alt in image with "image".
6331 * DZSlides: Updated template.html and styles in default template.
6332 Removed bizarre CSS for `q` in dzslides template.
6334 * Avoid repeated `id` attribute in section and header in HTML slides.
6336 * README improvements: new instructions on internal links,
6337 removed misleading note on reST math.
6339 * Build system:
6341 + Fixed Windows installer so that dzslides works.
6342 + Removed stripansi.sh.
6343 + Added .travis.yml for Travis continuous integration support..
6344 + Fixed upper bound for zlib (Sergei Trofimovich).
6345 + Fixed upper bound for test-framework.
6346 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
6348pandoc (1.9.1.2)
6350 * Added `beamer+lhs` as output format.
6352 * Don't escape `<` in `<style>` tags with `--self-contained`.
6353 This fixes a bug which prevented highlighting from working
6354 when using `--self-contained`.
6356 * PDF: run latex engine three times if `--toc` specified.
6357 This fixes page numbers in the table of contents.
6359 * Docx writer: Added TableNormal style to tables.
6361 * LaTeX math environment fixes. `aligned` is now used instead of
6362 the nonexistent `aligned*`. `multline` instead of the nonexistent
6363 `multiline`.
6365 * LaTeX writer: Use `\textasciitilde` for literal `~`.
6367 * HTML writer: Don't escape contents of EQ tags with --gladtex.
6368 This fixes a regression from 1.8.
6370 * Use `<q>` tags for Quoted items for HTML5 output.
6371 The quote style can be changed by modifying the template
6372 or including a css file. A default quote style is included.
6374 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
6375 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
6377 * Updated LaTeX template for better language support.
6378 Use `polyglossia` instead of `babel` with xetex.
6379 Set `lang` as documentclass option.
6380 `\setmainlanguage` will use the last of a comma-separated
6381 list of languages. Thanks to François Gannaz.
6383 * Fixed default LaTeX template so `\euro` and `€` work. The
6384 `eurosym` package is needed if you are using pdflatex.
6386 * Fixed escaping of period in man writer (thanks to Michael Thompson).
6388 * Fixed list label positions in beamer.
6390 * Set `mainlang` variable in context writer.
6391 This parallels behavior of latex writer. `mainlang` is the last
6392 of a comma-separated list of languages in lang.
6394 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
6396 * Changed `-V` so that you can specify a key without a value.
6397 Such keys get the value `true`.
6399 * Fixed permissions on installed man pages - thanks Magnus Therning.
6401 * Windows installer: require XP or higher. The installer is
6402 now compiled on a Windows 7 machine, which fixes a problem
6403 using citation functions on Windows 7.
6405 * OSX package: Check for 64-bit Intel CPU before installing.
6407pandoc (1.9.1.1)
6409 * Better handling of raw latex environments in markdown. Now
6411 \begin{equation}
6412 a_1
6413 \end{equation}
6415 turns into a raw latex block as expected.
6417 * Improvements to LaTeX reader:
6419 + Skip options after block commands.
6420 + Correctly handle `{\\}` in braced.
6421 + Added a needed 'try'.
6422 + Citations: add `, ` to suffix if it doesn't start with space or
6423 punctuation. Otherwise we get no space between the year and the
6424 suffix in author-date styles.
6426 * Added two needed data files for S5. This fixes a problem with
6427 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
6428 which was no longer being used.
6430 * Fixed some minor problems in `reference.docx`:
6431 name on "Date" style, `xCs` instead of `xIs`.
6433 * Fixed a problem creating docx files using a reference docx
6434 modified using Word. The problem seems to be that Word
6435 modifies `_rels/.rels`, changing the Type of the Relationship to
6436 `docProps/core.xml`. Pandoc now changes this back to the correct
6437 value if it has been altered, fixing the problem.
6439 * Fixed html5 template so it works properly with highlighting.
6441pandoc (1.9.1)
6443 * LaTeX reader:
6445 + Fixed regression in 1.9; properly handle escaped $ in latex math.
6446 + Put LaTeX verse environments in blockquotes.
6448 * Markdown reader:
6450 + Limit nesting of strong/emph. This avoids exponential lookahead
6451 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
6452 + Improved attributes syntax (inn code blocks/spans):
6453 (1) Attributes can contain line breaks. (2) Values in key-value
6454 attributes can be surrounded by either double or single quotes, or
6455 left unquoted if they contain no spaces.
6457 * Don't wrap headers in markdown or RST writers.
6459 * Added `stateMaxNestingLevel` to `ParserState`.
6460 We set this to 6, so you can still have `Emph` inside `Emph`,
6461 just not indefinitely.
6463 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
6465 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
6466 is present.
6468 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
6470pandoc (1.9.0.5)
6472 * Changed cabal file so that build-depends for the test program
6473 are not required unless the tests flag is used.
6475 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
6476 form ligatures (dashes) in code spans.
6478pandoc (1.9.0.4)
6480 * Raised version bound on test-framework to avoid problems
6481 compiling tests on GHC 7.4.1.
6483 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
6484 so citations don't just disappear unless you process with
6485 citeproc. Ignore `\bibliographystyle`, `\nocite`.
6487 * Simplified tex2pdf; it will always run latex twice to
6488 resolve table of contents and hyperrefs.
6490pandoc (1.9.0.3)
6492 * Require Cabal >= 1.10.
6493 * Tweaked cabal file to meet Cabal 1.10 requirements.
6495pandoc (1.9.0.2)
6497 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
6498 ghc 6.12.
6500pandoc (1.9)
6502 [new features]
6504 * Added a Microsoft Word `docx` writer. The writer includes support
6505 for highlighted code and for math (which is converted from TeX to OMML,
6506 Office's native math markup language, using texmath's new OMML module).
6507 A new option `--reference-docx` allows the user to customize the
6508 styles.
6510 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
6512 * Better support for slide shows:
6514 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
6515 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
6517 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
6518 slide presentations.
6520 + New, flexible rules for dividing documents into sections and slides
6521 (see the "Structuring the slide show" in the User's Guide). These
6522 are backward-compatible with the old rules, but they allow slide
6523 shows to be organized into sections and subsections containing
6524 multiple slides.
6526 + A new `--slide-level` option allows users to override defaults
6527 and select a slide level below the first header level with content.
6529 * A new `--self-contained` option produces HTML output that does not
6530 depend on an internet connection or the presence of any external
6531 files. Linked images, CSS, and javascript is downloaded (or fetched
6532 locally) and encoded in `data:` URIs. This is useful for making portable
6533 `HTML slide shows. The --offline` option has been deprecated and is now
6534 `treated as a synonym or --self-contained`.
6536 * Support for PDF output:
6538 + Removed the old `markdown2pdf`.
6539 + `pandoc` can now create PDFs (assuming you have latex and a set of
6540 appropriate packages installed): just specify an output file with the
6541 `.pdf` extension.
6542 + A new option `--latex-engine` allows you to specify `pdflatex`,
6543 `xelatex`, or `lualatex` as the processor.
6545 * Highlighting changes:
6547 + Syntax highlighting is now a standard feature; the `highlighting`
6548 flag is no longer needed when compiling.
6549 + A new `--no-highlight` option allows highlighting to be disabled.
6550 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
6551 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
6552 + A new `--highlight-style` option selects between various highlighting
6553 color themes.
6555 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
6557 * LaTeX `\include` and `\usepackage` commands are now processed,
6558 provided the files are in the working directory.
6560 * EPUB improvements:
6562 + Internal and external links now work in EPUB.
6563 + Raw HTML is allowed.
6564 + New `--epub-embed-font` option.
6565 + Customizable templates for EPUB pages offer more control over
6566 formatting: `epub-page.html`, `epub-coverimage.html`,
6567 `epub-titlepage.html`.
6569 * `--mathml` now works with DocBook.
6571 * Added support for math in RST reader and writer. Inline math uses the
6572 `` :math:`...` `` construct. Display math uses
6574 .. math:: ...
6576 or if the math is multiline,
6578 .. math::
6580 ...
6582 These constructions are now supported now by `rst2latex.py`.
6584 * GitHub syntax for fenced code blocks is supported in pandoc's
6585 markdown. You can now write
6587 ```ruby
6588 x = 2
6589 ```
6591 instead of
6593 ~~~ {.ruby}
6594 x = 2
6595 ~~~~
6597 * Easier scripting: a new `toJsonFilter` function makes it easier to
6598 write Haskell scripts to manipulate the Pandoc AST.
6600 [behavior changes]
6602 * Fixed parsing of consecutive lists in markdown.
6603 Pandoc previously behaved like Markdown.pl for consecutive
6604 lists of different styles. Thus, the following would be parsed
6605 as a single ordered list, rather than an ordered list followed
6606 by an unordered list:
6608 1. one
6609 2. two
6611 - one
6612 - two
6614 This change makes pandoc behave more sensibly, parsing this as
6615 two lists. Any change in list type (ordered/unordered) or in
6616 list number style will trigger a new list. Thus, the following
6617 will also be parsed as two lists:
6619 1. one
6620 2. two
6622 a. one
6623 b. two
6625 Since we regard this as a bug in Markdown.pl, and not something
6626 anyone would ever rely on, we do not preserve the old behavior
6627 even when `--strict` is selected.
6629 * Dashes work differently with `--smart`: `---` is always em-dash,
6630 and `--` is always en-dash. Pandoc no longer tries to guess when
6631 `-` should be en-dash. *Note:* This may change how existing documents
6632 look when processed with pandoc. A new option, `--old-dashes`,
6633 is provided for legacy documents.
6635 * The markdown writer now uses setext headers for levels 1-2.
6636 The old behavior (ATX headers for all levels) can be restored
6637 using the new `--atx-headers` option.
6639 * Links are now allowed in markdown image captions. They are also
6640 allowed in links, but will appear there as regular text. So,
6642 [link with [link](/url)](/url)
6644 will turn into
6646 <p><a href="/url">link with link</a></p>
6648 * Improved handling of citations using `citeproc-hs-0.3.4`.
6649 Added `--citation-abbreviations` option.
6651 * Citation keys can no longer end with a punctuation character.
6652 This means that `@item1.` will be parsed as a citation with key
6653 'item1', followed by a period, instead of a citation with key
6654 'item1.', as was the case previously.
6656 * In HTML output, citations are now put in a span with class `citation`.
6658 * The markdown reader now recognizes DocBook block and inline tags.
6659 It was always possible to include raw DocBook tags in a markdown
6660 document, but now pandoc will be able to distinguish block from
6661 inline tags and behave accordingly. Thus, for example,
6663 <sidebar>
6664 hello
6665 </sidebar>
6667 will not be wrapped in `<para>` tags.
6669 * The LaTeX parser has been completely rewritten; it is now much more
6670 accurate, robust, and extensible. However, there are two important
6671 changes in how it treats unknown LaTeX. (1) Previously, unknown
6672 environments became BlockQuote elements; now, they are treated
6673 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
6674 same as `xyz`. (2) Previously, arguments of unknown commands
6675 were passed through with their braces; now the braces are stripped
6676 off.
6678 * `--smart` is no longer selected automatically with `man` output.
6680 * The deprecated `--xetex` option has been removed.
6682 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
6683 instead. `html5` and `html5+lhs` are now separate output formats.
6685 * Single quotes are no longer escaped in HTML output. They do not
6686 need to be escaped outside of attributes.
6688 * Pandoc will no longer transform leading newlines in code
6689 blocks to `<br/>` tags.
6691 * The ODT writer now sizes images appropriately, using the image
6692 size and DPI information embedded in the image.
6694 * `--standalone` is once again implicitly for a non-text output format
6695 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
6696 and get a standalone ODT file.
6698 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
6699 `<section>`.
6701 * The HTML writer now uses `<del>` for strikeout.
6703 * In HTML output with `--section-divs`, the classes `section` and
6704 `level[1,2,..6]` are put on the `div` tags so they can be styled.
6705 In HTML 5 output with `--section-divs`, the classes
6706 `level[1,2,...6]` are put on `section` tags.
6708 * EPUB writer changes:
6710 + The `lang` variable now sets the language
6711 in the metadata (if it is not set, we default to the locale).
6712 + EPUB: UTF-8 is used rather than decimal entities.
6714 * Added `titleslide` class to title slide in S5 template.
6716 * In HTML, EPUB, and docx metadata, the date is normalized into
6717 YYYY-MM-DD format if possible. (This is required for validation.)
6719 * Attributes in highlighted code blocks are now preserved in HTML.
6720 The container element will have the classes, id, and key-value attributes
6721 you specified in the delimited code block. Previously these were stripped
6722 off.
6724 * The reference backlink in the HTML writer no longer has a special
6725 `footnoteBacklink` class.
6727 * The HTML template has been split into `html` and `html5` templates.
6729 * Author and date are treated more consistently in HTML templates.
6730 Authors are now `<h2>`, date `<h3>`.
6732 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
6734 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
6736 [bug fixes]
6738 * Better support for combining characters and East Asian wide characters
6739 in markdown and reST.
6741 * Better handling of single quotes with `--smart`.
6742 Previously `D'oh l'*aide*` would be parsed with left and right single
6743 quotes instead of apostrophes. This kind of error is now fixed.
6745 * Highlighting: Use `reads` instead of `read` for better error handling.
6746 Fixes crash on `startNum="abc"`.
6748 * Added blank comment after directives in rst template.
6750 * Unescape entities in citation `refId`. The `refId`s coming
6751 from citeproc contain XML numeric entities, and these don't match with the
6752 citation keys parsed by pandoc. Solution is to unescape them.
6754 * HTML reader: Fixed bug parsing tables with both thead and tbody.
6756 * Markdown reader:
6758 + Better handling of escapes in link URLs and titles.
6759 + Fixed backslash escapes in reference links.
6760 + Fixed bug in table/hrule parsing, by checking that the top
6761 line of a table is not followed by a blank line. This bug caused
6762 slowdowns on some files with hrules and tables, as pandoc tried to
6763 interpret the hrules as the tops of multiline tables.
6764 + Fixed bug in code block attribute parser. Previously the ID attribute
6765 got lost if it didn't come first. Now attributes can come in any order.
6767 * RST reader: allow footnotes followed by newline without space characters.
6769 * LaTeX reader:
6771 + Ignore empty groups {}, { }.
6772 + LaTeX reader: Handle \@.
6773 + LaTeX reader: Don't crash on commands like `\itemsep`.
6774 + LaTeX reader: Better handling of letter environments.
6776 * RST writer: Fixed bug involving empty table cells. isSimple was being
6777 calculated in a way that assumed there were no non-empty cells.
6779 * ConTeXt writer:
6781 + Made `--toc` work even without `--number-sections`.
6782 + Escape # in link URLs.
6783 + Use buffering for footnotes containing code blocks.
6784 + Changed 'descr' to 'description', fixed alignment.
6786 * LaTeX writer:
6788 + Escape euro character.
6789 + Don't escape ~ inside href{...}.
6790 + Escape # in href URLs.
6791 + Improved detection of book classes. We now check the
6792 `documentclass` variable, and if that is not set, we look through
6793 the template itself. Also, we have added the KOMA classes scrreprt
6794 and scrbook. You can now make a book using
6795 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
6796 + LHS files now set the "listings" variable, so that the definition
6797 of the `code` environment will be included in the template.
6798 + Links are colored blue by default (this can be changed by
6799 modifying `hyperref` settings in the template).
6800 + Added `lang` variable to LaTeX template.
6802 * HTML writer:
6804 + Fixed bug in HTML template with html5 and mathml.
6805 + Don't use self-closing img, br, hr tags for HTML5.
6806 + Use `<section>` for footnotes if HTML5.
6807 + Update HTML templates to use Content-Style-Type meta tag.
6808 + Use separate variables for meta-date, meta-author.
6809 This makes footnotes work in author and date fields.
6810 + Use 'vertical-align:middle' in WebTeX math for better alignment.
6812 * S5/slidy writer: Make footnotes appear on separate slide at end.
6814 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
6815 META-INF/manifest.xml for ODT files will have everything it needs, so
6816 that ODT files modified by LibreOffice can be used as `--reference-odt`.
6818 * `Text.Pandoc.Templates`: Return empty string for json template.
6820 * `Text.Pandoc.Biblio`:
6822 + Expand citations recursively inside nested inlines.
6823 + Treat `\160` as space when parsing locator and suffix.
6824 This fixes a bug with "p. 33" when `--smart` is used. Previously
6825 the whole "p. 33" would be included in the suffix, with no locator.
6826 + Put whole author-in-text citation in a Cite. Previously just the
6827 date and other info went in the Cite.
6828 + Don't add comma+space to prefix if it ends in punctuation.
6830 * Updated chicago-author-date.csl. The old version did not work
6831 properly for edited volumes with no author.
6833 * EPUB writer:
6835 + Add date to EPUB titlepage and metadata.
6836 + Added TOC identifier in EPUB page template.
6837 + Don't generate superfluous file `cover-image.jpg`.
6839 [under the hood improvements]
6841 * Modified `make_osx_package.sh` to use cabal-dev.
6842 Items are no longer installed as root.
6843 Man pages are zipped and given proper permissions.
6845 * Modified windows installer generater to use cabal-dev.
6847 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
6848 Setup.hs we now invoke 'runghc' in a way that points it to the correct
6849 package databases, instead of always falling back to the default user
6850 package db.
6852 * Updated to work with GHC 7.4.1.
6854 * Removed dependency on old-time.
6856 * Removed dependency on dlist.
6858 * New slidy directory for "self-contained."
6860 * TeXMath writer: Use unicode thin spaces for thin spaces.
6862 * Markdown citations: don't strip off initial space in locator.
6864 [API changes]
6866 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
6867 from the native `Inline` type in pandoc-types. Now we use `Str`
6868 elements with unicode.
6870 * Improvements to `Text.Pandoc.Builder`:
6872 + `Inlines` and `Blocks` are now newtypes (not synonyms for
6873 sequences).
6874 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
6875 and a new `Listable` class, which allows these to be manipulated
6876 to some extent like lists. Monoid append includes automatic
6877 normalization.
6878 + `+++` has been replaced by `<>` (mappend).
6880 * Use blaze-html instead of xhtml for HTML generation.
6881 This changes the type of `writeHtml`.
6883 * `Text.Pandoc.Shared`:
6885 + Added `warn` and `err`.
6886 + Removed `unescapeURI`, modified `escapeURI`.
6887 (See under [behavior changes], above.)
6889 * Changes in URI escaping: Previously the readers escaped URIs by
6890 converting unicode characters to octets and then percent encoding.
6891 Now unicode characters are left as they are, and `escapeURI` only
6892 percent-encodes space characters. This gives more readable
6893 URIs, and works well with modern user agents. URIs are no longer unescaped
6894 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
6896 * New module `Text.Pandoc.SelfContained`.
6898 * New module `Text.Pandoc.Docx`.
6900 * New module `Text.Pandoc.PDF`.
6902 * Added `writerBeamer` to `WriterOptions`.
6904 * Added `normalizeDate` to `Text.Pandoc.Shared`.
6906 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
6907 This is like `splitWithIndices`, but it is sensitive to distinctions
6908 between wide, combining, and regular characters.
6910 * `Text.Pandoc.Pretty`:
6912 + Added `chomp` combinator.
6913 + Added `beforeNonBreak` combinator. This allows you to include
6914 something conditionally on it being before a nonblank.
6915 Used for RST inline math.
6916 + Added `charWidth` function. All characters marked W or F in the unicode
6917 spec EastAsianWidth.txt get width 2.
6918 + Added `realLength`, based on `charWidth`. `realLength` is now
6919 used in calculating offsets.
6921 * New module `Text.Pandoc.Slides`, for common functions for breaking
6922 a document into slides.
6924 * Removed `Text.Pandoc.S5`, which is no longer needed.
6926 * Removed `Text.Pandoc.CharacterReferences`. Moved
6927 `characterReference` to `Text.Pandoc.Parsing`.
6928 `decodeCharacterReferences` is replaced by `fromEntities`
6929 in `Text.Pandoc.XML`.
6931 * Added `Text.Pandoc.ImageSize`. This is intened for use
6932 in `docx` and `odt` writers, so the size and dpi of images
6933 can be calculated.
6935 * Removed `writerAscii` in `WriterOptions`.
6937 * Added `writerHighlight` to `WriterOptions`.
6939 * Added `DZSlides` to `HTMLSlideVariant`.
6941 * `writeEPUB` has a new argument for font files to embed.
6943 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
6944 of whether we're parsing the position immediately after a regular
6945 (non-space, non-symbol) string, which is useful for distinguishing
6946 apostrophes from single quote starts.
6948 * `Text.Pandoc.Parsing`:
6950 + `escaped` now returns a `Char`.
6951 + Removed `charsInBalanced'`, added a character parser as
6952 a parameter of `charsInBalanced`. This is needed for
6953 proper handling of escapes, etc.
6954 + Added `withRaw`.
6956 * Added `toEntities` to `Text.Pandoc.XML`.
6958 * `Text.Pandoc.Readers.LaTeX`:
6960 + Export `handleIncludes`.
6961 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
6963 * Added `ToJsonFilter` class and `toJsonFilter` function to
6964 `Text.Pandoc`, deprecating the old `jsonFilter` function.
6966 * `Text.Pandoc.Highlighting`:
6968 + Removed `highlightHtml`, `defaultHighlightingCss`.
6969 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
6970 key functions from highlighting-kate.
6971 + Changed types of highlighting function. `highlight` returns a
6972 `Maybe`, not an `Either`.
6974pandoc (1.8.2.1)
6976 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
6978 * Relaxed cabal constraints for pandoc-types.
6980 * Adjusted Arbitrary instance to help avoid timeouts in tests.
6982 * Added `Tests.Writers.Markdown` to cabal file.
6984pandoc (1.8.2)
6986 * Added script to produce OS X package.
6988 * Made `templates` directory a git submodule. This should make it
6989 easier for people to revise their custom templates when the default
6990 templates change.
6992 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
6993 **Note:** If you have existing templates in `~/.pandoc/templates`, you
6994 must rename them to conform to the new scheme!
6996 * Fixed smart quotes bug, now handling `'...hi'` properly.
6998 * RST reader:
7000 + Partial support for labeled footnotes.
7001 + Improved accuracy of `simpleReferenceName` parser.
7003 * HTML reader:
7005 + Substitute correct unicode characters for
7006 characters in the 128..159 range, which are often found even in
7007 HTML that purports to be UTF-8.
7009 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
7010 to the title, after a colon and linebreak). Closes #280.
7012 * Leaner `reference.odt`.
7014 * Added unexported module `Text.Pandoc.MIME` for use in
7015 the ODT writer.
7017 * ODT writer: Construct `manifest.xml` based on archive contents.
7018 This fixes a bug in ODTs containing images. Recent versions of
7019 LibreOffice would reject these as corrupt, because `manifest.xml`
7020 did not contain a reference to the image files.
7022 * LaTeX writer:
7024 + Make verbatim environments flush to avoid spurious
7025 blank lines. Closes #277.
7026 + Use `\texttt` and escapes insntead of `\verb!...!`, which
7027 is too fragile (doesn't work in command arguments).
7028 + Use `\enquote{}` for quotes if the template includes
7029 the `csquotes` package. This provides better support for
7030 local quoting styles. (Thanks to Andreas Wagner for the idea.)
7032 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
7033 margin, preventing spurious blank lines.
7035 * Slidy writer:
7037 + Use non-minimized version of `slidy.css` with `--offline`
7038 option, so users can more easily edit it.
7039 + Also fixed a bug in the CSS that prevented proper centering
7040 of title (now reported and fixed upstream).
7042 * S5 writer:
7044 + Replaced `s5/default/slides.js.{comment,packed}` with
7045 new compressed `s5/default/slides.min.js`.
7046 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
7047 when `--offline` is specified. Using inline CSS didn't
7048 work with Chrome or Safari. This fixes offline
7049 S5 on those browsers.
7051 * HTML writer: Removed English title on footnote backlinks.
7052 This is incongrous in non-English documents.
7054 * Docbook writer:
7056 + Use CALS tables. (Some older docbook software does not work
7057 well with XHTML tables.) Closes #77.
7058 + Use `programlisting` tags (instead of `screen`) for code blocks.
7060 * `markdown2pdf`:
7062 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
7063 of `-interaction=batchmode`, which essentially just ignored errors,
7064 leading to bad results. Better to know when something is wrong.
7065 + Fixed issues with non-UTF-8 output of `pdflatex`.
7066 + Better error reporting.
7068 * `--mathjax` now takes an optional URL argument. If it is not
7069 provided, pandoc links directly to the (secure) mathjax CDN,
7070 as now recommended (thanks to dsanson).
7072 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
7073 since the LaTeX writer now produces a file that can be processed by
7074 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
7076 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
7077 to be used to create the PDF.
7079 * If a template specified with `--template` is not found, look for it
7080 in `datadir`. Also, if no extension is provided, supply one based
7081 on the writer. So now you can put your `special.latex` template in
7082 `~/.pandoc/templates`, and use it from any directory via
7083 `pandoc -t latex --template special`.
7085 * Default template improvements:
7087 + HTML: Display author and date after title.
7088 + HTML: Made table of contents more customizable. The container
7089 for the TOC is now in the template, so users can insert a header
7090 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
7091 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
7092 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
7093 hard-coding. If you want to put your slidy files in the slidy
7094 subdirectory, for example, you can do
7095 `pandoc -t slidy -V slidy-url=slidy -s`.
7096 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
7097 & writer). Closes #279.
7098 + LaTeX: Use different `hyperref` options for `xetex`, fixing
7099 problems with unicode bookmarks (thanks to CircleCode).
7100 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
7101 with `inputenc`. This covers fewer characters but is more
7102 robust with other packages, and `ucs` is unmaintained. Users
7103 who need better unicode support should use xelatex or lualatex.
7105pandoc (1.8.1.2)
7107 * Added `--epub-cover-image` option.
7109 * Documented `--biblatex` and `--natbib` options.
7111 * Allow `--section-divs` with slidy output. Resolves Issue #296.
7113 * Disallow notes within notes in reST and markdown.
7114 These previously caused infinite looping and stack overflows.
7115 For example:
7117 [^1]
7119 [^1]: See [^1]
7121 Note references are allowed in reST notes, so this isn't a full
7122 implementation of reST. That can come later. For now we need to
7123 prevent the stack overflows. Partially resolves Issue #297.
7125 * EPUB writer: Allow non-plain math methods.
7127 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
7128 `(@item1; @item2)` because the final paren was being parsed as part of
7129 the item key.
7131 * Changed URI parser so it doesn't include trailing punctuation.
7132 So, in RST, `http://google.com.` should be parsed as a link followed by a
7133 period. The parser is smart enough to recognize balanced parentheses, as
7134 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
7136 * Markdown+lhs reader: Require space after inverse bird tracks, so that
7137 HTML tags can be used freely at the left margin of a markdown+lhs document.
7138 Thanks to Conal Elliot for the suggestion.
7140 * Markdown reader:
7142 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
7143 + Fixed bug in footnote order (reported by CircleCode).
7145 * RST reader:
7146 + Fixed bug in in field lists with multi-line items at the
7147 end of the list.
7148 + Added parentheses to RST `specialChars`, so
7149 `(http://google.com)` will be parsed as a link in parens.
7150 Resolves Issue #291.
7151 + Allow `|` followed by newline in RST line block.
7153 * LaTeX reader:
7154 + Support `\dots`.
7155 + Gobble option & space after linebreak `\\[10pt]`.
7157 * Textile reader:
7158 + Make it possible to have colons after links. (qerub)
7159 + Make it possible to have colons after links. (Christoffer Sawicki)
7161 * HTML reader:
7162 + Skip spaces after `<b>`, `<emph>`, etc.
7163 + Handle tbody, thead in simple tables. Closes #274.
7164 + Implicit `Para`s instead of `Plains` in some contexts.
7166 * OpenDocument writer: Use special `First paragraph` style for
7167 first paragraph after most non-paragraph blocks. This allows users to
7168 specify e.g. that only paragraphs after the first paragraph of a block are
7169 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
7171 * LaTeX writer: use `deVerb` on table and picture captions.
7172 Otherwise LaTeX complains about `\verb` inside command argument.
7173 Thanks to bbanier for reporting the bug.
7175 * Markdown writer: Insert HTML comment btw list and indented code block.
7176 This prevents the code block from being interpreted as part of the list.
7178 * EPUB writer: Add a meta element specify the cover.
7179 Some EPUB e-readers, such as the Nook, require a meta element inside the
7180 OPF metadata block to ensure the cover image is properly displayed.
7181 (Kelsey Hightower)
7183 * HTML writer: Use embed tag for images with non-image extensions.
7184 (e.g. PDFs). Closes #264.
7186 * LaTeX writer: Improved tables.
7188 + More space between lines, top-align cells.
7189 + Use ctable package, which allows footnotes and
7190 provides additional options.
7191 + Made cell alignments work in multiline tables.
7192 + Closes #271, #272.
7194 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
7195 Also do this when copying image files into EPUBs and ODTs.
7196 Closes #263.
7198 * Changed to github issue tracker.
7200 * Added failing emph/strong markdown test case due to Perry Wagle.
7202 * Slidy improvements:
7203 + Updated to use Slidy2.
7204 + Fixed bug, unclosed div tag.
7205 + Added `duration` variable in template.
7206 Setting this activates the timer.
7207 + Use 'titlepage' instead of 'cover' for title div.
7209pandoc (1.8.1.1)
7211 * `markdown2pdf`: Removed some debugging lines accidentally included
7212 in the 1.8.1 release. With those lines, the temp directory is created
7213 in the working directory, and it is not deleted. This fix restores
7214 the original behavior.
7216pandoc (1.8.1)
7218 * Added `--ascii` option. Currently supported only in HTML writer,
7219 which it causes to use numerical entities instead of UTF-8.
7221 * EPUB writer: `--toc` now works to provide a table of contents
7222 at the beginning of each chapter.
7224 * LaTeX writer: Change figure defaults to `htbp`.
7225 This prevents "too many unprocessed floats." Resolves
7226 Issue #285.
7228 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
7229 base.
7231 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
7232 Tanimoto. Resolves Issue #286.
7234 * HTML writer: Put line breaks in section divs.
7236 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
7238pandoc (1.8.0.3)
7240 * Fixed Source-repository stanza in cabal file.
7242pandoc (1.8.0.2)
7244 * HTML writer:
7246 + Stringify alt text instead of converting to HTML.
7247 + Break lines after block elements, not inside tags.
7248 HTML output now closely resembles that of tidy. Resolves Issue #134.
7250 * Markdown reader: Fixed bug in footnote block parser (pointed out
7251 by Jesse Rosenthal). The problem arose when the blank line
7252 at the end of a footnote block contained indenting spaces.
7254 * Shared: Improved 'normalize' function so it normalizes Spaces too.
7255 In normal form, Space elements only occur to separate two non-Space
7256 elements. So, we never have [Space], or [, ..., Space].
7258 * Tests:
7260 + Improved Arbitrary instance.
7261 + Added timeout for test instances.
7263 * README:
7265 + Added section on four-space rule for lists. Resolves Issue #283.
7266 + Clarified optional arguments on math options.
7268 * markdown2pdf: Fixed bug with output file extensions.
7269 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
7270 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
7272pandoc (1.8.0.1)
7274 * Revised Interact.hs so that it works with the CPP macros
7275 in the UTF8 module.
7277 * Revised Setup.hs so that we don't call MakeManPage.hs unless
7278 the man pages are out of date.
7280pandoc (1.8)
7282 [new features]
7284 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
7285 You can now write, for example,
7287 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
7289 and, when you process your document using `pandoc`, specifying
7290 a citation style using `--csl` and a bibliography using `--bibliography`,
7291 the citation will be replaced by an appropriately formatted
7292 citation, and a list of works cited will be added to the end
7293 of the document.
7295 This means that you can switch effortlessly between different citation
7296 and bibliography styles, including footnote, numerical, and author-date
7297 formats. The bibliography can be in any of the following formats: MODS,
7298 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
7299 See the README for further details.
7301 Citations are supported in the markdown reader, using a special
7302 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
7303 (Thanks to Nathan Gass for the natbib and biblatex support.)
7305 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
7306 the `textile` reader, an almost complete implementation of the textile
7307 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
7308 Resolves Issue #51.
7310 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
7312 * New `json` reader and writer, for reading and writing a JSON
7313 representation of the native Pandoc AST. These are much faster
7314 than the `native` reader and writer, and should be used for
7315 serializing Pandoc to text. To convert between the JSON representation
7316 and native Pandoc, use `encodeJSON` and `decodeJSON` from
7317 `Text.JSON.Generic`.
7319 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
7320 to write scripts that transform a JSON-encoded pandoc document.
7321 For example:
7323 -- removelinks.hs - removes links from document
7324 import Text.Pandoc
7325 main = interact $ jsonFilter $ bottomUp removeLink
7326 where removeLink (Link xs _) = Emph xs
7327 removeLink x = x
7329 To use this to remove links while translating markdown to LaTeX:
7331 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
7333 * Attributes are now allowed in inline `Code` elements, for example:
7335 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
7337 The attribute syntax is the same as for delimited code blocks.
7338 `Code` inline has an extra argument place for attributes, just like
7339 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
7340 is compiled with highlighting support. Resolves Issue #119.
7342 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
7343 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
7344 scripts to transform Pandoc documents. Scripts can now change
7345 how each element is rendered in each output format.
7347 * You can now define LaTeX macros in markdown documents, and pandoc
7348 will apply them to TeX math. For example,
7350 \newcommand{\plus}[2]{#1 + #2}
7351 $\plus{3}{4}$
7353 yields `3+4`. Since the macros are applied in the reader, they
7354 will work in every output format, not just LaTeX.
7356 * LaTeX macros can also be used in LaTeX documents (both in math
7357 and in non-math contexts).
7359 * A new `--mathjax` option has been added for displaying
7360 math in HTML using MathJax. Resolves issue #259.
7362 * Footnotes are now supported in the RST reader. (Note, however,
7363 that unlike docutils, pandoc ignores the numeral or symbol used in
7364 the note; footnotes are put in an auto-numbered ordered list.)
7365 Resolves Issue #258.
7367 * A new `--normalize` option causes pandoc to normalize the AST
7368 before writing the document. This means that, for example,
7369 `*hi**there*` will be rendered as `<em>hithere</em>`
7370 instead of `<em>hi</em><em>there</em>`. This is not the default,
7371 because there is a significant performance penalty.
7373 * A new `--chapters` command-line option causes headers
7374 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
7375 Resolves Issue #265.
7377 * In DocBook output, `<chapter>` is now used for top-level
7378 headers if the template contains `<book>`. Resolves Issue #265.
7380 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
7381 the LaTeX writer to use the listings package for code blocks.
7382 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
7383 Millon for the markdown2pdf patch.)
7385 * `markdown2pdf` now supports `--data-dir`.
7387 * URLs in autolinks now have class "url" so they can be styled.
7389 * Improved prettyprinting in most formats. Lines will be wrapped
7390 more evenly and duplicate blank lines avoided.
7392 * New `--columns` command-line option sets the column width for
7393 line wrapping and relative width calculations for tables.
7395 * Made `--smart` work in HTML, RST, and Textile readers, as well
7396 as markdown.
7398 * Added `--html5` option for HTML5 output.
7400 * Added support for listings package in LaTeX reader
7401 (Puneeth Chaganti).
7403 * Added support for simple tables in the LaTeX reader.
7405 * Added support for simple tables in the HTML reader.
7407 * Significant performance improvements in many readers and writers.
7409 [API and program changes]
7411 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
7412 auxiliary package, `pandoc-types`. This will make it possible for other
7413 programs to supply output in Pandoc format, without depending on the whole
7414 pandoc package.
7416 * Added `Attr` field to `Code`.
7418 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
7419 `RawBlock` and `RawInline`.
7421 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
7422 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
7423 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
7425 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
7427 * `Text.Pandoc` now exports association lists `readers` and `writers`.
7429 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
7430 `readNative` can now read full pandoc documents, block lists, blocks,
7431 inline lists, or inlines. It will interpret `Str "hi"`
7432 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
7433 This should make testing easier.
7435 * Removed deprecated `-C/--custom-header` option.
7436 Use `--template` instead.
7438 * `--biblio-file` has been replaced by `--bibliography`.
7439 `--biblio-format` has been removed; pandoc now guesses the format
7440 from the file extension (see README).
7442 * pandoc will treat an argument as a URI only if it has an
7443 `http(s)` scheme. Previously pandoc would treat some
7444 Windows pathnames beginning with `C:/` as URIs.
7446 * The `--sanitize-html` option and the `stateSanitize` field in
7447 `ParserState` have been removed. Sanitization is better done in the
7448 resulting HTML using `xss-sanitize`, which is based on pandoc's
7449 sanitization, but improved.
7451 * pandoc now adds a newline to the end of its output in fragment
7452 mode (= not `--standalone`).
7454 * Added support for `lang` in `html` tag in the HTML template,
7455 so you can do `pandoc -s -V lang=es`, for example.
7457 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
7458 a boolean argument that selects between "inline" and
7459 "block" HTML.
7461 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
7462 Images are embedded in RTF output when possible (png, jpeg).
7463 Resolves Issue #275.
7465 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
7466 `pretty` package. Changed all writers that used
7467 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
7469 * Rewrote `writeNative` using the new prettyprinting module. It is
7470 now much faster. The output has been made more consistent and compressed.
7471 `writeNative` is also now sensitive to writerStandalone`, and will simply
7472 `print a block list if writerStandalone` is False.
7474 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
7475 blocks and concatenate them, so a separate module is no longer needed.
7477 * `Text.Pandoc.Shared`:
7479 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
7480 `WriterOptions`.
7481 + Added `normalize`.
7482 + Removed unneeded prettyprinting functions:
7483 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
7484 `BlockWrapper`, `wrappedBlocksToDoc`.
7485 + Made `splitBy` take a test instead of an element.
7486 + Added `findDataFile`, refactored `readDataFile`.
7487 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
7488 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
7490 * `Text.Pandoc.Readers.HTML`:
7492 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
7493 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
7494 `htmlBlockElement`, `htmlComment`
7495 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
7496 `isTextTag`
7498 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
7499 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
7500 an inline parser.
7502 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
7504 * Ellipses are no longer allowed to contain spaces.
7505 Previously we allowed '. . .', ' . . . ', etc. This caused
7506 too many complications, and removed author's flexibility in
7507 combining ellipses with spaces and periods.
7509 * Allow linebreaks in URLs (treat as spaces). Also, a string of
7510 consecutive spaces or tabs is now parsed as a single space. If you have
7511 multiple spaces in your URL, use `%20%20`.
7513 * `Text.Pandoc.Parsing`:
7515 + Removed `refsMatch`.
7516 + Hid `Key` constructor.
7517 + Removed custom `Ord` and `Eq` instances for `Key`.
7518 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
7519 + Generalized type on `readWith`.
7521 * Small change in calculation of relative widths of table columns.
7522 If the size of the header > the specified column width, use
7523 the header size as 100% for purposes of calculating
7524 relative widths of columns.
7526 * Markdown writer now uses some pandoc-specific features when `--strict`
7527 is not specified: `\` newline is used for a hard linebreak instead of
7528 two spaces then a newline. And delimited code blocks are used when
7529 there are attributes.
7531 * HTML writer: improved gladTeX output by setting ENV appropriately
7532 for display or inline math (Jonathan Daugherty).
7534 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
7536 * LaTeX reader:
7538 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
7539 + `\index{}` commands are skipped.
7541 * Added `fontsize` variable to default LaTeX template.
7542 This makes it easy to set the font size using `markdown2pdf`:
7543 `markdown2pdf -V fontsize=12pt input.txt`.
7545 * Fixed problem with strikeout in LaTeX headers when using
7546 hyperref, by adding a command to the default LaTeX template
7547 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
7548 for the fix.
7550 * The `COLUMNS` environment variable no longer has any effect.
7552 [under-the-hood improvements]
7554 * Pandoc now compiles with GHC 7. (This alone leads to a
7555 significant performance improvement, 15-20%.)
7557 * Completely rewrote HTML reader using tagsoup as a lexer. The
7558 new reader is faster and more accurate. Unlike the
7559 old reader, it does not get bogged down on some input
7560 (Issues #277, 255). And it handles namespaces in tags
7561 (Issue #274).
7563 * Replaced `escapeStringAsXML` with a faster version.
7565 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
7566 for a significant performance boost.
7568 * Improved performance of all readers by rewriting parsers.
7570 * Simplified Text.Pandoc.CharacterReferences by using
7571 entity lookup functions from TagSoup.
7573 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
7574 from `System.IO` if base >= 4.2. This gives support for
7575 windows line endings on windows.
7577 * Remove duplications in documentation by generating the
7578 pandoc man page from README, using `MakeManPage.hs`.
7580 * README now includes a full description of markdown syntax,
7581 including non-pandoc-specific parts. A new `pandoc_markdown`
7582 man page is extracted from this, so you can look up markdown
7583 syntax by doing `man pandoc_markdown`.
7585 * Completely revised test framework (with help from Nathan Gass).
7586 The new test framework is built when the `tests` Cabal flag is set. It
7587 includes the old integration tests, but also some new unit and quickcheck
7588 tests. Test output has been much improved, and you can now specify a glob
7589 pattern after `cabal test` to indicate which tests should be run;
7590 for example `cabal test citations` will run all the citation tests.
7592 * Added a shell script, `stripansi.sh`, for filtering ANSI control
7593 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
7595 * Added `Interact.hs` to make it easier to use ghci while developing.
7596 `Interact.hs` loads `ghci` from the `src` directory, specifying
7597 all the options needed to load pandoc modules (including
7598 specific package dependencies, which it gets by parsing
7599 dist/setup-config).
7601 * Added `Benchmark.hs`, testing all readers + writers using criterion.
7603 * Added `stats.sh`, to make it easier to collect and archive
7604 benchmark and lines-of-code stats.
7606 * Added upper bounds to all cabal dependencies.
7608 * Include man pages in extra-source-files. This allows users to
7609 install pandoc from the tarball without needing to build the man
7610 pages.
7612 [bug fixes]
7614 * Filenames are encoded as UTF8. Resolves Issue #252.
7616 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
7617 were just parsed literally, leading to problems in some output formats.
7618 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
7619 Resolves Issue #270.
7621 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
7622 Spaces at end of line were not being stripped properly,
7623 resulting in unintended LineBreaks.
7625 * Markdown reader:
7627 + Allow HTML comments as inline elements in markdown.
7628 So, `aaa <!-- comment --> bbb` can be a single paragraph.
7629 + Fixed superscripts with links: `^[link](/foo)^` gets
7630 recognized as a superscripted link, not an inline note followed by
7631 garbage.
7632 + Fixed regression, making markdown reference keys case-insensitive again.
7633 Resolves Issue #272.
7634 + Properly handle abbreviations (like `Mr.`) at the end of a line.
7635 + Better handling of intraword underscores, avoiding exponential
7636 slowdowns in some cases. Resolves Issue #182.
7637 + Fixed bug in alignments in tables with blank rows in the header.
7639 * RST reader:
7641 + Field lists now allow spaces in field names, and
7642 block content in field values. (Thanks to Lachlan Musicman
7643 for pointing out the bug.)
7644 + Definition list items are now always `Para` instead of
7645 `Plain`, matching behavior of `rst2xml.py`.
7646 + In image blocks, the description is parsed properly and
7647 used for the alt attribute, not also the title.
7648 + Skip blank lines at beginning of file. Resolves
7649 Debian #611328.
7651 * LaTeX reader:
7653 + Improved parsing of preamble.
7654 Previously you'd get unexpected behavior on a document that
7655 contained `\begin{document}` in, say, a verbatim block.
7656 + Allow spaces between `\begin` or `\end` and `{`.
7657 + Support `\L` and `\l`.
7658 + Skip comments inside paragraphs.
7660 * LaTeX writer:
7662 + Escape strings in `\href{..}`.
7663 + In nonsimple tables, put cells in `\parbox`.
7665 * OpenDocument writer: don't print raw TeX.
7667 * Markdown writer:
7669 + Fixed bug in `Image`. URI was getting unescaped twice!
7670 + Avoid printing extra blank lines at the end if there are
7671 no notes or references.
7673 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
7674 This avoids unwanted interpretation as an optional argument.
7676 * ConTeXt writer: Fixed problem with inline code. Previously
7677 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
7678 If it contains neither, use `\type{}`; otherwise use `\mono{}`
7679 with an escaped version of the string.
7681 * `:` now allowed in HTML tags. Resolves Issue #274.
7683pandoc (1.6)
7685 [ John MacFarlane ]
7687 * New EPUB and HTML Slidy writers. (Issue #122)
7689 - EPUB is a standard ebook format, used in Apple's iBooks for
7690 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
7691 reader, and many other devices.
7692 - Slidy, like S5, is a system for producing HTML+javascript slide
7693 shows.
7695 * All input is assumed to be UTF-8, no matter what the locale and ghc
7696 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
7697 Also, a BOM, if present, is stripped from the input.
7699 * Markdown now supports grid tables, whose cells can contain
7700 arbitrary block elements. (Issue #43)
7702 * Sequentially numbered example lists in markdown with `@` marker.
7704 * Markdown table captions can begin with a bare colon and no longer need
7705 to include the English word "table." Also, a caption can now occur
7706 either before or after the table. (Issue #227)
7708 * New command-line options:
7710 - `--epub-stylesheet` allows you to specify a CSS file that will
7711 be used to style your ebook.
7712 - `--epub-metadata` allows you to specify metadata for the ebook.
7713 - `--offline` causes the generated HTML slideshow to include all
7714 needed scripts and stylesheets.
7715 - `--webtex` causes TeX math to be converted to images using the
7716 Google Charts API (unless a different URL is specified).
7717 - `--section-divs` causes div tags to be added around each section
7718 in an HTML document. (Issue #230, 239)
7720 * Default behavior of S5 writer in standalone mode has changed:
7721 previously, it would include all needed scripts and stylesheets
7722 in the generated HTML; now, only links are included unless
7723 the `--offline` option is used.
7725 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
7726 pandoc would enclose sections in div tags with identifiers on the
7727 div tags, so that the sections can be manipulated in javascript.
7728 This caused undesirable interactions with raw HTML div tags. So,
7729 starting with 1.6, the default is to put the identifiers directly
7730 on the header tags, and not to include the divs. The `--section-divs`
7731 option selects the 1.2-1.5 behavior.
7733 * API changes:
7735 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
7736 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
7737 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
7738 `writerIncludeAfter`.
7739 - Added `headerShift` to `Text.Pandoc.Shared`.
7740 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
7741 to a new module, `Text.Pandoc.Parsing`.
7742 - Added `stateHasChapters` to `ParserState`.
7743 - Added `HTMLSlideVariant`.
7744 - Made `KeyTable` a map instead of an association list.
7745 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
7746 `docDate`).
7747 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
7748 instances.
7749 - Reference keys now have a type of their own (`Key`), with its
7750 own `Ord` instance for case-insensitive comparison.
7751 - Added `Text.Pandoc.Writers.EPUB`.
7752 - Added `Text.Pandoc.UUID`.
7753 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
7754 Removed `saveOpenDocumentAsODT`, added `writeODT`.
7755 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
7756 Removed `prettyPandoc`.
7757 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
7758 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
7759 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
7760 To write S5, you now use `writeHtml` with `writerSlideVariant`
7761 set to `S5Slides` or `SlidySlides`.
7763 * Template changes. If you use custom templates, please update them,
7764 particularly if you use syntax highlighting with pandoc. The old HTML
7765 templates hardcoded highlighting CSS that will no longer work with
7766 the most recent version of highlighting-kate.
7768 - HTML template: avoid empty meta tag if no date.
7769 - HTML template: Use default highlighting CSS from highlighting-kate
7770 instead of hard-coding the CSS into the template.
7771 - HTML template: insert-before text goes before the title, and
7772 immediately after the <body> tag, as documented. (Issue #241)
7773 - Added slidy and s5 templates.
7774 - Added amssymb to preamble of latex template. (github Issue 1)
7776 * Removed excess newlines at the end of output. Note: because output
7777 will not contain an extra newline, you may need to make adjustments
7778 if you are inserting pandoc's output into a template.
7780 * In S5 and slidy, horizontal rules now cause a new slide, so you
7781 are no longer limited to one slide per section.
7783 * Improved handling of code in man writer. Inline code is now monospace,
7784 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
7786 * HTML reader parses `<tt>` as Code. (Issue #247)
7788 * html+lhs output now contains bird tracks, even when compiled without
7789 highlighting support. (Issue #242)
7791 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
7792 since they have a special meaning in XML.
7794 * Code improvements in ODT writer. Remote images are now replaced with
7795 their alt text rather than a broken link.
7797 * LaTeX reader improvements:
7799 - Made latex `\section`, `\chapter` parsers more forgiving of
7800 whitespace.
7801 - Parse `\chapter{}` in latex.
7802 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
7803 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
7804 for use in markdown reader.
7805 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
7806 in markdown document.
7808 * LaTeX writer: images are automatically shrunk if they would extend
7809 beyond the page margin.
7811 * Plain, markdown, RST writers now use unicode for smart punctuation.
7813 * Man writer converts math to unicode when possible, as in other writers.
7815 * `markdown2pdf` can now recognize citeproc options.
7817 * Command-line arguments are converted to UTF-8. (Issue #234)
7819 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
7820 This allows it to handle a wider range of formulas. Also, if a formula
7821 cannot be converted, it is left in raw TeX; formulas are no longer
7822 partially converted.
7824 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
7825 #143)
7827 * Cabal file changes:
7829 - Removed parsec < 3 restriction.
7830 - Added 'threaded' flag for architectures where GHC lacks a threaded
7831 runtime.
7832 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
7833 - Require highlighting-kate 0.2.7.
7835 * Use explicit imports from `Data.Generics`. Otherwise we have a
7836 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
7838 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
7840pandoc (1.5.1.1)
7842 [ John MacFarlane ]
7844 * Fixed uniqueIdent in Shared so that header identifiers work as
7845 advertized in the README and are are valid XHTML names.
7847pandoc (1.5.1)
7849 [ John MacFarlane ]
7851 * Fixed treatment of unicode characters in URIs.
7852 + Shared now exports escapeURI and unescapeURI. These handle
7853 UTF8 encoding and decoding as well as URI escaping/unescaping.
7854 + Shared: uri and emailAddress now return a pair of the original
7855 parsed text and the escaped URI (in the latter case, with
7856 the mailto: prefix).
7857 + HTML reader: unsanitaryURI has been modified to allow unicode
7858 high characters in a URI.
7859 + Readers: All link and image URIs are now escaped using
7860 escapeURI.
7861 + Markdown and RST writers: unescapeURI is used so that URIs
7862 in these formats are human-readable.
7864 * Setup.hs: Don't assume that the build directory is "dist".
7865 Instead, get it from localBuildInfo.
7867 * OpenDocument writer: Use a Map for stTextStyleAttr.
7868 This avoids duplicates (and invalid xml). Resolves Issue #222.
7870pandoc (1.5.0.1)
7872 [ John MacFarlane ]
7874 * HTML writer: Fixed error in math writer (with MathML option)
7875 that caused an infinite loop for unparsable MathML.
7877pandoc (1.5)
7879 [ John MacFarlane ]
7881 * Added --mathml option. When this is selected, pandoc will convert
7882 TeX math into MathML.
7883 + Added data/MathMLinHTML.js, which is included when no URL is
7884 provided for --mathml. This allows MathML to be displayed (in
7885 better browsers) as text/html.
7886 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
7887 necessary; it was replaced by two lines in pandoc.hs.
7888 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
7889 single combined file, LaTeXMathML.js.
7891 * Added --data-dir option.
7892 This specifies a user data directory. If not specified, will default
7893 to ~/.pandoc on unix or Application Data\pandoc on Windows.
7894 Files placed in the user data directory will override system default
7895 data files.
7897 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
7898 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
7899 Nothing, no user directory is searched for an override.
7901 * Added 'plain' output format. This is similar to markdown, but
7902 removes links, pictures, inline formatting, and most anything that
7903 looks even vaguely markupish. The function writePlain is exported by
7904 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
7906 * Allow multi-line titles and authors in meta block.
7907 Titles may span multiple lines, provided continuation lines
7908 begin with a space character. Separate authors may be put on
7909 multiple lines, provided each line after the first begins with
7910 a space character. Each author must fit on one line. Multiple
7911 authors on a single line may still be separated by a semicolon.
7912 Based on a patch by Justin Bogner.
7914 * When given an absolute URI as parameter, pandoc will try to fetch
7915 the content via HTTP. So you can do:
7916 'pandoc -r html -w markdown http://www.fsf.org'
7917 Adds dependency on HTTP.
7919 * Made HTML reader much more forgiving.
7920 + Incorporated idea (from HXT) that an element can be closed
7921 by an open tag for another element.
7922 + Javascript is partially parsed to make sure that a <script>
7923 section is not closed by a </script> in a comment or string.
7924 + More lenient non-quoted attribute values.
7925 Now we accept anything but a space character, quote, or <>.
7926 This helps in parsing e.g. www.google.com!
7927 + Bare & signs are now parsed as a string. This is a common
7928 HTML mistake.
7929 + Skip a bare < in malformed HTML.
7931 * Removed html2markdown and hsmarkdown.
7932 + html2markdown is no longer needed, since you can now pass URI
7933 arguments to pandoc and directly convert web pages. (Note,
7934 however, that pandoc assumes the pages are UTF8. html2markdown
7935 made an attempt to guess the encoding and convert them.)
7936 + hsmarkdown is pointless -- a large executable that could be
7937 replaced by 'pandoc --strict'.
7939 * In most writers, an image in a paragraph by itself is now rendered
7940 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
7941 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
7942 rendered inline.
7944 * Depend on extensible-exceptions. This allows pandoc to be compiled
7945 on GHC 6.8.
7947 * Added --base-header-level option. For example, --base-header-level=2
7948 will change level 1 headers to level 2, level 2 to level 3, etc.
7949 Closes Debian #563416.
7951 * Incomplete support for RST tables (simple and grid).
7952 Thanks to Eric Kow. Colspans and rowspans not yet supported.
7954 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
7956 * MediaWiki writer: format links with relative URLs as wikilinks.
7957 The new rule: If the link target is an absolute URL, an external
7958 link is created. Otherwise, a wikilink is created.
7960 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
7961 identifier. Note: This may break links to sections that involve
7962 tildes.
7964 * Markdown(+lhs) reader: handle "inverse bird tracks."
7965 Inverse bird tracks (<) are used for haskell example code that is not
7966 part of the literate Haskell program. Resolves Issue #211.
7968 * LaTeX reader:
7969 + Recognize '\ ' (interword space).
7970 + Recognize nonbreaking space '~'.
7971 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
7972 section headers. Don't treat \section as inline LaTeX.
7973 Resolves Issue #202.
7974 + LaTeX reader: allow any special character to be escaped.
7975 Resolves Issue #221.
7976 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
7977 headers. Resolves Issue #207.
7979 * Use template variables for include-before/after.
7980 + These options now imply -s; previously they worked also in fragment
7981 mode.
7982 + Users can now adjust position of include-before and include-after
7983 text in the templates.
7984 + Default position of include-before moved back (as it was before 1.4)
7985 before table of contents.
7986 + Resolves Issue #217.
7988 * Don't print an empty table header: (all writers).
7989 Resolves Issue #210.
7991 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
7993 * HTML writer: Don't include TOC div if table of contents is empty.
7995 * Markdown writer: Fixed citations.
7996 Previously the markdown writer printed raw citation codes, e.g.
7997 [geach1970], rather than the expanded citations provided by
7998 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
7999 This means that the document produced can be processed as a markdown
8000 document without citeproc. Thanks to dsanson for reporting, and
8001 Andrea Rossato for the patch.
8003 * Improved and simplified title block in context template.
8004 Previously it caused an error if there was no title.
8005 This method should also be easier for users to customize.
8007 * Markdown reader:
8008 + Treat p., pp., sec., ch., as abbreviations in smart mode.
8009 + Disallow blank lines in inline code span.
8010 + Allow footnotes to be indented < 4 spaces.
8011 This fixes a regression. A test case has been added.
8012 + Escape spaces in URLs as %20. Previously they were incorrectly
8013 escaped as +, which is appropriate only for the query part of
8014 a URL. Resolves Issue #220.
8015 + Require two spaces after capital letter + period for list item.
8016 Otherwise "E. coli" starts a list. This might change the semantics
8017 of some existing documents, since previously the two-space
8018 requirement was only enforced when the second word started
8019 with a capital letter. But it is consistent with the existing
8020 documentation and follows the principle of least surprise.
8021 Resolves Issue #212.
8023 * LaTeX template: redefine labelwidth when using enumerate package.
8024 Otherwise the list labels (numbers) often extend past the left
8025 margin, which looks bad.
8027 * Mediawiki writer: Don't print a "== Notes ==" header before
8028 references. This is too English-centric. Writers can provide their
8029 own header at the end of the document.
8031 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
8032 level 2, etc. This seems to be correct; it's only by convention
8033 that wikipedia articles have level 2 headers at most.
8034 Patch due to Eric Kow.
8036 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
8037 data files don't need to have been installed. This removes the need to
8038 set HOME.
8040 * HTML reader:
8041 + Handle spaces before <html>. Resolves Issue #216.
8042 + Be forgiving in parsing a bare list within a list.
8043 The following is not valid xhtml, but the intent is clear:
8044 <ol>
8045 <li>one</li>
8046 <ol><li>sub</li></ol>
8047 <li>two</li>
8048 </ol>
8049 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
8051 * Updated INSTALL instructions. cabal method is now promoted.
8053 * Updated markdown2pdf man page. It no longer says all pandoc options
8054 are accepted.
8056 * README/man pages: Removed advice to pipe through tidy before HTML
8057 reader. This is obsolete, now that we have a forgiving HTML parser.
8059 * LaTeX writer: set numbersections template variable, so
8060 the section numbering options work again.
8062 * Removed obsolete Makefile.
8064 * Website: renamed index.txt.in -> index.txt.
8066 * New batch file to make-windows-installer.
8067 + Removed old Makefile.windows
8068 + Added make-windows-installer.bat
8069 + Modified default installer name in pandoc-setup.iss
8071 * Removed freebsd and macports directories.
8072 They are no longer up to date.
8074 * Setup.hs:
8075 + Made man page building sensitive to build verbosity.
8076 + Improved detection of highlighting support in test hook.
8077 + Install wrapper scripts into cabal bin directory.
8078 + Also simplified installManpages.
8079 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
8081 * Changed default of writerXeTeX to False.
8083 * HTML writer: don't include empty UL if --toc but no sections.
8084 Resolves Issue #199.
8086 * LaTeX writer:
8088 + If book, report, or memoir documentclass, use \chapter{}
8089 for first-level headers. Otherwise use \section{}.
8090 + Removed stLink, link template variable. Reason: we now always
8091 include hyperref in the template.
8093 * LaTeX template:
8095 + Only show \author if there are some.
8096 + Always include hyperref package. It is used not just for links but
8097 for toc, section heading bookmarks, footnotes, etc. Also added
8098 unicode=true on hyperref options.
8100 * markdown2pdf: always do at least two runs. hyperref bookmarks
8101 require this.
8103 * cabal file: Removed unneeded dependency on template-haskell.
8105 * Windows installer - fixed bug in data file locations.
8106 Resolves Issue #197.
8108 * Deprecated --custom-header in documentation.
8109 Removed old "Custom Headers" section in README.
8111pandoc (1.4)
8113 [ John MacFarlane ]
8115 * Pandoc will now compile with either GHC 6.10 or 6.12.
8116 + Don't use System.IO.UTF8 when compiling with 6.12
8117 + Use -fno-warn-unused-do-bind option when compiling with 6.12
8119 * Replaced old headers with templates. Now users have much more
8120 control over the way documents appear in --standalone mode,
8121 and writer code is simplified. Resolves Issues #59, 147.
8122 Every effort has been made to retain backwards compatibilty.
8123 So, the --custom-header option should still work as before.
8125 + Added Text.Pandoc.Templates. This provides functions for
8126 retrieving default templates and for rendering templates.
8127 + System templates (in the pandoc data directory) can be
8128 overridden by user templates in $HOME/.pandoc/templates.
8129 + Removed Text.Pandoc.DefaultHeaders.
8130 + Removed data/headers directory.
8131 + Added templates directory.
8132 + Added writerTemplate and writerVariables fields to WriterOptions.
8133 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
8134 + Changed --print-default-header to --print-default-template.
8135 + Added --template option.
8136 + Added -V/--variable option to set custom template variables.
8138 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
8140 + Removed need for TH in ODT module. Instead get reference.odt from
8141 data file at run time.
8142 + Removed TH dependency from S5 module. S5 module now exports
8143 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
8144 standalone.
8145 + Refactored LaTeXMathML not to use TH.
8147 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
8148 Meta [Inline] [String] String. Authors and date in Meta are now lists
8149 of Inline elements rather than raw strings. This means that they can
8150 be formatted and can include footnotes. NOTE: This may be a breaking
8151 change for those using pandoc as a library.
8153 * Added readDataFile to Text.Pandoc.Shared. This retrieves
8154 a data file from the user pandoc data directory (~/.pandoc
8155 on unix), or, if not found there, from the system data
8156 directory ($CABALDIR/shared/pandoc-VERSION/). All data
8157 files, including templates, LaTeXMathML.js, s5 styles,
8158 and reference.odt, can be overridden by the user.
8160 * s5 files moved from data/ui/default to s5/default.
8162 * Use unicode instead of entities in HTML and XML output. Resolves
8163 Issue #163.
8165 * Prettier HTML footnote references: put anchor inside sup,
8166 instead of other way. Resolves Issue #191. Thanks to
8167 infinity0x.
8169 * Added --xetex option to pandoc and markdown2pdf.
8170 If --xetex is specified, pandoc produces latex suitable for
8171 processing by xelatex, and markdown2pdf uses xelatex to create
8172 the PDF. Resolves Issue #185.
8174 * RTF writer: multiple authors now occupy multiple paragraphs rather
8175 than using a line break.
8177 * Man writer: now the "--after-body" will come after the "AUTHORS"
8178 section, whereas before it would come before it. This is a
8179 slight break from backwards compatibility.
8181 * Added --reference-odt option, so users may customize the styles
8182 used in pandoc-generated ODT files. Users may also place a
8183 default reference.odt in the ~\.pandoc directory.
8185 * ODT writer:
8186 + Indented and line-broke styles.xml so it can be modified more easily.
8187 + Omitted some unnecessary style declarations.
8188 + Don't wrap text in OpenDocument writer. The tags are too long, making
8189 wrapping ugly and pointless.
8191 * LaTeX reader: use \\ to separate multiple authors.
8193 * Markdown reader: use ; as separator between authors.
8194 This allows you to use ',' within author names: e.g. "John Jones, Jr."
8196 * S5 writer: use linebreak to separate authors in title page.
8198 * RST reader: Allow :: before lhs code block. The RST spec requires the
8199 :: before verbatim blocks. This :: should not be treated as literal
8200 colons. Resolves Issue #189.
8202 * Documented pandoc 1.3's new definition list syntax in README.
8203 (An oversight in the last release.)
8205 * markdown2pdf.hs:
8206 + interpret ! in a log as an error line.
8207 + --toc now works properly.
8209 * Changes in RunTests.hs:
8210 + Use the Diff library rather than a local copy of Diff.hs.
8211 (This vastly increases performance.) This change means that 'cabal
8212 test' presupposes that the Diff library is installed.
8213 + Removed tests/Diff.hs from cabal file.
8214 + Changed RunTests to use local environment. We need at least HOME, so
8215 pandoc can find its data directory.
8217 * Updated windows installer to install data files in the app directory.
8219 * Windows installer now installs portable wrappers hsmarkdown and
8220 markdown2pdf.
8222pandoc (1.3)
8224 [ John MacFarlane ]
8226 * Added --id-prefix option (Issue #41). This adds a prefix to all
8227 automatically generated HTML identifiers, which helps prevent
8228 duplicate identifiers when you're generating a fragment (say a blog
8229 post).
8231 * Added --indented-code-classes option. This specifies classes
8232 to use for indented code blocks. (Patch due to buttock; Issue #87.)
8234 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
8235 (Issue #150).
8237 * Improved syntax for markdown definition lists (Issue #24).
8238 Definition lists are now more compatible with PHP Markdown Extra.
8239 + You can have multiple definitions for a term (but still not
8240 multiple terms).
8241 + Multi-block definitions no longer need a column before each block
8242 (indeed, this will now cause multiple definitions).
8243 + The marker no longer needs to be flush with the left margin,
8244 but can be indented at or two spaces. Also, ~ as well as :
8245 can be used as the marker (this suggestion due to David
8246 Wheeler.)
8247 + There can now be a blank line between the term and the
8248 definitions.
8250 * Better looking simple tables. Resolves Issue #180.
8251 + Markdown reader: simple tables are now given column widths of 0.
8252 + Column width of 0 is interpreted as meaning: use default column width.
8253 + Writers now include explicit column width information only
8254 for multiline tables. (Exception: RTF writer, which requires
8255 column widths. In this case, columns are given equal widths,
8256 adding up to the text width.)
8257 + Simple tables should now look better in most output formats.
8259 * Allow markdown tables without headers (Issue #50).
8260 The new syntax is described in README. Also allow optional line of
8261 dashes at bottom of simple tables.
8263 * Compensate for width of final table column (Issue #144).
8265 * Treat a backslash followed by a newline as a hard line break
8266 in markdown. Resolves Issue #154. This is a nice alternative
8267 to markdown's "invisible" way of indicating hardline breaks
8268 using lines that end with two spaces.
8270 * Improved performance of markdown reader by ~10% by eliminating the
8271 need for a separate parsing pass for notes. Raw notes are now stored
8272 on the first pass (which parses references), then parsed when the
8273 note is inserted into the AST. The stateNotes field in ParserState
8274 is now a list of [(String, String)] pairs instead of [(String,
8275 [Block])].
8277 * In markdown reader, treat 4 or more * or _ in a row as literal
8278 text. (Trying to parse long strings of * or _ as strong or emph
8279 leads to exponential performance problems.)
8281 * Markdown reader: Use + rather than %20 for spaces in URLs.
8283 * Fixed htmlComment parser, adding a needed 'try'.
8285 * Don't print raw HTML in man output.
8287 * Allow . _ and ~ in header identifiers.
8289 * Specially mark code blocks that were "literate" in the input.
8290 They can then be treated differently in the writers. This allows
8291 authors to distinguish bits of the literate program they are writing
8292 from source code examples, even if the examples are marked as
8293 Haskell for highlighting. (Issue #174.)
8295 * Modified html+lhs output to use "haskell" highlighter instead
8296 of "literateHaskell". The highlighting module now adds bird tracks
8297 after highlighting (for HTML output), if the code block has the
8298 "literate" class. This gives better results, because kate's
8299 haskell highlighter is much better than the literateHaskell
8300 highlighter.
8302 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
8303 (Issue #137.)
8305 * Support for "..code-block" directive in RST reader. Not core
8306 RST, but used in Sphinx for code blocks annotated with syntax
8307 information. Thanks to Luke Plant for the patch.
8309 * Added "head" to list of block-level HTML tags. Resolves
8310 Issue #108.
8312 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
8314 * Set utf-8 encoding in texinfo headers.
8316 * Docbook writer: add ids to sections. Use link for internal links.
8317 (Issue #60.)
8319 * Blank lines after lists in MediaWiki writer.
8321 * Properly handle commented-out list items in markdown.
8322 Resolves Issue #142. Example:
8324 - a
8325 <!--
8326 - b
8327 -->
8328 - c
8330 * Changed heuristic in compactify. compactify has to decide whether a
8331 Para that ends a list is a Para intentionally, or just because of
8332 the blank lines at the end of every list. In the latter case the
8333 Para is turned to a Plain. The old heuristic was: change final Para
8334 to Plain iff the other items all end in Plain. This produces bad
8335 results when, for example, an item contains just a Plain and an HTML
8336 comment, as it does in the list above. The new heuristic: change
8337 final Para to Plain iff the other items don't contain a Para.
8339 * Added % as an rst underline character. Resolves Issue #173.
8341 * Fix inline math parser so that \$ is allowed in math.
8342 Resolves Issue #169.
8344 * Translate \int (integral) into unicode when using unicode math
8345 method. Resolves Issue #177.
8347 * markdown2pdf.hs improvements:
8348 + Use System.IO.UTF8.
8349 + Print error messages on last attempt.
8350 + Do not create a backup when overwriting a PDF (Issue #166).
8351 + Accept --longopt=val options.
8352 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
8353 it is properly cleaned.
8355 * Added haddock comments warning that readers assume \n line endings.
8357 * Updated COPYRIGHT file.
8359 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
8360 markdown2pdf. Otherwise strip tries to strip shell scripts when you
8361 install using 'make'.
8363 * Changed Makefile so it doesn't build Haskell wrappers.
8365 * Fixed Makefile so it doesn't try to build man pages in build-doc.
8367 * Install pcre3.dll in Windows install script; this allows us to
8368 package a version of pandoc with highlighting support.
8370pandoc (1.2.1)
8372 [ John MacFarlane ]
8374 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
8375 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
8376 side effect: strings of 0 spaces were interpreted as indentation.
8377 So, with --preserve-tabs, unindented paragraphs were treated as
8378 code. Resolves Issue #138.
8380 * HTML writer: wrap sections in divs. Resolves Issue #70.
8382 + hierarchicalize has been rationalized; it builds a hierarchical
8383 representation of the document from the headers, and simultaneously
8384 gives each section a unique identifier based on the heading title.
8385 + Identifiers are now attached to the divs rather than
8386 to the headers themselves.
8387 + Table of content backlinks go to the beginning of the table, rather
8388 than to the section reference that was clicked.
8389 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
8390 from the HTML writer, since it is now consumed only by
8391 hierarchicalize.
8392 + In --strict mode, pandoc just prints bare headings, as before
8393 (unless --toc has been specified).
8394 + In s5 output, it does not wrap sections in divs, as that seems to
8395 confuse the s5 javascript.
8397 * Man writer: break lines at end of each sentence. groff expects this
8398 and treats '.' and '?' differently when followed by line ending as
8399 opposed to ordinary space. Also, don't escape periods. Instead, use
8400 zero-width character \& to avoid unwanted interpretation of periods
8401 at start of line. Resolves Issue #148.
8403 * Markdown writer: Added '#' and '>' to list of characters to be
8404 escaped in markdown output. Removed '<', as it is not an officially
8405 escapable character. This partially resolves Issue #96.
8407 * Make --smart the default for man output format. Otherwise we have
8408 trouble dividing lists of endlines into sentences.
8410 * DocBook writer: Use language attribute to indicate source language
8411 in code blocks.
8413 * RST reader:
8415 + Allow # to continue list, even if the list was started with an
8416 explicit marker. For example:
8418 A. my list
8419 #. continued
8421 Resolves Issue #140.
8422 + Allow continuation lines in line blocks. Also added test cases for
8423 line blocks for RST reader. Resolves Issue #149.
8424 + Allow explicit links with spaces in URL: `link <to this>`_
8426 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
8427 (which is not in LaTeX) and recognize all the amsmath environments
8428 that are alternatives to eqnarray, namely equation, equation*,
8429 gather, gather*, gathered, multline, multline*, align, align*,
8430 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
8431 Thanks to shreevatsa.public for the patch.
8433 * Markdown reader:
8435 + Allow -, _, :, . in markdown attribute names. These are legal in
8436 XML attribute names.
8437 + Use non-breaking spaces in abbreviations.
8438 + Markdown reader: improved efficiency of abbreviation parsing.
8439 Instead of a separate abbrev parser, we just check for
8440 abbreviations each time we parse a string. This gives a huge
8441 performance boost with -S. Resolves Issue #141.
8443 * Improved efficiency of shared parsers: hexNum, htmlComment,
8444 whitespace, indentSpaces.
8446 * Export HTMLMathMethod in Text.Pandoc.
8448 * Export languagesByExtension in Text.Pandoc.Highlighting.
8450 * Added new Haskell version of markdown2pdf, due to
8451 Paulo Tanimoto. This should be more portable than the old
8452 shell script.
8454 * Made 'pandoc -v' more explicit about compiler options.
8455 Resolves Issue #139.
8457 * pandoc.hs: Made --strict compatible with --standalone, --toc.
8459 * Use Paths_pandoc to get version number, instead of hard-coding it
8460 into Text/Pandoc.hs.
8462pandoc (1.2)
8464 [ John MacFarlane ]
8466 * Added support for literate Haskell. lhs support is triggered by
8467 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
8468 Haskell LaTeX. '.lhs' files are treated by default as literate
8469 markdown.
8471 + Added stateLiterateHaskell to parser state.
8472 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
8473 + Added parser for |inline lhs| to LaTeX reader.
8474 + Added writerLiterateHaskell to WriterOptions.
8475 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
8476 + Added definition of code environment to LaTeX header.
8477 + Added tests (run only if highlighting support compiled in).
8478 + Documented lhs features in man page and README.
8480 * In Text.Pandoc.Definition, added processWith, processWithM,
8481 and queryWith, and deprecated processPandoc and queryPandoc
8482 for these more general functions.
8484 * Fixed bug in mediawiki writer: improper closing tags in tables.
8485 Thanks to Benct Philip Jonsson for reporting the bug.
8487 * Added --email-obfuscation option.
8489 + Added writer option for email obfuscation.
8490 + Implemented email obfuscation options in HTML writer.
8491 + Added option to option parser.
8492 + Documented in README and pandoc man page.
8493 + Resolves Issue #97.
8495 * LaTeX writer: fixed bug with empty table cells.
8496 Resolves Issue #107. Thanks to rodja.trappe for the patch.
8498 * Fixed bug with header spacing in Markdown and RST writers.
8499 A null header (Meta [] [] []) should not cause a blank line
8500 at the beginning of output. But a blank line is needed between
8501 a non-null header and the main text.
8503 * Markdown reader: Relax spacing rules for $$ in display math. Now
8504 space and newlines are allowed after the opening $$ and before the
8505 closing $$. However, the display math cannot contain an entirely
8506 blank line. Resolves Issue #105.
8508 * Markdown reader: Gobble space after Plain blocks containing only
8509 raw html inline. Otherwise following header blocks are not parsed
8510 correctly, since the parser sees blank space before them. Resolves
8511 Issue #124.
8513 * Markdown reader: Allow " as well as '' to end a latex double-quote.
8515 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
8516 Resolves Issue #109.
8518 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
8520 + Added hang' function to Text.Pandoc.Shared; this will be used instead
8521 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
8522 is upgraded, we can go back to hang.
8523 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
8524 + Use hang' (and some different techniques) in RST and markdown writers.
8525 Some output is now a bit different.
8527 * Brought citeproc support up to date for citeproc-hs-0.2.
8528 (Patch by Andrea Rossato.)
8530 * Moved all haskell source to src subdirectory. Renamed Main.hs to
8531 pandoc.hs.
8533 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
8534 For now, keeping the old shell script too.
8536 * Added TemplateHaskell to Extensions for executable, removed
8537 -threaded for library. Thanks to duncan.coutts for the bug report.
8538 Resolves Issue #121.
8540 * Moved some Extra-Source-Files to Data-Files.
8542 * Moved tabFilter to Shared.
8544 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
8545 preserve tabs.
8547 * Minor code cleanup based on hlint suggestions.
8549pandoc (1.1)
8551 [ John MacFarlane ]
8553 * Main.hs:
8555 + Changed date on copyright message in Main.hs.
8556 + Have the '-v' option print syntax highlighting languages
8557 separated by commas, and wrapped in lines, instead of in five
8558 columns as before.
8560 * Added --jsmath option. Resolves Issue #68.
8562 + Added --jsmath option to Main.hs
8563 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
8564 + Handle math appropriately in HTML writer when JsMath selected.
8565 + Documented the option in README and man page.
8567 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
8568 for tight and loose lists. Final Para is changed to Plain if all
8569 other list items *end* with a Plain block. Addresses Issue #99.
8571 * HTML reader:
8573 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
8574 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
8575 Added rawVerbatimBlock parser. Resolves Issue #94.
8577 * Markdown reader:
8579 + Allow URLs with spaces in them in links and references, but escape
8580 them as "%20".
8581 + Allow blank space at the end of horizontal rules.
8583 * RST reader: Modified 'unknownDirective' parser to handle comment
8584 blocks correctly, and added tests for comment blocks. Resolves Issue
8585 #86. Closes Debian Bug #500662.
8587 * HTML writer:
8589 + Include classes on tr elements in HTML output:
8590 "header", "odd", "even". This allows tables to be styled with
8591 lines in alternating colors. Resolves Issue #91.
8592 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
8593 This prevents parts of the document that are not math from being
8594 interpreted as math by LaTeXMathML.js.
8596 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
8597 which were formerly ignored. Resolves Issue #95.
8599 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
8600 between a footnote and immediately following nonspace characters in
8601 LaTeX and ConTeXt output. (This gets interpreted as a space, which
8602 is not desired in cases like "text^[note]---".) Resolves Issue #93.
8604 * Windows installer: Don't require admin privileges to run
8605 installer. Modified pandoc-setup.iss, and changed modpath.iss to
8606 modify HKCU path if user lacks admin privileges. Also fixed case
8607 where oldpath is empty (previously this led to the new path
8608 beginning with a semicolon).
8610 * Updated INSTALL instructions for Arch packages and OS X install using
8611 cabal-install.
8613 * Removed the (now unneeded) debian directory.
8614 Removed empty Codec and System directories.
8616 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
8618 * Modified Setup.hs so that the "test" target returns an error status
8619 when tests fail, and "build" returns a success status if
8620 the build succeeds. Resolves Issue #100.
8622 * Added BUGS to files in tarball.
8625pandoc (1.0.0.1)
8627 [ John MacFarlane ]
8629 * Removed spurious reference to pdf output format from pandoc(1) man page.
8631pandoc (1.0)
8633 [ Andrea Rossato ]
8635 * Added new OpenDocument writer.
8637 * Added support for SmallCaps inline element.
8639 * Added support for integrating pandoc with citeproc-hs.
8641 + Added Cite element to definition and writers.
8642 + Added Text.Pandoc.Biblio module
8643 + Note: This support is included only if the 'citeproc'
8644 Cabal configuration flag is set.
8646 * Made Pandoc data structure an instance of Typeable.
8647 Added new processPandoc and queryPandoc functions, to query
8648 or transform matching elements in a Pandoc structure.
8650 [ Peter Wang ]
8652 * Added new Texinfo writer.
8654 [ John MacFarlane ]
8656 * Changes to Texinfo writer:
8658 + No space between paragraph and following @verbatim (provides more
8659 pleasing appearance in text formats)
8660 + Blank line consistently after list environments.
8661 + Removed deVerb.
8662 + Use @code instead of @verb for inline code (this solves the character
8663 escaping problem for texi2dvi and texi2pdf).
8664 + Added news of Texinfo writer to README.
8665 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
8666 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
8667 default output extension.
8668 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
8670 * Added tests for OpenDocument writer.
8672 * Added ODT writer (using zip-archive library to package output of
8673 OpenDocument writer). Added odt-styles directory with default ODT styles.
8675 * Added new mediawiki writer and tests.
8677 * Markdown reader: Added support for delimited code blocks, with optional
8678 syntax highlighting using highlighting-kate (if the 'highlighting'
8679 configuration option is selected).
8681 + Currently highlighting is supported only in the HTML writer.
8682 + Delimited code blocks can have attributes; using the language name as
8683 class triggers highlighting.
8684 + New Attributes parameter in CodeBlock structure.
8685 + --version now indicates whether syntax highlighting support is compiled
8686 in, and prints a list of supported languages
8688 * Removed debian directory. Pandoc is no longer a native debian package.
8690 * Changes to build process: pandoc can now be built from the repository
8691 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
8692 without Cygwin).
8694 + Include shell scripts themselves in repo, rather than generating from wrappers.
8695 Removed wrappers directory and wrappers Makefile target.
8696 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
8697 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
8698 from templates in the templates/ directory. Instead, they use template
8699 haskell to read data at compile time from the relevant files in data/.
8700 Template haskell functions go in a new module, Text.Pandoc.TH.
8701 + man pages are now generated in Setup.hs hook, not by Makefile
8702 + Makefile 'tarball' target now calls Cabal's 'sdist'
8703 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
8704 + Added "Build-Type" field to pandoc.cabal to avoid warning.
8705 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
8706 so 'sdist' and 'clean' will work properly.
8707 + Setup.hs now generates man pages in a postbuild hook.
8708 + Added dependency-checking to Setup.hs, so it only rebuilds things
8709 that need rebuilding.
8710 + Added 'library' and 'executable' configuration flags.
8711 Cabal can now be told to build just the library or just the executable.
8712 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
8713 For example: CABALOPTS=-fhighlighting make
8715 * Rewrote test suite so it doesn't depend on perl or unix tools.
8717 + Replaced old runtests.pl with a Haskell script RunTests.hs.
8718 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
8719 + Added test hook to Setup.hs, so tests may be run from cabal.
8720 + Changed Makefile's 'test' target to run tests via cabal.
8721 + Removed old generate.sh.
8722 + Since we no longer have 'sed' to filter out raw HTML sections
8723 from the docbook writer test, or raw LaTeX sections from the
8724 context writer test, we now just include these sections.
8725 They can be taken out if it is necessary to process the files.
8726 + Updated latex and context writer tests to remove extra spaces
8727 after '\\item'
8728 + Added a markdown table reader test.
8729 + Added markdown-reader-more.txt to test suite, for additional test cases
8730 for raw ConTeXt environments and more.
8732 * Compatibility fixes for CPP, Cabal, and haddock:
8734 + Use CPP in "Extensions" field in pandoc.cabal.
8735 + Removed use of backslash string continuations in source files.
8737 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
8738 base >= 3.
8740 * Require parsec < 3.
8741 The compatibility module in parsec 3.0.0 gives far worse performance than
8742 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
8743 version of parsec, and then we'll go to parsec 3.0.0.
8745 * Removed Text.Regex dependencies by rewriting using plain Haskell
8746 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
8748 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
8750 * Makefile:
8752 + Added 'configure' as dependency of 'uninstall-all'.
8753 (It uses the Cabal build program.)
8754 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
8755 Note that Cabal will automatically choose the ghc-pkg appropriate
8756 for the compiler selected, so normally specifying GHC by itself
8757 is sufficient.
8759 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
8760 its IO and conversion functions.
8762 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
8763 everything is -Wall clean.
8765 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
8766 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
8767 (These are caused by the Lift instance for ByteString.)
8769 * Changed the comment used to replace unsafe HTML if sanitize-html option
8770 selected.
8772 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
8774 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
8776 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
8777 "nbsp" isn't a predefined XML entity.
8779 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
8780 Added some try's in ordered list parsers.
8782 * Man writer: don't escape " as \".
8784 * Allow newline before URL in markdown link references. Resolves Issue #81.
8785 Added tests for this issue in new "markdown-reader-more" tests.
8786 Changed RunTests.hs to run these tests.
8788 * Support for display math. Resolves Issue #47.
8790 + Added a DisplayMath/InlineMath selector to Math inlines.
8791 + Markdown parser yields DisplayMath for $$...$$.
8792 + LaTeX parser yields DisplayMath when appropriate. Removed
8793 mathBlock parsers, since the same effect is achieved by the math
8794 inline parsers, now that they handle display math.
8795 + Writers handle DisplayMath as appropriate for the format.
8796 + Modified tests accordingly; added new tests for display math.
8798 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
8799 to LaTeX in its display of math, and supports many non-math LaTeX environments.
8801 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
8802 + Modified HTML writer to print raw TeX when LaTeXMathML is
8803 being used instead of suppressing it.
8804 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
8805 + Replaced ASCIIMathML with LaTeXMathML in source files.
8806 + Modified README and pandoc man page source.
8807 + Added --latexmathml option (kept --asciimathml as a synonym
8808 for backwards compatibility)
8810 * Markdown reader: Parse setext headers before atx headers.
8811 Test case:
8812 # hi
8813 ====
8814 parsed by Markdown.pl as an H1 header with contents "# hi".
8816 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
8817 The marker on the first list item determines the type of the whole
8818 list. Thus, a list like
8819 1. one
8820 - two
8821 * three
8822 gets parsed as a single ordered list. (Previous versions of pandoc
8823 treated this as an ordered list with an unordered sublist.)
8825 * Markdown smart typography:
8827 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
8828 + Use nonbreaking spaces after known abbreviations in markdown parser.
8829 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
8830 not produce a sentence-separating space. Resolves Issue #75.
8832 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
8834 * Treat '\ ' in (extended) markdown as nonbreaking space.
8835 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
8837 * The '--sanitize-html' option now examines URIs in markdown links
8838 and images, and in HTML href and src attributes. If the URI scheme
8839 is not on a whitelist of safe schemes, it is rejected. The main point
8840 is to prevent cross-site scripting attacks using 'javascript:' URIs.
8841 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
8842 and http://ha.ckers.org/xss.html. Resolves Issue #62.
8844 * HTML writer:
8846 + Override Text.XHtml's stringToHtml function,
8847 so that characters below 0xff are not converted to numerical entity
8848 references. Also convert '\160' to "&nbsp;". This should aid readability
8849 and editability of the HTML source. It does presuppose that the HTML
8850 will be served as UTF-8.
8851 + In code blocks, change leading newlines to <br /> tags.
8852 (Some browsers ignore them.) Resolves Issue #71.
8853 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
8854 + Use style attributes rather than css classes for strikethrough
8855 and ordered list styles. This works better when fragments, rather than
8856 standalone documents, are generated.
8858 * HTML reader: Count anything that isn't a known block (HTML) tag as an
8859 inline tag (rather than the other way around). Added "html", "head", and
8860 "body" to list of block tags. Resolves Issue #66, allowing
8861 <lj> to count as an inline tag.
8863 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
8864 boldface, and other inline elements. Resolves Issue #64.
8866 * LaTeX reader: improvements in raw LaTeX parsing.
8868 + "loose punctuation" (like {}) parsed as Space
8869 + Para elements must contain more than Str "" and Space elements
8870 + Added parser for "\ignore" command used in literate haskell.
8871 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
8872 mode, these parsers simply strip off the command part and allow
8873 the arguments to be parsed normally. So, for example,
8874 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
8875 Str "{\\emph{hi}}".
8876 + Parse lhs "code" environments as verbatim.
8877 Refactored parsers for verbatim environments.
8878 + Removed specialEnvironment parser.
8879 + parse '{}', if present, after \textless, \textgreater,
8880 \textbar, \textbackslash, \ldots.
8881 + Parse unescaped special characters verbatim rather than
8882 changing them to spaces. This way arguments of unknown
8883 commands will appear in braces.
8885 * Parse raw ConTeXt environments as TeX in markdown reader.
8886 Resolves Issue #73.
8888 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
8890 * Made some structural changes to parsing of raw LaTeX environments.
8891 Previously there was a special block parser for LaTeX environments.
8892 It returned a Para element containing the raw TeX inline. This has
8893 been removed, and the raw LaTeX environment parser is now used in the
8894 rawLaTeXInline parser. The effect is exactly the same, except that we
8895 can now handle consecutive LaTeX and ConTeXt environments not separated
8896 by spaces. This new flexibility is required by the example in
8897 Issue #73:
8899 \placeformula \startformula
8900 L_{1} = L_{2}
8901 \stopformula
8903 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
8904 returns a string) rather than rawLaTeXEnvironment (which returns a block
8905 element). This is more likely to be useful in other applications.
8907 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
8908 \textsubscript conflicts with a definition in the memoir class.
8909 Resolves Issue #65.
8911 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
8913 * Added amsmath package to default LaTeX header. Resolves Issue #48.
8915 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
8916 list introduction lines.
8918 * Changed Float to Double in definition of Table element.
8919 (Double is more efficient in GHC.)
8921 * Fixed bug in Markdown parser: regular $s triggering math mode.
8922 For example: "shoes ($20) and socks ($5)."
8923 The fix consists in two new restrictions:
8925 + the $ that ends a math span may not be directly followed by a digit.
8926 + no blank lines may be included within a math span.
8928 Thanks to Joseph Reagle for noticing the bug.
8930 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
8931 Removed 'joinWithSep' from Text.Pandoc.Shared.
8933 * Updated README and man pages. Acknowledge contributors in README.
8934 Added paragraph to README about producing S5 with separate CSS/javascript.
8936 * Updated INSTALL to reflect new build system (including configuration
8937 options) and document new dependencies. Added note to INSTALL that
8938 Cabal >= 1.2 is required for build. Resolves Issue #74.
8940 * Fixed some haddock documentation errors.
8942 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
8944pandoc (0.46) unstable; urgency=low
8946 [ John MacFarlane ]
8948 * Made -H, -A, and -B options cumulative: if they are specified
8949 multiple times, multiple files will be included.
8951 * Added optional HTML sanitization using a whitelist.
8952 When this option is specified (--sanitize-html on the command line),
8953 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
8954 attributes will be removed. This option should be especially useful
8955 for those who want to use pandoc libraries in web applications, where
8956 users will provide the input.
8958 + Main.hs: Added --sanitize-html option.
8960 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
8962 + Text.Pandoc.Readers.HTML:
8963 - Added whitelists of sanitaryTags and sanitaryAttributes.
8964 - Added parsers to check these lists (and state) to see if a given
8965 tag or attribute should be counted unsafe.
8966 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
8967 with comments.
8968 - Modified htmlAttribute to remove unsafe attributes.
8969 - Modified htmlScript and htmlStyle to remove these elements if
8970 unsafe.
8972 + Modified README and man pages to document new option.
8974 * Improved handling of email addresses in markdown and reStructuredText.
8975 Consolidated uri and email address parsers. (Resolves Issue #37.)
8977 + New emailAddress and uri parsers in Text.Pandoc.Shared.
8978 - uri parser uses parseURI from Network.URI.
8979 - emailAddress parser properly handles email addresses with periods
8980 in them.
8982 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
8983 and Text.Pandoc.Readers.Markdown.
8985 * Markdown reader:
8987 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
8988 nested in an Emph. (A '*' is only recognized as the end of the
8989 emphasis if it's not the beginning of a strong emphasis.)
8991 + Moved blockQuote parser before list parsers for performance.
8993 + Modified 'source' parser to allow backslash-escapes in URLs.
8994 So, for example, [my](/url\(1\)) yields a link to /url(1).
8995 Resolves Issue #34.
8997 + Disallowed links within links. (Resolves Issue #35.)
8998 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
8999 instead of hard-coding the inline parser takes an inline parser
9000 as a parameter.
9001 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
9002 - Removed unneeded inlineString function.
9003 - Added inlineNonLink parser, which is now used in the definition of
9004 reference.
9005 - Added inlineParsers list and redefined inline and inlineNonLink parsers
9006 in terms of it.
9007 - Added failIfLink parser.
9009 + Better handling of parentheses in URLs and quotation marks in titles.
9010 - 'source' parser first tries to parse URL with balanced parentheses;
9011 if that doesn't work, it tries to parse everything beginning with
9012 '(' and ending with ')'.
9013 - source parser now uses an auxiliary function source'.
9014 - linkTitle parser simplified and improved, under assumption that it
9015 will be called in context of source'.
9017 + Make 'block' conditional on strictness state, instead of using
9018 failIfStrict in block parsers. Use a different ordering of parsers
9019 in strict mode (raw HTML block before paragraph) for performance.
9020 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
9021 Simplified htmlBlock, since we know it's only called in strict
9022 mode.
9024 + Improved handling of raw HTML. (Resolves Issue #36.)
9025 - Tags that can be either block or inline (e.g. <ins>) should
9026 be treated as block when appropriate and as inline when
9027 appropriate. Thus, for example,
9028 <ins>hi</ins>
9029 should be treated as a paragraph with inline <ins> tags, while
9030 <ins>
9031 hi
9032 </ins>
9033 should be treated as a paragraph within <ins> tags.
9034 - Moved htmlBlock after para in list of block parsers. This ensures
9035 that tags that can be either block or inline get parsed as inline
9036 when appropriate.
9037 - Modified rawHtmlInline' so that block elements aren't treated as
9038 inline.
9039 - Modified para parser so that paragraphs containing only HTML tags and
9040 blank space are not allowed. Treat these as raw HTML blocks instead.
9042 + Fixed bug wherein HTML preceding a code block could cause it to
9043 be parsed as a paragraph. The problem is that the HTML parser
9044 used to eat all blank space after an HTML block, including the
9045 indentation of the code block. (Resolves Issue #39.)
9046 - In Text.Pandoc.Readers.HTML, removed parsing of following space
9047 from rawHtmlBlock.
9048 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
9049 indentation is eaten *only* on the first line after the HTML
9050 block. This means that in
9051 <div>
9052 foo
9053 <div>
9054 the foo won't be treated as a code block, but in
9055 <div>
9057 foo
9059 </div>
9060 it will. This seems the right approach for least surprise.
9062 * RST reader:
9064 + Fixed bug in parsing explicit links (resolves Issue #44).
9065 The problem was that we were looking for inlines until a '<' character
9066 signaled the start of the URL; so, if you hit a reference-style link,
9067 it would keep looking til the end of the document. Fix: change
9068 inline => (notFollowedBy (char '`') >> inline). Note that this won't
9069 allow code inlines in links, but these aren't allowed in resT anyway.
9071 + Cleaned up parsing of reference names in key blocks and links.
9072 Allow nonquoted reference links to contain isolated '.', '-', '_', so
9073 so that strings like 'a_b_' count as links.
9075 + Removed unnecessary check for following link in str.
9076 This is unnecessary now that link is above str in the definition of
9077 'inline'.
9079 * HTML reader:
9081 + Modified rawHtmlBlock so it parses </html> and </body> tags.
9082 This allows these tags to be handled correctly in Markdown.
9083 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
9084 since these are handled in parseHtml. (Resolves Issue #38.)
9086 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
9088 + Don't interpret contents of style tags as markdown.
9089 (Resolves Issue #40.)
9090 - Added htmlStyle, analagous to htmlScript.
9091 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
9092 - Moved "script" from the list of tags that can be either block or
9093 inline to the list of block tags.
9095 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
9096 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
9097 inline tags would be included in raw HTML blocks.
9099 + Modified anyHtmlBlockTag to test for (not inline) rather than
9100 directly for block. This allows us to handle e.g. docbook in
9101 the markdown reader.
9103 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
9104 Updated LaTeX reader test to use --parse-raw.
9106 * HTML writer:
9108 + Modified rules for automatic HTML header identifiers to
9109 ensure that identifiers begin with an alphabetic character.
9110 The new rules are described in README. (Resolves Issue #33.)
9112 + Changed handling of titles in HTML writer so you don't get
9113 "titleprefix - " followed by nothing.
9115 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
9116 spacing. Each block element is wrapped with either Pad or Reg.
9117 Pad'ed elements are guaranteed to have a blank line in between.
9119 * RST writer:
9121 + Refactored RST writer to use a record instead of a tuple for state,
9122 and to include options in state so it doesn't need to be passed as
9123 a parameter.
9125 + Use an interpreted text role to render math in restructuredText.
9126 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
9127 strategy.
9129 [ Recai Oktaş ]
9131 * Debian packaging changes:
9133 + Remove the empty 'include' directory in -dev package, which lintian
9134 complains about.
9135 + Bump Standarts-Version to 3.7.3.
9136 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
9137 lintian.
9139 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
9141pandoc (0.45) unstable; urgency=low
9143 [ John MacFarlane ]
9145 * Simplified parsing of reference keys and notes in markdown and RST
9146 readers: The Reference data structure from Text.Pandoc.Shared is no
9147 longer needed, since referenceKey and noteBlock parses return strings
9148 (as many blank lines as were occupied by the key or note) and update
9149 state themselves. getPosition and setPosition are now used to ensure
9150 that error messages will give the correct line number. This yields
9151 cleaner (and slightly faster) code, with more accurate parsing error
9152 messages.
9154 * Added new Math inline element:
9156 + Markdown and LaTeX readers now convert TeX math into Math elements,
9157 not TeX.
9158 + This allows math to be treated differently from raw TeX in output.
9159 TeX elements are no longer printed in output formats other than
9160 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
9162 * New default handling of math in writers:
9164 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
9165 parses raw TeX math and outputs a string of Pandoc inlines that
9166 tries to render it as far as possible using unicode characters,
9167 lapsing into literal TeX when needed.
9168 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
9169 and Docbook, if no other method for displaying math in HTML is
9170 specified. Enclosing $'s are no longer printed by default.
9171 + By default, math is put inside `<span class="math">`. This way it can be
9172 distinguished from the surrounding text, e.g. put in a different
9173 font.
9175 * New --gladtex and --mimetex options for display of math in HTML:
9177 + If --gladtex is specified, math is output between `<eq>` tags, so
9178 it can be processed by gladTeX.
9179 + If --mimetex is specified, math is put in `<img>` tags with a link
9180 to the mimetex CGI script (or any other script that takes TeX math
9181 as input and outputs an image). The URL of the script may be
9182 specified, but defaults to /cgi-bin/mimetex.cgi.
9183 + HTMLMathMethod structure in WriterOptions keeps track of how to
9184 display math in HTML output.
9185 + Updated README with a description of the four options for displaying
9186 math in HTML.
9188 * HTML reader:
9190 + Fixed bug: parser for minimized attributes should not swallow
9191 trailing spaces.
9192 + Simplified HTML attribute parsing.
9193 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
9194 longer needed. `<pre>` suffices. All HTML tags in the code block
9195 (e.g. for syntax highlighting) are skipped, because they are not
9196 portable to other output formats. A `<code>...</code>` block not
9197 surrounded by `<pre>` now counts as inline HTML, not a code block.
9198 + Remove just one leading and one trailing newline from contents of
9199 `<pre>...</pre>` in codeBlock parser.
9201 * Markdown reader:
9203 + Removed support for box-style block quotes.
9204 + Require space before title in links and references.
9205 This fixes a bug in parsing URLs like http://silly/url(withparen).
9206 + Improved and simplified setextHeader parser.
9207 + Fixed logic in smart quote parsing, adding some needed 'try'
9208 statements.
9209 + Fixed smart quote parsing so that unicode characters 8216 and 8217
9210 are recognized as single quotes, and 8220 and 8221 as double quotes.
9212 * RST reader:
9214 + Fixed bug in parsing of code blocks. Previously a full tab indent
9215 was required, but RST allows code to be indented any amount.
9216 Resolves Issue #27.
9217 + Allow field lists to be indented.
9218 + Parse the contents of field lists instead of treating as a raw string.
9219 + Represent field lists as definition lists instead of blockquotes.
9220 + Fixed bug in which metadata would be overridden if the document
9221 contained multiple field lists.
9222 + Parse fields associated with '.. image::' blocks, and use 'alt'
9223 field, if given, for image alt and title attributes.
9225 * LaTeX reader:
9227 + Modified specialChar so that '"' characters are parsed.
9228 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
9230 * HTML writer:
9232 + Changes in handling of math (see above).
9233 + Don't produce HTML for table of contents if there are
9234 no headers. (This would be an empty list, which is invalid XHTML.)
9236 * Markdown writer:
9238 + Don't print title attribute if title is empty. (This differs from
9239 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
9240 Gruber has indicated that he prefers this behavior.) Adjusted test
9241 suite accordingly.
9242 + Fixed incorrect line wrapping in paragraphs including hard line
9243 breaks. Resolves Issue #25.
9244 + Fixed bug in markdown writer: If an ordered list item began with
9245 a marker greater than 3 characters in width, and the item took more
9246 than one line, it would appear on the line after the list marker,
9247 e.g.:
9249 (12)
9250 My list item.
9251 Multiline.
9253 Now it works as follows:
9255 (12) My list item.
9256 Multiline.
9258 * RST writer
9260 + Fixed bug in RST writer's handling of ordered lists. Previously,
9261 list items with multiple lines would not always line up with
9262 single-line list items. Now, list items are nested the length of
9263 the list marker + 1. This looks better and ensures that list items
9264 all line up. (Note that list markers are padded to the length of
9265 the longest list marker in the series.)
9266 + Use 3-space indent for unordered lists.
9267 + If label for a link reference contains a colon, surround it by `
9268 signs so it won't be interpreted as the end of the link label.
9270 * LaTeX writer:
9272 + Cleaner output for footnotes. Footnotes now always begin on a new
9273 line, and the final } is on a line by itself only when it needs to
9274 be (i.e. only when the note ends with a Verbatim environment).
9275 + Added writer options to state, so state doesn't need to be passed as
9276 a parameter.
9277 + Text wrapping now provided, using wrapTeXIfNeeded.
9279 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
9280 (thanks to Idris Samawi Hamid for suggestions).
9282 + PrettyPrint module now used for output.
9283 + Writer options are now in state, so they don't have to be passed as
9284 a parameter.
9285 + Text wrapping now provided, using wrapTeXIfNeeded.
9286 + Better treatment of footnotes: footnotes are always on lines by
9287 themselves, and the final } is on a line by itself only when
9288 it needs to be (after \stoptyping).
9289 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
9290 depending on whether --number-sections option is selected.
9291 + Extra blank line inserted after \stopitemize
9292 + Use new, "official" definition of blockquote environment. Also, use
9293 blank line after \startblockquote to balance blank line at the end.
9294 + Both itemized and enumerated lists are now generated using
9295 \start-stopitemize, with appropriate options. Removed definitions
9296 of ltxenum and ltxitem, which are no longer needed. Provided
9297 defaults for itemized lists in the preamble. State keeps track of
9298 ordered list level, so that when default numbering is specified,
9299 the appropriate scheme can be used.
9300 + Changed \useurl to \useURL.
9301 + Changed link color from red to blue.
9302 + Use \subsubsubsubsection etc., since these are supported
9303 (up to at least sub x 5).
9305 * Text.Pandoc.Shared:
9307 + Save and restore position in parseFromString, so that accurate
9308 error messages can be given.
9309 + Improved efficiency of romanNumeral parser.
9310 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
9311 that footnotes occur on lines by themselves (to make them
9312 easier to see and move) and do not screw up line wrapping.
9314 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
9315 if present. Windows Notepad and other applications insert a
9316 BOM at the beginning of a UTF8 file.
9318 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
9319 addition to "\r\n" and '\n').
9321 * Added a writer option for wrapped text and a command-line option
9322 '--no-wrap', which disables text wrapping and minimizes whitespace
9323 in HTML. (Resolves Issue #26.)
9325 + Added support for '--no-wrap' to Main.hs.
9326 + Added wrapIfNeeded function to Text.Pandoc.Shared.
9327 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
9328 Markdown writers.
9329 + Added render and renderFragment helpers to HTML writer.
9331 * Modified html2markdown to run tidy only if the HTML cannot be
9332 parsed. Previously html2markdown piped all input through tidy
9333 before passing it to pandoc. This caused problems on certain pages
9334 (e.g. http://daringfireball.com/markdown) which have well-formed
9335 XHTML that causes tidy to choke. The solution is to pipe through
9336 tidy only if pandoc cannot parse the input by itself. This means
9337 that a temp file is now always used, even when input comes from a
9338 local file or standard input.
9340 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
9341 Text.Pandoc library.
9343 * pandoc.cabal:
9345 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
9346 6.8, pretty and containers must be added to Build-Depends, and it
9347 is desirable to use the -O2 compiler option.) Cabal configurations
9348 allows one to select options depending on the compiler version.
9349 For GHC 6.6, the splitBase option can be disabled.
9350 + pandoc.cabal.ghc66 is provided for users with older versions of
9351 Cabal, which do not support configurations.
9352 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
9353 '--enable-(executable|library)-profiling' is specified. Updated
9354 PROFILING instructions accordingly.
9356 * Makefile:
9358 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
9359 is copied to pandoc.cabal, and the old pandoc.cabal is copied
9360 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
9361 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
9362 will work properly with either GHC 6.6 or 6.8.
9363 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
9364 This is where current versions of Cabal put it.
9365 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
9366 + Removed dependency of templates on ./templates, which is circular
9367 now that templates is a subdirectory of the top-level.
9369 * MacPorts Portfile:
9371 + Modified to install the pandoc library in addition to programs.
9372 + Installation must be done manually rather than using Makefile's
9373 install-all.
9374 + Note that the library must be registered in the activate phase,
9375 after the library files have been copied out of the destroot.
9376 Cabal generates a 'register.sh' script that will do this.
9378 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
9379 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
9380 Closes: #445235
9382 * debian/rules: Converted to UTF-8.
9384 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
9386 * Updated ASCIIMathML.js to latest version.
9388 * Directory structure:
9390 + Moved everything from src into the top-level directory.
9391 + Changed references to source directory in Makefile and
9392 pandoc.cabal.*.
9393 + Moved ASCIIMathML.js, headers, and ui into templates directory.
9394 + Modified fillTemplates.pl to reflect new paths.
9396 [ Recai Oktaş ]
9398 * Makefile: Fixed the issue of having two copies of the library
9399 documentation under some usage scenarios.
9401 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
9402 and GHC_PKG configurable through the environment, to support
9403 unusual ghc installations. For example:
9404 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
9406 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
9408pandoc (0.44) unstable; urgency=low
9410 [ John MacFarlane ]
9412 * Fixed bug in HTML writer: when --toc was used, anchors were put around
9413 headers, which is invalid XHTML (block content within inline element).
9414 Now the anchors are put inside the header tags. Resolves Issue #23.
9416 * Added xmlns attribute to html element in html writer tests.
9417 This attribute is added by more recent versions of the
9418 xhtml library (>= 3000), and is required for valid XHTML.
9420 [ Recai Oktaş ]
9422 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
9423 command instead of 'runhaskell', which, on some platforms (such as s390,
9424 alpha, m68k), throws the following error:
9426 runhaskell Setup.hs configure --prefix=/usr
9427 ghc-6.6.1: not built for interactive use
9429 This causes a serious FTBFS bug. Closes: #440668.
9431 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
9433pandoc (0.43) unstable; urgency=low
9435 [ John MacFarlane ]
9437 * The focus of this release is performance. The markdown parser
9438 is about five times faster than in 0.42, based on benchmarks
9439 with the TextMate manual.
9441 * Main.hs: Replaced CRFilter and tabFilter with single function
9442 tabFilter, which operates on the whole string rather than breaking
9443 it into lines, and handles dos-style line-endings as well as tabs.
9445 * Added separate LaTeX reader and native reader tests; removed
9446 round-trip tests.
9448 * Text.Pandoc.Shared:
9450 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
9451 + General code cleanup (to elimante warnings when compiling with -Wall.)
9452 + Added 'wrapped' function, which helps wrap text into paragraphs,
9453 using the prettyprinting library.
9454 + Rewrote charsInBalanced and charsInBalanced'.
9455 - Documented restriction: open and close must be distinct characters.
9456 - Rearranged options for greater efficiency.
9457 - Bug fix: Changed inner call to charsInBalanced inside
9458 charsInBalanced' to charsInBalanced'.
9459 + anyLine now requires that the line end with a newline (not eof).
9460 This is a harmless assumption, since we always add newlines to the
9461 end of a block before parsing with anyLine, and it yields a 10% speed
9462 boost.
9463 + Removed unnecessary 'try' in anyLine.
9464 + Removed unneeded 'try' from romanNumeral parser.
9465 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
9466 + Removed unneeded 'try' in parseFromString.
9467 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
9468 like 'string'.)
9469 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
9470 'try' is not automatically applied to the 'end' parser. Added
9471 'try' in calls to 'enclosed' where needed. Slight speed increase.
9473 * Writers:
9475 + Replaced individual wrapping routines in RST, Man, and Markdown
9476 writers with 'wrapped' from Text.Pandoc.Shared.
9477 + Rewrote LaTeX writer to use the prettyprinting library,
9478 so we get word wrapping, etc.
9479 + Modified latex writer tests for new latex writer using prettyprinter.
9480 + Fixed bug in LaTeX writer: autolinks would not cause
9481 '\usepackage{url}' to be put in the document header. Also, changes
9482 to state in enumerated list items would be overwritten.
9483 + In Markdown writer, escape paragraphs that begin with ordered list
9484 markers, so they don't get interpreted as ordered lists.
9486 * Text.Pandoc.Reades.LaTeX:
9488 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
9489 numeral after "enum" in "setcounter" would consist entirely of
9490 "i"s. 'enumiv' is legitimate.
9491 + LaTeX command and environment names can't contain numbers.
9492 + Rearranged order of parsers in inline for slight speed improvement.
9493 + Added '`' to special characters and 'unescapedChar'.
9495 * Text.Pandoc.Readers.RST:
9497 + Removed unneeded try's in RST reader; also minor code cleanup.
9498 + Removed tabchar.
9499 + Rearranged parsers in inline (doubled speed).
9501 * Text.Pandoc.Readers.Markdown:
9503 + Skip notes parsing if running in strict mode. (This yields a nice
9504 speed improvement in strict mode.)
9505 + Simplify autolink parsing code, using Network.URI to test for
9506 URIs. Added dependency on network library to debian/control and
9507 pandoc.cabal.
9508 + More perspicuous definition of nonindentSpaces.
9509 + Removed unneeded 'try' in 'rawLine'.
9510 + Combined linebreak and whitespace into a new whitespace parser, to
9511 avoid unnecessary reparsing of space characters.
9512 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
9513 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
9514 + Use lookAhead in parsers for setext headers and definition lists
9515 to see if the next line begins appropriately; if not, don't waste
9516 any more time parsing.
9517 + Don't require blank lines after code block. (It's sufficient to
9518 end code block with a nonindented line.)
9519 + Changed definition of 'emph': italics with '_' must not
9520 be followed by an alphanumeric character. This is to help
9521 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
9522 `[LC<em>TYPE]:my</em>type`.
9523 + Improved Markdown.pl-compatibility in referenceLink: the two parts
9524 of a reference-style link may be separated by one space, but not
9525 more... [a] [link], [not] [a link].
9526 + Fixed markdown inline code parsing so it better accords with
9527 Markdown.pl: the marker for the end of the code section is a clump
9528 of the same number of `'s with which the section began, followed
9529 by a non-` character. So, for example,
9530 ` h ``` i ` -> `<code>h ``` i</code>`.
9531 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
9532 rules are slightly different.
9533 + Rewrote 'para' for greater efficiency.
9534 + Rewrote link parsers for greater efficiency.
9535 + Removed redundant 'referenceLink' in definition of inline (it's
9536 already in 'link').
9537 + Refactored escapeChar so it doesn't need 'try'.
9538 + Refactored hrule for performance in Markdown reader.
9539 + More intelligent rearranging of 'inline' so that most frequently
9540 used parsers are tried first.
9541 + Removed tabchar parser, as whitespace handles tabs anyway.
9543 * Text.Pandoc.CharacterReferences:
9545 + Refactored.
9546 + Removed unnecessary 'try's for a speed improvement.
9547 + Removed unnecessary '&' and ';' from the entity table.
9549 * Build process:
9551 + Makefile: Get VERSION from cabal file, not Main.hs.
9552 + Modified MacPorts Portfile:
9553 - Depend on haddock
9554 - Build and install libraries and library documentation in
9555 addition to pandoc executable
9556 - Added template item for md5 sum in Portfile.in.
9557 - Incorporated changes from MacPorts repository (r28278).
9558 + FreeBSD port: Don't try to generate distinfo in Makefile.
9559 It can be made using 'make makesum' in FreeBSD.
9560 + Make both freebsd and macports targets depend on tarball.
9562 * Website and documentation:
9564 + Updated INSTALL instructions.
9565 + Added pandocwiki demo to website.
9566 + Removed local references to Portfile, since pandoc is now in the
9567 MacPorts repository.
9569 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
9571pandoc (0.42) unstable; urgency=low
9573 [ John MacFarlane ]
9575 * Main.hs: Use utf8 conversion on the extra files loaded with
9576 the -H, -C, -B, and -A options. This fixes problems with unicode
9577 characters in these files.
9579 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
9580 Text.Pandoc.Readers.HTML and without it we get a linking error when
9581 using the library.
9583 * Markdown reader:
9585 + Added new rule for enhanced markdown ordered lists: if the list
9586 marker is a capital letter followed by a period (including a
9587 single-letter capital roman numeral), then it must be followed by
9588 at least two spaces. The point of this is to avoid accidentally
9589 treating people's initials as list markers: a paragraph might begin,
9590 "B. Russell was an English philosopher," and this shouldn't be
9591 treated as a list. Documented change in README.
9592 + Blocks that start with "p. " and a digit are no longer treated
9593 as ordered lists (it's a page number).
9594 + Added a needed 'try' to listItem.
9595 + Removed check for a following setext header in endline.
9596 A full test is too inefficient (doubles benchmark time), and the
9597 substitute we had before is not 100% accurate.
9598 + Don't use Code elements for autolinks if --strict specified.
9600 * LaTeX writer: When a footnote ends with a Verbatim environment, the
9601 close } of the footnote cannot occur on the same line or an error occurs.
9602 Fixed this by adding a newline before the closing } of every footnote.
9604 * HTML writer:
9605 + Removed incorrect "{}" around style information in HTML tables.
9606 Column widths now work properly in HTML.
9607 + If --strict option is specified (and --toc is not), don't include
9608 identifiers in headers, for better Markdown compatibility.
9610 * Build process:
9612 + Separated $(web_dest) and website targets.
9613 + In website, index.txt is now constructed from template index.txt.in.
9614 + Added freebsd target to Markefile. This creates the freebsd Makefile
9615 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
9616 from the repository.
9617 + Added macport target to Makefile. Portfile is built from template
9618 Portfile.in.
9619 + Removed OSX package targets. (Too many difficulties involving
9620 dependencies on dynamic libraries.)
9621 + More complete INSTALL instructions for all architectures.
9623 * Website:
9624 + Added a programming demo, pandocwiki.
9626 [ Recai Oktaş ]
9628 * Do not forget to close pandoc's ITP. Closes: #391666
9630 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
9632pandoc (0.41) unstable; urgency=low
9634 [ John MacFarlane ]
9636 * Fixed bugs in HTML reader:
9637 + Skip material at end *only if* `</html>` is present (previously,
9638 only part of the document would be parsed if an error was
9639 found; now a proper error message is given).
9640 + Added new constant eitherBlockOrInline with elements that may
9641 count either as block-level or as inline. Modified isInline and
9642 isBlock to take this into account.
9643 + Modified rawHtmlBlock to accept any tag (even an inline tag):
9644 this is innocuous, because rawHtmlBlock is tried only if a regular
9645 inline element can't be parsed.
9646 + Added a necessary 'try' in definition of 'para'.
9648 * Fixed bug in markdown ordered list parsing. The problem was that
9649 anyOrderedListStart did not check for a space following the
9650 ordered list marker. So in 'A.B. 2007' the parser would be
9651 expecting a list item, but would not find one, causing an error.
9652 Fixed a similar bug in the RST reader. Resolves Issue #22.
9654 * Refactored RST and Markdown readers using parseFromString.
9656 * LaTeX reader will now skip anything after \end{document}.
9658 * Fixed blockquote output in markdown writer: previously, block
9659 quotes in indented contexts would be indented only in the first
9660 line.
9662 * Added note to INSTALL about variations in versions of the xhtml
9663 library that can lead to failed tests (thanks to Leif LeBaron).
9665 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
9667pandoc (0.4) unstable; urgency=low
9669 [ John MacFarlane ]
9671 * Added two new output formats: groff man pages and ConTeXt. By
9672 default, output files with extensions ".ctx" and ".context" are
9673 assumed to be ConTeXt, and output files with single-digit extensions
9674 are assumed to be man pages.
9676 * Enhanced ordered lists (documented in README, under Lists):
9677 + The OrderedList block element now stores information about
9678 list number style, list number delimiter, and starting number.
9679 + The readers parse this information when possible.
9680 + The writers use this information to style ordered lists.
9681 + The enhancement can be disabled using the --strict option.
9683 * Added support for tables (with a new Table block element). Two kinds
9684 of tables are supported: a simple table with one-line rows, and a
9685 more complex variety with multiline rows. All output formats are
9686 supported, but only markdown tables are parsed at the moment. The
9687 syntax is documented in README.
9689 * Added support for definition lists (with a new DefinitionList block
9690 element). All output and input formats are supported. The syntax is
9691 documented in README.
9693 * Added support for superscripts and subscripts (with new Superscript
9694 and Subscript inline elements). All input and output
9695 formats. The syntax is documented in README.
9697 * Added support for strikeout (with a new Strikeout inline element).
9698 All input and output formats are supported. Thanks to Bradley Kuhn,
9699 who contributed a patch. The syntax is documented in README. Resolves
9700 Issue #18.
9702 * Added a --toc|--table-of-contents option. This causes an automatically
9703 generated table of contents (or an instruction that creates one) to
9704 be inserted at the beginning of the document. Not supported in S5,
9705 DocBook, or man page writers.
9707 * Modified the -m|--asciimathml option:
9709 + If an optional URL argument is provided, a link is inserted
9710 instead of the contents of the ASCIIMathML.js script.
9711 + Nothing is inserted unless the document actually contains
9712 LaTeX math.
9714 * Removed Blank block element as unnecessary.
9716 * Removed Key and Note blocks from the Pandoc data structure. All
9717 links are now stored as explicit links, and note contents are
9718 stored with the (inline) notes.
9720 + All link Targets are now explicit (URL, title) pairs; there
9721 is no longer a 'Ref' target.
9722 + Markdown and RST parsers now need to extract data from key and
9723 note blocks and insert them into the relevant inline elements.
9724 Other parsers have been simplified, since there is no longer any need
9725 to construct separate key and note blocks.
9726 + Markdown, RST, and HTML writers need to construct lists of
9727 notes; Markdown and RST writers need to construct lists of link
9728 references (when the --reference-links option is specified); and
9729 the RST writer needs to construct a list of image substitution
9730 references. All writers have been rewritten to use the State monad
9731 when state is required.
9732 + Several functions (generateReference, keyTable,
9733 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
9734 used by them) have been removed from Text.Pandoc.Shared, since
9735 they are no longer needed. New functions and data structures
9736 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
9737 added. The functions inTags, selfClosingTag, inTagsSimple, and
9738 inTagsIndented have been moved to the DocBook writer, since that
9739 is now the only module that uses them. NoteTable is now exported
9740 in Text.Pandoc.Shared.
9741 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
9742 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
9743 + Added writerNotes and writerReferenceLinks to WriterOptions.
9745 * Added Text.Pandoc module that exports basic readers, writers,
9746 definitions, and utility functions. This should export everything
9747 needed for most uses of Pandoc libraries. The haddock documentation
9748 includes a short example program.
9750 * Text.Pandoc.ASCIIMathML is no longer an exported module.
9752 * Added Text.Pandoc.Blocks module to help in printing markdown
9753 and RST tables. This module provides functions for working with
9754 fixed-width blocks of text--e.g., placing them side by side, as
9755 in a table row.
9757 * Refactored to avoid reliance on Haskell's Text.Regex library, which
9758 (a) is slow, and (b) does not properly handle unicode. This fixed
9759 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
9761 + Replaced 'gsub' with a general list function 'substitute'
9762 that does not rely on Text.Regex.
9763 + Rewrote extractTagType in HTML reader so that it doesn't use
9764 regexs.
9765 + In Markdown reader, replaced email regex test with a custom email
9766 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
9767 with a custom function isSelfClosingTag.
9768 + Modified Docbook writer so that it doesn't rely on Text.Regex for
9769 detecting 'mailto' links.
9770 + Removed escapePreservingRegex and reamped entity-handling
9771 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
9772 avoid reliance on Text.Regex (see below on character reference
9773 handling changes).
9775 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
9777 * Changed handling of XML entities. Entities are now parsed (and unicode
9778 characters returned) in the Markdown and HTML readers, rather than being
9779 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
9780 instead of entities for characters above 128. This makes the HTML and
9781 DocBook output much more readable and more easily editable.
9783 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
9784 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
9785 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
9786 Moved both functions to Text.Pandoc.Writers.Docbook.
9787 + Added characterReference parser to Text.Pandoc.CharacterReferences.
9788 This parses a string and return a unicode character.
9789 + Rewrote decodeCharacterReferences to use the new parser instead of
9790 Text.Regex.
9791 + Added new charRef parser for Markdown and HTML, which replaces the
9792 old 'entity' parser. Added '&' as a special character in Markdown reader.
9793 + Modified HTML and Markdown readers to call decodeEntities on all raw
9794 strings (e.g. authors, dates, link titles), to ensure that no
9795 unprocessed entities are included in the native representation of
9796 the document. (In the HTML reader, most of this work is done by a
9797 change in extractAttributeName.)
9798 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
9799 since a unicode non-breaking space is impossible to distinguish visually
9800 from a regular space. (Resolves Issue #3.)
9801 + Removed encodeEntitiesNumerical.
9802 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
9803 slight performance boost over the old association list.
9804 + Removed unneeded decodeEntities from 'str' parser in HTML and
9805 Markdown readers.
9807 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
9808 fromUTF8, for clarity.
9810 * Replaced old haskell98 module names replaced by hierarchical module
9811 names, e.g. List by Data.List. Removed haskell98 from dependencies
9812 in pandoc.cabal, and added mtl (needed for state monad). Substituted
9813 xhtml for html.
9815 * Refactored and cleaned up character escaping in writers, using
9816 backslashEscapes and escapeStringUsing functions.
9818 * Instead of adding "\n\n" to the end of an input string in Main.hs,
9819 this is now done in the readers. This makes the libraries behave
9820 the way you'd expect from the pandoc program. Resolves Issue #10.
9822 * URLs and email addresses in autolinks are now typeset as Code.
9824 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
9825 doesn't display the whole output unless there's a line ending.
9827 * Major code cleanup in all modules, for greater consistency, concision,
9828 and readability.
9830 * HTML reader:
9832 + Fixed several bugs (extractTagType, attribute parsing).
9833 + Remove Null blocks in lists of blocks when possible.
9834 + Allow HTML comments as raw HTML inline.
9836 * Markdown reader:
9838 + Ordered list items may no longer begin with uppercase letters, or
9839 letters greater than 'n'. (This prevents first initials and page
9840 reference, e.g. 'p. 400', from being parsed as beginning lists.)
9841 Also, numbers beginning list items may no longer end with ')',
9842 which is now allowed only after letters. Note: These changes
9843 may cause documents to be parsed differently. Users should take
9844 care in upgrading.
9845 + Changed autoLink parsing to conform better to Markdown.pl's
9846 behavior. `<google.com>` is not treated as a link, but
9847 `<http://google.com>`, `<ftp://google.com>`, and
9848 `<mailto:google@google.com>` are.
9849 + Cleaned up handling of embedded quotes in link titles. Now these are
9850 stored as a '"' character, not as '&quot;'.
9851 + Use lookAhead parser for the 'first pass' (looking for reference keys),
9852 instead of parsing normally, then using setInput to reset input. This
9853 yields a slight performance boost.
9854 + Fixed several bugs in smart quote recognition.
9855 + Fixed bug in indentSpaces (which didn't properly handle
9856 cases with mixed spaces and tabs).
9857 + Consolidated 'text', 'special', and 'inline' into 'inline'.
9858 + Fixed bug which allowed URL and title to be separated by multiple blank
9859 lines in links and reference keys. They can be on separate lines but
9860 can't have blank lines between them.
9861 + Correctly handle bracketed text inside inline footnotes and links,using
9862 new function inlinesInBalanced. Resolves Issue #14.
9863 + Fixed bug in footnotes: links in footnotes were not being
9864 processed. Solution: three-stage parse. First, get all the
9865 reference keys and add information to state. Next, get all the
9866 notes and add information to state. (Reference keys may be needed
9867 at this stage.) Finally, parse everything else.
9868 + Replaced named constants like 'emphStart' with literals.
9869 + Removed an extra occurance of escapedChar in definition of inline.
9871 * RST reader:
9873 + Allow the URI in a RST hyperlink target to start on the line
9874 after the reference key.
9875 + Added 'try' in front of 'string', where needed, or used a different
9876 parser. This fixes a bug where ````` would not be correctly parsed as
9877 a verbatim `.
9878 + Fixed slow performance in parsing inline literals in RST reader. The
9879 problem was that ``#`` was seen by 'inline' as a potential link or image.
9880 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
9881 Resolves Issue #8.
9882 + Use lookAhead instead of getInput/setInput in RST reader. Removed
9883 unneeded getState call, since lookAhead automatically saves and
9884 restores the parser state.
9885 + Allow hyperlink target URIs to be split over multiple lines, and
9886 to start on the line after the reference. Resolves Issue #7.
9887 + Fixed handling of autolinks.
9889 * LaTeX reader:
9891 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
9892 for clarity.
9893 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
9894 caret is \^{}, not \^ as before.
9895 + Added parsing for \url.
9896 + Parse \texttt{} as code, provided there's nothing fancy inside.
9898 * HTML writer:
9900 + Modified HTML writer to use the Text.XHtml library. This results
9901 in cleaner, faster code, and it makes it easier to use Pandoc in
9902 other projects, like wikis, which use Text.XHtml. Two functions are
9903 now provided, writeHtml and writeHtmlString: the former outputs an
9904 Html structure, the latter a rendered string. The S5 writer is also
9905 changed, in parallel ways (writeS5, writeS5String).
9906 + The Html header is now written programmatically, so it has been
9907 removed from the 'headers' directory. The S5 header is still
9908 needed, but the doctype and some of the meta declarations have
9909 been removed, since they are written programatically. This change
9910 introduces a new dependency on the xhtml package.
9911 + Fixed two bugs in email obfuscation involving improper escaping
9912 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
9913 Issue #9.
9914 + Fixed another bug in email obfuscation: If the text to be obfuscated
9915 contains an entity, this needs to be decoded before obfuscation.
9916 Thanks to thsutton for the patch. Resolves Issue #15.
9917 + Changed the way the backlink is displayed in HTML footnotes.
9918 Instead of appearing on a line by itself, it now generally
9919 appears on the last line of the note. (Exception: when the
9920 note does not end with a Plain or Para block.) This saves space
9921 and looks better.
9922 + Added automatic unique identifiers to headers:
9923 - The identifier is derived from the header via a scheme
9924 documented in README.
9925 - WriterState now includes a list of header identifiers and a table
9926 of contents in addition to notes.
9927 - The function uniqueIdentifiers creates a list of unique identifiers
9928 from a list of inline lists (e.g. headers).
9929 - This list is part of WriterState and gets consumed by blockToHtml
9930 each time a header is encountered.
9931 + Include CSS for .strikethrough class in header only if strikethrough
9932 text appears in the document.
9933 + If the 'strict' option is specified, elements that do not appear in
9934 standard markdown (like definition lists) are passed through as
9935 raw HTML.
9936 + Simplified treatment of autolinks, using pattern matching instead of
9937 conditionals.
9939 * Markdown writer:
9941 + Links in markdown output are now printed as inline links by default,
9942 rather than reference links. A --reference-links option has been added
9943 that forces links to be printed as reference links. Resolves Issue #4.
9944 + Use autolinks when possible. Instead of `[site.com](site.com)`,
9945 use `<site.com>`.
9947 * LaTeX writer:
9949 + Rewrote to use the State monad. The preamble now includes only those
9950 packages that are actually required, given the document's content.
9951 Thus, for example, if strikeout is not used, ulem is not required.
9952 Modified LaTeXHeader accordingly.
9953 + Modified LaTeX writer to insert '\,' between consecutive quotes.
9954 + Removed unused function tableRowColumnWidths.
9955 + Simplified code for escaping special characters.
9956 + Leave extra blank line after \maketitle.
9957 + Include empty '\author{}' when no author specified to avoid LaTeX
9958 errors.
9959 + Include fancyvrb code in header only if needed -- that is, only
9960 if there is actually code in a footnote.
9961 + Use \url{} for autolinks.
9962 + Include [mathletters] option in ucs package, so that basic unicode
9963 Greek letters will work correctly.
9965 * RST writer: Force blank line before lists, so that sublists will
9966 be handled correctly.
9968 * Docbook writer: Fixed a bug: email links with text, like
9969 [foo](me@bar.baz), were being incorrectly treated as autolinks.
9971 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
9972 Text.Pandoc.Shared.
9974 * Text.Pandoc.Shared:
9976 + Added defaultWriterOptions.
9977 + Added writerTableOfContents to WriterOptions.
9978 + Added writerIgnoreNotes option to WriterOptions. This is needed
9979 for processing header blocks for a table of contents, since notes on
9980 headers should not appear in the TOC.
9981 + Added prettyprinting for native Table format.
9982 + Removed some unneeded imports.
9983 + Moved escape and nullBlock parsers from
9984 Text.ParserCombinators.Pandoc, since the latter is for
9985 general-purpose parsers that don't depend on Text.Pandoc.Definition.
9986 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
9987 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
9988 writer, because HTML writer now uses these in constructing a table
9989 of contents.
9990 + Added clauses for new inline elements (Strikeout, Superscript,
9991 Subscript) to refsMatch.
9992 + Removed backslashEscape; added new functions escapeStringUsing and
9993 backslashEscapes.
9994 + Moved failIfStrict from markdown reader, since it is now used also
9995 by the HTML reader.
9996 + Added a 'try' to the definition of indentSpaces.
9997 + In definition of 'reference', added check to make sure it's not a note
9998 reference.
9999 + Added functions: camelCaseToHyphenated, toRomanNumeral,
10000 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
10001 charsInBalanced', withHorizDisplacement, romanNumeral
10002 + Fixed a bug in the anyLine parser. Previously it would parse an empty
10003 string "", but it should fail on an empty string, or we get an error
10004 when it is used inside "many" combinators.
10005 + Removed followedBy' parser, replacing it with the lookAhead parser from
10006 Parsec.
10007 + Added some needed 'try's before multicharacter parsers, especially in
10008 'option' contexts.
10009 + Removed the 'try' from the 'end' parser in 'enclosed', so that
10010 'enclosed' behaves like 'option', 'manyTill', etc.
10011 + Added lineClump parser, which parses a raw line block up to and
10012 including any following blank lines.
10013 + Renamed parseFromStr to parseFromString.
10014 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
10015 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
10016 in calling code.
10017 + Removed unneeded 'try' in blanklines.
10018 + Removed endsWith function and rewrote calling functions to use
10019 isSuffixOf instead.
10020 + Added >>~ combinator.
10021 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
10022 Space.
10024 * Refactored runtests.pl; added separate tests for tables.
10026 * Shell scripts:
10028 + Added -asxhtml flag to tidy in html2markdown. This will
10029 perhaps help the parser, which expects closing tags.
10030 + Modified markdown2pdf to run pdflatex a second time if --toc or
10031 --table-of-contents was specified; otherwise the table of
10032 contents won't appear.
10033 + Modified markdown2pdf to print a helpful message if the 'ulem'
10034 LaTeX package is required and not found.
10036 * Changes to build process:
10038 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
10039 is now required.
10040 + Removed cabalize and Pandoc.cabal.in. The repository now contains
10041 pandoc.cabal itself.
10042 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
10043 likes the cabal file to have the same name as the tarball.
10044 + Expanded and revised the package description in pandoc.cabal.
10045 Revised the package synopsis.
10046 + The tarball built by 'make tarball' now contains files built from
10047 templates (including man pages and shell scripts), so pandoc can
10048 be built directly using Cabal tools, without preprocessing.
10049 + Executable binaries are now stripped before installing.
10050 + Man pages are now generated from markdown sources, using pandoc's
10051 man page writer.
10052 + Use HTML version of README (instead of RTF) in Mac OS X installer.
10053 + Instead of testing for the existence of a pandoc symlink in build-exec,
10054 use ln -f.
10056 * Documentation:
10058 + Updated README and man pages with information on new features.
10059 + Updated INSTALL instructions with some useful clarifications and
10060 links.
10061 + Updated web content.
10063 * Added FreeBSD port.
10065 [ Recai Oktaş ]
10067 * debian/control:
10069 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
10070 libghc6-xhtml-dev. Removed libghc6-html-dev.
10071 + Suggest texlive-latex-recommended | tetex-extra instead of
10072 tetex-bin. This brings in fancyvrb and unicode support.
10074 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
10076pandoc (0.3) unstable; urgency=low
10078 [ John MacFarlane ]
10080 * Changes in pandoc options:
10082 + Allow options to follow or precede arguments.
10083 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
10084 + Added '--strict' option.
10085 + Added '-o/--output' option.
10086 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
10087 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
10088 error conditions. This is helpful for writing wrappers.
10089 + Added copyright message to '-v' output, modeled after FSF messages.
10090 + Reformatted usage message so that it doesn't wrap illegibly.
10091 + Removed extra blanks after '-h' and '-D' output.
10093 * Added docbook writer.
10095 * Added implicit setting of default input and output format based
10096 on input and output filename extensions. These defaults are
10097 overridden if explicit input and output formats are specified using
10098 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
10099 and README.
10101 * Allow ordered list items to begin with (single) letters, as well
10102 as numbers. The list item marker may now be terminated either by
10103 '.' or by ')'. This extension to standard markdown is documented
10104 in README.
10106 * Revised footnote syntax. (See README for full details.) The
10107 '[^1]' format now standard in markdown extensions is supported,
10108 as are inline footnotes with this syntax: '^[My note.]'.
10109 The earlier footnote syntax '^(1)' is no longer supported.
10111 * Improved HTML representation of footnotes. All footnotes
10112 are now auto-numbered and appear in an ordered list at the
10113 end of the HTML document. Since the default appearance is now
10114 acceptable, the old footnote styles have been removed from the
10115 HTML header.
10117 * Bug fixes:
10119 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
10120 These readers ran 'runParser' on processed chunks of text to handle
10121 embedded block lists in lists and quotation blocks. But then
10122 any changes made to the parser state in these chunks was lost,
10123 as the state is local to the parser. So, for example, footnotes
10124 didn't work in quotes or list items. The fix: instead of calling
10125 runParser on some raw text, use setInput to make it the input, then
10126 parse it, then use setInput to restore the input to what it was
10127 before. This is shorter and more elegant, and it fixes the problem.
10128 + Fixed bug in notFollowedBy' combinator (adding 'try' before
10129 'parser'). Adjusted code that uses this combinator accordingly.
10130 + Fixed bug in RTF writer that caused improper indentation on
10131 footnotes occurring in indented blocks like lists.
10132 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
10133 and date are parsed correctly. Everything else in the preamble
10134 is skipped.
10135 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
10136 line to count as escaped whitespace.
10137 + Modified LaTeX reader to produce inline links rather than reference
10138 links. Otherwise, links in footnotes aren't handled properly.
10139 + Fixed handling of titles in links in Markdown reader, so that
10140 embedded quotation marks are now handled properly.
10141 + Fixed Markdown reader's handling of embedded brackets in links.
10142 + Fixed Markdown reader so that it only parses bracketed material
10143 as a reference link if there is actually a corresponding key.
10144 + Revised inline code parsing in Markdown reader to conform to
10145 markdown standard. Now any number of `s can begin inline code,
10146 which will end with the same number of `s. For example, to
10147 have two backticks as code, write ``` `` ```. Modified Markdown
10148 writer accordingly.
10149 + Fixed bug in text-wrapping routine in Markdown and RST writers.
10150 Now LineBreaks no longer cause wrapping problems.
10151 + Supported hexadecimal numerical entity references as well as
10152 decimal ones.
10153 + Fixed bug in Markdown reader's handling of underscores and other
10154 inline formatting markers inside reference labels: for example,
10155 in '[A_B]: /url/a_b', the material between underscores was being
10156 parsed as emphasized inlines.
10157 + Changed Markdown reader's handling of backslash escapes so that
10158 only non-alphanumeric characters can be escaped. Strict mode
10159 follows Markdown.pl in only allowing a select group of punctuation
10160 characters to be escaped.
10161 + Modified HTML reader to skip a newline following a `<br>` tag.
10162 Otherwise the newline will be treated as a space at the beginning
10163 of the next line.
10165 * Made handling of code blocks more consistent. Previously, some
10166 readers allowed trailing newlines, while others stripped them.
10167 Now, all readers strip trailing newlines in code blocks. Writers
10168 insert a newline at the end of code blocks as needed.
10170 * Modified readers to make spacing at the end of output more consistent.
10172 * Minor improvements to LaTeX reader:
10174 + '\thanks' now treated like a footnote.
10175 + Simplified parsing of LaTeX command arguments and options.
10176 commandArgs now returns a list of arguments OR options (in
10177 whatever order they appear). The brackets are included, and
10178 a new stripFirstAndLast function is provided to strip them off
10179 when needed. This fixes a problem in dealing with \newcommand
10180 and \newenvironment.
10182 * Revised RTF writer:
10184 + Default font is now Helvetica.
10185 + An '\f0' is added to each '\pard', so that font resizing works
10186 correctly.
10188 * Moved handling of "smart typography" from the writers to the Markdown
10189 and LaTeX readers. This allows great simplification of the writers
10190 and more accurate smart quotes, dashes, and ellipses. DocBook can
10191 now use `<quote>`. The '--smart' option now toggles an option in
10192 the parser state rather than a writer option. Several new kinds
10193 of inline elements have been added: Quoted, Ellipses, Apostrophe,
10194 EmDash, EnDash.
10196 * Changes in HTML writer:
10198 + Include title block in header even when title is null.
10199 + Made javascript obfuscation of emails even more obfuscatory,
10200 by combining it with entity obfuscation.
10202 * Changed default ASCIIMathML text color to black.
10204 * Test suite:
10206 + Added --strip-trailing-cr option to diff in runtests.pl, for
10207 compatibility with Windows.
10208 + Added regression tests with footnotes in quote blocks and lists.
10210 * Makefile changes:
10212 + osx-pkg target creates a Mac OS X package (directory). New osx
10213 directory contains files needed for construction of the package.
10214 + osx-dmg target creates a compressed disk image containing the package.
10215 + win-pkg target creates Windows binary package.
10216 + tarball target creates distribution source tarball.
10217 + website target generates pandoc's website automatically, including
10218 demos. New 'web' directory containts files needed for construction
10219 of the website (which will be created as the 'pandoc' subdirectory
10220 of 'web').
10221 + Makefile checks to see if we're running Windows/Cygwin; if so,
10222 a '.exe' extension is added to each executable in EXECS.
10224 * Removed all wrappers except markdown2pdf and html2markdown.
10226 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
10227 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
10228 option and disables other options.
10230 * Added code to html2markdown that tries to determine the character
10231 encoding of an HTML file, by parsing the "Content-type" meta tag.
10233 + If the encoding can't be determined, then if the content is local,
10234 the local encoding is used; if it comes from a URL, UTF-8 is used
10235 by default.
10236 + If input is from STDIN, don't try to determine character encoding.
10237 + Encoding can be specified explicitly using '-e' option.
10239 * Improved warning messages in wrappers:
10241 + Print warning if iconv not available
10242 + More user-friendly error messages in markdown2pdf, when
10243 pdflatex fails.
10245 * Code cleanup:
10247 + Renamed 'Text/Pandoc/HtmlEntities' module to
10248 'Text/Pandoc/Entities'. Also changed function names so as
10249 not to be HTML-specific.
10250 + Refactored SGML string escaping functions from HTML and Docbook
10251 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
10252 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
10253 used anywhere.
10254 + Removed splitBySpace and replaced it with a general, polymorphic
10255 splitBy function.
10256 + Refactored LaTeX reader for clarity (added isArg function).
10257 + Converted some CR's to LF's in src/ui/default/print.css.
10258 + Added license text to top of source files.
10259 + Added module data for haddock to source files.
10260 + Reformatted code for consistency.
10262 * Rewrote documentation and man pages. Split README into INSTALL
10263 and README.
10265 * Split LICENSE into COPYING and COPYRIGHT.
10267 * Removed TODO, since we now maintain ToDo on the wiki.
10269 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
10270 duplication.
10272 [ Recai Oktaş ]
10274 * Revamped build process to conform to debian standards and created
10275 a proper debian package. Closes: #391666.
10277 * Modified build process to support GHC 6.6.
10279 + The package can still be compiled using GHC 6.4.2, though because
10280 of dependencies the "make deb" target works only with GHC 6.6+.
10281 + The script 'cabalize' is used to create an appropriate
10282 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
10283 Cabal versions.
10285 * Refactored template processing (fillTemplates.pl).
10287 * Modified wrapper scripts to make them more robust and portable.
10288 To avoid code duplication and ensure consistency, wrappers are
10289 generated via a templating system from templates in src/wrappers.
10291 + Wrappers now accept multiple filenames, when appropriate.
10292 + Spaces and tabs allowed in filenames.
10293 + getopts shell builtin is used for portable option parsing.
10294 + Improved html2markdown's web grabber code, making it more robust,
10295 configurable and verbose. Added '-e', '-g' options.
10297 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
10299pandoc (0.2) unstable; urgency=low
10301 * Fixed unicode/utf-8 translation
10303 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
10305pandoc (0.1) unstable; urgency=low
10307 * Initial creation of debian package
10309 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400