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