@@ -0,0 +1,5913 @@
1+pandoc (1.12)
2+
3+ [new features]
4+
5+ * Much more flexible metadata, including arbitrary fields and structured
6+ values. Metadata can be specified flexibly in pandoc markdown using
7+ YAML metadata blocks, which may occur anywhere in the document:
8+
9+ ---
10+ title: Here is my title.
11+ abstract: |
12+ This is the abstract.
13+
14+ 1. It can contain
15+ 2. block content
16+ and *inline markup*
17+
18+ tags: [cat, dog, animal]
19+ ...
20+
21+ Metadata fields automatically populate template variables.
22+
23+ * Added `opml` (OPML) as input and output format. The `_note` attribute,
24+ used in OmniOutliner and supported by multimarkdown, is supported.
25+ We treat the contents as markdown blocks under a section header.
26+
27+ * Added `haddock` (Haddock markup) as input format (David Lazar).
28+
29+ * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
30+ (Thanks to Jamie F. Olson for the initial patch.)
31+ Nested vertical stacks are used for hierarchical structure.
32+ Results for more than one level of nesting may be odd.
33+
34+ * Custom writers can now be written in lua.
35+
36+ pandoc -t data/sample.lua
37+
38+ will load the script sample.lua and use it as a custom writer.
39+ (For a sample, do `pandoc --print-default-data-file sample.lua`.)
40+ Note that pandoc embeds a lua interpreter, so lua need not be
41+ installed separately.
42+
43+ * New `--filter/-F` option to make it easier to run "filters"
44+ (Pandoc AST transformations that operate on JSON serializations).
45+ Filters are always passed the name of the output format, so their
46+ behavior can be tailored to it. The repository
47+ <https://github.com/jgm/pandocfilters> contains
48+ a python module for writing pandoc filters in python, with
49+ a number of examples.
50+
51+ * Added `--metadata/-M` option.
52+ This is like `--variable/-V`, but actually adds to metadata, not
53+ just variables.
54+
55+ * Added `--print-default-data-file` option, which allows printing
56+ of any of pandoc's data files. (For example,
57+ `pandoc --print-default-data-file reference.odt` will print
58+ `reference.odt`.)
59+
60+ * Added syntax for "pauses" in slide shows:
61+
62+ This gives
63+
64+ . . .
65+
66+ me pause.
67+
68+ * New markdown extensions:
69+
70+ + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
71+ rather than being treated as hard line breaks or spaces. This is useful
72+ for some East Asian languages, where spaces aren't used between words,
73+ but text is separated into lines for readability.
74+ + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
75+ + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
76+ only. (Default for `markdown_github`.) (#807)
77+ + `lists_without_preceding_blankline`: Allow lists to start without
78+ preceding blank space. (Default for `markdown_github`.) (#972)
79+
80+ [behavior changes]
81+
82+ * `--toc-level` no longer implies `--toc`.
83+ Reason: EPUB users who don't want a visible TOC may still want
84+ to set the TOC level for in the book navigation.
85+
86+ * `--help` now prints in and out formats in alphabetical order, and
87+ says something about PDF output (#720).
88+
89+ * `--self-contained` now returns less verbose output (telling you
90+ which URLs it is fetching, but not giving the full header). In
91+ addition, there are better error messages when fetching a URL fails.
92+
93+ * Citation support is no longer baked in to core pandoc. Users who
94+ need citations will need to install and use a separate filter
95+ (`--filter pandoc-citeproc`). This filter will take `bibliography`,
96+ `csl`, and `citation-abbreviations` from the metadata, though it
97+ may still be specified on the command line as before.
98+
99+ * A `Cite` element is now created in parsing markdown whether or not
100+ there is a matching reference.
101+
102+ * The `pandoc-citeproc` script will put the bibliography at the
103+ end of the document, as before. However, it will be put inside a `Div`
104+ element with class "references", allowing users some control
105+ over the styling of references. A final header, if any, will
106+ be included in the `Div`.
107+
108+ * The markdown writer will not print a bibliography if the
109+ `citations` extension is enabled. (If the citations are formatted
110+ as markdown citations, it is redundant to have a bibliography,
111+ since one will be generated automatically.)
112+
113+ * Previously we used to store the directory of the first input file,
114+ even if it was local, and used this as a base directory for finding
115+ images in ODT, EPUB, Docx, and PDF. This has been confusing to many
116+ users. So we now look for images relative to the current
117+ working directory, even if the first file argument is in another
118+ directory. Note that this change may break some existing workflows.
119+ If you have been assuming that relative links will be interpreted
120+ relative to the directory of the first file argument, you'll need
121+ to make that the current directory before running pandoc. (#942)
122+
123+ * Better error reporting in some readers, due to changes in `readWith`:
124+ the line in which the error occured is printed, with a caret pointing
125+ to the column.
126+
127+ * All slide formats now support incremental slide view for definition lists.
128+
129+ * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
130+ Parse `:<math>...</math>` as display math. These notations are used with
131+ the MathJax MediaWiki extension.
132+
133+ * All writers: template variables are set automatically from metadata
134+ fields. However, variables specified on the command line with
135+ `--variable` will completely shadow metadata fields.
136+
137+ * If `--variable` is used to set many variables with the same name,
138+ a list is created.
139+
140+ * Man writer: The `title`, `section`, `header`, and `footer` can now
141+ all be set individually in metadata. The `description` variable has been
142+ removed. Quotes have been added so that spaces are allowed in the
143+ title. If you have a title that begins
144+
145+ COMMAND(1) footer here | header here
146+
147+ pandoc will still parse it into a title, section, header, and
148+ footer. But you can also specify these elements explicitly (#885).
149+
150+ * Markdown reader
151+
152+ + Added support for YAML metadata blocks, which can come anywhere
153+ in the document (not just at the beginning). A document can contain
154+ multiple YAML metadata blocks.
155+ + HTML span and div tags are parsed as pandoc Span and Div elements.
156+
157+ * Markdown writer
158+
159+ + Allow simple tables to be printed as grid tables,
160+ if other table options are disabled. This means you can do
161+ `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
162+ and all tables will render as grid tables.
163+ + Support YAML title block (render fields in alphabetical order
164+ to make output predictable).
165+
166+ [API changes]
167+
168+ * `Meta` in `Text.Pandoc.Definition` has been changed to allow
169+ structured metadata. (Note: existing code that pattern-matches
170+ on `Meta` will have to be revised.) Metadata can now contain
171+ indefinitely many fields, with content that can be a string,
172+ a Boolean, a list of `Inline` elements, a list of `Block`
173+ elements, or a map or list of these.
174+
175+ * A new generic block container (`Div`) has been added to `Block`,
176+ and a generic inline container (`Span`) has been added to `Inline`.
177+ These can take attributes. They will render in HTML, Textile,
178+ MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
179+ extension) as HTML `<div>` and `<span>` elements; in other formats
180+ they will simply pass through their contents. But they can be
181+ targeted by scripts.
182+
183+ * `Format` is now a newtype, not an alias for String.
184+ Equality comparisons are case-insensitive.
185+
186+ * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
187+ functions that are much faster than the SYB functions from
188+ `Text.Pandoc.Generic`. These functions are now used where possible
189+ in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
190+ match the generic traversals `bottomUp` and `queryWith`.)
191+
192+ * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
193+ instances for the basic pandoc types. They use GHC generics and
194+ should be faster than the old JSON serialization using
195+ `Data.Aeson.Generic`.
196+
197+ * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
198+ This is a souped-up version of `readProcessWithErrorcode` that
199+ uses lazy bytestrings instead of strings and allows setting
200+ environment variables. (Used in `Text.Pandoc.PDF`.)
201+
202+ * New module `Text.Pandoc.Readers.OPML`.
203+
204+ * New module `Text.Pandoc.Writers.OPML`.
205+
206+ * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
207+ This is based on Haddock's own lexer/parser.
208+
209+ * New module `Text.Pandoc.Writers.Custom`.
210+
211+ * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
212+ Either, for better error handling.
213+
214+ * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
215+
216+ * Removed `stripTags` from `Text.Pandoc.XML`.
217+
218+ * `Text.Pandoc.Templates`:
219+
220+ + Simplified `Template` type to a newtype.
221+ + Removed `Empty`.
222+ + Changed type of `renderTemplate`: it now takes a JSON context
223+ and a compiled template.
224+ + Export `compileTemplate`.
225+ + Export `renderTemplate'` that takes a string instead of a compiled
226+ template.
227+ + Export `varListToJSON`.
228+
229+ * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
230+
231+ * `Text.Pandoc`:
232+
233+ + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
234+ + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
235+ `Text.Pandoc.JSON` should be used instead. (Compiling against
236+ pandoc-types instead of pandoc will also produce smaller executables.)
237+ * Removed the deprecated `jsonFilter` function.
238+ + Added `readJSON`, `writeJSON` to the API (#817).
239+
240+ * `Text.Pandoc.Options`:
241+
242+ + Added `Ext_lists_without_preceding_blankline`,
243+ `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
244+ `Ext_yaml_metadataBlock` to `Extension`.
245+ + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
246+ type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
247+ first command-line argument is an absolute URL. (So, relative links
248+ will be resolved in relation to the first page.) Otherwise, 'Nothing'.
249+ + All bibliography-related fields have been removed from
250+ `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
251+ `readerReferences`, `readerCitationStyle`.
252+
253+ * The `Text.Pandoc.Biblio` module has been removed. Users of the
254+ pandoc library who want citation support will need to use
255+ `Text.CSL.Pandoc` from `pandoc-citations`.
256+
257+
258+ [bug fixes]
259+
260+ * In markdown, don't autolink a bare URI that is followed by `</a>`
261+ (#937).
262+
263+ * `Text.Pandoc.Shared`
264+
265+ + `openURL` now follows redirects (#701), properly handles `data:`
266+ URIs, and prints diagnostic output to stderr rather than stdout.
267+ + `readDefaultDataFile`: normalize the paths. This fixes bugs in
268+ `--self-contained` on pandoc compiled with `embed_data_files` (#833).
269+ + Fixed `readDefaultDataFile` so it works on Windows.
270+ + Better error messages for `readDefaultDataFile`. Instead of
271+ listing the last path tried, which can confuse people who are
272+ using `--self-contained`, so now we just list the data file name.
273+ + URL-escape pipe characters. Even though these are legal, `Network.URI`
274+ doesn't regard them as legal in URLs. So we escape them first (#535).
275+
276+ * Mathjax in HTML slide shows: include explicit "Typeset" call.
277+ This seems to be needed for some formats (e.g. slideous) and won't
278+ hurt in others (#966).
279+
280+ * `Text.Pandoc.PDF`
281+
282+ + On Windows, create temdir in working directory, since the system
283+ temp directory path may contain tildes, which can cause
284+ problems in LaTeX (#777).
285+ + Put temporary output directory in `TEXINPUTS` (see #917).
286+ + `makePDF` tries to download images that are not found locally,
287+ if the first argument is a URL (#917).
288+ + If compiling with `pdflatex` yields an encoding error, offer
289+ the suggestion to use `--latex-engine=xelatex`.
290+
291+ * Produce automatic header identifiers in parsing textile, RST,
292+ and LaTeX, unless `auto_identifiers` extension is disabled (#967).
293+
294+ * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
295+ before treating as a filename. This fixes `--self-contained` when used
296+ with CSS files that include web fonts using the method described here:
297+ <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
298+ (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
299+
300+ * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
301+ percent-encoding, or a `+` character, as final punctuation.
302+
303+ * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
304+ EPS images properly sized on conversion to Word.
305+
306+ * Slidy: Use slidy.js rather than slidy.js.gz.
307+ Reason: some browsers have trouble with the gzipped js file,
308+ at least on the local file system (#795).
309+
310+ * Markdown reader
311+
312+ + Properly handle blank line at beginning of input (#882).
313+ + Fixed bug in unmatched reference links. The input
314+ `[*infile*] [*outfile*]` was getting improperly parsed:
315+ "infile" was emphasized, but "*outfile*" was literal (#883).
316+ + Allow internal `+` in citation identifiers (#856).
317+ + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
318+ + Do not generate blank title, author, or date metadata elements.
319+ Leave these out entirely if they aren't present.
320+ + Allow backtick code blocks not to be preceded by blank line (#975).
321+
322+ * Textile reader:
323+
324+ + Correctly handle entities.
325+ + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
326+ in code blocks, rather than printing them verbatim. Parse attributes
327+ on `<pre>` tag for code blocks.
328+
329+ * HTML reader: Handle non-simple tables (#893). Column widths are read from
330+ `col` tags if present, otherwise divided equally.
331+
332+ * LaTeX reader
333+
334+ + Support alltt environment (#892).
335+ + Support `\textasciitilde`, `\textasciicircum` (#810).
336+ + Treat `\textsl` as emphasized text reader (#850).
337+ + Skip positional options after `\begin{figure}`.
338+ + Support `\v{}` for hacek (#926).
339+ + Don't add spurious ", " to citation suffixes.
340+ This is added when needed in pandoc-citeproc.
341+ + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
342+ + Improved support for accented characters (thanks to Scott Morrison).
343+ + Parse label after section command and set id (#951).
344+
345+ * RST reader:
346+
347+ + Don't insert paragraphs where docutils doesn't.
348+ `rst2html` doesn't add `<p>` tags to list items (even when they are
349+ separated by blank lines) unless there are multiple paragraphs in the
350+ list. This commit changes the RST reader to conform more closely to
351+ what docutils does (#880).
352+ + Improved metadata. Treat initial field list as metadata when
353+ standalone specified. Previously ALL fields "title", "author",
354+ "date" in field lists were treated as metadata, even if not at
355+ the beginning. Use `subtitle` metadata field for subtitle.
356+ + Fixed 'authors' metadata parsing in reST. Semicolons separate
357+ different authors.
358+
359+ * MediaWiki reader
360+
361+ + Allow space before table rows.
362+ + Fixed regression for `<ref>URL</ref>`.
363+ `<` is no longer allowed in URLs, according to the uri parser
364+ in `Text.Pandoc.Parsing`. Added a test case.
365+ + Correctly handle indented preformatted text without preceding
366+ or following blank line.
367+ + Fixed `|` links inside table cells. Improved attribute parsing.
368+ + Skip attributes on table rows. Previously we just crashed if
369+ rows had attributes, now we ignore them.
370+ + Ignore attributes on headers.
371+ + Allow `Image:` for images (#971).
372+ + Parse an image with caption in a paragraph by itself as a figure.
373+
374+ * LaTeX writer
375+
376+ + Don't use ligatures in escaping inline code.
377+ + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
378+ wherein notes were numbered incorrectly in tables (#827).
379+ + Always create labels for sections. Previously the labels were only
380+ created when there were links to the section in the document (#871).
381+ + Stop escaping `|` in LaTeX math.
382+ This caused problems with array environments (#891).
383+ + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
384+ `\` will cause major problems if unescaped.
385+ + Write id for code block to label attribute in LaTeX when listings
386+ is used (thanks to Florian Eitel).
387+ + Scale LaTeX tables so they don't exceed columnwidth.
388+ + Avoid problem with footnotes in unnumbered headers (#940).
389+
390+ * Beamer writer: when creating beamer slides, add `allowframebreaks` option
391+ to the slide if it is one of the header classes. It is recommended
392+ that your bibliography slide have this attribute:
393+
394+ # References {.allowframebreaks}
395+
396+ This causes multiple slides to be created if necessary, depending
397+ on the length of the bibliography.
398+
399+ * ConTeXt writer: Properly handle tables without captions. The old output
400+ only worked in MkII. This should work in MkIV as well (#837).
401+
402+ * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
403+
404+ * HTML writer:
405+
406+ + Fixed `--no-highlight` (Alexander Kondratskiy).
407+ + Don't convert to lowercase in email obfuscation (#839).
408+ + Ensure proper escaping in `<title>` and `<meta>` fields.
409+
410+ * AsciiDoc writer:
411+
412+ + Support `--atx-headers` (Max Rydahl Andersen).
413+ + Don't print empty identifier blocks `([[]])` on headers (Max
414+ Rydahl Andersen).
415+
416+ * ODT writer:
417+
418+ + Fixing wrong numbered-list indentation in open document format
419+ (Alexander Kondratskiy) (#369).
420+ + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
421+ + Minor changes for ODF 1.2 conformance (#939). We leave the
422+ nonconforming `contextual-spacing` attribute, which is provided by
423+ LibreOffice itself and seems well supported.
424+
425+ * Docx writer:
426+
427+ + Fixed rendering of display math in lists.
428+ In 1.11 and 1.11.1, display math in lists rendered as a new list
429+ item. Now it always appears centered, just as outside of lists,
430+ and in proper display math style, no matter how far indented the
431+ containing list item is (#784).
432+ + Use `w:br` with `w:type` `textWrapping` for linebreaks.
433+ Previously we used `w:cr` (#873).
434+ + Use Compact style for Plain block elements, to
435+ differentiate between tight and loose lists (#775).
436+ + Ignore most components of `reference.docx`.
437+ We take the `word/styles.xml`, `docProps/app.xml`,
438+ `word/theme/theme1.xml`, and `word/fontTable.xml` from
439+ `reference.docx`, ignoring everything else. This should help
440+ with the corruption problems caused when different versions of
441+ Word resave the reference.docx and reorganize things.
442+ + Made `--no-highlight` work properly.
443+
444+ * EPUB writer
445+
446+ + Don't add `dc:creator` tags if present in EPUB metadata.
447+ + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
448+ + Don't put blank title page in reading sequence.
449+ Set `linear="no"` if no title block. Addresses #797.
450+ + Download webtex images and include as data URLs.
451+ This allows you to use `--webtex` in creating EPUBs.
452+ Math with `--webtex` is automatically made self-contained.
453+ + In `data/epub.css`, removed highlighting styles (which
454+ are no longer needed, since styles are added by the HTML
455+ writer according to `--highlighting-style`). Simplified
456+ margin fields.
457+ + If resource not found, skip it, as in Docx writer (#916).
458+
459+ * RTF writer:
460+
461+ + Properly handle characters above the 0000-FFFF range.
462+ Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
463+ + Fixed regression with RTF table of contents.
464+ + Only autolink absolute URIs. This fixes a regression, #830.
465+
466+ * Markdown writer:
467+
468+ + Only autolink absolute URIs. This fixes a regression, #830.
469+ + Don't wrap attributes in fenced code blocks.
470+ + Write full metadata in MMD style title blocks.
471+ + Put multiple authors on separate lines in pandoc titleblock.
472+ Also, don't wrap long author entries, as new lines get treated
473+ as new authors.
474+
475+ * `Text.Pandoc.Templates`:
476+
477+ + Fixed bug retrieving default template for markdown variants.
478+ + Templates can now contain "record lookups" in variables;
479+ for example, `author.institution` will retrieve the `institution`
480+ field of the `author` variable.
481+ + More consistent behavior of `$for$`. When `foo` is not a list,
482+ `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
483+ So if `foo` resolves to "", no output should be produced.
484+ See pandoc-templates#39.
485+
486+ * Citation processing improvements (now part of pandoc-citeproc):
487+
488+ + Fixed `endWithPunct` The new version correctly sees a sentence
489+ ending in '.)' as ending with punctuation. This fixes a bug which
490+ led such sentences to receive an extra period at the end: '.).'.
491+ Thanks to Steve Petersen for reporting.
492+ + Don't interfere with Notes that aren't citation notes.
493+ This fixes a bug in which notes not generated from citations were
494+ being altered (e.g. first letter capitalized) (#898).
495+ + Only capitalize footnote citations when they have a prefix.
496+ + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
497+ inserted before it before passing to citeproc-hs, so that bare numbers
498+ are treated as page numbers by default. A suffix not beginning with
499+ punctuation has a space added at the beginning (rather than a comma and
500+ space, as was done before for not-author-in-text citations).
501+ The result is that `\citep[23]{item1}` in LaTeX will be interpreted
502+ properly, with '23' treated as a locator of type 'page'.
503+ + Many improvements to citation rendering, due to fixes in citeproc-hs
504+ (thanks to Andrea Rossato).
505+ + Warnings are issued for undefined citations, which are rendered
506+ as `???`.
507+ + Fixed hanging behavior when locale files cannot be found.
508+
509+ [template changes]
510+
511+ * DocBook: Use DocBook 4.5 doctype.
512+
513+ * Org: '#+TITLE:' is inserted before the title.
514+ Previously the writer did this.
515+
516+ * LaTeX: Changes to make mathfont work with xelatex.
517+ We need the mathspec library, not just fontspec, for this.
518+ We also need to set options for setmathfont (#734).
519+
520+ * LaTeX: Use `tex-ansi` mapping for `monofont`.
521+ This ensures that straight quotes appear as straight, rather than
522+ being treated as curly. See #889.
523+
524+ * Made `\includegraphics` more flexible in LaTeX template.
525+ Now it can be used with options, if needed. Thanks to Bernhard Weichel.
526+
527+ * LaTeX/Beamer: Added `classoption` variable.
528+ This is intended for class options like `oneside`; it may
529+ be repeated with different options. (Thanks to Oliver Matthews.)
530+
531+ * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
532+
533+ * LaTeX: Added `biblio-style` variable (#920).
534+
535+ * DZSlides: title attribute on title section.
536+
537+ * HTML5: add meta tag to allow scaling by user (Erik Evenson)
538+
539+ [under-the-hood improvements]
540+
541+ * Markdown reader:Improved strong/emph parsing, using the strategy of
542+ <https://github.com/jgm/Markdown>. The new parsing algorithm requires
543+ no backtracking, and no keeping track of nesting levels. It will give
544+ different results in some edge cases, but these should not affect normal
545+ uses.
546+
547+ * Added `Text.Pandoc.Compat.Monoid`.
548+ This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
549+ doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
550+
551+ * Added `Text.Pandoc.Compat.TagSoupEntity`.
552+ This allows pandoc to compile with `tagsoup` 0.13.x.
553+ Thanks to Dirk Ullrich for the patch.
554+
555+ * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
556+ `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
557+ handle simple math in bibliography fields.)
558+
559+ * Added `Text.Pandoc.Writers.Shared` for shared functions used
560+ only in writers. `metaToJSON` is used in writers to create a
561+ JSON object for use in the templates from the pandoc metadata
562+ and variables. `getField`, `setField`, and `defField` are
563+ for working with JSON template contexts.
564+
565+ * Added `Text.Pandoc.Asciify` utility module.
566+ This exports functions to create ASCII-only versions of identifiers.
567+
568+ * `Text.Pandoc.Parsing`
569+
570+ + Generalized state type on `readWith` (API change).
571+ + Specialize readWith to `String` input. (API change).
572+ + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
573+ with `stateMeta` and `stateMeta'`.
574+
575+ * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
576+ bytestrings seemed to cause problems using pandoc on 64-bit Windows
577+ 7/8 (#874).
578+
579+ * Factored out `registerHeader` from markdown reader, added to
580+ `Text.Pandoc.Parsing`.
581+
582+ * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
583+ Reason: < 0.5 does not provide a monoid instance for Attribute,
584+ which is now needed by the HTML writer (#803).
585+
586+ * Added `http-conduit` flag, which allows fetching https resources.
587+ It also brings in a large number of dependencies (`http-conduit`
588+ and its dependencies), which is why for now it is an optional flag
589+ (#820).
590+
591+ * Added CONTRIBUTING.md.
592+
593+ * Improved INSTALL instructions.
594+
595+ * `make-windows-installer.bat`: Removed explicit paths for executables.
596+
597+ * `aeson` is now used instead of `json` for JSON.
598+
599+ * Set default stack size to 16M. This is needed for some large
600+ conversions, esp. if pandoc is compiled with 64-bit ghc.
601+
602+ * Various small documentation improvements.
603+ Thanks to achalddave and drothlis for patches.
604+
605+ * Removed comment that chokes recent versions of CPP (#933).
606+
607+ * Removed support for GHC version < 7.2, since pandoc-types now
608+ requires at least GHC 7.2 for GHC generics.
609+
610+
611+pandoc (1.11.1)
612+
613+ * Markdown reader:
614+
615+ + Fixed regression in which parentheses were lost in link URLs.
616+ Added tests. Closes #786.
617+ + Better handling of unmatched double quotes in `--smart` mode.
618+ These occur frequently in fiction, since it is customary not to
619+ close quotes in dialogue if the speaker does not change between
620+ paragraphs. The unmatched quotes now get turned into literal
621+ left double quotes. (No `Quoted` inline is generated, however.)
622+ Closes #99 (again).
623+
624+ * HTML writer: Fixed numbering mismatch between TOC and sections.
625+ `--number-offset` now affects TOC numbering as well
626+ as section numbering, as it should have all along. Closes #789.
627+
628+ * Markdown writer: Reverted 1.11 change that caused citations to be rendered
629+ as markdown citations, even if `--bibliography` was specified, unless
630+ `citation` extension is disabled. Now, formatted citations are always
631+ printed if `--bibliography` was specified. If you want to reformat
632+ markdown keeping pandoc markdown citations intact, don't use
633+ `--bibliography`. Note that citations parsed from LaTeX documents will
634+ be rendered as pandoc markdown citations when `--bibliography` is not
635+ specified.
636+
637+ * ODT writer: Fixed regression leading to corrupt ODTs.
638+ This was due to a change in the `Show` instance for
639+ `Text.Pandoc.Pretty.Doc`. Closes #780.
640+
641+ * Fixed spacing bugs involving code block attributes in
642+ RST reader and Markdown writer. Closes #763.
643+
644+ * Windows package: Various improvements due to Fyodor Sheremetyev.
645+
646+ + Automatically set installation path (Program Files or Local App Data).
647+ + Set system PATH environment variable when installing for all users.
648+ + Pandoc can installed for all users using the following command.
649+ `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
650+
651+ * Bumped QuickCheck version bound.
652+
653+pandoc (1.11)
654+
655+ * Added `--number-offset` option. (See README for description.)
656+
657+ * Added `--default-image-extension` option. (See README for description.)
658+
659+ * `--number-sections` behavior change: headers with class `unnumbered`
660+ will not be numbered.
661+
662+ * `--version` now reports the default data directory.
663+
664+ * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
665+
666+ * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
667+
668+ * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
669+ a field for `Attr` rather than just `String`. (API change.)
670+
671+ * Added `markdown_github` as input format. This was an accidental
672+ omission in 1.10.
673+
674+ * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
675+ change.)
676+
677+ * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
678+
679+ * Beamer template:
680+
681+ + Fixed captions with longtable. Thanks to Joost Kremers.
682+ + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
683+
684+ * LaTeX template:
685+
686+ + Load microtype after fonts. Microtype needs to know
687+ what fonts are being used. Thanks to dfc for the patch.
688+ + Set `secnumdepth` to 5 if `--number-sections` specified.
689+ This yields behavior equivalent to the other writers, numbering
690+ level 4 and 5 headers too. Closes #753.
691+
692+ * HTML reader:
693+
694+ + Handle `<colgroup>` tag.
695+ + Preserve all header attributes.
696+
697+ * LaTeX reader:
698+
699+ + Parse `\hrule` as `HorizontalRule`. Closes #746.
700+ + Parse starred variants of `\section` etc. as headers with
701+ attribute `unnumbered`.
702+ + Read optional attributes in `lstlisting` and `Verbatim` environments.
703+ We convert these to pandoc standard names, e.g. `numberLines`
704+ for `numbers=left`, `startFrom=100` from `firstnumber=100`.
705+ + Handle language attribute for lstlistings.
706+ + Better support for Verbatim and minted environments. Closes #763.
707+
708+ * Markdown reader:
709+
710+ + `-` in an attribute context = `.unnumbered`. The point of this
711+ is to provide a way to specify unnumbered headers in non-English
712+ documents.
713+ + Fixed bug parsing key/value attributes. Parsing failed if you
714+ had an unquoted attribute immediately before the final '}'.
715+ + Make backslash escape work in attributes.
716+ + Fix title block parsing. Now if `mmd_title_blocks` is specified,
717+ pandoc will parse a MMD title block if it sees one, even if
718+ `pandoc_title_blocks` is enabled.
719+ + Refactoring: `litChar` now includes entities, so we don't need
720+ to use `fromEntities` e.g. on titles.
721+ + Allow spaces around borders in pipe tables. Closes #772.
722+ + Allow all punctuation in angle-bracket autolinks. Previously
723+ things like `----` were disallowed, because the uri parser
724+ treated them as trailing punctuation. Closes #768.
725+ + Make `implicit_header_references` work properly when
726+ headers are given explicit identifiers.
727+ + Check for tables before line blocks. Otherwise some pipe
728+ tables get treated as line blocks.
729+ + Allow `&` in emails (for entities).
730+ + Properly handle entities in titles and links. A markdown link
731+ `<http://göogle.com>` should be a link to `http://göogle.com`.
732+ Closes #723.
733+
734+ * Textile reader:
735+
736+ + Handle attributes on headers.
737+
738+ * LaTeX reader:
739+
740+ + Add `fig:` as title for images with captions.
741+ This is needed for them to be rendered as figures. Closes #766.
742+ + Never emit an empty paragraph. See #761.
743+ + Handle `\caption` for images in figures. Closes #766.
744+ + Parse `\section*`, etc. as unnumbered sections.
745+
746+ * HTML writer:
747+
748+ + Support header attributes. The attributes go on
749+ the enclosing `section` or `div` tag if `--section-divs` is specified.
750+ + Fixed a regression (only now noticed) in html+lhs output.
751+ Previously the bird tracks were being omitted.
752+
753+ * LaTeX writer:
754+
755+ + Omit lists with no items to avoid LaTeX errors.
756+ + Support line numbering with `--listings`.
757+ If `numberLines` class is present, we add `numbers=left`;
758+ if `startFrom` is present, we add `firstnumber=`. (#763)
759+
760+ * ConTeXt writer:
761+
762+ + Removed `\placecontent`. This produced a duplicate toc,
763+ in conjunction with `\placelist`.
764+ + Use `\title`, `\subject` etc. for headers with
765+ `unnumbered` class.
766+
767+ * Textile writer:
768+
769+ + Support header attributes.
770+
771+ * Markdown writer:
772+
773+ + Use grid tables when needed, and if enabled. Closes #740.
774+ + Render citations as pandoc-markdown citations.
775+ Previously citations were rendered as citeproc-formatted citations
776+ by default. Now we render them as pandoc citations, e.g. `[@item1]`,
777+ unless the `citations` extension is disabled.
778+ If you still want formatted citations in your markdown output,
779+ use `pandoc -t markdown-citations`.
780+
781+ * RST writer:
782+
783+ + Support `:number-lines:` in code blocks.
784+
785+ * Docx writer:
786+
787+ + Better treatment of display math. Display math inside a
788+ paragraph is now put in a separate paragraph, so it will render
789+ properly (centered and without extra blank lines around it).
790+ Partially addresses #742.
791+ + Content types and document rels xml files are now created from
792+ scratch, rather than being taken over from `reference.docx`.
793+ This fixes problems that arise when you edit the `reference.docx`
794+ with Word.
795+ + We also now encode mime types for each individual image rather
796+ than using defaults. This should allow us to handle a wider
797+ range of image types (including PDF). Closes #414.
798+ + Changed style names in `reference docx`.
799+ `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
800+ The old names got changed by Word when the `reference.docx` was
801+ edited. Closes #414.
802+
803+ * EPUB writer:
804+
805+ + Fix section numbering. Previously the numbering restarted from 1
806+ in each chapter (with `--number-sections`), though the numbers in
807+ the table of contents were correct.
808+ + Headers with "unnumbered" attribute are not numbered. (Nor do they
809+ cause an increment in running numbering.) Section numbers now work
810+ properly, even when there is material before the first numbered section.
811+ + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
812+ but `linear` is set to `no` unless the `--toc` option is specified.
813+ Include `<guide>` element in OPF. This should allow the TOC to
814+ be useable in Kindles when converted with kindlegen. Closes #773.
815+
816+ * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
817+ This dramatically reduces the speed penalty that comes from enabling the
818+ `autolink_bare_uris` extension. The penalty is still substantial (in one
819+ test, from 0.33s to 0.44s), but nowhere near what it used to be.
820+ The RST reader is also much faster now, as it autodetects URIs.
821+
822+ * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
823+ with class "unnumbered". Unnumbered sections get `[]` for their
824+ section number.
825+
826+ * `Text.Pandoc.Pretty`:
827+
828+ + Fixed `chomp` so it works inside `Prefixed` elements.
829+ + Changed `Show` instance so it is better for debugging.
830+
831+ * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
832+
833+ * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
834+
835+ * Windows installer improvements:
836+
837+ + The installer is now signed with a certificate (thanks to
838+ Fyodor Sheremetyev).
839+ + WiX is used instead of InnoSetup. The installer is now a
840+ standard msi file.
841+ + The version number is now auto-detected, and need not be
842+ updated separately.
843+
844+ * OSX installer improvements:
845+
846+ + The package and pandoc executable are now signed with a
847+ certificate (thanks to Fyodor Sheremetyev).
848+ + RTF version of license is used.
849+ + Use full path for sysctl in `InstallationCheck` script (jonahbull).
850+ Closes #580.
851+
852+ * Converted COPYING to markdown.
853+
854+ * pandoc.cabal: Require latest versions of highlighting-kate,
855+ texmath, citeproc-hs, zip-archive.
856+
857+pandoc (1.10.1)
858+
859+ * Markdown reader: various optimizations, leading to a
860+ significant performance boost.
861+
862+ * RST reader: Allow anonymous form of inline links:
863+ `` `hello <url>`__ `` Closes #724.
864+
865+ * Mediawiki reader: Don't require newlines after tables.
866+ Thanks to jrunningen for the patch. Closes #733.
867+
868+ * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
869+ when output is LaTeX, and applied when it is another format.
870+ Partially addresses #730.
871+
872+ * Markdown and RST readers: Added parser to `block` that skips blank
873+ lines. This fixes a subtle regression involving grid tables with
874+ empty cells. Also added test for grid table with empty cells.
875+ Closes #732.
876+
877+ * RST writer: Use `.. code:: language` for code blocks with language.
878+ Closes #721.
879+
880+ * DocBook writer: Fixed output for hard line breaks, adding a newline
881+ between `<literallayout>` tags.
882+
883+ * Markdown writer: Use an autolink when link text matches url.
884+ Previously we also checked for a null title, but this
885+ test fails for links produced by citeproc-hs in bibliographies.
886+ So, if the link has a title, it will be lost on conversion
887+ to an autolink, but that seems okay.
888+
889+ * Markdown writer: Set title, author, date variables as before.
890+ These are no longer used in the default template, since we use
891+ titleblock, but we set them anyway for those who use custom templates.
892+
893+ * LaTeX writer: Avoid extra space at start/end of table cell.
894+ Thanks to Nick Bart for the suggestion of using @{}.
895+
896+ * `Text.Pandoc.Parsing`:
897+
898+ + More efficient version of `anyLine`.
899+ + Type of `macro` has changed; the parser now returns `Blocks`
900+ instead of `Block`.
901+
902+ * Relaxed old-time version bound, allowing 1.0.*.
903+
904+ * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
905+ should create a symlink as described in the README.
906+
907+pandoc (1.10.0.5)
908+
909+ * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
910+ `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
911+ Thanks to Daniel Miot for noticing the bug and suggesting the fix.
912+
913+ * Markdown reader: Fixed bug with headerless grid tables.
914+ The 1.10 code assumed that each table header cell contains exactly one
915+ block. That failed for headerless tables (0) and also for tables with
916+ multiple blocks in a header cell. The code is fixed and tests provided.
917+ Thanks to Andrew Lee for pointing out the bug.
918+
919+ * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
920+
921+ + Tilde code fences can again take a bare language string
922+ (`~~~ haskell`), not just curly-bracketed attributes
923+ (`~~~ {.haskell}`).
924+ + Backtick code blocks can take the curly-bracketed attributes.
925+ + Backtick code blocks don't *require* a language.
926+ + Consolidated code for the two kinds of fenced code blocks.
927+
928+ * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
929+
930+ * Markdown writer: Use proportional font for email autolinks with
931+ obfuscation. Closes #714.
932+
933+ * Corrected name of `blank_before_blockquote` in README. Closes #718.
934+
935+ * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
936+ The bug prevented an autolink at the end of a string (e.g.
937+ at the end of a line block line) from counting as a link. Closes #711.
938+
939+ * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
940+ This should work on Windows, unlike the TH solution with
941+ file-embed.
942+
943+ * Eliminated use of TH in test suite.
944+
945+ * Added `Text.Pandoc.Data` (non-exported) to hold the association
946+ list of embedded data files, if the `embed_data_files` flag is selected.
947+ This isolates the code that needs special treatment with file-embed or
948+ `hsb2hs`.
949+
950+ * Changes to `make-windows-installer.bat`.
951+
952+ + Exit batch file if any of the cabal-dev installs fail.
953+ + There's no longer any need to reinstall `highlighting-kate`.
954+ + Don't start with a `cabal update`; leave that to the user.
955+ + Force reinstall of pandoc.
956+
957+ * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
958+ Jens Petersen.
959+
960+pandoc (1.10.0.4)
961+
962+ * Fixed bug with escaped % in LaTeX reader. Closes #710.
963+
964+pandoc (1.10.0.3)
965+
966+ * Added further missing fb2 tests to cabal file.
967+
968+pandoc (1.10.0.2)
969+
970+ * Added fb2 tests to cabal file's extra-source-files.
971+
972+pandoc (1.10.0.1)
973+
974+ * Bump version bounds on test-framework packages.
975+
976+pandoc (1.10)
977+
978+ [new features]
979+
980+ * New input formats: `mediawiki` (MediaWiki markup).
981+
982+ * New output formats: `epub3` (EPUB v3 with MathML),
983+ `fb2` (FictionBook2 ebooks).
984+
985+ * New `--toc-depth` option, specifying how many levels of
986+ headers to include in a table of contents.
987+
988+ * New `--epub-chapter-level` option, specifying the header
989+ level at which to divide EPUBs into separate files.
990+ Note that this normally affects only performance, not the
991+ visual presentation of the EPUB in a reader.
992+
993+ * Removed the `--strict` option. Instead of using `--strict`,
994+ one can now use the format name `markdown_strict` for either input
995+ or output. This gives more fine-grained control that `--strict`
996+ did, allowing one to convert from pandoc's markdown to strict
997+ markdown or vice versa.
998+
999+ * It is now possible to enable or disable specific syntax
1000+ extensions by appending them (with `+` or `-`) to the writer
1001+ or reader name. For example,
1002+
1003+ pandoc -f markdown-footnotes+hard_line_breaks
1004+
1005+ disables footnotes and enables treating newlines as hard
1006+ line breaks. The literate Haskell extensions are now implemented
1007+ this way as well, using either `+lhs` or `+literate_haskell`.
1008+ For a list of extension names, see the README under
1009+ "Pandoc's Markdown."
1010+
1011+ * The following aliases have been introduced for specific
1012+ combinations of markdown extensions: `markdown_phpextra`,
1013+ `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
1014+ work just like regular reader and writer names, and can be modified
1015+ with extension modifiers as described above. (Note that conversion
1016+ from one markdown dialect to another does not work perfectly,
1017+ because there are differences in markdown parsers besides
1018+ just the extensions, and because pandoc's internal document model is
1019+ not rich enough to capture all of the extensions.)
1020+
1021+ * New `--html-q-tags` option. The previous default was to use `<q>`
1022+ tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
1023+ Moreover, they are not a robust way of typesetting quotes, since
1024+ some user agents don't support them, and some CSS resets (e.g.
1025+ bootstrap) prevent pandoc's quotes CSS from working properly.
1026+ We now just insert literal quote characters by default in both
1027+ `html` and `html5` output, but this option is provided for
1028+ those who still want `<q>` tags.
1029+
1030+ * The markdown reader now prints warnings (to stderr) about
1031+ duplicate link and note references. Closes #375.
1032+
1033+ * Markdown syntax extensions:
1034+
1035+ + Added pipe tables. Thanks to François Gannaz for the initial patch.
1036+ These conform to PHP Markdown Extra's pipe table syntax. A subset
1037+ of org-mode table syntax is also supported, which means that you can
1038+ use org-mode's nice table editor to create tables.
1039+
1040+ + Added support for RST-style line blocks. These are
1041+ useful for verse and addresses.
1042+
1043+ + Attributes can now be specified for headers, using the same
1044+ syntax as in code blocks. (However, currently only the
1045+ identifier has any effect in most writers.) For example,
1046+
1047+ # My header {#foo}
1048+
1049+ See [the header above](#foo).
1050+
1051+ + Pandoc will now act as if link references have been defined
1052+ for all headers without explicit identifiers.
1053+ So, you can do this:
1054+
1055+ # My header
1056+
1057+ Link to [My header].
1058+ Another link to [it][My header].
1059+
1060+ Closes #691.
1061+
1062+ * LaTeX reader:
1063+
1064+ + Command macros now work everywhere, including non-math.
1065+ Environment macros still not supported.
1066+ + `\input` now works, as well as `\include`. TEXINPUTS is used.
1067+ Pandoc looks recursively into included files for more included files.
1068+
1069+ [behavior changes]
1070+
1071+ * The Markdown reader no longer puts the text of autolinks in a
1072+ `Code` inline. This means that autolinks will no longer appear
1073+ in a monospace font.
1074+
1075+ * The character `/` can now appear in markdown citation keys.
1076+
1077+ * HTML blocks in strict_markdown are no longer required to begin
1078+ at the left margin. Technically this is required, according to
1079+ the markdown syntax document, but `Markdown.pl` and other markdown
1080+ processors are more liberal.
1081+
1082+ * The `-V` option has been changed so that if there are duplicate
1083+ variables, those specified later on the command line take precedence.
1084+
1085+ * Tight lists now work in LaTeX and ConTeXt output.
1086+
1087+ * The LaTeX writer no longer relien on the `enumerate` package.
1088+ Instead, it uses standard LaTeX commands to change the list numbering
1089+ style.
1090+
1091+ * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
1092+ tables to be split over page boundaries.
1093+
1094+ * The RST writer now uses a line block to render paragraphs containing
1095+ linebreaks (which previously weren't supported at all).
1096+
1097+ * The markdown writer now applies the `--id-prefix` to footnote IDs.
1098+ Closes #614.
1099+
1100+ * The plain writer no longer uses backslash-escaped line breaks
1101+ (which are not very "plain").
1102+
1103+ * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
1104+ Read bytestring and use `Text`'s decodeUtf8 instead of using
1105+ `System.IO.hGetContents`. This way you get a message saying
1106+ "invalid UTF-8 stream" instead of "invalid byte sequence."
1107+ You are also told which byte caused the problem.
1108+
1109+ * Docx, ODT, and EPUB writers now download images specified by a URL
1110+ instead of skipping them or raising an error.
1111+
1112+ * EPUB writer:
1113+
1114+ + The default CSS now left-aligns headers by default, instead of
1115+ centering. This is more consistent with the rest of the writers.
1116+ + A proper multi-level table of contents is now used in `toc.ncx`.
1117+ There is no longer a subsidiary table of contents at the beginning
1118+ of each chapter.
1119+ + Code highlighting now works by default.
1120+ + Section divs are used by default for better semantic markup.
1121+ + The title is used instead of "Title Page" in the table of contents.
1122+ Otherwise we have a hard-coded English string, which looks
1123+ strange in ebooks written in other languages. Closes #572.
1124+
1125+ * HTML writer:
1126+
1127+ + Put mathjax in span with class "math". Closes #562.
1128+ + Put citations in a span with class "citation." In HTML5, also include
1129+ a `data-cite` attribute with a space-separated list of citation
1130+ keys.
1131+
1132+ * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
1133+ This treats both `\r\n` and `\n` as `\n` on input, no matter
1134+ what platform we're running on.
1135+
1136+ * Citation processing is now done in the Markdown and LaTeX
1137+ readers, not in `pandoc.hs`. This makes it easier for library users
1138+ to use citations.
1139+
1140+ [template changes]
1141+
1142+ * HTML: Added css to template to preserve spaces in `<code>` tags.
1143+ Thanks to Dirk Laurie.
1144+
1145+ * Beamer: Remove English-centric strings in section pages.
1146+ Section pages used to have "Section" and a number as well as the
1147+ section title. Now they just have the title. Similarly for part
1148+ and subsection. Closes #566.
1149+
1150+ * LaTeX, ConTeXt: Added papersize variable.
1151+
1152+ * LaTeX, Beamer templates: Use longtable instead of ctable.
1153+
1154+ * LaTeX, Beamer templates: Don't require 'float' package for tables.
1155+ We don't actually seem to use the '[H]' option.
1156+
1157+ * LaTeX: Use `upquote` package if it is available. This fixes
1158+ straight quotes in verbatim environments.
1159+
1160+ * Markdown, plain: Fixed titleblock so it is just a single string.
1161+ Previously separate title, author, and date variables were used,
1162+ but this didn't allow different kinds of title blocks.
1163+
1164+ * EPUB:
1165+
1166+ + Rationalized templates. Previously there were three different
1167+ templates involved in epub production. There is now just one
1168+ template, `default.epub` or `default.epub3`. It can now be
1169+ overridden using `--template`, just like other templates.
1170+ The titlepage is now folded into the default template.
1171+ A `titlepage` variable selects it.
1172+ + UTF-8, lang tag, meta tags, title element.
1173+
1174+ * Added scale-to-width feature to beamer template
1175+
1176+ [API changes]
1177+
1178+ * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
1179+ Previously header identifers were autogenerated by the writers.
1180+ Now they are added in the readers (either automatically or explicitly).
1181+
1182+ * `Text.Pandoc.Builder`:
1183+
1184+ + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
1185+ `Many Block`. `Many` is a newtype wrapper around `Seq`, with
1186+ custom Monoid instances for `Many Inline` and `Many Block. This
1187+ allows `Many` to be made an instance of `Foldable` and `Traversable`.
1188+ + The old `Listable` class has been removed.
1189+ + The module now exports `isNull`, `toList`, `fromList`.
1190+ + The old `Read` and `Show` instances have been removed; derived
1191+ instances are now used.
1192+ + Added `headerWith`.
1193+
1194+ * The readers now take a `ReaderOptions` rather than a `ParserState`
1195+ as a parameter. Indeed, not all parsers use the `ParserState` type;
1196+ some have a custom state. The motivation for this change was to separate
1197+ user-specifiable options from the accounting functions of parser state.
1198+
1199+ * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
1200+ formerly in `Text.Pandoc.Shared`, and its associated
1201+ data types. It also includes a new type `ReaderOptions`, which
1202+ contains many options formerly in `ParserState`, and its associated
1203+ data types:
1204+
1205+ + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
1206+ + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
1207+ + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
1208+ + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
1209+ + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
1210+ + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
1211+ + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
1212+ + `ParserState.stateIndentedCodeClasses` ->
1213+ `ReaderOptions.readerIndentedCodeClasses`.
1214+ + Added `ReaderOptions.readerCitationStyle`.
1215+
1216+ * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
1217+ `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
1218+ `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
1219+ been renamed `writerEpubMetadata` for consistency.
1220+
1221+ * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
1222+ longer stylesheet, fonts, reference files as separate parameters.
1223+
1224+ * Removed `writerLiterateHaskell` from `WriterOptions`, and
1225+ `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
1226+ by an extension (`Ext_literate_haskell`).
1227+
1228+ * Removed deprecated `writerXeTeX`.
1229+
1230+ * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
1231+ Strict is now handled through extensions.
1232+
1233+ * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
1234+ `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
1235+ and `multimarkdownExtensions`, as well as the `Extensions` type.
1236+
1237+ * New `Text.Pandoc.Readers.MediaWiki` module, exporting
1238+ `readMediaWiki`.
1239+
1240+ * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
1241+ (thanks to Sergey Astanin).
1242+
1243+ * `Text.Pandoc`:
1244+
1245+ + Added `getReader`, `getWriter` to `Text.Pandoc`.
1246+ + `writers` is now an association list `(String, Writer)`.
1247+ A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
1248+ an `IOByteStringWriter`. ALL writers are now in the 'writers'
1249+ list, including the binary writers and FB2 writer. This allows
1250+ code in `pandoc.hs` to be simplified.
1251+ + Changed type of `readers`, so all readers are in IO.
1252+ Users who want pure readers can still get them form the reader
1253+ modules; this just affects the function `getReader` that looks up
1254+ a reader based on the format name. The point of this change is to
1255+ make it possible to print warnings from the parser.
1256+
1257+ * `Text.Pandoc.Parsing`:
1258+
1259+ + `Text.Parsec` now exports all Parsec functions used in pandoc code.
1260+ No other module directly imports Parsec. This will make it easier
1261+ to change the parsing backend in the future, if we want to.
1262+ + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
1263+ + Export the type synonym `Parser`.
1264+ + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
1265+ `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
1266+ `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
1267+ `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
1268+ + `ParserState` is no longer an instance of `Show`.
1269+ + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
1270+ + Generalized type of `withQuoteContext`.
1271+ + Added `guardEnabled`, `guardDisabled`, `getOption`.
1272+ + Removed `failIfStrict`.
1273+ + `lookupKeySrc` and `fromKey` are no longer exported.
1274+
1275+ * `Data.Default` instances are now provided for `ReaderOptions`,
1276+ `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
1277+ Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
1278+ of `defaultWriterOptions` (which is still defined). Closes #546.
1279+
1280+ * `Text.Pandoc.Shared`:
1281+
1282+ + Added `safeRead`.
1283+ + Renamed `removedLeadingTrailingSpace` to `trim`,
1284+ `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
1285+ + Count `\r` as space in `trim` functions.
1286+ + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
1287+ to `Shared`.
1288+ + Removed `failUnlessLHS`.
1289+ + Export `compactify'`, formerly in Markdown reader.
1290+ + Export `isTightList`.
1291+ + Do not export `findDataFile`.
1292+ + `readDataFile` now returns a strict ByteString.
1293+ + Export `readDataFileUTF8` which returns a String, like the
1294+ old `readDataFile`.
1295+ + Export `fetchItem` and `openURL`.
1296+
1297+ * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
1298+ Removed `readImageSize`.
1299+
1300+ * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
1301+ `decodeArg`, `toString`, `fromString`, `toStringLazy`,
1302+ `fromStringLazy`.
1303+
1304+ * `Text.Pandoc.UTF8` is now an exposed module.
1305+
1306+ * `Text.Pandoc.Biblio`:
1307+
1308+ + csl parameter now a `String` rather than a `FilePath`.
1309+ + Changed type of `processBiblio`. It is no longer in the IO monad.
1310+ It now takes a `Maybe Style` argument rather than parameters for CSL
1311+ and abbrev filenames. (`pandoc.hs` now calls the functions to parse
1312+ the style file and add abbreviations.)
1313+
1314+ * Markdown reader now exports `readMarkdownWithWarnings`.
1315+
1316+ * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
1317+ `rtfEmbedImage`.
1318+
1319+ [bug fixes]
1320+
1321+ * Make `--ascii` work properly with `--self-contained`. Closes #568.
1322+
1323+ * Markdown reader:
1324+
1325+ + Fixed link parser to avoid exponential slowdowns. Closes #620.
1326+ Previously the parser would hang on input like this:
1327+
1328+ [[[[[[[[[[[[[[[[[[hi
1329+
1330+ We fixed this by making the link parser parser characters
1331+ between balanced brackets (skipping brackets in inline code spans),
1332+ then parsing the result as an inline list. One change is that
1333+
1334+ [hi *there]* bud](/url)
1335+
1336+ is now no longer parsed as a link. But in this respect pandoc behaved
1337+ differently from most other implementations anyway, so that seems okay.
1338+
1339+ + Look for raw html/latex blocks before tables.
1340+ Otherwise the following gets parsed as a table:
1341+
1342+ \begin{code}
1343+ --------------
1344+ -- My comment.
1345+ \end{code}
1346+
1347+ Closes #578.
1348+
1349+ * RST reader:
1350+
1351+ + Added support for `:target:` on `.. image::` blocks
1352+ and substitutions.
1353+ + Field list fixes:
1354+
1355+ - Fixed field lists items with body beginning after a new line
1356+ (Denis Laxalde).
1357+ - Allow any char but ':' in names of field lists in RST reader
1358+ (Denis Laxalde).
1359+ - Don't allow line breaks in field names.
1360+ - Require whitespace after field list field names.
1361+ - Don't create empty definition list for metadata field lists.
1362+ Previously a field list consisting only of metadata fields (author,
1363+ title, date) would be parsed as an empty DefinitionList, which is
1364+ not legal in LaTeX and not needed in any format.
1365+
1366+ + Don't recognize inline-markup starts inside words.
1367+ For example, `2*2 = 4*1` should not contain an emphasized
1368+ section. Added test case for "Literal symbols". Closes #569.
1369+ + Allow dashes as separator in simple tables. Closes #555.
1370+ + Added support for `container`, `compound`, `epigraph`,
1371+ `rubric`, `highlights`, `pull-quote`.
1372+ + Added support for `.. code::`.
1373+ + Made directive labels case-insensitive.
1374+ + Removed requirement that directives begin at left margin.
1375+ This was (correctly) not in earlier releases; docutils doesn't
1376+ make the requirement.
1377+ + Added support for `replace::` and `unicode::` substitutions.
1378+ + Ignore unknown interpreted roles.
1379+ + Renamed image parser to `subst`, since it now handles all
1380+ substitution references.
1381+
1382+ * Textile reader:
1383+
1384+ + Allow newlines before pipes in table. Closes #654.
1385+ + Fixed bug with list items containing line breaks.
1386+ Now pandoc correctly handles hard line breaks inside list items.
1387+ Previously they broke list parsing.
1388+ + Implemented comment blocks.
1389+ + Fixed bug affected words ending in hyphen.
1390+ + Properly handle links with surrounding brackets.
1391+ Square brackets need to be used when the link isn't surrounded by
1392+ spaces or punctuation, or when the URL ending may be ambiguous.
1393+ Closes #564.
1394+ + Removed nullBlock. Better to know about parsing problems than
1395+ to skip stuff when we get stuck.
1396+ + Allow ID attributes on headers.
1397+ + Textile reader: Avoid parsing dashes as strikeout.
1398+ Previously the input
1399+
1400+ text--
1401+ text--
1402+ text--
1403+ text--
1404+
1405+ would be parsed with strikeouts rather than dashes. This fixes
1406+ the problem by requiring that a strikeout delimiting - not be
1407+ followed by a -. Closes #631.
1408+ + Expanded list of `stringBreakers`.
1409+ This fixes a bug on input like "(_hello_)" which should
1410+ be a parenthesized emphasized "hello".
1411+ The new list is taken from the PHP source of textile 2.4.
1412+ + Fixed autolinks. Previously the textile reader and writer
1413+ incorrectly implented RST-style autolinks for URLs and email
1414+ addresses. This has been fixed. Now an autolink is done this way:
1415+ `"$":http://myurl.com`.
1416+ + Fixed footnotes bug in textile. This affected notes occuring
1417+ before punctuation, e.g. `foo[1].`. Closes #518.
1418+
1419+ * LaTeX reader:
1420+
1421+ + Better handling of citation commands.
1422+ + Better handling of `\noindent`.
1423+ + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
1424+ Closes #622.
1425+ + Made `rawLaTeXInline` try to parse block commands as well. This
1426+ is usually what we want, given how `rawLaTeXInline` is used in
1427+ the markdown and textile readers. If a block-level LaTeX command
1428+ is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
1429+ we can treat it as raw inline LaTeX.
1430+ + Handle \slash command. Closes #605.
1431+ + Basic `\enquote` support.
1432+ + Fixed parsing of paragraphs beginning with a group. Closes #606.
1433+ + Use curly quotes for bare straight quotes.
1434+ + Support obeylines environment. Closes #604.
1435+ + Guard against "begin", "end" in inlineCommand and
1436+ blockCommand.
1437+ + Better error messages for environments. Now it should tell you that
1438+ it was looking for \end{env}, instead of giving "unknown parse error."
1439+
1440+ * HTML reader:
1441+
1442+ + Added HTML 5 tags to list of block-level tags.
1443+ + HTML reader: Fixed bug in `htmlBalanced`, which
1444+ caused hangs in parsing certain markdown input using
1445+ strict mode.
1446+ + Parse `<q>` as `Quoted DoubleQuote`.
1447+ + Handle nested `<q>` tags properly.
1448+ + Modified `htmlTag` for fewer false positives.
1449+ A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
1450+ This makes it more useful in the wikimedia and markdown parsers.
1451+
1452+ * DocBook reader: Support title in "figure" element. Closes #650.
1453+
1454+ * MediaWiki writer:
1455+
1456+ + Remove newline after `<br/>` in translation of `LineBreak`
1457+ There's no particular need for a newline (other than making the
1458+ generated MediaWiki source look nice to a human), and in fact
1459+ sometimes it is incorrect: in particular, inside an enumeration, list
1460+ items cannot have embedded newline characters. (Brent Yorgey)
1461+ + Use `<code>` not `<tt>` for Code.
1462+
1463+ * Man writer: Escape `-` as `\-`.
1464+ Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
1465+ signs. That is preferable for use with command-line options. See
1466+ <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
1467+ to Andrea Bolognani for bringing the issue to our attention.
1468+
1469+ * RST writer:
1470+
1471+ + Improved line block output. Use nonbreaking spaces for
1472+ initial indent (otherwise lost in HTML and LaTeX).
1473+ Allow multiple paragraphs in a single line block.
1474+ Allow soft breaks w continuations in line blocks.
1475+ + Properly handle images with no alt text. Closes #678.
1476+ + Fixed bug with links with duplicate text. We now (a) use anonymous
1477+ links for links with inline URLs, and (b) use an inline link instead
1478+ of a reference link if the reference link would require a label that
1479+ has already been used for a different link. Closes #511.
1480+ + Fixed hyperlinked images. Closes #611. Use `:target:`
1481+ field when you have a simple linked image.
1482+ + Don't add `:align: center` to figures.
1483+
1484+ * Texinfo writer: Fixed internal cross-references.
1485+ Now we insert anchors after each header, and use `@ref` instead of `@uref`
1486+ for links. Commas are now escaped as `@comma{}` only when needed;
1487+ previously all commas were escaped. (This change is needed, in part,
1488+ because `@ref` commands must be followed by a real comma or period.) Also
1489+ insert a blank line in from of `@verbatim` environments.
1490+
1491+ * DocBook writer:
1492+
1493+ + Made --id-prefix work in DocBook as well as HTML.
1494+ Closes #607.
1495+ + Don't include empty captions in figures. Closes #581.
1496+
1497+ * LaTeX writer:
1498+
1499+ + Use `\hspace*` for nonbreaking space after line break,
1500+ since `~` spaces after a line break are just ignored.
1501+ Closes #687.
1502+ + Don't escape `_` in URLs or hyperref identifiers.
1503+ + Properly escape strings inside \url{}. Closes #576.
1504+ + Use `[fragile]` only for slides containing code rendered
1505+ using listings. Closes #649.
1506+ + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
1507+ highlighting-kate's macros, which redefine `|` as a short verbatim
1508+ delimiter. Thanks to Björn Peemöller for raising this issue.
1509+ + Use minipage rather than parbox for block containers in tables.
1510+ This allows verbatim code to be included in grid tables.
1511+ Closes #663.
1512+ + Prevent paragraphs containing only linebreaks or spaces.
1513+
1514+ * HTML writer:
1515+
1516+ + Included `highlighting-css` for code spans, too.
1517+ Previously it was only included if used in a code block. Closes #653.
1518+ + Improved line breaks with `<dd>` tags. We now put a newline between
1519+ `</dd>` and `<dd>` when there are multiple definitions.
1520+ + Changed mathjax cdn url so it doesn't use https. (This caused
1521+ problems when used with `--self-contained`.) See #609.
1522+
1523+ * EPUB writer:
1524+
1525+ + `--number-sections` now works properly.
1526+ + Don't strip meta and link elements in epub metadata.
1527+ Patch from aberrancy. Closes #589.
1528+ + Fixed a couple validation bugs.
1529+ + Use ch001, ch002, etc. for chapter filenames. This improves sorting
1530+ of chapters in some readers, which apparently sort ch2 after ch10.
1531+ Closes #610.
1532+
1533+ * ODT writer: properly set title property (Arlo O'Keeffe).
1534+
1535+ * Docx writer:
1536+
1537+ + Fixed bug with nested lists. Previously a list like
1538+
1539+ 1. one
1540+ - a
1541+ - b
1542+ 2. two
1543+
1544+ would come out with a bullet instead of "2."
1545+ Thanks to Russell Allen for reporting the bug.
1546+ + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
1547+ This seems to fix a problem viewing pandoc-generated
1548+ docx files in LibreOffice.
1549+ + Use integer ids for bookmarks. Closes #626.
1550+ + Added nsid to abstractNum elements. This helps when merging
1551+ word documents with numbered or bulleted lists. Closes #627.
1552+ + Use separate footnotes.xml for notes.
1553+ This seems to help LibreOffice convert the file, even though
1554+ it was valid docx before. Closes #637.
1555+ + Use rIdNN identifiers for r:embed in images.
1556+ + Avoid reading image files again when we've already processed them.
1557+ + Fixed typo in `referenc.docx` that prevented image captions from
1558+ working. Thanks to Huashan Chen.
1559+
1560+ * `Text.Pandoc.Parsing`:
1561+
1562+ + Fixed bug in `withRaw`, which didn't correctly handle the case
1563+ where nothing is parsed.
1564+ + Made `emailAddress` parser more correct. Now it is based on RFC 822,
1565+ though it still doesn't implement quoted strings in email addresses.
1566+ + Revised URI parser. It now allows many more schemes, allows
1567+ uppercase URIs, and better handles trailing punctuation and
1568+ trailing slashes in bare URIs. Added many tests.
1569+ + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
1570+ etc. parse properly. Formerly we had some English-centric heuristics,
1571+ but they are no longer needed. Closes #698.
1572+
1573+ * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
1574+ This fixes bug with Chinese commas in markdown and reST tables, and
1575+ a bug that caused combining characters to be dropped.
1576+
1577+ * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
1578+
1579+ * `Text.Pandoc.Biblio`:
1580+
1581+ + Run `mvPunc` and `deNote` on metadata too.
1582+ This fixed a bug with notes on titles using footnote styles.
1583+ + Fixed bug in fetching CSL files from CSL data directory.
1584+
1585+ * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
1586+ is provided. It should be the URL up to the path.
1587+
1588+ * Fixed/simplified diff output for tests.
1589+ Biblio: Make sure mvPunc and deNote run on metadata too.
1590+ This fixed a bug with notes on titles using footnote styles.
1591+
1592+ [under the hood improvements]
1593+
1594+ * We no longer depend on `utf8-string`. Instead we use functions
1595+ defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
1596+
1597+ * Use `safeRead` instead of using `reads` directly (various modules).
1598+
1599+ * "Implicit figures" (images alone in a paragraph) are now handled
1600+ differently. The markdown reader gives their titles the prefix `fig:`; the
1601+ writers look for this before treating the image as a figure. Though this
1602+ is a bit of a hack, it has two advantages: (i) implicit figures can be
1603+ limited to the markdown reader, and (ii) they can be deactivated by turning
1604+ off the `implicit_figures` extension.
1605+
1606+ * `catch` from `Control.Exception` is now used instead of the
1607+ old Preface `catch`.
1608+
1609+ * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
1610+ and `oneOfStrings` (which is now non-backtracking).
1611+
1612+ * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
1613+ Now citeproc-hs is fixed upstream, so this is no longer needed.
1614+ Closes #531.
1615+
1616+ * Textile reader: Improved speed of `hyphenedWords`.
1617+ This speeds up the textile reader by about a factor of 4.
1618+
1619+ * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
1620+ better performance, and automatic normalization.
1621+
1622+ * Major rewrite of markdown reader:
1623+
1624+ + Use `Text.Pandoc.Builder` instead of lists. This also
1625+ means that everything is normalized automatically.
1626+ + Move to a one-pass parsing strategy, returning values in the reader
1627+ monad, which are then run (at the end of parsing) against the final
1628+ parser state.
1629+
1630+ * In HTML writer, we now use `toHtml` instead of pre-escaping.
1631+ We work around the problem that blaze-html unnecessarily escapes `'`
1632+ by pre-escaping just the `'` characters, instead of the whole string.
1633+ If blaze-html later stops escaping `'` characters, we can simplify
1634+ `strToHtml` to `toHtml`. Closes #629.
1635+
1636+ * Moved code for embedding images in RTFs from `pandoc.hs` to the
1637+ RTF writer (which now exports `writeRTFWithEmbeddedImages`).
1638+
1639+ * Moved citation processing from `pandoc.hs` into the readers.
1640+ This makes things more convenient for library users.
1641+
1642+ * The man pages are now built by an executable `make-pandoc-man-pages`,
1643+ which has its own stanza in the cabal file so that dependencies can be
1644+ handled by Cabal. Special treatment in `Setup.hs` ensures that this
1645+ executable never gets installed; it is only used to create the man pages.
1646+
1647+ * The cabal file has been modified so that the pandoc library is used
1648+ in building the pandoc executable. (This required moving `pandoc.hs`
1649+ from `src` to `.`.) This cuts compile time in half.
1650+
1651+ * `-O2` is no longer used in building pandoc. The performance improvement
1652+ it yields is so slight that it is not worth it. (Measured with
1653+ benchmarks on ghc 7.4.)
1654+
1655+ * The `executable` and `library` flags have been removed.
1656+
1657+ * `-threaded` has been removed from ghc-options.
1658+
1659+ * Version bounds of dependencies have been raised, and the
1660+ `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
1661+ GHC 7.6.
1662+
1663+ * We now require base >= 4.2.
1664+
1665+ * Integrated the benchmark program into cabal. One can now do:
1666+
1667+ cabal configure --enable-benchmarks && cabal build
1668+ cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
1669+
1670+ The benchmark now uses README + testsuite, so benchmark results
1671+ from older versions aren't comparable.
1672+
1673+ * Integrated test suite with cabal.
1674+ To run tests, configure with `--enable-tests`, then `cabal test`.
1675+ You can specify particular tests using `--test-options='-t markdown'`.
1676+ No output is shown unless tests fail. The Haskell test modules
1677+ have been moved from `src/` to `tests/`.
1678+
1679+ * Moved all data files and templates to the `data/` subdirectory.
1680+
1681+ * Added an `embed_data_files` cabal flag. This causes all
1682+ data files to be embedded in the binary, so that the binary
1683+ is self-sufficient and can be relocated anywhere, copied on
1684+ a USB key, etc. The Windows installer now uses this.
1685+ (Since we no longer have the option to build the executable
1686+ without the library, this is the only way to get a relocatable
1687+ binary on Windows.)
1688+
1689+ * Removed pcre3.dll from windows package.
1690+ It isn't needed unless highlighting-kate is compilled with the
1691+ `pcre-light` flag. By default, regex-prce-builtin is used.
1692+
1693+
1694+pandoc (1.9.4.2)
1695+
1696+ * Don't encode/decode file paths if base >= 4.4.
1697+ Prior to base 4.4, filepaths and command line arguments were treated
1698+ as unencoded lists of bytes, not unicode strings, so we had to work
1699+ around that by encoding and decoding them. This commit adds CPP
1700+ checks for the base version that intelligibly enable encoding/decoding
1701+ when needed. Fixes a bug with multilingual filenames when pandoc was
1702+ compiled with ghc 7.4 (#540).
1703+
1704+ * Don't generate an empty H1 after hrule slide breaks.
1705+ We now use a slide-level header with contents `[Str "\0"]` to mark
1706+ an hrule break. This avoids creation of an empty H1 in these
1707+ contexts. Closes #484.
1708+
1709+ * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
1710+
1711+ * In make_osx_package.sh, ensure citeproc-hs is built with the
1712+ embed_data_files flag.
1713+
1714+ * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
1715+
1716+ * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
1717+ simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
1718+
1719+ * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
1720+ Closes #535.
1721+
1722+ * Added webm to mime types. Closes #543.
1723+
1724+ * Added some missing exports and tests to the cabal file
1725+ (Alexander V Vershilov).
1726+
1727+ * Compile with `-rtsopts` and `-threaded` by default.
1728+
1729+pandoc (1.9.4.1)
1730+
1731+ * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
1732+
1733+ * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
1734+ variables. Make TOC links black.
1735+
1736+ * LaTeX template improvements.
1737+
1738+ + Don't print date unless one is given explicitly in the document.
1739+ + Simplified templates.
1740+ + Use fontenc [T1] by default, and lmodern.
1741+ + Use microtype if available.
1742+
1743+ * Biblio:
1744+
1745+ + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
1746+ Motivation: `@item1 [50]` should be as close as possible to
1747+ `[@item1, 50]`.
1748+ + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
1749+ beginning with a citation to be empty. Closes #531.
1750+
1751+ * Fixed documentation on mixed lists. Closes #533.
1752+
1753+pandoc (1.9.4)
1754+
1755+ * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
1756+ footnotes and captions. We now handle note citations by inserting
1757+ footnotes during initial citation processing, and doing a separate
1758+ pass later to remove notes inside notes.
1759+
1760+ * Added 'zenburn' highlight style from highlighting-kate.
1761+
1762+ * Added Slideous writer. Slideous is an HTML + javascript slide show
1763+ format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
1764+
1765+ * LaTeX writer:
1766+
1767+ + Ensure we don't have extra blank lines at ends of cells.
1768+ This can cause LaTeX errors, as they are interpreted as new paragraphs.
1769+ + More consistent interblock spacing.
1770+ + Require highlighting-kate >= 0.5.1, for proper highlighted inline
1771+ code in LaTeX. Closes #527.
1772+ + Ensure that a Verbatim at the end of a footnote is followed by
1773+ a newline. (Fixes a regression in the previous version.)
1774+ + In default template, use black for internal links and TOC.
1775+ Added commented-out code to use footnotes for links, as would
1776+ be suitable in print output.
1777+
1778+ * Beamer writer: When `--incremental` is used, lists inside
1779+ a block quote should appear all at once. (This makes Beamer
1780+ output consistent with the HTML slide show formats.)
1781+
1782+ * ConTeXt writer:
1783+
1784+ + Escape `%` as `\letterpercent{}` not `\letterpercent `,
1785+ to avoid gobbling spaces after the `%` sign.
1786+ + Ensure space after `\stopformula`.
1787+
1788+ * Markdown writer:
1789+
1790+ + Use `:` form instead of `~` in definition lists, for better
1791+ compatibility with other markdown implementations.
1792+ + Don't wrap the term, because it breaks definition lists.
1793+ + Use a nonzero space to prevent false recognition
1794+ of list marker in ordered lists. Closes #516.
1795+
1796+ * Org writer: Add space before language name. Closes #523.
1797+
1798+ * Docx writer: Simplified bullet characters so they work properly
1799+ with Word 2007. Closes #520.
1800+
1801+ * LaTeX reader: Support `\centerline`.
1802+
1803+ * RST reader: handle figures. Closes #522.
1804+
1805+ * Textile reader: fix for `<notextile>` and `==`. Closes #517.
1806+ (Paul Rivier)
1807+
1808+pandoc (1.9.3)
1809+
1810+ * Fixed bug in `fromEntities`. The previous version would turn
1811+ `hi & low you know;` into `hi &`.
1812+
1813+ * HTML reader:
1814+
1815+ + Don't skip nonbreaking spaces.
1816+ Previously a paragraph containing just ` ` would be rendered
1817+ as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
1818+ + Support `<col>` and `<caption>` in tables. Closes #486.
1819+
1820+ * Markdown reader:
1821+
1822+ + Don't recognize references inside delimited code blocks.
1823+ + Allow list items to begin with lists.
1824+
1825+ * Added basic docbook reader (John MacFarlane and Mauro Bieg).
1826+
1827+ * LaTeX reader:
1828+
1829+ + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
1830+ + Control sequences can't be followed by a letter.
1831+ This fixes a bug where `\begingroup` was parsed as `\begin`
1832+ followed by `group`.
1833+ + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
1834+ + Make `\label` and `\ref` sensitive to `--parse-raw`.
1835+ If `--parse-raw` is selected, these will be parsed as raw latex
1836+ inlines, rather than bracketed text.
1837+ + Don't crash on unknown block commands (like `\vspace{10pt}`)
1838+ inside `\author`; just skip them. Closes #505.
1839+
1840+ * Textile reader:
1841+
1842+ + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
1843+ + Added support for LaTeX blocks and inlines (Paul Rivier).
1844+ + Better conformance to RedCloth inline parsing (Paul Rivier).
1845+ + Parse '+text+' as emphasized (should be underlined, but this
1846+ is better than leaving literal plus characters in the output.
1847+
1848+ * Docx writer: Fixed multi-paragraph list items. Previously they each
1849+ got a list marker. Closes #457.
1850+
1851+ * LaTeX writer:
1852+
1853+ + Added `--no-tex-ligatures` option to avoid replacing
1854+ quotation marks and dashes with TeX ligatures.
1855+ + Use `fixltx2e` package to provide '\textsubscript'.
1856+ + Improve spacing around LaTeX block environments:
1857+ quote, verbatim, itemize, description, enumerate.
1858+ Closes #502.
1859+ + Use blue instead of pink for URL links in latex/pdf output.
1860+
1861+ * ConTeXt writer: Fixed escaping of `%`.
1862+ In text, `%` needs to be escaped as `\letterpercent`, not `\%`
1863+ Inside URLs, `%` needs to be escaped as `\%`
1864+ Thanks to jmarca and adityam for the fix. Closes #492.
1865+
1866+ * Texinfo writer: Escape special characters in node titles.
1867+ This fixes a problem pointed out by Joost Kremers. Pandoc used
1868+ to escape an '@' in a chapter title, but not in the corresponding
1869+ node title, leading to invalid texinfo.
1870+
1871+ * Fixed document encoding in texinfo template.
1872+ Resolves Debian Bug #667816.
1873+
1874+ * Markdown writer:
1875+
1876+ + Don't force delimited code blocks to be flush left.
1877+ Fixes bug with delimited code blocks inside lists etc.
1878+ + Escape `<` and `$`.
1879+
1880+ * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
1881+ Previously we used `\href{\#ident}{text}`, which didn't work on
1882+ all systems. Thanks to Dirk Laurie.
1883+
1884+ * RST writer: Don't wrap link references. Closes #487.
1885+
1886+ * Updated to use latest versions of blaze-html, mtl.
1887+
1888+
1889+pandoc (1.9.2)
1890+
1891+ * LaTeX reader:
1892+
1893+ + Made `lstlisting` work as a proper verbatim environment.
1894+ + Fixed bug parsing LaTeX tables with one column.
1895+
1896+ * LaTeX writer:
1897+
1898+ + Use `{}` around `ctable` caption, so that formatting can be used.
1899+ + Don't require eurosym package unless document has a €.
1900+
1901+ * LaTeX template: Added variables for `geometry`, `romanfont`,
1902+ `sansfont`, `mathfont`, `mainfont` so users can more easily
1903+ customize fonts.
1904+
1905+ * PDF writer:
1906+
1907+ + Run latex engine at least two times, to ensure
1908+ that PDFs will have hyperlinked bookmarks.
1909+ + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
1910+
1911+ * Texinfo writer: retain directories in image paths. (Peter Wang)
1912+
1913+ * RST writer: Better handling of inline formatting, in accord
1914+ with docutils' "inline markup recognition rules" (though we don't
1915+ implement the unicode rules fully). Now `hi*there*hi` gets
1916+ rendered properly as `hi\ *there*\ hi`, and unnecessary
1917+ `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
1918+
1919+ * RST reader:
1920+
1921+ + Parse `\ ` as null, not escaped space.
1922+ + Allow `` :math:`...` `` even when not followed by blank
1923+ or `\`. This does not implement the complex rule docutils follows,
1924+ but it should be good enough for most purposes.
1925+ + Add support for the rST default-role directive. (Greg Maslov)
1926+
1927+ * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
1928+ (Greg Maslov)
1929+
1930+ * Markdown reader: Properly handle citations nested in other inline
1931+ elements.
1932+
1933+ * Markdown writer: don't replace empty alt in image with "image".
1934+
1935+ * DZSlides: Updated template.html and styles in default template.
1936+ Removed bizarre CSS for `q` in dzslides template.
1937+
1938+ * Avoid repeated `id` attribute in section and header in HTML slides.
1939+
1940+ * README improvements: new instructions on internal links,
1941+ removed misleading note on reST math.
1942+
1943+ * Build system:
1944+
1945+ + Fixed Windows installer so that dzslides works.
1946+ + Removed stripansi.sh.
1947+ + Added .travis.yml for Travis continuous integration support..
1948+ + Fixed upper bound for zlib (Sergei Trofimovich).
1949+ + Fixed upper bound for test-framework.
1950+ + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
1951+
1952+pandoc (1.9.1.2)
1953+
1954+ * Added `beamer+lhs` as output format.
1955+
1956+ * Don't escape `<` in `<style>` tags with `--self-contained`.
1957+ This fixes a bug which prevented highlighting from working
1958+ when using `--self-contained`.
1959+
1960+ * PDF: run latex engine three times if `--toc` specified.
1961+ This fixes page numbers in the table of contents.
1962+
1963+ * Docx writer: Added TableNormal style to tables.
1964+
1965+ * LaTeX math environment fixes. `aligned` is now used instead of
1966+ the nonexistent `aligned*`. `multline` instead of the nonexistent
1967+ `multiline`.
1968+
1969+ * LaTeX writer: Use `\textasciitilde` for literal `~`.
1970+
1971+ * HTML writer: Don't escape contents of EQ tags with --gladtex.
1972+ This fixes a regression from 1.8.
1973+
1974+ * Use `<q>` tags for Quoted items for HTML5 output.
1975+ The quote style can be changed by modifying the template
1976+ or including a css file. A default quote style is included.
1977+
1978+ * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
1979+ Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
1980+
1981+ * Updated LaTeX template for better language support.
1982+ Use `polyglossia` instead of `babel` with xetex.
1983+ Set `lang` as documentclass option.
1984+ `\setmainlanguage` will use the last of a comma-separated
1985+ list of languages. Thanks to François Gannaz.
1986+
1987+ * Fixed default LaTeX template so `\euro` and `€` work. The
1988+ `eurosym` package is needed if you are using pdflatex.
1989+
1990+ * Fixed escaping of period in man writer (thanks to Michael Thompson).
1991+
1992+ * Fixed list label positions in beamer.
1993+
1994+ * Set `mainlang` variable in context writer.
1995+ This parallels behavior of latex writer. `mainlang` is the last
1996+ of a comma-separated list of languages in lang.
1997+
1998+ * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
1999+
2000+ * Changed `-V` so that you can specify a key without a value.
2001+ Such keys get the value `true`.
2002+
2003+ * Fixed permissions on installed man pages - thanks Magnus Therning.
2004+
2005+ * Windows installer: require XP or higher. The installer is
2006+ now compiled on a Windows 7 machine, which fixes a problem
2007+ using citation functions on Windows 7.
2008+
2009+ * OSX package: Check for 64-bit Intel CPU before installing.
2010+
2011+pandoc (1.9.1.1)
2012+
2013+ * Better handling of raw latex environments in markdown. Now
2014+
2015+ \begin{equation}
2016+ a_1
2017+ \end{equation}
2018+
2019+ turns into a raw latex block as expected.
2020+
2021+ * Improvements to LaTeX reader:
2022+
2023+ + Skip options after block commands.
2024+ + Correctly handle `{\\}` in braced.
2025+ + Added a needed 'try'.
2026+ + Citations: add `, ` to suffix if it doesn't start with space or
2027+ punctuation. Otherwise we get no space between the year and the
2028+ suffix in author-date styles.
2029+
2030+ * Added two needed data files for S5. This fixes a problem with
2031+ `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
2032+ which was no longer being used.
2033+
2034+ * Fixed some minor problems in `reference.docx`:
2035+ name on "Date" style, `xCs` instead of `xIs`.
2036+
2037+ * Fixed a problem creating docx files using a reference docx
2038+ modified using Word. The problem seems to be that Word
2039+ modifies `_rels/.rels`, changing the Type of the Relationship to
2040+ `docProps/core.xml`. Pandoc now changes this back to the correct
2041+ value if it has been altered, fixing the problem.
2042+
2043+ * Fixed html5 template so it works properly with highlighting.
2044+
2045+pandoc (1.9.1)
2046+
2047+ * LaTeX reader:
2048+
2049+ + Fixed regression in 1.9; properly handle escaped $ in latex math.
2050+ + Put LaTeX verse environments in blockquotes.
2051+
2052+ * Markdown reader:
2053+
2054+ + Limit nesting of strong/emph. This avoids exponential lookahead
2055+ in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
2056+ + Improved attributes syntax (inn code blocks/spans):
2057+ (1) Attributes can contain line breaks. (2) Values in key-value
2058+ attributes can be surrounded by either double or single quotes, or
2059+ left unquoted if they contain no spaces.
2060+
2061+ * Don't wrap headers in markdown or RST writers.
2062+
2063+ * Added `stateMaxNestingLevel` to `ParserState`.
2064+ We set this to 6, so you can still have `Emph` inside `Emph`,
2065+ just not indefinitely.
2066+
2067+ * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
2068+
2069+ * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
2070+ is present.
2071+
2072+ * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
2073+
2074+pandoc (1.9.0.5)
2075+
2076+ * Changed cabal file so that build-depends for the test program
2077+ are not required unless the tests flag is used.
2078+
2079+ * LaTeX writer: insert `{}` between adjacent hyphens so they don't
2080+ form ligatures (dashes) in code spans.
2081+
2082+pandoc (1.9.0.4)
2083+
2084+ * Raised version bound on test-framework to avoid problems
2085+ compiling tests on GHC 7.4.1.
2086+
2087+ * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
2088+ so citations don't just disappear unless you process with
2089+ citeproc. Ignore `\bibliographystyle`, `\nocite`.
2090+
2091+ * Simplified tex2pdf; it will always run latex twice to
2092+ resolve table of contents and hyperrefs.
2093+
2094+pandoc (1.9.0.3)
2095+
2096+ * Require Cabal >= 1.10.
2097+ * Tweaked cabal file to meet Cabal 1.10 requirements.
2098+
2099+pandoc (1.9.0.2)
2100+
2101+ * Allow build with json 0.4 or 0.5. Otherwise we can't build with
2102+ ghc 6.12.
2103+
2104+pandoc (1.9)
2105+
2106+ [new features]
2107+
2108+ * Added a Microsoft Word `docx` writer. The writer includes support
2109+ for highlighted code and for math (which is converted from TeX to OMML,
2110+ Office's native math markup language, using texmath's new OMML module).
2111+ A new option `--reference-docx` allows the user to customize the
2112+ styles.
2113+
2114+ * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
2115+
2116+ * Better support for slide shows:
2117+
2118+ + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
2119+ slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
2120+
2121+ + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
2122+ slide presentations.
2123+
2124+ + New, flexible rules for dividing documents into sections and slides
2125+ (see the "Structuring the slide show" in the User's Guide). These
2126+ are backward-compatible with the old rules, but they allow slide
2127+ shows to be organized into sections and subsections containing
2128+ multiple slides.
2129+
2130+ + A new `--slide-level` option allows users to override defaults
2131+ and select a slide level below the first header level with content.
2132+
2133+ * A new `--self-contained` option produces HTML output that does not
2134+ depend on an internet connection or the presence of any external
2135+ files. Linked images, CSS, and javascript is downloaded (or fetched
2136+ locally) and encoded in `data:` URIs. This is useful for making portable
2137+ `HTML slide shows. The --offline` option has been deprecated and is now
2138+ `treated as a synonym or --self-contained`.
2139+
2140+ * Support for PDF output:
2141+
2142+ + Removed the old `markdown2pdf`.
2143+ + `pandoc` can now create PDFs (assuming you have latex and a set of
2144+ appropriate packages installed): just specify an output file with the
2145+ `.pdf` extension.
2146+ + A new option `--latex-engine` allows you to specify `pdflatex`,
2147+ `xelatex`, or `lualatex` as the processor.
2148+
2149+ * Highlighting changes:
2150+
2151+ + Syntax highlighting is now a standard feature; the `highlighting`
2152+ flag is no longer needed when compiling.
2153+ + A new `--no-highlight` option allows highlighting to be disabled.
2154+ + Highlighting now works in `docx`, `latex`, and `epub`, as well as
2155+ `html`, `html5`, `dzslides`, `s5`, and `slidy`.
2156+ + A new `--highlight-style` option selects between various highlighting
2157+ color themes.
2158+
2159+ * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
2160+
2161+ * LaTeX `\include` and `\usepackage` commands are now processed,
2162+ provided the files are in the working directory.
2163+
2164+ * EPUB improvements:
2165+
2166+ + Internal and external links now work in EPUB.
2167+ + Raw HTML is allowed.
2168+ + New `--epub-embed-font` option.
2169+ + Customizable templates for EPUB pages offer more control over
2170+ formatting: `epub-page.html`, `epub-coverimage.html`,
2171+ `epub-titlepage.html`.
2172+
2173+ * `--mathml` now works with DocBook.
2174+
2175+ * Added support for math in RST reader and writer. Inline math uses the
2176+ `` :math:`...` `` construct. Display math uses
2177+
2178+ .. math:: ...
2179+
2180+ or if the math is multiline,
2181+
2182+ .. math::
2183+
2184+ ...
2185+
2186+ These constructions are now supported now by `rst2latex.py`.
2187+
2188+ * Github syntax for fenced code blocks is supported in pandoc's
2189+ markdown. You can now write
2190+
2191+ ```ruby
2192+ x = 2
2193+ ```
2194+
2195+ instead of
2196+
2197+ ~~~ {.ruby}
2198+ x = 2
2199+ ~~~~
2200+
2201+ * Easier scripting: a new `toJsonFilter` function makes it easier to
2202+ write Haskell scripts to manipulate the Pandoc AST.
2203+
2204+ [behavior changes]
2205+
2206+ * Fixed parsing of consecutive lists in markdown.
2207+ Pandoc previously behaved like Markdown.pl for consecutive
2208+ lists of different styles. Thus, the following would be parsed
2209+ as a single ordered list, rather than an ordered list followed
2210+ by an unordered list:
2211+
2212+ 1. one
2213+ 2. two
2214+
2215+ - one
2216+ - two
2217+
2218+ This change makes pandoc behave more sensibly, parsing this as
2219+ two lists. Any change in list type (ordered/unordered) or in
2220+ list number style will trigger a new list. Thus, the following
2221+ will also be parsed as two lists:
2222+
2223+ 1. one
2224+ 2. two
2225+
2226+ a. one
2227+ b. two
2228+
2229+ Since we regard this as a bug in Markdown.pl, and not something
2230+ anyone would ever rely on, we do not preserve the old behavior
2231+ even when `--strict` is selected.
2232+
2233+ * Dashes work differently with `--smart`: `---` is always em-dash,
2234+ and `--` is always en-dash. Pandoc no longer tries to guess when
2235+ `-` should be en-dash. *Note:* This may change how existing documents
2236+ look when processed with pandoc. A new option, `--old-dashes`,
2237+ is provided for legacy documents.
2238+
2239+ * The markdown writer now uses setext headers for levels 1-2.
2240+ The old behavior (ATX headers for all levels) can be restored
2241+ using the new `--atx-headers` option.
2242+
2243+ * Links are now allowed in markdown image captions. They are also
2244+ allowed in links, but will appear there as regular text. So,
2245+
2246+ [link with [link](/url)](/url)
2247+
2248+ will turn into
2249+
2250+ <p><a href="/url">link with link</a></p>
2251+
2252+ * Improved handling of citations using `citeproc-hs-0.3.4`.
2253+ Added `--citation-abbreviations` option.
2254+
2255+ * Citation keys can no longer end with a punctuation character.
2256+ This means that `@item1.` will be parsed as a citation with key
2257+ 'item1', followed by a period, instead of a citation with key
2258+ 'item1.', as was the case previously.
2259+
2260+ * In HTML output, citations are now put in a span with class `citation`.
2261+
2262+ * The markdown reader now recognizes DocBook block and inline tags.
2263+ It was always possible to include raw DocBook tags in a markdown
2264+ document, but now pandoc will be able to distinguish block from
2265+ inline tags and behave accordingly. Thus, for example,
2266+
2267+ <sidebar>
2268+ hello
2269+ </sidebar>
2270+
2271+ will not be wrapped in `<para>` tags.
2272+
2273+ * The LaTeX parser has been completely rewritten; it is now much more
2274+ accurate, robust, and extensible. However, there are two important
2275+ changes in how it treats unknown LaTeX. (1) Previously, unknown
2276+ environments became BlockQuote elements; now, they are treated
2277+ as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
2278+ same as `xyz`. (2) Previously, arguments of unknown commands
2279+ were passed through with their braces; now the braces are stripped
2280+ off.
2281+
2282+ * `--smart` is no longer selected automatically with `man` output.
2283+
2284+ * The deprecated `--xetex` option has been removed.
2285+
2286+ * The `--html5`/`-5` option has been deprecated. Use `-t html5`
2287+ instead. `html5` and `html5+lhs` are now separate output formats.
2288+
2289+ * Single quotes are no longer escaped in HTML output. They do not
2290+ need to be escaped outside of attributes.
2291+
2292+ * Pandoc will no longer transform leading newlines in code
2293+ blocks to `<br/>` tags.
2294+
2295+ * The ODT writer now sizes images appropriately, using the image
2296+ size and DPI information embedded in the image.
2297+
2298+ * `--standalone` is once again implicitly for a non-text output format
2299+ (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
2300+ and get a standalone ODT file.
2301+
2302+ * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
2303+ `<section>`.
2304+
2305+ * The HTML writer now uses `<del>` for strikeout.
2306+
2307+ * In HTML output with `--section-divs`, the classes `section` and
2308+ `level[1,2,..6]` are put on the `div` tags so they can be styled.
2309+ In HTML 5 output with `--section-divs`, the classes
2310+ `level[1,2,...6]` are put on `section` tags.
2311+
2312+ * EPUB writer changes:
2313+
2314+ + The `lang` variable now sets the language
2315+ in the metadata (if it is not set, we default to the locale).
2316+ + EPUB: UTF-8 is used rather than decimal entities.
2317+
2318+ * Added `titleslide` class to title slide in S5 template.
2319+
2320+ * In HTML, EPUB, and docx metadata, the date is normalized into
2321+ YYYY-MM-DD format if possible. (This is required for validation.)
2322+
2323+ * Attributes in highlighted code blocks are now preserved in HTML.
2324+ The container element will have the classes, id, and key-value attributes
2325+ you specified in the delimited code block. Previously these were stripped
2326+ off.
2327+
2328+ * The reference backlink in the HTML writer no longer has a special
2329+ `footnoteBacklink` class.
2330+
2331+ * The HTML template has been split into `html` and `html5` templates.
2332+
2333+ * Author and date are treated more consistently in HTML templates.
2334+ Authors are now `<h2>`, date `<h3>`.
2335+
2336+ * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
2337+
2338+ * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
2339+
2340+ [bug fixes]
2341+
2342+ * Better support for combining characters and East Asian wide characters
2343+ in markdown and reST.
2344+
2345+ * Better handling of single quotes with `--smart`.
2346+ Previously `D'oh l'*aide*` would be parsed with left and right single
2347+ quotes instead of apostrophes. This kind of error is now fixed.
2348+
2349+ * Highlighting: Use `reads` instead of `read` for better error handling.
2350+ Fixes crash on `startNum="abc"`.
2351+
2352+ * Added blank comment after directives in rst template.
2353+
2354+ * Unescape entities in citation `refId`. The `refId`s coming
2355+ from citeproc contain XML numeric entities, and these don't match with the
2356+ citation keys parsed by pandoc. Solution is to unescape them.
2357+
2358+ * HTML reader: Fixed bug parsing tables with both thead and tbody.
2359+
2360+ * Markdown reader:
2361+
2362+ + Better handling of escapes in link URLs and titles.
2363+ + Fixed backslash escapes in reference links.
2364+ + Fixed bug in table/hrule parsing, by checking that the top
2365+ line of a table is not followed by a blank line. This bug caused
2366+ slowdowns on some files with hrules and tables, as pandoc tried to
2367+ interpret the hrules as the tops of multiline tables.
2368+ + Fixed bug in code block attribute parser. Previously the ID attribute
2369+ got lost if it didn't come first. Now attributes can come in any order.
2370+
2371+ * RST reader: allow footnotes followed by newline without space characters.
2372+
2373+ * LaTeX reader:
2374+
2375+ + Ignore empty groups {}, { }.
2376+ + LaTeX reader: Handle \@.
2377+ + LaTeX reader: Don't crash on commands like `\itemsep`.
2378+ + LaTeX reader: Better handling of letter environments.
2379+
2380+ * RST writer: Fixed bug involving empty table cells. isSimple was being
2381+ calculated in a way that assumed there were no non-empty cells.
2382+
2383+ * ConTeXt writer:
2384+
2385+ + Made `--toc` work even without `--number-sections`.
2386+ + Escape # in link URLs.
2387+ + Use buffering for footnotes containing code blocks.
2388+ + Changed 'descr' to 'description', fixed alignment.
2389+
2390+ * LaTeX writer:
2391+
2392+ + Escape euro character.
2393+ + Don't escape ~ inside href{...}.
2394+ + Escape # in href URLs.
2395+ + Improved detection of book classes. We now check the
2396+ `documentclass` variable, and if that is not set, we look through
2397+ the template itself. Also, we have added the KOMA classes scrreprt
2398+ and scrbook. You can now make a book using
2399+ `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
2400+ + LHS files now set the "listings" variable, so that the definition
2401+ of the `code` environment will be included in the template.
2402+ + Links are colored blue by default (this can be changed by
2403+ modifying `hyperref` settings in the template).
2404+ + Added `lang` variable to LaTeX template.
2405+
2406+ * HTML writer:
2407+
2408+ + Fixed bug in HTML template with html5 and mathml.
2409+ + Don't use self-closing img, br, hr tags for HTML5.
2410+ + Use `<section>` for footnotes if HTML5.
2411+ + Update HTML templates to use Content-Style-Type meta tag.
2412+ + Use separate variables for meta-date, meta-author.
2413+ This makes footnotes work in author and date fields.
2414+ + Use 'vertical-align:middle' in WebTeX math for better alignment.
2415+
2416+ * S5/slidy writer: Make footnotes appear on separate slide at end.
2417+
2418+ * MIME: Added 'layout-cache' to getMimeType. This ensures that the
2419+ META-INF/manifest.xml for ODT files will have everything it needs, so
2420+ that ODT files modified by LibreOffice can be used as `--reference-odt`.
2421+
2422+ * `Text.Pandoc.Templates`: Return empty string for json template.
2423+
2424+ * `Text.Pandoc.Biblio`:
2425+
2426+ + Expand citations recursively inside nested inlines.
2427+ + Treat `\160` as space when parsing locator and suffix.
2428+ This fixes a bug with "p. 33" when `--smart` is used. Previously
2429+ the whole "p. 33" would be included in the suffix, with no locator.
2430+ + Put whole author-in-text citation in a Cite. Previously just the
2431+ date and other info went in the Cite.
2432+ + Don't add comma+space to prefix if it ends in punctuation.
2433+
2434+ * Updated chicago-author-date.csl. The old version did not work
2435+ properly for edited volumes with no author.
2436+
2437+ * EPUB writer:
2438+
2439+ + Add date to EPUB titlepage and metadata.
2440+ + Added TOC identifier in EPUB page template.
2441+ + Don't generate superfluous file `cover-image.jpg`.
2442+
2443+ [under the hood improvements]
2444+
2445+ * Modified `make_osx_package.sh` to use cabal-dev.
2446+ Items are no longer installed as root.
2447+ Man pages are zipped and given proper permissions.
2448+
2449+ * Modified windows installer generater to use cabal-dev.
2450+
2451+ * Setup: Making man pages now works with cabal-dev (at least on OSX). In
2452+ Setup.hs we now invoke 'runghc' in a way that points it to the correct
2453+ package databases, instead of always falling back to the default user
2454+ package db.
2455+
2456+ * Updated to work with GHC 7.4.1.
2457+
2458+ * Removed dependency on old-time.
2459+
2460+ * Removed dependency on dlist.
2461+
2462+ * New slidy directory for "self-contained."
2463+
2464+ * TeXMath writer: Use unicode thin spaces for thin spaces.
2465+
2466+ * Markdown citations: don't strip off initial space in locator.
2467+
2468+ [API changes]
2469+
2470+ * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
2471+ from the native `Inline` type in pandoc-types. Now we use `Str`
2472+ elements with unicode.
2473+
2474+ * Improvements to `Text.Pandoc.Builder`:
2475+
2476+ + `Inlines` and `Blocks` are now newtypes (not synonyms for
2477+ sequences).
2478+ + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
2479+ and a new `Listable` class, which allows these to be manipulated
2480+ to some extent like lists. Monoid append includes automatic
2481+ normalization.
2482+ + `+++` has been replaced by `<>` (mappend).
2483+
2484+ * Use blaze-html instead of xhtml for HTML generation.
2485+ This changes the type of `writeHtml`.
2486+
2487+ * `Text.Pandoc.Shared`:
2488+
2489+ + Added `warn` and `err`.
2490+ + Removed `unescapeURI`, modified `escapeURI`.
2491+ (See under [behavior changes], above.)
2492+
2493+ * Changes in URI escaping: Previously the readers escaped URIs by
2494+ converting unicode characters to octets and then percent encoding.
2495+ Now unicode characters are left as they are, and `escapeURI` only
2496+ percent-encodes space characters. This gives more readable
2497+ URIs, and works well with modern user agents. URIs are no longer unescaped
2498+ at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
2499+
2500+ * New module `Text.Pandoc.SelfContained`.
2501+
2502+ * New module `Text.Pandoc.Docx`.
2503+
2504+ * New module `Text.Pandoc.PDF`.
2505+
2506+ * Added `writerBeamer` to `WriterOptions`.
2507+
2508+ * Added `normalizeDate` to `Text.Pandoc.Shared`.
2509+
2510+ * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
2511+ This is like `splitWithIndices`, but it is sensitive to distinctions
2512+ between wide, combining, and regular characters.
2513+
2514+ * `Text.Pandoc.Pretty`:
2515+
2516+ + Added `chomp` combinator.
2517+ + Added `beforeNonBreak` combinator. This allows you to include
2518+ something conditionally on it being before a nonblank.
2519+ Used for RST inline math.
2520+ + Added `charWidth` function. All characters marked W or F in the unicode
2521+ spec EastAsianWidth.txt get width 2.
2522+ + Added `realLength`, based on `charWidth`. `realLength` is now
2523+ used in calculating offsets.
2524+
2525+ * New module `Text.Pandoc.Slides`, for common functions for breaking
2526+ a document into slides.
2527+
2528+ * Removed `Text.Pandoc.S5`, which is no longer needed.
2529+
2530+ * Removed `Text.Pandoc.CharacterReferences`. Moved
2531+ `characterReference` to `Text.Pandoc.Parsing`.
2532+ `decodeCharacterReferences` is replaced by `fromEntities`
2533+ in `Text.Pandoc.XML`.
2534+
2535+ * Added `Text.Pandoc.ImageSize`. This is intened for use
2536+ in `docx` and `odt` writers, so the size and dpi of images
2537+ can be calculated.
2538+
2539+ * Removed `writerAscii` in `WriterOptions`.
2540+
2541+ * Added `writerHighlight` to `WriterOptions`.
2542+
2543+ * Added `DZSlides` to `HTMLSlideVariant`.
2544+
2545+ * `writeEPUB` has a new argument for font files to embed.
2546+
2547+ * Added `stateLastStrPos` to `ParserState`. This lets us keep track
2548+ of whether we're parsing the position immediately after a regular
2549+ (non-space, non-symbol) string, which is useful for distinguishing
2550+ apostrophes from single quote starts.
2551+
2552+ * `Text.Pandoc.Parsing`:
2553+
2554+ + `escaped` now returns a `Char`.
2555+ + Removed `charsInBalanced'`, added a character parser as
2556+ a parameter of `charsInBalanced`. This is needed for
2557+ proper handling of escapes, etc.
2558+ + Added `withRaw`.
2559+
2560+ * Added `toEntities` to `Text.Pandoc.XML`.
2561+
2562+ * `Text.Pandoc.Readers.LaTeX`:
2563+
2564+ + Export `handleIncludes`.
2565+ + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
2566+
2567+ * Added `ToJsonFilter` class and `toJsonFilter` function to
2568+ `Text.Pandoc`, deprecating the old `jsonFilter` function.
2569+
2570+ * `Text.Pandoc.Highlighting`:
2571+
2572+ + Removed `highlightHtml`, `defaultHighlightingCss`.
2573+ + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
2574+ key functions from highlighting-kate.
2575+ + Changed types of highlighting function. `highlight` returns a
2576+ `Maybe`, not an `Either`.
2577+
2578+pandoc (1.8.2.1)
2579+
2580+ * Relaxed cabal consntraints for test-framework (S. Trofimovich).
2581+
2582+ * Relaxed cabal constraints for pandoc-types.
2583+
2584+ * Adjusted Arbitrary instance to help avoid timeouts in tests.
2585+
2586+ * Added `Tests.Writers.Markdown` to cabal file.
2587+
2588+pandoc (1.8.2)
2589+
2590+ * Added script to produce OS X package.
2591+
2592+ * Made `templates` directory a git submodule. This should make it
2593+ easier for people to revise their custom templates when the default
2594+ templates change.
2595+
2596+ * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
2597+ **Note:** If you have existing templates in `~/.pandoc/templates`, you
2598+ must rename them to conform to the new scheme!
2599+
2600+ * Fixed smart quotes bug, now handling `'...hi'` properly.
2601+
2602+ * RST reader:
2603+
2604+ + Partial support for labeled footnotes.
2605+ + Improved accuracy of `simpleReferenceName` parser.
2606+
2607+ * HTML reader:
2608+
2609+ + Substitute correct unicode characters for
2610+ characters in the 128..159 range, which are often found even in
2611+ HTML that purports to be UTF-8.
2612+
2613+ * LaTeX reader: Handle `\subtitle` command (a subtitle is added
2614+ to the title, after a colon and linebreak). Closes #280.
2615+
2616+ * Leaner `reference.odt`.
2617+
2618+ * Added unexported module `Text.Pandoc.MIME` for use in
2619+ the ODT writer.
2620+
2621+ * ODT writer: Construct `manifest.xml` based on archive contents.
2622+ This fixes a bug in ODTs containing images. Recent versions of
2623+ LibreOffice would reject these as corrupt, because `manifest.xml`
2624+ did not contain a reference to the image files.
2625+
2626+ * LaTeX writer:
2627+
2628+ + Make verbatim environments flush to avoid spurious
2629+ blank lines. Closes #277.
2630+ + Use `\texttt` and escapes insntead of `\verb!...!`, which
2631+ is too fragile (doesn't work in command arguments).
2632+ + Use `\enquote{}` for quotes if the template includes
2633+ the `csquotes` package. This provides better support for
2634+ local quoting styles. (Thanks to Andreas Wagner for the idea.)
2635+
2636+ * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
2637+ margin, preventing spurious blank lines.
2638+
2639+ * Slidy writer:
2640+
2641+ + Use non-minimized version of `slidy.css` with `--offline`
2642+ option, so users can more easily edit it.
2643+ + Also fixed a bug in the CSS that prevented proper centering
2644+ of title (now reported and fixed upstream).
2645+
2646+ * S5 writer:
2647+
2648+ + Replaced `s5/default/slides.js.{comment,packed}` with
2649+ new compressed `s5/default/slides.min.js`.
2650+ + Use `data:` protocol to embed S5 CSS in `<link>` tags,
2651+ when `--offline` is specified. Using inline CSS didn't
2652+ work with Chrome or Safari. This fixes offline
2653+ S5 on those browsers.
2654+
2655+ * HTML writer: Removed English title on footnote backlinks.
2656+ This is incongrous in non-English documents.
2657+
2658+ * Docbook writer:
2659+
2660+ + Use CALS tables. (Some older docbook software does not work
2661+ well with XHTML tables.) Closes #77.
2662+ + Use `programlisting` tags (instead of `screen`) for code blocks.
2663+
2664+ * `markdown2pdf`:
2665+
2666+ + Calls latex with `-halt-on-error -interaction nonstopmode` instead
2667+ of `-interaction=batchmode`, which essentially just ignored errors,
2668+ leading to bad results. Better to know when something is wrong.
2669+ + Fixed issues with non-UTF-8 output of `pdflatex`.
2670+ + Better error reporting.
2671+
2672+ * `--mathjax` now takes an optional URL argument. If it is not
2673+ provided, pandoc links directly to the (secure) mathjax CDN,
2674+ as now recommended (thanks to dsanson).
2675+
2676+ * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
2677+ since the LaTeX writer now produces a file that can be processed by
2678+ `latex`, `pdflatex`, `lualatex`, or `xelatex`.
2679+
2680+ * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
2681+ to be used to create the PDF.
2682+
2683+ * If a template specified with `--template` is not found, look for it
2684+ in `datadir`. Also, if no extension is provided, supply one based
2685+ on the writer. So now you can put your `special.latex` template in
2686+ `~/.pandoc/templates`, and use it from any directory via
2687+ `pandoc -t latex --template special`.
2688+
2689+ * Default template improvements:
2690+
2691+ + HTML: Display author and date after title.
2692+ + HTML: Made table of contents more customizable. The container
2693+ for the TOC is now in the template, so users can insert a header
2694+ or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
2695+ + HTML, Slidy, S5: Enclose scripts in CDATA tags.
2696+ + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
2697+ hard-coding. If you want to put your slidy files in the slidy
2698+ subdirectory, for example, you can do
2699+ `pandoc -t slidy -V slidy-url=slidy -s`.
2700+ + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
2701+ & writer). Closes #279.
2702+ + LaTeX: Use different `hyperref` options for `xetex`, fixing
2703+ problems with unicode bookmarks (thanks to CircleCode).
2704+ + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
2705+ with `inputenc`. This covers fewer characters but is more
2706+ robust with other packages, and `ucs` is unmaintained. Users
2707+ who need better unicode support should use xelatex or lualatex.
2708+
2709+pandoc (1.8.1.2)
2710+
2711+ * Added `--epub-cover-image` option.
2712+
2713+ * Documented `--biblatex` and `--natbib` options.
2714+
2715+ * Allow `--section-divs` with slidy output. Resolves Issue #296.
2716+
2717+ * Disallow notes within notes in reST and markdown.
2718+ These previously caused infinite looping and stack overflows.
2719+ For example:
2720+
2721+ [^1]
2722+
2723+ [^1]: See [^1]
2724+
2725+ Note references are allowed in reST notes, so this isn't a full
2726+ implementation of reST. That can come later. For now we need to
2727+ prevent the stack overflows. Partially resolves Issue #297.
2728+
2729+ * EPUB writer: Allow non-plain math methods.
2730+
2731+ * Forbid ()s in citation item keys. Resolves Issue #304: problems with
2732+ `(@item1; @item2)` because the final paren was being parsed as part of
2733+ the item key.
2734+
2735+ * Changed URI parser so it doesn't include trailing punctuation.
2736+ So, in RST, `http://google.com.` should be parsed as a link followed by a
2737+ period. The parser is smart enough to recognize balanced parentheses, as
2738+ often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
2739+
2740+ * Markdown+lhs reader: Require space after inverse bird tracks, so that
2741+ HTML tags can be used freely at the left margin of a markdown+lhs document.
2742+ Thanks to Conal Elliot for the suggestion.
2743+
2744+ * Markdown reader:
2745+
2746+ + Improved emph/strong parsing; fixes bug found by Perry Wagle.
2747+ + Fixed bug in footnote order (reported by CircleCode).
2748+
2749+ * RST reader:
2750+ + Fixed bug in in field lists with multi-line items at the
2751+ end of the list.
2752+ + Added parentheses to RST `specialChars`, so
2753+ `(http://google.com)` will be parsed as a link in parens.
2754+ Resolves Issue #291.
2755+ + Allow `|` followed by newline in RST line block.
2756+
2757+ * LaTeX reader:
2758+ + Support `\dots`.
2759+ + Gobble option & space after linebreak `\\[10pt]`.
2760+
2761+ * Textile reader:
2762+ + Make it possible to have colons after links. (qerub)
2763+ + Make it possible to have colons after links. (Christoffer Sawicki)
2764+
2765+ * HTML reader:
2766+ + Skip spaces after `<b>`, `<emph>`, etc.
2767+ + Handle tbody, thead in simple tables. Closes #274.
2768+ + Implicit `Para`s instead of `Plains` in some contexts.
2769+
2770+ * OpenDocument writer: Use special `First paragraph` style for
2771+ first paragraph after most non-paragraph blocks. This allows users to
2772+ specify e.g. that only paragraphs after the first paragraph of a block are
2773+ to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
2774+
2775+ * LaTeX writer: use `deVerb` on table and picture captions.
2776+ Otherwise LaTeX complains about `\verb` inside command argument.
2777+ Thanks to bbanier for reporting the bug.
2778+
2779+ * Markdown writer: Insert HTML comment btw list and indented code block.
2780+ This prevents the code block from being interpreted as part of the list.
2781+
2782+ * EPUB writer: Add a meta element specify the cover.
2783+ Some EPUB e-readers, such as the Nook, require a meta element inside the
2784+ OPF metadata block to ensure the cover image is properly displayed.
2785+ (Kelsey Hightower)
2786+
2787+ * HTML writer: Use embed tag for images with non-image extensions.
2788+ (e.g. PDFs). Closes #264.
2789+
2790+ * LaTeX writer: Improved tables.
2791+
2792+ + More space between lines, top-align cells.
2793+ + Use ctable package, which allows footnotes and
2794+ provides additional options.
2795+ + Made cell alignments work in multiline tables.
2796+ + Closes #271, #272.
2797+
2798+ * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
2799+ Also do this when copying image files into EPUBs and ODTs.
2800+ Closes #263.
2801+
2802+ * Changed to github issue tracker.
2803+
2804+ * Added failing emph/strong markdown test case due to Perry Wagle.
2805+
2806+ * Slidy improvements:
2807+ + Updated to use Slidy2.
2808+ + Fixed bug, unclosed div tag.
2809+ + Added `duration` variable in template.
2810+ Setting this activates the timer.
2811+ + Use 'titlepage' instead of 'cover' for title div.
2812+
2813+pandoc (1.8.1.1)
2814+
2815+ * `markdown2pdf`: Removed some debugging lines accidentally included
2816+ in the 1.8.1 release. With those lines, the temp directory is created
2817+ in the working directory, and it is not deleted. This fix restores
2818+ the original behavior.
2819+
2820+pandoc (1.8.1)
2821+
2822+ * Added `--ascii` option. Currently supported only in HTML writer,
2823+ which it causes to use numerical entities instead of UTF-8.
2824+
2825+ * EPUB writer: `--toc` now works to provide a table of contents
2826+ at the beginning of each chapter.
2827+
2828+ * LaTeX writer: Change figure defaults to `htbp`.
2829+ This prevents "too many unprocessed floats." Resolves
2830+ Issue #285.
2831+
2832+ * `Text.Pandoc.UTF8`: Encode filenames even when using recent
2833+ base.
2834+
2835+ * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
2836+ Tanimoto. Resolves Issue #286.
2837+
2838+ * HTML writer: Put line breaks in section divs.
2839+
2840+ * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
2841+
2842+pandoc (1.8.0.3)
2843+
2844+ * Fixed Source-repository stanza in cabal file.
2845+
2846+pandoc (1.8.0.2)
2847+
2848+ * HTML writer:
2849+
2850+ + Stringify alt text instead of converting to HTML.
2851+ + Break lines after block elements, not inside tags.
2852+ HTML output now closely resembles that of tidy. Resolves Issue #134.
2853+
2854+ * Markdown reader: Fixed bug in footnote block parser (pointed out
2855+ by Jesse Rosenthal). The problem arose when the blank line
2856+ at the end of a footnote block contained indenting spaces.
2857+
2858+ * Shared: Improved 'normalize' function so it normalizes Spaces too.
2859+ In normal form, Space elements only occur to separate two non-Space
2860+ elements. So, we never have [Space], or [, ..., Space].
2861+
2862+ * Tests:
2863+
2864+ + Improved Arbitrary instance.
2865+ + Added timeout for test instances.
2866+
2867+ * README:
2868+
2869+ + Added section on four-space rule for lists. Resolves Issue #283.
2870+ + Clarified optional arguments on math options.
2871+
2872+ * markdown2pdf: Fixed bug with output file extensions.
2873+ Previously `markdown2pdf test.txt -o test.en.pdf` would produce
2874+ `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
2875+
2876+pandoc (1.8.0.1)
2877+
2878+ * Revised Interact.hs so that it works with the CPP macros
2879+ in the UTF8 module.
2880+
2881+ * Revised Setup.hs so that we don't call MakeManPage.hs unless
2882+ the man pages are out of date.
2883+
2884+pandoc (1.8)
2885+
2886+ [new features]
2887+
2888+ * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
2889+ You can now write, for example,
2890+
2891+ Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
2892+
2893+ and, when you process your document using `pandoc`, specifying
2894+ a citation style using `--csl` and a bibliography using `--bibliography`,
2895+ the citation will be replaced by an appropriately formatted
2896+ citation, and a list of works cited will be added to the end
2897+ of the document.
2898+
2899+ This means that you can switch effortlessly between different citation
2900+ and bibliography styles, including footnote, numerical, and author-date
2901+ formats. The bibliography can be in any of the following formats: MODS,
2902+ BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
2903+ See the README for further details.
2904+
2905+ Citations are supported in the markdown reader, using a special
2906+ syntax, and in the LaTeX reader, using natbib or biblatex syntax.
2907+ (Thanks to Nathan Gass for the natbib and biblatex support.)
2908+
2909+ * New `textile` reader and writer. Thanks to Paul Rivier for contributing
2910+ the `textile` reader, an almost complete implementation of the textile
2911+ syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
2912+ Resolves Issue #51.
2913+
2914+ * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
2915+
2916+ * New `json` reader and writer, for reading and writing a JSON
2917+ representation of the native Pandoc AST. These are much faster
2918+ than the `native` reader and writer, and should be used for
2919+ serializing Pandoc to text. To convert between the JSON representation
2920+ and native Pandoc, use `encodeJSON` and `decodeJSON` from
2921+ `Text.JSON.Generic`.
2922+
2923+ * A new `jsonFilter` function in `Text.Pandoc` makes it easy
2924+ to write scripts that transform a JSON-encoded pandoc document.
2925+ For example:
2926+
2927+ -- removelinks.hs - removes links from document
2928+ import Text.Pandoc
2929+ main = interact $ jsonFilter $ bottomUp removeLink
2930+ where removeLink (Link xs _) = Emph xs
2931+ removeLink x = x
2932+
2933+ To use this to remove links while translating markdown to LaTeX:
2934+
2935+ pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
2936+
2937+ * Attributes are now allowed in inline `Code` elements, for example:
2938+
2939+ In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
2940+
2941+ The attribute syntax is the same as for delimited code blocks.
2942+ `Code` inline has an extra argument place for attributes, just like
2943+ `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
2944+ is compiled with highlighting support. Resolves Issue #119.
2945+
2946+ * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
2947+ `HtmlInline`, and `TeX`) provide lots of flexibility in writing
2948+ scripts to transform Pandoc documents. Scripts can now change
2949+ how each element is rendered in each output format.
2950+
2951+ * You can now define LaTeX macros in markdown documents, and pandoc
2952+ will apply them to TeX math. For example,
2953+
2954+ \newcommand{\plus}[2]{#1 + #2}
2955+ $\plus{3}{4}$
2956+
2957+ yields `3+4`. Since the macros are applied in the reader, they
2958+ will work in every output format, not just LaTeX.
2959+
2960+ * LaTeX macros can also be used in LaTeX documents (both in math
2961+ and in non-math contexts).
2962+
2963+ * A new `--mathjax` option has been added for displaying
2964+ math in HTML using MathJax. Resolves issue #259.
2965+
2966+ * Footnotes are now supported in the RST reader. (Note, however,
2967+ that unlike docutils, pandoc ignores the numeral or symbol used in
2968+ the note; footnotes are put in an auto-numbered ordered list.)
2969+ Resolves Issue #258.
2970+
2971+ * A new `--normalize` option causes pandoc to normalize the AST
2972+ before writing the document. This means that, for example,
2973+ `*hi**there*` will be rendered as `<em>hithere</em>`
2974+ instead of `<em>hi</em><em>there</em>`. This is not the default,
2975+ because there is a significant performance penalty.
2976+
2977+ * A new `--chapters` command-line option causes headers
2978+ in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
2979+ Resolves Issue #265.
2980+
2981+ * In DocBook output, `<chapter>` is now used for top-level
2982+ headers if the template contains `<book>`. Resolves Issue #265.
2983+
2984+ * A new `--listings` option in `pandoc` and `markdown2pdf` causes
2985+ the LaTeX writer to use the listings package for code blocks.
2986+ (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
2987+ Millon for the markdown2pdf patch.)
2988+
2989+ * `markdown2pdf` now supports `--data-dir`.
2990+
2991+ * URLs in autolinks now have class "url" so they can be styled.
2992+
2993+ * Improved prettyprinting in most formats. Lines will be wrapped
2994+ more evenly and duplicate blank lines avoided.
2995+
2996+ * New `--columns` command-line option sets the column width for
2997+ line wrapping and relative width calculations for tables.
2998+
2999+ * Made `--smart` work in HTML, RST, and Textile readers, as well
3000+ as markdown.
3001+
3002+ * Added `--html5` option for HTML5 output.
3003+
3004+ * Added support for listings package in LaTeX reader
3005+ (Puneeth Chaganti).
3006+
3007+ * Added support for simple tables in the LaTeX reader.
3008+
3009+ * Added support for simple tables in the HTML reader.
3010+
3011+ * Significant performance improvements in many readers and writers.
3012+
3013+ [API and program changes]
3014+
3015+ * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
3016+ auxiliary package, `pandoc-types`. This will make it possible for other
3017+ programs to supply output in Pandoc format, without depending on the whole
3018+ pandoc package.
3019+
3020+ * Added `Attr` field to `Code`.
3021+
3022+ * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
3023+ `RawBlock` and `RawInline`.
3024+
3025+ * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
3026+ `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
3027+ Removed previously deprecated functions `processPandoc` and `queryPandoc`.
3028+
3029+ * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
3030+
3031+ * `Text.Pandoc` now exports association lists `readers` and `writers`.
3032+
3033+ * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
3034+ `readNative` can now read full pandoc documents, block lists, blocks,
3035+ inline lists, or inlines. It will interpret `Str "hi"`
3036+ as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
3037+ This should make testing easier.
3038+
3039+ * Removed deprecated `-C/--custom-header` option.
3040+ Use `--template` instead.
3041+
3042+ * `--biblio-file` has been replaced by `--bibliography`.
3043+ `--biblio-format` has been removed; pandoc now guesses the format
3044+ from the file extension (see README).
3045+
3046+ * pandoc will treat an argument as a URI only if it has an
3047+ `http(s)` scheme. Previously pandoc would treat some
3048+ Windows pathnames beginning with `C:/` as URIs.
3049+
3050+ * The `--sanitize-html` option and the `stateSanitize` field in
3051+ `ParserState` have been removed. Sanitization is better done in the
3052+ resulting HTML using `xss-sanitize`, which is based on pandoc's
3053+ sanitization, but improved.
3054+
3055+ * pandoc now adds a newline to the end of its output in fragment
3056+ mode (= not `--standalone`).
3057+
3058+ * Added support for `lang` in `html` tag in the HTML template,
3059+ so you can do `pandoc -s -V lang=es`, for example.
3060+
3061+ * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
3062+ a boolean argument that selects between "inline" and
3063+ "block" HTML.
3064+
3065+ * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
3066+ Images are embedded in RTF output when possible (png, jpeg).
3067+ Resolves Issue #275.
3068+
3069+ * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
3070+ `pretty` package. Changed all writers that used
3071+ `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
3072+
3073+ * Rewrote `writeNative` using the new prettyprinting module. It is
3074+ now much faster. The output has been made more consistent and compressed.
3075+ `writeNative` is also now sensitive to writerStandalone`, and will simply
3076+ `print a block list if writerStandalone` is False.
3077+
3078+ * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
3079+ blocks and concatenate them, so a separate module is no longer needed.
3080+
3081+ * `Text.Pandoc.Shared`:
3082+
3083+ + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
3084+ `WriterOptions`.
3085+ + Added `normalize`.
3086+ + Removed unneeded prettyprinting functions:
3087+ `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
3088+ `BlockWrapper`, `wrappedBlocksToDoc`.
3089+ + Made `splitBy` take a test instead of an element.
3090+ + Added `findDataFile`, refactored `readDataFile`.
3091+ + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
3092+ + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
3093+
3094+ * `Text.Pandoc.Readers.HTML`:
3095+
3096+ + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
3097+ `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
3098+ `htmlBlockElement`, `htmlComment`
3099+ + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
3100+ `isTextTag`
3101+
3102+ * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
3103+ to `Text.Pandoc.Readers.Parsing`, and parameterized it with
3104+ an inline parser.
3105+
3106+ * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
3107+
3108+ * Ellipses are no longer allowed to contain spaces.
3109+ Previously we allowed '. . .', ' . . . ', etc. This caused
3110+ too many complications, and removed author's flexibility in
3111+ combining ellipses with spaces and periods.
3112+
3113+ * Allow linebreaks in URLs (treat as spaces). Also, a string of
3114+ consecutive spaces or tabs is now parsed as a single space. If you have
3115+ multiple spaces in your URL, use `%20%20`.
3116+
3117+ * `Text.Pandoc.Parsing`:
3118+
3119+ + Removed `refsMatch`.
3120+ + Hid `Key` constructor.
3121+ + Removed custom `Ord` and `Eq` instances for `Key`.
3122+ + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
3123+ + Generalized type on `readWith`.
3124+
3125+ * Small change in calculation of relative widths of table columns.
3126+ If the size of the header > the specified column width, use
3127+ the header size as 100% for purposes of calculating
3128+ relative widths of columns.
3129+
3130+ * Markdown writer now uses some pandoc-specific features when `--strict`
3131+ is not specified: `\` newline is used for a hard linebreak instead of
3132+ two spaces then a newline. And delimited code blocks are used when
3133+ there are attributes.
3134+
3135+ * HTML writer: improved gladTeX output by setting ENV appropriately
3136+ for display or inline math (Jonathan Daugherty).
3137+
3138+ * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
3139+
3140+ * LaTeX reader:
3141+
3142+ + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
3143+ + `\index{}` commands are skipped.
3144+
3145+ * Added `fontsize` variable to default LaTeX template.
3146+ This makes it easy to set the font size using `markdown2pdf`:
3147+ `markdown2pdf -V fontsize=12pt input.txt`.
3148+
3149+ * Fixed problem with strikeout in LaTeX headers when using
3150+ hyperref, by adding a command to the default LaTeX template
3151+ that disables `\sout` inside pdf strings. Thanks to Joost Kremers
3152+ for the fix.
3153+
3154+ * The `COLUMNS` environment variable no longer has any effect.
3155+
3156+ [under-the-hood improvements]
3157+
3158+ * Pandoc now compiles with GHC 7. (This alone leads to a
3159+ significant performance improvement, 15-20%.)
3160+
3161+ * Completely rewrote HTML reader using tagsoup as a lexer. The
3162+ new reader is faster and more accurate. Unlike the
3163+ old reader, it does not get bogged down on some input
3164+ (Issues #277, 255). And it handles namespaces in tags
3165+ (Issue #274).
3166+
3167+ * Replaced `escapeStringAsXML` with a faster version.
3168+
3169+ * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
3170+ for a significant performance boost.
3171+
3172+ * Improved performance of all readers by rewriting parsers.
3173+
3174+ * Simplified Text.Pandoc.CharacterReferences by using
3175+ entity lookup functions from TagSoup.
3176+
3177+ * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
3178+ from `System.IO` if base >= 4.2. This gives support for
3179+ windows line endings on windows.
3180+
3181+ * Remove duplications in documentation by generating the
3182+ pandoc man page from README, using `MakeManPage.hs`.
3183+
3184+ * README now includes a full description of markdown syntax,
3185+ including non-pandoc-specific parts. A new `pandoc_markdown`
3186+ man page is extracted from this, so you can look up markdown
3187+ syntax by doing `man pandoc_markdown`.
3188+
3189+ * Completely revised test framework (with help from Nathan Gass).
3190+ The new test framework is built when the `tests` Cabal flag is set. It
3191+ includes the old integration tests, but also some new unit and quickcheck
3192+ tests. Test output has been much improved, and you can now specify a glob
3193+ pattern after `cabal test` to indicate which tests should be run;
3194+ for example `cabal test citations` will run all the citation tests.
3195+
3196+ * Added a shell script, `stripansi.sh`, for filtering ANSI control
3197+ sequences from test output: `cabal test | ./stripansi.sh > test.log`.
3198+
3199+ * Added `Interact.hs` to make it easier to use ghci while developing.
3200+ `Interact.hs` loads `ghci` from the `src` directory, specifying
3201+ all the options needed to load pandoc modules (including
3202+ specific package dependencies, which it gets by parsing
3203+ dist/setup-config).
3204+
3205+ * Added `Benchmark.hs`, testing all readers + writers using criterion.
3206+
3207+ * Added `stats.sh`, to make it easier to collect and archive
3208+ benchmark and lines-of-code stats.
3209+
3210+ * Added upper bounds to all cabal dependencies.
3211+
3212+ * Include man pages in extra-source-files. This allows users to
3213+ install pandoc from the tarball without needing to build the man
3214+ pages.
3215+
3216+ [bug fixes]
3217+
3218+ * Filenames are encoded as UTF8. Resolves Issue #252.
3219+
3220+ * Handle curly quotes better in `--smart` mode. Previously, curly quotes
3221+ were just parsed literally, leading to problems in some output formats.
3222+ Now they are parsed as `Quoted` inlines, if `--smart` is specified.
3223+ Resolves Issue #270.
3224+
3225+ * Text.Pandoc.Parsing: Fixed bug in grid table parser.
3226+ Spaces at end of line were not being stripped properly,
3227+ resulting in unintended LineBreaks.
3228+
3229+ * Markdown reader:
3230+
3231+ + Allow HTML comments as inline elements in markdown.
3232+ So, `aaa <!-- comment --> bbb` can be a single paragraph.
3233+ + Fixed superscripts with links: `^[link](/foo)^` gets
3234+ recognized as a superscripted link, not an inline note followed by
3235+ garbage.
3236+ + Fixed regression, making markdown reference keys case-insensitive again.
3237+ Resolves Issue #272.
3238+ + Properly handle abbreviations (like `Mr.`) at the end of a line.
3239+ + Better handling of intraword underscores, avoiding exponential
3240+ slowdowns in some cases. Resolves Issue #182.
3241+ + Fixed bug in alignments in tables with blank rows in the header.
3242+
3243+ * RST reader:
3244+
3245+ + Field lists now allow spaces in field names, and
3246+ block content in field values. (Thanks to Lachlan Musicman
3247+ for pointing out the bug.)
3248+ + Definition list items are now always `Para` instead of
3249+ `Plain`, matching behavior of `rst2xml.py`.
3250+ + In image blocks, the description is parsed properly and
3251+ used for the alt attribute, not also the title.
3252+ + Skip blank lines at beginning of file. Resolves
3253+ Debian #611328.
3254+
3255+ * LaTeX reader:
3256+
3257+ + Improved parsing of preamble.
3258+ Previously you'd get unexpected behavior on a document that
3259+ contained `\begin{document}` in, say, a verbatim block.
3260+ + Allow spaces between `\begin` or `\end` and `{`.
3261+ + Support `\L` and `\l`.
3262+ + Skip comments inside paragraphs.
3263+
3264+ * LaTeX writer:
3265+
3266+ + Escape strings in `\href{..}`.
3267+ + In nonsimple tables, put cells in `\parbox`.
3268+
3269+ * OpenDocument writer: don't print raw TeX.
3270+
3271+ * Markdown writer:
3272+
3273+ + Fixed bug in `Image`. URI was getting unescaped twice!
3274+ + Avoid printing extra blank lines at the end if there are
3275+ no notes or references.
3276+
3277+ * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
3278+ This avoids unwanted interpretation as an optional argument.
3279+
3280+ * ConTeXt writer: Fixed problem with inline code. Previously
3281+ `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
3282+ If it contains neither, use `\type{}`; otherwise use `\mono{}`
3283+ with an escaped version of the string.
3284+
3285+ * `:` now allowed in HTML tags. Resolves Issue #274.
3286+
3287+pandoc (1.6)
3288+
3289+ [ John MacFarlane ]
3290+
3291+ * New EPUB and HTML Slidy writers. (Issue #122)
3292+
3293+ - EPUB is a standard ebook format, used in Apple's iBooks for
3294+ the iPad and iPhone, Barnes and Noble's nook reader, the Sony
3295+ reader, and many other devices.
3296+ - Slidy, like S5, is a system for producing HTML+javascript slide
3297+ shows.
3298+
3299+ * All input is assumed to be UTF-8, no matter what the locale and ghc
3300+ version, and all output is UTF-8. This reverts to pre-1.5 behavior.
3301+ Also, a BOM, if present, is stripped from the input.
3302+
3303+ * Markdown now supports grid tables, whose cells can contain
3304+ arbitrary block elements. (Issue #43)
3305+
3306+ * Sequentially numbered example lists in markdown with `@` marker.
3307+
3308+ * Markdown table captions can begin with a bare colon and no longer need
3309+ to include the English word "table." Also, a caption can now occur
3310+ either before or after the table. (Issue #227)
3311+
3312+ * New command-line options:
3313+
3314+ - `--epub-stylesheet` allows you to specify a CSS file that will
3315+ be used to style your ebook.
3316+ - `--epub-metadata` allows you to specify metadata for the ebook.
3317+ - `--offline` causes the generated HTML slideshow to include all
3318+ needed scripts and stylesheets.
3319+ - `--webtex` causes TeX math to be converted to images using the
3320+ Google Charts API (unless a different URL is specified).
3321+ - `--section-divs` causes div tags to be added around each section
3322+ in an HTML document. (Issue #230, 239)
3323+
3324+ * Default behavior of S5 writer in standalone mode has changed:
3325+ previously, it would include all needed scripts and stylesheets
3326+ in the generated HTML; now, only links are included unless
3327+ the `--offline` option is used.
3328+
3329+ * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
3330+ pandoc would enclose sections in div tags with identifiers on the
3331+ div tags, so that the sections can be manipulated in javascript.
3332+ This caused undesirable interactions with raw HTML div tags. So,
3333+ starting with 1.6, the default is to put the identifiers directly
3334+ on the header tags, and not to include the divs. The `--section-divs`
3335+ option selects the 1.2-1.5 behavior.
3336+
3337+ * API changes:
3338+
3339+ - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
3340+ - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
3341+ `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
3342+ `writerIncludeAfter`.
3343+ - Added `headerShift` to `Text.Pandoc.Shared`.
3344+ - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
3345+ to a new module, `Text.Pandoc.Parsing`.
3346+ - Added `stateHasChapters` to `ParserState`.
3347+ - Added `HTMLSlideVariant`.
3348+ - Made `KeyTable` a map instead of an association list.
3349+ - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
3350+ `docDate`).
3351+ - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
3352+ instances.
3353+ - Reference keys now have a type of their own (`Key`), with its
3354+ own `Ord` instance for case-insensitive comparison.
3355+ - Added `Text.Pandoc.Writers.EPUB`.
3356+ - Added `Text.Pandoc.UUID`.
3357+ - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
3358+ Removed `saveOpenDocumentAsODT`, added `writeODT`.
3359+ - Added `Text.Pandoc.Writers.Native` and `writeNative`.
3360+ Removed `prettyPandoc`.
3361+ - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
3362+ - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
3363+ Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
3364+ To write S5, you now use `writeHtml` with `writerSlideVariant`
3365+ set to `S5Slides` or `SlidySlides`.
3366+
3367+ * Template changes. If you use custom templates, please update them,
3368+ particularly if you use syntax highlighting with pandoc. The old HTML
3369+ templates hardcoded highlighting CSS that will no longer work with
3370+ the most recent version of highlighting-kate.
3371+
3372+ - HTML template: avoid empty meta tag if no date.
3373+ - HTML template: Use default highlighting CSS from highlighting-kate
3374+ instead of hard-coding the CSS into the template.
3375+ - HTML template: insert-before text goes before the title, and
3376+ immediately after the <body> tag, as documented. (Issue #241)
3377+ - Added slidy and s5 templates.
3378+ - Added amssymb to preamble of latex template. (github Issue 1)
3379+
3380+ * Removed excess newlines at the end of output. Note: because output
3381+ will not contain an extra newline, you may need to make adjustments
3382+ if you are inserting pandoc's output into a template.
3383+
3384+ * In S5 and slidy, horizontal rules now cause a new slide, so you
3385+ are no longer limited to one slide per section.
3386+
3387+ * Improved handling of code in man writer. Inline code is now monospace,
3388+ not bold, and code blocks now use .nf (no fill) and .IP (indented para).
3389+
3390+ * HTML reader parses `<tt>` as Code. (Issue #247)
3391+
3392+ * html+lhs output now contains bird tracks, even when compiled without
3393+ highlighting support. (Issue #242)
3394+
3395+ * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
3396+ since they have a special meaning in XML.
3397+
3398+ * Code improvements in ODT writer. Remote images are now replaced with
3399+ their alt text rather than a broken link.
3400+
3401+ * LaTeX reader improvements:
3402+
3403+ - Made latex `\section`, `\chapter` parsers more forgiving of
3404+ whitespace.
3405+ - Parse `\chapter{}` in latex.
3406+ - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
3407+ - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
3408+ for use in markdown reader.
3409+ - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
3410+ in markdown document.
3411+
3412+ * LaTeX writer: images are automatically shrunk if they would extend
3413+ beyond the page margin.
3414+
3415+ * Plain, markdown, RST writers now use unicode for smart punctuation.
3416+
3417+ * Man writer converts math to unicode when possible, as in other writers.
3418+
3419+ * `markdown2pdf` can now recognize citeproc options.
3420+
3421+ * Command-line arguments are converted to UTF-8. (Issue #234)
3422+
3423+ * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
3424+ This allows it to handle a wider range of formulas. Also, if a formula
3425+ cannot be converted, it is left in raw TeX; formulas are no longer
3426+ partially converted.
3427+
3428+ * Unicode curly quotes are left alone when parsing smart quotes. (Issue
3429+ #143)
3430+
3431+ * Cabal file changes:
3432+
3433+ - Removed parsec < 3 restriction.
3434+ - Added 'threaded' flag for architectures where GHC lacks a threaded
3435+ runtime.
3436+ - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
3437+ - Require highlighting-kate 0.2.7.
3438+
3439+ * Use explicit imports from `Data.Generics`. Otherwise we have a
3440+ conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
3441+
3442+ * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
3443+
3444+pandoc (1.5.1.1)
3445+
3446+ [ John MacFarlane ]
3447+
3448+ * Fixed uniqueIdent in Shared so that header identifiers work as
3449+ advertized in the README and are are valid XHTML names.
3450+
3451+pandoc (1.5.1)
3452+
3453+ [ John MacFarlane ]
3454+
3455+ * Fixed treatment of unicode characters in URIs.
3456+ + Shared now exports escapeURI and unescapeURI. These handle
3457+ UTF8 encoding and decoding as well as URI escaping/unescaping.
3458+ + Shared: uri and emailAddress now return a pair of the original
3459+ parsed text and the escaped URI (in the latter case, with
3460+ the mailto: prefix).
3461+ + HTML reader: unsanitaryURI has been modified to allow unicode
3462+ high characters in a URI.
3463+ + Readers: All link and image URIs are now escaped using
3464+ escapeURI.
3465+ + Markdown and RST writers: unescapeURI is used so that URIs
3466+ in these formats are human-readable.
3467+
3468+ * Setup.hs: Don't assume that the build directory is "dist".
3469+ Instead, get it from localBuildInfo.
3470+
3471+ * OpenDocument writer: Use a Map for stTextStyleAttr.
3472+ This avoids duplicates (and invalid xml). Resolves Issue #222.
3473+
3474+pandoc (1.5.0.1)
3475+
3476+ [ John MacFarlane ]
3477+
3478+ * HTML writer: Fixed error in math writer (with MathML option)
3479+ that caused an infinite loop for unparsable MathML.
3480+
3481+pandoc (1.5)
3482+
3483+ [ John MacFarlane ]
3484+
3485+ * Added --mathml option. When this is selected, pandoc will convert
3486+ TeX math into MathML.
3487+ + Added data/MathMLinHTML.js, which is included when no URL is
3488+ provided for --mathml. This allows MathML to be displayed (in
3489+ better browsers) as text/html.
3490+ + Removed Text.Pandoc.LaTeXMathML. The module was no longer
3491+ necessary; it was replaced by two lines in pandoc.hs.
3492+ + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
3493+ single combined file, LaTeXMathML.js.
3494+
3495+ * Added --data-dir option.
3496+ This specifies a user data directory. If not specified, will default
3497+ to ~/.pandoc on unix or Application Data\pandoc on Windows.
3498+ Files placed in the user data directory will override system default
3499+ data files.
3500+
3501+ * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
3502+ latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
3503+ Nothing, no user directory is searched for an override.
3504+
3505+ * Added 'plain' output format. This is similar to markdown, but
3506+ removes links, pictures, inline formatting, and most anything that
3507+ looks even vaguely markupish. The function writePlain is exported by
3508+ Text.Pandoc.Writers.Markdown, with which it shares most of its code.
3509+
3510+ * Allow multi-line titles and authors in meta block.
3511+ Titles may span multiple lines, provided continuation lines
3512+ begin with a space character. Separate authors may be put on
3513+ multiple lines, provided each line after the first begins with
3514+ a space character. Each author must fit on one line. Multiple
3515+ authors on a single line may still be separated by a semicolon.
3516+ Based on a patch by Justin Bogner.
3517+
3518+ * When given an absolute URI as parameter, pandoc will try to fetch
3519+ the content via HTTP. So you can do:
3520+ 'pandoc -r html -w markdown http://www.fsf.org'
3521+ Adds dependency on HTTP.
3522+
3523+ * Made HTML reader much more forgiving.
3524+ + Incorporated idea (from HXT) that an element can be closed
3525+ by an open tag for another element.
3526+ + Javascript is partially parsed to make sure that a <script>
3527+ section is not closed by a </script> in a comment or string.
3528+ + More lenient non-quoted attribute values.
3529+ Now we accept anything but a space character, quote, or <>.
3530+ This helps in parsing e.g. www.google.com!
3531+ + Bare & signs are now parsed as a string. This is a common
3532+ HTML mistake.
3533+ + Skip a bare < in malformed HTML.
3534+
3535+ * Removed html2markdown and hsmarkdown.
3536+ + html2markdown is no longer needed, since you can now pass URI
3537+ arguments to pandoc and directly convert web pages. (Note,
3538+ however, that pandoc assumes the pages are UTF8. html2markdown
3539+ made an attempt to guess the encoding and convert them.)
3540+ + hsmarkdown is pointless -- a large executable that could be
3541+ replaced by 'pandoc --strict'.
3542+
3543+ * In most writers, an image in a paragraph by itself is now rendered
3544+ as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
3545+ MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
3546+ rendered inline.
3547+
3548+ * Depend on extensible-exceptions. This allows pandoc to be compiled
3549+ on GHC 6.8.
3550+
3551+ * Added --base-header-level option. For example, --base-header-level=2
3552+ will change level 1 headers to level 2, level 2 to level 3, etc.
3553+ Closes Debian #563416.
3554+
3555+ * Incomplete support for RST tables (simple and grid).
3556+ Thanks to Eric Kow. Colspans and rowspans not yet supported.
3557+
3558+ * Added accessors (docTitle, docAuthors, docDate) to Meta type.
3559+
3560+ * MediaWiki writer: format links with relative URLs as wikilinks.
3561+ The new rule: If the link target is an absolute URL, an external
3562+ link is created. Otherwise, a wikilink is created.
3563+
3564+ * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
3565+ identifier. Note: This may break links to sections that involve
3566+ tildes.
3567+
3568+ * Markdown(+lhs) reader: handle "inverse bird tracks."
3569+ Inverse bird tracks (<) are used for haskell example code that is not
3570+ part of the literate Haskell program. Resolves Issue #211.
3571+
3572+ * LaTeX reader:
3573+ + Recognize '\ ' (interword space).
3574+ + Recognize nonbreaking space '~'.
3575+ + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
3576+ section headers. Don't treat \section as inline LaTeX.
3577+ Resolves Issue #202.
3578+ + LaTeX reader: allow any special character to be escaped.
3579+ Resolves Issue #221.
3580+ + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
3581+ headers. Resolves Issue #207.
3582+
3583+ * Use template variables for include-before/after.
3584+ + These options now imply -s; previously they worked also in fragment
3585+ mode.
3586+ + Users can now adjust position of include-before and include-after
3587+ text in the templates.
3588+ + Default position of include-before moved back (as it was before 1.4)
3589+ before table of contents.
3590+ + Resolves Issue #217.
3591+
3592+ * Don't print an empty table header: (all writers).
3593+ Resolves Issue #210.
3594+
3595+ * HTML, Docbook writer: Use tbody, thead, and cols in tables.
3596+
3597+ * HTML writer: Don't include TOC div if table of contents is empty.
3598+
3599+ * Markdown writer: Fixed citations.
3600+ Previously the markdown writer printed raw citation codes, e.g.
3601+ [geach1970], rather than the expanded citations provided by
3602+ citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
3603+ This means that the document produced can be processed as a markdown
3604+ document without citeproc. Thanks to dsanson for reporting, and
3605+ Andrea Rossato for the patch.
3606+
3607+ * Improved and simplified title block in context template.
3608+ Previously it caused an error if there was no title.
3609+ This method should also be easier for users to customize.
3610+
3611+ * Markdown reader:
3612+ + Treat p., pp., sec., ch., as abbreviations in smart mode.
3613+ + Disallow blank lines in inline code span.
3614+ + Allow footnotes to be indented < 4 spaces.
3615+ This fixes a regression. A test case has been added.
3616+ + Escape spaces in URLs as %20. Previously they were incorrectly
3617+ escaped as +, which is appropriate only for the query part of
3618+ a URL. Resolves Issue #220.
3619+ + Require two spaces after capital letter + period for list item.
3620+ Otherwise "E. coli" starts a list. This might change the semantics
3621+ of some existing documents, since previously the two-space
3622+ requirement was only enforced when the second word started
3623+ with a capital letter. But it is consistent with the existing
3624+ documentation and follows the principle of least surprise.
3625+ Resolves Issue #212.
3626+
3627+ * LaTeX template: redefine labelwidth when using enumerate package.
3628+ Otherwise the list labels (numbers) often extend past the left
3629+ margin, which looks bad.
3630+
3631+ * Mediawiki writer: Don't print a "== Notes ==" header before
3632+ references. This is too English-centric. Writers can provide their
3633+ own header at the end of the document.
3634+
3635+ * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
3636+ level 2, etc. This seems to be correct; it's only by convention
3637+ that wikipedia articles have level 2 headers at most.
3638+ Patch due to Eric Kow.
3639+
3640+ * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
3641+ data files don't need to have been installed. This removes the need to
3642+ set HOME.
3643+
3644+ * HTML reader:
3645+ + Handle spaces before <html>. Resolves Issue #216.
3646+ + Be forgiving in parsing a bare list within a list.
3647+ The following is not valid xhtml, but the intent is clear:
3648+ <ol>
3649+ <li>one</li>
3650+ <ol><li>sub</li></ol>
3651+ <li>two</li>
3652+ </ol>
3653+ We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
3654+
3655+ * Updated INSTALL instructions. cabal method is now promoted.
3656+
3657+ * Updated markdown2pdf man page. It no longer says all pandoc options
3658+ are accepted.
3659+
3660+ * README/man pages: Removed advice to pipe through tidy before HTML
3661+ reader. This is obsolete, now that we have a forgiving HTML parser.
3662+
3663+ * LaTeX writer: set numbersections template variable, so
3664+ the section numbering options work again.
3665+
3666+ * Removed obsolete Makefile.
3667+
3668+ * Website: renamed index.txt.in -> index.txt.
3669+
3670+ * New batch file to make-windows-installer.
3671+ + Removed old Makefile.windows
3672+ + Added make-windows-installer.bat
3673+ + Modified default installer name in pandoc-setup.iss
3674+
3675+ * Removed freebsd and macports directories.
3676+ They are no longer up to date.
3677+
3678+ * Setup.hs:
3679+ + Made man page building sensitive to build verbosity.
3680+ + Improved detection of highlighting support in test hook.
3681+ + Install wrapper scripts into cabal bin directory.
3682+ + Also simplified installManpages.
3683+ + Setup.hs: install manpages to mandir. Code borrowed from darcs.
3684+
3685+ * Changed default of writerXeTeX to False.
3686+
3687+ * HTML writer: don't include empty UL if --toc but no sections.
3688+ Resolves Issue #199.
3689+
3690+ * LaTeX writer:
3691+
3692+ + If book, report, or memoir documentclass, use \chapter{}
3693+ for first-level headers. Otherwise use \section{}.
3694+ + Removed stLink, link template variable. Reason: we now always
3695+ include hyperref in the template.
3696+
3697+ * LaTeX template:
3698+
3699+ + Only show \author if there are some.
3700+ + Always include hyperref package. It is used not just for links but
3701+ for toc, section heading bookmarks, footnotes, etc. Also added
3702+ unicode=true on hyperref options.
3703+
3704+ * markdown2pdf: always do at least two runs. hyperref bookmarks
3705+ require this.
3706+
3707+ * cabal file: Removed unneeded dependency on template-haskell.
3708+
3709+ * Windows installer - fixed bug in data file locations.
3710+ Resolves Issue #197.
3711+
3712+ * Deprecated --custom-header in documentation.
3713+ Removed old "Custom Headers" section in README.
3714+
3715+pandoc (1.4)
3716+
3717+ [ John MacFarlane ]
3718+
3719+ * Pandoc will now compile with either GHC 6.10 or 6.12.
3720+ + Don't use System.IO.UTF8 when compiling with 6.12
3721+ + Use -fno-warn-unused-do-bind option when compiling with 6.12
3722+
3723+ * Replaced old headers with templates. Now users have much more
3724+ control over the way documents appear in --standalone mode,
3725+ and writer code is simplified. Resolves Issues #59, 147.
3726+ Every effort has been made to retain backwards compatibilty.
3727+ So, the --custom-header option should still work as before.
3728+
3729+ + Added Text.Pandoc.Templates. This provides functions for
3730+ retrieving default templates and for rendering templates.
3731+ + System templates (in the pandoc data directory) can be
3732+ overridden by user templates in $HOME/.pandoc/templates.
3733+ + Removed Text.Pandoc.DefaultHeaders.
3734+ + Removed data/headers directory.
3735+ + Added templates directory.
3736+ + Added writerTemplate and writerVariables fields to WriterOptions.
3737+ + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
3738+ + Changed --print-default-header to --print-default-template.
3739+ + Added --template option.
3740+ + Added -V/--variable option to set custom template variables.
3741+
3742+ * Pandoc no longer requires Template Haskell. Resolves Issue #186.
3743+
3744+ + Removed need for TH in ODT module. Instead get reference.odt from
3745+ data file at run time.
3746+ + Removed TH dependency from S5 module. S5 module now exports
3747+ s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
3748+ standalone.
3749+ + Refactored LaTeXMathML not to use TH.
3750+
3751+ * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
3752+ Meta [Inline] [String] String. Authors and date in Meta are now lists
3753+ of Inline elements rather than raw strings. This means that they can
3754+ be formatted and can include footnotes. NOTE: This may be a breaking
3755+ change for those using pandoc as a library.
3756+
3757+ * Added readDataFile to Text.Pandoc.Shared. This retrieves
3758+ a data file from the user pandoc data directory (~/.pandoc
3759+ on unix), or, if not found there, from the system data
3760+ directory ($CABALDIR/shared/pandoc-VERSION/). All data
3761+ files, including templates, LaTeXMathML.js, s5 styles,
3762+ and reference.odt, can be overridden by the user.
3763+
3764+ * s5 files moved from data/ui/default to s5/default.
3765+
3766+ * Use unicode instead of entities in HTML and XML output. Resolves
3767+ Issue #163.
3768+
3769+ * Prettier HTML footnote references: put anchor inside sup,
3770+ instead of other way. Resolves Issue #191. Thanks to
3771+ infinity0x.
3772+
3773+ * Added --xetex option to pandoc and markdown2pdf.
3774+ If --xetex is specified, pandoc produces latex suitable for
3775+ processing by xelatex, and markdown2pdf uses xelatex to create
3776+ the PDF. Resolves Issue #185.
3777+
3778+ * RTF writer: multiple authors now occupy multiple paragraphs rather
3779+ than using a line break.
3780+
3781+ * Man writer: now the "--after-body" will come after the "AUTHORS"
3782+ section, whereas before it would come before it. This is a
3783+ slight break from backwards compatibility.
3784+
3785+ * Added --reference-odt option, so users may customize the styles
3786+ used in pandoc-generated ODT files. Users may also place a
3787+ default reference.odt in the ~\.pandoc directory.
3788+
3789+ * ODT writer:
3790+ + Indented and line-broke styles.xml so it can be modified more easily.
3791+ + Omitted some unnecessary style declarations.
3792+ + Don't wrap text in OpenDocument writer. The tags are too long, making
3793+ wrapping ugly and pointless.
3794+
3795+ * LaTeX reader: use \\ to separate multiple authors.
3796+
3797+ * Markdown reader: use ; as separator between authors.
3798+ This allows you to use ',' within author names: e.g. "John Jones, Jr."
3799+
3800+ * S5 writer: use linebreak to separate authors in title page.
3801+
3802+ * RST reader: Allow :: before lhs code block. The RST spec requires the
3803+ :: before verbatim blocks. This :: should not be treated as literal
3804+ colons. Resolves Issue #189.
3805+
3806+ * Documented pandoc 1.3's new definition list syntax in README.
3807+ (An oversight in the last release.)
3808+
3809+ * markdown2pdf.hs:
3810+ + interpret ! in a log as an error line.
3811+ + --toc now works properly.
3812+
3813+ * Changes in RunTests.hs:
3814+ + Use the Diff library rather than a local copy of Diff.hs.
3815+ (This vastly increases performance.) This change means that 'cabal
3816+ test' presupposes that the Diff library is installed.
3817+ + Removed tests/Diff.hs from cabal file.
3818+ + Changed RunTests to use local environment. We need at least HOME, so
3819+ pandoc can find its data directory.
3820+
3821+ * Updated windows installer to install data files in the app directory.
3822+
3823+ * Windows installer now installs portable wrappers hsmarkdown and
3824+ markdown2pdf.
3825+
3826+pandoc (1.3)
3827+
3828+ [ John MacFarlane ]
3829+
3830+ * Added --id-prefix option (Issue #41). This adds a prefix to all
3831+ automatically generated HTML identifiers, which helps prevent
3832+ duplicate identifiers when you're generating a fragment (say a blog
3833+ post).
3834+
3835+ * Added --indented-code-classes option. This specifies classes
3836+ to use for indented code blocks. (Patch due to buttock; Issue #87.)
3837+
3838+ * --number-sections now affects HTML output as well as ConTeXt and LaTeX
3839+ (Issue #150).
3840+
3841+ * Improved syntax for markdown definition lists (Issue #24).
3842+ Definition lists are now more compatible with PHP Markdown Extra.
3843+ + You can have multiple definitions for a term (but still not
3844+ multiple terms).
3845+ + Multi-block definitions no longer need a column before each block
3846+ (indeed, this will now cause multiple definitions).
3847+ + The marker no longer needs to be flush with the left margin,
3848+ but can be indented at or two spaces. Also, ~ as well as :
3849+ can be used as the marker (this suggestion due to David
3850+ Wheeler.)
3851+ + There can now be a blank line between the term and the
3852+ definitions.
3853+
3854+ * Better looking simple tables. Resolves Issue #180.
3855+ + Markdown reader: simple tables are now given column widths of 0.
3856+ + Column width of 0 is interpreted as meaning: use default column width.
3857+ + Writers now include explicit column width information only
3858+ for multiline tables. (Exception: RTF writer, which requires
3859+ column widths. In this case, columns are given equal widths,
3860+ adding up to the text width.)
3861+ + Simple tables should now look better in most output formats.
3862+
3863+ * Allow markdown tables without headers (Issue #50).
3864+ The new syntax is described in README. Also allow optional line of
3865+ dashes at bottom of simple tables.
3866+
3867+ * Compensate for width of final table column (Issue #144).
3868+
3869+ * Treat a backslash followed by a newline as a hard line break
3870+ in markdown. Resolves Issue #154. This is a nice alternative
3871+ to markdown's "invisible" way of indicating hardline breaks
3872+ using lines that end with two spaces.
3873+
3874+ * Improved performance of markdown reader by ~10% by eliminating the
3875+ need for a separate parsing pass for notes. Raw notes are now stored
3876+ on the first pass (which parses references), then parsed when the
3877+ note is inserted into the AST. The stateNotes field in ParserState
3878+ is now a list of [(String, String)] pairs instead of [(String,
3879+ [Block])].
3880+
3881+ * In markdown reader, treat 4 or more * or _ in a row as literal
3882+ text. (Trying to parse long strings of * or _ as strong or emph
3883+ leads to exponential performance problems.)
3884+
3885+ * Markdown reader: Use + rather than %20 for spaces in URLs.
3886+
3887+ * Fixed htmlComment parser, adding a needed 'try'.
3888+
3889+ * Don't print raw HTML in man output.
3890+
3891+ * Allow . _ and ~ in header identifiers.
3892+
3893+ * Specially mark code blocks that were "literate" in the input.
3894+ They can then be treated differently in the writers. This allows
3895+ authors to distinguish bits of the literate program they are writing
3896+ from source code examples, even if the examples are marked as
3897+ Haskell for highlighting. (Issue #174.)
3898+
3899+ * Modified html+lhs output to use "haskell" highlighter instead
3900+ of "literateHaskell". The highlighting module now adds bird tracks
3901+ after highlighting (for HTML output), if the code block has the
3902+ "literate" class. This gives better results, because kate's
3903+ haskell highlighter is much better than the literateHaskell
3904+ highlighter.
3905+
3906+ * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
3907+ (Issue #137.)
3908+
3909+ * Support for "..code-block" directive in RST reader. Not core
3910+ RST, but used in Sphinx for code blocks annotated with syntax
3911+ information. Thanks to Luke Plant for the patch.
3912+
3913+ * Added "head" to list of block-level HTML tags. Resolves
3914+ Issue #108.
3915+
3916+ * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
3917+
3918+ * Set utf-8 encoding in texinfo headers.
3919+
3920+ * Docbook writer: add ids to sections. Use link for internal links.
3921+ (Issue #60.)
3922+
3923+ * Blank lines after lists in MediaWiki writer.
3924+
3925+ * Properly handle commented-out list items in markdown.
3926+ Resolves Issue #142. Example:
3927+
3928+ - a
3929+ <!--
3930+ - b
3931+ -->
3932+ - c
3933+
3934+ * Changed heuristic in compactify. compactify has to decide whether a
3935+ Para that ends a list is a Para intentionally, or just because of
3936+ the blank lines at the end of every list. In the latter case the
3937+ Para is turned to a Plain. The old heuristic was: change final Para
3938+ to Plain iff the other items all end in Plain. This produces bad
3939+ results when, for example, an item contains just a Plain and an HTML
3940+ comment, as it does in the list above. The new heuristic: change
3941+ final Para to Plain iff the other items don't contain a Para.
3942+
3943+ * Added % as an rst underline character. Resolves Issue #173.
3944+
3945+ * Fix inline math parser so that \$ is allowed in math.
3946+ Resolves Issue #169.
3947+
3948+ * Translate \int (integral) into unicode when using unicode math
3949+ method. Resolves Issue #177.
3950+
3951+ * markdown2pdf.hs improvements:
3952+ + Use System.IO.UTF8.
3953+ + Print error messages on last attempt.
3954+ + Do not create a backup when overwriting a PDF (Issue #166).
3955+ + Accept --longopt=val options.
3956+ + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
3957+ it is properly cleaned.
3958+
3959+ * Added haddock comments warning that readers assume \n line endings.
3960+
3961+ * Updated COPYRIGHT file.
3962+
3963+ * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
3964+ markdown2pdf. Otherwise strip tries to strip shell scripts when you
3965+ install using 'make'.
3966+
3967+ * Changed Makefile so it doesn't build Haskell wrappers.
3968+
3969+ * Fixed Makefile so it doesn't try to build man pages in build-doc.
3970+
3971+ * Install pcre3.dll in Windows install script; this allows us to
3972+ package a version of pandoc with highlighting support.
3973+
3974+pandoc (1.2.1)
3975+
3976+ [ John MacFarlane ]
3977+
3978+ * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
3979+ The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
3980+ side effect: strings of 0 spaces were interpreted as indentation.
3981+ So, with --preserve-tabs, unindented paragraphs were treated as
3982+ code. Resolves Issue #138.
3983+
3984+ * HTML writer: wrap sections in divs. Resolves Issue #70.
3985+
3986+ + hierarchicalize has been rationalized; it builds a hierarchical
3987+ representation of the document from the headers, and simultaneously
3988+ gives each section a unique identifier based on the heading title.
3989+ + Identifiers are now attached to the divs rather than
3990+ to the headers themselves.
3991+ + Table of content backlinks go to the beginning of the table, rather
3992+ than to the section reference that was clicked.
3993+ + Code for constructing identifiers has been moved to Text.Pandoc.Shared
3994+ from the HTML writer, since it is now consumed only by
3995+ hierarchicalize.
3996+ + In --strict mode, pandoc just prints bare headings, as before
3997+ (unless --toc has been specified).
3998+ + In s5 output, it does not wrap sections in divs, as that seems to
3999+ confuse the s5 javascript.
4000+
4001+ * Man writer: break lines at end of each sentence. groff expects this
4002+ and treats '.' and '?' differently when followed by line ending as
4003+ opposed to ordinary space. Also, don't escape periods. Instead, use
4004+ zero-width character \& to avoid unwanted interpretation of periods
4005+ at start of line. Resolves Issue #148.
4006+
4007+ * Markdown writer: Added '#' and '>' to list of characters to be
4008+ escaped in markdown output. Removed '<', as it is not an officially
4009+ escapable character. This partially resolves Issue #96.
4010+
4011+ * Make --smart the default for man output format. Otherwise we have
4012+ trouble dividing lists of endlines into sentences.
4013+
4014+ * DocBook writer: Use language attribute to indicate source language
4015+ in code blocks.
4016+
4017+ * RST reader:
4018+
4019+ + Allow # to continue list, even if the list was started with an
4020+ explicit marker. For example:
4021+
4022+ A. my list
4023+ #. continued
4024+
4025+ Resolves Issue #140.
4026+ + Allow continuation lines in line blocks. Also added test cases for
4027+ line blocks for RST reader. Resolves Issue #149.
4028+ + Allow explicit links with spaces in URL: `link <to this>`_
4029+
4030+ * Improved LaTeX reader's coverage of math modes. Remove displaymath*
4031+ (which is not in LaTeX) and recognize all the amsmath environments
4032+ that are alternatives to eqnarray, namely equation, equation*,
4033+ gather, gather*, gathered, multline, multline*, align, align*,
4034+ alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
4035+ Thanks to shreevatsa.public for the patch.
4036+
4037+ * Markdown reader:
4038+
4039+ + Allow -, _, :, . in markdown attribute names. These are legal in
4040+ XML attribute names.
4041+ + Use non-breaking spaces in abbreviations.
4042+ + Markdown reader: improved efficiency of abbreviation parsing.
4043+ Instead of a separate abbrev parser, we just check for
4044+ abbreviations each time we parse a string. This gives a huge
4045+ performance boost with -S. Resolves Issue #141.
4046+
4047+ * Improved efficiency of shared parsers: hexNum, htmlComment,
4048+ whitespace, indentSpaces.
4049+
4050+ * Export HTMLMathMethod in Text.Pandoc.
4051+
4052+ * Export languagesByExtension in Text.Pandoc.Highlighting.
4053+
4054+ * Added new Haskell version of markdown2pdf, due to
4055+ Paulo Tanimoto. This should be more portable than the old
4056+ shell script.
4057+
4058+ * Made 'pandoc -v' more explicit about compiler options.
4059+ Resolves Issue #139.
4060+
4061+ * pandoc.hs: Made --strict compatible with --standalone, --toc.
4062+
4063+ * Use Paths_pandoc to get version number, instead of hard-coding it
4064+ into Text/Pandoc.hs.
4065+
4066+pandoc (1.2)
4067+
4068+ [ John MacFarlane ]
4069+
4070+ * Added support for literate Haskell. lhs support is triggered by
4071+ '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
4072+ Haskell LaTeX. '.lhs' files are treated by default as literate
4073+ markdown.
4074+
4075+ + Added stateLiterateHaskell to parser state.
4076+ + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
4077+ + Added parser for |inline lhs| to LaTeX reader.
4078+ + Added writerLiterateHaskell to WriterOptions.
4079+ + Added lhs support to Markdown, RST, LaTeX, HTML writers.
4080+ + Added definition of code environment to LaTeX header.
4081+ + Added tests (run only if highlighting support compiled in).
4082+ + Documented lhs features in man page and README.
4083+
4084+ * In Text.Pandoc.Definition, added processWith, processWithM,
4085+ and queryWith, and deprecated processPandoc and queryPandoc
4086+ for these more general functions.
4087+
4088+ * Fixed bug in mediawiki writer: improper closing tags in tables.
4089+ Thanks to Benct Philip Jonsson for reporting the bug.
4090+
4091+ * Added --email-obfuscation option.
4092+
4093+ + Added writer option for email obfuscation.
4094+ + Implemented email obfuscation options in HTML writer.
4095+ + Added option to option parser.
4096+ + Documented in README and pandoc man page.
4097+ + Resolves Issue #97.
4098+
4099+ * LaTeX writer: fixed bug with empty table cells.
4100+ Resolves Issue #107. Thanks to rodja.trappe for the patch.
4101+
4102+ * Fixed bug with header spacing in Markdown and RST writers.
4103+ A null header (Meta [] [] []) should not cause a blank line
4104+ at the beginning of output. But a blank line is needed between
4105+ a non-null header and the main text.
4106+
4107+ * Markdown reader: Relax spacing rules for $$ in display math. Now
4108+ space and newlines are allowed after the opening $$ and before the
4109+ closing $$. However, the display math cannot contain an entirely
4110+ blank line. Resolves Issue #105.
4111+
4112+ * Markdown reader: Gobble space after Plain blocks containing only
4113+ raw html inline. Otherwise following header blocks are not parsed
4114+ correctly, since the parser sees blank space before them. Resolves
4115+ Issue #124.
4116+
4117+ * Markdown reader: Allow " as well as '' to end a latex double-quote.
4118+
4119+ * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
4120+ Resolves Issue #109.
4121+
4122+ * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
4123+
4124+ + Added hang' function to Text.Pandoc.Shared; this will be used instead
4125+ of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
4126+ is upgraded, we can go back to hang.
4127+ See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
4128+ + Use hang' (and some different techniques) in RST and markdown writers.
4129+ Some output is now a bit different.
4130+
4131+ * Brought citeproc support up to date for citeproc-hs-0.2.
4132+ (Patch by Andrea Rossato.)
4133+
4134+ * Moved all haskell source to src subdirectory. Renamed Main.hs to
4135+ pandoc.hs.
4136+
4137+ * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
4138+ For now, keeping the old shell script too.
4139+
4140+ * Added TemplateHaskell to Extensions for executable, removed
4141+ -threaded for library. Thanks to duncan.coutts for the bug report.
4142+ Resolves Issue #121.
4143+
4144+ * Moved some Extra-Source-Files to Data-Files.
4145+
4146+ * Moved tabFilter to Shared.
4147+
4148+ * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
4149+ preserve tabs.
4150+
4151+ * Minor code cleanup based on hlint suggestions.
4152+
4153+pandoc (1.1)
4154+
4155+ [ John MacFarlane ]
4156+
4157+ * Main.hs:
4158+
4159+ + Changed date on copyright message in Main.hs.
4160+ + Have the '-v' option print syntax highlighting languages
4161+ separated by commas, and wrapped in lines, instead of in five
4162+ columns as before.
4163+
4164+ * Added --jsmath option. Resolves Issue #68.
4165+
4166+ + Added --jsmath option to Main.hs
4167+ + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
4168+ + Handle math appropriately in HTML writer when JsMath selected.
4169+ + Documented the option in README and man page.
4170+
4171+ * Text.Pandoc.Shared: Changed compactify to use a better heuristic
4172+ for tight and loose lists. Final Para is changed to Plain if all
4173+ other list items *end* with a Plain block. Addresses Issue #99.
4174+
4175+ * HTML reader:
4176+
4177+ + Added colons to protocols in unsanitaryURI. Closes Issue #88.
4178+ + HTML reader: Don't interpret contents of <pre> blocks as markdown.
4179+ Added rawVerbatimBlock parser. Resolves Issue #94.
4180+
4181+ * Markdown reader:
4182+
4183+ + Allow URLs with spaces in them in links and references, but escape
4184+ them as "%20".
4185+ + Allow blank space at the end of horizontal rules.
4186+
4187+ * RST reader: Modified 'unknownDirective' parser to handle comment
4188+ blocks correctly, and added tests for comment blocks. Resolves Issue
4189+ #86. Closes Debian Bug #500662.
4190+
4191+ * HTML writer:
4192+
4193+ + Include classes on tr elements in HTML output:
4194+ "header", "odd", "even". This allows tables to be styled with
4195+ lines in alternating colors. Resolves Issue #91.
4196+ + Enclose all LaTeXMathML bits in <span class="LaTeX">.
4197+ This prevents parts of the document that are not math from being
4198+ interpreted as math by LaTeXMathML.js.
4199+
4200+ * OpenDocument and ODT writers: Added support for HorizontalRule elements,
4201+ which were formerly ignored. Resolves Issue #95.
4202+
4203+ * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
4204+ between a footnote and immediately following nonspace characters in
4205+ LaTeX and ConTeXt output. (This gets interpreted as a space, which
4206+ is not desired in cases like "text^[note]---".) Resolves Issue #93.
4207+
4208+ * Windows installer: Don't require admin privileges to run
4209+ installer. Modified pandoc-setup.iss, and changed modpath.iss to
4210+ modify HKCU path if user lacks admin privileges. Also fixed case
4211+ where oldpath is empty (previously this led to the new path
4212+ beginning with a semicolon).
4213+
4214+ * Updated INSTALL instructions for Arch packages and OS X install using
4215+ cabal-install.
4216+
4217+ * Removed the (now unneeded) debian directory.
4218+ Removed empty Codec and System directories.
4219+
4220+ * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
4221+
4222+ * Modified Setup.hs so that the "test" target returns an error status
4223+ when tests fail, and "build" returns a success status if
4224+ the build succeeds. Resolves Issue #100.
4225+
4226+ * Added BUGS to files in tarball.
4227+
4228+
4229+pandoc (1.0.0.1)
4230+
4231+ [ John MacFarlane ]
4232+
4233+ * Removed spurious reference to pdf output format from pandoc(1) man page.
4234+
4235+pandoc (1.0)
4236+
4237+ [ Andrea Rossato ]
4238+
4239+ * Added new OpenDocument writer.
4240+
4241+ * Added support for SmallCaps inline element.
4242+
4243+ * Added support for integrating pandoc with citeproc-hs.
4244+
4245+ + Added Cite element to definition and writers.
4246+ + Added Text.Pandoc.Biblio module
4247+ + Note: This support is included only if the 'citeproc'
4248+ Cabal configuration flag is set.
4249+
4250+ * Made Pandoc data structure an instance of Typeable.
4251+ Added new processPandoc and queryPandoc functions, to query
4252+ or transform matching elements in a Pandoc structure.
4253+
4254+ [ Peter Wang ]
4255+
4256+ * Added new Texinfo writer.
4257+
4258+ [ John MacFarlane ]
4259+
4260+ * Changes to Texinfo writer:
4261+
4262+ + No space between paragraph and following @verbatim (provides more
4263+ pleasing appearance in text formats)
4264+ + Blank line consistently after list environments.
4265+ + Removed deVerb.
4266+ + Use @code instead of @verb for inline code (this solves the character
4267+ escaping problem for texi2dvi and texi2pdf).
4268+ + Added news of Texinfo writer to README.
4269+ + Added Texinfo to list of formats in man page, and removed extra 'groff'.
4270+ + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
4271+ default output extension.
4272+ + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
4273+
4274+ * Added tests for OpenDocument writer.
4275+
4276+ * Added ODT writer (using zip-archive library to package output of
4277+ OpenDocument writer). Added odt-styles directory with default ODT styles.
4278+
4279+ * Added new mediawiki writer and tests.
4280+
4281+ * Markdown reader: Added support for delimited code blocks, with optional
4282+ syntax highlighting using highlighting-kate (if the 'highlighting'
4283+ configuration option is selected).
4284+
4285+ + Currently highlighting is supported only in the HTML writer.
4286+ + Delimited code blocks can have attributes; using the language name as
4287+ class triggers highlighting.
4288+ + New Attributes parameter in CodeBlock structure.
4289+ + --version now indicates whether syntax highlighting support is compiled
4290+ in, and prints a list of supported languages
4291+
4292+ * Removed debian directory. Pandoc is no longer a native debian package.
4293+
4294+ * Changes to build process: pandoc can now be built from the repository
4295+ using Cabal. No unix tools are needed (so, pandoc can be built on Windows
4296+ without Cygwin).
4297+
4298+ + Include shell scripts themselves in repo, rather than generating from wrappers.
4299+ Removed wrappers directory and wrappers Makefile target.
4300+ + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
4301+ and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
4302+ from templates in the templates/ directory. Instead, they use template
4303+ haskell to read data at compile time from the relevant files in data/.
4304+ Template haskell functions go in a new module, Text.Pandoc.TH.
4305+ + man pages are now generated in Setup.hs hook, not by Makefile
4306+ + Makefile 'tarball' target now calls Cabal's 'sdist'
4307+ + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
4308+ + Added "Build-Type" field to pandoc.cabal to avoid warning.
4309+ + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
4310+ so 'sdist' and 'clean' will work properly.
4311+ + Setup.hs now generates man pages in a postbuild hook.
4312+ + Added dependency-checking to Setup.hs, so it only rebuilds things
4313+ that need rebuilding.
4314+ + Added 'library' and 'executable' configuration flags.
4315+ Cabal can now be told to build just the library or just the executable.
4316+ + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
4317+ For example: CABALOPTS=-fhighlighting make
4318+
4319+ * Rewrote test suite so it doesn't depend on perl or unix tools.
4320+
4321+ + Replaced old runtests.pl with a Haskell script RunTests.hs.
4322+ + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
4323+ + Added test hook to Setup.hs, so tests may be run from cabal.
4324+ + Changed Makefile's 'test' target to run tests via cabal.
4325+ + Removed old generate.sh.
4326+ + Since we no longer have 'sed' to filter out raw HTML sections
4327+ from the docbook writer test, or raw LaTeX sections from the
4328+ context writer test, we now just include these sections.
4329+ They can be taken out if it is necessary to process the files.
4330+ + Updated latex and context writer tests to remove extra spaces
4331+ after '\\item'
4332+ + Added a markdown table reader test.
4333+ + Added markdown-reader-more.txt to test suite, for additional test cases
4334+ for raw ConTeXt environments and more.
4335+
4336+ * Compatibility fixes for CPP, Cabal, and haddock:
4337+
4338+ + Use CPP in "Extensions" field in pandoc.cabal.
4339+ + Removed use of backslash string continuations in source files.
4340+
4341+ * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
4342+ base >= 3.
4343+
4344+ * Require parsec < 3.
4345+ The compatibility module in parsec 3.0.0 gives far worse performance than
4346+ parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
4347+ version of parsec, and then we'll go to parsec 3.0.0.
4348+
4349+ * Removed Text.Regex dependencies by rewriting using plain Haskell
4350+ (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
4351+
4352+ * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
4353+
4354+ * Makefile:
4355+
4356+ + Added 'configure' as dependency of 'uninstall-all'.
4357+ (It uses the Cabal build program.)
4358+ + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
4359+ Note that Cabal will automatically choose the ghc-pkg appropriate
4360+ for the compiler selected, so normally specifying GHC by itself
4361+ is sufficient.
4362+
4363+ * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
4364+ its IO and conversion functions.
4365+
4366+ * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
4367+ everything is -Wall clean.
4368+
4369+ + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
4370+ + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
4371+ (These are caused by the Lift instance for ByteString.)
4372+
4373+ * Changed the comment used to replace unsafe HTML if sanitize-html option
4374+ selected.
4375+
4376+ * Made -c/--css option repeatable on the command line (like -H, -A, -B).
4377+
4378+ * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
4379+
4380+ * Escape '\160' as " ", not " " in XML.
4381+ "nbsp" isn't a predefined XML entity.
4382+
4383+ * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
4384+ Added some try's in ordered list parsers.
4385+
4386+ * Man writer: don't escape " as \".
4387+
4388+ * Allow newline before URL in markdown link references. Resolves Issue #81.
4389+ Added tests for this issue in new "markdown-reader-more" tests.
4390+ Changed RunTests.hs to run these tests.
4391+
4392+ * Support for display math. Resolves Issue #47.
4393+
4394+ + Added a DisplayMath/InlineMath selector to Math inlines.
4395+ + Markdown parser yields DisplayMath for $$...$$.
4396+ + LaTeX parser yields DisplayMath when appropriate. Removed
4397+ mathBlock parsers, since the same effect is achieved by the math
4398+ inline parsers, now that they handle display math.
4399+ + Writers handle DisplayMath as appropriate for the format.
4400+ + Modified tests accordingly; added new tests for display math.
4401+
4402+ * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
4403+ to LaTeX in its display of math, and supports many non-math LaTeX environments.
4404+
4405+ + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
4406+ + Modified HTML writer to print raw TeX when LaTeXMathML is
4407+ being used instead of suppressing it.
4408+ + Removed ASCIIMathML files from data/ and added LaTeXMathML.
4409+ + Replaced ASCIIMathML with LaTeXMathML in source files.
4410+ + Modified README and pandoc man page source.
4411+ + Added --latexmathml option (kept --asciimathml as a synonym
4412+ for backwards compatibility)
4413+
4414+ * Markdown reader: Parse setext headers before atx headers.
4415+ Test case:
4416+ # hi
4417+ ====
4418+ parsed by Markdown.pl as an H1 header with contents "# hi".
4419+
4420+ * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
4421+ The marker on the first list item determines the type of the whole
4422+ list. Thus, a list like
4423+ 1. one
4424+ - two
4425+ * three
4426+ gets parsed as a single ordered list. (Previous versions of pandoc
4427+ treated this as an ordered list with an unordered sublist.)
4428+
4429+ * Markdown smart typography:
4430+
4431+ + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
4432+ + Use nonbreaking spaces after known abbreviations in markdown parser.
4433+ Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
4434+ not produce a sentence-separating space. Resolves Issue #75.
4435+
4436+ * Markdown writer: Print unicode \160 literally, rather than as .
4437+
4438+ * Treat '\ ' in (extended) markdown as nonbreaking space.
4439+ Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
4440+
4441+ * The '--sanitize-html' option now examines URIs in markdown links
4442+ and images, and in HTML href and src attributes. If the URI scheme
4443+ is not on a whitelist of safe schemes, it is rejected. The main point
4444+ is to prevent cross-site scripting attacks using 'javascript:' URIs.
4445+ See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
4446+ and http://ha.ckers.org/xss.html. Resolves Issue #62.
4447+
4448+ * HTML writer:
4449+
4450+ + Override Text.XHtml's stringToHtml function,
4451+ so that characters below 0xff are not converted to numerical entity
4452+ references. Also convert '\160' to " ". This should aid readability
4453+ and editability of the HTML source. It does presuppose that the HTML
4454+ will be served as UTF-8.
4455+ + In code blocks, change leading newlines to <br /> tags.
4456+ (Some browsers ignore them.) Resolves Issue #71.
4457+ See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
4458+ + Use style attributes rather than css classes for strikethrough
4459+ and ordered list styles. This works better when fragments, rather than
4460+ standalone documents, are generated.
4461+
4462+ * HTML reader: Count anything that isn't a known block (HTML) tag as an
4463+ inline tag (rather than the other way around). Added "html", "head", and
4464+ "body" to list of block tags. Resolves Issue #66, allowing
4465+ <lj> to count as an inline tag.
4466+
4467+ * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
4468+ boldface, and other inline elements. Resolves Issue #64.
4469+
4470+ * LaTeX reader: improvements in raw LaTeX parsing.
4471+
4472+ + "loose punctuation" (like {}) parsed as Space
4473+ + Para elements must contain more than Str "" and Space elements
4474+ + Added parser for "\ignore" command used in literate haskell.
4475+ + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
4476+ mode, these parsers simply strip off the command part and allow
4477+ the arguments to be parsed normally. So, for example,
4478+ \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
4479+ Str "{\\emph{hi}}".
4480+ + Parse lhs "code" environments as verbatim.
4481+ Refactored parsers for verbatim environments.
4482+ + Removed specialEnvironment parser.
4483+ + parse '{}', if present, after \textless, \textgreater,
4484+ \textbar, \textbackslash, \ldots.
4485+ + Parse unescaped special characters verbatim rather than
4486+ changing them to spaces. This way arguments of unknown
4487+ commands will appear in braces.
4488+
4489+ * Parse raw ConTeXt environments as TeX in markdown reader.
4490+ Resolves Issue #73.
4491+
4492+ * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
4493+
4494+ * Made some structural changes to parsing of raw LaTeX environments.
4495+ Previously there was a special block parser for LaTeX environments.
4496+ It returned a Para element containing the raw TeX inline. This has
4497+ been removed, and the raw LaTeX environment parser is now used in the
4498+ rawLaTeXInline parser. The effect is exactly the same, except that we
4499+ can now handle consecutive LaTeX and ConTeXt environments not separated
4500+ by spaces. This new flexibility is required by the example in
4501+ Issue #73:
4502+
4503+ \placeformula \startformula
4504+ L_{1} = L_{2}
4505+ \stopformula
4506+
4507+ API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
4508+ returns a string) rather than rawLaTeXEnvironment (which returns a block
4509+ element). This is more likely to be useful in other applications.
4510+
4511+ * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
4512+ \textsubscript conflicts with a definition in the memoir class.
4513+ Resolves Issue #65.
4514+
4515+ * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
4516+
4517+ * Added amsmath package to default LaTeX header. Resolves Issue #48.
4518+
4519+ * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
4520+ list introduction lines.
4521+
4522+ * Changed Float to Double in definition of Table element.
4523+ (Double is more efficient in GHC.)
4524+
4525+ * Fixed bug in Markdown parser: regular $s triggering math mode.
4526+ For example: "shoes ($20) and socks ($5)."
4527+ The fix consists in two new restrictions:
4528+
4529+ + the $ that ends a math span may not be directly followed by a digit.
4530+ + no blank lines may be included within a math span.
4531+
4532+ Thanks to Joseph Reagle for noticing the bug.
4533+
4534+ * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
4535+ Removed 'joinWithSep' from Text.Pandoc.Shared.
4536+
4537+ * Updated README and man pages. Acknowledge contributors in README.
4538+ Added paragraph to README about producing S5 with separate CSS/javascript.
4539+
4540+ * Updated INSTALL to reflect new build system (including configuration
4541+ options) and document new dependencies. Added note to INSTALL that
4542+ Cabal >= 1.2 is required for build. Resolves Issue #74.
4543+
4544+ * Fixed some haddock documentation errors.
4545+
4546+ * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
4547+
4548+pandoc (0.46) unstable; urgency=low
4549+
4550+ [ John MacFarlane ]
4551+
4552+ * Made -H, -A, and -B options cumulative: if they are specified
4553+ multiple times, multiple files will be included.
4554+
4555+ * Added optional HTML sanitization using a whitelist.
4556+ When this option is specified (--sanitize-html on the command line),
4557+ unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
4558+ attributes will be removed. This option should be especially useful
4559+ for those who want to use pandoc libraries in web applications, where
4560+ users will provide the input.
4561+
4562+ + Main.hs: Added --sanitize-html option.
4563+
4564+ + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
4565+
4566+ + Text.Pandoc.Readers.HTML:
4567+ - Added whitelists of sanitaryTags and sanitaryAttributes.
4568+ - Added parsers to check these lists (and state) to see if a given
4569+ tag or attribute should be counted unsafe.
4570+ - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
4571+ with comments.
4572+ - Modified htmlAttribute to remove unsafe attributes.
4573+ - Modified htmlScript and htmlStyle to remove these elements if
4574+ unsafe.
4575+
4576+ + Modified README and man pages to document new option.
4577+
4578+ * Improved handling of email addresses in markdown and reStructuredText.
4579+ Consolidated uri and email address parsers. (Resolves Issue #37.)
4580+
4581+ + New emailAddress and uri parsers in Text.Pandoc.Shared.
4582+ - uri parser uses parseURI from Network.URI.
4583+ - emailAddress parser properly handles email addresses with periods
4584+ in them.
4585+
4586+ + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
4587+ and Text.Pandoc.Readers.Markdown.
4588+
4589+ * Markdown reader:
4590+
4591+ + Fixed emph parser so that "*hi **there***" is parsed as a Strong
4592+ nested in an Emph. (A '*' is only recognized as the end of the
4593+ emphasis if it's not the beginning of a strong emphasis.)
4594+
4595+ + Moved blockQuote parser before list parsers for performance.
4596+
4597+ + Modified 'source' parser to allow backslash-escapes in URLs.
4598+ So, for example, [my](/url\(1\)) yields a link to /url(1).
4599+ Resolves Issue #34.
4600+
4601+ + Disallowed links within links. (Resolves Issue #35.)
4602+ - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
4603+ instead of hard-coding the inline parser takes an inline parser
4604+ as a parameter.
4605+ - Modified reference and inlineNote to use inlinesInBalancedBrackets.
4606+ - Removed unneeded inlineString function.
4607+ - Added inlineNonLink parser, which is now used in the definition of
4608+ reference.
4609+ - Added inlineParsers list and redefined inline and inlineNonLink parsers
4610+ in terms of it.
4611+ - Added failIfLink parser.
4612+
4613+ + Better handling of parentheses in URLs and quotation marks in titles.
4614+ - 'source' parser first tries to parse URL with balanced parentheses;
4615+ if that doesn't work, it tries to parse everything beginning with
4616+ '(' and ending with ')'.
4617+ - source parser now uses an auxiliary function source'.
4618+ - linkTitle parser simplified and improved, under assumption that it
4619+ will be called in context of source'.
4620+
4621+ + Make 'block' conditional on strictness state, instead of using
4622+ failIfStrict in block parsers. Use a different ordering of parsers
4623+ in strict mode (raw HTML block before paragraph) for performance.
4624+ In non-strict mode use rawHtmlBlocks instead of htmlBlock.
4625+ Simplified htmlBlock, since we know it's only called in strict
4626+ mode.
4627+
4628+ + Improved handling of raw HTML. (Resolves Issue #36.)
4629+ - Tags that can be either block or inline (e.g. <ins>) should
4630+ be treated as block when appropriate and as inline when
4631+ appropriate. Thus, for example,
4632+ <ins>hi</ins>
4633+ should be treated as a paragraph with inline <ins> tags, while
4634+ <ins>
4635+ hi
4636+ </ins>
4637+ should be treated as a paragraph within <ins> tags.
4638+ - Moved htmlBlock after para in list of block parsers. This ensures
4639+ that tags that can be either block or inline get parsed as inline
4640+ when appropriate.
4641+ - Modified rawHtmlInline' so that block elements aren't treated as
4642+ inline.
4643+ - Modified para parser so that paragraphs containing only HTML tags and
4644+ blank space are not allowed. Treat these as raw HTML blocks instead.
4645+
4646+ + Fixed bug wherein HTML preceding a code block could cause it to
4647+ be parsed as a paragraph. The problem is that the HTML parser
4648+ used to eat all blank space after an HTML block, including the
4649+ indentation of the code block. (Resolves Issue #39.)
4650+ - In Text.Pandoc.Readers.HTML, removed parsing of following space
4651+ from rawHtmlBlock.
4652+ - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
4653+ indentation is eaten *only* on the first line after the HTML
4654+ block. This means that in
4655+ <div>
4656+ foo
4657+ <div>
4658+ the foo won't be treated as a code block, but in
4659+ <div>
4660+
4661+ foo
4662+
4663+ </div>
4664+ it will. This seems the right approach for least surprise.
4665+
4666+ * RST reader:
4667+
4668+ + Fixed bug in parsing explicit links (resolves Issue #44).
4669+ The problem was that we were looking for inlines until a '<' character
4670+ signaled the start of the URL; so, if you hit a reference-style link,
4671+ it would keep looking til the end of the document. Fix: change
4672+ inline => (notFollowedBy (char '`') >> inline). Note that this won't
4673+ allow code inlines in links, but these aren't allowed in resT anyway.
4674+
4675+ + Cleaned up parsing of reference names in key blocks and links.
4676+ Allow nonquoted reference links to contain isolated '.', '-', '_', so
4677+ so that strings like 'a_b_' count as links.
4678+
4679+ + Removed unnecessary check for following link in str.
4680+ This is unnecessary now that link is above str in the definition of
4681+ 'inline'.
4682+
4683+ * HTML reader:
4684+
4685+ + Modified rawHtmlBlock so it parses </html> and </body> tags.
4686+ This allows these tags to be handled correctly in Markdown.
4687+ HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
4688+ since these are handled in parseHtml. (Resolves Issue #38.)
4689+
4690+ + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
4691+
4692+ + Don't interpret contents of style tags as markdown.
4693+ (Resolves Issue #40.)
4694+ - Added htmlStyle, analagous to htmlScript.
4695+ - Use htmlStyle in htmlBlockElement and rawHtmlInline.
4696+ - Moved "script" from the list of tags that can be either block or
4697+ inline to the list of block tags.
4698+
4699+ + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
4700+ and anyHtmlEndTag. This fixes a bug in markdown parsing, where
4701+ inline tags would be included in raw HTML blocks.
4702+
4703+ + Modified anyHtmlBlockTag to test for (not inline) rather than
4704+ directly for block. This allows us to handle e.g. docbook in
4705+ the markdown reader.
4706+
4707+ * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
4708+ Updated LaTeX reader test to use --parse-raw.
4709+
4710+ * HTML writer:
4711+
4712+ + Modified rules for automatic HTML header identifiers to
4713+ ensure that identifiers begin with an alphabetic character.
4714+ The new rules are described in README. (Resolves Issue #33.)
4715+
4716+ + Changed handling of titles in HTML writer so you don't get
4717+ "titleprefix - " followed by nothing.
4718+
4719+ * ConTeXt writer: Use wrappers around Doc elements to ensure proper
4720+ spacing. Each block element is wrapped with either Pad or Reg.
4721+ Pad'ed elements are guaranteed to have a blank line in between.
4722+
4723+ * RST writer:
4724+
4725+ + Refactored RST writer to use a record instead of a tuple for state,
4726+ and to include options in state so it doesn't need to be passed as
4727+ a parameter.
4728+
4729+ + Use an interpreted text role to render math in restructuredText.
4730+ See http://www.american.edu/econ/itex2mml/mathhack.rst for the
4731+ strategy.
4732+
4733+ [ Recai Oktaş ]
4734+
4735+ * Debian packaging changes:
4736+
4737+ + Remove the empty 'include' directory in -dev package, which lintian
4738+ complains about.
4739+ + Bump Standarts-Version to 3.7.3.
4740+ + Use new 'Homepage:' field to specify the upstream URL on suggestion of
4741+ lintian.
4742+
4743+ -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
4744+
4745+pandoc (0.45) unstable; urgency=low
4746+
4747+ [ John MacFarlane ]
4748+
4749+ * Simplified parsing of reference keys and notes in markdown and RST
4750+ readers: The Reference data structure from Text.Pandoc.Shared is no
4751+ longer needed, since referenceKey and noteBlock parses return strings
4752+ (as many blank lines as were occupied by the key or note) and update
4753+ state themselves. getPosition and setPosition are now used to ensure
4754+ that error messages will give the correct line number. This yields
4755+ cleaner (and slightly faster) code, with more accurate parsing error
4756+ messages.
4757+
4758+ * Added new Math inline element:
4759+
4760+ + Markdown and LaTeX readers now convert TeX math into Math elements,
4761+ not TeX.
4762+ + This allows math to be treated differently from raw TeX in output.
4763+ TeX elements are no longer printed in output formats other than
4764+ Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
4765+
4766+ * New default handling of math in writers:
4767+
4768+ + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
4769+ parses raw TeX math and outputs a string of Pandoc inlines that
4770+ tries to render it as far as possible using unicode characters,
4771+ lapsing into literal TeX when needed.
4772+ + readTeXMath is now used for default HTML output in HTML, S5, RTF,
4773+ and Docbook, if no other method for displaying math in HTML is
4774+ specified. Enclosing $'s are no longer printed by default.
4775+ + By default, math is put inside `<span class="math">`. This way it can be
4776+ distinguished from the surrounding text, e.g. put in a different
4777+ font.
4778+
4779+ * New --gladtex and --mimetex options for display of math in HTML:
4780+
4781+ + If --gladtex is specified, math is output between `<eq>` tags, so
4782+ it can be processed by gladTeX.
4783+ + If --mimetex is specified, math is put in `<img>` tags with a link
4784+ to the mimetex CGI script (or any other script that takes TeX math
4785+ as input and outputs an image). The URL of the script may be
4786+ specified, but defaults to /cgi-bin/mimetex.cgi.
4787+ + HTMLMathMethod structure in WriterOptions keeps track of how to
4788+ display math in HTML output.
4789+ + Updated README with a description of the four options for displaying
4790+ math in HTML.
4791+
4792+ * HTML reader:
4793+
4794+ + Fixed bug: parser for minimized attributes should not swallow
4795+ trailing spaces.
4796+ + Simplified HTML attribute parsing.
4797+ + Changed parsing of code blocks in HTML reader: `<code>` tag is no
4798+ longer needed. `<pre>` suffices. All HTML tags in the code block
4799+ (e.g. for syntax highlighting) are skipped, because they are not
4800+ portable to other output formats. A `<code>...</code>` block not
4801+ surrounded by `<pre>` now counts as inline HTML, not a code block.
4802+ + Remove just one leading and one trailing newline from contents of
4803+ `<pre>...</pre>` in codeBlock parser.
4804+
4805+ * Markdown reader:
4806+
4807+ + Removed support for box-style block quotes.
4808+ + Require space before title in links and references.
4809+ This fixes a bug in parsing URLs like http://silly/url(withparen).
4810+ + Improved and simplified setextHeader parser.
4811+ + Fixed logic in smart quote parsing, adding some needed 'try'
4812+ statements.
4813+ + Fixed smart quote parsing so that unicode characters 8216 and 8217
4814+ are recognized as single quotes, and 8220 and 8221 as double quotes.
4815+
4816+ * RST reader:
4817+
4818+ + Fixed bug in parsing of code blocks. Previously a full tab indent
4819+ was required, but RST allows code to be indented any amount.
4820+ Resolves Issue #27.
4821+ + Allow field lists to be indented.
4822+ + Parse the contents of field lists instead of treating as a raw string.
4823+ + Represent field lists as definition lists instead of blockquotes.
4824+ + Fixed bug in which metadata would be overridden if the document
4825+ contained multiple field lists.
4826+ + Parse fields associated with '.. image::' blocks, and use 'alt'
4827+ field, if given, for image alt and title attributes.
4828+
4829+ * LaTeX reader:
4830+
4831+ + Modified specialChar so that '"' characters are parsed.
4832+ + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
4833+
4834+ * HTML writer:
4835+
4836+ + Changes in handling of math (see above).
4837+ + Don't produce HTML for table of contents if there are
4838+ no headers. (This would be an empty list, which is invalid XHTML.)
4839+
4840+ * Markdown writer:
4841+
4842+ + Don't print title attribute if title is empty. (This differs from
4843+ the behavior of Markdown.pl, and agrees with PHP Markdown. But John
4844+ Gruber has indicated that he prefers this behavior.) Adjusted test
4845+ suite accordingly.
4846+ + Fixed incorrect line wrapping in paragraphs including hard line
4847+ breaks. Resolves Issue #25.
4848+ + Fixed bug in markdown writer: If an ordered list item began with
4849+ a marker greater than 3 characters in width, and the item took more
4850+ than one line, it would appear on the line after the list marker,
4851+ e.g.:
4852+
4853+ (12)
4854+ My list item.
4855+ Multiline.
4856+
4857+ Now it works as follows:
4858+
4859+ (12) My list item.
4860+ Multiline.
4861+
4862+ * RST writer
4863+
4864+ + Fixed bug in RST writer's handling of ordered lists. Previously,
4865+ list items with multiple lines would not always line up with
4866+ single-line list items. Now, list items are nested the length of
4867+ the list marker + 1. This looks better and ensures that list items
4868+ all line up. (Note that list markers are padded to the length of
4869+ the longest list marker in the series.)
4870+ + Use 3-space indent for unordered lists.
4871+ + If label for a link reference contains a colon, surround it by `
4872+ signs so it won't be interpreted as the end of the link label.
4873+
4874+ * LaTeX writer:
4875+
4876+ + Cleaner output for footnotes. Footnotes now always begin on a new
4877+ line, and the final } is on a line by itself only when it needs to
4878+ be (i.e. only when the note ends with a Verbatim environment).
4879+ + Added writer options to state, so state doesn't need to be passed as
4880+ a parameter.
4881+ + Text wrapping now provided, using wrapTeXIfNeeded.
4882+
4883+ * ConTeXt writer: many improvements for more idiomatic ConTeXt output
4884+ (thanks to Idris Samawi Hamid for suggestions).
4885+
4886+ + PrettyPrint module now used for output.
4887+ + Writer options are now in state, so they don't have to be passed as
4888+ a parameter.
4889+ + Text wrapping now provided, using wrapTeXIfNeeded.
4890+ + Better treatment of footnotes: footnotes are always on lines by
4891+ themselves, and the final } is on a line by itself only when
4892+ it needs to be (after \stoptyping).
4893+ + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
4894+ depending on whether --number-sections option is selected.
4895+ + Extra blank line inserted after \stopitemize
4896+ + Use new, "official" definition of blockquote environment. Also, use
4897+ blank line after \startblockquote to balance blank line at the end.
4898+ + Both itemized and enumerated lists are now generated using
4899+ \start-stopitemize, with appropriate options. Removed definitions
4900+ of ltxenum and ltxitem, which are no longer needed. Provided
4901+ defaults for itemized lists in the preamble. State keeps track of
4902+ ordered list level, so that when default numbering is specified,
4903+ the appropriate scheme can be used.
4904+ + Changed \useurl to \useURL.
4905+ + Changed link color from red to blue.
4906+ + Use \subsubsubsubsection etc., since these are supported
4907+ (up to at least sub x 5).
4908+
4909+ * Text.Pandoc.Shared:
4910+
4911+ + Save and restore position in parseFromString, so that accurate
4912+ error messages can be given.
4913+ + Improved efficiency of romanNumeral parser.
4914+ + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
4915+ that footnotes occur on lines by themselves (to make them
4916+ easier to see and move) and do not screw up line wrapping.
4917+
4918+ * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
4919+ if present. Windows Notepad and other applications insert a
4920+ BOM at the beginning of a UTF8 file.
4921+
4922+ * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
4923+ addition to "\r\n" and '\n').
4924+
4925+ * Added a writer option for wrapped text and a command-line option
4926+ '--no-wrap', which disables text wrapping and minimizes whitespace
4927+ in HTML. (Resolves Issue #26.)
4928+
4929+ + Added support for '--no-wrap' to Main.hs.
4930+ + Added wrapIfNeeded function to Text.Pandoc.Shared.
4931+ + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
4932+ Markdown writers.
4933+ + Added render and renderFragment helpers to HTML writer.
4934+
4935+ * Modified html2markdown to run tidy only if the HTML cannot be
4936+ parsed. Previously html2markdown piped all input through tidy
4937+ before passing it to pandoc. This caused problems on certain pages
4938+ (e.g. http://daringfireball.com/markdown) which have well-formed
4939+ XHTML that causes tidy to choke. The solution is to pipe through
4940+ tidy only if pandoc cannot parse the input by itself. This means
4941+ that a temp file is now always used, even when input comes from a
4942+ local file or standard input.
4943+
4944+ * Removed 'version' constant from Main.hs; added 'pandocVersion' to
4945+ Text.Pandoc library.
4946+
4947+ * pandoc.cabal:
4948+
4949+ + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
4950+ 6.8, pretty and containers must be added to Build-Depends, and it
4951+ is desirable to use the -O2 compiler option.) Cabal configurations
4952+ allows one to select options depending on the compiler version.
4953+ For GHC 6.6, the splitBase option can be disabled.
4954+ + pandoc.cabal.ghc66 is provided for users with older versions of
4955+ Cabal, which do not support configurations.
4956+ + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
4957+ '--enable-(executable|library)-profiling' is specified. Updated
4958+ PROFILING instructions accordingly.
4959+
4960+ * Makefile:
4961+
4962+ + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
4963+ is copied to pandoc.cabal, and the old pandoc.cabal is copied
4964+ to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
4965+ pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
4966+ will work properly with either GHC 6.6 or 6.8.
4967+ + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
4968+ This is where current versions of Cabal put it.
4969+ + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
4970+ + Removed dependency of templates on ./templates, which is circular
4971+ now that templates is a subdirectory of the top-level.
4972+
4973+ * MacPorts Portfile:
4974+
4975+ + Modified to install the pandoc library in addition to programs.
4976+ + Installation must be done manually rather than using Makefile's
4977+ install-all.
4978+ + Note that the library must be registered in the activate phase,
4979+ after the library files have been copied out of the destroot.
4980+ Cabal generates a 'register.sh' script that will do this.
4981+
4982+ * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
4983+ libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
4984+ Closes: #445235
4985+
4986+ * debian/rules: Converted to UTF-8.
4987+
4988+ * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
4989+
4990+ * Updated ASCIIMathML.js to latest version.
4991+
4992+ * Directory structure:
4993+
4994+ + Moved everything from src into the top-level directory.
4995+ + Changed references to source directory in Makefile and
4996+ pandoc.cabal.*.
4997+ + Moved ASCIIMathML.js, headers, and ui into templates directory.
4998+ + Modified fillTemplates.pl to reflect new paths.
4999+
5000+ [ Recai Oktaş ]
5001+
5002+ * Makefile: Fixed the issue of having two copies of the library
5003+ documentation under some usage scenarios.
5004+
5005+ * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
5006+ and GHC_PKG configurable through the environment, to support
5007+ unusual ghc installations. For example:
5008+ GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
5009+
5010+ -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
5011+
5012+pandoc (0.44) unstable; urgency=low
5013+
5014+ [ John MacFarlane ]
5015+
5016+ * Fixed bug in HTML writer: when --toc was used, anchors were put around
5017+ headers, which is invalid XHTML (block content within inline element).
5018+ Now the anchors are put inside the header tags. Resolves Issue #23.
5019+
5020+ * Added xmlns attribute to html element in html writer tests.
5021+ This attribute is added by more recent versions of the
5022+ xhtml library (>= 3000), and is required for valid XHTML.
5023+
5024+ [ Recai Oktaş ]
5025+
5026+ * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
5027+ command instead of 'runhaskell', which, on some platforms (such as s390,
5028+ alpha, m68k), throws the following error:
5029+
5030+ runhaskell Setup.hs configure --prefix=/usr
5031+ ghc-6.6.1: not built for interactive use
5032+
5033+ This causes a serious FTBFS bug. Closes: #440668.
5034+
5035+ -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
5036+
5037+pandoc (0.43) unstable; urgency=low
5038+
5039+ [ John MacFarlane ]
5040+
5041+ * The focus of this release is performance. The markdown parser
5042+ is about five times faster than in 0.42, based on benchmarks
5043+ with the TextMate manual.
5044+
5045+ * Main.hs: Replaced CRFilter and tabFilter with single function
5046+ tabFilter, which operates on the whole string rather than breaking
5047+ it into lines, and handles dos-style line-endings as well as tabs.
5048+
5049+ * Added separate LaTeX reader and native reader tests; removed
5050+ round-trip tests.
5051+
5052+ * Text.Pandoc.Shared:
5053+
5054+ + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
5055+ + General code cleanup (to elimante warnings when compiling with -Wall.)
5056+ + Added 'wrapped' function, which helps wrap text into paragraphs,
5057+ using the prettyprinting library.
5058+ + Rewrote charsInBalanced and charsInBalanced'.
5059+ - Documented restriction: open and close must be distinct characters.
5060+ - Rearranged options for greater efficiency.
5061+ - Bug fix: Changed inner call to charsInBalanced inside
5062+ charsInBalanced' to charsInBalanced'.
5063+ + anyLine now requires that the line end with a newline (not eof).
5064+ This is a harmless assumption, since we always add newlines to the
5065+ end of a block before parsing with anyLine, and it yields a 10% speed
5066+ boost.
5067+ + Removed unnecessary 'try' in anyLine.
5068+ + Removed unneeded 'try' from romanNumeral parser.
5069+ + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
5070+ + Removed unneeded 'try' in parseFromString.
5071+ + Removed unneeded 'try' from stringAnyCase. (Now it behaves
5072+ like 'string'.)
5073+ + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
5074+ 'try' is not automatically applied to the 'end' parser. Added
5075+ 'try' in calls to 'enclosed' where needed. Slight speed increase.
5076+
5077+ * Writers:
5078+
5079+ + Replaced individual wrapping routines in RST, Man, and Markdown
5080+ writers with 'wrapped' from Text.Pandoc.Shared.
5081+ + Rewrote LaTeX writer to use the prettyprinting library,
5082+ so we get word wrapping, etc.
5083+ + Modified latex writer tests for new latex writer using prettyprinter.
5084+ + Fixed bug in LaTeX writer: autolinks would not cause
5085+ '\usepackage{url}' to be put in the document header. Also, changes
5086+ to state in enumerated list items would be overwritten.
5087+ + In Markdown writer, escape paragraphs that begin with ordered list
5088+ markers, so they don't get interpreted as ordered lists.
5089+
5090+ * Text.Pandoc.Reades.LaTeX:
5091+
5092+ + Fixed bug in LaTeX reader, which wrongly assumed that the roman
5093+ numeral after "enum" in "setcounter" would consist entirely of
5094+ "i"s. 'enumiv' is legitimate.
5095+ + LaTeX command and environment names can't contain numbers.
5096+ + Rearranged order of parsers in inline for slight speed improvement.
5097+ + Added '`' to special characters and 'unescapedChar'.
5098+
5099+ * Text.Pandoc.Readers.RST:
5100+
5101+ + Removed unneeded try's in RST reader; also minor code cleanup.
5102+ + Removed tabchar.
5103+ + Rearranged parsers in inline (doubled speed).
5104+
5105+ * Text.Pandoc.Readers.Markdown:
5106+
5107+ + Skip notes parsing if running in strict mode. (This yields a nice
5108+ speed improvement in strict mode.)
5109+ + Simplify autolink parsing code, using Network.URI to test for
5110+ URIs. Added dependency on network library to debian/control and
5111+ pandoc.cabal.
5112+ + More perspicuous definition of nonindentSpaces.
5113+ + Removed unneeded 'try' in 'rawLine'.
5114+ + Combined linebreak and whitespace into a new whitespace parser, to
5115+ avoid unnecessary reparsing of space characters.
5116+ + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
5117+ 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
5118+ + Use lookAhead in parsers for setext headers and definition lists
5119+ to see if the next line begins appropriately; if not, don't waste
5120+ any more time parsing.
5121+ + Don't require blank lines after code block. (It's sufficient to
5122+ end code block with a nonindented line.)
5123+ + Changed definition of 'emph': italics with '_' must not
5124+ be followed by an alphanumeric character. This is to help
5125+ prevent interpretation of e.g. `[LC_TYPE]: my_type` as
5126+ `[LC<em>TYPE]:my</em>type`.
5127+ + Improved Markdown.pl-compatibility in referenceLink: the two parts
5128+ of a reference-style link may be separated by one space, but not
5129+ more... [a] [link], [not] [a link].
5130+ + Fixed markdown inline code parsing so it better accords with
5131+ Markdown.pl: the marker for the end of the code section is a clump
5132+ of the same number of `'s with which the section began, followed
5133+ by a non-` character. So, for example,
5134+ ` h ``` i ` -> `<code>h ``` i</code>`.
5135+ + Split 'title' into 'linkTitle' and 'referenceTitle', since the
5136+ rules are slightly different.
5137+ + Rewrote 'para' for greater efficiency.
5138+ + Rewrote link parsers for greater efficiency.
5139+ + Removed redundant 'referenceLink' in definition of inline (it's
5140+ already in 'link').
5141+ + Refactored escapeChar so it doesn't need 'try'.
5142+ + Refactored hrule for performance in Markdown reader.
5143+ + More intelligent rearranging of 'inline' so that most frequently
5144+ used parsers are tried first.
5145+ + Removed tabchar parser, as whitespace handles tabs anyway.
5146+
5147+ * Text.Pandoc.CharacterReferences:
5148+
5149+ + Refactored.
5150+ + Removed unnecessary 'try's for a speed improvement.
5151+ + Removed unnecessary '&' and ';' from the entity table.
5152+
5153+ * Build process:
5154+
5155+ + Makefile: Get VERSION from cabal file, not Main.hs.
5156+ + Modified MacPorts Portfile:
5157+ - Depend on haddock
5158+ - Build and install libraries and library documentation in
5159+ addition to pandoc executable
5160+ - Added template item for md5 sum in Portfile.in.
5161+ - Incorporated changes from MacPorts repository (r28278).
5162+ + FreeBSD port: Don't try to generate distinfo in Makefile.
5163+ It can be made using 'make makesum' in FreeBSD.
5164+ + Make both freebsd and macports targets depend on tarball.
5165+
5166+ * Website and documentation:
5167+
5168+ + Updated INSTALL instructions.
5169+ + Added pandocwiki demo to website.
5170+ + Removed local references to Portfile, since pandoc is now in the
5171+ MacPorts repository.
5172+
5173+ -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
5174+
5175+pandoc (0.42) unstable; urgency=low
5176+
5177+ [ John MacFarlane ]
5178+
5179+ * Main.hs: Use utf8 conversion on the extra files loaded with
5180+ the -H, -C, -B, and -A options. This fixes problems with unicode
5181+ characters in these files.
5182+
5183+ * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
5184+ Text.Pandoc.Readers.HTML and without it we get a linking error when
5185+ using the library.
5186+
5187+ * Markdown reader:
5188+
5189+ + Added new rule for enhanced markdown ordered lists: if the list
5190+ marker is a capital letter followed by a period (including a
5191+ single-letter capital roman numeral), then it must be followed by
5192+ at least two spaces. The point of this is to avoid accidentally
5193+ treating people's initials as list markers: a paragraph might begin,
5194+ "B. Russell was an English philosopher," and this shouldn't be
5195+ treated as a list. Documented change in README.
5196+ + Blocks that start with "p. " and a digit are no longer treated
5197+ as ordered lists (it's a page number).
5198+ + Added a needed 'try' to listItem.
5199+ + Removed check for a following setext header in endline.
5200+ A full test is too inefficient (doubles benchmark time), and the
5201+ substitute we had before is not 100% accurate.
5202+ + Don't use Code elements for autolinks if --strict specified.
5203+
5204+ * LaTeX writer: When a footnote ends with a Verbatim environment, the
5205+ close } of the footnote cannot occur on the same line or an error occurs.
5206+ Fixed this by adding a newline before the closing } of every footnote.
5207+
5208+ * HTML writer:
5209+ + Removed incorrect "{}" around style information in HTML tables.
5210+ Column widths now work properly in HTML.
5211+ + If --strict option is specified (and --toc is not), don't include
5212+ identifiers in headers, for better Markdown compatibility.
5213+
5214+ * Build process:
5215+
5216+ + Separated $(web_dest) and website targets.
5217+ + In website, index.txt is now constructed from template index.txt.in.
5218+ + Added freebsd target to Markefile. This creates the freebsd Makefile
5219+ from Makefile.in, and creates distinfo. Removed Makefile and distinfo
5220+ from the repository.
5221+ + Added macport target to Makefile. Portfile is built from template
5222+ Portfile.in.
5223+ + Removed OSX package targets. (Too many difficulties involving
5224+ dependencies on dynamic libraries.)
5225+ + More complete INSTALL instructions for all architectures.
5226+
5227+ * Website:
5228+ + Added a programming demo, pandocwiki.
5229+
5230+ [ Recai Oktaş ]
5231+
5232+ * Do not forget to close pandoc's ITP. Closes: #391666
5233+
5234+ -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
5235+
5236+pandoc (0.41) unstable; urgency=low
5237+
5238+ [ John MacFarlane ]
5239+
5240+ * Fixed bugs in HTML reader:
5241+ + Skip material at end *only if* `</html>` is present (previously,
5242+ only part of the document would be parsed if an error was
5243+ found; now a proper error message is given).
5244+ + Added new constant eitherBlockOrInline with elements that may
5245+ count either as block-level or as inline. Modified isInline and
5246+ isBlock to take this into account.
5247+ + Modified rawHtmlBlock to accept any tag (even an inline tag):
5248+ this is innocuous, because rawHtmlBlock is tried only if a regular
5249+ inline element can't be parsed.
5250+ + Added a necessary 'try' in definition of 'para'.
5251+
5252+ * Fixed bug in markdown ordered list parsing. The problem was that
5253+ anyOrderedListStart did not check for a space following the
5254+ ordered list marker. So in 'A.B. 2007' the parser would be
5255+ expecting a list item, but would not find one, causing an error.
5256+ Fixed a similar bug in the RST reader. Resolves Issue #22.
5257+
5258+ * Refactored RST and Markdown readers using parseFromString.
5259+
5260+ * LaTeX reader will now skip anything after \end{document}.
5261+
5262+ * Fixed blockquote output in markdown writer: previously, block
5263+ quotes in indented contexts would be indented only in the first
5264+ line.
5265+
5266+ * Added note to INSTALL about variations in versions of the xhtml
5267+ library that can lead to failed tests (thanks to Leif LeBaron).
5268+
5269+ -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
5270+
5271+pandoc (0.4) unstable; urgency=low
5272+
5273+ [ John MacFarlane ]
5274+
5275+ * Added two new output formats: groff man pages and ConTeXt. By
5276+ default, output files with extensions ".ctx" and ".context" are
5277+ assumed to be ConTeXt, and output files with single-digit extensions
5278+ are assumed to be man pages.
5279+
5280+ * Enhanced ordered lists (documented in README, under Lists):
5281+ + The OrderedList block element now stores information about
5282+ list number style, list number delimiter, and starting number.
5283+ + The readers parse this information when possible.
5284+ + The writers use this information to style ordered lists.
5285+ + The enhancement can be disabled using the --strict option.
5286+
5287+ * Added support for tables (with a new Table block element). Two kinds
5288+ of tables are supported: a simple table with one-line rows, and a
5289+ more complex variety with multiline rows. All output formats are
5290+ supported, but only markdown tables are parsed at the moment. The
5291+ syntax is documented in README.
5292+
5293+ * Added support for definition lists (with a new DefinitionList block
5294+ element). All output and input formats are supported. The syntax is
5295+ documented in README.
5296+
5297+ * Added support for superscripts and subscripts (with new Superscript
5298+ and Subscript inline elements). All input and output
5299+ formats. The syntax is documented in README.
5300+
5301+ * Added support for strikeout (with a new Strikeout inline element).
5302+ All input and output formats are supported. Thanks to Bradley Kuhn,
5303+ who contributed a patch. The syntax is documented in README. Resolves
5304+ Issue #18.
5305+
5306+ * Added a --toc|--table-of-contents option. This causes an automatically
5307+ generated table of contents (or an instruction that creates one) to
5308+ be inserted at the beginning of the document. Not supported in S5,
5309+ DocBook, or man page writers.
5310+
5311+ * Modified the -m|--asciimathml option:
5312+
5313+ + If an optional URL argument is provided, a link is inserted
5314+ instead of the contents of the ASCIIMathML.js script.
5315+ + Nothing is inserted unless the document actually contains
5316+ LaTeX math.
5317+
5318+ * Removed Blank block element as unnecessary.
5319+
5320+ * Removed Key and Note blocks from the Pandoc data structure. All
5321+ links are now stored as explicit links, and note contents are
5322+ stored with the (inline) notes.
5323+
5324+ + All link Targets are now explicit (URL, title) pairs; there
5325+ is no longer a 'Ref' target.
5326+ + Markdown and RST parsers now need to extract data from key and
5327+ note blocks and insert them into the relevant inline elements.
5328+ Other parsers have been simplified, since there is no longer any need
5329+ to construct separate key and note blocks.
5330+ + Markdown, RST, and HTML writers need to construct lists of
5331+ notes; Markdown and RST writers need to construct lists of link
5332+ references (when the --reference-links option is specified); and
5333+ the RST writer needs to construct a list of image substitution
5334+ references. All writers have been rewritten to use the State monad
5335+ when state is required.
5336+ + Several functions (generateReference, keyTable,
5337+ replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
5338+ used by them) have been removed from Text.Pandoc.Shared, since
5339+ they are no longer needed. New functions and data structures
5340+ (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
5341+ added. The functions inTags, selfClosingTag, inTagsSimple, and
5342+ inTagsIndented have been moved to the DocBook writer, since that
5343+ is now the only module that uses them. NoteTable is now exported
5344+ in Text.Pandoc.Shared.
5345+ + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
5346+ stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
5347+ + Added writerNotes and writerReferenceLinks to WriterOptions.
5348+
5349+ * Added Text.Pandoc module that exports basic readers, writers,
5350+ definitions, and utility functions. This should export everything
5351+ needed for most uses of Pandoc libraries. The haddock documentation
5352+ includes a short example program.
5353+
5354+ * Text.Pandoc.ASCIIMathML is no longer an exported module.
5355+
5356+ * Added Text.Pandoc.Blocks module to help in printing markdown
5357+ and RST tables. This module provides functions for working with
5358+ fixed-width blocks of text--e.g., placing them side by side, as
5359+ in a table row.
5360+
5361+ * Refactored to avoid reliance on Haskell's Text.Regex library, which
5362+ (a) is slow, and (b) does not properly handle unicode. This fixed
5363+ some strange bugs, e.g. in parsing S-cedilla, and improved performance.
5364+
5365+ + Replaced 'gsub' with a general list function 'substitute'
5366+ that does not rely on Text.Regex.
5367+ + Rewrote extractTagType in HTML reader so that it doesn't use
5368+ regexs.
5369+ + In Markdown reader, replaced email regex test with a custom email
5370+ autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
5371+ with a custom function isSelfClosingTag.
5372+ + Modified Docbook writer so that it doesn't rely on Text.Regex for
5373+ detecting 'mailto' links.
5374+ + Removed escapePreservingRegex and reamped entity-handling
5375+ functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
5376+ avoid reliance on Text.Regex (see below on character reference
5377+ handling changes).
5378+
5379+ * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
5380+
5381+ * Changed handling of XML entities. Entities are now parsed (and unicode
5382+ characters returned) in the Markdown and HTML readers, rather than being
5383+ handled in the writers. In HTML and Docbook writers, UTF-8 is now used
5384+ instead of entities for characters above 128. This makes the HTML and
5385+ DocBook output much more readable and more easily editable.
5386+
5387+ + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
5388+ sgmlCharacterEntity regexes from Text.Pandoc.Shared.
5389+ + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
5390+ Moved both functions to Text.Pandoc.Writers.Docbook.
5391+ + Added characterReference parser to Text.Pandoc.CharacterReferences.
5392+ This parses a string and return a unicode character.
5393+ + Rewrote decodeCharacterReferences to use the new parser instead of
5394+ Text.Regex.
5395+ + Added new charRef parser for Markdown and HTML, which replaces the
5396+ old 'entity' parser. Added '&' as a special character in Markdown reader.
5397+ + Modified HTML and Markdown readers to call decodeEntities on all raw
5398+ strings (e.g. authors, dates, link titles), to ensure that no
5399+ unprocessed entities are included in the native representation of
5400+ the document. (In the HTML reader, most of this work is done by a
5401+ change in extractAttributeName.)
5402+ + In XML and Markdown output, escape unicode nonbreaking space as ' ',
5403+ since a unicode non-breaking space is impossible to distinguish visually
5404+ from a regular space. (Resolves Issue #3.)
5405+ + Removed encodeEntitiesNumerical.
5406+ + Use Data.Map for entityTable and (new) reverseEntityTable, for a
5407+ slight performance boost over the old association list.
5408+ + Removed unneeded decodeEntities from 'str' parser in HTML and
5409+ Markdown readers.
5410+
5411+ * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
5412+ fromUTF8, for clarity.
5413+
5414+ * Replaced old haskell98 module names replaced by hierarchical module
5415+ names, e.g. List by Data.List. Removed haskell98 from dependencies
5416+ in pandoc.cabal, and added mtl (needed for state monad). Substituted
5417+ xhtml for html.
5418+
5419+ * Refactored and cleaned up character escaping in writers, using
5420+ backslashEscapes and escapeStringUsing functions.
5421+
5422+ * Instead of adding "\n\n" to the end of an input string in Main.hs,
5423+ this is now done in the readers. This makes the libraries behave
5424+ the way you'd expect from the pandoc program. Resolves Issue #10.
5425+
5426+ * URLs and email addresses in autolinks are now typeset as Code.
5427+
5428+ * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
5429+ doesn't display the whole output unless there's a line ending.
5430+
5431+ * Major code cleanup in all modules, for greater consistency, concision,
5432+ and readability.
5433+
5434+ * HTML reader:
5435+
5436+ + Fixed several bugs (extractTagType, attribute parsing).
5437+ + Remove Null blocks in lists of blocks when possible.
5438+ + Allow HTML comments as raw HTML inline.
5439+
5440+ * Markdown reader:
5441+
5442+ + Ordered list items may no longer begin with uppercase letters, or
5443+ letters greater than 'n'. (This prevents first initials and page
5444+ reference, e.g. 'p. 400', from being parsed as beginning lists.)
5445+ Also, numbers beginning list items may no longer end with ')',
5446+ which is now allowed only after letters. Note: These changes
5447+ may cause documents to be parsed differently. Users should take
5448+ care in upgrading.
5449+ + Changed autoLink parsing to conform better to Markdown.pl's
5450+ behavior. `<google.com>` is not treated as a link, but
5451+ `<http://google.com>`, `<ftp://google.com>`, and
5452+ `<mailto:google@google.com>` are.
5453+ + Cleaned up handling of embedded quotes in link titles. Now these are
5454+ stored as a '"' character, not as '"'.
5455+ + Use lookAhead parser for the 'first pass' (looking for reference keys),
5456+ instead of parsing normally, then using setInput to reset input. This
5457+ yields a slight performance boost.
5458+ + Fixed several bugs in smart quote recognition.
5459+ + Fixed bug in indentSpaces (which didn't properly handle
5460+ cases with mixed spaces and tabs).
5461+ + Consolidated 'text', 'special', and 'inline' into 'inline'.
5462+ + Fixed bug which allowed URL and title to be separated by multiple blank
5463+ lines in links and reference keys. They can be on separate lines but
5464+ can't have blank lines between them.
5465+ + Correctly handle bracketed text inside inline footnotes and links,using
5466+ new function inlinesInBalanced. Resolves Issue #14.
5467+ + Fixed bug in footnotes: links in footnotes were not being
5468+ processed. Solution: three-stage parse. First, get all the
5469+ reference keys and add information to state. Next, get all the
5470+ notes and add information to state. (Reference keys may be needed
5471+ at this stage.) Finally, parse everything else.
5472+ + Replaced named constants like 'emphStart' with literals.
5473+ + Removed an extra occurance of escapedChar in definition of inline.
5474+
5475+ * RST reader:
5476+
5477+ + Allow the URI in a RST hyperlink target to start on the line
5478+ after the reference key.
5479+ + Added 'try' in front of 'string', where needed, or used a different
5480+ parser. This fixes a bug where ````` would not be correctly parsed as
5481+ a verbatim `.
5482+ + Fixed slow performance in parsing inline literals in RST reader. The
5483+ problem was that ``#`` was seen by 'inline' as a potential link or image.
5484+ Fix: inserted 'notFollowedBy (char '`')' in link parsers.
5485+ Resolves Issue #8.
5486+ + Use lookAhead instead of getInput/setInput in RST reader. Removed
5487+ unneeded getState call, since lookAhead automatically saves and
5488+ restores the parser state.
5489+ + Allow hyperlink target URIs to be split over multiple lines, and
5490+ to start on the line after the reference. Resolves Issue #7.
5491+ + Fixed handling of autolinks.
5492+
5493+ * LaTeX reader:
5494+
5495+ + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
5496+ for clarity.
5497+ + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
5498+ caret is \^{}, not \^ as before.
5499+ + Added parsing for \url.
5500+ + Parse \texttt{} as code, provided there's nothing fancy inside.
5501+
5502+ * HTML writer:
5503+
5504+ + Modified HTML writer to use the Text.XHtml library. This results
5505+ in cleaner, faster code, and it makes it easier to use Pandoc in
5506+ other projects, like wikis, which use Text.XHtml. Two functions are
5507+ now provided, writeHtml and writeHtmlString: the former outputs an
5508+ Html structure, the latter a rendered string. The S5 writer is also
5509+ changed, in parallel ways (writeS5, writeS5String).
5510+ + The Html header is now written programmatically, so it has been
5511+ removed from the 'headers' directory. The S5 header is still
5512+ needed, but the doctype and some of the meta declarations have
5513+ been removed, since they are written programatically. This change
5514+ introduces a new dependency on the xhtml package.
5515+ + Fixed two bugs in email obfuscation involving improper escaping
5516+ of '&' in the `<noscript>` section and in `--strict` mode. Resolves
5517+ Issue #9.
5518+ + Fixed another bug in email obfuscation: If the text to be obfuscated
5519+ contains an entity, this needs to be decoded before obfuscation.
5520+ Thanks to thsutton for the patch. Resolves Issue #15.
5521+ + Changed the way the backlink is displayed in HTML footnotes.
5522+ Instead of appearing on a line by itself, it now generally
5523+ appears on the last line of the note. (Exception: when the
5524+ note does not end with a Plain or Para block.) This saves space
5525+ and looks better.
5526+ + Added automatic unique identifiers to headers:
5527+ - The identifier is derived from the header via a scheme
5528+ documented in README.
5529+ - WriterState now includes a list of header identifiers and a table
5530+ of contents in addition to notes.
5531+ - The function uniqueIdentifiers creates a list of unique identifiers
5532+ from a list of inline lists (e.g. headers).
5533+ - This list is part of WriterState and gets consumed by blockToHtml
5534+ each time a header is encountered.
5535+ + Include CSS for .strikethrough class in header only if strikethrough
5536+ text appears in the document.
5537+ + If the 'strict' option is specified, elements that do not appear in
5538+ standard markdown (like definition lists) are passed through as
5539+ raw HTML.
5540+ + Simplified treatment of autolinks, using pattern matching instead of
5541+ conditionals.
5542+
5543+ * Markdown writer:
5544+
5545+ + Links in markdown output are now printed as inline links by default,
5546+ rather than reference links. A --reference-links option has been added
5547+ that forces links to be printed as reference links. Resolves Issue #4.
5548+ + Use autolinks when possible. Instead of `[site.com](site.com)`,
5549+ use `<site.com>`.
5550+
5551+ * LaTeX writer:
5552+
5553+ + Rewrote to use the State monad. The preamble now includes only those
5554+ packages that are actually required, given the document's content.
5555+ Thus, for example, if strikeout is not used, ulem is not required.
5556+ Modified LaTeXHeader accordingly.
5557+ + Modified LaTeX writer to insert '\,' between consecutive quotes.
5558+ + Removed unused function tableRowColumnWidths.
5559+ + Simplified code for escaping special characters.
5560+ + Leave extra blank line after \maketitle.
5561+ + Include empty '\author{}' when no author specified to avoid LaTeX
5562+ errors.
5563+ + Include fancyvrb code in header only if needed -- that is, only
5564+ if there is actually code in a footnote.
5565+ + Use \url{} for autolinks.
5566+ + Include [mathletters] option in ucs package, so that basic unicode
5567+ Greek letters will work correctly.
5568+
5569+ * RST writer: Force blank line before lists, so that sublists will
5570+ be handled correctly.
5571+
5572+ * Docbook writer: Fixed a bug: email links with text, like
5573+ [foo](me@bar.baz), were being incorrectly treated as autolinks.
5574+
5575+ * Removed Text.ParserCombinators.Pandoc and moved all its functions to
5576+ Text.Pandoc.Shared.
5577+
5578+ * Text.Pandoc.Shared:
5579+
5580+ + Added defaultWriterOptions.
5581+ + Added writerTableOfContents to WriterOptions.
5582+ + Added writerIgnoreNotes option to WriterOptions. This is needed
5583+ for processing header blocks for a table of contents, since notes on
5584+ headers should not appear in the TOC.
5585+ + Added prettyprinting for native Table format.
5586+ + Removed some unneeded imports.
5587+ + Moved escape and nullBlock parsers from
5588+ Text.ParserCombinators.Pandoc, since the latter is for
5589+ general-purpose parsers that don't depend on Text.Pandoc.Definition.
5590+ + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
5591+ + Moved Element, headerAtLeast, and hierarchicalize from Docbook
5592+ writer, because HTML writer now uses these in constructing a table
5593+ of contents.
5594+ + Added clauses for new inline elements (Strikeout, Superscript,
5595+ Subscript) to refsMatch.
5596+ + Removed backslashEscape; added new functions escapeStringUsing and
5597+ backslashEscapes.
5598+ + Moved failIfStrict from markdown reader, since it is now used also
5599+ by the HTML reader.
5600+ + Added a 'try' to the definition of indentSpaces.
5601+ + In definition of 'reference', added check to make sure it's not a note
5602+ reference.
5603+ + Added functions: camelCaseToHyphenated, toRomanNumeral,
5604+ anyOrderedListMarker, orderedListmarker, orderedListMarkers,
5605+ charsInBalanced', withHorizDisplacement, romanNumeral
5606+ + Fixed a bug in the anyLine parser. Previously it would parse an empty
5607+ string "", but it should fail on an empty string, or we get an error
5608+ when it is used inside "many" combinators.
5609+ + Removed followedBy' parser, replacing it with the lookAhead parser from
5610+ Parsec.
5611+ + Added some needed 'try's before multicharacter parsers, especially in
5612+ 'option' contexts.
5613+ + Removed the 'try' from the 'end' parser in 'enclosed', so that
5614+ 'enclosed' behaves like 'option', 'manyTill', etc.
5615+ + Added lineClump parser, which parses a raw line block up to and
5616+ including any following blank lines.
5617+ + Renamed parseFromStr to parseFromString.
5618+ + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
5619+ the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
5620+ in calling code.
5621+ + Removed unneeded 'try' in blanklines.
5622+ + Removed endsWith function and rewrote calling functions to use
5623+ isSuffixOf instead.
5624+ + Added >>~ combinator.
5625+ + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
5626+ Space.
5627+
5628+ * Refactored runtests.pl; added separate tests for tables.
5629+
5630+ * Shell scripts:
5631+
5632+ + Added -asxhtml flag to tidy in html2markdown. This will
5633+ perhaps help the parser, which expects closing tags.
5634+ + Modified markdown2pdf to run pdflatex a second time if --toc or
5635+ --table-of-contents was specified; otherwise the table of
5636+ contents won't appear.
5637+ + Modified markdown2pdf to print a helpful message if the 'ulem'
5638+ LaTeX package is required and not found.
5639+
5640+ * Changes to build process:
5641+
5642+ + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
5643+ is now required.
5644+ + Removed cabalize and Pandoc.cabal.in. The repository now contains
5645+ pandoc.cabal itself.
5646+ + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
5647+ likes the cabal file to have the same name as the tarball.
5648+ + Expanded and revised the package description in pandoc.cabal.
5649+ Revised the package synopsis.
5650+ + The tarball built by 'make tarball' now contains files built from
5651+ templates (including man pages and shell scripts), so pandoc can
5652+ be built directly using Cabal tools, without preprocessing.
5653+ + Executable binaries are now stripped before installing.
5654+ + Man pages are now generated from markdown sources, using pandoc's
5655+ man page writer.
5656+ + Use HTML version of README (instead of RTF) in Mac OS X installer.
5657+ + Instead of testing for the existence of a pandoc symlink in build-exec,
5658+ use ln -f.
5659+
5660+ * Documentation:
5661+
5662+ + Updated README and man pages with information on new features.
5663+ + Updated INSTALL instructions with some useful clarifications and
5664+ links.
5665+ + Updated web content.
5666+
5667+ * Added FreeBSD port.
5668+
5669+ [ Recai Oktaş ]
5670+
5671+ * debian/control:
5672+
5673+ + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
5674+ libghc6-xhtml-dev. Removed libghc6-html-dev.
5675+ + Suggest texlive-latex-recommended | tetex-extra instead of
5676+ tetex-bin. This brings in fancyvrb and unicode support.
5677+
5678+ -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
5679+
5680+pandoc (0.3) unstable; urgency=low
5681+
5682+ [ John MacFarlane ]
5683+
5684+ * Changes in pandoc options:
5685+
5686+ + Allow options to follow or precede arguments.
5687+ + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
5688+ + Added '--strict' option.
5689+ + Added '-o/--output' option.
5690+ + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
5691+ + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
5692+ error conditions. This is helpful for writing wrappers.
5693+ + Added copyright message to '-v' output, modeled after FSF messages.
5694+ + Reformatted usage message so that it doesn't wrap illegibly.
5695+ + Removed extra blanks after '-h' and '-D' output.
5696+
5697+ * Added docbook writer.
5698+
5699+ * Added implicit setting of default input and output format based
5700+ on input and output filename extensions. These defaults are
5701+ overridden if explicit input and output formats are specified using
5702+ '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
5703+ and README.
5704+
5705+ * Allow ordered list items to begin with (single) letters, as well
5706+ as numbers. The list item marker may now be terminated either by
5707+ '.' or by ')'. This extension to standard markdown is documented
5708+ in README.
5709+
5710+ * Revised footnote syntax. (See README for full details.) The
5711+ '[^1]' format now standard in markdown extensions is supported,
5712+ as are inline footnotes with this syntax: '^[My note.]'.
5713+ The earlier footnote syntax '^(1)' is no longer supported.
5714+
5715+ * Improved HTML representation of footnotes. All footnotes
5716+ are now auto-numbered and appear in an ordered list at the
5717+ end of the HTML document. Since the default appearance is now
5718+ acceptable, the old footnote styles have been removed from the
5719+ HTML header.
5720+
5721+ * Bug fixes:
5722+
5723+ + Fixed a serious bug in the markdown, LaTeX, and RST readers.
5724+ These readers ran 'runParser' on processed chunks of text to handle
5725+ embedded block lists in lists and quotation blocks. But then
5726+ any changes made to the parser state in these chunks was lost,
5727+ as the state is local to the parser. So, for example, footnotes
5728+ didn't work in quotes or list items. The fix: instead of calling
5729+ runParser on some raw text, use setInput to make it the input, then
5730+ parse it, then use setInput to restore the input to what it was
5731+ before. This is shorter and more elegant, and it fixes the problem.
5732+ + Fixed bug in notFollowedBy' combinator (adding 'try' before
5733+ 'parser'). Adjusted code that uses this combinator accordingly.
5734+ + Fixed bug in RTF writer that caused improper indentation on
5735+ footnotes occurring in indented blocks like lists.
5736+ + Fixed parsing of metadata in LaTeX reader. Now the title, author,
5737+ and date are parsed correctly. Everything else in the preamble
5738+ is skipped.
5739+ + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
5740+ line to count as escaped whitespace.
5741+ + Modified LaTeX reader to produce inline links rather than reference
5742+ links. Otherwise, links in footnotes aren't handled properly.
5743+ + Fixed handling of titles in links in Markdown reader, so that
5744+ embedded quotation marks are now handled properly.
5745+ + Fixed Markdown reader's handling of embedded brackets in links.
5746+ + Fixed Markdown reader so that it only parses bracketed material
5747+ as a reference link if there is actually a corresponding key.
5748+ + Revised inline code parsing in Markdown reader to conform to
5749+ markdown standard. Now any number of `s can begin inline code,
5750+ which will end with the same number of `s. For example, to
5751+ have two backticks as code, write ``` `` ```. Modified Markdown
5752+ writer accordingly.
5753+ + Fixed bug in text-wrapping routine in Markdown and RST writers.
5754+ Now LineBreaks no longer cause wrapping problems.
5755+ + Supported hexadecimal numerical entity references as well as
5756+ decimal ones.
5757+ + Fixed bug in Markdown reader's handling of underscores and other
5758+ inline formatting markers inside reference labels: for example,
5759+ in '[A_B]: /url/a_b', the material between underscores was being
5760+ parsed as emphasized inlines.
5761+ + Changed Markdown reader's handling of backslash escapes so that
5762+ only non-alphanumeric characters can be escaped. Strict mode
5763+ follows Markdown.pl in only allowing a select group of punctuation
5764+ characters to be escaped.
5765+ + Modified HTML reader to skip a newline following a `<br>` tag.
5766+ Otherwise the newline will be treated as a space at the beginning
5767+ of the next line.
5768+
5769+ * Made handling of code blocks more consistent. Previously, some
5770+ readers allowed trailing newlines, while others stripped them.
5771+ Now, all readers strip trailing newlines in code blocks. Writers
5772+ insert a newline at the end of code blocks as needed.
5773+
5774+ * Modified readers to make spacing at the end of output more consistent.
5775+
5776+ * Minor improvements to LaTeX reader:
5777+
5778+ + '\thanks' now treated like a footnote.
5779+ + Simplified parsing of LaTeX command arguments and options.
5780+ commandArgs now returns a list of arguments OR options (in
5781+ whatever order they appear). The brackets are included, and
5782+ a new stripFirstAndLast function is provided to strip them off
5783+ when needed. This fixes a problem in dealing with \newcommand
5784+ and \newenvironment.
5785+
5786+ * Revised RTF writer:
5787+
5788+ + Default font is now Helvetica.
5789+ + An '\f0' is added to each '\pard', so that font resizing works
5790+ correctly.
5791+
5792+ * Moved handling of "smart typography" from the writers to the Markdown
5793+ and LaTeX readers. This allows great simplification of the writers
5794+ and more accurate smart quotes, dashes, and ellipses. DocBook can
5795+ now use `<quote>`. The '--smart' option now toggles an option in
5796+ the parser state rather than a writer option. Several new kinds
5797+ of inline elements have been added: Quoted, Ellipses, Apostrophe,
5798+ EmDash, EnDash.
5799+
5800+ * Changes in HTML writer:
5801+
5802+ + Include title block in header even when title is null.
5803+ + Made javascript obfuscation of emails even more obfuscatory,
5804+ by combining it with entity obfuscation.
5805+
5806+ * Changed default ASCIIMathML text color to black.
5807+
5808+ * Test suite:
5809+
5810+ + Added --strip-trailing-cr option to diff in runtests.pl, for
5811+ compatibility with Windows.
5812+ + Added regression tests with footnotes in quote blocks and lists.
5813+
5814+ * Makefile changes:
5815+
5816+ + osx-pkg target creates a Mac OS X package (directory). New osx
5817+ directory contains files needed for construction of the package.
5818+ + osx-dmg target creates a compressed disk image containing the package.
5819+ + win-pkg target creates Windows binary package.
5820+ + tarball target creates distribution source tarball.
5821+ + website target generates pandoc's website automatically, including
5822+ demos. New 'web' directory containts files needed for construction
5823+ of the website (which will be created as the 'pandoc' subdirectory
5824+ of 'web').
5825+ + Makefile checks to see if we're running Windows/Cygwin; if so,
5826+ a '.exe' extension is added to each executable in EXECS.
5827+
5828+ * Removed all wrappers except markdown2pdf and html2markdown.
5829+
5830+ * Added new wrapper hsmarkdown, to be used as a drop-in replacement
5831+ for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
5832+ option and disables other options.
5833+
5834+ * Added code to html2markdown that tries to determine the character
5835+ encoding of an HTML file, by parsing the "Content-type" meta tag.
5836+
5837+ + If the encoding can't be determined, then if the content is local,
5838+ the local encoding is used; if it comes from a URL, UTF-8 is used
5839+ by default.
5840+ + If input is from STDIN, don't try to determine character encoding.
5841+ + Encoding can be specified explicitly using '-e' option.
5842+
5843+ * Improved warning messages in wrappers:
5844+
5845+ + Print warning if iconv not available
5846+ + More user-friendly error messages in markdown2pdf, when
5847+ pdflatex fails.
5848+
5849+ * Code cleanup:
5850+
5851+ + Renamed 'Text/Pandoc/HtmlEntities' module to
5852+ 'Text/Pandoc/Entities'. Also changed function names so as
5853+ not to be HTML-specific.
5854+ + Refactored SGML string escaping functions from HTML and Docbook
5855+ writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
5856+ + Removed 'BlockQuoteContext' from ParserContext, as it isn't
5857+ used anywhere.
5858+ + Removed splitBySpace and replaced it with a general, polymorphic
5859+ splitBy function.
5860+ + Refactored LaTeX reader for clarity (added isArg function).
5861+ + Converted some CR's to LF's in src/ui/default/print.css.
5862+ + Added license text to top of source files.
5863+ + Added module data for haddock to source files.
5864+ + Reformatted code for consistency.
5865+
5866+ * Rewrote documentation and man pages. Split README into INSTALL
5867+ and README.
5868+
5869+ * Split LICENSE into COPYING and COPYRIGHT.
5870+
5871+ * Removed TODO, since we now maintain ToDo on the wiki.
5872+
5873+ * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
5874+ duplication.
5875+
5876+ [ Recai Oktaş ]
5877+
5878+ * Revamped build process to conform to debian standards and created
5879+ a proper debian package. Closes: #391666.
5880+
5881+ * Modified build process to support GHC 6.6.
5882+
5883+ + The package can still be compiled using GHC 6.4.2, though because
5884+ of dependencies the "make deb" target works only with GHC 6.6+.
5885+ + The script 'cabalize' is used to create an appropriate
5886+ 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
5887+ Cabal versions.
5888+
5889+ * Refactored template processing (fillTemplates.pl).
5890+
5891+ * Modified wrapper scripts to make them more robust and portable.
5892+ To avoid code duplication and ensure consistency, wrappers are
5893+ generated via a templating system from templates in src/wrappers.
5894+
5895+ + Wrappers now accept multiple filenames, when appropriate.
5896+ + Spaces and tabs allowed in filenames.
5897+ + getopts shell builtin is used for portable option parsing.
5898+ + Improved html2markdown's web grabber code, making it more robust,
5899+ configurable and verbose. Added '-e', '-g' options.
5900+
5901+ -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
5902+
5903+pandoc (0.2) unstable; urgency=low
5904+
5905+ * Fixed unicode/utf-8 translation
5906+
5907+ -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
5908+
5909+pandoc (0.1) unstable; urgency=low
5910+
5911+ * Initial creation of debian package
5912+
5913+ -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400