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