git.iko.soy/typeable/pandoc
on free help sign in
typeable/pandoc/changelog
10486 lines 444 kB history raw
1pandoc (1.18)
3 * Added `--list-input-formats`, `--list-output-formats`,
4 `--list-extensions`, `--list-highlight-languages`, and
5 `--list-highlight-styles` (#3173). Removed list of highlighting
6 languages from `--version` output. Removed list of input and output
7 formats from default `--help` output.
9 * Added `--reference-location=block|section|document` option
10 (Jesse Rosenthal). This determines whether Markdown link references
11 and footnotes are placed at the end of the document, the end of the
12 section, or the end of the top-level block.
14 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
15 This determines what a level-1 header corresponds to in LaTeX,
16 ConTeXt, DocBook, and TEI output. The default is `section`.
17 The `--chapters` option has been deprecated in favor of
18 `--top-level-division=chapter`.
20 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
21 is now used in parsing RST and Markdown line blocks, DocBook
22 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
23 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
24 are handled specially in the following ouput formats: AsciiDoc
25 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
26 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
27 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
28 other output formats, a paragraph with hard linebreaks is emitted.
30 * Allow binary formats to be written to stdout (but not to tty) (#2677).
31 Only works on posix, since we use the unix library to check whether
32 output is to tty. On Windows, pandoc works as before and always requires
33 an output file parameter for binary formats.
35 * Changed JSON output format (Jesse Rosenthal). Previously we used
36 generically generated JSON, but this was subject to change depending
37 on the version of aeson pandoc was compiled with. To ensure stability,
38 we switched to using manually written ToJSON and FromJSON
39 instances, and encoding the API version. **Note:** pandoc filter
40 libraries will need to be revised to handle the format change.
41 Here is a summary of the essential changes:
43 + The toplevel JSON format is now `{"pandoc-api-version" :
44 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
45 instead of `[{"unMeta": META}, [BLOCKS]]`.
46 Decoding fails if the major and minor version numbers don't
47 match.
48 + Leaf nodes no longer have an empty array for their "c" value.
49 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
50 rather than `{"t":"Space","c":[]}` as before.
52 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
53 module to pandoc-types (Jesse Rosenthal). This makes it easier
54 to use QuickCheck with pandoc types outside of pandoc itself.
56 * Add `bracketed_spans` Markdown extension, enabled by default
57 in pandoc `markdown`. This allows you to create a native span
58 using this syntax: `[Here is my span]{#id .class key="val"}`.
60 * Added `angle_brackets_escapable` Markdown extension (#2846).
61 This is needed because github flavored Markdown has a slightly
62 different set of escapable symbols than original Markdown;
63 it includes angle brackets.
65 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
67 * Print highlighting-kate version in `--version`.
69 * `Text.Pandoc.Options`:
71 + `Extension` has new constructors `Ext_brackted_spans` and
72 `Ext_angle_brackets_escapable` [API change].
73 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
74 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
75 Rosenthal).
77 * `--filter`: we now check `$DATADIR/filters` for filters before
78 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
79 Voß for the idea). Filters placed in this directory need not
80 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
81 or `.rb`, pandoc will run the right interpreter.
83 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
84 default (Kolen Cheung).
86 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
88 * Execute .js filters with node (Jakob Voß).
90 * Textile reader:
92 + Support `bc..` extended code blocks (#3037). Also, remove trailing
93 newline in code blocks (consistently with Markdown reader).
94 + Improve table parsing. We now handle cell and row attributes, mostly
95 by skipping them. However, alignments are now handled properly.
96 Since in pandoc alignment is per-column, not per-cell, we
97 try to devine column alignments from cell alignments.
98 Table captions are also now parsed, and textile indicators
99 for thead and tfoot no longer cause parse failure. (However,
100 a row designated as tfoot will just be a regular row in pandoc.)
101 + Improve definition list parsing. We now allow multiple terms
102 (which we concatenate with linebreaks). An exponential parsing
103 bug (#3020) is also fixed.
104 + Disallow empty URL in explicit link (#3036).
106 * RST reader:
108 + Use Div instead of BlockQuote for admonitions (#3031).
109 The Div has class `admonition` and (if relevant) one of the
110 following: `attention`, `caution`, `danger`, `error`, `hint`,
111 `important`, `note`, `tip`, `warning`. **Note:** This will change
112 the rendering of some RST documents! The word ("Warning", "Attention",
113 etc.) is no longer added; that must be done with CSS or a filter.
114 + A Div is now used for `sidebar` as well.
115 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
116 space before a footnote marker. We discard those spaces so that footnotes
117 will be adjacent to the text that comes before it. This is in line with
118 what rst2latex does.
119 + Allow empty lines when parsing line blocks (Albert Krewinkel).
121 * Markdown reader:
123 + Allow empty lines when parsing line blocks (Albert Krewinkel).
124 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
126 * LaTeX reader:
128 + More robust parsing of unknown environments (#3026).
129 We no longer fail on things like `^` inside options for tikz.
130 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
131 Some custom environments give these a meaning, so we should try not to
132 fall over when we encounter them.
133 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
135 * MediaWiki reader:
137 + Fix for unquoted attribute values in mediawiki tables (#3053).
138 Previously an unquoted attribute value in a table row
139 could cause parsing problems.
140 + Improved treatment of verbatim constructions (#3055).
141 Previously these yielded strings of alternating Code and Space
142 elements; we now incorporate the spaces into the Code. Emphasis
143 etc. is still possible inside these.
144 + Properly interpret XML tags in pre environments (#3042). They are meant
145 to be interpreted as literal text.
147 * EPUB reader: don't add root path to data: URIs (#3150).
148 Thanks to @lep for the bug report and patch.
150 * Org reader (Albert Krewinkel):
152 + Preserve indentation of verse lines (#3064). Leading spaces in verse
153 lines are converted to non-breaking spaces, so indentation is preserved.
154 + Ensure image sources are proper links. Image sources as those in plain
155 images, image links, or figures, must be proper URIs or relative file
156 paths to be recognized as images. This restriction is now enforced
157 for all image sources. This also fixes the reader's usage of uncleaned
158 image sources, leading to `file:` prefixes not being deleted from
159 figure images. Thanks to @bsag for noticing this bug.
160 + Trim verse lines properly (Albert Krewinkel).
161 + Extract meta parsing code to module. Parsing of meta-data is well
162 separable from other block parsing tasks. Moving into new module to
163 get small files and clearly arranged code.
164 + Read markup only for special meta keys. Most meta-keys should be read
165 as normal string values, only a few are interpreted as marked-up text.
166 + Allow multiple, comma-separated authors. Multiple authors can be
167 specified in the `#+AUTHOR` meta line if they are given as a
168 comma-separated list.
169 + Give precedence to later meta lines. The last meta-line of any given
170 type is the significant line. Previously the value of the first line
171 was kept, even if more lines of the same type were encounterd.
172 + Read LaTeX_header as header-includes. LaTeX-specific header commands
173 can be defined in `#+LaTeX_header` lines. They are parsed as
174 format-specific inlines to ensure that they will only show up in LaTeX
175 output.
176 + Set documentclass meta from LaTeX_class.
177 + Set classoption meta from LaTeX_class_options.
178 + Read HTML_head as header-includes. HTML-specific head content can be
179 defined in `#+HTML_head` lines. They are parsed as format-specific
180 inlines to ensure that they will only show up in HTML output.
181 + Respect `author` export option. The `author` option controls whether
182 the author should be included in the final markup. Setting
183 `#+OPTIONS: author:nil` will drop the author from the final meta-data
184 output.
185 + Respect `email` export option. The `email` option controls whether the
186 email meta-field should be included in the final markup. Setting
187 `#+OPTIONS: email:nil` will drop the email field from the final
188 meta-data output.
189 + Respect `creator` export option. The `creator` option controls whether
190 the creator meta-field should be included in the final markup. Setting
191 `#+OPTIONS: creator:nil` will drop the creator field from the final
192 meta-data output. Org-mode recognizes the special value `comment` for
193 this field, causing the creator to be included in a comment. This is
194 difficult to translate to Pandoc internals and is hence interpreted the
195 same as other truish values (i.e. the meta field is kept if it's
196 present).
197 + Respect unnumbered header property (#3095). Sections the `unnumbered`
198 property should, as the name implies, be excluded from the automatic
199 numbering of section provided by some output formats. The Pandoc
200 convention for this is to add an "unnumbered" class to the header. The
201 reader treats properties as key-value pairs per default, so a special
202 case is added to translate the above property to a class instead.
203 + Allow figure with empty caption (Albert Krewinkel, #3161).
204 A `#+CAPTION` attribute before an image is enough to turn an image into
205 a figure. This wasn't the case because the `parseFromString` function,
206 which processes the caption value, would fail on empty values. Adding
207 a newline character to the caption value fixes this.
209 * Docx reader:
211 + Use XML convenience functions (Jesse Rosenthal).
212 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
213 the code a lot cleaner than the original XML.Light functions, but they
214 had been used inconsistently. This puts them in wherever applicable.
215 + Handle anchor spans with content in headers. Previously, we would only
216 be able to figure out internal links to a header in a docx if the
217 anchor span was empty. We change that to read the inlines out of the
218 first anchor span in a header.
219 + Let headers use exisiting id. Previously we always generated an id for
220 headers (since they wouldn't bring one from Docx). Now we let it use an
221 existing one if possible. This should allow us to recurs through anchor
222 spans.
223 + Use all anchor spans for header ids. Previously we only used the first
224 anchor span to affect header ids. This allows us to use all the anchor
225 spans in a header, whether they're nested or not (#3088).
226 + Test for nested anchor spans in header. This ensures that anchor spans
227 in header with content (or with other anchor spans inside) will resolve
228 to links to a header id properly.
230 * ODT reader (Hubert Plociniczak)
232 + Include list's starting value. Previously the starting value of
233 the lists' items has been hardcoded to 1. In reality ODT's list
234 style definition can provide a new starting value in one of its
235 attributes.
236 + Infer caption from the text following the image.
237 Frame can contain other frames with the text boxes.
238 + Add `fig:` to title for Image with a caption (as expected
239 by pandoc's writers).
240 + Basic support for images in ODT documents.
241 + Don't duplicate text for anchors (#3143). When creating an anchor
242 element we were adding its representation as well as the original
243 content, leading to text duplication.
245 * DocBook writer:
247 + Include an anchor element when a div or span has an id (#3102).
248 Note that DocBook does not have a class attribute, but at least this
249 provides an anchor for internal links.
251 * LaTeX writer:
253 + Don't use * for unnumbered paragraph, subparagraph. The starred
254 variants don't exist. This helps with part of #3058...it gets rid of
255 the spurious `*`s. But we still have numbers on the 4th and 5th level
256 headers.
257 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
258 Otherwise they can cause unintended ligatures like `` ?` ``.
259 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
260 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
261 This allows figure placement defaults to be changed by the user
262 in the template.
264 * HTML writer (slide show formats): In slide shows, don't change slide title
265 to level 1 header (#2221).
267 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
268 TEI doesn't have `<book>` elements but only generic `<divN>` division
269 elements. Checking the template for a trailing `</book>` is nonsensical.
271 * MediaWiki writer: transform filename with underscores in images (#3052).
272 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
273 for internal links, but it also needs to happen for images.
275 * ICML writer: replace partial function (!!) in table handling (#3175,
276 Mauro Bieg).
278 * Man writer: allow section numbers that are not a single digit (#3089).
280 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
281 (#3068). In AsciiDoc, you must use a special form of emphasis
282 (double `__`) for intraword emphasis. Pandoc was previously using
283 this more than necessary.
285 * EPUB writer: use stringify instead of plain writer for metadata
286 (#3066). This means that underscores won't be used for emphasis,
287 or CAPS for bold. The metadata fields will just have unadorned
288 text.
290 * Docx Writer:
292 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
293 with a `custom-style` key in the attributes will apply the corresponding
294 key to the contained blocks or inlines.
295 + Add ReaderT env to the docx writer (Jesse Rosenthal).
296 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
297 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
298 on the command line. For finer-grained control, you can set
299 the `dir` attribute in Div or Span elements.
301 * Org writer (Albert Krewinkel):
303 + Remove blank line after figure caption. Org-mode only treats an image
304 as a figure if it is directly preceded by a caption.
305 + Ensure blank line after figure. An Org-mode figure should be surrounded
306 by blank lines. The figure would be recognized regardless, but images
307 in the following line would unintentionally be treated as figures as
308 well.
309 + Ensure link targets are paths or URLs. Org-mode treats links as
310 document internal searches unless the link target looks like a URL or
311 file path, either relative or absolute. This change ensures that this
312 is always the case.
313 + Translate language identifiers. Pandoc and Org-mode use different
314 programming language identifiers. An additional translation between
315 those identifiers is added to avoid unexpected behavior. This fixes a
316 problem where language specific source code would sometimes be output
317 as example code.
318 + Drop space before footnote markers (Albert Krewinkel, #3162).
319 The writer no longer adds an extra space before footnote markers.
321 * Markdown writer:
323 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
324 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
325 is disabled.
326 + Check for the `raw_html` extension before emiting a raw HTML block.
327 + Abstract out note/ref function (Jesse Rosenthal).
328 + Add ReaderT monad for environment variables (Jesse Rosenthal).
330 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
331 subtitle, author, date (#3119). Note that, as a result of this change,
332 authors may need to update CSS.
334 * revealjs template: Added `notes-server` option
335 (jgm/pandoc-templates#212, Yoan Blanc).
337 * Beamer template:
339 + Restore whitespace between paragraphs. This was
340 a regression in the last release (jgm/pandoc-templates#207).
341 + Added `themeoptions` variable (Carsten Gips).
342 + Added `beamerarticle` variable. This causes the `beamerarticle`
343 package to be loaded in beamer, to produce an article from beamer
344 slides. (Carsten Gips)
345 + Added support for `fontfamilies` structured variable
346 (Artem Klevtsov).
347 + Added hypersetup options (Jake Zimmerman).
349 * LaTeX template:
351 + Added dummy definition for `\institute`.
352 This isn't a standard command, and we want to avoid a crash when
353 `institute` is used with the default template.
354 + Define default figure placement (Václav Haisman), since pandoc
355 no longer includes `[htbp]` for figures. Users with custom templates
356 will want to add this. See #3103.
357 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
358 Václav Haisman).
360 * Moved template compiling/rendering code to a separate library.
361 `doctemplates`. This allows the pandoc templating system to be
362 used independently.
364 * Text.Pandoc.Error: Fix out of index error in `handleError`
365 (Matthew Pickering). The fix is to not try to show the exact line when
366 it would cause an out-of-bounds error as a result of included files.
368 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
370 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
371 addresses. Technically `**@user` is a valid email address, but if we
372 allow things like this, we get bad results in markdown flavors
373 that autolink raw email addresses (see #2940). So we exclude a few
374 valid email addresses in order to avoid these more common bad cases.
376 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
377 emit the alt text, emphasized. This accords with what the ODT writer
378 currently does. The user will still get a warning about a nonexistent
379 image.
381 * Fix example in API documentation (#3176, Thomas Weißschuh).
383 * Tell where to get tarball in INSTALL (#3062).
385 * Rename README to MANUAL.txt and add GitHub-friendly README.md
386 (Albert Krewinkel, Kolen Cheung).
388 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
390 * MANUAL.txt:
392 + Put note on structured vars in separate paragraph (#2148, Albert
393 Krewinkel). Make it clearer that structured author variables require a
394 custom template
395 + Note that `--katex` works best with `html5` (#3077).
396 + Fix the LaTeX and EPUB links in manual (Morton Fox).
397 + Document `biblio-title` variable.
399 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
401 * Update KaTeX to v0.6.0 (Kolen Cheung).
403 * Allow latest dependencies.
405 * Use texmath 0.8.6.6 (#3040).
407 * Allow http-client 0.4.30, which is the version in stackage lts.
408 Previously we required 0.5.
409 Remove CPP conditionals for earlier versions.
411 * Remove support for GHC < 7.8 (Jesse Rosenthal).
413 + Remove Compat.Monoid.
414 + Remove an inline monad compatibility macro.
415 + Remove Text.Pandoc.Compat.Except.
416 + Remove directory compat.
417 + Change constraint on mtl.
418 + Remove unnecessary CPP condition in UTF8.
419 + Bump base lower bound to 4.7.
420 + Remove 7.6 build from .travis.yaml.
421 + Bump supported ghc version in CONTRIBUTING.md.
422 + Add note about GHC version support to INSTALL.
423 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
424 + Remove TagSoup compat.
425 + Add EOL note to time compat module. Because time 1.4 is a boot library
426 for GHC 7.8, we will support the compatibility module as long as we
427 support 7.8. But we should be clear about when we will no longer need
428 it.
429 + Remove blaze-html CPP conditional.
430 + Remove unnecessary CPP in custom Prelude.
432pandoc (1.17.2)
434 * Added Zim Wiki writer, template and tests. `zimwiki` is now
435 a valid output format. (Alex Ivkin)
437 * Changed email-obfuscation default to no obfuscation (#2988).
438 + `writerEmailObfuscation` in `defaultWriterOptions` is now
439 `NoObfuscation`.
440 + the default for the command-line `--email-obfuscation` option is
441 now `none`.
443 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
445 * Org writer:
447 + Support arbitrary raw inlines (Albert Krewinkel).
448 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
449 parlance) to be included as `@@format:raw foreign format text@@`.
450 + Improve Div handling (Albert Krewinkel). Div blocks handling is
451 changed to make the output look more like idiomatic org mode:
452 - Div-wrapped content is output as-is if the div's attribute is the
453 null attribute.
454 - Div containers with an id but neither classes nor key-value pairs
455 are unwrapped and the id is added as an anchor.
456 - Divs with classes associated with greater block elements are
457 wrapped in a `#+BEGIN`...`#+END` block.
458 - The old behavior for Divs with more complex attributes is kept.
460 * HTML writer:
462 + Better support for raw LaTeX environments (#2758).
463 Previously we just passed all raw TeX through when MathJax was used for
464 HTML math. This passed through too much. With this patch, only raw
465 LaTeX environments that MathJax can handle get passed through.
466 This patch also causes raw LaTeX environments to be treated
467 as math, when possible, with MathML and WebTeX output.
469 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
470 (#2993). Markdown line breaks involve a newline, and simple and pipe
471 tables can't contain one.
473 * Make --webtex work with the Markdown writer (#1177).
474 This is a convenient option for people using
475 websites whose Markdown flavors don't provide for math.
477 * Docx writer:
479 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
480 We treat display math like block quotes, and apply FirstParagraph style
481 to paragraphs that follow them. These can be styled as the user
482 wishes. (But, when the user is using indentation, this allows for
483 paragraphs to continue after display math without indentation.)
484 + Use actual creation time as doc prop (Jesse Rosenthal).
485 Previously, we had used the user-supplied date, if available, for Word's
486 document creation metadata. This could lead to weird results, as in
487 cases where the user post-dates a document (so the modification might be
488 prior to the creation). Here we use the actual computer time to set the
489 document creation.
491 * LaTeX writer:
493 + Don't URI-escape image source (#2825). Usually this is a local file,
494 and replacing spaces with `%20` ruins things.
495 + Allow 'standout' as a beamer frame option (#3007).
496 `## Slide title {.standout}`.
498 * RST reader: Fixed links with no explicit link text. The link
499 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
500 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
501 Closes Debian #828167 -- reported by Christian Heller.
503 * Textile reader:
505 + Fixed attributes (#2984). Attributes can't be followed by
506 a space. So, `_(class)emph_` but `_(noclass) emph_`.
507 + Fixed exponential parsing bug (#3020).
508 + Fix overly aggressive interpretation as images (#2998).
509 Spaces are not allowed in the image URL in textile.
511 * LaTeX reader:
513 + Fix `\cite` so it is a NormalCitation not AuthorInText.
514 + Strip off double quotes around image source if present (#2825).
515 Avoids interpreting these as part of the literal filename.
517 * Org reader:
519 + Add semicolon to list of special chars (Albert Krewinkel)
520 Semicolons are used as special characters in citations syntax. This
521 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
522 suffix]`. Previously, parsing would have failed unless there was a space
523 or other special character as the last <prefix> character.
524 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
525 A specification for an official Org-mode citation syntax was drafted by
526 Richard Lawrence and enhanced with the help of others on the orgmode
527 mailing list. Basic support for this citation style is added to the
528 reader.
529 + Support arbitrary raw inlines (Albert Krewinkel).
530 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
531 parlance) to be included as `@@format:raw foreign format text@@`.
532 + Remove partial functions (Albert Krewinkel, #2991).
533 Partial functions like `head` lead to avoidable errors and should be
534 avoided. They are replaced with total functions.
535 + Support figure labels (Albert Krewinkel, #2496, #2999).
536 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
537 respective image. This allows e.g. the LaTeX to add proper `\label`
538 markup.
539 + Improve tag and properties type safety (Albert Krewinkel).
540 Specific newtype definitions are used to replace stringly typing of tags
541 and properties. Type safety is increased while readability is improved.
542 + Parse as headlines, convert to blocks (Albert Krewinkel).
543 Emacs org-mode is based on outline-mode, which treats documents as trees
544 with headlines are nodes. The reader is refactored to parse into a
545 similar tree structure. This simplifies transformations acting on
546 document (sub-)trees.
547 * Refactor comment tree handling (Albert Krewinkel).
548 Comment trees were handled after parsing, as pattern matching on lists
549 is easier than matching on sequences. The new method of reading
550 documents as trees allows for more elegant subtree removal.
551 * Support archived trees export options (Albert Krewinkel).
552 Handling of archived trees can be modified using the `arch` option.
553 Archived trees are either dropped, exported completely, or collapsed to
554 include just the header when the `arch` option is nil, non-nil, or
555 `headline`, respectively.
556 * Put export setting parser into module (Albert Krewinkel).
557 Export option parsing is distinct enough from general block parsing to
558 justify putting it into a separate module.
559 * Support headline levels export setting (Albert Krewinkel).
560 The depths of headlines can be modified using the `H` option. Deeper
561 headlines will be converted to lists.
562 * Replace ugly code with view pattern (Albert Krewinkel).
563 Some less-than-smart code required a pragma switching of overlapping
564 pattern warnings in order to compile seamlessly. Using view patterns
565 makes the code easier to read and also doesn't require overlapping
566 pattern checks to be disabled.
567 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
568 Org rules for allowed characters before or after markup chars were not
569 checked for verbatim text. This resultet in wrong parsing outcomes of
570 if the verbatim text contained e.g. space enclosed markup characters as
571 part of the text (`=is_substr = True=`). Forcing the parser to update
572 the positions of allowed/forbidden markup border characters fixes this.
574 * LaTeX template: fix for obscure hyperref/xelatex issue.
575 Here's a minimal case:
577 \documentclass[]{article}
578 \usepackage{hyperref}
579 \begin{document}
580 \section{\%á}
581 \end{document}
583 Without this change, this fails on the second invocation of xelatex.
584 This affects inputs this like `# %á` with pdf output via xelatex.
586 * trypandoc: call results 'html' instead of 'result'.
587 This is for better compatibility with babelmark2.
589 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
590 MultiMarkdown was only mentioned as a supported Markdown dialect but not
591 as a possible input or output format. A brief mention is added
592 everywhere the other supported markdown dialects are mentioned.
594 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
595 Raw HTML is kept when the output format is Emacs Org mode.
597 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
599 * Text.Pandoc.Shared:
601 + Introduce blocksToInlines function (Jesse Rosenthal).
602 This is a lossy function for converting `[Block] -> [Inline]`. Its main
603 use, at the moment, is for docx comments, which can contain arbitrary
604 blocks (except for footnotes), but which will be converted to spans.
605 This is, at the moment, pretty useless for everything but the basic
606 `Para` and `Plain` comments. It can be improved, but the docx reader
607 should probably emit a warning if the comment contains more than this.
608 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
609 + Add further formats for `normalizeDate` (Jesse Rosenthal).
610 We want to avoid illegal dates -- in particular years with greater than
611 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
612 `%Y%m`, and finally `%Y`.
613 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
614 We only allow years between 1601 and 9999, inclusive. The ISO 8601
615 actually says that years are supposed to start with 1583, but MS Word
616 only allows 1601-9999. This should stop corrupted word files if the date
617 is out of that range, or is parsed incorrectly.
618 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
619 Previously we parsed a list of dates, took the first one, and then
620 tested its year range. That meant that if the first one failed, we
621 returned nothing, regardless of what the others did. Now we test for
622 sanity before running `msum` over the list of Maybe values. Anything
623 failing the test will be Nothing, so will not be a candidate.
625 * Docx reader:
627 + Add simple comment functionality. (Jesse Rosenthal).
628 This adds simple track-changes comment parsing to the docx reader. It is
629 turned on with `--track-changes=all`. All comments are converted to
630 inlines, which can list some information. In the future a warning will be
631 added for comments with formatting that seems like it will be excessively
632 denatured. Note that comments can extend across blocks. For that reason
633 there are two spans: `comment-start` and `comment-end`. `comment-start`
634 will contain the comment. `comment-end` will always be empty. The two
635 will be associated by a numeric id.
636 + Enable warnings in top-level reader (Jesse Rosenthal).
637 Previously we had only allowed for warnings in the parser. Now we allow
638 for them in the `Docx.hs` as well. The warnings are simply concatenated.
639 + Add warning for advanced comment formatting. (Jesse Rosenthal).
640 We can't guarantee we'll convert every comment correctly, though we'll
641 do the best we can. This warns if the comment includes something other
642 than Para or Plain.
643 + Add tests for warnings. (Jesse Rosenthal).
644 + Add tests for comments (Jesse Rosenthal).
645 We test for comments, using all track-changes options. Note that we
646 should only output comments if `--track-changes=all`. We also test for
647 emitting warnings if there is complicated formatting.
649 * README: update to include track-changes comments. (Jesse Rosenthal)
651 * Improved Windows installer - don't ignore properties set on command-line.
652 See #2708. Needs testing to see if this resolves the issue.
653 Thanks to @nkalvi.
655 * Process markdown extensions on command line in L->R order (#2995).
656 Previously they were processed, very unintuitively, in R->L
657 order, so that `markdown-tex_math_dollars+tex_math_dollars`
658 had `tex_math_dollars` disabled.
660 * Added `secnumdepth` variable to LaTeX template (#2920).
662 * Include table of contents in README.html in Windows package.
664 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
665 In Writers.Shared, we strip leading and trailing spaces for display
666 math. Since SoftBreak's are treated as spaces, we should strip those
667 too.
669 * beamer, latex templates: pass biblatexoptions directly in package load.
670 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
672 * CPP workaround for deprecation of `parseUrl` in http-client.
674 * Removed some redundant class constraints.
676 * make_oxs_package.sh - use OSX env variable.
678 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
679 old installing page from website.
681 * Added `winpkg` target to Makefile. This downloads the windows package
682 from appveyor and signs it using the key.
684 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
685 Raw TeX is kept verbatim when the output format is Emacs Org mode.
687 * Support math with haddock-library >= 1.4.
689 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
690 wouldn't accept the package.
692 * Update library dependency versions.
694pandoc (1.17.1)
696 * New output format: `docbook5` (Ivo Clarysse).
698 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
699 (API change).
701 * Org writer:
703 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
704 This allows header attributes to be added to org documents in the form
705 of `:PROPERTIES:` drawers. All available attributes are stored as
706 key/value pairs. This reflects the way the org reader handles
707 `:PROPERTIES:` blocks.
708 + Add drawer capability (Carlos Sosa). For the implementation of the
709 Drawer element in the Org Writer, we make use of a generic Block
710 container with attributes. The presence of a `drawer` class defines
711 that the `Div` constructor is a drawer. The first class defines the
712 drawer name to use. The key-value list in the attributes defines
713 the keys to add inside the Drawer. Lastly, the list of Block elements
714 contains miscellaneous blocks elements to add inside of the Drawer.
715 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
716 reserved for internal use by Org-mode and should not be used.
717 The `CUSTOM_ID` property is to be used instead, it is converted to the
718 `ID` property for certain export format.
720 * LaTeX writer:
722 + Ignore `--incremental` unless output format is beamer (#2843).
723 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
724 Allow for optional argument in square brackets.
725 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
726 This allows one to access the hyphenation patterns in CTAN's
727 hyph-utf8.
728 + Add missing languages from hyph-utf8 (Andrew Dunning).
729 + Improve use of `\strut` with `\minipage` inside tables
730 (Jose Luis Duran). This improves spacing in multiline
731 tables.
732 + Use `{}` around options containing special chars (#2892).
733 + Avoid lazy `foldl`.
734 + Don't escape underscore in labels (#2921). Previously they were
735 escaped as `ux5f`.
736 + brazilian -> brazil for polyglossia (#2953).
738 * HTML writer: Ensure mathjax link is added when math appears in footnote
739 (#2881). Previously if a document only had math in a footnote, the
740 MathJax link would not be added.
742 * EPUB writer: set `navpage` variable on nav page.
743 This allows templates to treat it differently.
745 * DocBook writer:
747 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
748 + Properly handle `ulink`/`link` (Ivo Clarysse).
750 * EPUB reader:
752 + Unescape URIs in spine (#2924).
753 + EPUB reader: normalise link id (Mauro Bieg).
755 * Docx Reader:
757 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
758 `moveTo` and `moveFrom` are track-changes tags that are used when a
759 block of text is moved in the document. We now recognize these tags and
760 treat them the same as `insert` and `delete`, respectively. So,
761 `--track-changes=accept` will show the moved version, while
762 `--track-changes=reject` will show the original version.
763 + Tests for track-changes moving (Jesse Rosenthal).
765 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
766 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
767 would error out if zip-archive failed. We change the archive extraction
768 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
770 * Markdown, HTML readers: be more forgiving about unescaped `&` in
771 HTML (#2410). We are now more forgiving about parsing invalid HTML with
772 unescaped `&` as raw HTML. (Previously any unescaped `&`
773 would cause pandoc not to recognize the string as raw HTML.)
775 * Markdown reader:
777 + Added bracket syntax for native spans (#168).
778 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
779 + Added `-s` to markdown-reader-more test.
781 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
782 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
784 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
785 (roblabla).
787 * RST reader: Support `:class:` option for code block in RST reader
788 (Sidharth Kapur).
790 * Org reader (all Albert Krewinkel, except where noted otherwise):
792 + Stop padding short table rows.
793 Emacs Org-mode doesn't add any padding to table rows. The first
794 row (header or first body row) is used to determine the column count,
795 no other magic is performed.
796 + Refactor rows-to-table conversion. This refactors
797 the codes conversing a list table lines to an org table ADT.
798 The old code was simplified and is now slightly less ugly.
799 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
800 This fixes Org mode parsing of some corner cases regarding empty cells
801 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
802 two empty cells, but would be parsed as a single cell containing a pipe
803 character. Empty rows where parsed as alignment rows and dropped from
804 the output.
805 + Fix spacing after LaTeX-style symbols.
806 The org-reader was droping space after unescaped LaTeX-style symbol
807 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
808 instead. This seems to be because the LaTeX-reader treats the
809 command-terminating space as part of the command. Dropping the trailing
810 space from the symbol-command fixes this issue.
811 + Print empty table rows. Empty table rows should not
812 be dropped from the output, so row-height is always set to be at least 1.
813 + Move parser state into separate module.
814 The org reader code has become large and confusing. Extracting smaller
815 parts into submodules should help to clean things up.
816 + Add support for sub/superscript export options.
817 Org-mode allows to specify export settings via `#+OPTIONS` lines.
818 Disabling simple sub- and superscripts is one of these export options,
819 this options is now supported.
820 + Support special strings export option Parsing of special strings
821 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
822 option.
823 + Support emphasized text export option. Parsing of emphasized text can
824 be toggled using the `*` option. This influences parsing of text marked
825 as emphasized, strong, strikeout, and underline. Parsing of inline math,
826 code, and verbatim text is not affected by this option.
827 + Support smart quotes export option. Reading of smart quotes can be
828 toggled using the `'` option.
829 + Parse but ignore export options. All known export options are parsed
830 but ignored.
831 + Refactor block attribute handling. A parser state attribute was used
832 to keep track of block attributes defined in meta-lines. Global state
833 is undesirable, so block attributes are no longer saved as part of the
834 parser state. Old functions and the respective part of the parser state
835 are removed.
836 + Use custom `anyLine`. Additional state changes need to be made after
837 a newline is parsed, otherwise markup may not be recognized correctly.
838 This fixes a bug where markup after certain block-types would not be
839 recognized.
840 + Add support for `ATTR_HTML` attributes (#1906).
841 Arbitrary key-value pairs can be added to some block types using a
842 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
843 when exporting to HTML, but since we cannot make this distinction here,
844 the attributes are always added. The functionality is now supported
845 for figures.
846 + Add `:PROPERTIES:` drawer support (#1877).
847 Headers can have optional `:PROPERTIES:` drawers associated with them.
848 These drawers contain key/value pairs like the header's `id`. The
849 reader adds all listed pairs to the header's attributes; `id` and
850 `class` attributes are handled specially to match the way `Attr` are
851 defined. This also changes behavior of how drawers of unknown type
852 are handled. Instead of including all unknown drawers, those are not
853 read/exported, thereby matching current Emacs behavior.
854 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
855 + Respect drawer export setting. The `d` export option can be used
856 to control which drawers are exported and which are discarded.
857 Basic support for this option is added here.
858 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
859 Also fix up tab handling for leading whitespace in code blocks.
860 + Support new syntax for export blocks. Org-mode version 9
861 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
862 where `<FORMAT>` is the format of the block's content, the new
863 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
864 supported.
865 + Refactor `BEGIN...END` block parsing.
866 + Fix handling of whitespace in blocks, allowing content to be indented
867 less then the block header.
868 + Support org-ref style citations. The *org-ref* package is an
869 org-mode extension commonly used to manage citations in org
870 documents. Basic support for the `cite:citeKey` and
871 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
872 + Split code into separate modules, making for cleaner code and
873 better decoupling.
875 * Added `docbook5` template.
877 * `--mathjax` improvements:
879 + Use new CommonHTML output for MathJax (updated default MathJax URL,
880 #2858).
881 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
882 This is designed for cases where the input is always TeX and maximal
883 conformity with TeX is desired. It seems to be smaller and load faster
884 than what we used before. See #2858.
885 + Load the full MathJax config to maximize loading speed (KolenCheung).
887 * Bumped upper version bounds to allow use of latest packages
888 and compilation with ghc 8.
890 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
891 #2310, #2310, #2824). This fixes behavior of roots, e.g.
892 `\sqrt[3]{x}`, and issues with sub/superscript positioning
893 and matrix column alignment in docx.
895 * README:
897 + Clarified documentation of `implicit_header_references` (#2904).
898 + Improved documentation of `--columns` option.
900 * Added appveyor setup, with artefacts (Jan Schulz).
902 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
904 * LaTeX template: support for custom font families (vladipus).
905 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
906 can find some other usages. Example usage in YAML metadata:
908 fontfamilies:
909 - name: \cyrillicfont
910 font: Liberation Serif
911 - name: \cyrillicfonttt
912 options: Scale=MatchLowercase
913 font: Liberation
915 * Create unsigned msi as build artifact in appveyor build.
917 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
919pandoc (1.17.0.3)
921 * LaTeX writer: Fixed position of label in figures (#2813).
922 Previously the label wasn't in the right place, and `\ref`
923 wouldn't work properly.
924 * Added .tei test files to pandoc.cabal so they'll be included
925 in tarball (#2811).
926 * Updated copyright dates.
928pandoc (1.17.0.2)
930 * Fixed serious regression in `htmlInBalanced`, which caused
931 newlines to be omitted in some raw HTML blocks in Markdown
932 (#2804).
934pandoc (1.17.0.1)
936 * File scope is no longer used when there are no input files (i.e.,
937 when input comes from stdin). Previously file scope was triggered
938 when the `json` reader was specified and input came from `stdin`,
939 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
940 thanks to Fedor Sheremetyev for calling the bug to our attention.)
941 * Improved documentation of templates (#2797).
943pandoc (1.17)
945 * Added `--file-scope` option (Jesse Rosenthal).
946 By default pandoc operates on multiple files by first concatenating
947 them (around extra line breaks) and then processing the joined file. So
948 it only parses a multi-file document at the document scope. This has the
949 benefit that footnotes and links can be in different files, but for
950 some purposes it is useful to parse the individual files first
951 and then combine their outputs (e.g. when the files use footnotes
952 or links with the same labels). The `--file-scope` option causes
953 pandoc to parse the files first, and then combine the parsed output,
954 instead of combining before parsing. `--file-scope` is selected
955 automatically for binary input files (which cannot be concatenated)
956 and for pandoc json.
958 * Add TEI Writer (Chris Forster) and `tei` output format.
960 * Added a general `ByteStringReader` with warnings, used by the docx
961 reader (API change, Jesse Rosenthal).
963 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
965 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
966 to `Set String.` This avoids performance problems in documents with
967 many identically named headers (API change, #2671).
969 * Removed `tex_math_single_backslash` from `markdown_github` options
970 (#2707).
972 * Make language extensions as well as full language names
973 trigger syntax highlighting. For example, `py` will now work as
974 well as `python` (jgm/highlighting-kate#83).
976 * Added `institute` variable to latex, beamer templates (Fraser
977 Tweedale, Josef Svenningsson).
979 * Docx reader (Jesse Rosenthal):
981 + Handle alternate content. Some word functions (especially graphics)
982 give various choices for content so there can be backwards compatibility.
983 + Don't turn numbered headers into lists.
984 + Docx Reader: Add state to the parser, for warnings
985 + Update feature checklist in source code.
986 + Get rid of `Modifiable` typeclass.
987 + Add tests for adjacent hyperlinks.
988 + Add a "Link" modifier to `Reducible`. We want to make sure that
989 links have their spaces removed, and are appropriately smushed
990 together (#2689).
992 * HTML reader:
994 + Fixed behavior of base tag (#2777).
995 If the base path does not end with slash, the last component
996 will be replaced. E.g. base = `http://example.com/foo`
997 combines with `bar.html` to give `http://example.com/bar.html`.
998 If the href begins with a slash, the whole path of the base
999 is replaced. E.g. base = `http://example.com/foo/` combines
1000 with `/bar.html` to give `http://example.com/bar.html`.
1001 + Rewrote `htmlInBalanced`. This version avoids an exponential
1002 performance problem with `<script>` tags, and it should be faster
1003 in general (#2730).
1004 + Properly handle an empty cell in a simple table (#2718).
1005 + Handle multiple `<meta>` tags with same name. Put them in a list
1006 in the metadata so they are all preserved, rather than (as before)
1007 throwing out all but one..
1009 * Markdown reader:
1011 + Improved pipe table parsing (#2765).
1012 + Allow `+` separators in pipe table cells. We already allowed
1013 them in the header, but not in the body rows, for some reason.
1014 This gives compatibility with org-mode tables.
1015 + Don't cross line boundary parsing pipe table row.
1016 Previously an Emph element could be parsed across the newline
1017 at the end of the pipe table row.
1018 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
1019 performance (#2730).
1020 + Fixed bug with smart quotes around tex math.
1022 * LaTeX reader:
1024 + Handle interior `$` characters in math (#2743). For example,
1025 `$$\hbox{$i$}$$`.
1026 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
1027 This gives better results when people write e.g. `\TeX{}` in Markdown.
1028 + Properly handle LaTeX "math" environment as inline math (#2171).
1030 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
1031 Closes #2674.
1033 * Org reader (Albert Krewinkel):
1035 + Prefix even empty figure names with "fig:" (#2643). The
1036 convention used by pandoc for figures is to mark them by prefixing
1037 the name with `fig:`. The org reader failed to do this if a figure
1038 had no name.
1039 + Refactor link-target processing (#2684).
1041 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
1042 Thanks to @c-foster.
1044 * HTML writer: Don't include alignment attribute for default table columns.
1045 Previously these were given "left" alignment. Better to leave off
1046 alignment attributes altogether (#2694).
1048 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
1049 better compatibility with other Markdown flavors (Henrik Tramberend).
1051 * LaTeX writer:
1053 + Use image identifier to create a label and hypertarget for
1054 figures (Mauro Bieg).
1055 + Avoid double toprule in headerless table with caption (#2742).
1056 + Clean up options parser (Jesse Rosenthal).
1057 + Treat `memoir` template with `article` option as article, instead
1058 of treating all `memoir` templates as books.
1059 + Allow more flexible table alignment (Henrik Tramberend, #2665).
1060 New default is not to include `[c]` option (which is the default
1061 anyway if no positioning is specified). Now LaTeX emplates can
1062 control the overall table alignment in a document by setting the
1063 longtable length variables `LTleft` and `LTright`. For example,
1064 `\setlength\LTleft\parindent\setlength\LTright\fill`
1065 will create left-aligned tables that respect paragraph indentation.
1067 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
1069 * Org writer - pass through RawInline with format "org".
1071 * DokuWiki writer: use `$$` for display math.
1073 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
1075 * Make protocol-relative URIs work again (#2737).
1077 * make_osx_package.sh: Use env variable for developer id certs.
1079 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
1080 problems (#2734).
1082 * Allow `zip-archive` 0.3.
1084 * Allow `aeson` 0.11.
1086pandoc (1.16.0.2)
1088 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
1090 * Fixed regression in latex smart quote parsing (#2645).
1091 In cases where a match was not found for a quote, everything
1092 from the open quote to the end of the paragraph was being dropped.
1094pandoc (1.16.0.1)
1096 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
1097 raises an error if a full path is given.
1099 * Org reader: Fix function dropping subtrees tagged `:noexport`
1100 (Albert Krewinkel, #2628):
1102 * Markdown reader: renormalize table column widths if they exceed 100%
1103 (#2626).
1105 * Textile reader: don't allow block HTML tags in inline contexts.
1106 The reader previously did allow this, following redcloth,
1107 which happily parses
1109 Html blocks can be <div>inlined</div> as well.
1111 as
1113 <p>Html blocks can be <div>inlined</div> as well.</p>
1115 This is invalid HTML. The above sample now produces;
1117 <p>Html blocks can be</p>
1118 <div>
1119 <p>inlined</p>
1120 </div>
1121 <p>as well.</p>
1123 * Improved default template lookup for custom lua scripts (#2625).
1124 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
1125 pandoc would look for the template in
1126 `~/.pandoc/templates/default./path/to/lua/script.lua`.
1127 With this change it will look in the more reasonable
1128 `~/.pandoc/templates/default.script.lua`. This makes it possible to
1129 store default templates for custom writers.
1131 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
1132 (#2615).
1134 * LaTeX writer: restore old treatment of Span (#2624). A Span is
1135 now rendered with surrounding `{}`, as it was before 1.16.
1137 * Entity handling fixes: improved handling of entities like
1138 `&lang;` that require a trailing semicolon. Allow uppercase
1139 `x` in numerical hexidecimal character references, working
1140 around a tagsoup bug.
1142 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
1143 memory use on compile. With aeson 0.10 we were getting an out of
1144 memory error on a 2GB Ubuntu 64-bit VM.
1146 * Improved deb package creation script. Made `DPKGVER` work.
1147 Renamed `COMMIT` to `TREE`. You should now be able to do
1148 `TREE=1.16.0.1 DPKGVER=2 make deb`.
1151pandoc (1.16)
1153 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
1155 + Added syntax for link and image attributes to pandoc's Markdown.
1156 + Updated readers and writers to use link and image attributes
1157 when appropriate.
1158 + Support image attributes in Docx, Textile, RST readers.
1160 * Renamed link attribute extensions. The old `link_attributes` is
1161 now `mmd_link_attributes`, and `link_attributes` now enables the
1162 new pandoc-style link and image attributes (API change).
1163 Note: this change could break some existing workflows.
1165 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
1166 Added threefold wrapping option.
1168 + Command line option: deprecated `--no-wrap`, added
1169 `--wrap=[auto|none|preserve]`
1170 + Added `WrapOption`, exported from `Text.Pandoc.Options`
1171 + Changed type of `writerWrapText` in `WriterOptions` from
1172 `Bool` to `WrapOption`.
1173 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
1174 + Supported `SoftBreak` in readers and writers.
1176 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
1177 change, Mauro Bieg).
1179 * Added `--dpi` command-line option (Mauro Bieg).
1181 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
1182 This change makes `--no-tex-ligatures` affect the LaTeX reader
1183 as well as the LaTeX and ConTeXt writers. If it is used,
1184 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
1185 literally, rather than parsing ligatures for quotation marks
1186 and dashes. And the LaTeX writer will print unicode quotation
1187 mark and dash characters literally, rather than converting
1188 them to the standard ASCII ligatures. Note that `--smart` has
1189 no effect on the LaTeX reader. `--smart` is still the default
1190 for all input formats when LaTeX or ConTeXt is the output format,
1191 *unless* `--no-tex-ligatures` is used.
1193 Some examples to illustrate the logic:
1195 ```
1196 % echo "'hi'" | pandoc -t latex
1197 `hi'
1198 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
1199 'hi'
1200 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
1201 ‘hi’
1202 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
1203 <p>'hi'</p>
1204 % echo "'hi'" | pandoc -f latex
1205 <p>’hi’</p>
1206 ```
1208 * Removed deprecated options `--offline` and `--html5`.
1210 * Fixed language code for Czech (`cs` not `cz`) (#2597).
1212 * Implemented `east_asian_line_breaks` extension (#2586).
1213 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
1214 to `Extension` (API change). This extension is like
1215 `ignore_line_breaks`, but smarter -- it only ignores line breaks
1216 between two East Asian wide characters. This makes it better suited
1217 for writing with a mix of East Asian and non-East Asian scripts.
1219 * Added support for PDF creation via `wkhtmltopdf`.
1220 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
1221 if you have math.) Margins can be set using the variables
1222 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
1223 Other styling can be done through CSS.
1225 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
1226 We were capturing final colons as in `[@foo: bar]`; the citation id
1227 was being parsed as `@foo:`.
1229 * ICML writer:
1231 + Fixed image syntax for local files (#2589).
1232 + Changed type of `writeICML` (Mauro Bieg).
1233 API change: It is now `WriterOptions -> Pandoc -> IO String`.
1234 Also handle new image attributes.
1235 + Intersperse line breaks instead of appending them to
1236 every `ParagraphStyleRange` (Mauro Bieg, #2501).
1237 + Add `Cite` style to citations (Mauro Bieg).
1238 + Added figure handling (#2590, Mauro Bieg).
1239 + Better handling of math. Instead of just printing the raw tex,
1240 we now try to fake it with unicode characters.
1242 * HTML writer: Include `example` class for example lists (#2524).
1244 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
1246 + Support for percentage widths/heights
1247 + Use `Attr` instead of title to get dimensions from ODT walker
1248 to `writeOpenDocument`.
1250 * AsciiDoc writer:
1252 + Support anchors in spans and divs with id elements
1253 (jgm/pandoc-citeproc#143).
1254 + Fixed code blocks (#1861).
1256 * Haddock writer: omit formatting inside links, which isn't supported
1257 by Haddock (#2515).
1259 * MediaWiki writer: Fixed spacing issues in table cells.
1261 + Start cell on new line unless it's a single Para or Plain
1262 (#2606).
1263 + For single Para or Plain, insert a space after the `|` to
1264 avoid problems when the text begins with a character like
1265 `-` (#2604).
1267 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
1269 * LaTeX writer:
1271 + Add support for GAP highlighting using listings (Raniere Silva).
1272 + Consider `header-includes` content as well as templates
1273 when determining whether to use csquotes (Andreas Lööw).
1274 + Create defaults for geometry using `margin-left` etc.
1275 If `geometry` has no value, but `margin-left`, `margin-right`,
1276 `margin-top`, and/or `-margin-bottom` are given, a default value
1277 for `geometry` is created from these. Note that these variables
1278 already affect PDF production via HTML5 with `wkhtmltopdf`.
1280 * ConTeXt writer: set default layout based on `margin-left`, etc.
1281 This sets up `\setuplayout` based on the variables `margin-left`,
1282 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
1283 is given.
1285 * Docx writer: better handling of PDF images. Previously we tried
1286 to get the image size from the image even if an explicit size was
1287 specified. Since we still can't get image size for PDFs, this made
1288 it impossible to use PDF images in docx. Now we don't try to get
1289 the image size when a size is already explicitly specified.
1291 * Markdown writer: use raw HTML for link/image attributes when
1292 the `link_attributes` extension is unset and `raw_html` is set (#2554).
1294 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
1296 * LaTeX reader:
1298 + Improved smart quote parsing (#2555). This fixes redering of
1299 unmatched quotes.
1300 + Use curly quotes for unmatched ` (#2555).
1301 + Allow blank space between braced arguments of commands (#2592).
1303 * Markdown reader:
1305 + Improved pipe table relative widths. Previously pipe table
1306 columns got relative widths (based on the header underscore lines)
1307 when the source of one of the rows was greater in width than the
1308 column width. This gave bad results in some cases where much of
1309 the width of the row was due to nonprinting material (e.g. link
1310 URLs). Now pandoc only looks at printable width (the width of a
1311 plain string version of the source), which should give better results.
1312 Thanks to John Muccigrosso for bringing up the issue.
1313 + Fixed parsing bug with macros. Previously macro definitions in
1314 indented code blocks were being parsed as macro definitions, not code.
1316 * Textile reader: skip over attribute in image source (#2515).
1317 We don't have a place yet for styles or sizes on images, but
1318 we can skip the attributes rather than incorrectly taking them
1319 to be part of the filename.
1321 * Docx reader: Handle dummy list items (Jesse Rosenthal).
1322 These come up when people create a list item and then delete the
1323 bullet. It doesn't refer to any real list item, and we used to ignore
1324 it.
1326 * CommonMark reader/writer rewritten to use latest `cmark`.
1328 * Fixed Emoji character definitions (#2523). There were many bugs in the
1329 definitions.
1331 * `Text.Pandoc.CSS`:
1333 + Added `pickStylesToKVs` function to extract multiple properties at
1334 once (API change, Mauro Bieg).
1335 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
1337 * `trypandoc`: sort drop-down lists.
1339 * Beamer template:
1341 + Made `\euro` conditional on presence of character.
1342 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
1343 + Moved `header-includes` before setting of title (Thomas Hodgson),
1344 to match the LaTeX template (jgm/pandoc-templates#168).
1345 + Added `section-titles` variable (defaults to true)
1346 to enable/suppress section title pages in beamer
1347 slide shows (Thomas Hodgson).
1348 + Moved beamer themes after fonts, so that themes can
1349 change fonts. (Previously the fonts set were being
1350 clobbered by lmodern.sty.) (Thomas Hodgson).
1352 * Beamer/LaTeX template changes (Thomas Hodgson):
1353 + Added `thanks` variable
1354 + Use `parskip.sty` when `indent` isn't set (fall back to using
1355 `setlength` as before if `parskip.sty` isn't available).
1356 + Use `biblio-style` with biblatex.
1357 + Added `biblatexoptions` variable.
1359 * LaTeX template changes:
1361 + Added `paper` after `$papersize$` variable in latex template.
1362 Thus you can say `papersize: a4` and the latex will contain
1363 `a4paper`. This change may break some existing workflows; if
1364 you currently specify `a4paper`, you'll get `a4paperpaper` which
1365 is meaningless. However, the change seems worth it, as it will
1366 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
1367 and html->pdf via wkhtmltopdf.
1368 + Only pass options to color package if `colorlinks` is set
1369 (Andrew Dunning).
1370 + Make definition of `\euro` conditional in xelatex/lualatex,
1371 as it is already for pdflatex (Andrew Dunning).
1372 + Removed setting of `subject` in PDF metadata.
1373 This used to be set to the subtitle, but really the subtitle
1374 need not give the subject. Also, `subtitle` can contain formatting,
1375 so we'd need, at least, a plain text version for this.
1376 + Moved `header-includes` before setting of `\title`, `\author`,
1377 etc. This allows these macros to be redefined.
1378 + Use `\subtitle` command for `subtitle`, instead of tacking it
1379 on to the title as before. We give a no-op fallback definition if it
1380 is not defined. This change should produce much better results
1381 in classes that support `\subtitle`. With the default article
1382 class, which does not define `\subtitle`, subtitles will no
1383 longer be printed unless the user defines `\subtitle` and
1384 redefines `\maketitle`.
1385 + Moved redefinitions of `\paragraph` and `\subparagraph` to
1386 before header-includes.
1388 * Context template:
1390 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
1391 needed for things to work on ConTeXt stable from TeXLive 2015.
1392 + Revert use of `\setuphead` in title block (Andrew Dunning,
1393 Rik Kabel).
1395 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
1397 * Fixed man template so disabling hyphenation actually works.
1398 The command needs to come after .TH.
1400 * Added 'navigation' variable to beamer template (#2543).
1401 Valid values are `empty` (the default), `horizontal`, `vertical`,
1402 and `frame`. Note that this changes the default behavior from
1403 `horizontal` to `empty`. Closes #2543.
1405 * Added `toc` to HTML slide format templates (Andrew Dunning),
1406 so that `--toc` creates a contents slide.
1408 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
1410 * Allow pipe tables with no body rows (#2556).
1411 Previously this raised a runtime error.
1413 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
1414 as URL. The Haskell URI parsing routines will accept "C:" as a
1415 scheme, so we rule that out manually. This helps with
1416 `--self-contained` and absolute Windows paths.
1418 * Define a `meta-json` variable for all writers (#2019). This contains
1419 a JSON version of all the metadata, in the format selected for the
1420 writer. So, for example, to get just the YAML metadata, you can run
1421 pandoc with the following custom template: `$meta-json$`. The intent
1422 is to make it easier for static site generators and other tools to get
1423 at the metadata.
1425 * Document limitations of --self-contained (#2553).
1427 * Improved Citations section of README (#2551). Added information
1428 about `link-citations` and a link to the pandoc-citeproc man page.
1430 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
1431 in base < 4.6.
1433 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
1435 * Improved implicit pandoc-citeproc inclusion.
1436 The filter pandoc-citeproc is automatically used when
1437 `--bibliography` is specified on the command line, unless
1438 `--natbib` or `--biblatex` is used. However, previously this
1439 only worked if `--bibliography` was spelled out in full, and not
1440 if `--biblio` was used.
1442 * reveal.js: Interpret pauses correctly for all headers (#2530).
1443 Previously, when using headers below the slide level, pauses are left
1444 uninterpreted into pauses. In my opinion, unexpected behavior but
1445 intentional looking at the code.
1447 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
1449 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
1450 Bieg, API change).
1452 * ImageSize: Added functions for converting between image dimensions
1453 (Mauro Bieg).
1455 * Use lts-3.18 in stack.yaml. This avoids Windows build
1456 issues with the HTTP library.
1458 * Bump version bounds for dependencies.
1460pandoc (1.15.2.1)
1462 * Added two missing test files, and `stack.yaml`, to
1463 `extra-source-files` so they're included in the source tarball.
1465 * reveal.js template: Fixed parallaxBackground options.
1466 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
1467 need integer values, not strings. (Vaughn Iverson)
1469pandoc (1.15.2)
1471 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
1472 ConTeXt rather than LaTeX (#2463).
1474 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
1476 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
1477 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
1478 (API change).
1480 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
1481 parsing (#2469). Tightened up the inline HTML parser so it disallows
1482 TagWarnings.
1484 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
1486 * Org reader:
1488 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
1489 Paragraphs can be followed by lists, even if there is no blank line
1490 between the two blocks. However, this should only be true if the
1491 paragraph is not within a list, were the preceding block should be
1492 parsed as a plain instead of paragraph (to allow for compact lists).
1493 Thanks to @rgaiacs for bringing this up.
1494 + Allow toggling header args (Albert Krewinkel, #2269).
1495 Org-mode allows to skip the argument of a code block header argument if
1496 it's toggling a value. Argument-less headers are now recognized,
1497 avoiding weird parsing errors.
1498 + Fix markup parsing in headers (Albert Krewinkel, #2504).
1499 Markup as the very first item in a header wasn't recognized. This was
1500 caused by an incorrect parser state: positions at which inline markup
1501 can start need to be marked explicitly by changing the parser state.
1502 This wasn't done for headers. The proper function to update the state
1503 is now called at the beginning of the header parser, fixing this issue.
1504 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
1505 Smart quotes, ellipses, and dashes should behave like normal quotes,
1506 single dashes, and dots with respect to text markup parsing.
1507 + Require whitespace around definition list markers (#2518).
1508 This rule was not checked before, resulting in bugs with footnotes
1509 and some link types.
1511 * Markdown reader:
1513 + Pipe tables with long lines now get relative cell widths (#2471).
1514 If a pipe table contains a line longer than the column width (as set by
1515 `--columns` or 80 by default), relative widths are computed based on the
1516 widths of the separator lines relative to the column width. This should
1517 solve persistent problems with long pipe tables in LaTeX/PDF output, and
1518 give more flexibility for determining relative column widths in other
1519 formats, too. For narrower pipe tables, column widths of 0 are used,
1520 telling pandoc not to specify widths explicitly in output formats that
1521 permit this.
1522 + Improved parser for `mmd_title_block`. We now allow blank metadata
1523 fields. These were explicitly disallowed before.
1524 + Citation keys can now contain `://`, so URLs and DOIs can be used
1525 as citation keys (jgm/pandoc-citeproc#166).
1527 * Beamer template: fix incompatibility of section slides with natbib.
1528 Natbib (and presumably biblatex) bibliography commands create
1529 their own section. Since these are in frame environments,
1530 we have an incompatibility with the `\AtBeginSection` macro
1531 which creates a special frame when a new section occurs.
1532 (We can't have a frame inside another frame.) This change disables
1533 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
1534 bringing the problem to my attention. This supersedes #145. See
1535 discussion there.
1537 * Textile reader: don't do smart punctuation unless explicitly asked
1538 (#2480). Note that although smart punctuation is part of the textile
1539 spec, it's not always wanted when converting from textile
1540 to, say, Markdown. So it seems better to make this an option.
1542 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
1543 The `comment` environment is handled in a similar way to the
1544 `verbatim` environment, except that its content is discarded.
1546 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
1547 Jesse Rosenthal). This fixes a problem with links in notes.
1549 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
1550 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
1551 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
1552 they aren’t set already. See #895.
1554 * LaTeX writer:
1556 + Use proper command for `\textarabic` (Mauro Bieg).
1557 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
1558 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
1559 to link to Div or Span elements. We now don't bother defining `\label`
1560 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
1561 + Avoid footnotes in list of figures (#1506).
1562 + Properly handle footnotes in captions (#1506).
1563 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
1564 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
1565 `toccolor` is set (#2508).
1567 * Textile writer: support start number in ordered lists (#2465).
1569 * OpenDocument writer: Allow customization of opendocument
1570 automatic styles. Automatic styles can now be inserted in the
1571 template, which now provides the enclosing `<office:automatic-styles>`
1572 tags (#2520).
1574 * Docx writer: insert space between footnote reference and note (#2527).
1575 This matches Word's default behavior.
1577 * EPUB writer: don't download linked media when `data-external` attribute
1578 set (#2473). By default pandoc downloads all linked media and includes it
1579 in the EPUB container. This can be disabled by setting `data-external` on
1580 the tags linking to media that should not be downloaded. Example:
1582 <audio controls="1">
1583 <source src="http://example.com/music/toccata.mp3"
1584 data-external="1" type="audio/mpeg">
1585 </source>
1586 </audio>
1588 * HTML writer: use width on whole table if col widths sum to < 100%.
1589 Otherwise some browsers display the table with the columns
1590 separated far apart.
1592 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
1593 `abstract` (Andrew Dunning).
1595 * HTML-based templates (Andrew Dunning):
1597 + Use en dash instead of hyphen between title prefix and title.
1598 + Add `keywords` to metadata.
1599 + Add `lang`, `dir`, `quotes` where missing.
1600 + Always make author and date display conditional.
1601 + Updated dzslides template from source.
1603 * Man template: make "generated by" comment conditional.
1605 * LaTeX, Beamer templates:
1607 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
1608 filled by commands that make babel understand the polyglossia-style
1609 language directives (Mauro Bieg, #137).
1610 + Improved formatting of conditionals; `$for$` is always provided to allow
1611 multiple options (Andrew Dunning, #141).
1612 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
1613 to improve support for LuaTeX (Andrew Dunning, #135).
1614 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
1615 - use same options for all LaTeX engines;
1616 - add `subtitle` and `keywords` to PDF metadata;
1617 - do not override `hyperref` link coloring without user input, effectively making
1618 the `hidelinks` option the default (removed as a separate variable);
1619 - link colors can be enabled (using a slightly darker version of the old
1620 defaults) using a new `colorlinks` variable, automatically used by
1621 the LaTeX writer when custom colors are specified;
1622 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
1623 `colorlinks`, and is only applied if `colorlinks` is disabled.
1625 * ConTeXt template (Andrew Dunning):
1627 + New variables for controlling styles: `linkstyle`, `linkcolor`,
1628 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
1629 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
1630 `monofont`, `mathfont`, `fontsize`.
1631 + Default template no longer supports MkII.
1632 + Improve writing of title block (suppressing numbering of first page).
1633 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
1634 + Support `subtitle`, `abstract`.
1635 + Support list of figures (`lof`), list of tables (`lot`).
1636 + Disable link styling by default.
1637 + Define styles for all section types.
1638 + Enable microtype.
1639 + Improved formatting of conditionals.
1641 * Beamer template: added code to prevent slide breaks inside paragraphs
1642 (#2422, thanks to Nick Bart). This will matter, in practice, only when
1643 `allowframebreaks` is used. It is especially helpful for bibliography
1644 slides.
1646 * OpenDocument template: Add `<office:automatic-styles>` tag around
1647 automatic styles. The writer now longer provides this (see #2520).
1649 * Restored Text.Pandoc.Compat.Monoid.
1651 * Do not export (<>) from custom Prelude. The Prelude now matches
1652 base 4.8 Prelude's API.
1654 * Don't use custom prelude with ghc 7.10. Use the custom prelude
1655 only for earlier versions. This change makes `stack ghci` and
1656 `cabal repl` work (#2503), at least with ghc 7.10.
1658 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
1659 This prevents problems building haddocks with "C" locale.
1661 * Change default for old-locale flag to False.
1663 * Use stack in deb, osx, and Windows package generators.
1665 * Added Vagrantfile for building deb in vm.
1666 This should help in automating binary package creation. 'make package'
1667 will make the package. 'make package COMMIT=blah' will make the package
1668 from commit blah.
1670 * README:
1672 + Consistent capitalization for pandoc and Markdown.
1673 + Fixed `auto_identifiers` examples (Benoit Schweblin).
1674 + Improved documentation of template variables (Andrew Dunning).
1676pandoc (1.15.1.1)
1678 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
1679 This way we have uniform separators, whether on Windows or Linux.
1680 This should solve a problem where on some Windows versions
1681 the data files weren't being found (#2459).
1683pandoc (1.15.1)
1685 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
1686 and reexported from `Text.Pandoc` (Alex Vong). This allows
1687 writers to access it. (Alex Vong) (API change)
1689 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
1690 `subscripts` (#2401).
1692 * Added `odt` as input format (Martin Linnemann). Added new module
1693 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
1694 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
1695 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
1696 Partly implemented features: Citations, Tables.
1698 * Markdown Reader:
1700 + Add basic tests for each header style (Ophir Lifshitz).
1701 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
1702 + Skip spaces in headers (Ophir Lifshitz).
1703 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
1704 `# Header {id="myid" class="foo bar"}`
1705 is now equivalent to `# Header {#myid .foo .bar}`.
1706 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
1707 (Kristof Bastiaensen)
1708 + Pipe tables: allow indented columns. Previously the left-hand column
1709 could not start with 4 or more spaces indent. This was inconvenient
1710 for right-aligned left columns. Note that the first (header column)
1711 must still have 3 or fewer spaces indentation, or the table will be
1712 treated as an indented code block.
1713 + Fix regression: allow HTML comments containing `--`.
1714 Technically this isn't allowed in an HTML comment, but
1715 we've always allowed it, and so do most other implementations.
1716 It is handy if e.g. you want to put command line arguments
1717 in HTML comments.
1719 * LaTeX reader:
1721 + Don't eat excess whitespace after macros with only optional
1722 arguments (#2446).
1723 + Support longtable (#2411).
1724 + Implement `\Cite` (#2335).
1725 + Support abstract environment. The abstract populates an
1726 `abstract` metadata field.
1727 + Properly handle booktabs lines. Lines aren't part of the
1728 pandoc table model, so we just ignore them (#2307).
1730 * HTML reader:
1732 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
1733 + Updated for new automatic header attributes.
1734 + Add auto identifiers if not present on headers. This makes
1735 TOC linking work properly.
1736 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
1737 + Test `<ol>` type, class, and inline list-style(-type) CSS
1738 (Ophir Lifshitz).
1739 + Better handling of "section" elements (#2438). Previously
1740 `<section>` tags were just parsed as raw HTML blocks. With
1741 this change, section elements are parsed as Div elements with
1742 the class "section".
1744 * MediaWiki reader: handle unquoted table attributes (#2355).
1746 * DocBook reader:
1748 + Added proper support for DocBook `xref` elements (Frerich Raabe).
1749 Added `dbContent` field to reader state, so we can lookup
1750 cross refs.
1751 + Handle `informalexample` (#2319).
1753 * Docx Reader:
1755 + Create special punctuation test (Ophir Lifshitz).
1756 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
1757 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
1758 in `headers.docx` with pandoc's current `styles.xml`, which
1759 contains styles for Heading 1 through 6. Added Heading 4
1760 through 7 to the test document. Note that Heading 7 is not
1761 parsed as a Heading because there is no Heading 7 style.
1763 * RST reader: better handling of indirect roles.
1764 Previously the parser failed on this kind of case
1766 .. role:: indirect(code)
1768 .. role:: py(indirect)
1769 :language: python
1771 :py:`hi`
1773 Now it correctly recognizes `:py:` as a code role.
1775 * Org reader:
1777 + Add auto identifiers if not present on headers
1778 (#2354, Juliusz Gonera).
1779 + Allow verse blocks to contain empty lines (#2402,
1780 Albert Krewinkel).
1782 * EPUB reader: stop mangling external URLs (#2284).
1784 * RST writer:
1786 + Don't insert `\ ` when complex expression in matched pairs.
1787 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
1788 + Ensure that `\ ` is inserted when needed before Cite and Span
1789 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
1790 + Normalize headers only in "standalone" mode (#2394).
1792 * Haddock writer: escape `*` and `^` (G. Bataille).
1794 * Markdown writer:
1796 + In TOC, add links to headers (#829).
1797 + Use unicode super/subscripts for digits in plain output
1798 (when the `superscripts` and `subscripts` extensions are
1799 not enabled).
1801 * Docx writer:
1803 + Moved invalid character stripping to `formattedString`.
1804 This avoids an inefficient generic traversal (#2356).
1805 + Use user data directory for `reference.docx` archive.
1806 This allows the test suite to work without installing pandoc first.
1807 It also brings the docx writer in line with the odt writer.
1808 + Tests: docx writer tests now use `../data` for data directory.
1809 This allows tests to be run without installing first.
1810 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
1812 * LaTeX writer:
1814 + Fixed detection of 'chapters' from template.
1815 If a documentclass isn't specified in metadata, but the
1816 template has a hardwired bookish documentclass, act as if
1817 `--chapters` was used. This was the default in earlier
1818 versions, but it has been broken for a little while.
1819 + Correctly recognize book documentclass in metadata (#2395).
1820 + Set language-related variables automatically, depending
1821 on the value of the `lang` field, which is now always
1822 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
1823 + Add `\protect` to `\hyperdef` in inline context. This way we
1824 don't get an error when this is used as a moveable argument (#2136).
1825 + Support all frame attributes in Beamer.
1826 + Percent-encode more special characters in URLs (#1640, #2377).
1827 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
1829 * HTML writer:
1831 + Update KaTeX JS and CSS versions (Emily Eisenberg).
1832 + For dzslides, add `role="note"` for speaker notes (#1693).
1833 + Percent-encode more special characters in URLs (#1640, #2377).
1834 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
1835 + Render Div with class `section` as `<section>` in HTML5.
1837 * EPUB writer:
1839 + In TOC, replace literal `<br/>` with space (#2105).
1840 + With `--webtex`, include image file rather than `data:` URI (#2363).
1842 * Native writer: format Div properly, with blocks separated.
1844 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
1845 (#2191, Mauro Bieg).
1847 * Reference Docx:
1849 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
1850 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
1852 * Templates
1854 + Beamer: Add `innertheme`, `outertheme` variables
1855 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
1856 Integrate recent font and language updates from LaTeX template;
1857 allow use of `mainfont` variable for changing the slide text
1858 in XeTeX and LuaTeX (Andrew Dunning, #131).
1859 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
1860 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
1861 (Andrew Dunning, #122). Support handling of bidirectional
1862 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
1863 under XeTeX and prevent letters and numbers from appearing on a
1864 different baseline by removing use of the `realscripts` package
1865 (via `xltxtra`). To restore use of OpenType characters for these
1866 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
1867 `header-includes` (Andrew Dunning, #130). Remove redundant
1868 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
1869 `indent`, `subparagraph` variables (Andrew Dunning).
1870 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
1871 #113). Prevent package clash with `tufte-latex` and other classes that
1872 include `hyperref` or `color` (Xavier Olive, #115).
1873 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
1874 + LaTeX and ConTeXt: Use more specific language variables.
1875 Instead of directly using `lang`, we now use `babel-lang` and
1876 `polyglossia-lang` and `context-lang`. These variables are set by
1877 the writers to the necessary values, based on the `lang` variable
1878 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
1879 #129).
1880 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
1881 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
1882 Add dir attribute in html5 (Andrew Dunning).
1883 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
1884 Add `width`, `height` variables (Andrew Dunning). Update template
1885 from 3.1 source (Andrew Dunning). All configuration options are now
1886 available as variables, but are only be included if set (reveal.js
1887 uses defaults otherwise).
1888 + man: Added comment stating that the page is autogenerated by pandoc,
1889 giving version. Added `adjusting` and `hyphenate` variables
1890 (Alex Vong, #123).
1892 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
1894 * MediaBag: ensure that `/` is always used as path separator.
1896 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
1898 * Added `--bash-completion` option. This generates a bash completion
1899 script. To use: `eval "$(pandoc --bash-completion)"`.
1901 * Text.Pandoc.Error: Define Typeable and Exception instances
1902 for PandocError (#2386).
1904 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
1905 This makes keys with extra space at the beginning and end
1906 work: e.g.
1908 [foo]: bar
1910 [ foo ]
1912 will now be a link to bar (it wasn't before).
1914 * Text.Pandoc: disable `auto_identifiers` for epub.
1915 The epub writer inserts its own auto identifiers;
1916 this is more complex due to splitting into "chapter" files.
1918 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
1919 It now reexports Data.Time.
1921 * Use custom Prelude to avoid compiler warnings.
1923 + The (non-exported) prelude is in prelude/Prelude.hs.
1924 + It exports Monoid and Applicative, like base 4.8 prelude,
1925 but works with older base versions.
1926 + It exports (<>) for mappend.
1927 + It hides 'catch' on older base versions.
1929 * Added a `stack.ymal` and stack install instructions to INSTALL.
1931 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
1933 * Added note to CONTRIBUTING.md about ghc versions and travis.
1935 * Clarify docs on block quotes. The space after `>` is optional (#2346).
1937 * Removed obsolete reference to default.csl (#2372).
1939 * List all styles in manual for `--reference-docx` (Chris Black)
1941 * Don't capitalize header links in man page.
1943 * Added section on repl to CONTRIBUTING.md.
1945 * README: Added space after backslash in image example (#2329).
1947 * Document details of citation locator terms (Nick Bart).
1949 * Fixed some internal links in README (#2309).
1951 * Improve CSL documentation, variables documentations,
1952 links, and cross-references in README. (Andrew Dunning)
1954 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
1956 * Use `newManager` instead of `withManager` in recent `http-client`.
1957 This avoids a deprecation warning.
1959 * Allow building with latest versions of http-types,
1960 HUnit, criterion, syb, aeson.
1962 * Updated benchmark program for new criterion API.
1964 * Setup.hs: rewrite so as not to use process, directory, filepath.
1965 Using anything outside base is dangerous, since older
1966 versions of ghc may link against two different versions.
1968 * Added appveyor (Windows continuous integration) builds.
1970 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
1971 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
1972 `make .travis.yml` regenerates it based on the tested-with
1973 field of the cabal file.
1975pandoc (1.15.0.6)
1977 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
1978 Previously `--self-contained` wiped out all spaces in CSS,
1979 including semantically significant spaces. This was a regression
1980 from 1.14.x.
1982 * Markdown reader: don't allow bare URI links or autolinks in link
1983 label (#2300). Added test cases.
1985 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
1986 Previously we disallowed `-` at the end of an autolink,
1987 and disallowed the combination `=-`. This commit liberalizes the
1988 rules for allowing punctuation in a bare URI, and adds test cases.
1989 One potential drawback is that you can no longer put a bare
1990 URI in em dashes like this:
1991 `this uri---http://example.com---is an example.`
1992 But in this respect we now match github's treatment of bare URIs.
1994 * HTML writer: support speaker notes in dzslides.
1995 With this change `<div class="notes">` and also `<div class="notes"
1996 role="note">` will be output if `-t dzslides` is used. So we can
1997 have speaker notes in dzslides too. Thanks to maybegeek.
1999 * Updated dzslides template.
2001 * Improved documentation of options to print system default files (#2298).
2002 `--print-default-data-file` and `--print-default-template`.
2004 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
2005 (Tiziano Müller). MathJax seems currently to be the only maintained
2006 math rendering extension for DokuWiki.
2008 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
2009 div as top-level header (#2294). This fixes a bug with `--section-divs`,
2010 where the final references section added by pandoc-citeproc, enclosed in
2011 its own div, got nested in the div for the section previous to it.
2013 * Allow vector 0.11.
2015 * Require cmark > 0.4.
2017pandoc (1.15.0.5)
2019 * HTML writer: Fixed email javascript obfuscation with `mailto:`
2020 URLs (#2280). This fixes a potential security issue. Because
2021 single quotes weren't being escaped in the link portion, a
2022 specially crafted email address could allow javascript code injection.
2024 * Markdown/HTML readers: Avoid parsing partial URLs like
2025 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
2027 * RST reader: allow inline formatting in definition list field
2028 names (Lars-Dominik Braun).
2030 * PDF: Make sure `--latex-engine-opt` goes before the filename
2031 on the command line. LaTeX needs the argument to come after
2032 the options (#1779).
2034 * CommonMark writer: fixed tags used for super/subscript.
2036 * ConTeXt template: activate hanging indent for definition lists
2037 (Mauro Bieg).
2039 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
2040 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
2041 to include `hsb2hs` in Build-Tools in cabal.
2043 * Improved Windows installer (thanks to nkalvi).
2045 + When per-machine installation is chosen, the system path
2046 is updated instead of the user's.
2047 + An appropriate default is used for per-machine installation
2048 directory.
2049 + Admin privileges are no longer required for a per-user install
2051 * Travis: unpack sdist for build to catch packaging bugs.
2053 * Improved documentation on where user templates go (#2272).
2055pandoc (1.15.0.4)
2057 * Added pandoc.1 man page to the repository. It is no longer
2058 built as part of the cabal build process. (This proved too
2059 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
2060 when `README` is changed.
2062 * Copying of the man page now respects `--destdir` (#2262).
2064 * Improved error messages for filters. User is now informed if
2065 the filter requires an interpreter that isn't found in the path,
2066 or if the filter returns an error status.
2068pandoc (1.15.0.3)
2070 * Ensure target directory is created when installing man page.
2072pandoc (1.15.0.2)
2074 * Added files needed for building man page to Extra-Source-Files.
2076pandoc (1.15.0.1)
2078 * Man page is now built and installed as part of the cabal build
2079 process. Removed Makefile target for man page.
2081pandoc (1.15)
2083 * Man page changes:
2085 + Removed `--man1`, `--man5` options (breaking change).
2086 + Removed `Text.Pandoc.ManPages` module (breaking API change).
2087 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
2088 create the man page from README using a custom template and filters.
2089 + Added `man/` directory with template and filters needed to build
2090 man page.
2091 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
2092 Now there is just pandoc.1, which has all the content from README.
2093 This change was needed because of the extensive cross-references
2094 between parts of the README.
2095 + Removed old `data/pandoc.1.template` and
2096 `data/pandoc_markdown.5.template`.
2098 * OpenDocument writer: Do not add a carriage return after a hard
2099 line break (Michael Chladek).
2101 * ConTeXt writer:
2103 + use `\goto` for internal links.
2104 + Added a `%` at end for `\reference` to avoid spurious space.
2106 * Ignore sandbox on 'make quick'
2108pandoc (1.14.1)
2110 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
2111 to generate its own man pages. Man pages are no longer automatically
2112 generated in the build process (the process for this was too complex
2113 and prone to failure, #2190). The `make-pandoc-man-pages` executable
2114 has been removed. The `man/` directory has been removed, and man page
2115 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
2116 longer find pandoc's man pages in `man/`, but you can generate them using
2117 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
2119 * Added new unexported module: `Text.Pandoc.ManPages`.
2121 * `README` now acts like a data file (even though it isn't in
2122 `data/`). So, for example, `pandoc --print-default-data-file README`
2123 will produce the README.) This change was required for the `--man1`
2124 and `--man5` options, since the man pages are produced from the
2125 README, but it may be useful for other purposes as well.
2127 * Allow `reference.docx` and `reference.odt` to be used with
2128 `--print-default-data-file` and to shadow defaults if placed in
2129 the user data directory. Note that as of 1.14, we no longer
2130 include these files as data files; instead, we include their
2131 components. This change causes pandoc to behave as if it has
2132 these data files; they are constructed on demand when needed
2133 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
2135 * Fixed regression in CSS parsing with `--self-contained` (#2224).
2136 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
2137 silently drops big sections of CSS. This commit replaces the
2138 use of css-text with a small but principled CSS preprocessor,
2139 which removes whitespace and comments and replaces `url()` with
2140 base 64 data when possible.
2142 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
2143 This will allow math to work when pages are being viewed locally.
2145 * `Text.Pandoc.Options`: Export `plainExtensions`.
2146 These are the extensions used in `plain` output.
2148 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
2149 math mode; treat them as regular inline text. Normally these will
2150 cause an error in LaTeX, but there are contexts (e.g. `alltt`
2151 environments) where they are allowed.
2153 * HTML reader: allow `<body>` to close `<head>`.
2155 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
2157 * RST reader: Fix reference names with special characters
2158 (Lars-Dominik Braun).
2160 * Textile writer: escape `+` and `-` as entities (#2225).
2162 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
2164 * Plain writer: don't use symbols for super/subscript (#2237).
2165 Simplified code by using `plainExtensions`.
2167 * InDesign writer: Properly escape URLs containing more than one
2168 colon character (gohai).
2170 * Docx writer: Make sure we use dist version of `reference.docx`
2171 (and not the user's version) for certain settings. Taking some
2172 settings values from a user-supplied reference.docx can lead to
2173 corruption. This fixes a regression from the last release (#2249).
2175 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
2176 `getDefaultReferenceODT` (API change). These functions have been
2177 removed from the Docx and ODT writers.
2179 * LaTeX template (Xavier Olive):
2180 + Added `CJKmainfont` and `CJKoptions` variables.
2181 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
2183 * Epub templates: use `author.role`, not `author.type`.
2185 * Bump cmark version to >= 0.3.4.
2187 * Improved Windows installer (#2205, thanks to nkalvi).
2188 Users can now select a per-user or systemwide install, and can set
2189 the installation path. At the end of installation, the install location
2190 is given. The install location is also now given in the list of
2191 installed programs in Control Panel. Cleaner WiX syntax is used for
2192 setting the path.
2194 * Added `download_stats` target to Makefile.
2196pandoc (1.14.0.4)
2198 * Added missing commonmark template.
2200 * Improved try pandoc (moved button, show raw command).
2202pandoc (1.14.0.3)
2204 * Allow compilation with syb 0.5.*.
2206 * Custom writer: fixed some compiler warnings for ghc < 7.10.
2208pandoc (1.14.0.2)
2210 * Allow building with hslua 0.4.
2212pandoc (1.14.0.1)
2214 * Fixed problem with building of `reference.docx` and `reference.odt`
2215 when the `embed_data_files` flag is used. Instead of having a phase
2216 of the build where `reference.docx` and `reference.odt` are created
2217 from their constituent data files, we now construct these archives
2218 from their constituents when a `docx` or `odt` is built. The
2219 constituent files have been moved from `extra-source-files` to
2220 `data-files`, and `reference.docx` and `reference.odt` have been
2221 removed. Users can create their own `reference.docx` or
2222 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
2223 `make-reference-files.hs` has been removed, simplifying the build
2224 process (#2187)
2226 * Don't include generated man pages in extra-source-files (#2189).
2228 * Bumped upper bound for aeson.
2230 * ConTeXt writer: create internal link anchors for Div elements with
2231 identifiers. (This is needed for linked citations to work.)
2233pandoc (1.14)
2235 [new features]
2237 * Added `commonmark` as input and output format.
2239 * Added `--verbose` flag for debugging output in PDF production (#1840,
2240 #1653).
2242 * Allow wildcards in `--epub-embed-font` arguments (#1939).
2244 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
2246 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
2247 This is enabled by default for those markdown flavors that
2248 support reading shortcut reference links, namely: `markdown`,
2249 `markdown_strict`, `markdown_github`, `markdown_php`.
2250 If the extension is enabled, the reader parses shortcut reference
2251 links like `[foo]`, and the writer creates such links unless doing
2252 so would cause problems. Users of markdown flavors that support
2253 shortcut reference links should not notice a difference in reading
2254 markdown, but the markdown pandoc produces may differ.
2255 If shortcut links are not desired, the extension can be disabled
2256 in the normal way.
2258 [behavior changes]
2260 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
2261 A "dirty" TOC is created at the beginning of document.
2262 It can be regenerated after the document has been opened.
2264 * An implicit `--filter pandoc-citeproc` is now triggered only when the
2265 `--bibliography` option is used, and not when the `bibliography`
2266 field in metadata is specified (#1849).
2268 * Markdown reader:
2270 + Reference links with `implicit_header_references` are no longer
2271 case-sensitive (#1606).
2272 + Definition lists no longer require indentation for first line (#2087).
2273 Previously the body of the definition (after the `:` or `~` marker)
2274 needed to be in column 4. This commit relaxes that requirement,
2275 to better match the behavior of PHP Markdown Extra. So, now
2276 this is a valid definition list:
2278 foo
2279 : bar
2280 + Resolve a potentially ambiguity with table captions:
2282 foo
2284 : bar
2286 -----
2287 table
2288 -----
2290 Is "bar" a definition, or the caption for the table? We'll count
2291 it as a caption for the table.
2292 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
2293 Markdown Extra. Note: If you have been using headerless pipe tables,
2294 this change may cause existing tables to break.
2295 + Allow pipe tables with header but no body (#2017).
2296 + Allow a digit as first character of a citation key (Matthias Troffaes).
2297 See https://github.com/jgm/pandoc-citeproc/issues/97
2299 * LaTeX reader:
2301 + Don't limit includes to `.tex` extension (#1882).
2302 If the extension is not `.tex`, it must be given explicitly in
2303 the `\input` or `\include`.
2305 * Docx reader:
2307 + Allow numbering in the style file. This allows inherited styles
2308 with numbering (lists) (Jesse Rosenthal).
2310 * Org reader:
2312 + Support smart punctuation (Craig Bosma).
2313 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
2314 `:noexport:` tag set are not exported. This mirrors org-mode.
2315 + Put header tags into empty spans (Albert Krewinkel, #2160).
2316 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
2317 Instead of being interpreted as part of the headline, the tags are now
2318 put into the attributes of empty spans. Spans without textual content
2319 won't be visible by default, but they are detectable by filters. They
2320 can also be styled using CSS when written as HTML.
2321 + Generalize code block result parsing (Albert Krewinkel).
2322 Previously, only code blocks were recognized as result blocks;
2323 now, any kind of block can be the result.
2325 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
2326 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
2328 * HTML writer:
2330 + Add "inline" or "display" class to math spans (#1914).
2331 This allows inline and display math to be styled differently.
2332 + Include raw latex blocks if `--mathjax` specified (#1938).
2333 + Require highlighting-kate >= 0.5.14 (#1903).
2334 This ensures that all code blocks will be wrapped in a `div`
2335 with class `sourceCode`. Also, the default highlighting CSS
2336 now adds `div.sourceCode { x-overflow: auto; }`, which means
2337 that code blocks (even with line numbers) will acquire a scroll
2338 bar on screens too small to display them (e.g. mobile phones).
2339 See also jgm/highlighting-kate#65.
2341 * LaTeX writer:
2343 + Use a declaration for tight lists (Jose Luis Duran, Joseph
2344 Harriott). Previously, pandoc hard-coded some commands to make
2345 tight lists in LaTeX. Now we use a custom command instead,
2346 allowing the styling to be changed in a macro in the header.
2347 (Note: existing templates may need to be modified to include
2348 the definition of this macro. See the current template.)
2349 + Beamer output: if the header introducing a slide has the
2350 class `fragile`, add the `[fragile]` option to the slide (#2119).
2352 * MediaWiki writer:
2354 + Use `File:` instead of the deprecated `Image:` for images and
2355 other media files (Greg Rundlett).
2357 * DocBook writer:
2359 + Render a `Div (id,_,_) [Para _]` element as a `para` element
2360 with an `id` attribute. This makes links to citations work in
2361 DocBook with pandoc-citeproc.
2363 * RST writer:
2365 + Normalize headings to sequential levels (Nikolay Yakimov).
2366 This is pretty much required by docutils.
2367 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
2368 + Better handling of raw latex inline (#1961). We use
2369 `` :raw-latex:`...` `` and add a definition for this role to
2370 the template.
2372 * EPUB writer:
2374 + Remove `linear=no` from cover `itemref` (#1609).
2375 + Don't use `sup` element for epub footnotes (#1995).
2376 Instead, just use an a element with class `footnoteRef`.
2377 This allows more styling options, and provides better results
2378 in some readers (e.g. iBooks, where anything inside the a
2379 tag breaks popup footnotes).
2380 + Take TOC title from `toc-title` metadata field.
2382 * Docx writer:
2384 + Implemented `FirstParagraph` style (Jesse Rosenthal).
2385 Following the ODT writer, we add the `FirstParagraph` style to the
2386 first text paragraph following an image, blockquote, table, heading,
2387 or beginning of document. This allows it to be styled differently.
2388 The default is for it to be the same as `Normal`.
2389 + Added `BodyText` style (Jesse Rosenthal).
2390 We apply a `BodyText` style to all unstyled paragraphs. This is,
2391 essentially, the same as `Normal`, except that since not everything
2392 inherits from `BodyText` (the metadata won't, for example, or
2393 the headers or footnote numbers), we can change the text in the body
2394 without having to make exceptions for everything. If we do want to
2395 change *everything*, we can still do it through `Normal`.
2396 + Altered `Blockquote` style slightly (Jesse Rosenthal).
2397 Since `BlockQuote` derives from `BodyText`, we just want to specify
2398 by default that it won't indent, regardless of what `BodyText` does.
2399 Note that this will not produce any visible difference in the default
2400 configuration.
2401 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
2402 + Added a style to figure images (Nikolay Yakimov).
2403 Figures with empty captions use style `Figure`.
2404 Figures with nonempty captions use style `Figure with Caption`, which
2405 is based on `Figure`, and additionally has `keepNext` set.
2407 * ODT writer:
2409 + Added figure captions (Nikolay Yakimov). The following styles are
2410 used for figures:
2411 `Figure` -- for figure with empty caption),
2412 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
2413 `FigureCaption` (based on `Caption`) -- for figure captions.
2414 Also, `TableCaption` (based on `Caption`) is used for table captions.
2416 [API changes]
2418 * New `Text.Pandoc.Error` module with `PandocError` type
2419 (Matthew Pickering).
2421 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
2422 (Matthew Pickering). This allows better handling of errors.
2424 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
2426 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
2428 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
2429 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
2430 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
2431 Youssefi).
2433 * New `Ext_shortcut_reference_links` constructor for `Extension`
2434 (Konstantin Zudov).
2436 [bug fixes]
2438 * Markdown reader:
2440 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
2441 + Check for tex macros after indented code (#1973).
2442 + Rewrote `charsInBalancedBrackets` for efficiency.
2443 + Make sure a closing `</div>` doesn't get included in a
2444 definition list item (#2127).
2445 + Don't parse bracketed text as citation if it might be a link,
2446 image, or footnote (Nikolay Yakimov).
2447 + Require space after key in mmd title block (#2026, Nikolay
2448 Yakimov). Require space after key-value delimiter colon in mmd title
2449 block.
2450 + Require nonempty value in mmd title block (Nikolay Yakimov).
2451 + Disable all metadata block extensions when parsing
2452 metadata field values (#2026, Nikolay Yakimov). Otherwise we
2453 could get a mmd title block inside YAML metadata, for example.
2455 * HTML reader:
2457 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
2458 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
2459 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
2460 to see if the input starts with `<!--`. If not, it's bogus comment
2461 mode and we fail `htmlTag`.
2462 + Handle `base` tag; if it has an `href` value, this is added to
2463 all relative URLs in links and images.
2465 * DocBook reader:
2467 + Look inside "info" elements for section titles (#1931).
2469 * Docx reader:
2471 + Parse images in deprecated vml format (Jesse Rosenthal).
2472 + Allow sub/superscript verbatims (Jesse Rosenthal).
2473 Verbatim usually shuts off all other run styles, but we don't want it
2474 to shut off sub/superscript.
2476 * LaTeX reader:
2478 + Handle `tabular*` environment (#1850).
2479 Note that the table width is not actually parsed or taken into
2480 account, but pandoc no longer chokes on it.
2481 + Ignore options in `\lstinline` rather than raising error (#1997).
2482 + Add some test cases for simple tables (Mathias Schenner).
2483 + Handle valign argument in tables (Mathias Schenner) (currently
2484 we just ignore this).
2485 + Allow non-empty colsep in tables (Mathias Schenner).
2486 The `tabular` environment allows non-empty column separators
2487 with the "@{...}" syntax. Previously, pandoc would fail to
2488 parse tables if a non-empty colsep was present. With this
2489 commit, these separators are still ignored, but the table gets
2490 parsed. A test case is included.
2491 + Recognize `\newpage` as a block command.
2492 + Allow block content in \title{} (#2001).
2493 + Check for block-level newcommand aliases in blockCommand (Nikolay
2494 Yakimov).
2495 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
2496 + Properly gobble spaces after `\\` (#2007).
2498 * Textile reader:
2500 + Handle newlines in table cells, and empty cells (#1919).
2502 * Org reader:
2504 + Allow image links with non-image targets (Hans-Peter Deifel).
2505 This matches behavior of Org-Mode for links like
2506 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
2508 * Docbook writer:
2510 + Don't print empty id attributes (thanks to Steve Horne).
2512 * HTML writer:
2514 + Fixed list-style-type for numbered example lists.
2515 Should be "decimal," not "example" (#1902).
2516 + Do not omit missing `alt` attribute on `img` tag (#1131,
2517 Konstantin Zudov).
2518 + Allow multiple colgroups in table (#2122).
2519 + In revealjs, ensure that lists in speaker notes don't add "fragment"
2520 classes, which can cause additional keypresses to be needed to
2521 advance a slide (#1394).
2523 * LaTeX writer:
2525 + Don't escape `$` in URL (#1913).
2526 + Don't use listings in headers (Matthew Pickering, #1963).
2527 + Recognize book documentclass if set in metadata (#1971).
2528 This sets `--chapters` implicitly if the documentclass in metadata
2529 is a book documentclass. Previously this was done only if a book
2530 documentclass was set in a variable.
2531 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
2532 + Make `mainlang` work when `lang` is in metadata (#2174).
2534 * Texinfo writer:
2536 + Fix wrapping by using breakable spaces (Tim Lin).
2538 * RST writer:
2540 + Fixed toc depth in RST writer. Previously the depth was being
2541 rendered as a floating point number with a decimal point.
2543 * Markdown writer:
2545 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
2546 compatibility with original Markdown. We now escape `<` and `>`
2547 with entities. Also, we now backslash-escape square brackets.
2548 + Avoid introducing spurious list items through wrapping (#1946).
2549 + Don't emit span tags if plain or raw HTML disabled.
2551 * MediaWiki writer:
2553 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
2555 * AsciiDoc writer:
2557 + Insert some needed blank lines (#1860).
2558 + Avoid wrapping after list marker (#1858).
2560 * EPUB writer:
2562 + Properly handle internal links to IDs in spans, divs (#1884).
2563 + Use plain writer for metadata dc: fields (#2121).
2564 This gives better results when we have, e.g. multiple paragraphs.
2565 Note that tags aren't allowed in these fields.
2566 + Properly handle image links without an extension (#1855).
2567 + Improved chapter splitting and internal link rewriting (#1887,
2568 #2162, #2163). This will ensure that internal links work and
2569 that the references section produced by pandoc-citeproc is
2570 in its own chapter.
2571 + Fixed handling of svg images (#2183).
2573 * ICML writer:
2575 + Better handling of raw blocks and inlines (#1951).
2576 Previously these were always escaped and printed verbatim.
2577 Now they are ignored unless the format is `icml`, in which
2578 case they are passed through unescaped.
2579 + Fixed image URIs in ICML output (gohai).
2581 * Custom writer:
2583 + Raise error if loadstring returns an error status.
2584 + Raise `PandocLuaException` instead of using 'error'.
2585 Eventually we'll change the return type so that no exception
2586 is involved, but at least this can be trapped.
2587 + Use UTF-8 aware bytestring conversion.
2588 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
2589 Also factored out ByteString, since it's only used as an intermediate
2590 representation.
2592 * Docx writer:
2594 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
2595 + Filter out illegal XML characters (#1992, Matthew Pickering).
2596 + Added `noProof` to docx syntax highlighting `SourceCode` style.
2597 + Added footnotes id -1 and 0 (Jesse Rosenthal).
2598 Word uses, by default, footnotes with id -1 and 0 for separators. If a
2599 user modifies `reference.docx`, they will end up with a `settings.xml`
2600 file that references these footnotes, but no such footnotes in the
2601 document. This will produce a corruption error. Here we add these to the
2602 document and `settings.xml` file, so future modifications won't break
2603 the file.
2604 + Handle lists correctly inside table cells (Jesse Rosenthal).
2605 Previously we didn't transform lists inside table cells.
2606 + Set firstRow information in tables (Nikolay Yakimov).
2607 + Don't replace `SourceCode` style in `reference.docx` if it is defined
2608 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
2609 any `SourceCode` and `*Tok` styles in `reference.docx`.
2610 + Attempt to match international style names (#1607, Nikolay Yakimov).
2611 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
2612 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
2613 `Definition`, `First Paragraph`.
2614 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
2615 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
2616 `Footnote Ref -> Footnote Reference`.
2617 + Added `Caption` style (Nikolay Yakimov).
2618 + Changed these styles' inheritance (Nikolay Yakimov):
2619 `Image Caption <- Caption`, `Table Caption <- Caption`.
2620 + Remove `SourceCode` style from `reference.docx` (#1872).
2621 This is added automatically by the docx writer.
2622 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
2624 * `Text.Pandoc.PDF`
2626 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
2627 #1832).
2628 + More comprehensible errors on image conversion (#2067).
2629 EPS can't be supported without shelling out to something like
2630 ImageMagick, but at least we can avoid mysterious error messages.
2632 * `Text.Pandoc.Shared`:
2634 + Make safeRead safe (#1801, Matthew Pickering).
2635 + Addded `mapLeft`, `hush` (Matthew Pickering).
2637 * `Text.Pandoc.Pretty`:
2639 + Remove partial function (Matthew Pickering).
2641 * `Text.Pandoc.SelfContained`:
2643 + Add `;charset=utf-8` to script mime type if missing (#1842).
2644 + Improved building of data URIs (#1940). Now base64 is used except
2645 for `text/*` mime types.
2646 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
2647 + Properly handle data URIs in css urls (#2129).
2648 Use a proper CSS parser (adds dependency on `text-css`).
2650 * `Text.Pandoc.UTF8`:
2652 + Better handling of bare CRs in input files (#2132).
2653 Previously we just stripped them out; now we convert
2654 other line ending styles to LF line endings.
2656 * `Text.Pandoc.ImageSize`:
2658 + Fixed some exif header parsing bugs (#1834).
2659 + Make imageSize return an Either, not a Maybe (#1834).
2660 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
2661 parse failure (rather than `error`).
2662 + Improved warnings when image size can't be determined.
2663 + Removed error landmines (Matthew Pickering).
2665 * Added woff2 to MIME types (Alfred Wechselberger).
2667 * pandoc: When a binary input format is used, warn that file
2668 arguments past the first one are being ignored (Matthew Pickering).
2670 [template changes]
2672 * LaTeX template:
2674 + Degrade gracefully if `\paragraph` not defined.
2675 + Include `grffile` together with `graphicx` (#2074).
2676 This properly handles filenames containing spaces and dots.
2677 + Redefine `\paragraph`, `\subparagraph`... to behave more
2678 like section headers (#1658).
2679 + Import hyperref before polyglossia to avoid an error with xelatex,
2680 "please load package hyperref before bidi package" (Nick Bart).
2681 + Added `toccolor` variable to control link color in toc (Kaixhin).
2683 * LaTeX, Beamer templates:
2685 + Provide `\tightlist`, which is now used by the LaTeX writer.
2686 + Use polyglossia in beamer (#85).
2687 + Use `bibliography` instead of `biblio-files`
2688 (#1661). Also use `\addbibresource` instead of `\bibliography` for
2689 biblatex.
2690 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
2691 variable that is derived from a comma-separated list in `lang`;
2692 the last language is `mainlang` and the others are `otherlang`.
2694 * EPUB templates:
2696 + Use `div`, not `p`, for "rights" on title page.
2697 + Added header-includes, include-before, include-after (#1987).
2699 * OpenDocument template:
2701 + Use `text:p` instead of `text:h` for title.
2702 Using `text:h` causes problems with numbering. Closes #2059.
2703 Thansk to @nkalvi for diagnosing this.
2705 * reveal.js template:
2707 + Link to non-minified css, js. The minified versions no longer
2708 ship with the library.
2709 + Correctly include style CSS (#1949).
2710 + New configurable options options: `center`, `maxScale`, `slideNuber`
2711 (Dmitry Smirnov, pandoc-templates#89).
2712 + Moved custom CSS after theme. This allows custom CSS to modify
2713 themes, instead of being replaced by them.
2714 + Allow `center` to be set to false.
2716 [under the hood improvements]
2718 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
2719 Yakimov). Instead the repository now includes the component text files,
2720 and the zipped binaries are built from these using a helper
2721 program, `make-reference-files`. This should make maintenance of
2722 these components easier going forward.
2724 * `Text.Pandoc.Parsing`:
2726 + Added new `<+?>` combinator (Nikolay Yakimov).
2727 + Added `stateHeaderKeys` to `ParserState`.
2729 * `make_deb.sh` fixes:
2731 + Detect architecture.
2732 + Add Installed-Size to debian package control file (#1900).
2733 + Use `fakeroot` to get permissions right.
2734 + Use `mkdir` and `cp` instead of `install`.
2735 + Set permissions of directories to 755.
2736 + Install in `/usr` rather than `/usr/local`.
2737 + Compress man pages.
2738 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
2740 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
2741 to assist with transition to `time` 1.5.
2743 * Updated CONTRIBUTING.md with information about issue tags (Matthew
2744 Pickering).
2746 * Updated travis installs to the new sudo-less syntax (Tim Lin).
2748 * Updated dependency version bounds.
2750 * EPUB tests: don't use `joinPath`, which varies across platforms.
2751 Instead, use a forward-slash to join paths, regardless of the
2752 platform. This matches the way `MediaBag` now works.
2754 * Clarify JSON input and output in usage message (Caleb McDaniel).
2756 * Improved INSTALL instructions.
2758 * Always build man pages. Removed make-pandoc-man-pages flag.
2760 * Makefile: removed man target, now that we generate man pages by default.
2762 * README:
2764 + Fixed typos (J. Lewis Muir).
2765 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
2766 + Added note on in-field markup in biblio databases (Nick Bart).
2767 + Fixed misleading example of raw HTML block.
2768 + Various minor formatting and consistency fixes for the program
2769 options (Andreas Lööw).
2770 + Made definition lists for options all "loose" for consistency.
2771 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
2772 `--bib2json` and `--bib2yaml` options (Nick Bart).
2773 + Removed obsolete reference to `mods2yaml` (Nick Bart).
2774 + Added section on syntax highlighting.
2775 + Documented `toccolor` variable.
2777pandoc (1.13.2.1)
2779 * Updated to build with ghc 7.10.1.
2781 * Bumped package upper bounds for filepath, blaze-html,
2782 blaze-markup.
2784pandoc (1.13.2)
2786 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
2788 * Markdown reader:
2790 + Better handling of paragraph in div (#1591).
2791 Previously text that ended a div would be parsed as Plain
2792 unless there was a blank line before the closing div tag.
2793 + Don't treat a citation as a reference link label (#1763).
2794 + Fix autolinks with following punctuation (#1811).
2795 The price of this is that autolinked bare URIs can no longer
2796 contain `>` characters, but this is not a big issue.
2797 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
2798 + Allow `startnum` to work without `fancy_lists`. Formerly
2799 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
2801 * RST reader (all Daniel Bergey):
2803 + Parse quoted literal blocks (#65). RST quoted literal blocks are
2804 the same as indented literal blocks (which pandoc already supports)
2805 except that the quote character is preserved in each line.
2806 + Parse RST class directives. The class directive accepts one or more
2807 class names, and creates a Div value with those classes. If the
2808 directive has an indented body, the body is parsed as the children of
2809 the Div. If not, the first block folowing the directive is made a
2810 child of the Div. This differs from the behavior of rst2xml, which
2811 does not create a Div element. Instead, the specified classes are
2812 applied to each child of the directive. However, most Pandoc Block
2813 constructors to not take an Attr argument, so we can't duplicate this
2814 behavior.
2815 + Warn about skipped directives.
2816 + Literal role now produces Code. Code role should have "code" class.
2817 + Improved support for custom roles
2819 - Added `sourceCode` to classes for `:code:` role, and anything
2820 inheriting from it.
2821 - Add the name of the custom role to classes if the Inline
2822 constructor supports Attr.
2823 - If the custom role directive does not specify a parent role,
2824 inherit from the `:span:` role.
2826 This differs somewhat from the `rst2xml.py` behavior. If a custom
2827 role inherits from another custom role, Pandoc will attach both
2828 roles' names as classes. `rst2xml.py` will only use the class of
2829 the directly invoked role (though in the case of inheriting from a
2830 `:code:` role with a `:language:` defined, it will also provide the
2831 inherited language as a class).
2832 + Warn about ignored fields in role directives.
2834 * LaTeX reader:
2836 + Parse label after caption into a span instead of
2837 inserting an additional paragraph of bracketed text (#1747).
2838 + Parse math environments as inline when possible (#1821).
2839 + Better handling of `\noindent` and `\greektext` (#1783).
2840 + Handle `\texorpdfstring` more gracefully.
2841 + Handle `\cref` and `\sep` (Wikiwide).
2842 + Support `\smartcite` and `\Smartcite` from biblatex.
2844 * HTML reader:
2846 + Retain display type of MathML output (#1719, Matthew Pickering).
2847 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
2848 + Make `embed` tag either block or inline (#1756).
2850 * DocBook reader:
2852 + Handle `keycombo`, `keycap` (#1815).
2853 + Get string content in inner tags for literal elements (#1816).
2854 + Handle `menuchoice` elements better, with a `>` between (#1817).
2855 + Include `id` on section headers (#1818).
2856 + Document/test "type" as implemented (Brian O'Sullivan).
2857 + Add support for calloutlist and callout (Brian O'Sullivan).
2858 We treat a calloutlist as a bulleted list. This works well in practice.
2859 + Add support for `classname` (Bryan O'Sullivan).
2861 * Docx reader:
2863 + Fix window path for image lookup (Jesse Rosenthal).
2864 Don't use os-sensitive "combine", since we always want the paths in our
2865 zip-archive to use forward-slashes.
2866 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
2867 When users number their headers, Word understands that as a single item
2868 enumerated list. We make the assumption that such a list is, in fact,
2869 a header.
2870 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
2871 There could be new top-level headers after making lists, so we have to
2872 rewrite links after that.
2873 + Use polyglot header list (Jesse Rosenthal).
2874 We're just keeping a list of header formats that different languages
2875 use as their default styles. At the moment, we have English, German,
2876 Danish, and French. We can continue to add to this.
2877 This is simpler than parsing the styles file, and perhaps less
2878 error-prone, since there seems to be some variations, even within a
2879 language, of how a style file will define headers.
2880 + Remove header class properly in other langs (Jesse Rosenthal).
2881 When we encounter one of the polyglot header styles, we want to remove
2882 that from the par styles after we convert to a header. To do that, we
2883 have to keep track of the style name, and remove it appropriately.
2884 + Account for external link URLs with anchors. Previously, if a URL
2885 had an anchor, the reader would incorrectly identify it as an
2886 internal link and return only the anchor as URL. (Caleb McDaniel)
2887 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
2889 * Org reader:
2891 + Added state changing blanklines (Jesse Rosenthal).
2892 This allows us to emphasize at the beginning of a new paragraph (or, in
2893 general, after blank lines).
2894 + Fixed bug with bulleted lists:
2896 - a
2897 - b
2898 * c
2900 was being parsed as a list, even though an unindented `*`
2901 should make a heading. See
2902 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
2903 + Org reader: absolute, relative paths in link (#1741, Albert
2904 Krewinkel). The org reader was too restrictive when parsing links;
2905 some relative links and links to files given as absolute paths
2906 were not recognized correctly.
2907 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
2908 This is important for use in gitit, which uses empty links
2909 for wikilinks.
2910 + Respect indent when parsing Org bullet lists (#1650, Timothy
2911 Humphries). Fixes issue with top-level bullet list parsing.
2912 + Fix indent issue for definition lists (Timothy Humphries,
2913 see #1650, #1698, #1680).
2914 + Parse multi-inline terms correctly in definition list (#1649,
2915 Matthew Pickering).
2916 + Fix rules for emphasis recognition (Albert Krewinkel).
2917 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
2918 strings. This is wrong, as `,` and `'` are forbidden border chars and
2919 may not occur on the inner border of emphasized text.
2920 + Drop COMMENT document trees (Albert Krewinkel).
2921 Document trees under a header starting with the word `COMMENT` are
2922 comment trees and should not be exported. Those trees are dropped
2923 silently (#1678).
2924 + Properly handle links to `file:target` (Albert Krewinkel).
2925 Org links like `[[file:target][title]]` were not handled correctly,
2926 parsing the link target verbatim. The org reader is changed such that
2927 the leading `file:` is dropped from the link target (see #756, #1812).
2928 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
2929 Org supports special symbols which can be included using LaTeX syntax,
2930 but are actually MathML entities. Examples for this are
2931 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
2932 or `\copy` (the copyright sign ©)
2934 * EPUB reader:
2936 + URI handling improvements. Now we outsource most of the work to
2937 `fetchItem'`. Also, do not include queries in file extensions (#1671).
2939 * LaTeX writer:
2941 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
2942 + Handle consecutive linebreaks (#1733).
2943 + Protect graphics in headers (Jesse Rosenthal).
2944 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
2945 + Put `~` before header in list item text (Jesse Rosenthal).
2946 Because of the built-in line skip, LaTeX can't handle a section header
2947 as the first element in a list item.
2948 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
2949 + Better handling of display math in simple tables (#1754).
2950 We convert display math to inline math in simple tables,
2951 since LaTeX can't deal with display math in simple tables.
2952 + Escape spaces in code (#1694, Bjorn Buckwalter).
2954 * MediaWiki writer:
2956 + Fixed links with URL = text. Previously these were rendered as bare
2957 words, even if the URL was not an absolute URL (#1825).
2959 * ICML writer:
2961 + Don't force all citations into footnotes.
2963 * RTF writer:
2965 + Add blankline at end of output (#1732, Matthew Pickering).
2967 * RST writer:
2969 + Ensure blank line after figure.
2970 + Avoid exces whitespace after last list item (#1777).
2971 + Wrap line blocks with spaces before continuations (#1656).
2972 + Fixed double-rendering of footnotes in RST tables (#1769).
2974 * DokuWiki writer:
2976 + Better handling of block quotes. This change ensures that
2977 multiple paragraph blockquotes are rendered using native `>`
2978 rather than as HTML (#1738).
2979 + Fix external images (#1739). Preface relative links with ":",
2980 absolute URIs without. (Timothy Humphries)
2982 * HTML writer:
2984 + Use protocol-relative URL for mathjax.
2985 + Put newline btw img and caption paragraph.
2986 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
2987 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
2988 This adds `KaTeX` to `HTMLMathMethod` (API change).
2989 + Don't double render when `email-obfuscation=none` (#1625, Matthew
2990 Pickering).
2991 + Make header attributes work outside top level (#1711).
2992 Previously they only appeared on top level header elements.
2993 Now they work e.g. in blockquotes.
2995 * ODT writer:
2997 + Correctly handle images without extensions (#1729).
2998 + Strip querystring in ODT write (#1682, Todd Sifleet).
3000 * FB2 writer:
3002 + Add newline to output.
3004 * EPUB writer:
3006 + Don't add `sourceURL` to absolute URIs (#1669).
3007 + Don't use unsupported `opf:title-type` for epub2.
3008 + Include "landmarks" section in nav document for epub3 (#1757).
3009 + Removed playOrder from navpoint elements in ncx file (#1760).
3010 These aren't required, and they make manual modification of epubs
3011 difficult.
3012 + Extract title even from structured title.
3013 + Don't include nav node in spine unless `--toc` was requested.
3014 Previously we included it in the spine with `linear="no"`, leading
3015 to odd results in some readers (#1593).
3016 + Fixed absolute URI detection (#1672).
3017 + Correctly resolve relative URIs (#1671).
3018 + Use regular page template for `nav.xhtml`, including doctype (#1759).
3020 * Docx writer:
3022 + Put docx table captions above tables (#1641, Nikolay Yakimov).
3023 + Get the page width from the reference docx file, and use
3024 it to scale images that are too large to fit (Grégory Bataille).
3025 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
3026 are inferred based on `<w:name val="heading #">` fallback, if there
3027 are no en-US "Heading#" styles
3028 + Look in user data dir for archive `reference.docx`.
3029 + Renumber header and footer relationships to avoid collisions (Jesse
3030 Rosenthal). We previously took the old relationship names of the
3031 headers and footer in secptr. That led to collisions. We now make
3032 a map of availabl names in the relationships file, and then rename
3033 in secptr.
3035 * ConTeXt writer:
3037 + Add function toLabel (Mark Szepieniec).
3038 This function can be used to sanitize reference labels so that
3039 they do not contain any of the illegal characters \#[]",{}%()|= .
3040 Currently only Links have their labels sanitized, because they
3041 are the only Elements that use passed labels.
3043 * `Text.Pandoc.Shared`:
3045 + Moved import of `toChunks` outside of CPP conditional (#1590).
3046 + Fix `inDirectory` to reset to the original directory in case
3047 an exception occurs (Freiric Barral).
3049 * Templates:
3051 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
3052 Thanks to bluebirch.
3053 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
3054 (#1616).
3055 + LaTeX template: Add shorthands=off to babel options (#1648).
3056 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
3057 This aids styling, making it possible for example to set 0 margins
3058 on the title page (#1758).
3059 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
3060 Previously we just expected 'title', 'subtitle', 'author', 'date'.
3061 Now we still support those, but also support the format recommended
3062 for epub metadata in the pandoc README:
3064 ---
3065 title:
3066 - type: main
3067 text: My Book
3068 - type: subtitle
3069 text: An investigation of metadata
3070 creator:
3071 - role: author
3072 text: John Smith
3073 - role: editor
3074 text: Sarah Jones
3075 identifier:
3076 - scheme: DOI
3077 text: doi:10.234234.234/33
3078 publisher: My Press
3079 rights: (c) 2007 John Smith, CC BY-NC
3080 ...
3082 * `Text.Pandoc.Templates.getDefaultTemplate`:
3083 don't fail when called with "fb2" (#1660).
3085 * `Text.Pandoc.Parsing`:
3087 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
3088 For example: `$x = \text{the $n$th root of $y$}` (#1677).
3089 + Change `parseFromString` to fail if not all input is consumed.
3090 (Matthew Pickering)
3091 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
3092 used by more readers (API change, Daniel Bergey).
3094 * `Text.Pandoc.Pretty`:
3096 + Improve performance of `realLength` (Matthew Pickering).
3097 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
3098 were getting at the end of markdown fragments (as well as rst, org,
3099 etc.) (#1705).
3101 * `Text.Pandoc.MIME`:
3103 + Add mime type for WebVTT (Jason Ronallo).
3104 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
3105 This is needed for epub3 validation.
3107 * `Text.Pandoc.MediaBag`:
3109 + Fix Windows specific path problems (#1597).
3111 * `Text.Pandoc.Shared`:
3113 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
3115 * Link the test suite using `-threaded`.
3116 This allows the test suite to be run using `+RTS -N`.
3118 * Added `network` dependency under `network-uri` flag in test section.
3120 * Give better error messages when someone tries to convert from
3121 pdf, doc, odt (#1683).
3123 * Added `track` to list of tags treated by `--self-contained` (#1664).
3125pandoc (1.13.1)
3127 * Fixed `--self-contained` with Windows paths (#1558).
3128 Previously `C:\foo.js` was being wrongly interpreted as a URI.
3130 * HTML reader: improved handling of tags that can be block or inline.
3131 Previously a section like this would be enclosed in a paragraph,
3132 with RawInline for the video tags (since video is a tag that can
3133 be either block or inline):
3135 <video controls="controls">
3136 <source src="../videos/test.mp4" type="video/mp4" />
3137 <source src="../videos/test.webm" type="video/webm" />
3138 <p>
3139 The videos can not be played back on your system.<br/>
3140 Try viewing on Youtube (requires Internet connection):
3141 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
3142 Youtube</a>.
3143 </p>
3144 </video>
3146 This change will cause the video and source tags to be parsed
3147 as RawBlock instead, giving better output.
3148 The general change is this: when we're parsing a "plain" sequence
3149 of inlines, we don't parse anything that COULD be a block-level tag.
3151 * Docx reader:
3153 + Be sensitive to user styles. Note that "Hyperlink" is
3154 "blacklisted," as we don't want the default underline styling to be
3155 inherited by all links by default (Jesse Rosenthal).
3156 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
3157 This makes to docx reader's native output fit with the way the markdown
3158 reader understands its markdown output.
3160 * Textile writer: Extended the range of cases where native textile
3161 tables will be used (as opposed to raw HTML): we now handle any
3162 alignment type, but only for simple tables with no captions.
3164 * Txt2Tags reader:
3166 + Header is now parsed only if standalone flag is set (Matthew Pickering).
3167 + The header is now parsed as meta information. The first line is the
3168 `title`, the second is the `author` and third line is the `date`
3169 (Matthew Pickering).
3170 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
3171 + Fixed crash when reading from stdin.
3173 * EPUB writer: Don't use page-progression-direction in EPUB2, which
3174 doesn't support it. Also, if page-progression-direction not specified
3175 in metadata, don't include the attribute even in EPUB3; not including it
3176 is the same as including it with the value "default", as we did before.
3177 (#1550)
3179 * Org writer: Accept example lines with indentation at the beginning
3180 (Calvin Beck).
3182 * DokuWiki writer:
3184 + Refactor to use Reader monad (Matthew Pickering).
3185 + Avoid using raw HTML in table cells; instead, use `\\`
3186 instead of newlines (Jesse Rosenthal).
3187 + Properly handle HTML table cell alignments, and use spacing
3188 to make the tables look prettier (#1566).
3190 * Docx writer:
3192 + Bibliography entries get `Bibliography` style (#1559).
3193 + Implement change tracking (Jesse Rosenthal).
3195 * LaTeX writer:
3197 + Fixed a bug that caused a table caption to repeat across all pages
3198 (Jose Luis Duran).
3199 + Improved vertical spacing in tables and made it customizable using
3200 standard lengths set by booktab. See
3201 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
3202 (Jose Luis Duran).
3203 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
3204 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
3205 + Made horizontal rules more flexible (Jose Luis Duran).
3207 * Text.Pandoc.MIME:
3209 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
3210 Code cleanups (Artyom Kazak).
3212 * Templates:
3214 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
3215 thanks lemzwerg).
3217 * Improved OSX build procedure.
3219 * Added `network-uri` flag, to deal with split of `network-uri` from
3220 `network`.
3222 * Fix build dependencies for the `trypandoc` flag, so that they are
3223 ignored if `trypandoc` flag is set to False (Gabor Pali).
3225 * Updated README to remove outdated claim that `--self-contained`
3226 looks in the user data directory for missing files.
3228pandoc (1.13.0.1)
3230 * Docx writer:
3232 + Fixed regression which bungled list numbering (#1544), causing
3233 all lists to appear as basic ordered lists.
3234 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
3235 Added a property to all table rows where the sum of column widths
3236 is specified in pct (fraction of 5000). This helps persuade Word
3237 to lay out the table with the widths we specify.
3239 * Fixed a bug in Windows 8 which caused pandoc not to find the
3240 `pandoc-citeproc` filter (#1542).
3242 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
3243 Most significantly, the reader now uses Builder, leading to some
3244 performance improvements.
3246 * HTML reader: Parse appropriately styled span as SmallCaps.
3248 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
3249 `superscript`, and `subscript` extensions, respectively, are
3250 deactivated (#1127).
3252 * Added `trypandoc` flag to build CGI executable used in the online
3253 demo.
3255 * Makefile: Added 'quick', 'osxpkg' targets.
3257 * Updated README in templates to indicate templates license.
3258 The templates are dual-licensed, BSD3 and GPL2+.
3260pandoc (1.13)
3262 [new features]
3264 * Added `docx` as an input format (Jesse Rosenthal). The docx
3265 reader includes conversion of native Word equations to pandoc
3266 LaTeX `Math` elements. Metadata is taken from paragraphs at the
3267 beginning of the document with styles `Author`, `Title`, `Subtitle`,
3268 `Date`, and `Abstract`.
3270 * Added `epub` as an input format (Matthew Pickering). The epub
3271 reader includes conversion of MathML to pandoc LaTeX `Math`
3272 elements.
3274 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
3275 Txt2tags is a lightweight markup format described at
3276 <http://txt2tags.org/>.
3278 * Added `dokuwiki` as an output format (Clare Macrae).
3280 * Added `haddock` as an output format.
3282 * Added `--extract-media` option to extract media contained in a zip
3283 container (docx or epub) while adjusting image paths to point to the
3284 extracted images.
3286 * Added a new markdown extension, `compact_definition_lists`, that
3287 restores the syntax for definition lists of pandoc 1.12.x, allowing
3288 tight definition lists with no blank space between items, and
3289 disallowing lazy wrapping. (See below under behavior changes.)
3291 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
3293 * Added extensions `native_spans` and `native_divs` to activate
3294 parsing of material in HTML span or div tags as Pandoc Span
3295 inlines or Div blocks.
3297 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
3298 Textile, and MediaWiki readers. This is an option intended
3299 for debugging parsing problems; ordinary users should not need
3300 to use it.
3302 [behavior changes]
3304 * Changed behavior of the `markdown_attribute` extension, to bring
3305 it in line with PHP markdown extra and multimarkdown. Setting
3306 `markdown="1"` on an outer tag affects all contained tags,
3307 recursively, until it is reversed with `markdown="0"` (#1378).
3309 * Revised markdown definition list syntax (#1429). Both the reader
3310 and writer are affected. This change brings pandoc's definition list
3311 syntax into alignment with that used in PHP markdown extra and
3312 multimarkdown (with the exception that pandoc is more flexible about
3313 the definition markers, allowing tildes as well as colons). Lazily
3314 wrapped definitions are now allowed. Blank space is required
3315 between list items. The space before a definition is used to determine
3316 whether it is a paragraph or a "plain" element. **WARNING: This change
3317 may break existing documents!** Either check your documents for
3318 definition lists without blank space between items, or use
3319 `markdown+compact_definition_lists` for the old behavior.
3321 * `.numberLines` now works in fenced code blocks even if no language
3322 is given (#1287, jgm/highlighting-kate#40).
3324 * Improvements to `--filter`:
3326 + Don't search PATH for a filter with an explicit path.
3327 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
3328 the system path, even if there was a `caps.py` in the working directory.
3329 + Respect shebang if filter is executable (#1389).
3330 + Don't print misleading error message.
3331 Previously pandoc would say that a filter was not found,
3332 even in a case where the filter had a syntax error.
3334 * HTML reader:
3336 + Parse `div` and `span` elements even without `--parse-raw`,
3337 provided `native_divs` and `native_spans` extensions are set.
3338 Motivation: these now generate native pandoc Div and Span
3339 elements, not raw HTML.
3340 + Parse EPUB-specific elements if the `epub_html_exts`
3341 extension is enabled. These include `switch`, `footnote`,
3342 `rearnote`, `noteref`.
3344 * Org reader:
3346 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
3347 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
3348 `\cite{Coffee}`), can be used without any further escaping (Albert
3349 Krewinkel).
3351 * Textile reader and writer:
3353 + The `raw_tex` extension is no longer set by default. You can
3354 enable it with `textile+raw_tex`.
3356 * DocBook reader:
3358 + Support `equation`, `informalequation`, `inlineequation` elements with
3359 `mml:math` content. This is converted into LaTeX and put into a Pandoc
3360 Math inline.
3362 * Revised `plain` output, largely following the style of Project
3363 Gutenberg:
3365 + Emphasis is rendered with `_underscores_`, strong emphasis
3366 with ALL CAPS.
3367 + Headings are rendered differently, with space to set them off,
3368 not with setext style underlines. Level 1 headers are ALL CAPS.
3369 + Math is rendered using unicode when possible, but without the
3370 distracting emphasis markers around variables.
3371 + Footnotes use a regular `[n]` style.
3373 * Markdown writer:
3375 + Horizontal rules are now a line across the whole page.
3376 + Prettier pipe tables. Columns are now aligned (#1323).
3377 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
3378 no longer emits any raw HTML, including span and div tags
3379 generated by Span and Div elements.
3380 + Use span with style for `SmallCaps` (#1360).
3382 * HTML writer:
3384 + Autolinks now have class `uri`, and email autolinks have class
3385 `email`, so they can be styled.
3387 * Docx writer:
3389 + Document formatting is carried over from `reference.docx`.
3390 This includes margins, page size, page orientation, header,
3391 and footer, including images in headers and footers.
3392 + Include abstract (if present) with `Abstract` style (#1451).
3393 + Include subtitle (if present) with `Subtitle` style, rather
3394 than tacking it on to the title (#1451).
3396 * Org writer:
3398 + Write empty span elements with an id attribute as org anchors.
3399 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
3401 * LaTeX writer:
3403 + Put table captions above tables, to match the conventional
3404 standard. (Previously they appeared below tables.)
3405 + Use `\(..\)` instead of `$..$` for inline math (#1464).
3406 + Use `\nolinkurl` in email autolinks. This allows them to be styled
3407 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
3408 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
3409 curly quotes in the PDF output (#1364).
3410 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
3411 do not appear before the overlays in which their markers appear
3412 (#1525).
3413 + Don't produce a `\label{..}` for a Div or Span element. Do produce
3414 a `\hyperdef{..}` (#1519).
3416 * EPUB writer:
3418 + If the metadata includes `page-progression-direction` (which can be
3419 `ltr` or `rtl`, the `page-progression-direction` attribute will
3420 be set in the EPUB spine (#1455).
3422 * Custom lua writers:
3424 + Custom writers now work with `--template`.
3425 + Removed HTML header scaffolding from `sample.lua`.
3426 + Made citation information available in lua writers.
3428 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
3429 adjacent `RawBlock`s when possible.
3431 [API changes]
3433 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
3435 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
3436 Pickering).
3438 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
3439 Pickering).
3441 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
3442 (Clare Macrae).
3444 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
3446 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
3447 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
3448 readers return a pair of a `Pandoc` document and a `MediaBag` with
3449 the media resources they contain. This can be extracted using
3450 `--extract-media`. Writers that incorporate media (PDF, Docx,
3451 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
3452 for resources in the `MediaBag` generated by the reader, in addition to
3453 the file system or web.
3455 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
3456 Renamed `readTeXMath'` to `texMathToInlines`.
3458 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
3459 `readers` now associates names of readers with `Reader`
3460 structures. This allows inclusion of readers, like the docx
3461 reader, that take binary rather than textual input.
3463 * `Text.Pandoc.Shared`:
3465 + Added `capitalize` (Artyom Kazak), and replaced uses of
3466 `map toUpper` (which give bad results for many languages).
3467 + Added `collapseFilePath`, which removes intermediate `.` and
3468 `..` from a path (Matthew Pickering).
3469 + Added `fetchItem'`, which works like `fetchItem` but searches
3470 a `MediaBag` before looking on the net or file system.
3471 + Added `withTempDir`.
3472 + Added `removeFormatting`.
3473 + Added `extractSpaces` (from HTML reader) and generalized its type
3474 so that it can be used by the docx reader (Matthew Pickering).
3475 + Added `ordNub`.
3476 + Added `normalizeInlines`, `normalizeBlocks`.
3477 + `normalize` is now `Pandoc -> Pandoc` instead of
3478 `Data a :: a -> a`. Some users may need to change their uses of
3479 `normalize` to the newly exported `normalizeInlines` or
3480 `normalizeBlocks`.
3482 * `Text.Pandoc.Options`:
3484 + Added `writerMediaBag` to `WriterOptions`.
3485 + Removed deprecated and no longer used `readerStrict` in
3486 `ReaderOptions`. This is handled by `readerExtensions` now.
3487 + Added `Ext_compact_definition_lists`.
3488 + Added `Ext_epub_html_exts`.
3489 + Added `Ext_native_divs` and `Ext_native_spans`.
3490 This allows users to turn off the default pandoc behavior of
3491 parsing contents of div and span tags in markdown and HTML
3492 as native pandoc Div blocks and Span inlines.
3494 * `Text.Pandoc.Parsing`:
3496 + Generalized `readWith` to `readWithM` (Matthew Pickering).
3497 + Export `runParserT` and `Stream` (Matthew Pickering).
3498 + Added `HasQuoteContext` type class (Matthew Pickering).
3499 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
3500 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
3501 `applyMacros` (Matthew Pickering).
3502 + Added custom `token` (Matthew Pickering).
3503 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
3504 track of the ending tag we're waiting for when we're parsing inside
3505 HTML block tags.
3506 + Added `stateMarkdownAttribute` to `ParserState`. This is used
3507 to keep track of whether the markdown attribute has been set in
3508 an enclosing tag.
3509 + Generalized type of `registerHeader`, using new type classes
3510 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
3511 Pickering). These allow certain common functions to be reused
3512 even in parsers that use custom state (instead of `ParserState`),
3513 such as the MediaWiki reader.
3514 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
3515 and generalized their types (Matthew Pickering).
3517 * `Text.Pandoc.Pretty`:
3519 + Added `nestle`.
3520 + Added `blanklines`, which guarantees a certain number of blank lines
3521 (and no more).
3523 [bug fixes]
3525 * Markdown reader:
3527 + Fixed parsing of indented code in list items. Indented code
3528 at the beginning of a list item must be indented eight spaces
3529 from the margin (or edge of the container), or four spaces
3530 from the list marker, whichever is greater.
3531 + Fixed small bug in HTML parsing with `markdown_attribute`, which
3532 caused incorrect tag nesting for input like
3533 `<aside markdown="1">*hi*</aside>`.
3534 + Fixed regression with intraword underscores (#1121).
3535 + Improved parsing of inline links containing quote characters (#1534).
3536 + Slight rewrite of `enclosure`/`emphOrStrong` code.
3537 + Revamped raw HTML block parsing in markdown (#1330).
3538 We no longer include trailing spaces and newlines in the
3539 raw blocks. We look for closing tags for elements (but without
3540 backtracking). Each block-level tag is its own `RawBlock`;
3541 we no longer try to consolidate them (though `--normalize` will do so).
3542 + Combine consecutive latex environments. This helps when you have
3543 two minipages which can't have blank lines between them (#690, #1196).
3544 + Support smallcaps through span.
3545 `<span style="font-variant:small-caps;">foo</span>` will be
3546 parsed as a `SmallCaps` inline, and will work in all output
3547 formats that support small caps (#1360).
3548 + Prevent spurious line breaks after list items (#1137). When the
3549 `hard_line_breaks` option was specified, pandoc would formerly
3550 produce a spurious line break after a tight list item.
3551 + Fixed table parsing bug (#1333).
3552 + Handle `c++` and `objective-c` as language identifiers in
3553 github-style fenced blocks (#1318).
3554 + Inline math must have nonspace before final `$` (#1313).
3556 * LaTeX reader:
3558 + Handle comments at the end of tables. This resolves the issue
3559 illustrated in <http://stackoverflow.com/questions/24009489>.
3560 + Correctly handle table rows with too few cells. LaTeX seems to
3561 treat them as if they have empty cells at the end (#241).
3562 + Handle leading/trailing spaces in `\emph` better.
3563 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
3564 so that we don't get things like `* hi *` in markdown output.
3565 Also applies to `\textbf` and some other constructions (#1146).
3566 + Don't assume preamble doesn't contain environments (#1338).
3567 + Allow (and discard) optional argument for `\caption` (James Aspnes).
3569 * HTML reader:
3571 + Fixed major parsing problem with HTML tables. Table cells were
3572 being combined into one cell (#1341).
3573 + Fixed performance issue with malformed HTML tables.
3574 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
3575 + Allow space between `<col>` and `</col>`.
3576 + Added `audio` and `source` in `eitherBlockOrInline`.
3577 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
3578 `blockTags` to `eitherBlockOrInline`.
3579 + `map` and `object` were mistakenly in both lists; they have been removed
3580 from `blockTags`.
3581 + Ignore `DOCTYPE` and `xml` declarations.
3583 * MediaWiki reader:
3585 + Don't parse backslash escapes inside `<source>` (#1445).
3586 + Tightened up template parsing.
3587 The opening `{{` must be followed by an alphanumeric or `:`.
3588 This prevents the exponential slowdown in #1033.
3589 + Support "Bild" for images.
3591 * DocBook reader:
3593 + Better handle elements inside code environments. Pandoc's document
3594 model does not allow structure inside code blocks, but at least this way
3595 we preserve the text (#1449).
3596 + Support `<?asciidoc-br?>` (#1236).
3598 * Textile reader:
3600 + Fixed list parsing. Lists can now start without an intervening
3601 blank line (#1513).
3602 + HTML block-level tags that do not start a line are parsed as
3603 inline HTML and do not interrupt paragraphs (as in RedCloth).
3605 * Org reader:
3607 + Make tildes create inline code (#1345). Also relabeled `code` and
3608 `verbatim` parsers to accord with the org-mode manual.
3609 + Respect `:exports` header argument in code blocks (Craig Bosma).
3610 + Fixed tight lists with sublists (#1437).
3612 * EPUB writer:
3614 + Avoid excess whitespace in `nav.xhtml`. This should improve
3615 TOC view in iBooks (#1392).
3616 + Fixed regression on cover image.
3617 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
3618 because the metadata id was not correct. Now we derive the id from the
3619 actual cover image filename, which we preserve rather than using
3620 "cover-image."
3621 + Keep newlines between block elements. This allows
3622 easier diff-ability (#1424).
3623 + Use `stringify` instead of custom `plainify`.
3624 + Use `renderTags'` for all tag rendering. This properly handles tags
3625 that should be self-closing. Previously `<hr/>` would appear in EPUB
3626 output as `<hr></hr>` (#1420).
3627 + Better handle HTML media tags.
3628 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
3629 can have only one dc:date, so only the first one is used.
3631 * LaTeX writer:
3633 + Correctly handle figures in notes. Notes can't contain figures in
3634 LaTeX, so we fake it to avoid an error (#1053).
3635 + Fixed strikeout + highlighted code (#1294).
3636 Previously strikeout highlighted code caused an error.
3638 * ConTeXt writer:
3640 + Improved detection of autolinks with URLs containing escapes.
3642 * RTF writer:
3644 + Improved image embedding: `fetchItem'` is now used to get the
3645 images, and calculated image sizes are indicated in the RTF.
3646 + Avoid extra paragraph tags in metadata (#1421).
3648 * HTML writer:
3650 + Deactivate "incremental" inside slide speaker notes (#1394).
3651 + Don't include empty items in the table of contents for
3652 slide shows. (These would result from creating a slide
3653 using a horizontal rule.)
3655 * MediaWiki writer:
3657 + Minor renaming of `st` prefixed names.
3659 * AsciiDoc writer:
3661 + Double up emphasis and strong emphasis markers in intraword
3662 contexts, as required by asciidoc (#1441).
3664 * Markdown writer:
3666 + Avoid wrapping that might start a list, blockquote, or header (#1013).
3667 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
3668 + Don't use braced attributes for fenced code (#1416).
3669 If `Ext_fenced_code_attributes` is not set, the first class
3670 attribute will be printed after the opening fence as a bare word.
3671 + Separate adjacent lists of the same kind with an HTML comment (#1458).
3673 * PDF writer:
3675 + Fixed treatment of data uris for images (#1062).
3677 * Docx writer:
3679 + Use Compact style for empty table cells (#1353).
3680 Otherwise we get overly tall lines when there are empty
3681 table cells and the other cells are compact.
3682 + Create overrides per-image for `media/` in reference docx.
3683 This should be somewhat more robust and cover more types of images.
3684 + Improved `entryFromArchive` to avoid an unneeded parse.
3685 + Section numbering carries over from reference.docx (#1305).
3686 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
3687 we assign numbers based on the list marker styles.
3689 * `Text.Pandoc.Options`:
3691 + Removed `Ext_fenced_code_attributes` from `markdown_github`
3692 extensions.
3694 * `Text.Pandoc.ImageSize`:
3696 + Use default instead of failing if image size not found
3697 in exif header (#1358).
3698 + ignore unknown exif header tag rather than crashing.
3699 Some images seem to have tag type of 256, which was causing
3700 a runtime error.
3702 * `Text.Pandoc.Shared`:
3704 + `fetchItem`: unescape URI encoding before reading local file (#1427).
3705 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
3706 doing mime lookup, to improve mime type guessing.
3707 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
3708 other things are treated as relative URIs if `sourceURL` is `Just _`,
3709 otherwise as file paths on the local file system.
3710 + `fetchItem` now properly handles links without a protocol (#1477).
3711 + `fetchItem` now escapes characters not allowed in URIs before trying
3712 to parse the URIs.
3713 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
3715 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
3716 needed to resolve relative URLs when we fetch resources (#750).
3718 * `Text.Pandoc.Parsing`
3720 + Simplified `dash` and `ellipsis` (#1419).
3721 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
3722 + Generalized functions to use `ParsecT` (Matthew Pickering).
3723 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
3724 Pickering).
3726 [template changes]
3728 * Added haddock template.
3729 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
3730 be "advisory" in HTML5, but kindlegen seems to require them.
3731 * EPUB3: Put title page in section with `epub:type="titlepage"`.
3732 * LaTeX: Made `\subtitle` work properly (#1327).
3733 * LaTeX/Beamer: remove conditional around date (#1321).
3734 * LaTeX: Added `lot` and `lof` variables, which can be set to
3735 get `\listoftables` and `\listoffigures` (#1407). Note that
3736 these variables can be set at the command line with `-Vlot -Vlof`
3737 or in YAML metadata.
3739 [under the hood improvements]
3741 * Rewrote normalize for efficiency (#1385).
3743 * Rewrote Haddock reader to use `haddock-library` (#1346).
3745 + This brings pandoc's rendering of haddock markup in line
3746 with the new haddock.
3747 + Fixed line breaks in `@` code blocks.
3748 + alex and happy are no longer build-depends.
3750 * Added `Text.Pandoc.Compat.Directory` to allow building against
3751 different versions of the `directory` library.
3753 + Added `Text.Pandoc.Compat.Except` to allow building against
3754 different verions of `mtl`.
3756 * Code cleanup in some writers, using Reader monad to avoid
3757 passing options parameter around (Matej Kollar).
3759 * Improved readability in `pandoc.hs`.
3761 * Miscellaneous code cleanups (Artyom Kazak).
3763 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
3764 Thompson).
3766 * Changed `http-conduit` flag to `https`. Depend on `http-client`
3767 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
3768 depends on `conduit` via `yaml`.)
3770 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
3771 This change to highlighting-kate means that PHP fragments no longer need
3772 to start with `<?php`. It also fixes a serious bug causing failures with
3773 ocaml and fsharp.
3775 * Require latest `texmath`. This fixes `\tilde{E}` and allows
3776 `\left` to be used with `]`, `)` etc. (#1319), among many other
3777 improvements.
3779 * Require latest `zip-archive`. This has fixes for unicode path names.
3781 * Added tests for plain writer.
3783 * `Text.Pandoc.Templates`:
3785 + Fail informatively on template syntax errors.
3786 With the move from parsec to attoparsec, we lost good error
3787 reporting. In fact, since we weren't testing for end of input,
3788 malformed templates would fail silently. Here we revert back to
3789 Parsec for better error messages.
3790 + Use `ordNub` (#1022).
3792 * Benchmarks:
3794 + Made benchmarks compile again (Artyom Kazak).
3795 + Fixed so that the failure of one benchmark does not prevent others
3796 from running (Artyom Kazak).
3797 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
3798 + Changed benchmark to use only the test suite, so that benchmarks
3799 run more quickly.
3801 * Windows build script:
3803 + Add `-windows` to file name.
3804 + Use one install command for pandoc, pandoc-citeproc.
3805 + Force install of pandoc-citeproc.
3807 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
3808 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
3809 will extract it into a folder named `SOMETHING.pkg`, which it
3810 will interpret as a defective package (#1308).
3812 * `README`:
3814 + Made headers for all extensions so they have IDs and can be
3815 linked to (Beni Cherniavsky-Paskin).
3816 + Fixed typos (Phillip Alday).
3817 + Fixed documentation of attributes (#1315).
3818 + Clarified documentation on small caps (#1360).
3819 + Better documentation for `fenced_code_attributes` extension
3820 (Caleb McDaniel).
3821 + Documented fact that you can put YAML metadata in a separate file
3822 (#1412).
3825pandoc (1.12.4.2)
3827 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
3829 * Shared: `addMetaValue` now behaves slightly differently:
3830 if both the new and old values are lists, it concatenates their
3831 contents to form a new list.
3833 * LaTeX reader:
3835 + Set `bibliography` in metadata from `\bibliography` or
3836 `\addbibresource` command.
3837 + Don't error on `%foo` with no trailing newline.
3839 * Org reader:
3841 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
3842 + Fix parsing of blank lines within blocks (Albert Krewinkel).
3843 + Support pandoc citation extension (Albert Krewinkel). This can
3844 be turned off by specifying `org-citations` as the input format.
3846 * Markdown reader:
3848 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
3849 other readers (Albert Krewinkel).
3851 * `Text.Pandoc.Parsing`:
3853 + Added `citeKey` (see above).
3854 + Added `HasLastStrPosition` type class and `updateLastStrPos`
3855 and `notAfterString` functions.
3857 * Updated copyright notices (Albert Krewinkel).
3859 * Added default.icml to data files so it installs with the package.
3861 * OSX package:
3863 + The binary is now built with options to ensure that it can be
3864 used with OSX 10.6+.
3865 + Moved OSX package materials to osx directory.
3866 + Added OSX package uninstall script, included in the zip container
3867 (thanks to Daniel T. Staal).
3869pandoc (1.12.4)
3871 * Made it possible to run filters that aren't executable (#1096).
3872 Pandoc first tries to find the executable (searching the path
3873 if path isn't given). If it fails, but the file exists and has
3874 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
3875 using the appropriate interpreter. This should make it easier to
3876 use filters on Windows, and make it more convenient for everyone.
3878 * Added Emacs org-mode reader (Albert Krewinkel).
3880 * Added InDesign ICML Writer (Mauro Bieg).
3882 * MediaWiki reader:
3884 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
3885 + Fixed bug in certain nested lists (#1213). If a level 2 list was
3886 followed by a level 1 list, the first item of the level 1 list
3887 would be lost.
3888 + Handle table rows containing just an HTML comment (#1230).
3890 * LaTeX reader:
3892 + Give better location information on errors, pointing to line
3893 numbers within included files (#1274).
3894 + LaTeX reader: Better handling of `table` environment (#1204).
3895 Positioning options no longer rendered verbatim.
3896 + Better handling of figure and table with caption (#1204).
3897 + Handle `@{}` and `p{length}` in tabular. The length is not actually
3898 recorded, but at least we get a table (#1180).
3899 + Properly handle `\nocite`. It now adds a `nocite` metadata
3900 field. Citations there will appear in the bibliography but not
3901 in the text (unless you explicitly put a `$nocite$` variable
3902 in your template).
3904 * Markdown reader:
3906 + Ensure that whole numbers in YAML metadata are rendered without
3907 decimal points. (This became necessary with changes to aeson
3908 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
3909 + Fixed regression on line breaks in strict mode (#1203).
3910 + Small efficiency improvements.
3911 + Improved parsing of nested `div`s. Formerly a closing `div` tag
3912 would be missed if it came right after other block-level tags.
3913 + Avoid backtracking when closing `</div>` not found.
3914 + Fixed bug in reference link parsing in `markdown_mmd`.
3915 + Fixed a bug in list parsing (#1154). When reading a raw list
3916 item, we now strip off up to 4 spaces.
3917 + Fixed parsing of empty reference link definitions (#1186).
3918 + Made one-column pipe tables work (#1218).
3920 * Textile reader:
3922 + Better support for attributes. Instead of being ignored, attributes
3923 are now parsed and included in Span inlines. The output will be a bit
3924 different from stock textile: e.g. for `*(foo)hi*`, we'll get
3925 `<em><span class="foo">hi</span></em>` instead of
3926 `<em class="foo">hi</em>`. But at least the data is not lost.
3927 + Improved treatment of HTML spans (%) (#1115).
3928 + Improved link parsing. In particular we now pick up on attributes.
3929 Since pandoc links can't have attributes, we enclose the whole link in
3930 a span if there are attributes (#1008).
3931 + Implemented correct parsing rules for inline markup (#1175, Matthew
3932 Pickering).
3933 + Use Builder (Matthew Pickering).
3934 + Fixed list parsing bug (#1500).
3935 + Don't allow inline formatting to extend over newlines.
3936 This matches the behavior of RedCarpet, avoids some ugly bugs,
3937 and improves performance.
3939 * DocBook reader:
3941 + Better treatment of `formalpara`. We now emit the title (if present)
3942 as a separate paragraph with boldface text (#1215).
3943 + Set metadata `author` not `authors`.
3944 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
3945 Matthew Pickering).
3946 + Converted current meta information parsing in DocBook to a more
3947 extensible version which is aware of the more recent meta
3948 representation (Matthew Pickering).
3950 * HTML reader:
3952 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
3953 (#1248).
3954 + Treat processing instructions & declarations as block. Previously
3955 these were treated as inline, and included in paragraph tags in HTML
3956 or DocBook output, which is generally not what is wanted (#1233).
3957 + Updated `closes` with rules from HTML5 spec.
3958 + Use Builder (Matthew Pickering, #1162).
3960 * RST reader:
3962 + Remove duplicate `http` in PEP links (Albert Krewinkel).
3963 + Make rst figures true figures (#1168, CasperVector)
3964 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
3965 rST parser now supports: all built-in rST roles, new role definition,
3966 role inheritance, though with some limitations.
3967 + Use `author` rather than `authors` in metadata.
3968 + Better handling of directives. We now correctly handle field
3969 lists that are indented more than three spaces. We treat an
3970 `aafig` directive as a code block with attributes, so it can be
3971 processed in a filter (#1212).
3973 * LaTeX writer:
3975 + Mark span contents with label if span has an ID (Albert Krewinkel).
3976 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
3977 + Handle line breaks in simple table cells (#1217).
3978 + Workaround for level 4-5 headers in quotes. These previously produced
3979 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
3980 This adds an `mbox{}` in these contexts to work around the problem.
3981 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
3982 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
3983 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
3984 ligature with LuaLaTeX but `\/` does.
3985 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
3987 * ConTeXt writer: Improved autolinks (#1270).
3989 * DocBook writer:
3991 + Improve handling of hard line breaks in Docbook writer
3992 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
3993 just for the newline character.
3994 + Don't let line breaks inside footnotes influence the enclosing
3995 paragraph (Neil Mayhew).
3996 + Distinguish tight and loose lists in DocBook output, using
3997 `spacing="compact"` (Neil Mayhew, #1250).
3999 * Docx writer: When needed files are not present in the user's
4000 `reference.docx`, fall back on the versions in the `reference.docx`
4001 in pandoc's data files. This fixes a bug that occurs when a
4002 `reference.docx` saved by LibreOffice is used. (#1185)
4004 * EPUB writer:
4006 + Include extension in epub ids. This fixes a problem with duplicate
4007 extensions for fonts and images with the same base name but different
4008 extensions (#1254).
4009 + Handle files linked in raw `img` tags (#1170).
4010 + Handle media in `audio` source tags (#1170).
4011 Note that we now use a `media` directory rather than `images`.
4012 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
4013 will both be incorporated into `content.opf` and the epub container.
4015 * HTML writer:
4017 + Add colgroup around col tags (#877). Also affects EPUB writer.
4018 + Fixed bug with unnumbered section headings. Unnumbered section
4019 headings (with class `unnumbered`) were getting numbers.
4020 + Improved detection of image links. Previously image links with
4021 queries were not recognized, causing `<embed>` to be used instead
4022 of `<img>`.
4024 * Man writer: Ensure that terms in definition lists aren't line wrapped
4025 (#1195).
4027 * Markdown writer:
4029 + Use proper escapes to avoid unwanted lists (#980). Previously we used
4030 0-width spaces, an ugly hack.
4031 + Use longer backtick fences if needed (#1206). If the content contains a
4032 backtick fence and there are attributes, make sure longer fences are
4033 used to delimit the code. Note: This works well in pandoc, but github
4034 markdown is more limited, and will interpret the first string of three
4035 or more backticks as ending the code block.
4037 * RST writer: Avoid stack overflow with certain tables (#1197).
4039 * RTF writer: Fixed table cells containing paragraphs.
4041 * Custom writer:
4043 + Correctly handle UTF-8 in custom lua scripts (#1189).
4044 + Fix bugs with lua scripts with mixed-case filenames and
4045 paths containing `+` or `-` (#1267). Note that `getWriter`
4046 in `Text.Pandoc` no longer returns a custom writer on input
4047 `foo.lua`.
4049 * AsciiDoc writer: Handle multiblock and empty table cells
4050 (#1245, #1246). Added tests.
4052 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
4054 * `Text.Pandoc.Shared`:
4056 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
4057 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
4058 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
4059 Jesse Rosenthal.
4060 + `openURL`: set proxy with value of http_proxy env variable (#1211).
4061 Note: proxies with non-root paths are not supported, due to
4062 limitations in `http-conduit`.
4064 * `Text.Pandoc.PDF`:
4066 + Ensure that temp directories deleted on Windows (#1192). The PDF is
4067 now read as a strict bytestring, ensuring that process ownership will
4068 be terminated, so the temp directory can be deleted.
4069 + Use `/` as path separators in a few places, even on Windows.
4070 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
4071 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
4072 + Changes to error reporting, to handle non-UTF8 error output.
4074 * `Text.Pandoc.Templates`:
4076 + Removed unneeded datatype context (Merijn Verstraaten).
4078 + YAML objects resolve to "true" in conditionals (#1133).
4079 Note: If `address` is a YAML object and you just have `$address$`
4080 in your template, the word `true` will appear, which may be
4081 unexpected. (Previously nothing would appear.)
4083 * `Text.Pandoc.SelfContained`:
4085 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
4086 the string.
4087 * It no longer looks in data files. This only made sense when we
4088 had copies of slidy and S5 code there.
4089 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
4090 + Handle `poster` attribute in `video` tags (#1188).
4092 * `Text.Pandoc.Parsing`:
4094 + Made `F` an instance of Applicative (#1138).
4095 + Added `stateCaption`.
4096 + Added `HasMacros`, simplified other typeclasses.
4097 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
4098 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
4099 + Changed the smart punctuation parser to return `Inlines`
4100 rather than `Inline` (Matthew Pickering).
4101 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
4102 from typeclasses of monads to typeclasses of states. This simplifies
4103 the instance definitions and provides more flexibility. Generalized
4104 type of `getOption` and added a default definition. Removed
4105 `askReaderOption`. Added `extractReaderOption`. Added
4106 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
4107 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
4108 `modifyHeaderMap`. Added `extractIdentifierList` and
4109 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
4110 for `getIdentifierList`, `putIdentifierList`, and
4111 `modifyIdentifierList`. The ultimate goal here is to allow different
4112 parsers to use their own, tailored parser states (instead of
4113 `ParserState`) while still using shared functions.
4115 * Template changes:
4117 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
4118 + LaTeX template: Add `linestretch` and `fontfamily` variables.
4119 + LaTeX template: Conditionalize author and date commands.
4120 + Beamer template: Consistent styles for figure and table captions
4121 (aaronwolen).
4122 + LaTeX and beamer template: Adjust widths correctly for oversized
4123 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
4124 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
4125 `upquote` only after `fontenc` (Yihui Xie).
4126 + Beamer template: Added caption package (#1200).
4127 + Beamer template: changes for better unicode handling (KarolS).
4128 + DocBook template: use `authorgroup` if there are authors.
4129 + revealjs template: Move `include-after` to end (certainlyakey).
4130 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
4132 * Bumped version bounds of dependencies.
4134 * Added a `--trace` command line option, for debugging backtracking
4135 bugs. So far this only works with the markdown reader.
4137 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
4139 * Updated travis script to test with multiple GHC versions.
4141 * Force failure of a Travis build if GHC produces warnings (Albert
4142 Krewinkel).
4144 * Add `.editorconfig` (Albert Krewinkel).
4145 See <http://editorconfig.org/> for details.
4147 * Give more useful error message if '-t pdf' is specified (#1155).
4149 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
4151 * Allow `html4` as a synonym of `html` as a reader (it already works
4152 as a writer).
4154 * README:
4156 + Added an explanation of how to use YAML metadata to
4157 force items to appear in the bibliography without citations in
4158 the text (like LaTeX `\nocite`).
4159 + Added note to `--bibtex/--natbib`: not for use in making PDF
4160 (#1194, thanks to nahoj).
4161 + Added explanatory notes about `--natbib` and `--biblatex`.
4162 + Added specification of legal syntax for citation keys.
4163 + Fixed variable defaults documentation (Albert Krewinkel).
4165 * Removed copyright statements for files that have been removed
4166 (Albert Krewinkel).
4168 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
4169 They aren't needed at runtime. We keep README and COPYRIGHT in data
4170 to ensure that they'll be available on all systems on which pandoc
4171 is installed.
4173 * Use cabal sandboxes in Windows build script.
4175pandoc (1.12.3.3)
4177 * To changes to source; recompiled tarball with latest alex and
4178 happy, so they will work with GHC 7.8.
4180pandoc (1.12.3.2)
4182 * Bumped version bounds for blaze-html, blaze-markup.
4184 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
4185 (#1124).
4187 * Fixed mediawiki ordered list parsing (#1122).
4189 * HTML reader: Fixed bug reading inline math with `$$` (#225).
4191 * Added support for LaTeX style literate Haskell code blocks in rST
4192 (Merijn Verstraaten).
4194pandoc (1.12.3.1)
4196 * Relaxed version constraint on binary, allowing the use of binary 0.5.
4198pandoc (1.12.3)
4200 * The `--bibliography` option now sets the `biblio-files` variable.
4201 So, if you're using `--natbib` or `--biblatex`, you can just use
4202 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
4204 * Don't run pandoc-citeproc filter if `--bibliography` is
4205 used together with `--natbib` or `--biblatex` (Florian Eitel).
4207 * Template changes:
4209 + Updated beamer template to include booktabs.
4210 + Added `abstract` variable to LaTeX template.
4211 + Put `header-includes` after `title` in LaTeX template (#908).
4212 + Allow use of `\includegraphics[size]` in beamer.
4213 This just required porting a macro definition from the default
4214 LaTeX template to the default beamer template.
4216 * `reference.docx`: Include `FootnoteText` style.
4217 Otherwise Word ignores the style, even when specified in the `pPr`.
4218 (#901)
4220 * `reference.odt`: Tidied `styles.xml`.
4222 * Relaxed version bounds for dependencies.
4224 * Added `withSocketsDo` around http conduit code in `openURL`,
4225 so it works on Windows (#1080).
4227 * Added `Cite` function to `sample.lua`.
4229 * Markdown reader:
4231 + Fixed regression in title blocks (#1089).
4232 If author field was empty, date was being ignored.
4233 + Allow backslash-newline hard line breaks in grid and
4234 multiline table cells.
4235 + Citation keys may now start with underscores, and may contain
4236 underscores adjacent to internal punctuation.
4238 * LaTeX reader:
4240 + Add support for `Verb` macro (jrnold) (#1090).
4241 + Support babel-style quoting: `` "`..."' ``.
4243 * Properly handle script blocks in strict mode. (That is,
4244 `markdown-markdown_in_html_blocks`.) Previously a spurious
4245 `<p>` tag was being added (#1093).
4247 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
4248 elements.
4250 * LaTeX writer:
4252 + Factored out function for table cell creation.
4253 + Better treatment of footnotes in tables.
4254 Notes now appear in the regular sequence, rather than in the
4255 table cell. (This was a regression in 1.10.)
4257 * HTML reader: Parse name/content pairs from meta tags as metadata.
4258 Closes #1106.
4260 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
4262 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
4264 * ODT writer: Use mathml for proper rendering of formulas.
4265 Note: LibreOffice's support for this seems a bit buggy. But
4266 it should be better than what we had before.
4268 * RST writer: Ensure no blank line after def in definition list (#992).
4270 * Markdown writer: Don't use tilde code blocks with braced attributes in
4271 `markdown_github` output. A consequence of this change is that the
4272 backtick form will be preferred in general if both are enabled. That
4273 is good, as it is much more widespread than the tilde form. (#1084)
4275 * Docx writer: Fixed problem with some modified reference docx files.
4276 Include `word/_rels/settings.xml.rels` if it exists, as well as other
4277 `rels` files besides the ones pandoc generates explicitly.
4279 * HTML writer:
4281 + With `--toc`, headers no longer link to themselves (#1081).
4282 + Omit footnotes from TOC entries. Otherwise we get doubled
4283 footnotes when headers have notes!
4285 * EPUB writer:
4287 + Avoid duplicate notes when headings contain notes.
4288 This arose because the headings are copied into the metadata
4289 "title" field, and the note gets rendered twice. We strip the
4290 note now before putting the heading in "title".
4291 + Strip out footnotes from toc entries.
4292 + Fixed bug with `--epub-stylesheet`. Now the contents of
4293 `writerEpubStylesheet` (set by `--epub-stylesheet`)
4294 should again work, and take precedence over a stylesheet specified
4295 in the metadata.
4297 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
4299 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
4300 with `//`.
4302 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
4303 we could only get size information for JFIF format, which led
4304 to squished images in Word documents. Closes #976.
4306 * Removed old `MarkdownTest_1.0.3` directory (#1104).
4308pandoc (1.12.2.1)
4310 * Markdown reader: Fixed regression in list parser, involving
4311 continuation lines containing raw HTML (or even verbatim raw HTML).
4313pandoc (1.12.2)
4315 * Metadata may now be included in YAML blocks in a markdown document.
4316 For example,
4318 ---
4319 title:
4320 - type: main
4321 text: My Book
4322 - type: subtitle
4323 text: An investigation of metadata
4324 creator:
4325 - role: author
4326 text: John Smith
4327 - role: editor
4328 text: Sarah Jones
4329 identifier:
4330 - scheme: DOI
4331 text: doi:10.234234.234/33
4332 publisher: My Press
4333 rights: (c) 2007 John Smith, CC BY-NC
4334 cover-image: img/mypic.jpg
4335 ...
4337 Metadata may still be provided using `--epub-metadata`; it will
4338 be merged with the metadata in YAML blocks.
4340 * EPUB writer:
4342 + `meta` tags are now used instead of `opf` attributes for EPUB3.
4343 + Insert "svg" property as needed in opf (EPUB 3).
4344 + Simplify `imageTypeOf` using `getMimeType`.
4345 + Add properties attribute to `cover-image` item for EPUB 3.
4346 + Don't include node for `cover.xhtml` if no cover!
4347 + Ensure that same identifier is used throughout (#1044).
4348 If an identifier is given in metadata, we use that; otherwise
4349 we generate a random uuid.
4350 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
4351 Fixes an issue with Calibre putting the cover at the end of the book
4352 if the spine has `linear="no"`. Apparently this is best practice
4353 for other converters as well:
4354 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
4355 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
4356 + Allow partial dates: `YYYY`, `YYYY-MM`.
4358 * Markdown writer: Fix rendering of tight sublists (#1050).
4359 Previously a spurious blank line was included after a tight sublist.
4361 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
4362 This is reported to be necessary to avoid an error from recent
4363 versions of Libre Office when files contain more than one image
4364 Thanks to wmanley for reporting and diagnosing the problem.
4366 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
4367 Instead, let this be set in the template, using `\setupfloat`.
4368 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
4370 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
4372 * Fixed bug with markdown intraword emphasis. Closes #1066.
4374 * Docbook writer: Hierarchicalize block content in metadata.
4375 Previously headers just disappeared from block-level metadata
4376 when it was used in templates. Now we apply the 'hierarchicalize'
4377 transformation. Note that a block headed by a level-2 header will
4378 turn into a `<sect1>` element.
4380 * OpenDocument writer: Skip raw HTML (#1035).
4381 Previously it was erroneously included as verbatim text.
4383 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
4384 This allows better control of formatting, since the `<a>`
4385 tags have a distinguishing class (#1049).
4387 * Docx writer:
4389 + Use mime type info returned by fetchItem.
4390 + Fixed core metadata (#1046).
4391 Don't create empty date nodes if no date given.
4392 Don't create multiple `dc:creator` nodes; instead separate by
4393 semicolons.
4394 + Fix URL for core-properties in `_rels/.rels` (#1046).
4396 * Plain writer: don't print `<span>` tags.
4398 * LaTeX writer:
4400 + Fix definition lists with internal links in terms (#1032).
4401 This fix puts braces around a term that contains an internal
4402 link, to avoid problems with square brackets.
4403 + Properly escape pdftitle, pdfauthor (#1059).
4404 + Use booktabs package for tables (thanks to Jose Luis Duran).
4406 * Updated beamer template. Now references should work properly
4407 (in a slide) when `--biblatex` or `--natbib` is used.
4409 * LaTeX reader:
4411 + Parse contents of curly quotes or matched `"` as quotes.
4412 + Support `\textnormal` as span with class `nodecor`.
4413 This is needed for pandoc-citeproc.
4414 + Improved citation parsing. This fixes a run-time error that occured
4415 with `\citet{}` (empty list of keys). It also ensures that empty keys
4416 don't get produced.
4418 * MediaWiki reader: Add automatic header identifiers.
4420 * HTML reader:
4422 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
4423 `--parse-raw`.
4424 + Recognize `svg` tags as block level content (thanks to MinRK).
4425 + Parse LaTeX math if appropriate options are set.
4427 * Markdown reader:
4429 + Yaml block must start immediately after `---`. If there's a blank
4430 line after `---`, we interpreted it as a horizontal rule.
4431 + Correctly handle empty bullet list items.
4432 + Stop parsing "list lines" when we hit a block tag.
4433 This fixes exponential slowdown in certain input, e.g.
4434 a series of lists followed by `</div>`.
4436 * Slides: Preserve `<div class="references">` in references slide.
4438 * `Text.Pandoc.Writer.Shared`:
4440 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
4441 attributes, leading to invalid HTML.
4442 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
4443 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
4444 encoded bytestring was returned. We now decode it so it's a proper
4445 image!
4447 * DocBook reader: Handle numerical attributes starting with decimal.
4448 Also use `safeRead` instead of `read`.
4450 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
4451 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
4452 in all the writers. Require `texmath >= 0.6.5.2`.
4454 * `Text.Pandoc.MIME`:
4456 + Add entry for `jfif`.
4457 + In looking up extensions, drop the encoding info.
4458 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
4460 * Templates: Changed how array variables are resolved. Previously if
4461 `foo` is an array (which might be because multiple values were set on
4462 the command line), `$foo$` would resolve to the concatenation of the
4463 elements of foo. This is rarely useful behavior. It has been changed
4464 so that the first value is rendered. Of course, you can still iterate
4465 over the values using `$for(foo)$`. This has the result that you can
4466 override earlier settings using `-V` by putting new values later on the
4467 command line, which is useful for many purposes.
4469 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
4471 * Allow "epub2" as synonym for "epub", "html4" for "html".
4473 * Don't look for slidy files in data files with `--self-contained`.
4475 * Allow `https:` command line arguments to be downloaded.
4477 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
4479pandoc (1.12.1)
4481 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
4482 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
4483 "c": "foo"}`. This new format is easier to work with outside of Haskell.
4484 Incidentally, "t" stands for "tag", "c" for "contents".
4486 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
4487 when converting to markdown (#1027).
4489 * LaTeX reader:
4491 + Ensure that preamble doesn't contribute to the text of
4492 the document.
4493 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
4494 properly, among others.
4495 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
4496 bibtex titles, since we need to know what was protected from
4497 titlecase conversions.
4499 * LaTeX writer:
4501 + Specially escape non-ascii characters in labels.
4502 Otherwise we can get compile errors and other bugs when
4503 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
4504 + Add link anchors for code blocks with identifiers (#1025).
4506 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
4507 It allows fragments identifiers.
4509 * Slide formats:
4511 + A Div element with class "notes" is treated as speaker
4512 notes. Currently beamer goes to `\note{}`, revealjs to
4513 `<aside class="notes">`, and the notes are simply suppressed in
4514 other formats (#925).
4515 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
4516 The old version caused a pause to be inserted before the first
4517 material on a slide. This has been fixed.
4518 + Removed data files for s5, slideous, slidy.
4519 Users of s5 and slideous will have to download the needed
4520 files, as has been documented for some time in the README.
4521 By default, slidy code will be sought on the web, as before.
4523 * HTML writer: Insert command to typeset mathjax only in slideous output
4524 (#966, #1012).
4526 * RST writer: Skip spaces after display math. Otherwise we get indentation
4527 problems, and part of the next paragraph may be rendered as part of the
4528 math.
4530 * OpenDocument writer: Fix formatting of strikeout code (#995),
4531 thanks to wilx. don't use `font-face-decls` variable.
4533 * Fixed test suite so it works with cabal sandboxes.
4535pandoc (1.12.0.2)
4537 * Removed `stringable` dependency.
4539pandoc (1.12.0.1)
4541 * Allow `--metadata` to be repeated for the same key to form a list.
4542 This also has the effect that `--bibliography` can be repeated,
4543 as before.
4545 * Handle boolean values in `--metadata`. Note that anything not parseable
4546 as a YAML boolean or string is treated as a literal string.
4547 You can get a string value with "yes", or any of the strings interpretable
4548 as booleans, by quoting it:
4550 -M boolvalue=yes -M stringvalue='"yes"'
4552 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
4553 option used.
4555 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
4556 in which docx files could not be read by some versions of Word
4557 and LibreOffice (#990).
4559 * Fixed a regression involving slide shows with bibliographies.
4560 The Div container around references messed up the procedure for carving
4561 a document into slides. So we now remove the surrounding Div in
4562 `prepSlides`.
4564 * More informative error message when a filter is not found in path.
4566 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
4567 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
4569 * Don't use unicode_collation in building OSX package:
4570 it adds something like 50MB of dependencies to the package.
4572 * Declare alex and happy as build-tools (#986).
4574pandoc (1.12)
4576 [new features]
4578 * Much more flexible metadata, including arbitrary fields and structured
4579 values. Metadata can be specified flexibly in pandoc markdown using
4580 YAML metadata blocks, which may occur anywhere in the document:
4582 ---
4583 title: Here is my title.
4584 abstract: |
4585 This is the abstract.
4587 1. It can contain
4588 2. block content
4589 and *inline markup*
4591 tags: [cat, dog, animal]
4592 ...
4594 Metadata fields automatically populate template variables.
4596 * Added `opml` (OPML) as input and output format. The `_note` attribute,
4597 used in OmniOutliner and supported by multimarkdown, is supported.
4598 We treat the contents as markdown blocks under a section header.
4600 * Added `haddock` (Haddock markup) as input format (David Lazar).
4602 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
4603 (Thanks to Jamie F. Olson for the initial patch.)
4604 Nested vertical stacks are used for hierarchical structure.
4605 Results for more than one level of nesting may be odd.
4607 * Custom writers can now be written in lua.
4609 pandoc -t data/sample.lua
4611 will load the script sample.lua and use it as a custom writer.
4612 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
4613 Note that pandoc embeds a lua interpreter, so lua need not be
4614 installed separately.
4616 * New `--filter/-F` option to make it easier to run "filters"
4617 (Pandoc AST transformations that operate on JSON serializations).
4618 Filters are always passed the name of the output format, so their
4619 behavior can be tailored to it. The repository
4620 <https://github.com/jgm/pandocfilters> contains
4621 a python module for writing pandoc filters in python, with
4622 a number of examples.
4624 * Added `--metadata/-M` option.
4625 This is like `--variable/-V`, but actually adds to metadata, not
4626 just variables.
4628 * Added `--print-default-data-file` option, which allows printing
4629 of any of pandoc's data files. (For example,
4630 `pandoc --print-default-data-file reference.odt` will print
4631 `reference.odt`.)
4633 * Added syntax for "pauses" in slide shows:
4635 This gives
4637 . . .
4639 me pause.
4641 * New markdown extensions:
4643 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
4644 rather than being treated as hard line breaks or spaces. This is useful
4645 for some East Asian languages, where spaces aren't used between words,
4646 but text is separated into lines for readability.
4647 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
4648 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
4649 only. (Default for `markdown_github`.) (#807)
4650 + `lists_without_preceding_blankline`: Allow lists to start without
4651 preceding blank space. (Default for `markdown_github`.) (#972)
4653 [behavior changes]
4655 * `--toc-level` no longer implies `--toc`.
4656 Reason: EPUB users who don't want a visible TOC may still want
4657 to set the TOC level for in the book navigation.
4659 * `--help` now prints in and out formats in alphabetical order, and
4660 says something about PDF output (#720).
4662 * `--self-contained` now returns less verbose output (telling you
4663 which URLs it is fetching, but not giving the full header). In
4664 addition, there are better error messages when fetching a URL fails.
4666 * Citation support is no longer baked in to core pandoc. Users who
4667 need citations will need to install and use a separate filter
4668 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
4669 `csl`, and `citation-abbreviations` from the metadata, though it
4670 may still be specified on the command line as before.
4672 * A `Cite` element is now created in parsing markdown whether or not
4673 there is a matching reference.
4675 * The `pandoc-citeproc` script will put the bibliography at the
4676 end of the document, as before. However, it will be put inside a `Div`
4677 element with class "references", allowing users some control
4678 over the styling of references. A final header, if any, will
4679 be included in the `Div`.
4681 * The markdown writer will not print a bibliography if the
4682 `citations` extension is enabled. (If the citations are formatted
4683 as markdown citations, it is redundant to have a bibliography,
4684 since one will be generated automatically.)
4686 * Previously we used to store the directory of the first input file,
4687 even if it was local, and used this as a base directory for finding
4688 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
4689 users. So we now look for images relative to the current
4690 working directory, even if the first file argument is in another
4691 directory. Note that this change may break some existing workflows.
4692 If you have been assuming that relative links will be interpreted
4693 relative to the directory of the first file argument, you'll need
4694 to make that the current directory before running pandoc. (#942)
4696 * Better error reporting in some readers, due to changes in `readWith`:
4697 the line in which the error occured is printed, with a caret pointing
4698 to the column.
4700 * All slide formats now support incremental slide view for definition lists.
4702 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
4703 Parse `:<math>...</math>` as display math. These notations are used with
4704 the MathJax MediaWiki extension.
4706 * All writers: template variables are set automatically from metadata
4707 fields. However, variables specified on the command line with
4708 `--variable` will completely shadow metadata fields.
4710 * If `--variable` is used to set many variables with the same name,
4711 a list is created.
4713 * Man writer: The `title`, `section`, `header`, and `footer` can now
4714 all be set individually in metadata. The `description` variable has been
4715 removed. Quotes have been added so that spaces are allowed in the
4716 title. If you have a title that begins
4718 COMMAND(1) footer here | header here
4720 pandoc will still parse it into a title, section, header, and
4721 footer. But you can also specify these elements explicitly (#885).
4723 * Markdown reader
4725 + Added support for YAML metadata blocks, which can come anywhere
4726 in the document (not just at the beginning). A document can contain
4727 multiple YAML metadata blocks.
4728 + HTML span and div tags are parsed as pandoc Span and Div elements.
4730 * Markdown writer
4732 + Allow simple tables to be printed as grid tables,
4733 if other table options are disabled. This means you can do
4734 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
4735 and all tables will render as grid tables.
4736 + Support YAML title block (render fields in alphabetical order
4737 to make output predictable).
4739 [API changes]
4741 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
4742 structured metadata. (Note: existing code that pattern-matches
4743 on `Meta` will have to be revised.) Metadata can now contain
4744 indefinitely many fields, with content that can be a string,
4745 a Boolean, a list of `Inline` elements, a list of `Block`
4746 elements, or a map or list of these.
4748 * A new generic block container (`Div`) has been added to `Block`,
4749 and a generic inline container (`Span`) has been added to `Inline`.
4750 These can take attributes. They will render in HTML, Textile,
4751 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
4752 extension) as HTML `<div>` and `<span>` elements; in other formats
4753 they will simply pass through their contents. But they can be
4754 targeted by scripts.
4756 * `Format` is now a newtype, not an alias for String.
4757 Equality comparisons are case-insensitive.
4759 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
4760 functions that are much faster than the SYB functions from
4761 `Text.Pandoc.Generic`. These functions are now used where possible
4762 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
4763 match the generic traversals `bottomUp` and `queryWith`.)
4765 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
4766 instances for the basic pandoc types. They use GHC generics and
4767 should be faster than the old JSON serialization using
4768 `Data.Aeson.Generic`.
4770 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
4771 This is a souped-up version of `readProcessWithErrorcode` that
4772 uses lazy bytestrings instead of strings and allows setting
4773 environment variables. (Used in `Text.Pandoc.PDF`.)
4775 * New module `Text.Pandoc.Readers.OPML`.
4777 * New module `Text.Pandoc.Writers.OPML`.
4779 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
4780 This is based on Haddock's own lexer/parser.
4782 * New module `Text.Pandoc.Writers.Custom`.
4784 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
4785 Either, for better error handling.
4787 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
4789 * Removed `stripTags` from `Text.Pandoc.XML`.
4791 * `Text.Pandoc.Templates`:
4793 + Simplified `Template` type to a newtype.
4794 + Removed `Empty`.
4795 + Changed type of `renderTemplate`: it now takes a JSON context
4796 and a compiled template.
4797 + Export `compileTemplate`.
4798 + Export `renderTemplate'` that takes a string instead of a compiled
4799 template.
4800 + Export `varListToJSON`.
4802 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
4804 * `Text.Pandoc`:
4806 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
4807 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
4808 `Text.Pandoc.JSON` should be used instead. (Compiling against
4809 pandoc-types instead of pandoc will also produce smaller executables.)
4810 * Removed the deprecated `jsonFilter` function.
4811 + Added `readJSON`, `writeJSON` to the API (#817).
4813 * `Text.Pandoc.Options`:
4815 + Added `Ext_lists_without_preceding_blankline`,
4816 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
4817 `Ext_yaml_metadataBlock` to `Extension`.
4818 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
4819 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
4820 first command-line argument is an absolute URL. (So, relative links
4821 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
4822 + All bibliography-related fields have been removed from
4823 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
4824 `readerReferences`, `readerCitationStyle`.
4826 * The `Text.Pandoc.Biblio` module has been removed. Users of the
4827 pandoc library who want citation support will need to use
4828 `Text.CSL.Pandoc` from `pandoc-citeproc`.
4831 [bug fixes]
4833 * In markdown, don't autolink a bare URI that is followed by `</a>`
4834 (#937).
4836 * `Text.Pandoc.Shared`
4838 + `openURL` now follows redirects (#701), properly handles `data:`
4839 URIs, and prints diagnostic output to stderr rather than stdout.
4840 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
4841 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
4842 + Fixed `readDefaultDataFile` so it works on Windows.
4843 + Better error messages for `readDefaultDataFile`. Instead of
4844 listing the last path tried, which can confuse people who are
4845 using `--self-contained`, so now we just list the data file name.
4846 + URL-escape pipe characters. Even though these are legal, `Network.URI`
4847 doesn't regard them as legal in URLs. So we escape them first (#535).
4849 * Mathjax in HTML slide shows: include explicit "Typeset" call.
4850 This seems to be needed for some formats (e.g. slideous) and won't
4851 hurt in others (#966).
4853 * `Text.Pandoc.PDF`
4855 + On Windows, create temdir in working directory, since the system
4856 temp directory path may contain tildes, which can cause
4857 problems in LaTeX (#777).
4858 + Put temporary output directory in `TEXINPUTS` (see #917).
4859 + `makePDF` tries to download images that are not found locally,
4860 if the first argument is a URL (#917).
4861 + If compiling with `pdflatex` yields an encoding error, offer
4862 the suggestion to use `--latex-engine=xelatex`.
4864 * Produce automatic header identifiers in parsing textile, RST,
4865 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
4867 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
4868 before treating as a filename. This fixes `--self-contained` when used
4869 with CSS files that include web fonts using the method described here:
4870 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
4871 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
4873 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
4874 percent-encoding, or a `+` character, as final punctuation.
4876 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
4877 EPS images properly sized on conversion to Word.
4879 * Slidy: Use slidy.js rather than slidy.js.gz.
4880 Reason: some browsers have trouble with the gzipped js file,
4881 at least on the local file system (#795).
4883 * Markdown reader
4885 + Properly handle blank line at beginning of input (#882).
4886 + Fixed bug in unmatched reference links. The input
4887 `[*infile*] [*outfile*]` was getting improperly parsed:
4888 "infile" was emphasized, but "*outfile*" was literal (#883).
4889 + Allow internal `+` in citation identifiers (#856).
4890 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
4891 + Do not generate blank title, author, or date metadata elements.
4892 Leave these out entirely if they aren't present.
4893 + Allow backtick code blocks not to be preceded by blank line (#975).
4895 * Textile reader:
4897 + Correctly handle entities.
4898 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
4899 in code blocks, rather than printing them verbatim. Parse attributes
4900 on `<pre>` tag for code blocks.
4902 * HTML reader: Handle non-simple tables (#893). Column widths are read from
4903 `col` tags if present, otherwise divided equally.
4905 * LaTeX reader
4907 + Support alltt environment (#892).
4908 + Support `\textasciitilde`, `\textasciicircum` (#810).
4909 + Treat `\textsl` as emphasized text reader (#850).
4910 + Skip positional options after `\begin{figure}`.
4911 + Support `\v{}` for hacek (#926).
4912 + Don't add spurious ", " to citation suffixes.
4913 This is added when needed in pandoc-citeproc.
4914 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
4915 + Improved support for accented characters (thanks to Scott Morrison).
4916 + Parse label after section command and set id (#951).
4918 * RST reader:
4920 + Don't insert paragraphs where docutils doesn't.
4921 `rst2html` doesn't add `<p>` tags to list items (even when they are
4922 separated by blank lines) unless there are multiple paragraphs in the
4923 list. This commit changes the RST reader to conform more closely to
4924 what docutils does (#880).
4925 + Improved metadata. Treat initial field list as metadata when
4926 standalone specified. Previously ALL fields "title", "author",
4927 "date" in field lists were treated as metadata, even if not at
4928 the beginning. Use `subtitle` metadata field for subtitle.
4929 + Fixed 'authors' metadata parsing in reST. Semicolons separate
4930 different authors.
4932 * MediaWiki reader
4934 + Allow space before table rows.
4935 + Fixed regression for `<ref>URL</ref>`.
4936 `<` is no longer allowed in URLs, according to the uri parser
4937 in `Text.Pandoc.Parsing`. Added a test case.
4938 + Correctly handle indented preformatted text without preceding
4939 or following blank line.
4940 + Fixed `|` links inside table cells. Improved attribute parsing.
4941 + Skip attributes on table rows. Previously we just crashed if
4942 rows had attributes, now we ignore them.
4943 + Ignore attributes on headers.
4944 + Allow `Image:` for images (#971).
4945 + Parse an image with caption in a paragraph by itself as a figure.
4947 * LaTeX writer
4949 + Don't use ligatures in escaping inline code.
4950 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
4951 wherein notes were numbered incorrectly in tables (#827).
4952 + Always create labels for sections. Previously the labels were only
4953 created when there were links to the section in the document (#871).
4954 + Stop escaping `|` in LaTeX math.
4955 This caused problems with array environments (#891).
4956 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
4957 `\` will cause major problems if unescaped.
4958 + Write id for code block to label attribute in LaTeX when listings
4959 is used (thanks to Florian Eitel).
4960 + Scale LaTeX tables so they don't exceed columnwidth.
4961 + Avoid problem with footnotes in unnumbered headers (#940).
4963 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
4964 to the slide if it is one of the header classes. It is recommended
4965 that your bibliography slide have this attribute:
4967 # References {.allowframebreaks}
4969 This causes multiple slides to be created if necessary, depending
4970 on the length of the bibliography.
4972 * ConTeXt writer: Properly handle tables without captions. The old output
4973 only worked in MkII. This should work in MkIV as well (#837).
4975 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
4977 * HTML writer:
4979 + Fixed `--no-highlight` (Alexander Kondratskiy).
4980 + Don't convert to lowercase in email obfuscation (#839).
4981 + Ensure proper escaping in `<title>` and `<meta>` fields.
4983 * AsciiDoc writer:
4985 + Support `--atx-headers` (Max Rydahl Andersen).
4986 + Don't print empty identifier blocks `([[]])` on headers (Max
4987 Rydahl Andersen).
4989 * ODT writer:
4991 + Fixing wrong numbered-list indentation in open document format
4992 (Alexander Kondratskiy) (#369).
4993 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
4994 + Minor changes for ODF 1.2 conformance (#939). We leave the
4995 nonconforming `contextual-spacing` attribute, which is provided by
4996 LibreOffice itself and seems well supported.
4998 * Docx writer:
5000 + Fixed rendering of display math in lists.
5001 In 1.11 and 1.11.1, display math in lists rendered as a new list
5002 item. Now it always appears centered, just as outside of lists,
5003 and in proper display math style, no matter how far indented the
5004 containing list item is (#784).
5005 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
5006 Previously we used `w:cr` (#873).
5007 + Use Compact style for Plain block elements, to
5008 differentiate between tight and loose lists (#775).
5009 + Ignore most components of `reference.docx`.
5010 We take the `word/styles.xml`, `docProps/app.xml`,
5011 `word/theme/theme1.xml`, and `word/fontTable.xml` from
5012 `reference.docx`, ignoring everything else. This should help
5013 with the corruption problems caused when different versions of
5014 Word resave the reference.docx and reorganize things.
5015 + Made `--no-highlight` work properly.
5017 * EPUB writer
5019 + Don't add `dc:creator` tags if present in EPUB metadata.
5020 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
5021 + Don't put blank title page in reading sequence.
5022 Set `linear="no"` if no title block. Addresses #797.
5023 + Download webtex images and include as data URLs.
5024 This allows you to use `--webtex` in creating EPUBs.
5025 Math with `--webtex` is automatically made self-contained.
5026 + In `data/epub.css`, removed highlighting styles (which
5027 are no longer needed, since styles are added by the HTML
5028 writer according to `--highlighting-style`). Simplified
5029 margin fields.
5030 + If resource not found, skip it, as in Docx writer (#916).
5032 * RTF writer:
5034 + Properly handle characters above the 0000-FFFF range.
5035 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
5036 + Fixed regression with RTF table of contents.
5037 + Only autolink absolute URIs. This fixes a regression, #830.
5039 * Markdown writer:
5041 + Only autolink absolute URIs. This fixes a regression, #830.
5042 + Don't wrap attributes in fenced code blocks.
5043 + Write full metadata in MMD style title blocks.
5044 + Put multiple authors on separate lines in pandoc titleblock.
5045 Also, don't wrap long author entries, as new lines get treated
5046 as new authors.
5048 * `Text.Pandoc.Templates`:
5050 + Fixed bug retrieving default template for markdown variants.
5051 + Templates can now contain "record lookups" in variables;
5052 for example, `author.institution` will retrieve the `institution`
5053 field of the `author` variable.
5054 + More consistent behavior of `$for$`. When `foo` is not a list,
5055 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
5056 So if `foo` resolves to "", no output should be produced.
5057 See pandoc-templates#39.
5059 * Citation processing improvements (now part of pandoc-citeproc):
5061 + Fixed `endWithPunct` The new version correctly sees a sentence
5062 ending in '.)' as ending with punctuation. This fixes a bug which
5063 led such sentences to receive an extra period at the end: '.).'.
5064 Thanks to Steve Petersen for reporting.
5065 + Don't interfere with Notes that aren't citation notes.
5066 This fixes a bug in which notes not generated from citations were
5067 being altered (e.g. first letter capitalized) (#898).
5068 + Only capitalize footnote citations when they have a prefix.
5069 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
5070 inserted before it before passing to citeproc-hs, so that bare numbers
5071 are treated as page numbers by default. A suffix not beginning with
5072 punctuation has a space added at the beginning (rather than a comma and
5073 space, as was done before for not-author-in-text citations).
5074 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
5075 properly, with '23' treated as a locator of type 'page'.
5076 + Many improvements to citation rendering, due to fixes in citeproc-hs
5077 (thanks to Andrea Rossato).
5078 + Warnings are issued for undefined citations, which are rendered
5079 as `???`.
5080 + Fixed hanging behavior when locale files cannot be found.
5082 [template changes]
5084 * DocBook: Use DocBook 4.5 doctype.
5086 * Org: '#+TITLE:' is inserted before the title.
5087 Previously the writer did this.
5089 * LaTeX: Changes to make mathfont work with xelatex.
5090 We need the mathspec library, not just fontspec, for this.
5091 We also need to set options for setmathfont (#734).
5093 * LaTeX: Use `tex-ansi` mapping for `monofont`.
5094 This ensures that straight quotes appear as straight, rather than
5095 being treated as curly. See #889.
5097 * Made `\includegraphics` more flexible in LaTeX template.
5098 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
5100 * LaTeX/Beamer: Added `classoption` variable.
5101 This is intended for class options like `oneside`; it may
5102 be repeated with different options. (Thanks to Oliver Matthews.)
5104 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
5106 * LaTeX: Added `biblio-style` variable (#920).
5108 * DZSlides: title attribute on title section.
5110 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
5112 [under-the-hood improvements]
5114 * Markdown reader:Improved strong/emph parsing, using the strategy of
5115 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
5116 no backtracking, and no keeping track of nesting levels. It will give
5117 different results in some edge cases, but these should not affect normal
5118 uses.
5120 * Added `Text.Pandoc.Compat.Monoid`.
5121 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
5122 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
5124 * Added `Text.Pandoc.Compat.TagSoupEntity`.
5125 This allows pandoc to compile with `tagsoup` 0.13.x.
5126 Thanks to Dirk Ullrich for the patch.
5128 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
5129 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
5130 handle simple math in bibliography fields.)
5132 * Added `Text.Pandoc.Writers.Shared` for shared functions used
5133 only in writers. `metaToJSON` is used in writers to create a
5134 JSON object for use in the templates from the pandoc metadata
5135 and variables. `getField`, `setField`, and `defField` are
5136 for working with JSON template contexts.
5138 * Added `Text.Pandoc.Asciify` utility module.
5139 This exports functions to create ASCII-only versions of identifiers.
5141 * `Text.Pandoc.Parsing`
5143 + Generalized state type on `readWith` (API change).
5144 + Specialize readWith to `String` input. (API change).
5145 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
5146 with `stateMeta` and `stateMeta'`.
5148 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
5149 bytestrings seemed to cause problems using pandoc on 64-bit Windows
5150 7/8 (#874).
5152 * Factored out `registerHeader` from markdown reader, added to
5153 `Text.Pandoc.Parsing`.
5155 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
5156 Reason: < 0.5 does not provide a monoid instance for Attribute,
5157 which is now needed by the HTML writer (#803).
5159 * Added `http-conduit` flag, which allows fetching https resources.
5160 It also brings in a large number of dependencies (`http-conduit`
5161 and its dependencies), which is why for now it is an optional flag
5162 (#820).
5164 * Added CONTRIBUTING.md.
5166 * Improved INSTALL instructions.
5168 * `make-windows-installer.bat`: Removed explicit paths for executables.
5170 * `aeson` is now used instead of `json` for JSON.
5172 * Set default stack size to 16M. This is needed for some large
5173 conversions, esp. if pandoc is compiled with 64-bit ghc.
5175 * Various small documentation improvements.
5176 Thanks to achalddave and drothlis for patches.
5178 * Removed comment that chokes recent versions of CPP (#933).
5180 * Removed support for GHC version < 7.2, since pandoc-types now
5181 requires at least GHC 7.2 for GHC generics.
5184pandoc (1.11.1)
5186 * Markdown reader:
5188 + Fixed regression in which parentheses were lost in link URLs.
5189 Added tests. Closes #786.
5190 + Better handling of unmatched double quotes in `--smart` mode.
5191 These occur frequently in fiction, since it is customary not to
5192 close quotes in dialogue if the speaker does not change between
5193 paragraphs. The unmatched quotes now get turned into literal
5194 left double quotes. (No `Quoted` inline is generated, however.)
5195 Closes #99 (again).
5197 * HTML writer: Fixed numbering mismatch between TOC and sections.
5198 `--number-offset` now affects TOC numbering as well
5199 as section numbering, as it should have all along. Closes #789.
5201 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
5202 as markdown citations, even if `--bibliography` was specified, unless
5203 `citation` extension is disabled. Now, formatted citations are always
5204 printed if `--bibliography` was specified. If you want to reformat
5205 markdown keeping pandoc markdown citations intact, don't use
5206 `--bibliography`. Note that citations parsed from LaTeX documents will
5207 be rendered as pandoc markdown citations when `--bibliography` is not
5208 specified.
5210 * ODT writer: Fixed regression leading to corrupt ODTs.
5211 This was due to a change in the `Show` instance for
5212 `Text.Pandoc.Pretty.Doc`. Closes #780.
5214 * Fixed spacing bugs involving code block attributes in
5215 RST reader and Markdown writer. Closes #763.
5217 * Windows package: Various improvements due to Fyodor Sheremetyev.
5219 + Automatically set installation path (Program Files or Local App Data).
5220 + Set system PATH environment variable when installing for all users.
5221 + Pandoc can installed for all users using the following command.
5222 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
5224 * Bumped QuickCheck version bound.
5226pandoc (1.11)
5228 * Added `--number-offset` option. (See README for description.)
5230 * Added `--default-image-extension` option. (See README for description.)
5232 * `--number-sections` behavior change: headers with class `unnumbered`
5233 will not be numbered.
5235 * `--version` now reports the default data directory.
5237 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
5239 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
5241 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
5242 a field for `Attr` rather than just `String`. (API change.)
5244 * Added `markdown_github` as input format. This was an accidental
5245 omission in 1.10.
5247 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
5248 change.)
5250 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
5252 * Beamer template:
5254 + Fixed captions with longtable. Thanks to Joost Kremers.
5255 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
5257 * LaTeX template:
5259 + Load microtype after fonts. Microtype needs to know
5260 what fonts are being used. Thanks to dfc for the patch.
5261 + Set `secnumdepth` to 5 if `--number-sections` specified.
5262 This yields behavior equivalent to the other writers, numbering
5263 level 4 and 5 headers too. Closes #753.
5265 * HTML reader:
5267 + Handle `<colgroup>` tag.
5268 + Preserve all header attributes.
5270 * LaTeX reader:
5272 + Parse `\hrule` as `HorizontalRule`. Closes #746.
5273 + Parse starred variants of `\section` etc. as headers with
5274 attribute `unnumbered`.
5275 + Read optional attributes in `lstlisting` and `Verbatim` environments.
5276 We convert these to pandoc standard names, e.g. `numberLines`
5277 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
5278 + Handle language attribute for lstlistings.
5279 + Better support for Verbatim and minted environments. Closes #763.
5281 * Markdown reader:
5283 + `-` in an attribute context = `.unnumbered`. The point of this
5284 is to provide a way to specify unnumbered headers in non-English
5285 documents.
5286 + Fixed bug parsing key/value attributes. Parsing failed if you
5287 had an unquoted attribute immediately before the final '}'.
5288 + Make backslash escape work in attributes.
5289 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
5290 pandoc will parse a MMD title block if it sees one, even if
5291 `pandoc_title_blocks` is enabled.
5292 + Refactoring: `litChar` now includes entities, so we don't need
5293 to use `fromEntities` e.g. on titles.
5294 + Allow spaces around borders in pipe tables. Closes #772.
5295 + Allow all punctuation in angle-bracket autolinks. Previously
5296 things like `----` were disallowed, because the uri parser
5297 treated them as trailing punctuation. Closes #768.
5298 + Make `implicit_header_references` work properly when
5299 headers are given explicit identifiers.
5300 + Check for tables before line blocks. Otherwise some pipe
5301 tables get treated as line blocks.
5302 + Allow `&` in emails (for entities).
5303 + Properly handle entities in titles and links. A markdown link
5304 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
5305 Closes #723.
5307 * Textile reader:
5309 + Handle attributes on headers.
5311 * LaTeX reader:
5313 + Add `fig:` as title for images with captions.
5314 This is needed for them to be rendered as figures. Closes #766.
5315 + Never emit an empty paragraph. See #761.
5316 + Handle `\caption` for images in figures. Closes #766.
5317 + Parse `\section*`, etc. as unnumbered sections.
5319 * HTML writer:
5321 + Support header attributes. The attributes go on
5322 the enclosing `section` or `div` tag if `--section-divs` is specified.
5323 + Fixed a regression (only now noticed) in html+lhs output.
5324 Previously the bird tracks were being omitted.
5326 * LaTeX writer:
5328 + Omit lists with no items to avoid LaTeX errors.
5329 + Support line numbering with `--listings`.
5330 If `numberLines` class is present, we add `numbers=left`;
5331 if `startFrom` is present, we add `firstnumber=`. (#763)
5333 * ConTeXt writer:
5335 + Removed `\placecontent`. This produced a duplicate toc,
5336 in conjunction with `\placelist`.
5337 + Use `\title`, `\subject` etc. for headers with
5338 `unnumbered` class.
5340 * Textile writer:
5342 + Support header attributes.
5344 * Markdown writer:
5346 + Use grid tables when needed, and if enabled. Closes #740.
5347 + Render citations as pandoc-markdown citations.
5348 Previously citations were rendered as citeproc-formatted citations
5349 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
5350 unless the `citations` extension is disabled.
5351 If you still want formatted citations in your markdown output,
5352 use `pandoc -t markdown-citations`.
5354 * RST writer:
5356 + Support `:number-lines:` in code blocks.
5358 * Docx writer:
5360 + Better treatment of display math. Display math inside a
5361 paragraph is now put in a separate paragraph, so it will render
5362 properly (centered and without extra blank lines around it).
5363 Partially addresses #742.
5364 + Content types and document rels xml files are now created from
5365 scratch, rather than being taken over from `reference.docx`.
5366 This fixes problems that arise when you edit the `reference.docx`
5367 with Word.
5368 + We also now encode mime types for each individual image rather
5369 than using defaults. This should allow us to handle a wider
5370 range of image types (including PDF). Closes #414.
5371 + Changed style names in `reference docx`.
5372 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
5373 The old names got changed by Word when the `reference.docx` was
5374 edited. Closes #414.
5376 * EPUB writer:
5378 + Fix section numbering. Previously the numbering restarted from 1
5379 in each chapter (with `--number-sections`), though the numbers in
5380 the table of contents were correct.
5381 + Headers with "unnumbered" attribute are not numbered. (Nor do they
5382 cause an increment in running numbering.) Section numbers now work
5383 properly, even when there is material before the first numbered section.
5384 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
5385 but `linear` is set to `no` unless the `--toc` option is specified.
5386 Include `<guide>` element in OPF. This should allow the TOC to
5387 be useable in Kindles when converted with kindlegen. Closes #773.
5389 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
5390 This dramatically reduces the speed penalty that comes from enabling the
5391 `autolink_bare_uris` extension. The penalty is still substantial (in one
5392 test, from 0.33s to 0.44s), but nowhere near what it used to be.
5393 The RST reader is also much faster now, as it autodetects URIs.
5395 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
5396 with class "unnumbered". Unnumbered sections get `[]` for their
5397 section number.
5399 * `Text.Pandoc.Pretty`:
5401 + Fixed `chomp` so it works inside `Prefixed` elements.
5402 + Changed `Show` instance so it is better for debugging.
5404 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
5406 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
5408 * Windows installer improvements:
5410 + The installer is now signed with a certificate (thanks to
5411 Fyodor Sheremetyev).
5412 + WiX is used instead of InnoSetup. The installer is now a
5413 standard msi file.
5414 + The version number is now auto-detected, and need not be
5415 updated separately.
5417 * OSX installer improvements:
5419 + The package and pandoc executable are now signed with a
5420 certificate (thanks to Fyodor Sheremetyev).
5421 + RTF version of license is used.
5422 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
5423 Closes #580.
5425 * Converted COPYING to markdown.
5427 * pandoc.cabal: Require latest versions of highlighting-kate,
5428 texmath, citeproc-hs, zip-archive.
5430pandoc (1.10.1)
5432 * Markdown reader: various optimizations, leading to a
5433 significant performance boost.
5435 * RST reader: Allow anonymous form of inline links:
5436 `` `hello <url>`__ `` Closes #724.
5438 * Mediawiki reader: Don't require newlines after tables.
5439 Thanks to jrunningen for the patch. Closes #733.
5441 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
5442 when output is LaTeX, and applied when it is another format.
5443 Partially addresses #730.
5445 * Markdown and RST readers: Added parser to `block` that skips blank
5446 lines. This fixes a subtle regression involving grid tables with
5447 empty cells. Also added test for grid table with empty cells.
5448 Closes #732.
5450 * RST writer: Use `.. code:: language` for code blocks with language.
5451 Closes #721.
5453 * DocBook writer: Fixed output for hard line breaks, adding a newline
5454 between `<literallayout>` tags.
5456 * Markdown writer: Use an autolink when link text matches url.
5457 Previously we also checked for a null title, but this
5458 test fails for links produced by citeproc-hs in bibliographies.
5459 So, if the link has a title, it will be lost on conversion
5460 to an autolink, but that seems okay.
5462 * Markdown writer: Set title, author, date variables as before.
5463 These are no longer used in the default template, since we use
5464 titleblock, but we set them anyway for those who use custom templates.
5466 * LaTeX writer: Avoid extra space at start/end of table cell.
5467 Thanks to Nick Bart for the suggestion of using @{}.
5469 * `Text.Pandoc.Parsing`:
5471 + More efficient version of `anyLine`.
5472 + Type of `macro` has changed; the parser now returns `Blocks`
5473 instead of `Block`.
5475 * Relaxed old-time version bound, allowing 1.0.*.
5477 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
5478 should create a symlink as described in the README.
5480pandoc (1.10.0.5)
5482 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
5483 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
5484 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
5486 * Markdown reader: Fixed bug with headerless grid tables.
5487 The 1.10 code assumed that each table header cell contains exactly one
5488 block. That failed for headerless tables (0) and also for tables with
5489 multiple blocks in a header cell. The code is fixed and tests provided.
5490 Thanks to Andrew Lee for pointing out the bug.
5492 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
5494 + Tilde code fences can again take a bare language string
5495 (`~~~ haskell`), not just curly-bracketed attributes
5496 (`~~~ {.haskell}`).
5497 + Backtick code blocks can take the curly-bracketed attributes.
5498 + Backtick code blocks don't *require* a language.
5499 + Consolidated code for the two kinds of fenced code blocks.
5501 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
5503 * Markdown writer: Use proportional font for email autolinks with
5504 obfuscation. Closes #714.
5506 * Corrected name of `blank_before_blockquote` in README. Closes #718.
5508 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
5509 The bug prevented an autolink at the end of a string (e.g.
5510 at the end of a line block line) from counting as a link. Closes #711.
5512 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
5513 This should work on Windows, unlike the TH solution with
5514 file-embed.
5516 * Eliminated use of TH in test suite.
5518 * Added `Text.Pandoc.Data` (non-exported) to hold the association
5519 list of embedded data files, if the `embed_data_files` flag is selected.
5520 This isolates the code that needs special treatment with file-embed or
5521 `hsb2hs`.
5523 * Changes to `make-windows-installer.bat`.
5525 + Exit batch file if any of the cabal-dev installs fail.
5526 + There's no longer any need to reinstall `highlighting-kate`.
5527 + Don't start with a `cabal update`; leave that to the user.
5528 + Force reinstall of pandoc.
5530 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
5531 Jens Petersen.
5533pandoc (1.10.0.4)
5535 * Fixed bug with escaped % in LaTeX reader. Closes #710.
5537pandoc (1.10.0.3)
5539 * Added further missing fb2 tests to cabal file.
5541pandoc (1.10.0.2)
5543 * Added fb2 tests to cabal file's extra-source-files.
5545pandoc (1.10.0.1)
5547 * Bump version bounds on test-framework packages.
5549pandoc (1.10)
5551 [new features]
5553 * New input formats: `mediawiki` (MediaWiki markup).
5555 * New output formats: `epub3` (EPUB v3 with MathML),
5556 `fb2` (FictionBook2 ebooks).
5558 * New `--toc-depth` option, specifying how many levels of
5559 headers to include in a table of contents.
5561 * New `--epub-chapter-level` option, specifying the header
5562 level at which to divide EPUBs into separate files.
5563 Note that this normally affects only performance, not the
5564 visual presentation of the EPUB in a reader.
5566 * Removed the `--strict` option. Instead of using `--strict`,
5567 one can now use the format name `markdown_strict` for either input
5568 or output. This gives more fine-grained control that `--strict`
5569 did, allowing one to convert from pandoc's markdown to strict
5570 markdown or vice versa.
5572 * It is now possible to enable or disable specific syntax
5573 extensions by appending them (with `+` or `-`) to the writer
5574 or reader name. For example,
5576 pandoc -f markdown-footnotes+hard_line_breaks
5578 disables footnotes and enables treating newlines as hard
5579 line breaks. The literate Haskell extensions are now implemented
5580 this way as well, using either `+lhs` or `+literate_haskell`.
5581 For a list of extension names, see the README under
5582 "Pandoc's Markdown."
5584 * The following aliases have been introduced for specific
5585 combinations of markdown extensions: `markdown_phpextra`,
5586 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
5587 work just like regular reader and writer names, and can be modified
5588 with extension modifiers as described above. (Note that conversion
5589 from one markdown dialect to another does not work perfectly,
5590 because there are differences in markdown parsers besides
5591 just the extensions, and because pandoc's internal document model is
5592 not rich enough to capture all of the extensions.)
5594 * New `--html-q-tags` option. The previous default was to use `<q>`
5595 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
5596 Moreover, they are not a robust way of typesetting quotes, since
5597 some user agents don't support them, and some CSS resets (e.g.
5598 bootstrap) prevent pandoc's quotes CSS from working properly.
5599 We now just insert literal quote characters by default in both
5600 `html` and `html5` output, but this option is provided for
5601 those who still want `<q>` tags.
5603 * The markdown reader now prints warnings (to stderr) about
5604 duplicate link and note references. Closes #375.
5606 * Markdown syntax extensions:
5608 + Added pipe tables. Thanks to François Gannaz for the initial patch.
5609 These conform to PHP Markdown Extra's pipe table syntax. A subset
5610 of org-mode table syntax is also supported, which means that you can
5611 use org-mode's nice table editor to create tables.
5613 + Added support for RST-style line blocks. These are
5614 useful for verse and addresses.
5616 + Attributes can now be specified for headers, using the same
5617 syntax as in code blocks. (However, currently only the
5618 identifier has any effect in most writers.) For example,
5620 # My header {#foo}
5622 See [the header above](#foo).
5624 + Pandoc will now act as if link references have been defined
5625 for all headers without explicit identifiers.
5626 So, you can do this:
5628 # My header
5630 Link to [My header].
5631 Another link to [it][My header].
5633 Closes #691.
5635 * LaTeX reader:
5637 + Command macros now work everywhere, including non-math.
5638 Environment macros still not supported.
5639 + `\input` now works, as well as `\include`. TEXINPUTS is used.
5640 Pandoc looks recursively into included files for more included files.
5642 [behavior changes]
5644 * The Markdown reader no longer puts the text of autolinks in a
5645 `Code` inline. This means that autolinks will no longer appear
5646 in a monospace font.
5648 * The character `/` can now appear in markdown citation keys.
5650 * HTML blocks in strict_markdown are no longer required to begin
5651 at the left margin. Technically this is required, according to
5652 the markdown syntax document, but `Markdown.pl` and other markdown
5653 processors are more liberal.
5655 * The `-V` option has been changed so that if there are duplicate
5656 variables, those specified later on the command line take precedence.
5658 * Tight lists now work in LaTeX and ConTeXt output.
5660 * The LaTeX writer no longer relien on the `enumerate` package.
5661 Instead, it uses standard LaTeX commands to change the list numbering
5662 style.
5664 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
5665 tables to be split over page boundaries.
5667 * The RST writer now uses a line block to render paragraphs containing
5668 linebreaks (which previously weren't supported at all).
5670 * The markdown writer now applies the `--id-prefix` to footnote IDs.
5671 Closes #614.
5673 * The plain writer no longer uses backslash-escaped line breaks
5674 (which are not very "plain").
5676 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
5677 Read bytestring and use `Text`'s decodeUtf8 instead of using
5678 `System.IO.hGetContents`. This way you get a message saying
5679 "invalid UTF-8 stream" instead of "invalid byte sequence."
5680 You are also told which byte caused the problem.
5682 * Docx, ODT, and EPUB writers now download images specified by a URL
5683 instead of skipping them or raising an error.
5685 * EPUB writer:
5687 + The default CSS now left-aligns headers by default, instead of
5688 centering. This is more consistent with the rest of the writers.
5689 + A proper multi-level table of contents is now used in `toc.ncx`.
5690 There is no longer a subsidiary table of contents at the beginning
5691 of each chapter.
5692 + Code highlighting now works by default.
5693 + Section divs are used by default for better semantic markup.
5694 + The title is used instead of "Title Page" in the table of contents.
5695 Otherwise we have a hard-coded English string, which looks
5696 strange in ebooks written in other languages. Closes #572.
5698 * HTML writer:
5700 + Put mathjax in span with class "math". Closes #562.
5701 + Put citations in a span with class "citation." In HTML5, also include
5702 a `data-cite` attribute with a space-separated list of citation
5703 keys.
5705 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
5706 This treats both `\r\n` and `\n` as `\n` on input, no matter
5707 what platform we're running on.
5709 * Citation processing is now done in the Markdown and LaTeX
5710 readers, not in `pandoc.hs`. This makes it easier for library users
5711 to use citations.
5713 [template changes]
5715 * HTML: Added css to template to preserve spaces in `<code>` tags.
5716 Thanks to Dirk Laurie.
5718 * Beamer: Remove English-centric strings in section pages.
5719 Section pages used to have "Section" and a number as well as the
5720 section title. Now they just have the title. Similarly for part
5721 and subsection. Closes #566.
5723 * LaTeX, ConTeXt: Added papersize variable.
5725 * LaTeX, Beamer templates: Use longtable instead of ctable.
5727 * LaTeX, Beamer templates: Don't require 'float' package for tables.
5728 We don't actually seem to use the '[H]' option.
5730 * LaTeX: Use `upquote` package if it is available. This fixes
5731 straight quotes in verbatim environments.
5733 * Markdown, plain: Fixed titleblock so it is just a single string.
5734 Previously separate title, author, and date variables were used,
5735 but this didn't allow different kinds of title blocks.
5737 * EPUB:
5739 + Rationalized templates. Previously there were three different
5740 templates involved in epub production. There is now just one
5741 template, `default.epub` or `default.epub3`. It can now be
5742 overridden using `--template`, just like other templates.
5743 The titlepage is now folded into the default template.
5744 A `titlepage` variable selects it.
5745 + UTF-8, lang tag, meta tags, title element.
5747 * Added scale-to-width feature to beamer template
5749 [API changes]
5751 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
5752 Previously header identifers were autogenerated by the writers.
5753 Now they are added in the readers (either automatically or explicitly).
5755 * `Text.Pandoc.Builder`:
5757 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
5758 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
5759 custom Monoid instances for `Many Inline` and `Many Block. This
5760 allows `Many` to be made an instance of `Foldable` and `Traversable`.
5761 + The old `Listable` class has been removed.
5762 + The module now exports `isNull`, `toList`, `fromList`.
5763 + The old `Read` and `Show` instances have been removed; derived
5764 instances are now used.
5765 + Added `headerWith`.
5767 * The readers now take a `ReaderOptions` rather than a `ParserState`
5768 as a parameter. Indeed, not all parsers use the `ParserState` type;
5769 some have a custom state. The motivation for this change was to separate
5770 user-specifiable options from the accounting functions of parser state.
5772 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
5773 formerly in `Text.Pandoc.Shared`, and its associated
5774 data types. It also includes a new type `ReaderOptions`, which
5775 contains many options formerly in `ParserState`, and its associated
5776 data types:
5778 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
5779 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
5780 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
5781 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
5782 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
5783 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
5784 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
5785 + `ParserState.stateIndentedCodeClasses` ->
5786 `ReaderOptions.readerIndentedCodeClasses`.
5787 + Added `ReaderOptions.readerCitationStyle`.
5789 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
5790 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
5791 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
5792 been renamed `writerEpubMetadata` for consistency.
5794 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
5795 longer stylesheet, fonts, reference files as separate parameters.
5797 * Removed `writerLiterateHaskell` from `WriterOptions`, and
5798 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
5799 by an extension (`Ext_literate_haskell`).
5801 * Removed deprecated `writerXeTeX`.
5803 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
5804 Strict is now handled through extensions.
5806 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
5807 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
5808 and `multimarkdownExtensions`, as well as the `Extensions` type.
5810 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
5811 `readMediaWiki`.
5813 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
5814 (thanks to Sergey Astanin).
5816 * `Text.Pandoc`:
5818 + Added `getReader`, `getWriter` to `Text.Pandoc`.
5819 + `writers` is now an association list `(String, Writer)`.
5820 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
5821 an `IOByteStringWriter`. ALL writers are now in the 'writers'
5822 list, including the binary writers and FB2 writer. This allows
5823 code in `pandoc.hs` to be simplified.
5824 + Changed type of `readers`, so all readers are in IO.
5825 Users who want pure readers can still get them form the reader
5826 modules; this just affects the function `getReader` that looks up
5827 a reader based on the format name. The point of this change is to
5828 make it possible to print warnings from the parser.
5830 * `Text.Pandoc.Parsing`:
5832 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
5833 No other module directly imports Parsec. This will make it easier
5834 to change the parsing backend in the future, if we want to.
5835 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
5836 + Export the type synonym `Parser`.
5837 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
5838 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
5839 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
5840 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
5841 + `ParserState` is no longer an instance of `Show`.
5842 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
5843 + Generalized type of `withQuoteContext`.
5844 + Added `guardEnabled`, `guardDisabled`, `getOption`.
5845 + Removed `failIfStrict`.
5846 + `lookupKeySrc` and `fromKey` are no longer exported.
5848 * `Data.Default` instances are now provided for `ReaderOptions`,
5849 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
5850 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
5851 of `defaultWriterOptions` (which is still defined). Closes #546.
5853 * `Text.Pandoc.Shared`:
5855 + Added `safeRead`.
5856 + Renamed `removedLeadingTrailingSpace` to `trim`,
5857 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
5858 + Count `\r` as space in `trim` functions.
5859 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
5860 to `Shared`.
5861 + Removed `failUnlessLHS`.
5862 + Export `compactify'`, formerly in Markdown reader.
5863 + Export `isTightList`.
5864 + Do not export `findDataFile`.
5865 + `readDataFile` now returns a strict ByteString.
5866 + Export `readDataFileUTF8` which returns a String, like the
5867 old `readDataFile`.
5868 + Export `fetchItem` and `openURL`.
5870 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
5871 Removed `readImageSize`.
5873 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
5874 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
5875 `fromStringLazy`.
5877 * `Text.Pandoc.UTF8` is now an exposed module.
5879 * `Text.Pandoc.Biblio`:
5881 + csl parameter now a `String` rather than a `FilePath`.
5882 + Changed type of `processBiblio`. It is no longer in the IO monad.
5883 It now takes a `Maybe Style` argument rather than parameters for CSL
5884 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
5885 the style file and add abbreviations.)
5887 * Markdown reader now exports `readMarkdownWithWarnings`.
5889 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
5890 `rtfEmbedImage`.
5892 [bug fixes]
5894 * Make `--ascii` work properly with `--self-contained`. Closes #568.
5896 * Markdown reader:
5898 + Fixed link parser to avoid exponential slowdowns. Closes #620.
5899 Previously the parser would hang on input like this:
5901 [[[[[[[[[[[[[[[[[[hi
5903 We fixed this by making the link parser parser characters
5904 between balanced brackets (skipping brackets in inline code spans),
5905 then parsing the result as an inline list. One change is that
5907 [hi *there]* bud](/url)
5909 is now no longer parsed as a link. But in this respect pandoc behaved
5910 differently from most other implementations anyway, so that seems okay.
5912 + Look for raw html/latex blocks before tables.
5913 Otherwise the following gets parsed as a table:
5915 \begin{code}
5916 --------------
5917 -- My comment.
5918 \end{code}
5920 Closes #578.
5922 * RST reader:
5924 + Added support for `:target:` on `.. image::` blocks
5925 and substitutions.
5926 + Field list fixes:
5928 - Fixed field lists items with body beginning after a new line
5929 (Denis Laxalde).
5930 - Allow any char but ':' in names of field lists in RST reader
5931 (Denis Laxalde).
5932 - Don't allow line breaks in field names.
5933 - Require whitespace after field list field names.
5934 - Don't create empty definition list for metadata field lists.
5935 Previously a field list consisting only of metadata fields (author,
5936 title, date) would be parsed as an empty DefinitionList, which is
5937 not legal in LaTeX and not needed in any format.
5939 + Don't recognize inline-markup starts inside words.
5940 For example, `2*2 = 4*1` should not contain an emphasized
5941 section. Added test case for "Literal symbols". Closes #569.
5942 + Allow dashes as separator in simple tables. Closes #555.
5943 + Added support for `container`, `compound`, `epigraph`,
5944 `rubric`, `highlights`, `pull-quote`.
5945 + Added support for `.. code::`.
5946 + Made directive labels case-insensitive.
5947 + Removed requirement that directives begin at left margin.
5948 This was (correctly) not in earlier releases; docutils doesn't
5949 make the requirement.
5950 + Added support for `replace::` and `unicode::` substitutions.
5951 + Ignore unknown interpreted roles.
5952 + Renamed image parser to `subst`, since it now handles all
5953 substitution references.
5955 * Textile reader:
5957 + Allow newlines before pipes in table. Closes #654.
5958 + Fixed bug with list items containing line breaks.
5959 Now pandoc correctly handles hard line breaks inside list items.
5960 Previously they broke list parsing.
5961 + Implemented comment blocks.
5962 + Fixed bug affected words ending in hyphen.
5963 + Properly handle links with surrounding brackets.
5964 Square brackets need to be used when the link isn't surrounded by
5965 spaces or punctuation, or when the URL ending may be ambiguous.
5966 Closes #564.
5967 + Removed nullBlock. Better to know about parsing problems than
5968 to skip stuff when we get stuck.
5969 + Allow ID attributes on headers.
5970 + Textile reader: Avoid parsing dashes as strikeout.
5971 Previously the input
5973 text--
5974 text--
5975 text--
5976 text--
5978 would be parsed with strikeouts rather than dashes. This fixes
5979 the problem by requiring that a strikeout delimiting - not be
5980 followed by a -. Closes #631.
5981 + Expanded list of `stringBreakers`.
5982 This fixes a bug on input like "(_hello_)" which should
5983 be a parenthesized emphasized "hello".
5984 The new list is taken from the PHP source of textile 2.4.
5985 + Fixed autolinks. Previously the textile reader and writer
5986 incorrectly implented RST-style autolinks for URLs and email
5987 addresses. This has been fixed. Now an autolink is done this way:
5988 `"$":http://myurl.com`.
5989 + Fixed footnotes bug in textile. This affected notes occuring
5990 before punctuation, e.g. `foo[1].`. Closes #518.
5992 * LaTeX reader:
5994 + Better handling of citation commands.
5995 + Better handling of `\noindent`.
5996 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
5997 Closes #622.
5998 + Made `rawLaTeXInline` try to parse block commands as well. This
5999 is usually what we want, given how `rawLaTeXInline` is used in
6000 the markdown and textile readers. If a block-level LaTeX command
6001 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
6002 we can treat it as raw inline LaTeX.
6003 + Handle \slash command. Closes #605.
6004 + Basic `\enquote` support.
6005 + Fixed parsing of paragraphs beginning with a group. Closes #606.
6006 + Use curly quotes for bare straight quotes.
6007 + Support obeylines environment. Closes #604.
6008 + Guard against "begin", "end" in inlineCommand and
6009 blockCommand.
6010 + Better error messages for environments. Now it should tell you that
6011 it was looking for \end{env}, instead of giving "unknown parse error."
6013 * HTML reader:
6015 + Added HTML 5 tags to list of block-level tags.
6016 + HTML reader: Fixed bug in `htmlBalanced`, which
6017 caused hangs in parsing certain markdown input using
6018 strict mode.
6019 + Parse `<q>` as `Quoted DoubleQuote`.
6020 + Handle nested `<q>` tags properly.
6021 + Modified `htmlTag` for fewer false positives.
6022 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
6023 This makes it more useful in the wikimedia and markdown parsers.
6025 * DocBook reader: Support title in "figure" element. Closes #650.
6027 * MediaWiki writer:
6029 + Remove newline after `<br/>` in translation of `LineBreak`
6030 There's no particular need for a newline (other than making the
6031 generated MediaWiki source look nice to a human), and in fact
6032 sometimes it is incorrect: in particular, inside an enumeration, list
6033 items cannot have embedded newline characters. (Brent Yorgey)
6034 + Use `<code>` not `<tt>` for Code.
6036 * Man writer: Escape `-` as `\-`.
6037 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
6038 signs. That is preferable for use with command-line options. See
6039 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
6040 to Andrea Bolognani for bringing the issue to our attention.
6042 * RST writer:
6044 + Improved line block output. Use nonbreaking spaces for
6045 initial indent (otherwise lost in HTML and LaTeX).
6046 Allow multiple paragraphs in a single line block.
6047 Allow soft breaks w continuations in line blocks.
6048 + Properly handle images with no alt text. Closes #678.
6049 + Fixed bug with links with duplicate text. We now (a) use anonymous
6050 links for links with inline URLs, and (b) use an inline link instead
6051 of a reference link if the reference link would require a label that
6052 has already been used for a different link. Closes #511.
6053 + Fixed hyperlinked images. Closes #611. Use `:target:`
6054 field when you have a simple linked image.
6055 + Don't add `:align: center` to figures.
6057 * Texinfo writer: Fixed internal cross-references.
6058 Now we insert anchors after each header, and use `@ref` instead of `@uref`
6059 for links. Commas are now escaped as `@comma{}` only when needed;
6060 previously all commas were escaped. (This change is needed, in part,
6061 because `@ref` commands must be followed by a real comma or period.) Also
6062 insert a blank line in from of `@verbatim` environments.
6064 * DocBook writer:
6066 + Made --id-prefix work in DocBook as well as HTML.
6067 Closes #607.
6068 + Don't include empty captions in figures. Closes #581.
6070 * LaTeX writer:
6072 + Use `\hspace*` for nonbreaking space after line break,
6073 since `~` spaces after a line break are just ignored.
6074 Closes #687.
6075 + Don't escape `_` in URLs or hyperref identifiers.
6076 + Properly escape strings inside \url{}. Closes #576.
6077 + Use `[fragile]` only for slides containing code rendered
6078 using listings. Closes #649.
6079 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
6080 highlighting-kate's macros, which redefine `|` as a short verbatim
6081 delimiter. Thanks to Björn Peemöller for raising this issue.
6082 + Use minipage rather than parbox for block containers in tables.
6083 This allows verbatim code to be included in grid tables.
6084 Closes #663.
6085 + Prevent paragraphs containing only linebreaks or spaces.
6087 * HTML writer:
6089 + Included `highlighting-css` for code spans, too.
6090 Previously it was only included if used in a code block. Closes #653.
6091 + Improved line breaks with `<dd>` tags. We now put a newline between
6092 `</dd>` and `<dd>` when there are multiple definitions.
6093 + Changed mathjax cdn url so it doesn't use https. (This caused
6094 problems when used with `--self-contained`.) See #609.
6096 * EPUB writer:
6098 + `--number-sections` now works properly.
6099 + Don't strip meta and link elements in epub metadata.
6100 Patch from aberrancy. Closes #589.
6101 + Fixed a couple validation bugs.
6102 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
6103 of chapters in some readers, which apparently sort ch2 after ch10.
6104 Closes #610.
6106 * ODT writer: properly set title property (Arlo O'Keeffe).
6108 * Docx writer:
6110 + Fixed bug with nested lists. Previously a list like
6112 1. one
6113 - a
6114 - b
6115 2. two
6117 would come out with a bullet instead of "2."
6118 Thanks to Russell Allen for reporting the bug.
6119 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
6120 This seems to fix a problem viewing pandoc-generated
6121 docx files in LibreOffice.
6122 + Use integer ids for bookmarks. Closes #626.
6123 + Added nsid to abstractNum elements. This helps when merging
6124 word documents with numbered or bulleted lists. Closes #627.
6125 + Use separate footnotes.xml for notes.
6126 This seems to help LibreOffice convert the file, even though
6127 it was valid docx before. Closes #637.
6128 + Use rIdNN identifiers for r:embed in images.
6129 + Avoid reading image files again when we've already processed them.
6130 + Fixed typo in `referenc.docx` that prevented image captions from
6131 working. Thanks to Huashan Chen.
6133 * `Text.Pandoc.Parsing`:
6135 + Fixed bug in `withRaw`, which didn't correctly handle the case
6136 where nothing is parsed.
6137 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
6138 though it still doesn't implement quoted strings in email addresses.
6139 + Revised URI parser. It now allows many more schemes, allows
6140 uppercase URIs, and better handles trailing punctuation and
6141 trailing slashes in bare URIs. Added many tests.
6142 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
6143 etc. parse properly. Formerly we had some English-centric heuristics,
6144 but they are no longer needed. Closes #698.
6146 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
6147 This fixes bug with Chinese commas in markdown and reST tables, and
6148 a bug that caused combining characters to be dropped.
6150 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
6152 * `Text.Pandoc.Biblio`:
6154 + Run `mvPunc` and `deNote` on metadata too.
6155 This fixed a bug with notes on titles using footnote styles.
6156 + Fixed bug in fetching CSL files from CSL data directory.
6158 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
6159 is provided. It should be the URL up to the path.
6161 * Fixed/simplified diff output for tests.
6162 Biblio: Make sure mvPunc and deNote run on metadata too.
6163 This fixed a bug with notes on titles using footnote styles.
6165 [under the hood improvements]
6167 * We no longer depend on `utf8-string`. Instead we use functions
6168 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
6170 * Use `safeRead` instead of using `reads` directly (various modules).
6172 * "Implicit figures" (images alone in a paragraph) are now handled
6173 differently. The markdown reader gives their titles the prefix `fig:`; the
6174 writers look for this before treating the image as a figure. Though this
6175 is a bit of a hack, it has two advantages: (i) implicit figures can be
6176 limited to the markdown reader, and (ii) they can be deactivated by turning
6177 off the `implicit_figures` extension.
6179 * `catch` from `Control.Exception` is now used instead of the
6180 old Preface `catch`.
6182 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
6183 and `oneOfStrings` (which is now non-backtracking).
6185 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
6186 Now citeproc-hs is fixed upstream, so this is no longer needed.
6187 Closes #531.
6189 * Textile reader: Improved speed of `hyphenedWords`.
6190 This speeds up the textile reader by about a factor of 4.
6192 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
6193 better performance, and automatic normalization.
6195 * Major rewrite of markdown reader:
6197 + Use `Text.Pandoc.Builder` instead of lists. This also
6198 means that everything is normalized automatically.
6199 + Move to a one-pass parsing strategy, returning values in the reader
6200 monad, which are then run (at the end of parsing) against the final
6201 parser state.
6203 * In HTML writer, we now use `toHtml` instead of pre-escaping.
6204 We work around the problem that blaze-html unnecessarily escapes `'`
6205 by pre-escaping just the `'` characters, instead of the whole string.
6206 If blaze-html later stops escaping `'` characters, we can simplify
6207 `strToHtml` to `toHtml`. Closes #629.
6209 * Moved code for embedding images in RTFs from `pandoc.hs` to the
6210 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
6212 * Moved citation processing from `pandoc.hs` into the readers.
6213 This makes things more convenient for library users.
6215 * The man pages are now built by an executable `make-pandoc-man-pages`,
6216 which has its own stanza in the cabal file so that dependencies can be
6217 handled by Cabal. Special treatment in `Setup.hs` ensures that this
6218 executable never gets installed; it is only used to create the man pages.
6220 * The cabal file has been modified so that the pandoc library is used
6221 in building the pandoc executable. (This required moving `pandoc.hs`
6222 from `src` to `.`.) This cuts compile time in half.
6224 * `-O2` is no longer used in building pandoc. The performance improvement
6225 it yields is so slight that it is not worth it. (Measured with
6226 benchmarks on ghc 7.4.)
6228 * The `executable` and `library` flags have been removed.
6230 * `-threaded` has been removed from ghc-options.
6232 * Version bounds of dependencies have been raised, and the
6233 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
6234 GHC 7.6.
6236 * We now require base >= 4.2.
6238 * Integrated the benchmark program into cabal. One can now do:
6240 cabal configure --enable-benchmarks && cabal build
6241 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
6243 The benchmark now uses README + testsuite, so benchmark results
6244 from older versions aren't comparable.
6246 * Integrated test suite with cabal.
6247 To run tests, configure with `--enable-tests`, then `cabal test`.
6248 You can specify particular tests using `--test-options='-t markdown'`.
6249 No output is shown unless tests fail. The Haskell test modules
6250 have been moved from `src/` to `tests/`.
6252 * Moved all data files and templates to the `data/` subdirectory.
6254 * Added an `embed_data_files` cabal flag. This causes all
6255 data files to be embedded in the binary, so that the binary
6256 is self-sufficient and can be relocated anywhere, copied on
6257 a USB key, etc. The Windows installer now uses this.
6258 (Since we no longer have the option to build the executable
6259 without the library, this is the only way to get a relocatable
6260 binary on Windows.)
6262 * Removed pcre3.dll from windows package.
6263 It isn't needed unless highlighting-kate is compilled with the
6264 `pcre-light` flag. By default, regex-prce-builtin is used.
6267pandoc (1.9.4.2)
6269 * Don't encode/decode file paths if base >= 4.4.
6270 Prior to base 4.4, filepaths and command line arguments were treated
6271 as unencoded lists of bytes, not unicode strings, so we had to work
6272 around that by encoding and decoding them. This commit adds CPP
6273 checks for the base version that intelligibly enable encoding/decoding
6274 when needed. Fixes a bug with multilingual filenames when pandoc was
6275 compiled with ghc 7.4 (#540).
6277 * Don't generate an empty H1 after hrule slide breaks.
6278 We now use a slide-level header with contents `[Str "\0"]` to mark
6279 an hrule break. This avoids creation of an empty H1 in these
6280 contexts. Closes #484.
6282 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
6284 * In make_osx_package.sh, ensure citeproc-hs is built with the
6285 embed_data_files flag.
6287 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
6289 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
6290 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
6292 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
6293 Closes #535.
6295 * Added webm to mime types. Closes #543.
6297 * Added some missing exports and tests to the cabal file
6298 (Alexander V Vershilov).
6300 * Compile with `-rtsopts` and `-threaded` by default.
6302pandoc (1.9.4.1)
6304 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
6306 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
6307 variables. Make TOC links black.
6309 * LaTeX template improvements.
6311 + Don't print date unless one is given explicitly in the document.
6312 + Simplified templates.
6313 + Use fontenc [T1] by default, and lmodern.
6314 + Use microtype if available.
6316 * Biblio:
6318 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
6319 Motivation: `@item1 [50]` should be as close as possible to
6320 `[@item1, 50]`.
6321 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
6322 beginning with a citation to be empty. Closes #531.
6324 * Fixed documentation on mixed lists. Closes #533.
6326pandoc (1.9.4)
6328 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
6329 footnotes and captions. We now handle note citations by inserting
6330 footnotes during initial citation processing, and doing a separate
6331 pass later to remove notes inside notes.
6333 * Added 'zenburn' highlight style from highlighting-kate.
6335 * Added Slideous writer. Slideous is an HTML + javascript slide show
6336 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
6338 * LaTeX writer:
6340 + Ensure we don't have extra blank lines at ends of cells.
6341 This can cause LaTeX errors, as they are interpreted as new paragraphs.
6342 + More consistent interblock spacing.
6343 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
6344 code in LaTeX. Closes #527.
6345 + Ensure that a Verbatim at the end of a footnote is followed by
6346 a newline. (Fixes a regression in the previous version.)
6347 + In default template, use black for internal links and TOC.
6348 Added commented-out code to use footnotes for links, as would
6349 be suitable in print output.
6351 * Beamer writer: When `--incremental` is used, lists inside
6352 a block quote should appear all at once. (This makes Beamer
6353 output consistent with the HTML slide show formats.)
6355 * ConTeXt writer:
6357 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
6358 to avoid gobbling spaces after the `%` sign.
6359 + Ensure space after `\stopformula`.
6361 * Markdown writer:
6363 + Use `:` form instead of `~` in definition lists, for better
6364 compatibility with other markdown implementations.
6365 + Don't wrap the term, because it breaks definition lists.
6366 + Use a nonzero space to prevent false recognition
6367 of list marker in ordered lists. Closes #516.
6369 * Org writer: Add space before language name. Closes #523.
6371 * Docx writer: Simplified bullet characters so they work properly
6372 with Word 2007. Closes #520.
6374 * LaTeX reader: Support `\centerline`.
6376 * RST reader: handle figures. Closes #522.
6378 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
6379 (Paul Rivier)
6381pandoc (1.9.3)
6383 * Fixed bug in `fromEntities`. The previous version would turn
6384 `hi & low you know;` into `hi &`.
6386 * HTML reader:
6388 + Don't skip nonbreaking spaces.
6389 Previously a paragraph containing just `&nbsp;` would be rendered
6390 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
6391 + Support `<col>` and `<caption>` in tables. Closes #486.
6393 * Markdown reader:
6395 + Don't recognize references inside delimited code blocks.
6396 + Allow list items to begin with lists.
6398 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
6400 * LaTeX reader:
6402 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
6403 + Control sequences can't be followed by a letter.
6404 This fixes a bug where `\begingroup` was parsed as `\begin`
6405 followed by `group`.
6406 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
6407 + Make `\label` and `\ref` sensitive to `--parse-raw`.
6408 If `--parse-raw` is selected, these will be parsed as raw latex
6409 inlines, rather than bracketed text.
6410 + Don't crash on unknown block commands (like `\vspace{10pt}`)
6411 inside `\author`; just skip them. Closes #505.
6413 * Textile reader:
6415 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
6416 + Added support for LaTeX blocks and inlines (Paul Rivier).
6417 + Better conformance to RedCloth inline parsing (Paul Rivier).
6418 + Parse '+text+' as emphasized (should be underlined, but this
6419 is better than leaving literal plus characters in the output.
6421 * Docx writer: Fixed multi-paragraph list items. Previously they each
6422 got a list marker. Closes #457.
6424 * LaTeX writer:
6426 + Added `--no-tex-ligatures` option to avoid replacing
6427 quotation marks and dashes with TeX ligatures.
6428 + Use `fixltx2e` package to provide '\textsubscript'.
6429 + Improve spacing around LaTeX block environments:
6430 quote, verbatim, itemize, description, enumerate.
6431 Closes #502.
6432 + Use blue instead of pink for URL links in latex/pdf output.
6434 * ConTeXt writer: Fixed escaping of `%`.
6435 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
6436 Inside URLs, `%` needs to be escaped as `\%`
6437 Thanks to jmarca and adityam for the fix. Closes #492.
6439 * Texinfo writer: Escape special characters in node titles.
6440 This fixes a problem pointed out by Joost Kremers. Pandoc used
6441 to escape an '@' in a chapter title, but not in the corresponding
6442 node title, leading to invalid texinfo.
6444 * Fixed document encoding in texinfo template.
6445 Resolves Debian Bug #667816.
6447 * Markdown writer:
6449 + Don't force delimited code blocks to be flush left.
6450 Fixes bug with delimited code blocks inside lists etc.
6451 + Escape `<` and `$`.
6453 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
6454 Previously we used `\href{\#ident}{text}`, which didn't work on
6455 all systems. Thanks to Dirk Laurie.
6457 * RST writer: Don't wrap link references. Closes #487.
6459 * Updated to use latest versions of blaze-html, mtl.
6462pandoc (1.9.2)
6464 * LaTeX reader:
6466 + Made `lstlisting` work as a proper verbatim environment.
6467 + Fixed bug parsing LaTeX tables with one column.
6469 * LaTeX writer:
6471 + Use `{}` around `ctable` caption, so that formatting can be used.
6472 + Don't require eurosym package unless document has a €.
6474 * LaTeX template: Added variables for `geometry`, `romanfont`,
6475 `sansfont`, `mathfont`, `mainfont` so users can more easily
6476 customize fonts.
6478 * PDF writer:
6480 + Run latex engine at least two times, to ensure
6481 that PDFs will have hyperlinked bookmarks.
6482 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
6484 * Texinfo writer: retain directories in image paths. (Peter Wang)
6486 * RST writer: Better handling of inline formatting, in accord
6487 with docutils' "inline markup recognition rules" (though we don't
6488 implement the unicode rules fully). Now `hi*there*hi` gets
6489 rendered properly as `hi\ *there*\ hi`, and unnecessary
6490 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
6492 * RST reader:
6494 + Parse `\ ` as null, not escaped space.
6495 + Allow `` :math:`...` `` even when not followed by blank
6496 or `\`. This does not implement the complex rule docutils follows,
6497 but it should be good enough for most purposes.
6498 + Add support for the rST default-role directive. (Greg Maslov)
6500 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
6501 (Greg Maslov)
6503 * Markdown reader: Properly handle citations nested in other inline
6504 elements.
6506 * Markdown writer: don't replace empty alt in image with "image".
6508 * DZSlides: Updated template.html and styles in default template.
6509 Removed bizarre CSS for `q` in dzslides template.
6511 * Avoid repeated `id` attribute in section and header in HTML slides.
6513 * README improvements: new instructions on internal links,
6514 removed misleading note on reST math.
6516 * Build system:
6518 + Fixed Windows installer so that dzslides works.
6519 + Removed stripansi.sh.
6520 + Added .travis.yml for Travis continuous integration support..
6521 + Fixed upper bound for zlib (Sergei Trofimovich).
6522 + Fixed upper bound for test-framework.
6523 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
6525pandoc (1.9.1.2)
6527 * Added `beamer+lhs` as output format.
6529 * Don't escape `<` in `<style>` tags with `--self-contained`.
6530 This fixes a bug which prevented highlighting from working
6531 when using `--self-contained`.
6533 * PDF: run latex engine three times if `--toc` specified.
6534 This fixes page numbers in the table of contents.
6536 * Docx writer: Added TableNormal style to tables.
6538 * LaTeX math environment fixes. `aligned` is now used instead of
6539 the nonexistent `aligned*`. `multline` instead of the nonexistent
6540 `multiline`.
6542 * LaTeX writer: Use `\textasciitilde` for literal `~`.
6544 * HTML writer: Don't escape contents of EQ tags with --gladtex.
6545 This fixes a regression from 1.8.
6547 * Use `<q>` tags for Quoted items for HTML5 output.
6548 The quote style can be changed by modifying the template
6549 or including a css file. A default quote style is included.
6551 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
6552 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
6554 * Updated LaTeX template for better language support.
6555 Use `polyglossia` instead of `babel` with xetex.
6556 Set `lang` as documentclass option.
6557 `\setmainlanguage` will use the last of a comma-separated
6558 list of languages. Thanks to François Gannaz.
6560 * Fixed default LaTeX template so `\euro` and `€` work. The
6561 `eurosym` package is needed if you are using pdflatex.
6563 * Fixed escaping of period in man writer (thanks to Michael Thompson).
6565 * Fixed list label positions in beamer.
6567 * Set `mainlang` variable in context writer.
6568 This parallels behavior of latex writer. `mainlang` is the last
6569 of a comma-separated list of languages in lang.
6571 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
6573 * Changed `-V` so that you can specify a key without a value.
6574 Such keys get the value `true`.
6576 * Fixed permissions on installed man pages - thanks Magnus Therning.
6578 * Windows installer: require XP or higher. The installer is
6579 now compiled on a Windows 7 machine, which fixes a problem
6580 using citation functions on Windows 7.
6582 * OSX package: Check for 64-bit Intel CPU before installing.
6584pandoc (1.9.1.1)
6586 * Better handling of raw latex environments in markdown. Now
6588 \begin{equation}
6589 a_1
6590 \end{equation}
6592 turns into a raw latex block as expected.
6594 * Improvements to LaTeX reader:
6596 + Skip options after block commands.
6597 + Correctly handle `{\\}` in braced.
6598 + Added a needed 'try'.
6599 + Citations: add `, ` to suffix if it doesn't start with space or
6600 punctuation. Otherwise we get no space between the year and the
6601 suffix in author-date styles.
6603 * Added two needed data files for S5. This fixes a problem with
6604 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
6605 which was no longer being used.
6607 * Fixed some minor problems in `reference.docx`:
6608 name on "Date" style, `xCs` instead of `xIs`.
6610 * Fixed a problem creating docx files using a reference docx
6611 modified using Word. The problem seems to be that Word
6612 modifies `_rels/.rels`, changing the Type of the Relationship to
6613 `docProps/core.xml`. Pandoc now changes this back to the correct
6614 value if it has been altered, fixing the problem.
6616 * Fixed html5 template so it works properly with highlighting.
6618pandoc (1.9.1)
6620 * LaTeX reader:
6622 + Fixed regression in 1.9; properly handle escaped $ in latex math.
6623 + Put LaTeX verse environments in blockquotes.
6625 * Markdown reader:
6627 + Limit nesting of strong/emph. This avoids exponential lookahead
6628 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
6629 + Improved attributes syntax (inn code blocks/spans):
6630 (1) Attributes can contain line breaks. (2) Values in key-value
6631 attributes can be surrounded by either double or single quotes, or
6632 left unquoted if they contain no spaces.
6634 * Don't wrap headers in markdown or RST writers.
6636 * Added `stateMaxNestingLevel` to `ParserState`.
6637 We set this to 6, so you can still have `Emph` inside `Emph`,
6638 just not indefinitely.
6640 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
6642 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
6643 is present.
6645 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
6647pandoc (1.9.0.5)
6649 * Changed cabal file so that build-depends for the test program
6650 are not required unless the tests flag is used.
6652 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
6653 form ligatures (dashes) in code spans.
6655pandoc (1.9.0.4)
6657 * Raised version bound on test-framework to avoid problems
6658 compiling tests on GHC 7.4.1.
6660 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
6661 so citations don't just disappear unless you process with
6662 citeproc. Ignore `\bibliographystyle`, `\nocite`.
6664 * Simplified tex2pdf; it will always run latex twice to
6665 resolve table of contents and hyperrefs.
6667pandoc (1.9.0.3)
6669 * Require Cabal >= 1.10.
6670 * Tweaked cabal file to meet Cabal 1.10 requirements.
6672pandoc (1.9.0.2)
6674 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
6675 ghc 6.12.
6677pandoc (1.9)
6679 [new features]
6681 * Added a Microsoft Word `docx` writer. The writer includes support
6682 for highlighted code and for math (which is converted from TeX to OMML,
6683 Office's native math markup language, using texmath's new OMML module).
6684 A new option `--reference-docx` allows the user to customize the
6685 styles.
6687 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
6689 * Better support for slide shows:
6691 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
6692 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
6694 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
6695 slide presentations.
6697 + New, flexible rules for dividing documents into sections and slides
6698 (see the "Structuring the slide show" in the User's Guide). These
6699 are backward-compatible with the old rules, but they allow slide
6700 shows to be organized into sections and subsections containing
6701 multiple slides.
6703 + A new `--slide-level` option allows users to override defaults
6704 and select a slide level below the first header level with content.
6706 * A new `--self-contained` option produces HTML output that does not
6707 depend on an internet connection or the presence of any external
6708 files. Linked images, CSS, and javascript is downloaded (or fetched
6709 locally) and encoded in `data:` URIs. This is useful for making portable
6710 `HTML slide shows. The --offline` option has been deprecated and is now
6711 `treated as a synonym or --self-contained`.
6713 * Support for PDF output:
6715 + Removed the old `markdown2pdf`.
6716 + `pandoc` can now create PDFs (assuming you have latex and a set of
6717 appropriate packages installed): just specify an output file with the
6718 `.pdf` extension.
6719 + A new option `--latex-engine` allows you to specify `pdflatex`,
6720 `xelatex`, or `lualatex` as the processor.
6722 * Highlighting changes:
6724 + Syntax highlighting is now a standard feature; the `highlighting`
6725 flag is no longer needed when compiling.
6726 + A new `--no-highlight` option allows highlighting to be disabled.
6727 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
6728 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
6729 + A new `--highlight-style` option selects between various highlighting
6730 color themes.
6732 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
6734 * LaTeX `\include` and `\usepackage` commands are now processed,
6735 provided the files are in the working directory.
6737 * EPUB improvements:
6739 + Internal and external links now work in EPUB.
6740 + Raw HTML is allowed.
6741 + New `--epub-embed-font` option.
6742 + Customizable templates for EPUB pages offer more control over
6743 formatting: `epub-page.html`, `epub-coverimage.html`,
6744 `epub-titlepage.html`.
6746 * `--mathml` now works with DocBook.
6748 * Added support for math in RST reader and writer. Inline math uses the
6749 `` :math:`...` `` construct. Display math uses
6751 .. math:: ...
6753 or if the math is multiline,
6755 .. math::
6757 ...
6759 These constructions are now supported now by `rst2latex.py`.
6761 * GitHub syntax for fenced code blocks is supported in pandoc's
6762 markdown. You can now write
6764 ```ruby
6765 x = 2
6766 ```
6768 instead of
6770 ~~~ {.ruby}
6771 x = 2
6772 ~~~~
6774 * Easier scripting: a new `toJsonFilter` function makes it easier to
6775 write Haskell scripts to manipulate the Pandoc AST.
6777 [behavior changes]
6779 * Fixed parsing of consecutive lists in markdown.
6780 Pandoc previously behaved like Markdown.pl for consecutive
6781 lists of different styles. Thus, the following would be parsed
6782 as a single ordered list, rather than an ordered list followed
6783 by an unordered list:
6785 1. one
6786 2. two
6788 - one
6789 - two
6791 This change makes pandoc behave more sensibly, parsing this as
6792 two lists. Any change in list type (ordered/unordered) or in
6793 list number style will trigger a new list. Thus, the following
6794 will also be parsed as two lists:
6796 1. one
6797 2. two
6799 a. one
6800 b. two
6802 Since we regard this as a bug in Markdown.pl, and not something
6803 anyone would ever rely on, we do not preserve the old behavior
6804 even when `--strict` is selected.
6806 * Dashes work differently with `--smart`: `---` is always em-dash,
6807 and `--` is always en-dash. Pandoc no longer tries to guess when
6808 `-` should be en-dash. *Note:* This may change how existing documents
6809 look when processed with pandoc. A new option, `--old-dashes`,
6810 is provided for legacy documents.
6812 * The markdown writer now uses setext headers for levels 1-2.
6813 The old behavior (ATX headers for all levels) can be restored
6814 using the new `--atx-headers` option.
6816 * Links are now allowed in markdown image captions. They are also
6817 allowed in links, but will appear there as regular text. So,
6819 [link with [link](/url)](/url)
6821 will turn into
6823 <p><a href="/url">link with link</a></p>
6825 * Improved handling of citations using `citeproc-hs-0.3.4`.
6826 Added `--citation-abbreviations` option.
6828 * Citation keys can no longer end with a punctuation character.
6829 This means that `@item1.` will be parsed as a citation with key
6830 'item1', followed by a period, instead of a citation with key
6831 'item1.', as was the case previously.
6833 * In HTML output, citations are now put in a span with class `citation`.
6835 * The markdown reader now recognizes DocBook block and inline tags.
6836 It was always possible to include raw DocBook tags in a markdown
6837 document, but now pandoc will be able to distinguish block from
6838 inline tags and behave accordingly. Thus, for example,
6840 <sidebar>
6841 hello
6842 </sidebar>
6844 will not be wrapped in `<para>` tags.
6846 * The LaTeX parser has been completely rewritten; it is now much more
6847 accurate, robust, and extensible. However, there are two important
6848 changes in how it treats unknown LaTeX. (1) Previously, unknown
6849 environments became BlockQuote elements; now, they are treated
6850 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
6851 same as `xyz`. (2) Previously, arguments of unknown commands
6852 were passed through with their braces; now the braces are stripped
6853 off.
6855 * `--smart` is no longer selected automatically with `man` output.
6857 * The deprecated `--xetex` option has been removed.
6859 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
6860 instead. `html5` and `html5+lhs` are now separate output formats.
6862 * Single quotes are no longer escaped in HTML output. They do not
6863 need to be escaped outside of attributes.
6865 * Pandoc will no longer transform leading newlines in code
6866 blocks to `<br/>` tags.
6868 * The ODT writer now sizes images appropriately, using the image
6869 size and DPI information embedded in the image.
6871 * `--standalone` is once again implicitly for a non-text output format
6872 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
6873 and get a standalone ODT file.
6875 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
6876 `<section>`.
6878 * The HTML writer now uses `<del>` for strikeout.
6880 * In HTML output with `--section-divs`, the classes `section` and
6881 `level[1,2,..6]` are put on the `div` tags so they can be styled.
6882 In HTML 5 output with `--section-divs`, the classes
6883 `level[1,2,...6]` are put on `section` tags.
6885 * EPUB writer changes:
6887 + The `lang` variable now sets the language
6888 in the metadata (if it is not set, we default to the locale).
6889 + EPUB: UTF-8 is used rather than decimal entities.
6891 * Added `titleslide` class to title slide in S5 template.
6893 * In HTML, EPUB, and docx metadata, the date is normalized into
6894 YYYY-MM-DD format if possible. (This is required for validation.)
6896 * Attributes in highlighted code blocks are now preserved in HTML.
6897 The container element will have the classes, id, and key-value attributes
6898 you specified in the delimited code block. Previously these were stripped
6899 off.
6901 * The reference backlink in the HTML writer no longer has a special
6902 `footnoteBacklink` class.
6904 * The HTML template has been split into `html` and `html5` templates.
6906 * Author and date are treated more consistently in HTML templates.
6907 Authors are now `<h2>`, date `<h3>`.
6909 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
6911 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
6913 [bug fixes]
6915 * Better support for combining characters and East Asian wide characters
6916 in markdown and reST.
6918 * Better handling of single quotes with `--smart`.
6919 Previously `D'oh l'*aide*` would be parsed with left and right single
6920 quotes instead of apostrophes. This kind of error is now fixed.
6922 * Highlighting: Use `reads` instead of `read` for better error handling.
6923 Fixes crash on `startNum="abc"`.
6925 * Added blank comment after directives in rst template.
6927 * Unescape entities in citation `refId`. The `refId`s coming
6928 from citeproc contain XML numeric entities, and these don't match with the
6929 citation keys parsed by pandoc. Solution is to unescape them.
6931 * HTML reader: Fixed bug parsing tables with both thead and tbody.
6933 * Markdown reader:
6935 + Better handling of escapes in link URLs and titles.
6936 + Fixed backslash escapes in reference links.
6937 + Fixed bug in table/hrule parsing, by checking that the top
6938 line of a table is not followed by a blank line. This bug caused
6939 slowdowns on some files with hrules and tables, as pandoc tried to
6940 interpret the hrules as the tops of multiline tables.
6941 + Fixed bug in code block attribute parser. Previously the ID attribute
6942 got lost if it didn't come first. Now attributes can come in any order.
6944 * RST reader: allow footnotes followed by newline without space characters.
6946 * LaTeX reader:
6948 + Ignore empty groups {}, { }.
6949 + LaTeX reader: Handle \@.
6950 + LaTeX reader: Don't crash on commands like `\itemsep`.
6951 + LaTeX reader: Better handling of letter environments.
6953 * RST writer: Fixed bug involving empty table cells. isSimple was being
6954 calculated in a way that assumed there were no non-empty cells.
6956 * ConTeXt writer:
6958 + Made `--toc` work even without `--number-sections`.
6959 + Escape # in link URLs.
6960 + Use buffering for footnotes containing code blocks.
6961 + Changed 'descr' to 'description', fixed alignment.
6963 * LaTeX writer:
6965 + Escape euro character.
6966 + Don't escape ~ inside href{...}.
6967 + Escape # in href URLs.
6968 + Improved detection of book classes. We now check the
6969 `documentclass` variable, and if that is not set, we look through
6970 the template itself. Also, we have added the KOMA classes scrreprt
6971 and scrbook. You can now make a book using
6972 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
6973 + LHS files now set the "listings" variable, so that the definition
6974 of the `code` environment will be included in the template.
6975 + Links are colored blue by default (this can be changed by
6976 modifying `hyperref` settings in the template).
6977 + Added `lang` variable to LaTeX template.
6979 * HTML writer:
6981 + Fixed bug in HTML template with html5 and mathml.
6982 + Don't use self-closing img, br, hr tags for HTML5.
6983 + Use `<section>` for footnotes if HTML5.
6984 + Update HTML templates to use Content-Style-Type meta tag.
6985 + Use separate variables for meta-date, meta-author.
6986 This makes footnotes work in author and date fields.
6987 + Use 'vertical-align:middle' in WebTeX math for better alignment.
6989 * S5/slidy writer: Make footnotes appear on separate slide at end.
6991 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
6992 META-INF/manifest.xml for ODT files will have everything it needs, so
6993 that ODT files modified by LibreOffice can be used as `--reference-odt`.
6995 * `Text.Pandoc.Templates`: Return empty string for json template.
6997 * `Text.Pandoc.Biblio`:
6999 + Expand citations recursively inside nested inlines.
7000 + Treat `\160` as space when parsing locator and suffix.
7001 This fixes a bug with "p. 33" when `--smart` is used. Previously
7002 the whole "p. 33" would be included in the suffix, with no locator.
7003 + Put whole author-in-text citation in a Cite. Previously just the
7004 date and other info went in the Cite.
7005 + Don't add comma+space to prefix if it ends in punctuation.
7007 * Updated chicago-author-date.csl. The old version did not work
7008 properly for edited volumes with no author.
7010 * EPUB writer:
7012 + Add date to EPUB titlepage and metadata.
7013 + Added TOC identifier in EPUB page template.
7014 + Don't generate superfluous file `cover-image.jpg`.
7016 [under the hood improvements]
7018 * Modified `make_osx_package.sh` to use cabal-dev.
7019 Items are no longer installed as root.
7020 Man pages are zipped and given proper permissions.
7022 * Modified windows installer generater to use cabal-dev.
7024 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
7025 Setup.hs we now invoke 'runghc' in a way that points it to the correct
7026 package databases, instead of always falling back to the default user
7027 package db.
7029 * Updated to work with GHC 7.4.1.
7031 * Removed dependency on old-time.
7033 * Removed dependency on dlist.
7035 * New slidy directory for "self-contained."
7037 * TeXMath writer: Use unicode thin spaces for thin spaces.
7039 * Markdown citations: don't strip off initial space in locator.
7041 [API changes]
7043 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
7044 from the native `Inline` type in pandoc-types. Now we use `Str`
7045 elements with unicode.
7047 * Improvements to `Text.Pandoc.Builder`:
7049 + `Inlines` and `Blocks` are now newtypes (not synonyms for
7050 sequences).
7051 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
7052 and a new `Listable` class, which allows these to be manipulated
7053 to some extent like lists. Monoid append includes automatic
7054 normalization.
7055 + `+++` has been replaced by `<>` (mappend).
7057 * Use blaze-html instead of xhtml for HTML generation.
7058 This changes the type of `writeHtml`.
7060 * `Text.Pandoc.Shared`:
7062 + Added `warn` and `err`.
7063 + Removed `unescapeURI`, modified `escapeURI`.
7064 (See under [behavior changes], above.)
7066 * Changes in URI escaping: Previously the readers escaped URIs by
7067 converting unicode characters to octets and then percent encoding.
7068 Now unicode characters are left as they are, and `escapeURI` only
7069 percent-encodes space characters. This gives more readable
7070 URIs, and works well with modern user agents. URIs are no longer unescaped
7071 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
7073 * New module `Text.Pandoc.SelfContained`.
7075 * New module `Text.Pandoc.Docx`.
7077 * New module `Text.Pandoc.PDF`.
7079 * Added `writerBeamer` to `WriterOptions`.
7081 * Added `normalizeDate` to `Text.Pandoc.Shared`.
7083 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
7084 This is like `splitWithIndices`, but it is sensitive to distinctions
7085 between wide, combining, and regular characters.
7087 * `Text.Pandoc.Pretty`:
7089 + Added `chomp` combinator.
7090 + Added `beforeNonBreak` combinator. This allows you to include
7091 something conditionally on it being before a nonblank.
7092 Used for RST inline math.
7093 + Added `charWidth` function. All characters marked W or F in the unicode
7094 spec EastAsianWidth.txt get width 2.
7095 + Added `realLength`, based on `charWidth`. `realLength` is now
7096 used in calculating offsets.
7098 * New module `Text.Pandoc.Slides`, for common functions for breaking
7099 a document into slides.
7101 * Removed `Text.Pandoc.S5`, which is no longer needed.
7103 * Removed `Text.Pandoc.CharacterReferences`. Moved
7104 `characterReference` to `Text.Pandoc.Parsing`.
7105 `decodeCharacterReferences` is replaced by `fromEntities`
7106 in `Text.Pandoc.XML`.
7108 * Added `Text.Pandoc.ImageSize`. This is intened for use
7109 in `docx` and `odt` writers, so the size and dpi of images
7110 can be calculated.
7112 * Removed `writerAscii` in `WriterOptions`.
7114 * Added `writerHighlight` to `WriterOptions`.
7116 * Added `DZSlides` to `HTMLSlideVariant`.
7118 * `writeEPUB` has a new argument for font files to embed.
7120 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
7121 of whether we're parsing the position immediately after a regular
7122 (non-space, non-symbol) string, which is useful for distinguishing
7123 apostrophes from single quote starts.
7125 * `Text.Pandoc.Parsing`:
7127 + `escaped` now returns a `Char`.
7128 + Removed `charsInBalanced'`, added a character parser as
7129 a parameter of `charsInBalanced`. This is needed for
7130 proper handling of escapes, etc.
7131 + Added `withRaw`.
7133 * Added `toEntities` to `Text.Pandoc.XML`.
7135 * `Text.Pandoc.Readers.LaTeX`:
7137 + Export `handleIncludes`.
7138 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
7140 * Added `ToJsonFilter` class and `toJsonFilter` function to
7141 `Text.Pandoc`, deprecating the old `jsonFilter` function.
7143 * `Text.Pandoc.Highlighting`:
7145 + Removed `highlightHtml`, `defaultHighlightingCss`.
7146 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
7147 key functions from highlighting-kate.
7148 + Changed types of highlighting function. `highlight` returns a
7149 `Maybe`, not an `Either`.
7151pandoc (1.8.2.1)
7153 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
7155 * Relaxed cabal constraints for pandoc-types.
7157 * Adjusted Arbitrary instance to help avoid timeouts in tests.
7159 * Added `Tests.Writers.Markdown` to cabal file.
7161pandoc (1.8.2)
7163 * Added script to produce OS X package.
7165 * Made `templates` directory a git submodule. This should make it
7166 easier for people to revise their custom templates when the default
7167 templates change.
7169 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
7170 **Note:** If you have existing templates in `~/.pandoc/templates`, you
7171 must rename them to conform to the new scheme!
7173 * Fixed smart quotes bug, now handling `'...hi'` properly.
7175 * RST reader:
7177 + Partial support for labeled footnotes.
7178 + Improved accuracy of `simpleReferenceName` parser.
7180 * HTML reader:
7182 + Substitute correct unicode characters for
7183 characters in the 128..159 range, which are often found even in
7184 HTML that purports to be UTF-8.
7186 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
7187 to the title, after a colon and linebreak). Closes #280.
7189 * Leaner `reference.odt`.
7191 * Added unexported module `Text.Pandoc.MIME` for use in
7192 the ODT writer.
7194 * ODT writer: Construct `manifest.xml` based on archive contents.
7195 This fixes a bug in ODTs containing images. Recent versions of
7196 LibreOffice would reject these as corrupt, because `manifest.xml`
7197 did not contain a reference to the image files.
7199 * LaTeX writer:
7201 + Make verbatim environments flush to avoid spurious
7202 blank lines. Closes #277.
7203 + Use `\texttt` and escapes insntead of `\verb!...!`, which
7204 is too fragile (doesn't work in command arguments).
7205 + Use `\enquote{}` for quotes if the template includes
7206 the `csquotes` package. This provides better support for
7207 local quoting styles. (Thanks to Andreas Wagner for the idea.)
7209 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
7210 margin, preventing spurious blank lines.
7212 * Slidy writer:
7214 + Use non-minimized version of `slidy.css` with `--offline`
7215 option, so users can more easily edit it.
7216 + Also fixed a bug in the CSS that prevented proper centering
7217 of title (now reported and fixed upstream).
7219 * S5 writer:
7221 + Replaced `s5/default/slides.js.{comment,packed}` with
7222 new compressed `s5/default/slides.min.js`.
7223 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
7224 when `--offline` is specified. Using inline CSS didn't
7225 work with Chrome or Safari. This fixes offline
7226 S5 on those browsers.
7228 * HTML writer: Removed English title on footnote backlinks.
7229 This is incongrous in non-English documents.
7231 * Docbook writer:
7233 + Use CALS tables. (Some older docbook software does not work
7234 well with XHTML tables.) Closes #77.
7235 + Use `programlisting` tags (instead of `screen`) for code blocks.
7237 * `markdown2pdf`:
7239 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
7240 of `-interaction=batchmode`, which essentially just ignored errors,
7241 leading to bad results. Better to know when something is wrong.
7242 + Fixed issues with non-UTF-8 output of `pdflatex`.
7243 + Better error reporting.
7245 * `--mathjax` now takes an optional URL argument. If it is not
7246 provided, pandoc links directly to the (secure) mathjax CDN,
7247 as now recommended (thanks to dsanson).
7249 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
7250 since the LaTeX writer now produces a file that can be processed by
7251 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
7253 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
7254 to be used to create the PDF.
7256 * If a template specified with `--template` is not found, look for it
7257 in `datadir`. Also, if no extension is provided, supply one based
7258 on the writer. So now you can put your `special.latex` template in
7259 `~/.pandoc/templates`, and use it from any directory via
7260 `pandoc -t latex --template special`.
7262 * Default template improvements:
7264 + HTML: Display author and date after title.
7265 + HTML: Made table of contents more customizable. The container
7266 for the TOC is now in the template, so users can insert a header
7267 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
7268 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
7269 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
7270 hard-coding. If you want to put your slidy files in the slidy
7271 subdirectory, for example, you can do
7272 `pandoc -t slidy -V slidy-url=slidy -s`.
7273 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
7274 & writer). Closes #279.
7275 + LaTeX: Use different `hyperref` options for `xetex`, fixing
7276 problems with unicode bookmarks (thanks to CircleCode).
7277 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
7278 with `inputenc`. This covers fewer characters but is more
7279 robust with other packages, and `ucs` is unmaintained. Users
7280 who need better unicode support should use xelatex or lualatex.
7282pandoc (1.8.1.2)
7284 * Added `--epub-cover-image` option.
7286 * Documented `--biblatex` and `--natbib` options.
7288 * Allow `--section-divs` with slidy output. Resolves Issue #296.
7290 * Disallow notes within notes in reST and markdown.
7291 These previously caused infinite looping and stack overflows.
7292 For example:
7294 [^1]
7296 [^1]: See [^1]
7298 Note references are allowed in reST notes, so this isn't a full
7299 implementation of reST. That can come later. For now we need to
7300 prevent the stack overflows. Partially resolves Issue #297.
7302 * EPUB writer: Allow non-plain math methods.
7304 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
7305 `(@item1; @item2)` because the final paren was being parsed as part of
7306 the item key.
7308 * Changed URI parser so it doesn't include trailing punctuation.
7309 So, in RST, `http://google.com.` should be parsed as a link followed by a
7310 period. The parser is smart enough to recognize balanced parentheses, as
7311 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
7313 * Markdown+lhs reader: Require space after inverse bird tracks, so that
7314 HTML tags can be used freely at the left margin of a markdown+lhs document.
7315 Thanks to Conal Elliot for the suggestion.
7317 * Markdown reader:
7319 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
7320 + Fixed bug in footnote order (reported by CircleCode).
7322 * RST reader:
7323 + Fixed bug in in field lists with multi-line items at the
7324 end of the list.
7325 + Added parentheses to RST `specialChars`, so
7326 `(http://google.com)` will be parsed as a link in parens.
7327 Resolves Issue #291.
7328 + Allow `|` followed by newline in RST line block.
7330 * LaTeX reader:
7331 + Support `\dots`.
7332 + Gobble option & space after linebreak `\\[10pt]`.
7334 * Textile reader:
7335 + Make it possible to have colons after links. (qerub)
7336 + Make it possible to have colons after links. (Christoffer Sawicki)
7338 * HTML reader:
7339 + Skip spaces after `<b>`, `<emph>`, etc.
7340 + Handle tbody, thead in simple tables. Closes #274.
7341 + Implicit `Para`s instead of `Plains` in some contexts.
7343 * OpenDocument writer: Use special `First paragraph` style for
7344 first paragraph after most non-paragraph blocks. This allows users to
7345 specify e.g. that only paragraphs after the first paragraph of a block are
7346 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
7348 * LaTeX writer: use `deVerb` on table and picture captions.
7349 Otherwise LaTeX complains about `\verb` inside command argument.
7350 Thanks to bbanier for reporting the bug.
7352 * Markdown writer: Insert HTML comment btw list and indented code block.
7353 This prevents the code block from being interpreted as part of the list.
7355 * EPUB writer: Add a meta element specify the cover.
7356 Some EPUB e-readers, such as the Nook, require a meta element inside the
7357 OPF metadata block to ensure the cover image is properly displayed.
7358 (Kelsey Hightower)
7360 * HTML writer: Use embed tag for images with non-image extensions.
7361 (e.g. PDFs). Closes #264.
7363 * LaTeX writer: Improved tables.
7365 + More space between lines, top-align cells.
7366 + Use ctable package, which allows footnotes and
7367 provides additional options.
7368 + Made cell alignments work in multiline tables.
7369 + Closes #271, #272.
7371 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
7372 Also do this when copying image files into EPUBs and ODTs.
7373 Closes #263.
7375 * Changed to github issue tracker.
7377 * Added failing emph/strong markdown test case due to Perry Wagle.
7379 * Slidy improvements:
7380 + Updated to use Slidy2.
7381 + Fixed bug, unclosed div tag.
7382 + Added `duration` variable in template.
7383 Setting this activates the timer.
7384 + Use 'titlepage' instead of 'cover' for title div.
7386pandoc (1.8.1.1)
7388 * `markdown2pdf`: Removed some debugging lines accidentally included
7389 in the 1.8.1 release. With those lines, the temp directory is created
7390 in the working directory, and it is not deleted. This fix restores
7391 the original behavior.
7393pandoc (1.8.1)
7395 * Added `--ascii` option. Currently supported only in HTML writer,
7396 which it causes to use numerical entities instead of UTF-8.
7398 * EPUB writer: `--toc` now works to provide a table of contents
7399 at the beginning of each chapter.
7401 * LaTeX writer: Change figure defaults to `htbp`.
7402 This prevents "too many unprocessed floats." Resolves
7403 Issue #285.
7405 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
7406 base.
7408 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
7409 Tanimoto. Resolves Issue #286.
7411 * HTML writer: Put line breaks in section divs.
7413 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
7415pandoc (1.8.0.3)
7417 * Fixed Source-repository stanza in cabal file.
7419pandoc (1.8.0.2)
7421 * HTML writer:
7423 + Stringify alt text instead of converting to HTML.
7424 + Break lines after block elements, not inside tags.
7425 HTML output now closely resembles that of tidy. Resolves Issue #134.
7427 * Markdown reader: Fixed bug in footnote block parser (pointed out
7428 by Jesse Rosenthal). The problem arose when the blank line
7429 at the end of a footnote block contained indenting spaces.
7431 * Shared: Improved 'normalize' function so it normalizes Spaces too.
7432 In normal form, Space elements only occur to separate two non-Space
7433 elements. So, we never have [Space], or [, ..., Space].
7435 * Tests:
7437 + Improved Arbitrary instance.
7438 + Added timeout for test instances.
7440 * README:
7442 + Added section on four-space rule for lists. Resolves Issue #283.
7443 + Clarified optional arguments on math options.
7445 * markdown2pdf: Fixed bug with output file extensions.
7446 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
7447 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
7449pandoc (1.8.0.1)
7451 * Revised Interact.hs so that it works with the CPP macros
7452 in the UTF8 module.
7454 * Revised Setup.hs so that we don't call MakeManPage.hs unless
7455 the man pages are out of date.
7457pandoc (1.8)
7459 [new features]
7461 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
7462 You can now write, for example,
7464 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
7466 and, when you process your document using `pandoc`, specifying
7467 a citation style using `--csl` and a bibliography using `--bibliography`,
7468 the citation will be replaced by an appropriately formatted
7469 citation, and a list of works cited will be added to the end
7470 of the document.
7472 This means that you can switch effortlessly between different citation
7473 and bibliography styles, including footnote, numerical, and author-date
7474 formats. The bibliography can be in any of the following formats: MODS,
7475 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
7476 See the README for further details.
7478 Citations are supported in the markdown reader, using a special
7479 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
7480 (Thanks to Nathan Gass for the natbib and biblatex support.)
7482 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
7483 the `textile` reader, an almost complete implementation of the textile
7484 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
7485 Resolves Issue #51.
7487 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
7489 * New `json` reader and writer, for reading and writing a JSON
7490 representation of the native Pandoc AST. These are much faster
7491 than the `native` reader and writer, and should be used for
7492 serializing Pandoc to text. To convert between the JSON representation
7493 and native Pandoc, use `encodeJSON` and `decodeJSON` from
7494 `Text.JSON.Generic`.
7496 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
7497 to write scripts that transform a JSON-encoded pandoc document.
7498 For example:
7500 -- removelinks.hs - removes links from document
7501 import Text.Pandoc
7502 main = interact $ jsonFilter $ bottomUp removeLink
7503 where removeLink (Link xs _) = Emph xs
7504 removeLink x = x
7506 To use this to remove links while translating markdown to LaTeX:
7508 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
7510 * Attributes are now allowed in inline `Code` elements, for example:
7512 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
7514 The attribute syntax is the same as for delimited code blocks.
7515 `Code` inline has an extra argument place for attributes, just like
7516 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
7517 is compiled with highlighting support. Resolves Issue #119.
7519 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
7520 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
7521 scripts to transform Pandoc documents. Scripts can now change
7522 how each element is rendered in each output format.
7524 * You can now define LaTeX macros in markdown documents, and pandoc
7525 will apply them to TeX math. For example,
7527 \newcommand{\plus}[2]{#1 + #2}
7528 $\plus{3}{4}$
7530 yields `3+4`. Since the macros are applied in the reader, they
7531 will work in every output format, not just LaTeX.
7533 * LaTeX macros can also be used in LaTeX documents (both in math
7534 and in non-math contexts).
7536 * A new `--mathjax` option has been added for displaying
7537 math in HTML using MathJax. Resolves issue #259.
7539 * Footnotes are now supported in the RST reader. (Note, however,
7540 that unlike docutils, pandoc ignores the numeral or symbol used in
7541 the note; footnotes are put in an auto-numbered ordered list.)
7542 Resolves Issue #258.
7544 * A new `--normalize` option causes pandoc to normalize the AST
7545 before writing the document. This means that, for example,
7546 `*hi**there*` will be rendered as `<em>hithere</em>`
7547 instead of `<em>hi</em><em>there</em>`. This is not the default,
7548 because there is a significant performance penalty.
7550 * A new `--chapters` command-line option causes headers
7551 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
7552 Resolves Issue #265.
7554 * In DocBook output, `<chapter>` is now used for top-level
7555 headers if the template contains `<book>`. Resolves Issue #265.
7557 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
7558 the LaTeX writer to use the listings package for code blocks.
7559 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
7560 Millon for the markdown2pdf patch.)
7562 * `markdown2pdf` now supports `--data-dir`.
7564 * URLs in autolinks now have class "url" so they can be styled.
7566 * Improved prettyprinting in most formats. Lines will be wrapped
7567 more evenly and duplicate blank lines avoided.
7569 * New `--columns` command-line option sets the column width for
7570 line wrapping and relative width calculations for tables.
7572 * Made `--smart` work in HTML, RST, and Textile readers, as well
7573 as markdown.
7575 * Added `--html5` option for HTML5 output.
7577 * Added support for listings package in LaTeX reader
7578 (Puneeth Chaganti).
7580 * Added support for simple tables in the LaTeX reader.
7582 * Added support for simple tables in the HTML reader.
7584 * Significant performance improvements in many readers and writers.
7586 [API and program changes]
7588 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
7589 auxiliary package, `pandoc-types`. This will make it possible for other
7590 programs to supply output in Pandoc format, without depending on the whole
7591 pandoc package.
7593 * Added `Attr` field to `Code`.
7595 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
7596 `RawBlock` and `RawInline`.
7598 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
7599 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
7600 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
7602 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
7604 * `Text.Pandoc` now exports association lists `readers` and `writers`.
7606 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
7607 `readNative` can now read full pandoc documents, block lists, blocks,
7608 inline lists, or inlines. It will interpret `Str "hi"`
7609 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
7610 This should make testing easier.
7612 * Removed deprecated `-C/--custom-header` option.
7613 Use `--template` instead.
7615 * `--biblio-file` has been replaced by `--bibliography`.
7616 `--biblio-format` has been removed; pandoc now guesses the format
7617 from the file extension (see README).
7619 * pandoc will treat an argument as a URI only if it has an
7620 `http(s)` scheme. Previously pandoc would treat some
7621 Windows pathnames beginning with `C:/` as URIs.
7623 * The `--sanitize-html` option and the `stateSanitize` field in
7624 `ParserState` have been removed. Sanitization is better done in the
7625 resulting HTML using `xss-sanitize`, which is based on pandoc's
7626 sanitization, but improved.
7628 * pandoc now adds a newline to the end of its output in fragment
7629 mode (= not `--standalone`).
7631 * Added support for `lang` in `html` tag in the HTML template,
7632 so you can do `pandoc -s -V lang=es`, for example.
7634 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
7635 a boolean argument that selects between "inline" and
7636 "block" HTML.
7638 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
7639 Images are embedded in RTF output when possible (png, jpeg).
7640 Resolves Issue #275.
7642 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
7643 `pretty` package. Changed all writers that used
7644 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
7646 * Rewrote `writeNative` using the new prettyprinting module. It is
7647 now much faster. The output has been made more consistent and compressed.
7648 `writeNative` is also now sensitive to writerStandalone`, and will simply
7649 `print a block list if writerStandalone` is False.
7651 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
7652 blocks and concatenate them, so a separate module is no longer needed.
7654 * `Text.Pandoc.Shared`:
7656 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
7657 `WriterOptions`.
7658 + Added `normalize`.
7659 + Removed unneeded prettyprinting functions:
7660 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
7661 `BlockWrapper`, `wrappedBlocksToDoc`.
7662 + Made `splitBy` take a test instead of an element.
7663 + Added `findDataFile`, refactored `readDataFile`.
7664 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
7665 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
7667 * `Text.Pandoc.Readers.HTML`:
7669 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
7670 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
7671 `htmlBlockElement`, `htmlComment`
7672 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
7673 `isTextTag`
7675 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
7676 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
7677 an inline parser.
7679 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
7681 * Ellipses are no longer allowed to contain spaces.
7682 Previously we allowed '. . .', ' . . . ', etc. This caused
7683 too many complications, and removed author's flexibility in
7684 combining ellipses with spaces and periods.
7686 * Allow linebreaks in URLs (treat as spaces). Also, a string of
7687 consecutive spaces or tabs is now parsed as a single space. If you have
7688 multiple spaces in your URL, use `%20%20`.
7690 * `Text.Pandoc.Parsing`:
7692 + Removed `refsMatch`.
7693 + Hid `Key` constructor.
7694 + Removed custom `Ord` and `Eq` instances for `Key`.
7695 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
7696 + Generalized type on `readWith`.
7698 * Small change in calculation of relative widths of table columns.
7699 If the size of the header > the specified column width, use
7700 the header size as 100% for purposes of calculating
7701 relative widths of columns.
7703 * Markdown writer now uses some pandoc-specific features when `--strict`
7704 is not specified: `\` newline is used for a hard linebreak instead of
7705 two spaces then a newline. And delimited code blocks are used when
7706 there are attributes.
7708 * HTML writer: improved gladTeX output by setting ENV appropriately
7709 for display or inline math (Jonathan Daugherty).
7711 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
7713 * LaTeX reader:
7715 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
7716 + `\index{}` commands are skipped.
7718 * Added `fontsize` variable to default LaTeX template.
7719 This makes it easy to set the font size using `markdown2pdf`:
7720 `markdown2pdf -V fontsize=12pt input.txt`.
7722 * Fixed problem with strikeout in LaTeX headers when using
7723 hyperref, by adding a command to the default LaTeX template
7724 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
7725 for the fix.
7727 * The `COLUMNS` environment variable no longer has any effect.
7729 [under-the-hood improvements]
7731 * Pandoc now compiles with GHC 7. (This alone leads to a
7732 significant performance improvement, 15-20%.)
7734 * Completely rewrote HTML reader using tagsoup as a lexer. The
7735 new reader is faster and more accurate. Unlike the
7736 old reader, it does not get bogged down on some input
7737 (Issues #277, 255). And it handles namespaces in tags
7738 (Issue #274).
7740 * Replaced `escapeStringAsXML` with a faster version.
7742 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
7743 for a significant performance boost.
7745 * Improved performance of all readers by rewriting parsers.
7747 * Simplified Text.Pandoc.CharacterReferences by using
7748 entity lookup functions from TagSoup.
7750 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
7751 from `System.IO` if base >= 4.2. This gives support for
7752 windows line endings on windows.
7754 * Remove duplications in documentation by generating the
7755 pandoc man page from README, using `MakeManPage.hs`.
7757 * README now includes a full description of markdown syntax,
7758 including non-pandoc-specific parts. A new `pandoc_markdown`
7759 man page is extracted from this, so you can look up markdown
7760 syntax by doing `man pandoc_markdown`.
7762 * Completely revised test framework (with help from Nathan Gass).
7763 The new test framework is built when the `tests` Cabal flag is set. It
7764 includes the old integration tests, but also some new unit and quickcheck
7765 tests. Test output has been much improved, and you can now specify a glob
7766 pattern after `cabal test` to indicate which tests should be run;
7767 for example `cabal test citations` will run all the citation tests.
7769 * Added a shell script, `stripansi.sh`, for filtering ANSI control
7770 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
7772 * Added `Interact.hs` to make it easier to use ghci while developing.
7773 `Interact.hs` loads `ghci` from the `src` directory, specifying
7774 all the options needed to load pandoc modules (including
7775 specific package dependencies, which it gets by parsing
7776 dist/setup-config).
7778 * Added `Benchmark.hs`, testing all readers + writers using criterion.
7780 * Added `stats.sh`, to make it easier to collect and archive
7781 benchmark and lines-of-code stats.
7783 * Added upper bounds to all cabal dependencies.
7785 * Include man pages in extra-source-files. This allows users to
7786 install pandoc from the tarball without needing to build the man
7787 pages.
7789 [bug fixes]
7791 * Filenames are encoded as UTF8. Resolves Issue #252.
7793 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
7794 were just parsed literally, leading to problems in some output formats.
7795 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
7796 Resolves Issue #270.
7798 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
7799 Spaces at end of line were not being stripped properly,
7800 resulting in unintended LineBreaks.
7802 * Markdown reader:
7804 + Allow HTML comments as inline elements in markdown.
7805 So, `aaa <!-- comment --> bbb` can be a single paragraph.
7806 + Fixed superscripts with links: `^[link](/foo)^` gets
7807 recognized as a superscripted link, not an inline note followed by
7808 garbage.
7809 + Fixed regression, making markdown reference keys case-insensitive again.
7810 Resolves Issue #272.
7811 + Properly handle abbreviations (like `Mr.`) at the end of a line.
7812 + Better handling of intraword underscores, avoiding exponential
7813 slowdowns in some cases. Resolves Issue #182.
7814 + Fixed bug in alignments in tables with blank rows in the header.
7816 * RST reader:
7818 + Field lists now allow spaces in field names, and
7819 block content in field values. (Thanks to Lachlan Musicman
7820 for pointing out the bug.)
7821 + Definition list items are now always `Para` instead of
7822 `Plain`, matching behavior of `rst2xml.py`.
7823 + In image blocks, the description is parsed properly and
7824 used for the alt attribute, not also the title.
7825 + Skip blank lines at beginning of file. Resolves
7826 Debian #611328.
7828 * LaTeX reader:
7830 + Improved parsing of preamble.
7831 Previously you'd get unexpected behavior on a document that
7832 contained `\begin{document}` in, say, a verbatim block.
7833 + Allow spaces between `\begin` or `\end` and `{`.
7834 + Support `\L` and `\l`.
7835 + Skip comments inside paragraphs.
7837 * LaTeX writer:
7839 + Escape strings in `\href{..}`.
7840 + In nonsimple tables, put cells in `\parbox`.
7842 * OpenDocument writer: don't print raw TeX.
7844 * Markdown writer:
7846 + Fixed bug in `Image`. URI was getting unescaped twice!
7847 + Avoid printing extra blank lines at the end if there are
7848 no notes or references.
7850 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
7851 This avoids unwanted interpretation as an optional argument.
7853 * ConTeXt writer: Fixed problem with inline code. Previously
7854 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
7855 If it contains neither, use `\type{}`; otherwise use `\mono{}`
7856 with an escaped version of the string.
7858 * `:` now allowed in HTML tags. Resolves Issue #274.
7860pandoc (1.6)
7862 [ John MacFarlane ]
7864 * New EPUB and HTML Slidy writers. (Issue #122)
7866 - EPUB is a standard ebook format, used in Apple's iBooks for
7867 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
7868 reader, and many other devices.
7869 - Slidy, like S5, is a system for producing HTML+javascript slide
7870 shows.
7872 * All input is assumed to be UTF-8, no matter what the locale and ghc
7873 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
7874 Also, a BOM, if present, is stripped from the input.
7876 * Markdown now supports grid tables, whose cells can contain
7877 arbitrary block elements. (Issue #43)
7879 * Sequentially numbered example lists in markdown with `@` marker.
7881 * Markdown table captions can begin with a bare colon and no longer need
7882 to include the English word "table." Also, a caption can now occur
7883 either before or after the table. (Issue #227)
7885 * New command-line options:
7887 - `--epub-stylesheet` allows you to specify a CSS file that will
7888 be used to style your ebook.
7889 - `--epub-metadata` allows you to specify metadata for the ebook.
7890 - `--offline` causes the generated HTML slideshow to include all
7891 needed scripts and stylesheets.
7892 - `--webtex` causes TeX math to be converted to images using the
7893 Google Charts API (unless a different URL is specified).
7894 - `--section-divs` causes div tags to be added around each section
7895 in an HTML document. (Issue #230, 239)
7897 * Default behavior of S5 writer in standalone mode has changed:
7898 previously, it would include all needed scripts and stylesheets
7899 in the generated HTML; now, only links are included unless
7900 the `--offline` option is used.
7902 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
7903 pandoc would enclose sections in div tags with identifiers on the
7904 div tags, so that the sections can be manipulated in javascript.
7905 This caused undesirable interactions with raw HTML div tags. So,
7906 starting with 1.6, the default is to put the identifiers directly
7907 on the header tags, and not to include the divs. The `--section-divs`
7908 option selects the 1.2-1.5 behavior.
7910 * API changes:
7912 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
7913 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
7914 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
7915 `writerIncludeAfter`.
7916 - Added `headerShift` to `Text.Pandoc.Shared`.
7917 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
7918 to a new module, `Text.Pandoc.Parsing`.
7919 - Added `stateHasChapters` to `ParserState`.
7920 - Added `HTMLSlideVariant`.
7921 - Made `KeyTable` a map instead of an association list.
7922 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
7923 `docDate`).
7924 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
7925 instances.
7926 - Reference keys now have a type of their own (`Key`), with its
7927 own `Ord` instance for case-insensitive comparison.
7928 - Added `Text.Pandoc.Writers.EPUB`.
7929 - Added `Text.Pandoc.UUID`.
7930 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
7931 Removed `saveOpenDocumentAsODT`, added `writeODT`.
7932 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
7933 Removed `prettyPandoc`.
7934 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
7935 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
7936 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
7937 To write S5, you now use `writeHtml` with `writerSlideVariant`
7938 set to `S5Slides` or `SlidySlides`.
7940 * Template changes. If you use custom templates, please update them,
7941 particularly if you use syntax highlighting with pandoc. The old HTML
7942 templates hardcoded highlighting CSS that will no longer work with
7943 the most recent version of highlighting-kate.
7945 - HTML template: avoid empty meta tag if no date.
7946 - HTML template: Use default highlighting CSS from highlighting-kate
7947 instead of hard-coding the CSS into the template.
7948 - HTML template: insert-before text goes before the title, and
7949 immediately after the <body> tag, as documented. (Issue #241)
7950 - Added slidy and s5 templates.
7951 - Added amssymb to preamble of latex template. (github Issue 1)
7953 * Removed excess newlines at the end of output. Note: because output
7954 will not contain an extra newline, you may need to make adjustments
7955 if you are inserting pandoc's output into a template.
7957 * In S5 and slidy, horizontal rules now cause a new slide, so you
7958 are no longer limited to one slide per section.
7960 * Improved handling of code in man writer. Inline code is now monospace,
7961 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
7963 * HTML reader parses `<tt>` as Code. (Issue #247)
7965 * html+lhs output now contains bird tracks, even when compiled without
7966 highlighting support. (Issue #242)
7968 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
7969 since they have a special meaning in XML.
7971 * Code improvements in ODT writer. Remote images are now replaced with
7972 their alt text rather than a broken link.
7974 * LaTeX reader improvements:
7976 - Made latex `\section`, `\chapter` parsers more forgiving of
7977 whitespace.
7978 - Parse `\chapter{}` in latex.
7979 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
7980 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
7981 for use in markdown reader.
7982 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
7983 in markdown document.
7985 * LaTeX writer: images are automatically shrunk if they would extend
7986 beyond the page margin.
7988 * Plain, markdown, RST writers now use unicode for smart punctuation.
7990 * Man writer converts math to unicode when possible, as in other writers.
7992 * `markdown2pdf` can now recognize citeproc options.
7994 * Command-line arguments are converted to UTF-8. (Issue #234)
7996 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
7997 This allows it to handle a wider range of formulas. Also, if a formula
7998 cannot be converted, it is left in raw TeX; formulas are no longer
7999 partially converted.
8001 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
8002 #143)
8004 * Cabal file changes:
8006 - Removed parsec < 3 restriction.
8007 - Added 'threaded' flag for architectures where GHC lacks a threaded
8008 runtime.
8009 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
8010 - Require highlighting-kate 0.2.7.
8012 * Use explicit imports from `Data.Generics`. Otherwise we have a
8013 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
8015 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
8017pandoc (1.5.1.1)
8019 [ John MacFarlane ]
8021 * Fixed uniqueIdent in Shared so that header identifiers work as
8022 advertized in the README and are are valid XHTML names.
8024pandoc (1.5.1)
8026 [ John MacFarlane ]
8028 * Fixed treatment of unicode characters in URIs.
8029 + Shared now exports escapeURI and unescapeURI. These handle
8030 UTF8 encoding and decoding as well as URI escaping/unescaping.
8031 + Shared: uri and emailAddress now return a pair of the original
8032 parsed text and the escaped URI (in the latter case, with
8033 the mailto: prefix).
8034 + HTML reader: unsanitaryURI has been modified to allow unicode
8035 high characters in a URI.
8036 + Readers: All link and image URIs are now escaped using
8037 escapeURI.
8038 + Markdown and RST writers: unescapeURI is used so that URIs
8039 in these formats are human-readable.
8041 * Setup.hs: Don't assume that the build directory is "dist".
8042 Instead, get it from localBuildInfo.
8044 * OpenDocument writer: Use a Map for stTextStyleAttr.
8045 This avoids duplicates (and invalid xml). Resolves Issue #222.
8047pandoc (1.5.0.1)
8049 [ John MacFarlane ]
8051 * HTML writer: Fixed error in math writer (with MathML option)
8052 that caused an infinite loop for unparsable MathML.
8054pandoc (1.5)
8056 [ John MacFarlane ]
8058 * Added --mathml option. When this is selected, pandoc will convert
8059 TeX math into MathML.
8060 + Added data/MathMLinHTML.js, which is included when no URL is
8061 provided for --mathml. This allows MathML to be displayed (in
8062 better browsers) as text/html.
8063 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
8064 necessary; it was replaced by two lines in pandoc.hs.
8065 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
8066 single combined file, LaTeXMathML.js.
8068 * Added --data-dir option.
8069 This specifies a user data directory. If not specified, will default
8070 to ~/.pandoc on unix or Application Data\pandoc on Windows.
8071 Files placed in the user data directory will override system default
8072 data files.
8074 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
8075 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
8076 Nothing, no user directory is searched for an override.
8078 * Added 'plain' output format. This is similar to markdown, but
8079 removes links, pictures, inline formatting, and most anything that
8080 looks even vaguely markupish. The function writePlain is exported by
8081 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
8083 * Allow multi-line titles and authors in meta block.
8084 Titles may span multiple lines, provided continuation lines
8085 begin with a space character. Separate authors may be put on
8086 multiple lines, provided each line after the first begins with
8087 a space character. Each author must fit on one line. Multiple
8088 authors on a single line may still be separated by a semicolon.
8089 Based on a patch by Justin Bogner.
8091 * When given an absolute URI as parameter, pandoc will try to fetch
8092 the content via HTTP. So you can do:
8093 'pandoc -r html -w markdown http://www.fsf.org'
8094 Adds dependency on HTTP.
8096 * Made HTML reader much more forgiving.
8097 + Incorporated idea (from HXT) that an element can be closed
8098 by an open tag for another element.
8099 + Javascript is partially parsed to make sure that a <script>
8100 section is not closed by a </script> in a comment or string.
8101 + More lenient non-quoted attribute values.
8102 Now we accept anything but a space character, quote, or <>.
8103 This helps in parsing e.g. www.google.com!
8104 + Bare & signs are now parsed as a string. This is a common
8105 HTML mistake.
8106 + Skip a bare < in malformed HTML.
8108 * Removed html2markdown and hsmarkdown.
8109 + html2markdown is no longer needed, since you can now pass URI
8110 arguments to pandoc and directly convert web pages. (Note,
8111 however, that pandoc assumes the pages are UTF8. html2markdown
8112 made an attempt to guess the encoding and convert them.)
8113 + hsmarkdown is pointless -- a large executable that could be
8114 replaced by 'pandoc --strict'.
8116 * In most writers, an image in a paragraph by itself is now rendered
8117 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
8118 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
8119 rendered inline.
8121 * Depend on extensible-exceptions. This allows pandoc to be compiled
8122 on GHC 6.8.
8124 * Added --base-header-level option. For example, --base-header-level=2
8125 will change level 1 headers to level 2, level 2 to level 3, etc.
8126 Closes Debian #563416.
8128 * Incomplete support for RST tables (simple and grid).
8129 Thanks to Eric Kow. Colspans and rowspans not yet supported.
8131 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
8133 * MediaWiki writer: format links with relative URLs as wikilinks.
8134 The new rule: If the link target is an absolute URL, an external
8135 link is created. Otherwise, a wikilink is created.
8137 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
8138 identifier. Note: This may break links to sections that involve
8139 tildes.
8141 * Markdown(+lhs) reader: handle "inverse bird tracks."
8142 Inverse bird tracks (<) are used for haskell example code that is not
8143 part of the literate Haskell program. Resolves Issue #211.
8145 * LaTeX reader:
8146 + Recognize '\ ' (interword space).
8147 + Recognize nonbreaking space '~'.
8148 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
8149 section headers. Don't treat \section as inline LaTeX.
8150 Resolves Issue #202.
8151 + LaTeX reader: allow any special character to be escaped.
8152 Resolves Issue #221.
8153 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
8154 headers. Resolves Issue #207.
8156 * Use template variables for include-before/after.
8157 + These options now imply -s; previously they worked also in fragment
8158 mode.
8159 + Users can now adjust position of include-before and include-after
8160 text in the templates.
8161 + Default position of include-before moved back (as it was before 1.4)
8162 before table of contents.
8163 + Resolves Issue #217.
8165 * Don't print an empty table header: (all writers).
8166 Resolves Issue #210.
8168 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
8170 * HTML writer: Don't include TOC div if table of contents is empty.
8172 * Markdown writer: Fixed citations.
8173 Previously the markdown writer printed raw citation codes, e.g.
8174 [geach1970], rather than the expanded citations provided by
8175 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
8176 This means that the document produced can be processed as a markdown
8177 document without citeproc. Thanks to dsanson for reporting, and
8178 Andrea Rossato for the patch.
8180 * Improved and simplified title block in context template.
8181 Previously it caused an error if there was no title.
8182 This method should also be easier for users to customize.
8184 * Markdown reader:
8185 + Treat p., pp., sec., ch., as abbreviations in smart mode.
8186 + Disallow blank lines in inline code span.
8187 + Allow footnotes to be indented < 4 spaces.
8188 This fixes a regression. A test case has been added.
8189 + Escape spaces in URLs as %20. Previously they were incorrectly
8190 escaped as +, which is appropriate only for the query part of
8191 a URL. Resolves Issue #220.
8192 + Require two spaces after capital letter + period for list item.
8193 Otherwise "E. coli" starts a list. This might change the semantics
8194 of some existing documents, since previously the two-space
8195 requirement was only enforced when the second word started
8196 with a capital letter. But it is consistent with the existing
8197 documentation and follows the principle of least surprise.
8198 Resolves Issue #212.
8200 * LaTeX template: redefine labelwidth when using enumerate package.
8201 Otherwise the list labels (numbers) often extend past the left
8202 margin, which looks bad.
8204 * Mediawiki writer: Don't print a "== Notes ==" header before
8205 references. This is too English-centric. Writers can provide their
8206 own header at the end of the document.
8208 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
8209 level 2, etc. This seems to be correct; it's only by convention
8210 that wikipedia articles have level 2 headers at most.
8211 Patch due to Eric Kow.
8213 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
8214 data files don't need to have been installed. This removes the need to
8215 set HOME.
8217 * HTML reader:
8218 + Handle spaces before <html>. Resolves Issue #216.
8219 + Be forgiving in parsing a bare list within a list.
8220 The following is not valid xhtml, but the intent is clear:
8221 <ol>
8222 <li>one</li>
8223 <ol><li>sub</li></ol>
8224 <li>two</li>
8225 </ol>
8226 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
8228 * Updated INSTALL instructions. cabal method is now promoted.
8230 * Updated markdown2pdf man page. It no longer says all pandoc options
8231 are accepted.
8233 * README/man pages: Removed advice to pipe through tidy before HTML
8234 reader. This is obsolete, now that we have a forgiving HTML parser.
8236 * LaTeX writer: set numbersections template variable, so
8237 the section numbering options work again.
8239 * Removed obsolete Makefile.
8241 * Website: renamed index.txt.in -> index.txt.
8243 * New batch file to make-windows-installer.
8244 + Removed old Makefile.windows
8245 + Added make-windows-installer.bat
8246 + Modified default installer name in pandoc-setup.iss
8248 * Removed freebsd and macports directories.
8249 They are no longer up to date.
8251 * Setup.hs:
8252 + Made man page building sensitive to build verbosity.
8253 + Improved detection of highlighting support in test hook.
8254 + Install wrapper scripts into cabal bin directory.
8255 + Also simplified installManpages.
8256 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
8258 * Changed default of writerXeTeX to False.
8260 * HTML writer: don't include empty UL if --toc but no sections.
8261 Resolves Issue #199.
8263 * LaTeX writer:
8265 + If book, report, or memoir documentclass, use \chapter{}
8266 for first-level headers. Otherwise use \section{}.
8267 + Removed stLink, link template variable. Reason: we now always
8268 include hyperref in the template.
8270 * LaTeX template:
8272 + Only show \author if there are some.
8273 + Always include hyperref package. It is used not just for links but
8274 for toc, section heading bookmarks, footnotes, etc. Also added
8275 unicode=true on hyperref options.
8277 * markdown2pdf: always do at least two runs. hyperref bookmarks
8278 require this.
8280 * cabal file: Removed unneeded dependency on template-haskell.
8282 * Windows installer - fixed bug in data file locations.
8283 Resolves Issue #197.
8285 * Deprecated --custom-header in documentation.
8286 Removed old "Custom Headers" section in README.
8288pandoc (1.4)
8290 [ John MacFarlane ]
8292 * Pandoc will now compile with either GHC 6.10 or 6.12.
8293 + Don't use System.IO.UTF8 when compiling with 6.12
8294 + Use -fno-warn-unused-do-bind option when compiling with 6.12
8296 * Replaced old headers with templates. Now users have much more
8297 control over the way documents appear in --standalone mode,
8298 and writer code is simplified. Resolves Issues #59, 147.
8299 Every effort has been made to retain backwards compatibilty.
8300 So, the --custom-header option should still work as before.
8302 + Added Text.Pandoc.Templates. This provides functions for
8303 retrieving default templates and for rendering templates.
8304 + System templates (in the pandoc data directory) can be
8305 overridden by user templates in $HOME/.pandoc/templates.
8306 + Removed Text.Pandoc.DefaultHeaders.
8307 + Removed data/headers directory.
8308 + Added templates directory.
8309 + Added writerTemplate and writerVariables fields to WriterOptions.
8310 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
8311 + Changed --print-default-header to --print-default-template.
8312 + Added --template option.
8313 + Added -V/--variable option to set custom template variables.
8315 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
8317 + Removed need for TH in ODT module. Instead get reference.odt from
8318 data file at run time.
8319 + Removed TH dependency from S5 module. S5 module now exports
8320 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
8321 standalone.
8322 + Refactored LaTeXMathML not to use TH.
8324 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
8325 Meta [Inline] [String] String. Authors and date in Meta are now lists
8326 of Inline elements rather than raw strings. This means that they can
8327 be formatted and can include footnotes. NOTE: This may be a breaking
8328 change for those using pandoc as a library.
8330 * Added readDataFile to Text.Pandoc.Shared. This retrieves
8331 a data file from the user pandoc data directory (~/.pandoc
8332 on unix), or, if not found there, from the system data
8333 directory ($CABALDIR/shared/pandoc-VERSION/). All data
8334 files, including templates, LaTeXMathML.js, s5 styles,
8335 and reference.odt, can be overridden by the user.
8337 * s5 files moved from data/ui/default to s5/default.
8339 * Use unicode instead of entities in HTML and XML output. Resolves
8340 Issue #163.
8342 * Prettier HTML footnote references: put anchor inside sup,
8343 instead of other way. Resolves Issue #191. Thanks to
8344 infinity0x.
8346 * Added --xetex option to pandoc and markdown2pdf.
8347 If --xetex is specified, pandoc produces latex suitable for
8348 processing by xelatex, and markdown2pdf uses xelatex to create
8349 the PDF. Resolves Issue #185.
8351 * RTF writer: multiple authors now occupy multiple paragraphs rather
8352 than using a line break.
8354 * Man writer: now the "--after-body" will come after the "AUTHORS"
8355 section, whereas before it would come before it. This is a
8356 slight break from backwards compatibility.
8358 * Added --reference-odt option, so users may customize the styles
8359 used in pandoc-generated ODT files. Users may also place a
8360 default reference.odt in the ~\.pandoc directory.
8362 * ODT writer:
8363 + Indented and line-broke styles.xml so it can be modified more easily.
8364 + Omitted some unnecessary style declarations.
8365 + Don't wrap text in OpenDocument writer. The tags are too long, making
8366 wrapping ugly and pointless.
8368 * LaTeX reader: use \\ to separate multiple authors.
8370 * Markdown reader: use ; as separator between authors.
8371 This allows you to use ',' within author names: e.g. "John Jones, Jr."
8373 * S5 writer: use linebreak to separate authors in title page.
8375 * RST reader: Allow :: before lhs code block. The RST spec requires the
8376 :: before verbatim blocks. This :: should not be treated as literal
8377 colons. Resolves Issue #189.
8379 * Documented pandoc 1.3's new definition list syntax in README.
8380 (An oversight in the last release.)
8382 * markdown2pdf.hs:
8383 + interpret ! in a log as an error line.
8384 + --toc now works properly.
8386 * Changes in RunTests.hs:
8387 + Use the Diff library rather than a local copy of Diff.hs.
8388 (This vastly increases performance.) This change means that 'cabal
8389 test' presupposes that the Diff library is installed.
8390 + Removed tests/Diff.hs from cabal file.
8391 + Changed RunTests to use local environment. We need at least HOME, so
8392 pandoc can find its data directory.
8394 * Updated windows installer to install data files in the app directory.
8396 * Windows installer now installs portable wrappers hsmarkdown and
8397 markdown2pdf.
8399pandoc (1.3)
8401 [ John MacFarlane ]
8403 * Added --id-prefix option (Issue #41). This adds a prefix to all
8404 automatically generated HTML identifiers, which helps prevent
8405 duplicate identifiers when you're generating a fragment (say a blog
8406 post).
8408 * Added --indented-code-classes option. This specifies classes
8409 to use for indented code blocks. (Patch due to buttock; Issue #87.)
8411 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
8412 (Issue #150).
8414 * Improved syntax for markdown definition lists (Issue #24).
8415 Definition lists are now more compatible with PHP Markdown Extra.
8416 + You can have multiple definitions for a term (but still not
8417 multiple terms).
8418 + Multi-block definitions no longer need a column before each block
8419 (indeed, this will now cause multiple definitions).
8420 + The marker no longer needs to be flush with the left margin,
8421 but can be indented at or two spaces. Also, ~ as well as :
8422 can be used as the marker (this suggestion due to David
8423 Wheeler.)
8424 + There can now be a blank line between the term and the
8425 definitions.
8427 * Better looking simple tables. Resolves Issue #180.
8428 + Markdown reader: simple tables are now given column widths of 0.
8429 + Column width of 0 is interpreted as meaning: use default column width.
8430 + Writers now include explicit column width information only
8431 for multiline tables. (Exception: RTF writer, which requires
8432 column widths. In this case, columns are given equal widths,
8433 adding up to the text width.)
8434 + Simple tables should now look better in most output formats.
8436 * Allow markdown tables without headers (Issue #50).
8437 The new syntax is described in README. Also allow optional line of
8438 dashes at bottom of simple tables.
8440 * Compensate for width of final table column (Issue #144).
8442 * Treat a backslash followed by a newline as a hard line break
8443 in markdown. Resolves Issue #154. This is a nice alternative
8444 to markdown's "invisible" way of indicating hardline breaks
8445 using lines that end with two spaces.
8447 * Improved performance of markdown reader by ~10% by eliminating the
8448 need for a separate parsing pass for notes. Raw notes are now stored
8449 on the first pass (which parses references), then parsed when the
8450 note is inserted into the AST. The stateNotes field in ParserState
8451 is now a list of [(String, String)] pairs instead of [(String,
8452 [Block])].
8454 * In markdown reader, treat 4 or more * or _ in a row as literal
8455 text. (Trying to parse long strings of * or _ as strong or emph
8456 leads to exponential performance problems.)
8458 * Markdown reader: Use + rather than %20 for spaces in URLs.
8460 * Fixed htmlComment parser, adding a needed 'try'.
8462 * Don't print raw HTML in man output.
8464 * Allow . _ and ~ in header identifiers.
8466 * Specially mark code blocks that were "literate" in the input.
8467 They can then be treated differently in the writers. This allows
8468 authors to distinguish bits of the literate program they are writing
8469 from source code examples, even if the examples are marked as
8470 Haskell for highlighting. (Issue #174.)
8472 * Modified html+lhs output to use "haskell" highlighter instead
8473 of "literateHaskell". The highlighting module now adds bird tracks
8474 after highlighting (for HTML output), if the code block has the
8475 "literate" class. This gives better results, because kate's
8476 haskell highlighter is much better than the literateHaskell
8477 highlighter.
8479 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
8480 (Issue #137.)
8482 * Support for "..code-block" directive in RST reader. Not core
8483 RST, but used in Sphinx for code blocks annotated with syntax
8484 information. Thanks to Luke Plant for the patch.
8486 * Added "head" to list of block-level HTML tags. Resolves
8487 Issue #108.
8489 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
8491 * Set utf-8 encoding in texinfo headers.
8493 * Docbook writer: add ids to sections. Use link for internal links.
8494 (Issue #60.)
8496 * Blank lines after lists in MediaWiki writer.
8498 * Properly handle commented-out list items in markdown.
8499 Resolves Issue #142. Example:
8501 - a
8502 <!--
8503 - b
8504 -->
8505 - c
8507 * Changed heuristic in compactify. compactify has to decide whether a
8508 Para that ends a list is a Para intentionally, or just because of
8509 the blank lines at the end of every list. In the latter case the
8510 Para is turned to a Plain. The old heuristic was: change final Para
8511 to Plain iff the other items all end in Plain. This produces bad
8512 results when, for example, an item contains just a Plain and an HTML
8513 comment, as it does in the list above. The new heuristic: change
8514 final Para to Plain iff the other items don't contain a Para.
8516 * Added % as an rst underline character. Resolves Issue #173.
8518 * Fix inline math parser so that \$ is allowed in math.
8519 Resolves Issue #169.
8521 * Translate \int (integral) into unicode when using unicode math
8522 method. Resolves Issue #177.
8524 * markdown2pdf.hs improvements:
8525 + Use System.IO.UTF8.
8526 + Print error messages on last attempt.
8527 + Do not create a backup when overwriting a PDF (Issue #166).
8528 + Accept --longopt=val options.
8529 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
8530 it is properly cleaned.
8532 * Added haddock comments warning that readers assume \n line endings.
8534 * Updated COPYRIGHT file.
8536 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
8537 markdown2pdf. Otherwise strip tries to strip shell scripts when you
8538 install using 'make'.
8540 * Changed Makefile so it doesn't build Haskell wrappers.
8542 * Fixed Makefile so it doesn't try to build man pages in build-doc.
8544 * Install pcre3.dll in Windows install script; this allows us to
8545 package a version of pandoc with highlighting support.
8547pandoc (1.2.1)
8549 [ John MacFarlane ]
8551 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
8552 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
8553 side effect: strings of 0 spaces were interpreted as indentation.
8554 So, with --preserve-tabs, unindented paragraphs were treated as
8555 code. Resolves Issue #138.
8557 * HTML writer: wrap sections in divs. Resolves Issue #70.
8559 + hierarchicalize has been rationalized; it builds a hierarchical
8560 representation of the document from the headers, and simultaneously
8561 gives each section a unique identifier based on the heading title.
8562 + Identifiers are now attached to the divs rather than
8563 to the headers themselves.
8564 + Table of content backlinks go to the beginning of the table, rather
8565 than to the section reference that was clicked.
8566 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
8567 from the HTML writer, since it is now consumed only by
8568 hierarchicalize.
8569 + In --strict mode, pandoc just prints bare headings, as before
8570 (unless --toc has been specified).
8571 + In s5 output, it does not wrap sections in divs, as that seems to
8572 confuse the s5 javascript.
8574 * Man writer: break lines at end of each sentence. groff expects this
8575 and treats '.' and '?' differently when followed by line ending as
8576 opposed to ordinary space. Also, don't escape periods. Instead, use
8577 zero-width character \& to avoid unwanted interpretation of periods
8578 at start of line. Resolves Issue #148.
8580 * Markdown writer: Added '#' and '>' to list of characters to be
8581 escaped in markdown output. Removed '<', as it is not an officially
8582 escapable character. This partially resolves Issue #96.
8584 * Make --smart the default for man output format. Otherwise we have
8585 trouble dividing lists of endlines into sentences.
8587 * DocBook writer: Use language attribute to indicate source language
8588 in code blocks.
8590 * RST reader:
8592 + Allow # to continue list, even if the list was started with an
8593 explicit marker. For example:
8595 A. my list
8596 #. continued
8598 Resolves Issue #140.
8599 + Allow continuation lines in line blocks. Also added test cases for
8600 line blocks for RST reader. Resolves Issue #149.
8601 + Allow explicit links with spaces in URL: `link <to this>`_
8603 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
8604 (which is not in LaTeX) and recognize all the amsmath environments
8605 that are alternatives to eqnarray, namely equation, equation*,
8606 gather, gather*, gathered, multline, multline*, align, align*,
8607 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
8608 Thanks to shreevatsa.public for the patch.
8610 * Markdown reader:
8612 + Allow -, _, :, . in markdown attribute names. These are legal in
8613 XML attribute names.
8614 + Use non-breaking spaces in abbreviations.
8615 + Markdown reader: improved efficiency of abbreviation parsing.
8616 Instead of a separate abbrev parser, we just check for
8617 abbreviations each time we parse a string. This gives a huge
8618 performance boost with -S. Resolves Issue #141.
8620 * Improved efficiency of shared parsers: hexNum, htmlComment,
8621 whitespace, indentSpaces.
8623 * Export HTMLMathMethod in Text.Pandoc.
8625 * Export languagesByExtension in Text.Pandoc.Highlighting.
8627 * Added new Haskell version of markdown2pdf, due to
8628 Paulo Tanimoto. This should be more portable than the old
8629 shell script.
8631 * Made 'pandoc -v' more explicit about compiler options.
8632 Resolves Issue #139.
8634 * pandoc.hs: Made --strict compatible with --standalone, --toc.
8636 * Use Paths_pandoc to get version number, instead of hard-coding it
8637 into Text/Pandoc.hs.
8639pandoc (1.2)
8641 [ John MacFarlane ]
8643 * Added support for literate Haskell. lhs support is triggered by
8644 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
8645 Haskell LaTeX. '.lhs' files are treated by default as literate
8646 markdown.
8648 + Added stateLiterateHaskell to parser state.
8649 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
8650 + Added parser for |inline lhs| to LaTeX reader.
8651 + Added writerLiterateHaskell to WriterOptions.
8652 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
8653 + Added definition of code environment to LaTeX header.
8654 + Added tests (run only if highlighting support compiled in).
8655 + Documented lhs features in man page and README.
8657 * In Text.Pandoc.Definition, added processWith, processWithM,
8658 and queryWith, and deprecated processPandoc and queryPandoc
8659 for these more general functions.
8661 * Fixed bug in mediawiki writer: improper closing tags in tables.
8662 Thanks to Benct Philip Jonsson for reporting the bug.
8664 * Added --email-obfuscation option.
8666 + Added writer option for email obfuscation.
8667 + Implemented email obfuscation options in HTML writer.
8668 + Added option to option parser.
8669 + Documented in README and pandoc man page.
8670 + Resolves Issue #97.
8672 * LaTeX writer: fixed bug with empty table cells.
8673 Resolves Issue #107. Thanks to rodja.trappe for the patch.
8675 * Fixed bug with header spacing in Markdown and RST writers.
8676 A null header (Meta [] [] []) should not cause a blank line
8677 at the beginning of output. But a blank line is needed between
8678 a non-null header and the main text.
8680 * Markdown reader: Relax spacing rules for $$ in display math. Now
8681 space and newlines are allowed after the opening $$ and before the
8682 closing $$. However, the display math cannot contain an entirely
8683 blank line. Resolves Issue #105.
8685 * Markdown reader: Gobble space after Plain blocks containing only
8686 raw html inline. Otherwise following header blocks are not parsed
8687 correctly, since the parser sees blank space before them. Resolves
8688 Issue #124.
8690 * Markdown reader: Allow " as well as '' to end a latex double-quote.
8692 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
8693 Resolves Issue #109.
8695 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
8697 + Added hang' function to Text.Pandoc.Shared; this will be used instead
8698 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
8699 is upgraded, we can go back to hang.
8700 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
8701 + Use hang' (and some different techniques) in RST and markdown writers.
8702 Some output is now a bit different.
8704 * Brought citeproc support up to date for citeproc-hs-0.2.
8705 (Patch by Andrea Rossato.)
8707 * Moved all haskell source to src subdirectory. Renamed Main.hs to
8708 pandoc.hs.
8710 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
8711 For now, keeping the old shell script too.
8713 * Added TemplateHaskell to Extensions for executable, removed
8714 -threaded for library. Thanks to duncan.coutts for the bug report.
8715 Resolves Issue #121.
8717 * Moved some Extra-Source-Files to Data-Files.
8719 * Moved tabFilter to Shared.
8721 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
8722 preserve tabs.
8724 * Minor code cleanup based on hlint suggestions.
8726pandoc (1.1)
8728 [ John MacFarlane ]
8730 * Main.hs:
8732 + Changed date on copyright message in Main.hs.
8733 + Have the '-v' option print syntax highlighting languages
8734 separated by commas, and wrapped in lines, instead of in five
8735 columns as before.
8737 * Added --jsmath option. Resolves Issue #68.
8739 + Added --jsmath option to Main.hs
8740 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
8741 + Handle math appropriately in HTML writer when JsMath selected.
8742 + Documented the option in README and man page.
8744 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
8745 for tight and loose lists. Final Para is changed to Plain if all
8746 other list items *end* with a Plain block. Addresses Issue #99.
8748 * HTML reader:
8750 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
8751 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
8752 Added rawVerbatimBlock parser. Resolves Issue #94.
8754 * Markdown reader:
8756 + Allow URLs with spaces in them in links and references, but escape
8757 them as "%20".
8758 + Allow blank space at the end of horizontal rules.
8760 * RST reader: Modified 'unknownDirective' parser to handle comment
8761 blocks correctly, and added tests for comment blocks. Resolves Issue
8762 #86. Closes Debian Bug #500662.
8764 * HTML writer:
8766 + Include classes on tr elements in HTML output:
8767 "header", "odd", "even". This allows tables to be styled with
8768 lines in alternating colors. Resolves Issue #91.
8769 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
8770 This prevents parts of the document that are not math from being
8771 interpreted as math by LaTeXMathML.js.
8773 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
8774 which were formerly ignored. Resolves Issue #95.
8776 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
8777 between a footnote and immediately following nonspace characters in
8778 LaTeX and ConTeXt output. (This gets interpreted as a space, which
8779 is not desired in cases like "text^[note]---".) Resolves Issue #93.
8781 * Windows installer: Don't require admin privileges to run
8782 installer. Modified pandoc-setup.iss, and changed modpath.iss to
8783 modify HKCU path if user lacks admin privileges. Also fixed case
8784 where oldpath is empty (previously this led to the new path
8785 beginning with a semicolon).
8787 * Updated INSTALL instructions for Arch packages and OS X install using
8788 cabal-install.
8790 * Removed the (now unneeded) debian directory.
8791 Removed empty Codec and System directories.
8793 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
8795 * Modified Setup.hs so that the "test" target returns an error status
8796 when tests fail, and "build" returns a success status if
8797 the build succeeds. Resolves Issue #100.
8799 * Added BUGS to files in tarball.
8802pandoc (1.0.0.1)
8804 [ John MacFarlane ]
8806 * Removed spurious reference to pdf output format from pandoc(1) man page.
8808pandoc (1.0)
8810 [ Andrea Rossato ]
8812 * Added new OpenDocument writer.
8814 * Added support for SmallCaps inline element.
8816 * Added support for integrating pandoc with citeproc-hs.
8818 + Added Cite element to definition and writers.
8819 + Added Text.Pandoc.Biblio module
8820 + Note: This support is included only if the 'citeproc'
8821 Cabal configuration flag is set.
8823 * Made Pandoc data structure an instance of Typeable.
8824 Added new processPandoc and queryPandoc functions, to query
8825 or transform matching elements in a Pandoc structure.
8827 [ Peter Wang ]
8829 * Added new Texinfo writer.
8831 [ John MacFarlane ]
8833 * Changes to Texinfo writer:
8835 + No space between paragraph and following @verbatim (provides more
8836 pleasing appearance in text formats)
8837 + Blank line consistently after list environments.
8838 + Removed deVerb.
8839 + Use @code instead of @verb for inline code (this solves the character
8840 escaping problem for texi2dvi and texi2pdf).
8841 + Added news of Texinfo writer to README.
8842 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
8843 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
8844 default output extension.
8845 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
8847 * Added tests for OpenDocument writer.
8849 * Added ODT writer (using zip-archive library to package output of
8850 OpenDocument writer). Added odt-styles directory with default ODT styles.
8852 * Added new mediawiki writer and tests.
8854 * Markdown reader: Added support for delimited code blocks, with optional
8855 syntax highlighting using highlighting-kate (if the 'highlighting'
8856 configuration option is selected).
8858 + Currently highlighting is supported only in the HTML writer.
8859 + Delimited code blocks can have attributes; using the language name as
8860 class triggers highlighting.
8861 + New Attributes parameter in CodeBlock structure.
8862 + --version now indicates whether syntax highlighting support is compiled
8863 in, and prints a list of supported languages
8865 * Removed debian directory. Pandoc is no longer a native debian package.
8867 * Changes to build process: pandoc can now be built from the repository
8868 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
8869 without Cygwin).
8871 + Include shell scripts themselves in repo, rather than generating from wrappers.
8872 Removed wrappers directory and wrappers Makefile target.
8873 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
8874 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
8875 from templates in the templates/ directory. Instead, they use template
8876 haskell to read data at compile time from the relevant files in data/.
8877 Template haskell functions go in a new module, Text.Pandoc.TH.
8878 + man pages are now generated in Setup.hs hook, not by Makefile
8879 + Makefile 'tarball' target now calls Cabal's 'sdist'
8880 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
8881 + Added "Build-Type" field to pandoc.cabal to avoid warning.
8882 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
8883 so 'sdist' and 'clean' will work properly.
8884 + Setup.hs now generates man pages in a postbuild hook.
8885 + Added dependency-checking to Setup.hs, so it only rebuilds things
8886 that need rebuilding.
8887 + Added 'library' and 'executable' configuration flags.
8888 Cabal can now be told to build just the library or just the executable.
8889 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
8890 For example: CABALOPTS=-fhighlighting make
8892 * Rewrote test suite so it doesn't depend on perl or unix tools.
8894 + Replaced old runtests.pl with a Haskell script RunTests.hs.
8895 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
8896 + Added test hook to Setup.hs, so tests may be run from cabal.
8897 + Changed Makefile's 'test' target to run tests via cabal.
8898 + Removed old generate.sh.
8899 + Since we no longer have 'sed' to filter out raw HTML sections
8900 from the docbook writer test, or raw LaTeX sections from the
8901 context writer test, we now just include these sections.
8902 They can be taken out if it is necessary to process the files.
8903 + Updated latex and context writer tests to remove extra spaces
8904 after '\\item'
8905 + Added a markdown table reader test.
8906 + Added markdown-reader-more.txt to test suite, for additional test cases
8907 for raw ConTeXt environments and more.
8909 * Compatibility fixes for CPP, Cabal, and haddock:
8911 + Use CPP in "Extensions" field in pandoc.cabal.
8912 + Removed use of backslash string continuations in source files.
8914 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
8915 base >= 3.
8917 * Require parsec < 3.
8918 The compatibility module in parsec 3.0.0 gives far worse performance than
8919 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
8920 version of parsec, and then we'll go to parsec 3.0.0.
8922 * Removed Text.Regex dependencies by rewriting using plain Haskell
8923 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
8925 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
8927 * Makefile:
8929 + Added 'configure' as dependency of 'uninstall-all'.
8930 (It uses the Cabal build program.)
8931 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
8932 Note that Cabal will automatically choose the ghc-pkg appropriate
8933 for the compiler selected, so normally specifying GHC by itself
8934 is sufficient.
8936 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
8937 its IO and conversion functions.
8939 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
8940 everything is -Wall clean.
8942 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
8943 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
8944 (These are caused by the Lift instance for ByteString.)
8946 * Changed the comment used to replace unsafe HTML if sanitize-html option
8947 selected.
8949 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
8951 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
8953 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
8954 "nbsp" isn't a predefined XML entity.
8956 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
8957 Added some try's in ordered list parsers.
8959 * Man writer: don't escape " as \".
8961 * Allow newline before URL in markdown link references. Resolves Issue #81.
8962 Added tests for this issue in new "markdown-reader-more" tests.
8963 Changed RunTests.hs to run these tests.
8965 * Support for display math. Resolves Issue #47.
8967 + Added a DisplayMath/InlineMath selector to Math inlines.
8968 + Markdown parser yields DisplayMath for $$...$$.
8969 + LaTeX parser yields DisplayMath when appropriate. Removed
8970 mathBlock parsers, since the same effect is achieved by the math
8971 inline parsers, now that they handle display math.
8972 + Writers handle DisplayMath as appropriate for the format.
8973 + Modified tests accordingly; added new tests for display math.
8975 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
8976 to LaTeX in its display of math, and supports many non-math LaTeX environments.
8978 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
8979 + Modified HTML writer to print raw TeX when LaTeXMathML is
8980 being used instead of suppressing it.
8981 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
8982 + Replaced ASCIIMathML with LaTeXMathML in source files.
8983 + Modified README and pandoc man page source.
8984 + Added --latexmathml option (kept --asciimathml as a synonym
8985 for backwards compatibility)
8987 * Markdown reader: Parse setext headers before atx headers.
8988 Test case:
8989 # hi
8990 ====
8991 parsed by Markdown.pl as an H1 header with contents "# hi".
8993 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
8994 The marker on the first list item determines the type of the whole
8995 list. Thus, a list like
8996 1. one
8997 - two
8998 * three
8999 gets parsed as a single ordered list. (Previous versions of pandoc
9000 treated this as an ordered list with an unordered sublist.)
9002 * Markdown smart typography:
9004 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
9005 + Use nonbreaking spaces after known abbreviations in markdown parser.
9006 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
9007 not produce a sentence-separating space. Resolves Issue #75.
9009 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
9011 * Treat '\ ' in (extended) markdown as nonbreaking space.
9012 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
9014 * The '--sanitize-html' option now examines URIs in markdown links
9015 and images, and in HTML href and src attributes. If the URI scheme
9016 is not on a whitelist of safe schemes, it is rejected. The main point
9017 is to prevent cross-site scripting attacks using 'javascript:' URIs.
9018 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
9019 and http://ha.ckers.org/xss.html. Resolves Issue #62.
9021 * HTML writer:
9023 + Override Text.XHtml's stringToHtml function,
9024 so that characters below 0xff are not converted to numerical entity
9025 references. Also convert '\160' to "&nbsp;". This should aid readability
9026 and editability of the HTML source. It does presuppose that the HTML
9027 will be served as UTF-8.
9028 + In code blocks, change leading newlines to <br /> tags.
9029 (Some browsers ignore them.) Resolves Issue #71.
9030 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
9031 + Use style attributes rather than css classes for strikethrough
9032 and ordered list styles. This works better when fragments, rather than
9033 standalone documents, are generated.
9035 * HTML reader: Count anything that isn't a known block (HTML) tag as an
9036 inline tag (rather than the other way around). Added "html", "head", and
9037 "body" to list of block tags. Resolves Issue #66, allowing
9038 <lj> to count as an inline tag.
9040 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
9041 boldface, and other inline elements. Resolves Issue #64.
9043 * LaTeX reader: improvements in raw LaTeX parsing.
9045 + "loose punctuation" (like {}) parsed as Space
9046 + Para elements must contain more than Str "" and Space elements
9047 + Added parser for "\ignore" command used in literate haskell.
9048 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
9049 mode, these parsers simply strip off the command part and allow
9050 the arguments to be parsed normally. So, for example,
9051 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
9052 Str "{\\emph{hi}}".
9053 + Parse lhs "code" environments as verbatim.
9054 Refactored parsers for verbatim environments.
9055 + Removed specialEnvironment parser.
9056 + parse '{}', if present, after \textless, \textgreater,
9057 \textbar, \textbackslash, \ldots.
9058 + Parse unescaped special characters verbatim rather than
9059 changing them to spaces. This way arguments of unknown
9060 commands will appear in braces.
9062 * Parse raw ConTeXt environments as TeX in markdown reader.
9063 Resolves Issue #73.
9065 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
9067 * Made some structural changes to parsing of raw LaTeX environments.
9068 Previously there was a special block parser for LaTeX environments.
9069 It returned a Para element containing the raw TeX inline. This has
9070 been removed, and the raw LaTeX environment parser is now used in the
9071 rawLaTeXInline parser. The effect is exactly the same, except that we
9072 can now handle consecutive LaTeX and ConTeXt environments not separated
9073 by spaces. This new flexibility is required by the example in
9074 Issue #73:
9076 \placeformula \startformula
9077 L_{1} = L_{2}
9078 \stopformula
9080 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
9081 returns a string) rather than rawLaTeXEnvironment (which returns a block
9082 element). This is more likely to be useful in other applications.
9084 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
9085 \textsubscript conflicts with a definition in the memoir class.
9086 Resolves Issue #65.
9088 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
9090 * Added amsmath package to default LaTeX header. Resolves Issue #48.
9092 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
9093 list introduction lines.
9095 * Changed Float to Double in definition of Table element.
9096 (Double is more efficient in GHC.)
9098 * Fixed bug in Markdown parser: regular $s triggering math mode.
9099 For example: "shoes ($20) and socks ($5)."
9100 The fix consists in two new restrictions:
9102 + the $ that ends a math span may not be directly followed by a digit.
9103 + no blank lines may be included within a math span.
9105 Thanks to Joseph Reagle for noticing the bug.
9107 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
9108 Removed 'joinWithSep' from Text.Pandoc.Shared.
9110 * Updated README and man pages. Acknowledge contributors in README.
9111 Added paragraph to README about producing S5 with separate CSS/javascript.
9113 * Updated INSTALL to reflect new build system (including configuration
9114 options) and document new dependencies. Added note to INSTALL that
9115 Cabal >= 1.2 is required for build. Resolves Issue #74.
9117 * Fixed some haddock documentation errors.
9119 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
9121pandoc (0.46) unstable; urgency=low
9123 [ John MacFarlane ]
9125 * Made -H, -A, and -B options cumulative: if they are specified
9126 multiple times, multiple files will be included.
9128 * Added optional HTML sanitization using a whitelist.
9129 When this option is specified (--sanitize-html on the command line),
9130 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
9131 attributes will be removed. This option should be especially useful
9132 for those who want to use pandoc libraries in web applications, where
9133 users will provide the input.
9135 + Main.hs: Added --sanitize-html option.
9137 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
9139 + Text.Pandoc.Readers.HTML:
9140 - Added whitelists of sanitaryTags and sanitaryAttributes.
9141 - Added parsers to check these lists (and state) to see if a given
9142 tag or attribute should be counted unsafe.
9143 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
9144 with comments.
9145 - Modified htmlAttribute to remove unsafe attributes.
9146 - Modified htmlScript and htmlStyle to remove these elements if
9147 unsafe.
9149 + Modified README and man pages to document new option.
9151 * Improved handling of email addresses in markdown and reStructuredText.
9152 Consolidated uri and email address parsers. (Resolves Issue #37.)
9154 + New emailAddress and uri parsers in Text.Pandoc.Shared.
9155 - uri parser uses parseURI from Network.URI.
9156 - emailAddress parser properly handles email addresses with periods
9157 in them.
9159 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
9160 and Text.Pandoc.Readers.Markdown.
9162 * Markdown reader:
9164 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
9165 nested in an Emph. (A '*' is only recognized as the end of the
9166 emphasis if it's not the beginning of a strong emphasis.)
9168 + Moved blockQuote parser before list parsers for performance.
9170 + Modified 'source' parser to allow backslash-escapes in URLs.
9171 So, for example, [my](/url\(1\)) yields a link to /url(1).
9172 Resolves Issue #34.
9174 + Disallowed links within links. (Resolves Issue #35.)
9175 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
9176 instead of hard-coding the inline parser takes an inline parser
9177 as a parameter.
9178 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
9179 - Removed unneeded inlineString function.
9180 - Added inlineNonLink parser, which is now used in the definition of
9181 reference.
9182 - Added inlineParsers list and redefined inline and inlineNonLink parsers
9183 in terms of it.
9184 - Added failIfLink parser.
9186 + Better handling of parentheses in URLs and quotation marks in titles.
9187 - 'source' parser first tries to parse URL with balanced parentheses;
9188 if that doesn't work, it tries to parse everything beginning with
9189 '(' and ending with ')'.
9190 - source parser now uses an auxiliary function source'.
9191 - linkTitle parser simplified and improved, under assumption that it
9192 will be called in context of source'.
9194 + Make 'block' conditional on strictness state, instead of using
9195 failIfStrict in block parsers. Use a different ordering of parsers
9196 in strict mode (raw HTML block before paragraph) for performance.
9197 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
9198 Simplified htmlBlock, since we know it's only called in strict
9199 mode.
9201 + Improved handling of raw HTML. (Resolves Issue #36.)
9202 - Tags that can be either block or inline (e.g. <ins>) should
9203 be treated as block when appropriate and as inline when
9204 appropriate. Thus, for example,
9205 <ins>hi</ins>
9206 should be treated as a paragraph with inline <ins> tags, while
9207 <ins>
9208 hi
9209 </ins>
9210 should be treated as a paragraph within <ins> tags.
9211 - Moved htmlBlock after para in list of block parsers. This ensures
9212 that tags that can be either block or inline get parsed as inline
9213 when appropriate.
9214 - Modified rawHtmlInline' so that block elements aren't treated as
9215 inline.
9216 - Modified para parser so that paragraphs containing only HTML tags and
9217 blank space are not allowed. Treat these as raw HTML blocks instead.
9219 + Fixed bug wherein HTML preceding a code block could cause it to
9220 be parsed as a paragraph. The problem is that the HTML parser
9221 used to eat all blank space after an HTML block, including the
9222 indentation of the code block. (Resolves Issue #39.)
9223 - In Text.Pandoc.Readers.HTML, removed parsing of following space
9224 from rawHtmlBlock.
9225 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
9226 indentation is eaten *only* on the first line after the HTML
9227 block. This means that in
9228 <div>
9229 foo
9230 <div>
9231 the foo won't be treated as a code block, but in
9232 <div>
9234 foo
9236 </div>
9237 it will. This seems the right approach for least surprise.
9239 * RST reader:
9241 + Fixed bug in parsing explicit links (resolves Issue #44).
9242 The problem was that we were looking for inlines until a '<' character
9243 signaled the start of the URL; so, if you hit a reference-style link,
9244 it would keep looking til the end of the document. Fix: change
9245 inline => (notFollowedBy (char '`') >> inline). Note that this won't
9246 allow code inlines in links, but these aren't allowed in resT anyway.
9248 + Cleaned up parsing of reference names in key blocks and links.
9249 Allow nonquoted reference links to contain isolated '.', '-', '_', so
9250 so that strings like 'a_b_' count as links.
9252 + Removed unnecessary check for following link in str.
9253 This is unnecessary now that link is above str in the definition of
9254 'inline'.
9256 * HTML reader:
9258 + Modified rawHtmlBlock so it parses </html> and </body> tags.
9259 This allows these tags to be handled correctly in Markdown.
9260 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
9261 since these are handled in parseHtml. (Resolves Issue #38.)
9263 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
9265 + Don't interpret contents of style tags as markdown.
9266 (Resolves Issue #40.)
9267 - Added htmlStyle, analagous to htmlScript.
9268 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
9269 - Moved "script" from the list of tags that can be either block or
9270 inline to the list of block tags.
9272 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
9273 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
9274 inline tags would be included in raw HTML blocks.
9276 + Modified anyHtmlBlockTag to test for (not inline) rather than
9277 directly for block. This allows us to handle e.g. docbook in
9278 the markdown reader.
9280 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
9281 Updated LaTeX reader test to use --parse-raw.
9283 * HTML writer:
9285 + Modified rules for automatic HTML header identifiers to
9286 ensure that identifiers begin with an alphabetic character.
9287 The new rules are described in README. (Resolves Issue #33.)
9289 + Changed handling of titles in HTML writer so you don't get
9290 "titleprefix - " followed by nothing.
9292 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
9293 spacing. Each block element is wrapped with either Pad or Reg.
9294 Pad'ed elements are guaranteed to have a blank line in between.
9296 * RST writer:
9298 + Refactored RST writer to use a record instead of a tuple for state,
9299 and to include options in state so it doesn't need to be passed as
9300 a parameter.
9302 + Use an interpreted text role to render math in restructuredText.
9303 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
9304 strategy.
9306 [ Recai Oktaş ]
9308 * Debian packaging changes:
9310 + Remove the empty 'include' directory in -dev package, which lintian
9311 complains about.
9312 + Bump Standarts-Version to 3.7.3.
9313 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
9314 lintian.
9316 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
9318pandoc (0.45) unstable; urgency=low
9320 [ John MacFarlane ]
9322 * Simplified parsing of reference keys and notes in markdown and RST
9323 readers: The Reference data structure from Text.Pandoc.Shared is no
9324 longer needed, since referenceKey and noteBlock parses return strings
9325 (as many blank lines as were occupied by the key or note) and update
9326 state themselves. getPosition and setPosition are now used to ensure
9327 that error messages will give the correct line number. This yields
9328 cleaner (and slightly faster) code, with more accurate parsing error
9329 messages.
9331 * Added new Math inline element:
9333 + Markdown and LaTeX readers now convert TeX math into Math elements,
9334 not TeX.
9335 + This allows math to be treated differently from raw TeX in output.
9336 TeX elements are no longer printed in output formats other than
9337 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
9339 * New default handling of math in writers:
9341 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
9342 parses raw TeX math and outputs a string of Pandoc inlines that
9343 tries to render it as far as possible using unicode characters,
9344 lapsing into literal TeX when needed.
9345 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
9346 and Docbook, if no other method for displaying math in HTML is
9347 specified. Enclosing $'s are no longer printed by default.
9348 + By default, math is put inside `<span class="math">`. This way it can be
9349 distinguished from the surrounding text, e.g. put in a different
9350 font.
9352 * New --gladtex and --mimetex options for display of math in HTML:
9354 + If --gladtex is specified, math is output between `<eq>` tags, so
9355 it can be processed by gladTeX.
9356 + If --mimetex is specified, math is put in `<img>` tags with a link
9357 to the mimetex CGI script (or any other script that takes TeX math
9358 as input and outputs an image). The URL of the script may be
9359 specified, but defaults to /cgi-bin/mimetex.cgi.
9360 + HTMLMathMethod structure in WriterOptions keeps track of how to
9361 display math in HTML output.
9362 + Updated README with a description of the four options for displaying
9363 math in HTML.
9365 * HTML reader:
9367 + Fixed bug: parser for minimized attributes should not swallow
9368 trailing spaces.
9369 + Simplified HTML attribute parsing.
9370 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
9371 longer needed. `<pre>` suffices. All HTML tags in the code block
9372 (e.g. for syntax highlighting) are skipped, because they are not
9373 portable to other output formats. A `<code>...</code>` block not
9374 surrounded by `<pre>` now counts as inline HTML, not a code block.
9375 + Remove just one leading and one trailing newline from contents of
9376 `<pre>...</pre>` in codeBlock parser.
9378 * Markdown reader:
9380 + Removed support for box-style block quotes.
9381 + Require space before title in links and references.
9382 This fixes a bug in parsing URLs like http://silly/url(withparen).
9383 + Improved and simplified setextHeader parser.
9384 + Fixed logic in smart quote parsing, adding some needed 'try'
9385 statements.
9386 + Fixed smart quote parsing so that unicode characters 8216 and 8217
9387 are recognized as single quotes, and 8220 and 8221 as double quotes.
9389 * RST reader:
9391 + Fixed bug in parsing of code blocks. Previously a full tab indent
9392 was required, but RST allows code to be indented any amount.
9393 Resolves Issue #27.
9394 + Allow field lists to be indented.
9395 + Parse the contents of field lists instead of treating as a raw string.
9396 + Represent field lists as definition lists instead of blockquotes.
9397 + Fixed bug in which metadata would be overridden if the document
9398 contained multiple field lists.
9399 + Parse fields associated with '.. image::' blocks, and use 'alt'
9400 field, if given, for image alt and title attributes.
9402 * LaTeX reader:
9404 + Modified specialChar so that '"' characters are parsed.
9405 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
9407 * HTML writer:
9409 + Changes in handling of math (see above).
9410 + Don't produce HTML for table of contents if there are
9411 no headers. (This would be an empty list, which is invalid XHTML.)
9413 * Markdown writer:
9415 + Don't print title attribute if title is empty. (This differs from
9416 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
9417 Gruber has indicated that he prefers this behavior.) Adjusted test
9418 suite accordingly.
9419 + Fixed incorrect line wrapping in paragraphs including hard line
9420 breaks. Resolves Issue #25.
9421 + Fixed bug in markdown writer: If an ordered list item began with
9422 a marker greater than 3 characters in width, and the item took more
9423 than one line, it would appear on the line after the list marker,
9424 e.g.:
9426 (12)
9427 My list item.
9428 Multiline.
9430 Now it works as follows:
9432 (12) My list item.
9433 Multiline.
9435 * RST writer
9437 + Fixed bug in RST writer's handling of ordered lists. Previously,
9438 list items with multiple lines would not always line up with
9439 single-line list items. Now, list items are nested the length of
9440 the list marker + 1. This looks better and ensures that list items
9441 all line up. (Note that list markers are padded to the length of
9442 the longest list marker in the series.)
9443 + Use 3-space indent for unordered lists.
9444 + If label for a link reference contains a colon, surround it by `
9445 signs so it won't be interpreted as the end of the link label.
9447 * LaTeX writer:
9449 + Cleaner output for footnotes. Footnotes now always begin on a new
9450 line, and the final } is on a line by itself only when it needs to
9451 be (i.e. only when the note ends with a Verbatim environment).
9452 + Added writer options to state, so state doesn't need to be passed as
9453 a parameter.
9454 + Text wrapping now provided, using wrapTeXIfNeeded.
9456 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
9457 (thanks to Idris Samawi Hamid for suggestions).
9459 + PrettyPrint module now used for output.
9460 + Writer options are now in state, so they don't have to be passed as
9461 a parameter.
9462 + Text wrapping now provided, using wrapTeXIfNeeded.
9463 + Better treatment of footnotes: footnotes are always on lines by
9464 themselves, and the final } is on a line by itself only when
9465 it needs to be (after \stoptyping).
9466 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
9467 depending on whether --number-sections option is selected.
9468 + Extra blank line inserted after \stopitemize
9469 + Use new, "official" definition of blockquote environment. Also, use
9470 blank line after \startblockquote to balance blank line at the end.
9471 + Both itemized and enumerated lists are now generated using
9472 \start-stopitemize, with appropriate options. Removed definitions
9473 of ltxenum and ltxitem, which are no longer needed. Provided
9474 defaults for itemized lists in the preamble. State keeps track of
9475 ordered list level, so that when default numbering is specified,
9476 the appropriate scheme can be used.
9477 + Changed \useurl to \useURL.
9478 + Changed link color from red to blue.
9479 + Use \subsubsubsubsection etc., since these are supported
9480 (up to at least sub x 5).
9482 * Text.Pandoc.Shared:
9484 + Save and restore position in parseFromString, so that accurate
9485 error messages can be given.
9486 + Improved efficiency of romanNumeral parser.
9487 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
9488 that footnotes occur on lines by themselves (to make them
9489 easier to see and move) and do not screw up line wrapping.
9491 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
9492 if present. Windows Notepad and other applications insert a
9493 BOM at the beginning of a UTF8 file.
9495 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
9496 addition to "\r\n" and '\n').
9498 * Added a writer option for wrapped text and a command-line option
9499 '--no-wrap', which disables text wrapping and minimizes whitespace
9500 in HTML. (Resolves Issue #26.)
9502 + Added support for '--no-wrap' to Main.hs.
9503 + Added wrapIfNeeded function to Text.Pandoc.Shared.
9504 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
9505 Markdown writers.
9506 + Added render and renderFragment helpers to HTML writer.
9508 * Modified html2markdown to run tidy only if the HTML cannot be
9509 parsed. Previously html2markdown piped all input through tidy
9510 before passing it to pandoc. This caused problems on certain pages
9511 (e.g. http://daringfireball.com/markdown) which have well-formed
9512 XHTML that causes tidy to choke. The solution is to pipe through
9513 tidy only if pandoc cannot parse the input by itself. This means
9514 that a temp file is now always used, even when input comes from a
9515 local file or standard input.
9517 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
9518 Text.Pandoc library.
9520 * pandoc.cabal:
9522 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
9523 6.8, pretty and containers must be added to Build-Depends, and it
9524 is desirable to use the -O2 compiler option.) Cabal configurations
9525 allows one to select options depending on the compiler version.
9526 For GHC 6.6, the splitBase option can be disabled.
9527 + pandoc.cabal.ghc66 is provided for users with older versions of
9528 Cabal, which do not support configurations.
9529 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
9530 '--enable-(executable|library)-profiling' is specified. Updated
9531 PROFILING instructions accordingly.
9533 * Makefile:
9535 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
9536 is copied to pandoc.cabal, and the old pandoc.cabal is copied
9537 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
9538 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
9539 will work properly with either GHC 6.6 or 6.8.
9540 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
9541 This is where current versions of Cabal put it.
9542 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
9543 + Removed dependency of templates on ./templates, which is circular
9544 now that templates is a subdirectory of the top-level.
9546 * MacPorts Portfile:
9548 + Modified to install the pandoc library in addition to programs.
9549 + Installation must be done manually rather than using Makefile's
9550 install-all.
9551 + Note that the library must be registered in the activate phase,
9552 after the library files have been copied out of the destroot.
9553 Cabal generates a 'register.sh' script that will do this.
9555 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
9556 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
9557 Closes: #445235
9559 * debian/rules: Converted to UTF-8.
9561 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
9563 * Updated ASCIIMathML.js to latest version.
9565 * Directory structure:
9567 + Moved everything from src into the top-level directory.
9568 + Changed references to source directory in Makefile and
9569 pandoc.cabal.*.
9570 + Moved ASCIIMathML.js, headers, and ui into templates directory.
9571 + Modified fillTemplates.pl to reflect new paths.
9573 [ Recai Oktaş ]
9575 * Makefile: Fixed the issue of having two copies of the library
9576 documentation under some usage scenarios.
9578 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
9579 and GHC_PKG configurable through the environment, to support
9580 unusual ghc installations. For example:
9581 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
9583 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
9585pandoc (0.44) unstable; urgency=low
9587 [ John MacFarlane ]
9589 * Fixed bug in HTML writer: when --toc was used, anchors were put around
9590 headers, which is invalid XHTML (block content within inline element).
9591 Now the anchors are put inside the header tags. Resolves Issue #23.
9593 * Added xmlns attribute to html element in html writer tests.
9594 This attribute is added by more recent versions of the
9595 xhtml library (>= 3000), and is required for valid XHTML.
9597 [ Recai Oktaş ]
9599 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
9600 command instead of 'runhaskell', which, on some platforms (such as s390,
9601 alpha, m68k), throws the following error:
9603 runhaskell Setup.hs configure --prefix=/usr
9604 ghc-6.6.1: not built for interactive use
9606 This causes a serious FTBFS bug. Closes: #440668.
9608 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
9610pandoc (0.43) unstable; urgency=low
9612 [ John MacFarlane ]
9614 * The focus of this release is performance. The markdown parser
9615 is about five times faster than in 0.42, based on benchmarks
9616 with the TextMate manual.
9618 * Main.hs: Replaced CRFilter and tabFilter with single function
9619 tabFilter, which operates on the whole string rather than breaking
9620 it into lines, and handles dos-style line-endings as well as tabs.
9622 * Added separate LaTeX reader and native reader tests; removed
9623 round-trip tests.
9625 * Text.Pandoc.Shared:
9627 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
9628 + General code cleanup (to elimante warnings when compiling with -Wall.)
9629 + Added 'wrapped' function, which helps wrap text into paragraphs,
9630 using the prettyprinting library.
9631 + Rewrote charsInBalanced and charsInBalanced'.
9632 - Documented restriction: open and close must be distinct characters.
9633 - Rearranged options for greater efficiency.
9634 - Bug fix: Changed inner call to charsInBalanced inside
9635 charsInBalanced' to charsInBalanced'.
9636 + anyLine now requires that the line end with a newline (not eof).
9637 This is a harmless assumption, since we always add newlines to the
9638 end of a block before parsing with anyLine, and it yields a 10% speed
9639 boost.
9640 + Removed unnecessary 'try' in anyLine.
9641 + Removed unneeded 'try' from romanNumeral parser.
9642 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
9643 + Removed unneeded 'try' in parseFromString.
9644 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
9645 like 'string'.)
9646 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
9647 'try' is not automatically applied to the 'end' parser. Added
9648 'try' in calls to 'enclosed' where needed. Slight speed increase.
9650 * Writers:
9652 + Replaced individual wrapping routines in RST, Man, and Markdown
9653 writers with 'wrapped' from Text.Pandoc.Shared.
9654 + Rewrote LaTeX writer to use the prettyprinting library,
9655 so we get word wrapping, etc.
9656 + Modified latex writer tests for new latex writer using prettyprinter.
9657 + Fixed bug in LaTeX writer: autolinks would not cause
9658 '\usepackage{url}' to be put in the document header. Also, changes
9659 to state in enumerated list items would be overwritten.
9660 + In Markdown writer, escape paragraphs that begin with ordered list
9661 markers, so they don't get interpreted as ordered lists.
9663 * Text.Pandoc.Reades.LaTeX:
9665 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
9666 numeral after "enum" in "setcounter" would consist entirely of
9667 "i"s. 'enumiv' is legitimate.
9668 + LaTeX command and environment names can't contain numbers.
9669 + Rearranged order of parsers in inline for slight speed improvement.
9670 + Added '`' to special characters and 'unescapedChar'.
9672 * Text.Pandoc.Readers.RST:
9674 + Removed unneeded try's in RST reader; also minor code cleanup.
9675 + Removed tabchar.
9676 + Rearranged parsers in inline (doubled speed).
9678 * Text.Pandoc.Readers.Markdown:
9680 + Skip notes parsing if running in strict mode. (This yields a nice
9681 speed improvement in strict mode.)
9682 + Simplify autolink parsing code, using Network.URI to test for
9683 URIs. Added dependency on network library to debian/control and
9684 pandoc.cabal.
9685 + More perspicuous definition of nonindentSpaces.
9686 + Removed unneeded 'try' in 'rawLine'.
9687 + Combined linebreak and whitespace into a new whitespace parser, to
9688 avoid unnecessary reparsing of space characters.
9689 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
9690 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
9691 + Use lookAhead in parsers for setext headers and definition lists
9692 to see if the next line begins appropriately; if not, don't waste
9693 any more time parsing.
9694 + Don't require blank lines after code block. (It's sufficient to
9695 end code block with a nonindented line.)
9696 + Changed definition of 'emph': italics with '_' must not
9697 be followed by an alphanumeric character. This is to help
9698 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
9699 `[LC<em>TYPE]:my</em>type`.
9700 + Improved Markdown.pl-compatibility in referenceLink: the two parts
9701 of a reference-style link may be separated by one space, but not
9702 more... [a] [link], [not] [a link].
9703 + Fixed markdown inline code parsing so it better accords with
9704 Markdown.pl: the marker for the end of the code section is a clump
9705 of the same number of `'s with which the section began, followed
9706 by a non-` character. So, for example,
9707 ` h ``` i ` -> `<code>h ``` i</code>`.
9708 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
9709 rules are slightly different.
9710 + Rewrote 'para' for greater efficiency.
9711 + Rewrote link parsers for greater efficiency.
9712 + Removed redundant 'referenceLink' in definition of inline (it's
9713 already in 'link').
9714 + Refactored escapeChar so it doesn't need 'try'.
9715 + Refactored hrule for performance in Markdown reader.
9716 + More intelligent rearranging of 'inline' so that most frequently
9717 used parsers are tried first.
9718 + Removed tabchar parser, as whitespace handles tabs anyway.
9720 * Text.Pandoc.CharacterReferences:
9722 + Refactored.
9723 + Removed unnecessary 'try's for a speed improvement.
9724 + Removed unnecessary '&' and ';' from the entity table.
9726 * Build process:
9728 + Makefile: Get VERSION from cabal file, not Main.hs.
9729 + Modified MacPorts Portfile:
9730 - Depend on haddock
9731 - Build and install libraries and library documentation in
9732 addition to pandoc executable
9733 - Added template item for md5 sum in Portfile.in.
9734 - Incorporated changes from MacPorts repository (r28278).
9735 + FreeBSD port: Don't try to generate distinfo in Makefile.
9736 It can be made using 'make makesum' in FreeBSD.
9737 + Make both freebsd and macports targets depend on tarball.
9739 * Website and documentation:
9741 + Updated INSTALL instructions.
9742 + Added pandocwiki demo to website.
9743 + Removed local references to Portfile, since pandoc is now in the
9744 MacPorts repository.
9746 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
9748pandoc (0.42) unstable; urgency=low
9750 [ John MacFarlane ]
9752 * Main.hs: Use utf8 conversion on the extra files loaded with
9753 the -H, -C, -B, and -A options. This fixes problems with unicode
9754 characters in these files.
9756 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
9757 Text.Pandoc.Readers.HTML and without it we get a linking error when
9758 using the library.
9760 * Markdown reader:
9762 + Added new rule for enhanced markdown ordered lists: if the list
9763 marker is a capital letter followed by a period (including a
9764 single-letter capital roman numeral), then it must be followed by
9765 at least two spaces. The point of this is to avoid accidentally
9766 treating people's initials as list markers: a paragraph might begin,
9767 "B. Russell was an English philosopher," and this shouldn't be
9768 treated as a list. Documented change in README.
9769 + Blocks that start with "p. " and a digit are no longer treated
9770 as ordered lists (it's a page number).
9771 + Added a needed 'try' to listItem.
9772 + Removed check for a following setext header in endline.
9773 A full test is too inefficient (doubles benchmark time), and the
9774 substitute we had before is not 100% accurate.
9775 + Don't use Code elements for autolinks if --strict specified.
9777 * LaTeX writer: When a footnote ends with a Verbatim environment, the
9778 close } of the footnote cannot occur on the same line or an error occurs.
9779 Fixed this by adding a newline before the closing } of every footnote.
9781 * HTML writer:
9782 + Removed incorrect "{}" around style information in HTML tables.
9783 Column widths now work properly in HTML.
9784 + If --strict option is specified (and --toc is not), don't include
9785 identifiers in headers, for better Markdown compatibility.
9787 * Build process:
9789 + Separated $(web_dest) and website targets.
9790 + In website, index.txt is now constructed from template index.txt.in.
9791 + Added freebsd target to Markefile. This creates the freebsd Makefile
9792 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
9793 from the repository.
9794 + Added macport target to Makefile. Portfile is built from template
9795 Portfile.in.
9796 + Removed OSX package targets. (Too many difficulties involving
9797 dependencies on dynamic libraries.)
9798 + More complete INSTALL instructions for all architectures.
9800 * Website:
9801 + Added a programming demo, pandocwiki.
9803 [ Recai Oktaş ]
9805 * Do not forget to close pandoc's ITP. Closes: #391666
9807 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
9809pandoc (0.41) unstable; urgency=low
9811 [ John MacFarlane ]
9813 * Fixed bugs in HTML reader:
9814 + Skip material at end *only if* `</html>` is present (previously,
9815 only part of the document would be parsed if an error was
9816 found; now a proper error message is given).
9817 + Added new constant eitherBlockOrInline with elements that may
9818 count either as block-level or as inline. Modified isInline and
9819 isBlock to take this into account.
9820 + Modified rawHtmlBlock to accept any tag (even an inline tag):
9821 this is innocuous, because rawHtmlBlock is tried only if a regular
9822 inline element can't be parsed.
9823 + Added a necessary 'try' in definition of 'para'.
9825 * Fixed bug in markdown ordered list parsing. The problem was that
9826 anyOrderedListStart did not check for a space following the
9827 ordered list marker. So in 'A.B. 2007' the parser would be
9828 expecting a list item, but would not find one, causing an error.
9829 Fixed a similar bug in the RST reader. Resolves Issue #22.
9831 * Refactored RST and Markdown readers using parseFromString.
9833 * LaTeX reader will now skip anything after \end{document}.
9835 * Fixed blockquote output in markdown writer: previously, block
9836 quotes in indented contexts would be indented only in the first
9837 line.
9839 * Added note to INSTALL about variations in versions of the xhtml
9840 library that can lead to failed tests (thanks to Leif LeBaron).
9842 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
9844pandoc (0.4) unstable; urgency=low
9846 [ John MacFarlane ]
9848 * Added two new output formats: groff man pages and ConTeXt. By
9849 default, output files with extensions ".ctx" and ".context" are
9850 assumed to be ConTeXt, and output files with single-digit extensions
9851 are assumed to be man pages.
9853 * Enhanced ordered lists (documented in README, under Lists):
9854 + The OrderedList block element now stores information about
9855 list number style, list number delimiter, and starting number.
9856 + The readers parse this information when possible.
9857 + The writers use this information to style ordered lists.
9858 + The enhancement can be disabled using the --strict option.
9860 * Added support for tables (with a new Table block element). Two kinds
9861 of tables are supported: a simple table with one-line rows, and a
9862 more complex variety with multiline rows. All output formats are
9863 supported, but only markdown tables are parsed at the moment. The
9864 syntax is documented in README.
9866 * Added support for definition lists (with a new DefinitionList block
9867 element). All output and input formats are supported. The syntax is
9868 documented in README.
9870 * Added support for superscripts and subscripts (with new Superscript
9871 and Subscript inline elements). All input and output
9872 formats. The syntax is documented in README.
9874 * Added support for strikeout (with a new Strikeout inline element).
9875 All input and output formats are supported. Thanks to Bradley Kuhn,
9876 who contributed a patch. The syntax is documented in README. Resolves
9877 Issue #18.
9879 * Added a --toc|--table-of-contents option. This causes an automatically
9880 generated table of contents (or an instruction that creates one) to
9881 be inserted at the beginning of the document. Not supported in S5,
9882 DocBook, or man page writers.
9884 * Modified the -m|--asciimathml option:
9886 + If an optional URL argument is provided, a link is inserted
9887 instead of the contents of the ASCIIMathML.js script.
9888 + Nothing is inserted unless the document actually contains
9889 LaTeX math.
9891 * Removed Blank block element as unnecessary.
9893 * Removed Key and Note blocks from the Pandoc data structure. All
9894 links are now stored as explicit links, and note contents are
9895 stored with the (inline) notes.
9897 + All link Targets are now explicit (URL, title) pairs; there
9898 is no longer a 'Ref' target.
9899 + Markdown and RST parsers now need to extract data from key and
9900 note blocks and insert them into the relevant inline elements.
9901 Other parsers have been simplified, since there is no longer any need
9902 to construct separate key and note blocks.
9903 + Markdown, RST, and HTML writers need to construct lists of
9904 notes; Markdown and RST writers need to construct lists of link
9905 references (when the --reference-links option is specified); and
9906 the RST writer needs to construct a list of image substitution
9907 references. All writers have been rewritten to use the State monad
9908 when state is required.
9909 + Several functions (generateReference, keyTable,
9910 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
9911 used by them) have been removed from Text.Pandoc.Shared, since
9912 they are no longer needed. New functions and data structures
9913 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
9914 added. The functions inTags, selfClosingTag, inTagsSimple, and
9915 inTagsIndented have been moved to the DocBook writer, since that
9916 is now the only module that uses them. NoteTable is now exported
9917 in Text.Pandoc.Shared.
9918 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
9919 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
9920 + Added writerNotes and writerReferenceLinks to WriterOptions.
9922 * Added Text.Pandoc module that exports basic readers, writers,
9923 definitions, and utility functions. This should export everything
9924 needed for most uses of Pandoc libraries. The haddock documentation
9925 includes a short example program.
9927 * Text.Pandoc.ASCIIMathML is no longer an exported module.
9929 * Added Text.Pandoc.Blocks module to help in printing markdown
9930 and RST tables. This module provides functions for working with
9931 fixed-width blocks of text--e.g., placing them side by side, as
9932 in a table row.
9934 * Refactored to avoid reliance on Haskell's Text.Regex library, which
9935 (a) is slow, and (b) does not properly handle unicode. This fixed
9936 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
9938 + Replaced 'gsub' with a general list function 'substitute'
9939 that does not rely on Text.Regex.
9940 + Rewrote extractTagType in HTML reader so that it doesn't use
9941 regexs.
9942 + In Markdown reader, replaced email regex test with a custom email
9943 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
9944 with a custom function isSelfClosingTag.
9945 + Modified Docbook writer so that it doesn't rely on Text.Regex for
9946 detecting 'mailto' links.
9947 + Removed escapePreservingRegex and reamped entity-handling
9948 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
9949 avoid reliance on Text.Regex (see below on character reference
9950 handling changes).
9952 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
9954 * Changed handling of XML entities. Entities are now parsed (and unicode
9955 characters returned) in the Markdown and HTML readers, rather than being
9956 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
9957 instead of entities for characters above 128. This makes the HTML and
9958 DocBook output much more readable and more easily editable.
9960 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
9961 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
9962 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
9963 Moved both functions to Text.Pandoc.Writers.Docbook.
9964 + Added characterReference parser to Text.Pandoc.CharacterReferences.
9965 This parses a string and return a unicode character.
9966 + Rewrote decodeCharacterReferences to use the new parser instead of
9967 Text.Regex.
9968 + Added new charRef parser for Markdown and HTML, which replaces the
9969 old 'entity' parser. Added '&' as a special character in Markdown reader.
9970 + Modified HTML and Markdown readers to call decodeEntities on all raw
9971 strings (e.g. authors, dates, link titles), to ensure that no
9972 unprocessed entities are included in the native representation of
9973 the document. (In the HTML reader, most of this work is done by a
9974 change in extractAttributeName.)
9975 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
9976 since a unicode non-breaking space is impossible to distinguish visually
9977 from a regular space. (Resolves Issue #3.)
9978 + Removed encodeEntitiesNumerical.
9979 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
9980 slight performance boost over the old association list.
9981 + Removed unneeded decodeEntities from 'str' parser in HTML and
9982 Markdown readers.
9984 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
9985 fromUTF8, for clarity.
9987 * Replaced old haskell98 module names replaced by hierarchical module
9988 names, e.g. List by Data.List. Removed haskell98 from dependencies
9989 in pandoc.cabal, and added mtl (needed for state monad). Substituted
9990 xhtml for html.
9992 * Refactored and cleaned up character escaping in writers, using
9993 backslashEscapes and escapeStringUsing functions.
9995 * Instead of adding "\n\n" to the end of an input string in Main.hs,
9996 this is now done in the readers. This makes the libraries behave
9997 the way you'd expect from the pandoc program. Resolves Issue #10.
9999 * URLs and email addresses in autolinks are now typeset as Code.
10001 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
10002 doesn't display the whole output unless there's a line ending.
10004 * Major code cleanup in all modules, for greater consistency, concision,
10005 and readability.
10007 * HTML reader:
10009 + Fixed several bugs (extractTagType, attribute parsing).
10010 + Remove Null blocks in lists of blocks when possible.
10011 + Allow HTML comments as raw HTML inline.
10013 * Markdown reader:
10015 + Ordered list items may no longer begin with uppercase letters, or
10016 letters greater than 'n'. (This prevents first initials and page
10017 reference, e.g. 'p. 400', from being parsed as beginning lists.)
10018 Also, numbers beginning list items may no longer end with ')',
10019 which is now allowed only after letters. Note: These changes
10020 may cause documents to be parsed differently. Users should take
10021 care in upgrading.
10022 + Changed autoLink parsing to conform better to Markdown.pl's
10023 behavior. `<google.com>` is not treated as a link, but
10024 `<http://google.com>`, `<ftp://google.com>`, and
10025 `<mailto:google@google.com>` are.
10026 + Cleaned up handling of embedded quotes in link titles. Now these are
10027 stored as a '"' character, not as '&quot;'.
10028 + Use lookAhead parser for the 'first pass' (looking for reference keys),
10029 instead of parsing normally, then using setInput to reset input. This
10030 yields a slight performance boost.
10031 + Fixed several bugs in smart quote recognition.
10032 + Fixed bug in indentSpaces (which didn't properly handle
10033 cases with mixed spaces and tabs).
10034 + Consolidated 'text', 'special', and 'inline' into 'inline'.
10035 + Fixed bug which allowed URL and title to be separated by multiple blank
10036 lines in links and reference keys. They can be on separate lines but
10037 can't have blank lines between them.
10038 + Correctly handle bracketed text inside inline footnotes and links,using
10039 new function inlinesInBalanced. Resolves Issue #14.
10040 + Fixed bug in footnotes: links in footnotes were not being
10041 processed. Solution: three-stage parse. First, get all the
10042 reference keys and add information to state. Next, get all the
10043 notes and add information to state. (Reference keys may be needed
10044 at this stage.) Finally, parse everything else.
10045 + Replaced named constants like 'emphStart' with literals.
10046 + Removed an extra occurance of escapedChar in definition of inline.
10048 * RST reader:
10050 + Allow the URI in a RST hyperlink target to start on the line
10051 after the reference key.
10052 + Added 'try' in front of 'string', where needed, or used a different
10053 parser. This fixes a bug where ````` would not be correctly parsed as
10054 a verbatim `.
10055 + Fixed slow performance in parsing inline literals in RST reader. The
10056 problem was that ``#`` was seen by 'inline' as a potential link or image.
10057 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
10058 Resolves Issue #8.
10059 + Use lookAhead instead of getInput/setInput in RST reader. Removed
10060 unneeded getState call, since lookAhead automatically saves and
10061 restores the parser state.
10062 + Allow hyperlink target URIs to be split over multiple lines, and
10063 to start on the line after the reference. Resolves Issue #7.
10064 + Fixed handling of autolinks.
10066 * LaTeX reader:
10068 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
10069 for clarity.
10070 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
10071 caret is \^{}, not \^ as before.
10072 + Added parsing for \url.
10073 + Parse \texttt{} as code, provided there's nothing fancy inside.
10075 * HTML writer:
10077 + Modified HTML writer to use the Text.XHtml library. This results
10078 in cleaner, faster code, and it makes it easier to use Pandoc in
10079 other projects, like wikis, which use Text.XHtml. Two functions are
10080 now provided, writeHtml and writeHtmlString: the former outputs an
10081 Html structure, the latter a rendered string. The S5 writer is also
10082 changed, in parallel ways (writeS5, writeS5String).
10083 + The Html header is now written programmatically, so it has been
10084 removed from the 'headers' directory. The S5 header is still
10085 needed, but the doctype and some of the meta declarations have
10086 been removed, since they are written programatically. This change
10087 introduces a new dependency on the xhtml package.
10088 + Fixed two bugs in email obfuscation involving improper escaping
10089 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
10090 Issue #9.
10091 + Fixed another bug in email obfuscation: If the text to be obfuscated
10092 contains an entity, this needs to be decoded before obfuscation.
10093 Thanks to thsutton for the patch. Resolves Issue #15.
10094 + Changed the way the backlink is displayed in HTML footnotes.
10095 Instead of appearing on a line by itself, it now generally
10096 appears on the last line of the note. (Exception: when the
10097 note does not end with a Plain or Para block.) This saves space
10098 and looks better.
10099 + Added automatic unique identifiers to headers:
10100 - The identifier is derived from the header via a scheme
10101 documented in README.
10102 - WriterState now includes a list of header identifiers and a table
10103 of contents in addition to notes.
10104 - The function uniqueIdentifiers creates a list of unique identifiers
10105 from a list of inline lists (e.g. headers).
10106 - This list is part of WriterState and gets consumed by blockToHtml
10107 each time a header is encountered.
10108 + Include CSS for .strikethrough class in header only if strikethrough
10109 text appears in the document.
10110 + If the 'strict' option is specified, elements that do not appear in
10111 standard markdown (like definition lists) are passed through as
10112 raw HTML.
10113 + Simplified treatment of autolinks, using pattern matching instead of
10114 conditionals.
10116 * Markdown writer:
10118 + Links in markdown output are now printed as inline links by default,
10119 rather than reference links. A --reference-links option has been added
10120 that forces links to be printed as reference links. Resolves Issue #4.
10121 + Use autolinks when possible. Instead of `[site.com](site.com)`,
10122 use `<site.com>`.
10124 * LaTeX writer:
10126 + Rewrote to use the State monad. The preamble now includes only those
10127 packages that are actually required, given the document's content.
10128 Thus, for example, if strikeout is not used, ulem is not required.
10129 Modified LaTeXHeader accordingly.
10130 + Modified LaTeX writer to insert '\,' between consecutive quotes.
10131 + Removed unused function tableRowColumnWidths.
10132 + Simplified code for escaping special characters.
10133 + Leave extra blank line after \maketitle.
10134 + Include empty '\author{}' when no author specified to avoid LaTeX
10135 errors.
10136 + Include fancyvrb code in header only if needed -- that is, only
10137 if there is actually code in a footnote.
10138 + Use \url{} for autolinks.
10139 + Include [mathletters] option in ucs package, so that basic unicode
10140 Greek letters will work correctly.
10142 * RST writer: Force blank line before lists, so that sublists will
10143 be handled correctly.
10145 * Docbook writer: Fixed a bug: email links with text, like
10146 [foo](me@bar.baz), were being incorrectly treated as autolinks.
10148 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
10149 Text.Pandoc.Shared.
10151 * Text.Pandoc.Shared:
10153 + Added defaultWriterOptions.
10154 + Added writerTableOfContents to WriterOptions.
10155 + Added writerIgnoreNotes option to WriterOptions. This is needed
10156 for processing header blocks for a table of contents, since notes on
10157 headers should not appear in the TOC.
10158 + Added prettyprinting for native Table format.
10159 + Removed some unneeded imports.
10160 + Moved escape and nullBlock parsers from
10161 Text.ParserCombinators.Pandoc, since the latter is for
10162 general-purpose parsers that don't depend on Text.Pandoc.Definition.
10163 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
10164 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
10165 writer, because HTML writer now uses these in constructing a table
10166 of contents.
10167 + Added clauses for new inline elements (Strikeout, Superscript,
10168 Subscript) to refsMatch.
10169 + Removed backslashEscape; added new functions escapeStringUsing and
10170 backslashEscapes.
10171 + Moved failIfStrict from markdown reader, since it is now used also
10172 by the HTML reader.
10173 + Added a 'try' to the definition of indentSpaces.
10174 + In definition of 'reference', added check to make sure it's not a note
10175 reference.
10176 + Added functions: camelCaseToHyphenated, toRomanNumeral,
10177 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
10178 charsInBalanced', withHorizDisplacement, romanNumeral
10179 + Fixed a bug in the anyLine parser. Previously it would parse an empty
10180 string "", but it should fail on an empty string, or we get an error
10181 when it is used inside "many" combinators.
10182 + Removed followedBy' parser, replacing it with the lookAhead parser from
10183 Parsec.
10184 + Added some needed 'try's before multicharacter parsers, especially in
10185 'option' contexts.
10186 + Removed the 'try' from the 'end' parser in 'enclosed', so that
10187 'enclosed' behaves like 'option', 'manyTill', etc.
10188 + Added lineClump parser, which parses a raw line block up to and
10189 including any following blank lines.
10190 + Renamed parseFromStr to parseFromString.
10191 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
10192 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
10193 in calling code.
10194 + Removed unneeded 'try' in blanklines.
10195 + Removed endsWith function and rewrote calling functions to use
10196 isSuffixOf instead.
10197 + Added >>~ combinator.
10198 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
10199 Space.
10201 * Refactored runtests.pl; added separate tests for tables.
10203 * Shell scripts:
10205 + Added -asxhtml flag to tidy in html2markdown. This will
10206 perhaps help the parser, which expects closing tags.
10207 + Modified markdown2pdf to run pdflatex a second time if --toc or
10208 --table-of-contents was specified; otherwise the table of
10209 contents won't appear.
10210 + Modified markdown2pdf to print a helpful message if the 'ulem'
10211 LaTeX package is required and not found.
10213 * Changes to build process:
10215 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
10216 is now required.
10217 + Removed cabalize and Pandoc.cabal.in. The repository now contains
10218 pandoc.cabal itself.
10219 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
10220 likes the cabal file to have the same name as the tarball.
10221 + Expanded and revised the package description in pandoc.cabal.
10222 Revised the package synopsis.
10223 + The tarball built by 'make tarball' now contains files built from
10224 templates (including man pages and shell scripts), so pandoc can
10225 be built directly using Cabal tools, without preprocessing.
10226 + Executable binaries are now stripped before installing.
10227 + Man pages are now generated from markdown sources, using pandoc's
10228 man page writer.
10229 + Use HTML version of README (instead of RTF) in Mac OS X installer.
10230 + Instead of testing for the existence of a pandoc symlink in build-exec,
10231 use ln -f.
10233 * Documentation:
10235 + Updated README and man pages with information on new features.
10236 + Updated INSTALL instructions with some useful clarifications and
10237 links.
10238 + Updated web content.
10240 * Added FreeBSD port.
10242 [ Recai Oktaş ]
10244 * debian/control:
10246 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
10247 libghc6-xhtml-dev. Removed libghc6-html-dev.
10248 + Suggest texlive-latex-recommended | tetex-extra instead of
10249 tetex-bin. This brings in fancyvrb and unicode support.
10251 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
10253pandoc (0.3) unstable; urgency=low
10255 [ John MacFarlane ]
10257 * Changes in pandoc options:
10259 + Allow options to follow or precede arguments.
10260 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
10261 + Added '--strict' option.
10262 + Added '-o/--output' option.
10263 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
10264 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
10265 error conditions. This is helpful for writing wrappers.
10266 + Added copyright message to '-v' output, modeled after FSF messages.
10267 + Reformatted usage message so that it doesn't wrap illegibly.
10268 + Removed extra blanks after '-h' and '-D' output.
10270 * Added docbook writer.
10272 * Added implicit setting of default input and output format based
10273 on input and output filename extensions. These defaults are
10274 overridden if explicit input and output formats are specified using
10275 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
10276 and README.
10278 * Allow ordered list items to begin with (single) letters, as well
10279 as numbers. The list item marker may now be terminated either by
10280 '.' or by ')'. This extension to standard markdown is documented
10281 in README.
10283 * Revised footnote syntax. (See README for full details.) The
10284 '[^1]' format now standard in markdown extensions is supported,
10285 as are inline footnotes with this syntax: '^[My note.]'.
10286 The earlier footnote syntax '^(1)' is no longer supported.
10288 * Improved HTML representation of footnotes. All footnotes
10289 are now auto-numbered and appear in an ordered list at the
10290 end of the HTML document. Since the default appearance is now
10291 acceptable, the old footnote styles have been removed from the
10292 HTML header.
10294 * Bug fixes:
10296 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
10297 These readers ran 'runParser' on processed chunks of text to handle
10298 embedded block lists in lists and quotation blocks. But then
10299 any changes made to the parser state in these chunks was lost,
10300 as the state is local to the parser. So, for example, footnotes
10301 didn't work in quotes or list items. The fix: instead of calling
10302 runParser on some raw text, use setInput to make it the input, then
10303 parse it, then use setInput to restore the input to what it was
10304 before. This is shorter and more elegant, and it fixes the problem.
10305 + Fixed bug in notFollowedBy' combinator (adding 'try' before
10306 'parser'). Adjusted code that uses this combinator accordingly.
10307 + Fixed bug in RTF writer that caused improper indentation on
10308 footnotes occurring in indented blocks like lists.
10309 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
10310 and date are parsed correctly. Everything else in the preamble
10311 is skipped.
10312 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
10313 line to count as escaped whitespace.
10314 + Modified LaTeX reader to produce inline links rather than reference
10315 links. Otherwise, links in footnotes aren't handled properly.
10316 + Fixed handling of titles in links in Markdown reader, so that
10317 embedded quotation marks are now handled properly.
10318 + Fixed Markdown reader's handling of embedded brackets in links.
10319 + Fixed Markdown reader so that it only parses bracketed material
10320 as a reference link if there is actually a corresponding key.
10321 + Revised inline code parsing in Markdown reader to conform to
10322 markdown standard. Now any number of `s can begin inline code,
10323 which will end with the same number of `s. For example, to
10324 have two backticks as code, write ``` `` ```. Modified Markdown
10325 writer accordingly.
10326 + Fixed bug in text-wrapping routine in Markdown and RST writers.
10327 Now LineBreaks no longer cause wrapping problems.
10328 + Supported hexadecimal numerical entity references as well as
10329 decimal ones.
10330 + Fixed bug in Markdown reader's handling of underscores and other
10331 inline formatting markers inside reference labels: for example,
10332 in '[A_B]: /url/a_b', the material between underscores was being
10333 parsed as emphasized inlines.
10334 + Changed Markdown reader's handling of backslash escapes so that
10335 only non-alphanumeric characters can be escaped. Strict mode
10336 follows Markdown.pl in only allowing a select group of punctuation
10337 characters to be escaped.
10338 + Modified HTML reader to skip a newline following a `<br>` tag.
10339 Otherwise the newline will be treated as a space at the beginning
10340 of the next line.
10342 * Made handling of code blocks more consistent. Previously, some
10343 readers allowed trailing newlines, while others stripped them.
10344 Now, all readers strip trailing newlines in code blocks. Writers
10345 insert a newline at the end of code blocks as needed.
10347 * Modified readers to make spacing at the end of output more consistent.
10349 * Minor improvements to LaTeX reader:
10351 + '\thanks' now treated like a footnote.
10352 + Simplified parsing of LaTeX command arguments and options.
10353 commandArgs now returns a list of arguments OR options (in
10354 whatever order they appear). The brackets are included, and
10355 a new stripFirstAndLast function is provided to strip them off
10356 when needed. This fixes a problem in dealing with \newcommand
10357 and \newenvironment.
10359 * Revised RTF writer:
10361 + Default font is now Helvetica.
10362 + An '\f0' is added to each '\pard', so that font resizing works
10363 correctly.
10365 * Moved handling of "smart typography" from the writers to the Markdown
10366 and LaTeX readers. This allows great simplification of the writers
10367 and more accurate smart quotes, dashes, and ellipses. DocBook can
10368 now use `<quote>`. The '--smart' option now toggles an option in
10369 the parser state rather than a writer option. Several new kinds
10370 of inline elements have been added: Quoted, Ellipses, Apostrophe,
10371 EmDash, EnDash.
10373 * Changes in HTML writer:
10375 + Include title block in header even when title is null.
10376 + Made javascript obfuscation of emails even more obfuscatory,
10377 by combining it with entity obfuscation.
10379 * Changed default ASCIIMathML text color to black.
10381 * Test suite:
10383 + Added --strip-trailing-cr option to diff in runtests.pl, for
10384 compatibility with Windows.
10385 + Added regression tests with footnotes in quote blocks and lists.
10387 * Makefile changes:
10389 + osx-pkg target creates a Mac OS X package (directory). New osx
10390 directory contains files needed for construction of the package.
10391 + osx-dmg target creates a compressed disk image containing the package.
10392 + win-pkg target creates Windows binary package.
10393 + tarball target creates distribution source tarball.
10394 + website target generates pandoc's website automatically, including
10395 demos. New 'web' directory containts files needed for construction
10396 of the website (which will be created as the 'pandoc' subdirectory
10397 of 'web').
10398 + Makefile checks to see if we're running Windows/Cygwin; if so,
10399 a '.exe' extension is added to each executable in EXECS.
10401 * Removed all wrappers except markdown2pdf and html2markdown.
10403 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
10404 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
10405 option and disables other options.
10407 * Added code to html2markdown that tries to determine the character
10408 encoding of an HTML file, by parsing the "Content-type" meta tag.
10410 + If the encoding can't be determined, then if the content is local,
10411 the local encoding is used; if it comes from a URL, UTF-8 is used
10412 by default.
10413 + If input is from STDIN, don't try to determine character encoding.
10414 + Encoding can be specified explicitly using '-e' option.
10416 * Improved warning messages in wrappers:
10418 + Print warning if iconv not available
10419 + More user-friendly error messages in markdown2pdf, when
10420 pdflatex fails.
10422 * Code cleanup:
10424 + Renamed 'Text/Pandoc/HtmlEntities' module to
10425 'Text/Pandoc/Entities'. Also changed function names so as
10426 not to be HTML-specific.
10427 + Refactored SGML string escaping functions from HTML and Docbook
10428 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
10429 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
10430 used anywhere.
10431 + Removed splitBySpace and replaced it with a general, polymorphic
10432 splitBy function.
10433 + Refactored LaTeX reader for clarity (added isArg function).
10434 + Converted some CR's to LF's in src/ui/default/print.css.
10435 + Added license text to top of source files.
10436 + Added module data for haddock to source files.
10437 + Reformatted code for consistency.
10439 * Rewrote documentation and man pages. Split README into INSTALL
10440 and README.
10442 * Split LICENSE into COPYING and COPYRIGHT.
10444 * Removed TODO, since we now maintain ToDo on the wiki.
10446 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
10447 duplication.
10449 [ Recai Oktaş ]
10451 * Revamped build process to conform to debian standards and created
10452 a proper debian package. Closes: #391666.
10454 * Modified build process to support GHC 6.6.
10456 + The package can still be compiled using GHC 6.4.2, though because
10457 of dependencies the "make deb" target works only with GHC 6.6+.
10458 + The script 'cabalize' is used to create an appropriate
10459 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
10460 Cabal versions.
10462 * Refactored template processing (fillTemplates.pl).
10464 * Modified wrapper scripts to make them more robust and portable.
10465 To avoid code duplication and ensure consistency, wrappers are
10466 generated via a templating system from templates in src/wrappers.
10468 + Wrappers now accept multiple filenames, when appropriate.
10469 + Spaces and tabs allowed in filenames.
10470 + getopts shell builtin is used for portable option parsing.
10471 + Improved html2markdown's web grabber code, making it more robust,
10472 configurable and verbose. Added '-e', '-g' options.
10474 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
10476pandoc (0.2) unstable; urgency=low
10478 * Fixed unicode/utf-8 translation
10480 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
10482pandoc (0.1) unstable; urgency=low
10484 * Initial creation of debian package
10486 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400