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