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