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