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