git.iko.soy/typeable/pandoc
on 2.0.2 help sign in
typeable/pandoc/changelog
12965 lines 559 kB history raw
1pandoc (2.0.2)
3 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
4 `--mimetex`, `--jsmath`.
6 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
7 leading to invalid XML in default JATS output with pandoc-citeproc.
9 * `lua-filters.md`: use real-world man page filter as example.
11 * Add lua filter functions `walk_inline` and `walk_block`
12 in the pandoc module, to apply filters inside particular
13 inline and block elements.
15 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
16 into new internal module `Text.Pandoc.Lua.Filter`.
18 * Markdown reader:
20 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
21 This brings our handling of them into alignment with CommonMark's.
22 + Fix YAML metadata with "chomp" (`|-`). Previously if a
23 YAML block under `|-` contained a blank line, pandoc would
24 not parse it as metadata.
26 * Removed `etc.` from abbreviations file. Often `etc.` ends a
27 sentence, and we want the period to be treated as a
28 sentence-ending period.
30 * Fix regression with `--metadata` (#4054). Values specified with
31 `--metadata` should replace a metadata value set in the document
32 itself, rather than creating a list including a new value.
34 * EPUB writer:
36 + Fix EPUB OCF structure. #3720 had been improperly implemented.
37 + Fix modified paths for raw HTML tags (src, poster, etc.)
38 (#4050, #4055). This had not been updated for the new EPUB
39 container layout, with a separate text/ subdirectory.
40 + Fix image paths with empty `--epub-subdirectory`.
42 * Miscellaneous code cleanup (Alexander Krotov).
44 * Use pandoc-types 1.17.3, which adds `Walkable` instances
45 for `[Block] Block` and `[Inline] Inline`.
47 * Remove obsolete `stack.full.yaml` (#4052).
49 * Change to using pandoc-citeproc 0.12.1 in binary packages.
51 * Consolidate math output method documentation (#4049, Mauro Bieg).
53 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
55 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
56 Haskell filters. This is easier and faster.
58 * Improved `INSTALL.md`.
60 * Update commands to extract deb archive on Linux (#4043, Salim B).
63pandoc (2.0.1.1)
65 * Improved fix to #3989 (parsing of HTML tags containing
66 `>` in an attribute or comment). The previous fix (in 2.0.1) only
67 worked in certain cases.
69 * FB2 writer (Alexander Krotov):
71 + Add `unrecognised` genre to `<title-info>`
72 (Alexander Krotov). XML schema requires at least one genre.
73 + Remove `<annotation>` from `<body>`.
75 * CommonMark writer: fix strikethrough for `gfm` (#4038).
77 * Use texmath 0.10, which adds support for a wider range of
78 symbols and fixes default column alignments in MathML
79 and OMML.
81 * Highlighting fixes, using skylighting 0.4.3.2:
83 + Fix invalid CSS.
84 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
85 + Ensure that code lines don't get duplicate identifiers (#4031).
86 The line identifiers are built using the code block's identifier
87 as a prefix. If the code block has null identifier, we use
88 `cb1`, `cb2`, etc.
90 * Added a few abbreviations to `data/abbreviations`,
91 and sorted the list (#3984, Wandmalfarbe).
93 * Improved support for columns in HTML writer (#4028).
95 + Remove `width` attribute from the `div`.
96 + Remove space between `<div class="column">` elements,
97 since this prevents columns whose widths sum to 100%
98 (the space takes up space).
99 + Move as much as possible of the CSS to the template.
100 + Ensure that all the HTML-based templates (including epub)
101 contain the CSS for columns.
102 + Columns default to 50% width unless they are given a width
103 attribute. So if you want two equal-width columns, you
104 can use a div with class `column` and no `width` attribute.
106 * SelfContained: use `base64` for css links with media attribute (#4026).
107 This fixes `--self-contained` with S5.
109 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
111 * Issue INFO, not WARNING, when a .sty file cannot be
112 read in LaTeX reader. It is normally not an issue requiring
113 a fix from the user if .sty files are not found.
115 * INSTALL.md: MacOS instructions needed xar -f (adam234).
117 * MANUAL.txt:
119 + Clarify that --setext-headers doesn't affect gfm output (#4035).
120 + Clarify what is needed to open and close a div in `fenced_divs`
121 (#4039, Tristano Ajmone).
122 + Removed reference to `default.beamer` in docs (#4024).
123 Also added mention of other templates affecting PDF output
124 with different settings.
126pandoc (2.0.1)
128 * Fixed regression in parsing of HTML comments in markdown and other
129 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
130 The parser stopped at the first `>` character, even if it wasn't
131 the end of the comment.
133 * Creole reader (Sascha Wilde):
135 + Fix some minor typos and formatting.
136 + Add additional test on nowiki-block after para.
137 + Fix lists with trailing white space.
139 * LaTeX reader: handle `%` comment right after command.
140 For example, `\emph%`.
142 * Markdown reader: make sure fenced div closers work in lists.
143 Previously the following failed:
145 ::: {.class}
146 1. one
147 2. two
148 :::
150 and you needed a blank line before the closing `:::`.
152 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
153 enabled, Divs will be rendered as fenced divs.
155 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
156 (#4016).
158 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
159 Note: this change may require some changes in CSS rules.
160 `footnoteRef` has become `footnote-ref`, `titleslide` has
161 become `title-slide`, and `footnoteBack` has become `footnote-back`.
163 * JATS writer: Properly pass through author metadata (#4020).
165 * FB2 writer (Alexander Krotov):
167 + Write blocks outside of `<p>` in definitions.
168 + Make bullet lists consistent with ordered lists, repeating
169 the marker for the outer list rather than indenting sublists,
170 since indentation does not work in readers.
171 + Add new style FB2 tests.
173 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
174 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
175 to 'cm'.
177 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
179 * Fix broken reference links in manual (Andrew Dunning, #4014)
181 * Fixed example of slide columns structure in changelog (#4015).
182 Also documented this feature in MANUAL.txt.
185pandoc (2.0.0.1)
187 * EPUB writer:
189 + Fixed filepaths for nonstandard epub-subdirectory values.
190 + Ensure that epub2 is recognized as a non-text format,
191 so that a template is used.
192 + Don't include "prefix" attribute for ibooks for epub2.
193 It doesn't validate.
194 + Fix stylesheet paths; previously we had an incorrect
195 stylesheet path for the cover page and nav page.
197 * LaTeX reader:
199 + Insert space when needed in macro expansion (#4007).
200 Sometimes we need to insert a space after a control sequence
201 to prevent it merging with a following letter.
202 + Allow unbraced arguments for macros (#4007).
203 + Allow body of macro definition to be unbraced (#4007).
205 * Linux package build: ensure that pandoc-citeproc is statically linked.
207 * trypandoc: add native, ms.
209pandoc (2.0)
211 [new features]
213 * New output format `ms` (groff ms). Complete support, including
214 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
215 texmath's new eqn writer to convert math to eqn format, so a ms file
216 produced with this writer should be processed with `groff -ms -e` if
217 it contains math.
219 * New output format `jats` (Journal Article Tag Suite). This is an XML
220 format used in archiving and publishing articles. Note that a
221 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
222 unless a stylesheet is specified using `--css`.
224 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
225 This uses bindings to GitHub's fork of cmark, so it should parse
226 gfm exactly as GitHub does (excepting certain postprocessing
227 steps, involving notifications, emojis, etc.). `markdown_github`
228 has been deprecated in favor of `gfm`.
230 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
232 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
233 This uses bindings to GitHub's fork of cmark. `markdown_github`
234 has been deprecated in favor of `gfm`.
236 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
238 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
240 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
241 Note that there is a new data file, `data/vimwiki.css`, which can
242 be used to display the HTML produced by this reader and
243 pandoc's HTML writer in the style of vimwiki's own HTML
244 export.
246 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
248 * New syntax for Divs, with `fenced_divs` extension enabled by
249 default (#168). This gives an attractive, plain-text way to create
250 containers for block-level content.
252 * Added new syntax for including raw content in any output format,
253 enabled by the `raw_attribute` extension (which is on by default
254 for `markdown` and `multimarkdown`). The syntax is the same as
255 for fenced code blocks or code inlines, only with `{=FORMAT}` for
256 attributes, where `FORMAT` is the name of the output format
257 (e.g., `ms`, `html`).
259 * Implement multicolumn support for slide formats (#1710).
260 The structure expected is:
262 :::::::::::::: {.columns}
263 ::: {.column width="40%"}
264 contents...
265 :::
266 ::: {.column width="60%"}
267 contents...
268 :::
269 ::::::::::::::
271 Support has been added for beamer and all HTML slide formats.
273 * Allows line comments in templates, beginning with `$--` (#3806).
274 (Requires doctemplates 0.2.1.)
276 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
277 (Stefan Dresselhaus, #3663, #2097).
279 * Add `--log` option to save log messages in JSON format to a file (#3392).
281 * Add `--request-header` option, to set request headers when pandoc
282 makes HTTP requests to fetch external resources. For example:
283 `--request-header User-Agent:blah`.
285 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
286 option works like `--filter` but takes pathnames of special lua filters
287 and uses the lua interpreter baked into pandoc, so that no external
288 interpreter is needed. Note that lua filters are all applied after
289 regular filters, regardless of their position on the command line.
290 For documentation of lua filters, see `doc/lua-filters.md`.
292 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
293 This contains a JSON representation of `ReaderOptions`, so filters
294 can access it.
296 * Support creation of pdf via groff `ms` and pdfroff.
297 `pandoc -t ms -o output.pdf input.txt`.
299 * Support for PDF generation via HTML and `weasyprint` or `prince`
300 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
302 * Added `--epub-subdirectory` option (#3720). This specifies the
303 subdirectory in the OCF container that holds the EPUB specific content.
304 We now put all EPUB related content in an `EPUB/` subdirectory by default
305 (later this will be configurable).
307 ```
308 mimetype
309 META-INF/
310 com.apple.ibooks.display-options.xml
311 container.xml
312 EPUB/ <<--configurable-->>
313 fonts/ <<--static-->>
314 font.otf
315 media/ <<--static-->>
316 cover.jpg
317 fig1.jpg
318 styles/ <<--static-->>
319 stylesheet.css
320 content.opf
321 toc.ncx
322 text/ <<--static-->>
323 ch001.xhtml
324 ```
326 * Added `--resource-path=SEARCHPATH` command line option (#852).
327 SEARCHPATH is separated by the usual character, depending on OS
328 (: on unix, ; on windows). Default resource path is just working
329 directory. However, the working directory must be explicitly
330 specified if the `--resource-path` option is used.
332 * Added --abbreviations=FILE option for custom abbreviations file
333 (#256). Dfault abbreviations file (`data/abbreviations`) contains
334 a list of strings that will be recognized by pandoc's
335 Markdown parser as abbreviations. (A nonbreaking space will
336 be inserted after the period, preventing a sentence space in
337 formats like LaTeX.) Users can override the default by putting a file
338 abbreviations in their user data directory (`~/.pandoc` on *nix).
340 * Allow a theme file as argument to `--highlight-style`.
341 Also include a sample, `default.theme`, in `data/`.
343 * Allow `--syntax-definition` option for dynamic loading of syntax
344 highlighting definitions (#3334).
346 * Lists in `markdown` by default now use the CommonMark variable
347 nesting rules (#3511). The indentation required for a block-level
348 item to be included in a list item is no longer fixed, but is
349 determined by the first line of the list item. To be included in
350 the list item, a block must be indented to the level of the first
351 non-space content after the list marker. Exception: if are 5 or more
352 spaces after the list marker, then the content is interpreted as an
353 indented code block, and continuation paragraphs must be indented
354 two spaces beyond the end of the list marker. See the CommonMark
355 spec for more details and examples.
357 Documents that adhere to the four-space rule should, in most cases,
358 be parsed the same way by the new rules. Here are some examples
359 of texts that will be parsed differently:
361 - a
362 - b
364 will be parsed as a list item with a sublist; under the four-space
365 rule, it would be a list with two items.
367 - a
369 code
371 Here we have an indented code block under the list item, even though it
372 is only indented six spaces from the margin, because it is four spaces
373 past the point where a continuation paragraph could begin. With the
374 four-space rule, this would be a regular paragraph rather than a code
375 block.
377 - a
379 code
381 Here the code block will start with two spaces, whereas under
382 the four-space rule, it would start with `code`. With the four-space
383 rule, indented code under a list item always must be indented eight
384 spaces from the margin, while the new rules require only that it
385 be indented four spaces from the beginning of the first non-space
386 text after the list marker (here, `a`).
388 This change was motivated by a slew of bug reports from people
389 who expected lists to work differently (#3125, #2367, #2575, #2210,
390 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
391 of CommonMark (now used by GitHub, for example). Those who
392 prefer the old behavior can use `-f markdown+four_space_rule`.
394 * Added `four_space_rule` extension. This triggers the old pandoc
395 parsing rule for content nested under list items (the "four space
396 rule").
398 * Added `spaced_reference_links` extension (#2602). It allows whitespace
399 between the two parts of a reference link: e.g.
401 [a] [b]
403 [b]: url
405 This was previously enabled by default; now it is now forbidden by default.
407 * Add `space_in_atx_header` extension (#3512). This is enabled by default
408 in pandoc and GitHub markdown but not the other flavors.
409 This requirse a space between the opening #'s and the header
410 text in ATX headers (as CommonMark does but many other implementations
411 do not). This is desirable to avoid falsely capturing things ilke
413 #hashtag
415 or
417 #5
419 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
420 #3431).
422 * Allow ibooks-specific metadata in epubs (#2693). You can now have
423 the following fields in your YAML metadata, and it will be treated
424 appropriately in the generated EPUB:
426 ```
427 ibooks:
428 version: 1.3.4
429 specified-fonts: false
430 ipad-orientation-lock: portrait-only
431 iphone-orientation-lock: landscape-only
432 binding: true
433 scroll-axis: vertical
434 ```
437 [behavior changes]
439 * Reader functions no longer presuppose that CRs have been
440 stripped from the input. (They strip CRs themselves, before
441 parsing, to simplify the parsers.)
443 * Added support for translations (localization) (#3559).
444 Currently this only affects the LaTeX reader, for things
445 like `\figurename`. Translation data files for 46 languages
446 can be found in `data/translations`.
448 * Make `--ascii` work with DocBook output too.
450 * Rename `--latex-engine` to `--pdf-engine`,
451 and `--latex-engine-opt` to `--pdf-engine-opt`.
453 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
454 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
455 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
456 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
458 * With `--filter` R filters are now recognized, even if they are
459 not executable (#3940, #3941, Andrie de Vries).
461 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
463 * Make epub an alias for epub3, not epub2.
465 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
466 Multiple stylesheets may be used. Stylesheets will be taken both from
467 `--css` and from the `stylesheet` metadata field (which can contain
468 either a file path or a list of them).
470 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
471 The argument was for a bridge JavaScript that used to be necessary
472 in 2004. We have removed the script already.
474 * `--katex` improvements. The latest version is used, and the
475 autoload script is loaded by default.
477 * Change MathJax CDN default since old one is shutting down (#3544).
478 Note: The new URL requires a version number, which we'll have
479 to update manually in subsequent pandoc releases in order to
480 take advantage of mathjax improvements.
482 * `--self-contained`: don't incorporate elements with `data-external="1"`
483 (#2656). You can leave an external link as it is by adding the attribute
484 data-external="1" to the element. Pandoc will then not try to
485 incorporate its content when `--self-contained` is used. This is
486 similar to a feature already supported by the EPUB writer.
488 * Allow `--extract-media` to work with non-binary input formats
489 (#1583, #2289). If `--extract-media` is supplied with a non-binary
490 input format, pandoc will attempt to extract the contents of all
491 linked images, whether in local files, data: uris, or external uris.
492 They will be named based on the sha1 hash of the contents.
494 * Make `papersize: a4` work regardless of the case of `a4`.
495 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
497 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
499 * Underlined elements are now treated consistently by readers
500 (#2270, hftf); they are always put in a Span with class `underline`.
501 This allows the user to treat them differently from other emphasis,
502 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
503 have been changed.
505 * Improved behavior of `auto_identifiers` when there are explicit ids
506 (#1745). Previously only autogenerated ids were added to the list
507 of header identifiers in state, so explicit ids weren't taken
508 into account when generating unique identifiers. Duplicated
509 identifiers could result. This simple fix ensures that explicitly given
510 identifiers are also taken into account.
512 * Use `table-of-contents` for contents of toc, make `toc` a boolean
513 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
514 This allows you to set `toc: true` in the metadata; this
515 previously produced strange results in some output formats.
516 For backwards compatibility, `toc` is still set to the
517 toc contents. But it is recommended that you update templates
518 to use `table-of-contents` for the toc contents and `toc`
519 for a boolean flag.
521 * Change behavior with binary format output to stdout.
522 Previously, for binary formats, output to stdout was disabled
523 unless we could detect that the output was being piped (and not
524 sent to the terminal). Unfortunately, such detection is not
525 possible on Windows, leaving windows users no way to pipe binary
526 output. So we have changed the behavior in the following way:
528 + Output to stdout is allowed when it can be determined that
529 the output is being piped (on non-Windows platforms).
530 + If the `-o` option is not used, binary output is never sent
531 to stdout by default; instead, an error is raised.
532 + If `-o -` is used, binary output is sent to stdout, regardless
533 of whether it is being piped. This works on Windows too.
535 * Better error behavior: uses of `error` have been replaced by
536 raising of `PandocError`, which can be trapped and handled by the
537 calling program.
539 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
540 GitHub has two Markdown modes, one for long-form documents like READMEs
541 and one for short things like issue coments. In issue comments, a line
542 break is treated as a hard line break. In README, wikis, etc., it is
543 treated as a space as in regular Markdown. Since pandoc is more likely to
544 be used to convert long-form documents from GitHub Markdown,
545 `-hard_line_breaks` is a better default.
547 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
549 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
550 Previously they would be transmitted to the template without any
551 escaping. Note that `--M title='*foo*'` yields a different result from
553 ---
554 title: *foo*
555 ---
557 In the latter case, we have emphasis; in the former case, just
558 a string with literal asterisks (which will be escaped
559 in formats, like Markdown, that require it).
561 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
563 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
564 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
565 it is valid HTML5. HTML4 is not affected. This will allow us to use
566 custom attributes in pandoc without producing invalid HTML. (With help
567 from Wandmalfarbe, #3817.)
569 * Plain writer: improved super/subscript rendering. We now
570 handle more non-digit characters for which there are
571 sub/superscripted unicode characters. When unicode
572 sub/superscripted characters are not available, we use
573 `_(..)` or `^(..)` (#3518).
575 * Docbook, JATS, TEI writers: print INFO message when omitting interior
576 header (#3750). This only applies to section headers inside list items,
577 e.g., which were otherwise silently omitted.
579 * Change to `--reference-links` in Markdown writer (#3701). With
580 `--reference-location` of `section` or `block`, pandoc will now repeat
581 references that have been used in earlier sections. The Markdown
582 reader has also been modified, so that *exactly* repeated references
583 do not generate a warning, only references with the same label but
584 different targets. The idea is that, with references after every block,
585 one might want to repeat references sometimes.
587 * ODT/OpenDocument writer:
589 + Support `lang` attribute (#1667).
590 + Added support for `--toc` (#2836). Thanks to @anayrat.
592 * Docx writer:
594 + `lang` meta, see #1667 (Mauro Bieg, #3515).
595 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
596 + Use `Table` rather than `Table Normal` for table style (#3275).
597 `Table Normal` is the default table style and can't be modified.
598 + Pass through comments (#2994). We assume that comments are defined as
599 parsed by the docx reader:
601 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
602 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
603 have a comment <span class="comment-end" id="0"></span>on it.
605 We assume also that the id attributes are unique and properly
606 matched between comment-start and comment-end.
607 + Bookmark improvements. Bookmark start/end now surrounds content rather
608 than preceding it. Bookmarks generated for Div with id
609 (jgm/pandoc-citeproc#205).
610 + Add `keywords` metadata to docx document properties (Ian).
612 * RST writer: support unknown interpreted text roles by
613 parsing them as `Span` with `role` attributes (#3407). This
614 way they can be manipulated in the AST.
616 * HTML writer:
618 + Line block: Use class instead of style attribute (#1623). We now
619 issue `<div class="line-block">` and include a default definition
620 for `line-block` in the default templates, instead of hard-coding a
621 `style` on the div.
622 + Add class `footnoteBack` to footnote back references (Timm Albers).
623 This allows for easier CSS styling.
624 + Render SmallCaps as span with smallcaps class (#1592), rather than
625 using a style attribute directly. This gives the user more flexibility
626 in styling small caps in CSS.
627 + With reveal.js we use `data-src` instead of `src` for images for
628 lazy loading.
629 + Special-case `.stretch` class for images in reveal.js (#1291).
630 Now in reveal.js, an image with class `stretch` in a paragraph
631 by itself will stretch to fill the whole screen, with no
632 caption or figure environment.
634 * Added warnings for non-rendered blocks to writers.
636 * Writers now raise an error on template failure.
638 * When creating a PDF via LaTeX, warn if the font is missing some
639 characters (#3742).
641 * Remove initial check for PDF-creating program (#3819).
642 Instead, just try running it and raise the exception if it
643 isn't found at that point. This improves things for users of Cygwin
644 on Windows, where the executable won't be found by `findExecutable`
645 unless `.exe` is added. The same exception is raised as before, but
646 at a later point.
648 * Readers issue warning for duplicate header identifiers (#1745).
649 Autogenerated header identifiers are given suffixes so as not to clash
650 with previously used header identifiers. But they may still coincide with
651 an explicit identifier that is given for a header later in the document,
652 or with an identifier on a div, span, link, or image. We now issue
653 a warning in this case, so users can supply an explicit identifier.
655 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
656 and `raw_html` extensions.
658 * Markdown reader:
660 + Don't allow backslash + newline to affect block structure (#3730).
661 Note that as a result of this change, the following, which formerly
662 produced a header with two lines separated by a line break, will
663 now produce a header followed by a paragraph:
665 # Hi\
666 there
668 This may affect some existing documents that relied on
669 this undocumented and unintended behavior. This change makes pandoc
670 more consistent with other Markdown implementations, and with itself
671 (since the two-space version of a line break doesn't work inside ATX
672 headers, and neither version works inside Setext headers).
675 * Org reader (Albert Krewinkel, unless noted):
677 + Support `table.el` tables (#3314).
678 + Support macros (#3401).
679 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
680 Recognized include types are `example`, `export`, `src`, and
681 normal org file inclusion. Advanced features like line numbers
682 and level selection are not implemented yet.
683 + Interpret more meta value as inlines. The values of the following
684 meta variables are now interpreted using org-markup instead of
685 treating them as pure strings: `keywords` (comma-separated list of
686 inlines), `subtitle` (inline values), `nocite` (inline values, can
687 be repeated).
688 + Support `\n` export option (#3940). This turns all newlines in the
689 text into hard linebreaks.
691 * RST reader:
693 + Improved admonition support (#223). We no longer add an
694 `admonition` class, we just use the class for the type of admonition,
695 `note` for example. We put the word corresponding to the label in
696 a paragraph inside a `Div` at the beginning of the admonition with
697 class `admonition-title`. This is about as close as we can get to
698 RST's own output.
699 + Initial support of `.. table` directive. This allows adding captions
700 to tables.
701 + Support `.. line-block` directive. This is deprecated but may still
702 be in older documents.
703 + Support scale and align attributes of images (#2662).
704 + Implemented implicit internal header links (#3475).
705 + Support RST-style citations (#853). The citations appear at the end
706 of the document as a definition list in a special div with id
707 `citations`. Citations link to the definitions.
708 + Recurse into bodies of unknown directives (#3432).
709 In most cases it's better to preserve the content than
710 to emit it. This isn't guaranteed to have good results;
711 it will fail spectacularly for unknown raw or verbatim directives.
712 + Handle chained link definitions (#262). For example,
714 .. _hello:
715 .. _goodbye: example.com
717 Here both `hello` and `goodbye` should link to `example.com`.
718 + Support anchors (#262). E.g.
720 `hello`
722 .. _hello:
724 paragraph
726 This is supported by putting "paragraph" in a `Div` with id `hello`.
727 + Support `:widths:` attribute for table directive.
728 + Implement csv-table directive (#3533). Most attributes are supported,
729 including `:file:` and `:url:`.
730 + Support unknown interpreted text roles by parsing them as Span
731 with "role" attributes (#3407). This way they can be manipulated in
732 the AST.
734 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
736 * LaTeX reader:
738 + Implemented `\graphicspath` (#736).
739 + Properly handle column prefixes/suffixes. For example, in
740 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
741 each cell will be interpreted as if it has a `$`
742 before its content and a `$` after (math mode).
743 + Handle komascript `\dedication` (#1845). It now adds a
744 `dedication` field to metadata. It is up to the user to supply
745 a template that uses this variable.
746 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
747 `sf`, `bf` (#3488). Spans with a class are used when there is
748 nothing better.
749 + Expand `\newenvironment` macros (#987).
750 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
751 + Better support for subfigure package (#3577).
752 A figure with two subfigures turns into two pandoc
753 figures; the subcaptions are used and the main caption
754 ignored, unless there are no subcaptions.
755 + Add support for \vdots (Marc Schreiber, #3607).
756 + Add basic support for hyphenat package (Marc Schreiber, #3603).
757 + Add basic `\textcolor` support (Marc Schreiber).
758 + Add support for `tabularx` environment (Marc Schreiber, #3632).
759 + Better handling of comments inside math environments (#3113).
760 This solves a problem with commented out `\end{eqnarray}` inside
761 an eqnarray (among other things).
762 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
763 is selected (#3692). Otherwise skip with a warning. This is better
764 than trying to parse it as text!
765 + Add `\colorbox` support (Marc Schreiber).
766 + Set identifiers on Spans used for `\label`.
767 + Have `\setmainlanguage` set `lang` in metadata.
768 + Support etoolbox's `\ifstrequal`.
769 + Support `plainbreak`, `fancybreak` et al from the memoir class
770 (bucklereed, #3833).
771 + Support `\let`. Also, fix regular macros so they're expanded at the
772 point of use, and NOT also the point of definition. `\let` macros,
773 by contrast, are expanded at the point of definition. Added an
774 `ExpansionPoint` field to `Macro` to track this difference.
775 + Support simple `\def` macros. Note that we still don't support
776 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
777 + Support \chaptername, \partname, \abstractname, etc. (#3559,
778 obsoletes #3560).
779 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
780 attributes, so they can be handled in filters (Marc Schreiber, #3639)
781 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
782 #3589). Acronyms are not resolved by the reader, but acronym and
783 glossary information is put into attributes on Spans so that they
784 can be processed in filters.
785 + Use `Link` instead of `Span` for `\ref`. This makes more sense
786 semantically and avoids unnecessary `Span [Link]` nestings when
787 references are resolved.
788 + Rudimentary support for `\hyperlink`.
789 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
790 + Support `\lq`, `\rq`.
791 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
792 (#3853).
793 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
794 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
795 + Support `\k` ogonek accent.
796 + Improve handling of accents. Handle ogonek, and fall back correctly
797 with forms like `\"{}`.
798 + Better support for ogonek accents.
799 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
800 + Support for `xspace` (Marc Schreiber, #3797).
801 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
802 and `\figurename`.
803 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
804 level 0 headers, and parts as level -1 headers. After parsing, we
805 check for the lowest header level, and if it's less than 1 we bump
806 everything up so that 1 is the lowest header level. So `\part` will
807 always produce a header; no command-line options are needed.
808 + Add block version of `\textcolor` (Marc Schreiber).
809 + `\textcolor` works as inline and block command (Marc Schreiber).
810 + `\textcolor` will be parse as span at the beginning of a paragraph
811 (Marc Schreiber).
812 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
813 + Improved handling of include files in LaTeX reader (#3971).
814 Previously `\include` wouldn't work if the included file
815 contained, e.g., a begin without a matching end.
816 + Support `\expandafter` (#3983).
817 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
818 as a synonym for `\newcommand`.
819 + Handle `\lettrine` (Mauro Bieg).
821 * Math improvements due to updates in texmath:
823 + Improved handling of accents and upper/lower delimiters.
824 + Support for output in GNU eqn format (used with *roff).
825 + Allow `\boldsymbol` + a token without braces, and similarly
826 with other styling commands.
827 + Improve parsing of `\mathop` to allow multi-character operator names.
828 + Add thin space after math operators when "faking it with
829 unicode."
831 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
832 instance for `a -> [a]` (pandoc-types). Note that behavior
833 will be slightly different, since `bottomUp`'s treatment of
834 a function `[a] -> [a]` is to apply it to each sublist of a
835 list, while walk applies it only to maximal sublists.
836 Usually the latter behavior is what is wanted, and the
837 former can be simulated when needed. But there may be
838 existing filters that need to be rewritten in light of the
839 new behavior. Performance should be improved.
841 * There are some changes to syntax highlighting due to revisions
842 in the `skylighting` library:
844 + Support for `powershell` has been added, and many syntax
845 definitions have been updated.
846 + Background colors have been added to the `kate` style.
847 + The way highlighted code blocks are formatted in HTML has
848 been changed (David Baynard), in ways that may require
849 changes in hard-coded CSS affecting highlighting.
850 (If you haven't included hard-coded highlighting CSS in
851 your template, you needn't change anything.)
854 [API changes]
856 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
857 This contains definitions of the `PandocMonad` typeclass, the
858 `PandocIO` and `PandocPure` monads, and associated functions.
860 * Changed types of all writers and readers.
862 + We now use `Text` instead of `String` in the interface (#3731).
863 (We have not yet changed the internals of most readers to work
864 with `Text`, but making this change in the API now opens up a
865 path to doing that.)
866 + The result is now of form `m a` with constraint `PandocMonad m`.
867 Readers and writers can be combined to form monadic values which
868 can be run using either `runIO` or `runPure`. If `runIO` is used,
869 then both readers and writers will be able to do IO when needed
870 (for include files, for example); if `runPure` is used,
871 then the functions are pure and will not touch IO.
872 + Where previously you used
873 `writeRST def (readMarkdown def "[foo](url)")`, now you
874 would use
875 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
877 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
878 contains reader helper functions formerly defined in the
879 top-level `Text.Pandoc` module.
881 + Changed `StringReader` -> `TextReader`.
882 + `getReader` now returns a pair of a reader and
883 `Extensions`, instead of building the extensions into the
884 reader (#3659). The calling code must explicitly set
885 `readerExtensions` using the `Extensions` returned. The
886 point of the change is to make it possible for the calling
887 code to determine what extensions are being used.
889 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
890 This contains writer helper functions formerly defined in the
891 top-level `Text.Pandoc` module.
893 + Changed `StringWriter` -> `TextWriter`.
894 + `getWriter` now retuns a pair of a reader and
895 `Extensions`, instead of building the extensions into the
896 reader (#3659). The calling code must explicitly set
897 `readerExtensions` using the `Extensions` returned. The
898 point of the change is to make it possible for the calling
899 code to determine what extensions are being used.
901 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
902 #3514).
904 * New module `Text.Pandoc.App`. This abstracts out the functionality
905 of the command line program (`convertWithOpts`), so it can be reproduced
906 e.g. in a desktop or web application. Instead of exiting, we throw errors
907 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
908 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
909 The module also exports some utility functions for parsing options
910 and running filters.
912 * New module `Text.Pandoc.Logging` (exported module) (#3392).
913 This now contains the `Verbosity` definition previously in
914 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
915 eventually be used instead of raw strings for warnings. This will enable
916 us, among other things, to provide machine-readable warnings if desired.
917 Include ToJSON instance and showLogMessage. This gives us the possibility
918 of both machine-readable and human-readable output for log messages.
920 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
922 * New module `Text.Pandoc.Translations`, exporting `Term`,
923 `Translations`, `readTranslations`.
925 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
926 `TokType`, `Line`, `Column`.
928 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
930 * Expose some previously private modules (#3260). These are often
931 helpful to people writing their own reader or writer modules:
933 + `Text.Pandoc.Writers.Shared`
934 + `Text.Pandoc.Parsing`
935 + `Text.Pandoc.Asciify`
936 + `Text.Pandoc.Emoji`
937 + `Text.Pandoc.ImageSize`
938 + `Text.Pandoc.Highlighting`
940 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
941 Extension parsing and processing functions were defined in the top-level
942 `Text.Pandoc` module. These functions are moved to the Extensions
943 submodule as to enable reuse in other submodules.
945 * Add `Ext_raw_attribute` constructor for `Extension`.
947 * Add `Ext_fenced_divs` constructor for `Extension'.
949 * Add `Ext_four_space_rule` constructor in `Extension`.
951 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
953 * Add `Monoid` instance for `Extensions`.
955 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
957 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
959 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
961 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
963 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
965 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
967 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
969 * Export `setVerbosity` from `Text.Pandoc`.
971 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
973 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
975 * `Text.Pandoc.UTF8`:
977 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
978 Define `toString`, `toStringLazy` in terms of them.
979 + Add new functions parameterized on `Newline`: `writeFileWith`,
980 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
982 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
984 * `Text.Pandoc.Highlighting`:
986 + `highlighting` now returns an Either rather than Maybe.
987 This allows us to display error information returned by the skylighting
988 library. Display a warning if the highlighting library throws an error.
989 + Add parameter for `SyntaxMap` to `highlight`.
991 * `Text.Pandoc.Writers.Math`:
993 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
994 we only need to update these in one place.
996 * `Text.Pandoc.SelfContained`:
998 + Removed `WriterOptions` parameter from `makeSelfContained`.
999 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
1000 the need to pass MediaBag around and improves exceptions. It also
1001 opens up the possibility of using makeSelfContained purely.
1002 + Export `makeDataURI`.
1004 * `Text.Pandoc.ImageSize`:
1006 + Export `lengthToDim`, new function `scaleDimension`.
1007 + Export `inEm` from ImageSize (#3450).
1008 + Change `showFl` and `show` instance for `Dimension` so
1009 extra decimal places are omitted.
1010 + Added `Em` as a constructor of `Dimension`.
1011 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
1013 * `Text.Pandoc.Templates`:
1015 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
1016 and raises a proper `PandocTemplateError` if there are problems, rather
1017 than failing with uncatchable `error`.
1018 + Change signature of `getDefaultTemplate`. Now it runs in any instance
1019 of `PandocMonad`, and returns a `String` rather than an `Either` value.
1020 And it no longer takes a `datadir` parameter, since this can be
1021 retrieved from `CommonState`.
1023 * `Text.Pandoc.Options`:
1025 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
1026 The EPUB writer now takes its EPUB subdirectory from this option.
1027 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
1028 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
1029 + Add `writerSyntaxMap` to `WriterOptions`.
1030 + Removed `writerEpubStylesheet` from `WriterOptions`.
1031 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
1032 in `CommonState` in `PandocMonad` instances. (And thus it can be used
1033 by readers too.)
1034 + Changed `writerEpubMetadata` to a `Maybe String`.
1035 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
1036 the `latex_macros` reader extension.
1037 + FromJSON/ToJSON instances for `ReaderOptions`.
1038 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
1039 one string (for the KaTeX base URL), rather than two.
1040 + Removed `writerSourceURL` from `WriterOptions`. We now use
1041 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
1043 * `Text.Pandoc.Shared`:
1045 + `tabFilter` now takes a `Text`, not `String`.
1046 + `openURL`: Changed type from an Either. Now it will just raise
1047 an exception to be trapped later.
1048 + Remove `normalizeSpaces` (#1530).
1049 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
1050 + Export a new function `crFilter`.
1051 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
1052 + Provide custom `isURI` that rejects unknown schemes.
1053 (Albert Krewinkel, #2713). We also export the set of known
1054 `schemes`. The new function replaces the function of the same name
1055 from `Network.URI`, as the latter did not check whether a scheme is
1056 well-known. All official IANA schemes (as of 2017-05-22) are
1057 included in the set of known schemes. The four non-official schemes
1058 `doi`, `isbn`, `javascript`, and `pmid` are kept.
1059 + Remove `err`.
1060 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
1061 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
1062 where they are defined in terms of `PandocMonad`
1063 primitives and have different signatures.
1064 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
1065 + Add `underlineSpan`.
1067 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
1069 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
1070 With the new API one can simply use `getLog` after running
1071 the reader.
1073 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
1074 and `rawLaTeXBlock`. (Both now return a `String`, and they are
1075 polymorphic in state.)
1078 [bug fixes and under-the-hood improvements]
1080 * TEI writer: Added identifiers on `<div>` elements.
1082 * DokuWiki reader: Better handling for code block in list item (#3824).
1084 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
1086 * ZimWiki writer: Removed internal formatting from note and table cells,
1087 because ZimWiki does not support it (Alex Ivkin, #3446).
1089 * MediaWiki writer:
1091 + Updated list of syntax highlighting languages (#3461).
1092 Now `r` gets you `<source>` rather than `<code>` (among others).
1093 + Add display attribute on `<math>` tags (#3452). This allows display
1094 math to be rendered properly.
1095 + Remove newline before `</ref>` (#2652).
1096 + Don't softbreak lines inside list items (#3531).
1098 * Org writer:
1100 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
1101 + Add unit tests (Alexander Krotov).
1102 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
1103 + Do not strip `#` from Org anchor links (Alexander Krotov).
1105 * CommonMark writer:
1107 + Avoid excess blank lines at end of output.
1108 + Prefer pipe tables to HTML tables even if it means losing relative
1109 column width information (#3734).
1110 + Support table, strikethrough extensions, when enabled (as with gfm).
1111 Note that we bypass the commonmark writer from cmark and construct our
1112 own pipe tables, with better results.
1113 + Properly support `--wrap=none`.
1114 + Use smallcaps class for `SmallCaps` (#1592).
1115 + Omit "fig:" prefix in image titles. This is used internally to
1116 indicate internal figures.
1118 * RST writer:
1120 + Properly handle table captions.
1121 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
1122 + Implemented `+/-smart` and improved escaping with `+smart`.
1123 + Add empty comments when needed to avoid including a blockquote
1124 in the indented content of a preceding block (#3675).
1125 + Improve grid table output, fix bug with empty rows (#3516).
1126 Uses the new `gridTable` in Writers.Shared, which is here
1127 improved to better handle 0-width cells.
1128 + Remove space at beginning/end of RST code span (#3496). Otherwise
1129 we get invalid RST. There seems to be no way to escape the space.
1130 + Add header anchors when header has non-standard id (#3937).
1131 + Correctly handle inline code containing backticks, using a `:literal:`
1132 role (#3974).
1133 + Don't backslash-escape word-internal punctuation (#3978).
1135 * Markdown writer:
1137 + Don't include variables in metadata blocks. Previously variables set
1138 on the command line were included in e.g. YAML metadata, contrary to
1139 documentation and intentions.
1140 + Improved escaping with `+smart`.
1141 + Fixed grid tables embedded in grid tables (#2834).
1142 + Use span with class 'smallcaps' for SmallCaps, instead of a style
1143 attribute as before (#1592).
1144 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
1145 extension is enabled (#3454). Otherwise in a document starting with
1146 a literal `%` the first line is wrongly interpreted as a title.
1147 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
1148 properly escape things that would otherwise start ordered lists,
1149 such as
1151 ---
1152 title: 1. inline
1153 ...
1154 + Better handling of tables with empty columns (#3337). We now
1155 calculate the number of columns based on the longest row (or the
1156 length of aligns or widths).
1157 + Escape unordered list markers at beginning of paragraph (#3497), to
1158 avoid false interpretation as a list.
1159 + Escape `|` appropriately.
1160 + Ensure space before list at top level (#3487).
1161 + Avoid spurious blanklines at end of document after tables and list,
1162 for example.
1163 + Fixed bugs in simple/multiline list output (#3384).
1164 Previously we got overlong lists with `--wrap=none`. This is fixed.
1165 Previously a multiline list could become a simple list (and would
1166 always become one with `--wrap=none`).
1167 + Don't emit a simple table if `simple_tables` disabled (#3529).
1168 + Case-insensitive reference links (David A Roberts, #3616).
1169 Ensure that we do not generate reference links whose labels differ only
1170 by case. Also allow implicit reference links when the link
1171 text and label are identical up to case.
1172 + Put space before reference link definitions (Mauro Bieg, #3630).
1173 + Better escaping for links (David A. Roberts, #3619). Previously the
1174 Markdown writer would sometimes create links where there were none
1175 in the source. This is now avoided by selectively escaping bracket
1176 characters when they occur in a place where a link might be created.
1177 + Added missing `\n` (David A. Roberts, #3647).
1178 + Fixed duplicated reference links with `--reference-links`
1179 and `--reference-location=section` (#3674). Also ensure that there
1180 are no empty link references `[]`.
1181 + Avoid inline surround-marking with empty content (#3715).
1182 E.g. we don't want `<strong></strong>` to become `****`.
1183 Similarly for emphasis, super/subscript, strikeout.
1184 + Don't allow soft break in header (#3736).
1185 + Make sure `plain`, `markdown_github`, etc. work for raw.
1186 Previously only `markdown` worked. Note: currently a raw block labeled
1187 `markdown_github` will be printed for any `markdown` format.
1188 + Ensure that `+` and `-` are escaped properly so they don't cause
1189 spurious lists (#3773). Previously they were only
1190 if succeeded by a space, not if they were at end of line.
1191 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
1192 even if the table has relative width information (#3734).
1193 + Markdown writer: don't crash on `Str ""`.
1194 + Make `Span` with null attribute transparent. That is, we don't use
1195 brackets or `<span>` tags to mark spans when there are no attributes;
1196 we simply output the contents.
1197 + Escape pipe characters when `pipe_tables` enabled (#3887).
1198 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
1199 we backslash escape these. Otherwise we use entities as before.
1200 + When writing plain, don't use `&nbsp;` to separate list and indented
1201 code. There's no need for it in this context, since this isn't to be
1202 interpreted using Markdown rules.
1203 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
1204 HTML links containing classes originally now preserve them when using
1205 javascript email obfuscation.
1206 + Render `SmallCaps` as a native span when `native_spans` are enabled.
1207 + Always write attributes with `bracketed_spans` (d-dorazio).
1209 * Man writer:
1211 + Fix handling of nested font commands (#3568). Previously pandoc emitted
1212 incorrect markup for bold + italic, for example, or bold + code.
1213 + Avoid error for definition lists with no definitions (#3832).
1215 * DocBook writer:
1217 + Fix internal links with `writerIdentifierPrefix opt`
1218 (#3397, Mauro Bieg).
1220 * Docx writer:
1222 + Don't include bookmarks on headers unless non-null id (#3476).
1223 + Support 9 levels of headers (#1642).
1224 + Allow 9 list levels (#3519).
1225 + Don't take `distArchive` from datadir (#3322). The docx writer takes
1226 components from the distribution's version of `reference.docx` when it
1227 can't find them in a user's custom `reference.docx`. Previously, we
1228 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
1229 to be used as the distribution's reference.docx. This led to a
1230 bizarre situation where pandoc would produce a good docx using
1231 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
1232 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
1233 + Fixed handling of soft hyphen (0173) (#3691).
1234 + Better handling of keywords (#3719).
1235 + Cleaner code for handling dir and style attributes for `Div`.
1236 + Use `Set` for dynamic styles to avoid duplicates.
1237 + Removed redundant element from data/docx/word/numbering.xml.
1238 The elements we need are generated when the document is
1239 compiled; this didn't do anything.
1240 + Activate `evenAndOddHeaders` from reference docx (#3901,
1241 Augustín Martín Barbero).
1243 * ODT/OpenDocument writer:
1245 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
1246 + Use more widely available bullet characters (#1400). The old
1247 characters weren't available in some font sets. These seem to work
1248 well on Windows and Linux versions of LibreOffice.
1249 + Wider labels for lists (#2421). This avoids overly narrow labels for
1250 ordered lists with `()` delimiters. However, arguably it creates
1251 overly wide labels for bullets. Also, lists now start flush with
1252 the margin, rather than indented.
1253 + Fixed dropped elements in some ordered lists (#2434).
1255 * FB2 writer:
1257 + Don't render `RawBlock` as code.
1258 + Don't fail with an error on interior headers (e.g. in list) (#3750).
1259 Instead, omit them with an INFO message.
1260 + Add support for "lang" metadata (Alexander Krotov, #3625).
1261 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
1262 produced one paragraph with `<empty-line/>` elements, which are not
1263 allowed inside `<p>` according to FB2 schema.
1264 + Replace `concatMap` with `cMap` (Alexander Krotov).
1265 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
1266 Krotov, #4004)
1268 * HTML writer:
1270 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
1271 + Render raw inline environments when `--mathjax` used (#3816).
1272 We previously did this only with raw blocks, on the assumption
1273 that math environments would always be raw blocks. This has changed
1274 since we now parse them as inline environments.
1275 + Ensure we don't get two style attributes for width and height.
1276 + Report when not rendering raw inline/block.
1277 + Issue warning if no title specified and template used (#3473).
1278 + Info message if `lang` is unspecified (#3486).
1279 + Removed unused parameter in `dimensionsToAttributeList`.
1280 + Avoid two class attributes when adding `uri` class (#3716).
1281 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
1282 Bieg).
1283 + Use revealjs's math plugin for mathjax (#3743). This is a thin
1284 wrapper around mathjax that makes math look better on revealjs.
1285 + Slidy: use h1 for all slides, even if they were originally
1286 level 2 headers (#3566). Otherwise the built-in table of contents
1287 in Slidy breaks.
1289 * LaTeX writer:
1291 + Don't render LaTeX images with data: URIs (#3636). Note that
1292 `--extract-media` can be used when the input contains data: URIs.
1293 + Make highlighted code blocks work in footnotes (Timm Albers).
1294 + Don't use figure inside table cell (#3836).
1295 + Use proper code for list enumerators (#3891). This should fix problems
1296 with lists that don't use arabic numerals.
1297 + Always add hypertarget when there's a non-empty identifier (#2719).
1298 Previously the hypertargets were only added when there was actually
1299 a link to that identifier.
1300 + Use `%` after hypertarget before code block.
1301 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
1302 fixes formatting problems in beamer citations).
1303 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
1304 of item disappear or are misplaced. Use `\texttt` instead.
1305 + Fix problem with escaping in `lstinline` (#1629). Previously the
1306 LaTeX writer created invalid LaTeX when `--listings` was specified and
1307 a code span occured inside emphasis or another construction.
1308 + Fix error with line breaks after empty content (#2874). LaTeX
1309 requires something before a line break, so we insert a `~` if no
1310 printable content has yet been emitted.
1311 + Use BCP47 parser.
1312 + Fixed detection of otherlangs (#3770). We weren't recursing into
1313 inline contexts.
1314 + Handle language in inline code with `--listings` (#3422).
1315 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
1316 The textcomp package allows pdfLaTeX to parse `€` directly, making the
1317 `\euro` command unneeded.
1318 + Fixed footnotes in table captions (#2378). Note that if the table has
1319 a first page header and a continuation page header, the notes will
1320 appear only on the first occurrence of the header.
1321 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
1322 Previously you could link to a header above or below slide level but
1323 not *to* slide level. This commit changes that. Hypertargets are
1324 inserted inside frame titles; technically the reference is to just
1325 after the title, but in normal use (where slides are viewed full
1326 screen in a slide show), this does not matter.
1327 + Remove `\strut` at beginning of table cells (#3436). This fixes a
1328 problem with alignment of lists in table cells. The `\strut` at the
1329 end seems to be enough to avoid the too-close spacing that motivated
1330 addition of the strut in #1573.
1331 + Add partial siunitx Support (Marc Schreiber, #3588).
1333 * ConTeXt writer:
1335 + Refactored to use BCP47 module.
1336 + Remove unnecessary `$` (Alexander Krotov, #3482).
1337 + Use header identifiers for chapters (#3968).
1339 * EPUB writer:
1341 + `title_page.xhtml` is now put in `text/`.
1342 + Don't strip formatting in TOC (#1611).
1344 * Textile reader:
1346 + Fix bug for certain links in table cells (#3667).
1347 + Allow 'pre' code in list item (#3916).
1349 * HTML reader:
1351 + Added warnings for ignored material (#3392).
1352 + Better sanity checks to avoid parsing unintended things as
1353 raw HTML in the Markdown reader (#3257).
1354 + Revise treatment of `li` with `id` attribute (#3596). Previously we
1355 always added an empty div before the list item, but this created
1356 problems with spacing in tight lists. Now we do this: If the list
1357 item contents begin with a `Plain` block, we modify the `Plain`
1358 block by adding a `Span` around its contents. Otherwise, we add a
1359 `Div` around the contents of the list item (instead of adding an
1360 empty `Div` to the beginning, as before).
1361 + Add `details` tag to list of block tags (#3694).
1362 + Removed `button` from block tag list (#3717). It is already in the
1363 `eitherBlockOrInlineTag` list, and should be both places.
1364 + Use `Set`s instead of lists for block tag lookup.
1365 + Rewrote to use `Text` throughout. Effect on memory usage is modest
1366 (< 10%).
1367 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
1368 #3765).
1369 + Ensure that paragraphs are closed properly when the parent block
1370 element closes, even without `</p>` (#3794).
1371 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
1372 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
1373 `<main>` closes `<p>` and behaves like a block element generally
1374 + Support column alignments (#1881). These can be set either
1375 with a `width` attribute or with `text-width` in a `style` attribute.
1376 + Modified state type to be an instance of `HasLogMessages`, so
1377 `registerHeader` can issue warnings.
1378 + `</td>` or `</th>` should close any open block tag (#3991).
1379 + `<td>` should close an open `<th>` or `<td>`.
1380 + `htmlTag` improvements (#3989). We previously failed on cases
1381 where an attribute contained a `>` character. This patch fixes the
1382 bug, which especially affects raw HTML in Markdown.
1384 * Txt2Tags reader:
1386 + Newline is not indentation (Alexander Krotov).
1388 * MediaWiki reader:
1390 + Allow extra hyphens after `|-` in tables (#2649).
1391 + Allow blank line after table start (#2649).
1392 + Fixed more table issues (#2649).
1393 + Ensure that list starts begin at left margin (#2606). Including when
1394 they're in tables or other list items.
1395 + Make smart double quotes depend on `smart` extension (#3585).
1396 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
1397 + Modified state type to be an instance of `HasLogMessages`, so
1398 `registerHeader` can issue warnings.
1400 * TWiki reader (Alexander Krotov):
1402 + Remove unnecessary `$` (#3597).
1403 + Simplify `linkText` (#3605).
1405 * EPUB reader:
1407 + Minor refactoring, avoiding explicit MediaBag handling.
1408 This all works behind the scenes in CommonState plumbing.
1410 * Docx reader:
1412 + Don't drop smartTag contents (#2242).
1413 + Handle local namespace declarations (#3365). Previously we didn't
1414 recognize math, for example, when the xmlns declaration occured on
1415 the element and not the root.
1416 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
1417 does the work of `normalizeSpaces` as well, so we avoid the need for
1418 that function here.
1419 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
1420 paragraphs styled with "HeadingN" as "nth-level header." But if a
1421 document has a custom style named "Heading0", this will produce a
1422 0-level header, which shouldn't exist. We only parse this style
1423 if N>0. Otherwise we treat it as a normal style name, and
1424 follow its dependencies, if any.
1425 + Add tests for avoiding zero-level header (Jesse Rosenthal).
1427 * ODT reader:
1429 + Replaced `collectRights` with Rights from `Data.Either`.
1430 + Remove dead code (Albert Krewinkel).
1432 * Org reader (Albert Krewinkel, unless noted).
1434 + Don't allow tables inside list items (John MacFarlane, #3499).
1435 + Disallow tables on list marker lines (#3499).
1436 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
1437 + Allow emphasized text to be followed by `[` (#3577).
1438 + Handle line numbering switch for src blocks.
1439 The line-numbering switch that can be given to source blocks (`-n` with
1440 an start number as an optional parameter) is parsed and translated to a
1441 class/key-value combination used by highlighting and other readers and
1442 writers.
1443 + Stop adding rundoc prefix to src params. Source block parameter names
1444 are no longer prefixed with `rundoc`. This was intended to simplify
1445 working with the rundoc project, a babel runner. However, the rundoc
1446 project is unmaintained, and adding those markers is not the reader's
1447 job anyway. The original language that is specified for a source
1448 element is now retained as the `data-org-language` attribute and only
1449 added if it differs from the translated language.
1450 + Allow multi-word arguments to src block params (#3477). The reader now
1451 correctly parses src block parameter list even if parameter arguments
1452 contain multiple words.
1453 + Avoid creating `nullMeta` by applying `setMeta` directly
1454 (Alexander Krotov).
1455 + Replace `sequence . map` with `mapM`.
1456 + Fix smart parsing behavior. Parsing of smart quotes and special
1457 characters can either be enabled via the `smart` language extension or
1458 the `'` and `-` export options. Smart parsing is active if either the
1459 extension or export option is enabled. Only smart parsing of special
1460 characters (like ellipses and en and em dashes) is enabled by default,
1461 while smart quotes are disabled. Previously, all smart parsing was
1462 disabled unless the language extension was enabled.
1463 + Subject full doc tree to headline transformations (Albert Krewinkel,
1464 #3695). Emacs parses org documents into a tree structure, which is
1465 then post-processed during exporting. The reader is changed to do the
1466 same, turning the document into a single tree of headlines starting
1467 at level 0.
1468 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
1469 cite keys included special characters also at the end. This caused
1470 problems when citations occur right before colons or at the end of
1471 a sentence. With this change, all non alphanumeric characters at
1472 the end of a cite key are ignored. This also adds `,` to the list
1473 of special characters that are legal in cite keys to better mirror
1474 the behaviour of org-export.
1475 + Fix module names in haddock comments. Copy-pasting had lead to
1476 haddock module descriptions containing the wrong module names.
1477 + Recognize babel result blocks with attributes (#3706). Babel
1478 result blocks can have block attributes like captions and names.
1479 Result blocks with attributes were not recognized and were parsed
1480 as normal blocks without attributes.
1481 + Include tags in headlines. The Emacs default is to include tags in the
1482 headline when exporting. Instead of just empty spans, which contain the
1483 tag name as attribute, tags are rendered as small caps and wrapped in
1484 those spans. Non-breaking spaces serve as separators for multiple tags.
1485 + Respect export option for tags (#3713). Tags are appended to
1486 headlines by default, but will be omitted when the `tags` export option
1487 is set to nil.
1488 + Use `tag-name` attribute instead of `data-tag-name`.
1489 + Use `org-language` attribute rather than `data-org-language`.
1490 + Modified state type to be an instance of `HasLogMessages`, so
1491 `registerHeader` can issue warnings.
1492 + End footnotes after two blank lines. Footnotes can not only be
1493 terminated by the start of a new footnote or a header, but also by two
1494 consecutive blank lines.
1495 + Update emphasis border chars (#3933). The org reader was updated to
1496 match current org-mode behavior: the set of characters which are
1497 acceptable to occur as the first or last character in an org emphasis
1498 have been changed and now allows all non-whitespace chars at the
1499 inner border of emphasized text (see `org-emphasis-regexp-components`).
1501 * RST reader:
1503 + Fixed small bug in list parsing (#3432). Previously the parser didn't
1504 handle properly this case:
1506 * - a
1507 - b
1508 * - c
1509 - d
1510 + Handle multiline cells in simple tables (#1166).
1511 + Parse list table directive (Keiichiro Shikano, #3432).
1512 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
1513 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
1514 + Reorganize block parsers for ~20% faster parsing.
1515 + Fixed `..include::` directive (#3880).
1516 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
1517 Previously pandoc would sometimes combine two line blocks separated
1518 by blanks, and ignore trailing blank lines within the line block.
1519 + Fix indirect hyperlink targets (#512).
1521 * Markdown reader:
1523 + Allow attributes in reference links to start on next line (#3674).
1524 + Parse YAML metadata in a context that sees footnotes defined in
1525 the body of the document (#1279).
1526 + When splitting pipe table cells, skip tex math (#3481).
1527 You might have a `|` character inside math. (Or for that matter
1528 something that the parser might mistake for raw HTML.)
1529 + Treat span with class `smallcaps` as SmallCaps.
1530 This allows users to specify small caps in Markdown this way:
1531 `[my text]{.smallcaps}` (#1592).
1532 + Fixed internal header links (#2397).
1533 This patch also adds `shortcut_reference_links` to the list
1534 of mmd extensions.
1535 + Treat certain environments as inline
1536 when they occur without space surrounding them (#3309, #2171).
1537 E.g. equation, math. This avoids incorrect vertical space
1538 around equations.
1539 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
1540 + Allow latex macro definitions indented 1-3 spaces.
1541 Previously they only worked if nonindented.
1542 + Improved parsing of indented raw HTML blocks (#1841).
1543 Previously we inadvertently interpreted indented HTML as
1544 code blocks. This was a regression. We now seek to determine the
1545 indentation level of the contents of an HTML block, and (optionally)
1546 skip that much indentation. As a side effect, indentation may be
1547 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
1548 used. This is better than having things interpreted as indented
1549 code blocks.
1550 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
1551 + Warn for notes defined but not used (#1718).
1552 + Use `anyLineNewline` (Alexander Krotov).
1553 + Interpret YAML metadata as Inlines when possible (#3755). If
1554 the metadata field is all on one line, we try to interpret it as
1555 Inlines, and only try parsing as Blocks if that fails. If it
1556 extends over one line (including possibly the `|` or `>` character
1557 signaling an indented block), then we parse as Blocks. This was
1558 motivated by some German users finding that `date: '22. Juin 2017'`
1559 got parsed as an ordered list.
1560 + Fixed spurious parsing as citation as reference def (#3840).
1561 We now disallow reference keys starting with `@` if the
1562 `citations` extension is enabled.
1563 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
1564 Previously only `[-@roe]` (with brackets) was recognized as
1565 suppress-author, and `-@roe` was treated the same as `@roe`.
1566 + Fixed parsing of fenced code after list when there is no intervening
1567 blank line (#3733).
1568 + Allow raw latex commands starting with `\start` (#3558). Previously
1569 these weren't allowed because they were interpreted as starting
1570 ConTeXt environments, even without a corresponding `\stop`...
1571 + Added `inlines`, `inlines1`.
1572 + Require nonempty alt text for `implicit_figures` (#2844).
1573 A figure with an empty caption doesn't make sense.
1574 + Removed texmath macro material; now all this is handled
1575 in the LaTeX reader functions.
1576 + Fixed bug with indented code following raw LaTeX (#3947).
1578 * LaTeX reader:
1580 + Rewrote LaTeX reader with proper tokenization (#1390,
1581 #2118, #3236, #3779, #934, #982). This rewrite is primarily
1582 motivated by the need to get macros working properly. A side benefit
1583 is that the reader is significantly faster. We now tokenize the
1584 input text, then parse the token stream. Macros modify the token
1585 stream, so they should now be effective in any context, including
1586 math. Thus, we no longer need the clunky macro processing
1587 capacities of texmath.
1588 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
1589 + Allow `\newcommand\foo{blah}` without braces.
1590 + Support `\lstinputlisting` (#2116).
1591 + Issue warnings when skipping unknown latex commands (#3392).
1592 + Include contents of `\parbox`.
1593 + Allow `\hspace` and `\vspace` to count as raw block or inline.
1594 Previously we would refuse to parse anything as raw inline if
1595 it was in the `blockCommands` list. Now we allow exceptions
1596 if they're listed under ignoreInlines in inlineCommands.
1597 This should make it easier e.g. to include an `\hspace`
1598 between two side-by-side raw LaTeX tables.
1599 + Don't drop contents of `\hypertarget`.
1600 + Handle spaces before `\cite` arguments.
1601 + Allow newpage, clearpage, pagebreak in inline contexts as well as
1602 block contexts (#3494).
1603 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
1604 + Use `pMacroDefinition` in macro (for more direct parsing).
1605 Note that this means that `macro` will now parse one
1606 macro at a time, rather than parsing a whole group together.
1607 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
1608 commands are parsed as raw if `+raw_tex`; otherwise, their argument
1609 is parsed as a bracketed string.
1610 + Don't crash on empty `enumerate` environment (#3707).
1611 + Handle escaped `&` inside table cell (#3708).
1612 + Handle block structure inside table cells (#3709). `minipage` is no
1613 longer required.
1614 + Handle some width specifiers on table columns (#3709). Currently
1615 we only handle the form `0.9\linewidth`. Anything else would have
1616 to be converted to a percentage, using some kind arbitrary assumptions
1617 about line widths.
1618 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
1619 LaTeX reader's treatment of raw commands, but it also affects the
1620 Markdown reader.
1621 + Fixed regression with starred environment names (#3803).
1622 + Handle optional args in raw `\titleformat` (#3804).
1623 + Improved heuristic for raw block/inline. An unknown command at the
1624 beginning of the line that could be either block or inline is
1625 treated as block if we have a sequence of block commands followed by
1626 a newline or a `\startXXX` command (which might start a raw ConTeXt
1627 environment).
1628 + Don't remove macro definitions from the output, even if
1629 `Ext_latex_macros` is set, so that macros will be applied.
1630 Since they're only applied to math in Markdown, removing the macros
1631 can have bad effects. Even for math macros, keeping them should be
1632 harmless.
1633 + Removed `macro`. It is no longer necessary, since the
1634 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
1635 the need for a separate `latexMacro` parser in the Markdown reader.
1636 + Use `label` instead of `data-label` for label in caption (#3639).
1637 + Fixed space after \figurename etc.
1638 + Resolve references to section numbers.
1639 + Fix `\let\a=0` case, with single character token.
1640 + Allow `@` as a letter in control sequences. `@` is commonly used
1641 in macros using `\makeatletter`. Ideally we'd make the tokenizer
1642 sensitive to `\makeatletter` and `\makeatother`, but until then this
1643 seems a good change.
1644 + Track header numbers and correlate with labels.
1645 + Allow `]` inside group in option brackets (#3857).
1646 + lstinline with braces can be used (verb cannot be used with braces)
1647 (Marc Schreiber, #3535).
1648 + Fix keyval funtion: pandoc did not parse options in braces correctly
1649 (Marc Schreiber, #3642).
1650 + When parsing raw LaTeX commands, include trailing space (#1773).
1651 Otherwise things like `\noindent foo` break and turn into
1652 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
1653 formats that allow `raw_tex`).
1654 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
1655 `\texttt` contexts.
1656 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
1657 + Allow space before `=` in bracketd options (Ben Firshman).
1658 + Be more forgiving in parsing command options. This was needed, for
1659 example, to make some minted options work.
1660 + Strip off quotes in `\include` filenames.
1662 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
1664 * `Text.Pandoc.PDF`:
1666 + Got `--resource-path` working with PDF output (#852).
1667 + Fetch images when generating PDF via context (#3380).
1668 To do this, we create the temp directory as a subdirectory
1669 of the working directory. Since context mk IV by default looks
1670 for images in the parent directory, this works.
1671 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
1672 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
1673 This reduces code duplication.
1674 + `html2pdf`: use stdin instead of intermediate HTML file
1675 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
1676 doesn't use `TEXINPUTS`.
1678 * `Text.Pandoc.Pretty`:
1680 + Simplified definition of `realLength`.
1681 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
1683 * `Text.Pandoc.MIME`:
1685 + Use `application/javascript` (not `application/x-javascript`).
1686 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
1688 * `Text.Pandoc.ImageSize`:
1690 + Improve SVG image size code (Marc Schreiber, #3580).
1691 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
1693 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
1694 and reduction of memory usage in most of the writers.
1696 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
1698 * `Text.Pandoc.SelfContained`:
1700 + Fixed problem with embedded fonts (#3629).
1701 + Refactored getData from `getDataURI` in `SelfContained`.
1702 + Don't use data URIs for script or style (#3423). Instead, just use
1703 script or style tags with the content inside. The old method with
1704 data URIs prevents certain optimizations outside pandoc. Exception:
1705 data URIs are still used when a script contains `</script>` or a
1706 style contains `</`.
1707 + SelfContained: Handle URL inside material retrieved from a URL
1708 (#3629). This can happen e.g. with an @import of a google web font.
1709 (What is imported is some CSS which contains an url reference
1710 to the font itself.) Also, allow unescaped pipe (|) in URL.
1711 + Load resources from `data-src` (needed for lazy loading in
1712 reveal.js slide shows).
1713 + Handle `data-background-image` attribute on section (#3979).
1715 * `Text.Pandoc.Parsing`:
1717 + Added `indentWith` (Alexander Krotov, #3687).
1718 + Added `stateCitations` to `ParserState`.
1719 + Removed `stateChapters` from `ParserState`.
1720 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
1721 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
1722 + Adjusted type of `insertIncludedFile` so it can be used with token
1723 parser.
1724 + Replace old texmath macro stuff from Parsing. Use Macro from
1725 Text.Pandoc.Readers.LaTeX.Types instead.
1726 + Export `insertIncludedFile`.
1727 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
1728 + Replace partial with total function (Albert Krewinkel).
1729 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
1730 `insertIncludeFile` function is generalized to work with all parser
1731 states which are instances of that class.
1732 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
1733 The `insertIncludeFiles` function was generalized and renamed
1734 to `insertIncludedFiles'`; the specialized versions are based on that.
1735 + `many1Till`: Check for the end condition before parsing (Herwig
1736 Stuetz). By not checking for the end condition before the first
1737 parse, the parser was applied too often, consuming too much of the
1738 input. This only affects `many1Till p end` where `p` matches on a
1739 prefix of `end`.
1740 + Provide `parseFromString` (#3690). This is a verison of
1741 `parseFromString` specialied to ParserState, which resets
1742 `stateLastStrPos` at the end. This is almost always what we want.
1743 This fixes a bug where `_hi_` wasn't treated as emphasis in the
1744 following, because pandoc got confused about the position of the
1745 last word: `- [o] _hi_`.
1746 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
1747 + Fix `blanklines` documentation (Alexander Krotov, #3843).
1748 + Give less misleading line information with `parseWithString`.
1749 Previously positions would be reported past the end of the chunk.
1750 We now reset the source position within the chunk and report
1751 positions "in chunk."
1752 + Add `anyLineNewline` (Alexander Krotov).
1753 + Provide shared F monad functions for Markdown and Org readers
1754 (Albert Krewinkel). The `F` monads used for delayed evaluation
1755 of certain values in the Markdown and Org readers are based on a
1756 shared data type capturing the common pattern of both `F` types.
1757 + Add `returnF` (Alexander Krotov).
1758 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
1759 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
1760 + Added `readerAbbreviations` to `ParserState`. Markdown reader
1761 now consults this to determine what is an abbreviation.
1762 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
1763 parsers for markdown and rst was combined into one single
1764 parser `gridTable`, slightly changing parsing behavior of both
1765 parsers: (1) The markdown parser now compactifies block content
1766 cell-wise: pure text blocks in cells are now treated as paragraphs
1767 only if the cell contains multiple paragraphs, and as plain blocks
1768 otherwise. Before, this was true only for single-column tables. (2)
1769 The rst parser now accepts newlines and multiple blocks in header
1770 cells.
1771 + Generalize tableWith, gridTableWith (Albert Krewinkel).
1772 The parsing functions `tableWith` and `gridTableWith` are generalized
1773 to work with more parsers. The parser state only has to be an
1774 instance of the `HasOptions` class instead of requiring a concrete
1775 type. Block parsers are required to return blocks wrapped into a
1776 monad, as this makes it possible to use parsers returning results
1777 wrapped in `Future`s.
1779 * `Text.Pandoc.Shared`:
1781 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
1782 + `stringify`: handle Quoted better (#3958). Previously we were losing
1783 the quotation marks in Quoted elements.
1785 * `Text.Pandoc.Writers.Shared`:
1787 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
1788 This allows us to add the variables AFTER using the metadata
1789 to generate a YAML header (in the Markdown writer).
1790 + Added `unsmartify` (previously in RST writer).
1791 Undo literal double curly quotes. Previously we left these.
1792 + Generalize type of `metaToJSON` so it can take a Text. Previously a
1793 String was needed as argument; now any ToJSON instance will do.
1794 + Added `gridTable` (previously in Markdown writer).
1795 + `gridTable`: Refactored to use widths in chars.
1796 + `gridTable`: remove unnecessary extra space in cells.
1797 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
1798 values to become lists.
1799 + Pipe tables: impose minimum cell size (see #3526).
1802 [default template changes]
1804 * HTML templates (including EPUB and HTML slide show templates):
1806 + Make default.html5 polyglot markup conformant (John Luke Bentley,
1807 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
1808 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
1809 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
1810 + Regularized CSS in html/epub/html slide templates (#3485).
1811 All templates now include `code{white-space: pre-wrap}`
1812 and CSS for `q` if `--html-q-tags` is used. Previously some templates
1813 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
1814 included.
1815 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
1816 + `default.revealjs`: make `history` default to true.
1817 + `default.revealjs`: use lazy loading (#2283).
1818 + `default.revealjs`: add `mathjax` variable and some conditional code
1819 to use the MathJaX plugin.
1820 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
1821 + `default.dzslides`: Load Google Font using HTTPS by default
1822 (Yoan Blanc).
1824 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
1825 #3855).
1827 * LaTeX/Beamer template:
1829 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
1830 `default.beamer` has been removed; beamer now uses the
1831 `default.latex` template. Beamer-specific parts are conditional
1832 on the `beamer` variable set by the writer. Note that
1833 `pandoc -D beamer` will return this (combined) template.
1834 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
1835 Beamer loads `xcolor` rather than `color`, and thus the
1836 `dvipsnames` option doesn't take effect. This also provides a wider
1837 range of colour selections with the `svgnames` option.
1838 + Use starred versions of `xcolor` names (Andrew Dunning).
1839 Prevents changes to documents defined using the `dvipsnames` list (e.g.
1840 `Blue` gives a different result with svgnames enabled).
1841 + Load `polyglossia` after header-includes (#3898). It needs to be
1842 loaded as late as possible.
1843 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
1844 XeLaTeX on request.
1845 + Don't load `fontspec` before `unicode-math` (over there).
1846 The `unicode-math` package loads `fontspec` so explict loading of
1847 `fontspec` before `unicode-math` is not necessary.
1848 + Use `unicode-math` by default in default.latex template. mathspec will
1849 be used in xelatex if the `mathspec` variable is set; otherwise
1850 unicode-math will be used (Václav Haisman).
1851 + Use `dvipsnames` options when `colorlinks` specified (otherwise
1852 we get an error for `maroon`) (Thomas Hodgson).
1853 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
1854 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
1855 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
1856 clash when loading a package (e.g. `tufte-latex`) that uses
1857 `hyperref` settings different from those in the template.
1858 + Add `natbiboptions` variable (#3768).
1859 + Fix links inside captions in LaTeX output with links-as-notes
1860 (Václav Haisman, #3651). Declare our redefined `\href` robust.
1861 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
1862 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
1863 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
1864 packages. Use existing `CJKmainfont` and `CJKoptions` template
1865 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
1866 and `luatexjapresetoptions` for `luatexja-preset`.
1867 + Added `aspectratio` variable to beamer template (Václav Haisman,
1868 #3723).
1869 + Modified template.latex to fix XeLaTex being used with tables
1870 (lwolfsonkin, #3661). Reordered `lang` variable handling to
1871 immediately before `bidi`.
1873 * ConTeXt template: Improved font handling: `simplefonts` is now
1874 obsolete in ConTeXt (Pablo Rodríguez).
1877 [documentation improvements]
1879 * MANUAL.txt:
1881 + Add URL for Prince HTML > PDF engine (Ian, #3919).
1882 + Document that content above slide-level will be omitted in
1883 slide shows. See #3460, #2265.
1884 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
1885 + Small clarification in YAML metadata section.
1886 + Document that html4 is technically XHTML 1.0 transitional.
1887 + Remove refs to highlighting-kate (#3672).
1888 + Document ibooks specific epub metadata.
1889 + Clarify that mathml is used for ODT math.
1890 + Mention limitations of Literate Haskell Support (#3410,
1891 Joachim Breitner).
1892 + Add documentation of limitations of grid tables (Stephen
1893 McDowell, #3864).
1894 + Clarify that meta-json contains transformed values (Jakob Voß,
1895 #3491) Make clear that template variable `meta-json` does not
1896 contain plain text values or JSON output format but field values
1897 transformed to the selected output format.
1899 * COPYRIGHT:
1901 + Clarify that templates are dual-licensed.
1902 + Clarify that pandoc-types is BSD3 licensed.
1903 + List new files not written by jgm (Albert Krewinkel).
1904 + Update dates in copyright notices (Albert Krewinkel). This follows
1905 the suggestions given by the FSF for GPL licensed software.
1906 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
1908 * INSTALL.md:
1910 + Improved instructions for tests with patterns.
1911 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
1913 * CONTRIBUTING.md:
1915 + Fixed typos (Wandmalfarbe, #3479).
1916 + Add "ask on pandoc-discuss" (Mauro Bieg).
1918 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
1919 end of this document is autogenerated from `data/pandoc.lua`
1920 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
1921 (Albert Krewinkel).
1923 * Add `doc/filters.md`. This is the old scripting tutorial from
1924 the website.
1926 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
1927 to using pandoc as a Haskell library.
1930 [build infrastructure improvements]
1932 * Removed `data/templates` submodule. Templates are now a subtree
1933 in `data/templates`. This removes the need to do `git submodule
1934 update`.
1936 * Renamed `tests` -> `test`.
1938 * Remove `https` flag. Always build with HTTPS support.
1940 * Use `file-embed` instead of `hsb2hs` to embed data files when
1941 `embed_data_files` flag is set. `file-embed` gives us better dependency
1942 tracking: if a data file changes, ghc/stack/cabal know to recompile
1943 the Data module. This also removes `hsb2hs` as a build dependency.
1945 * Add `custom-setup` stanza to pandoc, lowercase field names.
1947 * Add `static` Cabal flag.
1949 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
1950 than -OSX. Changed local names from osx to macos.
1952 * make_macos_package.sh - Use strip to reduce executable size.
1954 * Revised binary linux package. Now a completely static executable
1955 is created, using Docker and alpine. We create both a deb and a
1956 tarball. The old `deb` directory has been replaced with a `linux`
1957 directory. Running `make` in the `linux` directory should
1958 perform the build, putting the binary packages in `artifacts/`.
1960 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
1961 pandoc-data packages will be uninstalled; this package provides
1962 both (#3822). Add latex packages as 'suggested', update
1963 description.
1965 * Remove cpphs build requirement -- it is no longer needed.
1967 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
1969 * Name change OSX -> macOS (ickc, #3869).
1971 * Fix casing of Linux, UNIX, and Windows (ickc).
1973 * `.travis.yml`: create a source dist and do cabal build and test there.
1974 That way we catch errors due to files missing from the data
1975 section of pandoc.cabal.
1977 * Makefile:
1979 + Split `make haddock` from `make full`.
1980 + Add BRANCH variable for winpkg.
1981 + Add `lint` target.
1982 + Improve `make full`. Disable optimizations.
1983 Build everything, inc. trypandoc and benchmarks. Use parallel build.
1984 + Allow `make test` to take `TESTARGS`.
1986 * Added new command tests (`Tests.Command`), using small text files
1987 in `test/command/`. Any files added in this directory will be treated
1988 as shell tests (see smart.md for an example). This makes it very easy
1989 to add regression tests etc.
1991 * Test fixes so we can find data files. In old tests & command tests,
1992 we now set the environment variable `pandoc_datadir`. In lua tests,
1993 we set the datadir explicitly.
1995 * Refactored `compareOutput` in docx writer test.
1997 * Consolidated some common functions in `Tests.Helper`.
1999 * Small change to unbalanced bracket test to speed up test suite.
2001 * Speed up Native writer quickcheck tests.
2003 * Use tasty for tests rather than test-framework.
2005 * Add simple Emacs mode to help with Pandoc templates editing.
2006 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
2009pandoc (1.19.2)
2011 * Use skylighting library instead of highlighting-kate for syntax
2012 highlighting. Skylighting is faster and more accurate (#3363).
2013 Later we'll be able to add features like warning messages, dynamic
2014 loading of xml syntax definitions, and dynamic loading of themes.
2016 * Added a new highlight style, `breezeDark`.
2018 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
2019 This allows more languages to be used when using the `--listings`
2020 option.
2022 * OpenDocument writer:
2024 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
2025 + Don't profilerate text styles unnecessarily (#3371).
2026 This change makes the writer create only as many temporary
2027 text styles as are absolutely necessary. It also consolidates
2028 adjacent nodes with the same style.
2030 * Org reader (Albert Krewinkel):
2032 + Allow short hand for single-line raw blocks (Albert Krewinkel,
2033 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
2034 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
2035 + Accept org-ref citations followed by commas (Albert Krewinkel).
2036 Bugfix for an issue which, whenever the citation was immediately
2037 followed by a comma, prevented correct parsing of org-ref citations.
2038 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
2039 `/*strong and emphasized*/`) was interpreted incorrectly in that the
2040 inner markup was not recognized.
2041 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
2043 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
2044 In the past, the docx reader wrote an empty header as an empty list. It
2045 should have the same width as a row (and be filled with empty cells).
2047 * MediaWiki reader:
2049 + Improved handling of display math (#3362). Sometimes display math is
2050 indented with more than one colon. Previously we handled these cases
2051 badly, generating definition lists and missing the math.
2052 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
2053 behavior when the smart option is parsed to match other readers'
2054 behavior.
2056 * Markdown reader:
2058 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
2059 (#3341). Previously this did not properly enable escaped line breaks.
2060 + Disallow space between inline code and attributes (#3326, #3323,
2061 Mauro Bieg).
2063 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
2065 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
2067 * LaTeX writer: allow tables with empty cells to count as "plain."
2068 This addresses a problem of too-wide tables when empty cells
2069 are used. Thanks to Joost Kremers for reporting the issue.
2071 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
2072 Unprefixed numbers where used by older org-mode versions, but are no
2073 longer supported.
2075 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
2076 Mauro Bieg).
2078 * Markdown writer: Fix display math with `--webtex` (#3298).
2080 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
2081 bumper314).
2083 * Templates:
2085 + default.latex: Moved geometry after hyperref (Václav Haisman).
2086 Otherwise PDF sizes can be wrong in some circumstances.
2087 + Copied a few changes from default.latex to default.beamer
2088 (Wandmalfarbe).
2089 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
2090 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
2091 that contain verbatim in notes (#3361). (Note: the beamer template
2092 was updated to match the LaTeX template, but at this point verbatim
2093 in notes seems not to work in beamer.)
2094 + default.latex: Allow passing `microtypeoptions` to microtype
2095 (Václav Haisman).
2096 + default.latex: Add hyphen option to url package.
2097 + default.docbook5: Fix namespace declarations (Mauro Bieg).
2099 * Moved `make_osx_package.sh` to `osx/` directory.
2101 * Travis continuous integration:
2103 + Fix false positives with dist build.
2104 + Speed improvements (Kolen Cheung, #3304, #3357).
2106 * MANUAL.txt:
2108 + Clarify that blank space is needed around footnotes (#3352).
2109 + Fixed typo (#3351, Alexey Rogechev).
2110 + Note that `--wrap=auto` does not work in HTML output.
2111 + Default `--columns` width is 72, not 80.
2112 + Fixed broken links (#3316, Kolen Cheung).
2113 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
2115 * INSTALL.md:
2117 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
2118 + Added instructions for extracting binary from OSX, Windows packages.
2120 * CONTRIBUTING.md: Describe labels currently used in issue tracker
2121 (Albert Krewinkel). The labels have changed over time, the list of
2122 labels is updated to reflect the current set of labels used in the
2123 issue tracker.
2125 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
2127 * Bumped version bounds for dependencies.
2130pandoc (1.19.1)
2132 * Set `PANDOC_VERSION` environment variable for filters (#2640).
2133 This allows filters to check the pandoc version that produced
2134 the JSON they are receiving.
2136 * Docx reader: Ensure one-row tables don't have header (#3285,
2137 Jesse Rosenthal). Tables in MS Word are set by default to have
2138 special first-row formatting, which pandoc uses to determine whether
2139 or not they have a header. This means that one-row tables will, by
2140 default, have only a header -- which we imagine is not what people
2141 want. This change ensures that a one-row table is not understood to
2142 be a header only. Note that this means that it is impossible to
2143 produce a header-only table from docx, even though it is legal
2144 pandoc. But we believe that in nearly all cases, it will be an
2145 accidental (and unwelcome) result
2147 * HTML reader:
2149 + Fixed some bad regressions in HTML table parser (#3280).
2150 This regression leads to the introduction of empty rows
2151 in some circumstances.
2152 + Understand `style=width:` as well as `width` in `col` (#3286).
2154 * RST reader:
2156 + Print warnings when keys, substitition, notes not found.
2157 Previously the parsers failed and we got raw text. Now we get a
2158 link with an empty URL, or empty inlines in the case of a note or
2159 substitution.
2161 + Fix hyperlink aliases (#3283).
2163 * Man writer: Ensure that periods are escaped at beginning of line
2164 (#3270).
2166 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
2167 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
2168 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
2169 are ensured to be written using stared commands (like `\subsection*{}`).
2171 * LaTeX template: use comma not semicolon to separate keywords for
2172 `pdfkeywords`. Thanks to Wandmalfarbe.
2174 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
2175 would sometimes wrap lines too early due to this bug.
2177 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
2178 possible to insert escape codes for content that needs escaping at the
2179 beginning of a line.
2181 * Removed old MathMLInHTML.js from 2004, which should no longer
2182 be needed for MathML with modern browsers.
2184 * Fixed tests with dynamic linking (#2709).
2186 * Makefile: Use stack instead of cabal for targets. This is just
2187 a convenience for developers.
2189 * Fixed bash completion of filenames with space (#2749).
2191 * MANUAL: improved documentation on how to create a custom `reference.docx`.
2193 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
2195pandoc (1.19)
2197 * Changed resolution of filter paths.
2199 + We now first treat the argument of `--filter` as a full (absolute
2200 or relative) path, looking for a program there. If it's found, we
2201 run it.
2202 + If not, and if it is a simple program name or a relative path, we
2203 try resolving it relative to `$DATADIR/filters`.
2204 + If this fails, then we treat it as a program name and look in the
2205 user's PATH.
2206 + Removed a hardcoded '/' that may have caused problems with
2207 Windows paths.
2209 Previously if you did `--filter foo` and you had `foo` in your path and
2210 also an executable `foo` in your working directory, the one in the path
2211 would be used. Now the one in the working directory is used.
2213 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
2214 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
2215 `foo/bar.hs` relative to the working directory.
2217 * Allow `file://` URIs as arguments (#3196). Also improved default reader
2218 format detection. Previously with a URI ending in .md or .markdown,
2219 pandoc would assume HTML input. Now it treats these as markdown.
2221 * Allow to overwrite top-level division type heuristics (#3258,
2222 Albert Krewinkel). Pandoc uses heuristics to determine the most
2223 reasonable top-level division type when emitting LaTeX or
2224 Docbook markup. It is now possible to overwrite this implicitly set
2225 top-level division via the `top-level-division` command line parameter.
2227 * Text.Pandoc.Options \[API changes\]:
2229 + Removed `writerStandalone` field in `WriterOptions`, made
2230 `writerTemplate` a `Maybe` value. Previously setting
2231 `writerStandalone = True` did nothing unless a template was provided
2232 in writerTemplate. Now a fragment will be generated if
2233 `writerTemplate` is `Nothing`; otherwise, the specified template
2234 will be used and standalone output generated.
2235 + `Division` has been renamed `TopLevelDivision` (#3197). The
2236 `Section`, `Chapter`, and `Part` constructors were renamed to
2237 `TopLevelSection`, `TopLevelChapter`, and
2238 `TopLevelPart`, respectively. An additional `TopLevelDefault`
2239 constructor was added, which is now also the new default value of
2240 the `writerTopLevelDivision` field in `WriterOptions`.
2242 * Improved error if they give wrong arg to `--top-level-division`.
2244 * Use new module from texmath to lookup MS font codepoints in Docx reader.
2245 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
2246 lives in texmath (0.9).
2248 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
2249 when the qnames lacked the docbook namespace URI.
2251 * HTML reader:
2253 + Improved table parsing (#3027). We now check explicitly for non-1
2254 rowspan or colspan attributes, and fail when we encounter them.
2255 Previously we checked that each row had the same number of cells,
2256 but that could be true even with rowspans/colspans. And there are
2257 cases where it isn't true in tables that we can handle fine -- e.g.
2258 when a tr element is empty. So now we just pad rows with empty cells
2259 when needed.
2260 + Treat `<math>` as MathML by default unless something else is
2261 explicitly specified in xmlns. Provided it parses as MathML,
2262 of course. Also fixed default which should be to inline math if no
2263 display attribute is used.
2264 + Only treat "a" element as link if it has href (#3226). Otherwise
2265 treat as span.
2267 * Docx reader (Jesse Rosenthal):
2269 + Add a placeholder value for CHART. We wrap `[CHART]` in a
2270 `<span class="chart">`. Note that it maps to inlines because, in
2271 docx, anything in a drawing tag can be part of a larger paragraph.
2272 + Be more specific in parsing images We not only want `w:drawing`,
2273 because that could also include charts. Now we specify
2274 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
2275 a first step toward allowing other sorts of drawing data as well.
2276 + Abstract out function to avoid code repetition.
2277 + Update tests for img title and alt (#3204).
2278 + Handle Alt text and titles in images. We use the "description" field
2279 as alt text and the "title" field as title. These can be accessed
2280 through the "Format Picture" dialog in Word.
2281 + Docx reader utils: handle empty namespace in `elemName`. Previously,
2282 if given an empty namespace `(elemName ns "" "foo")` `elemName`
2283 would output a QName with a `Just ""` namespace. This is never what
2284 we want. Now we output a `Nothing`. If someone *does* want a
2285 `Just ""` in the namespace, they can enter the QName
2286 value explicitly.
2288 * ODT reader/writer:
2290 + Inline code when text has a special style (Hubert Plociniczak). When
2291 a piece of text has a text `Source_Text` then we assume that this is
2292 a piece of the document that represents a code that needs to
2293 be inlined. Adapted the writer to also reflect that change.
2294 Previously it was just writing a 'preformatted' text using a
2295 non-distinguishable font style. Code blocks are still not recognized
2296 by the ODT reader. That's a separate issue.
2297 + Infer table's caption from the paragraph (#3224,
2298 Hubert Plociniczak). ODT's reader always put empty captions for the
2299 parsed tables. This commit
2301 1. checks paragraphs that follow the table definition
2302 2. treats specially a paragraph with a style named 'Table'
2303 3. does some postprocessing of the paragraphs that combines tables
2304 followed immediately by captions
2306 The ODT writer used the `TableCaption` style for the caption
2307 paragraph. This commit follows the OpenOffice approach which allows
2308 for appending captions to table but uses a built-in style named
2309 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
2310 should change the style's name from `TableCaption` to `Table`.
2312 * ODT reader: Infer tables' header props from rows (#3199,
2313 Hubert Plociniczak). ODT reader simply provided an empty header list
2314 which meant that the contents of the whole table, even if not empty, was
2315 simply ignored. While we still do not infer headers we at least have to
2316 provide default properties of columns.
2318 * Markdown reader:
2320 + Allow reference link labels starting with `@...` if `citations`
2321 extension disabled (#3209). Example: in
2323 \[link text\]\[@a\]
2325 `link text` isn't hyperlinked because `[@a]` is parsed as
2326 a citation. Previously this happened whether or not the `citations`
2327 extension was enabled. Now it happens only if the `citations`
2328 extension is enabled.
2329 + Allow alignments to be specified in Markdown grid tables. For
2330 example,
2332 +-------+---------------+--------------------+
2333 | Right | Left | Centered |
2334 +=========:+:=================+:=============:+
2335 | Bananas | $1.34 | built-in wrapper |
2336 +-------+---------------+--------------------+
2338 + Allow Small Caps elements to be created using bracketed spans (as
2339 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
2341 * LaTeX reader:
2343 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
2344 Fixed an error which came up, for example, with `\vspace` inside
2345 a caption. (Captions expect inlines.)
2346 + Improved table handling. We can now parse all of the tables emitted
2347 by pandoc in our tests. The only thing we don't get yet are
2348 alignments and column widths in more complex tables. See #2669.
2349 + Limited support for minipage.
2350 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
2351 + Handle BVerbatim from fancyvrb (#3203).
2352 + Handle hungarumlaut (#3201).
2353 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
2354 (#3184). This allows use of things like `\only<2,3>{my content}` in
2355 Markdown that is going to be converted to beamer.
2357 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
2358 overly long code will appear on every slide.
2360 * Org reader (Albert Krewinkel):
2362 + Respect column width settings (#3246). Table column properties can
2363 optionally specify a column's width with which it is displayed in
2364 the buffer. Some exporters, notably the ODT exporter in org-mode
2365 v9.0, use these values to calculate relative column widths. The org
2366 reader now implements the same behavior. Note that the org-mode
2367 LaTeX and HTML exporters in Emacs don't support this feature yet,
2368 which should be kept in mind by users who use the column
2369 widths parameters.
2370 + Allow HTML attribs on non-figure images (#3222). Images which are
2371 the only element in a paragraph can still be given HTML attributes,
2372 even if the image does not have a caption and is hence not a figure.
2373 The following will add set the `width` attribute of the image to
2374 `50%`:
2376 +ATTR\_HTML: :width 50%
2377 =======================
2379 \[\[file:image.jpg\]\]
2381 + Support `ATTR_HTML` for special blocks (#3182). Special
2382 blocks (i.e. blocks with unrecognized names) can be prefixed with an
2383 `ATTR_HTML` block attribute. The attributes defined in that
2384 meta-directive are added to the `Div` which is used to represent the
2385 special block.
2386 + Support the `todo` export option. The `todo` export option allows to
2387 toggle the inclusion of TODO keywords in the output. Setting this to
2388 `nil` causes TODO keywords to be dropped from headlines. The default
2389 is to include the keywords.
2390 + Add support for todo-markers. Headlines can have optional
2391 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
2392 or `#+TYP_TODO` meta directive. Multiple such directives can be
2393 given, each adding a new set of recognized todo-markers. If no
2394 custom todo-markers are defined, the default `TODO` and `DONE`
2395 markers are used. Todo-markers are conceptually separate from
2396 headline text and are hence excluded when autogenerating
2397 headline IDs. The markers are rendered as spans and labelled with
2398 two classes: One class is the markers name, the other signals the
2399 todo-state of the marker (either `todo` or `done`).
2401 * LaTeX writer:
2403 + Use `\autocites*` when "suppress-author" citation used.
2404 + Ensure that simple tables have simple cells (#2666). If cells
2405 contain more than a single Plain or Para, then we need to set
2406 nonzero widths and put contents into minipages.
2407 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
2409 * Markdown writer:
2411 + Fix calculation of column widths for aligned multiline tables
2412 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
2413 usage for tables when `--columns` is set in such a way that cells
2414 must be very tiny. Now cells are guaranteed to be big enough so that
2415 single words don't need to line break, even if this pushes the line
2416 length above the column width.
2417 + Use bracketed form for native spans when `bracketed_spans`
2418 enabled (#3229).
2419 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
2420 sublist got rendered with a blank line after, while a tight ordered
2421 sublist did not. Now we don't get the blank line in either case.
2422 + Fix escaping of spaces in super/subscript (#3225). Previously two
2423 backslashes were inserted, which gave a literal backslash.
2424 + Adjust widths in Markdown grid tables so that they match
2425 on round-trip.
2427 * Docx writer:
2429 + Give full detail when there are errors converting tex math.
2430 + Handle title text in images (Jesse Rosenthal). We already handled
2431 alt text. This just puts the image "title" into the docx
2432 "title" attr.
2433 + Fixed XML markup for empty cells (#3238). Previously the Compact
2434 style wasn't being applied properly to empty cells.
2436 * HTML writer:
2438 + Updated `renderHtml` import from blaze-html.
2440 * Text.Pandoc.Pretty:
2442 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
2443 caused spurious blank lines in grid tables when we had things like
2444 `blankline $$ blankline`.
2445 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
2446 + Added error message for illegal call to `block` (Björn Peemöller).
2448 * Text.Pandoc.Shared:
2450 + Put `warn` in MonadIO.
2451 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
2452 URL starts with `//` and there is no "base URL" (as there would be
2453 if a URL were used on the command line), then default to http:.
2455 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
2457 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
2458 fixes a crash with `pandoc --version` on unusual systems with no real
2459 user (e.g. SQL Server 2016).
2461 * Added weigh-pandoc for memory usage diagnostics (#3169).
2463 * Use correct mime types for woff and woff2 (#3228).
2465 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
2467 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
2468 1.18 section where it belongs.
2470 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
2471 Kolen Cheung).
2473 * Further revisions to manual for `--version` changes (#3244).
2476pandoc (1.18)
2478 * Added `--list-input-formats`, `--list-output-formats`,
2479 `--list-extensions`, `--list-highlight-languages`, and
2480 `--list-highlight-styles` (#3173). Removed list of highlighting
2481 languages from `--version` output. Removed list of input and output
2482 formats from default `--help` output.
2484 * Added `--reference-location=block|section|document` option
2485 (Jesse Rosenthal). This determines whether Markdown link references
2486 and footnotes are placed at the end of the document, the end of the
2487 section, or the end of the top-level block.
2489 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
2490 This determines what a level-1 header corresponds to in LaTeX,
2491 ConTeXt, DocBook, and TEI output. The default is `section`.
2492 The `--chapters` option has been deprecated in favor of
2493 `--top-level-division=chapter`.
2495 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
2496 is now used in parsing RST and Markdown line blocks, DocBook
2497 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
2498 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
2499 are handled specially in the following ouput formats: AsciiDoc
2500 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
2501 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
2502 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
2503 other output formats, a paragraph with hard linebreaks is emitted.
2505 * Allow binary formats to be written to stdout (but not to tty) (#2677).
2506 Only works on posix, since we use the unix library to check whether
2507 output is to tty. On Windows, pandoc works as before and always requires
2508 an output file parameter for binary formats.
2510 * Changed JSON output format (Jesse Rosenthal). Previously we used
2511 generically generated JSON, but this was subject to change depending
2512 on the version of aeson pandoc was compiled with. To ensure stability,
2513 we switched to using manually written ToJSON and FromJSON
2514 instances, and encoding the API version. **Note:** pandoc filter
2515 libraries will need to be revised to handle the format change.
2516 Here is a summary of the essential changes:
2518 + The toplevel JSON format is now `{"pandoc-api-version" :
2519 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
2520 instead of `[{"unMeta": META}, [BLOCKS]]`.
2521 Decoding fails if the major and minor version numbers don't
2522 match.
2523 + Leaf nodes no longer have an empty array for their "c" value.
2524 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
2525 rather than `{"t":"Space","c":[]}` as before.
2527 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
2528 module to pandoc-types (Jesse Rosenthal). This makes it easier
2529 to use QuickCheck with pandoc types outside of pandoc itself.
2531 * Add `bracketed_spans` Markdown extension, enabled by default
2532 in pandoc `markdown`. This allows you to create a native span
2533 using this syntax: `[Here is my span]{#id .class key="val"}`.
2535 * Added `angle_brackets_escapable` Markdown extension (#2846).
2536 This is needed because github flavored Markdown has a slightly
2537 different set of escapable symbols than original Markdown;
2538 it includes angle brackets.
2540 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
2542 * Print highlighting-kate version in `--version`.
2544 * `Text.Pandoc.Options`:
2546 + `Extension` has new constructors `Ext_brackted_spans` and
2547 `Ext_angle_brackets_escapable` [API change].
2548 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
2549 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
2550 Rosenthal).
2552 * `--filter`: we now check `$DATADIR/filters` for filters before
2553 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
2554 Voß for the idea). Filters placed in this directory need not
2555 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
2556 or `.rb`, pandoc will run the right interpreter.
2558 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
2559 default (Kolen Cheung).
2561 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
2563 * Execute .js filters with node (Jakob Voß).
2565 * Textile reader:
2567 + Support `bc..` extended code blocks (#3037). Also, remove trailing
2568 newline in code blocks (consistently with Markdown reader).
2569 + Improve table parsing. We now handle cell and row attributes, mostly
2570 by skipping them. However, alignments are now handled properly.
2571 Since in pandoc alignment is per-column, not per-cell, we
2572 try to devine column alignments from cell alignments.
2573 Table captions are also now parsed, and textile indicators
2574 for thead and tfoot no longer cause parse failure. (However,
2575 a row designated as tfoot will just be a regular row in pandoc.)
2576 + Improve definition list parsing. We now allow multiple terms
2577 (which we concatenate with linebreaks). An exponential parsing
2578 bug (#3020) is also fixed.
2579 + Disallow empty URL in explicit link (#3036).
2581 * RST reader:
2583 + Use Div instead of BlockQuote for admonitions (#3031).
2584 The Div has class `admonition` and (if relevant) one of the
2585 following: `attention`, `caution`, `danger`, `error`, `hint`,
2586 `important`, `note`, `tip`, `warning`. **Note:** This will change
2587 the rendering of some RST documents! The word ("Warning", "Attention",
2588 etc.) is no longer added; that must be done with CSS or a filter.
2589 + A Div is now used for `sidebar` as well.
2590 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
2591 space before a footnote marker. We discard those spaces so that footnotes
2592 will be adjacent to the text that comes before it. This is in line with
2593 what rst2latex does.
2594 + Allow empty lines when parsing line blocks (Albert Krewinkel).
2596 * Markdown reader:
2598 + Allow empty lines when parsing line blocks (Albert Krewinkel).
2599 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
2601 * LaTeX reader:
2603 + More robust parsing of unknown environments (#3026).
2604 We no longer fail on things like `^` inside options for tikz.
2605 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
2606 Some custom environments give these a meaning, so we should try not to
2607 fall over when we encounter them.
2608 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
2610 * MediaWiki reader:
2612 + Fix for unquoted attribute values in mediawiki tables (#3053).
2613 Previously an unquoted attribute value in a table row
2614 could cause parsing problems.
2615 + Improved treatment of verbatim constructions (#3055).
2616 Previously these yielded strings of alternating Code and Space
2617 elements; we now incorporate the spaces into the Code. Emphasis
2618 etc. is still possible inside these.
2619 + Properly interpret XML tags in pre environments (#3042). They are meant
2620 to be interpreted as literal text.
2622 * EPUB reader: don't add root path to data: URIs (#3150).
2623 Thanks to @lep for the bug report and patch.
2625 * Org reader (Albert Krewinkel):
2627 + Preserve indentation of verse lines (#3064). Leading spaces in verse
2628 lines are converted to non-breaking spaces, so indentation is preserved.
2629 + Ensure image sources are proper links. Image sources as those in plain
2630 images, image links, or figures, must be proper URIs or relative file
2631 paths to be recognized as images. This restriction is now enforced
2632 for all image sources. This also fixes the reader's usage of uncleaned
2633 image sources, leading to `file:` prefixes not being deleted from
2634 figure images. Thanks to @bsag for noticing this bug.
2635 + Trim verse lines properly (Albert Krewinkel).
2636 + Extract meta parsing code to module. Parsing of meta-data is well
2637 separable from other block parsing tasks. Moving into new module to
2638 get small files and clearly arranged code.
2639 + Read markup only for special meta keys. Most meta-keys should be read
2640 as normal string values, only a few are interpreted as marked-up text.
2641 + Allow multiple, comma-separated authors. Multiple authors can be
2642 specified in the `#+AUTHOR` meta line if they are given as a
2643 comma-separated list.
2644 + Give precedence to later meta lines. The last meta-line of any given
2645 type is the significant line. Previously the value of the first line
2646 was kept, even if more lines of the same type were encounterd.
2647 + Read LaTeX_header as header-includes. LaTeX-specific header commands
2648 can be defined in `#+LaTeX_header` lines. They are parsed as
2649 format-specific inlines to ensure that they will only show up in LaTeX
2650 output.
2651 + Set documentclass meta from LaTeX_class.
2652 + Set classoption meta from LaTeX_class_options.
2653 + Read HTML_head as header-includes. HTML-specific head content can be
2654 defined in `#+HTML_head` lines. They are parsed as format-specific
2655 inlines to ensure that they will only show up in HTML output.
2656 + Respect `author` export option. The `author` option controls whether
2657 the author should be included in the final markup. Setting
2658 `#+OPTIONS: author:nil` will drop the author from the final meta-data
2659 output.
2660 + Respect `email` export option. The `email` option controls whether the
2661 email meta-field should be included in the final markup. Setting
2662 `#+OPTIONS: email:nil` will drop the email field from the final
2663 meta-data output.
2664 + Respect `creator` export option. The `creator` option controls whether
2665 the creator meta-field should be included in the final markup. Setting
2666 `#+OPTIONS: creator:nil` will drop the creator field from the final
2667 meta-data output. Org-mode recognizes the special value `comment` for
2668 this field, causing the creator to be included in a comment. This is
2669 difficult to translate to Pandoc internals and is hence interpreted the
2670 same as other truish values (i.e. the meta field is kept if it's
2671 present).
2672 + Respect unnumbered header property (#3095). Sections the `unnumbered`
2673 property should, as the name implies, be excluded from the automatic
2674 numbering of section provided by some output formats. The Pandoc
2675 convention for this is to add an "unnumbered" class to the header. The
2676 reader treats properties as key-value pairs per default, so a special
2677 case is added to translate the above property to a class instead.
2678 + Allow figure with empty caption (Albert Krewinkel, #3161).
2679 A `#+CAPTION` attribute before an image is enough to turn an image into
2680 a figure. This wasn't the case because the `parseFromString` function,
2681 which processes the caption value, would fail on empty values. Adding
2682 a newline character to the caption value fixes this.
2684 * Docx reader:
2686 + Use XML convenience functions (Jesse Rosenthal).
2687 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
2688 the code a lot cleaner than the original XML.Light functions, but they
2689 had been used inconsistently. This puts them in wherever applicable.
2690 + Handle anchor spans with content in headers. Previously, we would only
2691 be able to figure out internal links to a header in a docx if the
2692 anchor span was empty. We change that to read the inlines out of the
2693 first anchor span in a header.
2694 + Let headers use exisiting id. Previously we always generated an id for
2695 headers (since they wouldn't bring one from Docx). Now we let it use an
2696 existing one if possible. This should allow us to recurs through anchor
2697 spans.
2698 + Use all anchor spans for header ids. Previously we only used the first
2699 anchor span to affect header ids. This allows us to use all the anchor
2700 spans in a header, whether they're nested or not (#3088).
2701 + Test for nested anchor spans in header. This ensures that anchor spans
2702 in header with content (or with other anchor spans inside) will resolve
2703 to links to a header id properly.
2705 * ODT reader (Hubert Plociniczak)
2707 + Include list's starting value. Previously the starting value of
2708 the lists' items has been hardcoded to 1. In reality ODT's list
2709 style definition can provide a new starting value in one of its
2710 attributes.
2711 + Infer caption from the text following the image.
2712 Frame can contain other frames with the text boxes.
2713 + Add `fig:` to title for Image with a caption (as expected
2714 by pandoc's writers).
2715 + Basic support for images in ODT documents.
2716 + Don't duplicate text for anchors (#3143). When creating an anchor
2717 element we were adding its representation as well as the original
2718 content, leading to text duplication.
2720 * DocBook writer:
2722 + Include an anchor element when a div or span has an id (#3102).
2723 Note that DocBook does not have a class attribute, but at least this
2724 provides an anchor for internal links.
2726 * LaTeX writer:
2728 + Don't use * for unnumbered paragraph, subparagraph. The starred
2729 variants don't exist. This helps with part of #3058...it gets rid of
2730 the spurious `*`s. But we still have numbers on the 4th and 5th level
2731 headers.
2732 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
2733 Otherwise they can cause unintended ligatures like `` ?` ``.
2734 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
2735 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
2736 This allows figure placement defaults to be changed by the user
2737 in the template.
2739 * HTML writer (slide show formats): In slide shows, don't change slide title
2740 to level 1 header (#2221).
2742 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
2743 TEI doesn't have `<book>` elements but only generic `<divN>` division
2744 elements. Checking the template for a trailing `</book>` is nonsensical.
2746 * MediaWiki writer: transform filename with underscores in images (#3052).
2747 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
2748 for internal links, but it also needs to happen for images.
2750 * ICML writer: replace partial function (!!) in table handling (#3175,
2751 Mauro Bieg).
2753 * Man writer: allow section numbers that are not a single digit (#3089).
2755 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
2756 (#3068). In AsciiDoc, you must use a special form of emphasis
2757 (double `__`) for intraword emphasis. Pandoc was previously using
2758 this more than necessary.
2760 * EPUB writer: use stringify instead of plain writer for metadata
2761 (#3066). This means that underscores won't be used for emphasis,
2762 or CAPS for bold. The metadata fields will just have unadorned
2763 text.
2765 * Docx Writer:
2767 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
2768 with a `custom-style` key in the attributes will apply the corresponding
2769 key to the contained blocks or inlines.
2770 + Add ReaderT env to the docx writer (Jesse Rosenthal).
2771 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
2772 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
2773 on the command line. For finer-grained control, you can set
2774 the `dir` attribute in Div or Span elements.
2776 * Org writer (Albert Krewinkel):
2778 + Remove blank line after figure caption. Org-mode only treats an image
2779 as a figure if it is directly preceded by a caption.
2780 + Ensure blank line after figure. An Org-mode figure should be surrounded
2781 by blank lines. The figure would be recognized regardless, but images
2782 in the following line would unintentionally be treated as figures as
2783 well.
2784 + Ensure link targets are paths or URLs. Org-mode treats links as
2785 document internal searches unless the link target looks like a URL or
2786 file path, either relative or absolute. This change ensures that this
2787 is always the case.
2788 + Translate language identifiers. Pandoc and Org-mode use different
2789 programming language identifiers. An additional translation between
2790 those identifiers is added to avoid unexpected behavior. This fixes a
2791 problem where language specific source code would sometimes be output
2792 as example code.
2793 + Drop space before footnote markers (Albert Krewinkel, #3162).
2794 The writer no longer adds an extra space before footnote markers.
2796 * Markdown writer:
2798 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
2799 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
2800 is disabled.
2801 + Check for the `raw_html` extension before emiting a raw HTML block.
2802 + Abstract out note/ref function (Jesse Rosenthal).
2803 + Add ReaderT monad for environment variables (Jesse Rosenthal).
2805 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
2806 subtitle, author, date (#3119). Note that, as a result of this change,
2807 authors may need to update CSS.
2809 * revealjs template: Added `notes-server` option
2810 (jgm/pandoc-templates#212, Yoan Blanc).
2812 * Beamer template:
2814 + Restore whitespace between paragraphs. This was
2815 a regression in the last release (jgm/pandoc-templates#207).
2816 + Added `themeoptions` variable (Carsten Gips).
2817 + Added `beamerarticle` variable. This causes the `beamerarticle`
2818 package to be loaded in beamer, to produce an article from beamer
2819 slides. (Carsten Gips)
2820 + Added support for `fontfamilies` structured variable
2821 (Artem Klevtsov).
2822 + Added hypersetup options (Jake Zimmerman).
2824 * LaTeX template:
2826 + Added dummy definition for `\institute`.
2827 This isn't a standard command, and we want to avoid a crash when
2828 `institute` is used with the default template.
2829 + Define default figure placement (Václav Haisman), since pandoc
2830 no longer includes `[htbp]` for figures. Users with custom templates
2831 will want to add this. See #3103.
2832 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
2833 Václav Haisman).
2835 * Moved template compiling/rendering code to a separate library.
2836 `doctemplates`. This allows the pandoc templating system to be
2837 used independently.
2839 * Text.Pandoc.Error: Fix out of index error in `handleError`
2840 (Matthew Pickering). The fix is to not try to show the exact line when
2841 it would cause an out-of-bounds error as a result of included files.
2843 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
2845 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
2846 addresses. Technically `**@user` is a valid email address, but if we
2847 allow things like this, we get bad results in markdown flavors
2848 that autolink raw email addresses (see #2940). So we exclude a few
2849 valid email addresses in order to avoid these more common bad cases.
2851 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
2852 emit the alt text, emphasized. This accords with what the ODT writer
2853 currently does. The user will still get a warning about a nonexistent
2854 image.
2856 * Fix example in API documentation (#3176, Thomas Weißschuh).
2858 * Tell where to get tarball in INSTALL (#3062).
2860 * Rename README to MANUAL.txt and add GitHub-friendly README.md
2861 (Albert Krewinkel, Kolen Cheung).
2863 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
2865 * MANUAL.txt:
2867 + Put note on structured vars in separate paragraph (#2148, Albert
2868 Krewinkel). Make it clearer that structured author variables require a
2869 custom template
2870 + Note that `--katex` works best with `html5` (#3077).
2871 + Fix the LaTeX and EPUB links in manual (Morton Fox).
2872 + Document `biblio-title` variable.
2874 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
2876 * Update KaTeX to v0.6.0 (Kolen Cheung).
2878 * Allow latest dependencies.
2880 * Use texmath 0.8.6.6 (#3040).
2882 * Allow http-client 0.4.30, which is the version in stackage lts.
2883 Previously we required 0.5.
2884 Remove CPP conditionals for earlier versions.
2886 * Remove support for GHC < 7.8 (Jesse Rosenthal).
2888 + Remove Compat.Monoid.
2889 + Remove an inline monad compatibility macro.
2890 + Remove Text.Pandoc.Compat.Except.
2891 + Remove directory compat.
2892 + Change constraint on mtl.
2893 + Remove unnecessary CPP condition in UTF8.
2894 + Bump base lower bound to 4.7.
2895 + Remove 7.6 build from .travis.yaml.
2896 + Bump supported ghc version in CONTRIBUTING.md.
2897 + Add note about GHC version support to INSTALL.
2898 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
2899 + Remove TagSoup compat.
2900 + Add EOL note to time compat module. Because time 1.4 is a boot library
2901 for GHC 7.8, we will support the compatibility module as long as we
2902 support 7.8. But we should be clear about when we will no longer need
2903 it.
2904 + Remove blaze-html CPP conditional.
2905 + Remove unnecessary CPP in custom Prelude.
2907pandoc (1.17.2)
2909 * Added Zim Wiki writer, template and tests. `zimwiki` is now
2910 a valid output format. (Alex Ivkin)
2912 * Changed email-obfuscation default to no obfuscation (#2988).
2913 + `writerEmailObfuscation` in `defaultWriterOptions` is now
2914 `NoObfuscation`.
2915 + the default for the command-line `--email-obfuscation` option is
2916 now `none`.
2918 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
2920 * Org writer:
2922 + Support arbitrary raw inlines (Albert Krewinkel).
2923 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
2924 parlance) to be included as `@@format:raw foreign format text@@`.
2925 + Improve Div handling (Albert Krewinkel). Div blocks handling is
2926 changed to make the output look more like idiomatic org mode:
2927 - Div-wrapped content is output as-is if the div's attribute is the
2928 null attribute.
2929 - Div containers with an id but neither classes nor key-value pairs
2930 are unwrapped and the id is added as an anchor.
2931 - Divs with classes associated with greater block elements are
2932 wrapped in a `#+BEGIN`...`#+END` block.
2933 - The old behavior for Divs with more complex attributes is kept.
2935 * HTML writer:
2937 + Better support for raw LaTeX environments (#2758).
2938 Previously we just passed all raw TeX through when MathJax was used for
2939 HTML math. This passed through too much. With this patch, only raw
2940 LaTeX environments that MathJax can handle get passed through.
2941 This patch also causes raw LaTeX environments to be treated
2942 as math, when possible, with MathML and WebTeX output.
2944 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
2945 (#2993). Markdown line breaks involve a newline, and simple and pipe
2946 tables can't contain one.
2948 * Make --webtex work with the Markdown writer (#1177).
2949 This is a convenient option for people using
2950 websites whose Markdown flavors don't provide for math.
2952 * Docx writer:
2954 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
2955 We treat display math like block quotes, and apply FirstParagraph style
2956 to paragraphs that follow them. These can be styled as the user
2957 wishes. (But, when the user is using indentation, this allows for
2958 paragraphs to continue after display math without indentation.)
2959 + Use actual creation time as doc prop (Jesse Rosenthal).
2960 Previously, we had used the user-supplied date, if available, for Word's
2961 document creation metadata. This could lead to weird results, as in
2962 cases where the user post-dates a document (so the modification might be
2963 prior to the creation). Here we use the actual computer time to set the
2964 document creation.
2966 * LaTeX writer:
2968 + Don't URI-escape image source (#2825). Usually this is a local file,
2969 and replacing spaces with `%20` ruins things.
2970 + Allow 'standout' as a beamer frame option (#3007).
2971 `## Slide title {.standout}`.
2973 * RST reader: Fixed links with no explicit link text. The link
2974 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
2975 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
2976 Closes Debian #828167 -- reported by Christian Heller.
2978 * Textile reader:
2980 + Fixed attributes (#2984). Attributes can't be followed by
2981 a space. So, `_(class)emph_` but `_(noclass) emph_`.
2982 + Fixed exponential parsing bug (#3020).
2983 + Fix overly aggressive interpretation as images (#2998).
2984 Spaces are not allowed in the image URL in textile.
2986 * LaTeX reader:
2988 + Fix `\cite` so it is a NormalCitation not AuthorInText.
2989 + Strip off double quotes around image source if present (#2825).
2990 Avoids interpreting these as part of the literal filename.
2992 * Org reader:
2994 + Add semicolon to list of special chars (Albert Krewinkel)
2995 Semicolons are used as special characters in citations syntax. This
2996 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
2997 suffix]`. Previously, parsing would have failed unless there was a space
2998 or other special character as the last <prefix> character.
2999 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
3000 A specification for an official Org-mode citation syntax was drafted by
3001 Richard Lawrence and enhanced with the help of others on the orgmode
3002 mailing list. Basic support for this citation style is added to the
3003 reader.
3004 + Support arbitrary raw inlines (Albert Krewinkel).
3005 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
3006 parlance) to be included as `@@format:raw foreign format text@@`.
3007 + Remove partial functions (Albert Krewinkel, #2991).
3008 Partial functions like `head` lead to avoidable errors and should be
3009 avoided. They are replaced with total functions.
3010 + Support figure labels (Albert Krewinkel, #2496, #2999).
3011 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
3012 respective image. This allows e.g. the LaTeX to add proper `\label`
3013 markup.
3014 + Improve tag and properties type safety (Albert Krewinkel).
3015 Specific newtype definitions are used to replace stringly typing of tags
3016 and properties. Type safety is increased while readability is improved.
3017 + Parse as headlines, convert to blocks (Albert Krewinkel).
3018 Emacs org-mode is based on outline-mode, which treats documents as trees
3019 with headlines are nodes. The reader is refactored to parse into a
3020 similar tree structure. This simplifies transformations acting on
3021 document (sub-)trees.
3022 * Refactor comment tree handling (Albert Krewinkel).
3023 Comment trees were handled after parsing, as pattern matching on lists
3024 is easier than matching on sequences. The new method of reading
3025 documents as trees allows for more elegant subtree removal.
3026 * Support archived trees export options (Albert Krewinkel).
3027 Handling of archived trees can be modified using the `arch` option.
3028 Archived trees are either dropped, exported completely, or collapsed to
3029 include just the header when the `arch` option is nil, non-nil, or
3030 `headline`, respectively.
3031 * Put export setting parser into module (Albert Krewinkel).
3032 Export option parsing is distinct enough from general block parsing to
3033 justify putting it into a separate module.
3034 * Support headline levels export setting (Albert Krewinkel).
3035 The depths of headlines can be modified using the `H` option. Deeper
3036 headlines will be converted to lists.
3037 * Replace ugly code with view pattern (Albert Krewinkel).
3038 Some less-than-smart code required a pragma switching of overlapping
3039 pattern warnings in order to compile seamlessly. Using view patterns
3040 makes the code easier to read and also doesn't require overlapping
3041 pattern checks to be disabled.
3042 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
3043 Org rules for allowed characters before or after markup chars were not
3044 checked for verbatim text. This resultet in wrong parsing outcomes of
3045 if the verbatim text contained e.g. space enclosed markup characters as
3046 part of the text (`=is_substr = True=`). Forcing the parser to update
3047 the positions of allowed/forbidden markup border characters fixes this.
3049 * LaTeX template: fix for obscure hyperref/xelatex issue.
3050 Here's a minimal case:
3052 \documentclass[]{article}
3053 \usepackage{hyperref}
3054 \begin{document}
3055 \section{\%á}
3056 \end{document}
3058 Without this change, this fails on the second invocation of xelatex.
3059 This affects inputs this like `# %á` with pdf output via xelatex.
3061 * trypandoc: call results 'html' instead of 'result'.
3062 This is for better compatibility with babelmark2.
3064 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
3065 MultiMarkdown was only mentioned as a supported Markdown dialect but not
3066 as a possible input or output format. A brief mention is added
3067 everywhere the other supported markdown dialects are mentioned.
3069 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
3070 Raw HTML is kept when the output format is Emacs Org mode.
3072 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
3074 * Text.Pandoc.Shared:
3076 + Introduce blocksToInlines function (Jesse Rosenthal).
3077 This is a lossy function for converting `[Block] -> [Inline]`. Its main
3078 use, at the moment, is for docx comments, which can contain arbitrary
3079 blocks (except for footnotes), but which will be converted to spans.
3080 This is, at the moment, pretty useless for everything but the basic
3081 `Para` and `Plain` comments. It can be improved, but the docx reader
3082 should probably emit a warning if the comment contains more than this.
3083 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
3084 + Add further formats for `normalizeDate` (Jesse Rosenthal).
3085 We want to avoid illegal dates -- in particular years with greater than
3086 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
3087 `%Y%m`, and finally `%Y`.
3088 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
3089 We only allow years between 1601 and 9999, inclusive. The ISO 8601
3090 actually says that years are supposed to start with 1583, but MS Word
3091 only allows 1601-9999. This should stop corrupted word files if the date
3092 is out of that range, or is parsed incorrectly.
3093 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
3094 Previously we parsed a list of dates, took the first one, and then
3095 tested its year range. That meant that if the first one failed, we
3096 returned nothing, regardless of what the others did. Now we test for
3097 sanity before running `msum` over the list of Maybe values. Anything
3098 failing the test will be Nothing, so will not be a candidate.
3100 * Docx reader:
3102 + Add simple comment functionality. (Jesse Rosenthal).
3103 This adds simple track-changes comment parsing to the docx reader. It is
3104 turned on with `--track-changes=all`. All comments are converted to
3105 inlines, which can list some information. In the future a warning will be
3106 added for comments with formatting that seems like it will be excessively
3107 denatured. Note that comments can extend across blocks. For that reason
3108 there are two spans: `comment-start` and `comment-end`. `comment-start`
3109 will contain the comment. `comment-end` will always be empty. The two
3110 will be associated by a numeric id.
3111 + Enable warnings in top-level reader (Jesse Rosenthal).
3112 Previously we had only allowed for warnings in the parser. Now we allow
3113 for them in the `Docx.hs` as well. The warnings are simply concatenated.
3114 + Add warning for advanced comment formatting. (Jesse Rosenthal).
3115 We can't guarantee we'll convert every comment correctly, though we'll
3116 do the best we can. This warns if the comment includes something other
3117 than Para or Plain.
3118 + Add tests for warnings. (Jesse Rosenthal).
3119 + Add tests for comments (Jesse Rosenthal).
3120 We test for comments, using all track-changes options. Note that we
3121 should only output comments if `--track-changes=all`. We also test for
3122 emitting warnings if there is complicated formatting.
3124 * README: update to include track-changes comments. (Jesse Rosenthal)
3126 * Improved Windows installer - don't ignore properties set on command-line.
3127 See #2708. Needs testing to see if this resolves the issue.
3128 Thanks to @nkalvi.
3130 * Process markdown extensions on command line in L->R order (#2995).
3131 Previously they were processed, very unintuitively, in R->L
3132 order, so that `markdown-tex_math_dollars+tex_math_dollars`
3133 had `tex_math_dollars` disabled.
3135 * Added `secnumdepth` variable to LaTeX template (#2920).
3137 * Include table of contents in README.html in Windows package.
3139 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
3140 In Writers.Shared, we strip leading and trailing spaces for display
3141 math. Since SoftBreak's are treated as spaces, we should strip those
3142 too.
3144 * beamer, latex templates: pass biblatexoptions directly in package load.
3145 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
3147 * CPP workaround for deprecation of `parseUrl` in http-client.
3149 * Removed some redundant class constraints.
3151 * make_oxs_package.sh - use OSX env variable.
3153 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
3154 old installing page from website.
3156 * Added `winpkg` target to Makefile. This downloads the windows package
3157 from appveyor and signs it using the key.
3159 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
3160 Raw TeX is kept verbatim when the output format is Emacs Org mode.
3162 * Support math with haddock-library >= 1.4.
3164 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
3165 wouldn't accept the package.
3167 * Update library dependency versions.
3169pandoc (1.17.1)
3171 * New output format: `docbook5` (Ivo Clarysse).
3173 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
3174 (API change).
3176 * Org writer:
3178 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
3179 This allows header attributes to be added to org documents in the form
3180 of `:PROPERTIES:` drawers. All available attributes are stored as
3181 key/value pairs. This reflects the way the org reader handles
3182 `:PROPERTIES:` blocks.
3183 + Add drawer capability (Carlos Sosa). For the implementation of the
3184 Drawer element in the Org Writer, we make use of a generic Block
3185 container with attributes. The presence of a `drawer` class defines
3186 that the `Div` constructor is a drawer. The first class defines the
3187 drawer name to use. The key-value list in the attributes defines
3188 the keys to add inside the Drawer. Lastly, the list of Block elements
3189 contains miscellaneous blocks elements to add inside of the Drawer.
3190 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
3191 reserved for internal use by Org-mode and should not be used.
3192 The `CUSTOM_ID` property is to be used instead, it is converted to the
3193 `ID` property for certain export format.
3195 * LaTeX writer:
3197 + Ignore `--incremental` unless output format is beamer (#2843).
3198 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
3199 Allow for optional argument in square brackets.
3200 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
3201 This allows one to access the hyphenation patterns in CTAN's
3202 hyph-utf8.
3203 + Add missing languages from hyph-utf8 (Andrew Dunning).
3204 + Improve use of `\strut` with `\minipage` inside tables
3205 (Jose Luis Duran). This improves spacing in multiline
3206 tables.
3207 + Use `{}` around options containing special chars (#2892).
3208 + Avoid lazy `foldl`.
3209 + Don't escape underscore in labels (#2921). Previously they were
3210 escaped as `ux5f`.
3211 + brazilian -> brazil for polyglossia (#2953).
3213 * HTML writer: Ensure mathjax link is added when math appears in footnote
3214 (#2881). Previously if a document only had math in a footnote, the
3215 MathJax link would not be added.
3217 * EPUB writer: set `navpage` variable on nav page.
3218 This allows templates to treat it differently.
3220 * DocBook writer:
3222 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
3223 + Properly handle `ulink`/`link` (Ivo Clarysse).
3225 * EPUB reader:
3227 + Unescape URIs in spine (#2924).
3228 + EPUB reader: normalise link id (Mauro Bieg).
3230 * Docx Reader:
3232 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
3233 `moveTo` and `moveFrom` are track-changes tags that are used when a
3234 block of text is moved in the document. We now recognize these tags and
3235 treat them the same as `insert` and `delete`, respectively. So,
3236 `--track-changes=accept` will show the moved version, while
3237 `--track-changes=reject` will show the original version.
3238 + Tests for track-changes moving (Jesse Rosenthal).
3240 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
3241 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
3242 would error out if zip-archive failed. We change the archive extraction
3243 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
3245 * Markdown, HTML readers: be more forgiving about unescaped `&` in
3246 HTML (#2410). We are now more forgiving about parsing invalid HTML with
3247 unescaped `&` as raw HTML. (Previously any unescaped `&`
3248 would cause pandoc not to recognize the string as raw HTML.)
3250 * Markdown reader:
3252 + Added bracket syntax for native spans (#168).
3253 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
3254 + Added `-s` to markdown-reader-more test.
3256 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
3257 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
3259 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
3260 (roblabla).
3262 * RST reader: Support `:class:` option for code block in RST reader
3263 (Sidharth Kapur).
3265 * Org reader (all Albert Krewinkel, except where noted otherwise):
3267 + Stop padding short table rows.
3268 Emacs Org-mode doesn't add any padding to table rows. The first
3269 row (header or first body row) is used to determine the column count,
3270 no other magic is performed.
3271 + Refactor rows-to-table conversion. This refactors
3272 the codes conversing a list table lines to an org table ADT.
3273 The old code was simplified and is now slightly less ugly.
3274 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
3275 This fixes Org mode parsing of some corner cases regarding empty cells
3276 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
3277 two empty cells, but would be parsed as a single cell containing a pipe
3278 character. Empty rows where parsed as alignment rows and dropped from
3279 the output.
3280 + Fix spacing after LaTeX-style symbols.
3281 The org-reader was droping space after unescaped LaTeX-style symbol
3282 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
3283 instead. This seems to be because the LaTeX-reader treats the
3284 command-terminating space as part of the command. Dropping the trailing
3285 space from the symbol-command fixes this issue.
3286 + Print empty table rows. Empty table rows should not
3287 be dropped from the output, so row-height is always set to be at least 1.
3288 + Move parser state into separate module.
3289 The org reader code has become large and confusing. Extracting smaller
3290 parts into submodules should help to clean things up.
3291 + Add support for sub/superscript export options.
3292 Org-mode allows to specify export settings via `#+OPTIONS` lines.
3293 Disabling simple sub- and superscripts is one of these export options,
3294 this options is now supported.
3295 + Support special strings export option Parsing of special strings
3296 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
3297 option.
3298 + Support emphasized text export option. Parsing of emphasized text can
3299 be toggled using the `*` option. This influences parsing of text marked
3300 as emphasized, strong, strikeout, and underline. Parsing of inline math,
3301 code, and verbatim text is not affected by this option.
3302 + Support smart quotes export option. Reading of smart quotes can be
3303 toggled using the `'` option.
3304 + Parse but ignore export options. All known export options are parsed
3305 but ignored.
3306 + Refactor block attribute handling. A parser state attribute was used
3307 to keep track of block attributes defined in meta-lines. Global state
3308 is undesirable, so block attributes are no longer saved as part of the
3309 parser state. Old functions and the respective part of the parser state
3310 are removed.
3311 + Use custom `anyLine`. Additional state changes need to be made after
3312 a newline is parsed, otherwise markup may not be recognized correctly.
3313 This fixes a bug where markup after certain block-types would not be
3314 recognized.
3315 + Add support for `ATTR_HTML` attributes (#1906).
3316 Arbitrary key-value pairs can be added to some block types using a
3317 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
3318 when exporting to HTML, but since we cannot make this distinction here,
3319 the attributes are always added. The functionality is now supported
3320 for figures.
3321 + Add `:PROPERTIES:` drawer support (#1877).
3322 Headers can have optional `:PROPERTIES:` drawers associated with them.
3323 These drawers contain key/value pairs like the header's `id`. The
3324 reader adds all listed pairs to the header's attributes; `id` and
3325 `class` attributes are handled specially to match the way `Attr` are
3326 defined. This also changes behavior of how drawers of unknown type
3327 are handled. Instead of including all unknown drawers, those are not
3328 read/exported, thereby matching current Emacs behavior.
3329 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
3330 + Respect drawer export setting. The `d` export option can be used
3331 to control which drawers are exported and which are discarded.
3332 Basic support for this option is added here.
3333 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
3334 Also fix up tab handling for leading whitespace in code blocks.
3335 + Support new syntax for export blocks. Org-mode version 9
3336 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
3337 where `<FORMAT>` is the format of the block's content, the new
3338 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
3339 supported.
3340 + Refactor `BEGIN...END` block parsing.
3341 + Fix handling of whitespace in blocks, allowing content to be indented
3342 less then the block header.
3343 + Support org-ref style citations. The *org-ref* package is an
3344 org-mode extension commonly used to manage citations in org
3345 documents. Basic support for the `cite:citeKey` and
3346 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
3347 + Split code into separate modules, making for cleaner code and
3348 better decoupling.
3350 * Added `docbook5` template.
3352 * `--mathjax` improvements:
3354 + Use new CommonHTML output for MathJax (updated default MathJax URL,
3355 #2858).
3356 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
3357 This is designed for cases where the input is always TeX and maximal
3358 conformity with TeX is desired. It seems to be smaller and load faster
3359 than what we used before. See #2858.
3360 + Load the full MathJax config to maximize loading speed (KolenCheung).
3362 * Bumped upper version bounds to allow use of latest packages
3363 and compilation with ghc 8.
3365 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
3366 #2310, #2310, #2824). This fixes behavior of roots, e.g.
3367 `\sqrt[3]{x}`, and issues with sub/superscript positioning
3368 and matrix column alignment in docx.
3370 * README:
3372 + Clarified documentation of `implicit_header_references` (#2904).
3373 + Improved documentation of `--columns` option.
3375 * Added appveyor setup, with artefacts (Jan Schulz).
3377 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
3379 * LaTeX template: support for custom font families (vladipus).
3380 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
3381 can find some other usages. Example usage in YAML metadata:
3383 fontfamilies:
3384 - name: \cyrillicfont
3385 font: Liberation Serif
3386 - name: \cyrillicfonttt
3387 options: Scale=MatchLowercase
3388 font: Liberation
3390 * Create unsigned msi as build artifact in appveyor build.
3392 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
3394pandoc (1.17.0.3)
3396 * LaTeX writer: Fixed position of label in figures (#2813).
3397 Previously the label wasn't in the right place, and `\ref`
3398 wouldn't work properly.
3399 * Added .tei test files to pandoc.cabal so they'll be included
3400 in tarball (#2811).
3401 * Updated copyright dates.
3403pandoc (1.17.0.2)
3405 * Fixed serious regression in `htmlInBalanced`, which caused
3406 newlines to be omitted in some raw HTML blocks in Markdown
3407 (#2804).
3409pandoc (1.17.0.1)
3411 * File scope is no longer used when there are no input files (i.e.,
3412 when input comes from stdin). Previously file scope was triggered
3413 when the `json` reader was specified and input came from `stdin`,
3414 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
3415 thanks to Fedor Sheremetyev for calling the bug to our attention.)
3416 * Improved documentation of templates (#2797).
3418pandoc (1.17)
3420 * Added `--file-scope` option (Jesse Rosenthal).
3421 By default pandoc operates on multiple files by first concatenating
3422 them (around extra line breaks) and then processing the joined file. So
3423 it only parses a multi-file document at the document scope. This has the
3424 benefit that footnotes and links can be in different files, but for
3425 some purposes it is useful to parse the individual files first
3426 and then combine their outputs (e.g. when the files use footnotes
3427 or links with the same labels). The `--file-scope` option causes
3428 pandoc to parse the files first, and then combine the parsed output,
3429 instead of combining before parsing. `--file-scope` is selected
3430 automatically for binary input files (which cannot be concatenated)
3431 and for pandoc json.
3433 * Add TEI Writer (Chris Forster) and `tei` output format.
3435 * Added a general `ByteStringReader` with warnings, used by the docx
3436 reader (API change, Jesse Rosenthal).
3438 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
3440 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
3441 to `Set String.` This avoids performance problems in documents with
3442 many identically named headers (API change, #2671).
3444 * Removed `tex_math_single_backslash` from `markdown_github` options
3445 (#2707).
3447 * Make language extensions as well as full language names
3448 trigger syntax highlighting. For example, `py` will now work as
3449 well as `python` (jgm/highlighting-kate#83).
3451 * Added `institute` variable to latex, beamer templates (Fraser
3452 Tweedale, Josef Svenningsson).
3454 * Docx reader (Jesse Rosenthal):
3456 + Handle alternate content. Some word functions (especially graphics)
3457 give various choices for content so there can be backwards compatibility.
3458 + Don't turn numbered headers into lists.
3459 + Docx Reader: Add state to the parser, for warnings
3460 + Update feature checklist in source code.
3461 + Get rid of `Modifiable` typeclass.
3462 + Add tests for adjacent hyperlinks.
3463 + Add a "Link" modifier to `Reducible`. We want to make sure that
3464 links have their spaces removed, and are appropriately smushed
3465 together (#2689).
3467 * HTML reader:
3469 + Fixed behavior of base tag (#2777).
3470 If the base path does not end with slash, the last component
3471 will be replaced. E.g. base = `http://example.com/foo`
3472 combines with `bar.html` to give `http://example.com/bar.html`.
3473 If the href begins with a slash, the whole path of the base
3474 is replaced. E.g. base = `http://example.com/foo/` combines
3475 with `/bar.html` to give `http://example.com/bar.html`.
3476 + Rewrote `htmlInBalanced`. This version avoids an exponential
3477 performance problem with `<script>` tags, and it should be faster
3478 in general (#2730).
3479 + Properly handle an empty cell in a simple table (#2718).
3480 + Handle multiple `<meta>` tags with same name. Put them in a list
3481 in the metadata so they are all preserved, rather than (as before)
3482 throwing out all but one..
3484 * Markdown reader:
3486 + Improved pipe table parsing (#2765).
3487 + Allow `+` separators in pipe table cells. We already allowed
3488 them in the header, but not in the body rows, for some reason.
3489 This gives compatibility with org-mode tables.
3490 + Don't cross line boundary parsing pipe table row.
3491 Previously an Emph element could be parsed across the newline
3492 at the end of the pipe table row.
3493 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
3494 performance (#2730).
3495 + Fixed bug with smart quotes around tex math.
3497 * LaTeX reader:
3499 + Handle interior `$` characters in math (#2743). For example,
3500 `$$\hbox{$i$}$$`.
3501 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
3502 This gives better results when people write e.g. `\TeX{}` in Markdown.
3503 + Properly handle LaTeX "math" environment as inline math (#2171).
3505 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
3506 Closes #2674.
3508 * Org reader (Albert Krewinkel):
3510 + Prefix even empty figure names with "fig:" (#2643). The
3511 convention used by pandoc for figures is to mark them by prefixing
3512 the name with `fig:`. The org reader failed to do this if a figure
3513 had no name.
3514 + Refactor link-target processing (#2684).
3516 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
3517 Thanks to @c-foster.
3519 * HTML writer: Don't include alignment attribute for default table columns.
3520 Previously these were given "left" alignment. Better to leave off
3521 alignment attributes altogether (#2694).
3523 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
3524 better compatibility with other Markdown flavors (Henrik Tramberend).
3526 * LaTeX writer:
3528 + Use image identifier to create a label and hypertarget for
3529 figures (Mauro Bieg).
3530 + Avoid double toprule in headerless table with caption (#2742).
3531 + Clean up options parser (Jesse Rosenthal).
3532 + Treat `memoir` template with `article` option as article, instead
3533 of treating all `memoir` templates as books.
3534 + Allow more flexible table alignment (Henrik Tramberend, #2665).
3535 New default is not to include `[c]` option (which is the default
3536 anyway if no positioning is specified). Now LaTeX emplates can
3537 control the overall table alignment in a document by setting the
3538 longtable length variables `LTleft` and `LTright`. For example,
3539 `\setlength\LTleft\parindent\setlength\LTright\fill`
3540 will create left-aligned tables that respect paragraph indentation.
3542 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
3544 * Org writer - pass through RawInline with format "org".
3546 * DokuWiki writer: use `$$` for display math.
3548 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
3550 * Make protocol-relative URIs work again (#2737).
3552 * make_osx_package.sh: Use env variable for developer id certs.
3554 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
3555 problems (#2734).
3557 * Allow `zip-archive` 0.3.
3559 * Allow `aeson` 0.11.
3561pandoc (1.16.0.2)
3563 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
3565 * Fixed regression in latex smart quote parsing (#2645).
3566 In cases where a match was not found for a quote, everything
3567 from the open quote to the end of the paragraph was being dropped.
3569pandoc (1.16.0.1)
3571 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
3572 raises an error if a full path is given.
3574 * Org reader: Fix function dropping subtrees tagged `:noexport`
3575 (Albert Krewinkel, #2628):
3577 * Markdown reader: renormalize table column widths if they exceed 100%
3578 (#2626).
3580 * Textile reader: don't allow block HTML tags in inline contexts.
3581 The reader previously did allow this, following redcloth,
3582 which happily parses
3584 Html blocks can be <div>inlined</div> as well.
3586 as
3588 <p>Html blocks can be <div>inlined</div> as well.</p>
3590 This is invalid HTML. The above sample now produces;
3592 <p>Html blocks can be</p>
3593 <div>
3594 <p>inlined</p>
3595 </div>
3596 <p>as well.</p>
3598 * Improved default template lookup for custom lua scripts (#2625).
3599 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
3600 pandoc would look for the template in
3601 `~/.pandoc/templates/default./path/to/lua/script.lua`.
3602 With this change it will look in the more reasonable
3603 `~/.pandoc/templates/default.script.lua`. This makes it possible to
3604 store default templates for custom writers.
3606 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
3607 (#2615).
3609 * LaTeX writer: restore old treatment of Span (#2624). A Span is
3610 now rendered with surrounding `{}`, as it was before 1.16.
3612 * Entity handling fixes: improved handling of entities like
3613 `&lang;` that require a trailing semicolon. Allow uppercase
3614 `x` in numerical hexidecimal character references, working
3615 around a tagsoup bug.
3617 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
3618 memory use on compile. With aeson 0.10 we were getting an out of
3619 memory error on a 2GB Ubuntu 64-bit VM.
3621 * Improved deb package creation script. Made `DPKGVER` work.
3622 Renamed `COMMIT` to `TREE`. You should now be able to do
3623 `TREE=1.16.0.1 DPKGVER=2 make deb`.
3626pandoc (1.16)
3628 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
3630 + Added syntax for link and image attributes to pandoc's Markdown.
3631 + Updated readers and writers to use link and image attributes
3632 when appropriate.
3633 + Support image attributes in Docx, Textile, RST readers.
3635 * Renamed link attribute extensions. The old `link_attributes` is
3636 now `mmd_link_attributes`, and `link_attributes` now enables the
3637 new pandoc-style link and image attributes (API change).
3638 Note: this change could break some existing workflows.
3640 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
3641 Added threefold wrapping option.
3643 + Command line option: deprecated `--no-wrap`, added
3644 `--wrap=[auto|none|preserve]`
3645 + Added `WrapOption`, exported from `Text.Pandoc.Options`
3646 + Changed type of `writerWrapText` in `WriterOptions` from
3647 `Bool` to `WrapOption`.
3648 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
3649 + Supported `SoftBreak` in readers and writers.
3651 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
3652 change, Mauro Bieg).
3654 * Added `--dpi` command-line option (Mauro Bieg).
3656 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
3657 This change makes `--no-tex-ligatures` affect the LaTeX reader
3658 as well as the LaTeX and ConTeXt writers. If it is used,
3659 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
3660 literally, rather than parsing ligatures for quotation marks
3661 and dashes. And the LaTeX writer will print unicode quotation
3662 mark and dash characters literally, rather than converting
3663 them to the standard ASCII ligatures. Note that `--smart` has
3664 no effect on the LaTeX reader. `--smart` is still the default
3665 for all input formats when LaTeX or ConTeXt is the output format,
3666 *unless* `--no-tex-ligatures` is used.
3668 Some examples to illustrate the logic:
3670 ```
3671 % echo "'hi'" | pandoc -t latex
3672 `hi'
3673 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
3674 'hi'
3675 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
3676 ‘hi’
3677 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
3678 <p>'hi'</p>
3679 % echo "'hi'" | pandoc -f latex
3680 <p>’hi’</p>
3681 ```
3683 * Removed deprecated options `--offline` and `--html5`.
3685 * Fixed language code for Czech (`cs` not `cz`) (#2597).
3687 * Implemented `east_asian_line_breaks` extension (#2586).
3688 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
3689 to `Extension` (API change). This extension is like
3690 `ignore_line_breaks`, but smarter -- it only ignores line breaks
3691 between two East Asian wide characters. This makes it better suited
3692 for writing with a mix of East Asian and non-East Asian scripts.
3694 * Added support for PDF creation via `wkhtmltopdf`.
3695 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
3696 if you have math.) Margins can be set using the variables
3697 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
3698 Other styling can be done through CSS.
3700 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
3701 We were capturing final colons as in `[@foo: bar]`; the citation id
3702 was being parsed as `@foo:`.
3704 * ICML writer:
3706 + Fixed image syntax for local files (#2589).
3707 + Changed type of `writeICML` (Mauro Bieg).
3708 API change: It is now `WriterOptions -> Pandoc -> IO String`.
3709 Also handle new image attributes.
3710 + Intersperse line breaks instead of appending them to
3711 every `ParagraphStyleRange` (Mauro Bieg, #2501).
3712 + Add `Cite` style to citations (Mauro Bieg).
3713 + Added figure handling (#2590, Mauro Bieg).
3714 + Better handling of math. Instead of just printing the raw tex,
3715 we now try to fake it with unicode characters.
3717 * HTML writer: Include `example` class for example lists (#2524).
3719 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
3721 + Support for percentage widths/heights
3722 + Use `Attr` instead of title to get dimensions from ODT walker
3723 to `writeOpenDocument`.
3725 * AsciiDoc writer:
3727 + Support anchors in spans and divs with id elements
3728 (jgm/pandoc-citeproc#143).
3729 + Fixed code blocks (#1861).
3731 * Haddock writer: omit formatting inside links, which isn't supported
3732 by Haddock (#2515).
3734 * MediaWiki writer: Fixed spacing issues in table cells.
3736 + Start cell on new line unless it's a single Para or Plain
3737 (#2606).
3738 + For single Para or Plain, insert a space after the `|` to
3739 avoid problems when the text begins with a character like
3740 `-` (#2604).
3742 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
3744 * LaTeX writer:
3746 + Add support for GAP highlighting using listings (Raniere Silva).
3747 + Consider `header-includes` content as well as templates
3748 when determining whether to use csquotes (Andreas Lööw).
3749 + Create defaults for geometry using `margin-left` etc.
3750 If `geometry` has no value, but `margin-left`, `margin-right`,
3751 `margin-top`, and/or `-margin-bottom` are given, a default value
3752 for `geometry` is created from these. Note that these variables
3753 already affect PDF production via HTML5 with `wkhtmltopdf`.
3755 * ConTeXt writer: set default layout based on `margin-left`, etc.
3756 This sets up `\setuplayout` based on the variables `margin-left`,
3757 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
3758 is given.
3760 * Docx writer: better handling of PDF images. Previously we tried
3761 to get the image size from the image even if an explicit size was
3762 specified. Since we still can't get image size for PDFs, this made
3763 it impossible to use PDF images in docx. Now we don't try to get
3764 the image size when a size is already explicitly specified.
3766 * Markdown writer: use raw HTML for link/image attributes when
3767 the `link_attributes` extension is unset and `raw_html` is set (#2554).
3769 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
3771 * LaTeX reader:
3773 + Improved smart quote parsing (#2555). This fixes redering of
3774 unmatched quotes.
3775 + Use curly quotes for unmatched ` (#2555).
3776 + Allow blank space between braced arguments of commands (#2592).
3778 * Markdown reader:
3780 + Improved pipe table relative widths. Previously pipe table
3781 columns got relative widths (based on the header underscore lines)
3782 when the source of one of the rows was greater in width than the
3783 column width. This gave bad results in some cases where much of
3784 the width of the row was due to nonprinting material (e.g. link
3785 URLs). Now pandoc only looks at printable width (the width of a
3786 plain string version of the source), which should give better results.
3787 Thanks to John Muccigrosso for bringing up the issue.
3788 + Fixed parsing bug with macros. Previously macro definitions in
3789 indented code blocks were being parsed as macro definitions, not code.
3791 * Textile reader: skip over attribute in image source (#2515).
3792 We don't have a place yet for styles or sizes on images, but
3793 we can skip the attributes rather than incorrectly taking them
3794 to be part of the filename.
3796 * Docx reader: Handle dummy list items (Jesse Rosenthal).
3797 These come up when people create a list item and then delete the
3798 bullet. It doesn't refer to any real list item, and we used to ignore
3799 it.
3801 * CommonMark reader/writer rewritten to use latest `cmark`.
3803 * Fixed Emoji character definitions (#2523). There were many bugs in the
3804 definitions.
3806 * `Text.Pandoc.CSS`:
3808 + Added `pickStylesToKVs` function to extract multiple properties at
3809 once (API change, Mauro Bieg).
3810 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
3812 * `trypandoc`: sort drop-down lists.
3814 * Beamer template:
3816 + Made `\euro` conditional on presence of character.
3817 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
3818 + Moved `header-includes` before setting of title (Thomas Hodgson),
3819 to match the LaTeX template (jgm/pandoc-templates#168).
3820 + Added `section-titles` variable (defaults to true)
3821 to enable/suppress section title pages in beamer
3822 slide shows (Thomas Hodgson).
3823 + Moved beamer themes after fonts, so that themes can
3824 change fonts. (Previously the fonts set were being
3825 clobbered by lmodern.sty.) (Thomas Hodgson).
3827 * Beamer/LaTeX template changes (Thomas Hodgson):
3828 + Added `thanks` variable
3829 + Use `parskip.sty` when `indent` isn't set (fall back to using
3830 `setlength` as before if `parskip.sty` isn't available).
3831 + Use `biblio-style` with biblatex.
3832 + Added `biblatexoptions` variable.
3834 * LaTeX template changes:
3836 + Added `paper` after `$papersize$` variable in latex template.
3837 Thus you can say `papersize: a4` and the latex will contain
3838 `a4paper`. This change may break some existing workflows; if
3839 you currently specify `a4paper`, you'll get `a4paperpaper` which
3840 is meaningless. However, the change seems worth it, as it will
3841 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
3842 and html->pdf via wkhtmltopdf.
3843 + Only pass options to color package if `colorlinks` is set
3844 (Andrew Dunning).
3845 + Make definition of `\euro` conditional in xelatex/lualatex,
3846 as it is already for pdflatex (Andrew Dunning).
3847 + Removed setting of `subject` in PDF metadata.
3848 This used to be set to the subtitle, but really the subtitle
3849 need not give the subject. Also, `subtitle` can contain formatting,
3850 so we'd need, at least, a plain text version for this.
3851 + Moved `header-includes` before setting of `\title`, `\author`,
3852 etc. This allows these macros to be redefined.
3853 + Use `\subtitle` command for `subtitle`, instead of tacking it
3854 on to the title as before. We give a no-op fallback definition if it
3855 is not defined. This change should produce much better results
3856 in classes that support `\subtitle`. With the default article
3857 class, which does not define `\subtitle`, subtitles will no
3858 longer be printed unless the user defines `\subtitle` and
3859 redefines `\maketitle`.
3860 + Moved redefinitions of `\paragraph` and `\subparagraph` to
3861 before header-includes.
3863 * Context template:
3865 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
3866 needed for things to work on ConTeXt stable from TeXLive 2015.
3867 + Revert use of `\setuphead` in title block (Andrew Dunning,
3868 Rik Kabel).
3870 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
3872 * Fixed man template so disabling hyphenation actually works.
3873 The command needs to come after .TH.
3875 * Added 'navigation' variable to beamer template (#2543).
3876 Valid values are `empty` (the default), `horizontal`, `vertical`,
3877 and `frame`. Note that this changes the default behavior from
3878 `horizontal` to `empty`. Closes #2543.
3880 * Added `toc` to HTML slide format templates (Andrew Dunning),
3881 so that `--toc` creates a contents slide.
3883 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
3885 * Allow pipe tables with no body rows (#2556).
3886 Previously this raised a runtime error.
3888 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
3889 as URL. The Haskell URI parsing routines will accept "C:" as a
3890 scheme, so we rule that out manually. This helps with
3891 `--self-contained` and absolute Windows paths.
3893 * Define a `meta-json` variable for all writers (#2019). This contains
3894 a JSON version of all the metadata, in the format selected for the
3895 writer. So, for example, to get just the YAML metadata, you can run
3896 pandoc with the following custom template: `$meta-json$`. The intent
3897 is to make it easier for static site generators and other tools to get
3898 at the metadata.
3900 * Document limitations of --self-contained (#2553).
3902 * Improved Citations section of README (#2551). Added information
3903 about `link-citations` and a link to the pandoc-citeproc man page.
3905 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
3906 in base < 4.6.
3908 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
3910 * Improved implicit pandoc-citeproc inclusion.
3911 The filter pandoc-citeproc is automatically used when
3912 `--bibliography` is specified on the command line, unless
3913 `--natbib` or `--biblatex` is used. However, previously this
3914 only worked if `--bibliography` was spelled out in full, and not
3915 if `--biblio` was used.
3917 * reveal.js: Interpret pauses correctly for all headers (#2530).
3918 Previously, when using headers below the slide level, pauses are left
3919 uninterpreted into pauses. In my opinion, unexpected behavior but
3920 intentional looking at the code.
3922 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
3924 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
3925 Bieg, API change).
3927 * ImageSize: Added functions for converting between image dimensions
3928 (Mauro Bieg).
3930 * Use lts-3.18 in stack.yaml. This avoids Windows build
3931 issues with the HTTP library.
3933 * Bump version bounds for dependencies.
3935pandoc (1.15.2.1)
3937 * Added two missing test files, and `stack.yaml`, to
3938 `extra-source-files` so they're included in the source tarball.
3940 * reveal.js template: Fixed parallaxBackground options.
3941 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
3942 need integer values, not strings. (Vaughn Iverson)
3944pandoc (1.15.2)
3946 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
3947 ConTeXt rather than LaTeX (#2463).
3949 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
3951 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
3952 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
3953 (API change).
3955 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
3956 parsing (#2469). Tightened up the inline HTML parser so it disallows
3957 TagWarnings.
3959 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
3961 * Org reader:
3963 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
3964 Paragraphs can be followed by lists, even if there is no blank line
3965 between the two blocks. However, this should only be true if the
3966 paragraph is not within a list, were the preceding block should be
3967 parsed as a plain instead of paragraph (to allow for compact lists).
3968 Thanks to @rgaiacs for bringing this up.
3969 + Allow toggling header args (Albert Krewinkel, #2269).
3970 Org-mode allows to skip the argument of a code block header argument if
3971 it's toggling a value. Argument-less headers are now recognized,
3972 avoiding weird parsing errors.
3973 + Fix markup parsing in headers (Albert Krewinkel, #2504).
3974 Markup as the very first item in a header wasn't recognized. This was
3975 caused by an incorrect parser state: positions at which inline markup
3976 can start need to be marked explicitly by changing the parser state.
3977 This wasn't done for headers. The proper function to update the state
3978 is now called at the beginning of the header parser, fixing this issue.
3979 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
3980 Smart quotes, ellipses, and dashes should behave like normal quotes,
3981 single dashes, and dots with respect to text markup parsing.
3982 + Require whitespace around definition list markers (#2518).
3983 This rule was not checked before, resulting in bugs with footnotes
3984 and some link types.
3986 * Markdown reader:
3988 + Pipe tables with long lines now get relative cell widths (#2471).
3989 If a pipe table contains a line longer than the column width (as set by
3990 `--columns` or 80 by default), relative widths are computed based on the
3991 widths of the separator lines relative to the column width. This should
3992 solve persistent problems with long pipe tables in LaTeX/PDF output, and
3993 give more flexibility for determining relative column widths in other
3994 formats, too. For narrower pipe tables, column widths of 0 are used,
3995 telling pandoc not to specify widths explicitly in output formats that
3996 permit this.
3997 + Improved parser for `mmd_title_block`. We now allow blank metadata
3998 fields. These were explicitly disallowed before.
3999 + Citation keys can now contain `://`, so URLs and DOIs can be used
4000 as citation keys (jgm/pandoc-citeproc#166).
4002 * Beamer template: fix incompatibility of section slides with natbib.
4003 Natbib (and presumably biblatex) bibliography commands create
4004 their own section. Since these are in frame environments,
4005 we have an incompatibility with the `\AtBeginSection` macro
4006 which creates a special frame when a new section occurs.
4007 (We can't have a frame inside another frame.) This change disables
4008 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
4009 bringing the problem to my attention. This supersedes #145. See
4010 discussion there.
4012 * Textile reader: don't do smart punctuation unless explicitly asked
4013 (#2480). Note that although smart punctuation is part of the textile
4014 spec, it's not always wanted when converting from textile
4015 to, say, Markdown. So it seems better to make this an option.
4017 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
4018 The `comment` environment is handled in a similar way to the
4019 `verbatim` environment, except that its content is discarded.
4021 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
4022 Jesse Rosenthal). This fixes a problem with links in notes.
4024 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
4025 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
4026 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
4027 they aren’t set already. See #895.
4029 * LaTeX writer:
4031 + Use proper command for `\textarabic` (Mauro Bieg).
4032 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
4033 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
4034 to link to Div or Span elements. We now don't bother defining `\label`
4035 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
4036 + Avoid footnotes in list of figures (#1506).
4037 + Properly handle footnotes in captions (#1506).
4038 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
4039 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
4040 `toccolor` is set (#2508).
4042 * Textile writer: support start number in ordered lists (#2465).
4044 * OpenDocument writer: Allow customization of opendocument
4045 automatic styles. Automatic styles can now be inserted in the
4046 template, which now provides the enclosing `<office:automatic-styles>`
4047 tags (#2520).
4049 * Docx writer: insert space between footnote reference and note (#2527).
4050 This matches Word's default behavior.
4052 * EPUB writer: don't download linked media when `data-external` attribute
4053 set (#2473). By default pandoc downloads all linked media and includes it
4054 in the EPUB container. This can be disabled by setting `data-external` on
4055 the tags linking to media that should not be downloaded. Example:
4057 <audio controls="1">
4058 <source src="http://example.com/music/toccata.mp3"
4059 data-external="1" type="audio/mpeg">
4060 </source>
4061 </audio>
4063 * HTML writer: use width on whole table if col widths sum to < 100%.
4064 Otherwise some browsers display the table with the columns
4065 separated far apart.
4067 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
4068 `abstract` (Andrew Dunning).
4070 * HTML-based templates (Andrew Dunning):
4072 + Use en dash instead of hyphen between title prefix and title.
4073 + Add `keywords` to metadata.
4074 + Add `lang`, `dir`, `quotes` where missing.
4075 + Always make author and date display conditional.
4076 + Updated dzslides template from source.
4078 * Man template: make "generated by" comment conditional.
4080 * LaTeX, Beamer templates:
4082 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
4083 filled by commands that make babel understand the polyglossia-style
4084 language directives (Mauro Bieg, #137).
4085 + Improved formatting of conditionals; `$for$` is always provided to allow
4086 multiple options (Andrew Dunning, #141).
4087 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
4088 to improve support for LuaTeX (Andrew Dunning, #135).
4089 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
4090 - use same options for all LaTeX engines;
4091 - add `subtitle` and `keywords` to PDF metadata;
4092 - do not override `hyperref` link coloring without user input, effectively making
4093 the `hidelinks` option the default (removed as a separate variable);
4094 - link colors can be enabled (using a slightly darker version of the old
4095 defaults) using a new `colorlinks` variable, automatically used by
4096 the LaTeX writer when custom colors are specified;
4097 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
4098 `colorlinks`, and is only applied if `colorlinks` is disabled.
4100 * ConTeXt template (Andrew Dunning):
4102 + New variables for controlling styles: `linkstyle`, `linkcolor`,
4103 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
4104 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
4105 `monofont`, `mathfont`, `fontsize`.
4106 + Default template no longer supports MkII.
4107 + Improve writing of title block (suppressing numbering of first page).
4108 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
4109 + Support `subtitle`, `abstract`.
4110 + Support list of figures (`lof`), list of tables (`lot`).
4111 + Disable link styling by default.
4112 + Define styles for all section types.
4113 + Enable microtype.
4114 + Improved formatting of conditionals.
4116 * Beamer template: added code to prevent slide breaks inside paragraphs
4117 (#2422, thanks to Nick Bart). This will matter, in practice, only when
4118 `allowframebreaks` is used. It is especially helpful for bibliography
4119 slides.
4121 * OpenDocument template: Add `<office:automatic-styles>` tag around
4122 automatic styles. The writer now longer provides this (see #2520).
4124 * Restored Text.Pandoc.Compat.Monoid.
4126 * Do not export (<>) from custom Prelude. The Prelude now matches
4127 base 4.8 Prelude's API.
4129 * Don't use custom prelude with ghc 7.10. Use the custom prelude
4130 only for earlier versions. This change makes `stack ghci` and
4131 `cabal repl` work (#2503), at least with ghc 7.10.
4133 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
4134 This prevents problems building haddocks with "C" locale.
4136 * Change default for old-locale flag to False.
4138 * Use stack in deb, osx, and Windows package generators.
4140 * Added Vagrantfile for building deb in vm.
4141 This should help in automating binary package creation. 'make package'
4142 will make the package. 'make package COMMIT=blah' will make the package
4143 from commit blah.
4145 * README:
4147 + Consistent capitalization for pandoc and Markdown.
4148 + Fixed `auto_identifiers` examples (Benoit Schweblin).
4149 + Improved documentation of template variables (Andrew Dunning).
4151pandoc (1.15.1.1)
4153 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
4154 This way we have uniform separators, whether on Windows or Linux.
4155 This should solve a problem where on some Windows versions
4156 the data files weren't being found (#2459).
4158pandoc (1.15.1)
4160 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
4161 and reexported from `Text.Pandoc` (Alex Vong). This allows
4162 writers to access it. (Alex Vong) (API change)
4164 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
4165 `subscripts` (#2401).
4167 * Added `odt` as input format (Martin Linnemann). Added new module
4168 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
4169 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
4170 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
4171 Partly implemented features: Citations, Tables.
4173 * Markdown Reader:
4175 + Add basic tests for each header style (Ophir Lifshitz).
4176 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
4177 + Skip spaces in headers (Ophir Lifshitz).
4178 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
4179 `# Header {id="myid" class="foo bar"}`
4180 is now equivalent to `# Header {#myid .foo .bar}`.
4181 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
4182 (Kristof Bastiaensen)
4183 + Pipe tables: allow indented columns. Previously the left-hand column
4184 could not start with 4 or more spaces indent. This was inconvenient
4185 for right-aligned left columns. Note that the first (header column)
4186 must still have 3 or fewer spaces indentation, or the table will be
4187 treated as an indented code block.
4188 + Fix regression: allow HTML comments containing `--`.
4189 Technically this isn't allowed in an HTML comment, but
4190 we've always allowed it, and so do most other implementations.
4191 It is handy if e.g. you want to put command line arguments
4192 in HTML comments.
4194 * LaTeX reader:
4196 + Don't eat excess whitespace after macros with only optional
4197 arguments (#2446).
4198 + Support longtable (#2411).
4199 + Implement `\Cite` (#2335).
4200 + Support abstract environment. The abstract populates an
4201 `abstract` metadata field.
4202 + Properly handle booktabs lines. Lines aren't part of the
4203 pandoc table model, so we just ignore them (#2307).
4205 * HTML reader:
4207 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
4208 + Updated for new automatic header attributes.
4209 + Add auto identifiers if not present on headers. This makes
4210 TOC linking work properly.
4211 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
4212 + Test `<ol>` type, class, and inline list-style(-type) CSS
4213 (Ophir Lifshitz).
4214 + Better handling of "section" elements (#2438). Previously
4215 `<section>` tags were just parsed as raw HTML blocks. With
4216 this change, section elements are parsed as Div elements with
4217 the class "section".
4219 * MediaWiki reader: handle unquoted table attributes (#2355).
4221 * DocBook reader:
4223 + Added proper support for DocBook `xref` elements (Frerich Raabe).
4224 Added `dbContent` field to reader state, so we can lookup
4225 cross refs.
4226 + Handle `informalexample` (#2319).
4228 * Docx Reader:
4230 + Create special punctuation test (Ophir Lifshitz).
4231 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
4232 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
4233 in `headers.docx` with pandoc's current `styles.xml`, which
4234 contains styles for Heading 1 through 6. Added Heading 4
4235 through 7 to the test document. Note that Heading 7 is not
4236 parsed as a Heading because there is no Heading 7 style.
4238 * RST reader: better handling of indirect roles.
4239 Previously the parser failed on this kind of case
4241 .. role:: indirect(code)
4243 .. role:: py(indirect)
4244 :language: python
4246 :py:`hi`
4248 Now it correctly recognizes `:py:` as a code role.
4250 * Org reader:
4252 + Add auto identifiers if not present on headers
4253 (#2354, Juliusz Gonera).
4254 + Allow verse blocks to contain empty lines (#2402,
4255 Albert Krewinkel).
4257 * EPUB reader: stop mangling external URLs (#2284).
4259 * RST writer:
4261 + Don't insert `\ ` when complex expression in matched pairs.
4262 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
4263 + Ensure that `\ ` is inserted when needed before Cite and Span
4264 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
4265 + Normalize headers only in "standalone" mode (#2394).
4267 * Haddock writer: escape `*` and `^` (G. Bataille).
4269 * Markdown writer:
4271 + In TOC, add links to headers (#829).
4272 + Use unicode super/subscripts for digits in plain output
4273 (when the `superscripts` and `subscripts` extensions are
4274 not enabled).
4276 * Docx writer:
4278 + Moved invalid character stripping to `formattedString`.
4279 This avoids an inefficient generic traversal (#2356).
4280 + Use user data directory for `reference.docx` archive.
4281 This allows the test suite to work without installing pandoc first.
4282 It also brings the docx writer in line with the odt writer.
4283 + Tests: docx writer tests now use `../data` for data directory.
4284 This allows tests to be run without installing first.
4285 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
4287 * LaTeX writer:
4289 + Fixed detection of 'chapters' from template.
4290 If a documentclass isn't specified in metadata, but the
4291 template has a hardwired bookish documentclass, act as if
4292 `--chapters` was used. This was the default in earlier
4293 versions, but it has been broken for a little while.
4294 + Correctly recognize book documentclass in metadata (#2395).
4295 + Set language-related variables automatically, depending
4296 on the value of the `lang` field, which is now always
4297 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
4298 + Add `\protect` to `\hyperdef` in inline context. This way we
4299 don't get an error when this is used as a moveable argument (#2136).
4300 + Support all frame attributes in Beamer.
4301 + Percent-encode more special characters in URLs (#1640, #2377).
4302 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
4304 * HTML writer:
4306 + Update KaTeX JS and CSS versions (Emily Eisenberg).
4307 + For dzslides, add `role="note"` for speaker notes (#1693).
4308 + Percent-encode more special characters in URLs (#1640, #2377).
4309 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
4310 + Render Div with class `section` as `<section>` in HTML5.
4312 * EPUB writer:
4314 + In TOC, replace literal `<br/>` with space (#2105).
4315 + With `--webtex`, include image file rather than `data:` URI (#2363).
4317 * Native writer: format Div properly, with blocks separated.
4319 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
4320 (#2191, Mauro Bieg).
4322 * Reference Docx:
4324 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
4325 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
4327 * Templates
4329 + Beamer: Add `innertheme`, `outertheme` variables
4330 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
4331 Integrate recent font and language updates from LaTeX template;
4332 allow use of `mainfont` variable for changing the slide text
4333 in XeTeX and LuaTeX (Andrew Dunning, #131).
4334 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
4335 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
4336 (Andrew Dunning, #122). Support handling of bidirectional
4337 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
4338 under XeTeX and prevent letters and numbers from appearing on a
4339 different baseline by removing use of the `realscripts` package
4340 (via `xltxtra`). To restore use of OpenType characters for these
4341 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
4342 `header-includes` (Andrew Dunning, #130). Remove redundant
4343 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
4344 `indent`, `subparagraph` variables (Andrew Dunning).
4345 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
4346 #113). Prevent package clash with `tufte-latex` and other classes that
4347 include `hyperref` or `color` (Xavier Olive, #115).
4348 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
4349 + LaTeX and ConTeXt: Use more specific language variables.
4350 Instead of directly using `lang`, we now use `babel-lang` and
4351 `polyglossia-lang` and `context-lang`. These variables are set by
4352 the writers to the necessary values, based on the `lang` variable
4353 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
4354 #129).
4355 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
4356 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
4357 Add dir attribute in html5 (Andrew Dunning).
4358 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
4359 Add `width`, `height` variables (Andrew Dunning). Update template
4360 from 3.1 source (Andrew Dunning). All configuration options are now
4361 available as variables, but are only be included if set (reveal.js
4362 uses defaults otherwise).
4363 + man: Added comment stating that the page is autogenerated by pandoc,
4364 giving version. Added `adjusting` and `hyphenate` variables
4365 (Alex Vong, #123).
4367 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
4369 * MediaBag: ensure that `/` is always used as path separator.
4371 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
4373 * Added `--bash-completion` option. This generates a bash completion
4374 script. To use: `eval "$(pandoc --bash-completion)"`.
4376 * Text.Pandoc.Error: Define Typeable and Exception instances
4377 for PandocError (#2386).
4379 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
4380 This makes keys with extra space at the beginning and end
4381 work: e.g.
4383 [foo]: bar
4385 [ foo ]
4387 will now be a link to bar (it wasn't before).
4389 * Text.Pandoc: disable `auto_identifiers` for epub.
4390 The epub writer inserts its own auto identifiers;
4391 this is more complex due to splitting into "chapter" files.
4393 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
4394 It now reexports Data.Time.
4396 * Use custom Prelude to avoid compiler warnings.
4398 + The (non-exported) prelude is in prelude/Prelude.hs.
4399 + It exports Monoid and Applicative, like base 4.8 prelude,
4400 but works with older base versions.
4401 + It exports (<>) for mappend.
4402 + It hides 'catch' on older base versions.
4404 * Added a `stack.ymal` and stack install instructions to INSTALL.
4406 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
4408 * Added note to CONTRIBUTING.md about ghc versions and travis.
4410 * Clarify docs on block quotes. The space after `>` is optional (#2346).
4412 * Removed obsolete reference to default.csl (#2372).
4414 * List all styles in manual for `--reference-docx` (Chris Black)
4416 * Don't capitalize header links in man page.
4418 * Added section on repl to CONTRIBUTING.md.
4420 * README: Added space after backslash in image example (#2329).
4422 * Document details of citation locator terms (Nick Bart).
4424 * Fixed some internal links in README (#2309).
4426 * Improve CSL documentation, variables documentations,
4427 links, and cross-references in README. (Andrew Dunning)
4429 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
4431 * Use `newManager` instead of `withManager` in recent `http-client`.
4432 This avoids a deprecation warning.
4434 * Allow building with latest versions of http-types,
4435 HUnit, criterion, syb, aeson.
4437 * Updated benchmark program for new criterion API.
4439 * Setup.hs: rewrite so as not to use process, directory, filepath.
4440 Using anything outside base is dangerous, since older
4441 versions of ghc may link against two different versions.
4443 * Added appveyor (Windows continuous integration) builds.
4445 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
4446 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
4447 `make .travis.yml` regenerates it based on the tested-with
4448 field of the cabal file.
4450pandoc (1.15.0.6)
4452 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
4453 Previously `--self-contained` wiped out all spaces in CSS,
4454 including semantically significant spaces. This was a regression
4455 from 1.14.x.
4457 * Markdown reader: don't allow bare URI links or autolinks in link
4458 label (#2300). Added test cases.
4460 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
4461 Previously we disallowed `-` at the end of an autolink,
4462 and disallowed the combination `=-`. This commit liberalizes the
4463 rules for allowing punctuation in a bare URI, and adds test cases.
4464 One potential drawback is that you can no longer put a bare
4465 URI in em dashes like this:
4466 `this uri---http://example.com---is an example.`
4467 But in this respect we now match github's treatment of bare URIs.
4469 * HTML writer: support speaker notes in dzslides.
4470 With this change `<div class="notes">` and also `<div class="notes"
4471 role="note">` will be output if `-t dzslides` is used. So we can
4472 have speaker notes in dzslides too. Thanks to maybegeek.
4474 * Updated dzslides template.
4476 * Improved documentation of options to print system default files (#2298).
4477 `--print-default-data-file` and `--print-default-template`.
4479 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
4480 (Tiziano Müller). MathJax seems currently to be the only maintained
4481 math rendering extension for DokuWiki.
4483 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
4484 div as top-level header (#2294). This fixes a bug with `--section-divs`,
4485 where the final references section added by pandoc-citeproc, enclosed in
4486 its own div, got nested in the div for the section previous to it.
4488 * Allow vector 0.11.
4490 * Require cmark > 0.4.
4492pandoc (1.15.0.5)
4494 * HTML writer: Fixed email javascript obfuscation with `mailto:`
4495 URLs (#2280). This fixes a potential security issue. Because
4496 single quotes weren't being escaped in the link portion, a
4497 specially crafted email address could allow javascript code injection.
4499 * Markdown/HTML readers: Avoid parsing partial URLs like
4500 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
4502 * RST reader: allow inline formatting in definition list field
4503 names (Lars-Dominik Braun).
4505 * PDF: Make sure `--latex-engine-opt` goes before the filename
4506 on the command line. LaTeX needs the argument to come after
4507 the options (#1779).
4509 * CommonMark writer: fixed tags used for super/subscript.
4511 * ConTeXt template: activate hanging indent for definition lists
4512 (Mauro Bieg).
4514 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
4515 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
4516 to include `hsb2hs` in Build-Tools in cabal.
4518 * Improved Windows installer (thanks to nkalvi).
4520 + When per-machine installation is chosen, the system path
4521 is updated instead of the user's.
4522 + An appropriate default is used for per-machine installation
4523 directory.
4524 + Admin privileges are no longer required for a per-user install
4526 * Travis: unpack sdist for build to catch packaging bugs.
4528 * Improved documentation on where user templates go (#2272).
4530pandoc (1.15.0.4)
4532 * Added pandoc.1 man page to the repository. It is no longer
4533 built as part of the cabal build process. (This proved too
4534 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
4535 when `README` is changed.
4537 * Copying of the man page now respects `--destdir` (#2262).
4539 * Improved error messages for filters. User is now informed if
4540 the filter requires an interpreter that isn't found in the path,
4541 or if the filter returns an error status.
4543pandoc (1.15.0.3)
4545 * Ensure target directory is created when installing man page.
4547pandoc (1.15.0.2)
4549 * Added files needed for building man page to Extra-Source-Files.
4551pandoc (1.15.0.1)
4553 * Man page is now built and installed as part of the cabal build
4554 process. Removed Makefile target for man page.
4556pandoc (1.15)
4558 * Man page changes:
4560 + Removed `--man1`, `--man5` options (breaking change).
4561 + Removed `Text.Pandoc.ManPages` module (breaking API change).
4562 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
4563 create the man page from README using a custom template and filters.
4564 + Added `man/` directory with template and filters needed to build
4565 man page.
4566 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
4567 Now there is just pandoc.1, which has all the content from README.
4568 This change was needed because of the extensive cross-references
4569 between parts of the README.
4570 + Removed old `data/pandoc.1.template` and
4571 `data/pandoc_markdown.5.template`.
4573 * OpenDocument writer: Do not add a carriage return after a hard
4574 line break (Michael Chladek).
4576 * ConTeXt writer:
4578 + use `\goto` for internal links.
4579 + Added a `%` at end for `\reference` to avoid spurious space.
4581 * Ignore sandbox on 'make quick'
4583pandoc (1.14.1)
4585 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
4586 to generate its own man pages. Man pages are no longer automatically
4587 generated in the build process (the process for this was too complex
4588 and prone to failure, #2190). The `make-pandoc-man-pages` executable
4589 has been removed. The `man/` directory has been removed, and man page
4590 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
4591 longer find pandoc's man pages in `man/`, but you can generate them using
4592 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
4594 * Added new unexported module: `Text.Pandoc.ManPages`.
4596 * `README` now acts like a data file (even though it isn't in
4597 `data/`). So, for example, `pandoc --print-default-data-file README`
4598 will produce the README.) This change was required for the `--man1`
4599 and `--man5` options, since the man pages are produced from the
4600 README, but it may be useful for other purposes as well.
4602 * Allow `reference.docx` and `reference.odt` to be used with
4603 `--print-default-data-file` and to shadow defaults if placed in
4604 the user data directory. Note that as of 1.14, we no longer
4605 include these files as data files; instead, we include their
4606 components. This change causes pandoc to behave as if it has
4607 these data files; they are constructed on demand when needed
4608 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
4610 * Fixed regression in CSS parsing with `--self-contained` (#2224).
4611 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
4612 silently drops big sections of CSS. This commit replaces the
4613 use of css-text with a small but principled CSS preprocessor,
4614 which removes whitespace and comments and replaces `url()` with
4615 base 64 data when possible.
4617 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
4618 This will allow math to work when pages are being viewed locally.
4620 * `Text.Pandoc.Options`: Export `plainExtensions`.
4621 These are the extensions used in `plain` output.
4623 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
4624 math mode; treat them as regular inline text. Normally these will
4625 cause an error in LaTeX, but there are contexts (e.g. `alltt`
4626 environments) where they are allowed.
4628 * HTML reader: allow `<body>` to close `<head>`.
4630 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
4632 * RST reader: Fix reference names with special characters
4633 (Lars-Dominik Braun).
4635 * Textile writer: escape `+` and `-` as entities (#2225).
4637 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
4639 * Plain writer: don't use symbols for super/subscript (#2237).
4640 Simplified code by using `plainExtensions`.
4642 * InDesign writer: Properly escape URLs containing more than one
4643 colon character (gohai).
4645 * Docx writer: Make sure we use dist version of `reference.docx`
4646 (and not the user's version) for certain settings. Taking some
4647 settings values from a user-supplied reference.docx can lead to
4648 corruption. This fixes a regression from the last release (#2249).
4650 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
4651 `getDefaultReferenceODT` (API change). These functions have been
4652 removed from the Docx and ODT writers.
4654 * LaTeX template (Xavier Olive):
4655 + Added `CJKmainfont` and `CJKoptions` variables.
4656 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
4658 * Epub templates: use `author.role`, not `author.type`.
4660 * Bump cmark version to >= 0.3.4.
4662 * Improved Windows installer (#2205, thanks to nkalvi).
4663 Users can now select a per-user or systemwide install, and can set
4664 the installation path. At the end of installation, the install location
4665 is given. The install location is also now given in the list of
4666 installed programs in Control Panel. Cleaner WiX syntax is used for
4667 setting the path.
4669 * Added `download_stats` target to Makefile.
4671pandoc (1.14.0.4)
4673 * Added missing commonmark template.
4675 * Improved try pandoc (moved button, show raw command).
4677pandoc (1.14.0.3)
4679 * Allow compilation with syb 0.5.*.
4681 * Custom writer: fixed some compiler warnings for ghc < 7.10.
4683pandoc (1.14.0.2)
4685 * Allow building with hslua 0.4.
4687pandoc (1.14.0.1)
4689 * Fixed problem with building of `reference.docx` and `reference.odt`
4690 when the `embed_data_files` flag is used. Instead of having a phase
4691 of the build where `reference.docx` and `reference.odt` are created
4692 from their constituent data files, we now construct these archives
4693 from their constituents when a `docx` or `odt` is built. The
4694 constituent files have been moved from `extra-source-files` to
4695 `data-files`, and `reference.docx` and `reference.odt` have been
4696 removed. Users can create their own `reference.docx` or
4697 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
4698 `make-reference-files.hs` has been removed, simplifying the build
4699 process (#2187)
4701 * Don't include generated man pages in extra-source-files (#2189).
4703 * Bumped upper bound for aeson.
4705 * ConTeXt writer: create internal link anchors for Div elements with
4706 identifiers. (This is needed for linked citations to work.)
4708pandoc (1.14)
4710 [new features]
4712 * Added `commonmark` as input and output format.
4714 * Added `--verbose` flag for debugging output in PDF production (#1840,
4715 #1653).
4717 * Allow wildcards in `--epub-embed-font` arguments (#1939).
4719 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
4721 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
4722 This is enabled by default for those markdown flavors that
4723 support reading shortcut reference links, namely: `markdown`,
4724 `markdown_strict`, `markdown_github`, `markdown_php`.
4725 If the extension is enabled, the reader parses shortcut reference
4726 links like `[foo]`, and the writer creates such links unless doing
4727 so would cause problems. Users of markdown flavors that support
4728 shortcut reference links should not notice a difference in reading
4729 markdown, but the markdown pandoc produces may differ.
4730 If shortcut links are not desired, the extension can be disabled
4731 in the normal way.
4733 [behavior changes]
4735 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
4736 A "dirty" TOC is created at the beginning of document.
4737 It can be regenerated after the document has been opened.
4739 * An implicit `--filter pandoc-citeproc` is now triggered only when the
4740 `--bibliography` option is used, and not when the `bibliography`
4741 field in metadata is specified (#1849).
4743 * Markdown reader:
4745 + Reference links with `implicit_header_references` are no longer
4746 case-sensitive (#1606).
4747 + Definition lists no longer require indentation for first line (#2087).
4748 Previously the body of the definition (after the `:` or `~` marker)
4749 needed to be in column 4. This commit relaxes that requirement,
4750 to better match the behavior of PHP Markdown Extra. So, now
4751 this is a valid definition list:
4753 foo
4754 : bar
4755 + Resolve a potentially ambiguity with table captions:
4757 foo
4759 : bar
4761 -----
4762 table
4763 -----
4765 Is "bar" a definition, or the caption for the table? We'll count
4766 it as a caption for the table.
4767 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
4768 Markdown Extra. Note: If you have been using headerless pipe tables,
4769 this change may cause existing tables to break.
4770 + Allow pipe tables with header but no body (#2017).
4771 + Allow a digit as first character of a citation key (Matthias Troffaes).
4772 See https://github.com/jgm/pandoc-citeproc/issues/97
4774 * LaTeX reader:
4776 + Don't limit includes to `.tex` extension (#1882).
4777 If the extension is not `.tex`, it must be given explicitly in
4778 the `\input` or `\include`.
4780 * Docx reader:
4782 + Allow numbering in the style file. This allows inherited styles
4783 with numbering (lists) (Jesse Rosenthal).
4785 * Org reader:
4787 + Support smart punctuation (Craig Bosma).
4788 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
4789 `:noexport:` tag set are not exported. This mirrors org-mode.
4790 + Put header tags into empty spans (Albert Krewinkel, #2160).
4791 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
4792 Instead of being interpreted as part of the headline, the tags are now
4793 put into the attributes of empty spans. Spans without textual content
4794 won't be visible by default, but they are detectable by filters. They
4795 can also be styled using CSS when written as HTML.
4796 + Generalize code block result parsing (Albert Krewinkel).
4797 Previously, only code blocks were recognized as result blocks;
4798 now, any kind of block can be the result.
4800 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
4801 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
4803 * HTML writer:
4805 + Add "inline" or "display" class to math spans (#1914).
4806 This allows inline and display math to be styled differently.
4807 + Include raw latex blocks if `--mathjax` specified (#1938).
4808 + Require highlighting-kate >= 0.5.14 (#1903).
4809 This ensures that all code blocks will be wrapped in a `div`
4810 with class `sourceCode`. Also, the default highlighting CSS
4811 now adds `div.sourceCode { x-overflow: auto; }`, which means
4812 that code blocks (even with line numbers) will acquire a scroll
4813 bar on screens too small to display them (e.g. mobile phones).
4814 See also jgm/highlighting-kate#65.
4816 * LaTeX writer:
4818 + Use a declaration for tight lists (Jose Luis Duran, Joseph
4819 Harriott). Previously, pandoc hard-coded some commands to make
4820 tight lists in LaTeX. Now we use a custom command instead,
4821 allowing the styling to be changed in a macro in the header.
4822 (Note: existing templates may need to be modified to include
4823 the definition of this macro. See the current template.)
4824 + Beamer output: if the header introducing a slide has the
4825 class `fragile`, add the `[fragile]` option to the slide (#2119).
4827 * MediaWiki writer:
4829 + Use `File:` instead of the deprecated `Image:` for images and
4830 other media files (Greg Rundlett).
4832 * DocBook writer:
4834 + Render a `Div (id,_,_) [Para _]` element as a `para` element
4835 with an `id` attribute. This makes links to citations work in
4836 DocBook with pandoc-citeproc.
4838 * RST writer:
4840 + Normalize headings to sequential levels (Nikolay Yakimov).
4841 This is pretty much required by docutils.
4842 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
4843 + Better handling of raw latex inline (#1961). We use
4844 `` :raw-latex:`...` `` and add a definition for this role to
4845 the template.
4847 * EPUB writer:
4849 + Remove `linear=no` from cover `itemref` (#1609).
4850 + Don't use `sup` element for epub footnotes (#1995).
4851 Instead, just use an a element with class `footnoteRef`.
4852 This allows more styling options, and provides better results
4853 in some readers (e.g. iBooks, where anything inside the a
4854 tag breaks popup footnotes).
4855 + Take TOC title from `toc-title` metadata field.
4857 * Docx writer:
4859 + Implemented `FirstParagraph` style (Jesse Rosenthal).
4860 Following the ODT writer, we add the `FirstParagraph` style to the
4861 first text paragraph following an image, blockquote, table, heading,
4862 or beginning of document. This allows it to be styled differently.
4863 The default is for it to be the same as `Normal`.
4864 + Added `BodyText` style (Jesse Rosenthal).
4865 We apply a `BodyText` style to all unstyled paragraphs. This is,
4866 essentially, the same as `Normal`, except that since not everything
4867 inherits from `BodyText` (the metadata won't, for example, or
4868 the headers or footnote numbers), we can change the text in the body
4869 without having to make exceptions for everything. If we do want to
4870 change *everything*, we can still do it through `Normal`.
4871 + Altered `Blockquote` style slightly (Jesse Rosenthal).
4872 Since `BlockQuote` derives from `BodyText`, we just want to specify
4873 by default that it won't indent, regardless of what `BodyText` does.
4874 Note that this will not produce any visible difference in the default
4875 configuration.
4876 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
4877 + Added a style to figure images (Nikolay Yakimov).
4878 Figures with empty captions use style `Figure`.
4879 Figures with nonempty captions use style `Figure with Caption`, which
4880 is based on `Figure`, and additionally has `keepNext` set.
4882 * ODT writer:
4884 + Added figure captions (Nikolay Yakimov). The following styles are
4885 used for figures:
4886 `Figure` -- for figure with empty caption),
4887 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
4888 `FigureCaption` (based on `Caption`) -- for figure captions.
4889 Also, `TableCaption` (based on `Caption`) is used for table captions.
4891 [API changes]
4893 * New `Text.Pandoc.Error` module with `PandocError` type
4894 (Matthew Pickering).
4896 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
4897 (Matthew Pickering). This allows better handling of errors.
4899 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
4901 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
4903 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
4904 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
4905 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
4906 Youssefi).
4908 * New `Ext_shortcut_reference_links` constructor for `Extension`
4909 (Konstantin Zudov).
4911 [bug fixes]
4913 * Markdown reader:
4915 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
4916 + Check for tex macros after indented code (#1973).
4917 + Rewrote `charsInBalancedBrackets` for efficiency.
4918 + Make sure a closing `</div>` doesn't get included in a
4919 definition list item (#2127).
4920 + Don't parse bracketed text as citation if it might be a link,
4921 image, or footnote (Nikolay Yakimov).
4922 + Require space after key in mmd title block (#2026, Nikolay
4923 Yakimov). Require space after key-value delimiter colon in mmd title
4924 block.
4925 + Require nonempty value in mmd title block (Nikolay Yakimov).
4926 + Disable all metadata block extensions when parsing
4927 metadata field values (#2026, Nikolay Yakimov). Otherwise we
4928 could get a mmd title block inside YAML metadata, for example.
4930 * HTML reader:
4932 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
4933 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
4934 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
4935 to see if the input starts with `<!--`. If not, it's bogus comment
4936 mode and we fail `htmlTag`.
4937 + Handle `base` tag; if it has an `href` value, this is added to
4938 all relative URLs in links and images.
4940 * DocBook reader:
4942 + Look inside "info" elements for section titles (#1931).
4944 * Docx reader:
4946 + Parse images in deprecated vml format (Jesse Rosenthal).
4947 + Allow sub/superscript verbatims (Jesse Rosenthal).
4948 Verbatim usually shuts off all other run styles, but we don't want it
4949 to shut off sub/superscript.
4951 * LaTeX reader:
4953 + Handle `tabular*` environment (#1850).
4954 Note that the table width is not actually parsed or taken into
4955 account, but pandoc no longer chokes on it.
4956 + Ignore options in `\lstinline` rather than raising error (#1997).
4957 + Add some test cases for simple tables (Mathias Schenner).
4958 + Handle valign argument in tables (Mathias Schenner) (currently
4959 we just ignore this).
4960 + Allow non-empty colsep in tables (Mathias Schenner).
4961 The `tabular` environment allows non-empty column separators
4962 with the "@{...}" syntax. Previously, pandoc would fail to
4963 parse tables if a non-empty colsep was present. With this
4964 commit, these separators are still ignored, but the table gets
4965 parsed. A test case is included.
4966 + Recognize `\newpage` as a block command.
4967 + Allow block content in \title{} (#2001).
4968 + Check for block-level newcommand aliases in blockCommand (Nikolay
4969 Yakimov).
4970 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
4971 + Properly gobble spaces after `\\` (#2007).
4973 * Textile reader:
4975 + Handle newlines in table cells, and empty cells (#1919).
4977 * Org reader:
4979 + Allow image links with non-image targets (Hans-Peter Deifel).
4980 This matches behavior of Org-Mode for links like
4981 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
4983 * Docbook writer:
4985 + Don't print empty id attributes (thanks to Steve Horne).
4987 * HTML writer:
4989 + Fixed list-style-type for numbered example lists.
4990 Should be "decimal," not "example" (#1902).
4991 + Do not omit missing `alt` attribute on `img` tag (#1131,
4992 Konstantin Zudov).
4993 + Allow multiple colgroups in table (#2122).
4994 + In revealjs, ensure that lists in speaker notes don't add "fragment"
4995 classes, which can cause additional keypresses to be needed to
4996 advance a slide (#1394).
4998 * LaTeX writer:
5000 + Don't escape `$` in URL (#1913).
5001 + Don't use listings in headers (Matthew Pickering, #1963).
5002 + Recognize book documentclass if set in metadata (#1971).
5003 This sets `--chapters` implicitly if the documentclass in metadata
5004 is a book documentclass. Previously this was done only if a book
5005 documentclass was set in a variable.
5006 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
5007 + Make `mainlang` work when `lang` is in metadata (#2174).
5009 * Texinfo writer:
5011 + Fix wrapping by using breakable spaces (Tim Lin).
5013 * RST writer:
5015 + Fixed toc depth in RST writer. Previously the depth was being
5016 rendered as a floating point number with a decimal point.
5018 * Markdown writer:
5020 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
5021 compatibility with original Markdown. We now escape `<` and `>`
5022 with entities. Also, we now backslash-escape square brackets.
5023 + Avoid introducing spurious list items through wrapping (#1946).
5024 + Don't emit span tags if plain or raw HTML disabled.
5026 * MediaWiki writer:
5028 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
5030 * AsciiDoc writer:
5032 + Insert some needed blank lines (#1860).
5033 + Avoid wrapping after list marker (#1858).
5035 * EPUB writer:
5037 + Properly handle internal links to IDs in spans, divs (#1884).
5038 + Use plain writer for metadata dc: fields (#2121).
5039 This gives better results when we have, e.g. multiple paragraphs.
5040 Note that tags aren't allowed in these fields.
5041 + Properly handle image links without an extension (#1855).
5042 + Improved chapter splitting and internal link rewriting (#1887,
5043 #2162, #2163). This will ensure that internal links work and
5044 that the references section produced by pandoc-citeproc is
5045 in its own chapter.
5046 + Fixed handling of svg images (#2183).
5048 * ICML writer:
5050 + Better handling of raw blocks and inlines (#1951).
5051 Previously these were always escaped and printed verbatim.
5052 Now they are ignored unless the format is `icml`, in which
5053 case they are passed through unescaped.
5054 + Fixed image URIs in ICML output (gohai).
5056 * Custom writer:
5058 + Raise error if loadstring returns an error status.
5059 + Raise `PandocLuaException` instead of using 'error'.
5060 Eventually we'll change the return type so that no exception
5061 is involved, but at least this can be trapped.
5062 + Use UTF-8 aware bytestring conversion.
5063 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
5064 Also factored out ByteString, since it's only used as an intermediate
5065 representation.
5067 * Docx writer:
5069 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
5070 + Filter out illegal XML characters (#1992, Matthew Pickering).
5071 + Added `noProof` to docx syntax highlighting `SourceCode` style.
5072 + Added footnotes id -1 and 0 (Jesse Rosenthal).
5073 Word uses, by default, footnotes with id -1 and 0 for separators. If a
5074 user modifies `reference.docx`, they will end up with a `settings.xml`
5075 file that references these footnotes, but no such footnotes in the
5076 document. This will produce a corruption error. Here we add these to the
5077 document and `settings.xml` file, so future modifications won't break
5078 the file.
5079 + Handle lists correctly inside table cells (Jesse Rosenthal).
5080 Previously we didn't transform lists inside table cells.
5081 + Set firstRow information in tables (Nikolay Yakimov).
5082 + Don't replace `SourceCode` style in `reference.docx` if it is defined
5083 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
5084 any `SourceCode` and `*Tok` styles in `reference.docx`.
5085 + Attempt to match international style names (#1607, Nikolay Yakimov).
5086 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
5087 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
5088 `Definition`, `First Paragraph`.
5089 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
5090 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
5091 `Footnote Ref -> Footnote Reference`.
5092 + Added `Caption` style (Nikolay Yakimov).
5093 + Changed these styles' inheritance (Nikolay Yakimov):
5094 `Image Caption <- Caption`, `Table Caption <- Caption`.
5095 + Remove `SourceCode` style from `reference.docx` (#1872).
5096 This is added automatically by the docx writer.
5097 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
5099 * `Text.Pandoc.PDF`
5101 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
5102 #1832).
5103 + More comprehensible errors on image conversion (#2067).
5104 EPS can't be supported without shelling out to something like
5105 ImageMagick, but at least we can avoid mysterious error messages.
5107 * `Text.Pandoc.Shared`:
5109 + Make safeRead safe (#1801, Matthew Pickering).
5110 + Addded `mapLeft`, `hush` (Matthew Pickering).
5112 * `Text.Pandoc.Pretty`:
5114 + Remove partial function (Matthew Pickering).
5116 * `Text.Pandoc.SelfContained`:
5118 + Add `;charset=utf-8` to script mime type if missing (#1842).
5119 + Improved building of data URIs (#1940). Now base64 is used except
5120 for `text/*` mime types.
5121 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
5122 + Properly handle data URIs in css urls (#2129).
5123 Use a proper CSS parser (adds dependency on `text-css`).
5125 * `Text.Pandoc.UTF8`:
5127 + Better handling of bare CRs in input files (#2132).
5128 Previously we just stripped them out; now we convert
5129 other line ending styles to LF line endings.
5131 * `Text.Pandoc.ImageSize`:
5133 + Fixed some exif header parsing bugs (#1834).
5134 + Make imageSize return an Either, not a Maybe (#1834).
5135 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
5136 parse failure (rather than `error`).
5137 + Improved warnings when image size can't be determined.
5138 + Removed error landmines (Matthew Pickering).
5140 * Added woff2 to MIME types (Alfred Wechselberger).
5142 * pandoc: When a binary input format is used, warn that file
5143 arguments past the first one are being ignored (Matthew Pickering).
5145 [template changes]
5147 * LaTeX template:
5149 + Degrade gracefully if `\paragraph` not defined.
5150 + Include `grffile` together with `graphicx` (#2074).
5151 This properly handles filenames containing spaces and dots.
5152 + Redefine `\paragraph`, `\subparagraph`... to behave more
5153 like section headers (#1658).
5154 + Import hyperref before polyglossia to avoid an error with xelatex,
5155 "please load package hyperref before bidi package" (Nick Bart).
5156 + Added `toccolor` variable to control link color in toc (Kaixhin).
5158 * LaTeX, Beamer templates:
5160 + Provide `\tightlist`, which is now used by the LaTeX writer.
5161 + Use polyglossia in beamer (#85).
5162 + Use `bibliography` instead of `biblio-files`
5163 (#1661). Also use `\addbibresource` instead of `\bibliography` for
5164 biblatex.
5165 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
5166 variable that is derived from a comma-separated list in `lang`;
5167 the last language is `mainlang` and the others are `otherlang`.
5169 * EPUB templates:
5171 + Use `div`, not `p`, for "rights" on title page.
5172 + Added header-includes, include-before, include-after (#1987).
5174 * OpenDocument template:
5176 + Use `text:p` instead of `text:h` for title.
5177 Using `text:h` causes problems with numbering. Closes #2059.
5178 Thansk to @nkalvi for diagnosing this.
5180 * reveal.js template:
5182 + Link to non-minified css, js. The minified versions no longer
5183 ship with the library.
5184 + Correctly include style CSS (#1949).
5185 + New configurable options options: `center`, `maxScale`, `slideNuber`
5186 (Dmitry Smirnov, pandoc-templates#89).
5187 + Moved custom CSS after theme. This allows custom CSS to modify
5188 themes, instead of being replaced by them.
5189 + Allow `center` to be set to false.
5191 [under the hood improvements]
5193 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
5194 Yakimov). Instead the repository now includes the component text files,
5195 and the zipped binaries are built from these using a helper
5196 program, `make-reference-files`. This should make maintenance of
5197 these components easier going forward.
5199 * `Text.Pandoc.Parsing`:
5201 + Added new `<+?>` combinator (Nikolay Yakimov).
5202 + Added `stateHeaderKeys` to `ParserState`.
5204 * `make_deb.sh` fixes:
5206 + Detect architecture.
5207 + Add Installed-Size to debian package control file (#1900).
5208 + Use `fakeroot` to get permissions right.
5209 + Use `mkdir` and `cp` instead of `install`.
5210 + Set permissions of directories to 755.
5211 + Install in `/usr` rather than `/usr/local`.
5212 + Compress man pages.
5213 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
5215 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
5216 to assist with transition to `time` 1.5.
5218 * Updated CONTRIBUTING.md with information about issue tags (Matthew
5219 Pickering).
5221 * Updated travis installs to the new sudo-less syntax (Tim Lin).
5223 * Updated dependency version bounds.
5225 * EPUB tests: don't use `joinPath`, which varies across platforms.
5226 Instead, use a forward-slash to join paths, regardless of the
5227 platform. This matches the way `MediaBag` now works.
5229 * Clarify JSON input and output in usage message (Caleb McDaniel).
5231 * Improved INSTALL instructions.
5233 * Always build man pages. Removed make-pandoc-man-pages flag.
5235 * Makefile: removed man target, now that we generate man pages by default.
5237 * README:
5239 + Fixed typos (J. Lewis Muir).
5240 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
5241 + Added note on in-field markup in biblio databases (Nick Bart).
5242 + Fixed misleading example of raw HTML block.
5243 + Various minor formatting and consistency fixes for the program
5244 options (Andreas Lööw).
5245 + Made definition lists for options all "loose" for consistency.
5246 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
5247 `--bib2json` and `--bib2yaml` options (Nick Bart).
5248 + Removed obsolete reference to `mods2yaml` (Nick Bart).
5249 + Added section on syntax highlighting.
5250 + Documented `toccolor` variable.
5252pandoc (1.13.2.1)
5254 * Updated to build with ghc 7.10.1.
5256 * Bumped package upper bounds for filepath, blaze-html,
5257 blaze-markup.
5259pandoc (1.13.2)
5261 * TWiki Reader: add new new twiki reader (API change, Alexander Sulfrian).
5263 * Markdown reader:
5265 + Better handling of paragraph in div (#1591).
5266 Previously text that ended a div would be parsed as Plain
5267 unless there was a blank line before the closing div tag.
5268 + Don't treat a citation as a reference link label (#1763).
5269 + Fix autolinks with following punctuation (#1811).
5270 The price of this is that autolinked bare URIs can no longer
5271 contain `>` characters, but this is not a big issue.
5272 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
5273 + Allow `startnum` to work without `fancy_lists`. Formerly
5274 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
5276 * RST reader (all Daniel Bergey):
5278 + Parse quoted literal blocks (#65). RST quoted literal blocks are
5279 the same as indented literal blocks (which pandoc already supports)
5280 except that the quote character is preserved in each line.
5281 + Parse RST class directives. The class directive accepts one or more
5282 class names, and creates a Div value with those classes. If the
5283 directive has an indented body, the body is parsed as the children of
5284 the Div. If not, the first block folowing the directive is made a
5285 child of the Div. This differs from the behavior of rst2xml, which
5286 does not create a Div element. Instead, the specified classes are
5287 applied to each child of the directive. However, most Pandoc Block
5288 constructors to not take an Attr argument, so we can't duplicate this
5289 behavior.
5290 + Warn about skipped directives.
5291 + Literal role now produces Code. Code role should have "code" class.
5292 + Improved support for custom roles
5294 - Added `sourceCode` to classes for `:code:` role, and anything
5295 inheriting from it.
5296 - Add the name of the custom role to classes if the Inline
5297 constructor supports Attr.
5298 - If the custom role directive does not specify a parent role,
5299 inherit from the `:span:` role.
5301 This differs somewhat from the `rst2xml.py` behavior. If a custom
5302 role inherits from another custom role, Pandoc will attach both
5303 roles' names as classes. `rst2xml.py` will only use the class of
5304 the directly invoked role (though in the case of inheriting from a
5305 `:code:` role with a `:language:` defined, it will also provide the
5306 inherited language as a class).
5307 + Warn about ignored fields in role directives.
5309 * LaTeX reader:
5311 + Parse label after caption into a span instead of
5312 inserting an additional paragraph of bracketed text (#1747).
5313 + Parse math environments as inline when possible (#1821).
5314 + Better handling of `\noindent` and `\greektext` (#1783).
5315 + Handle `\texorpdfstring` more gracefully.
5316 + Handle `\cref` and `\sep` (Wikiwide).
5317 + Support `\smartcite` and `\Smartcite` from biblatex.
5319 * HTML reader:
5321 + Retain display type of MathML output (#1719, Matthew Pickering).
5322 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
5323 + Make `embed` tag either block or inline (#1756).
5325 * DocBook reader:
5327 + Handle `keycombo`, `keycap` (#1815).
5328 + Get string content in inner tags for literal elements (#1816).
5329 + Handle `menuchoice` elements better, with a `>` between (#1817).
5330 + Include `id` on section headers (#1818).
5331 + Document/test "type" as implemented (Brian O'Sullivan).
5332 + Add support for calloutlist and callout (Brian O'Sullivan).
5333 We treat a calloutlist as a bulleted list. This works well in practice.
5334 + Add support for `classname` (Bryan O'Sullivan).
5336 * Docx reader:
5338 + Fix window path for image lookup (Jesse Rosenthal).
5339 Don't use os-sensitive "combine", since we always want the paths in our
5340 zip-archive to use forward-slashes.
5341 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
5342 When users number their headers, Word understands that as a single item
5343 enumerated list. We make the assumption that such a list is, in fact,
5344 a header.
5345 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
5346 There could be new top-level headers after making lists, so we have to
5347 rewrite links after that.
5348 + Use polyglot header list (Jesse Rosenthal).
5349 We're just keeping a list of header formats that different languages
5350 use as their default styles. At the moment, we have English, German,
5351 Danish, and French. We can continue to add to this.
5352 This is simpler than parsing the styles file, and perhaps less
5353 error-prone, since there seems to be some variations, even within a
5354 language, of how a style file will define headers.
5355 + Remove header class properly in other langs (Jesse Rosenthal).
5356 When we encounter one of the polyglot header styles, we want to remove
5357 that from the par styles after we convert to a header. To do that, we
5358 have to keep track of the style name, and remove it appropriately.
5359 + Account for external link URLs with anchors. Previously, if a URL
5360 had an anchor, the reader would incorrectly identify it as an
5361 internal link and return only the anchor as URL. (Caleb McDaniel)
5362 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
5364 * Org reader:
5366 + Added state changing blanklines (Jesse Rosenthal).
5367 This allows us to emphasize at the beginning of a new paragraph (or, in
5368 general, after blank lines).
5369 + Fixed bug with bulleted lists:
5371 - a
5372 - b
5373 * c
5375 was being parsed as a list, even though an unindented `*`
5376 should make a heading. See
5377 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
5378 + Org reader: absolute, relative paths in link (#1741, Albert
5379 Krewinkel). The org reader was too restrictive when parsing links;
5380 some relative links and links to files given as absolute paths
5381 were not recognized correctly.
5382 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
5383 This is important for use in gitit, which uses empty links
5384 for wikilinks.
5385 + Respect indent when parsing Org bullet lists (#1650, Timothy
5386 Humphries). Fixes issue with top-level bullet list parsing.
5387 + Fix indent issue for definition lists (Timothy Humphries,
5388 see #1650, #1698, #1680).
5389 + Parse multi-inline terms correctly in definition list (#1649,
5390 Matthew Pickering).
5391 + Fix rules for emphasis recognition (Albert Krewinkel).
5392 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
5393 strings. This is wrong, as `,` and `'` are forbidden border chars and
5394 may not occur on the inner border of emphasized text.
5395 + Drop COMMENT document trees (Albert Krewinkel).
5396 Document trees under a header starting with the word `COMMENT` are
5397 comment trees and should not be exported. Those trees are dropped
5398 silently (#1678).
5399 + Properly handle links to `file:target` (Albert Krewinkel).
5400 Org links like `[[file:target][title]]` were not handled correctly,
5401 parsing the link target verbatim. The org reader is changed such that
5402 the leading `file:` is dropped from the link target (see #756, #1812).
5403 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
5404 Org supports special symbols which can be included using LaTeX syntax,
5405 but are actually MathML entities. Examples for this are
5406 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
5407 or `\copy` (the copyright sign ©)
5409 * EPUB reader:
5411 + URI handling improvements. Now we outsource most of the work to
5412 `fetchItem'`. Also, do not include queries in file extensions (#1671).
5414 * LaTeX writer:
5416 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
5417 + Handle consecutive linebreaks (#1733).
5418 + Protect graphics in headers (Jesse Rosenthal).
5419 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
5420 + Put `~` before header in list item text (Jesse Rosenthal).
5421 Because of the built-in line skip, LaTeX can't handle a section header
5422 as the first element in a list item.
5423 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
5424 + Better handling of display math in simple tables (#1754).
5425 We convert display math to inline math in simple tables,
5426 since LaTeX can't deal with display math in simple tables.
5427 + Escape spaces in code (#1694, Bjorn Buckwalter).
5429 * MediaWiki writer:
5431 + Fixed links with URL = text. Previously these were rendered as bare
5432 words, even if the URL was not an absolute URL (#1825).
5434 * ICML writer:
5436 + Don't force all citations into footnotes.
5438 * RTF writer:
5440 + Add blankline at end of output (#1732, Matthew Pickering).
5442 * RST writer:
5444 + Ensure blank line after figure.
5445 + Avoid exces whitespace after last list item (#1777).
5446 + Wrap line blocks with spaces before continuations (#1656).
5447 + Fixed double-rendering of footnotes in RST tables (#1769).
5449 * DokuWiki writer:
5451 + Better handling of block quotes. This change ensures that
5452 multiple paragraph blockquotes are rendered using native `>`
5453 rather than as HTML (#1738).
5454 + Fix external images (#1739). Preface relative links with ":",
5455 absolute URIs without. (Timothy Humphries)
5457 * HTML writer:
5459 + Use protocol-relative URL for mathjax.
5460 + Put newline btw img and caption paragraph.
5461 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
5462 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
5463 This adds `KaTeX` to `HTMLMathMethod` (API change).
5464 + Don't double render when `email-obfuscation=none` (#1625, Matthew
5465 Pickering).
5466 + Make header attributes work outside top level (#1711).
5467 Previously they only appeared on top level header elements.
5468 Now they work e.g. in blockquotes.
5470 * ODT writer:
5472 + Correctly handle images without extensions (#1729).
5473 + Strip querystring in ODT write (#1682, Todd Sifleet).
5475 * FB2 writer:
5477 + Add newline to output.
5479 * EPUB writer:
5481 + Don't add `sourceURL` to absolute URIs (#1669).
5482 + Don't use unsupported `opf:title-type` for epub2.
5483 + Include "landmarks" section in nav document for epub3 (#1757).
5484 + Removed playOrder from navpoint elements in ncx file (#1760).
5485 These aren't required, and they make manual modification of epubs
5486 difficult.
5487 + Extract title even from structured title.
5488 + Don't include nav node in spine unless `--toc` was requested.
5489 Previously we included it in the spine with `linear="no"`, leading
5490 to odd results in some readers (#1593).
5491 + Fixed absolute URI detection (#1672).
5492 + Correctly resolve relative URIs (#1671).
5493 + Use regular page template for `nav.xhtml`, including doctype (#1759).
5495 * Docx writer:
5497 + Put docx table captions above tables (#1641, Nikolay Yakimov).
5498 + Get the page width from the reference docx file, and use
5499 it to scale images that are too large to fit (Grégory Bataille).
5500 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
5501 are inferred based on `<w:name val="heading #">` fallback, if there
5502 are no en-US "Heading#" styles
5503 + Look in user data dir for archive `reference.docx`.
5504 + Renumber header and footer relationships to avoid collisions (Jesse
5505 Rosenthal). We previously took the old relationship names of the
5506 headers and footer in secptr. That led to collisions. We now make
5507 a map of availabl names in the relationships file, and then rename
5508 in secptr.
5510 * ConTeXt writer:
5512 + Add function toLabel (Mark Szepieniec).
5513 This function can be used to sanitize reference labels so that
5514 they do not contain any of the illegal characters \#[]",{}%()|= .
5515 Currently only Links have their labels sanitized, because they
5516 are the only Elements that use passed labels.
5518 * `Text.Pandoc.Shared`:
5520 + Moved import of `toChunks` outside of CPP conditional (#1590).
5521 + Fix `inDirectory` to reset to the original directory in case
5522 an exception occurs (Freiric Barral).
5524 * Templates:
5526 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
5527 Thanks to bluebirch.
5528 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
5529 (#1616).
5530 + LaTeX template: Add shorthands=off to babel options (#1648).
5531 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
5532 This aids styling, making it possible for example to set 0 margins
5533 on the title page (#1758).
5534 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
5535 Previously we just expected 'title', 'subtitle', 'author', 'date'.
5536 Now we still support those, but also support the format recommended
5537 for epub metadata in the pandoc README:
5539 ---
5540 title:
5541 - type: main
5542 text: My Book
5543 - type: subtitle
5544 text: An investigation of metadata
5545 creator:
5546 - role: author
5547 text: John Smith
5548 - role: editor
5549 text: Sarah Jones
5550 identifier:
5551 - scheme: DOI
5552 text: doi:10.234234.234/33
5553 publisher: My Press
5554 rights: (c) 2007 John Smith, CC BY-NC
5555 ...
5557 * `Text.Pandoc.Templates.getDefaultTemplate`:
5558 don't fail when called with "fb2" (#1660).
5560 * `Text.Pandoc.Parsing`:
5562 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
5563 For example: `$x = \text{the $n$th root of $y$}` (#1677).
5564 + Change `parseFromString` to fail if not all input is consumed.
5565 (Matthew Pickering)
5566 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
5567 used by more readers (API change, Daniel Bergey).
5569 * `Text.Pandoc.Pretty`:
5571 + Improve performance of `realLength` (Matthew Pickering).
5572 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
5573 were getting at the end of markdown fragments (as well as rst, org,
5574 etc.) (#1705).
5576 * `Text.Pandoc.MIME`:
5578 + Add mime type for WebVTT (Jason Ronallo).
5579 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
5580 This is needed for epub3 validation.
5582 * `Text.Pandoc.MediaBag`:
5584 + Fix Windows specific path problems (#1597).
5586 * `Text.Pandoc.Shared`:
5588 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
5590 * Link the test suite using `-threaded`.
5591 This allows the test suite to be run using `+RTS -N`.
5593 * Added `network` dependency under `network-uri` flag in test section.
5595 * Give better error messages when someone tries to convert from
5596 pdf, doc, odt (#1683).
5598 * Added `track` to list of tags treated by `--self-contained` (#1664).
5600pandoc (1.13.1)
5602 * Fixed `--self-contained` with Windows paths (#1558).
5603 Previously `C:\foo.js` was being wrongly interpreted as a URI.
5605 * HTML reader: improved handling of tags that can be block or inline.
5606 Previously a section like this would be enclosed in a paragraph,
5607 with RawInline for the video tags (since video is a tag that can
5608 be either block or inline):
5610 <video controls="controls">
5611 <source src="../videos/test.mp4" type="video/mp4" />
5612 <source src="../videos/test.webm" type="video/webm" />
5613 <p>
5614 The videos can not be played back on your system.<br/>
5615 Try viewing on Youtube (requires Internet connection):
5616 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
5617 Youtube</a>.
5618 </p>
5619 </video>
5621 This change will cause the video and source tags to be parsed
5622 as RawBlock instead, giving better output.
5623 The general change is this: when we're parsing a "plain" sequence
5624 of inlines, we don't parse anything that COULD be a block-level tag.
5626 * Docx reader:
5628 + Be sensitive to user styles. Note that "Hyperlink" is
5629 "blacklisted," as we don't want the default underline styling to be
5630 inherited by all links by default (Jesse Rosenthal).
5631 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
5632 This makes to docx reader's native output fit with the way the markdown
5633 reader understands its markdown output.
5635 * Textile writer: Extended the range of cases where native textile
5636 tables will be used (as opposed to raw HTML): we now handle any
5637 alignment type, but only for simple tables with no captions.
5639 * Txt2Tags reader:
5641 + Header is now parsed only if standalone flag is set (Matthew Pickering).
5642 + The header is now parsed as meta information. The first line is the
5643 `title`, the second is the `author` and third line is the `date`
5644 (Matthew Pickering).
5645 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
5646 + Fixed crash when reading from stdin.
5648 * EPUB writer: Don't use page-progression-direction in EPUB2, which
5649 doesn't support it. Also, if page-progression-direction not specified
5650 in metadata, don't include the attribute even in EPUB3; not including it
5651 is the same as including it with the value "default", as we did before.
5652 (#1550)
5654 * Org writer: Accept example lines with indentation at the beginning
5655 (Calvin Beck).
5657 * DokuWiki writer:
5659 + Refactor to use Reader monad (Matthew Pickering).
5660 + Avoid using raw HTML in table cells; instead, use `\\`
5661 instead of newlines (Jesse Rosenthal).
5662 + Properly handle HTML table cell alignments, and use spacing
5663 to make the tables look prettier (#1566).
5665 * Docx writer:
5667 + Bibliography entries get `Bibliography` style (#1559).
5668 + Implement change tracking (Jesse Rosenthal).
5670 * LaTeX writer:
5672 + Fixed a bug that caused a table caption to repeat across all pages
5673 (Jose Luis Duran).
5674 + Improved vertical spacing in tables and made it customizable using
5675 standard lengths set by booktab. See
5676 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
5677 (Jose Luis Duran).
5678 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
5679 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
5680 + Made horizontal rules more flexible (Jose Luis Duran).
5682 * Text.Pandoc.MIME:
5684 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
5685 Code cleanups (Artyom Kazak).
5687 * Templates:
5689 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
5690 thanks lemzwerg).
5692 * Improved OSX build procedure.
5694 * Added `network-uri` flag, to deal with split of `network-uri` from
5695 `network`.
5697 * Fix build dependencies for the `trypandoc` flag, so that they are
5698 ignored if `trypandoc` flag is set to False (Gabor Pali).
5700 * Updated README to remove outdated claim that `--self-contained`
5701 looks in the user data directory for missing files.
5703pandoc (1.13.0.1)
5705 * Docx writer:
5707 + Fixed regression which bungled list numbering (#1544), causing
5708 all lists to appear as basic ordered lists.
5709 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
5710 Added a property to all table rows where the sum of column widths
5711 is specified in pct (fraction of 5000). This helps persuade Word
5712 to lay out the table with the widths we specify.
5714 * Fixed a bug in Windows 8 which caused pandoc not to find the
5715 `pandoc-citeproc` filter (#1542).
5717 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
5718 Most significantly, the reader now uses Builder, leading to some
5719 performance improvements.
5721 * HTML reader: Parse appropriately styled span as SmallCaps.
5723 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
5724 `superscript`, and `subscript` extensions, respectively, are
5725 deactivated (#1127).
5727 * Added `trypandoc` flag to build CGI executable used in the online
5728 demo.
5730 * Makefile: Added 'quick', 'osxpkg' targets.
5732 * Updated README in templates to indicate templates license.
5733 The templates are dual-licensed, BSD3 and GPL2+.
5735pandoc (1.13)
5737 [new features]
5739 * Added `docx` as an input format (Jesse Rosenthal). The docx
5740 reader includes conversion of native Word equations to pandoc
5741 LaTeX `Math` elements. Metadata is taken from paragraphs at the
5742 beginning of the document with styles `Author`, `Title`, `Subtitle`,
5743 `Date`, and `Abstract`.
5745 * Added `epub` as an input format (Matthew Pickering). The epub
5746 reader includes conversion of MathML to pandoc LaTeX `Math`
5747 elements.
5749 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
5750 Txt2tags is a lightweight markup format described at
5751 <http://txt2tags.org/>.
5753 * Added `dokuwiki` as an output format (Clare Macrae).
5755 * Added `haddock` as an output format.
5757 * Added `--extract-media` option to extract media contained in a zip
5758 container (docx or epub) while adjusting image paths to point to the
5759 extracted images.
5761 * Added a new markdown extension, `compact_definition_lists`, that
5762 restores the syntax for definition lists of pandoc 1.12.x, allowing
5763 tight definition lists with no blank space between items, and
5764 disallowing lazy wrapping. (See below under behavior changes.)
5766 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
5768 * Added extensions `native_spans` and `native_divs` to activate
5769 parsing of material in HTML span or div tags as Pandoc Span
5770 inlines or Div blocks.
5772 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
5773 Textile, and MediaWiki readers. This is an option intended
5774 for debugging parsing problems; ordinary users should not need
5775 to use it.
5777 [behavior changes]
5779 * Changed behavior of the `markdown_attribute` extension, to bring
5780 it in line with PHP markdown extra and multimarkdown. Setting
5781 `markdown="1"` on an outer tag affects all contained tags,
5782 recursively, until it is reversed with `markdown="0"` (#1378).
5784 * Revised markdown definition list syntax (#1429). Both the reader
5785 and writer are affected. This change brings pandoc's definition list
5786 syntax into alignment with that used in PHP markdown extra and
5787 multimarkdown (with the exception that pandoc is more flexible about
5788 the definition markers, allowing tildes as well as colons). Lazily
5789 wrapped definitions are now allowed. Blank space is required
5790 between list items. The space before a definition is used to determine
5791 whether it is a paragraph or a "plain" element. **WARNING: This change
5792 may break existing documents!** Either check your documents for
5793 definition lists without blank space between items, or use
5794 `markdown+compact_definition_lists` for the old behavior.
5796 * `.numberLines` now works in fenced code blocks even if no language
5797 is given (#1287, jgm/highlighting-kate#40).
5799 * Improvements to `--filter`:
5801 + Don't search PATH for a filter with an explicit path.
5802 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
5803 the system path, even if there was a `caps.py` in the working directory.
5804 + Respect shebang if filter is executable (#1389).
5805 + Don't print misleading error message.
5806 Previously pandoc would say that a filter was not found,
5807 even in a case where the filter had a syntax error.
5809 * HTML reader:
5811 + Parse `div` and `span` elements even without `--parse-raw`,
5812 provided `native_divs` and `native_spans` extensions are set.
5813 Motivation: these now generate native pandoc Div and Span
5814 elements, not raw HTML.
5815 + Parse EPUB-specific elements if the `epub_html_exts`
5816 extension is enabled. These include `switch`, `footnote`,
5817 `rearnote`, `noteref`.
5819 * Org reader:
5821 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
5822 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
5823 `\cite{Coffee}`), can be used without any further escaping (Albert
5824 Krewinkel).
5826 * Textile reader and writer:
5828 + The `raw_tex` extension is no longer set by default. You can
5829 enable it with `textile+raw_tex`.
5831 * DocBook reader:
5833 + Support `equation`, `informalequation`, `inlineequation` elements with
5834 `mml:math` content. This is converted into LaTeX and put into a Pandoc
5835 Math inline.
5837 * Revised `plain` output, largely following the style of Project
5838 Gutenberg:
5840 + Emphasis is rendered with `_underscores_`, strong emphasis
5841 with ALL CAPS.
5842 + Headings are rendered differently, with space to set them off,
5843 not with setext style underlines. Level 1 headers are ALL CAPS.
5844 + Math is rendered using unicode when possible, but without the
5845 distracting emphasis markers around variables.
5846 + Footnotes use a regular `[n]` style.
5848 * Markdown writer:
5850 + Horizontal rules are now a line across the whole page.
5851 + Prettier pipe tables. Columns are now aligned (#1323).
5852 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
5853 no longer emits any raw HTML, including span and div tags
5854 generated by Span and Div elements.
5855 + Use span with style for `SmallCaps` (#1360).
5857 * HTML writer:
5859 + Autolinks now have class `uri`, and email autolinks have class
5860 `email`, so they can be styled.
5862 * Docx writer:
5864 + Document formatting is carried over from `reference.docx`.
5865 This includes margins, page size, page orientation, header,
5866 and footer, including images in headers and footers.
5867 + Include abstract (if present) with `Abstract` style (#1451).
5868 + Include subtitle (if present) with `Subtitle` style, rather
5869 than tacking it on to the title (#1451).
5871 * Org writer:
5873 + Write empty span elements with an id attribute as org anchors.
5874 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
5876 * LaTeX writer:
5878 + Put table captions above tables, to match the conventional
5879 standard. (Previously they appeared below tables.)
5880 + Use `\(..\)` instead of `$..$` for inline math (#1464).
5881 + Use `\nolinkurl` in email autolinks. This allows them to be styled
5882 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
5883 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
5884 curly quotes in the PDF output (#1364).
5885 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
5886 do not appear before the overlays in which their markers appear
5887 (#1525).
5888 + Don't produce a `\label{..}` for a Div or Span element. Do produce
5889 a `\hyperdef{..}` (#1519).
5891 * EPUB writer:
5893 + If the metadata includes `page-progression-direction` (which can be
5894 `ltr` or `rtl`, the `page-progression-direction` attribute will
5895 be set in the EPUB spine (#1455).
5897 * Custom lua writers:
5899 + Custom writers now work with `--template`.
5900 + Removed HTML header scaffolding from `sample.lua`.
5901 + Made citation information available in lua writers.
5903 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
5904 adjacent `RawBlock`s when possible.
5906 [API changes]
5908 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
5910 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
5911 Pickering).
5913 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
5914 Pickering).
5916 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
5917 (Clare Macrae).
5919 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
5921 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
5922 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
5923 readers return a pair of a `Pandoc` document and a `MediaBag` with
5924 the media resources they contain. This can be extracted using
5925 `--extract-media`. Writers that incorporate media (PDF, Docx,
5926 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
5927 for resources in the `MediaBag` generated by the reader, in addition to
5928 the file system or web.
5930 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
5931 Renamed `readTeXMath'` to `texMathToInlines`.
5933 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
5934 `readers` now associates names of readers with `Reader`
5935 structures. This allows inclusion of readers, like the docx
5936 reader, that take binary rather than textual input.
5938 * `Text.Pandoc.Shared`:
5940 + Added `capitalize` (Artyom Kazak), and replaced uses of
5941 `map toUpper` (which give bad results for many languages).
5942 + Added `collapseFilePath`, which removes intermediate `.` and
5943 `..` from a path (Matthew Pickering).
5944 + Added `fetchItem'`, which works like `fetchItem` but searches
5945 a `MediaBag` before looking on the net or file system.
5946 + Added `withTempDir`.
5947 + Added `removeFormatting`.
5948 + Added `extractSpaces` (from HTML reader) and generalized its type
5949 so that it can be used by the docx reader (Matthew Pickering).
5950 + Added `ordNub`.
5951 + Added `normalizeInlines`, `normalizeBlocks`.
5952 + `normalize` is now `Pandoc -> Pandoc` instead of
5953 `Data a :: a -> a`. Some users may need to change their uses of
5954 `normalize` to the newly exported `normalizeInlines` or
5955 `normalizeBlocks`.
5957 * `Text.Pandoc.Options`:
5959 + Added `writerMediaBag` to `WriterOptions`.
5960 + Removed deprecated and no longer used `readerStrict` in
5961 `ReaderOptions`. This is handled by `readerExtensions` now.
5962 + Added `Ext_compact_definition_lists`.
5963 + Added `Ext_epub_html_exts`.
5964 + Added `Ext_native_divs` and `Ext_native_spans`.
5965 This allows users to turn off the default pandoc behavior of
5966 parsing contents of div and span tags in markdown and HTML
5967 as native pandoc Div blocks and Span inlines.
5969 * `Text.Pandoc.Parsing`:
5971 + Generalized `readWith` to `readWithM` (Matthew Pickering).
5972 + Export `runParserT` and `Stream` (Matthew Pickering).
5973 + Added `HasQuoteContext` type class (Matthew Pickering).
5974 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
5975 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
5976 `applyMacros` (Matthew Pickering).
5977 + Added custom `token` (Matthew Pickering).
5978 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
5979 track of the ending tag we're waiting for when we're parsing inside
5980 HTML block tags.
5981 + Added `stateMarkdownAttribute` to `ParserState`. This is used
5982 to keep track of whether the markdown attribute has been set in
5983 an enclosing tag.
5984 + Generalized type of `registerHeader`, using new type classes
5985 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
5986 Pickering). These allow certain common functions to be reused
5987 even in parsers that use custom state (instead of `ParserState`),
5988 such as the MediaWiki reader.
5989 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
5990 and generalized their types (Matthew Pickering).
5992 * `Text.Pandoc.Pretty`:
5994 + Added `nestle`.
5995 + Added `blanklines`, which guarantees a certain number of blank lines
5996 (and no more).
5998 [bug fixes]
6000 * Markdown reader:
6002 + Fixed parsing of indented code in list items. Indented code
6003 at the beginning of a list item must be indented eight spaces
6004 from the margin (or edge of the container), or four spaces
6005 from the list marker, whichever is greater.
6006 + Fixed small bug in HTML parsing with `markdown_attribute`, which
6007 caused incorrect tag nesting for input like
6008 `<aside markdown="1">*hi*</aside>`.
6009 + Fixed regression with intraword underscores (#1121).
6010 + Improved parsing of inline links containing quote characters (#1534).
6011 + Slight rewrite of `enclosure`/`emphOrStrong` code.
6012 + Revamped raw HTML block parsing in markdown (#1330).
6013 We no longer include trailing spaces and newlines in the
6014 raw blocks. We look for closing tags for elements (but without
6015 backtracking). Each block-level tag is its own `RawBlock`;
6016 we no longer try to consolidate them (though `--normalize` will do so).
6017 + Combine consecutive latex environments. This helps when you have
6018 two minipages which can't have blank lines between them (#690, #1196).
6019 + Support smallcaps through span.
6020 `<span style="font-variant:small-caps;">foo</span>` will be
6021 parsed as a `SmallCaps` inline, and will work in all output
6022 formats that support small caps (#1360).
6023 + Prevent spurious line breaks after list items (#1137). When the
6024 `hard_line_breaks` option was specified, pandoc would formerly
6025 produce a spurious line break after a tight list item.
6026 + Fixed table parsing bug (#1333).
6027 + Handle `c++` and `objective-c` as language identifiers in
6028 github-style fenced blocks (#1318).
6029 + Inline math must have nonspace before final `$` (#1313).
6031 * LaTeX reader:
6033 + Handle comments at the end of tables. This resolves the issue
6034 illustrated in <http://stackoverflow.com/questions/24009489>.
6035 + Correctly handle table rows with too few cells. LaTeX seems to
6036 treat them as if they have empty cells at the end (#241).
6037 + Handle leading/trailing spaces in `\emph` better.
6038 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
6039 so that we don't get things like `* hi *` in markdown output.
6040 Also applies to `\textbf` and some other constructions (#1146).
6041 + Don't assume preamble doesn't contain environments (#1338).
6042 + Allow (and discard) optional argument for `\caption` (James Aspnes).
6044 * HTML reader:
6046 + Fixed major parsing problem with HTML tables. Table cells were
6047 being combined into one cell (#1341).
6048 + Fixed performance issue with malformed HTML tables.
6049 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
6050 + Allow space between `<col>` and `</col>`.
6051 + Added `audio` and `source` in `eitherBlockOrInline`.
6052 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
6053 `blockTags` to `eitherBlockOrInline`.
6054 + `map` and `object` were mistakenly in both lists; they have been removed
6055 from `blockTags`.
6056 + Ignore `DOCTYPE` and `xml` declarations.
6058 * MediaWiki reader:
6060 + Don't parse backslash escapes inside `<source>` (#1445).
6061 + Tightened up template parsing.
6062 The opening `{{` must be followed by an alphanumeric or `:`.
6063 This prevents the exponential slowdown in #1033.
6064 + Support "Bild" for images.
6066 * DocBook reader:
6068 + Better handle elements inside code environments. Pandoc's document
6069 model does not allow structure inside code blocks, but at least this way
6070 we preserve the text (#1449).
6071 + Support `<?asciidoc-br?>` (#1236).
6073 * Textile reader:
6075 + Fixed list parsing. Lists can now start without an intervening
6076 blank line (#1513).
6077 + HTML block-level tags that do not start a line are parsed as
6078 inline HTML and do not interrupt paragraphs (as in RedCloth).
6080 * Org reader:
6082 + Make tildes create inline code (#1345). Also relabeled `code` and
6083 `verbatim` parsers to accord with the org-mode manual.
6084 + Respect `:exports` header argument in code blocks (Craig Bosma).
6085 + Fixed tight lists with sublists (#1437).
6087 * EPUB writer:
6089 + Avoid excess whitespace in `nav.xhtml`. This should improve
6090 TOC view in iBooks (#1392).
6091 + Fixed regression on cover image.
6092 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
6093 because the metadata id was not correct. Now we derive the id from the
6094 actual cover image filename, which we preserve rather than using
6095 "cover-image."
6096 + Keep newlines between block elements. This allows
6097 easier diff-ability (#1424).
6098 + Use `stringify` instead of custom `plainify`.
6099 + Use `renderTags'` for all tag rendering. This properly handles tags
6100 that should be self-closing. Previously `<hr/>` would appear in EPUB
6101 output as `<hr></hr>` (#1420).
6102 + Better handle HTML media tags.
6103 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
6104 can have only one dc:date, so only the first one is used.
6106 * LaTeX writer:
6108 + Correctly handle figures in notes. Notes can't contain figures in
6109 LaTeX, so we fake it to avoid an error (#1053).
6110 + Fixed strikeout + highlighted code (#1294).
6111 Previously strikeout highlighted code caused an error.
6113 * ConTeXt writer:
6115 + Improved detection of autolinks with URLs containing escapes.
6117 * RTF writer:
6119 + Improved image embedding: `fetchItem'` is now used to get the
6120 images, and calculated image sizes are indicated in the RTF.
6121 + Avoid extra paragraph tags in metadata (#1421).
6123 * HTML writer:
6125 + Deactivate "incremental" inside slide speaker notes (#1394).
6126 + Don't include empty items in the table of contents for
6127 slide shows. (These would result from creating a slide
6128 using a horizontal rule.)
6130 * MediaWiki writer:
6132 + Minor renaming of `st` prefixed names.
6134 * AsciiDoc writer:
6136 + Double up emphasis and strong emphasis markers in intraword
6137 contexts, as required by asciidoc (#1441).
6139 * Markdown writer:
6141 + Avoid wrapping that might start a list, blockquote, or header (#1013).
6142 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
6143 + Don't use braced attributes for fenced code (#1416).
6144 If `Ext_fenced_code_attributes` is not set, the first class
6145 attribute will be printed after the opening fence as a bare word.
6146 + Separate adjacent lists of the same kind with an HTML comment (#1458).
6148 * PDF writer:
6150 + Fixed treatment of data uris for images (#1062).
6152 * Docx writer:
6154 + Use Compact style for empty table cells (#1353).
6155 Otherwise we get overly tall lines when there are empty
6156 table cells and the other cells are compact.
6157 + Create overrides per-image for `media/` in reference docx.
6158 This should be somewhat more robust and cover more types of images.
6159 + Improved `entryFromArchive` to avoid an unneeded parse.
6160 + Section numbering carries over from reference.docx (#1305).
6161 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
6162 we assign numbers based on the list marker styles.
6164 * `Text.Pandoc.Options`:
6166 + Removed `Ext_fenced_code_attributes` from `markdown_github`
6167 extensions.
6169 * `Text.Pandoc.ImageSize`:
6171 + Use default instead of failing if image size not found
6172 in exif header (#1358).
6173 + ignore unknown exif header tag rather than crashing.
6174 Some images seem to have tag type of 256, which was causing
6175 a runtime error.
6177 * `Text.Pandoc.Shared`:
6179 + `fetchItem`: unescape URI encoding before reading local file (#1427).
6180 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
6181 doing mime lookup, to improve mime type guessing.
6182 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
6183 other things are treated as relative URIs if `sourceURL` is `Just _`,
6184 otherwise as file paths on the local file system.
6185 + `fetchItem` now properly handles links without a protocol (#1477).
6186 + `fetchItem` now escapes characters not allowed in URIs before trying
6187 to parse the URIs.
6188 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
6190 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
6191 needed to resolve relative URLs when we fetch resources (#750).
6193 * `Text.Pandoc.Parsing`
6195 + Simplified `dash` and `ellipsis` (#1419).
6196 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
6197 + Generalized functions to use `ParsecT` (Matthew Pickering).
6198 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
6199 Pickering).
6201 [template changes]
6203 * Added haddock template.
6204 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
6205 be "advisory" in HTML5, but kindlegen seems to require them.
6206 * EPUB3: Put title page in section with `epub:type="titlepage"`.
6207 * LaTeX: Made `\subtitle` work properly (#1327).
6208 * LaTeX/Beamer: remove conditional around date (#1321).
6209 * LaTeX: Added `lot` and `lof` variables, which can be set to
6210 get `\listoftables` and `\listoffigures` (#1407). Note that
6211 these variables can be set at the command line with `-Vlot -Vlof`
6212 or in YAML metadata.
6214 [under the hood improvements]
6216 * Rewrote normalize for efficiency (#1385).
6218 * Rewrote Haddock reader to use `haddock-library` (#1346).
6220 + This brings pandoc's rendering of haddock markup in line
6221 with the new haddock.
6222 + Fixed line breaks in `@` code blocks.
6223 + alex and happy are no longer build-depends.
6225 * Added `Text.Pandoc.Compat.Directory` to allow building against
6226 different versions of the `directory` library.
6228 + Added `Text.Pandoc.Compat.Except` to allow building against
6229 different verions of `mtl`.
6231 * Code cleanup in some writers, using Reader monad to avoid
6232 passing options parameter around (Matej Kollar).
6234 * Improved readability in `pandoc.hs`.
6236 * Miscellaneous code cleanups (Artyom Kazak).
6238 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
6239 Thompson).
6241 * Changed `http-conduit` flag to `https`. Depend on `http-client`
6242 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
6243 depends on `conduit` via `yaml`.)
6245 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
6246 This change to highlighting-kate means that PHP fragments no longer need
6247 to start with `<?php`. It also fixes a serious bug causing failures with
6248 ocaml and fsharp.
6250 * Require latest `texmath`. This fixes `\tilde{E}` and allows
6251 `\left` to be used with `]`, `)` etc. (#1319), among many other
6252 improvements.
6254 * Require latest `zip-archive`. This has fixes for unicode path names.
6256 * Added tests for plain writer.
6258 * `Text.Pandoc.Templates`:
6260 + Fail informatively on template syntax errors.
6261 With the move from parsec to attoparsec, we lost good error
6262 reporting. In fact, since we weren't testing for end of input,
6263 malformed templates would fail silently. Here we revert back to
6264 Parsec for better error messages.
6265 + Use `ordNub` (#1022).
6267 * Benchmarks:
6269 + Made benchmarks compile again (Artyom Kazak).
6270 + Fixed so that the failure of one benchmark does not prevent others
6271 from running (Artyom Kazak).
6272 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
6273 + Changed benchmark to use only the test suite, so that benchmarks
6274 run more quickly.
6276 * Windows build script:
6278 + Add `-windows` to file name.
6279 + Use one install command for pandoc, pandoc-citeproc.
6280 + Force install of pandoc-citeproc.
6282 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
6283 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
6284 will extract it into a folder named `SOMETHING.pkg`, which it
6285 will interpret as a defective package (#1308).
6287 * `README`:
6289 + Made headers for all extensions so they have IDs and can be
6290 linked to (Beni Cherniavsky-Paskin).
6291 + Fixed typos (Phillip Alday).
6292 + Fixed documentation of attributes (#1315).
6293 + Clarified documentation on small caps (#1360).
6294 + Better documentation for `fenced_code_attributes` extension
6295 (Caleb McDaniel).
6296 + Documented fact that you can put YAML metadata in a separate file
6297 (#1412).
6300pandoc (1.12.4.2)
6302 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
6304 * Shared: `addMetaValue` now behaves slightly differently:
6305 if both the new and old values are lists, it concatenates their
6306 contents to form a new list.
6308 * LaTeX reader:
6310 + Set `bibliography` in metadata from `\bibliography` or
6311 `\addbibresource` command.
6312 + Don't error on `%foo` with no trailing newline.
6314 * Org reader:
6316 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
6317 + Fix parsing of blank lines within blocks (Albert Krewinkel).
6318 + Support pandoc citation extension (Albert Krewinkel). This can
6319 be turned off by specifying `org-citations` as the input format.
6321 * Markdown reader:
6323 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
6324 other readers (Albert Krewinkel).
6326 * `Text.Pandoc.Parsing`:
6328 + Added `citeKey` (see above).
6329 + Added `HasLastStrPosition` type class and `updateLastStrPos`
6330 and `notAfterString` functions.
6332 * Updated copyright notices (Albert Krewinkel).
6334 * Added default.icml to data files so it installs with the package.
6336 * OSX package:
6338 + The binary is now built with options to ensure that it can be
6339 used with OSX 10.6+.
6340 + Moved OSX package materials to osx directory.
6341 + Added OSX package uninstall script, included in the zip container
6342 (thanks to Daniel T. Staal).
6344pandoc (1.12.4)
6346 * Made it possible to run filters that aren't executable (#1096).
6347 Pandoc first tries to find the executable (searching the path
6348 if path isn't given). If it fails, but the file exists and has
6349 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
6350 using the appropriate interpreter. This should make it easier to
6351 use filters on Windows, and make it more convenient for everyone.
6353 * Added Emacs org-mode reader (Albert Krewinkel).
6355 * Added InDesign ICML Writer (Mauro Bieg).
6357 * MediaWiki reader:
6359 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
6360 + Fixed bug in certain nested lists (#1213). If a level 2 list was
6361 followed by a level 1 list, the first item of the level 1 list
6362 would be lost.
6363 + Handle table rows containing just an HTML comment (#1230).
6365 * LaTeX reader:
6367 + Give better location information on errors, pointing to line
6368 numbers within included files (#1274).
6369 + LaTeX reader: Better handling of `table` environment (#1204).
6370 Positioning options no longer rendered verbatim.
6371 + Better handling of figure and table with caption (#1204).
6372 + Handle `@{}` and `p{length}` in tabular. The length is not actually
6373 recorded, but at least we get a table (#1180).
6374 + Properly handle `\nocite`. It now adds a `nocite` metadata
6375 field. Citations there will appear in the bibliography but not
6376 in the text (unless you explicitly put a `$nocite$` variable
6377 in your template).
6379 * Markdown reader:
6381 + Ensure that whole numbers in YAML metadata are rendered without
6382 decimal points. (This became necessary with changes to aeson
6383 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
6384 + Fixed regression on line breaks in strict mode (#1203).
6385 + Small efficiency improvements.
6386 + Improved parsing of nested `div`s. Formerly a closing `div` tag
6387 would be missed if it came right after other block-level tags.
6388 + Avoid backtracking when closing `</div>` not found.
6389 + Fixed bug in reference link parsing in `markdown_mmd`.
6390 + Fixed a bug in list parsing (#1154). When reading a raw list
6391 item, we now strip off up to 4 spaces.
6392 + Fixed parsing of empty reference link definitions (#1186).
6393 + Made one-column pipe tables work (#1218).
6395 * Textile reader:
6397 + Better support for attributes. Instead of being ignored, attributes
6398 are now parsed and included in Span inlines. The output will be a bit
6399 different from stock textile: e.g. for `*(foo)hi*`, we'll get
6400 `<em><span class="foo">hi</span></em>` instead of
6401 `<em class="foo">hi</em>`. But at least the data is not lost.
6402 + Improved treatment of HTML spans (%) (#1115).
6403 + Improved link parsing. In particular we now pick up on attributes.
6404 Since pandoc links can't have attributes, we enclose the whole link in
6405 a span if there are attributes (#1008).
6406 + Implemented correct parsing rules for inline markup (#1175, Matthew
6407 Pickering).
6408 + Use Builder (Matthew Pickering).
6409 + Fixed list parsing bug (#1500).
6410 + Don't allow inline formatting to extend over newlines.
6411 This matches the behavior of RedCarpet, avoids some ugly bugs,
6412 and improves performance.
6414 * DocBook reader:
6416 + Better treatment of `formalpara`. We now emit the title (if present)
6417 as a separate paragraph with boldface text (#1215).
6418 + Set metadata `author` not `authors`.
6419 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
6420 Matthew Pickering).
6421 + Converted current meta information parsing in DocBook to a more
6422 extensible version which is aware of the more recent meta
6423 representation (Matthew Pickering).
6425 * HTML reader:
6427 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
6428 (#1248).
6429 + Treat processing instructions & declarations as block. Previously
6430 these were treated as inline, and included in paragraph tags in HTML
6431 or DocBook output, which is generally not what is wanted (#1233).
6432 + Updated `closes` with rules from HTML5 spec.
6433 + Use Builder (Matthew Pickering, #1162).
6435 * RST reader:
6437 + Remove duplicate `http` in PEP links (Albert Krewinkel).
6438 + Make rst figures true figures (#1168, CasperVector)
6439 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
6440 rST parser now supports: all built-in rST roles, new role definition,
6441 role inheritance, though with some limitations.
6442 + Use `author` rather than `authors` in metadata.
6443 + Better handling of directives. We now correctly handle field
6444 lists that are indented more than three spaces. We treat an
6445 `aafig` directive as a code block with attributes, so it can be
6446 processed in a filter (#1212).
6448 * LaTeX writer:
6450 + Mark span contents with label if span has an ID (Albert Krewinkel).
6451 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
6452 + Handle line breaks in simple table cells (#1217).
6453 + Workaround for level 4-5 headers in quotes. These previously produced
6454 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
6455 This adds an `mbox{}` in these contexts to work around the problem.
6456 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
6457 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
6458 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
6459 ligature with LuaLaTeX but `\/` does.
6460 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
6462 * ConTeXt writer: Improved autolinks (#1270).
6464 * DocBook writer:
6466 + Improve handling of hard line breaks in Docbook writer
6467 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
6468 just for the newline character.
6469 + Don't let line breaks inside footnotes influence the enclosing
6470 paragraph (Neil Mayhew).
6471 + Distinguish tight and loose lists in DocBook output, using
6472 `spacing="compact"` (Neil Mayhew, #1250).
6474 * Docx writer: When needed files are not present in the user's
6475 `reference.docx`, fall back on the versions in the `reference.docx`
6476 in pandoc's data files. This fixes a bug that occurs when a
6477 `reference.docx` saved by LibreOffice is used. (#1185)
6479 * EPUB writer:
6481 + Include extension in epub ids. This fixes a problem with duplicate
6482 extensions for fonts and images with the same base name but different
6483 extensions (#1254).
6484 + Handle files linked in raw `img` tags (#1170).
6485 + Handle media in `audio` source tags (#1170).
6486 Note that we now use a `media` directory rather than `images`.
6487 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
6488 will both be incorporated into `content.opf` and the epub container.
6490 * HTML writer:
6492 + Add colgroup around col tags (#877). Also affects EPUB writer.
6493 + Fixed bug with unnumbered section headings. Unnumbered section
6494 headings (with class `unnumbered`) were getting numbers.
6495 + Improved detection of image links. Previously image links with
6496 queries were not recognized, causing `<embed>` to be used instead
6497 of `<img>`.
6499 * Man writer: Ensure that terms in definition lists aren't line wrapped
6500 (#1195).
6502 * Markdown writer:
6504 + Use proper escapes to avoid unwanted lists (#980). Previously we used
6505 0-width spaces, an ugly hack.
6506 + Use longer backtick fences if needed (#1206). If the content contains a
6507 backtick fence and there are attributes, make sure longer fences are
6508 used to delimit the code. Note: This works well in pandoc, but github
6509 markdown is more limited, and will interpret the first string of three
6510 or more backticks as ending the code block.
6512 * RST writer: Avoid stack overflow with certain tables (#1197).
6514 * RTF writer: Fixed table cells containing paragraphs.
6516 * Custom writer:
6518 + Correctly handle UTF-8 in custom lua scripts (#1189).
6519 + Fix bugs with lua scripts with mixed-case filenames and
6520 paths containing `+` or `-` (#1267). Note that `getWriter`
6521 in `Text.Pandoc` no longer returns a custom writer on input
6522 `foo.lua`.
6524 * AsciiDoc writer: Handle multiblock and empty table cells
6525 (#1245, #1246). Added tests.
6527 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
6529 * `Text.Pandoc.Shared`:
6531 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
6532 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
6533 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
6534 Jesse Rosenthal.
6535 + `openURL`: set proxy with value of http_proxy env variable (#1211).
6536 Note: proxies with non-root paths are not supported, due to
6537 limitations in `http-conduit`.
6539 * `Text.Pandoc.PDF`:
6541 + Ensure that temp directories deleted on Windows (#1192). The PDF is
6542 now read as a strict bytestring, ensuring that process ownership will
6543 be terminated, so the temp directory can be deleted.
6544 + Use `/` as path separators in a few places, even on Windows.
6545 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
6546 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
6547 + Changes to error reporting, to handle non-UTF8 error output.
6549 * `Text.Pandoc.Templates`:
6551 + Removed unneeded datatype context (Merijn Verstraaten).
6553 + YAML objects resolve to "true" in conditionals (#1133).
6554 Note: If `address` is a YAML object and you just have `$address$`
6555 in your template, the word `true` will appear, which may be
6556 unexpected. (Previously nothing would appear.)
6558 * `Text.Pandoc.SelfContained`:
6560 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
6561 the string.
6562 * It no longer looks in data files. This only made sense when we
6563 had copies of slidy and S5 code there.
6564 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
6565 + Handle `poster` attribute in `video` tags (#1188).
6567 * `Text.Pandoc.Parsing`:
6569 + Made `F` an instance of Applicative (#1138).
6570 + Added `stateCaption`.
6571 + Added `HasMacros`, simplified other typeclasses.
6572 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
6573 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
6574 + Changed the smart punctuation parser to return `Inlines`
6575 rather than `Inline` (Matthew Pickering).
6576 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
6577 from typeclasses of monads to typeclasses of states. This simplifies
6578 the instance definitions and provides more flexibility. Generalized
6579 type of `getOption` and added a default definition. Removed
6580 `askReaderOption`. Added `extractReaderOption`. Added
6581 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
6582 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
6583 `modifyHeaderMap`. Added `extractIdentifierList` and
6584 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
6585 for `getIdentifierList`, `putIdentifierList`, and
6586 `modifyIdentifierList`. The ultimate goal here is to allow different
6587 parsers to use their own, tailored parser states (instead of
6588 `ParserState`) while still using shared functions.
6590 * Template changes:
6592 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
6593 + LaTeX template: Add `linestretch` and `fontfamily` variables.
6594 + LaTeX template: Conditionalize author and date commands.
6595 + Beamer template: Consistent styles for figure and table captions
6596 (aaronwolen).
6597 + LaTeX and beamer template: Adjust widths correctly for oversized
6598 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
6599 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
6600 `upquote` only after `fontenc` (Yihui Xie).
6601 + Beamer template: Added caption package (#1200).
6602 + Beamer template: changes for better unicode handling (KarolS).
6603 + DocBook template: use `authorgroup` if there are authors.
6604 + revealjs template: Move `include-after` to end (certainlyakey).
6605 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
6607 * Bumped version bounds of dependencies.
6609 * Added a `--trace` command line option, for debugging backtracking
6610 bugs. So far this only works with the markdown reader.
6612 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
6614 * Updated travis script to test with multiple GHC versions.
6616 * Force failure of a Travis build if GHC produces warnings (Albert
6617 Krewinkel).
6619 * Add `.editorconfig` (Albert Krewinkel).
6620 See <http://editorconfig.org/> for details.
6622 * Give more useful error message if '-t pdf' is specified (#1155).
6624 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
6626 * Allow `html4` as a synonym of `html` as a reader (it already works
6627 as a writer).
6629 * README:
6631 + Added an explanation of how to use YAML metadata to
6632 force items to appear in the bibliography without citations in
6633 the text (like LaTeX `\nocite`).
6634 + Added note to `--bibtex/--natbib`: not for use in making PDF
6635 (#1194, thanks to nahoj).
6636 + Added explanatory notes about `--natbib` and `--biblatex`.
6637 + Added specification of legal syntax for citation keys.
6638 + Fixed variable defaults documentation (Albert Krewinkel).
6640 * Removed copyright statements for files that have been removed
6641 (Albert Krewinkel).
6643 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
6644 They aren't needed at runtime. We keep README and COPYRIGHT in data
6645 to ensure that they'll be available on all systems on which pandoc
6646 is installed.
6648 * Use cabal sandboxes in Windows build script.
6650pandoc (1.12.3.3)
6652 * To changes to source; recompiled tarball with latest alex and
6653 happy, so they will work with GHC 7.8.
6655pandoc (1.12.3.2)
6657 * Bumped version bounds for blaze-html, blaze-markup.
6659 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
6660 (#1124).
6662 * Fixed mediawiki ordered list parsing (#1122).
6664 * HTML reader: Fixed bug reading inline math with `$$` (#225).
6666 * Added support for LaTeX style literate Haskell code blocks in rST
6667 (Merijn Verstraaten).
6669pandoc (1.12.3.1)
6671 * Relaxed version constraint on binary, allowing the use of binary 0.5.
6673pandoc (1.12.3)
6675 * The `--bibliography` option now sets the `biblio-files` variable.
6676 So, if you're using `--natbib` or `--biblatex`, you can just use
6677 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
6679 * Don't run pandoc-citeproc filter if `--bibliography` is
6680 used together with `--natbib` or `--biblatex` (Florian Eitel).
6682 * Template changes:
6684 + Updated beamer template to include booktabs.
6685 + Added `abstract` variable to LaTeX template.
6686 + Put `header-includes` after `title` in LaTeX template (#908).
6687 + Allow use of `\includegraphics[size]` in beamer.
6688 This just required porting a macro definition from the default
6689 LaTeX template to the default beamer template.
6691 * `reference.docx`: Include `FootnoteText` style.
6692 Otherwise Word ignores the style, even when specified in the `pPr`.
6693 (#901)
6695 * `reference.odt`: Tidied `styles.xml`.
6697 * Relaxed version bounds for dependencies.
6699 * Added `withSocketsDo` around http conduit code in `openURL`,
6700 so it works on Windows (#1080).
6702 * Added `Cite` function to `sample.lua`.
6704 * Markdown reader:
6706 + Fixed regression in title blocks (#1089).
6707 If author field was empty, date was being ignored.
6708 + Allow backslash-newline hard line breaks in grid and
6709 multiline table cells.
6710 + Citation keys may now start with underscores, and may contain
6711 underscores adjacent to internal punctuation.
6713 * LaTeX reader:
6715 + Add support for `Verb` macro (jrnold) (#1090).
6716 + Support babel-style quoting: `` "`..."' ``.
6718 * Properly handle script blocks in strict mode. (That is,
6719 `markdown-markdown_in_html_blocks`.) Previously a spurious
6720 `<p>` tag was being added (#1093).
6722 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
6723 elements.
6725 * LaTeX writer:
6727 + Factored out function for table cell creation.
6728 + Better treatment of footnotes in tables.
6729 Notes now appear in the regular sequence, rather than in the
6730 table cell. (This was a regression in 1.10.)
6732 * HTML reader: Parse name/content pairs from meta tags as metadata.
6733 Closes #1106.
6735 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
6737 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
6739 * ODT writer: Use mathml for proper rendering of formulas.
6740 Note: LibreOffice's support for this seems a bit buggy. But
6741 it should be better than what we had before.
6743 * RST writer: Ensure no blank line after def in definition list (#992).
6745 * Markdown writer: Don't use tilde code blocks with braced attributes in
6746 `markdown_github` output. A consequence of this change is that the
6747 backtick form will be preferred in general if both are enabled. That
6748 is good, as it is much more widespread than the tilde form. (#1084)
6750 * Docx writer: Fixed problem with some modified reference docx files.
6751 Include `word/_rels/settings.xml.rels` if it exists, as well as other
6752 `rels` files besides the ones pandoc generates explicitly.
6754 * HTML writer:
6756 + With `--toc`, headers no longer link to themselves (#1081).
6757 + Omit footnotes from TOC entries. Otherwise we get doubled
6758 footnotes when headers have notes!
6760 * EPUB writer:
6762 + Avoid duplicate notes when headings contain notes.
6763 This arose because the headings are copied into the metadata
6764 "title" field, and the note gets rendered twice. We strip the
6765 note now before putting the heading in "title".
6766 + Strip out footnotes from toc entries.
6767 + Fixed bug with `--epub-stylesheet`. Now the contents of
6768 `writerEpubStylesheet` (set by `--epub-stylesheet`)
6769 should again work, and take precedence over a stylesheet specified
6770 in the metadata.
6772 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
6774 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
6775 with `//`.
6777 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
6778 we could only get size information for JFIF format, which led
6779 to squished images in Word documents. Closes #976.
6781 * Removed old `MarkdownTest_1.0.3` directory (#1104).
6783pandoc (1.12.2.1)
6785 * Markdown reader: Fixed regression in list parser, involving
6786 continuation lines containing raw HTML (or even verbatim raw HTML).
6788pandoc (1.12.2)
6790 * Metadata may now be included in YAML blocks in a markdown document.
6791 For example,
6793 ---
6794 title:
6795 - type: main
6796 text: My Book
6797 - type: subtitle
6798 text: An investigation of metadata
6799 creator:
6800 - role: author
6801 text: John Smith
6802 - role: editor
6803 text: Sarah Jones
6804 identifier:
6805 - scheme: DOI
6806 text: doi:10.234234.234/33
6807 publisher: My Press
6808 rights: (c) 2007 John Smith, CC BY-NC
6809 cover-image: img/mypic.jpg
6810 ...
6812 Metadata may still be provided using `--epub-metadata`; it will
6813 be merged with the metadata in YAML blocks.
6815 * EPUB writer:
6817 + `meta` tags are now used instead of `opf` attributes for EPUB3.
6818 + Insert "svg" property as needed in opf (EPUB 3).
6819 + Simplify `imageTypeOf` using `getMimeType`.
6820 + Add properties attribute to `cover-image` item for EPUB 3.
6821 + Don't include node for `cover.xhtml` if no cover!
6822 + Ensure that same identifier is used throughout (#1044).
6823 If an identifier is given in metadata, we use that; otherwise
6824 we generate a random uuid.
6825 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
6826 Fixes an issue with Calibre putting the cover at the end of the book
6827 if the spine has `linear="no"`. Apparently this is best practice
6828 for other converters as well:
6829 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
6830 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
6831 + Allow partial dates: `YYYY`, `YYYY-MM`.
6833 * Markdown writer: Fix rendering of tight sublists (#1050).
6834 Previously a spurious blank line was included after a tight sublist.
6836 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
6837 This is reported to be necessary to avoid an error from recent
6838 versions of Libre Office when files contain more than one image
6839 Thanks to wmanley for reporting and diagnosing the problem.
6841 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
6842 Instead, let this be set in the template, using `\setupfloat`.
6843 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
6845 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
6847 * Fixed bug with markdown intraword emphasis. Closes #1066.
6849 * Docbook writer: Hierarchicalize block content in metadata.
6850 Previously headers just disappeared from block-level metadata
6851 when it was used in templates. Now we apply the 'hierarchicalize'
6852 transformation. Note that a block headed by a level-2 header will
6853 turn into a `<sect1>` element.
6855 * OpenDocument writer: Skip raw HTML (#1035).
6856 Previously it was erroneously included as verbatim text.
6858 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
6859 This allows better control of formatting, since the `<a>`
6860 tags have a distinguishing class (#1049).
6862 * Docx writer:
6864 + Use mime type info returned by fetchItem.
6865 + Fixed core metadata (#1046).
6866 Don't create empty date nodes if no date given.
6867 Don't create multiple `dc:creator` nodes; instead separate by
6868 semicolons.
6869 + Fix URL for core-properties in `_rels/.rels` (#1046).
6871 * Plain writer: don't print `<span>` tags.
6873 * LaTeX writer:
6875 + Fix definition lists with internal links in terms (#1032).
6876 This fix puts braces around a term that contains an internal
6877 link, to avoid problems with square brackets.
6878 + Properly escape pdftitle, pdfauthor (#1059).
6879 + Use booktabs package for tables (thanks to Jose Luis Duran).
6881 * Updated beamer template. Now references should work properly
6882 (in a slide) when `--biblatex` or `--natbib` is used.
6884 * LaTeX reader:
6886 + Parse contents of curly quotes or matched `"` as quotes.
6887 + Support `\textnormal` as span with class `nodecor`.
6888 This is needed for pandoc-citeproc.
6889 + Improved citation parsing. This fixes a run-time error that occured
6890 with `\citet{}` (empty list of keys). It also ensures that empty keys
6891 don't get produced.
6893 * MediaWiki reader: Add automatic header identifiers.
6895 * HTML reader:
6897 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
6898 `--parse-raw`.
6899 + Recognize `svg` tags as block level content (thanks to MinRK).
6900 + Parse LaTeX math if appropriate options are set.
6902 * Markdown reader:
6904 + Yaml block must start immediately after `---`. If there's a blank
6905 line after `---`, we interpreted it as a horizontal rule.
6906 + Correctly handle empty bullet list items.
6907 + Stop parsing "list lines" when we hit a block tag.
6908 This fixes exponential slowdown in certain input, e.g.
6909 a series of lists followed by `</div>`.
6911 * Slides: Preserve `<div class="references">` in references slide.
6913 * `Text.Pandoc.Writer.Shared`:
6915 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
6916 attributes, leading to invalid HTML.
6917 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
6918 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
6919 encoded bytestring was returned. We now decode it so it's a proper
6920 image!
6922 * DocBook reader: Handle numerical attributes starting with decimal.
6923 Also use `safeRead` instead of `read`.
6925 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
6926 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
6927 in all the writers. Require `texmath >= 0.6.5.2`.
6929 * `Text.Pandoc.MIME`:
6931 + Add entry for `jfif`.
6932 + In looking up extensions, drop the encoding info.
6933 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
6935 * Templates: Changed how array variables are resolved. Previously if
6936 `foo` is an array (which might be because multiple values were set on
6937 the command line), `$foo$` would resolve to the concatenation of the
6938 elements of foo. This is rarely useful behavior. It has been changed
6939 so that the first value is rendered. Of course, you can still iterate
6940 over the values using `$for(foo)$`. This has the result that you can
6941 override earlier settings using `-V` by putting new values later on the
6942 command line, which is useful for many purposes.
6944 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
6946 * Allow "epub2" as synonym for "epub", "html4" for "html".
6948 * Don't look for slidy files in data files with `--self-contained`.
6950 * Allow `https:` command line arguments to be downloaded.
6952 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
6954pandoc (1.12.1)
6956 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
6957 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
6958 "c": "foo"}`. This new format is easier to work with outside of Haskell.
6959 Incidentally, "t" stands for "tag", "c" for "contents".
6961 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
6962 when converting to markdown (#1027).
6964 * LaTeX reader:
6966 + Ensure that preamble doesn't contribute to the text of
6967 the document.
6968 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
6969 properly, among others.
6970 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
6971 bibtex titles, since we need to know what was protected from
6972 titlecase conversions.
6974 * LaTeX writer:
6976 + Specially escape non-ascii characters in labels.
6977 Otherwise we can get compile errors and other bugs when
6978 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
6979 + Add link anchors for code blocks with identifiers (#1025).
6981 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
6982 It allows fragments identifiers.
6984 * Slide formats:
6986 + A Div element with class "notes" is treated as speaker
6987 notes. Currently beamer goes to `\note{}`, revealjs to
6988 `<aside class="notes">`, and the notes are simply suppressed in
6989 other formats (#925).
6990 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
6991 The old version caused a pause to be inserted before the first
6992 material on a slide. This has been fixed.
6993 + Removed data files for s5, slideous, slidy.
6994 Users of s5 and slideous will have to download the needed
6995 files, as has been documented for some time in the README.
6996 By default, slidy code will be sought on the web, as before.
6998 * HTML writer: Insert command to typeset mathjax only in slideous output
6999 (#966, #1012).
7001 * RST writer: Skip spaces after display math. Otherwise we get indentation
7002 problems, and part of the next paragraph may be rendered as part of the
7003 math.
7005 * OpenDocument writer: Fix formatting of strikeout code (#995),
7006 thanks to wilx. don't use `font-face-decls` variable.
7008 * Fixed test suite so it works with cabal sandboxes.
7010pandoc (1.12.0.2)
7012 * Removed `stringable` dependency.
7014pandoc (1.12.0.1)
7016 * Allow `--metadata` to be repeated for the same key to form a list.
7017 This also has the effect that `--bibliography` can be repeated,
7018 as before.
7020 * Handle boolean values in `--metadata`. Note that anything not parseable
7021 as a YAML boolean or string is treated as a literal string.
7022 You can get a string value with "yes", or any of the strings interpretable
7023 as booleans, by quoting it:
7025 -M boolvalue=yes -M stringvalue='"yes"'
7027 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
7028 option used.
7030 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
7031 in which docx files could not be read by some versions of Word
7032 and LibreOffice (#990).
7034 * Fixed a regression involving slide shows with bibliographies.
7035 The Div container around references messed up the procedure for carving
7036 a document into slides. So we now remove the surrounding Div in
7037 `prepSlides`.
7039 * More informative error message when a filter is not found in path.
7041 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
7042 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
7044 * Don't use unicode_collation in building OSX package:
7045 it adds something like 50MB of dependencies to the package.
7047 * Declare alex and happy as build-tools (#986).
7049pandoc (1.12)
7051 [new features]
7053 * Much more flexible metadata, including arbitrary fields and structured
7054 values. Metadata can be specified flexibly in pandoc markdown using
7055 YAML metadata blocks, which may occur anywhere in the document:
7057 ---
7058 title: Here is my title.
7059 abstract: |
7060 This is the abstract.
7062 1. It can contain
7063 2. block content
7064 and *inline markup*
7066 tags: [cat, dog, animal]
7067 ...
7069 Metadata fields automatically populate template variables.
7071 * Added `opml` (OPML) as input and output format. The `_note` attribute,
7072 used in OmniOutliner and supported by multimarkdown, is supported.
7073 We treat the contents as markdown blocks under a section header.
7075 * Added `haddock` (Haddock markup) as input format (David Lazar).
7077 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
7078 (Thanks to Jamie F. Olson for the initial patch.)
7079 Nested vertical stacks are used for hierarchical structure.
7080 Results for more than one level of nesting may be odd.
7082 * Custom writers can now be written in lua.
7084 pandoc -t data/sample.lua
7086 will load the script sample.lua and use it as a custom writer.
7087 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
7088 Note that pandoc embeds a lua interpreter, so lua need not be
7089 installed separately.
7091 * New `--filter/-F` option to make it easier to run "filters"
7092 (Pandoc AST transformations that operate on JSON serializations).
7093 Filters are always passed the name of the output format, so their
7094 behavior can be tailored to it. The repository
7095 <https://github.com/jgm/pandocfilters> contains
7096 a python module for writing pandoc filters in python, with
7097 a number of examples.
7099 * Added `--metadata/-M` option.
7100 This is like `--variable/-V`, but actually adds to metadata, not
7101 just variables.
7103 * Added `--print-default-data-file` option, which allows printing
7104 of any of pandoc's data files. (For example,
7105 `pandoc --print-default-data-file reference.odt` will print
7106 `reference.odt`.)
7108 * Added syntax for "pauses" in slide shows:
7110 This gives
7112 . . .
7114 me pause.
7116 * New markdown extensions:
7118 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
7119 rather than being treated as hard line breaks or spaces. This is useful
7120 for some East Asian languages, where spaces aren't used between words,
7121 but text is separated into lines for readability.
7122 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
7123 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
7124 only. (Default for `markdown_github`.) (#807)
7125 + `lists_without_preceding_blankline`: Allow lists to start without
7126 preceding blank space. (Default for `markdown_github`.) (#972)
7128 [behavior changes]
7130 * `--toc-level` no longer implies `--toc`.
7131 Reason: EPUB users who don't want a visible TOC may still want
7132 to set the TOC level for in the book navigation.
7134 * `--help` now prints in and out formats in alphabetical order, and
7135 says something about PDF output (#720).
7137 * `--self-contained` now returns less verbose output (telling you
7138 which URLs it is fetching, but not giving the full header). In
7139 addition, there are better error messages when fetching a URL fails.
7141 * Citation support is no longer baked in to core pandoc. Users who
7142 need citations will need to install and use a separate filter
7143 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
7144 `csl`, and `citation-abbreviations` from the metadata, though it
7145 may still be specified on the command line as before.
7147 * A `Cite` element is now created in parsing markdown whether or not
7148 there is a matching reference.
7150 * The `pandoc-citeproc` script will put the bibliography at the
7151 end of the document, as before. However, it will be put inside a `Div`
7152 element with class "references", allowing users some control
7153 over the styling of references. A final header, if any, will
7154 be included in the `Div`.
7156 * The markdown writer will not print a bibliography if the
7157 `citations` extension is enabled. (If the citations are formatted
7158 as markdown citations, it is redundant to have a bibliography,
7159 since one will be generated automatically.)
7161 * Previously we used to store the directory of the first input file,
7162 even if it was local, and used this as a base directory for finding
7163 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
7164 users. So we now look for images relative to the current
7165 working directory, even if the first file argument is in another
7166 directory. Note that this change may break some existing workflows.
7167 If you have been assuming that relative links will be interpreted
7168 relative to the directory of the first file argument, you'll need
7169 to make that the current directory before running pandoc. (#942)
7171 * Better error reporting in some readers, due to changes in `readWith`:
7172 the line in which the error occured is printed, with a caret pointing
7173 to the column.
7175 * All slide formats now support incremental slide view for definition lists.
7177 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
7178 Parse `:<math>...</math>` as display math. These notations are used with
7179 the MathJax MediaWiki extension.
7181 * All writers: template variables are set automatically from metadata
7182 fields. However, variables specified on the command line with
7183 `--variable` will completely shadow metadata fields.
7185 * If `--variable` is used to set many variables with the same name,
7186 a list is created.
7188 * Man writer: The `title`, `section`, `header`, and `footer` can now
7189 all be set individually in metadata. The `description` variable has been
7190 removed. Quotes have been added so that spaces are allowed in the
7191 title. If you have a title that begins
7193 COMMAND(1) footer here | header here
7195 pandoc will still parse it into a title, section, header, and
7196 footer. But you can also specify these elements explicitly (#885).
7198 * Markdown reader
7200 + Added support for YAML metadata blocks, which can come anywhere
7201 in the document (not just at the beginning). A document can contain
7202 multiple YAML metadata blocks.
7203 + HTML span and div tags are parsed as pandoc Span and Div elements.
7205 * Markdown writer
7207 + Allow simple tables to be printed as grid tables,
7208 if other table options are disabled. This means you can do
7209 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
7210 and all tables will render as grid tables.
7211 + Support YAML title block (render fields in alphabetical order
7212 to make output predictable).
7214 [API changes]
7216 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
7217 structured metadata. (Note: existing code that pattern-matches
7218 on `Meta` will have to be revised.) Metadata can now contain
7219 indefinitely many fields, with content that can be a string,
7220 a Boolean, a list of `Inline` elements, a list of `Block`
7221 elements, or a map or list of these.
7223 * A new generic block container (`Div`) has been added to `Block`,
7224 and a generic inline container (`Span`) has been added to `Inline`.
7225 These can take attributes. They will render in HTML, Textile,
7226 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
7227 extension) as HTML `<div>` and `<span>` elements; in other formats
7228 they will simply pass through their contents. But they can be
7229 targeted by scripts.
7231 * `Format` is now a newtype, not an alias for String.
7232 Equality comparisons are case-insensitive.
7234 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
7235 functions that are much faster than the SYB functions from
7236 `Text.Pandoc.Generic`. These functions are now used where possible
7237 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
7238 match the generic traversals `bottomUp` and `queryWith`.)
7240 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
7241 instances for the basic pandoc types. They use GHC generics and
7242 should be faster than the old JSON serialization using
7243 `Data.Aeson.Generic`.
7245 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
7246 This is a souped-up version of `readProcessWithErrorcode` that
7247 uses lazy bytestrings instead of strings and allows setting
7248 environment variables. (Used in `Text.Pandoc.PDF`.)
7250 * New module `Text.Pandoc.Readers.OPML`.
7252 * New module `Text.Pandoc.Writers.OPML`.
7254 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
7255 This is based on Haddock's own lexer/parser.
7257 * New module `Text.Pandoc.Writers.Custom`.
7259 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
7260 Either, for better error handling.
7262 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
7264 * Removed `stripTags` from `Text.Pandoc.XML`.
7266 * `Text.Pandoc.Templates`:
7268 + Simplified `Template` type to a newtype.
7269 + Removed `Empty`.
7270 + Changed type of `renderTemplate`: it now takes a JSON context
7271 and a compiled template.
7272 + Export `compileTemplate`.
7273 + Export `renderTemplate'` that takes a string instead of a compiled
7274 template.
7275 + Export `varListToJSON`.
7277 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
7278 The signature of `makePDF` has changed and now contains
7279 an additional argument for pdf engine options.
7281 * `Text.Pandoc`:
7283 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
7284 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
7285 `Text.Pandoc.JSON` should be used instead. (Compiling against
7286 pandoc-types instead of pandoc will also produce smaller executables.)
7287 * Removed the deprecated `jsonFilter` function.
7288 + Added `readJSON`, `writeJSON` to the API (#817).
7290 * `Text.Pandoc.Options`:
7292 + Added `Ext_lists_without_preceding_blankline`,
7293 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
7294 `Ext_yaml_metadataBlock` to `Extension`.
7295 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
7296 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
7297 first command-line argument is an absolute URL. (So, relative links
7298 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
7299 + All bibliography-related fields have been removed from
7300 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
7301 `readerReferences`, `readerCitationStyle`.
7302 + Removed `writerPdfArgs` from `WriterOptions`. These are now
7303 passed in as a parameter to `makePDF`.
7305 * The `Text.Pandoc.Biblio` module has been removed. Users of the
7306 pandoc library who want citation support will need to use
7307 `Text.CSL.Pandoc` from `pandoc-citeproc`.
7310 [bug fixes]
7312 * In markdown, don't autolink a bare URI that is followed by `</a>`
7313 (#937).
7315 * `Text.Pandoc.Shared`
7317 + `openURL` now follows redirects (#701), properly handles `data:`
7318 URIs, and prints diagnostic output to stderr rather than stdout.
7319 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
7320 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
7321 + Fixed `readDefaultDataFile` so it works on Windows.
7322 + Better error messages for `readDefaultDataFile`. Instead of
7323 listing the last path tried, which can confuse people who are
7324 using `--self-contained`, so now we just list the data file name.
7325 + URL-escape pipe characters. Even though these are legal, `Network.URI`
7326 doesn't regard them as legal in URLs. So we escape them first (#535).
7328 * Mathjax in HTML slide shows: include explicit "Typeset" call.
7329 This seems to be needed for some formats (e.g. slideous) and won't
7330 hurt in others (#966).
7332 * `Text.Pandoc.PDF`
7334 + On Windows, create temdir in working directory, since the system
7335 temp directory path may contain tildes, which can cause
7336 problems in LaTeX (#777).
7337 + Put temporary output directory in `TEXINPUTS` (see #917).
7338 + `makePDF` tries to download images that are not found locally,
7339 if the first argument is a URL (#917).
7340 + If compiling with `pdflatex` yields an encoding error, offer
7341 the suggestion to use `--latex-engine=xelatex`.
7343 * Produce automatic header identifiers in parsing textile, RST,
7344 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
7346 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
7347 before treating as a filename. This fixes `--self-contained` when used
7348 with CSS files that include web fonts using the method described here:
7349 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
7350 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
7352 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
7353 percent-encoding, or a `+` character, as final punctuation.
7355 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
7356 EPS images properly sized on conversion to Word.
7358 * Slidy: Use slidy.js rather than slidy.js.gz.
7359 Reason: some browsers have trouble with the gzipped js file,
7360 at least on the local file system (#795).
7362 * Markdown reader
7364 + Properly handle blank line at beginning of input (#882).
7365 + Fixed bug in unmatched reference links. The input
7366 `[*infile*] [*outfile*]` was getting improperly parsed:
7367 "infile" was emphasized, but "*outfile*" was literal (#883).
7368 + Allow internal `+` in citation identifiers (#856).
7369 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
7370 + Do not generate blank title, author, or date metadata elements.
7371 Leave these out entirely if they aren't present.
7372 + Allow backtick code blocks not to be preceded by blank line (#975).
7374 * Textile reader:
7376 + Correctly handle entities.
7377 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
7378 in code blocks, rather than printing them verbatim. Parse attributes
7379 on `<pre>` tag for code blocks.
7381 * HTML reader: Handle non-simple tables (#893). Column widths are read from
7382 `col` tags if present, otherwise divided equally.
7384 * LaTeX reader
7386 + Support alltt environment (#892).
7387 + Support `\textasciitilde`, `\textasciicircum` (#810).
7388 + Treat `\textsl` as emphasized text reader (#850).
7389 + Skip positional options after `\begin{figure}`.
7390 + Support `\v{}` for hacek (#926).
7391 + Don't add spurious ", " to citation suffixes.
7392 This is added when needed in pandoc-citeproc.
7393 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
7394 + Improved support for accented characters (thanks to Scott Morrison).
7395 + Parse label after section command and set id (#951).
7397 * RST reader:
7399 + Don't insert paragraphs where docutils doesn't.
7400 `rst2html` doesn't add `<p>` tags to list items (even when they are
7401 separated by blank lines) unless there are multiple paragraphs in the
7402 list. This commit changes the RST reader to conform more closely to
7403 what docutils does (#880).
7404 + Improved metadata. Treat initial field list as metadata when
7405 standalone specified. Previously ALL fields "title", "author",
7406 "date" in field lists were treated as metadata, even if not at
7407 the beginning. Use `subtitle` metadata field for subtitle.
7408 + Fixed 'authors' metadata parsing in reST. Semicolons separate
7409 different authors.
7411 * MediaWiki reader
7413 + Allow space before table rows.
7414 + Fixed regression for `<ref>URL</ref>`.
7415 `<` is no longer allowed in URLs, according to the uri parser
7416 in `Text.Pandoc.Parsing`. Added a test case.
7417 + Correctly handle indented preformatted text without preceding
7418 or following blank line.
7419 + Fixed `|` links inside table cells. Improved attribute parsing.
7420 + Skip attributes on table rows. Previously we just crashed if
7421 rows had attributes, now we ignore them.
7422 + Ignore attributes on headers.
7423 + Allow `Image:` for images (#971).
7424 + Parse an image with caption in a paragraph by itself as a figure.
7426 * LaTeX writer
7428 + Don't use ligatures in escaping inline code.
7429 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
7430 wherein notes were numbered incorrectly in tables (#827).
7431 + Always create labels for sections. Previously the labels were only
7432 created when there were links to the section in the document (#871).
7433 + Stop escaping `|` in LaTeX math.
7434 This caused problems with array environments (#891).
7435 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
7436 `\` will cause major problems if unescaped.
7437 + Write id for code block to label attribute in LaTeX when listings
7438 is used (thanks to Florian Eitel).
7439 + Scale LaTeX tables so they don't exceed columnwidth.
7440 + Avoid problem with footnotes in unnumbered headers (#940).
7442 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
7443 to the slide if it is one of the header classes. It is recommended
7444 that your bibliography slide have this attribute:
7446 # References {.allowframebreaks}
7448 This causes multiple slides to be created if necessary, depending
7449 on the length of the bibliography.
7451 * ConTeXt writer: Properly handle tables without captions. The old output
7452 only worked in MkII. This should work in MkIV as well (#837).
7454 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
7456 * HTML writer:
7458 + Fixed `--no-highlight` (Alexander Kondratskiy).
7459 + Don't convert to lowercase in email obfuscation (#839).
7460 + Ensure proper escaping in `<title>` and `<meta>` fields.
7462 * AsciiDoc writer:
7464 + Support `--atx-headers` (Max Rydahl Andersen).
7465 + Don't print empty identifier blocks `([[]])` on headers (Max
7466 Rydahl Andersen).
7468 * ODT writer:
7470 + Fixing wrong numbered-list indentation in open document format
7471 (Alexander Kondratskiy) (#369).
7472 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
7473 + Minor changes for ODF 1.2 conformance (#939). We leave the
7474 nonconforming `contextual-spacing` attribute, which is provided by
7475 LibreOffice itself and seems well supported.
7477 * Docx writer:
7479 + Fixed rendering of display math in lists.
7480 In 1.11 and 1.11.1, display math in lists rendered as a new list
7481 item. Now it always appears centered, just as outside of lists,
7482 and in proper display math style, no matter how far indented the
7483 containing list item is (#784).
7484 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
7485 Previously we used `w:cr` (#873).
7486 + Use Compact style for Plain block elements, to
7487 differentiate between tight and loose lists (#775).
7488 + Ignore most components of `reference.docx`.
7489 We take the `word/styles.xml`, `docProps/app.xml`,
7490 `word/theme/theme1.xml`, and `word/fontTable.xml` from
7491 `reference.docx`, ignoring everything else. This should help
7492 with the corruption problems caused when different versions of
7493 Word resave the reference.docx and reorganize things.
7494 + Made `--no-highlight` work properly.
7496 * EPUB writer
7498 + Don't add `dc:creator` tags if present in EPUB metadata.
7499 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
7500 + Don't put blank title page in reading sequence.
7501 Set `linear="no"` if no title block. Addresses #797.
7502 + Download webtex images and include as data URLs.
7503 This allows you to use `--webtex` in creating EPUBs.
7504 Math with `--webtex` is automatically made self-contained.
7505 + In `data/epub.css`, removed highlighting styles (which
7506 are no longer needed, since styles are added by the HTML
7507 writer according to `--highlighting-style`). Simplified
7508 margin fields.
7509 + If resource not found, skip it, as in Docx writer (#916).
7511 * RTF writer:
7513 + Properly handle characters above the 0000-FFFF range.
7514 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
7515 + Fixed regression with RTF table of contents.
7516 + Only autolink absolute URIs. This fixes a regression, #830.
7518 * Markdown writer:
7520 + Only autolink absolute URIs. This fixes a regression, #830.
7521 + Don't wrap attributes in fenced code blocks.
7522 + Write full metadata in MMD style title blocks.
7523 + Put multiple authors on separate lines in pandoc titleblock.
7524 Also, don't wrap long author entries, as new lines get treated
7525 as new authors.
7527 * `Text.Pandoc.Templates`:
7529 + Fixed bug retrieving default template for markdown variants.
7530 + Templates can now contain "record lookups" in variables;
7531 for example, `author.institution` will retrieve the `institution`
7532 field of the `author` variable.
7533 + More consistent behavior of `$for$`. When `foo` is not a list,
7534 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
7535 So if `foo` resolves to "", no output should be produced.
7536 See pandoc-templates#39.
7538 * Citation processing improvements (now part of pandoc-citeproc):
7540 + Fixed `endWithPunct` The new version correctly sees a sentence
7541 ending in '.)' as ending with punctuation. This fixes a bug which
7542 led such sentences to receive an extra period at the end: '.).'.
7543 Thanks to Steve Petersen for reporting.
7544 + Don't interfere with Notes that aren't citation notes.
7545 This fixes a bug in which notes not generated from citations were
7546 being altered (e.g. first letter capitalized) (#898).
7547 + Only capitalize footnote citations when they have a prefix.
7548 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
7549 inserted before it before passing to citeproc-hs, so that bare numbers
7550 are treated as page numbers by default. A suffix not beginning with
7551 punctuation has a space added at the beginning (rather than a comma and
7552 space, as was done before for not-author-in-text citations).
7553 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
7554 properly, with '23' treated as a locator of type 'page'.
7555 + Many improvements to citation rendering, due to fixes in citeproc-hs
7556 (thanks to Andrea Rossato).
7557 + Warnings are issued for undefined citations, which are rendered
7558 as `???`.
7559 + Fixed hanging behavior when locale files cannot be found.
7561 [template changes]
7563 * DocBook: Use DocBook 4.5 doctype.
7565 * Org: '#+TITLE:' is inserted before the title.
7566 Previously the writer did this.
7568 * LaTeX: Changes to make mathfont work with xelatex.
7569 We need the mathspec library, not just fontspec, for this.
7570 We also need to set options for setmathfont (#734).
7572 * LaTeX: Use `tex-ansi` mapping for `monofont`.
7573 This ensures that straight quotes appear as straight, rather than
7574 being treated as curly. See #889.
7576 * Made `\includegraphics` more flexible in LaTeX template.
7577 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
7579 * LaTeX/Beamer: Added `classoption` variable.
7580 This is intended for class options like `oneside`; it may
7581 be repeated with different options. (Thanks to Oliver Matthews.)
7583 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
7585 * LaTeX: Added `biblio-style` variable (#920).
7587 * DZSlides: title attribute on title section.
7589 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
7591 [under-the-hood improvements]
7593 * Markdown reader:Improved strong/emph parsing, using the strategy of
7594 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
7595 no backtracking, and no keeping track of nesting levels. It will give
7596 different results in some edge cases, but these should not affect normal
7597 uses.
7599 * Added `Text.Pandoc.Compat.Monoid`.
7600 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
7601 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
7603 * Added `Text.Pandoc.Compat.TagSoupEntity`.
7604 This allows pandoc to compile with `tagsoup` 0.13.x.
7605 Thanks to Dirk Ullrich for the patch.
7607 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
7608 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
7609 handle simple math in bibliography fields.)
7611 * Added `Text.Pandoc.Writers.Shared` for shared functions used
7612 only in writers. `metaToJSON` is used in writers to create a
7613 JSON object for use in the templates from the pandoc metadata
7614 and variables. `getField`, `setField`, and `defField` are
7615 for working with JSON template contexts.
7617 * Added `Text.Pandoc.Asciify` utility module.
7618 This exports functions to create ASCII-only versions of identifiers.
7620 * `Text.Pandoc.Parsing`
7622 + Generalized state type on `readWith` (API change).
7623 + Specialize readWith to `String` input. (API change).
7624 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
7625 with `stateMeta` and `stateMeta'`.
7627 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
7628 bytestrings seemed to cause problems using pandoc on 64-bit Windows
7629 7/8 (#874).
7631 * Factored out `registerHeader` from markdown reader, added to
7632 `Text.Pandoc.Parsing`.
7634 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
7635 Reason: < 0.5 does not provide a monoid instance for Attribute,
7636 which is now needed by the HTML writer (#803).
7638 * Added `http-conduit` flag, which allows fetching https resources.
7639 It also brings in a large number of dependencies (`http-conduit`
7640 and its dependencies), which is why for now it is an optional flag
7641 (#820).
7643 * Added CONTRIBUTING.md.
7645 * Improved INSTALL instructions.
7647 * `make-windows-installer.bat`: Removed explicit paths for executables.
7649 * `aeson` is now used instead of `json` for JSON.
7651 * Set default stack size to 16M. This is needed for some large
7652 conversions, esp. if pandoc is compiled with 64-bit ghc.
7654 * Various small documentation improvements.
7655 Thanks to achalddave and drothlis for patches.
7657 * Removed comment that chokes recent versions of CPP (#933).
7659 * Removed support for GHC version < 7.2, since pandoc-types now
7660 requires at least GHC 7.2 for GHC generics.
7663pandoc (1.11.1)
7665 * Markdown reader:
7667 + Fixed regression in which parentheses were lost in link URLs.
7668 Added tests. Closes #786.
7669 + Better handling of unmatched double quotes in `--smart` mode.
7670 These occur frequently in fiction, since it is customary not to
7671 close quotes in dialogue if the speaker does not change between
7672 paragraphs. The unmatched quotes now get turned into literal
7673 left double quotes. (No `Quoted` inline is generated, however.)
7674 Closes #99 (again).
7676 * HTML writer: Fixed numbering mismatch between TOC and sections.
7677 `--number-offset` now affects TOC numbering as well
7678 as section numbering, as it should have all along. Closes #789.
7680 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
7681 as markdown citations, even if `--bibliography` was specified, unless
7682 `citation` extension is disabled. Now, formatted citations are always
7683 printed if `--bibliography` was specified. If you want to reformat
7684 markdown keeping pandoc markdown citations intact, don't use
7685 `--bibliography`. Note that citations parsed from LaTeX documents will
7686 be rendered as pandoc markdown citations when `--bibliography` is not
7687 specified.
7689 * ODT writer: Fixed regression leading to corrupt ODTs.
7690 This was due to a change in the `Show` instance for
7691 `Text.Pandoc.Pretty.Doc`. Closes #780.
7693 * Fixed spacing bugs involving code block attributes in
7694 RST reader and Markdown writer. Closes #763.
7696 * Windows package: Various improvements due to Fyodor Sheremetyev.
7698 + Automatically set installation path (Program Files or Local App Data).
7699 + Set system PATH environment variable when installing for all users.
7700 + Pandoc can installed for all users using the following command.
7701 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
7703 * Bumped QuickCheck version bound.
7705pandoc (1.11)
7707 * Added `--number-offset` option. (See README for description.)
7709 * Added `--default-image-extension` option. (See README for description.)
7711 * `--number-sections` behavior change: headers with class `unnumbered`
7712 will not be numbered.
7714 * `--version` now reports the default data directory.
7716 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
7718 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
7720 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
7721 a field for `Attr` rather than just `String`. (API change.)
7723 * Added `markdown_github` as input format. This was an accidental
7724 omission in 1.10.
7726 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
7727 change.)
7729 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
7731 * Beamer template:
7733 + Fixed captions with longtable. Thanks to Joost Kremers.
7734 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
7736 * LaTeX template:
7738 + Load microtype after fonts. Microtype needs to know
7739 what fonts are being used. Thanks to dfc for the patch.
7740 + Set `secnumdepth` to 5 if `--number-sections` specified.
7741 This yields behavior equivalent to the other writers, numbering
7742 level 4 and 5 headers too. Closes #753.
7744 * HTML reader:
7746 + Handle `<colgroup>` tag.
7747 + Preserve all header attributes.
7749 * LaTeX reader:
7751 + Parse `\hrule` as `HorizontalRule`. Closes #746.
7752 + Parse starred variants of `\section` etc. as headers with
7753 attribute `unnumbered`.
7754 + Read optional attributes in `lstlisting` and `Verbatim` environments.
7755 We convert these to pandoc standard names, e.g. `numberLines`
7756 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
7757 + Handle language attribute for lstlistings.
7758 + Better support for Verbatim and minted environments. Closes #763.
7760 * Markdown reader:
7762 + `-` in an attribute context = `.unnumbered`. The point of this
7763 is to provide a way to specify unnumbered headers in non-English
7764 documents.
7765 + Fixed bug parsing key/value attributes. Parsing failed if you
7766 had an unquoted attribute immediately before the final '}'.
7767 + Make backslash escape work in attributes.
7768 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
7769 pandoc will parse a MMD title block if it sees one, even if
7770 `pandoc_title_blocks` is enabled.
7771 + Refactoring: `litChar` now includes entities, so we don't need
7772 to use `fromEntities` e.g. on titles.
7773 + Allow spaces around borders in pipe tables. Closes #772.
7774 + Allow all punctuation in angle-bracket autolinks. Previously
7775 things like `----` were disallowed, because the uri parser
7776 treated them as trailing punctuation. Closes #768.
7777 + Make `implicit_header_references` work properly when
7778 headers are given explicit identifiers.
7779 + Check for tables before line blocks. Otherwise some pipe
7780 tables get treated as line blocks.
7781 + Allow `&` in emails (for entities).
7782 + Properly handle entities in titles and links. A markdown link
7783 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
7784 Closes #723.
7786 * Textile reader:
7788 + Handle attributes on headers.
7790 * LaTeX reader:
7792 + Add `fig:` as title for images with captions.
7793 This is needed for them to be rendered as figures. Closes #766.
7794 + Never emit an empty paragraph. See #761.
7795 + Handle `\caption` for images in figures. Closes #766.
7796 + Parse `\section*`, etc. as unnumbered sections.
7798 * HTML writer:
7800 + Support header attributes. The attributes go on
7801 the enclosing `section` or `div` tag if `--section-divs` is specified.
7802 + Fixed a regression (only now noticed) in html+lhs output.
7803 Previously the bird tracks were being omitted.
7805 * LaTeX writer:
7807 + Omit lists with no items to avoid LaTeX errors.
7808 + Support line numbering with `--listings`.
7809 If `numberLines` class is present, we add `numbers=left`;
7810 if `startFrom` is present, we add `firstnumber=`. (#763)
7812 * ConTeXt writer:
7814 + Removed `\placecontent`. This produced a duplicate toc,
7815 in conjunction with `\placelist`.
7816 + Use `\title`, `\subject` etc. for headers with
7817 `unnumbered` class.
7819 * Textile writer:
7821 + Support header attributes.
7823 * Markdown writer:
7825 + Use grid tables when needed, and if enabled. Closes #740.
7826 + Render citations as pandoc-markdown citations.
7827 Previously citations were rendered as citeproc-formatted citations
7828 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
7829 unless the `citations` extension is disabled.
7830 If you still want formatted citations in your markdown output,
7831 use `pandoc -t markdown-citations`.
7833 * RST writer:
7835 + Support `:number-lines:` in code blocks.
7837 * Docx writer:
7839 + Better treatment of display math. Display math inside a
7840 paragraph is now put in a separate paragraph, so it will render
7841 properly (centered and without extra blank lines around it).
7842 Partially addresses #742.
7843 + Content types and document rels xml files are now created from
7844 scratch, rather than being taken over from `reference.docx`.
7845 This fixes problems that arise when you edit the `reference.docx`
7846 with Word.
7847 + We also now encode mime types for each individual image rather
7848 than using defaults. This should allow us to handle a wider
7849 range of image types (including PDF). Closes #414.
7850 + Changed style names in `reference docx`.
7851 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
7852 The old names got changed by Word when the `reference.docx` was
7853 edited. Closes #414.
7855 * EPUB writer:
7857 + Fix section numbering. Previously the numbering restarted from 1
7858 in each chapter (with `--number-sections`), though the numbers in
7859 the table of contents were correct.
7860 + Headers with "unnumbered" attribute are not numbered. (Nor do they
7861 cause an increment in running numbering.) Section numbers now work
7862 properly, even when there is material before the first numbered section.
7863 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
7864 but `linear` is set to `no` unless the `--toc` option is specified.
7865 Include `<guide>` element in OPF. This should allow the TOC to
7866 be useable in Kindles when converted with kindlegen. Closes #773.
7868 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
7869 This dramatically reduces the speed penalty that comes from enabling the
7870 `autolink_bare_uris` extension. The penalty is still substantial (in one
7871 test, from 0.33s to 0.44s), but nowhere near what it used to be.
7872 The RST reader is also much faster now, as it autodetects URIs.
7874 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
7875 with class "unnumbered". Unnumbered sections get `[]` for their
7876 section number.
7878 * `Text.Pandoc.Pretty`:
7880 + Fixed `chomp` so it works inside `Prefixed` elements.
7881 + Changed `Show` instance so it is better for debugging.
7883 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
7885 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
7887 * Windows installer improvements:
7889 + The installer is now signed with a certificate (thanks to
7890 Fyodor Sheremetyev).
7891 + WiX is used instead of InnoSetup. The installer is now a
7892 standard msi file.
7893 + The version number is now auto-detected, and need not be
7894 updated separately.
7896 * OSX installer improvements:
7898 + The package and pandoc executable are now signed with a
7899 certificate (thanks to Fyodor Sheremetyev).
7900 + RTF version of license is used.
7901 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
7902 Closes #580.
7904 * Converted COPYING to markdown.
7906 * pandoc.cabal: Require latest versions of highlighting-kate,
7907 texmath, citeproc-hs, zip-archive.
7909pandoc (1.10.1)
7911 * Markdown reader: various optimizations, leading to a
7912 significant performance boost.
7914 * RST reader: Allow anonymous form of inline links:
7915 `` `hello <url>`__ `` Closes #724.
7917 * Mediawiki reader: Don't require newlines after tables.
7918 Thanks to jrunningen for the patch. Closes #733.
7920 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
7921 when output is LaTeX, and applied when it is another format.
7922 Partially addresses #730.
7924 * Markdown and RST readers: Added parser to `block` that skips blank
7925 lines. This fixes a subtle regression involving grid tables with
7926 empty cells. Also added test for grid table with empty cells.
7927 Closes #732.
7929 * RST writer: Use `.. code:: language` for code blocks with language.
7930 Closes #721.
7932 * DocBook writer: Fixed output for hard line breaks, adding a newline
7933 between `<literallayout>` tags.
7935 * Markdown writer: Use an autolink when link text matches url.
7936 Previously we also checked for a null title, but this
7937 test fails for links produced by citeproc-hs in bibliographies.
7938 So, if the link has a title, it will be lost on conversion
7939 to an autolink, but that seems okay.
7941 * Markdown writer: Set title, author, date variables as before.
7942 These are no longer used in the default template, since we use
7943 titleblock, but we set them anyway for those who use custom templates.
7945 * LaTeX writer: Avoid extra space at start/end of table cell.
7946 Thanks to Nick Bart for the suggestion of using @{}.
7948 * `Text.Pandoc.Parsing`:
7950 + More efficient version of `anyLine`.
7951 + Type of `macro` has changed; the parser now returns `Blocks`
7952 instead of `Block`.
7954 * Relaxed old-time version bound, allowing 1.0.*.
7956 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
7957 should create a symlink as described in the README.
7959pandoc (1.10.0.5)
7961 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
7962 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
7963 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
7965 * Markdown reader: Fixed bug with headerless grid tables.
7966 The 1.10 code assumed that each table header cell contains exactly one
7967 block. That failed for headerless tables (0) and also for tables with
7968 multiple blocks in a header cell. The code is fixed and tests provided.
7969 Thanks to Andrew Lee for pointing out the bug.
7971 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
7973 + Tilde code fences can again take a bare language string
7974 (`~~~ haskell`), not just curly-bracketed attributes
7975 (`~~~ {.haskell}`).
7976 + Backtick code blocks can take the curly-bracketed attributes.
7977 + Backtick code blocks don't *require* a language.
7978 + Consolidated code for the two kinds of fenced code blocks.
7980 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
7982 * Markdown writer: Use proportional font for email autolinks with
7983 obfuscation. Closes #714.
7985 * Corrected name of `blank_before_blockquote` in README. Closes #718.
7987 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
7988 The bug prevented an autolink at the end of a string (e.g.
7989 at the end of a line block line) from counting as a link. Closes #711.
7991 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
7992 This should work on Windows, unlike the TH solution with
7993 file-embed.
7995 * Eliminated use of TH in test suite.
7997 * Added `Text.Pandoc.Data` (non-exported) to hold the association
7998 list of embedded data files, if the `embed_data_files` flag is selected.
7999 This isolates the code that needs special treatment with file-embed or
8000 `hsb2hs`.
8002 * Changes to `make-windows-installer.bat`.
8004 + Exit batch file if any of the cabal-dev installs fail.
8005 + There's no longer any need to reinstall `highlighting-kate`.
8006 + Don't start with a `cabal update`; leave that to the user.
8007 + Force reinstall of pandoc.
8009 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
8010 Jens Petersen.
8012pandoc (1.10.0.4)
8014 * Fixed bug with escaped % in LaTeX reader. Closes #710.
8016pandoc (1.10.0.3)
8018 * Added further missing fb2 tests to cabal file.
8020pandoc (1.10.0.2)
8022 * Added fb2 tests to cabal file's extra-source-files.
8024pandoc (1.10.0.1)
8026 * Bump version bounds on test-framework packages.
8028pandoc (1.10)
8030 [new features]
8032 * New input formats: `mediawiki` (MediaWiki markup).
8034 * New output formats: `epub3` (EPUB v3 with MathML),
8035 `fb2` (FictionBook2 ebooks).
8037 * New `--toc-depth` option, specifying how many levels of
8038 headers to include in a table of contents.
8040 * New `--epub-chapter-level` option, specifying the header
8041 level at which to divide EPUBs into separate files.
8042 Note that this normally affects only performance, not the
8043 visual presentation of the EPUB in a reader.
8045 * Removed the `--strict` option. Instead of using `--strict`,
8046 one can now use the format name `markdown_strict` for either input
8047 or output. This gives more fine-grained control that `--strict`
8048 did, allowing one to convert from pandoc's markdown to strict
8049 markdown or vice versa.
8051 * It is now possible to enable or disable specific syntax
8052 extensions by appending them (with `+` or `-`) to the writer
8053 or reader name. For example,
8055 pandoc -f markdown-footnotes+hard_line_breaks
8057 disables footnotes and enables treating newlines as hard
8058 line breaks. The literate Haskell extensions are now implemented
8059 this way as well, using either `+lhs` or `+literate_haskell`.
8060 For a list of extension names, see the README under
8061 "Pandoc's Markdown."
8063 * The following aliases have been introduced for specific
8064 combinations of markdown extensions: `markdown_phpextra`,
8065 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
8066 work just like regular reader and writer names, and can be modified
8067 with extension modifiers as described above. (Note that conversion
8068 from one markdown dialect to another does not work perfectly,
8069 because there are differences in markdown parsers besides
8070 just the extensions, and because pandoc's internal document model is
8071 not rich enough to capture all of the extensions.)
8073 * New `--html-q-tags` option. The previous default was to use `<q>`
8074 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
8075 Moreover, they are not a robust way of typesetting quotes, since
8076 some user agents don't support them, and some CSS resets (e.g.
8077 bootstrap) prevent pandoc's quotes CSS from working properly.
8078 We now just insert literal quote characters by default in both
8079 `html` and `html5` output, but this option is provided for
8080 those who still want `<q>` tags.
8082 * The markdown reader now prints warnings (to stderr) about
8083 duplicate link and note references. Closes #375.
8085 * Markdown syntax extensions:
8087 + Added pipe tables. Thanks to François Gannaz for the initial patch.
8088 These conform to PHP Markdown Extra's pipe table syntax. A subset
8089 of org-mode table syntax is also supported, which means that you can
8090 use org-mode's nice table editor to create tables.
8092 + Added support for RST-style line blocks. These are
8093 useful for verse and addresses.
8095 + Attributes can now be specified for headers, using the same
8096 syntax as in code blocks. (However, currently only the
8097 identifier has any effect in most writers.) For example,
8099 # My header {#foo}
8101 See [the header above](#foo).
8103 + Pandoc will now act as if link references have been defined
8104 for all headers without explicit identifiers.
8105 So, you can do this:
8107 # My header
8109 Link to [My header].
8110 Another link to [it][My header].
8112 Closes #691.
8114 * LaTeX reader:
8116 + Command macros now work everywhere, including non-math.
8117 Environment macros still not supported.
8118 + `\input` now works, as well as `\include`. TEXINPUTS is used.
8119 Pandoc looks recursively into included files for more included files.
8121 [behavior changes]
8123 * The Markdown reader no longer puts the text of autolinks in a
8124 `Code` inline. This means that autolinks will no longer appear
8125 in a monospace font.
8127 * The character `/` can now appear in markdown citation keys.
8129 * HTML blocks in strict_markdown are no longer required to begin
8130 at the left margin. Technically this is required, according to
8131 the markdown syntax document, but `Markdown.pl` and other markdown
8132 processors are more liberal.
8134 * The `-V` option has been changed so that if there are duplicate
8135 variables, those specified later on the command line take precedence.
8137 * Tight lists now work in LaTeX and ConTeXt output.
8139 * The LaTeX writer no longer relien on the `enumerate` package.
8140 Instead, it uses standard LaTeX commands to change the list numbering
8141 style.
8143 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
8144 tables to be split over page boundaries.
8146 * The RST writer now uses a line block to render paragraphs containing
8147 linebreaks (which previously weren't supported at all).
8149 * The markdown writer now applies the `--id-prefix` to footnote IDs.
8150 Closes #614.
8152 * The plain writer no longer uses backslash-escaped line breaks
8153 (which are not very "plain").
8155 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
8156 Read bytestring and use `Text`'s decodeUtf8 instead of using
8157 `System.IO.hGetContents`. This way you get a message saying
8158 "invalid UTF-8 stream" instead of "invalid byte sequence."
8159 You are also told which byte caused the problem.
8161 * Docx, ODT, and EPUB writers now download images specified by a URL
8162 instead of skipping them or raising an error.
8164 * EPUB writer:
8166 + The default CSS now left-aligns headers by default, instead of
8167 centering. This is more consistent with the rest of the writers.
8168 + A proper multi-level table of contents is now used in `toc.ncx`.
8169 There is no longer a subsidiary table of contents at the beginning
8170 of each chapter.
8171 + Code highlighting now works by default.
8172 + Section divs are used by default for better semantic markup.
8173 + The title is used instead of "Title Page" in the table of contents.
8174 Otherwise we have a hard-coded English string, which looks
8175 strange in ebooks written in other languages. Closes #572.
8177 * HTML writer:
8179 + Put mathjax in span with class "math". Closes #562.
8180 + Put citations in a span with class "citation." In HTML5, also include
8181 a `data-cite` attribute with a space-separated list of citation
8182 keys.
8184 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
8185 This treats both `\r\n` and `\n` as `\n` on input, no matter
8186 what platform we're running on.
8188 * Citation processing is now done in the Markdown and LaTeX
8189 readers, not in `pandoc.hs`. This makes it easier for library users
8190 to use citations.
8192 [template changes]
8194 * HTML: Added css to template to preserve spaces in `<code>` tags.
8195 Thanks to Dirk Laurie.
8197 * Beamer: Remove English-centric strings in section pages.
8198 Section pages used to have "Section" and a number as well as the
8199 section title. Now they just have the title. Similarly for part
8200 and subsection. Closes #566.
8202 * LaTeX, ConTeXt: Added papersize variable.
8204 * LaTeX, Beamer templates: Use longtable instead of ctable.
8206 * LaTeX, Beamer templates: Don't require 'float' package for tables.
8207 We don't actually seem to use the '[H]' option.
8209 * LaTeX: Use `upquote` package if it is available. This fixes
8210 straight quotes in verbatim environments.
8212 * Markdown, plain: Fixed titleblock so it is just a single string.
8213 Previously separate title, author, and date variables were used,
8214 but this didn't allow different kinds of title blocks.
8216 * EPUB:
8218 + Rationalized templates. Previously there were three different
8219 templates involved in epub production. There is now just one
8220 template, `default.epub` or `default.epub3`. It can now be
8221 overridden using `--template`, just like other templates.
8222 The titlepage is now folded into the default template.
8223 A `titlepage` variable selects it.
8224 + UTF-8, lang tag, meta tags, title element.
8226 * Added scale-to-width feature to beamer template
8228 [API changes]
8230 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
8231 Previously header identifers were autogenerated by the writers.
8232 Now they are added in the readers (either automatically or explicitly).
8234 * `Text.Pandoc.Builder`:
8236 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
8237 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
8238 custom Monoid instances for `Many Inline` and `Many Block. This
8239 allows `Many` to be made an instance of `Foldable` and `Traversable`.
8240 + The old `Listable` class has been removed.
8241 + The module now exports `isNull`, `toList`, `fromList`.
8242 + The old `Read` and `Show` instances have been removed; derived
8243 instances are now used.
8244 + Added `headerWith`.
8246 * The readers now take a `ReaderOptions` rather than a `ParserState`
8247 as a parameter. Indeed, not all parsers use the `ParserState` type;
8248 some have a custom state. The motivation for this change was to separate
8249 user-specifiable options from the accounting functions of parser state.
8251 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
8252 formerly in `Text.Pandoc.Shared`, and its associated
8253 data types. It also includes a new type `ReaderOptions`, which
8254 contains many options formerly in `ParserState`, and its associated
8255 data types:
8257 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
8258 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
8259 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
8260 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
8261 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
8262 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
8263 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
8264 + `ParserState.stateIndentedCodeClasses` ->
8265 `ReaderOptions.readerIndentedCodeClasses`.
8266 + Added `ReaderOptions.readerCitationStyle`.
8268 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
8269 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
8270 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
8271 been renamed `writerEpubMetadata` for consistency.
8273 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
8274 longer stylesheet, fonts, reference files as separate parameters.
8276 * Removed `writerLiterateHaskell` from `WriterOptions`, and
8277 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
8278 by an extension (`Ext_literate_haskell`).
8280 * Removed deprecated `writerXeTeX`.
8282 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
8283 Strict is now handled through extensions.
8285 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
8286 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
8287 and `multimarkdownExtensions`, as well as the `Extensions` type.
8289 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
8290 `readMediaWiki`.
8292 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
8293 (thanks to Sergey Astanin).
8295 * `Text.Pandoc`:
8297 + Added `getReader`, `getWriter` to `Text.Pandoc`.
8298 + `writers` is now an association list `(String, Writer)`.
8299 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
8300 an `IOByteStringWriter`. ALL writers are now in the 'writers'
8301 list, including the binary writers and FB2 writer. This allows
8302 code in `pandoc.hs` to be simplified.
8303 + Changed type of `readers`, so all readers are in IO.
8304 Users who want pure readers can still get them form the reader
8305 modules; this just affects the function `getReader` that looks up
8306 a reader based on the format name. The point of this change is to
8307 make it possible to print warnings from the parser.
8309 * `Text.Pandoc.Parsing`:
8311 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
8312 No other module directly imports Parsec. This will make it easier
8313 to change the parsing backend in the future, if we want to.
8314 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
8315 + Export the type synonym `Parser`.
8316 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
8317 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
8318 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
8319 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
8320 + `ParserState` is no longer an instance of `Show`.
8321 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
8322 + Generalized type of `withQuoteContext`.
8323 + Added `guardEnabled`, `guardDisabled`, `getOption`.
8324 + Removed `failIfStrict`.
8325 + `lookupKeySrc` and `fromKey` are no longer exported.
8327 * `Data.Default` instances are now provided for `ReaderOptions`,
8328 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
8329 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
8330 of `defaultWriterOptions` (which is still defined). Closes #546.
8332 * `Text.Pandoc.Shared`:
8334 + Added `safeRead`.
8335 + Renamed `removedLeadingTrailingSpace` to `trim`,
8336 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
8337 + Count `\r` as space in `trim` functions.
8338 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
8339 to `Shared`.
8340 + Removed `failUnlessLHS`.
8341 + Export `compactify'`, formerly in Markdown reader.
8342 + Export `isTightList`.
8343 + Do not export `findDataFile`.
8344 + `readDataFile` now returns a strict ByteString.
8345 + Export `readDataFileUTF8` which returns a String, like the
8346 old `readDataFile`.
8347 + Export `fetchItem` and `openURL`.
8349 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
8350 Removed `readImageSize`.
8352 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
8353 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
8354 `fromStringLazy`.
8356 * `Text.Pandoc.UTF8` is now an exposed module.
8358 * `Text.Pandoc.Biblio`:
8360 + csl parameter now a `String` rather than a `FilePath`.
8361 + Changed type of `processBiblio`. It is no longer in the IO monad.
8362 It now takes a `Maybe Style` argument rather than parameters for CSL
8363 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
8364 the style file and add abbreviations.)
8366 * Markdown reader now exports `readMarkdownWithWarnings`.
8368 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
8369 `rtfEmbedImage`.
8371 [bug fixes]
8373 * Make `--ascii` work properly with `--self-contained`. Closes #568.
8375 * Markdown reader:
8377 + Fixed link parser to avoid exponential slowdowns. Closes #620.
8378 Previously the parser would hang on input like this:
8380 [[[[[[[[[[[[[[[[[[hi
8382 We fixed this by making the link parser parser characters
8383 between balanced brackets (skipping brackets in inline code spans),
8384 then parsing the result as an inline list. One change is that
8386 [hi *there]* bud](/url)
8388 is now no longer parsed as a link. But in this respect pandoc behaved
8389 differently from most other implementations anyway, so that seems okay.
8391 + Look for raw html/latex blocks before tables.
8392 Otherwise the following gets parsed as a table:
8394 \begin{code}
8395 --------------
8396 -- My comment.
8397 \end{code}
8399 Closes #578.
8401 * RST reader:
8403 + Added support for `:target:` on `.. image::` blocks
8404 and substitutions.
8405 + Field list fixes:
8407 - Fixed field lists items with body beginning after a new line
8408 (Denis Laxalde).
8409 - Allow any char but ':' in names of field lists in RST reader
8410 (Denis Laxalde).
8411 - Don't allow line breaks in field names.
8412 - Require whitespace after field list field names.
8413 - Don't create empty definition list for metadata field lists.
8414 Previously a field list consisting only of metadata fields (author,
8415 title, date) would be parsed as an empty DefinitionList, which is
8416 not legal in LaTeX and not needed in any format.
8418 + Don't recognize inline-markup starts inside words.
8419 For example, `2*2 = 4*1` should not contain an emphasized
8420 section. Added test case for "Literal symbols". Closes #569.
8421 + Allow dashes as separator in simple tables. Closes #555.
8422 + Added support for `container`, `compound`, `epigraph`,
8423 `rubric`, `highlights`, `pull-quote`.
8424 + Added support for `.. code::`.
8425 + Made directive labels case-insensitive.
8426 + Removed requirement that directives begin at left margin.
8427 This was (correctly) not in earlier releases; docutils doesn't
8428 make the requirement.
8429 + Added support for `replace::` and `unicode::` substitutions.
8430 + Ignore unknown interpreted roles.
8431 + Renamed image parser to `subst`, since it now handles all
8432 substitution references.
8434 * Textile reader:
8436 + Allow newlines before pipes in table. Closes #654.
8437 + Fixed bug with list items containing line breaks.
8438 Now pandoc correctly handles hard line breaks inside list items.
8439 Previously they broke list parsing.
8440 + Implemented comment blocks.
8441 + Fixed bug affected words ending in hyphen.
8442 + Properly handle links with surrounding brackets.
8443 Square brackets need to be used when the link isn't surrounded by
8444 spaces or punctuation, or when the URL ending may be ambiguous.
8445 Closes #564.
8446 + Removed nullBlock. Better to know about parsing problems than
8447 to skip stuff when we get stuck.
8448 + Allow ID attributes on headers.
8449 + Textile reader: Avoid parsing dashes as strikeout.
8450 Previously the input
8452 text--
8453 text--
8454 text--
8455 text--
8457 would be parsed with strikeouts rather than dashes. This fixes
8458 the problem by requiring that a strikeout delimiting - not be
8459 followed by a -. Closes #631.
8460 + Expanded list of `stringBreakers`.
8461 This fixes a bug on input like "(_hello_)" which should
8462 be a parenthesized emphasized "hello".
8463 The new list is taken from the PHP source of textile 2.4.
8464 + Fixed autolinks. Previously the textile reader and writer
8465 incorrectly implented RST-style autolinks for URLs and email
8466 addresses. This has been fixed. Now an autolink is done this way:
8467 `"$":http://myurl.com`.
8468 + Fixed footnotes bug in textile. This affected notes occuring
8469 before punctuation, e.g. `foo[1].`. Closes #518.
8471 * LaTeX reader:
8473 + Better handling of citation commands.
8474 + Better handling of `\noindent`.
8475 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
8476 Closes #622.
8477 + Made `rawLaTeXInline` try to parse block commands as well. This
8478 is usually what we want, given how `rawLaTeXInline` is used in
8479 the markdown and textile readers. If a block-level LaTeX command
8480 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
8481 we can treat it as raw inline LaTeX.
8482 + Handle \slash command. Closes #605.
8483 + Basic `\enquote` support.
8484 + Fixed parsing of paragraphs beginning with a group. Closes #606.
8485 + Use curly quotes for bare straight quotes.
8486 + Support obeylines environment. Closes #604.
8487 + Guard against "begin", "end" in inlineCommand and
8488 blockCommand.
8489 + Better error messages for environments. Now it should tell you that
8490 it was looking for \end{env}, instead of giving "unknown parse error."
8492 * HTML reader:
8494 + Added HTML 5 tags to list of block-level tags.
8495 + HTML reader: Fixed bug in `htmlBalanced`, which
8496 caused hangs in parsing certain markdown input using
8497 strict mode.
8498 + Parse `<q>` as `Quoted DoubleQuote`.
8499 + Handle nested `<q>` tags properly.
8500 + Modified `htmlTag` for fewer false positives.
8501 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
8502 This makes it more useful in the wikimedia and markdown parsers.
8504 * DocBook reader: Support title in "figure" element. Closes #650.
8506 * MediaWiki writer:
8508 + Remove newline after `<br/>` in translation of `LineBreak`
8509 There's no particular need for a newline (other than making the
8510 generated MediaWiki source look nice to a human), and in fact
8511 sometimes it is incorrect: in particular, inside an enumeration, list
8512 items cannot have embedded newline characters. (Brent Yorgey)
8513 + Use `<code>` not `<tt>` for Code.
8515 * Man writer: Escape `-` as `\-`.
8516 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
8517 signs. That is preferable for use with command-line options. See
8518 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
8519 to Andrea Bolognani for bringing the issue to our attention.
8521 * RST writer:
8523 + Improved line block output. Use nonbreaking spaces for
8524 initial indent (otherwise lost in HTML and LaTeX).
8525 Allow multiple paragraphs in a single line block.
8526 Allow soft breaks w continuations in line blocks.
8527 + Properly handle images with no alt text. Closes #678.
8528 + Fixed bug with links with duplicate text. We now (a) use anonymous
8529 links for links with inline URLs, and (b) use an inline link instead
8530 of a reference link if the reference link would require a label that
8531 has already been used for a different link. Closes #511.
8532 + Fixed hyperlinked images. Closes #611. Use `:target:`
8533 field when you have a simple linked image.
8534 + Don't add `:align: center` to figures.
8536 * Texinfo writer: Fixed internal cross-references.
8537 Now we insert anchors after each header, and use `@ref` instead of `@uref`
8538 for links. Commas are now escaped as `@comma{}` only when needed;
8539 previously all commas were escaped. (This change is needed, in part,
8540 because `@ref` commands must be followed by a real comma or period.) Also
8541 insert a blank line in from of `@verbatim` environments.
8543 * DocBook writer:
8545 + Made --id-prefix work in DocBook as well as HTML.
8546 Closes #607.
8547 + Don't include empty captions in figures. Closes #581.
8549 * LaTeX writer:
8551 + Use `\hspace*` for nonbreaking space after line break,
8552 since `~` spaces after a line break are just ignored.
8553 Closes #687.
8554 + Don't escape `_` in URLs or hyperref identifiers.
8555 + Properly escape strings inside \url{}. Closes #576.
8556 + Use `[fragile]` only for slides containing code rendered
8557 using listings. Closes #649.
8558 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
8559 highlighting-kate's macros, which redefine `|` as a short verbatim
8560 delimiter. Thanks to Björn Peemöller for raising this issue.
8561 + Use minipage rather than parbox for block containers in tables.
8562 This allows verbatim code to be included in grid tables.
8563 Closes #663.
8564 + Prevent paragraphs containing only linebreaks or spaces.
8566 * HTML writer:
8568 + Included `highlighting-css` for code spans, too.
8569 Previously it was only included if used in a code block. Closes #653.
8570 + Improved line breaks with `<dd>` tags. We now put a newline between
8571 `</dd>` and `<dd>` when there are multiple definitions.
8572 + Changed mathjax cdn url so it doesn't use https. (This caused
8573 problems when used with `--self-contained`.) See #609.
8575 * EPUB writer:
8577 + `--number-sections` now works properly.
8578 + Don't strip meta and link elements in epub metadata.
8579 Patch from aberrancy. Closes #589.
8580 + Fixed a couple validation bugs.
8581 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
8582 of chapters in some readers, which apparently sort ch2 after ch10.
8583 Closes #610.
8585 * ODT writer: properly set title property (Arlo O'Keeffe).
8587 * Docx writer:
8589 + Fixed bug with nested lists. Previously a list like
8591 1. one
8592 - a
8593 - b
8594 2. two
8596 would come out with a bullet instead of "2."
8597 Thanks to Russell Allen for reporting the bug.
8598 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
8599 This seems to fix a problem viewing pandoc-generated
8600 docx files in LibreOffice.
8601 + Use integer ids for bookmarks. Closes #626.
8602 + Added nsid to abstractNum elements. This helps when merging
8603 word documents with numbered or bulleted lists. Closes #627.
8604 + Use separate footnotes.xml for notes.
8605 This seems to help LibreOffice convert the file, even though
8606 it was valid docx before. Closes #637.
8607 + Use rIdNN identifiers for r:embed in images.
8608 + Avoid reading image files again when we've already processed them.
8609 + Fixed typo in `referenc.docx` that prevented image captions from
8610 working. Thanks to Huashan Chen.
8612 * `Text.Pandoc.Parsing`:
8614 + Fixed bug in `withRaw`, which didn't correctly handle the case
8615 where nothing is parsed.
8616 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
8617 though it still doesn't implement quoted strings in email addresses.
8618 + Revised URI parser. It now allows many more schemes, allows
8619 uppercase URIs, and better handles trailing punctuation and
8620 trailing slashes in bare URIs. Added many tests.
8621 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
8622 etc. parse properly. Formerly we had some English-centric heuristics,
8623 but they are no longer needed. Closes #698.
8625 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
8626 This fixes bug with Chinese commas in markdown and reST tables, and
8627 a bug that caused combining characters to be dropped.
8629 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
8631 * `Text.Pandoc.Biblio`:
8633 + Run `mvPunc` and `deNote` on metadata too.
8634 This fixed a bug with notes on titles using footnote styles.
8635 + Fixed bug in fetching CSL files from CSL data directory.
8637 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
8638 is provided. It should be the URL up to the path.
8640 * Fixed/simplified diff output for tests.
8641 Biblio: Make sure mvPunc and deNote run on metadata too.
8642 This fixed a bug with notes on titles using footnote styles.
8644 [under the hood improvements]
8646 * We no longer depend on `utf8-string`. Instead we use functions
8647 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
8649 * Use `safeRead` instead of using `reads` directly (various modules).
8651 * "Implicit figures" (images alone in a paragraph) are now handled
8652 differently. The markdown reader gives their titles the prefix `fig:`; the
8653 writers look for this before treating the image as a figure. Though this
8654 is a bit of a hack, it has two advantages: (i) implicit figures can be
8655 limited to the markdown reader, and (ii) they can be deactivated by turning
8656 off the `implicit_figures` extension.
8658 * `catch` from `Control.Exception` is now used instead of the
8659 old Preface `catch`.
8661 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
8662 and `oneOfStrings` (which is now non-backtracking).
8664 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
8665 Now citeproc-hs is fixed upstream, so this is no longer needed.
8666 Closes #531.
8668 * Textile reader: Improved speed of `hyphenedWords`.
8669 This speeds up the textile reader by about a factor of 4.
8671 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
8672 better performance, and automatic normalization.
8674 * Major rewrite of markdown reader:
8676 + Use `Text.Pandoc.Builder` instead of lists. This also
8677 means that everything is normalized automatically.
8678 + Move to a one-pass parsing strategy, returning values in the reader
8679 monad, which are then run (at the end of parsing) against the final
8680 parser state.
8682 * In HTML writer, we now use `toHtml` instead of pre-escaping.
8683 We work around the problem that blaze-html unnecessarily escapes `'`
8684 by pre-escaping just the `'` characters, instead of the whole string.
8685 If blaze-html later stops escaping `'` characters, we can simplify
8686 `strToHtml` to `toHtml`. Closes #629.
8688 * Moved code for embedding images in RTFs from `pandoc.hs` to the
8689 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
8691 * Moved citation processing from `pandoc.hs` into the readers.
8692 This makes things more convenient for library users.
8694 * The man pages are now built by an executable `make-pandoc-man-pages`,
8695 which has its own stanza in the cabal file so that dependencies can be
8696 handled by Cabal. Special treatment in `Setup.hs` ensures that this
8697 executable never gets installed; it is only used to create the man pages.
8699 * The cabal file has been modified so that the pandoc library is used
8700 in building the pandoc executable. (This required moving `pandoc.hs`
8701 from `src` to `.`.) This cuts compile time in half.
8703 * `-O2` is no longer used in building pandoc. The performance improvement
8704 it yields is so slight that it is not worth it. (Measured with
8705 benchmarks on ghc 7.4.)
8707 * The `executable` and `library` flags have been removed.
8709 * `-threaded` has been removed from ghc-options.
8711 * Version bounds of dependencies have been raised, and the
8712 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
8713 GHC 7.6.
8715 * We now require base >= 4.2.
8717 * Integrated the benchmark program into cabal. One can now do:
8719 cabal configure --enable-benchmarks && cabal build
8720 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
8722 The benchmark now uses README + testsuite, so benchmark results
8723 from older versions aren't comparable.
8725 * Integrated test suite with cabal.
8726 To run tests, configure with `--enable-tests`, then `cabal test`.
8727 You can specify particular tests using `--test-options='-t markdown'`.
8728 No output is shown unless tests fail. The Haskell test modules
8729 have been moved from `src/` to `tests/`.
8731 * Moved all data files and templates to the `data/` subdirectory.
8733 * Added an `embed_data_files` cabal flag. This causes all
8734 data files to be embedded in the binary, so that the binary
8735 is self-sufficient and can be relocated anywhere, copied on
8736 a USB key, etc. The Windows installer now uses this.
8737 (Since we no longer have the option to build the executable
8738 without the library, this is the only way to get a relocatable
8739 binary on Windows.)
8741 * Removed pcre3.dll from windows package.
8742 It isn't needed unless highlighting-kate is compilled with the
8743 `pcre-light` flag. By default, regex-prce-builtin is used.
8746pandoc (1.9.4.2)
8748 * Don't encode/decode file paths if base >= 4.4.
8749 Prior to base 4.4, filepaths and command line arguments were treated
8750 as unencoded lists of bytes, not unicode strings, so we had to work
8751 around that by encoding and decoding them. This commit adds CPP
8752 checks for the base version that intelligibly enable encoding/decoding
8753 when needed. Fixes a bug with multilingual filenames when pandoc was
8754 compiled with ghc 7.4 (#540).
8756 * Don't generate an empty H1 after hrule slide breaks.
8757 We now use a slide-level header with contents `[Str "\0"]` to mark
8758 an hrule break. This avoids creation of an empty H1 in these
8759 contexts. Closes #484.
8761 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
8763 * In make_osx_package.sh, ensure citeproc-hs is built with the
8764 embed_data_files flag.
8766 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
8768 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
8769 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
8771 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
8772 Closes #535.
8774 * Added webm to mime types. Closes #543.
8776 * Added some missing exports and tests to the cabal file
8777 (Alexander V Vershilov).
8779 * Compile with `-rtsopts` and `-threaded` by default.
8781pandoc (1.9.4.1)
8783 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
8785 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
8786 variables. Make TOC links black.
8788 * LaTeX template improvements.
8790 + Don't print date unless one is given explicitly in the document.
8791 + Simplified templates.
8792 + Use fontenc [T1] by default, and lmodern.
8793 + Use microtype if available.
8795 * Biblio:
8797 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
8798 Motivation: `@item1 [50]` should be as close as possible to
8799 `[@item1, 50]`.
8800 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
8801 beginning with a citation to be empty. Closes #531.
8803 * Fixed documentation on mixed lists. Closes #533.
8805pandoc (1.9.4)
8807 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
8808 footnotes and captions. We now handle note citations by inserting
8809 footnotes during initial citation processing, and doing a separate
8810 pass later to remove notes inside notes.
8812 * Added 'zenburn' highlight style from highlighting-kate.
8814 * Added Slideous writer. Slideous is an HTML + javascript slide show
8815 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
8817 * LaTeX writer:
8819 + Ensure we don't have extra blank lines at ends of cells.
8820 This can cause LaTeX errors, as they are interpreted as new paragraphs.
8821 + More consistent interblock spacing.
8822 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
8823 code in LaTeX. Closes #527.
8824 + Ensure that a Verbatim at the end of a footnote is followed by
8825 a newline. (Fixes a regression in the previous version.)
8826 + In default template, use black for internal links and TOC.
8827 Added commented-out code to use footnotes for links, as would
8828 be suitable in print output.
8830 * Beamer writer: When `--incremental` is used, lists inside
8831 a block quote should appear all at once. (This makes Beamer
8832 output consistent with the HTML slide show formats.)
8834 * ConTeXt writer:
8836 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
8837 to avoid gobbling spaces after the `%` sign.
8838 + Ensure space after `\stopformula`.
8840 * Markdown writer:
8842 + Use `:` form instead of `~` in definition lists, for better
8843 compatibility with other markdown implementations.
8844 + Don't wrap the term, because it breaks definition lists.
8845 + Use a nonzero space to prevent false recognition
8846 of list marker in ordered lists. Closes #516.
8848 * Org writer: Add space before language name. Closes #523.
8850 * Docx writer: Simplified bullet characters so they work properly
8851 with Word 2007. Closes #520.
8853 * LaTeX reader: Support `\centerline`.
8855 * RST reader: handle figures. Closes #522.
8857 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
8858 (Paul Rivier)
8860pandoc (1.9.3)
8862 * Fixed bug in `fromEntities`. The previous version would turn
8863 `hi & low you know;` into `hi &`.
8865 * HTML reader:
8867 + Don't skip nonbreaking spaces.
8868 Previously a paragraph containing just `&nbsp;` would be rendered
8869 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
8870 + Support `<col>` and `<caption>` in tables. Closes #486.
8872 * Markdown reader:
8874 + Don't recognize references inside delimited code blocks.
8875 + Allow list items to begin with lists.
8877 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
8879 * LaTeX reader:
8881 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
8882 + Control sequences can't be followed by a letter.
8883 This fixes a bug where `\begingroup` was parsed as `\begin`
8884 followed by `group`.
8885 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
8886 + Make `\label` and `\ref` sensitive to `--parse-raw`.
8887 If `--parse-raw` is selected, these will be parsed as raw latex
8888 inlines, rather than bracketed text.
8889 + Don't crash on unknown block commands (like `\vspace{10pt}`)
8890 inside `\author`; just skip them. Closes #505.
8892 * Textile reader:
8894 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
8895 + Added support for LaTeX blocks and inlines (Paul Rivier).
8896 + Better conformance to RedCloth inline parsing (Paul Rivier).
8897 + Parse '+text+' as emphasized (should be underlined, but this
8898 is better than leaving literal plus characters in the output.
8900 * Docx writer: Fixed multi-paragraph list items. Previously they each
8901 got a list marker. Closes #457.
8903 * LaTeX writer:
8905 + Added `--no-tex-ligatures` option to avoid replacing
8906 quotation marks and dashes with TeX ligatures.
8907 + Use `fixltx2e` package to provide '\textsubscript'.
8908 + Improve spacing around LaTeX block environments:
8909 quote, verbatim, itemize, description, enumerate.
8910 Closes #502.
8911 + Use blue instead of pink for URL links in latex/pdf output.
8913 * ConTeXt writer: Fixed escaping of `%`.
8914 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
8915 Inside URLs, `%` needs to be escaped as `\%`
8916 Thanks to jmarca and adityam for the fix. Closes #492.
8918 * Texinfo writer: Escape special characters in node titles.
8919 This fixes a problem pointed out by Joost Kremers. Pandoc used
8920 to escape an '@' in a chapter title, but not in the corresponding
8921 node title, leading to invalid texinfo.
8923 * Fixed document encoding in texinfo template.
8924 Resolves Debian Bug #667816.
8926 * Markdown writer:
8928 + Don't force delimited code blocks to be flush left.
8929 Fixes bug with delimited code blocks inside lists etc.
8930 + Escape `<` and `$`.
8932 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
8933 Previously we used `\href{\#ident}{text}`, which didn't work on
8934 all systems. Thanks to Dirk Laurie.
8936 * RST writer: Don't wrap link references. Closes #487.
8938 * Updated to use latest versions of blaze-html, mtl.
8941pandoc (1.9.2)
8943 * LaTeX reader:
8945 + Made `lstlisting` work as a proper verbatim environment.
8946 + Fixed bug parsing LaTeX tables with one column.
8948 * LaTeX writer:
8950 + Use `{}` around `ctable` caption, so that formatting can be used.
8951 + Don't require eurosym package unless document has a €.
8953 * LaTeX template: Added variables for `geometry`, `romanfont`,
8954 `sansfont`, `mathfont`, `mainfont` so users can more easily
8955 customize fonts.
8957 * PDF writer:
8959 + Run latex engine at least two times, to ensure
8960 that PDFs will have hyperlinked bookmarks.
8961 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
8963 * Texinfo writer: retain directories in image paths. (Peter Wang)
8965 * RST writer: Better handling of inline formatting, in accord
8966 with docutils' "inline markup recognition rules" (though we don't
8967 implement the unicode rules fully). Now `hi*there*hi` gets
8968 rendered properly as `hi\ *there*\ hi`, and unnecessary
8969 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
8971 * RST reader:
8973 + Parse `\ ` as null, not escaped space.
8974 + Allow `` :math:`...` `` even when not followed by blank
8975 or `\`. This does not implement the complex rule docutils follows,
8976 but it should be good enough for most purposes.
8977 + Add support for the rST default-role directive. (Greg Maslov)
8979 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
8980 (Greg Maslov)
8982 * Markdown reader: Properly handle citations nested in other inline
8983 elements.
8985 * Markdown writer: don't replace empty alt in image with "image".
8987 * DZSlides: Updated template.html and styles in default template.
8988 Removed bizarre CSS for `q` in dzslides template.
8990 * Avoid repeated `id` attribute in section and header in HTML slides.
8992 * README improvements: new instructions on internal links,
8993 removed misleading note on reST math.
8995 * Build system:
8997 + Fixed Windows installer so that dzslides works.
8998 + Removed stripansi.sh.
8999 + Added .travis.yml for Travis continuous integration support..
9000 + Fixed upper bound for zlib (Sergei Trofimovich).
9001 + Fixed upper bound for test-framework.
9002 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
9004pandoc (1.9.1.2)
9006 * Added `beamer+lhs` as output format.
9008 * Don't escape `<` in `<style>` tags with `--self-contained`.
9009 This fixes a bug which prevented highlighting from working
9010 when using `--self-contained`.
9012 * PDF: run latex engine three times if `--toc` specified.
9013 This fixes page numbers in the table of contents.
9015 * Docx writer: Added TableNormal style to tables.
9017 * LaTeX math environment fixes. `aligned` is now used instead of
9018 the nonexistent `aligned*`. `multline` instead of the nonexistent
9019 `multiline`.
9021 * LaTeX writer: Use `\textasciitilde` for literal `~`.
9023 * HTML writer: Don't escape contents of EQ tags with --gladtex.
9024 This fixes a regression from 1.8.
9026 * Use `<q>` tags for Quoted items for HTML5 output.
9027 The quote style can be changed by modifying the template
9028 or including a css file. A default quote style is included.
9030 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
9031 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
9033 * Updated LaTeX template for better language support.
9034 Use `polyglossia` instead of `babel` with xetex.
9035 Set `lang` as documentclass option.
9036 `\setmainlanguage` will use the last of a comma-separated
9037 list of languages. Thanks to François Gannaz.
9039 * Fixed default LaTeX template so `\euro` and `€` work. The
9040 `eurosym` package is needed if you are using pdflatex.
9042 * Fixed escaping of period in man writer (thanks to Michael Thompson).
9044 * Fixed list label positions in beamer.
9046 * Set `mainlang` variable in context writer.
9047 This parallels behavior of latex writer. `mainlang` is the last
9048 of a comma-separated list of languages in lang.
9050 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
9052 * Changed `-V` so that you can specify a key without a value.
9053 Such keys get the value `true`.
9055 * Fixed permissions on installed man pages - thanks Magnus Therning.
9057 * Windows installer: require XP or higher. The installer is
9058 now compiled on a Windows 7 machine, which fixes a problem
9059 using citation functions on Windows 7.
9061 * OSX package: Check for 64-bit Intel CPU before installing.
9063pandoc (1.9.1.1)
9065 * Better handling of raw latex environments in markdown. Now
9067 \begin{equation}
9068 a_1
9069 \end{equation}
9071 turns into a raw latex block as expected.
9073 * Improvements to LaTeX reader:
9075 + Skip options after block commands.
9076 + Correctly handle `{\\}` in braced.
9077 + Added a needed 'try'.
9078 + Citations: add `, ` to suffix if it doesn't start with space or
9079 punctuation. Otherwise we get no space between the year and the
9080 suffix in author-date styles.
9082 * Added two needed data files for S5. This fixes a problem with
9083 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
9084 which was no longer being used.
9086 * Fixed some minor problems in `reference.docx`:
9087 name on "Date" style, `xCs` instead of `xIs`.
9089 * Fixed a problem creating docx files using a reference docx
9090 modified using Word. The problem seems to be that Word
9091 modifies `_rels/.rels`, changing the Type of the Relationship to
9092 `docProps/core.xml`. Pandoc now changes this back to the correct
9093 value if it has been altered, fixing the problem.
9095 * Fixed html5 template so it works properly with highlighting.
9097pandoc (1.9.1)
9099 * LaTeX reader:
9101 + Fixed regression in 1.9; properly handle escaped $ in latex math.
9102 + Put LaTeX verse environments in blockquotes.
9104 * Markdown reader:
9106 + Limit nesting of strong/emph. This avoids exponential lookahead
9107 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
9108 + Improved attributes syntax (inn code blocks/spans):
9109 (1) Attributes can contain line breaks. (2) Values in key-value
9110 attributes can be surrounded by either double or single quotes, or
9111 left unquoted if they contain no spaces.
9113 * Don't wrap headers in markdown or RST writers.
9115 * Added `stateMaxNestingLevel` to `ParserState`.
9116 We set this to 6, so you can still have `Emph` inside `Emph`,
9117 just not indefinitely.
9119 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
9121 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
9122 is present.
9124 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
9126pandoc (1.9.0.5)
9128 * Changed cabal file so that build-depends for the test program
9129 are not required unless the tests flag is used.
9131 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
9132 form ligatures (dashes) in code spans.
9134pandoc (1.9.0.4)
9136 * Raised version bound on test-framework to avoid problems
9137 compiling tests on GHC 7.4.1.
9139 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
9140 so citations don't just disappear unless you process with
9141 citeproc. Ignore `\bibliographystyle`, `\nocite`.
9143 * Simplified tex2pdf; it will always run latex twice to
9144 resolve table of contents and hyperrefs.
9146pandoc (1.9.0.3)
9148 * Require Cabal >= 1.10.
9149 * Tweaked cabal file to meet Cabal 1.10 requirements.
9151pandoc (1.9.0.2)
9153 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
9154 ghc 6.12.
9156pandoc (1.9)
9158 [new features]
9160 * Added a Microsoft Word `docx` writer. The writer includes support
9161 for highlighted code and for math (which is converted from TeX to OMML,
9162 Office's native math markup language, using texmath's new OMML module).
9163 A new option `--reference-docx` allows the user to customize the
9164 styles.
9166 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
9168 * Better support for slide shows:
9170 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
9171 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
9173 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
9174 slide presentations.
9176 + New, flexible rules for dividing documents into sections and slides
9177 (see the "Structuring the slide show" in the User's Guide). These
9178 are backward-compatible with the old rules, but they allow slide
9179 shows to be organized into sections and subsections containing
9180 multiple slides.
9182 + A new `--slide-level` option allows users to override defaults
9183 and select a slide level below the first header level with content.
9185 * A new `--self-contained` option produces HTML output that does not
9186 depend on an internet connection or the presence of any external
9187 files. Linked images, CSS, and javascript is downloaded (or fetched
9188 locally) and encoded in `data:` URIs. This is useful for making portable
9189 `HTML slide shows. The --offline` option has been deprecated and is now
9190 `treated as a synonym or --self-contained`.
9192 * Support for PDF output:
9194 + Removed the old `markdown2pdf`.
9195 + `pandoc` can now create PDFs (assuming you have latex and a set of
9196 appropriate packages installed): just specify an output file with the
9197 `.pdf` extension.
9198 + A new option `--latex-engine` allows you to specify `pdflatex`,
9199 `xelatex`, or `lualatex` as the processor.
9201 * Highlighting changes:
9203 + Syntax highlighting is now a standard feature; the `highlighting`
9204 flag is no longer needed when compiling.
9205 + A new `--no-highlight` option allows highlighting to be disabled.
9206 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
9207 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
9208 + A new `--highlight-style` option selects between various highlighting
9209 color themes.
9211 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
9213 * LaTeX `\include` and `\usepackage` commands are now processed,
9214 provided the files are in the working directory.
9216 * EPUB improvements:
9218 + Internal and external links now work in EPUB.
9219 + Raw HTML is allowed.
9220 + New `--epub-embed-font` option.
9221 + Customizable templates for EPUB pages offer more control over
9222 formatting: `epub-page.html`, `epub-coverimage.html`,
9223 `epub-titlepage.html`.
9225 * `--mathml` now works with DocBook.
9227 * Added support for math in RST reader and writer. Inline math uses the
9228 `` :math:`...` `` construct. Display math uses
9230 .. math:: ...
9232 or if the math is multiline,
9234 .. math::
9236 ...
9238 These constructions are now supported now by `rst2latex.py`.
9240 * GitHub syntax for fenced code blocks is supported in pandoc's
9241 markdown. You can now write
9243 ```ruby
9244 x = 2
9245 ```
9247 instead of
9249 ~~~ {.ruby}
9250 x = 2
9251 ~~~~
9253 * Easier scripting: a new `toJsonFilter` function makes it easier to
9254 write Haskell scripts to manipulate the Pandoc AST.
9256 [behavior changes]
9258 * Fixed parsing of consecutive lists in markdown.
9259 Pandoc previously behaved like Markdown.pl for consecutive
9260 lists of different styles. Thus, the following would be parsed
9261 as a single ordered list, rather than an ordered list followed
9262 by an unordered list:
9264 1. one
9265 2. two
9267 - one
9268 - two
9270 This change makes pandoc behave more sensibly, parsing this as
9271 two lists. Any change in list type (ordered/unordered) or in
9272 list number style will trigger a new list. Thus, the following
9273 will also be parsed as two lists:
9275 1. one
9276 2. two
9278 a. one
9279 b. two
9281 Since we regard this as a bug in Markdown.pl, and not something
9282 anyone would ever rely on, we do not preserve the old behavior
9283 even when `--strict` is selected.
9285 * Dashes work differently with `--smart`: `---` is always em-dash,
9286 and `--` is always en-dash. Pandoc no longer tries to guess when
9287 `-` should be en-dash. *Note:* This may change how existing documents
9288 look when processed with pandoc. A new option, `--old-dashes`,
9289 is provided for legacy documents.
9291 * The markdown writer now uses setext headers for levels 1-2.
9292 The old behavior (ATX headers for all levels) can be restored
9293 using the new `--atx-headers` option.
9295 * Links are now allowed in markdown image captions. They are also
9296 allowed in links, but will appear there as regular text. So,
9298 [link with [link](/url)](/url)
9300 will turn into
9302 <p><a href="/url">link with link</a></p>
9304 * Improved handling of citations using `citeproc-hs-0.3.4`.
9305 Added `--citation-abbreviations` option.
9307 * Citation keys can no longer end with a punctuation character.
9308 This means that `@item1.` will be parsed as a citation with key
9309 'item1', followed by a period, instead of a citation with key
9310 'item1.', as was the case previously.
9312 * In HTML output, citations are now put in a span with class `citation`.
9314 * The markdown reader now recognizes DocBook block and inline tags.
9315 It was always possible to include raw DocBook tags in a markdown
9316 document, but now pandoc will be able to distinguish block from
9317 inline tags and behave accordingly. Thus, for example,
9319 <sidebar>
9320 hello
9321 </sidebar>
9323 will not be wrapped in `<para>` tags.
9325 * The LaTeX parser has been completely rewritten; it is now much more
9326 accurate, robust, and extensible. However, there are two important
9327 changes in how it treats unknown LaTeX. (1) Previously, unknown
9328 environments became BlockQuote elements; now, they are treated
9329 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
9330 same as `xyz`. (2) Previously, arguments of unknown commands
9331 were passed through with their braces; now the braces are stripped
9332 off.
9334 * `--smart` is no longer selected automatically with `man` output.
9336 * The deprecated `--xetex` option has been removed.
9338 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
9339 instead. `html5` and `html5+lhs` are now separate output formats.
9341 * Single quotes are no longer escaped in HTML output. They do not
9342 need to be escaped outside of attributes.
9344 * Pandoc will no longer transform leading newlines in code
9345 blocks to `<br/>` tags.
9347 * The ODT writer now sizes images appropriately, using the image
9348 size and DPI information embedded in the image.
9350 * `--standalone` is once again implicitly for a non-text output format
9351 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
9352 and get a standalone ODT file.
9354 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
9355 `<section>`.
9357 * The HTML writer now uses `<del>` for strikeout.
9359 * In HTML output with `--section-divs`, the classes `section` and
9360 `level[1,2,..6]` are put on the `div` tags so they can be styled.
9361 In HTML 5 output with `--section-divs`, the classes
9362 `level[1,2,...6]` are put on `section` tags.
9364 * EPUB writer changes:
9366 + The `lang` variable now sets the language
9367 in the metadata (if it is not set, we default to the locale).
9368 + EPUB: UTF-8 is used rather than decimal entities.
9370 * Added `titleslide` class to title slide in S5 template.
9372 * In HTML, EPUB, and docx metadata, the date is normalized into
9373 YYYY-MM-DD format if possible. (This is required for validation.)
9375 * Attributes in highlighted code blocks are now preserved in HTML.
9376 The container element will have the classes, id, and key-value attributes
9377 you specified in the delimited code block. Previously these were stripped
9378 off.
9380 * The reference backlink in the HTML writer no longer has a special
9381 `footnoteBacklink` class.
9383 * The HTML template has been split into `html` and `html5` templates.
9385 * Author and date are treated more consistently in HTML templates.
9386 Authors are now `<h2>`, date `<h3>`.
9388 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
9390 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
9392 [bug fixes]
9394 * Better support for combining characters and East Asian wide characters
9395 in markdown and reST.
9397 * Better handling of single quotes with `--smart`.
9398 Previously `D'oh l'*aide*` would be parsed with left and right single
9399 quotes instead of apostrophes. This kind of error is now fixed.
9401 * Highlighting: Use `reads` instead of `read` for better error handling.
9402 Fixes crash on `startNum="abc"`.
9404 * Added blank comment after directives in rst template.
9406 * Unescape entities in citation `refId`. The `refId`s coming
9407 from citeproc contain XML numeric entities, and these don't match with the
9408 citation keys parsed by pandoc. Solution is to unescape them.
9410 * HTML reader: Fixed bug parsing tables with both thead and tbody.
9412 * Markdown reader:
9414 + Better handling of escapes in link URLs and titles.
9415 + Fixed backslash escapes in reference links.
9416 + Fixed bug in table/hrule parsing, by checking that the top
9417 line of a table is not followed by a blank line. This bug caused
9418 slowdowns on some files with hrules and tables, as pandoc tried to
9419 interpret the hrules as the tops of multiline tables.
9420 + Fixed bug in code block attribute parser. Previously the ID attribute
9421 got lost if it didn't come first. Now attributes can come in any order.
9423 * RST reader: allow footnotes followed by newline without space characters.
9425 * LaTeX reader:
9427 + Ignore empty groups {}, { }.
9428 + LaTeX reader: Handle \@.
9429 + LaTeX reader: Don't crash on commands like `\itemsep`.
9430 + LaTeX reader: Better handling of letter environments.
9432 * RST writer: Fixed bug involving empty table cells. isSimple was being
9433 calculated in a way that assumed there were no non-empty cells.
9435 * ConTeXt writer:
9437 + Made `--toc` work even without `--number-sections`.
9438 + Escape # in link URLs.
9439 + Use buffering for footnotes containing code blocks.
9440 + Changed 'descr' to 'description', fixed alignment.
9442 * LaTeX writer:
9444 + Escape euro character.
9445 + Don't escape ~ inside href{...}.
9446 + Escape # in href URLs.
9447 + Improved detection of book classes. We now check the
9448 `documentclass` variable, and if that is not set, we look through
9449 the template itself. Also, we have added the KOMA classes scrreprt
9450 and scrbook. You can now make a book using
9451 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
9452 + LHS files now set the "listings" variable, so that the definition
9453 of the `code` environment will be included in the template.
9454 + Links are colored blue by default (this can be changed by
9455 modifying `hyperref` settings in the template).
9456 + Added `lang` variable to LaTeX template.
9458 * HTML writer:
9460 + Fixed bug in HTML template with html5 and mathml.
9461 + Don't use self-closing img, br, hr tags for HTML5.
9462 + Use `<section>` for footnotes if HTML5.
9463 + Update HTML templates to use Content-Style-Type meta tag.
9464 + Use separate variables for meta-date, meta-author.
9465 This makes footnotes work in author and date fields.
9466 + Use 'vertical-align:middle' in WebTeX math for better alignment.
9468 * S5/slidy writer: Make footnotes appear on separate slide at end.
9470 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
9471 META-INF/manifest.xml for ODT files will have everything it needs, so
9472 that ODT files modified by LibreOffice can be used as `--reference-odt`.
9474 * `Text.Pandoc.Templates`: Return empty string for json template.
9476 * `Text.Pandoc.Biblio`:
9478 + Expand citations recursively inside nested inlines.
9479 + Treat `\160` as space when parsing locator and suffix.
9480 This fixes a bug with "p. 33" when `--smart` is used. Previously
9481 the whole "p. 33" would be included in the suffix, with no locator.
9482 + Put whole author-in-text citation in a Cite. Previously just the
9483 date and other info went in the Cite.
9484 + Don't add comma+space to prefix if it ends in punctuation.
9486 * Updated chicago-author-date.csl. The old version did not work
9487 properly for edited volumes with no author.
9489 * EPUB writer:
9491 + Add date to EPUB titlepage and metadata.
9492 + Added TOC identifier in EPUB page template.
9493 + Don't generate superfluous file `cover-image.jpg`.
9495 [under the hood improvements]
9497 * Modified `make_osx_package.sh` to use cabal-dev.
9498 Items are no longer installed as root.
9499 Man pages are zipped and given proper permissions.
9501 * Modified windows installer generater to use cabal-dev.
9503 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
9504 Setup.hs we now invoke 'runghc' in a way that points it to the correct
9505 package databases, instead of always falling back to the default user
9506 package db.
9508 * Updated to work with GHC 7.4.1.
9510 * Removed dependency on old-time.
9512 * Removed dependency on dlist.
9514 * New slidy directory for "self-contained."
9516 * TeXMath writer: Use unicode thin spaces for thin spaces.
9518 * Markdown citations: don't strip off initial space in locator.
9520 [API changes]
9522 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
9523 from the native `Inline` type in pandoc-types. Now we use `Str`
9524 elements with unicode.
9526 * Improvements to `Text.Pandoc.Builder`:
9528 + `Inlines` and `Blocks` are now newtypes (not synonyms for
9529 sequences).
9530 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
9531 and a new `Listable` class, which allows these to be manipulated
9532 to some extent like lists. Monoid append includes automatic
9533 normalization.
9534 + `+++` has been replaced by `<>` (mappend).
9536 * Use blaze-html instead of xhtml for HTML generation.
9537 This changes the type of `writeHtml`.
9539 * `Text.Pandoc.Shared`:
9541 + Added `warn` and `err`.
9542 + Removed `unescapeURI`, modified `escapeURI`.
9543 (See under [behavior changes], above.)
9545 * Changes in URI escaping: Previously the readers escaped URIs by
9546 converting unicode characters to octets and then percent encoding.
9547 Now unicode characters are left as they are, and `escapeURI` only
9548 percent-encodes space characters. This gives more readable
9549 URIs, and works well with modern user agents. URIs are no longer unescaped
9550 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
9552 * New module `Text.Pandoc.SelfContained`.
9554 * New module `Text.Pandoc.Docx`.
9556 * New module `Text.Pandoc.PDF`.
9558 * Added `writerBeamer` to `WriterOptions`.
9560 * Added `normalizeDate` to `Text.Pandoc.Shared`.
9562 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
9563 This is like `splitWithIndices`, but it is sensitive to distinctions
9564 between wide, combining, and regular characters.
9566 * `Text.Pandoc.Pretty`:
9568 + Added `chomp` combinator.
9569 + Added `beforeNonBreak` combinator. This allows you to include
9570 something conditionally on it being before a nonblank.
9571 Used for RST inline math.
9572 + Added `charWidth` function. All characters marked W or F in the unicode
9573 spec EastAsianWidth.txt get width 2.
9574 + Added `realLength`, based on `charWidth`. `realLength` is now
9575 used in calculating offsets.
9577 * New module `Text.Pandoc.Slides`, for common functions for breaking
9578 a document into slides.
9580 * Removed `Text.Pandoc.S5`, which is no longer needed.
9582 * Removed `Text.Pandoc.CharacterReferences`. Moved
9583 `characterReference` to `Text.Pandoc.Parsing`.
9584 `decodeCharacterReferences` is replaced by `fromEntities`
9585 in `Text.Pandoc.XML`.
9587 * Added `Text.Pandoc.ImageSize`. This is intened for use
9588 in `docx` and `odt` writers, so the size and dpi of images
9589 can be calculated.
9591 * Removed `writerAscii` in `WriterOptions`.
9593 * Added `writerHighlight` to `WriterOptions`.
9595 * Added `DZSlides` to `HTMLSlideVariant`.
9597 * `writeEPUB` has a new argument for font files to embed.
9599 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
9600 of whether we're parsing the position immediately after a regular
9601 (non-space, non-symbol) string, which is useful for distinguishing
9602 apostrophes from single quote starts.
9604 * `Text.Pandoc.Parsing`:
9606 + `escaped` now returns a `Char`.
9607 + Removed `charsInBalanced'`, added a character parser as
9608 a parameter of `charsInBalanced`. This is needed for
9609 proper handling of escapes, etc.
9610 + Added `withRaw`.
9612 * Added `toEntities` to `Text.Pandoc.XML`.
9614 * `Text.Pandoc.Readers.LaTeX`:
9616 + Export `handleIncludes`.
9617 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
9619 * Added `ToJsonFilter` class and `toJsonFilter` function to
9620 `Text.Pandoc`, deprecating the old `jsonFilter` function.
9622 * `Text.Pandoc.Highlighting`:
9624 + Removed `highlightHtml`, `defaultHighlightingCss`.
9625 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
9626 key functions from highlighting-kate.
9627 + Changed types of highlighting function. `highlight` returns a
9628 `Maybe`, not an `Either`.
9630pandoc (1.8.2.1)
9632 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
9634 * Relaxed cabal constraints for pandoc-types.
9636 * Adjusted Arbitrary instance to help avoid timeouts in tests.
9638 * Added `Tests.Writers.Markdown` to cabal file.
9640pandoc (1.8.2)
9642 * Added script to produce OS X package.
9644 * Made `templates` directory a git submodule. This should make it
9645 easier for people to revise their custom templates when the default
9646 templates change.
9648 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
9649 **Note:** If you have existing templates in `~/.pandoc/templates`, you
9650 must rename them to conform to the new scheme!
9652 * Fixed smart quotes bug, now handling `'...hi'` properly.
9654 * RST reader:
9656 + Partial support for labeled footnotes.
9657 + Improved accuracy of `simpleReferenceName` parser.
9659 * HTML reader:
9661 + Substitute correct unicode characters for
9662 characters in the 128..159 range, which are often found even in
9663 HTML that purports to be UTF-8.
9665 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
9666 to the title, after a colon and linebreak). Closes #280.
9668 * Leaner `reference.odt`.
9670 * Added unexported module `Text.Pandoc.MIME` for use in
9671 the ODT writer.
9673 * ODT writer: Construct `manifest.xml` based on archive contents.
9674 This fixes a bug in ODTs containing images. Recent versions of
9675 LibreOffice would reject these as corrupt, because `manifest.xml`
9676 did not contain a reference to the image files.
9678 * LaTeX writer:
9680 + Make verbatim environments flush to avoid spurious
9681 blank lines. Closes #277.
9682 + Use `\texttt` and escapes insntead of `\verb!...!`, which
9683 is too fragile (doesn't work in command arguments).
9684 + Use `\enquote{}` for quotes if the template includes
9685 the `csquotes` package. This provides better support for
9686 local quoting styles. (Thanks to Andreas Wagner for the idea.)
9688 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
9689 margin, preventing spurious blank lines.
9691 * Slidy writer:
9693 + Use non-minimized version of `slidy.css` with `--offline`
9694 option, so users can more easily edit it.
9695 + Also fixed a bug in the CSS that prevented proper centering
9696 of title (now reported and fixed upstream).
9698 * S5 writer:
9700 + Replaced `s5/default/slides.js.{comment,packed}` with
9701 new compressed `s5/default/slides.min.js`.
9702 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
9703 when `--offline` is specified. Using inline CSS didn't
9704 work with Chrome or Safari. This fixes offline
9705 S5 on those browsers.
9707 * HTML writer: Removed English title on footnote backlinks.
9708 This is incongrous in non-English documents.
9710 * Docbook writer:
9712 + Use CALS tables. (Some older docbook software does not work
9713 well with XHTML tables.) Closes #77.
9714 + Use `programlisting` tags (instead of `screen`) for code blocks.
9716 * `markdown2pdf`:
9718 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
9719 of `-interaction=batchmode`, which essentially just ignored errors,
9720 leading to bad results. Better to know when something is wrong.
9721 + Fixed issues with non-UTF-8 output of `pdflatex`.
9722 + Better error reporting.
9724 * `--mathjax` now takes an optional URL argument. If it is not
9725 provided, pandoc links directly to the (secure) mathjax CDN,
9726 as now recommended (thanks to dsanson).
9728 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
9729 since the LaTeX writer now produces a file that can be processed by
9730 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
9732 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
9733 to be used to create the PDF.
9735 * If a template specified with `--template` is not found, look for it
9736 in `datadir`. Also, if no extension is provided, supply one based
9737 on the writer. So now you can put your `special.latex` template in
9738 `~/.pandoc/templates`, and use it from any directory via
9739 `pandoc -t latex --template special`.
9741 * Default template improvements:
9743 + HTML: Display author and date after title.
9744 + HTML: Made table of contents more customizable. The container
9745 for the TOC is now in the template, so users can insert a header
9746 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
9747 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
9748 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
9749 hard-coding. If you want to put your slidy files in the slidy
9750 subdirectory, for example, you can do
9751 `pandoc -t slidy -V slidy-url=slidy -s`.
9752 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
9753 & writer). Closes #279.
9754 + LaTeX: Use different `hyperref` options for `xetex`, fixing
9755 problems with unicode bookmarks (thanks to CircleCode).
9756 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
9757 with `inputenc`. This covers fewer characters but is more
9758 robust with other packages, and `ucs` is unmaintained. Users
9759 who need better unicode support should use xelatex or lualatex.
9761pandoc (1.8.1.2)
9763 * Added `--epub-cover-image` option.
9765 * Documented `--biblatex` and `--natbib` options.
9767 * Allow `--section-divs` with slidy output. Resolves Issue #296.
9769 * Disallow notes within notes in reST and markdown.
9770 These previously caused infinite looping and stack overflows.
9771 For example:
9773 [^1]
9775 [^1]: See [^1]
9777 Note references are allowed in reST notes, so this isn't a full
9778 implementation of reST. That can come later. For now we need to
9779 prevent the stack overflows. Partially resolves Issue #297.
9781 * EPUB writer: Allow non-plain math methods.
9783 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
9784 `(@item1; @item2)` because the final paren was being parsed as part of
9785 the item key.
9787 * Changed URI parser so it doesn't include trailing punctuation.
9788 So, in RST, `http://google.com.` should be parsed as a link followed by a
9789 period. The parser is smart enough to recognize balanced parentheses, as
9790 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
9792 * Markdown+lhs reader: Require space after inverse bird tracks, so that
9793 HTML tags can be used freely at the left margin of a markdown+lhs document.
9794 Thanks to Conal Elliot for the suggestion.
9796 * Markdown reader:
9798 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
9799 + Fixed bug in footnote order (reported by CircleCode).
9801 * RST reader:
9802 + Fixed bug in in field lists with multi-line items at the
9803 end of the list.
9804 + Added parentheses to RST `specialChars`, so
9805 `(http://google.com)` will be parsed as a link in parens.
9806 Resolves Issue #291.
9807 + Allow `|` followed by newline in RST line block.
9809 * LaTeX reader:
9810 + Support `\dots`.
9811 + Gobble option & space after linebreak `\\[10pt]`.
9813 * Textile reader:
9814 + Make it possible to have colons after links. (qerub)
9815 + Make it possible to have colons after links. (Christoffer Sawicki)
9817 * HTML reader:
9818 + Skip spaces after `<b>`, `<emph>`, etc.
9819 + Handle tbody, thead in simple tables. Closes #274.
9820 + Implicit `Para`s instead of `Plains` in some contexts.
9822 * OpenDocument writer: Use special `First paragraph` style for
9823 first paragraph after most non-paragraph blocks. This allows users to
9824 specify e.g. that only paragraphs after the first paragraph of a block are
9825 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
9827 * LaTeX writer: use `deVerb` on table and picture captions.
9828 Otherwise LaTeX complains about `\verb` inside command argument.
9829 Thanks to bbanier for reporting the bug.
9831 * Markdown writer: Insert HTML comment btw list and indented code block.
9832 This prevents the code block from being interpreted as part of the list.
9834 * EPUB writer: Add a meta element specify the cover.
9835 Some EPUB e-readers, such as the Nook, require a meta element inside the
9836 OPF metadata block to ensure the cover image is properly displayed.
9837 (Kelsey Hightower)
9839 * HTML writer: Use embed tag for images with non-image extensions.
9840 (e.g. PDFs). Closes #264.
9842 * LaTeX writer: Improved tables.
9844 + More space between lines, top-align cells.
9845 + Use ctable package, which allows footnotes and
9846 provides additional options.
9847 + Made cell alignments work in multiline tables.
9848 + Closes #271, #272.
9850 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
9851 Also do this when copying image files into EPUBs and ODTs.
9852 Closes #263.
9854 * Changed to github issue tracker.
9856 * Added failing emph/strong markdown test case due to Perry Wagle.
9858 * Slidy improvements:
9859 + Updated to use Slidy2.
9860 + Fixed bug, unclosed div tag.
9861 + Added `duration` variable in template.
9862 Setting this activates the timer.
9863 + Use 'titlepage' instead of 'cover' for title div.
9865pandoc (1.8.1.1)
9867 * `markdown2pdf`: Removed some debugging lines accidentally included
9868 in the 1.8.1 release. With those lines, the temp directory is created
9869 in the working directory, and it is not deleted. This fix restores
9870 the original behavior.
9872pandoc (1.8.1)
9874 * Added `--ascii` option. Currently supported only in HTML writer,
9875 which it causes to use numerical entities instead of UTF-8.
9877 * EPUB writer: `--toc` now works to provide a table of contents
9878 at the beginning of each chapter.
9880 * LaTeX writer: Change figure defaults to `htbp`.
9881 This prevents "too many unprocessed floats." Resolves
9882 Issue #285.
9884 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
9885 base.
9887 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
9888 Tanimoto. Resolves Issue #286.
9890 * HTML writer: Put line breaks in section divs.
9892 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
9894pandoc (1.8.0.3)
9896 * Fixed Source-repository stanza in cabal file.
9898pandoc (1.8.0.2)
9900 * HTML writer:
9902 + Stringify alt text instead of converting to HTML.
9903 + Break lines after block elements, not inside tags.
9904 HTML output now closely resembles that of tidy. Resolves Issue #134.
9906 * Markdown reader: Fixed bug in footnote block parser (pointed out
9907 by Jesse Rosenthal). The problem arose when the blank line
9908 at the end of a footnote block contained indenting spaces.
9910 * Shared: Improved 'normalize' function so it normalizes Spaces too.
9911 In normal form, Space elements only occur to separate two non-Space
9912 elements. So, we never have [Space], or [, ..., Space].
9914 * Tests:
9916 + Improved Arbitrary instance.
9917 + Added timeout for test instances.
9919 * README:
9921 + Added section on four-space rule for lists. Resolves Issue #283.
9922 + Clarified optional arguments on math options.
9924 * markdown2pdf: Fixed bug with output file extensions.
9925 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
9926 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
9928pandoc (1.8.0.1)
9930 * Revised Interact.hs so that it works with the CPP macros
9931 in the UTF8 module.
9933 * Revised Setup.hs so that we don't call MakeManPage.hs unless
9934 the man pages are out of date.
9936pandoc (1.8)
9938 [new features]
9940 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
9941 You can now write, for example,
9943 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
9945 and, when you process your document using `pandoc`, specifying
9946 a citation style using `--csl` and a bibliography using `--bibliography`,
9947 the citation will be replaced by an appropriately formatted
9948 citation, and a list of works cited will be added to the end
9949 of the document.
9951 This means that you can switch effortlessly between different citation
9952 and bibliography styles, including footnote, numerical, and author-date
9953 formats. The bibliography can be in any of the following formats: MODS,
9954 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
9955 See the README for further details.
9957 Citations are supported in the markdown reader, using a special
9958 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
9959 (Thanks to Nathan Gass for the natbib and biblatex support.)
9961 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
9962 the `textile` reader, an almost complete implementation of the textile
9963 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
9964 Resolves Issue #51.
9966 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
9968 * New `json` reader and writer, for reading and writing a JSON
9969 representation of the native Pandoc AST. These are much faster
9970 than the `native` reader and writer, and should be used for
9971 serializing Pandoc to text. To convert between the JSON representation
9972 and native Pandoc, use `encodeJSON` and `decodeJSON` from
9973 `Text.JSON.Generic`.
9975 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
9976 to write scripts that transform a JSON-encoded pandoc document.
9977 For example:
9979 -- removelinks.hs - removes links from document
9980 import Text.Pandoc
9981 main = interact $ jsonFilter $ bottomUp removeLink
9982 where removeLink (Link xs _) = Emph xs
9983 removeLink x = x
9985 To use this to remove links while translating markdown to LaTeX:
9987 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
9989 * Attributes are now allowed in inline `Code` elements, for example:
9991 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
9993 The attribute syntax is the same as for delimited code blocks.
9994 `Code` inline has an extra argument place for attributes, just like
9995 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
9996 is compiled with highlighting support. Resolves Issue #119.
9998 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
9999 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
10000 scripts to transform Pandoc documents. Scripts can now change
10001 how each element is rendered in each output format.
10003 * You can now define LaTeX macros in markdown documents, and pandoc
10004 will apply them to TeX math. For example,
10006 \newcommand{\plus}[2]{#1 + #2}
10007 $\plus{3}{4}$
10009 yields `3+4`. Since the macros are applied in the reader, they
10010 will work in every output format, not just LaTeX.
10012 * LaTeX macros can also be used in LaTeX documents (both in math
10013 and in non-math contexts).
10015 * A new `--mathjax` option has been added for displaying
10016 math in HTML using MathJax. Resolves issue #259.
10018 * Footnotes are now supported in the RST reader. (Note, however,
10019 that unlike docutils, pandoc ignores the numeral or symbol used in
10020 the note; footnotes are put in an auto-numbered ordered list.)
10021 Resolves Issue #258.
10023 * A new `--normalize` option causes pandoc to normalize the AST
10024 before writing the document. This means that, for example,
10025 `*hi**there*` will be rendered as `<em>hithere</em>`
10026 instead of `<em>hi</em><em>there</em>`. This is not the default,
10027 because there is a significant performance penalty.
10029 * A new `--chapters` command-line option causes headers
10030 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
10031 Resolves Issue #265.
10033 * In DocBook output, `<chapter>` is now used for top-level
10034 headers if the template contains `<book>`. Resolves Issue #265.
10036 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
10037 the LaTeX writer to use the listings package for code blocks.
10038 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
10039 Millon for the markdown2pdf patch.)
10041 * `markdown2pdf` now supports `--data-dir`.
10043 * URLs in autolinks now have class "url" so they can be styled.
10045 * Improved prettyprinting in most formats. Lines will be wrapped
10046 more evenly and duplicate blank lines avoided.
10048 * New `--columns` command-line option sets the column width for
10049 line wrapping and relative width calculations for tables.
10051 * Made `--smart` work in HTML, RST, and Textile readers, as well
10052 as markdown.
10054 * Added `--html5` option for HTML5 output.
10056 * Added support for listings package in LaTeX reader
10057 (Puneeth Chaganti).
10059 * Added support for simple tables in the LaTeX reader.
10061 * Added support for simple tables in the HTML reader.
10063 * Significant performance improvements in many readers and writers.
10065 [API and program changes]
10067 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
10068 auxiliary package, `pandoc-types`. This will make it possible for other
10069 programs to supply output in Pandoc format, without depending on the whole
10070 pandoc package.
10072 * Added `Attr` field to `Code`.
10074 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
10075 `RawBlock` and `RawInline`.
10077 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
10078 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
10079 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
10081 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
10083 * `Text.Pandoc` now exports association lists `readers` and `writers`.
10085 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
10086 `readNative` can now read full pandoc documents, block lists, blocks,
10087 inline lists, or inlines. It will interpret `Str "hi"`
10088 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
10089 This should make testing easier.
10091 * Removed deprecated `-C/--custom-header` option.
10092 Use `--template` instead.
10094 * `--biblio-file` has been replaced by `--bibliography`.
10095 `--biblio-format` has been removed; pandoc now guesses the format
10096 from the file extension (see README).
10098 * pandoc will treat an argument as a URI only if it has an
10099 `http(s)` scheme. Previously pandoc would treat some
10100 Windows pathnames beginning with `C:/` as URIs.
10102 * The `--sanitize-html` option and the `stateSanitize` field in
10103 `ParserState` have been removed. Sanitization is better done in the
10104 resulting HTML using `xss-sanitize`, which is based on pandoc's
10105 sanitization, but improved.
10107 * pandoc now adds a newline to the end of its output in fragment
10108 mode (= not `--standalone`).
10110 * Added support for `lang` in `html` tag in the HTML template,
10111 so you can do `pandoc -s -V lang=es`, for example.
10113 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
10114 a boolean argument that selects between "inline" and
10115 "block" HTML.
10117 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
10118 Images are embedded in RTF output when possible (png, jpeg).
10119 Resolves Issue #275.
10121 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
10122 `pretty` package. Changed all writers that used
10123 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
10125 * Rewrote `writeNative` using the new prettyprinting module. It is
10126 now much faster. The output has been made more consistent and compressed.
10127 `writeNative` is also now sensitive to writerStandalone`, and will simply
10128 `print a block list if writerStandalone` is False.
10130 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
10131 blocks and concatenate them, so a separate module is no longer needed.
10133 * `Text.Pandoc.Shared`:
10135 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
10136 `WriterOptions`.
10137 + Added `normalize`.
10138 + Removed unneeded prettyprinting functions:
10139 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
10140 `BlockWrapper`, `wrappedBlocksToDoc`.
10141 + Made `splitBy` take a test instead of an element.
10142 + Added `findDataFile`, refactored `readDataFile`.
10143 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
10144 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
10146 * `Text.Pandoc.Readers.HTML`:
10148 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
10149 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
10150 `htmlBlockElement`, `htmlComment`
10151 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
10152 `isTextTag`
10154 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
10155 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
10156 an inline parser.
10158 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
10160 * Ellipses are no longer allowed to contain spaces.
10161 Previously we allowed '. . .', ' . . . ', etc. This caused
10162 too many complications, and removed author's flexibility in
10163 combining ellipses with spaces and periods.
10165 * Allow linebreaks in URLs (treat as spaces). Also, a string of
10166 consecutive spaces or tabs is now parsed as a single space. If you have
10167 multiple spaces in your URL, use `%20%20`.
10169 * `Text.Pandoc.Parsing`:
10171 + Removed `refsMatch`.
10172 + Hid `Key` constructor.
10173 + Removed custom `Ord` and `Eq` instances for `Key`.
10174 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
10175 + Generalized type on `readWith`.
10177 * Small change in calculation of relative widths of table columns.
10178 If the size of the header > the specified column width, use
10179 the header size as 100% for purposes of calculating
10180 relative widths of columns.
10182 * Markdown writer now uses some pandoc-specific features when `--strict`
10183 is not specified: `\` newline is used for a hard linebreak instead of
10184 two spaces then a newline. And delimited code blocks are used when
10185 there are attributes.
10187 * HTML writer: improved gladTeX output by setting ENV appropriately
10188 for display or inline math (Jonathan Daugherty).
10190 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
10192 * LaTeX reader:
10194 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
10195 + `\index{}` commands are skipped.
10197 * Added `fontsize` variable to default LaTeX template.
10198 This makes it easy to set the font size using `markdown2pdf`:
10199 `markdown2pdf -V fontsize=12pt input.txt`.
10201 * Fixed problem with strikeout in LaTeX headers when using
10202 hyperref, by adding a command to the default LaTeX template
10203 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
10204 for the fix.
10206 * The `COLUMNS` environment variable no longer has any effect.
10208 [under-the-hood improvements]
10210 * Pandoc now compiles with GHC 7. (This alone leads to a
10211 significant performance improvement, 15-20%.)
10213 * Completely rewrote HTML reader using tagsoup as a lexer. The
10214 new reader is faster and more accurate. Unlike the
10215 old reader, it does not get bogged down on some input
10216 (Issues #277, 255). And it handles namespaces in tags
10217 (Issue #274).
10219 * Replaced `escapeStringAsXML` with a faster version.
10221 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
10222 for a significant performance boost.
10224 * Improved performance of all readers by rewriting parsers.
10226 * Simplified Text.Pandoc.CharacterReferences by using
10227 entity lookup functions from TagSoup.
10229 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
10230 from `System.IO` if base >= 4.2. This gives support for
10231 windows line endings on windows.
10233 * Remove duplications in documentation by generating the
10234 pandoc man page from README, using `MakeManPage.hs`.
10236 * README now includes a full description of markdown syntax,
10237 including non-pandoc-specific parts. A new `pandoc_markdown`
10238 man page is extracted from this, so you can look up markdown
10239 syntax by doing `man pandoc_markdown`.
10241 * Completely revised test framework (with help from Nathan Gass).
10242 The new test framework is built when the `tests` Cabal flag is set. It
10243 includes the old integration tests, but also some new unit and quickcheck
10244 tests. Test output has been much improved, and you can now specify a glob
10245 pattern after `cabal test` to indicate which tests should be run;
10246 for example `cabal test citations` will run all the citation tests.
10248 * Added a shell script, `stripansi.sh`, for filtering ANSI control
10249 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
10251 * Added `Interact.hs` to make it easier to use ghci while developing.
10252 `Interact.hs` loads `ghci` from the `src` directory, specifying
10253 all the options needed to load pandoc modules (including
10254 specific package dependencies, which it gets by parsing
10255 dist/setup-config).
10257 * Added `Benchmark.hs`, testing all readers + writers using criterion.
10259 * Added `stats.sh`, to make it easier to collect and archive
10260 benchmark and lines-of-code stats.
10262 * Added upper bounds to all cabal dependencies.
10264 * Include man pages in extra-source-files. This allows users to
10265 install pandoc from the tarball without needing to build the man
10266 pages.
10268 [bug fixes]
10270 * Filenames are encoded as UTF8. Resolves Issue #252.
10272 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
10273 were just parsed literally, leading to problems in some output formats.
10274 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
10275 Resolves Issue #270.
10277 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
10278 Spaces at end of line were not being stripped properly,
10279 resulting in unintended LineBreaks.
10281 * Markdown reader:
10283 + Allow HTML comments as inline elements in markdown.
10284 So, `aaa <!-- comment --> bbb` can be a single paragraph.
10285 + Fixed superscripts with links: `^[link](/foo)^` gets
10286 recognized as a superscripted link, not an inline note followed by
10287 garbage.
10288 + Fixed regression, making markdown reference keys case-insensitive again.
10289 Resolves Issue #272.
10290 + Properly handle abbreviations (like `Mr.`) at the end of a line.
10291 + Better handling of intraword underscores, avoiding exponential
10292 slowdowns in some cases. Resolves Issue #182.
10293 + Fixed bug in alignments in tables with blank rows in the header.
10295 * RST reader:
10297 + Field lists now allow spaces in field names, and
10298 block content in field values. (Thanks to Lachlan Musicman
10299 for pointing out the bug.)
10300 + Definition list items are now always `Para` instead of
10301 `Plain`, matching behavior of `rst2xml.py`.
10302 + In image blocks, the description is parsed properly and
10303 used for the alt attribute, not also the title.
10304 + Skip blank lines at beginning of file. Resolves
10305 Debian #611328.
10307 * LaTeX reader:
10309 + Improved parsing of preamble.
10310 Previously you'd get unexpected behavior on a document that
10311 contained `\begin{document}` in, say, a verbatim block.
10312 + Allow spaces between `\begin` or `\end` and `{`.
10313 + Support `\L` and `\l`.
10314 + Skip comments inside paragraphs.
10316 * LaTeX writer:
10318 + Escape strings in `\href{..}`.
10319 + In nonsimple tables, put cells in `\parbox`.
10321 * OpenDocument writer: don't print raw TeX.
10323 * Markdown writer:
10325 + Fixed bug in `Image`. URI was getting unescaped twice!
10326 + Avoid printing extra blank lines at the end if there are
10327 no notes or references.
10329 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
10330 This avoids unwanted interpretation as an optional argument.
10332 * ConTeXt writer: Fixed problem with inline code. Previously
10333 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
10334 If it contains neither, use `\type{}`; otherwise use `\mono{}`
10335 with an escaped version of the string.
10337 * `:` now allowed in HTML tags. Resolves Issue #274.
10339pandoc (1.6)
10341 [ John MacFarlane ]
10343 * New EPUB and HTML Slidy writers. (Issue #122)
10345 - EPUB is a standard ebook format, used in Apple's iBooks for
10346 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
10347 reader, and many other devices.
10348 - Slidy, like S5, is a system for producing HTML+javascript slide
10349 shows.
10351 * All input is assumed to be UTF-8, no matter what the locale and ghc
10352 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
10353 Also, a BOM, if present, is stripped from the input.
10355 * Markdown now supports grid tables, whose cells can contain
10356 arbitrary block elements. (Issue #43)
10358 * Sequentially numbered example lists in markdown with `@` marker.
10360 * Markdown table captions can begin with a bare colon and no longer need
10361 to include the English word "table." Also, a caption can now occur
10362 either before or after the table. (Issue #227)
10364 * New command-line options:
10366 - `--epub-stylesheet` allows you to specify a CSS file that will
10367 be used to style your ebook.
10368 - `--epub-metadata` allows you to specify metadata for the ebook.
10369 - `--offline` causes the generated HTML slideshow to include all
10370 needed scripts and stylesheets.
10371 - `--webtex` causes TeX math to be converted to images using the
10372 Google Charts API (unless a different URL is specified).
10373 - `--section-divs` causes div tags to be added around each section
10374 in an HTML document. (Issue #230, 239)
10376 * Default behavior of S5 writer in standalone mode has changed:
10377 previously, it would include all needed scripts and stylesheets
10378 in the generated HTML; now, only links are included unless
10379 the `--offline` option is used.
10381 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
10382 pandoc would enclose sections in div tags with identifiers on the
10383 div tags, so that the sections can be manipulated in javascript.
10384 This caused undesirable interactions with raw HTML div tags. So,
10385 starting with 1.6, the default is to put the identifiers directly
10386 on the header tags, and not to include the divs. The `--section-divs`
10387 option selects the 1.2-1.5 behavior.
10389 * API changes:
10391 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
10392 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
10393 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
10394 `writerIncludeAfter`.
10395 - Added `headerShift` to `Text.Pandoc.Shared`.
10396 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
10397 to a new module, `Text.Pandoc.Parsing`.
10398 - Added `stateHasChapters` to `ParserState`.
10399 - Added `HTMLSlideVariant`.
10400 - Made `KeyTable` a map instead of an association list.
10401 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
10402 `docDate`).
10403 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
10404 instances.
10405 - Reference keys now have a type of their own (`Key`), with its
10406 own `Ord` instance for case-insensitive comparison.
10407 - Added `Text.Pandoc.Writers.EPUB`.
10408 - Added `Text.Pandoc.UUID`.
10409 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
10410 Removed `saveOpenDocumentAsODT`, added `writeODT`.
10411 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
10412 Removed `prettyPandoc`.
10413 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
10414 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
10415 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
10416 To write S5, you now use `writeHtml` with `writerSlideVariant`
10417 set to `S5Slides` or `SlidySlides`.
10419 * Template changes. If you use custom templates, please update them,
10420 particularly if you use syntax highlighting with pandoc. The old HTML
10421 templates hardcoded highlighting CSS that will no longer work with
10422 the most recent version of highlighting-kate.
10424 - HTML template: avoid empty meta tag if no date.
10425 - HTML template: Use default highlighting CSS from highlighting-kate
10426 instead of hard-coding the CSS into the template.
10427 - HTML template: insert-before text goes before the title, and
10428 immediately after the <body> tag, as documented. (Issue #241)
10429 - Added slidy and s5 templates.
10430 - Added amssymb to preamble of latex template. (github Issue 1)
10432 * Removed excess newlines at the end of output. Note: because output
10433 will not contain an extra newline, you may need to make adjustments
10434 if you are inserting pandoc's output into a template.
10436 * In S5 and slidy, horizontal rules now cause a new slide, so you
10437 are no longer limited to one slide per section.
10439 * Improved handling of code in man writer. Inline code is now monospace,
10440 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
10442 * HTML reader parses `<tt>` as Code. (Issue #247)
10444 * html+lhs output now contains bird tracks, even when compiled without
10445 highlighting support. (Issue #242)
10447 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
10448 since they have a special meaning in XML.
10450 * Code improvements in ODT writer. Remote images are now replaced with
10451 their alt text rather than a broken link.
10453 * LaTeX reader improvements:
10455 - Made latex `\section`, `\chapter` parsers more forgiving of
10456 whitespace.
10457 - Parse `\chapter{}` in latex.
10458 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
10459 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
10460 for use in markdown reader.
10461 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
10462 in markdown document.
10464 * LaTeX writer: images are automatically shrunk if they would extend
10465 beyond the page margin.
10467 * Plain, markdown, RST writers now use unicode for smart punctuation.
10469 * Man writer converts math to unicode when possible, as in other writers.
10471 * `markdown2pdf` can now recognize citeproc options.
10473 * Command-line arguments are converted to UTF-8. (Issue #234)
10475 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
10476 This allows it to handle a wider range of formulas. Also, if a formula
10477 cannot be converted, it is left in raw TeX; formulas are no longer
10478 partially converted.
10480 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
10481 #143)
10483 * Cabal file changes:
10485 - Removed parsec < 3 restriction.
10486 - Added 'threaded' flag for architectures where GHC lacks a threaded
10487 runtime.
10488 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
10489 - Require highlighting-kate 0.2.7.
10491 * Use explicit imports from `Data.Generics`. Otherwise we have a
10492 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
10494 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
10496pandoc (1.5.1.1)
10498 [ John MacFarlane ]
10500 * Fixed uniqueIdent in Shared so that header identifiers work as
10501 advertized in the README and are are valid XHTML names.
10503pandoc (1.5.1)
10505 [ John MacFarlane ]
10507 * Fixed treatment of unicode characters in URIs.
10508 + Shared now exports escapeURI and unescapeURI. These handle
10509 UTF8 encoding and decoding as well as URI escaping/unescaping.
10510 + Shared: uri and emailAddress now return a pair of the original
10511 parsed text and the escaped URI (in the latter case, with
10512 the mailto: prefix).
10513 + HTML reader: unsanitaryURI has been modified to allow unicode
10514 high characters in a URI.
10515 + Readers: All link and image URIs are now escaped using
10516 escapeURI.
10517 + Markdown and RST writers: unescapeURI is used so that URIs
10518 in these formats are human-readable.
10520 * Setup.hs: Don't assume that the build directory is "dist".
10521 Instead, get it from localBuildInfo.
10523 * OpenDocument writer: Use a Map for stTextStyleAttr.
10524 This avoids duplicates (and invalid xml). Resolves Issue #222.
10526pandoc (1.5.0.1)
10528 [ John MacFarlane ]
10530 * HTML writer: Fixed error in math writer (with MathML option)
10531 that caused an infinite loop for unparsable MathML.
10533pandoc (1.5)
10535 [ John MacFarlane ]
10537 * Added --mathml option. When this is selected, pandoc will convert
10538 TeX math into MathML.
10539 + Added data/MathMLinHTML.js, which is included when no URL is
10540 provided for --mathml. This allows MathML to be displayed (in
10541 better browsers) as text/html.
10542 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
10543 necessary; it was replaced by two lines in pandoc.hs.
10544 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
10545 single combined file, LaTeXMathML.js.
10547 * Added --data-dir option.
10548 This specifies a user data directory. If not specified, will default
10549 to ~/.pandoc on unix or Application Data\pandoc on Windows.
10550 Files placed in the user data directory will override system default
10551 data files.
10553 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
10554 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
10555 Nothing, no user directory is searched for an override.
10557 * Added 'plain' output format. This is similar to markdown, but
10558 removes links, pictures, inline formatting, and most anything that
10559 looks even vaguely markupish. The function writePlain is exported by
10560 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
10562 * Allow multi-line titles and authors in meta block.
10563 Titles may span multiple lines, provided continuation lines
10564 begin with a space character. Separate authors may be put on
10565 multiple lines, provided each line after the first begins with
10566 a space character. Each author must fit on one line. Multiple
10567 authors on a single line may still be separated by a semicolon.
10568 Based on a patch by Justin Bogner.
10570 * When given an absolute URI as parameter, pandoc will try to fetch
10571 the content via HTTP. So you can do:
10572 'pandoc -r html -w markdown http://www.fsf.org'
10573 Adds dependency on HTTP.
10575 * Made HTML reader much more forgiving.
10576 + Incorporated idea (from HXT) that an element can be closed
10577 by an open tag for another element.
10578 + Javascript is partially parsed to make sure that a <script>
10579 section is not closed by a </script> in a comment or string.
10580 + More lenient non-quoted attribute values.
10581 Now we accept anything but a space character, quote, or <>.
10582 This helps in parsing e.g. www.google.com!
10583 + Bare & signs are now parsed as a string. This is a common
10584 HTML mistake.
10585 + Skip a bare < in malformed HTML.
10587 * Removed html2markdown and hsmarkdown.
10588 + html2markdown is no longer needed, since you can now pass URI
10589 arguments to pandoc and directly convert web pages. (Note,
10590 however, that pandoc assumes the pages are UTF8. html2markdown
10591 made an attempt to guess the encoding and convert them.)
10592 + hsmarkdown is pointless -- a large executable that could be
10593 replaced by 'pandoc --strict'.
10595 * In most writers, an image in a paragraph by itself is now rendered
10596 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
10597 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
10598 rendered inline.
10600 * Depend on extensible-exceptions. This allows pandoc to be compiled
10601 on GHC 6.8.
10603 * Added --base-header-level option. For example, --base-header-level=2
10604 will change level 1 headers to level 2, level 2 to level 3, etc.
10605 Closes Debian #563416.
10607 * Incomplete support for RST tables (simple and grid).
10608 Thanks to Eric Kow. Colspans and rowspans not yet supported.
10610 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
10612 * MediaWiki writer: format links with relative URLs as wikilinks.
10613 The new rule: If the link target is an absolute URL, an external
10614 link is created. Otherwise, a wikilink is created.
10616 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
10617 identifier. Note: This may break links to sections that involve
10618 tildes.
10620 * Markdown(+lhs) reader: handle "inverse bird tracks."
10621 Inverse bird tracks (<) are used for haskell example code that is not
10622 part of the literate Haskell program. Resolves Issue #211.
10624 * LaTeX reader:
10625 + Recognize '\ ' (interword space).
10626 + Recognize nonbreaking space '~'.
10627 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
10628 section headers. Don't treat \section as inline LaTeX.
10629 Resolves Issue #202.
10630 + LaTeX reader: allow any special character to be escaped.
10631 Resolves Issue #221.
10632 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
10633 headers. Resolves Issue #207.
10635 * Use template variables for include-before/after.
10636 + These options now imply -s; previously they worked also in fragment
10637 mode.
10638 + Users can now adjust position of include-before and include-after
10639 text in the templates.
10640 + Default position of include-before moved back (as it was before 1.4)
10641 before table of contents.
10642 + Resolves Issue #217.
10644 * Don't print an empty table header: (all writers).
10645 Resolves Issue #210.
10647 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
10649 * HTML writer: Don't include TOC div if table of contents is empty.
10651 * Markdown writer: Fixed citations.
10652 Previously the markdown writer printed raw citation codes, e.g.
10653 [geach1970], rather than the expanded citations provided by
10654 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
10655 This means that the document produced can be processed as a markdown
10656 document without citeproc. Thanks to dsanson for reporting, and
10657 Andrea Rossato for the patch.
10659 * Improved and simplified title block in context template.
10660 Previously it caused an error if there was no title.
10661 This method should also be easier for users to customize.
10663 * Markdown reader:
10664 + Treat p., pp., sec., ch., as abbreviations in smart mode.
10665 + Disallow blank lines in inline code span.
10666 + Allow footnotes to be indented < 4 spaces.
10667 This fixes a regression. A test case has been added.
10668 + Escape spaces in URLs as %20. Previously they were incorrectly
10669 escaped as +, which is appropriate only for the query part of
10670 a URL. Resolves Issue #220.
10671 + Require two spaces after capital letter + period for list item.
10672 Otherwise "E. coli" starts a list. This might change the semantics
10673 of some existing documents, since previously the two-space
10674 requirement was only enforced when the second word started
10675 with a capital letter. But it is consistent with the existing
10676 documentation and follows the principle of least surprise.
10677 Resolves Issue #212.
10679 * LaTeX template: redefine labelwidth when using enumerate package.
10680 Otherwise the list labels (numbers) often extend past the left
10681 margin, which looks bad.
10683 * Mediawiki writer: Don't print a "== Notes ==" header before
10684 references. This is too English-centric. Writers can provide their
10685 own header at the end of the document.
10687 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
10688 level 2, etc. This seems to be correct; it's only by convention
10689 that wikipedia articles have level 2 headers at most.
10690 Patch due to Eric Kow.
10692 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
10693 data files don't need to have been installed. This removes the need to
10694 set HOME.
10696 * HTML reader:
10697 + Handle spaces before <html>. Resolves Issue #216.
10698 + Be forgiving in parsing a bare list within a list.
10699 The following is not valid xhtml, but the intent is clear:
10700 <ol>
10701 <li>one</li>
10702 <ol><li>sub</li></ol>
10703 <li>two</li>
10704 </ol>
10705 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
10707 * Updated INSTALL instructions. cabal method is now promoted.
10709 * Updated markdown2pdf man page. It no longer says all pandoc options
10710 are accepted.
10712 * README/man pages: Removed advice to pipe through tidy before HTML
10713 reader. This is obsolete, now that we have a forgiving HTML parser.
10715 * LaTeX writer: set numbersections template variable, so
10716 the section numbering options work again.
10718 * Removed obsolete Makefile.
10720 * Website: renamed index.txt.in -> index.txt.
10722 * New batch file to make-windows-installer.
10723 + Removed old Makefile.windows
10724 + Added make-windows-installer.bat
10725 + Modified default installer name in pandoc-setup.iss
10727 * Removed freebsd and macports directories.
10728 They are no longer up to date.
10730 * Setup.hs:
10731 + Made man page building sensitive to build verbosity.
10732 + Improved detection of highlighting support in test hook.
10733 + Install wrapper scripts into cabal bin directory.
10734 + Also simplified installManpages.
10735 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
10737 * Changed default of writerXeTeX to False.
10739 * HTML writer: don't include empty UL if --toc but no sections.
10740 Resolves Issue #199.
10742 * LaTeX writer:
10744 + If book, report, or memoir documentclass, use \chapter{}
10745 for first-level headers. Otherwise use \section{}.
10746 + Removed stLink, link template variable. Reason: we now always
10747 include hyperref in the template.
10749 * LaTeX template:
10751 + Only show \author if there are some.
10752 + Always include hyperref package. It is used not just for links but
10753 for toc, section heading bookmarks, footnotes, etc. Also added
10754 unicode=true on hyperref options.
10756 * markdown2pdf: always do at least two runs. hyperref bookmarks
10757 require this.
10759 * cabal file: Removed unneeded dependency on template-haskell.
10761 * Windows installer - fixed bug in data file locations.
10762 Resolves Issue #197.
10764 * Deprecated --custom-header in documentation.
10765 Removed old "Custom Headers" section in README.
10767pandoc (1.4)
10769 [ John MacFarlane ]
10771 * Pandoc will now compile with either GHC 6.10 or 6.12.
10772 + Don't use System.IO.UTF8 when compiling with 6.12
10773 + Use -fno-warn-unused-do-bind option when compiling with 6.12
10775 * Replaced old headers with templates. Now users have much more
10776 control over the way documents appear in --standalone mode,
10777 and writer code is simplified. Resolves Issues #59, 147.
10778 Every effort has been made to retain backwards compatibilty.
10779 So, the --custom-header option should still work as before.
10781 + Added Text.Pandoc.Templates. This provides functions for
10782 retrieving default templates and for rendering templates.
10783 + System templates (in the pandoc data directory) can be
10784 overridden by user templates in $HOME/.pandoc/templates.
10785 + Removed Text.Pandoc.DefaultHeaders.
10786 + Removed data/headers directory.
10787 + Added templates directory.
10788 + Added writerTemplate and writerVariables fields to WriterOptions.
10789 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
10790 + Changed --print-default-header to --print-default-template.
10791 + Added --template option.
10792 + Added -V/--variable option to set custom template variables.
10794 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
10796 + Removed need for TH in ODT module. Instead get reference.odt from
10797 data file at run time.
10798 + Removed TH dependency from S5 module. S5 module now exports
10799 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
10800 standalone.
10801 + Refactored LaTeXMathML not to use TH.
10803 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
10804 Meta [Inline] [String] String. Authors and date in Meta are now lists
10805 of Inline elements rather than raw strings. This means that they can
10806 be formatted and can include footnotes. NOTE: This may be a breaking
10807 change for those using pandoc as a library.
10809 * Added readDataFile to Text.Pandoc.Shared. This retrieves
10810 a data file from the user pandoc data directory (~/.pandoc
10811 on unix), or, if not found there, from the system data
10812 directory ($CABALDIR/shared/pandoc-VERSION/). All data
10813 files, including templates, LaTeXMathML.js, s5 styles,
10814 and reference.odt, can be overridden by the user.
10816 * s5 files moved from data/ui/default to s5/default.
10818 * Use unicode instead of entities in HTML and XML output. Resolves
10819 Issue #163.
10821 * Prettier HTML footnote references: put anchor inside sup,
10822 instead of other way. Resolves Issue #191. Thanks to
10823 infinity0x.
10825 * Added --xetex option to pandoc and markdown2pdf.
10826 If --xetex is specified, pandoc produces latex suitable for
10827 processing by xelatex, and markdown2pdf uses xelatex to create
10828 the PDF. Resolves Issue #185.
10830 * RTF writer: multiple authors now occupy multiple paragraphs rather
10831 than using a line break.
10833 * Man writer: now the "--after-body" will come after the "AUTHORS"
10834 section, whereas before it would come before it. This is a
10835 slight break from backwards compatibility.
10837 * Added --reference-odt option, so users may customize the styles
10838 used in pandoc-generated ODT files. Users may also place a
10839 default reference.odt in the ~\.pandoc directory.
10841 * ODT writer:
10842 + Indented and line-broke styles.xml so it can be modified more easily.
10843 + Omitted some unnecessary style declarations.
10844 + Don't wrap text in OpenDocument writer. The tags are too long, making
10845 wrapping ugly and pointless.
10847 * LaTeX reader: use \\ to separate multiple authors.
10849 * Markdown reader: use ; as separator between authors.
10850 This allows you to use ',' within author names: e.g. "John Jones, Jr."
10852 * S5 writer: use linebreak to separate authors in title page.
10854 * RST reader: Allow :: before lhs code block. The RST spec requires the
10855 :: before verbatim blocks. This :: should not be treated as literal
10856 colons. Resolves Issue #189.
10858 * Documented pandoc 1.3's new definition list syntax in README.
10859 (An oversight in the last release.)
10861 * markdown2pdf.hs:
10862 + interpret ! in a log as an error line.
10863 + --toc now works properly.
10865 * Changes in RunTests.hs:
10866 + Use the Diff library rather than a local copy of Diff.hs.
10867 (This vastly increases performance.) This change means that 'cabal
10868 test' presupposes that the Diff library is installed.
10869 + Removed tests/Diff.hs from cabal file.
10870 + Changed RunTests to use local environment. We need at least HOME, so
10871 pandoc can find its data directory.
10873 * Updated windows installer to install data files in the app directory.
10875 * Windows installer now installs portable wrappers hsmarkdown and
10876 markdown2pdf.
10878pandoc (1.3)
10880 [ John MacFarlane ]
10882 * Added --id-prefix option (Issue #41). This adds a prefix to all
10883 automatically generated HTML identifiers, which helps prevent
10884 duplicate identifiers when you're generating a fragment (say a blog
10885 post).
10887 * Added --indented-code-classes option. This specifies classes
10888 to use for indented code blocks. (Patch due to buttock; Issue #87.)
10890 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
10891 (Issue #150).
10893 * Improved syntax for markdown definition lists (Issue #24).
10894 Definition lists are now more compatible with PHP Markdown Extra.
10895 + You can have multiple definitions for a term (but still not
10896 multiple terms).
10897 + Multi-block definitions no longer need a column before each block
10898 (indeed, this will now cause multiple definitions).
10899 + The marker no longer needs to be flush with the left margin,
10900 but can be indented at or two spaces. Also, ~ as well as :
10901 can be used as the marker (this suggestion due to David
10902 Wheeler.)
10903 + There can now be a blank line between the term and the
10904 definitions.
10906 * Better looking simple tables. Resolves Issue #180.
10907 + Markdown reader: simple tables are now given column widths of 0.
10908 + Column width of 0 is interpreted as meaning: use default column width.
10909 + Writers now include explicit column width information only
10910 for multiline tables. (Exception: RTF writer, which requires
10911 column widths. In this case, columns are given equal widths,
10912 adding up to the text width.)
10913 + Simple tables should now look better in most output formats.
10915 * Allow markdown tables without headers (Issue #50).
10916 The new syntax is described in README. Also allow optional line of
10917 dashes at bottom of simple tables.
10919 * Compensate for width of final table column (Issue #144).
10921 * Treat a backslash followed by a newline as a hard line break
10922 in markdown. Resolves Issue #154. This is a nice alternative
10923 to markdown's "invisible" way of indicating hardline breaks
10924 using lines that end with two spaces.
10926 * Improved performance of markdown reader by ~10% by eliminating the
10927 need for a separate parsing pass for notes. Raw notes are now stored
10928 on the first pass (which parses references), then parsed when the
10929 note is inserted into the AST. The stateNotes field in ParserState
10930 is now a list of [(String, String)] pairs instead of [(String,
10931 [Block])].
10933 * In markdown reader, treat 4 or more * or _ in a row as literal
10934 text. (Trying to parse long strings of * or _ as strong or emph
10935 leads to exponential performance problems.)
10937 * Markdown reader: Use + rather than %20 for spaces in URLs.
10939 * Fixed htmlComment parser, adding a needed 'try'.
10941 * Don't print raw HTML in man output.
10943 * Allow . _ and ~ in header identifiers.
10945 * Specially mark code blocks that were "literate" in the input.
10946 They can then be treated differently in the writers. This allows
10947 authors to distinguish bits of the literate program they are writing
10948 from source code examples, even if the examples are marked as
10949 Haskell for highlighting. (Issue #174.)
10951 * Modified html+lhs output to use "haskell" highlighter instead
10952 of "literateHaskell". The highlighting module now adds bird tracks
10953 after highlighting (for HTML output), if the code block has the
10954 "literate" class. This gives better results, because kate's
10955 haskell highlighter is much better than the literateHaskell
10956 highlighter.
10958 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
10959 (Issue #137.)
10961 * Support for "..code-block" directive in RST reader. Not core
10962 RST, but used in Sphinx for code blocks annotated with syntax
10963 information. Thanks to Luke Plant for the patch.
10965 * Added "head" to list of block-level HTML tags. Resolves
10966 Issue #108.
10968 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
10970 * Set utf-8 encoding in texinfo headers.
10972 * Docbook writer: add ids to sections. Use link for internal links.
10973 (Issue #60.)
10975 * Blank lines after lists in MediaWiki writer.
10977 * Properly handle commented-out list items in markdown.
10978 Resolves Issue #142. Example:
10980 - a
10981 <!--
10982 - b
10983 -->
10984 - c
10986 * Changed heuristic in compactify. compactify has to decide whether a
10987 Para that ends a list is a Para intentionally, or just because of
10988 the blank lines at the end of every list. In the latter case the
10989 Para is turned to a Plain. The old heuristic was: change final Para
10990 to Plain iff the other items all end in Plain. This produces bad
10991 results when, for example, an item contains just a Plain and an HTML
10992 comment, as it does in the list above. The new heuristic: change
10993 final Para to Plain iff the other items don't contain a Para.
10995 * Added % as an rst underline character. Resolves Issue #173.
10997 * Fix inline math parser so that \$ is allowed in math.
10998 Resolves Issue #169.
11000 * Translate \int (integral) into unicode when using unicode math
11001 method. Resolves Issue #177.
11003 * markdown2pdf.hs improvements:
11004 + Use System.IO.UTF8.
11005 + Print error messages on last attempt.
11006 + Do not create a backup when overwriting a PDF (Issue #166).
11007 + Accept --longopt=val options.
11008 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
11009 it is properly cleaned.
11011 * Added haddock comments warning that readers assume \n line endings.
11013 * Updated COPYRIGHT file.
11015 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
11016 markdown2pdf. Otherwise strip tries to strip shell scripts when you
11017 install using 'make'.
11019 * Changed Makefile so it doesn't build Haskell wrappers.
11021 * Fixed Makefile so it doesn't try to build man pages in build-doc.
11023 * Install pcre3.dll in Windows install script; this allows us to
11024 package a version of pandoc with highlighting support.
11026pandoc (1.2.1)
11028 [ John MacFarlane ]
11030 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
11031 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
11032 side effect: strings of 0 spaces were interpreted as indentation.
11033 So, with --preserve-tabs, unindented paragraphs were treated as
11034 code. Resolves Issue #138.
11036 * HTML writer: wrap sections in divs. Resolves Issue #70.
11038 + hierarchicalize has been rationalized; it builds a hierarchical
11039 representation of the document from the headers, and simultaneously
11040 gives each section a unique identifier based on the heading title.
11041 + Identifiers are now attached to the divs rather than
11042 to the headers themselves.
11043 + Table of content backlinks go to the beginning of the table, rather
11044 than to the section reference that was clicked.
11045 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
11046 from the HTML writer, since it is now consumed only by
11047 hierarchicalize.
11048 + In --strict mode, pandoc just prints bare headings, as before
11049 (unless --toc has been specified).
11050 + In s5 output, it does not wrap sections in divs, as that seems to
11051 confuse the s5 javascript.
11053 * Man writer: break lines at end of each sentence. groff expects this
11054 and treats '.' and '?' differently when followed by line ending as
11055 opposed to ordinary space. Also, don't escape periods. Instead, use
11056 zero-width character \& to avoid unwanted interpretation of periods
11057 at start of line. Resolves Issue #148.
11059 * Markdown writer: Added '#' and '>' to list of characters to be
11060 escaped in markdown output. Removed '<', as it is not an officially
11061 escapable character. This partially resolves Issue #96.
11063 * Make --smart the default for man output format. Otherwise we have
11064 trouble dividing lists of endlines into sentences.
11066 * DocBook writer: Use language attribute to indicate source language
11067 in code blocks.
11069 * RST reader:
11071 + Allow # to continue list, even if the list was started with an
11072 explicit marker. For example:
11074 A. my list
11075 #. continued
11077 Resolves Issue #140.
11078 + Allow continuation lines in line blocks. Also added test cases for
11079 line blocks for RST reader. Resolves Issue #149.
11080 + Allow explicit links with spaces in URL: `link <to this>`_
11082 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
11083 (which is not in LaTeX) and recognize all the amsmath environments
11084 that are alternatives to eqnarray, namely equation, equation*,
11085 gather, gather*, gathered, multline, multline*, align, align*,
11086 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
11087 Thanks to shreevatsa.public for the patch.
11089 * Markdown reader:
11091 + Allow -, _, :, . in markdown attribute names. These are legal in
11092 XML attribute names.
11093 + Use non-breaking spaces in abbreviations.
11094 + Markdown reader: improved efficiency of abbreviation parsing.
11095 Instead of a separate abbrev parser, we just check for
11096 abbreviations each time we parse a string. This gives a huge
11097 performance boost with -S. Resolves Issue #141.
11099 * Improved efficiency of shared parsers: hexNum, htmlComment,
11100 whitespace, indentSpaces.
11102 * Export HTMLMathMethod in Text.Pandoc.
11104 * Export languagesByExtension in Text.Pandoc.Highlighting.
11106 * Added new Haskell version of markdown2pdf, due to
11107 Paulo Tanimoto. This should be more portable than the old
11108 shell script.
11110 * Made 'pandoc -v' more explicit about compiler options.
11111 Resolves Issue #139.
11113 * pandoc.hs: Made --strict compatible with --standalone, --toc.
11115 * Use Paths_pandoc to get version number, instead of hard-coding it
11116 into Text/Pandoc.hs.
11118pandoc (1.2)
11120 [ John MacFarlane ]
11122 * Added support for literate Haskell. lhs support is triggered by
11123 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
11124 Haskell LaTeX. '.lhs' files are treated by default as literate
11125 markdown.
11127 + Added stateLiterateHaskell to parser state.
11128 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
11129 + Added parser for |inline lhs| to LaTeX reader.
11130 + Added writerLiterateHaskell to WriterOptions.
11131 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
11132 + Added definition of code environment to LaTeX header.
11133 + Added tests (run only if highlighting support compiled in).
11134 + Documented lhs features in man page and README.
11136 * In Text.Pandoc.Definition, added processWith, processWithM,
11137 and queryWith, and deprecated processPandoc and queryPandoc
11138 for these more general functions.
11140 * Fixed bug in mediawiki writer: improper closing tags in tables.
11141 Thanks to Benct Philip Jonsson for reporting the bug.
11143 * Added --email-obfuscation option.
11145 + Added writer option for email obfuscation.
11146 + Implemented email obfuscation options in HTML writer.
11147 + Added option to option parser.
11148 + Documented in README and pandoc man page.
11149 + Resolves Issue #97.
11151 * LaTeX writer: fixed bug with empty table cells.
11152 Resolves Issue #107. Thanks to rodja.trappe for the patch.
11154 * Fixed bug with header spacing in Markdown and RST writers.
11155 A null header (Meta [] [] []) should not cause a blank line
11156 at the beginning of output. But a blank line is needed between
11157 a non-null header and the main text.
11159 * Markdown reader: Relax spacing rules for $$ in display math. Now
11160 space and newlines are allowed after the opening $$ and before the
11161 closing $$. However, the display math cannot contain an entirely
11162 blank line. Resolves Issue #105.
11164 * Markdown reader: Gobble space after Plain blocks containing only
11165 raw html inline. Otherwise following header blocks are not parsed
11166 correctly, since the parser sees blank space before them. Resolves
11167 Issue #124.
11169 * Markdown reader: Allow " as well as '' to end a latex double-quote.
11171 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
11172 Resolves Issue #109.
11174 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
11176 + Added hang' function to Text.Pandoc.Shared; this will be used instead
11177 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
11178 is upgraded, we can go back to hang.
11179 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
11180 + Use hang' (and some different techniques) in RST and markdown writers.
11181 Some output is now a bit different.
11183 * Brought citeproc support up to date for citeproc-hs-0.2.
11184 (Patch by Andrea Rossato.)
11186 * Moved all haskell source to src subdirectory. Renamed Main.hs to
11187 pandoc.hs.
11189 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
11190 For now, keeping the old shell script too.
11192 * Added TemplateHaskell to Extensions for executable, removed
11193 -threaded for library. Thanks to duncan.coutts for the bug report.
11194 Resolves Issue #121.
11196 * Moved some Extra-Source-Files to Data-Files.
11198 * Moved tabFilter to Shared.
11200 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
11201 preserve tabs.
11203 * Minor code cleanup based on hlint suggestions.
11205pandoc (1.1)
11207 [ John MacFarlane ]
11209 * Main.hs:
11211 + Changed date on copyright message in Main.hs.
11212 + Have the '-v' option print syntax highlighting languages
11213 separated by commas, and wrapped in lines, instead of in five
11214 columns as before.
11216 * Added --jsmath option. Resolves Issue #68.
11218 + Added --jsmath option to Main.hs
11219 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
11220 + Handle math appropriately in HTML writer when JsMath selected.
11221 + Documented the option in README and man page.
11223 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
11224 for tight and loose lists. Final Para is changed to Plain if all
11225 other list items *end* with a Plain block. Addresses Issue #99.
11227 * HTML reader:
11229 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
11230 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
11231 Added rawVerbatimBlock parser. Resolves Issue #94.
11233 * Markdown reader:
11235 + Allow URLs with spaces in them in links and references, but escape
11236 them as "%20".
11237 + Allow blank space at the end of horizontal rules.
11239 * RST reader: Modified 'unknownDirective' parser to handle comment
11240 blocks correctly, and added tests for comment blocks. Resolves Issue
11241 #86. Closes Debian Bug #500662.
11243 * HTML writer:
11245 + Include classes on tr elements in HTML output:
11246 "header", "odd", "even". This allows tables to be styled with
11247 lines in alternating colors. Resolves Issue #91.
11248 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
11249 This prevents parts of the document that are not math from being
11250 interpreted as math by LaTeXMathML.js.
11252 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
11253 which were formerly ignored. Resolves Issue #95.
11255 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
11256 between a footnote and immediately following nonspace characters in
11257 LaTeX and ConTeXt output. (This gets interpreted as a space, which
11258 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
11260 * Windows installer: Don't require admin privileges to run
11261 installer. Modified pandoc-setup.iss, and changed modpath.iss to
11262 modify HKCU path if user lacks admin privileges. Also fixed case
11263 where oldpath is empty (previously this led to the new path
11264 beginning with a semicolon).
11266 * Updated INSTALL instructions for Arch packages and OS X install using
11267 cabal-install.
11269 * Removed the (now unneeded) debian directory.
11270 Removed empty Codec and System directories.
11272 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
11274 * Modified Setup.hs so that the "test" target returns an error status
11275 when tests fail, and "build" returns a success status if
11276 the build succeeds. Resolves Issue #100.
11278 * Added BUGS to files in tarball.
11281pandoc (1.0.0.1)
11283 [ John MacFarlane ]
11285 * Removed spurious reference to pdf output format from pandoc(1) man page.
11287pandoc (1.0)
11289 [ Andrea Rossato ]
11291 * Added new OpenDocument writer.
11293 * Added support for SmallCaps inline element.
11295 * Added support for integrating pandoc with citeproc-hs.
11297 + Added Cite element to definition and writers.
11298 + Added Text.Pandoc.Biblio module
11299 + Note: This support is included only if the 'citeproc'
11300 Cabal configuration flag is set.
11302 * Made Pandoc data structure an instance of Typeable.
11303 Added new processPandoc and queryPandoc functions, to query
11304 or transform matching elements in a Pandoc structure.
11306 [ Peter Wang ]
11308 * Added new Texinfo writer.
11310 [ John MacFarlane ]
11312 * Changes to Texinfo writer:
11314 + No space between paragraph and following @verbatim (provides more
11315 pleasing appearance in text formats)
11316 + Blank line consistently after list environments.
11317 + Removed deVerb.
11318 + Use @code instead of @verb for inline code (this solves the character
11319 escaping problem for texi2dvi and texi2pdf).
11320 + Added news of Texinfo writer to README.
11321 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
11322 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
11323 default output extension.
11324 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
11326 * Added tests for OpenDocument writer.
11328 * Added ODT writer (using zip-archive library to package output of
11329 OpenDocument writer). Added odt-styles directory with default ODT styles.
11331 * Added new mediawiki writer and tests.
11333 * Markdown reader: Added support for delimited code blocks, with optional
11334 syntax highlighting using highlighting-kate (if the 'highlighting'
11335 configuration option is selected).
11337 + Currently highlighting is supported only in the HTML writer.
11338 + Delimited code blocks can have attributes; using the language name as
11339 class triggers highlighting.
11340 + New Attributes parameter in CodeBlock structure.
11341 + --version now indicates whether syntax highlighting support is compiled
11342 in, and prints a list of supported languages
11344 * Removed debian directory. Pandoc is no longer a native debian package.
11346 * Changes to build process: pandoc can now be built from the repository
11347 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
11348 without Cygwin).
11350 + Include shell scripts themselves in repo, rather than generating from wrappers.
11351 Removed wrappers directory and wrappers Makefile target.
11352 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
11353 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
11354 from templates in the templates/ directory. Instead, they use template
11355 haskell to read data at compile time from the relevant files in data/.
11356 Template haskell functions go in a new module, Text.Pandoc.TH.
11357 + man pages are now generated in Setup.hs hook, not by Makefile
11358 + Makefile 'tarball' target now calls Cabal's 'sdist'
11359 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
11360 + Added "Build-Type" field to pandoc.cabal to avoid warning.
11361 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
11362 so 'sdist' and 'clean' will work properly.
11363 + Setup.hs now generates man pages in a postbuild hook.
11364 + Added dependency-checking to Setup.hs, so it only rebuilds things
11365 that need rebuilding.
11366 + Added 'library' and 'executable' configuration flags.
11367 Cabal can now be told to build just the library or just the executable.
11368 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
11369 For example: CABALOPTS=-fhighlighting make
11371 * Rewrote test suite so it doesn't depend on perl or unix tools.
11373 + Replaced old runtests.pl with a Haskell script RunTests.hs.
11374 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
11375 + Added test hook to Setup.hs, so tests may be run from cabal.
11376 + Changed Makefile's 'test' target to run tests via cabal.
11377 + Removed old generate.sh.
11378 + Since we no longer have 'sed' to filter out raw HTML sections
11379 from the docbook writer test, or raw LaTeX sections from the
11380 context writer test, we now just include these sections.
11381 They can be taken out if it is necessary to process the files.
11382 + Updated latex and context writer tests to remove extra spaces
11383 after '\\item'
11384 + Added a markdown table reader test.
11385 + Added markdown-reader-more.txt to test suite, for additional test cases
11386 for raw ConTeXt environments and more.
11388 * Compatibility fixes for CPP, Cabal, and haddock:
11390 + Use CPP in "Extensions" field in pandoc.cabal.
11391 + Removed use of backslash string continuations in source files.
11393 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
11394 base >= 3.
11396 * Require parsec < 3.
11397 The compatibility module in parsec 3.0.0 gives far worse performance than
11398 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
11399 version of parsec, and then we'll go to parsec 3.0.0.
11401 * Removed Text.Regex dependencies by rewriting using plain Haskell
11402 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
11404 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
11406 * Makefile:
11408 + Added 'configure' as dependency of 'uninstall-all'.
11409 (It uses the Cabal build program.)
11410 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
11411 Note that Cabal will automatically choose the ghc-pkg appropriate
11412 for the compiler selected, so normally specifying GHC by itself
11413 is sufficient.
11415 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
11416 its IO and conversion functions.
11418 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
11419 everything is -Wall clean.
11421 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
11422 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
11423 (These are caused by the Lift instance for ByteString.)
11425 * Changed the comment used to replace unsafe HTML if sanitize-html option
11426 selected.
11428 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
11430 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
11432 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
11433 "nbsp" isn't a predefined XML entity.
11435 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
11436 Added some try's in ordered list parsers.
11438 * Man writer: don't escape " as \".
11440 * Allow newline before URL in markdown link references. Resolves Issue #81.
11441 Added tests for this issue in new "markdown-reader-more" tests.
11442 Changed RunTests.hs to run these tests.
11444 * Support for display math. Resolves Issue #47.
11446 + Added a DisplayMath/InlineMath selector to Math inlines.
11447 + Markdown parser yields DisplayMath for $$...$$.
11448 + LaTeX parser yields DisplayMath when appropriate. Removed
11449 mathBlock parsers, since the same effect is achieved by the math
11450 inline parsers, now that they handle display math.
11451 + Writers handle DisplayMath as appropriate for the format.
11452 + Modified tests accordingly; added new tests for display math.
11454 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
11455 to LaTeX in its display of math, and supports many non-math LaTeX environments.
11457 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
11458 + Modified HTML writer to print raw TeX when LaTeXMathML is
11459 being used instead of suppressing it.
11460 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
11461 + Replaced ASCIIMathML with LaTeXMathML in source files.
11462 + Modified README and pandoc man page source.
11463 + Added --latexmathml option (kept --asciimathml as a synonym
11464 for backwards compatibility)
11466 * Markdown reader: Parse setext headers before atx headers.
11467 Test case:
11468 # hi
11469 ====
11470 parsed by Markdown.pl as an H1 header with contents "# hi".
11472 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
11473 The marker on the first list item determines the type of the whole
11474 list. Thus, a list like
11475 1. one
11476 - two
11477 * three
11478 gets parsed as a single ordered list. (Previous versions of pandoc
11479 treated this as an ordered list with an unordered sublist.)
11481 * Markdown smart typography:
11483 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
11484 + Use nonbreaking spaces after known abbreviations in markdown parser.
11485 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
11486 not produce a sentence-separating space. Resolves Issue #75.
11488 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
11490 * Treat '\ ' in (extended) markdown as nonbreaking space.
11491 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
11493 * The '--sanitize-html' option now examines URIs in markdown links
11494 and images, and in HTML href and src attributes. If the URI scheme
11495 is not on a whitelist of safe schemes, it is rejected. The main point
11496 is to prevent cross-site scripting attacks using 'javascript:' URIs.
11497 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
11498 and http://ha.ckers.org/xss.html. Resolves Issue #62.
11500 * HTML writer:
11502 + Override Text.XHtml's stringToHtml function,
11503 so that characters below 0xff are not converted to numerical entity
11504 references. Also convert '\160' to "&nbsp;". This should aid readability
11505 and editability of the HTML source. It does presuppose that the HTML
11506 will be served as UTF-8.
11507 + In code blocks, change leading newlines to <br /> tags.
11508 (Some browsers ignore them.) Resolves Issue #71.
11509 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
11510 + Use style attributes rather than css classes for strikethrough
11511 and ordered list styles. This works better when fragments, rather than
11512 standalone documents, are generated.
11514 * HTML reader: Count anything that isn't a known block (HTML) tag as an
11515 inline tag (rather than the other way around). Added "html", "head", and
11516 "body" to list of block tags. Resolves Issue #66, allowing
11517 <lj> to count as an inline tag.
11519 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
11520 boldface, and other inline elements. Resolves Issue #64.
11522 * LaTeX reader: improvements in raw LaTeX parsing.
11524 + "loose punctuation" (like {}) parsed as Space
11525 + Para elements must contain more than Str "" and Space elements
11526 + Added parser for "\ignore" command used in literate haskell.
11527 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
11528 mode, these parsers simply strip off the command part and allow
11529 the arguments to be parsed normally. So, for example,
11530 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
11531 Str "{\\emph{hi}}".
11532 + Parse lhs "code" environments as verbatim.
11533 Refactored parsers for verbatim environments.
11534 + Removed specialEnvironment parser.
11535 + parse '{}', if present, after \textless, \textgreater,
11536 \textbar, \textbackslash, \ldots.
11537 + Parse unescaped special characters verbatim rather than
11538 changing them to spaces. This way arguments of unknown
11539 commands will appear in braces.
11541 * Parse raw ConTeXt environments as TeX in markdown reader.
11542 Resolves Issue #73.
11544 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
11546 * Made some structural changes to parsing of raw LaTeX environments.
11547 Previously there was a special block parser for LaTeX environments.
11548 It returned a Para element containing the raw TeX inline. This has
11549 been removed, and the raw LaTeX environment parser is now used in the
11550 rawLaTeXInline parser. The effect is exactly the same, except that we
11551 can now handle consecutive LaTeX and ConTeXt environments not separated
11552 by spaces. This new flexibility is required by the example in
11553 Issue #73:
11555 \placeformula \startformula
11556 L_{1} = L_{2}
11557 \stopformula
11559 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
11560 returns a string) rather than rawLaTeXEnvironment (which returns a block
11561 element). This is more likely to be useful in other applications.
11563 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
11564 \textsubscript conflicts with a definition in the memoir class.
11565 Resolves Issue #65.
11567 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
11569 * Added amsmath package to default LaTeX header. Resolves Issue #48.
11571 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
11572 list introduction lines.
11574 * Changed Float to Double in definition of Table element.
11575 (Double is more efficient in GHC.)
11577 * Fixed bug in Markdown parser: regular $s triggering math mode.
11578 For example: "shoes ($20) and socks ($5)."
11579 The fix consists in two new restrictions:
11581 + the $ that ends a math span may not be directly followed by a digit.
11582 + no blank lines may be included within a math span.
11584 Thanks to Joseph Reagle for noticing the bug.
11586 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
11587 Removed 'joinWithSep' from Text.Pandoc.Shared.
11589 * Updated README and man pages. Acknowledge contributors in README.
11590 Added paragraph to README about producing S5 with separate CSS/javascript.
11592 * Updated INSTALL to reflect new build system (including configuration
11593 options) and document new dependencies. Added note to INSTALL that
11594 Cabal >= 1.2 is required for build. Resolves Issue #74.
11596 * Fixed some haddock documentation errors.
11598 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
11600pandoc (0.46) unstable; urgency=low
11602 [ John MacFarlane ]
11604 * Made -H, -A, and -B options cumulative: if they are specified
11605 multiple times, multiple files will be included.
11607 * Added optional HTML sanitization using a whitelist.
11608 When this option is specified (--sanitize-html on the command line),
11609 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
11610 attributes will be removed. This option should be especially useful
11611 for those who want to use pandoc libraries in web applications, where
11612 users will provide the input.
11614 + Main.hs: Added --sanitize-html option.
11616 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
11618 + Text.Pandoc.Readers.HTML:
11619 - Added whitelists of sanitaryTags and sanitaryAttributes.
11620 - Added parsers to check these lists (and state) to see if a given
11621 tag or attribute should be counted unsafe.
11622 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
11623 with comments.
11624 - Modified htmlAttribute to remove unsafe attributes.
11625 - Modified htmlScript and htmlStyle to remove these elements if
11626 unsafe.
11628 + Modified README and man pages to document new option.
11630 * Improved handling of email addresses in markdown and reStructuredText.
11631 Consolidated uri and email address parsers. (Resolves Issue #37.)
11633 + New emailAddress and uri parsers in Text.Pandoc.Shared.
11634 - uri parser uses parseURI from Network.URI.
11635 - emailAddress parser properly handles email addresses with periods
11636 in them.
11638 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
11639 and Text.Pandoc.Readers.Markdown.
11641 * Markdown reader:
11643 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
11644 nested in an Emph. (A '*' is only recognized as the end of the
11645 emphasis if it's not the beginning of a strong emphasis.)
11647 + Moved blockQuote parser before list parsers for performance.
11649 + Modified 'source' parser to allow backslash-escapes in URLs.
11650 So, for example, [my](/url\(1\)) yields a link to /url(1).
11651 Resolves Issue #34.
11653 + Disallowed links within links. (Resolves Issue #35.)
11654 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
11655 instead of hard-coding the inline parser takes an inline parser
11656 as a parameter.
11657 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
11658 - Removed unneeded inlineString function.
11659 - Added inlineNonLink parser, which is now used in the definition of
11660 reference.
11661 - Added inlineParsers list and redefined inline and inlineNonLink parsers
11662 in terms of it.
11663 - Added failIfLink parser.
11665 + Better handling of parentheses in URLs and quotation marks in titles.
11666 - 'source' parser first tries to parse URL with balanced parentheses;
11667 if that doesn't work, it tries to parse everything beginning with
11668 '(' and ending with ')'.
11669 - source parser now uses an auxiliary function source'.
11670 - linkTitle parser simplified and improved, under assumption that it
11671 will be called in context of source'.
11673 + Make 'block' conditional on strictness state, instead of using
11674 failIfStrict in block parsers. Use a different ordering of parsers
11675 in strict mode (raw HTML block before paragraph) for performance.
11676 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
11677 Simplified htmlBlock, since we know it's only called in strict
11678 mode.
11680 + Improved handling of raw HTML. (Resolves Issue #36.)
11681 - Tags that can be either block or inline (e.g. <ins>) should
11682 be treated as block when appropriate and as inline when
11683 appropriate. Thus, for example,
11684 <ins>hi</ins>
11685 should be treated as a paragraph with inline <ins> tags, while
11686 <ins>
11688 </ins>
11689 should be treated as a paragraph within <ins> tags.
11690 - Moved htmlBlock after para in list of block parsers. This ensures
11691 that tags that can be either block or inline get parsed as inline
11692 when appropriate.
11693 - Modified rawHtmlInline' so that block elements aren't treated as
11694 inline.
11695 - Modified para parser so that paragraphs containing only HTML tags and
11696 blank space are not allowed. Treat these as raw HTML blocks instead.
11698 + Fixed bug wherein HTML preceding a code block could cause it to
11699 be parsed as a paragraph. The problem is that the HTML parser
11700 used to eat all blank space after an HTML block, including the
11701 indentation of the code block. (Resolves Issue #39.)
11702 - In Text.Pandoc.Readers.HTML, removed parsing of following space
11703 from rawHtmlBlock.
11704 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
11705 indentation is eaten *only* on the first line after the HTML
11706 block. This means that in
11707 <div>
11708 foo
11709 <div>
11710 the foo won't be treated as a code block, but in
11711 <div>
11713 foo
11715 </div>
11716 it will. This seems the right approach for least surprise.
11718 * RST reader:
11720 + Fixed bug in parsing explicit links (resolves Issue #44).
11721 The problem was that we were looking for inlines until a '<' character
11722 signaled the start of the URL; so, if you hit a reference-style link,
11723 it would keep looking til the end of the document. Fix: change
11724 inline => (notFollowedBy (char '`') >> inline). Note that this won't
11725 allow code inlines in links, but these aren't allowed in resT anyway.
11727 + Cleaned up parsing of reference names in key blocks and links.
11728 Allow nonquoted reference links to contain isolated '.', '-', '_', so
11729 so that strings like 'a_b_' count as links.
11731 + Removed unnecessary check for following link in str.
11732 This is unnecessary now that link is above str in the definition of
11733 'inline'.
11735 * HTML reader:
11737 + Modified rawHtmlBlock so it parses </html> and </body> tags.
11738 This allows these tags to be handled correctly in Markdown.
11739 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
11740 since these are handled in parseHtml. (Resolves Issue #38.)
11742 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
11744 + Don't interpret contents of style tags as markdown.
11745 (Resolves Issue #40.)
11746 - Added htmlStyle, analagous to htmlScript.
11747 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
11748 - Moved "script" from the list of tags that can be either block or
11749 inline to the list of block tags.
11751 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
11752 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
11753 inline tags would be included in raw HTML blocks.
11755 + Modified anyHtmlBlockTag to test for (not inline) rather than
11756 directly for block. This allows us to handle e.g. docbook in
11757 the markdown reader.
11759 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
11760 Updated LaTeX reader test to use --parse-raw.
11762 * HTML writer:
11764 + Modified rules for automatic HTML header identifiers to
11765 ensure that identifiers begin with an alphabetic character.
11766 The new rules are described in README. (Resolves Issue #33.)
11768 + Changed handling of titles in HTML writer so you don't get
11769 "titleprefix - " followed by nothing.
11771 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
11772 spacing. Each block element is wrapped with either Pad or Reg.
11773 Pad'ed elements are guaranteed to have a blank line in between.
11775 * RST writer:
11777 + Refactored RST writer to use a record instead of a tuple for state,
11778 and to include options in state so it doesn't need to be passed as
11779 a parameter.
11781 + Use an interpreted text role to render math in restructuredText.
11782 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
11783 strategy.
11785 [ Recai Oktaş ]
11787 * Debian packaging changes:
11789 + Remove the empty 'include' directory in -dev package, which lintian
11790 complains about.
11791 + Bump Standarts-Version to 3.7.3.
11792 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
11793 lintian.
11795 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
11797pandoc (0.45) unstable; urgency=low
11799 [ John MacFarlane ]
11801 * Simplified parsing of reference keys and notes in markdown and RST
11802 readers: The Reference data structure from Text.Pandoc.Shared is no
11803 longer needed, since referenceKey and noteBlock parses return strings
11804 (as many blank lines as were occupied by the key or note) and update
11805 state themselves. getPosition and setPosition are now used to ensure
11806 that error messages will give the correct line number. This yields
11807 cleaner (and slightly faster) code, with more accurate parsing error
11808 messages.
11810 * Added new Math inline element:
11812 + Markdown and LaTeX readers now convert TeX math into Math elements,
11813 not TeX.
11814 + This allows math to be treated differently from raw TeX in output.
11815 TeX elements are no longer printed in output formats other than
11816 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
11818 * New default handling of math in writers:
11820 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
11821 parses raw TeX math and outputs a string of Pandoc inlines that
11822 tries to render it as far as possible using unicode characters,
11823 lapsing into literal TeX when needed.
11824 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
11825 and Docbook, if no other method for displaying math in HTML is
11826 specified. Enclosing $'s are no longer printed by default.
11827 + By default, math is put inside `<span class="math">`. This way it can be
11828 distinguished from the surrounding text, e.g. put in a different
11829 font.
11831 * New --gladtex and --mimetex options for display of math in HTML:
11833 + If --gladtex is specified, math is output between `<eq>` tags, so
11834 it can be processed by gladTeX.
11835 + If --mimetex is specified, math is put in `<img>` tags with a link
11836 to the mimetex CGI script (or any other script that takes TeX math
11837 as input and outputs an image). The URL of the script may be
11838 specified, but defaults to /cgi-bin/mimetex.cgi.
11839 + HTMLMathMethod structure in WriterOptions keeps track of how to
11840 display math in HTML output.
11841 + Updated README with a description of the four options for displaying
11842 math in HTML.
11844 * HTML reader:
11846 + Fixed bug: parser for minimized attributes should not swallow
11847 trailing spaces.
11848 + Simplified HTML attribute parsing.
11849 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
11850 longer needed. `<pre>` suffices. All HTML tags in the code block
11851 (e.g. for syntax highlighting) are skipped, because they are not
11852 portable to other output formats. A `<code>...</code>` block not
11853 surrounded by `<pre>` now counts as inline HTML, not a code block.
11854 + Remove just one leading and one trailing newline from contents of
11855 `<pre>...</pre>` in codeBlock parser.
11857 * Markdown reader:
11859 + Removed support for box-style block quotes.
11860 + Require space before title in links and references.
11861 This fixes a bug in parsing URLs like http://silly/url(withparen).
11862 + Improved and simplified setextHeader parser.
11863 + Fixed logic in smart quote parsing, adding some needed 'try'
11864 statements.
11865 + Fixed smart quote parsing so that unicode characters 8216 and 8217
11866 are recognized as single quotes, and 8220 and 8221 as double quotes.
11868 * RST reader:
11870 + Fixed bug in parsing of code blocks. Previously a full tab indent
11871 was required, but RST allows code to be indented any amount.
11872 Resolves Issue #27.
11873 + Allow field lists to be indented.
11874 + Parse the contents of field lists instead of treating as a raw string.
11875 + Represent field lists as definition lists instead of blockquotes.
11876 + Fixed bug in which metadata would be overridden if the document
11877 contained multiple field lists.
11878 + Parse fields associated with '.. image::' blocks, and use 'alt'
11879 field, if given, for image alt and title attributes.
11881 * LaTeX reader:
11883 + Modified specialChar so that '"' characters are parsed.
11884 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
11886 * HTML writer:
11888 + Changes in handling of math (see above).
11889 + Don't produce HTML for table of contents if there are
11890 no headers. (This would be an empty list, which is invalid XHTML.)
11892 * Markdown writer:
11894 + Don't print title attribute if title is empty. (This differs from
11895 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
11896 Gruber has indicated that he prefers this behavior.) Adjusted test
11897 suite accordingly.
11898 + Fixed incorrect line wrapping in paragraphs including hard line
11899 breaks. Resolves Issue #25.
11900 + Fixed bug in markdown writer: If an ordered list item began with
11901 a marker greater than 3 characters in width, and the item took more
11902 than one line, it would appear on the line after the list marker,
11903 e.g.:
11905 (12)
11906 My list item.
11907 Multiline.
11909 Now it works as follows:
11911 (12) My list item.
11912 Multiline.
11914 * RST writer
11916 + Fixed bug in RST writer's handling of ordered lists. Previously,
11917 list items with multiple lines would not always line up with
11918 single-line list items. Now, list items are nested the length of
11919 the list marker + 1. This looks better and ensures that list items
11920 all line up. (Note that list markers are padded to the length of
11921 the longest list marker in the series.)
11922 + Use 3-space indent for unordered lists.
11923 + If label for a link reference contains a colon, surround it by `
11924 signs so it won't be interpreted as the end of the link label.
11926 * LaTeX writer:
11928 + Cleaner output for footnotes. Footnotes now always begin on a new
11929 line, and the final } is on a line by itself only when it needs to
11930 be (i.e. only when the note ends with a Verbatim environment).
11931 + Added writer options to state, so state doesn't need to be passed as
11932 a parameter.
11933 + Text wrapping now provided, using wrapTeXIfNeeded.
11935 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
11936 (thanks to Idris Samawi Hamid for suggestions).
11938 + PrettyPrint module now used for output.
11939 + Writer options are now in state, so they don't have to be passed as
11940 a parameter.
11941 + Text wrapping now provided, using wrapTeXIfNeeded.
11942 + Better treatment of footnotes: footnotes are always on lines by
11943 themselves, and the final } is on a line by itself only when
11944 it needs to be (after \stoptyping).
11945 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
11946 depending on whether --number-sections option is selected.
11947 + Extra blank line inserted after \stopitemize
11948 + Use new, "official" definition of blockquote environment. Also, use
11949 blank line after \startblockquote to balance blank line at the end.
11950 + Both itemized and enumerated lists are now generated using
11951 \start-stopitemize, with appropriate options. Removed definitions
11952 of ltxenum and ltxitem, which are no longer needed. Provided
11953 defaults for itemized lists in the preamble. State keeps track of
11954 ordered list level, so that when default numbering is specified,
11955 the appropriate scheme can be used.
11956 + Changed \useurl to \useURL.
11957 + Changed link color from red to blue.
11958 + Use \subsubsubsubsection etc., since these are supported
11959 (up to at least sub x 5).
11961 * Text.Pandoc.Shared:
11963 + Save and restore position in parseFromString, so that accurate
11964 error messages can be given.
11965 + Improved efficiency of romanNumeral parser.
11966 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
11967 that footnotes occur on lines by themselves (to make them
11968 easier to see and move) and do not screw up line wrapping.
11970 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
11971 if present. Windows Notepad and other applications insert a
11972 BOM at the beginning of a UTF8 file.
11974 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
11975 addition to "\r\n" and '\n').
11977 * Added a writer option for wrapped text and a command-line option
11978 '--no-wrap', which disables text wrapping and minimizes whitespace
11979 in HTML. (Resolves Issue #26.)
11981 + Added support for '--no-wrap' to Main.hs.
11982 + Added wrapIfNeeded function to Text.Pandoc.Shared.
11983 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
11984 Markdown writers.
11985 + Added render and renderFragment helpers to HTML writer.
11987 * Modified html2markdown to run tidy only if the HTML cannot be
11988 parsed. Previously html2markdown piped all input through tidy
11989 before passing it to pandoc. This caused problems on certain pages
11990 (e.g. http://daringfireball.com/markdown) which have well-formed
11991 XHTML that causes tidy to choke. The solution is to pipe through
11992 tidy only if pandoc cannot parse the input by itself. This means
11993 that a temp file is now always used, even when input comes from a
11994 local file or standard input.
11996 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
11997 Text.Pandoc library.
11999 * pandoc.cabal:
12001 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
12002 6.8, pretty and containers must be added to Build-Depends, and it
12003 is desirable to use the -O2 compiler option.) Cabal configurations
12004 allows one to select options depending on the compiler version.
12005 For GHC 6.6, the splitBase option can be disabled.
12006 + pandoc.cabal.ghc66 is provided for users with older versions of
12007 Cabal, which do not support configurations.
12008 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
12009 '--enable-(executable|library)-profiling' is specified. Updated
12010 PROFILING instructions accordingly.
12012 * Makefile:
12014 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
12015 is copied to pandoc.cabal, and the old pandoc.cabal is copied
12016 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
12017 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
12018 will work properly with either GHC 6.6 or 6.8.
12019 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
12020 This is where current versions of Cabal put it.
12021 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
12022 + Removed dependency of templates on ./templates, which is circular
12023 now that templates is a subdirectory of the top-level.
12025 * MacPorts Portfile:
12027 + Modified to install the pandoc library in addition to programs.
12028 + Installation must be done manually rather than using Makefile's
12029 install-all.
12030 + Note that the library must be registered in the activate phase,
12031 after the library files have been copied out of the destroot.
12032 Cabal generates a 'register.sh' script that will do this.
12034 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
12035 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
12036 Closes: #445235
12038 * debian/rules: Converted to UTF-8.
12040 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
12042 * Updated ASCIIMathML.js to latest version.
12044 * Directory structure:
12046 + Moved everything from src into the top-level directory.
12047 + Changed references to source directory in Makefile and
12048 pandoc.cabal.*.
12049 + Moved ASCIIMathML.js, headers, and ui into templates directory.
12050 + Modified fillTemplates.pl to reflect new paths.
12052 [ Recai Oktaş ]
12054 * Makefile: Fixed the issue of having two copies of the library
12055 documentation under some usage scenarios.
12057 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
12058 and GHC_PKG configurable through the environment, to support
12059 unusual ghc installations. For example:
12060 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
12062 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
12064pandoc (0.44) unstable; urgency=low
12066 [ John MacFarlane ]
12068 * Fixed bug in HTML writer: when --toc was used, anchors were put around
12069 headers, which is invalid XHTML (block content within inline element).
12070 Now the anchors are put inside the header tags. Resolves Issue #23.
12072 * Added xmlns attribute to html element in html writer tests.
12073 This attribute is added by more recent versions of the
12074 xhtml library (>= 3000), and is required for valid XHTML.
12076 [ Recai Oktaş ]
12078 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
12079 command instead of 'runhaskell', which, on some platforms (such as s390,
12080 alpha, m68k), throws the following error:
12082 runhaskell Setup.hs configure --prefix=/usr
12083 ghc-6.6.1: not built for interactive use
12085 This causes a serious FTBFS bug. Closes: #440668.
12087 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
12089pandoc (0.43) unstable; urgency=low
12091 [ John MacFarlane ]
12093 * The focus of this release is performance. The markdown parser
12094 is about five times faster than in 0.42, based on benchmarks
12095 with the TextMate manual.
12097 * Main.hs: Replaced CRFilter and tabFilter with single function
12098 tabFilter, which operates on the whole string rather than breaking
12099 it into lines, and handles dos-style line-endings as well as tabs.
12101 * Added separate LaTeX reader and native reader tests; removed
12102 round-trip tests.
12104 * Text.Pandoc.Shared:
12106 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
12107 + General code cleanup (to elimante warnings when compiling with -Wall.)
12108 + Added 'wrapped' function, which helps wrap text into paragraphs,
12109 using the prettyprinting library.
12110 + Rewrote charsInBalanced and charsInBalanced'.
12111 - Documented restriction: open and close must be distinct characters.
12112 - Rearranged options for greater efficiency.
12113 - Bug fix: Changed inner call to charsInBalanced inside
12114 charsInBalanced' to charsInBalanced'.
12115 + anyLine now requires that the line end with a newline (not eof).
12116 This is a harmless assumption, since we always add newlines to the
12117 end of a block before parsing with anyLine, and it yields a 10% speed
12118 boost.
12119 + Removed unnecessary 'try' in anyLine.
12120 + Removed unneeded 'try' from romanNumeral parser.
12121 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
12122 + Removed unneeded 'try' in parseFromString.
12123 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
12124 like 'string'.)
12125 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
12126 'try' is not automatically applied to the 'end' parser. Added
12127 'try' in calls to 'enclosed' where needed. Slight speed increase.
12129 * Writers:
12131 + Replaced individual wrapping routines in RST, Man, and Markdown
12132 writers with 'wrapped' from Text.Pandoc.Shared.
12133 + Rewrote LaTeX writer to use the prettyprinting library,
12134 so we get word wrapping, etc.
12135 + Modified latex writer tests for new latex writer using prettyprinter.
12136 + Fixed bug in LaTeX writer: autolinks would not cause
12137 '\usepackage{url}' to be put in the document header. Also, changes
12138 to state in enumerated list items would be overwritten.
12139 + In Markdown writer, escape paragraphs that begin with ordered list
12140 markers, so they don't get interpreted as ordered lists.
12142 * Text.Pandoc.Reades.LaTeX:
12144 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
12145 numeral after "enum" in "setcounter" would consist entirely of
12146 "i"s. 'enumiv' is legitimate.
12147 + LaTeX command and environment names can't contain numbers.
12148 + Rearranged order of parsers in inline for slight speed improvement.
12149 + Added '`' to special characters and 'unescapedChar'.
12151 * Text.Pandoc.Readers.RST:
12153 + Removed unneeded try's in RST reader; also minor code cleanup.
12154 + Removed tabchar.
12155 + Rearranged parsers in inline (doubled speed).
12157 * Text.Pandoc.Readers.Markdown:
12159 + Skip notes parsing if running in strict mode. (This yields a nice
12160 speed improvement in strict mode.)
12161 + Simplify autolink parsing code, using Network.URI to test for
12162 URIs. Added dependency on network library to debian/control and
12163 pandoc.cabal.
12164 + More perspicuous definition of nonindentSpaces.
12165 + Removed unneeded 'try' in 'rawLine'.
12166 + Combined linebreak and whitespace into a new whitespace parser, to
12167 avoid unnecessary reparsing of space characters.
12168 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
12169 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
12170 + Use lookAhead in parsers for setext headers and definition lists
12171 to see if the next line begins appropriately; if not, don't waste
12172 any more time parsing.
12173 + Don't require blank lines after code block. (It's sufficient to
12174 end code block with a nonindented line.)
12175 + Changed definition of 'emph': italics with '_' must not
12176 be followed by an alphanumeric character. This is to help
12177 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
12178 `[LC<em>TYPE]:my</em>type`.
12179 + Improved Markdown.pl-compatibility in referenceLink: the two parts
12180 of a reference-style link may be separated by one space, but not
12181 more... [a] [link], [not] [a link].
12182 + Fixed markdown inline code parsing so it better accords with
12183 Markdown.pl: the marker for the end of the code section is a clump
12184 of the same number of `'s with which the section began, followed
12185 by a non-` character. So, for example,
12186 ` h ``` i ` -> `<code>h ``` i</code>`.
12187 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
12188 rules are slightly different.
12189 + Rewrote 'para' for greater efficiency.
12190 + Rewrote link parsers for greater efficiency.
12191 + Removed redundant 'referenceLink' in definition of inline (it's
12192 already in 'link').
12193 + Refactored escapeChar so it doesn't need 'try'.
12194 + Refactored hrule for performance in Markdown reader.
12195 + More intelligent rearranging of 'inline' so that most frequently
12196 used parsers are tried first.
12197 + Removed tabchar parser, as whitespace handles tabs anyway.
12199 * Text.Pandoc.CharacterReferences:
12201 + Refactored.
12202 + Removed unnecessary 'try's for a speed improvement.
12203 + Removed unnecessary '&' and ';' from the entity table.
12205 * Build process:
12207 + Makefile: Get VERSION from cabal file, not Main.hs.
12208 + Modified MacPorts Portfile:
12209 - Depend on haddock
12210 - Build and install libraries and library documentation in
12211 addition to pandoc executable
12212 - Added template item for md5 sum in Portfile.in.
12213 - Incorporated changes from MacPorts repository (r28278).
12214 + FreeBSD port: Don't try to generate distinfo in Makefile.
12215 It can be made using 'make makesum' in FreeBSD.
12216 + Make both freebsd and macports targets depend on tarball.
12218 * Website and documentation:
12220 + Updated INSTALL instructions.
12221 + Added pandocwiki demo to website.
12222 + Removed local references to Portfile, since pandoc is now in the
12223 MacPorts repository.
12225 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
12227pandoc (0.42) unstable; urgency=low
12229 [ John MacFarlane ]
12231 * Main.hs: Use utf8 conversion on the extra files loaded with
12232 the -H, -C, -B, and -A options. This fixes problems with unicode
12233 characters in these files.
12235 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
12236 Text.Pandoc.Readers.HTML and without it we get a linking error when
12237 using the library.
12239 * Markdown reader:
12241 + Added new rule for enhanced markdown ordered lists: if the list
12242 marker is a capital letter followed by a period (including a
12243 single-letter capital roman numeral), then it must be followed by
12244 at least two spaces. The point of this is to avoid accidentally
12245 treating people's initials as list markers: a paragraph might begin,
12246 "B. Russell was an English philosopher," and this shouldn't be
12247 treated as a list. Documented change in README.
12248 + Blocks that start with "p. " and a digit are no longer treated
12249 as ordered lists (it's a page number).
12250 + Added a needed 'try' to listItem.
12251 + Removed check for a following setext header in endline.
12252 A full test is too inefficient (doubles benchmark time), and the
12253 substitute we had before is not 100% accurate.
12254 + Don't use Code elements for autolinks if --strict specified.
12256 * LaTeX writer: When a footnote ends with a Verbatim environment, the
12257 close } of the footnote cannot occur on the same line or an error occurs.
12258 Fixed this by adding a newline before the closing } of every footnote.
12260 * HTML writer:
12261 + Removed incorrect "{}" around style information in HTML tables.
12262 Column widths now work properly in HTML.
12263 + If --strict option is specified (and --toc is not), don't include
12264 identifiers in headers, for better Markdown compatibility.
12266 * Build process:
12268 + Separated $(web_dest) and website targets.
12269 + In website, index.txt is now constructed from template index.txt.in.
12270 + Added freebsd target to Markefile. This creates the freebsd Makefile
12271 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
12272 from the repository.
12273 + Added macport target to Makefile. Portfile is built from template
12274 Portfile.in.
12275 + Removed OSX package targets. (Too many difficulties involving
12276 dependencies on dynamic libraries.)
12277 + More complete INSTALL instructions for all architectures.
12279 * Website:
12280 + Added a programming demo, pandocwiki.
12282 [ Recai Oktaş ]
12284 * Do not forget to close pandoc's ITP. Closes: #391666
12286 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
12288pandoc (0.41) unstable; urgency=low
12290 [ John MacFarlane ]
12292 * Fixed bugs in HTML reader:
12293 + Skip material at end *only if* `</html>` is present (previously,
12294 only part of the document would be parsed if an error was
12295 found; now a proper error message is given).
12296 + Added new constant eitherBlockOrInline with elements that may
12297 count either as block-level or as inline. Modified isInline and
12298 isBlock to take this into account.
12299 + Modified rawHtmlBlock to accept any tag (even an inline tag):
12300 this is innocuous, because rawHtmlBlock is tried only if a regular
12301 inline element can't be parsed.
12302 + Added a necessary 'try' in definition of 'para'.
12304 * Fixed bug in markdown ordered list parsing. The problem was that
12305 anyOrderedListStart did not check for a space following the
12306 ordered list marker. So in 'A.B. 2007' the parser would be
12307 expecting a list item, but would not find one, causing an error.
12308 Fixed a similar bug in the RST reader. Resolves Issue #22.
12310 * Refactored RST and Markdown readers using parseFromString.
12312 * LaTeX reader will now skip anything after \end{document}.
12314 * Fixed blockquote output in markdown writer: previously, block
12315 quotes in indented contexts would be indented only in the first
12316 line.
12318 * Added note to INSTALL about variations in versions of the xhtml
12319 library that can lead to failed tests (thanks to Leif LeBaron).
12321 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
12323pandoc (0.4) unstable; urgency=low
12325 [ John MacFarlane ]
12327 * Added two new output formats: groff man pages and ConTeXt. By
12328 default, output files with extensions ".ctx" and ".context" are
12329 assumed to be ConTeXt, and output files with single-digit extensions
12330 are assumed to be man pages.
12332 * Enhanced ordered lists (documented in README, under Lists):
12333 + The OrderedList block element now stores information about
12334 list number style, list number delimiter, and starting number.
12335 + The readers parse this information when possible.
12336 + The writers use this information to style ordered lists.
12337 + The enhancement can be disabled using the --strict option.
12339 * Added support for tables (with a new Table block element). Two kinds
12340 of tables are supported: a simple table with one-line rows, and a
12341 more complex variety with multiline rows. All output formats are
12342 supported, but only markdown tables are parsed at the moment. The
12343 syntax is documented in README.
12345 * Added support for definition lists (with a new DefinitionList block
12346 element). All output and input formats are supported. The syntax is
12347 documented in README.
12349 * Added support for superscripts and subscripts (with new Superscript
12350 and Subscript inline elements). All input and output
12351 formats. The syntax is documented in README.
12353 * Added support for strikeout (with a new Strikeout inline element).
12354 All input and output formats are supported. Thanks to Bradley Kuhn,
12355 who contributed a patch. The syntax is documented in README. Resolves
12356 Issue #18.
12358 * Added a --toc|--table-of-contents option. This causes an automatically
12359 generated table of contents (or an instruction that creates one) to
12360 be inserted at the beginning of the document. Not supported in S5,
12361 DocBook, or man page writers.
12363 * Modified the -m|--asciimathml option:
12365 + If an optional URL argument is provided, a link is inserted
12366 instead of the contents of the ASCIIMathML.js script.
12367 + Nothing is inserted unless the document actually contains
12368 LaTeX math.
12370 * Removed Blank block element as unnecessary.
12372 * Removed Key and Note blocks from the Pandoc data structure. All
12373 links are now stored as explicit links, and note contents are
12374 stored with the (inline) notes.
12376 + All link Targets are now explicit (URL, title) pairs; there
12377 is no longer a 'Ref' target.
12378 + Markdown and RST parsers now need to extract data from key and
12379 note blocks and insert them into the relevant inline elements.
12380 Other parsers have been simplified, since there is no longer any need
12381 to construct separate key and note blocks.
12382 + Markdown, RST, and HTML writers need to construct lists of
12383 notes; Markdown and RST writers need to construct lists of link
12384 references (when the --reference-links option is specified); and
12385 the RST writer needs to construct a list of image substitution
12386 references. All writers have been rewritten to use the State monad
12387 when state is required.
12388 + Several functions (generateReference, keyTable,
12389 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
12390 used by them) have been removed from Text.Pandoc.Shared, since
12391 they are no longer needed. New functions and data structures
12392 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
12393 added. The functions inTags, selfClosingTag, inTagsSimple, and
12394 inTagsIndented have been moved to the DocBook writer, since that
12395 is now the only module that uses them. NoteTable is now exported
12396 in Text.Pandoc.Shared.
12397 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
12398 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
12399 + Added writerNotes and writerReferenceLinks to WriterOptions.
12401 * Added Text.Pandoc module that exports basic readers, writers,
12402 definitions, and utility functions. This should export everything
12403 needed for most uses of Pandoc libraries. The haddock documentation
12404 includes a short example program.
12406 * Text.Pandoc.ASCIIMathML is no longer an exported module.
12408 * Added Text.Pandoc.Blocks module to help in printing markdown
12409 and RST tables. This module provides functions for working with
12410 fixed-width blocks of text--e.g., placing them side by side, as
12411 in a table row.
12413 * Refactored to avoid reliance on Haskell's Text.Regex library, which
12414 (a) is slow, and (b) does not properly handle unicode. This fixed
12415 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
12417 + Replaced 'gsub' with a general list function 'substitute'
12418 that does not rely on Text.Regex.
12419 + Rewrote extractTagType in HTML reader so that it doesn't use
12420 regexs.
12421 + In Markdown reader, replaced email regex test with a custom email
12422 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
12423 with a custom function isSelfClosingTag.
12424 + Modified Docbook writer so that it doesn't rely on Text.Regex for
12425 detecting 'mailto' links.
12426 + Removed escapePreservingRegex and reamped entity-handling
12427 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
12428 avoid reliance on Text.Regex (see below on character reference
12429 handling changes).
12431 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
12433 * Changed handling of XML entities. Entities are now parsed (and unicode
12434 characters returned) in the Markdown and HTML readers, rather than being
12435 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
12436 instead of entities for characters above 128. This makes the HTML and
12437 DocBook output much more readable and more easily editable.
12439 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
12440 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
12441 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
12442 Moved both functions to Text.Pandoc.Writers.Docbook.
12443 + Added characterReference parser to Text.Pandoc.CharacterReferences.
12444 This parses a string and return a unicode character.
12445 + Rewrote decodeCharacterReferences to use the new parser instead of
12446 Text.Regex.
12447 + Added new charRef parser for Markdown and HTML, which replaces the
12448 old 'entity' parser. Added '&' as a special character in Markdown reader.
12449 + Modified HTML and Markdown readers to call decodeEntities on all raw
12450 strings (e.g. authors, dates, link titles), to ensure that no
12451 unprocessed entities are included in the native representation of
12452 the document. (In the HTML reader, most of this work is done by a
12453 change in extractAttributeName.)
12454 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
12455 since a unicode non-breaking space is impossible to distinguish visually
12456 from a regular space. (Resolves Issue #3.)
12457 + Removed encodeEntitiesNumerical.
12458 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
12459 slight performance boost over the old association list.
12460 + Removed unneeded decodeEntities from 'str' parser in HTML and
12461 Markdown readers.
12463 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
12464 fromUTF8, for clarity.
12466 * Replaced old haskell98 module names replaced by hierarchical module
12467 names, e.g. List by Data.List. Removed haskell98 from dependencies
12468 in pandoc.cabal, and added mtl (needed for state monad). Substituted
12469 xhtml for html.
12471 * Refactored and cleaned up character escaping in writers, using
12472 backslashEscapes and escapeStringUsing functions.
12474 * Instead of adding "\n\n" to the end of an input string in Main.hs,
12475 this is now done in the readers. This makes the libraries behave
12476 the way you'd expect from the pandoc program. Resolves Issue #10.
12478 * URLs and email addresses in autolinks are now typeset as Code.
12480 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
12481 doesn't display the whole output unless there's a line ending.
12483 * Major code cleanup in all modules, for greater consistency, concision,
12484 and readability.
12486 * HTML reader:
12488 + Fixed several bugs (extractTagType, attribute parsing).
12489 + Remove Null blocks in lists of blocks when possible.
12490 + Allow HTML comments as raw HTML inline.
12492 * Markdown reader:
12494 + Ordered list items may no longer begin with uppercase letters, or
12495 letters greater than 'n'. (This prevents first initials and page
12496 reference, e.g. 'p. 400', from being parsed as beginning lists.)
12497 Also, numbers beginning list items may no longer end with ')',
12498 which is now allowed only after letters. Note: These changes
12499 may cause documents to be parsed differently. Users should take
12500 care in upgrading.
12501 + Changed autoLink parsing to conform better to Markdown.pl's
12502 behavior. `<google.com>` is not treated as a link, but
12503 `<http://google.com>`, `<ftp://google.com>`, and
12504 `<mailto:google@google.com>` are.
12505 + Cleaned up handling of embedded quotes in link titles. Now these are
12506 stored as a '"' character, not as '&quot;'.
12507 + Use lookAhead parser for the 'first pass' (looking for reference keys),
12508 instead of parsing normally, then using setInput to reset input. This
12509 yields a slight performance boost.
12510 + Fixed several bugs in smart quote recognition.
12511 + Fixed bug in indentSpaces (which didn't properly handle
12512 cases with mixed spaces and tabs).
12513 + Consolidated 'text', 'special', and 'inline' into 'inline'.
12514 + Fixed bug which allowed URL and title to be separated by multiple blank
12515 lines in links and reference keys. They can be on separate lines but
12516 can't have blank lines between them.
12517 + Correctly handle bracketed text inside inline footnotes and links,using
12518 new function inlinesInBalanced. Resolves Issue #14.
12519 + Fixed bug in footnotes: links in footnotes were not being
12520 processed. Solution: three-stage parse. First, get all the
12521 reference keys and add information to state. Next, get all the
12522 notes and add information to state. (Reference keys may be needed
12523 at this stage.) Finally, parse everything else.
12524 + Replaced named constants like 'emphStart' with literals.
12525 + Removed an extra occurance of escapedChar in definition of inline.
12527 * RST reader:
12529 + Allow the URI in a RST hyperlink target to start on the line
12530 after the reference key.
12531 + Added 'try' in front of 'string', where needed, or used a different
12532 parser. This fixes a bug where ````` would not be correctly parsed as
12533 a verbatim `.
12534 + Fixed slow performance in parsing inline literals in RST reader. The
12535 problem was that ``#`` was seen by 'inline' as a potential link or image.
12536 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
12537 Resolves Issue #8.
12538 + Use lookAhead instead of getInput/setInput in RST reader. Removed
12539 unneeded getState call, since lookAhead automatically saves and
12540 restores the parser state.
12541 + Allow hyperlink target URIs to be split over multiple lines, and
12542 to start on the line after the reference. Resolves Issue #7.
12543 + Fixed handling of autolinks.
12545 * LaTeX reader:
12547 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
12548 for clarity.
12549 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
12550 caret is \^{}, not \^ as before.
12551 + Added parsing for \url.
12552 + Parse \texttt{} as code, provided there's nothing fancy inside.
12554 * HTML writer:
12556 + Modified HTML writer to use the Text.XHtml library. This results
12557 in cleaner, faster code, and it makes it easier to use Pandoc in
12558 other projects, like wikis, which use Text.XHtml. Two functions are
12559 now provided, writeHtml and writeHtmlString: the former outputs an
12560 Html structure, the latter a rendered string. The S5 writer is also
12561 changed, in parallel ways (writeS5, writeS5String).
12562 + The Html header is now written programmatically, so it has been
12563 removed from the 'headers' directory. The S5 header is still
12564 needed, but the doctype and some of the meta declarations have
12565 been removed, since they are written programatically. This change
12566 introduces a new dependency on the xhtml package.
12567 + Fixed two bugs in email obfuscation involving improper escaping
12568 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
12569 Issue #9.
12570 + Fixed another bug in email obfuscation: If the text to be obfuscated
12571 contains an entity, this needs to be decoded before obfuscation.
12572 Thanks to thsutton for the patch. Resolves Issue #15.
12573 + Changed the way the backlink is displayed in HTML footnotes.
12574 Instead of appearing on a line by itself, it now generally
12575 appears on the last line of the note. (Exception: when the
12576 note does not end with a Plain or Para block.) This saves space
12577 and looks better.
12578 + Added automatic unique identifiers to headers:
12579 - The identifier is derived from the header via a scheme
12580 documented in README.
12581 - WriterState now includes a list of header identifiers and a table
12582 of contents in addition to notes.
12583 - The function uniqueIdentifiers creates a list of unique identifiers
12584 from a list of inline lists (e.g. headers).
12585 - This list is part of WriterState and gets consumed by blockToHtml
12586 each time a header is encountered.
12587 + Include CSS for .strikethrough class in header only if strikethrough
12588 text appears in the document.
12589 + If the 'strict' option is specified, elements that do not appear in
12590 standard markdown (like definition lists) are passed through as
12591 raw HTML.
12592 + Simplified treatment of autolinks, using pattern matching instead of
12593 conditionals.
12595 * Markdown writer:
12597 + Links in markdown output are now printed as inline links by default,
12598 rather than reference links. A --reference-links option has been added
12599 that forces links to be printed as reference links. Resolves Issue #4.
12600 + Use autolinks when possible. Instead of `[site.com](site.com)`,
12601 use `<site.com>`.
12603 * LaTeX writer:
12605 + Rewrote to use the State monad. The preamble now includes only those
12606 packages that are actually required, given the document's content.
12607 Thus, for example, if strikeout is not used, ulem is not required.
12608 Modified LaTeXHeader accordingly.
12609 + Modified LaTeX writer to insert '\,' between consecutive quotes.
12610 + Removed unused function tableRowColumnWidths.
12611 + Simplified code for escaping special characters.
12612 + Leave extra blank line after \maketitle.
12613 + Include empty '\author{}' when no author specified to avoid LaTeX
12614 errors.
12615 + Include fancyvrb code in header only if needed -- that is, only
12616 if there is actually code in a footnote.
12617 + Use \url{} for autolinks.
12618 + Include [mathletters] option in ucs package, so that basic unicode
12619 Greek letters will work correctly.
12621 * RST writer: Force blank line before lists, so that sublists will
12622 be handled correctly.
12624 * Docbook writer: Fixed a bug: email links with text, like
12625 [foo](me@bar.baz), were being incorrectly treated as autolinks.
12627 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
12628 Text.Pandoc.Shared.
12630 * Text.Pandoc.Shared:
12632 + Added defaultWriterOptions.
12633 + Added writerTableOfContents to WriterOptions.
12634 + Added writerIgnoreNotes option to WriterOptions. This is needed
12635 for processing header blocks for a table of contents, since notes on
12636 headers should not appear in the TOC.
12637 + Added prettyprinting for native Table format.
12638 + Removed some unneeded imports.
12639 + Moved escape and nullBlock parsers from
12640 Text.ParserCombinators.Pandoc, since the latter is for
12641 general-purpose parsers that don't depend on Text.Pandoc.Definition.
12642 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
12643 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
12644 writer, because HTML writer now uses these in constructing a table
12645 of contents.
12646 + Added clauses for new inline elements (Strikeout, Superscript,
12647 Subscript) to refsMatch.
12648 + Removed backslashEscape; added new functions escapeStringUsing and
12649 backslashEscapes.
12650 + Moved failIfStrict from markdown reader, since it is now used also
12651 by the HTML reader.
12652 + Added a 'try' to the definition of indentSpaces.
12653 + In definition of 'reference', added check to make sure it's not a note
12654 reference.
12655 + Added functions: camelCaseToHyphenated, toRomanNumeral,
12656 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
12657 charsInBalanced', withHorizDisplacement, romanNumeral
12658 + Fixed a bug in the anyLine parser. Previously it would parse an empty
12659 string "", but it should fail on an empty string, or we get an error
12660 when it is used inside "many" combinators.
12661 + Removed followedBy' parser, replacing it with the lookAhead parser from
12662 Parsec.
12663 + Added some needed 'try's before multicharacter parsers, especially in
12664 'option' contexts.
12665 + Removed the 'try' from the 'end' parser in 'enclosed', so that
12666 'enclosed' behaves like 'option', 'manyTill', etc.
12667 + Added lineClump parser, which parses a raw line block up to and
12668 including any following blank lines.
12669 + Renamed parseFromStr to parseFromString.
12670 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
12671 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
12672 in calling code.
12673 + Removed unneeded 'try' in blanklines.
12674 + Removed endsWith function and rewrote calling functions to use
12675 isSuffixOf instead.
12676 + Added >>~ combinator.
12677 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
12678 Space.
12680 * Refactored runtests.pl; added separate tests for tables.
12682 * Shell scripts:
12684 + Added -asxhtml flag to tidy in html2markdown. This will
12685 perhaps help the parser, which expects closing tags.
12686 + Modified markdown2pdf to run pdflatex a second time if --toc or
12687 --table-of-contents was specified; otherwise the table of
12688 contents won't appear.
12689 + Modified markdown2pdf to print a helpful message if the 'ulem'
12690 LaTeX package is required and not found.
12692 * Changes to build process:
12694 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
12695 is now required.
12696 + Removed cabalize and Pandoc.cabal.in. The repository now contains
12697 pandoc.cabal itself.
12698 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
12699 likes the cabal file to have the same name as the tarball.
12700 + Expanded and revised the package description in pandoc.cabal.
12701 Revised the package synopsis.
12702 + The tarball built by 'make tarball' now contains files built from
12703 templates (including man pages and shell scripts), so pandoc can
12704 be built directly using Cabal tools, without preprocessing.
12705 + Executable binaries are now stripped before installing.
12706 + Man pages are now generated from markdown sources, using pandoc's
12707 man page writer.
12708 + Use HTML version of README (instead of RTF) in Mac OS X installer.
12709 + Instead of testing for the existence of a pandoc symlink in build-exec,
12710 use ln -f.
12712 * Documentation:
12714 + Updated README and man pages with information on new features.
12715 + Updated INSTALL instructions with some useful clarifications and
12716 links.
12717 + Updated web content.
12719 * Added FreeBSD port.
12721 [ Recai Oktaş ]
12723 * debian/control:
12725 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
12726 libghc6-xhtml-dev. Removed libghc6-html-dev.
12727 + Suggest texlive-latex-recommended | tetex-extra instead of
12728 tetex-bin. This brings in fancyvrb and unicode support.
12730 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
12732pandoc (0.3) unstable; urgency=low
12734 [ John MacFarlane ]
12736 * Changes in pandoc options:
12738 + Allow options to follow or precede arguments.
12739 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
12740 + Added '--strict' option.
12741 + Added '-o/--output' option.
12742 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
12743 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
12744 error conditions. This is helpful for writing wrappers.
12745 + Added copyright message to '-v' output, modeled after FSF messages.
12746 + Reformatted usage message so that it doesn't wrap illegibly.
12747 + Removed extra blanks after '-h' and '-D' output.
12749 * Added docbook writer.
12751 * Added implicit setting of default input and output format based
12752 on input and output filename extensions. These defaults are
12753 overridden if explicit input and output formats are specified using
12754 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
12755 and README.
12757 * Allow ordered list items to begin with (single) letters, as well
12758 as numbers. The list item marker may now be terminated either by
12759 '.' or by ')'. This extension to standard markdown is documented
12760 in README.
12762 * Revised footnote syntax. (See README for full details.) The
12763 '[^1]' format now standard in markdown extensions is supported,
12764 as are inline footnotes with this syntax: `^[My note.]`.
12765 The earlier footnote syntax `^(1)` is no longer supported.
12767 * Improved HTML representation of footnotes. All footnotes
12768 are now auto-numbered and appear in an ordered list at the
12769 end of the HTML document. Since the default appearance is now
12770 acceptable, the old footnote styles have been removed from the
12771 HTML header.
12773 * Bug fixes:
12775 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
12776 These readers ran 'runParser' on processed chunks of text to handle
12777 embedded block lists in lists and quotation blocks. But then
12778 any changes made to the parser state in these chunks was lost,
12779 as the state is local to the parser. So, for example, footnotes
12780 didn't work in quotes or list items. The fix: instead of calling
12781 runParser on some raw text, use setInput to make it the input, then
12782 parse it, then use setInput to restore the input to what it was
12783 before. This is shorter and more elegant, and it fixes the problem.
12784 + Fixed bug in notFollowedBy' combinator (adding 'try' before
12785 'parser'). Adjusted code that uses this combinator accordingly.
12786 + Fixed bug in RTF writer that caused improper indentation on
12787 footnotes occurring in indented blocks like lists.
12788 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
12789 and date are parsed correctly. Everything else in the preamble
12790 is skipped.
12791 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
12792 line to count as escaped whitespace.
12793 + Modified LaTeX reader to produce inline links rather than reference
12794 links. Otherwise, links in footnotes aren't handled properly.
12795 + Fixed handling of titles in links in Markdown reader, so that
12796 embedded quotation marks are now handled properly.
12797 + Fixed Markdown reader's handling of embedded brackets in links.
12798 + Fixed Markdown reader so that it only parses bracketed material
12799 as a reference link if there is actually a corresponding key.
12800 + Revised inline code parsing in Markdown reader to conform to
12801 markdown standard. Now any number of `s can begin inline code,
12802 which will end with the same number of `s. For example, to
12803 have two backticks as code, write ``` `` ```. Modified Markdown
12804 writer accordingly.
12805 + Fixed bug in text-wrapping routine in Markdown and RST writers.
12806 Now LineBreaks no longer cause wrapping problems.
12807 + Supported hexadecimal numerical entity references as well as
12808 decimal ones.
12809 + Fixed bug in Markdown reader's handling of underscores and other
12810 inline formatting markers inside reference labels: for example,
12811 in '[A_B]: /url/a_b', the material between underscores was being
12812 parsed as emphasized inlines.
12813 + Changed Markdown reader's handling of backslash escapes so that
12814 only non-alphanumeric characters can be escaped. Strict mode
12815 follows Markdown.pl in only allowing a select group of punctuation
12816 characters to be escaped.
12817 + Modified HTML reader to skip a newline following a `<br>` tag.
12818 Otherwise the newline will be treated as a space at the beginning
12819 of the next line.
12821 * Made handling of code blocks more consistent. Previously, some
12822 readers allowed trailing newlines, while others stripped them.
12823 Now, all readers strip trailing newlines in code blocks. Writers
12824 insert a newline at the end of code blocks as needed.
12826 * Modified readers to make spacing at the end of output more consistent.
12828 * Minor improvements to LaTeX reader:
12830 + '\thanks' now treated like a footnote.
12831 + Simplified parsing of LaTeX command arguments and options.
12832 commandArgs now returns a list of arguments OR options (in
12833 whatever order they appear). The brackets are included, and
12834 a new stripFirstAndLast function is provided to strip them off
12835 when needed. This fixes a problem in dealing with \newcommand
12836 and \newenvironment.
12838 * Revised RTF writer:
12840 + Default font is now Helvetica.
12841 + An '\f0' is added to each '\pard', so that font resizing works
12842 correctly.
12844 * Moved handling of "smart typography" from the writers to the Markdown
12845 and LaTeX readers. This allows great simplification of the writers
12846 and more accurate smart quotes, dashes, and ellipses. DocBook can
12847 now use `<quote>`. The '--smart' option now toggles an option in
12848 the parser state rather than a writer option. Several new kinds
12849 of inline elements have been added: Quoted, Ellipses, Apostrophe,
12850 EmDash, EnDash.
12852 * Changes in HTML writer:
12854 + Include title block in header even when title is null.
12855 + Made javascript obfuscation of emails even more obfuscatory,
12856 by combining it with entity obfuscation.
12858 * Changed default ASCIIMathML text color to black.
12860 * Test suite:
12862 + Added --strip-trailing-cr option to diff in runtests.pl, for
12863 compatibility with Windows.
12864 + Added regression tests with footnotes in quote blocks and lists.
12866 * Makefile changes:
12868 + osx-pkg target creates a Mac OS X package (directory). New osx
12869 directory contains files needed for construction of the package.
12870 + osx-dmg target creates a compressed disk image containing the package.
12871 + win-pkg target creates Windows binary package.
12872 + tarball target creates distribution source tarball.
12873 + website target generates pandoc's website automatically, including
12874 demos. New 'web' directory containts files needed for construction
12875 of the website (which will be created as the 'pandoc' subdirectory
12876 of 'web').
12877 + Makefile checks to see if we're running Windows/Cygwin; if so,
12878 a '.exe' extension is added to each executable in EXECS.
12880 * Removed all wrappers except markdown2pdf and html2markdown.
12882 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
12883 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
12884 option and disables other options.
12886 * Added code to html2markdown that tries to determine the character
12887 encoding of an HTML file, by parsing the "Content-type" meta tag.
12889 + If the encoding can't be determined, then if the content is local,
12890 the local encoding is used; if it comes from a URL, UTF-8 is used
12891 by default.
12892 + If input is from STDIN, don't try to determine character encoding.
12893 + Encoding can be specified explicitly using '-e' option.
12895 * Improved warning messages in wrappers:
12897 + Print warning if iconv not available
12898 + More user-friendly error messages in markdown2pdf, when
12899 pdflatex fails.
12901 * Code cleanup:
12903 + Renamed 'Text/Pandoc/HtmlEntities' module to
12904 'Text/Pandoc/Entities'. Also changed function names so as
12905 not to be HTML-specific.
12906 + Refactored SGML string escaping functions from HTML and Docbook
12907 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
12908 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
12909 used anywhere.
12910 + Removed splitBySpace and replaced it with a general, polymorphic
12911 splitBy function.
12912 + Refactored LaTeX reader for clarity (added isArg function).
12913 + Converted some CR's to LF's in src/ui/default/print.css.
12914 + Added license text to top of source files.
12915 + Added module data for haddock to source files.
12916 + Reformatted code for consistency.
12918 * Rewrote documentation and man pages. Split README into INSTALL
12919 and README.
12921 * Split LICENSE into COPYING and COPYRIGHT.
12923 * Removed TODO, since we now maintain ToDo on the wiki.
12925 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
12926 duplication.
12928 [ Recai Oktaş ]
12930 * Revamped build process to conform to debian standards and created
12931 a proper debian package. Closes: #391666.
12933 * Modified build process to support GHC 6.6.
12935 + The package can still be compiled using GHC 6.4.2, though because
12936 of dependencies the "make deb" target works only with GHC 6.6+.
12937 + The script 'cabalize' is used to create an appropriate
12938 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
12939 Cabal versions.
12941 * Refactored template processing (fillTemplates.pl).
12943 * Modified wrapper scripts to make them more robust and portable.
12944 To avoid code duplication and ensure consistency, wrappers are
12945 generated via a templating system from templates in src/wrappers.
12947 + Wrappers now accept multiple filenames, when appropriate.
12948 + Spaces and tabs allowed in filenames.
12949 + getopts shell builtin is used for portable option parsing.
12950 + Improved html2markdown's web grabber code, making it more robust,
12951 configurable and verbose. Added '-e', '-g' options.
12953 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
12955pandoc (0.2) unstable; urgency=low
12957 * Fixed unicode/utf-8 translation
12959 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
12961pandoc (0.1) unstable; urgency=low
12963 * Initial creation of debian package
12965 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400