git.iko.soy/typeable/pandoc
on newlatex help sign in
typeable/pandoc/changelog
10953 lines 465 kB history raw
1pandoc (1.19.2)
3 * Use skylighting library instead of highlighting-kate for syntax
4 highlighting. Skylighting is faster and more accurate (#3363).
5 Later we'll be able to add features like warning messages, dynamic
6 loading of xml syntax definitions, and dynamic loading of themes.
8 * Added a new highlight style, `breezeDark`.
10 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
11 This allows more languages to be used when using the `--listings`
12 option.
14 * OpenDocument writer:
16 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
17 + Don't profilerate text styles unnecessarily (#3371).
18 This change makes the writer create only as many temporary
19 text styles as are absolutely necessary. It also consolidates
20 adjacent nodes with the same style.
22 * Org reader (Albert Krewinkel):
24 + Allow short hand for single-line raw blocks (Albert Krewinkel,
25 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
26 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
27 + Accept org-ref citations followed by commas (Albert Krewinkel).
28 Bugfix for an issue which, whenever the citation was immediately
29 followed by a comma, prevented correct parsing of org-ref citations.
30 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
31 `/*strong and emphasized*/`) was interpreted incorrectly in that the
32 inner markup was not recognized.
33 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
35 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
36 In the past, the docx reader wrote an empty header as an empty list. It
37 should have the same width as a row (and be filled with empty cells).
39 * MediaWiki reader:
41 + Improved handling of display math (#3362). Sometimes display math is
42 indented with more than one colon. Previously we handled these cases
43 badly, generating definition lists and missing the math.
44 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
45 behavior when the smart option is parsed to match other readers'
46 behavior.
48 * Markdown reader:
50 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
51 (#3341). Previously this did not properly enable escaped line breaks.
52 + Disallow space between inline code and attributes (#3326, #3323,
53 Mauro Bieg).
55 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
57 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
59 * LaTeX writer: allow tables with empty cells to count as "plain."
60 This addresses a problem of too-wide tables when empty cells
61 are used. Thanks to Joost Kremers for reporting the issue.
63 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
64 Unprefixed numbers where used by older org-mode versions, but are no
65 longer supported.
67 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
68 Mauro Bieg).
70 * Markdown writer: Fix display math with `--webtex` (#3298).
72 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
73 bumper314).
75 * Templates:
77 + default.latex: Moved geometry after hyperref (Václav Haisman).
78 Otherwise PDF sizes can be wrong in some circumstances.
79 + Copied a few changes from default.latex to default.beamer
80 (Wandmalfarbe).
81 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
82 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
83 that contain verbatim in notes (#3361). (Note: the beamer template
84 was updated to match the LaTeX template, but at this point verbatim
85 in notes seems not to work in beamer.)
86 + default.latex: Allow passing `microtypeoptions` to microtype
87 (Václav Haisman).
88 + default.latex: Add hyphen option to url package.
89 + default.docbook5: Fix namespace declarations (Mauro Bieg).
91 * Moved `make_osx_package.sh` to `osx/` directory.
93 * Travis continuous integration:
95 + Fix false positives with dist build.
96 + Speed improvements (Kolen Cheung, #3304, #3357).
98 * MANUAL.txt:
100 + Clarify that blank space is needed around footnotes (#3352).
101 + Fixed typo (#3351, Alexey Rogechev).
102 + Note that `--wrap=auto` does not work in HTML output.
103 + Default `--columns` width is 72, not 80.
104 + Fixed broken links (#3316, Kolen Cheung).
105 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
107 * INSTALL.md:
109 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
110 + Added instructions for extracting binary from OSX, Windows packages.
112 * CONTRIBUTING.md: Describe labels currently used in issue tracker
113 (Albert Krewinkel). The labels have changed over time, the list of
114 labels is updated to reflect the current set of labels used in the
115 issue tracker.
117 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
119 * Bumped version bounds for dependencies.
122pandoc (1.19.1)
124 * Set `PANDOC_VERSION` environment variable for filters (#2640).
125 This allows filters to check the pandoc version that produced
126 the JSON they are receiving.
128 * Docx reader: Ensure one-row tables don't have header (#3285,
129 Jesse Rosenthal). Tables in MS Word are set by default to have
130 special first-row formatting, which pandoc uses to determine whether
131 or not they have a header. This means that one-row tables will, by
132 default, have only a header -- which we imagine is not what people
133 want. This change ensures that a one-row table is not understood to
134 be a header only. Note that this means that it is impossible to
135 produce a header-only table from docx, even though it is legal
136 pandoc. But we believe that in nearly all cases, it will be an
137 accidental (and unwelcome) result
139 * HTML reader:
141 + Fixed some bad regressions in HTML table parser (#3280).
142 This regression leads to the introduction of empty rows
143 in some circumstances.
144 + Understand `style=width:` as well as `width` in `col` (#3286).
146 * RST reader:
148 + Print warnings when keys, substitition, notes not found.
149 Previously the parsers failed and we got raw text. Now we get a
150 link with an empty URL, or empty inlines in the case of a note or
151 substitution.
153 + Fix hyperlink aliases (#3283).
155 * Man writer: Ensure that periods are escaped at beginning of line
156 (#3270).
158 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
159 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
160 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
161 are ensured to be written using stared commands (like `\subsection*{}`).
163 * LaTeX template: use comma not semicolon to separate keywords for
164 `pdfkeywords`. Thanks to Wandmalfarbe.
166 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
167 would sometimes wrap lines too early due to this bug.
169 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
170 possible to insert escape codes for content that needs escaping at the
171 beginning of a line.
173 * Removed old MathMLInHTML.js from 2004, which should no longer
174 be needed for MathML with modern browsers.
176 * Fixed tests with dynamic linking (#2709).
178 * Makefile: Use stack instead of cabal for targets. This is just
179 a convenience for developers.
181 * Fixed bash completion of filenames with space (#2749).
183 * MANUAL: improved documentation on how to create a custom `reference.docx`.
185 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
187pandoc (1.19)
189 * Changed resolution of filter paths.
191 + We now first treat the argument of `--filter` as a full (absolute
192 or relative) path, looking for a program there. If it's found, we
193 run it.
194 + If not, and if it is a simple program name or a relative path, we
195 try resolving it relative to `$DATADIR/filters`.
196 + If this fails, then we treat it as a program name and look in the
197 user's PATH.
198 + Removed a hardcoded '/' that may have caused problems with
199 Windows paths.
201 Previously if you did `--filter foo` and you had `foo` in your path and
202 also an executable `foo` in your working directory, the one in the path
203 would be used. Now the one in the working directory is used.
205 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
206 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
207 `foo/bar.hs` relative to the working directory.
209 * Allow `file://` URIs as arguments (#3196). Also improved default reader
210 format detection. Previously with a URI ending in .md or .markdown,
211 pandoc would assume HTML input. Now it treats these as markdown.
213 * Allow to overwrite top-level division type heuristics (#3258,
214 Albert Krewinkel). Pandoc uses heuristics to determine the most
215 reasonable top-level division type when emitting LaTeX or
216 Docbook markup. It is now possible to overwrite this implicitly set
217 top-level division via the `top-level-division` command line parameter.
219 * Text.Pandoc.Options \[API changes\]:
221 + Removed `writerStandalone` field in `WriterOptions`, made
222 `writerTemplate` a `Maybe` value. Previously setting
223 `writerStandalone = True` did nothing unless a template was provided
224 in writerTemplate. Now a fragment will be generated if
225 `writerTemplate` is `Nothing`; otherwise, the specified template
226 will be used and standalone output generated.
227 + `Division` has been renamed `TopLevelDivision` (#3197). The
228 `Section`, `Chapter`, and `Part` constructors were renamed to
229 `TopLevelSection`, `TopLevelChapter`, and
230 `TopLevelPart`, respectively. An additional `TopLevelDefault`
231 constructor was added, which is now also the new default value of
232 the `writerTopLevelDivision` field in `WriterOptions`.
234 * Improved error if they give wrong arg to `--top-level-division`.
236 * Use new module from texmath to lookup MS font codepoints in Docx reader.
237 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
238 lives in texmath (0.9).
240 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
241 when the qnames lacked the docbook namespace URI.
243 * HTML reader:
245 + Improved table parsing (#3027). We now check explicitly for non-1
246 rowspan or colspan attributes, and fail when we encounter them.
247 Previously we checked that each row had the same number of cells,
248 but that could be true even with rowspans/colspans. And there are
249 cases where it isn't true in tables that we can handle fine -- e.g.
250 when a tr element is empty. So now we just pad rows with empty cells
251 when needed.
252 + Treat `<math>` as MathML by default unless something else is
253 explicitly specified in xmlns. Provided it parses as MathML,
254 of course. Also fixed default which should be to inline math if no
255 display attribute is used.
256 + Only treat "a" element as link if it has href (#3226). Otherwise
257 treat as span.
259 * Docx reader (Jesse Rosenthal):
261 + Add a placeholder value for CHART. We wrap `[CHART]` in a
262 `<span class="chart">`. Note that it maps to inlines because, in
263 docx, anything in a drawing tag can be part of a larger paragraph.
264 + Be more specific in parsing images We not only want `w:drawing`,
265 because that could also include charts. Now we specify
266 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
267 a first step toward allowing other sorts of drawing data as well.
268 + Abstract out function to avoid code repetition.
269 + Update tests for img title and alt (#3204).
270 + Handle Alt text and titles in images. We use the "description" field
271 as alt text and the "title" field as title. These can be accessed
272 through the "Format Picture" dialog in Word.
273 + Docx reader utils: handle empty namespace in `elemName`. Previously,
274 if given an empty namespace `(elemName ns "" "foo")` `elemName`
275 would output a QName with a `Just ""` namespace. This is never what
276 we want. Now we output a `Nothing`. If someone *does* want a
277 `Just ""` in the namespace, they can enter the QName
278 value explicitly.
280 * ODT reader/writer:
282 + Inline code when text has a special style (Hubert Plociniczak). When
283 a piece of text has a text `Source_Text` then we assume that this is
284 a piece of the document that represents a code that needs to
285 be inlined. Adapted the writer to also reflect that change.
286 Previously it was just writing a 'preformatted' text using a
287 non-distinguishable font style. Code blocks are still not recognized
288 by the ODT reader. That's a separate issue.
289 + Infer table's caption from the paragraph (#3224,
290 Hubert Plociniczak). ODT's reader always put empty captions for the
291 parsed tables. This commit
293 1. checks paragraphs that follow the table definition
294 2. treats specially a paragraph with a style named 'Table'
295 3. does some postprocessing of the paragraphs that combines tables
296 followed immediately by captions
298 The ODT writer used the `TableCaption` style for the caption
299 paragraph. This commit follows the OpenOffice approach which allows
300 for appending captions to table but uses a built-in style named
301 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
302 should change the style's name from `TableCaption` to `Table`.
304 * ODT reader: Infer tables' header props from rows (#3199,
305 Hubert Plociniczak). ODT reader simply provided an empty header list
306 which meant that the contents of the whole table, even if not empty, was
307 simply ignored. While we still do not infer headers we at least have to
308 provide default properties of columns.
310 * Markdown reader:
312 + Allow reference link labels starting with `@...` if `citations`
313 extension disabled (#3209). Example: in
315 \[link text\]\[@a\]
317 `link text` isn't hyperlinked because `[@a]` is parsed as
318 a citation. Previously this happened whether or not the `citations`
319 extension was enabled. Now it happens only if the `citations`
320 extension is enabled.
321 + Allow alignments to be specified in Markdown grid tables. For
322 example,
324 +-------+---------------+--------------------+
325 | Right | Left | Centered |
326 +=========:+:=================+:=============:+
327 | Bananas | $1.34 | built-in wrapper |
328 +-------+---------------+--------------------+
330 + Allow Small Caps elements to be created using bracketed spans (as
331 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
333 * LaTeX reader:
335 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
336 Fixed an error which came up, for example, with `\vspace` inside
337 a caption. (Captions expect inlines.)
338 + Improved table handling. We can now parse all of the tables emitted
339 by pandoc in our tests. The only thing we don't get yet are
340 alignments and column widths in more complex tables. See #2669.
341 + Limited support for minipage.
342 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
343 + Handle BVerbatim from fancyvrb (#3203).
344 + Handle hungarumlaut (#3201).
345 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
346 (#3184). This allows use of things like `\only<2,3>{my content}` in
347 Markdown that is going to be converted to beamer.
349 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
350 overly long code will appear on every slide.
352 * Org reader (Albert Krewinkel):
354 + Respect column width settings (#3246). Table column properties can
355 optionally specify a column's width with which it is displayed in
356 the buffer. Some exporters, notably the ODT exporter in org-mode
357 v9.0, use these values to calculate relative column widths. The org
358 reader now implements the same behavior. Note that the org-mode
359 LaTeX and HTML exporters in Emacs don't support this feature yet,
360 which should be kept in mind by users who use the column
361 widths parameters.
362 + Allow HTML attribs on non-figure images (#3222). Images which are
363 the only element in a paragraph can still be given HTML attributes,
364 even if the image does not have a caption and is hence not a figure.
365 The following will add set the `width` attribute of the image to
366 `50%`:
368 +ATTR\_HTML: :width 50%
369 =======================
371 \[\[file:image.jpg\]\]
373 + Support `ATTR_HTML` for special blocks (#3182). Special
374 blocks (i.e. blocks with unrecognized names) can be prefixed with an
375 `ATTR_HTML` block attribute. The attributes defined in that
376 meta-directive are added to the `Div` which is used to represent the
377 special block.
378 + Support the `todo` export option. The `todo` export option allows to
379 toggle the inclusion of TODO keywords in the output. Setting this to
380 `nil` causes TODO keywords to be dropped from headlines. The default
381 is to include the keywords.
382 + Add support for todo-markers. Headlines can have optional
383 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
384 or `#+TYP_TODO` meta directive. Multiple such directives can be
385 given, each adding a new set of recognized todo-markers. If no
386 custom todo-markers are defined, the default `TODO` and `DONE`
387 markers are used. Todo-markers are conceptually separate from
388 headline text and are hence excluded when autogenerating
389 headline IDs. The markers are rendered as spans and labelled with
390 two classes: One class is the markers name, the other signals the
391 todo-state of the marker (either `todo` or `done`).
393 * LaTeX writer:
395 + Use `\autocites*` when "suppress-author" citation used.
396 + Ensure that simple tables have simple cells (#2666). If cells
397 contain more than a single Plain or Para, then we need to set
398 nonzero widths and put contents into minipages.
399 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
401 * Markdown writer:
403 + Fix calculation of column widths for aligned multiline tables
404 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
405 usage for tables when `--columns` is set in such a way that cells
406 must be very tiny. Now cells are guaranteed to be big enough so that
407 single words don't need to line break, even if this pushes the line
408 length above the column width.
409 + Use bracketed form for native spans when `bracketed_spans`
410 enabled (#3229).
411 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
412 sublist got rendered with a blank line after, while a tight ordered
413 sublist did not. Now we don't get the blank line in either case.
414 + Fix escaping of spaces in super/subscript (#3225). Previously two
415 backslashes were inserted, which gave a literal backslash.
416 + Adjust widths in Markdown grid tables so that they match
417 on round-trip.
419 * Docx writer:
421 + Give full detail when there are errors converting tex math.
422 + Handle title text in images (Jesse Rosenthal). We already handled
423 alt text. This just puts the image "title" into the docx
424 "title" attr.
425 + Fixed XML markup for empty cells (#3238). Previously the Compact
426 style wasn't being applied properly to empty cells.
428 * HTML writer:
430 + Updated `renderHtml` import from blaze-html.
432 * Text.Pandoc.Pretty:
434 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
435 caused spurious blank lines in grid tables when we had things like
436 `blankline $$ blankline`.
437 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
438 + Added error message for illegal call to `block` (Björn Peemöller).
440 * Text.Pandoc.Shared:
442 + Put `warn` in MonadIO.
443 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
444 URL starts with `//` and there is no "base URL" (as there would be
445 if a URL were used on the command line), then default to http:.
447 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
449 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
450 fixes a crash with `pandoc --version` on unusual systems with no real
451 user (e.g. SQL Server 2016).
453 * Added weigh-pandoc for memory usage diagnostics (#3169).
455 * Use correct mime types for woff and woff2 (#3228).
457 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
459 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
460 1.18 section where it belongs.
462 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
463 Kolen Cheung).
465 * Further revisions to manual for `--version` changes (#3244).
468pandoc (1.18)
470 * Added `--list-input-formats`, `--list-output-formats`,
471 `--list-extensions`, `--list-highlight-languages`, and
472 `--list-highlight-styles` (#3173). Removed list of highlighting
473 languages from `--version` output. Removed list of input and output
474 formats from default `--help` output.
476 * Added `--reference-location=block|section|document` option
477 (Jesse Rosenthal). This determines whether Markdown link references
478 and footnotes are placed at the end of the document, the end of the
479 section, or the end of the top-level block.
481 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
482 This determines what a level-1 header corresponds to in LaTeX,
483 ConTeXt, DocBook, and TEI output. The default is `section`.
484 The `--chapters` option has been deprecated in favor of
485 `--top-level-division=chapter`.
487 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
488 is now used in parsing RST and Markdown line blocks, DocBook
489 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
490 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
491 are handled specially in the following ouput formats: AsciiDoc
492 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
493 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
494 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
495 other output formats, a paragraph with hard linebreaks is emitted.
497 * Allow binary formats to be written to stdout (but not to tty) (#2677).
498 Only works on posix, since we use the unix library to check whether
499 output is to tty. On Windows, pandoc works as before and always requires
500 an output file parameter for binary formats.
502 * Changed JSON output format (Jesse Rosenthal). Previously we used
503 generically generated JSON, but this was subject to change depending
504 on the version of aeson pandoc was compiled with. To ensure stability,
505 we switched to using manually written ToJSON and FromJSON
506 instances, and encoding the API version. **Note:** pandoc filter
507 libraries will need to be revised to handle the format change.
508 Here is a summary of the essential changes:
510 + The toplevel JSON format is now `{"pandoc-api-version" :
511 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
512 instead of `[{"unMeta": META}, [BLOCKS]]`.
513 Decoding fails if the major and minor version numbers don't
514 match.
515 + Leaf nodes no longer have an empty array for their "c" value.
516 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
517 rather than `{"t":"Space","c":[]}` as before.
519 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
520 module to pandoc-types (Jesse Rosenthal). This makes it easier
521 to use QuickCheck with pandoc types outside of pandoc itself.
523 * Add `bracketed_spans` Markdown extension, enabled by default
524 in pandoc `markdown`. This allows you to create a native span
525 using this syntax: `[Here is my span]{#id .class key="val"}`.
527 * Added `angle_brackets_escapable` Markdown extension (#2846).
528 This is needed because github flavored Markdown has a slightly
529 different set of escapable symbols than original Markdown;
530 it includes angle brackets.
532 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
534 * Print highlighting-kate version in `--version`.
536 * `Text.Pandoc.Options`:
538 + `Extension` has new constructors `Ext_brackted_spans` and
539 `Ext_angle_brackets_escapable` [API change].
540 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
541 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
542 Rosenthal).
544 * `--filter`: we now check `$DATADIR/filters` for filters before
545 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
546 Voß for the idea). Filters placed in this directory need not
547 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
548 or `.rb`, pandoc will run the right interpreter.
550 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
551 default (Kolen Cheung).
553 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
555 * Execute .js filters with node (Jakob Voß).
557 * Textile reader:
559 + Support `bc..` extended code blocks (#3037). Also, remove trailing
560 newline in code blocks (consistently with Markdown reader).
561 + Improve table parsing. We now handle cell and row attributes, mostly
562 by skipping them. However, alignments are now handled properly.
563 Since in pandoc alignment is per-column, not per-cell, we
564 try to devine column alignments from cell alignments.
565 Table captions are also now parsed, and textile indicators
566 for thead and tfoot no longer cause parse failure. (However,
567 a row designated as tfoot will just be a regular row in pandoc.)
568 + Improve definition list parsing. We now allow multiple terms
569 (which we concatenate with linebreaks). An exponential parsing
570 bug (#3020) is also fixed.
571 + Disallow empty URL in explicit link (#3036).
573 * RST reader:
575 + Use Div instead of BlockQuote for admonitions (#3031).
576 The Div has class `admonition` and (if relevant) one of the
577 following: `attention`, `caution`, `danger`, `error`, `hint`,
578 `important`, `note`, `tip`, `warning`. **Note:** This will change
579 the rendering of some RST documents! The word ("Warning", "Attention",
580 etc.) is no longer added; that must be done with CSS or a filter.
581 + A Div is now used for `sidebar` as well.
582 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
583 space before a footnote marker. We discard those spaces so that footnotes
584 will be adjacent to the text that comes before it. This is in line with
585 what rst2latex does.
586 + Allow empty lines when parsing line blocks (Albert Krewinkel).
588 * Markdown reader:
590 + Allow empty lines when parsing line blocks (Albert Krewinkel).
591 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
593 * LaTeX reader:
595 + More robust parsing of unknown environments (#3026).
596 We no longer fail on things like `^` inside options for tikz.
597 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
598 Some custom environments give these a meaning, so we should try not to
599 fall over when we encounter them.
600 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
602 * MediaWiki reader:
604 + Fix for unquoted attribute values in mediawiki tables (#3053).
605 Previously an unquoted attribute value in a table row
606 could cause parsing problems.
607 + Improved treatment of verbatim constructions (#3055).
608 Previously these yielded strings of alternating Code and Space
609 elements; we now incorporate the spaces into the Code. Emphasis
610 etc. is still possible inside these.
611 + Properly interpret XML tags in pre environments (#3042). They are meant
612 to be interpreted as literal text.
614 * EPUB reader: don't add root path to data: URIs (#3150).
615 Thanks to @lep for the bug report and patch.
617 * Org reader (Albert Krewinkel):
619 + Preserve indentation of verse lines (#3064). Leading spaces in verse
620 lines are converted to non-breaking spaces, so indentation is preserved.
621 + Ensure image sources are proper links. Image sources as those in plain
622 images, image links, or figures, must be proper URIs or relative file
623 paths to be recognized as images. This restriction is now enforced
624 for all image sources. This also fixes the reader's usage of uncleaned
625 image sources, leading to `file:` prefixes not being deleted from
626 figure images. Thanks to @bsag for noticing this bug.
627 + Trim verse lines properly (Albert Krewinkel).
628 + Extract meta parsing code to module. Parsing of meta-data is well
629 separable from other block parsing tasks. Moving into new module to
630 get small files and clearly arranged code.
631 + Read markup only for special meta keys. Most meta-keys should be read
632 as normal string values, only a few are interpreted as marked-up text.
633 + Allow multiple, comma-separated authors. Multiple authors can be
634 specified in the `#+AUTHOR` meta line if they are given as a
635 comma-separated list.
636 + Give precedence to later meta lines. The last meta-line of any given
637 type is the significant line. Previously the value of the first line
638 was kept, even if more lines of the same type were encounterd.
639 + Read LaTeX_header as header-includes. LaTeX-specific header commands
640 can be defined in `#+LaTeX_header` lines. They are parsed as
641 format-specific inlines to ensure that they will only show up in LaTeX
642 output.
643 + Set documentclass meta from LaTeX_class.
644 + Set classoption meta from LaTeX_class_options.
645 + Read HTML_head as header-includes. HTML-specific head content can be
646 defined in `#+HTML_head` lines. They are parsed as format-specific
647 inlines to ensure that they will only show up in HTML output.
648 + Respect `author` export option. The `author` option controls whether
649 the author should be included in the final markup. Setting
650 `#+OPTIONS: author:nil` will drop the author from the final meta-data
651 output.
652 + Respect `email` export option. The `email` option controls whether the
653 email meta-field should be included in the final markup. Setting
654 `#+OPTIONS: email:nil` will drop the email field from the final
655 meta-data output.
656 + Respect `creator` export option. The `creator` option controls whether
657 the creator meta-field should be included in the final markup. Setting
658 `#+OPTIONS: creator:nil` will drop the creator field from the final
659 meta-data output. Org-mode recognizes the special value `comment` for
660 this field, causing the creator to be included in a comment. This is
661 difficult to translate to Pandoc internals and is hence interpreted the
662 same as other truish values (i.e. the meta field is kept if it's
663 present).
664 + Respect unnumbered header property (#3095). Sections the `unnumbered`
665 property should, as the name implies, be excluded from the automatic
666 numbering of section provided by some output formats. The Pandoc
667 convention for this is to add an "unnumbered" class to the header. The
668 reader treats properties as key-value pairs per default, so a special
669 case is added to translate the above property to a class instead.
670 + Allow figure with empty caption (Albert Krewinkel, #3161).
671 A `#+CAPTION` attribute before an image is enough to turn an image into
672 a figure. This wasn't the case because the `parseFromString` function,
673 which processes the caption value, would fail on empty values. Adding
674 a newline character to the caption value fixes this.
676 * Docx reader:
678 + Use XML convenience functions (Jesse Rosenthal).
679 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
680 the code a lot cleaner than the original XML.Light functions, but they
681 had been used inconsistently. This puts them in wherever applicable.
682 + Handle anchor spans with content in headers. Previously, we would only
683 be able to figure out internal links to a header in a docx if the
684 anchor span was empty. We change that to read the inlines out of the
685 first anchor span in a header.
686 + Let headers use exisiting id. Previously we always generated an id for
687 headers (since they wouldn't bring one from Docx). Now we let it use an
688 existing one if possible. This should allow us to recurs through anchor
689 spans.
690 + Use all anchor spans for header ids. Previously we only used the first
691 anchor span to affect header ids. This allows us to use all the anchor
692 spans in a header, whether they're nested or not (#3088).
693 + Test for nested anchor spans in header. This ensures that anchor spans
694 in header with content (or with other anchor spans inside) will resolve
695 to links to a header id properly.
697 * ODT reader (Hubert Plociniczak)
699 + Include list's starting value. Previously the starting value of
700 the lists' items has been hardcoded to 1. In reality ODT's list
701 style definition can provide a new starting value in one of its
702 attributes.
703 + Infer caption from the text following the image.
704 Frame can contain other frames with the text boxes.
705 + Add `fig:` to title for Image with a caption (as expected
706 by pandoc's writers).
707 + Basic support for images in ODT documents.
708 + Don't duplicate text for anchors (#3143). When creating an anchor
709 element we were adding its representation as well as the original
710 content, leading to text duplication.
712 * DocBook writer:
714 + Include an anchor element when a div or span has an id (#3102).
715 Note that DocBook does not have a class attribute, but at least this
716 provides an anchor for internal links.
718 * LaTeX writer:
720 + Don't use * for unnumbered paragraph, subparagraph. The starred
721 variants don't exist. This helps with part of #3058...it gets rid of
722 the spurious `*`s. But we still have numbers on the 4th and 5th level
723 headers.
724 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
725 Otherwise they can cause unintended ligatures like `` ?` ``.
726 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
727 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
728 This allows figure placement defaults to be changed by the user
729 in the template.
731 * HTML writer (slide show formats): In slide shows, don't change slide title
732 to level 1 header (#2221).
734 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
735 TEI doesn't have `<book>` elements but only generic `<divN>` division
736 elements. Checking the template for a trailing `</book>` is nonsensical.
738 * MediaWiki writer: transform filename with underscores in images (#3052).
739 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
740 for internal links, but it also needs to happen for images.
742 * ICML writer: replace partial function (!!) in table handling (#3175,
743 Mauro Bieg).
745 * Man writer: allow section numbers that are not a single digit (#3089).
747 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
748 (#3068). In AsciiDoc, you must use a special form of emphasis
749 (double `__`) for intraword emphasis. Pandoc was previously using
750 this more than necessary.
752 * EPUB writer: use stringify instead of plain writer for metadata
753 (#3066). This means that underscores won't be used for emphasis,
754 or CAPS for bold. The metadata fields will just have unadorned
755 text.
757 * Docx Writer:
759 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
760 with a `custom-style` key in the attributes will apply the corresponding
761 key to the contained blocks or inlines.
762 + Add ReaderT env to the docx writer (Jesse Rosenthal).
763 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
764 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
765 on the command line. For finer-grained control, you can set
766 the `dir` attribute in Div or Span elements.
768 * Org writer (Albert Krewinkel):
770 + Remove blank line after figure caption. Org-mode only treats an image
771 as a figure if it is directly preceded by a caption.
772 + Ensure blank line after figure. An Org-mode figure should be surrounded
773 by blank lines. The figure would be recognized regardless, but images
774 in the following line would unintentionally be treated as figures as
775 well.
776 + Ensure link targets are paths or URLs. Org-mode treats links as
777 document internal searches unless the link target looks like a URL or
778 file path, either relative or absolute. This change ensures that this
779 is always the case.
780 + Translate language identifiers. Pandoc and Org-mode use different
781 programming language identifiers. An additional translation between
782 those identifiers is added to avoid unexpected behavior. This fixes a
783 problem where language specific source code would sometimes be output
784 as example code.
785 + Drop space before footnote markers (Albert Krewinkel, #3162).
786 The writer no longer adds an extra space before footnote markers.
788 * Markdown writer:
790 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
791 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
792 is disabled.
793 + Check for the `raw_html` extension before emiting a raw HTML block.
794 + Abstract out note/ref function (Jesse Rosenthal).
795 + Add ReaderT monad for environment variables (Jesse Rosenthal).
797 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
798 subtitle, author, date (#3119). Note that, as a result of this change,
799 authors may need to update CSS.
801 * revealjs template: Added `notes-server` option
802 (jgm/pandoc-templates#212, Yoan Blanc).
804 * Beamer template:
806 + Restore whitespace between paragraphs. This was
807 a regression in the last release (jgm/pandoc-templates#207).
808 + Added `themeoptions` variable (Carsten Gips).
809 + Added `beamerarticle` variable. This causes the `beamerarticle`
810 package to be loaded in beamer, to produce an article from beamer
811 slides. (Carsten Gips)
812 + Added support for `fontfamilies` structured variable
813 (Artem Klevtsov).
814 + Added hypersetup options (Jake Zimmerman).
816 * LaTeX template:
818 + Added dummy definition for `\institute`.
819 This isn't a standard command, and we want to avoid a crash when
820 `institute` is used with the default template.
821 + Define default figure placement (Václav Haisman), since pandoc
822 no longer includes `[htbp]` for figures. Users with custom templates
823 will want to add this. See #3103.
824 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
825 Václav Haisman).
827 * Moved template compiling/rendering code to a separate library.
828 `doctemplates`. This allows the pandoc templating system to be
829 used independently.
831 * Text.Pandoc.Error: Fix out of index error in `handleError`
832 (Matthew Pickering). The fix is to not try to show the exact line when
833 it would cause an out-of-bounds error as a result of included files.
835 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
837 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
838 addresses. Technically `**@user` is a valid email address, but if we
839 allow things like this, we get bad results in markdown flavors
840 that autolink raw email addresses (see #2940). So we exclude a few
841 valid email addresses in order to avoid these more common bad cases.
843 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
844 emit the alt text, emphasized. This accords with what the ODT writer
845 currently does. The user will still get a warning about a nonexistent
846 image.
848 * Fix example in API documentation (#3176, Thomas Weißschuh).
850 * Tell where to get tarball in INSTALL (#3062).
852 * Rename README to MANUAL.txt and add GitHub-friendly README.md
853 (Albert Krewinkel, Kolen Cheung).
855 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
857 * MANUAL.txt:
859 + Put note on structured vars in separate paragraph (#2148, Albert
860 Krewinkel). Make it clearer that structured author variables require a
861 custom template
862 + Note that `--katex` works best with `html5` (#3077).
863 + Fix the LaTeX and EPUB links in manual (Morton Fox).
864 + Document `biblio-title` variable.
866 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
868 * Update KaTeX to v0.6.0 (Kolen Cheung).
870 * Allow latest dependencies.
872 * Use texmath 0.8.6.6 (#3040).
874 * Allow http-client 0.4.30, which is the version in stackage lts.
875 Previously we required 0.5.
876 Remove CPP conditionals for earlier versions.
878 * Remove support for GHC < 7.8 (Jesse Rosenthal).
880 + Remove Compat.Monoid.
881 + Remove an inline monad compatibility macro.
882 + Remove Text.Pandoc.Compat.Except.
883 + Remove directory compat.
884 + Change constraint on mtl.
885 + Remove unnecessary CPP condition in UTF8.
886 + Bump base lower bound to 4.7.
887 + Remove 7.6 build from .travis.yaml.
888 + Bump supported ghc version in CONTRIBUTING.md.
889 + Add note about GHC version support to INSTALL.
890 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
891 + Remove TagSoup compat.
892 + Add EOL note to time compat module. Because time 1.4 is a boot library
893 for GHC 7.8, we will support the compatibility module as long as we
894 support 7.8. But we should be clear about when we will no longer need
895 it.
896 + Remove blaze-html CPP conditional.
897 + Remove unnecessary CPP in custom Prelude.
899pandoc (1.17.2)
901 * Added Zim Wiki writer, template and tests. `zimwiki` is now
902 a valid output format. (Alex Ivkin)
904 * Changed email-obfuscation default to no obfuscation (#2988).
905 + `writerEmailObfuscation` in `defaultWriterOptions` is now
906 `NoObfuscation`.
907 + the default for the command-line `--email-obfuscation` option is
908 now `none`.
910 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
912 * Org writer:
914 + Support arbitrary raw inlines (Albert Krewinkel).
915 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
916 parlance) to be included as `@@format:raw foreign format text@@`.
917 + Improve Div handling (Albert Krewinkel). Div blocks handling is
918 changed to make the output look more like idiomatic org mode:
919 - Div-wrapped content is output as-is if the div's attribute is the
920 null attribute.
921 - Div containers with an id but neither classes nor key-value pairs
922 are unwrapped and the id is added as an anchor.
923 - Divs with classes associated with greater block elements are
924 wrapped in a `#+BEGIN`...`#+END` block.
925 - The old behavior for Divs with more complex attributes is kept.
927 * HTML writer:
929 + Better support for raw LaTeX environments (#2758).
930 Previously we just passed all raw TeX through when MathJax was used for
931 HTML math. This passed through too much. With this patch, only raw
932 LaTeX environments that MathJax can handle get passed through.
933 This patch also causes raw LaTeX environments to be treated
934 as math, when possible, with MathML and WebTeX output.
936 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
937 (#2993). Markdown line breaks involve a newline, and simple and pipe
938 tables can't contain one.
940 * Make --webtex work with the Markdown writer (#1177).
941 This is a convenient option for people using
942 websites whose Markdown flavors don't provide for math.
944 * Docx writer:
946 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
947 We treat display math like block quotes, and apply FirstParagraph style
948 to paragraphs that follow them. These can be styled as the user
949 wishes. (But, when the user is using indentation, this allows for
950 paragraphs to continue after display math without indentation.)
951 + Use actual creation time as doc prop (Jesse Rosenthal).
952 Previously, we had used the user-supplied date, if available, for Word's
953 document creation metadata. This could lead to weird results, as in
954 cases where the user post-dates a document (so the modification might be
955 prior to the creation). Here we use the actual computer time to set the
956 document creation.
958 * LaTeX writer:
960 + Don't URI-escape image source (#2825). Usually this is a local file,
961 and replacing spaces with `%20` ruins things.
962 + Allow 'standout' as a beamer frame option (#3007).
963 `## Slide title {.standout}`.
965 * RST reader: Fixed links with no explicit link text. The link
966 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
967 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
968 Closes Debian #828167 -- reported by Christian Heller.
970 * Textile reader:
972 + Fixed attributes (#2984). Attributes can't be followed by
973 a space. So, `_(class)emph_` but `_(noclass) emph_`.
974 + Fixed exponential parsing bug (#3020).
975 + Fix overly aggressive interpretation as images (#2998).
976 Spaces are not allowed in the image URL in textile.
978 * LaTeX reader:
980 + Fix `\cite` so it is a NormalCitation not AuthorInText.
981 + Strip off double quotes around image source if present (#2825).
982 Avoids interpreting these as part of the literal filename.
984 * Org reader:
986 + Add semicolon to list of special chars (Albert Krewinkel)
987 Semicolons are used as special characters in citations syntax. This
988 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
989 suffix]`. Previously, parsing would have failed unless there was a space
990 or other special character as the last <prefix> character.
991 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
992 A specification for an official Org-mode citation syntax was drafted by
993 Richard Lawrence and enhanced with the help of others on the orgmode
994 mailing list. Basic support for this citation style is added to the
995 reader.
996 + Support arbitrary raw inlines (Albert Krewinkel).
997 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
998 parlance) to be included as `@@format:raw foreign format text@@`.
999 + Remove partial functions (Albert Krewinkel, #2991).
1000 Partial functions like `head` lead to avoidable errors and should be
1001 avoided. They are replaced with total functions.
1002 + Support figure labels (Albert Krewinkel, #2496, #2999).
1003 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
1004 respective image. This allows e.g. the LaTeX to add proper `\label`
1005 markup.
1006 + Improve tag and properties type safety (Albert Krewinkel).
1007 Specific newtype definitions are used to replace stringly typing of tags
1008 and properties. Type safety is increased while readability is improved.
1009 + Parse as headlines, convert to blocks (Albert Krewinkel).
1010 Emacs org-mode is based on outline-mode, which treats documents as trees
1011 with headlines are nodes. The reader is refactored to parse into a
1012 similar tree structure. This simplifies transformations acting on
1013 document (sub-)trees.
1014 * Refactor comment tree handling (Albert Krewinkel).
1015 Comment trees were handled after parsing, as pattern matching on lists
1016 is easier than matching on sequences. The new method of reading
1017 documents as trees allows for more elegant subtree removal.
1018 * Support archived trees export options (Albert Krewinkel).
1019 Handling of archived trees can be modified using the `arch` option.
1020 Archived trees are either dropped, exported completely, or collapsed to
1021 include just the header when the `arch` option is nil, non-nil, or
1022 `headline`, respectively.
1023 * Put export setting parser into module (Albert Krewinkel).
1024 Export option parsing is distinct enough from general block parsing to
1025 justify putting it into a separate module.
1026 * Support headline levels export setting (Albert Krewinkel).
1027 The depths of headlines can be modified using the `H` option. Deeper
1028 headlines will be converted to lists.
1029 * Replace ugly code with view pattern (Albert Krewinkel).
1030 Some less-than-smart code required a pragma switching of overlapping
1031 pattern warnings in order to compile seamlessly. Using view patterns
1032 makes the code easier to read and also doesn't require overlapping
1033 pattern checks to be disabled.
1034 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
1035 Org rules for allowed characters before or after markup chars were not
1036 checked for verbatim text. This resultet in wrong parsing outcomes of
1037 if the verbatim text contained e.g. space enclosed markup characters as
1038 part of the text (`=is_substr = True=`). Forcing the parser to update
1039 the positions of allowed/forbidden markup border characters fixes this.
1041 * LaTeX template: fix for obscure hyperref/xelatex issue.
1042 Here's a minimal case:
1044 \documentclass[]{article}
1045 \usepackage{hyperref}
1046 \begin{document}
1047 \section{\%á}
1048 \end{document}
1050 Without this change, this fails on the second invocation of xelatex.
1051 This affects inputs this like `# %á` with pdf output via xelatex.
1053 * trypandoc: call results 'html' instead of 'result'.
1054 This is for better compatibility with babelmark2.
1056 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
1057 MultiMarkdown was only mentioned as a supported Markdown dialect but not
1058 as a possible input or output format. A brief mention is added
1059 everywhere the other supported markdown dialects are mentioned.
1061 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
1062 Raw HTML is kept when the output format is Emacs Org mode.
1064 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
1066 * Text.Pandoc.Shared:
1068 + Introduce blocksToInlines function (Jesse Rosenthal).
1069 This is a lossy function for converting `[Block] -> [Inline]`. Its main
1070 use, at the moment, is for docx comments, which can contain arbitrary
1071 blocks (except for footnotes), but which will be converted to spans.
1072 This is, at the moment, pretty useless for everything but the basic
1073 `Para` and `Plain` comments. It can be improved, but the docx reader
1074 should probably emit a warning if the comment contains more than this.
1075 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
1076 + Add further formats for `normalizeDate` (Jesse Rosenthal).
1077 We want to avoid illegal dates -- in particular years with greater than
1078 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
1079 `%Y%m`, and finally `%Y`.
1080 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
1081 We only allow years between 1601 and 9999, inclusive. The ISO 8601
1082 actually says that years are supposed to start with 1583, but MS Word
1083 only allows 1601-9999. This should stop corrupted word files if the date
1084 is out of that range, or is parsed incorrectly.
1085 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
1086 Previously we parsed a list of dates, took the first one, and then
1087 tested its year range. That meant that if the first one failed, we
1088 returned nothing, regardless of what the others did. Now we test for
1089 sanity before running `msum` over the list of Maybe values. Anything
1090 failing the test will be Nothing, so will not be a candidate.
1092 * Docx reader:
1094 + Add simple comment functionality. (Jesse Rosenthal).
1095 This adds simple track-changes comment parsing to the docx reader. It is
1096 turned on with `--track-changes=all`. All comments are converted to
1097 inlines, which can list some information. In the future a warning will be
1098 added for comments with formatting that seems like it will be excessively
1099 denatured. Note that comments can extend across blocks. For that reason
1100 there are two spans: `comment-start` and `comment-end`. `comment-start`
1101 will contain the comment. `comment-end` will always be empty. The two
1102 will be associated by a numeric id.
1103 + Enable warnings in top-level reader (Jesse Rosenthal).
1104 Previously we had only allowed for warnings in the parser. Now we allow
1105 for them in the `Docx.hs` as well. The warnings are simply concatenated.
1106 + Add warning for advanced comment formatting. (Jesse Rosenthal).
1107 We can't guarantee we'll convert every comment correctly, though we'll
1108 do the best we can. This warns if the comment includes something other
1109 than Para or Plain.
1110 + Add tests for warnings. (Jesse Rosenthal).
1111 + Add tests for comments (Jesse Rosenthal).
1112 We test for comments, using all track-changes options. Note that we
1113 should only output comments if `--track-changes=all`. We also test for
1114 emitting warnings if there is complicated formatting.
1116 * README: update to include track-changes comments. (Jesse Rosenthal)
1118 * Improved Windows installer - don't ignore properties set on command-line.
1119 See #2708. Needs testing to see if this resolves the issue.
1120 Thanks to @nkalvi.
1122 * Process markdown extensions on command line in L->R order (#2995).
1123 Previously they were processed, very unintuitively, in R->L
1124 order, so that `markdown-tex_math_dollars+tex_math_dollars`
1125 had `tex_math_dollars` disabled.
1127 * Added `secnumdepth` variable to LaTeX template (#2920).
1129 * Include table of contents in README.html in Windows package.
1131 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
1132 In Writers.Shared, we strip leading and trailing spaces for display
1133 math. Since SoftBreak's are treated as spaces, we should strip those
1134 too.
1136 * beamer, latex templates: pass biblatexoptions directly in package load.
1137 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
1139 * CPP workaround for deprecation of `parseUrl` in http-client.
1141 * Removed some redundant class constraints.
1143 * make_oxs_package.sh - use OSX env variable.
1145 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
1146 old installing page from website.
1148 * Added `winpkg` target to Makefile. This downloads the windows package
1149 from appveyor and signs it using the key.
1151 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
1152 Raw TeX is kept verbatim when the output format is Emacs Org mode.
1154 * Support math with haddock-library >= 1.4.
1156 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
1157 wouldn't accept the package.
1159 * Update library dependency versions.
1161pandoc (1.17.1)
1163 * New output format: `docbook5` (Ivo Clarysse).
1165 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
1166 (API change).
1168 * Org writer:
1170 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
1171 This allows header attributes to be added to org documents in the form
1172 of `:PROPERTIES:` drawers. All available attributes are stored as
1173 key/value pairs. This reflects the way the org reader handles
1174 `:PROPERTIES:` blocks.
1175 + Add drawer capability (Carlos Sosa). For the implementation of the
1176 Drawer element in the Org Writer, we make use of a generic Block
1177 container with attributes. The presence of a `drawer` class defines
1178 that the `Div` constructor is a drawer. The first class defines the
1179 drawer name to use. The key-value list in the attributes defines
1180 the keys to add inside the Drawer. Lastly, the list of Block elements
1181 contains miscellaneous blocks elements to add inside of the Drawer.
1182 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
1183 reserved for internal use by Org-mode and should not be used.
1184 The `CUSTOM_ID` property is to be used instead, it is converted to the
1185 `ID` property for certain export format.
1187 * LaTeX writer:
1189 + Ignore `--incremental` unless output format is beamer (#2843).
1190 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
1191 Allow for optional argument in square brackets.
1192 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
1193 This allows one to access the hyphenation patterns in CTAN's
1194 hyph-utf8.
1195 + Add missing languages from hyph-utf8 (Andrew Dunning).
1196 + Improve use of `\strut` with `\minipage` inside tables
1197 (Jose Luis Duran). This improves spacing in multiline
1198 tables.
1199 + Use `{}` around options containing special chars (#2892).
1200 + Avoid lazy `foldl`.
1201 + Don't escape underscore in labels (#2921). Previously they were
1202 escaped as `ux5f`.
1203 + brazilian -> brazil for polyglossia (#2953).
1205 * HTML writer: Ensure mathjax link is added when math appears in footnote
1206 (#2881). Previously if a document only had math in a footnote, the
1207 MathJax link would not be added.
1209 * EPUB writer: set `navpage` variable on nav page.
1210 This allows templates to treat it differently.
1212 * DocBook writer:
1214 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
1215 + Properly handle `ulink`/`link` (Ivo Clarysse).
1217 * EPUB reader:
1219 + Unescape URIs in spine (#2924).
1220 + EPUB reader: normalise link id (Mauro Bieg).
1222 * Docx Reader:
1224 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
1225 `moveTo` and `moveFrom` are track-changes tags that are used when a
1226 block of text is moved in the document. We now recognize these tags and
1227 treat them the same as `insert` and `delete`, respectively. So,
1228 `--track-changes=accept` will show the moved version, while
1229 `--track-changes=reject` will show the original version.
1230 + Tests for track-changes moving (Jesse Rosenthal).
1232 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
1233 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
1234 would error out if zip-archive failed. We change the archive extraction
1235 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
1237 * Markdown, HTML readers: be more forgiving about unescaped `&` in
1238 HTML (#2410). We are now more forgiving about parsing invalid HTML with
1239 unescaped `&` as raw HTML. (Previously any unescaped `&`
1240 would cause pandoc not to recognize the string as raw HTML.)
1242 * Markdown reader:
1244 + Added bracket syntax for native spans (#168).
1245 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
1246 + Added `-s` to markdown-reader-more test.
1248 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
1249 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
1251 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
1252 (roblabla).
1254 * RST reader: Support `:class:` option for code block in RST reader
1255 (Sidharth Kapur).
1257 * Org reader (all Albert Krewinkel, except where noted otherwise):
1259 + Stop padding short table rows.
1260 Emacs Org-mode doesn't add any padding to table rows. The first
1261 row (header or first body row) is used to determine the column count,
1262 no other magic is performed.
1263 + Refactor rows-to-table conversion. This refactors
1264 the codes conversing a list table lines to an org table ADT.
1265 The old code was simplified and is now slightly less ugly.
1266 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
1267 This fixes Org mode parsing of some corner cases regarding empty cells
1268 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
1269 two empty cells, but would be parsed as a single cell containing a pipe
1270 character. Empty rows where parsed as alignment rows and dropped from
1271 the output.
1272 + Fix spacing after LaTeX-style symbols.
1273 The org-reader was droping space after unescaped LaTeX-style symbol
1274 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
1275 instead. This seems to be because the LaTeX-reader treats the
1276 command-terminating space as part of the command. Dropping the trailing
1277 space from the symbol-command fixes this issue.
1278 + Print empty table rows. Empty table rows should not
1279 be dropped from the output, so row-height is always set to be at least 1.
1280 + Move parser state into separate module.
1281 The org reader code has become large and confusing. Extracting smaller
1282 parts into submodules should help to clean things up.
1283 + Add support for sub/superscript export options.
1284 Org-mode allows to specify export settings via `#+OPTIONS` lines.
1285 Disabling simple sub- and superscripts is one of these export options,
1286 this options is now supported.
1287 + Support special strings export option Parsing of special strings
1288 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
1289 option.
1290 + Support emphasized text export option. Parsing of emphasized text can
1291 be toggled using the `*` option. This influences parsing of text marked
1292 as emphasized, strong, strikeout, and underline. Parsing of inline math,
1293 code, and verbatim text is not affected by this option.
1294 + Support smart quotes export option. Reading of smart quotes can be
1295 toggled using the `'` option.
1296 + Parse but ignore export options. All known export options are parsed
1297 but ignored.
1298 + Refactor block attribute handling. A parser state attribute was used
1299 to keep track of block attributes defined in meta-lines. Global state
1300 is undesirable, so block attributes are no longer saved as part of the
1301 parser state. Old functions and the respective part of the parser state
1302 are removed.
1303 + Use custom `anyLine`. Additional state changes need to be made after
1304 a newline is parsed, otherwise markup may not be recognized correctly.
1305 This fixes a bug where markup after certain block-types would not be
1306 recognized.
1307 + Add support for `ATTR_HTML` attributes (#1906).
1308 Arbitrary key-value pairs can be added to some block types using a
1309 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
1310 when exporting to HTML, but since we cannot make this distinction here,
1311 the attributes are always added. The functionality is now supported
1312 for figures.
1313 + Add `:PROPERTIES:` drawer support (#1877).
1314 Headers can have optional `:PROPERTIES:` drawers associated with them.
1315 These drawers contain key/value pairs like the header's `id`. The
1316 reader adds all listed pairs to the header's attributes; `id` and
1317 `class` attributes are handled specially to match the way `Attr` are
1318 defined. This also changes behavior of how drawers of unknown type
1319 are handled. Instead of including all unknown drawers, those are not
1320 read/exported, thereby matching current Emacs behavior.
1321 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
1322 + Respect drawer export setting. The `d` export option can be used
1323 to control which drawers are exported and which are discarded.
1324 Basic support for this option is added here.
1325 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
1326 Also fix up tab handling for leading whitespace in code blocks.
1327 + Support new syntax for export blocks. Org-mode version 9
1328 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
1329 where `<FORMAT>` is the format of the block's content, the new
1330 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
1331 supported.
1332 + Refactor `BEGIN...END` block parsing.
1333 + Fix handling of whitespace in blocks, allowing content to be indented
1334 less then the block header.
1335 + Support org-ref style citations. The *org-ref* package is an
1336 org-mode extension commonly used to manage citations in org
1337 documents. Basic support for the `cite:citeKey` and
1338 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
1339 + Split code into separate modules, making for cleaner code and
1340 better decoupling.
1342 * Added `docbook5` template.
1344 * `--mathjax` improvements:
1346 + Use new CommonHTML output for MathJax (updated default MathJax URL,
1347 #2858).
1348 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
1349 This is designed for cases where the input is always TeX and maximal
1350 conformity with TeX is desired. It seems to be smaller and load faster
1351 than what we used before. See #2858.
1352 + Load the full MathJax config to maximize loading speed (KolenCheung).
1354 * Bumped upper version bounds to allow use of latest packages
1355 and compilation with ghc 8.
1357 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
1358 #2310, #2310, #2824). This fixes behavior of roots, e.g.
1359 `\sqrt[3]{x}`, and issues with sub/superscript positioning
1360 and matrix column alignment in docx.
1362 * README:
1364 + Clarified documentation of `implicit_header_references` (#2904).
1365 + Improved documentation of `--columns` option.
1367 * Added appveyor setup, with artefacts (Jan Schulz).
1369 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
1371 * LaTeX template: support for custom font families (vladipus).
1372 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
1373 can find some other usages. Example usage in YAML metadata:
1375 fontfamilies:
1376 - name: \cyrillicfont
1377 font: Liberation Serif
1378 - name: \cyrillicfonttt
1379 options: Scale=MatchLowercase
1380 font: Liberation
1382 * Create unsigned msi as build artifact in appveyor build.
1384 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
1386pandoc (1.17.0.3)
1388 * LaTeX writer: Fixed position of label in figures (#2813).
1389 Previously the label wasn't in the right place, and `\ref`
1390 wouldn't work properly.
1391 * Added .tei test files to pandoc.cabal so they'll be included
1392 in tarball (#2811).
1393 * Updated copyright dates.
1395pandoc (1.17.0.2)
1397 * Fixed serious regression in `htmlInBalanced`, which caused
1398 newlines to be omitted in some raw HTML blocks in Markdown
1399 (#2804).
1401pandoc (1.17.0.1)
1403 * File scope is no longer used when there are no input files (i.e.,
1404 when input comes from stdin). Previously file scope was triggered
1405 when the `json` reader was specified and input came from `stdin`,
1406 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
1407 thanks to Fedor Sheremetyev for calling the bug to our attention.)
1408 * Improved documentation of templates (#2797).
1410pandoc (1.17)
1412 * Added `--file-scope` option (Jesse Rosenthal).
1413 By default pandoc operates on multiple files by first concatenating
1414 them (around extra line breaks) and then processing the joined file. So
1415 it only parses a multi-file document at the document scope. This has the
1416 benefit that footnotes and links can be in different files, but for
1417 some purposes it is useful to parse the individual files first
1418 and then combine their outputs (e.g. when the files use footnotes
1419 or links with the same labels). The `--file-scope` option causes
1420 pandoc to parse the files first, and then combine the parsed output,
1421 instead of combining before parsing. `--file-scope` is selected
1422 automatically for binary input files (which cannot be concatenated)
1423 and for pandoc json.
1425 * Add TEI Writer (Chris Forster) and `tei` output format.
1427 * Added a general `ByteStringReader` with warnings, used by the docx
1428 reader (API change, Jesse Rosenthal).
1430 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
1432 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
1433 to `Set String.` This avoids performance problems in documents with
1434 many identically named headers (API change, #2671).
1436 * Removed `tex_math_single_backslash` from `markdown_github` options
1437 (#2707).
1439 * Make language extensions as well as full language names
1440 trigger syntax highlighting. For example, `py` will now work as
1441 well as `python` (jgm/highlighting-kate#83).
1443 * Added `institute` variable to latex, beamer templates (Fraser
1444 Tweedale, Josef Svenningsson).
1446 * Docx reader (Jesse Rosenthal):
1448 + Handle alternate content. Some word functions (especially graphics)
1449 give various choices for content so there can be backwards compatibility.
1450 + Don't turn numbered headers into lists.
1451 + Docx Reader: Add state to the parser, for warnings
1452 + Update feature checklist in source code.
1453 + Get rid of `Modifiable` typeclass.
1454 + Add tests for adjacent hyperlinks.
1455 + Add a "Link" modifier to `Reducible`. We want to make sure that
1456 links have their spaces removed, and are appropriately smushed
1457 together (#2689).
1459 * HTML reader:
1461 + Fixed behavior of base tag (#2777).
1462 If the base path does not end with slash, the last component
1463 will be replaced. E.g. base = `http://example.com/foo`
1464 combines with `bar.html` to give `http://example.com/bar.html`.
1465 If the href begins with a slash, the whole path of the base
1466 is replaced. E.g. base = `http://example.com/foo/` combines
1467 with `/bar.html` to give `http://example.com/bar.html`.
1468 + Rewrote `htmlInBalanced`. This version avoids an exponential
1469 performance problem with `<script>` tags, and it should be faster
1470 in general (#2730).
1471 + Properly handle an empty cell in a simple table (#2718).
1472 + Handle multiple `<meta>` tags with same name. Put them in a list
1473 in the metadata so they are all preserved, rather than (as before)
1474 throwing out all but one..
1476 * Markdown reader:
1478 + Improved pipe table parsing (#2765).
1479 + Allow `+` separators in pipe table cells. We already allowed
1480 them in the header, but not in the body rows, for some reason.
1481 This gives compatibility with org-mode tables.
1482 + Don't cross line boundary parsing pipe table row.
1483 Previously an Emph element could be parsed across the newline
1484 at the end of the pipe table row.
1485 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
1486 performance (#2730).
1487 + Fixed bug with smart quotes around tex math.
1489 * LaTeX reader:
1491 + Handle interior `$` characters in math (#2743). For example,
1492 `$$\hbox{$i$}$$`.
1493 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
1494 This gives better results when people write e.g. `\TeX{}` in Markdown.
1495 + Properly handle LaTeX "math" environment as inline math (#2171).
1497 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
1498 Closes #2674.
1500 * Org reader (Albert Krewinkel):
1502 + Prefix even empty figure names with "fig:" (#2643). The
1503 convention used by pandoc for figures is to mark them by prefixing
1504 the name with `fig:`. The org reader failed to do this if a figure
1505 had no name.
1506 + Refactor link-target processing (#2684).
1508 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
1509 Thanks to @c-foster.
1511 * HTML writer: Don't include alignment attribute for default table columns.
1512 Previously these were given "left" alignment. Better to leave off
1513 alignment attributes altogether (#2694).
1515 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
1516 better compatibility with other Markdown flavors (Henrik Tramberend).
1518 * LaTeX writer:
1520 + Use image identifier to create a label and hypertarget for
1521 figures (Mauro Bieg).
1522 + Avoid double toprule in headerless table with caption (#2742).
1523 + Clean up options parser (Jesse Rosenthal).
1524 + Treat `memoir` template with `article` option as article, instead
1525 of treating all `memoir` templates as books.
1526 + Allow more flexible table alignment (Henrik Tramberend, #2665).
1527 New default is not to include `[c]` option (which is the default
1528 anyway if no positioning is specified). Now LaTeX emplates can
1529 control the overall table alignment in a document by setting the
1530 longtable length variables `LTleft` and `LTright`. For example,
1531 `\setlength\LTleft\parindent\setlength\LTright\fill`
1532 will create left-aligned tables that respect paragraph indentation.
1534 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
1536 * Org writer - pass through RawInline with format "org".
1538 * DokuWiki writer: use `$$` for display math.
1540 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
1542 * Make protocol-relative URIs work again (#2737).
1544 * make_osx_package.sh: Use env variable for developer id certs.
1546 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
1547 problems (#2734).
1549 * Allow `zip-archive` 0.3.
1551 * Allow `aeson` 0.11.
1553pandoc (1.16.0.2)
1555 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
1557 * Fixed regression in latex smart quote parsing (#2645).
1558 In cases where a match was not found for a quote, everything
1559 from the open quote to the end of the paragraph was being dropped.
1561pandoc (1.16.0.1)
1563 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
1564 raises an error if a full path is given.
1566 * Org reader: Fix function dropping subtrees tagged `:noexport`
1567 (Albert Krewinkel, #2628):
1569 * Markdown reader: renormalize table column widths if they exceed 100%
1570 (#2626).
1572 * Textile reader: don't allow block HTML tags in inline contexts.
1573 The reader previously did allow this, following redcloth,
1574 which happily parses
1576 Html blocks can be <div>inlined</div> as well.
1578 as
1580 <p>Html blocks can be <div>inlined</div> as well.</p>
1582 This is invalid HTML. The above sample now produces;
1584 <p>Html blocks can be</p>
1585 <div>
1586 <p>inlined</p>
1587 </div>
1588 <p>as well.</p>
1590 * Improved default template lookup for custom lua scripts (#2625).
1591 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
1592 pandoc would look for the template in
1593 `~/.pandoc/templates/default./path/to/lua/script.lua`.
1594 With this change it will look in the more reasonable
1595 `~/.pandoc/templates/default.script.lua`. This makes it possible to
1596 store default templates for custom writers.
1598 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
1599 (#2615).
1601 * LaTeX writer: restore old treatment of Span (#2624). A Span is
1602 now rendered with surrounding `{}`, as it was before 1.16.
1604 * Entity handling fixes: improved handling of entities like
1605 `&lang;` that require a trailing semicolon. Allow uppercase
1606 `x` in numerical hexidecimal character references, working
1607 around a tagsoup bug.
1609 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
1610 memory use on compile. With aeson 0.10 we were getting an out of
1611 memory error on a 2GB Ubuntu 64-bit VM.
1613 * Improved deb package creation script. Made `DPKGVER` work.
1614 Renamed `COMMIT` to `TREE`. You should now be able to do
1615 `TREE=1.16.0.1 DPKGVER=2 make deb`.
1618pandoc (1.16)
1620 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
1622 + Added syntax for link and image attributes to pandoc's Markdown.
1623 + Updated readers and writers to use link and image attributes
1624 when appropriate.
1625 + Support image attributes in Docx, Textile, RST readers.
1627 * Renamed link attribute extensions. The old `link_attributes` is
1628 now `mmd_link_attributes`, and `link_attributes` now enables the
1629 new pandoc-style link and image attributes (API change).
1630 Note: this change could break some existing workflows.
1632 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
1633 Added threefold wrapping option.
1635 + Command line option: deprecated `--no-wrap`, added
1636 `--wrap=[auto|none|preserve]`
1637 + Added `WrapOption`, exported from `Text.Pandoc.Options`
1638 + Changed type of `writerWrapText` in `WriterOptions` from
1639 `Bool` to `WrapOption`.
1640 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
1641 + Supported `SoftBreak` in readers and writers.
1643 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
1644 change, Mauro Bieg).
1646 * Added `--dpi` command-line option (Mauro Bieg).
1648 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
1649 This change makes `--no-tex-ligatures` affect the LaTeX reader
1650 as well as the LaTeX and ConTeXt writers. If it is used,
1651 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
1652 literally, rather than parsing ligatures for quotation marks
1653 and dashes. And the LaTeX writer will print unicode quotation
1654 mark and dash characters literally, rather than converting
1655 them to the standard ASCII ligatures. Note that `--smart` has
1656 no effect on the LaTeX reader. `--smart` is still the default
1657 for all input formats when LaTeX or ConTeXt is the output format,
1658 *unless* `--no-tex-ligatures` is used.
1660 Some examples to illustrate the logic:
1662 ```
1663 % echo "'hi'" | pandoc -t latex
1664 `hi'
1665 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
1666 'hi'
1667 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
1668 ‘hi’
1669 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
1670 <p>'hi'</p>
1671 % echo "'hi'" | pandoc -f latex
1672 <p>’hi’</p>
1673 ```
1675 * Removed deprecated options `--offline` and `--html5`.
1677 * Fixed language code for Czech (`cs` not `cz`) (#2597).
1679 * Implemented `east_asian_line_breaks` extension (#2586).
1680 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
1681 to `Extension` (API change). This extension is like
1682 `ignore_line_breaks`, but smarter -- it only ignores line breaks
1683 between two East Asian wide characters. This makes it better suited
1684 for writing with a mix of East Asian and non-East Asian scripts.
1686 * Added support for PDF creation via `wkhtmltopdf`.
1687 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
1688 if you have math.) Margins can be set using the variables
1689 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
1690 Other styling can be done through CSS.
1692 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
1693 We were capturing final colons as in `[@foo: bar]`; the citation id
1694 was being parsed as `@foo:`.
1696 * ICML writer:
1698 + Fixed image syntax for local files (#2589).
1699 + Changed type of `writeICML` (Mauro Bieg).
1700 API change: It is now `WriterOptions -> Pandoc -> IO String`.
1701 Also handle new image attributes.
1702 + Intersperse line breaks instead of appending them to
1703 every `ParagraphStyleRange` (Mauro Bieg, #2501).
1704 + Add `Cite` style to citations (Mauro Bieg).
1705 + Added figure handling (#2590, Mauro Bieg).
1706 + Better handling of math. Instead of just printing the raw tex,
1707 we now try to fake it with unicode characters.
1709 * HTML writer: Include `example` class for example lists (#2524).
1711 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
1713 + Support for percentage widths/heights
1714 + Use `Attr` instead of title to get dimensions from ODT walker
1715 to `writeOpenDocument`.
1717 * AsciiDoc writer:
1719 + Support anchors in spans and divs with id elements
1720 (jgm/pandoc-citeproc#143).
1721 + Fixed code blocks (#1861).
1723 * Haddock writer: omit formatting inside links, which isn't supported
1724 by Haddock (#2515).
1726 * MediaWiki writer: Fixed spacing issues in table cells.
1728 + Start cell on new line unless it's a single Para or Plain
1729 (#2606).
1730 + For single Para or Plain, insert a space after the `|` to
1731 avoid problems when the text begins with a character like
1732 `-` (#2604).
1734 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
1736 * LaTeX writer:
1738 + Add support for GAP highlighting using listings (Raniere Silva).
1739 + Consider `header-includes` content as well as templates
1740 when determining whether to use csquotes (Andreas Lööw).
1741 + Create defaults for geometry using `margin-left` etc.
1742 If `geometry` has no value, but `margin-left`, `margin-right`,
1743 `margin-top`, and/or `-margin-bottom` are given, a default value
1744 for `geometry` is created from these. Note that these variables
1745 already affect PDF production via HTML5 with `wkhtmltopdf`.
1747 * ConTeXt writer: set default layout based on `margin-left`, etc.
1748 This sets up `\setuplayout` based on the variables `margin-left`,
1749 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
1750 is given.
1752 * Docx writer: better handling of PDF images. Previously we tried
1753 to get the image size from the image even if an explicit size was
1754 specified. Since we still can't get image size for PDFs, this made
1755 it impossible to use PDF images in docx. Now we don't try to get
1756 the image size when a size is already explicitly specified.
1758 * Markdown writer: use raw HTML for link/image attributes when
1759 the `link_attributes` extension is unset and `raw_html` is set (#2554).
1761 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
1763 * LaTeX reader:
1765 + Improved smart quote parsing (#2555). This fixes redering of
1766 unmatched quotes.
1767 + Use curly quotes for unmatched ` (#2555).
1768 + Allow blank space between braced arguments of commands (#2592).
1770 * Markdown reader:
1772 + Improved pipe table relative widths. Previously pipe table
1773 columns got relative widths (based on the header underscore lines)
1774 when the source of one of the rows was greater in width than the
1775 column width. This gave bad results in some cases where much of
1776 the width of the row was due to nonprinting material (e.g. link
1777 URLs). Now pandoc only looks at printable width (the width of a
1778 plain string version of the source), which should give better results.
1779 Thanks to John Muccigrosso for bringing up the issue.
1780 + Fixed parsing bug with macros. Previously macro definitions in
1781 indented code blocks were being parsed as macro definitions, not code.
1783 * Textile reader: skip over attribute in image source (#2515).
1784 We don't have a place yet for styles or sizes on images, but
1785 we can skip the attributes rather than incorrectly taking them
1786 to be part of the filename.
1788 * Docx reader: Handle dummy list items (Jesse Rosenthal).
1789 These come up when people create a list item and then delete the
1790 bullet. It doesn't refer to any real list item, and we used to ignore
1791 it.
1793 * CommonMark reader/writer rewritten to use latest `cmark`.
1795 * Fixed Emoji character definitions (#2523). There were many bugs in the
1796 definitions.
1798 * `Text.Pandoc.CSS`:
1800 + Added `pickStylesToKVs` function to extract multiple properties at
1801 once (API change, Mauro Bieg).
1802 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
1804 * `trypandoc`: sort drop-down lists.
1806 * Beamer template:
1808 + Made `\euro` conditional on presence of character.
1809 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
1810 + Moved `header-includes` before setting of title (Thomas Hodgson),
1811 to match the LaTeX template (jgm/pandoc-templates#168).
1812 + Added `section-titles` variable (defaults to true)
1813 to enable/suppress section title pages in beamer
1814 slide shows (Thomas Hodgson).
1815 + Moved beamer themes after fonts, so that themes can
1816 change fonts. (Previously the fonts set were being
1817 clobbered by lmodern.sty.) (Thomas Hodgson).
1819 * Beamer/LaTeX template changes (Thomas Hodgson):
1820 + Added `thanks` variable
1821 + Use `parskip.sty` when `indent` isn't set (fall back to using
1822 `setlength` as before if `parskip.sty` isn't available).
1823 + Use `biblio-style` with biblatex.
1824 + Added `biblatexoptions` variable.
1826 * LaTeX template changes:
1828 + Added `paper` after `$papersize$` variable in latex template.
1829 Thus you can say `papersize: a4` and the latex will contain
1830 `a4paper`. This change may break some existing workflows; if
1831 you currently specify `a4paper`, you'll get `a4paperpaper` which
1832 is meaningless. However, the change seems worth it, as it will
1833 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
1834 and html->pdf via wkhtmltopdf.
1835 + Only pass options to color package if `colorlinks` is set
1836 (Andrew Dunning).
1837 + Make definition of `\euro` conditional in xelatex/lualatex,
1838 as it is already for pdflatex (Andrew Dunning).
1839 + Removed setting of `subject` in PDF metadata.
1840 This used to be set to the subtitle, but really the subtitle
1841 need not give the subject. Also, `subtitle` can contain formatting,
1842 so we'd need, at least, a plain text version for this.
1843 + Moved `header-includes` before setting of `\title`, `\author`,
1844 etc. This allows these macros to be redefined.
1845 + Use `\subtitle` command for `subtitle`, instead of tacking it
1846 on to the title as before. We give a no-op fallback definition if it
1847 is not defined. This change should produce much better results
1848 in classes that support `\subtitle`. With the default article
1849 class, which does not define `\subtitle`, subtitles will no
1850 longer be printed unless the user defines `\subtitle` and
1851 redefines `\maketitle`.
1852 + Moved redefinitions of `\paragraph` and `\subparagraph` to
1853 before header-includes.
1855 * Context template:
1857 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
1858 needed for things to work on ConTeXt stable from TeXLive 2015.
1859 + Revert use of `\setuphead` in title block (Andrew Dunning,
1860 Rik Kabel).
1862 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
1864 * Fixed man template so disabling hyphenation actually works.
1865 The command needs to come after .TH.
1867 * Added 'navigation' variable to beamer template (#2543).
1868 Valid values are `empty` (the default), `horizontal`, `vertical`,
1869 and `frame`. Note that this changes the default behavior from
1870 `horizontal` to `empty`. Closes #2543.
1872 * Added `toc` to HTML slide format templates (Andrew Dunning),
1873 so that `--toc` creates a contents slide.
1875 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
1877 * Allow pipe tables with no body rows (#2556).
1878 Previously this raised a runtime error.
1880 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
1881 as URL. The Haskell URI parsing routines will accept "C:" as a
1882 scheme, so we rule that out manually. This helps with
1883 `--self-contained` and absolute Windows paths.
1885 * Define a `meta-json` variable for all writers (#2019). This contains
1886 a JSON version of all the metadata, in the format selected for the
1887 writer. So, for example, to get just the YAML metadata, you can run
1888 pandoc with the following custom template: `$meta-json$`. The intent
1889 is to make it easier for static site generators and other tools to get
1890 at the metadata.
1892 * Document limitations of --self-contained (#2553).
1894 * Improved Citations section of README (#2551). Added information
1895 about `link-citations` and a link to the pandoc-citeproc man page.
1897 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
1898 in base < 4.6.
1900 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
1902 * Improved implicit pandoc-citeproc inclusion.
1903 The filter pandoc-citeproc is automatically used when
1904 `--bibliography` is specified on the command line, unless
1905 `--natbib` or `--biblatex` is used. However, previously this
1906 only worked if `--bibliography` was spelled out in full, and not
1907 if `--biblio` was used.
1909 * reveal.js: Interpret pauses correctly for all headers (#2530).
1910 Previously, when using headers below the slide level, pauses are left
1911 uninterpreted into pauses. In my opinion, unexpected behavior but
1912 intentional looking at the code.
1914 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
1916 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
1917 Bieg, API change).
1919 * ImageSize: Added functions for converting between image dimensions
1920 (Mauro Bieg).
1922 * Use lts-3.18 in stack.yaml. This avoids Windows build
1923 issues with the HTTP library.
1925 * Bump version bounds for dependencies.
1927pandoc (1.15.2.1)
1929 * Added two missing test files, and `stack.yaml`, to
1930 `extra-source-files` so they're included in the source tarball.
1932 * reveal.js template: Fixed parallaxBackground options.
1933 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
1934 need integer values, not strings. (Vaughn Iverson)
1936pandoc (1.15.2)
1938 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
1939 ConTeXt rather than LaTeX (#2463).
1941 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
1943 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
1944 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
1945 (API change).
1947 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
1948 parsing (#2469). Tightened up the inline HTML parser so it disallows
1949 TagWarnings.
1951 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
1953 * Org reader:
1955 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
1956 Paragraphs can be followed by lists, even if there is no blank line
1957 between the two blocks. However, this should only be true if the
1958 paragraph is not within a list, were the preceding block should be
1959 parsed as a plain instead of paragraph (to allow for compact lists).
1960 Thanks to @rgaiacs for bringing this up.
1961 + Allow toggling header args (Albert Krewinkel, #2269).
1962 Org-mode allows to skip the argument of a code block header argument if
1963 it's toggling a value. Argument-less headers are now recognized,
1964 avoiding weird parsing errors.
1965 + Fix markup parsing in headers (Albert Krewinkel, #2504).
1966 Markup as the very first item in a header wasn't recognized. This was
1967 caused by an incorrect parser state: positions at which inline markup
1968 can start need to be marked explicitly by changing the parser state.
1969 This wasn't done for headers. The proper function to update the state
1970 is now called at the beginning of the header parser, fixing this issue.
1971 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
1972 Smart quotes, ellipses, and dashes should behave like normal quotes,
1973 single dashes, and dots with respect to text markup parsing.
1974 + Require whitespace around definition list markers (#2518).
1975 This rule was not checked before, resulting in bugs with footnotes
1976 and some link types.
1978 * Markdown reader:
1980 + Pipe tables with long lines now get relative cell widths (#2471).
1981 If a pipe table contains a line longer than the column width (as set by
1982 `--columns` or 80 by default), relative widths are computed based on the
1983 widths of the separator lines relative to the column width. This should
1984 solve persistent problems with long pipe tables in LaTeX/PDF output, and
1985 give more flexibility for determining relative column widths in other
1986 formats, too. For narrower pipe tables, column widths of 0 are used,
1987 telling pandoc not to specify widths explicitly in output formats that
1988 permit this.
1989 + Improved parser for `mmd_title_block`. We now allow blank metadata
1990 fields. These were explicitly disallowed before.
1991 + Citation keys can now contain `://`, so URLs and DOIs can be used
1992 as citation keys (jgm/pandoc-citeproc#166).
1994 * Beamer template: fix incompatibility of section slides with natbib.
1995 Natbib (and presumably biblatex) bibliography commands create
1996 their own section. Since these are in frame environments,
1997 we have an incompatibility with the `\AtBeginSection` macro
1998 which creates a special frame when a new section occurs.
1999 (We can't have a frame inside another frame.) This change disables
2000 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
2001 bringing the problem to my attention. This supersedes #145. See
2002 discussion there.
2004 * Textile reader: don't do smart punctuation unless explicitly asked
2005 (#2480). Note that although smart punctuation is part of the textile
2006 spec, it's not always wanted when converting from textile
2007 to, say, Markdown. So it seems better to make this an option.
2009 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
2010 The `comment` environment is handled in a similar way to the
2011 `verbatim` environment, except that its content is discarded.
2013 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
2014 Jesse Rosenthal). This fixes a problem with links in notes.
2016 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
2017 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
2018 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
2019 they aren’t set already. See #895.
2021 * LaTeX writer:
2023 + Use proper command for `\textarabic` (Mauro Bieg).
2024 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
2025 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
2026 to link to Div or Span elements. We now don't bother defining `\label`
2027 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
2028 + Avoid footnotes in list of figures (#1506).
2029 + Properly handle footnotes in captions (#1506).
2030 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
2031 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
2032 `toccolor` is set (#2508).
2034 * Textile writer: support start number in ordered lists (#2465).
2036 * OpenDocument writer: Allow customization of opendocument
2037 automatic styles. Automatic styles can now be inserted in the
2038 template, which now provides the enclosing `<office:automatic-styles>`
2039 tags (#2520).
2041 * Docx writer: insert space between footnote reference and note (#2527).
2042 This matches Word's default behavior.
2044 * EPUB writer: don't download linked media when `data-external` attribute
2045 set (#2473). By default pandoc downloads all linked media and includes it
2046 in the EPUB container. This can be disabled by setting `data-external` on
2047 the tags linking to media that should not be downloaded. Example:
2049 <audio controls="1">
2050 <source src="http://example.com/music/toccata.mp3"
2051 data-external="1" type="audio/mpeg">
2052 </source>
2053 </audio>
2055 * HTML writer: use width on whole table if col widths sum to < 100%.
2056 Otherwise some browsers display the table with the columns
2057 separated far apart.
2059 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
2060 `abstract` (Andrew Dunning).
2062 * HTML-based templates (Andrew Dunning):
2064 + Use en dash instead of hyphen between title prefix and title.
2065 + Add `keywords` to metadata.
2066 + Add `lang`, `dir`, `quotes` where missing.
2067 + Always make author and date display conditional.
2068 + Updated dzslides template from source.
2070 * Man template: make "generated by" comment conditional.
2072 * LaTeX, Beamer templates:
2074 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
2075 filled by commands that make babel understand the polyglossia-style
2076 language directives (Mauro Bieg, #137).
2077 + Improved formatting of conditionals; `$for$` is always provided to allow
2078 multiple options (Andrew Dunning, #141).
2079 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
2080 to improve support for LuaTeX (Andrew Dunning, #135).
2081 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
2082 - use same options for all LaTeX engines;
2083 - add `subtitle` and `keywords` to PDF metadata;
2084 - do not override `hyperref` link coloring without user input, effectively making
2085 the `hidelinks` option the default (removed as a separate variable);
2086 - link colors can be enabled (using a slightly darker version of the old
2087 defaults) using a new `colorlinks` variable, automatically used by
2088 the LaTeX writer when custom colors are specified;
2089 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
2090 `colorlinks`, and is only applied if `colorlinks` is disabled.
2092 * ConTeXt template (Andrew Dunning):
2094 + New variables for controlling styles: `linkstyle`, `linkcolor`,
2095 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
2096 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
2097 `monofont`, `mathfont`, `fontsize`.
2098 + Default template no longer supports MkII.
2099 + Improve writing of title block (suppressing numbering of first page).
2100 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
2101 + Support `subtitle`, `abstract`.
2102 + Support list of figures (`lof`), list of tables (`lot`).
2103 + Disable link styling by default.
2104 + Define styles for all section types.
2105 + Enable microtype.
2106 + Improved formatting of conditionals.
2108 * Beamer template: added code to prevent slide breaks inside paragraphs
2109 (#2422, thanks to Nick Bart). This will matter, in practice, only when
2110 `allowframebreaks` is used. It is especially helpful for bibliography
2111 slides.
2113 * OpenDocument template: Add `<office:automatic-styles>` tag around
2114 automatic styles. The writer now longer provides this (see #2520).
2116 * Restored Text.Pandoc.Compat.Monoid.
2118 * Do not export (<>) from custom Prelude. The Prelude now matches
2119 base 4.8 Prelude's API.
2121 * Don't use custom prelude with ghc 7.10. Use the custom prelude
2122 only for earlier versions. This change makes `stack ghci` and
2123 `cabal repl` work (#2503), at least with ghc 7.10.
2125 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
2126 This prevents problems building haddocks with "C" locale.
2128 * Change default for old-locale flag to False.
2130 * Use stack in deb, osx, and Windows package generators.
2132 * Added Vagrantfile for building deb in vm.
2133 This should help in automating binary package creation. 'make package'
2134 will make the package. 'make package COMMIT=blah' will make the package
2135 from commit blah.
2137 * README:
2139 + Consistent capitalization for pandoc and Markdown.
2140 + Fixed `auto_identifiers` examples (Benoit Schweblin).
2141 + Improved documentation of template variables (Andrew Dunning).
2143pandoc (1.15.1.1)
2145 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
2146 This way we have uniform separators, whether on Windows or Linux.
2147 This should solve a problem where on some Windows versions
2148 the data files weren't being found (#2459).
2150pandoc (1.15.1)
2152 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
2153 and reexported from `Text.Pandoc` (Alex Vong). This allows
2154 writers to access it. (Alex Vong) (API change)
2156 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
2157 `subscripts` (#2401).
2159 * Added `odt` as input format (Martin Linnemann). Added new module
2160 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
2161 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
2162 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
2163 Partly implemented features: Citations, Tables.
2165 * Markdown Reader:
2167 + Add basic tests for each header style (Ophir Lifshitz).
2168 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
2169 + Skip spaces in headers (Ophir Lifshitz).
2170 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
2171 `# Header {id="myid" class="foo bar"}`
2172 is now equivalent to `# Header {#myid .foo .bar}`.
2173 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
2174 (Kristof Bastiaensen)
2175 + Pipe tables: allow indented columns. Previously the left-hand column
2176 could not start with 4 or more spaces indent. This was inconvenient
2177 for right-aligned left columns. Note that the first (header column)
2178 must still have 3 or fewer spaces indentation, or the table will be
2179 treated as an indented code block.
2180 + Fix regression: allow HTML comments containing `--`.
2181 Technically this isn't allowed in an HTML comment, but
2182 we've always allowed it, and so do most other implementations.
2183 It is handy if e.g. you want to put command line arguments
2184 in HTML comments.
2186 * LaTeX reader:
2188 + Don't eat excess whitespace after macros with only optional
2189 arguments (#2446).
2190 + Support longtable (#2411).
2191 + Implement `\Cite` (#2335).
2192 + Support abstract environment. The abstract populates an
2193 `abstract` metadata field.
2194 + Properly handle booktabs lines. Lines aren't part of the
2195 pandoc table model, so we just ignore them (#2307).
2197 * HTML reader:
2199 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
2200 + Updated for new automatic header attributes.
2201 + Add auto identifiers if not present on headers. This makes
2202 TOC linking work properly.
2203 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
2204 + Test `<ol>` type, class, and inline list-style(-type) CSS
2205 (Ophir Lifshitz).
2206 + Better handling of "section" elements (#2438). Previously
2207 `<section>` tags were just parsed as raw HTML blocks. With
2208 this change, section elements are parsed as Div elements with
2209 the class "section".
2211 * MediaWiki reader: handle unquoted table attributes (#2355).
2213 * DocBook reader:
2215 + Added proper support for DocBook `xref` elements (Frerich Raabe).
2216 Added `dbContent` field to reader state, so we can lookup
2217 cross refs.
2218 + Handle `informalexample` (#2319).
2220 * Docx Reader:
2222 + Create special punctuation test (Ophir Lifshitz).
2223 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
2224 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
2225 in `headers.docx` with pandoc's current `styles.xml`, which
2226 contains styles for Heading 1 through 6. Added Heading 4
2227 through 7 to the test document. Note that Heading 7 is not
2228 parsed as a Heading because there is no Heading 7 style.
2230 * RST reader: better handling of indirect roles.
2231 Previously the parser failed on this kind of case
2233 .. role:: indirect(code)
2235 .. role:: py(indirect)
2236 :language: python
2238 :py:`hi`
2240 Now it correctly recognizes `:py:` as a code role.
2242 * Org reader:
2244 + Add auto identifiers if not present on headers
2245 (#2354, Juliusz Gonera).
2246 + Allow verse blocks to contain empty lines (#2402,
2247 Albert Krewinkel).
2249 * EPUB reader: stop mangling external URLs (#2284).
2251 * RST writer:
2253 + Don't insert `\ ` when complex expression in matched pairs.
2254 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
2255 + Ensure that `\ ` is inserted when needed before Cite and Span
2256 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
2257 + Normalize headers only in "standalone" mode (#2394).
2259 * Haddock writer: escape `*` and `^` (G. Bataille).
2261 * Markdown writer:
2263 + In TOC, add links to headers (#829).
2264 + Use unicode super/subscripts for digits in plain output
2265 (when the `superscripts` and `subscripts` extensions are
2266 not enabled).
2268 * Docx writer:
2270 + Moved invalid character stripping to `formattedString`.
2271 This avoids an inefficient generic traversal (#2356).
2272 + Use user data directory for `reference.docx` archive.
2273 This allows the test suite to work without installing pandoc first.
2274 It also brings the docx writer in line with the odt writer.
2275 + Tests: docx writer tests now use `../data` for data directory.
2276 This allows tests to be run without installing first.
2277 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
2279 * LaTeX writer:
2281 + Fixed detection of 'chapters' from template.
2282 If a documentclass isn't specified in metadata, but the
2283 template has a hardwired bookish documentclass, act as if
2284 `--chapters` was used. This was the default in earlier
2285 versions, but it has been broken for a little while.
2286 + Correctly recognize book documentclass in metadata (#2395).
2287 + Set language-related variables automatically, depending
2288 on the value of the `lang` field, which is now always
2289 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
2290 + Add `\protect` to `\hyperdef` in inline context. This way we
2291 don't get an error when this is used as a moveable argument (#2136).
2292 + Support all frame attributes in Beamer.
2293 + Percent-encode more special characters in URLs (#1640, #2377).
2294 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
2296 * HTML writer:
2298 + Update KaTeX JS and CSS versions (Emily Eisenberg).
2299 + For dzslides, add `role="note"` for speaker notes (#1693).
2300 + Percent-encode more special characters in URLs (#1640, #2377).
2301 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
2302 + Render Div with class `section` as `<section>` in HTML5.
2304 * EPUB writer:
2306 + In TOC, replace literal `<br/>` with space (#2105).
2307 + With `--webtex`, include image file rather than `data:` URI (#2363).
2309 * Native writer: format Div properly, with blocks separated.
2311 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
2312 (#2191, Mauro Bieg).
2314 * Reference Docx:
2316 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
2317 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
2319 * Templates
2321 + Beamer: Add `innertheme`, `outertheme` variables
2322 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
2323 Integrate recent font and language updates from LaTeX template;
2324 allow use of `mainfont` variable for changing the slide text
2325 in XeTeX and LuaTeX (Andrew Dunning, #131).
2326 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
2327 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
2328 (Andrew Dunning, #122). Support handling of bidirectional
2329 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
2330 under XeTeX and prevent letters and numbers from appearing on a
2331 different baseline by removing use of the `realscripts` package
2332 (via `xltxtra`). To restore use of OpenType characters for these
2333 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
2334 `header-includes` (Andrew Dunning, #130). Remove redundant
2335 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
2336 `indent`, `subparagraph` variables (Andrew Dunning).
2337 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
2338 #113). Prevent package clash with `tufte-latex` and other classes that
2339 include `hyperref` or `color` (Xavier Olive, #115).
2340 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
2341 + LaTeX and ConTeXt: Use more specific language variables.
2342 Instead of directly using `lang`, we now use `babel-lang` and
2343 `polyglossia-lang` and `context-lang`. These variables are set by
2344 the writers to the necessary values, based on the `lang` variable
2345 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
2346 #129).
2347 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
2348 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
2349 Add dir attribute in html5 (Andrew Dunning).
2350 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
2351 Add `width`, `height` variables (Andrew Dunning). Update template
2352 from 3.1 source (Andrew Dunning). All configuration options are now
2353 available as variables, but are only be included if set (reveal.js
2354 uses defaults otherwise).
2355 + man: Added comment stating that the page is autogenerated by pandoc,
2356 giving version. Added `adjusting` and `hyphenate` variables
2357 (Alex Vong, #123).
2359 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
2361 * MediaBag: ensure that `/` is always used as path separator.
2363 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
2365 * Added `--bash-completion` option. This generates a bash completion
2366 script. To use: `eval "$(pandoc --bash-completion)"`.
2368 * Text.Pandoc.Error: Define Typeable and Exception instances
2369 for PandocError (#2386).
2371 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
2372 This makes keys with extra space at the beginning and end
2373 work: e.g.
2375 [foo]: bar
2377 [ foo ]
2379 will now be a link to bar (it wasn't before).
2381 * Text.Pandoc: disable `auto_identifiers` for epub.
2382 The epub writer inserts its own auto identifiers;
2383 this is more complex due to splitting into "chapter" files.
2385 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
2386 It now reexports Data.Time.
2388 * Use custom Prelude to avoid compiler warnings.
2390 + The (non-exported) prelude is in prelude/Prelude.hs.
2391 + It exports Monoid and Applicative, like base 4.8 prelude,
2392 but works with older base versions.
2393 + It exports (<>) for mappend.
2394 + It hides 'catch' on older base versions.
2396 * Added a `stack.ymal` and stack install instructions to INSTALL.
2398 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
2400 * Added note to CONTRIBUTING.md about ghc versions and travis.
2402 * Clarify docs on block quotes. The space after `>` is optional (#2346).
2404 * Removed obsolete reference to default.csl (#2372).
2406 * List all styles in manual for `--reference-docx` (Chris Black)
2408 * Don't capitalize header links in man page.
2410 * Added section on repl to CONTRIBUTING.md.
2412 * README: Added space after backslash in image example (#2329).
2414 * Document details of citation locator terms (Nick Bart).
2416 * Fixed some internal links in README (#2309).
2418 * Improve CSL documentation, variables documentations,
2419 links, and cross-references in README. (Andrew Dunning)
2421 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
2423 * Use `newManager` instead of `withManager` in recent `http-client`.
2424 This avoids a deprecation warning.
2426 * Allow building with latest versions of http-types,
2427 HUnit, criterion, syb, aeson.
2429 * Updated benchmark program for new criterion API.
2431 * Setup.hs: rewrite so as not to use process, directory, filepath.
2432 Using anything outside base is dangerous, since older
2433 versions of ghc may link against two different versions.
2435 * Added appveyor (Windows continuous integration) builds.
2437 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
2438 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
2439 `make .travis.yml` regenerates it based on the tested-with
2440 field of the cabal file.
2442pandoc (1.15.0.6)
2444 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
2445 Previously `--self-contained` wiped out all spaces in CSS,
2446 including semantically significant spaces. This was a regression
2447 from 1.14.x.
2449 * Markdown reader: don't allow bare URI links or autolinks in link
2450 label (#2300). Added test cases.
2452 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
2453 Previously we disallowed `-` at the end of an autolink,
2454 and disallowed the combination `=-`. This commit liberalizes the
2455 rules for allowing punctuation in a bare URI, and adds test cases.
2456 One potential drawback is that you can no longer put a bare
2457 URI in em dashes like this:
2458 `this uri---http://example.com---is an example.`
2459 But in this respect we now match github's treatment of bare URIs.
2461 * HTML writer: support speaker notes in dzslides.
2462 With this change `<div class="notes">` and also `<div class="notes"
2463 role="note">` will be output if `-t dzslides` is used. So we can
2464 have speaker notes in dzslides too. Thanks to maybegeek.
2466 * Updated dzslides template.
2468 * Improved documentation of options to print system default files (#2298).
2469 `--print-default-data-file` and `--print-default-template`.
2471 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
2472 (Tiziano Müller). MathJax seems currently to be the only maintained
2473 math rendering extension for DokuWiki.
2475 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
2476 div as top-level header (#2294). This fixes a bug with `--section-divs`,
2477 where the final references section added by pandoc-citeproc, enclosed in
2478 its own div, got nested in the div for the section previous to it.
2480 * Allow vector 0.11.
2482 * Require cmark > 0.4.
2484pandoc (1.15.0.5)
2486 * HTML writer: Fixed email javascript obfuscation with `mailto:`
2487 URLs (#2280). This fixes a potential security issue. Because
2488 single quotes weren't being escaped in the link portion, a
2489 specially crafted email address could allow javascript code injection.
2491 * Markdown/HTML readers: Avoid parsing partial URLs like
2492 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
2494 * RST reader: allow inline formatting in definition list field
2495 names (Lars-Dominik Braun).
2497 * PDF: Make sure `--latex-engine-opt` goes before the filename
2498 on the command line. LaTeX needs the argument to come after
2499 the options (#1779).
2501 * CommonMark writer: fixed tags used for super/subscript.
2503 * ConTeXt template: activate hanging indent for definition lists
2504 (Mauro Bieg).
2506 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
2507 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
2508 to include `hsb2hs` in Build-Tools in cabal.
2510 * Improved Windows installer (thanks to nkalvi).
2512 + When per-machine installation is chosen, the system path
2513 is updated instead of the user's.
2514 + An appropriate default is used for per-machine installation
2515 directory.
2516 + Admin privileges are no longer required for a per-user install
2518 * Travis: unpack sdist for build to catch packaging bugs.
2520 * Improved documentation on where user templates go (#2272).
2522pandoc (1.15.0.4)
2524 * Added pandoc.1 man page to the repository. It is no longer
2525 built as part of the cabal build process. (This proved too
2526 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
2527 when `README` is changed.
2529 * Copying of the man page now respects `--destdir` (#2262).
2531 * Improved error messages for filters. User is now informed if
2532 the filter requires an interpreter that isn't found in the path,
2533 or if the filter returns an error status.
2535pandoc (1.15.0.3)
2537 * Ensure target directory is created when installing man page.
2539pandoc (1.15.0.2)
2541 * Added files needed for building man page to Extra-Source-Files.
2543pandoc (1.15.0.1)
2545 * Man page is now built and installed as part of the cabal build
2546 process. Removed Makefile target for man page.
2548pandoc (1.15)
2550 * Man page changes:
2552 + Removed `--man1`, `--man5` options (breaking change).
2553 + Removed `Text.Pandoc.ManPages` module (breaking API change).
2554 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
2555 create the man page from README using a custom template and filters.
2556 + Added `man/` directory with template and filters needed to build
2557 man page.
2558 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
2559 Now there is just pandoc.1, which has all the content from README.
2560 This change was needed because of the extensive cross-references
2561 between parts of the README.
2562 + Removed old `data/pandoc.1.template` and
2563 `data/pandoc_markdown.5.template`.
2565 * OpenDocument writer: Do not add a carriage return after a hard
2566 line break (Michael Chladek).
2568 * ConTeXt writer:
2570 + use `\goto` for internal links.
2571 + Added a `%` at end for `\reference` to avoid spurious space.
2573 * Ignore sandbox on 'make quick'
2575pandoc (1.14.1)
2577 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
2578 to generate its own man pages. Man pages are no longer automatically
2579 generated in the build process (the process for this was too complex
2580 and prone to failure, #2190). The `make-pandoc-man-pages` executable
2581 has been removed. The `man/` directory has been removed, and man page
2582 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
2583 longer find pandoc's man pages in `man/`, but you can generate them using
2584 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
2586 * Added new unexported module: `Text.Pandoc.ManPages`.
2588 * `README` now acts like a data file (even though it isn't in
2589 `data/`). So, for example, `pandoc --print-default-data-file README`
2590 will produce the README.) This change was required for the `--man1`
2591 and `--man5` options, since the man pages are produced from the
2592 README, but it may be useful for other purposes as well.
2594 * Allow `reference.docx` and `reference.odt` to be used with
2595 `--print-default-data-file` and to shadow defaults if placed in
2596 the user data directory. Note that as of 1.14, we no longer
2597 include these files as data files; instead, we include their
2598 components. This change causes pandoc to behave as if it has
2599 these data files; they are constructed on demand when needed
2600 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
2602 * Fixed regression in CSS parsing with `--self-contained` (#2224).
2603 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
2604 silently drops big sections of CSS. This commit replaces the
2605 use of css-text with a small but principled CSS preprocessor,
2606 which removes whitespace and comments and replaces `url()` with
2607 base 64 data when possible.
2609 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
2610 This will allow math to work when pages are being viewed locally.
2612 * `Text.Pandoc.Options`: Export `plainExtensions`.
2613 These are the extensions used in `plain` output.
2615 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
2616 math mode; treat them as regular inline text. Normally these will
2617 cause an error in LaTeX, but there are contexts (e.g. `alltt`
2618 environments) where they are allowed.
2620 * HTML reader: allow `<body>` to close `<head>`.
2622 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
2624 * RST reader: Fix reference names with special characters
2625 (Lars-Dominik Braun).
2627 * Textile writer: escape `+` and `-` as entities (#2225).
2629 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
2631 * Plain writer: don't use symbols for super/subscript (#2237).
2632 Simplified code by using `plainExtensions`.
2634 * InDesign writer: Properly escape URLs containing more than one
2635 colon character (gohai).
2637 * Docx writer: Make sure we use dist version of `reference.docx`
2638 (and not the user's version) for certain settings. Taking some
2639 settings values from a user-supplied reference.docx can lead to
2640 corruption. This fixes a regression from the last release (#2249).
2642 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
2643 `getDefaultReferenceODT` (API change). These functions have been
2644 removed from the Docx and ODT writers.
2646 * LaTeX template (Xavier Olive):
2647 + Added `CJKmainfont` and `CJKoptions` variables.
2648 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
2650 * Epub templates: use `author.role`, not `author.type`.
2652 * Bump cmark version to >= 0.3.4.
2654 * Improved Windows installer (#2205, thanks to nkalvi).
2655 Users can now select a per-user or systemwide install, and can set
2656 the installation path. At the end of installation, the install location
2657 is given. The install location is also now given in the list of
2658 installed programs in Control Panel. Cleaner WiX syntax is used for
2659 setting the path.
2661 * Added `download_stats` target to Makefile.
2663pandoc (1.14.0.4)
2665 * Added missing commonmark template.
2667 * Improved try pandoc (moved button, show raw command).
2669pandoc (1.14.0.3)
2671 * Allow compilation with syb 0.5.*.
2673 * Custom writer: fixed some compiler warnings for ghc < 7.10.
2675pandoc (1.14.0.2)
2677 * Allow building with hslua 0.4.
2679pandoc (1.14.0.1)
2681 * Fixed problem with building of `reference.docx` and `reference.odt`
2682 when the `embed_data_files` flag is used. Instead of having a phase
2683 of the build where `reference.docx` and `reference.odt` are created
2684 from their constituent data files, we now construct these archives
2685 from their constituents when a `docx` or `odt` is built. The
2686 constituent files have been moved from `extra-source-files` to
2687 `data-files`, and `reference.docx` and `reference.odt` have been
2688 removed. Users can create their own `reference.docx` or
2689 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
2690 `make-reference-files.hs` has been removed, simplifying the build
2691 process (#2187)
2693 * Don't include generated man pages in extra-source-files (#2189).
2695 * Bumped upper bound for aeson.
2697 * ConTeXt writer: create internal link anchors for Div elements with
2698 identifiers. (This is needed for linked citations to work.)
2700pandoc (1.14)
2702 [new features]
2704 * Added `commonmark` as input and output format.
2706 * Added `--verbose` flag for debugging output in PDF production (#1840,
2707 #1653).
2709 * Allow wildcards in `--epub-embed-font` arguments (#1939).
2711 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
2713 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
2714 This is enabled by default for those markdown flavors that
2715 support reading shortcut reference links, namely: `markdown`,
2716 `markdown_strict`, `markdown_github`, `markdown_php`.
2717 If the extension is enabled, the reader parses shortcut reference
2718 links like `[foo]`, and the writer creates such links unless doing
2719 so would cause problems. Users of markdown flavors that support
2720 shortcut reference links should not notice a difference in reading
2721 markdown, but the markdown pandoc produces may differ.
2722 If shortcut links are not desired, the extension can be disabled
2723 in the normal way.
2725 [behavior changes]
2727 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
2728 A "dirty" TOC is created at the beginning of document.
2729 It can be regenerated after the document has been opened.
2731 * An implicit `--filter pandoc-citeproc` is now triggered only when the
2732 `--bibliography` option is used, and not when the `bibliography`
2733 field in metadata is specified (#1849).
2735 * Markdown reader:
2737 + Reference links with `implicit_header_references` are no longer
2738 case-sensitive (#1606).
2739 + Definition lists no longer require indentation for first line (#2087).
2740 Previously the body of the definition (after the `:` or `~` marker)
2741 needed to be in column 4. This commit relaxes that requirement,
2742 to better match the behavior of PHP Markdown Extra. So, now
2743 this is a valid definition list:
2745 foo
2746 : bar
2747 + Resolve a potentially ambiguity with table captions:
2749 foo
2751 : bar
2753 -----
2754 table
2755 -----
2757 Is "bar" a definition, or the caption for the table? We'll count
2758 it as a caption for the table.
2759 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
2760 Markdown Extra. Note: If you have been using headerless pipe tables,
2761 this change may cause existing tables to break.
2762 + Allow pipe tables with header but no body (#2017).
2763 + Allow a digit as first character of a citation key (Matthias Troffaes).
2764 See https://github.com/jgm/pandoc-citeproc/issues/97
2766 * LaTeX reader:
2768 + Don't limit includes to `.tex` extension (#1882).
2769 If the extension is not `.tex`, it must be given explicitly in
2770 the `\input` or `\include`.
2772 * Docx reader:
2774 + Allow numbering in the style file. This allows inherited styles
2775 with numbering (lists) (Jesse Rosenthal).
2777 * Org reader:
2779 + Support smart punctuation (Craig Bosma).
2780 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
2781 `:noexport:` tag set are not exported. This mirrors org-mode.
2782 + Put header tags into empty spans (Albert Krewinkel, #2160).
2783 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
2784 Instead of being interpreted as part of the headline, the tags are now
2785 put into the attributes of empty spans. Spans without textual content
2786 won't be visible by default, but they are detectable by filters. They
2787 can also be styled using CSS when written as HTML.
2788 + Generalize code block result parsing (Albert Krewinkel).
2789 Previously, only code blocks were recognized as result blocks;
2790 now, any kind of block can be the result.
2792 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
2793 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
2795 * HTML writer:
2797 + Add "inline" or "display" class to math spans (#1914).
2798 This allows inline and display math to be styled differently.
2799 + Include raw latex blocks if `--mathjax` specified (#1938).
2800 + Require highlighting-kate >= 0.5.14 (#1903).
2801 This ensures that all code blocks will be wrapped in a `div`
2802 with class `sourceCode`. Also, the default highlighting CSS
2803 now adds `div.sourceCode { x-overflow: auto; }`, which means
2804 that code blocks (even with line numbers) will acquire a scroll
2805 bar on screens too small to display them (e.g. mobile phones).
2806 See also jgm/highlighting-kate#65.
2808 * LaTeX writer:
2810 + Use a declaration for tight lists (Jose Luis Duran, Joseph
2811 Harriott). Previously, pandoc hard-coded some commands to make
2812 tight lists in LaTeX. Now we use a custom command instead,
2813 allowing the styling to be changed in a macro in the header.
2814 (Note: existing templates may need to be modified to include
2815 the definition of this macro. See the current template.)
2816 + Beamer output: if the header introducing a slide has the
2817 class `fragile`, add the `[fragile]` option to the slide (#2119).
2819 * MediaWiki writer:
2821 + Use `File:` instead of the deprecated `Image:` for images and
2822 other media files (Greg Rundlett).
2824 * DocBook writer:
2826 + Render a `Div (id,_,_) [Para _]` element as a `para` element
2827 with an `id` attribute. This makes links to citations work in
2828 DocBook with pandoc-citeproc.
2830 * RST writer:
2832 + Normalize headings to sequential levels (Nikolay Yakimov).
2833 This is pretty much required by docutils.
2834 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
2835 + Better handling of raw latex inline (#1961). We use
2836 `` :raw-latex:`...` `` and add a definition for this role to
2837 the template.
2839 * EPUB writer:
2841 + Remove `linear=no` from cover `itemref` (#1609).
2842 + Don't use `sup` element for epub footnotes (#1995).
2843 Instead, just use an a element with class `footnoteRef`.
2844 This allows more styling options, and provides better results
2845 in some readers (e.g. iBooks, where anything inside the a
2846 tag breaks popup footnotes).
2847 + Take TOC title from `toc-title` metadata field.
2849 * Docx writer:
2851 + Implemented `FirstParagraph` style (Jesse Rosenthal).
2852 Following the ODT writer, we add the `FirstParagraph` style to the
2853 first text paragraph following an image, blockquote, table, heading,
2854 or beginning of document. This allows it to be styled differently.
2855 The default is for it to be the same as `Normal`.
2856 + Added `BodyText` style (Jesse Rosenthal).
2857 We apply a `BodyText` style to all unstyled paragraphs. This is,
2858 essentially, the same as `Normal`, except that since not everything
2859 inherits from `BodyText` (the metadata won't, for example, or
2860 the headers or footnote numbers), we can change the text in the body
2861 without having to make exceptions for everything. If we do want to
2862 change *everything*, we can still do it through `Normal`.
2863 + Altered `Blockquote` style slightly (Jesse Rosenthal).
2864 Since `BlockQuote` derives from `BodyText`, we just want to specify
2865 by default that it won't indent, regardless of what `BodyText` does.
2866 Note that this will not produce any visible difference in the default
2867 configuration.
2868 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
2869 + Added a style to figure images (Nikolay Yakimov).
2870 Figures with empty captions use style `Figure`.
2871 Figures with nonempty captions use style `Figure with Caption`, which
2872 is based on `Figure`, and additionally has `keepNext` set.
2874 * ODT writer:
2876 + Added figure captions (Nikolay Yakimov). The following styles are
2877 used for figures:
2878 `Figure` -- for figure with empty caption),
2879 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
2880 `FigureCaption` (based on `Caption`) -- for figure captions.
2881 Also, `TableCaption` (based on `Caption`) is used for table captions.
2883 [API changes]
2885 * New `Text.Pandoc.Error` module with `PandocError` type
2886 (Matthew Pickering).
2888 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
2889 (Matthew Pickering). This allows better handling of errors.
2891 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
2893 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
2895 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
2896 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
2897 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
2898 Youssefi).
2900 * New `Ext_shortcut_reference_links` constructor for `Extension`
2901 (Konstantin Zudov).
2903 [bug fixes]
2905 * Markdown reader:
2907 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
2908 + Check for tex macros after indented code (#1973).
2909 + Rewrote `charsInBalancedBrackets` for efficiency.
2910 + Make sure a closing `</div>` doesn't get included in a
2911 definition list item (#2127).
2912 + Don't parse bracketed text as citation if it might be a link,
2913 image, or footnote (Nikolay Yakimov).
2914 + Require space after key in mmd title block (#2026, Nikolay
2915 Yakimov). Require space after key-value delimiter colon in mmd title
2916 block.
2917 + Require nonempty value in mmd title block (Nikolay Yakimov).
2918 + Disable all metadata block extensions when parsing
2919 metadata field values (#2026, Nikolay Yakimov). Otherwise we
2920 could get a mmd title block inside YAML metadata, for example.
2922 * HTML reader:
2924 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
2925 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
2926 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
2927 to see if the input starts with `<!--`. If not, it's bogus comment
2928 mode and we fail `htmlTag`.
2929 + Handle `base` tag; if it has an `href` value, this is added to
2930 all relative URLs in links and images.
2932 * DocBook reader:
2934 + Look inside "info" elements for section titles (#1931).
2936 * Docx reader:
2938 + Parse images in deprecated vml format (Jesse Rosenthal).
2939 + Allow sub/superscript verbatims (Jesse Rosenthal).
2940 Verbatim usually shuts off all other run styles, but we don't want it
2941 to shut off sub/superscript.
2943 * LaTeX reader:
2945 + Handle `tabular*` environment (#1850).
2946 Note that the table width is not actually parsed or taken into
2947 account, but pandoc no longer chokes on it.
2948 + Ignore options in `\lstinline` rather than raising error (#1997).
2949 + Add some test cases for simple tables (Mathias Schenner).
2950 + Handle valign argument in tables (Mathias Schenner) (currently
2951 we just ignore this).
2952 + Allow non-empty colsep in tables (Mathias Schenner).
2953 The `tabular` environment allows non-empty column separators
2954 with the "@{...}" syntax. Previously, pandoc would fail to
2955 parse tables if a non-empty colsep was present. With this
2956 commit, these separators are still ignored, but the table gets
2957 parsed. A test case is included.
2958 + Recognize `\newpage` as a block command.
2959 + Allow block content in \title{} (#2001).
2960 + Check for block-level newcommand aliases in blockCommand (Nikolay
2961 Yakimov).
2962 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
2963 + Properly gobble spaces after `\\` (#2007).
2965 * Textile reader:
2967 + Handle newlines in table cells, and empty cells (#1919).
2969 * Org reader:
2971 + Allow image links with non-image targets (Hans-Peter Deifel).
2972 This matches behavior of Org-Mode for links like
2973 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
2975 * Docbook writer:
2977 + Don't print empty id attributes (thanks to Steve Horne).
2979 * HTML writer:
2981 + Fixed list-style-type for numbered example lists.
2982 Should be "decimal," not "example" (#1902).
2983 + Do not omit missing `alt` attribute on `img` tag (#1131,
2984 Konstantin Zudov).
2985 + Allow multiple colgroups in table (#2122).
2986 + In revealjs, ensure that lists in speaker notes don't add "fragment"
2987 classes, which can cause additional keypresses to be needed to
2988 advance a slide (#1394).
2990 * LaTeX writer:
2992 + Don't escape `$` in URL (#1913).
2993 + Don't use listings in headers (Matthew Pickering, #1963).
2994 + Recognize book documentclass if set in metadata (#1971).
2995 This sets `--chapters` implicitly if the documentclass in metadata
2996 is a book documentclass. Previously this was done only if a book
2997 documentclass was set in a variable.
2998 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
2999 + Make `mainlang` work when `lang` is in metadata (#2174).
3001 * Texinfo writer:
3003 + Fix wrapping by using breakable spaces (Tim Lin).
3005 * RST writer:
3007 + Fixed toc depth in RST writer. Previously the depth was being
3008 rendered as a floating point number with a decimal point.
3010 * Markdown writer:
3012 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
3013 compatibility with original Markdown. We now escape `<` and `>`
3014 with entities. Also, we now backslash-escape square brackets.
3015 + Avoid introducing spurious list items through wrapping (#1946).
3016 + Don't emit span tags if plain or raw HTML disabled.
3018 * MediaWiki writer:
3020 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
3022 * AsciiDoc writer:
3024 + Insert some needed blank lines (#1860).
3025 + Avoid wrapping after list marker (#1858).
3027 * EPUB writer:
3029 + Properly handle internal links to IDs in spans, divs (#1884).
3030 + Use plain writer for metadata dc: fields (#2121).
3031 This gives better results when we have, e.g. multiple paragraphs.
3032 Note that tags aren't allowed in these fields.
3033 + Properly handle image links without an extension (#1855).
3034 + Improved chapter splitting and internal link rewriting (#1887,
3035 #2162, #2163). This will ensure that internal links work and
3036 that the references section produced by pandoc-citeproc is
3037 in its own chapter.
3038 + Fixed handling of svg images (#2183).
3040 * ICML writer:
3042 + Better handling of raw blocks and inlines (#1951).
3043 Previously these were always escaped and printed verbatim.
3044 Now they are ignored unless the format is `icml`, in which
3045 case they are passed through unescaped.
3046 + Fixed image URIs in ICML output (gohai).
3048 * Custom writer:
3050 + Raise error if loadstring returns an error status.
3051 + Raise `PandocLuaException` instead of using 'error'.
3052 Eventually we'll change the return type so that no exception
3053 is involved, but at least this can be trapped.
3054 + Use UTF-8 aware bytestring conversion.
3055 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
3056 Also factored out ByteString, since it's only used as an intermediate
3057 representation.
3059 * Docx writer:
3061 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
3062 + Filter out illegal XML characters (#1992, Matthew Pickering).
3063 + Added `noProof` to docx syntax highlighting `SourceCode` style.
3064 + Added footnotes id -1 and 0 (Jesse Rosenthal).
3065 Word uses, by default, footnotes with id -1 and 0 for separators. If a
3066 user modifies `reference.docx`, they will end up with a `settings.xml`
3067 file that references these footnotes, but no such footnotes in the
3068 document. This will produce a corruption error. Here we add these to the
3069 document and `settings.xml` file, so future modifications won't break
3070 the file.
3071 + Handle lists correctly inside table cells (Jesse Rosenthal).
3072 Previously we didn't transform lists inside table cells.
3073 + Set firstRow information in tables (Nikolay Yakimov).
3074 + Don't replace `SourceCode` style in `reference.docx` if it is defined
3075 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
3076 any `SourceCode` and `*Tok` styles in `reference.docx`.
3077 + Attempt to match international style names (#1607, Nikolay Yakimov).
3078 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
3079 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
3080 `Definition`, `First Paragraph`.
3081 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
3082 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
3083 `Footnote Ref -> Footnote Reference`.
3084 + Added `Caption` style (Nikolay Yakimov).
3085 + Changed these styles' inheritance (Nikolay Yakimov):
3086 `Image Caption <- Caption`, `Table Caption <- Caption`.
3087 + Remove `SourceCode` style from `reference.docx` (#1872).
3088 This is added automatically by the docx writer.
3089 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
3091 * `Text.Pandoc.PDF`
3093 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
3094 #1832).
3095 + More comprehensible errors on image conversion (#2067).
3096 EPS can't be supported without shelling out to something like
3097 ImageMagick, but at least we can avoid mysterious error messages.
3099 * `Text.Pandoc.Shared`:
3101 + Make safeRead safe (#1801, Matthew Pickering).
3102 + Addded `mapLeft`, `hush` (Matthew Pickering).
3104 * `Text.Pandoc.Pretty`:
3106 + Remove partial function (Matthew Pickering).
3108 * `Text.Pandoc.SelfContained`:
3110 + Add `;charset=utf-8` to script mime type if missing (#1842).
3111 + Improved building of data URIs (#1940). Now base64 is used except
3112 for `text/*` mime types.
3113 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
3114 + Properly handle data URIs in css urls (#2129).
3115 Use a proper CSS parser (adds dependency on `text-css`).
3117 * `Text.Pandoc.UTF8`:
3119 + Better handling of bare CRs in input files (#2132).
3120 Previously we just stripped them out; now we convert
3121 other line ending styles to LF line endings.
3123 * `Text.Pandoc.ImageSize`:
3125 + Fixed some exif header parsing bugs (#1834).
3126 + Make imageSize return an Either, not a Maybe (#1834).
3127 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
3128 parse failure (rather than `error`).
3129 + Improved warnings when image size can't be determined.
3130 + Removed error landmines (Matthew Pickering).
3132 * Added woff2 to MIME types (Alfred Wechselberger).
3134 * pandoc: When a binary input format is used, warn that file
3135 arguments past the first one are being ignored (Matthew Pickering).
3137 [template changes]
3139 * LaTeX template:
3141 + Degrade gracefully if `\paragraph` not defined.
3142 + Include `grffile` together with `graphicx` (#2074).
3143 This properly handles filenames containing spaces and dots.
3144 + Redefine `\paragraph`, `\subparagraph`... to behave more
3145 like section headers (#1658).
3146 + Import hyperref before polyglossia to avoid an error with xelatex,
3147 "please load package hyperref before bidi package" (Nick Bart).
3148 + Added `toccolor` variable to control link color in toc (Kaixhin).
3150 * LaTeX, Beamer templates:
3152 + Provide `\tightlist`, which is now used by the LaTeX writer.
3153 + Use polyglossia in beamer (#85).
3154 + Use `bibliography` instead of `biblio-files`
3155 (#1661). Also use `\addbibresource` instead of `\bibliography` for
3156 biblatex.
3157 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
3158 variable that is derived from a comma-separated list in `lang`;
3159 the last language is `mainlang` and the others are `otherlang`.
3161 * EPUB templates:
3163 + Use `div`, not `p`, for "rights" on title page.
3164 + Added header-includes, include-before, include-after (#1987).
3166 * OpenDocument template:
3168 + Use `text:p` instead of `text:h` for title.
3169 Using `text:h` causes problems with numbering. Closes #2059.
3170 Thansk to @nkalvi for diagnosing this.
3172 * reveal.js template:
3174 + Link to non-minified css, js. The minified versions no longer
3175 ship with the library.
3176 + Correctly include style CSS (#1949).
3177 + New configurable options options: `center`, `maxScale`, `slideNuber`
3178 (Dmitry Smirnov, pandoc-templates#89).
3179 + Moved custom CSS after theme. This allows custom CSS to modify
3180 themes, instead of being replaced by them.
3181 + Allow `center` to be set to false.
3183 [under the hood improvements]
3185 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
3186 Yakimov). Instead the repository now includes the component text files,
3187 and the zipped binaries are built from these using a helper
3188 program, `make-reference-files`. This should make maintenance of
3189 these components easier going forward.
3191 * `Text.Pandoc.Parsing`:
3193 + Added new `<+?>` combinator (Nikolay Yakimov).
3194 + Added `stateHeaderKeys` to `ParserState`.
3196 * `make_deb.sh` fixes:
3198 + Detect architecture.
3199 + Add Installed-Size to debian package control file (#1900).
3200 + Use `fakeroot` to get permissions right.
3201 + Use `mkdir` and `cp` instead of `install`.
3202 + Set permissions of directories to 755.
3203 + Install in `/usr` rather than `/usr/local`.
3204 + Compress man pages.
3205 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
3207 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
3208 to assist with transition to `time` 1.5.
3210 * Updated CONTRIBUTING.md with information about issue tags (Matthew
3211 Pickering).
3213 * Updated travis installs to the new sudo-less syntax (Tim Lin).
3215 * Updated dependency version bounds.
3217 * EPUB tests: don't use `joinPath`, which varies across platforms.
3218 Instead, use a forward-slash to join paths, regardless of the
3219 platform. This matches the way `MediaBag` now works.
3221 * Clarify JSON input and output in usage message (Caleb McDaniel).
3223 * Improved INSTALL instructions.
3225 * Always build man pages. Removed make-pandoc-man-pages flag.
3227 * Makefile: removed man target, now that we generate man pages by default.
3229 * README:
3231 + Fixed typos (J. Lewis Muir).
3232 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
3233 + Added note on in-field markup in biblio databases (Nick Bart).
3234 + Fixed misleading example of raw HTML block.
3235 + Various minor formatting and consistency fixes for the program
3236 options (Andreas Lööw).
3237 + Made definition lists for options all "loose" for consistency.
3238 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
3239 `--bib2json` and `--bib2yaml` options (Nick Bart).
3240 + Removed obsolete reference to `mods2yaml` (Nick Bart).
3241 + Added section on syntax highlighting.
3242 + Documented `toccolor` variable.
3244pandoc (1.13.2.1)
3246 * Updated to build with ghc 7.10.1.
3248 * Bumped package upper bounds for filepath, blaze-html,
3249 blaze-markup.
3251pandoc (1.13.2)
3253 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
3255 * Markdown reader:
3257 + Better handling of paragraph in div (#1591).
3258 Previously text that ended a div would be parsed as Plain
3259 unless there was a blank line before the closing div tag.
3260 + Don't treat a citation as a reference link label (#1763).
3261 + Fix autolinks with following punctuation (#1811).
3262 The price of this is that autolinked bare URIs can no longer
3263 contain `>` characters, but this is not a big issue.
3264 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
3265 + Allow `startnum` to work without `fancy_lists`. Formerly
3266 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
3268 * RST reader (all Daniel Bergey):
3270 + Parse quoted literal blocks (#65). RST quoted literal blocks are
3271 the same as indented literal blocks (which pandoc already supports)
3272 except that the quote character is preserved in each line.
3273 + Parse RST class directives. The class directive accepts one or more
3274 class names, and creates a Div value with those classes. If the
3275 directive has an indented body, the body is parsed as the children of
3276 the Div. If not, the first block folowing the directive is made a
3277 child of the Div. This differs from the behavior of rst2xml, which
3278 does not create a Div element. Instead, the specified classes are
3279 applied to each child of the directive. However, most Pandoc Block
3280 constructors to not take an Attr argument, so we can't duplicate this
3281 behavior.
3282 + Warn about skipped directives.
3283 + Literal role now produces Code. Code role should have "code" class.
3284 + Improved support for custom roles
3286 - Added `sourceCode` to classes for `:code:` role, and anything
3287 inheriting from it.
3288 - Add the name of the custom role to classes if the Inline
3289 constructor supports Attr.
3290 - If the custom role directive does not specify a parent role,
3291 inherit from the `:span:` role.
3293 This differs somewhat from the `rst2xml.py` behavior. If a custom
3294 role inherits from another custom role, Pandoc will attach both
3295 roles' names as classes. `rst2xml.py` will only use the class of
3296 the directly invoked role (though in the case of inheriting from a
3297 `:code:` role with a `:language:` defined, it will also provide the
3298 inherited language as a class).
3299 + Warn about ignored fields in role directives.
3301 * LaTeX reader:
3303 + Parse label after caption into a span instead of
3304 inserting an additional paragraph of bracketed text (#1747).
3305 + Parse math environments as inline when possible (#1821).
3306 + Better handling of `\noindent` and `\greektext` (#1783).
3307 + Handle `\texorpdfstring` more gracefully.
3308 + Handle `\cref` and `\sep` (Wikiwide).
3309 + Support `\smartcite` and `\Smartcite` from biblatex.
3311 * HTML reader:
3313 + Retain display type of MathML output (#1719, Matthew Pickering).
3314 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
3315 + Make `embed` tag either block or inline (#1756).
3317 * DocBook reader:
3319 + Handle `keycombo`, `keycap` (#1815).
3320 + Get string content in inner tags for literal elements (#1816).
3321 + Handle `menuchoice` elements better, with a `>` between (#1817).
3322 + Include `id` on section headers (#1818).
3323 + Document/test "type" as implemented (Brian O'Sullivan).
3324 + Add support for calloutlist and callout (Brian O'Sullivan).
3325 We treat a calloutlist as a bulleted list. This works well in practice.
3326 + Add support for `classname` (Bryan O'Sullivan).
3328 * Docx reader:
3330 + Fix window path for image lookup (Jesse Rosenthal).
3331 Don't use os-sensitive "combine", since we always want the paths in our
3332 zip-archive to use forward-slashes.
3333 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
3334 When users number their headers, Word understands that as a single item
3335 enumerated list. We make the assumption that such a list is, in fact,
3336 a header.
3337 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
3338 There could be new top-level headers after making lists, so we have to
3339 rewrite links after that.
3340 + Use polyglot header list (Jesse Rosenthal).
3341 We're just keeping a list of header formats that different languages
3342 use as their default styles. At the moment, we have English, German,
3343 Danish, and French. We can continue to add to this.
3344 This is simpler than parsing the styles file, and perhaps less
3345 error-prone, since there seems to be some variations, even within a
3346 language, of how a style file will define headers.
3347 + Remove header class properly in other langs (Jesse Rosenthal).
3348 When we encounter one of the polyglot header styles, we want to remove
3349 that from the par styles after we convert to a header. To do that, we
3350 have to keep track of the style name, and remove it appropriately.
3351 + Account for external link URLs with anchors. Previously, if a URL
3352 had an anchor, the reader would incorrectly identify it as an
3353 internal link and return only the anchor as URL. (Caleb McDaniel)
3354 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
3356 * Org reader:
3358 + Added state changing blanklines (Jesse Rosenthal).
3359 This allows us to emphasize at the beginning of a new paragraph (or, in
3360 general, after blank lines).
3361 + Fixed bug with bulleted lists:
3363 - a
3364 - b
3365 * c
3367 was being parsed as a list, even though an unindented `*`
3368 should make a heading. See
3369 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
3370 + Org reader: absolute, relative paths in link (#1741, Albert
3371 Krewinkel). The org reader was too restrictive when parsing links;
3372 some relative links and links to files given as absolute paths
3373 were not recognized correctly.
3374 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
3375 This is important for use in gitit, which uses empty links
3376 for wikilinks.
3377 + Respect indent when parsing Org bullet lists (#1650, Timothy
3378 Humphries). Fixes issue with top-level bullet list parsing.
3379 + Fix indent issue for definition lists (Timothy Humphries,
3380 see #1650, #1698, #1680).
3381 + Parse multi-inline terms correctly in definition list (#1649,
3382 Matthew Pickering).
3383 + Fix rules for emphasis recognition (Albert Krewinkel).
3384 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
3385 strings. This is wrong, as `,` and `'` are forbidden border chars and
3386 may not occur on the inner border of emphasized text.
3387 + Drop COMMENT document trees (Albert Krewinkel).
3388 Document trees under a header starting with the word `COMMENT` are
3389 comment trees and should not be exported. Those trees are dropped
3390 silently (#1678).
3391 + Properly handle links to `file:target` (Albert Krewinkel).
3392 Org links like `[[file:target][title]]` were not handled correctly,
3393 parsing the link target verbatim. The org reader is changed such that
3394 the leading `file:` is dropped from the link target (see #756, #1812).
3395 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
3396 Org supports special symbols which can be included using LaTeX syntax,
3397 but are actually MathML entities. Examples for this are
3398 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
3399 or `\copy` (the copyright sign ©)
3401 * EPUB reader:
3403 + URI handling improvements. Now we outsource most of the work to
3404 `fetchItem'`. Also, do not include queries in file extensions (#1671).
3406 * LaTeX writer:
3408 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
3409 + Handle consecutive linebreaks (#1733).
3410 + Protect graphics in headers (Jesse Rosenthal).
3411 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
3412 + Put `~` before header in list item text (Jesse Rosenthal).
3413 Because of the built-in line skip, LaTeX can't handle a section header
3414 as the first element in a list item.
3415 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
3416 + Better handling of display math in simple tables (#1754).
3417 We convert display math to inline math in simple tables,
3418 since LaTeX can't deal with display math in simple tables.
3419 + Escape spaces in code (#1694, Bjorn Buckwalter).
3421 * MediaWiki writer:
3423 + Fixed links with URL = text. Previously these were rendered as bare
3424 words, even if the URL was not an absolute URL (#1825).
3426 * ICML writer:
3428 + Don't force all citations into footnotes.
3430 * RTF writer:
3432 + Add blankline at end of output (#1732, Matthew Pickering).
3434 * RST writer:
3436 + Ensure blank line after figure.
3437 + Avoid exces whitespace after last list item (#1777).
3438 + Wrap line blocks with spaces before continuations (#1656).
3439 + Fixed double-rendering of footnotes in RST tables (#1769).
3441 * DokuWiki writer:
3443 + Better handling of block quotes. This change ensures that
3444 multiple paragraph blockquotes are rendered using native `>`
3445 rather than as HTML (#1738).
3446 + Fix external images (#1739). Preface relative links with ":",
3447 absolute URIs without. (Timothy Humphries)
3449 * HTML writer:
3451 + Use protocol-relative URL for mathjax.
3452 + Put newline btw img and caption paragraph.
3453 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
3454 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
3455 This adds `KaTeX` to `HTMLMathMethod` (API change).
3456 + Don't double render when `email-obfuscation=none` (#1625, Matthew
3457 Pickering).
3458 + Make header attributes work outside top level (#1711).
3459 Previously they only appeared on top level header elements.
3460 Now they work e.g. in blockquotes.
3462 * ODT writer:
3464 + Correctly handle images without extensions (#1729).
3465 + Strip querystring in ODT write (#1682, Todd Sifleet).
3467 * FB2 writer:
3469 + Add newline to output.
3471 * EPUB writer:
3473 + Don't add `sourceURL` to absolute URIs (#1669).
3474 + Don't use unsupported `opf:title-type` for epub2.
3475 + Include "landmarks" section in nav document for epub3 (#1757).
3476 + Removed playOrder from navpoint elements in ncx file (#1760).
3477 These aren't required, and they make manual modification of epubs
3478 difficult.
3479 + Extract title even from structured title.
3480 + Don't include nav node in spine unless `--toc` was requested.
3481 Previously we included it in the spine with `linear="no"`, leading
3482 to odd results in some readers (#1593).
3483 + Fixed absolute URI detection (#1672).
3484 + Correctly resolve relative URIs (#1671).
3485 + Use regular page template for `nav.xhtml`, including doctype (#1759).
3487 * Docx writer:
3489 + Put docx table captions above tables (#1641, Nikolay Yakimov).
3490 + Get the page width from the reference docx file, and use
3491 it to scale images that are too large to fit (Grégory Bataille).
3492 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
3493 are inferred based on `<w:name val="heading #">` fallback, if there
3494 are no en-US "Heading#" styles
3495 + Look in user data dir for archive `reference.docx`.
3496 + Renumber header and footer relationships to avoid collisions (Jesse
3497 Rosenthal). We previously took the old relationship names of the
3498 headers and footer in secptr. That led to collisions. We now make
3499 a map of availabl names in the relationships file, and then rename
3500 in secptr.
3502 * ConTeXt writer:
3504 + Add function toLabel (Mark Szepieniec).
3505 This function can be used to sanitize reference labels so that
3506 they do not contain any of the illegal characters \#[]",{}%()|= .
3507 Currently only Links have their labels sanitized, because they
3508 are the only Elements that use passed labels.
3510 * `Text.Pandoc.Shared`:
3512 + Moved import of `toChunks` outside of CPP conditional (#1590).
3513 + Fix `inDirectory` to reset to the original directory in case
3514 an exception occurs (Freiric Barral).
3516 * Templates:
3518 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
3519 Thanks to bluebirch.
3520 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
3521 (#1616).
3522 + LaTeX template: Add shorthands=off to babel options (#1648).
3523 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
3524 This aids styling, making it possible for example to set 0 margins
3525 on the title page (#1758).
3526 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
3527 Previously we just expected 'title', 'subtitle', 'author', 'date'.
3528 Now we still support those, but also support the format recommended
3529 for epub metadata in the pandoc README:
3531 ---
3532 title:
3533 - type: main
3534 text: My Book
3535 - type: subtitle
3536 text: An investigation of metadata
3537 creator:
3538 - role: author
3539 text: John Smith
3540 - role: editor
3541 text: Sarah Jones
3542 identifier:
3543 - scheme: DOI
3544 text: doi:10.234234.234/33
3545 publisher: My Press
3546 rights: (c) 2007 John Smith, CC BY-NC
3547 ...
3549 * `Text.Pandoc.Templates.getDefaultTemplate`:
3550 don't fail when called with "fb2" (#1660).
3552 * `Text.Pandoc.Parsing`:
3554 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
3555 For example: `$x = \text{the $n$th root of $y$}` (#1677).
3556 + Change `parseFromString` to fail if not all input is consumed.
3557 (Matthew Pickering)
3558 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
3559 used by more readers (API change, Daniel Bergey).
3561 * `Text.Pandoc.Pretty`:
3563 + Improve performance of `realLength` (Matthew Pickering).
3564 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
3565 were getting at the end of markdown fragments (as well as rst, org,
3566 etc.) (#1705).
3568 * `Text.Pandoc.MIME`:
3570 + Add mime type for WebVTT (Jason Ronallo).
3571 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
3572 This is needed for epub3 validation.
3574 * `Text.Pandoc.MediaBag`:
3576 + Fix Windows specific path problems (#1597).
3578 * `Text.Pandoc.Shared`:
3580 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
3582 * Link the test suite using `-threaded`.
3583 This allows the test suite to be run using `+RTS -N`.
3585 * Added `network` dependency under `network-uri` flag in test section.
3587 * Give better error messages when someone tries to convert from
3588 pdf, doc, odt (#1683).
3590 * Added `track` to list of tags treated by `--self-contained` (#1664).
3592pandoc (1.13.1)
3594 * Fixed `--self-contained` with Windows paths (#1558).
3595 Previously `C:\foo.js` was being wrongly interpreted as a URI.
3597 * HTML reader: improved handling of tags that can be block or inline.
3598 Previously a section like this would be enclosed in a paragraph,
3599 with RawInline for the video tags (since video is a tag that can
3600 be either block or inline):
3602 <video controls="controls">
3603 <source src="../videos/test.mp4" type="video/mp4" />
3604 <source src="../videos/test.webm" type="video/webm" />
3605 <p>
3606 The videos can not be played back on your system.<br/>
3607 Try viewing on Youtube (requires Internet connection):
3608 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
3609 Youtube</a>.
3610 </p>
3611 </video>
3613 This change will cause the video and source tags to be parsed
3614 as RawBlock instead, giving better output.
3615 The general change is this: when we're parsing a "plain" sequence
3616 of inlines, we don't parse anything that COULD be a block-level tag.
3618 * Docx reader:
3620 + Be sensitive to user styles. Note that "Hyperlink" is
3621 "blacklisted," as we don't want the default underline styling to be
3622 inherited by all links by default (Jesse Rosenthal).
3623 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
3624 This makes to docx reader's native output fit with the way the markdown
3625 reader understands its markdown output.
3627 * Textile writer: Extended the range of cases where native textile
3628 tables will be used (as opposed to raw HTML): we now handle any
3629 alignment type, but only for simple tables with no captions.
3631 * Txt2Tags reader:
3633 + Header is now parsed only if standalone flag is set (Matthew Pickering).
3634 + The header is now parsed as meta information. The first line is the
3635 `title`, the second is the `author` and third line is the `date`
3636 (Matthew Pickering).
3637 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
3638 + Fixed crash when reading from stdin.
3640 * EPUB writer: Don't use page-progression-direction in EPUB2, which
3641 doesn't support it. Also, if page-progression-direction not specified
3642 in metadata, don't include the attribute even in EPUB3; not including it
3643 is the same as including it with the value "default", as we did before.
3644 (#1550)
3646 * Org writer: Accept example lines with indentation at the beginning
3647 (Calvin Beck).
3649 * DokuWiki writer:
3651 + Refactor to use Reader monad (Matthew Pickering).
3652 + Avoid using raw HTML in table cells; instead, use `\\`
3653 instead of newlines (Jesse Rosenthal).
3654 + Properly handle HTML table cell alignments, and use spacing
3655 to make the tables look prettier (#1566).
3657 * Docx writer:
3659 + Bibliography entries get `Bibliography` style (#1559).
3660 + Implement change tracking (Jesse Rosenthal).
3662 * LaTeX writer:
3664 + Fixed a bug that caused a table caption to repeat across all pages
3665 (Jose Luis Duran).
3666 + Improved vertical spacing in tables and made it customizable using
3667 standard lengths set by booktab. See
3668 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
3669 (Jose Luis Duran).
3670 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
3671 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
3672 + Made horizontal rules more flexible (Jose Luis Duran).
3674 * Text.Pandoc.MIME:
3676 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
3677 Code cleanups (Artyom Kazak).
3679 * Templates:
3681 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
3682 thanks lemzwerg).
3684 * Improved OSX build procedure.
3686 * Added `network-uri` flag, to deal with split of `network-uri` from
3687 `network`.
3689 * Fix build dependencies for the `trypandoc` flag, so that they are
3690 ignored if `trypandoc` flag is set to False (Gabor Pali).
3692 * Updated README to remove outdated claim that `--self-contained`
3693 looks in the user data directory for missing files.
3695pandoc (1.13.0.1)
3697 * Docx writer:
3699 + Fixed regression which bungled list numbering (#1544), causing
3700 all lists to appear as basic ordered lists.
3701 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
3702 Added a property to all table rows where the sum of column widths
3703 is specified in pct (fraction of 5000). This helps persuade Word
3704 to lay out the table with the widths we specify.
3706 * Fixed a bug in Windows 8 which caused pandoc not to find the
3707 `pandoc-citeproc` filter (#1542).
3709 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
3710 Most significantly, the reader now uses Builder, leading to some
3711 performance improvements.
3713 * HTML reader: Parse appropriately styled span as SmallCaps.
3715 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
3716 `superscript`, and `subscript` extensions, respectively, are
3717 deactivated (#1127).
3719 * Added `trypandoc` flag to build CGI executable used in the online
3720 demo.
3722 * Makefile: Added 'quick', 'osxpkg' targets.
3724 * Updated README in templates to indicate templates license.
3725 The templates are dual-licensed, BSD3 and GPL2+.
3727pandoc (1.13)
3729 [new features]
3731 * Added `docx` as an input format (Jesse Rosenthal). The docx
3732 reader includes conversion of native Word equations to pandoc
3733 LaTeX `Math` elements. Metadata is taken from paragraphs at the
3734 beginning of the document with styles `Author`, `Title`, `Subtitle`,
3735 `Date`, and `Abstract`.
3737 * Added `epub` as an input format (Matthew Pickering). The epub
3738 reader includes conversion of MathML to pandoc LaTeX `Math`
3739 elements.
3741 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
3742 Txt2tags is a lightweight markup format described at
3743 <http://txt2tags.org/>.
3745 * Added `dokuwiki` as an output format (Clare Macrae).
3747 * Added `haddock` as an output format.
3749 * Added `--extract-media` option to extract media contained in a zip
3750 container (docx or epub) while adjusting image paths to point to the
3751 extracted images.
3753 * Added a new markdown extension, `compact_definition_lists`, that
3754 restores the syntax for definition lists of pandoc 1.12.x, allowing
3755 tight definition lists with no blank space between items, and
3756 disallowing lazy wrapping. (See below under behavior changes.)
3758 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
3760 * Added extensions `native_spans` and `native_divs` to activate
3761 parsing of material in HTML span or div tags as Pandoc Span
3762 inlines or Div blocks.
3764 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
3765 Textile, and MediaWiki readers. This is an option intended
3766 for debugging parsing problems; ordinary users should not need
3767 to use it.
3769 [behavior changes]
3771 * Changed behavior of the `markdown_attribute` extension, to bring
3772 it in line with PHP markdown extra and multimarkdown. Setting
3773 `markdown="1"` on an outer tag affects all contained tags,
3774 recursively, until it is reversed with `markdown="0"` (#1378).
3776 * Revised markdown definition list syntax (#1429). Both the reader
3777 and writer are affected. This change brings pandoc's definition list
3778 syntax into alignment with that used in PHP markdown extra and
3779 multimarkdown (with the exception that pandoc is more flexible about
3780 the definition markers, allowing tildes as well as colons). Lazily
3781 wrapped definitions are now allowed. Blank space is required
3782 between list items. The space before a definition is used to determine
3783 whether it is a paragraph or a "plain" element. **WARNING: This change
3784 may break existing documents!** Either check your documents for
3785 definition lists without blank space between items, or use
3786 `markdown+compact_definition_lists` for the old behavior.
3788 * `.numberLines` now works in fenced code blocks even if no language
3789 is given (#1287, jgm/highlighting-kate#40).
3791 * Improvements to `--filter`:
3793 + Don't search PATH for a filter with an explicit path.
3794 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
3795 the system path, even if there was a `caps.py` in the working directory.
3796 + Respect shebang if filter is executable (#1389).
3797 + Don't print misleading error message.
3798 Previously pandoc would say that a filter was not found,
3799 even in a case where the filter had a syntax error.
3801 * HTML reader:
3803 + Parse `div` and `span` elements even without `--parse-raw`,
3804 provided `native_divs` and `native_spans` extensions are set.
3805 Motivation: these now generate native pandoc Div and Span
3806 elements, not raw HTML.
3807 + Parse EPUB-specific elements if the `epub_html_exts`
3808 extension is enabled. These include `switch`, `footnote`,
3809 `rearnote`, `noteref`.
3811 * Org reader:
3813 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
3814 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
3815 `\cite{Coffee}`), can be used without any further escaping (Albert
3816 Krewinkel).
3818 * Textile reader and writer:
3820 + The `raw_tex` extension is no longer set by default. You can
3821 enable it with `textile+raw_tex`.
3823 * DocBook reader:
3825 + Support `equation`, `informalequation`, `inlineequation` elements with
3826 `mml:math` content. This is converted into LaTeX and put into a Pandoc
3827 Math inline.
3829 * Revised `plain` output, largely following the style of Project
3830 Gutenberg:
3832 + Emphasis is rendered with `_underscores_`, strong emphasis
3833 with ALL CAPS.
3834 + Headings are rendered differently, with space to set them off,
3835 not with setext style underlines. Level 1 headers are ALL CAPS.
3836 + Math is rendered using unicode when possible, but without the
3837 distracting emphasis markers around variables.
3838 + Footnotes use a regular `[n]` style.
3840 * Markdown writer:
3842 + Horizontal rules are now a line across the whole page.
3843 + Prettier pipe tables. Columns are now aligned (#1323).
3844 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
3845 no longer emits any raw HTML, including span and div tags
3846 generated by Span and Div elements.
3847 + Use span with style for `SmallCaps` (#1360).
3849 * HTML writer:
3851 + Autolinks now have class `uri`, and email autolinks have class
3852 `email`, so they can be styled.
3854 * Docx writer:
3856 + Document formatting is carried over from `reference.docx`.
3857 This includes margins, page size, page orientation, header,
3858 and footer, including images in headers and footers.
3859 + Include abstract (if present) with `Abstract` style (#1451).
3860 + Include subtitle (if present) with `Subtitle` style, rather
3861 than tacking it on to the title (#1451).
3863 * Org writer:
3865 + Write empty span elements with an id attribute as org anchors.
3866 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
3868 * LaTeX writer:
3870 + Put table captions above tables, to match the conventional
3871 standard. (Previously they appeared below tables.)
3872 + Use `\(..\)` instead of `$..$` for inline math (#1464).
3873 + Use `\nolinkurl` in email autolinks. This allows them to be styled
3874 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
3875 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
3876 curly quotes in the PDF output (#1364).
3877 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
3878 do not appear before the overlays in which their markers appear
3879 (#1525).
3880 + Don't produce a `\label{..}` for a Div or Span element. Do produce
3881 a `\hyperdef{..}` (#1519).
3883 * EPUB writer:
3885 + If the metadata includes `page-progression-direction` (which can be
3886 `ltr` or `rtl`, the `page-progression-direction` attribute will
3887 be set in the EPUB spine (#1455).
3889 * Custom lua writers:
3891 + Custom writers now work with `--template`.
3892 + Removed HTML header scaffolding from `sample.lua`.
3893 + Made citation information available in lua writers.
3895 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
3896 adjacent `RawBlock`s when possible.
3898 [API changes]
3900 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
3902 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
3903 Pickering).
3905 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
3906 Pickering).
3908 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
3909 (Clare Macrae).
3911 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
3913 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
3914 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
3915 readers return a pair of a `Pandoc` document and a `MediaBag` with
3916 the media resources they contain. This can be extracted using
3917 `--extract-media`. Writers that incorporate media (PDF, Docx,
3918 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
3919 for resources in the `MediaBag` generated by the reader, in addition to
3920 the file system or web.
3922 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
3923 Renamed `readTeXMath'` to `texMathToInlines`.
3925 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
3926 `readers` now associates names of readers with `Reader`
3927 structures. This allows inclusion of readers, like the docx
3928 reader, that take binary rather than textual input.
3930 * `Text.Pandoc.Shared`:
3932 + Added `capitalize` (Artyom Kazak), and replaced uses of
3933 `map toUpper` (which give bad results for many languages).
3934 + Added `collapseFilePath`, which removes intermediate `.` and
3935 `..` from a path (Matthew Pickering).
3936 + Added `fetchItem'`, which works like `fetchItem` but searches
3937 a `MediaBag` before looking on the net or file system.
3938 + Added `withTempDir`.
3939 + Added `removeFormatting`.
3940 + Added `extractSpaces` (from HTML reader) and generalized its type
3941 so that it can be used by the docx reader (Matthew Pickering).
3942 + Added `ordNub`.
3943 + Added `normalizeInlines`, `normalizeBlocks`.
3944 + `normalize` is now `Pandoc -> Pandoc` instead of
3945 `Data a :: a -> a`. Some users may need to change their uses of
3946 `normalize` to the newly exported `normalizeInlines` or
3947 `normalizeBlocks`.
3949 * `Text.Pandoc.Options`:
3951 + Added `writerMediaBag` to `WriterOptions`.
3952 + Removed deprecated and no longer used `readerStrict` in
3953 `ReaderOptions`. This is handled by `readerExtensions` now.
3954 + Added `Ext_compact_definition_lists`.
3955 + Added `Ext_epub_html_exts`.
3956 + Added `Ext_native_divs` and `Ext_native_spans`.
3957 This allows users to turn off the default pandoc behavior of
3958 parsing contents of div and span tags in markdown and HTML
3959 as native pandoc Div blocks and Span inlines.
3961 * `Text.Pandoc.Parsing`:
3963 + Generalized `readWith` to `readWithM` (Matthew Pickering).
3964 + Export `runParserT` and `Stream` (Matthew Pickering).
3965 + Added `HasQuoteContext` type class (Matthew Pickering).
3966 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
3967 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
3968 `applyMacros` (Matthew Pickering).
3969 + Added custom `token` (Matthew Pickering).
3970 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
3971 track of the ending tag we're waiting for when we're parsing inside
3972 HTML block tags.
3973 + Added `stateMarkdownAttribute` to `ParserState`. This is used
3974 to keep track of whether the markdown attribute has been set in
3975 an enclosing tag.
3976 + Generalized type of `registerHeader`, using new type classes
3977 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
3978 Pickering). These allow certain common functions to be reused
3979 even in parsers that use custom state (instead of `ParserState`),
3980 such as the MediaWiki reader.
3981 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
3982 and generalized their types (Matthew Pickering).
3984 * `Text.Pandoc.Pretty`:
3986 + Added `nestle`.
3987 + Added `blanklines`, which guarantees a certain number of blank lines
3988 (and no more).
3990 [bug fixes]
3992 * Markdown reader:
3994 + Fixed parsing of indented code in list items. Indented code
3995 at the beginning of a list item must be indented eight spaces
3996 from the margin (or edge of the container), or four spaces
3997 from the list marker, whichever is greater.
3998 + Fixed small bug in HTML parsing with `markdown_attribute`, which
3999 caused incorrect tag nesting for input like
4000 `<aside markdown="1">*hi*</aside>`.
4001 + Fixed regression with intraword underscores (#1121).
4002 + Improved parsing of inline links containing quote characters (#1534).
4003 + Slight rewrite of `enclosure`/`emphOrStrong` code.
4004 + Revamped raw HTML block parsing in markdown (#1330).
4005 We no longer include trailing spaces and newlines in the
4006 raw blocks. We look for closing tags for elements (but without
4007 backtracking). Each block-level tag is its own `RawBlock`;
4008 we no longer try to consolidate them (though `--normalize` will do so).
4009 + Combine consecutive latex environments. This helps when you have
4010 two minipages which can't have blank lines between them (#690, #1196).
4011 + Support smallcaps through span.
4012 `<span style="font-variant:small-caps;">foo</span>` will be
4013 parsed as a `SmallCaps` inline, and will work in all output
4014 formats that support small caps (#1360).
4015 + Prevent spurious line breaks after list items (#1137). When the
4016 `hard_line_breaks` option was specified, pandoc would formerly
4017 produce a spurious line break after a tight list item.
4018 + Fixed table parsing bug (#1333).
4019 + Handle `c++` and `objective-c` as language identifiers in
4020 github-style fenced blocks (#1318).
4021 + Inline math must have nonspace before final `$` (#1313).
4023 * LaTeX reader:
4025 + Handle comments at the end of tables. This resolves the issue
4026 illustrated in <http://stackoverflow.com/questions/24009489>.
4027 + Correctly handle table rows with too few cells. LaTeX seems to
4028 treat them as if they have empty cells at the end (#241).
4029 + Handle leading/trailing spaces in `\emph` better.
4030 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
4031 so that we don't get things like `* hi *` in markdown output.
4032 Also applies to `\textbf` and some other constructions (#1146).
4033 + Don't assume preamble doesn't contain environments (#1338).
4034 + Allow (and discard) optional argument for `\caption` (James Aspnes).
4036 * HTML reader:
4038 + Fixed major parsing problem with HTML tables. Table cells were
4039 being combined into one cell (#1341).
4040 + Fixed performance issue with malformed HTML tables.
4041 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
4042 + Allow space between `<col>` and `</col>`.
4043 + Added `audio` and `source` in `eitherBlockOrInline`.
4044 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
4045 `blockTags` to `eitherBlockOrInline`.
4046 + `map` and `object` were mistakenly in both lists; they have been removed
4047 from `blockTags`.
4048 + Ignore `DOCTYPE` and `xml` declarations.
4050 * MediaWiki reader:
4052 + Don't parse backslash escapes inside `<source>` (#1445).
4053 + Tightened up template parsing.
4054 The opening `{{` must be followed by an alphanumeric or `:`.
4055 This prevents the exponential slowdown in #1033.
4056 + Support "Bild" for images.
4058 * DocBook reader:
4060 + Better handle elements inside code environments. Pandoc's document
4061 model does not allow structure inside code blocks, but at least this way
4062 we preserve the text (#1449).
4063 + Support `<?asciidoc-br?>` (#1236).
4065 * Textile reader:
4067 + Fixed list parsing. Lists can now start without an intervening
4068 blank line (#1513).
4069 + HTML block-level tags that do not start a line are parsed as
4070 inline HTML and do not interrupt paragraphs (as in RedCloth).
4072 * Org reader:
4074 + Make tildes create inline code (#1345). Also relabeled `code` and
4075 `verbatim` parsers to accord with the org-mode manual.
4076 + Respect `:exports` header argument in code blocks (Craig Bosma).
4077 + Fixed tight lists with sublists (#1437).
4079 * EPUB writer:
4081 + Avoid excess whitespace in `nav.xhtml`. This should improve
4082 TOC view in iBooks (#1392).
4083 + Fixed regression on cover image.
4084 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
4085 because the metadata id was not correct. Now we derive the id from the
4086 actual cover image filename, which we preserve rather than using
4087 "cover-image."
4088 + Keep newlines between block elements. This allows
4089 easier diff-ability (#1424).
4090 + Use `stringify` instead of custom `plainify`.
4091 + Use `renderTags'` for all tag rendering. This properly handles tags
4092 that should be self-closing. Previously `<hr/>` would appear in EPUB
4093 output as `<hr></hr>` (#1420).
4094 + Better handle HTML media tags.
4095 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
4096 can have only one dc:date, so only the first one is used.
4098 * LaTeX writer:
4100 + Correctly handle figures in notes. Notes can't contain figures in
4101 LaTeX, so we fake it to avoid an error (#1053).
4102 + Fixed strikeout + highlighted code (#1294).
4103 Previously strikeout highlighted code caused an error.
4105 * ConTeXt writer:
4107 + Improved detection of autolinks with URLs containing escapes.
4109 * RTF writer:
4111 + Improved image embedding: `fetchItem'` is now used to get the
4112 images, and calculated image sizes are indicated in the RTF.
4113 + Avoid extra paragraph tags in metadata (#1421).
4115 * HTML writer:
4117 + Deactivate "incremental" inside slide speaker notes (#1394).
4118 + Don't include empty items in the table of contents for
4119 slide shows. (These would result from creating a slide
4120 using a horizontal rule.)
4122 * MediaWiki writer:
4124 + Minor renaming of `st` prefixed names.
4126 * AsciiDoc writer:
4128 + Double up emphasis and strong emphasis markers in intraword
4129 contexts, as required by asciidoc (#1441).
4131 * Markdown writer:
4133 + Avoid wrapping that might start a list, blockquote, or header (#1013).
4134 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
4135 + Don't use braced attributes for fenced code (#1416).
4136 If `Ext_fenced_code_attributes` is not set, the first class
4137 attribute will be printed after the opening fence as a bare word.
4138 + Separate adjacent lists of the same kind with an HTML comment (#1458).
4140 * PDF writer:
4142 + Fixed treatment of data uris for images (#1062).
4144 * Docx writer:
4146 + Use Compact style for empty table cells (#1353).
4147 Otherwise we get overly tall lines when there are empty
4148 table cells and the other cells are compact.
4149 + Create overrides per-image for `media/` in reference docx.
4150 This should be somewhat more robust and cover more types of images.
4151 + Improved `entryFromArchive` to avoid an unneeded parse.
4152 + Section numbering carries over from reference.docx (#1305).
4153 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
4154 we assign numbers based on the list marker styles.
4156 * `Text.Pandoc.Options`:
4158 + Removed `Ext_fenced_code_attributes` from `markdown_github`
4159 extensions.
4161 * `Text.Pandoc.ImageSize`:
4163 + Use default instead of failing if image size not found
4164 in exif header (#1358).
4165 + ignore unknown exif header tag rather than crashing.
4166 Some images seem to have tag type of 256, which was causing
4167 a runtime error.
4169 * `Text.Pandoc.Shared`:
4171 + `fetchItem`: unescape URI encoding before reading local file (#1427).
4172 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
4173 doing mime lookup, to improve mime type guessing.
4174 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
4175 other things are treated as relative URIs if `sourceURL` is `Just _`,
4176 otherwise as file paths on the local file system.
4177 + `fetchItem` now properly handles links without a protocol (#1477).
4178 + `fetchItem` now escapes characters not allowed in URIs before trying
4179 to parse the URIs.
4180 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
4182 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
4183 needed to resolve relative URLs when we fetch resources (#750).
4185 * `Text.Pandoc.Parsing`
4187 + Simplified `dash` and `ellipsis` (#1419).
4188 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
4189 + Generalized functions to use `ParsecT` (Matthew Pickering).
4190 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
4191 Pickering).
4193 [template changes]
4195 * Added haddock template.
4196 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
4197 be "advisory" in HTML5, but kindlegen seems to require them.
4198 * EPUB3: Put title page in section with `epub:type="titlepage"`.
4199 * LaTeX: Made `\subtitle` work properly (#1327).
4200 * LaTeX/Beamer: remove conditional around date (#1321).
4201 * LaTeX: Added `lot` and `lof` variables, which can be set to
4202 get `\listoftables` and `\listoffigures` (#1407). Note that
4203 these variables can be set at the command line with `-Vlot -Vlof`
4204 or in YAML metadata.
4206 [under the hood improvements]
4208 * Rewrote normalize for efficiency (#1385).
4210 * Rewrote Haddock reader to use `haddock-library` (#1346).
4212 + This brings pandoc's rendering of haddock markup in line
4213 with the new haddock.
4214 + Fixed line breaks in `@` code blocks.
4215 + alex and happy are no longer build-depends.
4217 * Added `Text.Pandoc.Compat.Directory` to allow building against
4218 different versions of the `directory` library.
4220 + Added `Text.Pandoc.Compat.Except` to allow building against
4221 different verions of `mtl`.
4223 * Code cleanup in some writers, using Reader monad to avoid
4224 passing options parameter around (Matej Kollar).
4226 * Improved readability in `pandoc.hs`.
4228 * Miscellaneous code cleanups (Artyom Kazak).
4230 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
4231 Thompson).
4233 * Changed `http-conduit` flag to `https`. Depend on `http-client`
4234 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
4235 depends on `conduit` via `yaml`.)
4237 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
4238 This change to highlighting-kate means that PHP fragments no longer need
4239 to start with `<?php`. It also fixes a serious bug causing failures with
4240 ocaml and fsharp.
4242 * Require latest `texmath`. This fixes `\tilde{E}` and allows
4243 `\left` to be used with `]`, `)` etc. (#1319), among many other
4244 improvements.
4246 * Require latest `zip-archive`. This has fixes for unicode path names.
4248 * Added tests for plain writer.
4250 * `Text.Pandoc.Templates`:
4252 + Fail informatively on template syntax errors.
4253 With the move from parsec to attoparsec, we lost good error
4254 reporting. In fact, since we weren't testing for end of input,
4255 malformed templates would fail silently. Here we revert back to
4256 Parsec for better error messages.
4257 + Use `ordNub` (#1022).
4259 * Benchmarks:
4261 + Made benchmarks compile again (Artyom Kazak).
4262 + Fixed so that the failure of one benchmark does not prevent others
4263 from running (Artyom Kazak).
4264 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
4265 + Changed benchmark to use only the test suite, so that benchmarks
4266 run more quickly.
4268 * Windows build script:
4270 + Add `-windows` to file name.
4271 + Use one install command for pandoc, pandoc-citeproc.
4272 + Force install of pandoc-citeproc.
4274 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
4275 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
4276 will extract it into a folder named `SOMETHING.pkg`, which it
4277 will interpret as a defective package (#1308).
4279 * `README`:
4281 + Made headers for all extensions so they have IDs and can be
4282 linked to (Beni Cherniavsky-Paskin).
4283 + Fixed typos (Phillip Alday).
4284 + Fixed documentation of attributes (#1315).
4285 + Clarified documentation on small caps (#1360).
4286 + Better documentation for `fenced_code_attributes` extension
4287 (Caleb McDaniel).
4288 + Documented fact that you can put YAML metadata in a separate file
4289 (#1412).
4292pandoc (1.12.4.2)
4294 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
4296 * Shared: `addMetaValue` now behaves slightly differently:
4297 if both the new and old values are lists, it concatenates their
4298 contents to form a new list.
4300 * LaTeX reader:
4302 + Set `bibliography` in metadata from `\bibliography` or
4303 `\addbibresource` command.
4304 + Don't error on `%foo` with no trailing newline.
4306 * Org reader:
4308 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
4309 + Fix parsing of blank lines within blocks (Albert Krewinkel).
4310 + Support pandoc citation extension (Albert Krewinkel). This can
4311 be turned off by specifying `org-citations` as the input format.
4313 * Markdown reader:
4315 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
4316 other readers (Albert Krewinkel).
4318 * `Text.Pandoc.Parsing`:
4320 + Added `citeKey` (see above).
4321 + Added `HasLastStrPosition` type class and `updateLastStrPos`
4322 and `notAfterString` functions.
4324 * Updated copyright notices (Albert Krewinkel).
4326 * Added default.icml to data files so it installs with the package.
4328 * OSX package:
4330 + The binary is now built with options to ensure that it can be
4331 used with OSX 10.6+.
4332 + Moved OSX package materials to osx directory.
4333 + Added OSX package uninstall script, included in the zip container
4334 (thanks to Daniel T. Staal).
4336pandoc (1.12.4)
4338 * Made it possible to run filters that aren't executable (#1096).
4339 Pandoc first tries to find the executable (searching the path
4340 if path isn't given). If it fails, but the file exists and has
4341 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
4342 using the appropriate interpreter. This should make it easier to
4343 use filters on Windows, and make it more convenient for everyone.
4345 * Added Emacs org-mode reader (Albert Krewinkel).
4347 * Added InDesign ICML Writer (Mauro Bieg).
4349 * MediaWiki reader:
4351 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
4352 + Fixed bug in certain nested lists (#1213). If a level 2 list was
4353 followed by a level 1 list, the first item of the level 1 list
4354 would be lost.
4355 + Handle table rows containing just an HTML comment (#1230).
4357 * LaTeX reader:
4359 + Give better location information on errors, pointing to line
4360 numbers within included files (#1274).
4361 + LaTeX reader: Better handling of `table` environment (#1204).
4362 Positioning options no longer rendered verbatim.
4363 + Better handling of figure and table with caption (#1204).
4364 + Handle `@{}` and `p{length}` in tabular. The length is not actually
4365 recorded, but at least we get a table (#1180).
4366 + Properly handle `\nocite`. It now adds a `nocite` metadata
4367 field. Citations there will appear in the bibliography but not
4368 in the text (unless you explicitly put a `$nocite$` variable
4369 in your template).
4371 * Markdown reader:
4373 + Ensure that whole numbers in YAML metadata are rendered without
4374 decimal points. (This became necessary with changes to aeson
4375 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
4376 + Fixed regression on line breaks in strict mode (#1203).
4377 + Small efficiency improvements.
4378 + Improved parsing of nested `div`s. Formerly a closing `div` tag
4379 would be missed if it came right after other block-level tags.
4380 + Avoid backtracking when closing `</div>` not found.
4381 + Fixed bug in reference link parsing in `markdown_mmd`.
4382 + Fixed a bug in list parsing (#1154). When reading a raw list
4383 item, we now strip off up to 4 spaces.
4384 + Fixed parsing of empty reference link definitions (#1186).
4385 + Made one-column pipe tables work (#1218).
4387 * Textile reader:
4389 + Better support for attributes. Instead of being ignored, attributes
4390 are now parsed and included in Span inlines. The output will be a bit
4391 different from stock textile: e.g. for `*(foo)hi*`, we'll get
4392 `<em><span class="foo">hi</span></em>` instead of
4393 `<em class="foo">hi</em>`. But at least the data is not lost.
4394 + Improved treatment of HTML spans (%) (#1115).
4395 + Improved link parsing. In particular we now pick up on attributes.
4396 Since pandoc links can't have attributes, we enclose the whole link in
4397 a span if there are attributes (#1008).
4398 + Implemented correct parsing rules for inline markup (#1175, Matthew
4399 Pickering).
4400 + Use Builder (Matthew Pickering).
4401 + Fixed list parsing bug (#1500).
4402 + Don't allow inline formatting to extend over newlines.
4403 This matches the behavior of RedCarpet, avoids some ugly bugs,
4404 and improves performance.
4406 * DocBook reader:
4408 + Better treatment of `formalpara`. We now emit the title (if present)
4409 as a separate paragraph with boldface text (#1215).
4410 + Set metadata `author` not `authors`.
4411 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
4412 Matthew Pickering).
4413 + Converted current meta information parsing in DocBook to a more
4414 extensible version which is aware of the more recent meta
4415 representation (Matthew Pickering).
4417 * HTML reader:
4419 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
4420 (#1248).
4421 + Treat processing instructions & declarations as block. Previously
4422 these were treated as inline, and included in paragraph tags in HTML
4423 or DocBook output, which is generally not what is wanted (#1233).
4424 + Updated `closes` with rules from HTML5 spec.
4425 + Use Builder (Matthew Pickering, #1162).
4427 * RST reader:
4429 + Remove duplicate `http` in PEP links (Albert Krewinkel).
4430 + Make rst figures true figures (#1168, CasperVector)
4431 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
4432 rST parser now supports: all built-in rST roles, new role definition,
4433 role inheritance, though with some limitations.
4434 + Use `author` rather than `authors` in metadata.
4435 + Better handling of directives. We now correctly handle field
4436 lists that are indented more than three spaces. We treat an
4437 `aafig` directive as a code block with attributes, so it can be
4438 processed in a filter (#1212).
4440 * LaTeX writer:
4442 + Mark span contents with label if span has an ID (Albert Krewinkel).
4443 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
4444 + Handle line breaks in simple table cells (#1217).
4445 + Workaround for level 4-5 headers in quotes. These previously produced
4446 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
4447 This adds an `mbox{}` in these contexts to work around the problem.
4448 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
4449 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
4450 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
4451 ligature with LuaLaTeX but `\/` does.
4452 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
4454 * ConTeXt writer: Improved autolinks (#1270).
4456 * DocBook writer:
4458 + Improve handling of hard line breaks in Docbook writer
4459 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
4460 just for the newline character.
4461 + Don't let line breaks inside footnotes influence the enclosing
4462 paragraph (Neil Mayhew).
4463 + Distinguish tight and loose lists in DocBook output, using
4464 `spacing="compact"` (Neil Mayhew, #1250).
4466 * Docx writer: When needed files are not present in the user's
4467 `reference.docx`, fall back on the versions in the `reference.docx`
4468 in pandoc's data files. This fixes a bug that occurs when a
4469 `reference.docx` saved by LibreOffice is used. (#1185)
4471 * EPUB writer:
4473 + Include extension in epub ids. This fixes a problem with duplicate
4474 extensions for fonts and images with the same base name but different
4475 extensions (#1254).
4476 + Handle files linked in raw `img` tags (#1170).
4477 + Handle media in `audio` source tags (#1170).
4478 Note that we now use a `media` directory rather than `images`.
4479 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
4480 will both be incorporated into `content.opf` and the epub container.
4482 * HTML writer:
4484 + Add colgroup around col tags (#877). Also affects EPUB writer.
4485 + Fixed bug with unnumbered section headings. Unnumbered section
4486 headings (with class `unnumbered`) were getting numbers.
4487 + Improved detection of image links. Previously image links with
4488 queries were not recognized, causing `<embed>` to be used instead
4489 of `<img>`.
4491 * Man writer: Ensure that terms in definition lists aren't line wrapped
4492 (#1195).
4494 * Markdown writer:
4496 + Use proper escapes to avoid unwanted lists (#980). Previously we used
4497 0-width spaces, an ugly hack.
4498 + Use longer backtick fences if needed (#1206). If the content contains a
4499 backtick fence and there are attributes, make sure longer fences are
4500 used to delimit the code. Note: This works well in pandoc, but github
4501 markdown is more limited, and will interpret the first string of three
4502 or more backticks as ending the code block.
4504 * RST writer: Avoid stack overflow with certain tables (#1197).
4506 * RTF writer: Fixed table cells containing paragraphs.
4508 * Custom writer:
4510 + Correctly handle UTF-8 in custom lua scripts (#1189).
4511 + Fix bugs with lua scripts with mixed-case filenames and
4512 paths containing `+` or `-` (#1267). Note that `getWriter`
4513 in `Text.Pandoc` no longer returns a custom writer on input
4514 `foo.lua`.
4516 * AsciiDoc writer: Handle multiblock and empty table cells
4517 (#1245, #1246). Added tests.
4519 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
4521 * `Text.Pandoc.Shared`:
4523 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
4524 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
4525 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
4526 Jesse Rosenthal.
4527 + `openURL`: set proxy with value of http_proxy env variable (#1211).
4528 Note: proxies with non-root paths are not supported, due to
4529 limitations in `http-conduit`.
4531 * `Text.Pandoc.PDF`:
4533 + Ensure that temp directories deleted on Windows (#1192). The PDF is
4534 now read as a strict bytestring, ensuring that process ownership will
4535 be terminated, so the temp directory can be deleted.
4536 + Use `/` as path separators in a few places, even on Windows.
4537 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
4538 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
4539 + Changes to error reporting, to handle non-UTF8 error output.
4541 * `Text.Pandoc.Templates`:
4543 + Removed unneeded datatype context (Merijn Verstraaten).
4545 + YAML objects resolve to "true" in conditionals (#1133).
4546 Note: If `address` is a YAML object and you just have `$address$`
4547 in your template, the word `true` will appear, which may be
4548 unexpected. (Previously nothing would appear.)
4550 * `Text.Pandoc.SelfContained`:
4552 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
4553 the string.
4554 * It no longer looks in data files. This only made sense when we
4555 had copies of slidy and S5 code there.
4556 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
4557 + Handle `poster` attribute in `video` tags (#1188).
4559 * `Text.Pandoc.Parsing`:
4561 + Made `F` an instance of Applicative (#1138).
4562 + Added `stateCaption`.
4563 + Added `HasMacros`, simplified other typeclasses.
4564 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
4565 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
4566 + Changed the smart punctuation parser to return `Inlines`
4567 rather than `Inline` (Matthew Pickering).
4568 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
4569 from typeclasses of monads to typeclasses of states. This simplifies
4570 the instance definitions and provides more flexibility. Generalized
4571 type of `getOption` and added a default definition. Removed
4572 `askReaderOption`. Added `extractReaderOption`. Added
4573 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
4574 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
4575 `modifyHeaderMap`. Added `extractIdentifierList` and
4576 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
4577 for `getIdentifierList`, `putIdentifierList`, and
4578 `modifyIdentifierList`. The ultimate goal here is to allow different
4579 parsers to use their own, tailored parser states (instead of
4580 `ParserState`) while still using shared functions.
4582 * Template changes:
4584 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
4585 + LaTeX template: Add `linestretch` and `fontfamily` variables.
4586 + LaTeX template: Conditionalize author and date commands.
4587 + Beamer template: Consistent styles for figure and table captions
4588 (aaronwolen).
4589 + LaTeX and beamer template: Adjust widths correctly for oversized
4590 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
4591 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
4592 `upquote` only after `fontenc` (Yihui Xie).
4593 + Beamer template: Added caption package (#1200).
4594 + Beamer template: changes for better unicode handling (KarolS).
4595 + DocBook template: use `authorgroup` if there are authors.
4596 + revealjs template: Move `include-after` to end (certainlyakey).
4597 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
4599 * Bumped version bounds of dependencies.
4601 * Added a `--trace` command line option, for debugging backtracking
4602 bugs. So far this only works with the markdown reader.
4604 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
4606 * Updated travis script to test with multiple GHC versions.
4608 * Force failure of a Travis build if GHC produces warnings (Albert
4609 Krewinkel).
4611 * Add `.editorconfig` (Albert Krewinkel).
4612 See <http://editorconfig.org/> for details.
4614 * Give more useful error message if '-t pdf' is specified (#1155).
4616 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
4618 * Allow `html4` as a synonym of `html` as a reader (it already works
4619 as a writer).
4621 * README:
4623 + Added an explanation of how to use YAML metadata to
4624 force items to appear in the bibliography without citations in
4625 the text (like LaTeX `\nocite`).
4626 + Added note to `--bibtex/--natbib`: not for use in making PDF
4627 (#1194, thanks to nahoj).
4628 + Added explanatory notes about `--natbib` and `--biblatex`.
4629 + Added specification of legal syntax for citation keys.
4630 + Fixed variable defaults documentation (Albert Krewinkel).
4632 * Removed copyright statements for files that have been removed
4633 (Albert Krewinkel).
4635 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
4636 They aren't needed at runtime. We keep README and COPYRIGHT in data
4637 to ensure that they'll be available on all systems on which pandoc
4638 is installed.
4640 * Use cabal sandboxes in Windows build script.
4642pandoc (1.12.3.3)
4644 * To changes to source; recompiled tarball with latest alex and
4645 happy, so they will work with GHC 7.8.
4647pandoc (1.12.3.2)
4649 * Bumped version bounds for blaze-html, blaze-markup.
4651 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
4652 (#1124).
4654 * Fixed mediawiki ordered list parsing (#1122).
4656 * HTML reader: Fixed bug reading inline math with `$$` (#225).
4658 * Added support for LaTeX style literate Haskell code blocks in rST
4659 (Merijn Verstraaten).
4661pandoc (1.12.3.1)
4663 * Relaxed version constraint on binary, allowing the use of binary 0.5.
4665pandoc (1.12.3)
4667 * The `--bibliography` option now sets the `biblio-files` variable.
4668 So, if you're using `--natbib` or `--biblatex`, you can just use
4669 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
4671 * Don't run pandoc-citeproc filter if `--bibliography` is
4672 used together with `--natbib` or `--biblatex` (Florian Eitel).
4674 * Template changes:
4676 + Updated beamer template to include booktabs.
4677 + Added `abstract` variable to LaTeX template.
4678 + Put `header-includes` after `title` in LaTeX template (#908).
4679 + Allow use of `\includegraphics[size]` in beamer.
4680 This just required porting a macro definition from the default
4681 LaTeX template to the default beamer template.
4683 * `reference.docx`: Include `FootnoteText` style.
4684 Otherwise Word ignores the style, even when specified in the `pPr`.
4685 (#901)
4687 * `reference.odt`: Tidied `styles.xml`.
4689 * Relaxed version bounds for dependencies.
4691 * Added `withSocketsDo` around http conduit code in `openURL`,
4692 so it works on Windows (#1080).
4694 * Added `Cite` function to `sample.lua`.
4696 * Markdown reader:
4698 + Fixed regression in title blocks (#1089).
4699 If author field was empty, date was being ignored.
4700 + Allow backslash-newline hard line breaks in grid and
4701 multiline table cells.
4702 + Citation keys may now start with underscores, and may contain
4703 underscores adjacent to internal punctuation.
4705 * LaTeX reader:
4707 + Add support for `Verb` macro (jrnold) (#1090).
4708 + Support babel-style quoting: `` "`..."' ``.
4710 * Properly handle script blocks in strict mode. (That is,
4711 `markdown-markdown_in_html_blocks`.) Previously a spurious
4712 `<p>` tag was being added (#1093).
4714 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
4715 elements.
4717 * LaTeX writer:
4719 + Factored out function for table cell creation.
4720 + Better treatment of footnotes in tables.
4721 Notes now appear in the regular sequence, rather than in the
4722 table cell. (This was a regression in 1.10.)
4724 * HTML reader: Parse name/content pairs from meta tags as metadata.
4725 Closes #1106.
4727 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
4729 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
4731 * ODT writer: Use mathml for proper rendering of formulas.
4732 Note: LibreOffice's support for this seems a bit buggy. But
4733 it should be better than what we had before.
4735 * RST writer: Ensure no blank line after def in definition list (#992).
4737 * Markdown writer: Don't use tilde code blocks with braced attributes in
4738 `markdown_github` output. A consequence of this change is that the
4739 backtick form will be preferred in general if both are enabled. That
4740 is good, as it is much more widespread than the tilde form. (#1084)
4742 * Docx writer: Fixed problem with some modified reference docx files.
4743 Include `word/_rels/settings.xml.rels` if it exists, as well as other
4744 `rels` files besides the ones pandoc generates explicitly.
4746 * HTML writer:
4748 + With `--toc`, headers no longer link to themselves (#1081).
4749 + Omit footnotes from TOC entries. Otherwise we get doubled
4750 footnotes when headers have notes!
4752 * EPUB writer:
4754 + Avoid duplicate notes when headings contain notes.
4755 This arose because the headings are copied into the metadata
4756 "title" field, and the note gets rendered twice. We strip the
4757 note now before putting the heading in "title".
4758 + Strip out footnotes from toc entries.
4759 + Fixed bug with `--epub-stylesheet`. Now the contents of
4760 `writerEpubStylesheet` (set by `--epub-stylesheet`)
4761 should again work, and take precedence over a stylesheet specified
4762 in the metadata.
4764 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
4766 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
4767 with `//`.
4769 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
4770 we could only get size information for JFIF format, which led
4771 to squished images in Word documents. Closes #976.
4773 * Removed old `MarkdownTest_1.0.3` directory (#1104).
4775pandoc (1.12.2.1)
4777 * Markdown reader: Fixed regression in list parser, involving
4778 continuation lines containing raw HTML (or even verbatim raw HTML).
4780pandoc (1.12.2)
4782 * Metadata may now be included in YAML blocks in a markdown document.
4783 For example,
4785 ---
4786 title:
4787 - type: main
4788 text: My Book
4789 - type: subtitle
4790 text: An investigation of metadata
4791 creator:
4792 - role: author
4793 text: John Smith
4794 - role: editor
4795 text: Sarah Jones
4796 identifier:
4797 - scheme: DOI
4798 text: doi:10.234234.234/33
4799 publisher: My Press
4800 rights: (c) 2007 John Smith, CC BY-NC
4801 cover-image: img/mypic.jpg
4802 ...
4804 Metadata may still be provided using `--epub-metadata`; it will
4805 be merged with the metadata in YAML blocks.
4807 * EPUB writer:
4809 + `meta` tags are now used instead of `opf` attributes for EPUB3.
4810 + Insert "svg" property as needed in opf (EPUB 3).
4811 + Simplify `imageTypeOf` using `getMimeType`.
4812 + Add properties attribute to `cover-image` item for EPUB 3.
4813 + Don't include node for `cover.xhtml` if no cover!
4814 + Ensure that same identifier is used throughout (#1044).
4815 If an identifier is given in metadata, we use that; otherwise
4816 we generate a random uuid.
4817 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
4818 Fixes an issue with Calibre putting the cover at the end of the book
4819 if the spine has `linear="no"`. Apparently this is best practice
4820 for other converters as well:
4821 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
4822 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
4823 + Allow partial dates: `YYYY`, `YYYY-MM`.
4825 * Markdown writer: Fix rendering of tight sublists (#1050).
4826 Previously a spurious blank line was included after a tight sublist.
4828 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
4829 This is reported to be necessary to avoid an error from recent
4830 versions of Libre Office when files contain more than one image
4831 Thanks to wmanley for reporting and diagnosing the problem.
4833 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
4834 Instead, let this be set in the template, using `\setupfloat`.
4835 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
4837 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
4839 * Fixed bug with markdown intraword emphasis. Closes #1066.
4841 * Docbook writer: Hierarchicalize block content in metadata.
4842 Previously headers just disappeared from block-level metadata
4843 when it was used in templates. Now we apply the 'hierarchicalize'
4844 transformation. Note that a block headed by a level-2 header will
4845 turn into a `<sect1>` element.
4847 * OpenDocument writer: Skip raw HTML (#1035).
4848 Previously it was erroneously included as verbatim text.
4850 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
4851 This allows better control of formatting, since the `<a>`
4852 tags have a distinguishing class (#1049).
4854 * Docx writer:
4856 + Use mime type info returned by fetchItem.
4857 + Fixed core metadata (#1046).
4858 Don't create empty date nodes if no date given.
4859 Don't create multiple `dc:creator` nodes; instead separate by
4860 semicolons.
4861 + Fix URL for core-properties in `_rels/.rels` (#1046).
4863 * Plain writer: don't print `<span>` tags.
4865 * LaTeX writer:
4867 + Fix definition lists with internal links in terms (#1032).
4868 This fix puts braces around a term that contains an internal
4869 link, to avoid problems with square brackets.
4870 + Properly escape pdftitle, pdfauthor (#1059).
4871 + Use booktabs package for tables (thanks to Jose Luis Duran).
4873 * Updated beamer template. Now references should work properly
4874 (in a slide) when `--biblatex` or `--natbib` is used.
4876 * LaTeX reader:
4878 + Parse contents of curly quotes or matched `"` as quotes.
4879 + Support `\textnormal` as span with class `nodecor`.
4880 This is needed for pandoc-citeproc.
4881 + Improved citation parsing. This fixes a run-time error that occured
4882 with `\citet{}` (empty list of keys). It also ensures that empty keys
4883 don't get produced.
4885 * MediaWiki reader: Add automatic header identifiers.
4887 * HTML reader:
4889 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
4890 `--parse-raw`.
4891 + Recognize `svg` tags as block level content (thanks to MinRK).
4892 + Parse LaTeX math if appropriate options are set.
4894 * Markdown reader:
4896 + Yaml block must start immediately after `---`. If there's a blank
4897 line after `---`, we interpreted it as a horizontal rule.
4898 + Correctly handle empty bullet list items.
4899 + Stop parsing "list lines" when we hit a block tag.
4900 This fixes exponential slowdown in certain input, e.g.
4901 a series of lists followed by `</div>`.
4903 * Slides: Preserve `<div class="references">` in references slide.
4905 * `Text.Pandoc.Writer.Shared`:
4907 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
4908 attributes, leading to invalid HTML.
4909 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
4910 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
4911 encoded bytestring was returned. We now decode it so it's a proper
4912 image!
4914 * DocBook reader: Handle numerical attributes starting with decimal.
4915 Also use `safeRead` instead of `read`.
4917 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
4918 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
4919 in all the writers. Require `texmath >= 0.6.5.2`.
4921 * `Text.Pandoc.MIME`:
4923 + Add entry for `jfif`.
4924 + In looking up extensions, drop the encoding info.
4925 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
4927 * Templates: Changed how array variables are resolved. Previously if
4928 `foo` is an array (which might be because multiple values were set on
4929 the command line), `$foo$` would resolve to the concatenation of the
4930 elements of foo. This is rarely useful behavior. It has been changed
4931 so that the first value is rendered. Of course, you can still iterate
4932 over the values using `$for(foo)$`. This has the result that you can
4933 override earlier settings using `-V` by putting new values later on the
4934 command line, which is useful for many purposes.
4936 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
4938 * Allow "epub2" as synonym for "epub", "html4" for "html".
4940 * Don't look for slidy files in data files with `--self-contained`.
4942 * Allow `https:` command line arguments to be downloaded.
4944 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
4946pandoc (1.12.1)
4948 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
4949 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
4950 "c": "foo"}`. This new format is easier to work with outside of Haskell.
4951 Incidentally, "t" stands for "tag", "c" for "contents".
4953 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
4954 when converting to markdown (#1027).
4956 * LaTeX reader:
4958 + Ensure that preamble doesn't contribute to the text of
4959 the document.
4960 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
4961 properly, among others.
4962 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
4963 bibtex titles, since we need to know what was protected from
4964 titlecase conversions.
4966 * LaTeX writer:
4968 + Specially escape non-ascii characters in labels.
4969 Otherwise we can get compile errors and other bugs when
4970 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
4971 + Add link anchors for code blocks with identifiers (#1025).
4973 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
4974 It allows fragments identifiers.
4976 * Slide formats:
4978 + A Div element with class "notes" is treated as speaker
4979 notes. Currently beamer goes to `\note{}`, revealjs to
4980 `<aside class="notes">`, and the notes are simply suppressed in
4981 other formats (#925).
4982 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
4983 The old version caused a pause to be inserted before the first
4984 material on a slide. This has been fixed.
4985 + Removed data files for s5, slideous, slidy.
4986 Users of s5 and slideous will have to download the needed
4987 files, as has been documented for some time in the README.
4988 By default, slidy code will be sought on the web, as before.
4990 * HTML writer: Insert command to typeset mathjax only in slideous output
4991 (#966, #1012).
4993 * RST writer: Skip spaces after display math. Otherwise we get indentation
4994 problems, and part of the next paragraph may be rendered as part of the
4995 math.
4997 * OpenDocument writer: Fix formatting of strikeout code (#995),
4998 thanks to wilx. don't use `font-face-decls` variable.
5000 * Fixed test suite so it works with cabal sandboxes.
5002pandoc (1.12.0.2)
5004 * Removed `stringable` dependency.
5006pandoc (1.12.0.1)
5008 * Allow `--metadata` to be repeated for the same key to form a list.
5009 This also has the effect that `--bibliography` can be repeated,
5010 as before.
5012 * Handle boolean values in `--metadata`. Note that anything not parseable
5013 as a YAML boolean or string is treated as a literal string.
5014 You can get a string value with "yes", or any of the strings interpretable
5015 as booleans, by quoting it:
5017 -M boolvalue=yes -M stringvalue='"yes"'
5019 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
5020 option used.
5022 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
5023 in which docx files could not be read by some versions of Word
5024 and LibreOffice (#990).
5026 * Fixed a regression involving slide shows with bibliographies.
5027 The Div container around references messed up the procedure for carving
5028 a document into slides. So we now remove the surrounding Div in
5029 `prepSlides`.
5031 * More informative error message when a filter is not found in path.
5033 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
5034 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
5036 * Don't use unicode_collation in building OSX package:
5037 it adds something like 50MB of dependencies to the package.
5039 * Declare alex and happy as build-tools (#986).
5041pandoc (1.12)
5043 [new features]
5045 * Much more flexible metadata, including arbitrary fields and structured
5046 values. Metadata can be specified flexibly in pandoc markdown using
5047 YAML metadata blocks, which may occur anywhere in the document:
5049 ---
5050 title: Here is my title.
5051 abstract: |
5052 This is the abstract.
5054 1. It can contain
5055 2. block content
5056 and *inline markup*
5058 tags: [cat, dog, animal]
5059 ...
5061 Metadata fields automatically populate template variables.
5063 * Added `opml` (OPML) as input and output format. The `_note` attribute,
5064 used in OmniOutliner and supported by multimarkdown, is supported.
5065 We treat the contents as markdown blocks under a section header.
5067 * Added `haddock` (Haddock markup) as input format (David Lazar).
5069 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
5070 (Thanks to Jamie F. Olson for the initial patch.)
5071 Nested vertical stacks are used for hierarchical structure.
5072 Results for more than one level of nesting may be odd.
5074 * Custom writers can now be written in lua.
5076 pandoc -t data/sample.lua
5078 will load the script sample.lua and use it as a custom writer.
5079 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
5080 Note that pandoc embeds a lua interpreter, so lua need not be
5081 installed separately.
5083 * New `--filter/-F` option to make it easier to run "filters"
5084 (Pandoc AST transformations that operate on JSON serializations).
5085 Filters are always passed the name of the output format, so their
5086 behavior can be tailored to it. The repository
5087 <https://github.com/jgm/pandocfilters> contains
5088 a python module for writing pandoc filters in python, with
5089 a number of examples.
5091 * Added `--metadata/-M` option.
5092 This is like `--variable/-V`, but actually adds to metadata, not
5093 just variables.
5095 * Added `--print-default-data-file` option, which allows printing
5096 of any of pandoc's data files. (For example,
5097 `pandoc --print-default-data-file reference.odt` will print
5098 `reference.odt`.)
5100 * Added syntax for "pauses" in slide shows:
5102 This gives
5104 . . .
5106 me pause.
5108 * New markdown extensions:
5110 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
5111 rather than being treated as hard line breaks or spaces. This is useful
5112 for some East Asian languages, where spaces aren't used between words,
5113 but text is separated into lines for readability.
5114 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
5115 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
5116 only. (Default for `markdown_github`.) (#807)
5117 + `lists_without_preceding_blankline`: Allow lists to start without
5118 preceding blank space. (Default for `markdown_github`.) (#972)
5120 [behavior changes]
5122 * `--toc-level` no longer implies `--toc`.
5123 Reason: EPUB users who don't want a visible TOC may still want
5124 to set the TOC level for in the book navigation.
5126 * `--help` now prints in and out formats in alphabetical order, and
5127 says something about PDF output (#720).
5129 * `--self-contained` now returns less verbose output (telling you
5130 which URLs it is fetching, but not giving the full header). In
5131 addition, there are better error messages when fetching a URL fails.
5133 * Citation support is no longer baked in to core pandoc. Users who
5134 need citations will need to install and use a separate filter
5135 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
5136 `csl`, and `citation-abbreviations` from the metadata, though it
5137 may still be specified on the command line as before.
5139 * A `Cite` element is now created in parsing markdown whether or not
5140 there is a matching reference.
5142 * The `pandoc-citeproc` script will put the bibliography at the
5143 end of the document, as before. However, it will be put inside a `Div`
5144 element with class "references", allowing users some control
5145 over the styling of references. A final header, if any, will
5146 be included in the `Div`.
5148 * The markdown writer will not print a bibliography if the
5149 `citations` extension is enabled. (If the citations are formatted
5150 as markdown citations, it is redundant to have a bibliography,
5151 since one will be generated automatically.)
5153 * Previously we used to store the directory of the first input file,
5154 even if it was local, and used this as a base directory for finding
5155 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
5156 users. So we now look for images relative to the current
5157 working directory, even if the first file argument is in another
5158 directory. Note that this change may break some existing workflows.
5159 If you have been assuming that relative links will be interpreted
5160 relative to the directory of the first file argument, you'll need
5161 to make that the current directory before running pandoc. (#942)
5163 * Better error reporting in some readers, due to changes in `readWith`:
5164 the line in which the error occured is printed, with a caret pointing
5165 to the column.
5167 * All slide formats now support incremental slide view for definition lists.
5169 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
5170 Parse `:<math>...</math>` as display math. These notations are used with
5171 the MathJax MediaWiki extension.
5173 * All writers: template variables are set automatically from metadata
5174 fields. However, variables specified on the command line with
5175 `--variable` will completely shadow metadata fields.
5177 * If `--variable` is used to set many variables with the same name,
5178 a list is created.
5180 * Man writer: The `title`, `section`, `header`, and `footer` can now
5181 all be set individually in metadata. The `description` variable has been
5182 removed. Quotes have been added so that spaces are allowed in the
5183 title. If you have a title that begins
5185 COMMAND(1) footer here | header here
5187 pandoc will still parse it into a title, section, header, and
5188 footer. But you can also specify these elements explicitly (#885).
5190 * Markdown reader
5192 + Added support for YAML metadata blocks, which can come anywhere
5193 in the document (not just at the beginning). A document can contain
5194 multiple YAML metadata blocks.
5195 + HTML span and div tags are parsed as pandoc Span and Div elements.
5197 * Markdown writer
5199 + Allow simple tables to be printed as grid tables,
5200 if other table options are disabled. This means you can do
5201 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
5202 and all tables will render as grid tables.
5203 + Support YAML title block (render fields in alphabetical order
5204 to make output predictable).
5206 [API changes]
5208 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
5209 structured metadata. (Note: existing code that pattern-matches
5210 on `Meta` will have to be revised.) Metadata can now contain
5211 indefinitely many fields, with content that can be a string,
5212 a Boolean, a list of `Inline` elements, a list of `Block`
5213 elements, or a map or list of these.
5215 * A new generic block container (`Div`) has been added to `Block`,
5216 and a generic inline container (`Span`) has been added to `Inline`.
5217 These can take attributes. They will render in HTML, Textile,
5218 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
5219 extension) as HTML `<div>` and `<span>` elements; in other formats
5220 they will simply pass through their contents. But they can be
5221 targeted by scripts.
5223 * `Format` is now a newtype, not an alias for String.
5224 Equality comparisons are case-insensitive.
5226 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
5227 functions that are much faster than the SYB functions from
5228 `Text.Pandoc.Generic`. These functions are now used where possible
5229 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
5230 match the generic traversals `bottomUp` and `queryWith`.)
5232 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
5233 instances for the basic pandoc types. They use GHC generics and
5234 should be faster than the old JSON serialization using
5235 `Data.Aeson.Generic`.
5237 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
5238 This is a souped-up version of `readProcessWithErrorcode` that
5239 uses lazy bytestrings instead of strings and allows setting
5240 environment variables. (Used in `Text.Pandoc.PDF`.)
5242 * New module `Text.Pandoc.Readers.OPML`.
5244 * New module `Text.Pandoc.Writers.OPML`.
5246 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
5247 This is based on Haddock's own lexer/parser.
5249 * New module `Text.Pandoc.Writers.Custom`.
5251 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
5252 Either, for better error handling.
5254 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
5256 * Removed `stripTags` from `Text.Pandoc.XML`.
5258 * `Text.Pandoc.Templates`:
5260 + Simplified `Template` type to a newtype.
5261 + Removed `Empty`.
5262 + Changed type of `renderTemplate`: it now takes a JSON context
5263 and a compiled template.
5264 + Export `compileTemplate`.
5265 + Export `renderTemplate'` that takes a string instead of a compiled
5266 template.
5267 + Export `varListToJSON`.
5269 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
5271 * `Text.Pandoc`:
5273 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
5274 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
5275 `Text.Pandoc.JSON` should be used instead. (Compiling against
5276 pandoc-types instead of pandoc will also produce smaller executables.)
5277 * Removed the deprecated `jsonFilter` function.
5278 + Added `readJSON`, `writeJSON` to the API (#817).
5280 * `Text.Pandoc.Options`:
5282 + Added `Ext_lists_without_preceding_blankline`,
5283 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
5284 `Ext_yaml_metadataBlock` to `Extension`.
5285 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
5286 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
5287 first command-line argument is an absolute URL. (So, relative links
5288 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
5289 + All bibliography-related fields have been removed from
5290 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
5291 `readerReferences`, `readerCitationStyle`.
5293 * The `Text.Pandoc.Biblio` module has been removed. Users of the
5294 pandoc library who want citation support will need to use
5295 `Text.CSL.Pandoc` from `pandoc-citeproc`.
5298 [bug fixes]
5300 * In markdown, don't autolink a bare URI that is followed by `</a>`
5301 (#937).
5303 * `Text.Pandoc.Shared`
5305 + `openURL` now follows redirects (#701), properly handles `data:`
5306 URIs, and prints diagnostic output to stderr rather than stdout.
5307 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
5308 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
5309 + Fixed `readDefaultDataFile` so it works on Windows.
5310 + Better error messages for `readDefaultDataFile`. Instead of
5311 listing the last path tried, which can confuse people who are
5312 using `--self-contained`, so now we just list the data file name.
5313 + URL-escape pipe characters. Even though these are legal, `Network.URI`
5314 doesn't regard them as legal in URLs. So we escape them first (#535).
5316 * Mathjax in HTML slide shows: include explicit "Typeset" call.
5317 This seems to be needed for some formats (e.g. slideous) and won't
5318 hurt in others (#966).
5320 * `Text.Pandoc.PDF`
5322 + On Windows, create temdir in working directory, since the system
5323 temp directory path may contain tildes, which can cause
5324 problems in LaTeX (#777).
5325 + Put temporary output directory in `TEXINPUTS` (see #917).
5326 + `makePDF` tries to download images that are not found locally,
5327 if the first argument is a URL (#917).
5328 + If compiling with `pdflatex` yields an encoding error, offer
5329 the suggestion to use `--latex-engine=xelatex`.
5331 * Produce automatic header identifiers in parsing textile, RST,
5332 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
5334 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
5335 before treating as a filename. This fixes `--self-contained` when used
5336 with CSS files that include web fonts using the method described here:
5337 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
5338 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
5340 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
5341 percent-encoding, or a `+` character, as final punctuation.
5343 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
5344 EPS images properly sized on conversion to Word.
5346 * Slidy: Use slidy.js rather than slidy.js.gz.
5347 Reason: some browsers have trouble with the gzipped js file,
5348 at least on the local file system (#795).
5350 * Markdown reader
5352 + Properly handle blank line at beginning of input (#882).
5353 + Fixed bug in unmatched reference links. The input
5354 `[*infile*] [*outfile*]` was getting improperly parsed:
5355 "infile" was emphasized, but "*outfile*" was literal (#883).
5356 + Allow internal `+` in citation identifiers (#856).
5357 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
5358 + Do not generate blank title, author, or date metadata elements.
5359 Leave these out entirely if they aren't present.
5360 + Allow backtick code blocks not to be preceded by blank line (#975).
5362 * Textile reader:
5364 + Correctly handle entities.
5365 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
5366 in code blocks, rather than printing them verbatim. Parse attributes
5367 on `<pre>` tag for code blocks.
5369 * HTML reader: Handle non-simple tables (#893). Column widths are read from
5370 `col` tags if present, otherwise divided equally.
5372 * LaTeX reader
5374 + Support alltt environment (#892).
5375 + Support `\textasciitilde`, `\textasciicircum` (#810).
5376 + Treat `\textsl` as emphasized text reader (#850).
5377 + Skip positional options after `\begin{figure}`.
5378 + Support `\v{}` for hacek (#926).
5379 + Don't add spurious ", " to citation suffixes.
5380 This is added when needed in pandoc-citeproc.
5381 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
5382 + Improved support for accented characters (thanks to Scott Morrison).
5383 + Parse label after section command and set id (#951).
5385 * RST reader:
5387 + Don't insert paragraphs where docutils doesn't.
5388 `rst2html` doesn't add `<p>` tags to list items (even when they are
5389 separated by blank lines) unless there are multiple paragraphs in the
5390 list. This commit changes the RST reader to conform more closely to
5391 what docutils does (#880).
5392 + Improved metadata. Treat initial field list as metadata when
5393 standalone specified. Previously ALL fields "title", "author",
5394 "date" in field lists were treated as metadata, even if not at
5395 the beginning. Use `subtitle` metadata field for subtitle.
5396 + Fixed 'authors' metadata parsing in reST. Semicolons separate
5397 different authors.
5399 * MediaWiki reader
5401 + Allow space before table rows.
5402 + Fixed regression for `<ref>URL</ref>`.
5403 `<` is no longer allowed in URLs, according to the uri parser
5404 in `Text.Pandoc.Parsing`. Added a test case.
5405 + Correctly handle indented preformatted text without preceding
5406 or following blank line.
5407 + Fixed `|` links inside table cells. Improved attribute parsing.
5408 + Skip attributes on table rows. Previously we just crashed if
5409 rows had attributes, now we ignore them.
5410 + Ignore attributes on headers.
5411 + Allow `Image:` for images (#971).
5412 + Parse an image with caption in a paragraph by itself as a figure.
5414 * LaTeX writer
5416 + Don't use ligatures in escaping inline code.
5417 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
5418 wherein notes were numbered incorrectly in tables (#827).
5419 + Always create labels for sections. Previously the labels were only
5420 created when there were links to the section in the document (#871).
5421 + Stop escaping `|` in LaTeX math.
5422 This caused problems with array environments (#891).
5423 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
5424 `\` will cause major problems if unescaped.
5425 + Write id for code block to label attribute in LaTeX when listings
5426 is used (thanks to Florian Eitel).
5427 + Scale LaTeX tables so they don't exceed columnwidth.
5428 + Avoid problem with footnotes in unnumbered headers (#940).
5430 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
5431 to the slide if it is one of the header classes. It is recommended
5432 that your bibliography slide have this attribute:
5434 # References {.allowframebreaks}
5436 This causes multiple slides to be created if necessary, depending
5437 on the length of the bibliography.
5439 * ConTeXt writer: Properly handle tables without captions. The old output
5440 only worked in MkII. This should work in MkIV as well (#837).
5442 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
5444 * HTML writer:
5446 + Fixed `--no-highlight` (Alexander Kondratskiy).
5447 + Don't convert to lowercase in email obfuscation (#839).
5448 + Ensure proper escaping in `<title>` and `<meta>` fields.
5450 * AsciiDoc writer:
5452 + Support `--atx-headers` (Max Rydahl Andersen).
5453 + Don't print empty identifier blocks `([[]])` on headers (Max
5454 Rydahl Andersen).
5456 * ODT writer:
5458 + Fixing wrong numbered-list indentation in open document format
5459 (Alexander Kondratskiy) (#369).
5460 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
5461 + Minor changes for ODF 1.2 conformance (#939). We leave the
5462 nonconforming `contextual-spacing` attribute, which is provided by
5463 LibreOffice itself and seems well supported.
5465 * Docx writer:
5467 + Fixed rendering of display math in lists.
5468 In 1.11 and 1.11.1, display math in lists rendered as a new list
5469 item. Now it always appears centered, just as outside of lists,
5470 and in proper display math style, no matter how far indented the
5471 containing list item is (#784).
5472 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
5473 Previously we used `w:cr` (#873).
5474 + Use Compact style for Plain block elements, to
5475 differentiate between tight and loose lists (#775).
5476 + Ignore most components of `reference.docx`.
5477 We take the `word/styles.xml`, `docProps/app.xml`,
5478 `word/theme/theme1.xml`, and `word/fontTable.xml` from
5479 `reference.docx`, ignoring everything else. This should help
5480 with the corruption problems caused when different versions of
5481 Word resave the reference.docx and reorganize things.
5482 + Made `--no-highlight` work properly.
5484 * EPUB writer
5486 + Don't add `dc:creator` tags if present in EPUB metadata.
5487 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
5488 + Don't put blank title page in reading sequence.
5489 Set `linear="no"` if no title block. Addresses #797.
5490 + Download webtex images and include as data URLs.
5491 This allows you to use `--webtex` in creating EPUBs.
5492 Math with `--webtex` is automatically made self-contained.
5493 + In `data/epub.css`, removed highlighting styles (which
5494 are no longer needed, since styles are added by the HTML
5495 writer according to `--highlighting-style`). Simplified
5496 margin fields.
5497 + If resource not found, skip it, as in Docx writer (#916).
5499 * RTF writer:
5501 + Properly handle characters above the 0000-FFFF range.
5502 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
5503 + Fixed regression with RTF table of contents.
5504 + Only autolink absolute URIs. This fixes a regression, #830.
5506 * Markdown writer:
5508 + Only autolink absolute URIs. This fixes a regression, #830.
5509 + Don't wrap attributes in fenced code blocks.
5510 + Write full metadata in MMD style title blocks.
5511 + Put multiple authors on separate lines in pandoc titleblock.
5512 Also, don't wrap long author entries, as new lines get treated
5513 as new authors.
5515 * `Text.Pandoc.Templates`:
5517 + Fixed bug retrieving default template for markdown variants.
5518 + Templates can now contain "record lookups" in variables;
5519 for example, `author.institution` will retrieve the `institution`
5520 field of the `author` variable.
5521 + More consistent behavior of `$for$`. When `foo` is not a list,
5522 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
5523 So if `foo` resolves to "", no output should be produced.
5524 See pandoc-templates#39.
5526 * Citation processing improvements (now part of pandoc-citeproc):
5528 + Fixed `endWithPunct` The new version correctly sees a sentence
5529 ending in '.)' as ending with punctuation. This fixes a bug which
5530 led such sentences to receive an extra period at the end: '.).'.
5531 Thanks to Steve Petersen for reporting.
5532 + Don't interfere with Notes that aren't citation notes.
5533 This fixes a bug in which notes not generated from citations were
5534 being altered (e.g. first letter capitalized) (#898).
5535 + Only capitalize footnote citations when they have a prefix.
5536 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
5537 inserted before it before passing to citeproc-hs, so that bare numbers
5538 are treated as page numbers by default. A suffix not beginning with
5539 punctuation has a space added at the beginning (rather than a comma and
5540 space, as was done before for not-author-in-text citations).
5541 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
5542 properly, with '23' treated as a locator of type 'page'.
5543 + Many improvements to citation rendering, due to fixes in citeproc-hs
5544 (thanks to Andrea Rossato).
5545 + Warnings are issued for undefined citations, which are rendered
5546 as `???`.
5547 + Fixed hanging behavior when locale files cannot be found.
5549 [template changes]
5551 * DocBook: Use DocBook 4.5 doctype.
5553 * Org: '#+TITLE:' is inserted before the title.
5554 Previously the writer did this.
5556 * LaTeX: Changes to make mathfont work with xelatex.
5557 We need the mathspec library, not just fontspec, for this.
5558 We also need to set options for setmathfont (#734).
5560 * LaTeX: Use `tex-ansi` mapping for `monofont`.
5561 This ensures that straight quotes appear as straight, rather than
5562 being treated as curly. See #889.
5564 * Made `\includegraphics` more flexible in LaTeX template.
5565 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
5567 * LaTeX/Beamer: Added `classoption` variable.
5568 This is intended for class options like `oneside`; it may
5569 be repeated with different options. (Thanks to Oliver Matthews.)
5571 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
5573 * LaTeX: Added `biblio-style` variable (#920).
5575 * DZSlides: title attribute on title section.
5577 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
5579 [under-the-hood improvements]
5581 * Markdown reader:Improved strong/emph parsing, using the strategy of
5582 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
5583 no backtracking, and no keeping track of nesting levels. It will give
5584 different results in some edge cases, but these should not affect normal
5585 uses.
5587 * Added `Text.Pandoc.Compat.Monoid`.
5588 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
5589 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
5591 * Added `Text.Pandoc.Compat.TagSoupEntity`.
5592 This allows pandoc to compile with `tagsoup` 0.13.x.
5593 Thanks to Dirk Ullrich for the patch.
5595 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
5596 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
5597 handle simple math in bibliography fields.)
5599 * Added `Text.Pandoc.Writers.Shared` for shared functions used
5600 only in writers. `metaToJSON` is used in writers to create a
5601 JSON object for use in the templates from the pandoc metadata
5602 and variables. `getField`, `setField`, and `defField` are
5603 for working with JSON template contexts.
5605 * Added `Text.Pandoc.Asciify` utility module.
5606 This exports functions to create ASCII-only versions of identifiers.
5608 * `Text.Pandoc.Parsing`
5610 + Generalized state type on `readWith` (API change).
5611 + Specialize readWith to `String` input. (API change).
5612 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
5613 with `stateMeta` and `stateMeta'`.
5615 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
5616 bytestrings seemed to cause problems using pandoc on 64-bit Windows
5617 7/8 (#874).
5619 * Factored out `registerHeader` from markdown reader, added to
5620 `Text.Pandoc.Parsing`.
5622 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
5623 Reason: < 0.5 does not provide a monoid instance for Attribute,
5624 which is now needed by the HTML writer (#803).
5626 * Added `http-conduit` flag, which allows fetching https resources.
5627 It also brings in a large number of dependencies (`http-conduit`
5628 and its dependencies), which is why for now it is an optional flag
5629 (#820).
5631 * Added CONTRIBUTING.md.
5633 * Improved INSTALL instructions.
5635 * `make-windows-installer.bat`: Removed explicit paths for executables.
5637 * `aeson` is now used instead of `json` for JSON.
5639 * Set default stack size to 16M. This is needed for some large
5640 conversions, esp. if pandoc is compiled with 64-bit ghc.
5642 * Various small documentation improvements.
5643 Thanks to achalddave and drothlis for patches.
5645 * Removed comment that chokes recent versions of CPP (#933).
5647 * Removed support for GHC version < 7.2, since pandoc-types now
5648 requires at least GHC 7.2 for GHC generics.
5651pandoc (1.11.1)
5653 * Markdown reader:
5655 + Fixed regression in which parentheses were lost in link URLs.
5656 Added tests. Closes #786.
5657 + Better handling of unmatched double quotes in `--smart` mode.
5658 These occur frequently in fiction, since it is customary not to
5659 close quotes in dialogue if the speaker does not change between
5660 paragraphs. The unmatched quotes now get turned into literal
5661 left double quotes. (No `Quoted` inline is generated, however.)
5662 Closes #99 (again).
5664 * HTML writer: Fixed numbering mismatch between TOC and sections.
5665 `--number-offset` now affects TOC numbering as well
5666 as section numbering, as it should have all along. Closes #789.
5668 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
5669 as markdown citations, even if `--bibliography` was specified, unless
5670 `citation` extension is disabled. Now, formatted citations are always
5671 printed if `--bibliography` was specified. If you want to reformat
5672 markdown keeping pandoc markdown citations intact, don't use
5673 `--bibliography`. Note that citations parsed from LaTeX documents will
5674 be rendered as pandoc markdown citations when `--bibliography` is not
5675 specified.
5677 * ODT writer: Fixed regression leading to corrupt ODTs.
5678 This was due to a change in the `Show` instance for
5679 `Text.Pandoc.Pretty.Doc`. Closes #780.
5681 * Fixed spacing bugs involving code block attributes in
5682 RST reader and Markdown writer. Closes #763.
5684 * Windows package: Various improvements due to Fyodor Sheremetyev.
5686 + Automatically set installation path (Program Files or Local App Data).
5687 + Set system PATH environment variable when installing for all users.
5688 + Pandoc can installed for all users using the following command.
5689 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
5691 * Bumped QuickCheck version bound.
5693pandoc (1.11)
5695 * Added `--number-offset` option. (See README for description.)
5697 * Added `--default-image-extension` option. (See README for description.)
5699 * `--number-sections` behavior change: headers with class `unnumbered`
5700 will not be numbered.
5702 * `--version` now reports the default data directory.
5704 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
5706 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
5708 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
5709 a field for `Attr` rather than just `String`. (API change.)
5711 * Added `markdown_github` as input format. This was an accidental
5712 omission in 1.10.
5714 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
5715 change.)
5717 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
5719 * Beamer template:
5721 + Fixed captions with longtable. Thanks to Joost Kremers.
5722 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
5724 * LaTeX template:
5726 + Load microtype after fonts. Microtype needs to know
5727 what fonts are being used. Thanks to dfc for the patch.
5728 + Set `secnumdepth` to 5 if `--number-sections` specified.
5729 This yields behavior equivalent to the other writers, numbering
5730 level 4 and 5 headers too. Closes #753.
5732 * HTML reader:
5734 + Handle `<colgroup>` tag.
5735 + Preserve all header attributes.
5737 * LaTeX reader:
5739 + Parse `\hrule` as `HorizontalRule`. Closes #746.
5740 + Parse starred variants of `\section` etc. as headers with
5741 attribute `unnumbered`.
5742 + Read optional attributes in `lstlisting` and `Verbatim` environments.
5743 We convert these to pandoc standard names, e.g. `numberLines`
5744 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
5745 + Handle language attribute for lstlistings.
5746 + Better support for Verbatim and minted environments. Closes #763.
5748 * Markdown reader:
5750 + `-` in an attribute context = `.unnumbered`. The point of this
5751 is to provide a way to specify unnumbered headers in non-English
5752 documents.
5753 + Fixed bug parsing key/value attributes. Parsing failed if you
5754 had an unquoted attribute immediately before the final '}'.
5755 + Make backslash escape work in attributes.
5756 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
5757 pandoc will parse a MMD title block if it sees one, even if
5758 `pandoc_title_blocks` is enabled.
5759 + Refactoring: `litChar` now includes entities, so we don't need
5760 to use `fromEntities` e.g. on titles.
5761 + Allow spaces around borders in pipe tables. Closes #772.
5762 + Allow all punctuation in angle-bracket autolinks. Previously
5763 things like `----` were disallowed, because the uri parser
5764 treated them as trailing punctuation. Closes #768.
5765 + Make `implicit_header_references` work properly when
5766 headers are given explicit identifiers.
5767 + Check for tables before line blocks. Otherwise some pipe
5768 tables get treated as line blocks.
5769 + Allow `&` in emails (for entities).
5770 + Properly handle entities in titles and links. A markdown link
5771 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
5772 Closes #723.
5774 * Textile reader:
5776 + Handle attributes on headers.
5778 * LaTeX reader:
5780 + Add `fig:` as title for images with captions.
5781 This is needed for them to be rendered as figures. Closes #766.
5782 + Never emit an empty paragraph. See #761.
5783 + Handle `\caption` for images in figures. Closes #766.
5784 + Parse `\section*`, etc. as unnumbered sections.
5786 * HTML writer:
5788 + Support header attributes. The attributes go on
5789 the enclosing `section` or `div` tag if `--section-divs` is specified.
5790 + Fixed a regression (only now noticed) in html+lhs output.
5791 Previously the bird tracks were being omitted.
5793 * LaTeX writer:
5795 + Omit lists with no items to avoid LaTeX errors.
5796 + Support line numbering with `--listings`.
5797 If `numberLines` class is present, we add `numbers=left`;
5798 if `startFrom` is present, we add `firstnumber=`. (#763)
5800 * ConTeXt writer:
5802 + Removed `\placecontent`. This produced a duplicate toc,
5803 in conjunction with `\placelist`.
5804 + Use `\title`, `\subject` etc. for headers with
5805 `unnumbered` class.
5807 * Textile writer:
5809 + Support header attributes.
5811 * Markdown writer:
5813 + Use grid tables when needed, and if enabled. Closes #740.
5814 + Render citations as pandoc-markdown citations.
5815 Previously citations were rendered as citeproc-formatted citations
5816 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
5817 unless the `citations` extension is disabled.
5818 If you still want formatted citations in your markdown output,
5819 use `pandoc -t markdown-citations`.
5821 * RST writer:
5823 + Support `:number-lines:` in code blocks.
5825 * Docx writer:
5827 + Better treatment of display math. Display math inside a
5828 paragraph is now put in a separate paragraph, so it will render
5829 properly (centered and without extra blank lines around it).
5830 Partially addresses #742.
5831 + Content types and document rels xml files are now created from
5832 scratch, rather than being taken over from `reference.docx`.
5833 This fixes problems that arise when you edit the `reference.docx`
5834 with Word.
5835 + We also now encode mime types for each individual image rather
5836 than using defaults. This should allow us to handle a wider
5837 range of image types (including PDF). Closes #414.
5838 + Changed style names in `reference docx`.
5839 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
5840 The old names got changed by Word when the `reference.docx` was
5841 edited. Closes #414.
5843 * EPUB writer:
5845 + Fix section numbering. Previously the numbering restarted from 1
5846 in each chapter (with `--number-sections`), though the numbers in
5847 the table of contents were correct.
5848 + Headers with "unnumbered" attribute are not numbered. (Nor do they
5849 cause an increment in running numbering.) Section numbers now work
5850 properly, even when there is material before the first numbered section.
5851 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
5852 but `linear` is set to `no` unless the `--toc` option is specified.
5853 Include `<guide>` element in OPF. This should allow the TOC to
5854 be useable in Kindles when converted with kindlegen. Closes #773.
5856 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
5857 This dramatically reduces the speed penalty that comes from enabling the
5858 `autolink_bare_uris` extension. The penalty is still substantial (in one
5859 test, from 0.33s to 0.44s), but nowhere near what it used to be.
5860 The RST reader is also much faster now, as it autodetects URIs.
5862 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
5863 with class "unnumbered". Unnumbered sections get `[]` for their
5864 section number.
5866 * `Text.Pandoc.Pretty`:
5868 + Fixed `chomp` so it works inside `Prefixed` elements.
5869 + Changed `Show` instance so it is better for debugging.
5871 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
5873 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
5875 * Windows installer improvements:
5877 + The installer is now signed with a certificate (thanks to
5878 Fyodor Sheremetyev).
5879 + WiX is used instead of InnoSetup. The installer is now a
5880 standard msi file.
5881 + The version number is now auto-detected, and need not be
5882 updated separately.
5884 * OSX installer improvements:
5886 + The package and pandoc executable are now signed with a
5887 certificate (thanks to Fyodor Sheremetyev).
5888 + RTF version of license is used.
5889 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
5890 Closes #580.
5892 * Converted COPYING to markdown.
5894 * pandoc.cabal: Require latest versions of highlighting-kate,
5895 texmath, citeproc-hs, zip-archive.
5897pandoc (1.10.1)
5899 * Markdown reader: various optimizations, leading to a
5900 significant performance boost.
5902 * RST reader: Allow anonymous form of inline links:
5903 `` `hello <url>`__ `` Closes #724.
5905 * Mediawiki reader: Don't require newlines after tables.
5906 Thanks to jrunningen for the patch. Closes #733.
5908 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
5909 when output is LaTeX, and applied when it is another format.
5910 Partially addresses #730.
5912 * Markdown and RST readers: Added parser to `block` that skips blank
5913 lines. This fixes a subtle regression involving grid tables with
5914 empty cells. Also added test for grid table with empty cells.
5915 Closes #732.
5917 * RST writer: Use `.. code:: language` for code blocks with language.
5918 Closes #721.
5920 * DocBook writer: Fixed output for hard line breaks, adding a newline
5921 between `<literallayout>` tags.
5923 * Markdown writer: Use an autolink when link text matches url.
5924 Previously we also checked for a null title, but this
5925 test fails for links produced by citeproc-hs in bibliographies.
5926 So, if the link has a title, it will be lost on conversion
5927 to an autolink, but that seems okay.
5929 * Markdown writer: Set title, author, date variables as before.
5930 These are no longer used in the default template, since we use
5931 titleblock, but we set them anyway for those who use custom templates.
5933 * LaTeX writer: Avoid extra space at start/end of table cell.
5934 Thanks to Nick Bart for the suggestion of using @{}.
5936 * `Text.Pandoc.Parsing`:
5938 + More efficient version of `anyLine`.
5939 + Type of `macro` has changed; the parser now returns `Blocks`
5940 instead of `Block`.
5942 * Relaxed old-time version bound, allowing 1.0.*.
5944 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
5945 should create a symlink as described in the README.
5947pandoc (1.10.0.5)
5949 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
5950 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
5951 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
5953 * Markdown reader: Fixed bug with headerless grid tables.
5954 The 1.10 code assumed that each table header cell contains exactly one
5955 block. That failed for headerless tables (0) and also for tables with
5956 multiple blocks in a header cell. The code is fixed and tests provided.
5957 Thanks to Andrew Lee for pointing out the bug.
5959 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
5961 + Tilde code fences can again take a bare language string
5962 (`~~~ haskell`), not just curly-bracketed attributes
5963 (`~~~ {.haskell}`).
5964 + Backtick code blocks can take the curly-bracketed attributes.
5965 + Backtick code blocks don't *require* a language.
5966 + Consolidated code for the two kinds of fenced code blocks.
5968 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
5970 * Markdown writer: Use proportional font for email autolinks with
5971 obfuscation. Closes #714.
5973 * Corrected name of `blank_before_blockquote` in README. Closes #718.
5975 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
5976 The bug prevented an autolink at the end of a string (e.g.
5977 at the end of a line block line) from counting as a link. Closes #711.
5979 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
5980 This should work on Windows, unlike the TH solution with
5981 file-embed.
5983 * Eliminated use of TH in test suite.
5985 * Added `Text.Pandoc.Data` (non-exported) to hold the association
5986 list of embedded data files, if the `embed_data_files` flag is selected.
5987 This isolates the code that needs special treatment with file-embed or
5988 `hsb2hs`.
5990 * Changes to `make-windows-installer.bat`.
5992 + Exit batch file if any of the cabal-dev installs fail.
5993 + There's no longer any need to reinstall `highlighting-kate`.
5994 + Don't start with a `cabal update`; leave that to the user.
5995 + Force reinstall of pandoc.
5997 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
5998 Jens Petersen.
6000pandoc (1.10.0.4)
6002 * Fixed bug with escaped % in LaTeX reader. Closes #710.
6004pandoc (1.10.0.3)
6006 * Added further missing fb2 tests to cabal file.
6008pandoc (1.10.0.2)
6010 * Added fb2 tests to cabal file's extra-source-files.
6012pandoc (1.10.0.1)
6014 * Bump version bounds on test-framework packages.
6016pandoc (1.10)
6018 [new features]
6020 * New input formats: `mediawiki` (MediaWiki markup).
6022 * New output formats: `epub3` (EPUB v3 with MathML),
6023 `fb2` (FictionBook2 ebooks).
6025 * New `--toc-depth` option, specifying how many levels of
6026 headers to include in a table of contents.
6028 * New `--epub-chapter-level` option, specifying the header
6029 level at which to divide EPUBs into separate files.
6030 Note that this normally affects only performance, not the
6031 visual presentation of the EPUB in a reader.
6033 * Removed the `--strict` option. Instead of using `--strict`,
6034 one can now use the format name `markdown_strict` for either input
6035 or output. This gives more fine-grained control that `--strict`
6036 did, allowing one to convert from pandoc's markdown to strict
6037 markdown or vice versa.
6039 * It is now possible to enable or disable specific syntax
6040 extensions by appending them (with `+` or `-`) to the writer
6041 or reader name. For example,
6043 pandoc -f markdown-footnotes+hard_line_breaks
6045 disables footnotes and enables treating newlines as hard
6046 line breaks. The literate Haskell extensions are now implemented
6047 this way as well, using either `+lhs` or `+literate_haskell`.
6048 For a list of extension names, see the README under
6049 "Pandoc's Markdown."
6051 * The following aliases have been introduced for specific
6052 combinations of markdown extensions: `markdown_phpextra`,
6053 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
6054 work just like regular reader and writer names, and can be modified
6055 with extension modifiers as described above. (Note that conversion
6056 from one markdown dialect to another does not work perfectly,
6057 because there are differences in markdown parsers besides
6058 just the extensions, and because pandoc's internal document model is
6059 not rich enough to capture all of the extensions.)
6061 * New `--html-q-tags` option. The previous default was to use `<q>`
6062 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
6063 Moreover, they are not a robust way of typesetting quotes, since
6064 some user agents don't support them, and some CSS resets (e.g.
6065 bootstrap) prevent pandoc's quotes CSS from working properly.
6066 We now just insert literal quote characters by default in both
6067 `html` and `html5` output, but this option is provided for
6068 those who still want `<q>` tags.
6070 * The markdown reader now prints warnings (to stderr) about
6071 duplicate link and note references. Closes #375.
6073 * Markdown syntax extensions:
6075 + Added pipe tables. Thanks to François Gannaz for the initial patch.
6076 These conform to PHP Markdown Extra's pipe table syntax. A subset
6077 of org-mode table syntax is also supported, which means that you can
6078 use org-mode's nice table editor to create tables.
6080 + Added support for RST-style line blocks. These are
6081 useful for verse and addresses.
6083 + Attributes can now be specified for headers, using the same
6084 syntax as in code blocks. (However, currently only the
6085 identifier has any effect in most writers.) For example,
6087 # My header {#foo}
6089 See [the header above](#foo).
6091 + Pandoc will now act as if link references have been defined
6092 for all headers without explicit identifiers.
6093 So, you can do this:
6095 # My header
6097 Link to [My header].
6098 Another link to [it][My header].
6100 Closes #691.
6102 * LaTeX reader:
6104 + Command macros now work everywhere, including non-math.
6105 Environment macros still not supported.
6106 + `\input` now works, as well as `\include`. TEXINPUTS is used.
6107 Pandoc looks recursively into included files for more included files.
6109 [behavior changes]
6111 * The Markdown reader no longer puts the text of autolinks in a
6112 `Code` inline. This means that autolinks will no longer appear
6113 in a monospace font.
6115 * The character `/` can now appear in markdown citation keys.
6117 * HTML blocks in strict_markdown are no longer required to begin
6118 at the left margin. Technically this is required, according to
6119 the markdown syntax document, but `Markdown.pl` and other markdown
6120 processors are more liberal.
6122 * The `-V` option has been changed so that if there are duplicate
6123 variables, those specified later on the command line take precedence.
6125 * Tight lists now work in LaTeX and ConTeXt output.
6127 * The LaTeX writer no longer relien on the `enumerate` package.
6128 Instead, it uses standard LaTeX commands to change the list numbering
6129 style.
6131 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
6132 tables to be split over page boundaries.
6134 * The RST writer now uses a line block to render paragraphs containing
6135 linebreaks (which previously weren't supported at all).
6137 * The markdown writer now applies the `--id-prefix` to footnote IDs.
6138 Closes #614.
6140 * The plain writer no longer uses backslash-escaped line breaks
6141 (which are not very "plain").
6143 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
6144 Read bytestring and use `Text`'s decodeUtf8 instead of using
6145 `System.IO.hGetContents`. This way you get a message saying
6146 "invalid UTF-8 stream" instead of "invalid byte sequence."
6147 You are also told which byte caused the problem.
6149 * Docx, ODT, and EPUB writers now download images specified by a URL
6150 instead of skipping them or raising an error.
6152 * EPUB writer:
6154 + The default CSS now left-aligns headers by default, instead of
6155 centering. This is more consistent with the rest of the writers.
6156 + A proper multi-level table of contents is now used in `toc.ncx`.
6157 There is no longer a subsidiary table of contents at the beginning
6158 of each chapter.
6159 + Code highlighting now works by default.
6160 + Section divs are used by default for better semantic markup.
6161 + The title is used instead of "Title Page" in the table of contents.
6162 Otherwise we have a hard-coded English string, which looks
6163 strange in ebooks written in other languages. Closes #572.
6165 * HTML writer:
6167 + Put mathjax in span with class "math". Closes #562.
6168 + Put citations in a span with class "citation." In HTML5, also include
6169 a `data-cite` attribute with a space-separated list of citation
6170 keys.
6172 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
6173 This treats both `\r\n` and `\n` as `\n` on input, no matter
6174 what platform we're running on.
6176 * Citation processing is now done in the Markdown and LaTeX
6177 readers, not in `pandoc.hs`. This makes it easier for library users
6178 to use citations.
6180 [template changes]
6182 * HTML: Added css to template to preserve spaces in `<code>` tags.
6183 Thanks to Dirk Laurie.
6185 * Beamer: Remove English-centric strings in section pages.
6186 Section pages used to have "Section" and a number as well as the
6187 section title. Now they just have the title. Similarly for part
6188 and subsection. Closes #566.
6190 * LaTeX, ConTeXt: Added papersize variable.
6192 * LaTeX, Beamer templates: Use longtable instead of ctable.
6194 * LaTeX, Beamer templates: Don't require 'float' package for tables.
6195 We don't actually seem to use the '[H]' option.
6197 * LaTeX: Use `upquote` package if it is available. This fixes
6198 straight quotes in verbatim environments.
6200 * Markdown, plain: Fixed titleblock so it is just a single string.
6201 Previously separate title, author, and date variables were used,
6202 but this didn't allow different kinds of title blocks.
6204 * EPUB:
6206 + Rationalized templates. Previously there were three different
6207 templates involved in epub production. There is now just one
6208 template, `default.epub` or `default.epub3`. It can now be
6209 overridden using `--template`, just like other templates.
6210 The titlepage is now folded into the default template.
6211 A `titlepage` variable selects it.
6212 + UTF-8, lang tag, meta tags, title element.
6214 * Added scale-to-width feature to beamer template
6216 [API changes]
6218 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
6219 Previously header identifers were autogenerated by the writers.
6220 Now they are added in the readers (either automatically or explicitly).
6222 * `Text.Pandoc.Builder`:
6224 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
6225 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
6226 custom Monoid instances for `Many Inline` and `Many Block. This
6227 allows `Many` to be made an instance of `Foldable` and `Traversable`.
6228 + The old `Listable` class has been removed.
6229 + The module now exports `isNull`, `toList`, `fromList`.
6230 + The old `Read` and `Show` instances have been removed; derived
6231 instances are now used.
6232 + Added `headerWith`.
6234 * The readers now take a `ReaderOptions` rather than a `ParserState`
6235 as a parameter. Indeed, not all parsers use the `ParserState` type;
6236 some have a custom state. The motivation for this change was to separate
6237 user-specifiable options from the accounting functions of parser state.
6239 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
6240 formerly in `Text.Pandoc.Shared`, and its associated
6241 data types. It also includes a new type `ReaderOptions`, which
6242 contains many options formerly in `ParserState`, and its associated
6243 data types:
6245 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
6246 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
6247 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
6248 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
6249 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
6250 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
6251 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
6252 + `ParserState.stateIndentedCodeClasses` ->
6253 `ReaderOptions.readerIndentedCodeClasses`.
6254 + Added `ReaderOptions.readerCitationStyle`.
6256 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
6257 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
6258 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
6259 been renamed `writerEpubMetadata` for consistency.
6261 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
6262 longer stylesheet, fonts, reference files as separate parameters.
6264 * Removed `writerLiterateHaskell` from `WriterOptions`, and
6265 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
6266 by an extension (`Ext_literate_haskell`).
6268 * Removed deprecated `writerXeTeX`.
6270 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
6271 Strict is now handled through extensions.
6273 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
6274 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
6275 and `multimarkdownExtensions`, as well as the `Extensions` type.
6277 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
6278 `readMediaWiki`.
6280 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
6281 (thanks to Sergey Astanin).
6283 * `Text.Pandoc`:
6285 + Added `getReader`, `getWriter` to `Text.Pandoc`.
6286 + `writers` is now an association list `(String, Writer)`.
6287 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
6288 an `IOByteStringWriter`. ALL writers are now in the 'writers'
6289 list, including the binary writers and FB2 writer. This allows
6290 code in `pandoc.hs` to be simplified.
6291 + Changed type of `readers`, so all readers are in IO.
6292 Users who want pure readers can still get them form the reader
6293 modules; this just affects the function `getReader` that looks up
6294 a reader based on the format name. The point of this change is to
6295 make it possible to print warnings from the parser.
6297 * `Text.Pandoc.Parsing`:
6299 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
6300 No other module directly imports Parsec. This will make it easier
6301 to change the parsing backend in the future, if we want to.
6302 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
6303 + Export the type synonym `Parser`.
6304 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
6305 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
6306 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
6307 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
6308 + `ParserState` is no longer an instance of `Show`.
6309 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
6310 + Generalized type of `withQuoteContext`.
6311 + Added `guardEnabled`, `guardDisabled`, `getOption`.
6312 + Removed `failIfStrict`.
6313 + `lookupKeySrc` and `fromKey` are no longer exported.
6315 * `Data.Default` instances are now provided for `ReaderOptions`,
6316 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
6317 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
6318 of `defaultWriterOptions` (which is still defined). Closes #546.
6320 * `Text.Pandoc.Shared`:
6322 + Added `safeRead`.
6323 + Renamed `removedLeadingTrailingSpace` to `trim`,
6324 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
6325 + Count `\r` as space in `trim` functions.
6326 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
6327 to `Shared`.
6328 + Removed `failUnlessLHS`.
6329 + Export `compactify'`, formerly in Markdown reader.
6330 + Export `isTightList`.
6331 + Do not export `findDataFile`.
6332 + `readDataFile` now returns a strict ByteString.
6333 + Export `readDataFileUTF8` which returns a String, like the
6334 old `readDataFile`.
6335 + Export `fetchItem` and `openURL`.
6337 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
6338 Removed `readImageSize`.
6340 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
6341 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
6342 `fromStringLazy`.
6344 * `Text.Pandoc.UTF8` is now an exposed module.
6346 * `Text.Pandoc.Biblio`:
6348 + csl parameter now a `String` rather than a `FilePath`.
6349 + Changed type of `processBiblio`. It is no longer in the IO monad.
6350 It now takes a `Maybe Style` argument rather than parameters for CSL
6351 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
6352 the style file and add abbreviations.)
6354 * Markdown reader now exports `readMarkdownWithWarnings`.
6356 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
6357 `rtfEmbedImage`.
6359 [bug fixes]
6361 * Make `--ascii` work properly with `--self-contained`. Closes #568.
6363 * Markdown reader:
6365 + Fixed link parser to avoid exponential slowdowns. Closes #620.
6366 Previously the parser would hang on input like this:
6368 [[[[[[[[[[[[[[[[[[hi
6370 We fixed this by making the link parser parser characters
6371 between balanced brackets (skipping brackets in inline code spans),
6372 then parsing the result as an inline list. One change is that
6374 [hi *there]* bud](/url)
6376 is now no longer parsed as a link. But in this respect pandoc behaved
6377 differently from most other implementations anyway, so that seems okay.
6379 + Look for raw html/latex blocks before tables.
6380 Otherwise the following gets parsed as a table:
6382 \begin{code}
6383 --------------
6384 -- My comment.
6385 \end{code}
6387 Closes #578.
6389 * RST reader:
6391 + Added support for `:target:` on `.. image::` blocks
6392 and substitutions.
6393 + Field list fixes:
6395 - Fixed field lists items with body beginning after a new line
6396 (Denis Laxalde).
6397 - Allow any char but ':' in names of field lists in RST reader
6398 (Denis Laxalde).
6399 - Don't allow line breaks in field names.
6400 - Require whitespace after field list field names.
6401 - Don't create empty definition list for metadata field lists.
6402 Previously a field list consisting only of metadata fields (author,
6403 title, date) would be parsed as an empty DefinitionList, which is
6404 not legal in LaTeX and not needed in any format.
6406 + Don't recognize inline-markup starts inside words.
6407 For example, `2*2 = 4*1` should not contain an emphasized
6408 section. Added test case for "Literal symbols". Closes #569.
6409 + Allow dashes as separator in simple tables. Closes #555.
6410 + Added support for `container`, `compound`, `epigraph`,
6411 `rubric`, `highlights`, `pull-quote`.
6412 + Added support for `.. code::`.
6413 + Made directive labels case-insensitive.
6414 + Removed requirement that directives begin at left margin.
6415 This was (correctly) not in earlier releases; docutils doesn't
6416 make the requirement.
6417 + Added support for `replace::` and `unicode::` substitutions.
6418 + Ignore unknown interpreted roles.
6419 + Renamed image parser to `subst`, since it now handles all
6420 substitution references.
6422 * Textile reader:
6424 + Allow newlines before pipes in table. Closes #654.
6425 + Fixed bug with list items containing line breaks.
6426 Now pandoc correctly handles hard line breaks inside list items.
6427 Previously they broke list parsing.
6428 + Implemented comment blocks.
6429 + Fixed bug affected words ending in hyphen.
6430 + Properly handle links with surrounding brackets.
6431 Square brackets need to be used when the link isn't surrounded by
6432 spaces or punctuation, or when the URL ending may be ambiguous.
6433 Closes #564.
6434 + Removed nullBlock. Better to know about parsing problems than
6435 to skip stuff when we get stuck.
6436 + Allow ID attributes on headers.
6437 + Textile reader: Avoid parsing dashes as strikeout.
6438 Previously the input
6440 text--
6441 text--
6442 text--
6443 text--
6445 would be parsed with strikeouts rather than dashes. This fixes
6446 the problem by requiring that a strikeout delimiting - not be
6447 followed by a -. Closes #631.
6448 + Expanded list of `stringBreakers`.
6449 This fixes a bug on input like "(_hello_)" which should
6450 be a parenthesized emphasized "hello".
6451 The new list is taken from the PHP source of textile 2.4.
6452 + Fixed autolinks. Previously the textile reader and writer
6453 incorrectly implented RST-style autolinks for URLs and email
6454 addresses. This has been fixed. Now an autolink is done this way:
6455 `"$":http://myurl.com`.
6456 + Fixed footnotes bug in textile. This affected notes occuring
6457 before punctuation, e.g. `foo[1].`. Closes #518.
6459 * LaTeX reader:
6461 + Better handling of citation commands.
6462 + Better handling of `\noindent`.
6463 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
6464 Closes #622.
6465 + Made `rawLaTeXInline` try to parse block commands as well. This
6466 is usually what we want, given how `rawLaTeXInline` is used in
6467 the markdown and textile readers. If a block-level LaTeX command
6468 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
6469 we can treat it as raw inline LaTeX.
6470 + Handle \slash command. Closes #605.
6471 + Basic `\enquote` support.
6472 + Fixed parsing of paragraphs beginning with a group. Closes #606.
6473 + Use curly quotes for bare straight quotes.
6474 + Support obeylines environment. Closes #604.
6475 + Guard against "begin", "end" in inlineCommand and
6476 blockCommand.
6477 + Better error messages for environments. Now it should tell you that
6478 it was looking for \end{env}, instead of giving "unknown parse error."
6480 * HTML reader:
6482 + Added HTML 5 tags to list of block-level tags.
6483 + HTML reader: Fixed bug in `htmlBalanced`, which
6484 caused hangs in parsing certain markdown input using
6485 strict mode.
6486 + Parse `<q>` as `Quoted DoubleQuote`.
6487 + Handle nested `<q>` tags properly.
6488 + Modified `htmlTag` for fewer false positives.
6489 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
6490 This makes it more useful in the wikimedia and markdown parsers.
6492 * DocBook reader: Support title in "figure" element. Closes #650.
6494 * MediaWiki writer:
6496 + Remove newline after `<br/>` in translation of `LineBreak`
6497 There's no particular need for a newline (other than making the
6498 generated MediaWiki source look nice to a human), and in fact
6499 sometimes it is incorrect: in particular, inside an enumeration, list
6500 items cannot have embedded newline characters. (Brent Yorgey)
6501 + Use `<code>` not `<tt>` for Code.
6503 * Man writer: Escape `-` as `\-`.
6504 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
6505 signs. That is preferable for use with command-line options. See
6506 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
6507 to Andrea Bolognani for bringing the issue to our attention.
6509 * RST writer:
6511 + Improved line block output. Use nonbreaking spaces for
6512 initial indent (otherwise lost in HTML and LaTeX).
6513 Allow multiple paragraphs in a single line block.
6514 Allow soft breaks w continuations in line blocks.
6515 + Properly handle images with no alt text. Closes #678.
6516 + Fixed bug with links with duplicate text. We now (a) use anonymous
6517 links for links with inline URLs, and (b) use an inline link instead
6518 of a reference link if the reference link would require a label that
6519 has already been used for a different link. Closes #511.
6520 + Fixed hyperlinked images. Closes #611. Use `:target:`
6521 field when you have a simple linked image.
6522 + Don't add `:align: center` to figures.
6524 * Texinfo writer: Fixed internal cross-references.
6525 Now we insert anchors after each header, and use `@ref` instead of `@uref`
6526 for links. Commas are now escaped as `@comma{}` only when needed;
6527 previously all commas were escaped. (This change is needed, in part,
6528 because `@ref` commands must be followed by a real comma or period.) Also
6529 insert a blank line in from of `@verbatim` environments.
6531 * DocBook writer:
6533 + Made --id-prefix work in DocBook as well as HTML.
6534 Closes #607.
6535 + Don't include empty captions in figures. Closes #581.
6537 * LaTeX writer:
6539 + Use `\hspace*` for nonbreaking space after line break,
6540 since `~` spaces after a line break are just ignored.
6541 Closes #687.
6542 + Don't escape `_` in URLs or hyperref identifiers.
6543 + Properly escape strings inside \url{}. Closes #576.
6544 + Use `[fragile]` only for slides containing code rendered
6545 using listings. Closes #649.
6546 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
6547 highlighting-kate's macros, which redefine `|` as a short verbatim
6548 delimiter. Thanks to Björn Peemöller for raising this issue.
6549 + Use minipage rather than parbox for block containers in tables.
6550 This allows verbatim code to be included in grid tables.
6551 Closes #663.
6552 + Prevent paragraphs containing only linebreaks or spaces.
6554 * HTML writer:
6556 + Included `highlighting-css` for code spans, too.
6557 Previously it was only included if used in a code block. Closes #653.
6558 + Improved line breaks with `<dd>` tags. We now put a newline between
6559 `</dd>` and `<dd>` when there are multiple definitions.
6560 + Changed mathjax cdn url so it doesn't use https. (This caused
6561 problems when used with `--self-contained`.) See #609.
6563 * EPUB writer:
6565 + `--number-sections` now works properly.
6566 + Don't strip meta and link elements in epub metadata.
6567 Patch from aberrancy. Closes #589.
6568 + Fixed a couple validation bugs.
6569 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
6570 of chapters in some readers, which apparently sort ch2 after ch10.
6571 Closes #610.
6573 * ODT writer: properly set title property (Arlo O'Keeffe).
6575 * Docx writer:
6577 + Fixed bug with nested lists. Previously a list like
6579 1. one
6580 - a
6581 - b
6582 2. two
6584 would come out with a bullet instead of "2."
6585 Thanks to Russell Allen for reporting the bug.
6586 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
6587 This seems to fix a problem viewing pandoc-generated
6588 docx files in LibreOffice.
6589 + Use integer ids for bookmarks. Closes #626.
6590 + Added nsid to abstractNum elements. This helps when merging
6591 word documents with numbered or bulleted lists. Closes #627.
6592 + Use separate footnotes.xml for notes.
6593 This seems to help LibreOffice convert the file, even though
6594 it was valid docx before. Closes #637.
6595 + Use rIdNN identifiers for r:embed in images.
6596 + Avoid reading image files again when we've already processed them.
6597 + Fixed typo in `referenc.docx` that prevented image captions from
6598 working. Thanks to Huashan Chen.
6600 * `Text.Pandoc.Parsing`:
6602 + Fixed bug in `withRaw`, which didn't correctly handle the case
6603 where nothing is parsed.
6604 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
6605 though it still doesn't implement quoted strings in email addresses.
6606 + Revised URI parser. It now allows many more schemes, allows
6607 uppercase URIs, and better handles trailing punctuation and
6608 trailing slashes in bare URIs. Added many tests.
6609 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
6610 etc. parse properly. Formerly we had some English-centric heuristics,
6611 but they are no longer needed. Closes #698.
6613 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
6614 This fixes bug with Chinese commas in markdown and reST tables, and
6615 a bug that caused combining characters to be dropped.
6617 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
6619 * `Text.Pandoc.Biblio`:
6621 + Run `mvPunc` and `deNote` on metadata too.
6622 This fixed a bug with notes on titles using footnote styles.
6623 + Fixed bug in fetching CSL files from CSL data directory.
6625 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
6626 is provided. It should be the URL up to the path.
6628 * Fixed/simplified diff output for tests.
6629 Biblio: Make sure mvPunc and deNote run on metadata too.
6630 This fixed a bug with notes on titles using footnote styles.
6632 [under the hood improvements]
6634 * We no longer depend on `utf8-string`. Instead we use functions
6635 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
6637 * Use `safeRead` instead of using `reads` directly (various modules).
6639 * "Implicit figures" (images alone in a paragraph) are now handled
6640 differently. The markdown reader gives their titles the prefix `fig:`; the
6641 writers look for this before treating the image as a figure. Though this
6642 is a bit of a hack, it has two advantages: (i) implicit figures can be
6643 limited to the markdown reader, and (ii) they can be deactivated by turning
6644 off the `implicit_figures` extension.
6646 * `catch` from `Control.Exception` is now used instead of the
6647 old Preface `catch`.
6649 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
6650 and `oneOfStrings` (which is now non-backtracking).
6652 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
6653 Now citeproc-hs is fixed upstream, so this is no longer needed.
6654 Closes #531.
6656 * Textile reader: Improved speed of `hyphenedWords`.
6657 This speeds up the textile reader by about a factor of 4.
6659 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
6660 better performance, and automatic normalization.
6662 * Major rewrite of markdown reader:
6664 + Use `Text.Pandoc.Builder` instead of lists. This also
6665 means that everything is normalized automatically.
6666 + Move to a one-pass parsing strategy, returning values in the reader
6667 monad, which are then run (at the end of parsing) against the final
6668 parser state.
6670 * In HTML writer, we now use `toHtml` instead of pre-escaping.
6671 We work around the problem that blaze-html unnecessarily escapes `'`
6672 by pre-escaping just the `'` characters, instead of the whole string.
6673 If blaze-html later stops escaping `'` characters, we can simplify
6674 `strToHtml` to `toHtml`. Closes #629.
6676 * Moved code for embedding images in RTFs from `pandoc.hs` to the
6677 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
6679 * Moved citation processing from `pandoc.hs` into the readers.
6680 This makes things more convenient for library users.
6682 * The man pages are now built by an executable `make-pandoc-man-pages`,
6683 which has its own stanza in the cabal file so that dependencies can be
6684 handled by Cabal. Special treatment in `Setup.hs` ensures that this
6685 executable never gets installed; it is only used to create the man pages.
6687 * The cabal file has been modified so that the pandoc library is used
6688 in building the pandoc executable. (This required moving `pandoc.hs`
6689 from `src` to `.`.) This cuts compile time in half.
6691 * `-O2` is no longer used in building pandoc. The performance improvement
6692 it yields is so slight that it is not worth it. (Measured with
6693 benchmarks on ghc 7.4.)
6695 * The `executable` and `library` flags have been removed.
6697 * `-threaded` has been removed from ghc-options.
6699 * Version bounds of dependencies have been raised, and the
6700 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
6701 GHC 7.6.
6703 * We now require base >= 4.2.
6705 * Integrated the benchmark program into cabal. One can now do:
6707 cabal configure --enable-benchmarks && cabal build
6708 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
6710 The benchmark now uses README + testsuite, so benchmark results
6711 from older versions aren't comparable.
6713 * Integrated test suite with cabal.
6714 To run tests, configure with `--enable-tests`, then `cabal test`.
6715 You can specify particular tests using `--test-options='-t markdown'`.
6716 No output is shown unless tests fail. The Haskell test modules
6717 have been moved from `src/` to `tests/`.
6719 * Moved all data files and templates to the `data/` subdirectory.
6721 * Added an `embed_data_files` cabal flag. This causes all
6722 data files to be embedded in the binary, so that the binary
6723 is self-sufficient and can be relocated anywhere, copied on
6724 a USB key, etc. The Windows installer now uses this.
6725 (Since we no longer have the option to build the executable
6726 without the library, this is the only way to get a relocatable
6727 binary on Windows.)
6729 * Removed pcre3.dll from windows package.
6730 It isn't needed unless highlighting-kate is compilled with the
6731 `pcre-light` flag. By default, regex-prce-builtin is used.
6734pandoc (1.9.4.2)
6736 * Don't encode/decode file paths if base >= 4.4.
6737 Prior to base 4.4, filepaths and command line arguments were treated
6738 as unencoded lists of bytes, not unicode strings, so we had to work
6739 around that by encoding and decoding them. This commit adds CPP
6740 checks for the base version that intelligibly enable encoding/decoding
6741 when needed. Fixes a bug with multilingual filenames when pandoc was
6742 compiled with ghc 7.4 (#540).
6744 * Don't generate an empty H1 after hrule slide breaks.
6745 We now use a slide-level header with contents `[Str "\0"]` to mark
6746 an hrule break. This avoids creation of an empty H1 in these
6747 contexts. Closes #484.
6749 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
6751 * In make_osx_package.sh, ensure citeproc-hs is built with the
6752 embed_data_files flag.
6754 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
6756 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
6757 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
6759 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
6760 Closes #535.
6762 * Added webm to mime types. Closes #543.
6764 * Added some missing exports and tests to the cabal file
6765 (Alexander V Vershilov).
6767 * Compile with `-rtsopts` and `-threaded` by default.
6769pandoc (1.9.4.1)
6771 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
6773 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
6774 variables. Make TOC links black.
6776 * LaTeX template improvements.
6778 + Don't print date unless one is given explicitly in the document.
6779 + Simplified templates.
6780 + Use fontenc [T1] by default, and lmodern.
6781 + Use microtype if available.
6783 * Biblio:
6785 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
6786 Motivation: `@item1 [50]` should be as close as possible to
6787 `[@item1, 50]`.
6788 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
6789 beginning with a citation to be empty. Closes #531.
6791 * Fixed documentation on mixed lists. Closes #533.
6793pandoc (1.9.4)
6795 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
6796 footnotes and captions. We now handle note citations by inserting
6797 footnotes during initial citation processing, and doing a separate
6798 pass later to remove notes inside notes.
6800 * Added 'zenburn' highlight style from highlighting-kate.
6802 * Added Slideous writer. Slideous is an HTML + javascript slide show
6803 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
6805 * LaTeX writer:
6807 + Ensure we don't have extra blank lines at ends of cells.
6808 This can cause LaTeX errors, as they are interpreted as new paragraphs.
6809 + More consistent interblock spacing.
6810 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
6811 code in LaTeX. Closes #527.
6812 + Ensure that a Verbatim at the end of a footnote is followed by
6813 a newline. (Fixes a regression in the previous version.)
6814 + In default template, use black for internal links and TOC.
6815 Added commented-out code to use footnotes for links, as would
6816 be suitable in print output.
6818 * Beamer writer: When `--incremental` is used, lists inside
6819 a block quote should appear all at once. (This makes Beamer
6820 output consistent with the HTML slide show formats.)
6822 * ConTeXt writer:
6824 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
6825 to avoid gobbling spaces after the `%` sign.
6826 + Ensure space after `\stopformula`.
6828 * Markdown writer:
6830 + Use `:` form instead of `~` in definition lists, for better
6831 compatibility with other markdown implementations.
6832 + Don't wrap the term, because it breaks definition lists.
6833 + Use a nonzero space to prevent false recognition
6834 of list marker in ordered lists. Closes #516.
6836 * Org writer: Add space before language name. Closes #523.
6838 * Docx writer: Simplified bullet characters so they work properly
6839 with Word 2007. Closes #520.
6841 * LaTeX reader: Support `\centerline`.
6843 * RST reader: handle figures. Closes #522.
6845 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
6846 (Paul Rivier)
6848pandoc (1.9.3)
6850 * Fixed bug in `fromEntities`. The previous version would turn
6851 `hi & low you know;` into `hi &`.
6853 * HTML reader:
6855 + Don't skip nonbreaking spaces.
6856 Previously a paragraph containing just `&nbsp;` would be rendered
6857 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
6858 + Support `<col>` and `<caption>` in tables. Closes #486.
6860 * Markdown reader:
6862 + Don't recognize references inside delimited code blocks.
6863 + Allow list items to begin with lists.
6865 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
6867 * LaTeX reader:
6869 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
6870 + Control sequences can't be followed by a letter.
6871 This fixes a bug where `\begingroup` was parsed as `\begin`
6872 followed by `group`.
6873 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
6874 + Make `\label` and `\ref` sensitive to `--parse-raw`.
6875 If `--parse-raw` is selected, these will be parsed as raw latex
6876 inlines, rather than bracketed text.
6877 + Don't crash on unknown block commands (like `\vspace{10pt}`)
6878 inside `\author`; just skip them. Closes #505.
6880 * Textile reader:
6882 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
6883 + Added support for LaTeX blocks and inlines (Paul Rivier).
6884 + Better conformance to RedCloth inline parsing (Paul Rivier).
6885 + Parse '+text+' as emphasized (should be underlined, but this
6886 is better than leaving literal plus characters in the output.
6888 * Docx writer: Fixed multi-paragraph list items. Previously they each
6889 got a list marker. Closes #457.
6891 * LaTeX writer:
6893 + Added `--no-tex-ligatures` option to avoid replacing
6894 quotation marks and dashes with TeX ligatures.
6895 + Use `fixltx2e` package to provide '\textsubscript'.
6896 + Improve spacing around LaTeX block environments:
6897 quote, verbatim, itemize, description, enumerate.
6898 Closes #502.
6899 + Use blue instead of pink for URL links in latex/pdf output.
6901 * ConTeXt writer: Fixed escaping of `%`.
6902 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
6903 Inside URLs, `%` needs to be escaped as `\%`
6904 Thanks to jmarca and adityam for the fix. Closes #492.
6906 * Texinfo writer: Escape special characters in node titles.
6907 This fixes a problem pointed out by Joost Kremers. Pandoc used
6908 to escape an '@' in a chapter title, but not in the corresponding
6909 node title, leading to invalid texinfo.
6911 * Fixed document encoding in texinfo template.
6912 Resolves Debian Bug #667816.
6914 * Markdown writer:
6916 + Don't force delimited code blocks to be flush left.
6917 Fixes bug with delimited code blocks inside lists etc.
6918 + Escape `<` and `$`.
6920 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
6921 Previously we used `\href{\#ident}{text}`, which didn't work on
6922 all systems. Thanks to Dirk Laurie.
6924 * RST writer: Don't wrap link references. Closes #487.
6926 * Updated to use latest versions of blaze-html, mtl.
6929pandoc (1.9.2)
6931 * LaTeX reader:
6933 + Made `lstlisting` work as a proper verbatim environment.
6934 + Fixed bug parsing LaTeX tables with one column.
6936 * LaTeX writer:
6938 + Use `{}` around `ctable` caption, so that formatting can be used.
6939 + Don't require eurosym package unless document has a €.
6941 * LaTeX template: Added variables for `geometry`, `romanfont`,
6942 `sansfont`, `mathfont`, `mainfont` so users can more easily
6943 customize fonts.
6945 * PDF writer:
6947 + Run latex engine at least two times, to ensure
6948 that PDFs will have hyperlinked bookmarks.
6949 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
6951 * Texinfo writer: retain directories in image paths. (Peter Wang)
6953 * RST writer: Better handling of inline formatting, in accord
6954 with docutils' "inline markup recognition rules" (though we don't
6955 implement the unicode rules fully). Now `hi*there*hi` gets
6956 rendered properly as `hi\ *there*\ hi`, and unnecessary
6957 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
6959 * RST reader:
6961 + Parse `\ ` as null, not escaped space.
6962 + Allow `` :math:`...` `` even when not followed by blank
6963 or `\`. This does not implement the complex rule docutils follows,
6964 but it should be good enough for most purposes.
6965 + Add support for the rST default-role directive. (Greg Maslov)
6967 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
6968 (Greg Maslov)
6970 * Markdown reader: Properly handle citations nested in other inline
6971 elements.
6973 * Markdown writer: don't replace empty alt in image with "image".
6975 * DZSlides: Updated template.html and styles in default template.
6976 Removed bizarre CSS for `q` in dzslides template.
6978 * Avoid repeated `id` attribute in section and header in HTML slides.
6980 * README improvements: new instructions on internal links,
6981 removed misleading note on reST math.
6983 * Build system:
6985 + Fixed Windows installer so that dzslides works.
6986 + Removed stripansi.sh.
6987 + Added .travis.yml for Travis continuous integration support..
6988 + Fixed upper bound for zlib (Sergei Trofimovich).
6989 + Fixed upper bound for test-framework.
6990 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
6992pandoc (1.9.1.2)
6994 * Added `beamer+lhs` as output format.
6996 * Don't escape `<` in `<style>` tags with `--self-contained`.
6997 This fixes a bug which prevented highlighting from working
6998 when using `--self-contained`.
7000 * PDF: run latex engine three times if `--toc` specified.
7001 This fixes page numbers in the table of contents.
7003 * Docx writer: Added TableNormal style to tables.
7005 * LaTeX math environment fixes. `aligned` is now used instead of
7006 the nonexistent `aligned*`. `multline` instead of the nonexistent
7007 `multiline`.
7009 * LaTeX writer: Use `\textasciitilde` for literal `~`.
7011 * HTML writer: Don't escape contents of EQ tags with --gladtex.
7012 This fixes a regression from 1.8.
7014 * Use `<q>` tags for Quoted items for HTML5 output.
7015 The quote style can be changed by modifying the template
7016 or including a css file. A default quote style is included.
7018 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
7019 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
7021 * Updated LaTeX template for better language support.
7022 Use `polyglossia` instead of `babel` with xetex.
7023 Set `lang` as documentclass option.
7024 `\setmainlanguage` will use the last of a comma-separated
7025 list of languages. Thanks to François Gannaz.
7027 * Fixed default LaTeX template so `\euro` and `€` work. The
7028 `eurosym` package is needed if you are using pdflatex.
7030 * Fixed escaping of period in man writer (thanks to Michael Thompson).
7032 * Fixed list label positions in beamer.
7034 * Set `mainlang` variable in context writer.
7035 This parallels behavior of latex writer. `mainlang` is the last
7036 of a comma-separated list of languages in lang.
7038 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
7040 * Changed `-V` so that you can specify a key without a value.
7041 Such keys get the value `true`.
7043 * Fixed permissions on installed man pages - thanks Magnus Therning.
7045 * Windows installer: require XP or higher. The installer is
7046 now compiled on a Windows 7 machine, which fixes a problem
7047 using citation functions on Windows 7.
7049 * OSX package: Check for 64-bit Intel CPU before installing.
7051pandoc (1.9.1.1)
7053 * Better handling of raw latex environments in markdown. Now
7055 \begin{equation}
7056 a_1
7057 \end{equation}
7059 turns into a raw latex block as expected.
7061 * Improvements to LaTeX reader:
7063 + Skip options after block commands.
7064 + Correctly handle `{\\}` in braced.
7065 + Added a needed 'try'.
7066 + Citations: add `, ` to suffix if it doesn't start with space or
7067 punctuation. Otherwise we get no space between the year and the
7068 suffix in author-date styles.
7070 * Added two needed data files for S5. This fixes a problem with
7071 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
7072 which was no longer being used.
7074 * Fixed some minor problems in `reference.docx`:
7075 name on "Date" style, `xCs` instead of `xIs`.
7077 * Fixed a problem creating docx files using a reference docx
7078 modified using Word. The problem seems to be that Word
7079 modifies `_rels/.rels`, changing the Type of the Relationship to
7080 `docProps/core.xml`. Pandoc now changes this back to the correct
7081 value if it has been altered, fixing the problem.
7083 * Fixed html5 template so it works properly with highlighting.
7085pandoc (1.9.1)
7087 * LaTeX reader:
7089 + Fixed regression in 1.9; properly handle escaped $ in latex math.
7090 + Put LaTeX verse environments in blockquotes.
7092 * Markdown reader:
7094 + Limit nesting of strong/emph. This avoids exponential lookahead
7095 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
7096 + Improved attributes syntax (inn code blocks/spans):
7097 (1) Attributes can contain line breaks. (2) Values in key-value
7098 attributes can be surrounded by either double or single quotes, or
7099 left unquoted if they contain no spaces.
7101 * Don't wrap headers in markdown or RST writers.
7103 * Added `stateMaxNestingLevel` to `ParserState`.
7104 We set this to 6, so you can still have `Emph` inside `Emph`,
7105 just not indefinitely.
7107 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
7109 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
7110 is present.
7112 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
7114pandoc (1.9.0.5)
7116 * Changed cabal file so that build-depends for the test program
7117 are not required unless the tests flag is used.
7119 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
7120 form ligatures (dashes) in code spans.
7122pandoc (1.9.0.4)
7124 * Raised version bound on test-framework to avoid problems
7125 compiling tests on GHC 7.4.1.
7127 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
7128 so citations don't just disappear unless you process with
7129 citeproc. Ignore `\bibliographystyle`, `\nocite`.
7131 * Simplified tex2pdf; it will always run latex twice to
7132 resolve table of contents and hyperrefs.
7134pandoc (1.9.0.3)
7136 * Require Cabal >= 1.10.
7137 * Tweaked cabal file to meet Cabal 1.10 requirements.
7139pandoc (1.9.0.2)
7141 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
7142 ghc 6.12.
7144pandoc (1.9)
7146 [new features]
7148 * Added a Microsoft Word `docx` writer. The writer includes support
7149 for highlighted code and for math (which is converted from TeX to OMML,
7150 Office's native math markup language, using texmath's new OMML module).
7151 A new option `--reference-docx` allows the user to customize the
7152 styles.
7154 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
7156 * Better support for slide shows:
7158 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
7159 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
7161 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
7162 slide presentations.
7164 + New, flexible rules for dividing documents into sections and slides
7165 (see the "Structuring the slide show" in the User's Guide). These
7166 are backward-compatible with the old rules, but they allow slide
7167 shows to be organized into sections and subsections containing
7168 multiple slides.
7170 + A new `--slide-level` option allows users to override defaults
7171 and select a slide level below the first header level with content.
7173 * A new `--self-contained` option produces HTML output that does not
7174 depend on an internet connection or the presence of any external
7175 files. Linked images, CSS, and javascript is downloaded (or fetched
7176 locally) and encoded in `data:` URIs. This is useful for making portable
7177 `HTML slide shows. The --offline` option has been deprecated and is now
7178 `treated as a synonym or --self-contained`.
7180 * Support for PDF output:
7182 + Removed the old `markdown2pdf`.
7183 + `pandoc` can now create PDFs (assuming you have latex and a set of
7184 appropriate packages installed): just specify an output file with the
7185 `.pdf` extension.
7186 + A new option `--latex-engine` allows you to specify `pdflatex`,
7187 `xelatex`, or `lualatex` as the processor.
7189 * Highlighting changes:
7191 + Syntax highlighting is now a standard feature; the `highlighting`
7192 flag is no longer needed when compiling.
7193 + A new `--no-highlight` option allows highlighting to be disabled.
7194 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
7195 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
7196 + A new `--highlight-style` option selects between various highlighting
7197 color themes.
7199 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
7201 * LaTeX `\include` and `\usepackage` commands are now processed,
7202 provided the files are in the working directory.
7204 * EPUB improvements:
7206 + Internal and external links now work in EPUB.
7207 + Raw HTML is allowed.
7208 + New `--epub-embed-font` option.
7209 + Customizable templates for EPUB pages offer more control over
7210 formatting: `epub-page.html`, `epub-coverimage.html`,
7211 `epub-titlepage.html`.
7213 * `--mathml` now works with DocBook.
7215 * Added support for math in RST reader and writer. Inline math uses the
7216 `` :math:`...` `` construct. Display math uses
7218 .. math:: ...
7220 or if the math is multiline,
7222 .. math::
7224 ...
7226 These constructions are now supported now by `rst2latex.py`.
7228 * GitHub syntax for fenced code blocks is supported in pandoc's
7229 markdown. You can now write
7231 ```ruby
7232 x = 2
7233 ```
7235 instead of
7237 ~~~ {.ruby}
7238 x = 2
7239 ~~~~
7241 * Easier scripting: a new `toJsonFilter` function makes it easier to
7242 write Haskell scripts to manipulate the Pandoc AST.
7244 [behavior changes]
7246 * Fixed parsing of consecutive lists in markdown.
7247 Pandoc previously behaved like Markdown.pl for consecutive
7248 lists of different styles. Thus, the following would be parsed
7249 as a single ordered list, rather than an ordered list followed
7250 by an unordered list:
7252 1. one
7253 2. two
7255 - one
7256 - two
7258 This change makes pandoc behave more sensibly, parsing this as
7259 two lists. Any change in list type (ordered/unordered) or in
7260 list number style will trigger a new list. Thus, the following
7261 will also be parsed as two lists:
7263 1. one
7264 2. two
7266 a. one
7267 b. two
7269 Since we regard this as a bug in Markdown.pl, and not something
7270 anyone would ever rely on, we do not preserve the old behavior
7271 even when `--strict` is selected.
7273 * Dashes work differently with `--smart`: `---` is always em-dash,
7274 and `--` is always en-dash. Pandoc no longer tries to guess when
7275 `-` should be en-dash. *Note:* This may change how existing documents
7276 look when processed with pandoc. A new option, `--old-dashes`,
7277 is provided for legacy documents.
7279 * The markdown writer now uses setext headers for levels 1-2.
7280 The old behavior (ATX headers for all levels) can be restored
7281 using the new `--atx-headers` option.
7283 * Links are now allowed in markdown image captions. They are also
7284 allowed in links, but will appear there as regular text. So,
7286 [link with [link](/url)](/url)
7288 will turn into
7290 <p><a href="/url">link with link</a></p>
7292 * Improved handling of citations using `citeproc-hs-0.3.4`.
7293 Added `--citation-abbreviations` option.
7295 * Citation keys can no longer end with a punctuation character.
7296 This means that `@item1.` will be parsed as a citation with key
7297 'item1', followed by a period, instead of a citation with key
7298 'item1.', as was the case previously.
7300 * In HTML output, citations are now put in a span with class `citation`.
7302 * The markdown reader now recognizes DocBook block and inline tags.
7303 It was always possible to include raw DocBook tags in a markdown
7304 document, but now pandoc will be able to distinguish block from
7305 inline tags and behave accordingly. Thus, for example,
7307 <sidebar>
7308 hello
7309 </sidebar>
7311 will not be wrapped in `<para>` tags.
7313 * The LaTeX parser has been completely rewritten; it is now much more
7314 accurate, robust, and extensible. However, there are two important
7315 changes in how it treats unknown LaTeX. (1) Previously, unknown
7316 environments became BlockQuote elements; now, they are treated
7317 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
7318 same as `xyz`. (2) Previously, arguments of unknown commands
7319 were passed through with their braces; now the braces are stripped
7320 off.
7322 * `--smart` is no longer selected automatically with `man` output.
7324 * The deprecated `--xetex` option has been removed.
7326 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
7327 instead. `html5` and `html5+lhs` are now separate output formats.
7329 * Single quotes are no longer escaped in HTML output. They do not
7330 need to be escaped outside of attributes.
7332 * Pandoc will no longer transform leading newlines in code
7333 blocks to `<br/>` tags.
7335 * The ODT writer now sizes images appropriately, using the image
7336 size and DPI information embedded in the image.
7338 * `--standalone` is once again implicitly for a non-text output format
7339 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
7340 and get a standalone ODT file.
7342 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
7343 `<section>`.
7345 * The HTML writer now uses `<del>` for strikeout.
7347 * In HTML output with `--section-divs`, the classes `section` and
7348 `level[1,2,..6]` are put on the `div` tags so they can be styled.
7349 In HTML 5 output with `--section-divs`, the classes
7350 `level[1,2,...6]` are put on `section` tags.
7352 * EPUB writer changes:
7354 + The `lang` variable now sets the language
7355 in the metadata (if it is not set, we default to the locale).
7356 + EPUB: UTF-8 is used rather than decimal entities.
7358 * Added `titleslide` class to title slide in S5 template.
7360 * In HTML, EPUB, and docx metadata, the date is normalized into
7361 YYYY-MM-DD format if possible. (This is required for validation.)
7363 * Attributes in highlighted code blocks are now preserved in HTML.
7364 The container element will have the classes, id, and key-value attributes
7365 you specified in the delimited code block. Previously these were stripped
7366 off.
7368 * The reference backlink in the HTML writer no longer has a special
7369 `footnoteBacklink` class.
7371 * The HTML template has been split into `html` and `html5` templates.
7373 * Author and date are treated more consistently in HTML templates.
7374 Authors are now `<h2>`, date `<h3>`.
7376 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
7378 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
7380 [bug fixes]
7382 * Better support for combining characters and East Asian wide characters
7383 in markdown and reST.
7385 * Better handling of single quotes with `--smart`.
7386 Previously `D'oh l'*aide*` would be parsed with left and right single
7387 quotes instead of apostrophes. This kind of error is now fixed.
7389 * Highlighting: Use `reads` instead of `read` for better error handling.
7390 Fixes crash on `startNum="abc"`.
7392 * Added blank comment after directives in rst template.
7394 * Unescape entities in citation `refId`. The `refId`s coming
7395 from citeproc contain XML numeric entities, and these don't match with the
7396 citation keys parsed by pandoc. Solution is to unescape them.
7398 * HTML reader: Fixed bug parsing tables with both thead and tbody.
7400 * Markdown reader:
7402 + Better handling of escapes in link URLs and titles.
7403 + Fixed backslash escapes in reference links.
7404 + Fixed bug in table/hrule parsing, by checking that the top
7405 line of a table is not followed by a blank line. This bug caused
7406 slowdowns on some files with hrules and tables, as pandoc tried to
7407 interpret the hrules as the tops of multiline tables.
7408 + Fixed bug in code block attribute parser. Previously the ID attribute
7409 got lost if it didn't come first. Now attributes can come in any order.
7411 * RST reader: allow footnotes followed by newline without space characters.
7413 * LaTeX reader:
7415 + Ignore empty groups {}, { }.
7416 + LaTeX reader: Handle \@.
7417 + LaTeX reader: Don't crash on commands like `\itemsep`.
7418 + LaTeX reader: Better handling of letter environments.
7420 * RST writer: Fixed bug involving empty table cells. isSimple was being
7421 calculated in a way that assumed there were no non-empty cells.
7423 * ConTeXt writer:
7425 + Made `--toc` work even without `--number-sections`.
7426 + Escape # in link URLs.
7427 + Use buffering for footnotes containing code blocks.
7428 + Changed 'descr' to 'description', fixed alignment.
7430 * LaTeX writer:
7432 + Escape euro character.
7433 + Don't escape ~ inside href{...}.
7434 + Escape # in href URLs.
7435 + Improved detection of book classes. We now check the
7436 `documentclass` variable, and if that is not set, we look through
7437 the template itself. Also, we have added the KOMA classes scrreprt
7438 and scrbook. You can now make a book using
7439 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
7440 + LHS files now set the "listings" variable, so that the definition
7441 of the `code` environment will be included in the template.
7442 + Links are colored blue by default (this can be changed by
7443 modifying `hyperref` settings in the template).
7444 + Added `lang` variable to LaTeX template.
7446 * HTML writer:
7448 + Fixed bug in HTML template with html5 and mathml.
7449 + Don't use self-closing img, br, hr tags for HTML5.
7450 + Use `<section>` for footnotes if HTML5.
7451 + Update HTML templates to use Content-Style-Type meta tag.
7452 + Use separate variables for meta-date, meta-author.
7453 This makes footnotes work in author and date fields.
7454 + Use 'vertical-align:middle' in WebTeX math for better alignment.
7456 * S5/slidy writer: Make footnotes appear on separate slide at end.
7458 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
7459 META-INF/manifest.xml for ODT files will have everything it needs, so
7460 that ODT files modified by LibreOffice can be used as `--reference-odt`.
7462 * `Text.Pandoc.Templates`: Return empty string for json template.
7464 * `Text.Pandoc.Biblio`:
7466 + Expand citations recursively inside nested inlines.
7467 + Treat `\160` as space when parsing locator and suffix.
7468 This fixes a bug with "p. 33" when `--smart` is used. Previously
7469 the whole "p. 33" would be included in the suffix, with no locator.
7470 + Put whole author-in-text citation in a Cite. Previously just the
7471 date and other info went in the Cite.
7472 + Don't add comma+space to prefix if it ends in punctuation.
7474 * Updated chicago-author-date.csl. The old version did not work
7475 properly for edited volumes with no author.
7477 * EPUB writer:
7479 + Add date to EPUB titlepage and metadata.
7480 + Added TOC identifier in EPUB page template.
7481 + Don't generate superfluous file `cover-image.jpg`.
7483 [under the hood improvements]
7485 * Modified `make_osx_package.sh` to use cabal-dev.
7486 Items are no longer installed as root.
7487 Man pages are zipped and given proper permissions.
7489 * Modified windows installer generater to use cabal-dev.
7491 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
7492 Setup.hs we now invoke 'runghc' in a way that points it to the correct
7493 package databases, instead of always falling back to the default user
7494 package db.
7496 * Updated to work with GHC 7.4.1.
7498 * Removed dependency on old-time.
7500 * Removed dependency on dlist.
7502 * New slidy directory for "self-contained."
7504 * TeXMath writer: Use unicode thin spaces for thin spaces.
7506 * Markdown citations: don't strip off initial space in locator.
7508 [API changes]
7510 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
7511 from the native `Inline` type in pandoc-types. Now we use `Str`
7512 elements with unicode.
7514 * Improvements to `Text.Pandoc.Builder`:
7516 + `Inlines` and `Blocks` are now newtypes (not synonyms for
7517 sequences).
7518 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
7519 and a new `Listable` class, which allows these to be manipulated
7520 to some extent like lists. Monoid append includes automatic
7521 normalization.
7522 + `+++` has been replaced by `<>` (mappend).
7524 * Use blaze-html instead of xhtml for HTML generation.
7525 This changes the type of `writeHtml`.
7527 * `Text.Pandoc.Shared`:
7529 + Added `warn` and `err`.
7530 + Removed `unescapeURI`, modified `escapeURI`.
7531 (See under [behavior changes], above.)
7533 * Changes in URI escaping: Previously the readers escaped URIs by
7534 converting unicode characters to octets and then percent encoding.
7535 Now unicode characters are left as they are, and `escapeURI` only
7536 percent-encodes space characters. This gives more readable
7537 URIs, and works well with modern user agents. URIs are no longer unescaped
7538 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
7540 * New module `Text.Pandoc.SelfContained`.
7542 * New module `Text.Pandoc.Docx`.
7544 * New module `Text.Pandoc.PDF`.
7546 * Added `writerBeamer` to `WriterOptions`.
7548 * Added `normalizeDate` to `Text.Pandoc.Shared`.
7550 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
7551 This is like `splitWithIndices`, but it is sensitive to distinctions
7552 between wide, combining, and regular characters.
7554 * `Text.Pandoc.Pretty`:
7556 + Added `chomp` combinator.
7557 + Added `beforeNonBreak` combinator. This allows you to include
7558 something conditionally on it being before a nonblank.
7559 Used for RST inline math.
7560 + Added `charWidth` function. All characters marked W or F in the unicode
7561 spec EastAsianWidth.txt get width 2.
7562 + Added `realLength`, based on `charWidth`. `realLength` is now
7563 used in calculating offsets.
7565 * New module `Text.Pandoc.Slides`, for common functions for breaking
7566 a document into slides.
7568 * Removed `Text.Pandoc.S5`, which is no longer needed.
7570 * Removed `Text.Pandoc.CharacterReferences`. Moved
7571 `characterReference` to `Text.Pandoc.Parsing`.
7572 `decodeCharacterReferences` is replaced by `fromEntities`
7573 in `Text.Pandoc.XML`.
7575 * Added `Text.Pandoc.ImageSize`. This is intened for use
7576 in `docx` and `odt` writers, so the size and dpi of images
7577 can be calculated.
7579 * Removed `writerAscii` in `WriterOptions`.
7581 * Added `writerHighlight` to `WriterOptions`.
7583 * Added `DZSlides` to `HTMLSlideVariant`.
7585 * `writeEPUB` has a new argument for font files to embed.
7587 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
7588 of whether we're parsing the position immediately after a regular
7589 (non-space, non-symbol) string, which is useful for distinguishing
7590 apostrophes from single quote starts.
7592 * `Text.Pandoc.Parsing`:
7594 + `escaped` now returns a `Char`.
7595 + Removed `charsInBalanced'`, added a character parser as
7596 a parameter of `charsInBalanced`. This is needed for
7597 proper handling of escapes, etc.
7598 + Added `withRaw`.
7600 * Added `toEntities` to `Text.Pandoc.XML`.
7602 * `Text.Pandoc.Readers.LaTeX`:
7604 + Export `handleIncludes`.
7605 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
7607 * Added `ToJsonFilter` class and `toJsonFilter` function to
7608 `Text.Pandoc`, deprecating the old `jsonFilter` function.
7610 * `Text.Pandoc.Highlighting`:
7612 + Removed `highlightHtml`, `defaultHighlightingCss`.
7613 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
7614 key functions from highlighting-kate.
7615 + Changed types of highlighting function. `highlight` returns a
7616 `Maybe`, not an `Either`.
7618pandoc (1.8.2.1)
7620 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
7622 * Relaxed cabal constraints for pandoc-types.
7624 * Adjusted Arbitrary instance to help avoid timeouts in tests.
7626 * Added `Tests.Writers.Markdown` to cabal file.
7628pandoc (1.8.2)
7630 * Added script to produce OS X package.
7632 * Made `templates` directory a git submodule. This should make it
7633 easier for people to revise their custom templates when the default
7634 templates change.
7636 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
7637 **Note:** If you have existing templates in `~/.pandoc/templates`, you
7638 must rename them to conform to the new scheme!
7640 * Fixed smart quotes bug, now handling `'...hi'` properly.
7642 * RST reader:
7644 + Partial support for labeled footnotes.
7645 + Improved accuracy of `simpleReferenceName` parser.
7647 * HTML reader:
7649 + Substitute correct unicode characters for
7650 characters in the 128..159 range, which are often found even in
7651 HTML that purports to be UTF-8.
7653 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
7654 to the title, after a colon and linebreak). Closes #280.
7656 * Leaner `reference.odt`.
7658 * Added unexported module `Text.Pandoc.MIME` for use in
7659 the ODT writer.
7661 * ODT writer: Construct `manifest.xml` based on archive contents.
7662 This fixes a bug in ODTs containing images. Recent versions of
7663 LibreOffice would reject these as corrupt, because `manifest.xml`
7664 did not contain a reference to the image files.
7666 * LaTeX writer:
7668 + Make verbatim environments flush to avoid spurious
7669 blank lines. Closes #277.
7670 + Use `\texttt` and escapes insntead of `\verb!...!`, which
7671 is too fragile (doesn't work in command arguments).
7672 + Use `\enquote{}` for quotes if the template includes
7673 the `csquotes` package. This provides better support for
7674 local quoting styles. (Thanks to Andreas Wagner for the idea.)
7676 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
7677 margin, preventing spurious blank lines.
7679 * Slidy writer:
7681 + Use non-minimized version of `slidy.css` with `--offline`
7682 option, so users can more easily edit it.
7683 + Also fixed a bug in the CSS that prevented proper centering
7684 of title (now reported and fixed upstream).
7686 * S5 writer:
7688 + Replaced `s5/default/slides.js.{comment,packed}` with
7689 new compressed `s5/default/slides.min.js`.
7690 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
7691 when `--offline` is specified. Using inline CSS didn't
7692 work with Chrome or Safari. This fixes offline
7693 S5 on those browsers.
7695 * HTML writer: Removed English title on footnote backlinks.
7696 This is incongrous in non-English documents.
7698 * Docbook writer:
7700 + Use CALS tables. (Some older docbook software does not work
7701 well with XHTML tables.) Closes #77.
7702 + Use `programlisting` tags (instead of `screen`) for code blocks.
7704 * `markdown2pdf`:
7706 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
7707 of `-interaction=batchmode`, which essentially just ignored errors,
7708 leading to bad results. Better to know when something is wrong.
7709 + Fixed issues with non-UTF-8 output of `pdflatex`.
7710 + Better error reporting.
7712 * `--mathjax` now takes an optional URL argument. If it is not
7713 provided, pandoc links directly to the (secure) mathjax CDN,
7714 as now recommended (thanks to dsanson).
7716 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
7717 since the LaTeX writer now produces a file that can be processed by
7718 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
7720 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
7721 to be used to create the PDF.
7723 * If a template specified with `--template` is not found, look for it
7724 in `datadir`. Also, if no extension is provided, supply one based
7725 on the writer. So now you can put your `special.latex` template in
7726 `~/.pandoc/templates`, and use it from any directory via
7727 `pandoc -t latex --template special`.
7729 * Default template improvements:
7731 + HTML: Display author and date after title.
7732 + HTML: Made table of contents more customizable. The container
7733 for the TOC is now in the template, so users can insert a header
7734 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
7735 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
7736 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
7737 hard-coding. If you want to put your slidy files in the slidy
7738 subdirectory, for example, you can do
7739 `pandoc -t slidy -V slidy-url=slidy -s`.
7740 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
7741 & writer). Closes #279.
7742 + LaTeX: Use different `hyperref` options for `xetex`, fixing
7743 problems with unicode bookmarks (thanks to CircleCode).
7744 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
7745 with `inputenc`. This covers fewer characters but is more
7746 robust with other packages, and `ucs` is unmaintained. Users
7747 who need better unicode support should use xelatex or lualatex.
7749pandoc (1.8.1.2)
7751 * Added `--epub-cover-image` option.
7753 * Documented `--biblatex` and `--natbib` options.
7755 * Allow `--section-divs` with slidy output. Resolves Issue #296.
7757 * Disallow notes within notes in reST and markdown.
7758 These previously caused infinite looping and stack overflows.
7759 For example:
7761 [^1]
7763 [^1]: See [^1]
7765 Note references are allowed in reST notes, so this isn't a full
7766 implementation of reST. That can come later. For now we need to
7767 prevent the stack overflows. Partially resolves Issue #297.
7769 * EPUB writer: Allow non-plain math methods.
7771 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
7772 `(@item1; @item2)` because the final paren was being parsed as part of
7773 the item key.
7775 * Changed URI parser so it doesn't include trailing punctuation.
7776 So, in RST, `http://google.com.` should be parsed as a link followed by a
7777 period. The parser is smart enough to recognize balanced parentheses, as
7778 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
7780 * Markdown+lhs reader: Require space after inverse bird tracks, so that
7781 HTML tags can be used freely at the left margin of a markdown+lhs document.
7782 Thanks to Conal Elliot for the suggestion.
7784 * Markdown reader:
7786 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
7787 + Fixed bug in footnote order (reported by CircleCode).
7789 * RST reader:
7790 + Fixed bug in in field lists with multi-line items at the
7791 end of the list.
7792 + Added parentheses to RST `specialChars`, so
7793 `(http://google.com)` will be parsed as a link in parens.
7794 Resolves Issue #291.
7795 + Allow `|` followed by newline in RST line block.
7797 * LaTeX reader:
7798 + Support `\dots`.
7799 + Gobble option & space after linebreak `\\[10pt]`.
7801 * Textile reader:
7802 + Make it possible to have colons after links. (qerub)
7803 + Make it possible to have colons after links. (Christoffer Sawicki)
7805 * HTML reader:
7806 + Skip spaces after `<b>`, `<emph>`, etc.
7807 + Handle tbody, thead in simple tables. Closes #274.
7808 + Implicit `Para`s instead of `Plains` in some contexts.
7810 * OpenDocument writer: Use special `First paragraph` style for
7811 first paragraph after most non-paragraph blocks. This allows users to
7812 specify e.g. that only paragraphs after the first paragraph of a block are
7813 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
7815 * LaTeX writer: use `deVerb` on table and picture captions.
7816 Otherwise LaTeX complains about `\verb` inside command argument.
7817 Thanks to bbanier for reporting the bug.
7819 * Markdown writer: Insert HTML comment btw list and indented code block.
7820 This prevents the code block from being interpreted as part of the list.
7822 * EPUB writer: Add a meta element specify the cover.
7823 Some EPUB e-readers, such as the Nook, require a meta element inside the
7824 OPF metadata block to ensure the cover image is properly displayed.
7825 (Kelsey Hightower)
7827 * HTML writer: Use embed tag for images with non-image extensions.
7828 (e.g. PDFs). Closes #264.
7830 * LaTeX writer: Improved tables.
7832 + More space between lines, top-align cells.
7833 + Use ctable package, which allows footnotes and
7834 provides additional options.
7835 + Made cell alignments work in multiline tables.
7836 + Closes #271, #272.
7838 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
7839 Also do this when copying image files into EPUBs and ODTs.
7840 Closes #263.
7842 * Changed to github issue tracker.
7844 * Added failing emph/strong markdown test case due to Perry Wagle.
7846 * Slidy improvements:
7847 + Updated to use Slidy2.
7848 + Fixed bug, unclosed div tag.
7849 + Added `duration` variable in template.
7850 Setting this activates the timer.
7851 + Use 'titlepage' instead of 'cover' for title div.
7853pandoc (1.8.1.1)
7855 * `markdown2pdf`: Removed some debugging lines accidentally included
7856 in the 1.8.1 release. With those lines, the temp directory is created
7857 in the working directory, and it is not deleted. This fix restores
7858 the original behavior.
7860pandoc (1.8.1)
7862 * Added `--ascii` option. Currently supported only in HTML writer,
7863 which it causes to use numerical entities instead of UTF-8.
7865 * EPUB writer: `--toc` now works to provide a table of contents
7866 at the beginning of each chapter.
7868 * LaTeX writer: Change figure defaults to `htbp`.
7869 This prevents "too many unprocessed floats." Resolves
7870 Issue #285.
7872 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
7873 base.
7875 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
7876 Tanimoto. Resolves Issue #286.
7878 * HTML writer: Put line breaks in section divs.
7880 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
7882pandoc (1.8.0.3)
7884 * Fixed Source-repository stanza in cabal file.
7886pandoc (1.8.0.2)
7888 * HTML writer:
7890 + Stringify alt text instead of converting to HTML.
7891 + Break lines after block elements, not inside tags.
7892 HTML output now closely resembles that of tidy. Resolves Issue #134.
7894 * Markdown reader: Fixed bug in footnote block parser (pointed out
7895 by Jesse Rosenthal). The problem arose when the blank line
7896 at the end of a footnote block contained indenting spaces.
7898 * Shared: Improved 'normalize' function so it normalizes Spaces too.
7899 In normal form, Space elements only occur to separate two non-Space
7900 elements. So, we never have [Space], or [, ..., Space].
7902 * Tests:
7904 + Improved Arbitrary instance.
7905 + Added timeout for test instances.
7907 * README:
7909 + Added section on four-space rule for lists. Resolves Issue #283.
7910 + Clarified optional arguments on math options.
7912 * markdown2pdf: Fixed bug with output file extensions.
7913 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
7914 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
7916pandoc (1.8.0.1)
7918 * Revised Interact.hs so that it works with the CPP macros
7919 in the UTF8 module.
7921 * Revised Setup.hs so that we don't call MakeManPage.hs unless
7922 the man pages are out of date.
7924pandoc (1.8)
7926 [new features]
7928 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
7929 You can now write, for example,
7931 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
7933 and, when you process your document using `pandoc`, specifying
7934 a citation style using `--csl` and a bibliography using `--bibliography`,
7935 the citation will be replaced by an appropriately formatted
7936 citation, and a list of works cited will be added to the end
7937 of the document.
7939 This means that you can switch effortlessly between different citation
7940 and bibliography styles, including footnote, numerical, and author-date
7941 formats. The bibliography can be in any of the following formats: MODS,
7942 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
7943 See the README for further details.
7945 Citations are supported in the markdown reader, using a special
7946 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
7947 (Thanks to Nathan Gass for the natbib and biblatex support.)
7949 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
7950 the `textile` reader, an almost complete implementation of the textile
7951 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
7952 Resolves Issue #51.
7954 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
7956 * New `json` reader and writer, for reading and writing a JSON
7957 representation of the native Pandoc AST. These are much faster
7958 than the `native` reader and writer, and should be used for
7959 serializing Pandoc to text. To convert between the JSON representation
7960 and native Pandoc, use `encodeJSON` and `decodeJSON` from
7961 `Text.JSON.Generic`.
7963 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
7964 to write scripts that transform a JSON-encoded pandoc document.
7965 For example:
7967 -- removelinks.hs - removes links from document
7968 import Text.Pandoc
7969 main = interact $ jsonFilter $ bottomUp removeLink
7970 where removeLink (Link xs _) = Emph xs
7971 removeLink x = x
7973 To use this to remove links while translating markdown to LaTeX:
7975 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
7977 * Attributes are now allowed in inline `Code` elements, for example:
7979 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
7981 The attribute syntax is the same as for delimited code blocks.
7982 `Code` inline has an extra argument place for attributes, just like
7983 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
7984 is compiled with highlighting support. Resolves Issue #119.
7986 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
7987 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
7988 scripts to transform Pandoc documents. Scripts can now change
7989 how each element is rendered in each output format.
7991 * You can now define LaTeX macros in markdown documents, and pandoc
7992 will apply them to TeX math. For example,
7994 \newcommand{\plus}[2]{#1 + #2}
7995 $\plus{3}{4}$
7997 yields `3+4`. Since the macros are applied in the reader, they
7998 will work in every output format, not just LaTeX.
8000 * LaTeX macros can also be used in LaTeX documents (both in math
8001 and in non-math contexts).
8003 * A new `--mathjax` option has been added for displaying
8004 math in HTML using MathJax. Resolves issue #259.
8006 * Footnotes are now supported in the RST reader. (Note, however,
8007 that unlike docutils, pandoc ignores the numeral or symbol used in
8008 the note; footnotes are put in an auto-numbered ordered list.)
8009 Resolves Issue #258.
8011 * A new `--normalize` option causes pandoc to normalize the AST
8012 before writing the document. This means that, for example,
8013 `*hi**there*` will be rendered as `<em>hithere</em>`
8014 instead of `<em>hi</em><em>there</em>`. This is not the default,
8015 because there is a significant performance penalty.
8017 * A new `--chapters` command-line option causes headers
8018 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
8019 Resolves Issue #265.
8021 * In DocBook output, `<chapter>` is now used for top-level
8022 headers if the template contains `<book>`. Resolves Issue #265.
8024 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
8025 the LaTeX writer to use the listings package for code blocks.
8026 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
8027 Millon for the markdown2pdf patch.)
8029 * `markdown2pdf` now supports `--data-dir`.
8031 * URLs in autolinks now have class "url" so they can be styled.
8033 * Improved prettyprinting in most formats. Lines will be wrapped
8034 more evenly and duplicate blank lines avoided.
8036 * New `--columns` command-line option sets the column width for
8037 line wrapping and relative width calculations for tables.
8039 * Made `--smart` work in HTML, RST, and Textile readers, as well
8040 as markdown.
8042 * Added `--html5` option for HTML5 output.
8044 * Added support for listings package in LaTeX reader
8045 (Puneeth Chaganti).
8047 * Added support for simple tables in the LaTeX reader.
8049 * Added support for simple tables in the HTML reader.
8051 * Significant performance improvements in many readers and writers.
8053 [API and program changes]
8055 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
8056 auxiliary package, `pandoc-types`. This will make it possible for other
8057 programs to supply output in Pandoc format, without depending on the whole
8058 pandoc package.
8060 * Added `Attr` field to `Code`.
8062 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
8063 `RawBlock` and `RawInline`.
8065 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
8066 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
8067 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
8069 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
8071 * `Text.Pandoc` now exports association lists `readers` and `writers`.
8073 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
8074 `readNative` can now read full pandoc documents, block lists, blocks,
8075 inline lists, or inlines. It will interpret `Str "hi"`
8076 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
8077 This should make testing easier.
8079 * Removed deprecated `-C/--custom-header` option.
8080 Use `--template` instead.
8082 * `--biblio-file` has been replaced by `--bibliography`.
8083 `--biblio-format` has been removed; pandoc now guesses the format
8084 from the file extension (see README).
8086 * pandoc will treat an argument as a URI only if it has an
8087 `http(s)` scheme. Previously pandoc would treat some
8088 Windows pathnames beginning with `C:/` as URIs.
8090 * The `--sanitize-html` option and the `stateSanitize` field in
8091 `ParserState` have been removed. Sanitization is better done in the
8092 resulting HTML using `xss-sanitize`, which is based on pandoc's
8093 sanitization, but improved.
8095 * pandoc now adds a newline to the end of its output in fragment
8096 mode (= not `--standalone`).
8098 * Added support for `lang` in `html` tag in the HTML template,
8099 so you can do `pandoc -s -V lang=es`, for example.
8101 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
8102 a boolean argument that selects between "inline" and
8103 "block" HTML.
8105 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
8106 Images are embedded in RTF output when possible (png, jpeg).
8107 Resolves Issue #275.
8109 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
8110 `pretty` package. Changed all writers that used
8111 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
8113 * Rewrote `writeNative` using the new prettyprinting module. It is
8114 now much faster. The output has been made more consistent and compressed.
8115 `writeNative` is also now sensitive to writerStandalone`, and will simply
8116 `print a block list if writerStandalone` is False.
8118 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
8119 blocks and concatenate them, so a separate module is no longer needed.
8121 * `Text.Pandoc.Shared`:
8123 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
8124 `WriterOptions`.
8125 + Added `normalize`.
8126 + Removed unneeded prettyprinting functions:
8127 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
8128 `BlockWrapper`, `wrappedBlocksToDoc`.
8129 + Made `splitBy` take a test instead of an element.
8130 + Added `findDataFile`, refactored `readDataFile`.
8131 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
8132 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
8134 * `Text.Pandoc.Readers.HTML`:
8136 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
8137 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
8138 `htmlBlockElement`, `htmlComment`
8139 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
8140 `isTextTag`
8142 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
8143 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
8144 an inline parser.
8146 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
8148 * Ellipses are no longer allowed to contain spaces.
8149 Previously we allowed '. . .', ' . . . ', etc. This caused
8150 too many complications, and removed author's flexibility in
8151 combining ellipses with spaces and periods.
8153 * Allow linebreaks in URLs (treat as spaces). Also, a string of
8154 consecutive spaces or tabs is now parsed as a single space. If you have
8155 multiple spaces in your URL, use `%20%20`.
8157 * `Text.Pandoc.Parsing`:
8159 + Removed `refsMatch`.
8160 + Hid `Key` constructor.
8161 + Removed custom `Ord` and `Eq` instances for `Key`.
8162 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
8163 + Generalized type on `readWith`.
8165 * Small change in calculation of relative widths of table columns.
8166 If the size of the header > the specified column width, use
8167 the header size as 100% for purposes of calculating
8168 relative widths of columns.
8170 * Markdown writer now uses some pandoc-specific features when `--strict`
8171 is not specified: `\` newline is used for a hard linebreak instead of
8172 two spaces then a newline. And delimited code blocks are used when
8173 there are attributes.
8175 * HTML writer: improved gladTeX output by setting ENV appropriately
8176 for display or inline math (Jonathan Daugherty).
8178 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
8180 * LaTeX reader:
8182 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
8183 + `\index{}` commands are skipped.
8185 * Added `fontsize` variable to default LaTeX template.
8186 This makes it easy to set the font size using `markdown2pdf`:
8187 `markdown2pdf -V fontsize=12pt input.txt`.
8189 * Fixed problem with strikeout in LaTeX headers when using
8190 hyperref, by adding a command to the default LaTeX template
8191 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
8192 for the fix.
8194 * The `COLUMNS` environment variable no longer has any effect.
8196 [under-the-hood improvements]
8198 * Pandoc now compiles with GHC 7. (This alone leads to a
8199 significant performance improvement, 15-20%.)
8201 * Completely rewrote HTML reader using tagsoup as a lexer. The
8202 new reader is faster and more accurate. Unlike the
8203 old reader, it does not get bogged down on some input
8204 (Issues #277, 255). And it handles namespaces in tags
8205 (Issue #274).
8207 * Replaced `escapeStringAsXML` with a faster version.
8209 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
8210 for a significant performance boost.
8212 * Improved performance of all readers by rewriting parsers.
8214 * Simplified Text.Pandoc.CharacterReferences by using
8215 entity lookup functions from TagSoup.
8217 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
8218 from `System.IO` if base >= 4.2. This gives support for
8219 windows line endings on windows.
8221 * Remove duplications in documentation by generating the
8222 pandoc man page from README, using `MakeManPage.hs`.
8224 * README now includes a full description of markdown syntax,
8225 including non-pandoc-specific parts. A new `pandoc_markdown`
8226 man page is extracted from this, so you can look up markdown
8227 syntax by doing `man pandoc_markdown`.
8229 * Completely revised test framework (with help from Nathan Gass).
8230 The new test framework is built when the `tests` Cabal flag is set. It
8231 includes the old integration tests, but also some new unit and quickcheck
8232 tests. Test output has been much improved, and you can now specify a glob
8233 pattern after `cabal test` to indicate which tests should be run;
8234 for example `cabal test citations` will run all the citation tests.
8236 * Added a shell script, `stripansi.sh`, for filtering ANSI control
8237 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
8239 * Added `Interact.hs` to make it easier to use ghci while developing.
8240 `Interact.hs` loads `ghci` from the `src` directory, specifying
8241 all the options needed to load pandoc modules (including
8242 specific package dependencies, which it gets by parsing
8243 dist/setup-config).
8245 * Added `Benchmark.hs`, testing all readers + writers using criterion.
8247 * Added `stats.sh`, to make it easier to collect and archive
8248 benchmark and lines-of-code stats.
8250 * Added upper bounds to all cabal dependencies.
8252 * Include man pages in extra-source-files. This allows users to
8253 install pandoc from the tarball without needing to build the man
8254 pages.
8256 [bug fixes]
8258 * Filenames are encoded as UTF8. Resolves Issue #252.
8260 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
8261 were just parsed literally, leading to problems in some output formats.
8262 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
8263 Resolves Issue #270.
8265 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
8266 Spaces at end of line were not being stripped properly,
8267 resulting in unintended LineBreaks.
8269 * Markdown reader:
8271 + Allow HTML comments as inline elements in markdown.
8272 So, `aaa <!-- comment --> bbb` can be a single paragraph.
8273 + Fixed superscripts with links: `^[link](/foo)^` gets
8274 recognized as a superscripted link, not an inline note followed by
8275 garbage.
8276 + Fixed regression, making markdown reference keys case-insensitive again.
8277 Resolves Issue #272.
8278 + Properly handle abbreviations (like `Mr.`) at the end of a line.
8279 + Better handling of intraword underscores, avoiding exponential
8280 slowdowns in some cases. Resolves Issue #182.
8281 + Fixed bug in alignments in tables with blank rows in the header.
8283 * RST reader:
8285 + Field lists now allow spaces in field names, and
8286 block content in field values. (Thanks to Lachlan Musicman
8287 for pointing out the bug.)
8288 + Definition list items are now always `Para` instead of
8289 `Plain`, matching behavior of `rst2xml.py`.
8290 + In image blocks, the description is parsed properly and
8291 used for the alt attribute, not also the title.
8292 + Skip blank lines at beginning of file. Resolves
8293 Debian #611328.
8295 * LaTeX reader:
8297 + Improved parsing of preamble.
8298 Previously you'd get unexpected behavior on a document that
8299 contained `\begin{document}` in, say, a verbatim block.
8300 + Allow spaces between `\begin` or `\end` and `{`.
8301 + Support `\L` and `\l`.
8302 + Skip comments inside paragraphs.
8304 * LaTeX writer:
8306 + Escape strings in `\href{..}`.
8307 + In nonsimple tables, put cells in `\parbox`.
8309 * OpenDocument writer: don't print raw TeX.
8311 * Markdown writer:
8313 + Fixed bug in `Image`. URI was getting unescaped twice!
8314 + Avoid printing extra blank lines at the end if there are
8315 no notes or references.
8317 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
8318 This avoids unwanted interpretation as an optional argument.
8320 * ConTeXt writer: Fixed problem with inline code. Previously
8321 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
8322 If it contains neither, use `\type{}`; otherwise use `\mono{}`
8323 with an escaped version of the string.
8325 * `:` now allowed in HTML tags. Resolves Issue #274.
8327pandoc (1.6)
8329 [ John MacFarlane ]
8331 * New EPUB and HTML Slidy writers. (Issue #122)
8333 - EPUB is a standard ebook format, used in Apple's iBooks for
8334 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
8335 reader, and many other devices.
8336 - Slidy, like S5, is a system for producing HTML+javascript slide
8337 shows.
8339 * All input is assumed to be UTF-8, no matter what the locale and ghc
8340 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
8341 Also, a BOM, if present, is stripped from the input.
8343 * Markdown now supports grid tables, whose cells can contain
8344 arbitrary block elements. (Issue #43)
8346 * Sequentially numbered example lists in markdown with `@` marker.
8348 * Markdown table captions can begin with a bare colon and no longer need
8349 to include the English word "table." Also, a caption can now occur
8350 either before or after the table. (Issue #227)
8352 * New command-line options:
8354 - `--epub-stylesheet` allows you to specify a CSS file that will
8355 be used to style your ebook.
8356 - `--epub-metadata` allows you to specify metadata for the ebook.
8357 - `--offline` causes the generated HTML slideshow to include all
8358 needed scripts and stylesheets.
8359 - `--webtex` causes TeX math to be converted to images using the
8360 Google Charts API (unless a different URL is specified).
8361 - `--section-divs` causes div tags to be added around each section
8362 in an HTML document. (Issue #230, 239)
8364 * Default behavior of S5 writer in standalone mode has changed:
8365 previously, it would include all needed scripts and stylesheets
8366 in the generated HTML; now, only links are included unless
8367 the `--offline` option is used.
8369 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
8370 pandoc would enclose sections in div tags with identifiers on the
8371 div tags, so that the sections can be manipulated in javascript.
8372 This caused undesirable interactions with raw HTML div tags. So,
8373 starting with 1.6, the default is to put the identifiers directly
8374 on the header tags, and not to include the divs. The `--section-divs`
8375 option selects the 1.2-1.5 behavior.
8377 * API changes:
8379 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
8380 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
8381 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
8382 `writerIncludeAfter`.
8383 - Added `headerShift` to `Text.Pandoc.Shared`.
8384 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
8385 to a new module, `Text.Pandoc.Parsing`.
8386 - Added `stateHasChapters` to `ParserState`.
8387 - Added `HTMLSlideVariant`.
8388 - Made `KeyTable` a map instead of an association list.
8389 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
8390 `docDate`).
8391 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
8392 instances.
8393 - Reference keys now have a type of their own (`Key`), with its
8394 own `Ord` instance for case-insensitive comparison.
8395 - Added `Text.Pandoc.Writers.EPUB`.
8396 - Added `Text.Pandoc.UUID`.
8397 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
8398 Removed `saveOpenDocumentAsODT`, added `writeODT`.
8399 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
8400 Removed `prettyPandoc`.
8401 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
8402 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
8403 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
8404 To write S5, you now use `writeHtml` with `writerSlideVariant`
8405 set to `S5Slides` or `SlidySlides`.
8407 * Template changes. If you use custom templates, please update them,
8408 particularly if you use syntax highlighting with pandoc. The old HTML
8409 templates hardcoded highlighting CSS that will no longer work with
8410 the most recent version of highlighting-kate.
8412 - HTML template: avoid empty meta tag if no date.
8413 - HTML template: Use default highlighting CSS from highlighting-kate
8414 instead of hard-coding the CSS into the template.
8415 - HTML template: insert-before text goes before the title, and
8416 immediately after the <body> tag, as documented. (Issue #241)
8417 - Added slidy and s5 templates.
8418 - Added amssymb to preamble of latex template. (github Issue 1)
8420 * Removed excess newlines at the end of output. Note: because output
8421 will not contain an extra newline, you may need to make adjustments
8422 if you are inserting pandoc's output into a template.
8424 * In S5 and slidy, horizontal rules now cause a new slide, so you
8425 are no longer limited to one slide per section.
8427 * Improved handling of code in man writer. Inline code is now monospace,
8428 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
8430 * HTML reader parses `<tt>` as Code. (Issue #247)
8432 * html+lhs output now contains bird tracks, even when compiled without
8433 highlighting support. (Issue #242)
8435 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
8436 since they have a special meaning in XML.
8438 * Code improvements in ODT writer. Remote images are now replaced with
8439 their alt text rather than a broken link.
8441 * LaTeX reader improvements:
8443 - Made latex `\section`, `\chapter` parsers more forgiving of
8444 whitespace.
8445 - Parse `\chapter{}` in latex.
8446 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
8447 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
8448 for use in markdown reader.
8449 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
8450 in markdown document.
8452 * LaTeX writer: images are automatically shrunk if they would extend
8453 beyond the page margin.
8455 * Plain, markdown, RST writers now use unicode for smart punctuation.
8457 * Man writer converts math to unicode when possible, as in other writers.
8459 * `markdown2pdf` can now recognize citeproc options.
8461 * Command-line arguments are converted to UTF-8. (Issue #234)
8463 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
8464 This allows it to handle a wider range of formulas. Also, if a formula
8465 cannot be converted, it is left in raw TeX; formulas are no longer
8466 partially converted.
8468 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
8469 #143)
8471 * Cabal file changes:
8473 - Removed parsec < 3 restriction.
8474 - Added 'threaded' flag for architectures where GHC lacks a threaded
8475 runtime.
8476 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
8477 - Require highlighting-kate 0.2.7.
8479 * Use explicit imports from `Data.Generics`. Otherwise we have a
8480 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
8482 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
8484pandoc (1.5.1.1)
8486 [ John MacFarlane ]
8488 * Fixed uniqueIdent in Shared so that header identifiers work as
8489 advertized in the README and are are valid XHTML names.
8491pandoc (1.5.1)
8493 [ John MacFarlane ]
8495 * Fixed treatment of unicode characters in URIs.
8496 + Shared now exports escapeURI and unescapeURI. These handle
8497 UTF8 encoding and decoding as well as URI escaping/unescaping.
8498 + Shared: uri and emailAddress now return a pair of the original
8499 parsed text and the escaped URI (in the latter case, with
8500 the mailto: prefix).
8501 + HTML reader: unsanitaryURI has been modified to allow unicode
8502 high characters in a URI.
8503 + Readers: All link and image URIs are now escaped using
8504 escapeURI.
8505 + Markdown and RST writers: unescapeURI is used so that URIs
8506 in these formats are human-readable.
8508 * Setup.hs: Don't assume that the build directory is "dist".
8509 Instead, get it from localBuildInfo.
8511 * OpenDocument writer: Use a Map for stTextStyleAttr.
8512 This avoids duplicates (and invalid xml). Resolves Issue #222.
8514pandoc (1.5.0.1)
8516 [ John MacFarlane ]
8518 * HTML writer: Fixed error in math writer (with MathML option)
8519 that caused an infinite loop for unparsable MathML.
8521pandoc (1.5)
8523 [ John MacFarlane ]
8525 * Added --mathml option. When this is selected, pandoc will convert
8526 TeX math into MathML.
8527 + Added data/MathMLinHTML.js, which is included when no URL is
8528 provided for --mathml. This allows MathML to be displayed (in
8529 better browsers) as text/html.
8530 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
8531 necessary; it was replaced by two lines in pandoc.hs.
8532 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
8533 single combined file, LaTeXMathML.js.
8535 * Added --data-dir option.
8536 This specifies a user data directory. If not specified, will default
8537 to ~/.pandoc on unix or Application Data\pandoc on Windows.
8538 Files placed in the user data directory will override system default
8539 data files.
8541 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
8542 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
8543 Nothing, no user directory is searched for an override.
8545 * Added 'plain' output format. This is similar to markdown, but
8546 removes links, pictures, inline formatting, and most anything that
8547 looks even vaguely markupish. The function writePlain is exported by
8548 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
8550 * Allow multi-line titles and authors in meta block.
8551 Titles may span multiple lines, provided continuation lines
8552 begin with a space character. Separate authors may be put on
8553 multiple lines, provided each line after the first begins with
8554 a space character. Each author must fit on one line. Multiple
8555 authors on a single line may still be separated by a semicolon.
8556 Based on a patch by Justin Bogner.
8558 * When given an absolute URI as parameter, pandoc will try to fetch
8559 the content via HTTP. So you can do:
8560 'pandoc -r html -w markdown http://www.fsf.org'
8561 Adds dependency on HTTP.
8563 * Made HTML reader much more forgiving.
8564 + Incorporated idea (from HXT) that an element can be closed
8565 by an open tag for another element.
8566 + Javascript is partially parsed to make sure that a <script>
8567 section is not closed by a </script> in a comment or string.
8568 + More lenient non-quoted attribute values.
8569 Now we accept anything but a space character, quote, or <>.
8570 This helps in parsing e.g. www.google.com!
8571 + Bare & signs are now parsed as a string. This is a common
8572 HTML mistake.
8573 + Skip a bare < in malformed HTML.
8575 * Removed html2markdown and hsmarkdown.
8576 + html2markdown is no longer needed, since you can now pass URI
8577 arguments to pandoc and directly convert web pages. (Note,
8578 however, that pandoc assumes the pages are UTF8. html2markdown
8579 made an attempt to guess the encoding and convert them.)
8580 + hsmarkdown is pointless -- a large executable that could be
8581 replaced by 'pandoc --strict'.
8583 * In most writers, an image in a paragraph by itself is now rendered
8584 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
8585 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
8586 rendered inline.
8588 * Depend on extensible-exceptions. This allows pandoc to be compiled
8589 on GHC 6.8.
8591 * Added --base-header-level option. For example, --base-header-level=2
8592 will change level 1 headers to level 2, level 2 to level 3, etc.
8593 Closes Debian #563416.
8595 * Incomplete support for RST tables (simple and grid).
8596 Thanks to Eric Kow. Colspans and rowspans not yet supported.
8598 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
8600 * MediaWiki writer: format links with relative URLs as wikilinks.
8601 The new rule: If the link target is an absolute URL, an external
8602 link is created. Otherwise, a wikilink is created.
8604 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
8605 identifier. Note: This may break links to sections that involve
8606 tildes.
8608 * Markdown(+lhs) reader: handle "inverse bird tracks."
8609 Inverse bird tracks (<) are used for haskell example code that is not
8610 part of the literate Haskell program. Resolves Issue #211.
8612 * LaTeX reader:
8613 + Recognize '\ ' (interword space).
8614 + Recognize nonbreaking space '~'.
8615 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
8616 section headers. Don't treat \section as inline LaTeX.
8617 Resolves Issue #202.
8618 + LaTeX reader: allow any special character to be escaped.
8619 Resolves Issue #221.
8620 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
8621 headers. Resolves Issue #207.
8623 * Use template variables for include-before/after.
8624 + These options now imply -s; previously they worked also in fragment
8625 mode.
8626 + Users can now adjust position of include-before and include-after
8627 text in the templates.
8628 + Default position of include-before moved back (as it was before 1.4)
8629 before table of contents.
8630 + Resolves Issue #217.
8632 * Don't print an empty table header: (all writers).
8633 Resolves Issue #210.
8635 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
8637 * HTML writer: Don't include TOC div if table of contents is empty.
8639 * Markdown writer: Fixed citations.
8640 Previously the markdown writer printed raw citation codes, e.g.
8641 [geach1970], rather than the expanded citations provided by
8642 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
8643 This means that the document produced can be processed as a markdown
8644 document without citeproc. Thanks to dsanson for reporting, and
8645 Andrea Rossato for the patch.
8647 * Improved and simplified title block in context template.
8648 Previously it caused an error if there was no title.
8649 This method should also be easier for users to customize.
8651 * Markdown reader:
8652 + Treat p., pp., sec., ch., as abbreviations in smart mode.
8653 + Disallow blank lines in inline code span.
8654 + Allow footnotes to be indented < 4 spaces.
8655 This fixes a regression. A test case has been added.
8656 + Escape spaces in URLs as %20. Previously they were incorrectly
8657 escaped as +, which is appropriate only for the query part of
8658 a URL. Resolves Issue #220.
8659 + Require two spaces after capital letter + period for list item.
8660 Otherwise "E. coli" starts a list. This might change the semantics
8661 of some existing documents, since previously the two-space
8662 requirement was only enforced when the second word started
8663 with a capital letter. But it is consistent with the existing
8664 documentation and follows the principle of least surprise.
8665 Resolves Issue #212.
8667 * LaTeX template: redefine labelwidth when using enumerate package.
8668 Otherwise the list labels (numbers) often extend past the left
8669 margin, which looks bad.
8671 * Mediawiki writer: Don't print a "== Notes ==" header before
8672 references. This is too English-centric. Writers can provide their
8673 own header at the end of the document.
8675 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
8676 level 2, etc. This seems to be correct; it's only by convention
8677 that wikipedia articles have level 2 headers at most.
8678 Patch due to Eric Kow.
8680 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
8681 data files don't need to have been installed. This removes the need to
8682 set HOME.
8684 * HTML reader:
8685 + Handle spaces before <html>. Resolves Issue #216.
8686 + Be forgiving in parsing a bare list within a list.
8687 The following is not valid xhtml, but the intent is clear:
8688 <ol>
8689 <li>one</li>
8690 <ol><li>sub</li></ol>
8691 <li>two</li>
8692 </ol>
8693 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
8695 * Updated INSTALL instructions. cabal method is now promoted.
8697 * Updated markdown2pdf man page. It no longer says all pandoc options
8698 are accepted.
8700 * README/man pages: Removed advice to pipe through tidy before HTML
8701 reader. This is obsolete, now that we have a forgiving HTML parser.
8703 * LaTeX writer: set numbersections template variable, so
8704 the section numbering options work again.
8706 * Removed obsolete Makefile.
8708 * Website: renamed index.txt.in -> index.txt.
8710 * New batch file to make-windows-installer.
8711 + Removed old Makefile.windows
8712 + Added make-windows-installer.bat
8713 + Modified default installer name in pandoc-setup.iss
8715 * Removed freebsd and macports directories.
8716 They are no longer up to date.
8718 * Setup.hs:
8719 + Made man page building sensitive to build verbosity.
8720 + Improved detection of highlighting support in test hook.
8721 + Install wrapper scripts into cabal bin directory.
8722 + Also simplified installManpages.
8723 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
8725 * Changed default of writerXeTeX to False.
8727 * HTML writer: don't include empty UL if --toc but no sections.
8728 Resolves Issue #199.
8730 * LaTeX writer:
8732 + If book, report, or memoir documentclass, use \chapter{}
8733 for first-level headers. Otherwise use \section{}.
8734 + Removed stLink, link template variable. Reason: we now always
8735 include hyperref in the template.
8737 * LaTeX template:
8739 + Only show \author if there are some.
8740 + Always include hyperref package. It is used not just for links but
8741 for toc, section heading bookmarks, footnotes, etc. Also added
8742 unicode=true on hyperref options.
8744 * markdown2pdf: always do at least two runs. hyperref bookmarks
8745 require this.
8747 * cabal file: Removed unneeded dependency on template-haskell.
8749 * Windows installer - fixed bug in data file locations.
8750 Resolves Issue #197.
8752 * Deprecated --custom-header in documentation.
8753 Removed old "Custom Headers" section in README.
8755pandoc (1.4)
8757 [ John MacFarlane ]
8759 * Pandoc will now compile with either GHC 6.10 or 6.12.
8760 + Don't use System.IO.UTF8 when compiling with 6.12
8761 + Use -fno-warn-unused-do-bind option when compiling with 6.12
8763 * Replaced old headers with templates. Now users have much more
8764 control over the way documents appear in --standalone mode,
8765 and writer code is simplified. Resolves Issues #59, 147.
8766 Every effort has been made to retain backwards compatibilty.
8767 So, the --custom-header option should still work as before.
8769 + Added Text.Pandoc.Templates. This provides functions for
8770 retrieving default templates and for rendering templates.
8771 + System templates (in the pandoc data directory) can be
8772 overridden by user templates in $HOME/.pandoc/templates.
8773 + Removed Text.Pandoc.DefaultHeaders.
8774 + Removed data/headers directory.
8775 + Added templates directory.
8776 + Added writerTemplate and writerVariables fields to WriterOptions.
8777 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
8778 + Changed --print-default-header to --print-default-template.
8779 + Added --template option.
8780 + Added -V/--variable option to set custom template variables.
8782 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
8784 + Removed need for TH in ODT module. Instead get reference.odt from
8785 data file at run time.
8786 + Removed TH dependency from S5 module. S5 module now exports
8787 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
8788 standalone.
8789 + Refactored LaTeXMathML not to use TH.
8791 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
8792 Meta [Inline] [String] String. Authors and date in Meta are now lists
8793 of Inline elements rather than raw strings. This means that they can
8794 be formatted and can include footnotes. NOTE: This may be a breaking
8795 change for those using pandoc as a library.
8797 * Added readDataFile to Text.Pandoc.Shared. This retrieves
8798 a data file from the user pandoc data directory (~/.pandoc
8799 on unix), or, if not found there, from the system data
8800 directory ($CABALDIR/shared/pandoc-VERSION/). All data
8801 files, including templates, LaTeXMathML.js, s5 styles,
8802 and reference.odt, can be overridden by the user.
8804 * s5 files moved from data/ui/default to s5/default.
8806 * Use unicode instead of entities in HTML and XML output. Resolves
8807 Issue #163.
8809 * Prettier HTML footnote references: put anchor inside sup,
8810 instead of other way. Resolves Issue #191. Thanks to
8811 infinity0x.
8813 * Added --xetex option to pandoc and markdown2pdf.
8814 If --xetex is specified, pandoc produces latex suitable for
8815 processing by xelatex, and markdown2pdf uses xelatex to create
8816 the PDF. Resolves Issue #185.
8818 * RTF writer: multiple authors now occupy multiple paragraphs rather
8819 than using a line break.
8821 * Man writer: now the "--after-body" will come after the "AUTHORS"
8822 section, whereas before it would come before it. This is a
8823 slight break from backwards compatibility.
8825 * Added --reference-odt option, so users may customize the styles
8826 used in pandoc-generated ODT files. Users may also place a
8827 default reference.odt in the ~\.pandoc directory.
8829 * ODT writer:
8830 + Indented and line-broke styles.xml so it can be modified more easily.
8831 + Omitted some unnecessary style declarations.
8832 + Don't wrap text in OpenDocument writer. The tags are too long, making
8833 wrapping ugly and pointless.
8835 * LaTeX reader: use \\ to separate multiple authors.
8837 * Markdown reader: use ; as separator between authors.
8838 This allows you to use ',' within author names: e.g. "John Jones, Jr."
8840 * S5 writer: use linebreak to separate authors in title page.
8842 * RST reader: Allow :: before lhs code block. The RST spec requires the
8843 :: before verbatim blocks. This :: should not be treated as literal
8844 colons. Resolves Issue #189.
8846 * Documented pandoc 1.3's new definition list syntax in README.
8847 (An oversight in the last release.)
8849 * markdown2pdf.hs:
8850 + interpret ! in a log as an error line.
8851 + --toc now works properly.
8853 * Changes in RunTests.hs:
8854 + Use the Diff library rather than a local copy of Diff.hs.
8855 (This vastly increases performance.) This change means that 'cabal
8856 test' presupposes that the Diff library is installed.
8857 + Removed tests/Diff.hs from cabal file.
8858 + Changed RunTests to use local environment. We need at least HOME, so
8859 pandoc can find its data directory.
8861 * Updated windows installer to install data files in the app directory.
8863 * Windows installer now installs portable wrappers hsmarkdown and
8864 markdown2pdf.
8866pandoc (1.3)
8868 [ John MacFarlane ]
8870 * Added --id-prefix option (Issue #41). This adds a prefix to all
8871 automatically generated HTML identifiers, which helps prevent
8872 duplicate identifiers when you're generating a fragment (say a blog
8873 post).
8875 * Added --indented-code-classes option. This specifies classes
8876 to use for indented code blocks. (Patch due to buttock; Issue #87.)
8878 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
8879 (Issue #150).
8881 * Improved syntax for markdown definition lists (Issue #24).
8882 Definition lists are now more compatible with PHP Markdown Extra.
8883 + You can have multiple definitions for a term (but still not
8884 multiple terms).
8885 + Multi-block definitions no longer need a column before each block
8886 (indeed, this will now cause multiple definitions).
8887 + The marker no longer needs to be flush with the left margin,
8888 but can be indented at or two spaces. Also, ~ as well as :
8889 can be used as the marker (this suggestion due to David
8890 Wheeler.)
8891 + There can now be a blank line between the term and the
8892 definitions.
8894 * Better looking simple tables. Resolves Issue #180.
8895 + Markdown reader: simple tables are now given column widths of 0.
8896 + Column width of 0 is interpreted as meaning: use default column width.
8897 + Writers now include explicit column width information only
8898 for multiline tables. (Exception: RTF writer, which requires
8899 column widths. In this case, columns are given equal widths,
8900 adding up to the text width.)
8901 + Simple tables should now look better in most output formats.
8903 * Allow markdown tables without headers (Issue #50).
8904 The new syntax is described in README. Also allow optional line of
8905 dashes at bottom of simple tables.
8907 * Compensate for width of final table column (Issue #144).
8909 * Treat a backslash followed by a newline as a hard line break
8910 in markdown. Resolves Issue #154. This is a nice alternative
8911 to markdown's "invisible" way of indicating hardline breaks
8912 using lines that end with two spaces.
8914 * Improved performance of markdown reader by ~10% by eliminating the
8915 need for a separate parsing pass for notes. Raw notes are now stored
8916 on the first pass (which parses references), then parsed when the
8917 note is inserted into the AST. The stateNotes field in ParserState
8918 is now a list of [(String, String)] pairs instead of [(String,
8919 [Block])].
8921 * In markdown reader, treat 4 or more * or _ in a row as literal
8922 text. (Trying to parse long strings of * or _ as strong or emph
8923 leads to exponential performance problems.)
8925 * Markdown reader: Use + rather than %20 for spaces in URLs.
8927 * Fixed htmlComment parser, adding a needed 'try'.
8929 * Don't print raw HTML in man output.
8931 * Allow . _ and ~ in header identifiers.
8933 * Specially mark code blocks that were "literate" in the input.
8934 They can then be treated differently in the writers. This allows
8935 authors to distinguish bits of the literate program they are writing
8936 from source code examples, even if the examples are marked as
8937 Haskell for highlighting. (Issue #174.)
8939 * Modified html+lhs output to use "haskell" highlighter instead
8940 of "literateHaskell". The highlighting module now adds bird tracks
8941 after highlighting (for HTML output), if the code block has the
8942 "literate" class. This gives better results, because kate's
8943 haskell highlighter is much better than the literateHaskell
8944 highlighter.
8946 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
8947 (Issue #137.)
8949 * Support for "..code-block" directive in RST reader. Not core
8950 RST, but used in Sphinx for code blocks annotated with syntax
8951 information. Thanks to Luke Plant for the patch.
8953 * Added "head" to list of block-level HTML tags. Resolves
8954 Issue #108.
8956 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
8958 * Set utf-8 encoding in texinfo headers.
8960 * Docbook writer: add ids to sections. Use link for internal links.
8961 (Issue #60.)
8963 * Blank lines after lists in MediaWiki writer.
8965 * Properly handle commented-out list items in markdown.
8966 Resolves Issue #142. Example:
8968 - a
8969 <!--
8970 - b
8971 -->
8972 - c
8974 * Changed heuristic in compactify. compactify has to decide whether a
8975 Para that ends a list is a Para intentionally, or just because of
8976 the blank lines at the end of every list. In the latter case the
8977 Para is turned to a Plain. The old heuristic was: change final Para
8978 to Plain iff the other items all end in Plain. This produces bad
8979 results when, for example, an item contains just a Plain and an HTML
8980 comment, as it does in the list above. The new heuristic: change
8981 final Para to Plain iff the other items don't contain a Para.
8983 * Added % as an rst underline character. Resolves Issue #173.
8985 * Fix inline math parser so that \$ is allowed in math.
8986 Resolves Issue #169.
8988 * Translate \int (integral) into unicode when using unicode math
8989 method. Resolves Issue #177.
8991 * markdown2pdf.hs improvements:
8992 + Use System.IO.UTF8.
8993 + Print error messages on last attempt.
8994 + Do not create a backup when overwriting a PDF (Issue #166).
8995 + Accept --longopt=val options.
8996 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
8997 it is properly cleaned.
8999 * Added haddock comments warning that readers assume \n line endings.
9001 * Updated COPYRIGHT file.
9003 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
9004 markdown2pdf. Otherwise strip tries to strip shell scripts when you
9005 install using 'make'.
9007 * Changed Makefile so it doesn't build Haskell wrappers.
9009 * Fixed Makefile so it doesn't try to build man pages in build-doc.
9011 * Install pcre3.dll in Windows install script; this allows us to
9012 package a version of pandoc with highlighting support.
9014pandoc (1.2.1)
9016 [ John MacFarlane ]
9018 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
9019 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
9020 side effect: strings of 0 spaces were interpreted as indentation.
9021 So, with --preserve-tabs, unindented paragraphs were treated as
9022 code. Resolves Issue #138.
9024 * HTML writer: wrap sections in divs. Resolves Issue #70.
9026 + hierarchicalize has been rationalized; it builds a hierarchical
9027 representation of the document from the headers, and simultaneously
9028 gives each section a unique identifier based on the heading title.
9029 + Identifiers are now attached to the divs rather than
9030 to the headers themselves.
9031 + Table of content backlinks go to the beginning of the table, rather
9032 than to the section reference that was clicked.
9033 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
9034 from the HTML writer, since it is now consumed only by
9035 hierarchicalize.
9036 + In --strict mode, pandoc just prints bare headings, as before
9037 (unless --toc has been specified).
9038 + In s5 output, it does not wrap sections in divs, as that seems to
9039 confuse the s5 javascript.
9041 * Man writer: break lines at end of each sentence. groff expects this
9042 and treats '.' and '?' differently when followed by line ending as
9043 opposed to ordinary space. Also, don't escape periods. Instead, use
9044 zero-width character \& to avoid unwanted interpretation of periods
9045 at start of line. Resolves Issue #148.
9047 * Markdown writer: Added '#' and '>' to list of characters to be
9048 escaped in markdown output. Removed '<', as it is not an officially
9049 escapable character. This partially resolves Issue #96.
9051 * Make --smart the default for man output format. Otherwise we have
9052 trouble dividing lists of endlines into sentences.
9054 * DocBook writer: Use language attribute to indicate source language
9055 in code blocks.
9057 * RST reader:
9059 + Allow # to continue list, even if the list was started with an
9060 explicit marker. For example:
9062 A. my list
9063 #. continued
9065 Resolves Issue #140.
9066 + Allow continuation lines in line blocks. Also added test cases for
9067 line blocks for RST reader. Resolves Issue #149.
9068 + Allow explicit links with spaces in URL: `link <to this>`_
9070 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
9071 (which is not in LaTeX) and recognize all the amsmath environments
9072 that are alternatives to eqnarray, namely equation, equation*,
9073 gather, gather*, gathered, multline, multline*, align, align*,
9074 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
9075 Thanks to shreevatsa.public for the patch.
9077 * Markdown reader:
9079 + Allow -, _, :, . in markdown attribute names. These are legal in
9080 XML attribute names.
9081 + Use non-breaking spaces in abbreviations.
9082 + Markdown reader: improved efficiency of abbreviation parsing.
9083 Instead of a separate abbrev parser, we just check for
9084 abbreviations each time we parse a string. This gives a huge
9085 performance boost with -S. Resolves Issue #141.
9087 * Improved efficiency of shared parsers: hexNum, htmlComment,
9088 whitespace, indentSpaces.
9090 * Export HTMLMathMethod in Text.Pandoc.
9092 * Export languagesByExtension in Text.Pandoc.Highlighting.
9094 * Added new Haskell version of markdown2pdf, due to
9095 Paulo Tanimoto. This should be more portable than the old
9096 shell script.
9098 * Made 'pandoc -v' more explicit about compiler options.
9099 Resolves Issue #139.
9101 * pandoc.hs: Made --strict compatible with --standalone, --toc.
9103 * Use Paths_pandoc to get version number, instead of hard-coding it
9104 into Text/Pandoc.hs.
9106pandoc (1.2)
9108 [ John MacFarlane ]
9110 * Added support for literate Haskell. lhs support is triggered by
9111 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
9112 Haskell LaTeX. '.lhs' files are treated by default as literate
9113 markdown.
9115 + Added stateLiterateHaskell to parser state.
9116 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
9117 + Added parser for |inline lhs| to LaTeX reader.
9118 + Added writerLiterateHaskell to WriterOptions.
9119 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
9120 + Added definition of code environment to LaTeX header.
9121 + Added tests (run only if highlighting support compiled in).
9122 + Documented lhs features in man page and README.
9124 * In Text.Pandoc.Definition, added processWith, processWithM,
9125 and queryWith, and deprecated processPandoc and queryPandoc
9126 for these more general functions.
9128 * Fixed bug in mediawiki writer: improper closing tags in tables.
9129 Thanks to Benct Philip Jonsson for reporting the bug.
9131 * Added --email-obfuscation option.
9133 + Added writer option for email obfuscation.
9134 + Implemented email obfuscation options in HTML writer.
9135 + Added option to option parser.
9136 + Documented in README and pandoc man page.
9137 + Resolves Issue #97.
9139 * LaTeX writer: fixed bug with empty table cells.
9140 Resolves Issue #107. Thanks to rodja.trappe for the patch.
9142 * Fixed bug with header spacing in Markdown and RST writers.
9143 A null header (Meta [] [] []) should not cause a blank line
9144 at the beginning of output. But a blank line is needed between
9145 a non-null header and the main text.
9147 * Markdown reader: Relax spacing rules for $$ in display math. Now
9148 space and newlines are allowed after the opening $$ and before the
9149 closing $$. However, the display math cannot contain an entirely
9150 blank line. Resolves Issue #105.
9152 * Markdown reader: Gobble space after Plain blocks containing only
9153 raw html inline. Otherwise following header blocks are not parsed
9154 correctly, since the parser sees blank space before them. Resolves
9155 Issue #124.
9157 * Markdown reader: Allow " as well as '' to end a latex double-quote.
9159 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
9160 Resolves Issue #109.
9162 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
9164 + Added hang' function to Text.Pandoc.Shared; this will be used instead
9165 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
9166 is upgraded, we can go back to hang.
9167 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
9168 + Use hang' (and some different techniques) in RST and markdown writers.
9169 Some output is now a bit different.
9171 * Brought citeproc support up to date for citeproc-hs-0.2.
9172 (Patch by Andrea Rossato.)
9174 * Moved all haskell source to src subdirectory. Renamed Main.hs to
9175 pandoc.hs.
9177 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
9178 For now, keeping the old shell script too.
9180 * Added TemplateHaskell to Extensions for executable, removed
9181 -threaded for library. Thanks to duncan.coutts for the bug report.
9182 Resolves Issue #121.
9184 * Moved some Extra-Source-Files to Data-Files.
9186 * Moved tabFilter to Shared.
9188 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
9189 preserve tabs.
9191 * Minor code cleanup based on hlint suggestions.
9193pandoc (1.1)
9195 [ John MacFarlane ]
9197 * Main.hs:
9199 + Changed date on copyright message in Main.hs.
9200 + Have the '-v' option print syntax highlighting languages
9201 separated by commas, and wrapped in lines, instead of in five
9202 columns as before.
9204 * Added --jsmath option. Resolves Issue #68.
9206 + Added --jsmath option to Main.hs
9207 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
9208 + Handle math appropriately in HTML writer when JsMath selected.
9209 + Documented the option in README and man page.
9211 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
9212 for tight and loose lists. Final Para is changed to Plain if all
9213 other list items *end* with a Plain block. Addresses Issue #99.
9215 * HTML reader:
9217 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
9218 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
9219 Added rawVerbatimBlock parser. Resolves Issue #94.
9221 * Markdown reader:
9223 + Allow URLs with spaces in them in links and references, but escape
9224 them as "%20".
9225 + Allow blank space at the end of horizontal rules.
9227 * RST reader: Modified 'unknownDirective' parser to handle comment
9228 blocks correctly, and added tests for comment blocks. Resolves Issue
9229 #86. Closes Debian Bug #500662.
9231 * HTML writer:
9233 + Include classes on tr elements in HTML output:
9234 "header", "odd", "even". This allows tables to be styled with
9235 lines in alternating colors. Resolves Issue #91.
9236 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
9237 This prevents parts of the document that are not math from being
9238 interpreted as math by LaTeXMathML.js.
9240 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
9241 which were formerly ignored. Resolves Issue #95.
9243 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
9244 between a footnote and immediately following nonspace characters in
9245 LaTeX and ConTeXt output. (This gets interpreted as a space, which
9246 is not desired in cases like "text^[note]---".) Resolves Issue #93.
9248 * Windows installer: Don't require admin privileges to run
9249 installer. Modified pandoc-setup.iss, and changed modpath.iss to
9250 modify HKCU path if user lacks admin privileges. Also fixed case
9251 where oldpath is empty (previously this led to the new path
9252 beginning with a semicolon).
9254 * Updated INSTALL instructions for Arch packages and OS X install using
9255 cabal-install.
9257 * Removed the (now unneeded) debian directory.
9258 Removed empty Codec and System directories.
9260 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
9262 * Modified Setup.hs so that the "test" target returns an error status
9263 when tests fail, and "build" returns a success status if
9264 the build succeeds. Resolves Issue #100.
9266 * Added BUGS to files in tarball.
9269pandoc (1.0.0.1)
9271 [ John MacFarlane ]
9273 * Removed spurious reference to pdf output format from pandoc(1) man page.
9275pandoc (1.0)
9277 [ Andrea Rossato ]
9279 * Added new OpenDocument writer.
9281 * Added support for SmallCaps inline element.
9283 * Added support for integrating pandoc with citeproc-hs.
9285 + Added Cite element to definition and writers.
9286 + Added Text.Pandoc.Biblio module
9287 + Note: This support is included only if the 'citeproc'
9288 Cabal configuration flag is set.
9290 * Made Pandoc data structure an instance of Typeable.
9291 Added new processPandoc and queryPandoc functions, to query
9292 or transform matching elements in a Pandoc structure.
9294 [ Peter Wang ]
9296 * Added new Texinfo writer.
9298 [ John MacFarlane ]
9300 * Changes to Texinfo writer:
9302 + No space between paragraph and following @verbatim (provides more
9303 pleasing appearance in text formats)
9304 + Blank line consistently after list environments.
9305 + Removed deVerb.
9306 + Use @code instead of @verb for inline code (this solves the character
9307 escaping problem for texi2dvi and texi2pdf).
9308 + Added news of Texinfo writer to README.
9309 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
9310 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
9311 default output extension.
9312 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
9314 * Added tests for OpenDocument writer.
9316 * Added ODT writer (using zip-archive library to package output of
9317 OpenDocument writer). Added odt-styles directory with default ODT styles.
9319 * Added new mediawiki writer and tests.
9321 * Markdown reader: Added support for delimited code blocks, with optional
9322 syntax highlighting using highlighting-kate (if the 'highlighting'
9323 configuration option is selected).
9325 + Currently highlighting is supported only in the HTML writer.
9326 + Delimited code blocks can have attributes; using the language name as
9327 class triggers highlighting.
9328 + New Attributes parameter in CodeBlock structure.
9329 + --version now indicates whether syntax highlighting support is compiled
9330 in, and prints a list of supported languages
9332 * Removed debian directory. Pandoc is no longer a native debian package.
9334 * Changes to build process: pandoc can now be built from the repository
9335 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
9336 without Cygwin).
9338 + Include shell scripts themselves in repo, rather than generating from wrappers.
9339 Removed wrappers directory and wrappers Makefile target.
9340 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
9341 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
9342 from templates in the templates/ directory. Instead, they use template
9343 haskell to read data at compile time from the relevant files in data/.
9344 Template haskell functions go in a new module, Text.Pandoc.TH.
9345 + man pages are now generated in Setup.hs hook, not by Makefile
9346 + Makefile 'tarball' target now calls Cabal's 'sdist'
9347 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
9348 + Added "Build-Type" field to pandoc.cabal to avoid warning.
9349 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
9350 so 'sdist' and 'clean' will work properly.
9351 + Setup.hs now generates man pages in a postbuild hook.
9352 + Added dependency-checking to Setup.hs, so it only rebuilds things
9353 that need rebuilding.
9354 + Added 'library' and 'executable' configuration flags.
9355 Cabal can now be told to build just the library or just the executable.
9356 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
9357 For example: CABALOPTS=-fhighlighting make
9359 * Rewrote test suite so it doesn't depend on perl or unix tools.
9361 + Replaced old runtests.pl with a Haskell script RunTests.hs.
9362 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
9363 + Added test hook to Setup.hs, so tests may be run from cabal.
9364 + Changed Makefile's 'test' target to run tests via cabal.
9365 + Removed old generate.sh.
9366 + Since we no longer have 'sed' to filter out raw HTML sections
9367 from the docbook writer test, or raw LaTeX sections from the
9368 context writer test, we now just include these sections.
9369 They can be taken out if it is necessary to process the files.
9370 + Updated latex and context writer tests to remove extra spaces
9371 after '\\item'
9372 + Added a markdown table reader test.
9373 + Added markdown-reader-more.txt to test suite, for additional test cases
9374 for raw ConTeXt environments and more.
9376 * Compatibility fixes for CPP, Cabal, and haddock:
9378 + Use CPP in "Extensions" field in pandoc.cabal.
9379 + Removed use of backslash string continuations in source files.
9381 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
9382 base >= 3.
9384 * Require parsec < 3.
9385 The compatibility module in parsec 3.0.0 gives far worse performance than
9386 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
9387 version of parsec, and then we'll go to parsec 3.0.0.
9389 * Removed Text.Regex dependencies by rewriting using plain Haskell
9390 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
9392 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
9394 * Makefile:
9396 + Added 'configure' as dependency of 'uninstall-all'.
9397 (It uses the Cabal build program.)
9398 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
9399 Note that Cabal will automatically choose the ghc-pkg appropriate
9400 for the compiler selected, so normally specifying GHC by itself
9401 is sufficient.
9403 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
9404 its IO and conversion functions.
9406 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
9407 everything is -Wall clean.
9409 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
9410 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
9411 (These are caused by the Lift instance for ByteString.)
9413 * Changed the comment used to replace unsafe HTML if sanitize-html option
9414 selected.
9416 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
9418 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
9420 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
9421 "nbsp" isn't a predefined XML entity.
9423 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
9424 Added some try's in ordered list parsers.
9426 * Man writer: don't escape " as \".
9428 * Allow newline before URL in markdown link references. Resolves Issue #81.
9429 Added tests for this issue in new "markdown-reader-more" tests.
9430 Changed RunTests.hs to run these tests.
9432 * Support for display math. Resolves Issue #47.
9434 + Added a DisplayMath/InlineMath selector to Math inlines.
9435 + Markdown parser yields DisplayMath for $$...$$.
9436 + LaTeX parser yields DisplayMath when appropriate. Removed
9437 mathBlock parsers, since the same effect is achieved by the math
9438 inline parsers, now that they handle display math.
9439 + Writers handle DisplayMath as appropriate for the format.
9440 + Modified tests accordingly; added new tests for display math.
9442 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
9443 to LaTeX in its display of math, and supports many non-math LaTeX environments.
9445 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
9446 + Modified HTML writer to print raw TeX when LaTeXMathML is
9447 being used instead of suppressing it.
9448 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
9449 + Replaced ASCIIMathML with LaTeXMathML in source files.
9450 + Modified README and pandoc man page source.
9451 + Added --latexmathml option (kept --asciimathml as a synonym
9452 for backwards compatibility)
9454 * Markdown reader: Parse setext headers before atx headers.
9455 Test case:
9456 # hi
9457 ====
9458 parsed by Markdown.pl as an H1 header with contents "# hi".
9460 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
9461 The marker on the first list item determines the type of the whole
9462 list. Thus, a list like
9463 1. one
9464 - two
9465 * three
9466 gets parsed as a single ordered list. (Previous versions of pandoc
9467 treated this as an ordered list with an unordered sublist.)
9469 * Markdown smart typography:
9471 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
9472 + Use nonbreaking spaces after known abbreviations in markdown parser.
9473 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
9474 not produce a sentence-separating space. Resolves Issue #75.
9476 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
9478 * Treat '\ ' in (extended) markdown as nonbreaking space.
9479 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
9481 * The '--sanitize-html' option now examines URIs in markdown links
9482 and images, and in HTML href and src attributes. If the URI scheme
9483 is not on a whitelist of safe schemes, it is rejected. The main point
9484 is to prevent cross-site scripting attacks using 'javascript:' URIs.
9485 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
9486 and http://ha.ckers.org/xss.html. Resolves Issue #62.
9488 * HTML writer:
9490 + Override Text.XHtml's stringToHtml function,
9491 so that characters below 0xff are not converted to numerical entity
9492 references. Also convert '\160' to "&nbsp;". This should aid readability
9493 and editability of the HTML source. It does presuppose that the HTML
9494 will be served as UTF-8.
9495 + In code blocks, change leading newlines to <br /> tags.
9496 (Some browsers ignore them.) Resolves Issue #71.
9497 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
9498 + Use style attributes rather than css classes for strikethrough
9499 and ordered list styles. This works better when fragments, rather than
9500 standalone documents, are generated.
9502 * HTML reader: Count anything that isn't a known block (HTML) tag as an
9503 inline tag (rather than the other way around). Added "html", "head", and
9504 "body" to list of block tags. Resolves Issue #66, allowing
9505 <lj> to count as an inline tag.
9507 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
9508 boldface, and other inline elements. Resolves Issue #64.
9510 * LaTeX reader: improvements in raw LaTeX parsing.
9512 + "loose punctuation" (like {}) parsed as Space
9513 + Para elements must contain more than Str "" and Space elements
9514 + Added parser for "\ignore" command used in literate haskell.
9515 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
9516 mode, these parsers simply strip off the command part and allow
9517 the arguments to be parsed normally. So, for example,
9518 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
9519 Str "{\\emph{hi}}".
9520 + Parse lhs "code" environments as verbatim.
9521 Refactored parsers for verbatim environments.
9522 + Removed specialEnvironment parser.
9523 + parse '{}', if present, after \textless, \textgreater,
9524 \textbar, \textbackslash, \ldots.
9525 + Parse unescaped special characters verbatim rather than
9526 changing them to spaces. This way arguments of unknown
9527 commands will appear in braces.
9529 * Parse raw ConTeXt environments as TeX in markdown reader.
9530 Resolves Issue #73.
9532 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
9534 * Made some structural changes to parsing of raw LaTeX environments.
9535 Previously there was a special block parser for LaTeX environments.
9536 It returned a Para element containing the raw TeX inline. This has
9537 been removed, and the raw LaTeX environment parser is now used in the
9538 rawLaTeXInline parser. The effect is exactly the same, except that we
9539 can now handle consecutive LaTeX and ConTeXt environments not separated
9540 by spaces. This new flexibility is required by the example in
9541 Issue #73:
9543 \placeformula \startformula
9544 L_{1} = L_{2}
9545 \stopformula
9547 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
9548 returns a string) rather than rawLaTeXEnvironment (which returns a block
9549 element). This is more likely to be useful in other applications.
9551 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
9552 \textsubscript conflicts with a definition in the memoir class.
9553 Resolves Issue #65.
9555 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
9557 * Added amsmath package to default LaTeX header. Resolves Issue #48.
9559 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
9560 list introduction lines.
9562 * Changed Float to Double in definition of Table element.
9563 (Double is more efficient in GHC.)
9565 * Fixed bug in Markdown parser: regular $s triggering math mode.
9566 For example: "shoes ($20) and socks ($5)."
9567 The fix consists in two new restrictions:
9569 + the $ that ends a math span may not be directly followed by a digit.
9570 + no blank lines may be included within a math span.
9572 Thanks to Joseph Reagle for noticing the bug.
9574 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
9575 Removed 'joinWithSep' from Text.Pandoc.Shared.
9577 * Updated README and man pages. Acknowledge contributors in README.
9578 Added paragraph to README about producing S5 with separate CSS/javascript.
9580 * Updated INSTALL to reflect new build system (including configuration
9581 options) and document new dependencies. Added note to INSTALL that
9582 Cabal >= 1.2 is required for build. Resolves Issue #74.
9584 * Fixed some haddock documentation errors.
9586 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
9588pandoc (0.46) unstable; urgency=low
9590 [ John MacFarlane ]
9592 * Made -H, -A, and -B options cumulative: if they are specified
9593 multiple times, multiple files will be included.
9595 * Added optional HTML sanitization using a whitelist.
9596 When this option is specified (--sanitize-html on the command line),
9597 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
9598 attributes will be removed. This option should be especially useful
9599 for those who want to use pandoc libraries in web applications, where
9600 users will provide the input.
9602 + Main.hs: Added --sanitize-html option.
9604 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
9606 + Text.Pandoc.Readers.HTML:
9607 - Added whitelists of sanitaryTags and sanitaryAttributes.
9608 - Added parsers to check these lists (and state) to see if a given
9609 tag or attribute should be counted unsafe.
9610 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
9611 with comments.
9612 - Modified htmlAttribute to remove unsafe attributes.
9613 - Modified htmlScript and htmlStyle to remove these elements if
9614 unsafe.
9616 + Modified README and man pages to document new option.
9618 * Improved handling of email addresses in markdown and reStructuredText.
9619 Consolidated uri and email address parsers. (Resolves Issue #37.)
9621 + New emailAddress and uri parsers in Text.Pandoc.Shared.
9622 - uri parser uses parseURI from Network.URI.
9623 - emailAddress parser properly handles email addresses with periods
9624 in them.
9626 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
9627 and Text.Pandoc.Readers.Markdown.
9629 * Markdown reader:
9631 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
9632 nested in an Emph. (A '*' is only recognized as the end of the
9633 emphasis if it's not the beginning of a strong emphasis.)
9635 + Moved blockQuote parser before list parsers for performance.
9637 + Modified 'source' parser to allow backslash-escapes in URLs.
9638 So, for example, [my](/url\(1\)) yields a link to /url(1).
9639 Resolves Issue #34.
9641 + Disallowed links within links. (Resolves Issue #35.)
9642 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
9643 instead of hard-coding the inline parser takes an inline parser
9644 as a parameter.
9645 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
9646 - Removed unneeded inlineString function.
9647 - Added inlineNonLink parser, which is now used in the definition of
9648 reference.
9649 - Added inlineParsers list and redefined inline and inlineNonLink parsers
9650 in terms of it.
9651 - Added failIfLink parser.
9653 + Better handling of parentheses in URLs and quotation marks in titles.
9654 - 'source' parser first tries to parse URL with balanced parentheses;
9655 if that doesn't work, it tries to parse everything beginning with
9656 '(' and ending with ')'.
9657 - source parser now uses an auxiliary function source'.
9658 - linkTitle parser simplified and improved, under assumption that it
9659 will be called in context of source'.
9661 + Make 'block' conditional on strictness state, instead of using
9662 failIfStrict in block parsers. Use a different ordering of parsers
9663 in strict mode (raw HTML block before paragraph) for performance.
9664 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
9665 Simplified htmlBlock, since we know it's only called in strict
9666 mode.
9668 + Improved handling of raw HTML. (Resolves Issue #36.)
9669 - Tags that can be either block or inline (e.g. <ins>) should
9670 be treated as block when appropriate and as inline when
9671 appropriate. Thus, for example,
9672 <ins>hi</ins>
9673 should be treated as a paragraph with inline <ins> tags, while
9674 <ins>
9675 hi
9676 </ins>
9677 should be treated as a paragraph within <ins> tags.
9678 - Moved htmlBlock after para in list of block parsers. This ensures
9679 that tags that can be either block or inline get parsed as inline
9680 when appropriate.
9681 - Modified rawHtmlInline' so that block elements aren't treated as
9682 inline.
9683 - Modified para parser so that paragraphs containing only HTML tags and
9684 blank space are not allowed. Treat these as raw HTML blocks instead.
9686 + Fixed bug wherein HTML preceding a code block could cause it to
9687 be parsed as a paragraph. The problem is that the HTML parser
9688 used to eat all blank space after an HTML block, including the
9689 indentation of the code block. (Resolves Issue #39.)
9690 - In Text.Pandoc.Readers.HTML, removed parsing of following space
9691 from rawHtmlBlock.
9692 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
9693 indentation is eaten *only* on the first line after the HTML
9694 block. This means that in
9695 <div>
9696 foo
9697 <div>
9698 the foo won't be treated as a code block, but in
9699 <div>
9701 foo
9703 </div>
9704 it will. This seems the right approach for least surprise.
9706 * RST reader:
9708 + Fixed bug in parsing explicit links (resolves Issue #44).
9709 The problem was that we were looking for inlines until a '<' character
9710 signaled the start of the URL; so, if you hit a reference-style link,
9711 it would keep looking til the end of the document. Fix: change
9712 inline => (notFollowedBy (char '`') >> inline). Note that this won't
9713 allow code inlines in links, but these aren't allowed in resT anyway.
9715 + Cleaned up parsing of reference names in key blocks and links.
9716 Allow nonquoted reference links to contain isolated '.', '-', '_', so
9717 so that strings like 'a_b_' count as links.
9719 + Removed unnecessary check for following link in str.
9720 This is unnecessary now that link is above str in the definition of
9721 'inline'.
9723 * HTML reader:
9725 + Modified rawHtmlBlock so it parses </html> and </body> tags.
9726 This allows these tags to be handled correctly in Markdown.
9727 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
9728 since these are handled in parseHtml. (Resolves Issue #38.)
9730 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
9732 + Don't interpret contents of style tags as markdown.
9733 (Resolves Issue #40.)
9734 - Added htmlStyle, analagous to htmlScript.
9735 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
9736 - Moved "script" from the list of tags that can be either block or
9737 inline to the list of block tags.
9739 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
9740 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
9741 inline tags would be included in raw HTML blocks.
9743 + Modified anyHtmlBlockTag to test for (not inline) rather than
9744 directly for block. This allows us to handle e.g. docbook in
9745 the markdown reader.
9747 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
9748 Updated LaTeX reader test to use --parse-raw.
9750 * HTML writer:
9752 + Modified rules for automatic HTML header identifiers to
9753 ensure that identifiers begin with an alphabetic character.
9754 The new rules are described in README. (Resolves Issue #33.)
9756 + Changed handling of titles in HTML writer so you don't get
9757 "titleprefix - " followed by nothing.
9759 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
9760 spacing. Each block element is wrapped with either Pad or Reg.
9761 Pad'ed elements are guaranteed to have a blank line in between.
9763 * RST writer:
9765 + Refactored RST writer to use a record instead of a tuple for state,
9766 and to include options in state so it doesn't need to be passed as
9767 a parameter.
9769 + Use an interpreted text role to render math in restructuredText.
9770 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
9771 strategy.
9773 [ Recai Oktaş ]
9775 * Debian packaging changes:
9777 + Remove the empty 'include' directory in -dev package, which lintian
9778 complains about.
9779 + Bump Standarts-Version to 3.7.3.
9780 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
9781 lintian.
9783 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
9785pandoc (0.45) unstable; urgency=low
9787 [ John MacFarlane ]
9789 * Simplified parsing of reference keys and notes in markdown and RST
9790 readers: The Reference data structure from Text.Pandoc.Shared is no
9791 longer needed, since referenceKey and noteBlock parses return strings
9792 (as many blank lines as were occupied by the key or note) and update
9793 state themselves. getPosition and setPosition are now used to ensure
9794 that error messages will give the correct line number. This yields
9795 cleaner (and slightly faster) code, with more accurate parsing error
9796 messages.
9798 * Added new Math inline element:
9800 + Markdown and LaTeX readers now convert TeX math into Math elements,
9801 not TeX.
9802 + This allows math to be treated differently from raw TeX in output.
9803 TeX elements are no longer printed in output formats other than
9804 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
9806 * New default handling of math in writers:
9808 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
9809 parses raw TeX math and outputs a string of Pandoc inlines that
9810 tries to render it as far as possible using unicode characters,
9811 lapsing into literal TeX when needed.
9812 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
9813 and Docbook, if no other method for displaying math in HTML is
9814 specified. Enclosing $'s are no longer printed by default.
9815 + By default, math is put inside `<span class="math">`. This way it can be
9816 distinguished from the surrounding text, e.g. put in a different
9817 font.
9819 * New --gladtex and --mimetex options for display of math in HTML:
9821 + If --gladtex is specified, math is output between `<eq>` tags, so
9822 it can be processed by gladTeX.
9823 + If --mimetex is specified, math is put in `<img>` tags with a link
9824 to the mimetex CGI script (or any other script that takes TeX math
9825 as input and outputs an image). The URL of the script may be
9826 specified, but defaults to /cgi-bin/mimetex.cgi.
9827 + HTMLMathMethod structure in WriterOptions keeps track of how to
9828 display math in HTML output.
9829 + Updated README with a description of the four options for displaying
9830 math in HTML.
9832 * HTML reader:
9834 + Fixed bug: parser for minimized attributes should not swallow
9835 trailing spaces.
9836 + Simplified HTML attribute parsing.
9837 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
9838 longer needed. `<pre>` suffices. All HTML tags in the code block
9839 (e.g. for syntax highlighting) are skipped, because they are not
9840 portable to other output formats. A `<code>...</code>` block not
9841 surrounded by `<pre>` now counts as inline HTML, not a code block.
9842 + Remove just one leading and one trailing newline from contents of
9843 `<pre>...</pre>` in codeBlock parser.
9845 * Markdown reader:
9847 + Removed support for box-style block quotes.
9848 + Require space before title in links and references.
9849 This fixes a bug in parsing URLs like http://silly/url(withparen).
9850 + Improved and simplified setextHeader parser.
9851 + Fixed logic in smart quote parsing, adding some needed 'try'
9852 statements.
9853 + Fixed smart quote parsing so that unicode characters 8216 and 8217
9854 are recognized as single quotes, and 8220 and 8221 as double quotes.
9856 * RST reader:
9858 + Fixed bug in parsing of code blocks. Previously a full tab indent
9859 was required, but RST allows code to be indented any amount.
9860 Resolves Issue #27.
9861 + Allow field lists to be indented.
9862 + Parse the contents of field lists instead of treating as a raw string.
9863 + Represent field lists as definition lists instead of blockquotes.
9864 + Fixed bug in which metadata would be overridden if the document
9865 contained multiple field lists.
9866 + Parse fields associated with '.. image::' blocks, and use 'alt'
9867 field, if given, for image alt and title attributes.
9869 * LaTeX reader:
9871 + Modified specialChar so that '"' characters are parsed.
9872 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
9874 * HTML writer:
9876 + Changes in handling of math (see above).
9877 + Don't produce HTML for table of contents if there are
9878 no headers. (This would be an empty list, which is invalid XHTML.)
9880 * Markdown writer:
9882 + Don't print title attribute if title is empty. (This differs from
9883 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
9884 Gruber has indicated that he prefers this behavior.) Adjusted test
9885 suite accordingly.
9886 + Fixed incorrect line wrapping in paragraphs including hard line
9887 breaks. Resolves Issue #25.
9888 + Fixed bug in markdown writer: If an ordered list item began with
9889 a marker greater than 3 characters in width, and the item took more
9890 than one line, it would appear on the line after the list marker,
9891 e.g.:
9893 (12)
9894 My list item.
9895 Multiline.
9897 Now it works as follows:
9899 (12) My list item.
9900 Multiline.
9902 * RST writer
9904 + Fixed bug in RST writer's handling of ordered lists. Previously,
9905 list items with multiple lines would not always line up with
9906 single-line list items. Now, list items are nested the length of
9907 the list marker + 1. This looks better and ensures that list items
9908 all line up. (Note that list markers are padded to the length of
9909 the longest list marker in the series.)
9910 + Use 3-space indent for unordered lists.
9911 + If label for a link reference contains a colon, surround it by `
9912 signs so it won't be interpreted as the end of the link label.
9914 * LaTeX writer:
9916 + Cleaner output for footnotes. Footnotes now always begin on a new
9917 line, and the final } is on a line by itself only when it needs to
9918 be (i.e. only when the note ends with a Verbatim environment).
9919 + Added writer options to state, so state doesn't need to be passed as
9920 a parameter.
9921 + Text wrapping now provided, using wrapTeXIfNeeded.
9923 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
9924 (thanks to Idris Samawi Hamid for suggestions).
9926 + PrettyPrint module now used for output.
9927 + Writer options are now in state, so they don't have to be passed as
9928 a parameter.
9929 + Text wrapping now provided, using wrapTeXIfNeeded.
9930 + Better treatment of footnotes: footnotes are always on lines by
9931 themselves, and the final } is on a line by itself only when
9932 it needs to be (after \stoptyping).
9933 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
9934 depending on whether --number-sections option is selected.
9935 + Extra blank line inserted after \stopitemize
9936 + Use new, "official" definition of blockquote environment. Also, use
9937 blank line after \startblockquote to balance blank line at the end.
9938 + Both itemized and enumerated lists are now generated using
9939 \start-stopitemize, with appropriate options. Removed definitions
9940 of ltxenum and ltxitem, which are no longer needed. Provided
9941 defaults for itemized lists in the preamble. State keeps track of
9942 ordered list level, so that when default numbering is specified,
9943 the appropriate scheme can be used.
9944 + Changed \useurl to \useURL.
9945 + Changed link color from red to blue.
9946 + Use \subsubsubsubsection etc., since these are supported
9947 (up to at least sub x 5).
9949 * Text.Pandoc.Shared:
9951 + Save and restore position in parseFromString, so that accurate
9952 error messages can be given.
9953 + Improved efficiency of romanNumeral parser.
9954 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
9955 that footnotes occur on lines by themselves (to make them
9956 easier to see and move) and do not screw up line wrapping.
9958 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
9959 if present. Windows Notepad and other applications insert a
9960 BOM at the beginning of a UTF8 file.
9962 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
9963 addition to "\r\n" and '\n').
9965 * Added a writer option for wrapped text and a command-line option
9966 '--no-wrap', which disables text wrapping and minimizes whitespace
9967 in HTML. (Resolves Issue #26.)
9969 + Added support for '--no-wrap' to Main.hs.
9970 + Added wrapIfNeeded function to Text.Pandoc.Shared.
9971 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
9972 Markdown writers.
9973 + Added render and renderFragment helpers to HTML writer.
9975 * Modified html2markdown to run tidy only if the HTML cannot be
9976 parsed. Previously html2markdown piped all input through tidy
9977 before passing it to pandoc. This caused problems on certain pages
9978 (e.g. http://daringfireball.com/markdown) which have well-formed
9979 XHTML that causes tidy to choke. The solution is to pipe through
9980 tidy only if pandoc cannot parse the input by itself. This means
9981 that a temp file is now always used, even when input comes from a
9982 local file or standard input.
9984 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
9985 Text.Pandoc library.
9987 * pandoc.cabal:
9989 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
9990 6.8, pretty and containers must be added to Build-Depends, and it
9991 is desirable to use the -O2 compiler option.) Cabal configurations
9992 allows one to select options depending on the compiler version.
9993 For GHC 6.6, the splitBase option can be disabled.
9994 + pandoc.cabal.ghc66 is provided for users with older versions of
9995 Cabal, which do not support configurations.
9996 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
9997 '--enable-(executable|library)-profiling' is specified. Updated
9998 PROFILING instructions accordingly.
10000 * Makefile:
10002 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
10003 is copied to pandoc.cabal, and the old pandoc.cabal is copied
10004 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
10005 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
10006 will work properly with either GHC 6.6 or 6.8.
10007 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
10008 This is where current versions of Cabal put it.
10009 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
10010 + Removed dependency of templates on ./templates, which is circular
10011 now that templates is a subdirectory of the top-level.
10013 * MacPorts Portfile:
10015 + Modified to install the pandoc library in addition to programs.
10016 + Installation must be done manually rather than using Makefile's
10017 install-all.
10018 + Note that the library must be registered in the activate phase,
10019 after the library files have been copied out of the destroot.
10020 Cabal generates a 'register.sh' script that will do this.
10022 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
10023 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
10024 Closes: #445235
10026 * debian/rules: Converted to UTF-8.
10028 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
10030 * Updated ASCIIMathML.js to latest version.
10032 * Directory structure:
10034 + Moved everything from src into the top-level directory.
10035 + Changed references to source directory in Makefile and
10036 pandoc.cabal.*.
10037 + Moved ASCIIMathML.js, headers, and ui into templates directory.
10038 + Modified fillTemplates.pl to reflect new paths.
10040 [ Recai Oktaş ]
10042 * Makefile: Fixed the issue of having two copies of the library
10043 documentation under some usage scenarios.
10045 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
10046 and GHC_PKG configurable through the environment, to support
10047 unusual ghc installations. For example:
10048 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
10050 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
10052pandoc (0.44) unstable; urgency=low
10054 [ John MacFarlane ]
10056 * Fixed bug in HTML writer: when --toc was used, anchors were put around
10057 headers, which is invalid XHTML (block content within inline element).
10058 Now the anchors are put inside the header tags. Resolves Issue #23.
10060 * Added xmlns attribute to html element in html writer tests.
10061 This attribute is added by more recent versions of the
10062 xhtml library (>= 3000), and is required for valid XHTML.
10064 [ Recai Oktaş ]
10066 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
10067 command instead of 'runhaskell', which, on some platforms (such as s390,
10068 alpha, m68k), throws the following error:
10070 runhaskell Setup.hs configure --prefix=/usr
10071 ghc-6.6.1: not built for interactive use
10073 This causes a serious FTBFS bug. Closes: #440668.
10075 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
10077pandoc (0.43) unstable; urgency=low
10079 [ John MacFarlane ]
10081 * The focus of this release is performance. The markdown parser
10082 is about five times faster than in 0.42, based on benchmarks
10083 with the TextMate manual.
10085 * Main.hs: Replaced CRFilter and tabFilter with single function
10086 tabFilter, which operates on the whole string rather than breaking
10087 it into lines, and handles dos-style line-endings as well as tabs.
10089 * Added separate LaTeX reader and native reader tests; removed
10090 round-trip tests.
10092 * Text.Pandoc.Shared:
10094 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
10095 + General code cleanup (to elimante warnings when compiling with -Wall.)
10096 + Added 'wrapped' function, which helps wrap text into paragraphs,
10097 using the prettyprinting library.
10098 + Rewrote charsInBalanced and charsInBalanced'.
10099 - Documented restriction: open and close must be distinct characters.
10100 - Rearranged options for greater efficiency.
10101 - Bug fix: Changed inner call to charsInBalanced inside
10102 charsInBalanced' to charsInBalanced'.
10103 + anyLine now requires that the line end with a newline (not eof).
10104 This is a harmless assumption, since we always add newlines to the
10105 end of a block before parsing with anyLine, and it yields a 10% speed
10106 boost.
10107 + Removed unnecessary 'try' in anyLine.
10108 + Removed unneeded 'try' from romanNumeral parser.
10109 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
10110 + Removed unneeded 'try' in parseFromString.
10111 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
10112 like 'string'.)
10113 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
10114 'try' is not automatically applied to the 'end' parser. Added
10115 'try' in calls to 'enclosed' where needed. Slight speed increase.
10117 * Writers:
10119 + Replaced individual wrapping routines in RST, Man, and Markdown
10120 writers with 'wrapped' from Text.Pandoc.Shared.
10121 + Rewrote LaTeX writer to use the prettyprinting library,
10122 so we get word wrapping, etc.
10123 + Modified latex writer tests for new latex writer using prettyprinter.
10124 + Fixed bug in LaTeX writer: autolinks would not cause
10125 '\usepackage{url}' to be put in the document header. Also, changes
10126 to state in enumerated list items would be overwritten.
10127 + In Markdown writer, escape paragraphs that begin with ordered list
10128 markers, so they don't get interpreted as ordered lists.
10130 * Text.Pandoc.Reades.LaTeX:
10132 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
10133 numeral after "enum" in "setcounter" would consist entirely of
10134 "i"s. 'enumiv' is legitimate.
10135 + LaTeX command and environment names can't contain numbers.
10136 + Rearranged order of parsers in inline for slight speed improvement.
10137 + Added '`' to special characters and 'unescapedChar'.
10139 * Text.Pandoc.Readers.RST:
10141 + Removed unneeded try's in RST reader; also minor code cleanup.
10142 + Removed tabchar.
10143 + Rearranged parsers in inline (doubled speed).
10145 * Text.Pandoc.Readers.Markdown:
10147 + Skip notes parsing if running in strict mode. (This yields a nice
10148 speed improvement in strict mode.)
10149 + Simplify autolink parsing code, using Network.URI to test for
10150 URIs. Added dependency on network library to debian/control and
10151 pandoc.cabal.
10152 + More perspicuous definition of nonindentSpaces.
10153 + Removed unneeded 'try' in 'rawLine'.
10154 + Combined linebreak and whitespace into a new whitespace parser, to
10155 avoid unnecessary reparsing of space characters.
10156 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
10157 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
10158 + Use lookAhead in parsers for setext headers and definition lists
10159 to see if the next line begins appropriately; if not, don't waste
10160 any more time parsing.
10161 + Don't require blank lines after code block. (It's sufficient to
10162 end code block with a nonindented line.)
10163 + Changed definition of 'emph': italics with '_' must not
10164 be followed by an alphanumeric character. This is to help
10165 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
10166 `[LC<em>TYPE]:my</em>type`.
10167 + Improved Markdown.pl-compatibility in referenceLink: the two parts
10168 of a reference-style link may be separated by one space, but not
10169 more... [a] [link], [not] [a link].
10170 + Fixed markdown inline code parsing so it better accords with
10171 Markdown.pl: the marker for the end of the code section is a clump
10172 of the same number of `'s with which the section began, followed
10173 by a non-` character. So, for example,
10174 ` h ``` i ` -> `<code>h ``` i</code>`.
10175 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
10176 rules are slightly different.
10177 + Rewrote 'para' for greater efficiency.
10178 + Rewrote link parsers for greater efficiency.
10179 + Removed redundant 'referenceLink' in definition of inline (it's
10180 already in 'link').
10181 + Refactored escapeChar so it doesn't need 'try'.
10182 + Refactored hrule for performance in Markdown reader.
10183 + More intelligent rearranging of 'inline' so that most frequently
10184 used parsers are tried first.
10185 + Removed tabchar parser, as whitespace handles tabs anyway.
10187 * Text.Pandoc.CharacterReferences:
10189 + Refactored.
10190 + Removed unnecessary 'try's for a speed improvement.
10191 + Removed unnecessary '&' and ';' from the entity table.
10193 * Build process:
10195 + Makefile: Get VERSION from cabal file, not Main.hs.
10196 + Modified MacPorts Portfile:
10197 - Depend on haddock
10198 - Build and install libraries and library documentation in
10199 addition to pandoc executable
10200 - Added template item for md5 sum in Portfile.in.
10201 - Incorporated changes from MacPorts repository (r28278).
10202 + FreeBSD port: Don't try to generate distinfo in Makefile.
10203 It can be made using 'make makesum' in FreeBSD.
10204 + Make both freebsd and macports targets depend on tarball.
10206 * Website and documentation:
10208 + Updated INSTALL instructions.
10209 + Added pandocwiki demo to website.
10210 + Removed local references to Portfile, since pandoc is now in the
10211 MacPorts repository.
10213 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
10215pandoc (0.42) unstable; urgency=low
10217 [ John MacFarlane ]
10219 * Main.hs: Use utf8 conversion on the extra files loaded with
10220 the -H, -C, -B, and -A options. This fixes problems with unicode
10221 characters in these files.
10223 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
10224 Text.Pandoc.Readers.HTML and without it we get a linking error when
10225 using the library.
10227 * Markdown reader:
10229 + Added new rule for enhanced markdown ordered lists: if the list
10230 marker is a capital letter followed by a period (including a
10231 single-letter capital roman numeral), then it must be followed by
10232 at least two spaces. The point of this is to avoid accidentally
10233 treating people's initials as list markers: a paragraph might begin,
10234 "B. Russell was an English philosopher," and this shouldn't be
10235 treated as a list. Documented change in README.
10236 + Blocks that start with "p. " and a digit are no longer treated
10237 as ordered lists (it's a page number).
10238 + Added a needed 'try' to listItem.
10239 + Removed check for a following setext header in endline.
10240 A full test is too inefficient (doubles benchmark time), and the
10241 substitute we had before is not 100% accurate.
10242 + Don't use Code elements for autolinks if --strict specified.
10244 * LaTeX writer: When a footnote ends with a Verbatim environment, the
10245 close } of the footnote cannot occur on the same line or an error occurs.
10246 Fixed this by adding a newline before the closing } of every footnote.
10248 * HTML writer:
10249 + Removed incorrect "{}" around style information in HTML tables.
10250 Column widths now work properly in HTML.
10251 + If --strict option is specified (and --toc is not), don't include
10252 identifiers in headers, for better Markdown compatibility.
10254 * Build process:
10256 + Separated $(web_dest) and website targets.
10257 + In website, index.txt is now constructed from template index.txt.in.
10258 + Added freebsd target to Markefile. This creates the freebsd Makefile
10259 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
10260 from the repository.
10261 + Added macport target to Makefile. Portfile is built from template
10262 Portfile.in.
10263 + Removed OSX package targets. (Too many difficulties involving
10264 dependencies on dynamic libraries.)
10265 + More complete INSTALL instructions for all architectures.
10267 * Website:
10268 + Added a programming demo, pandocwiki.
10270 [ Recai Oktaş ]
10272 * Do not forget to close pandoc's ITP. Closes: #391666
10274 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
10276pandoc (0.41) unstable; urgency=low
10278 [ John MacFarlane ]
10280 * Fixed bugs in HTML reader:
10281 + Skip material at end *only if* `</html>` is present (previously,
10282 only part of the document would be parsed if an error was
10283 found; now a proper error message is given).
10284 + Added new constant eitherBlockOrInline with elements that may
10285 count either as block-level or as inline. Modified isInline and
10286 isBlock to take this into account.
10287 + Modified rawHtmlBlock to accept any tag (even an inline tag):
10288 this is innocuous, because rawHtmlBlock is tried only if a regular
10289 inline element can't be parsed.
10290 + Added a necessary 'try' in definition of 'para'.
10292 * Fixed bug in markdown ordered list parsing. The problem was that
10293 anyOrderedListStart did not check for a space following the
10294 ordered list marker. So in 'A.B. 2007' the parser would be
10295 expecting a list item, but would not find one, causing an error.
10296 Fixed a similar bug in the RST reader. Resolves Issue #22.
10298 * Refactored RST and Markdown readers using parseFromString.
10300 * LaTeX reader will now skip anything after \end{document}.
10302 * Fixed blockquote output in markdown writer: previously, block
10303 quotes in indented contexts would be indented only in the first
10304 line.
10306 * Added note to INSTALL about variations in versions of the xhtml
10307 library that can lead to failed tests (thanks to Leif LeBaron).
10309 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
10311pandoc (0.4) unstable; urgency=low
10313 [ John MacFarlane ]
10315 * Added two new output formats: groff man pages and ConTeXt. By
10316 default, output files with extensions ".ctx" and ".context" are
10317 assumed to be ConTeXt, and output files with single-digit extensions
10318 are assumed to be man pages.
10320 * Enhanced ordered lists (documented in README, under Lists):
10321 + The OrderedList block element now stores information about
10322 list number style, list number delimiter, and starting number.
10323 + The readers parse this information when possible.
10324 + The writers use this information to style ordered lists.
10325 + The enhancement can be disabled using the --strict option.
10327 * Added support for tables (with a new Table block element). Two kinds
10328 of tables are supported: a simple table with one-line rows, and a
10329 more complex variety with multiline rows. All output formats are
10330 supported, but only markdown tables are parsed at the moment. The
10331 syntax is documented in README.
10333 * Added support for definition lists (with a new DefinitionList block
10334 element). All output and input formats are supported. The syntax is
10335 documented in README.
10337 * Added support for superscripts and subscripts (with new Superscript
10338 and Subscript inline elements). All input and output
10339 formats. The syntax is documented in README.
10341 * Added support for strikeout (with a new Strikeout inline element).
10342 All input and output formats are supported. Thanks to Bradley Kuhn,
10343 who contributed a patch. The syntax is documented in README. Resolves
10344 Issue #18.
10346 * Added a --toc|--table-of-contents option. This causes an automatically
10347 generated table of contents (or an instruction that creates one) to
10348 be inserted at the beginning of the document. Not supported in S5,
10349 DocBook, or man page writers.
10351 * Modified the -m|--asciimathml option:
10353 + If an optional URL argument is provided, a link is inserted
10354 instead of the contents of the ASCIIMathML.js script.
10355 + Nothing is inserted unless the document actually contains
10356 LaTeX math.
10358 * Removed Blank block element as unnecessary.
10360 * Removed Key and Note blocks from the Pandoc data structure. All
10361 links are now stored as explicit links, and note contents are
10362 stored with the (inline) notes.
10364 + All link Targets are now explicit (URL, title) pairs; there
10365 is no longer a 'Ref' target.
10366 + Markdown and RST parsers now need to extract data from key and
10367 note blocks and insert them into the relevant inline elements.
10368 Other parsers have been simplified, since there is no longer any need
10369 to construct separate key and note blocks.
10370 + Markdown, RST, and HTML writers need to construct lists of
10371 notes; Markdown and RST writers need to construct lists of link
10372 references (when the --reference-links option is specified); and
10373 the RST writer needs to construct a list of image substitution
10374 references. All writers have been rewritten to use the State monad
10375 when state is required.
10376 + Several functions (generateReference, keyTable,
10377 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
10378 used by them) have been removed from Text.Pandoc.Shared, since
10379 they are no longer needed. New functions and data structures
10380 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
10381 added. The functions inTags, selfClosingTag, inTagsSimple, and
10382 inTagsIndented have been moved to the DocBook writer, since that
10383 is now the only module that uses them. NoteTable is now exported
10384 in Text.Pandoc.Shared.
10385 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
10386 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
10387 + Added writerNotes and writerReferenceLinks to WriterOptions.
10389 * Added Text.Pandoc module that exports basic readers, writers,
10390 definitions, and utility functions. This should export everything
10391 needed for most uses of Pandoc libraries. The haddock documentation
10392 includes a short example program.
10394 * Text.Pandoc.ASCIIMathML is no longer an exported module.
10396 * Added Text.Pandoc.Blocks module to help in printing markdown
10397 and RST tables. This module provides functions for working with
10398 fixed-width blocks of text--e.g., placing them side by side, as
10399 in a table row.
10401 * Refactored to avoid reliance on Haskell's Text.Regex library, which
10402 (a) is slow, and (b) does not properly handle unicode. This fixed
10403 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
10405 + Replaced 'gsub' with a general list function 'substitute'
10406 that does not rely on Text.Regex.
10407 + Rewrote extractTagType in HTML reader so that it doesn't use
10408 regexs.
10409 + In Markdown reader, replaced email regex test with a custom email
10410 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
10411 with a custom function isSelfClosingTag.
10412 + Modified Docbook writer so that it doesn't rely on Text.Regex for
10413 detecting 'mailto' links.
10414 + Removed escapePreservingRegex and reamped entity-handling
10415 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
10416 avoid reliance on Text.Regex (see below on character reference
10417 handling changes).
10419 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
10421 * Changed handling of XML entities. Entities are now parsed (and unicode
10422 characters returned) in the Markdown and HTML readers, rather than being
10423 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
10424 instead of entities for characters above 128. This makes the HTML and
10425 DocBook output much more readable and more easily editable.
10427 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
10428 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
10429 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
10430 Moved both functions to Text.Pandoc.Writers.Docbook.
10431 + Added characterReference parser to Text.Pandoc.CharacterReferences.
10432 This parses a string and return a unicode character.
10433 + Rewrote decodeCharacterReferences to use the new parser instead of
10434 Text.Regex.
10435 + Added new charRef parser for Markdown and HTML, which replaces the
10436 old 'entity' parser. Added '&' as a special character in Markdown reader.
10437 + Modified HTML and Markdown readers to call decodeEntities on all raw
10438 strings (e.g. authors, dates, link titles), to ensure that no
10439 unprocessed entities are included in the native representation of
10440 the document. (In the HTML reader, most of this work is done by a
10441 change in extractAttributeName.)
10442 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
10443 since a unicode non-breaking space is impossible to distinguish visually
10444 from a regular space. (Resolves Issue #3.)
10445 + Removed encodeEntitiesNumerical.
10446 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
10447 slight performance boost over the old association list.
10448 + Removed unneeded decodeEntities from 'str' parser in HTML and
10449 Markdown readers.
10451 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
10452 fromUTF8, for clarity.
10454 * Replaced old haskell98 module names replaced by hierarchical module
10455 names, e.g. List by Data.List. Removed haskell98 from dependencies
10456 in pandoc.cabal, and added mtl (needed for state monad). Substituted
10457 xhtml for html.
10459 * Refactored and cleaned up character escaping in writers, using
10460 backslashEscapes and escapeStringUsing functions.
10462 * Instead of adding "\n\n" to the end of an input string in Main.hs,
10463 this is now done in the readers. This makes the libraries behave
10464 the way you'd expect from the pandoc program. Resolves Issue #10.
10466 * URLs and email addresses in autolinks are now typeset as Code.
10468 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
10469 doesn't display the whole output unless there's a line ending.
10471 * Major code cleanup in all modules, for greater consistency, concision,
10472 and readability.
10474 * HTML reader:
10476 + Fixed several bugs (extractTagType, attribute parsing).
10477 + Remove Null blocks in lists of blocks when possible.
10478 + Allow HTML comments as raw HTML inline.
10480 * Markdown reader:
10482 + Ordered list items may no longer begin with uppercase letters, or
10483 letters greater than 'n'. (This prevents first initials and page
10484 reference, e.g. 'p. 400', from being parsed as beginning lists.)
10485 Also, numbers beginning list items may no longer end with ')',
10486 which is now allowed only after letters. Note: These changes
10487 may cause documents to be parsed differently. Users should take
10488 care in upgrading.
10489 + Changed autoLink parsing to conform better to Markdown.pl's
10490 behavior. `<google.com>` is not treated as a link, but
10491 `<http://google.com>`, `<ftp://google.com>`, and
10492 `<mailto:google@google.com>` are.
10493 + Cleaned up handling of embedded quotes in link titles. Now these are
10494 stored as a '"' character, not as '&quot;'.
10495 + Use lookAhead parser for the 'first pass' (looking for reference keys),
10496 instead of parsing normally, then using setInput to reset input. This
10497 yields a slight performance boost.
10498 + Fixed several bugs in smart quote recognition.
10499 + Fixed bug in indentSpaces (which didn't properly handle
10500 cases with mixed spaces and tabs).
10501 + Consolidated 'text', 'special', and 'inline' into 'inline'.
10502 + Fixed bug which allowed URL and title to be separated by multiple blank
10503 lines in links and reference keys. They can be on separate lines but
10504 can't have blank lines between them.
10505 + Correctly handle bracketed text inside inline footnotes and links,using
10506 new function inlinesInBalanced. Resolves Issue #14.
10507 + Fixed bug in footnotes: links in footnotes were not being
10508 processed. Solution: three-stage parse. First, get all the
10509 reference keys and add information to state. Next, get all the
10510 notes and add information to state. (Reference keys may be needed
10511 at this stage.) Finally, parse everything else.
10512 + Replaced named constants like 'emphStart' with literals.
10513 + Removed an extra occurance of escapedChar in definition of inline.
10515 * RST reader:
10517 + Allow the URI in a RST hyperlink target to start on the line
10518 after the reference key.
10519 + Added 'try' in front of 'string', where needed, or used a different
10520 parser. This fixes a bug where ````` would not be correctly parsed as
10521 a verbatim `.
10522 + Fixed slow performance in parsing inline literals in RST reader. The
10523 problem was that ``#`` was seen by 'inline' as a potential link or image.
10524 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
10525 Resolves Issue #8.
10526 + Use lookAhead instead of getInput/setInput in RST reader. Removed
10527 unneeded getState call, since lookAhead automatically saves and
10528 restores the parser state.
10529 + Allow hyperlink target URIs to be split over multiple lines, and
10530 to start on the line after the reference. Resolves Issue #7.
10531 + Fixed handling of autolinks.
10533 * LaTeX reader:
10535 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
10536 for clarity.
10537 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
10538 caret is \^{}, not \^ as before.
10539 + Added parsing for \url.
10540 + Parse \texttt{} as code, provided there's nothing fancy inside.
10542 * HTML writer:
10544 + Modified HTML writer to use the Text.XHtml library. This results
10545 in cleaner, faster code, and it makes it easier to use Pandoc in
10546 other projects, like wikis, which use Text.XHtml. Two functions are
10547 now provided, writeHtml and writeHtmlString: the former outputs an
10548 Html structure, the latter a rendered string. The S5 writer is also
10549 changed, in parallel ways (writeS5, writeS5String).
10550 + The Html header is now written programmatically, so it has been
10551 removed from the 'headers' directory. The S5 header is still
10552 needed, but the doctype and some of the meta declarations have
10553 been removed, since they are written programatically. This change
10554 introduces a new dependency on the xhtml package.
10555 + Fixed two bugs in email obfuscation involving improper escaping
10556 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
10557 Issue #9.
10558 + Fixed another bug in email obfuscation: If the text to be obfuscated
10559 contains an entity, this needs to be decoded before obfuscation.
10560 Thanks to thsutton for the patch. Resolves Issue #15.
10561 + Changed the way the backlink is displayed in HTML footnotes.
10562 Instead of appearing on a line by itself, it now generally
10563 appears on the last line of the note. (Exception: when the
10564 note does not end with a Plain or Para block.) This saves space
10565 and looks better.
10566 + Added automatic unique identifiers to headers:
10567 - The identifier is derived from the header via a scheme
10568 documented in README.
10569 - WriterState now includes a list of header identifiers and a table
10570 of contents in addition to notes.
10571 - The function uniqueIdentifiers creates a list of unique identifiers
10572 from a list of inline lists (e.g. headers).
10573 - This list is part of WriterState and gets consumed by blockToHtml
10574 each time a header is encountered.
10575 + Include CSS for .strikethrough class in header only if strikethrough
10576 text appears in the document.
10577 + If the 'strict' option is specified, elements that do not appear in
10578 standard markdown (like definition lists) are passed through as
10579 raw HTML.
10580 + Simplified treatment of autolinks, using pattern matching instead of
10581 conditionals.
10583 * Markdown writer:
10585 + Links in markdown output are now printed as inline links by default,
10586 rather than reference links. A --reference-links option has been added
10587 that forces links to be printed as reference links. Resolves Issue #4.
10588 + Use autolinks when possible. Instead of `[site.com](site.com)`,
10589 use `<site.com>`.
10591 * LaTeX writer:
10593 + Rewrote to use the State monad. The preamble now includes only those
10594 packages that are actually required, given the document's content.
10595 Thus, for example, if strikeout is not used, ulem is not required.
10596 Modified LaTeXHeader accordingly.
10597 + Modified LaTeX writer to insert '\,' between consecutive quotes.
10598 + Removed unused function tableRowColumnWidths.
10599 + Simplified code for escaping special characters.
10600 + Leave extra blank line after \maketitle.
10601 + Include empty '\author{}' when no author specified to avoid LaTeX
10602 errors.
10603 + Include fancyvrb code in header only if needed -- that is, only
10604 if there is actually code in a footnote.
10605 + Use \url{} for autolinks.
10606 + Include [mathletters] option in ucs package, so that basic unicode
10607 Greek letters will work correctly.
10609 * RST writer: Force blank line before lists, so that sublists will
10610 be handled correctly.
10612 * Docbook writer: Fixed a bug: email links with text, like
10613 [foo](me@bar.baz), were being incorrectly treated as autolinks.
10615 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
10616 Text.Pandoc.Shared.
10618 * Text.Pandoc.Shared:
10620 + Added defaultWriterOptions.
10621 + Added writerTableOfContents to WriterOptions.
10622 + Added writerIgnoreNotes option to WriterOptions. This is needed
10623 for processing header blocks for a table of contents, since notes on
10624 headers should not appear in the TOC.
10625 + Added prettyprinting for native Table format.
10626 + Removed some unneeded imports.
10627 + Moved escape and nullBlock parsers from
10628 Text.ParserCombinators.Pandoc, since the latter is for
10629 general-purpose parsers that don't depend on Text.Pandoc.Definition.
10630 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
10631 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
10632 writer, because HTML writer now uses these in constructing a table
10633 of contents.
10634 + Added clauses for new inline elements (Strikeout, Superscript,
10635 Subscript) to refsMatch.
10636 + Removed backslashEscape; added new functions escapeStringUsing and
10637 backslashEscapes.
10638 + Moved failIfStrict from markdown reader, since it is now used also
10639 by the HTML reader.
10640 + Added a 'try' to the definition of indentSpaces.
10641 + In definition of 'reference', added check to make sure it's not a note
10642 reference.
10643 + Added functions: camelCaseToHyphenated, toRomanNumeral,
10644 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
10645 charsInBalanced', withHorizDisplacement, romanNumeral
10646 + Fixed a bug in the anyLine parser. Previously it would parse an empty
10647 string "", but it should fail on an empty string, or we get an error
10648 when it is used inside "many" combinators.
10649 + Removed followedBy' parser, replacing it with the lookAhead parser from
10650 Parsec.
10651 + Added some needed 'try's before multicharacter parsers, especially in
10652 'option' contexts.
10653 + Removed the 'try' from the 'end' parser in 'enclosed', so that
10654 'enclosed' behaves like 'option', 'manyTill', etc.
10655 + Added lineClump parser, which parses a raw line block up to and
10656 including any following blank lines.
10657 + Renamed parseFromStr to parseFromString.
10658 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
10659 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
10660 in calling code.
10661 + Removed unneeded 'try' in blanklines.
10662 + Removed endsWith function and rewrote calling functions to use
10663 isSuffixOf instead.
10664 + Added >>~ combinator.
10665 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
10666 Space.
10668 * Refactored runtests.pl; added separate tests for tables.
10670 * Shell scripts:
10672 + Added -asxhtml flag to tidy in html2markdown. This will
10673 perhaps help the parser, which expects closing tags.
10674 + Modified markdown2pdf to run pdflatex a second time if --toc or
10675 --table-of-contents was specified; otherwise the table of
10676 contents won't appear.
10677 + Modified markdown2pdf to print a helpful message if the 'ulem'
10678 LaTeX package is required and not found.
10680 * Changes to build process:
10682 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
10683 is now required.
10684 + Removed cabalize and Pandoc.cabal.in. The repository now contains
10685 pandoc.cabal itself.
10686 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
10687 likes the cabal file to have the same name as the tarball.
10688 + Expanded and revised the package description in pandoc.cabal.
10689 Revised the package synopsis.
10690 + The tarball built by 'make tarball' now contains files built from
10691 templates (including man pages and shell scripts), so pandoc can
10692 be built directly using Cabal tools, without preprocessing.
10693 + Executable binaries are now stripped before installing.
10694 + Man pages are now generated from markdown sources, using pandoc's
10695 man page writer.
10696 + Use HTML version of README (instead of RTF) in Mac OS X installer.
10697 + Instead of testing for the existence of a pandoc symlink in build-exec,
10698 use ln -f.
10700 * Documentation:
10702 + Updated README and man pages with information on new features.
10703 + Updated INSTALL instructions with some useful clarifications and
10704 links.
10705 + Updated web content.
10707 * Added FreeBSD port.
10709 [ Recai Oktaş ]
10711 * debian/control:
10713 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
10714 libghc6-xhtml-dev. Removed libghc6-html-dev.
10715 + Suggest texlive-latex-recommended | tetex-extra instead of
10716 tetex-bin. This brings in fancyvrb and unicode support.
10718 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
10720pandoc (0.3) unstable; urgency=low
10722 [ John MacFarlane ]
10724 * Changes in pandoc options:
10726 + Allow options to follow or precede arguments.
10727 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
10728 + Added '--strict' option.
10729 + Added '-o/--output' option.
10730 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
10731 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
10732 error conditions. This is helpful for writing wrappers.
10733 + Added copyright message to '-v' output, modeled after FSF messages.
10734 + Reformatted usage message so that it doesn't wrap illegibly.
10735 + Removed extra blanks after '-h' and '-D' output.
10737 * Added docbook writer.
10739 * Added implicit setting of default input and output format based
10740 on input and output filename extensions. These defaults are
10741 overridden if explicit input and output formats are specified using
10742 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
10743 and README.
10745 * Allow ordered list items to begin with (single) letters, as well
10746 as numbers. The list item marker may now be terminated either by
10747 '.' or by ')'. This extension to standard markdown is documented
10748 in README.
10750 * Revised footnote syntax. (See README for full details.) The
10751 '[^1]' format now standard in markdown extensions is supported,
10752 as are inline footnotes with this syntax: '^[My note.]'.
10753 The earlier footnote syntax '^(1)' is no longer supported.
10755 * Improved HTML representation of footnotes. All footnotes
10756 are now auto-numbered and appear in an ordered list at the
10757 end of the HTML document. Since the default appearance is now
10758 acceptable, the old footnote styles have been removed from the
10759 HTML header.
10761 * Bug fixes:
10763 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
10764 These readers ran 'runParser' on processed chunks of text to handle
10765 embedded block lists in lists and quotation blocks. But then
10766 any changes made to the parser state in these chunks was lost,
10767 as the state is local to the parser. So, for example, footnotes
10768 didn't work in quotes or list items. The fix: instead of calling
10769 runParser on some raw text, use setInput to make it the input, then
10770 parse it, then use setInput to restore the input to what it was
10771 before. This is shorter and more elegant, and it fixes the problem.
10772 + Fixed bug in notFollowedBy' combinator (adding 'try' before
10773 'parser'). Adjusted code that uses this combinator accordingly.
10774 + Fixed bug in RTF writer that caused improper indentation on
10775 footnotes occurring in indented blocks like lists.
10776 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
10777 and date are parsed correctly. Everything else in the preamble
10778 is skipped.
10779 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
10780 line to count as escaped whitespace.
10781 + Modified LaTeX reader to produce inline links rather than reference
10782 links. Otherwise, links in footnotes aren't handled properly.
10783 + Fixed handling of titles in links in Markdown reader, so that
10784 embedded quotation marks are now handled properly.
10785 + Fixed Markdown reader's handling of embedded brackets in links.
10786 + Fixed Markdown reader so that it only parses bracketed material
10787 as a reference link if there is actually a corresponding key.
10788 + Revised inline code parsing in Markdown reader to conform to
10789 markdown standard. Now any number of `s can begin inline code,
10790 which will end with the same number of `s. For example, to
10791 have two backticks as code, write ``` `` ```. Modified Markdown
10792 writer accordingly.
10793 + Fixed bug in text-wrapping routine in Markdown and RST writers.
10794 Now LineBreaks no longer cause wrapping problems.
10795 + Supported hexadecimal numerical entity references as well as
10796 decimal ones.
10797 + Fixed bug in Markdown reader's handling of underscores and other
10798 inline formatting markers inside reference labels: for example,
10799 in '[A_B]: /url/a_b', the material between underscores was being
10800 parsed as emphasized inlines.
10801 + Changed Markdown reader's handling of backslash escapes so that
10802 only non-alphanumeric characters can be escaped. Strict mode
10803 follows Markdown.pl in only allowing a select group of punctuation
10804 characters to be escaped.
10805 + Modified HTML reader to skip a newline following a `<br>` tag.
10806 Otherwise the newline will be treated as a space at the beginning
10807 of the next line.
10809 * Made handling of code blocks more consistent. Previously, some
10810 readers allowed trailing newlines, while others stripped them.
10811 Now, all readers strip trailing newlines in code blocks. Writers
10812 insert a newline at the end of code blocks as needed.
10814 * Modified readers to make spacing at the end of output more consistent.
10816 * Minor improvements to LaTeX reader:
10818 + '\thanks' now treated like a footnote.
10819 + Simplified parsing of LaTeX command arguments and options.
10820 commandArgs now returns a list of arguments OR options (in
10821 whatever order they appear). The brackets are included, and
10822 a new stripFirstAndLast function is provided to strip them off
10823 when needed. This fixes a problem in dealing with \newcommand
10824 and \newenvironment.
10826 * Revised RTF writer:
10828 + Default font is now Helvetica.
10829 + An '\f0' is added to each '\pard', so that font resizing works
10830 correctly.
10832 * Moved handling of "smart typography" from the writers to the Markdown
10833 and LaTeX readers. This allows great simplification of the writers
10834 and more accurate smart quotes, dashes, and ellipses. DocBook can
10835 now use `<quote>`. The '--smart' option now toggles an option in
10836 the parser state rather than a writer option. Several new kinds
10837 of inline elements have been added: Quoted, Ellipses, Apostrophe,
10838 EmDash, EnDash.
10840 * Changes in HTML writer:
10842 + Include title block in header even when title is null.
10843 + Made javascript obfuscation of emails even more obfuscatory,
10844 by combining it with entity obfuscation.
10846 * Changed default ASCIIMathML text color to black.
10848 * Test suite:
10850 + Added --strip-trailing-cr option to diff in runtests.pl, for
10851 compatibility with Windows.
10852 + Added regression tests with footnotes in quote blocks and lists.
10854 * Makefile changes:
10856 + osx-pkg target creates a Mac OS X package (directory). New osx
10857 directory contains files needed for construction of the package.
10858 + osx-dmg target creates a compressed disk image containing the package.
10859 + win-pkg target creates Windows binary package.
10860 + tarball target creates distribution source tarball.
10861 + website target generates pandoc's website automatically, including
10862 demos. New 'web' directory containts files needed for construction
10863 of the website (which will be created as the 'pandoc' subdirectory
10864 of 'web').
10865 + Makefile checks to see if we're running Windows/Cygwin; if so,
10866 a '.exe' extension is added to each executable in EXECS.
10868 * Removed all wrappers except markdown2pdf and html2markdown.
10870 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
10871 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
10872 option and disables other options.
10874 * Added code to html2markdown that tries to determine the character
10875 encoding of an HTML file, by parsing the "Content-type" meta tag.
10877 + If the encoding can't be determined, then if the content is local,
10878 the local encoding is used; if it comes from a URL, UTF-8 is used
10879 by default.
10880 + If input is from STDIN, don't try to determine character encoding.
10881 + Encoding can be specified explicitly using '-e' option.
10883 * Improved warning messages in wrappers:
10885 + Print warning if iconv not available
10886 + More user-friendly error messages in markdown2pdf, when
10887 pdflatex fails.
10889 * Code cleanup:
10891 + Renamed 'Text/Pandoc/HtmlEntities' module to
10892 'Text/Pandoc/Entities'. Also changed function names so as
10893 not to be HTML-specific.
10894 + Refactored SGML string escaping functions from HTML and Docbook
10895 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
10896 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
10897 used anywhere.
10898 + Removed splitBySpace and replaced it with a general, polymorphic
10899 splitBy function.
10900 + Refactored LaTeX reader for clarity (added isArg function).
10901 + Converted some CR's to LF's in src/ui/default/print.css.
10902 + Added license text to top of source files.
10903 + Added module data for haddock to source files.
10904 + Reformatted code for consistency.
10906 * Rewrote documentation and man pages. Split README into INSTALL
10907 and README.
10909 * Split LICENSE into COPYING and COPYRIGHT.
10911 * Removed TODO, since we now maintain ToDo on the wiki.
10913 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
10914 duplication.
10916 [ Recai Oktaş ]
10918 * Revamped build process to conform to debian standards and created
10919 a proper debian package. Closes: #391666.
10921 * Modified build process to support GHC 6.6.
10923 + The package can still be compiled using GHC 6.4.2, though because
10924 of dependencies the "make deb" target works only with GHC 6.6+.
10925 + The script 'cabalize' is used to create an appropriate
10926 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
10927 Cabal versions.
10929 * Refactored template processing (fillTemplates.pl).
10931 * Modified wrapper scripts to make them more robust and portable.
10932 To avoid code duplication and ensure consistency, wrappers are
10933 generated via a templating system from templates in src/wrappers.
10935 + Wrappers now accept multiple filenames, when appropriate.
10936 + Spaces and tabs allowed in filenames.
10937 + getopts shell builtin is used for portable option parsing.
10938 + Improved html2markdown's web grabber code, making it more robust,
10939 configurable and verbose. Added '-e', '-g' options.
10941 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
10943pandoc (0.2) unstable; urgency=low
10945 * Fixed unicode/utf-8 translation
10947 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
10949pandoc (0.1) unstable; urgency=low
10951 * Initial creation of debian package
10953 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400