3 * Relaxed version constraint on binary, allowing the use of binary 0.5.
7 * The `--bibliography` option now sets the `biblio-files` variable.
8 So, if you're using `--natbib` or `--biblatex`, you can just use
9 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
11 * Don't run pandoc-citeproc filter if `--bibliography` is
12 used together with `--natbib` or `--biblatex` (Florian Eitel).
16 + Updated beamer template to include booktabs.
17 + Added `abstract` variable to LaTeX template.
18 + Put `header-includes` after `title` in LaTeX template (#908).
19 + Allow use of `\includegraphics[size]` in beamer.
20 This just required porting a macro definition from the default
21 LaTeX template to the default beamer template.
23 * `reference.docx`: Include `FootnoteText` style.
24 Otherwise Word ignores the style, even when specified in the `pPr`.
27 * `reference.odt`: Tidied `styles.xml`.
29 * Relaxed version bounds for dependencies.
31 * Added `withSocketsDo` around http conduit code in `openURL`,
32 so it works on Windows (#1080).
34 * Added `Cite` function to `sample.lua`.
38 + Fixed regression in title blocks (#1089).
39 If author field was empty, date was being ignored.
40 + Allow backslash-newline hard line breaks in grid and
41 multiline table cells.
42 + Citation keys may now start with underscores, and may contain
43 underscores adjacent to internal punctuation.
47 + Add support for `Verb` macro (jrnold) (#1090).
48 + Support babel-style quoting: `` "`..."' ``.
50 * Properly handle script blocks in strict mode. (That is,
51 `markdown-markdown_in_html_blocks`.) Previously a spurious
52 `<p>` tag was being added (#1093).
54 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
59 + Factored out function for table cell creation.
60 + Better treatment of footnotes in tables.
61 Notes now appear in the regular sequence, rather than in the
62 table cell. (This was a regression in 1.10.)
64 * HTML reader: Parse name/content pairs from meta tags as metadata.
67 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
69 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
71 * ODT writer: Use mathml for proper rendering of formulas.
72 Note: LibreOffice's support for this seems a bit buggy. But
73 it should be better than what we had before.
75 * RST writer: Ensure no blank line after def in definition list (#992).
77 * Markdown writer: Don't use tilde code blocks with braced attributes in
78 `markdown_github` output. A consequence of this change is that the
79 backtick form will be preferred in general if both are enabled. That
80 is good, as it is much more widespread than the tilde form. (#1084)
82 * Docx writer: Fixed problem with some modified reference docx files.
83 Include `word/_rels/settings.xml.rels` if it exists, as well as other
84 `rels` files besides the ones pandoc generates explicitly.
88 + With `--toc`, headers no longer link to themselves (#1081).
89 + Omit footnotes from TOC entries. Otherwise we get doubled
90 footnotes when headers have notes!
94 + Avoid duplicate notes when headings contain notes.
95 This arose because the headings are copied into the metadata
96 "title" field, and the note gets rendered twice. We strip the
97 note now before putting the heading in "title".
98 + Strip out footnotes from toc entries.
99 + Fixed bug with `--epub-stylesheet`. Now the contents of
100 `writerEpubStylesheet` (set by `--epub-stylesheet`)
101 should again work, and take precedence over a stylesheet specified
104 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
106 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
108 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
111 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
112 we could only get size information for JFIF format, which led
113 to squished images in Word documents. Closes #976.
115 * Removed old `MarkdownTest_1.0.3` directory (#1104).
119 * Markdown reader: Fixed regression in list parser, involving
120 continuation lines containing raw HTML (or even verbatim raw HTML).
124 * Metadata may now be included in YAML blocks in a markdown document.
132 text: An investigation of metadata
140 text: doi:10.234234.234/33
142 rights: (c) 2007 John Smith, CC BY-NC
143 cover-image: img/mypic.jpg
146 Metadata may still be provided using `--epub-metadata`; it will
147 be merged with the metadata in YAML blocks.
151 + `meta` tags are now used instead of `opf` attributes for EPUB3.
152 + Insert "svg" property as needed in opf (EPUB 3).
153 + Simplify `imageTypeOf` using `getMimeType`.
154 + Add properties attribute to `cover-image` item for EPUB 3.
155 + Don't include node for `cover.xhtml` if no cover!
156 + Ensure that same identifier is used throughout (#1044).
157 If an identifier is given in metadata, we use that; otherwise
158 we generate a random uuid.
159 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
160 Fixes an issue with Calibre putting the cover at the end of the book
161 if the spine has `linear="no"`. Apparently this is best practice
162 for other converters as well:
163 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
164 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
165 + Allow partial dates: `YYYY`, `YYYY-MM`.
167 * Markdown writer: Fix rendering of tight sublists (#1050).
168 Previously a spurious blank line was included after a tight sublist.
170 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
171 This is reported to be necessary to avoid an error from recent
172 versions of Libre Office when files contain more than one image
173 Thanks to wmanley for reporting and diagnosing the problem.
175 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
176 Instead, let this be set in the template, using `\setupfloat`.
177 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
179 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
181 * Fixed bug with markdown intraword emphasis. Closes #1066.
183 * Docbook writer: Hierarchicalize block content in metadata.
184 Previously headers just disappeared from block-level metadata
185 when it was used in templates. Now we apply the 'hierarchicalize'
186 transformation. Note that a block headed by a level-2 header will
187 turn into a `<sect1>` element.
189 * OpenDocument writer: Skip raw HTML (#1035).
190 Previously it was erroneously included as verbatim text.
192 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
193 This allows better control of formatting, since the `<a>`
194 tags have a distinguishing class (#1049).
198 + Use mime type info returned by fetchItem.
199 + Fixed core metadata (#1046).
200 Don't create empty date nodes if no date given.
201 Don't create multiple `dc:creator` nodes; instead separate by
203 + Fix URL for core-properties in `_rels/.rels` (#1046).
205 * Plain writer: don't print `<span>` tags.
209 + Fix definition lists with internal links in terms (#1032).
210 This fix puts braces around a term that contains an internal
211 link, to avoid problems with square brackets.
212 + Properly escape pdftitle, pdfauthor (#1059).
213 + Use booktabs package for tables (thanks to Jose Luis Duran).
215 * Updated beamer template. Now references should work properly
216 (in a slide) when `--biblatex` or `--natbib` is used.
220 + Parse contents of curly quotes or matched `"` as quotes.
221 + Support `\textnormal` as span with class `nodecor`.
222 This is needed for pandoc-citeproc.
223 + Improved citation parsing. This fixes a run-time error that occured
224 with `\citet{}` (empty list of keys). It also ensures that empty keys
227 * MediaWiki reader: Add automatic header identifiers.
231 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
233 + Recognize `svg` tags as block level content (thanks to MinRK).
234 + Parse LaTeX math if appropriate options are set.
238 + Yaml block must start immediately after `---`. If there's a blank
239 line after `---`, we interpreted it as a horizontal rule.
240 + Correctly handle empty bullet list items.
241 + Stop parsing "list lines" when we hit a block tag.
242 This fixes exponential slowdown in certain input, e.g.
243 a series of lists followed by `</div>`.
245 * Slides: Preserve `<div class="references">` in references slide.
247 * `Text.Pandoc.Writer.Shared`:
249 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
250 attributes, leading to invalid HTML.
251 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
252 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
253 encoded bytestring was returned. We now decode it so it's a proper
256 * DocBook reader: Handle numerical attributes starting with decimal.
257 Also use `safeRead` instead of `read`.
259 * `Text.Pandoc.Parsing`:
261 + Generalized type of `registerHeader`, using new type classes
262 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
263 These allow certain common functions to be reused
264 even in parsers that use custom state (instead of `ParserState`),
265 such as the MediaWiki reader.
266 + Moved inlineMath, displayMath from Markdown reader to Parsing.
267 Generalize their types and export them from Parsing. (API change.)
269 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
270 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
271 in all the writers. Require `texmath >= 0.6.5.2`.
273 * `Text.Pandoc.MIME`:
275 + Add entry for `jfif`.
276 + In looking up extensions, drop the encoding info.
277 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
279 * Templates: Changed how array variables are resolved. Previously if
280 `foo` is an array (which might be because multiple values were set on
281 the command line), `$foo$` would resolve to the concatenation of the
282 elements of foo. This is rarely useful behavior. It has been changed
283 so that the first value is rendered. Of course, you can still iterate
284 over the values using `$for(foo)$`. This has the result that you can
285 override earlier settings using `-V` by putting new values later on the
286 command line, which is useful for many purposes.
288 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
290 * Allow "epub2" as synonym for "epub", "html4" for "html".
292 * Don't look for slidy files in data files with `--self-contained`.
294 * Allow `https:` command line arguments to be downloaded.
296 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
300 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
301 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
302 "c": "foo"}`. This new format is easier to work with outside of Haskell.
303 Incidentally, "t" stands for "tag", "c" for "contents".
305 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
306 when converting to markdown (#1027).
310 + Ensure that preamble doesn't contribute to the text of
312 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
313 properly, among others.
314 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
315 bibtex titles, since we need to know what was protected from
316 titlecase conversions.
320 + Specially escape non-ascii characters in labels.
321 Otherwise we can get compile errors and other bugs when
322 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
323 + Add link anchors for code blocks with identifiers (#1025).
325 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
326 It allows fragments identifiers.
330 + A Div element with class "notes" is treated as speaker
331 notes. Currently beamer goes to `\note{}`, revealjs to
332 `<aside class="notes">`, and the notes are simply suppressed in
333 other formats (#925).
334 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
335 The old version caused a pause to be inserted before the first
336 material on a slide. This has been fixed.
337 + Removed data files for s5, slideous, slidy.
338 Users of s5 and slideous will have to download the needed
339 files, as has been documented for some time in the README.
340 By default, slidy code will be sought on the web, as before.
342 * HTML writer: Insert command to typeset mathjax only in slideous output
345 * RST writer: Skip spaces after display math. Otherwise we get indentation
346 problems, and part of the next paragraph may be rendered as part of the
349 * OpenDocument writer: Fix formatting of strikeout code (#995),
350 thanks to wilx. don't use `font-face-decls` variable.
352 * Fixed test suite so it works with cabal sandboxes.
356 * Removed `stringable` dependency.
360 * Allow `--metadata` to be repeated for the same key to form a list.
361 This also has the effect that `--bibliography` can be repeated,
364 * Handle boolean values in `--metadata`. Note that anything not parseable
365 as a YAML boolean or string is treated as a literal string.
366 You can get a string value with "yes", or any of the strings interpretable
367 as booleans, by quoting it:
369 -M boolvalue=yes -M stringvalue='"yes"'
371 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
374 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
375 in which docx files could not be read by some versions of Word
376 and LibreOffice (#990).
378 * Fixed a regression involving slide shows with bibliographies.
379 The Div container around references messed up the procedure for carving
380 a document into slides. So we now remove the surrounding Div in
383 * More informative error message when a filter is not found in path.
385 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
386 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
388 * Don't use unicode_collation in building OSX package:
389 it adds something like 50MB of dependencies to the package.
391 * Declare alex and happy as build-tools (#986).
397 * Much more flexible metadata, including arbitrary fields and structured
398 values. Metadata can be specified flexibly in pandoc markdown using
399 YAML metadata blocks, which may occur anywhere in the document:
402 title: Here is my title.
404 This is the abstract.
410 tags: [cat, dog, animal]
413 Metadata fields automatically populate template variables.
415 * Added `opml` (OPML) as input and output format. The `_note` attribute,
416 used in OmniOutliner and supported by multimarkdown, is supported.
417 We treat the contents as markdown blocks under a section header.
419 * Added `haddock` (Haddock markup) as input format (David Lazar).
421 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
422 (Thanks to Jamie F. Olson for the initial patch.)
423 Nested vertical stacks are used for hierarchical structure.
424 Results for more than one level of nesting may be odd.
426 * Custom writers can now be written in lua.
428 pandoc -t data/sample.lua
430 will load the script sample.lua and use it as a custom writer.
431 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
432 Note that pandoc embeds a lua interpreter, so lua need not be
433 installed separately.
435 * New `--filter/-F` option to make it easier to run "filters"
436 (Pandoc AST transformations that operate on JSON serializations).
437 Filters are always passed the name of the output format, so their
438 behavior can be tailored to it. The repository
439 <https://github.com/jgm/pandocfilters> contains
440 a python module for writing pandoc filters in python, with
441 a number of examples.
443 * Added `--metadata/-M` option.
444 This is like `--variable/-V`, but actually adds to metadata, not
447 * Added `--print-default-data-file` option, which allows printing
448 of any of pandoc's data files. (For example,
449 `pandoc --print-default-data-file reference.odt` will print
452 * Added syntax for "pauses" in slide shows:
460 * New markdown extensions:
462 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
463 rather than being treated as hard line breaks or spaces. This is useful
464 for some East Asian languages, where spaces aren't used between words,
465 but text is separated into lines for readability.
466 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
467 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
468 only. (Default for `markdown_github`.) (#807)
469 + `lists_without_preceding_blankline`: Allow lists to start without
470 preceding blank space. (Default for `markdown_github`.) (#972)
474 * `--toc-level` no longer implies `--toc`.
475 Reason: EPUB users who don't want a visible TOC may still want
476 to set the TOC level for in the book navigation.
478 * `--help` now prints in and out formats in alphabetical order, and
479 says something about PDF output (#720).
481 * `--self-contained` now returns less verbose output (telling you
482 which URLs it is fetching, but not giving the full header). In
483 addition, there are better error messages when fetching a URL fails.
485 * Citation support is no longer baked in to core pandoc. Users who
486 need citations will need to install and use a separate filter
487 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
488 `csl`, and `citation-abbreviations` from the metadata, though it
489 may still be specified on the command line as before.
491 * A `Cite` element is now created in parsing markdown whether or not
492 there is a matching reference.
494 * The `pandoc-citeproc` script will put the bibliography at the
495 end of the document, as before. However, it will be put inside a `Div`
496 element with class "references", allowing users some control
497 over the styling of references. A final header, if any, will
498 be included in the `Div`.
500 * The markdown writer will not print a bibliography if the
501 `citations` extension is enabled. (If the citations are formatted
502 as markdown citations, it is redundant to have a bibliography,
503 since one will be generated automatically.)
505 * Previously we used to store the directory of the first input file,
506 even if it was local, and used this as a base directory for finding
507 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
508 users. So we now look for images relative to the current
509 working directory, even if the first file argument is in another
510 directory. Note that this change may break some existing workflows.
511 If you have been assuming that relative links will be interpreted
512 relative to the directory of the first file argument, you'll need
513 to make that the current directory before running pandoc. (#942)
515 * Better error reporting in some readers, due to changes in `readWith`:
516 the line in which the error occured is printed, with a caret pointing
519 * All slide formats now support incremental slide view for definition lists.
521 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
522 Parse `:<math>...</math>` as display math. These notations are used with
523 the MathJax MediaWiki extension.
525 * All writers: template variables are set automatically from metadata
526 fields. However, variables specified on the command line with
527 `--variable` will completely shadow metadata fields.
529 * If `--variable` is used to set many variables with the same name,
532 * Man writer: The `title`, `section`, `header`, and `footer` can now
533 all be set individually in metadata. The `description` variable has been
534 removed. Quotes have been added so that spaces are allowed in the
535 title. If you have a title that begins
537 COMMAND(1) footer here | header here
539 pandoc will still parse it into a title, section, header, and
540 footer. But you can also specify these elements explicitly (#885).
544 + Added support for YAML metadata blocks, which can come anywhere
545 in the document (not just at the beginning). A document can contain
546 multiple YAML metadata blocks.
547 + HTML span and div tags are parsed as pandoc Span and Div elements.
551 + Allow simple tables to be printed as grid tables,
552 if other table options are disabled. This means you can do
553 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
554 and all tables will render as grid tables.
555 + Support YAML title block (render fields in alphabetical order
556 to make output predictable).
560 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
561 structured metadata. (Note: existing code that pattern-matches
562 on `Meta` will have to be revised.) Metadata can now contain
563 indefinitely many fields, with content that can be a string,
564 a Boolean, a list of `Inline` elements, a list of `Block`
565 elements, or a map or list of these.
567 * A new generic block container (`Div`) has been added to `Block`,
568 and a generic inline container (`Span`) has been added to `Inline`.
569 These can take attributes. They will render in HTML, Textile,
570 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
571 extension) as HTML `<div>` and `<span>` elements; in other formats
572 they will simply pass through their contents. But they can be
575 * `Format` is now a newtype, not an alias for String.
576 Equality comparisons are case-insensitive.
578 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
579 functions that are much faster than the SYB functions from
580 `Text.Pandoc.Generic`. These functions are now used where possible
581 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
582 match the generic traversals `bottomUp` and `queryWith`.)
584 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
585 instances for the basic pandoc types. They use GHC generics and
586 should be faster than the old JSON serialization using
587 `Data.Aeson.Generic`.
589 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
590 This is a souped-up version of `readProcessWithErrorcode` that
591 uses lazy bytestrings instead of strings and allows setting
592 environment variables. (Used in `Text.Pandoc.PDF`.)
594 * New module `Text.Pandoc.Readers.OPML`.
596 * New module `Text.Pandoc.Writers.OPML`.
598 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
599 This is based on Haddock's own lexer/parser.
601 * New module `Text.Pandoc.Writers.Custom`.
603 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
604 Either, for better error handling.
606 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
608 * Removed `stripTags` from `Text.Pandoc.XML`.
610 * `Text.Pandoc.Templates`:
612 + Simplified `Template` type to a newtype.
614 + Changed type of `renderTemplate`: it now takes a JSON context
615 and a compiled template.
616 + Export `compileTemplate`.
617 + Export `renderTemplate'` that takes a string instead of a compiled
619 + Export `varListToJSON`.
621 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
625 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
626 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
627 `Text.Pandoc.JSON` should be used instead. (Compiling against
628 pandoc-types instead of pandoc will also produce smaller executables.)
629 * Removed the deprecated `jsonFilter` function.
630 + Added `readJSON`, `writeJSON` to the API (#817).
632 * `Text.Pandoc.Options`:
634 + Added `Ext_lists_without_preceding_blankline`,
635 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
636 `Ext_yaml_metadataBlock` to `Extension`.
637 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
638 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
639 first command-line argument is an absolute URL. (So, relative links
640 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
641 + All bibliography-related fields have been removed from
642 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
643 `readerReferences`, `readerCitationStyle`.
645 * The `Text.Pandoc.Biblio` module has been removed. Users of the
646 pandoc library who want citation support will need to use
647 `Text.CSL.Pandoc` from `pandoc-citeproc`.
652 * In markdown, don't autolink a bare URI that is followed by `</a>`
655 * `Text.Pandoc.Shared`
657 + `openURL` now follows redirects (#701), properly handles `data:`
658 URIs, and prints diagnostic output to stderr rather than stdout.
659 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
660 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
661 + Fixed `readDefaultDataFile` so it works on Windows.
662 + Better error messages for `readDefaultDataFile`. Instead of
663 listing the last path tried, which can confuse people who are
664 using `--self-contained`, so now we just list the data file name.
665 + URL-escape pipe characters. Even though these are legal, `Network.URI`
666 doesn't regard them as legal in URLs. So we escape them first (#535).
668 * Mathjax in HTML slide shows: include explicit "Typeset" call.
669 This seems to be needed for some formats (e.g. slideous) and won't
670 hurt in others (#966).
674 + On Windows, create temdir in working directory, since the system
675 temp directory path may contain tildes, which can cause
676 problems in LaTeX (#777).
677 + Put temporary output directory in `TEXINPUTS` (see #917).
678 + `makePDF` tries to download images that are not found locally,
679 if the first argument is a URL (#917).
680 + If compiling with `pdflatex` yields an encoding error, offer
681 the suggestion to use `--latex-engine=xelatex`.
683 * Produce automatic header identifiers in parsing textile, RST,
684 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
686 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
687 before treating as a filename. This fixes `--self-contained` when used
688 with CSS files that include web fonts using the method described here:
689 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
690 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
692 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
693 percent-encoding, or a `+` character, as final punctuation.
695 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
696 EPS images properly sized on conversion to Word.
698 * Slidy: Use slidy.js rather than slidy.js.gz.
699 Reason: some browsers have trouble with the gzipped js file,
700 at least on the local file system (#795).
704 + Properly handle blank line at beginning of input (#882).
705 + Fixed bug in unmatched reference links. The input
706 `[*infile*] [*outfile*]` was getting improperly parsed:
707 "infile" was emphasized, but "*outfile*" was literal (#883).
708 + Allow internal `+` in citation identifiers (#856).
709 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
710 + Do not generate blank title, author, or date metadata elements.
711 Leave these out entirely if they aren't present.
712 + Allow backtick code blocks not to be preceded by blank line (#975).
716 + Correctly handle entities.
717 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
718 in code blocks, rather than printing them verbatim. Parse attributes
719 on `<pre>` tag for code blocks.
721 * HTML reader: Handle non-simple tables (#893). Column widths are read from
722 `col` tags if present, otherwise divided equally.
726 + Support alltt environment (#892).
727 + Support `\textasciitilde`, `\textasciicircum` (#810).
728 + Treat `\textsl` as emphasized text reader (#850).
729 + Skip positional options after `\begin{figure}`.
730 + Support `\v{}` for hacek (#926).
731 + Don't add spurious ", " to citation suffixes.
732 This is added when needed in pandoc-citeproc.
733 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
734 + Improved support for accented characters (thanks to Scott Morrison).
735 + Parse label after section command and set id (#951).
739 + Don't insert paragraphs where docutils doesn't.
740 `rst2html` doesn't add `<p>` tags to list items (even when they are
741 separated by blank lines) unless there are multiple paragraphs in the
742 list. This commit changes the RST reader to conform more closely to
743 what docutils does (#880).
744 + Improved metadata. Treat initial field list as metadata when
745 standalone specified. Previously ALL fields "title", "author",
746 "date" in field lists were treated as metadata, even if not at
747 the beginning. Use `subtitle` metadata field for subtitle.
748 + Fixed 'authors' metadata parsing in reST. Semicolons separate
753 + Allow space before table rows.
754 + Fixed regression for `<ref>URL</ref>`.
755 `<` is no longer allowed in URLs, according to the uri parser
756 in `Text.Pandoc.Parsing`. Added a test case.
757 + Correctly handle indented preformatted text without preceding
758 or following blank line.
759 + Fixed `|` links inside table cells. Improved attribute parsing.
760 + Skip attributes on table rows. Previously we just crashed if
761 rows had attributes, now we ignore them.
762 + Ignore attributes on headers.
763 + Allow `Image:` for images (#971).
764 + Parse an image with caption in a paragraph by itself as a figure.
768 + Don't use ligatures in escaping inline code.
769 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
770 wherein notes were numbered incorrectly in tables (#827).
771 + Always create labels for sections. Previously the labels were only
772 created when there were links to the section in the document (#871).
773 + Stop escaping `|` in LaTeX math.
774 This caused problems with array environments (#891).
775 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
776 `\` will cause major problems if unescaped.
777 + Write id for code block to label attribute in LaTeX when listings
778 is used (thanks to Florian Eitel).
779 + Scale LaTeX tables so they don't exceed columnwidth.
780 + Avoid problem with footnotes in unnumbered headers (#940).
782 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
783 to the slide if it is one of the header classes. It is recommended
784 that your bibliography slide have this attribute:
786 # References {.allowframebreaks}
788 This causes multiple slides to be created if necessary, depending
789 on the length of the bibliography.
791 * ConTeXt writer: Properly handle tables without captions. The old output
792 only worked in MkII. This should work in MkIV as well (#837).
794 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
798 + Fixed `--no-highlight` (Alexander Kondratskiy).
799 + Don't convert to lowercase in email obfuscation (#839).
800 + Ensure proper escaping in `<title>` and `<meta>` fields.
804 + Support `--atx-headers` (Max Rydahl Andersen).
805 + Don't print empty identifier blocks `([[]])` on headers (Max
810 + Fixing wrong numbered-list indentation in open document format
811 (Alexander Kondratskiy) (#369).
812 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
813 + Minor changes for ODF 1.2 conformance (#939). We leave the
814 nonconforming `contextual-spacing` attribute, which is provided by
815 LibreOffice itself and seems well supported.
819 + Fixed rendering of display math in lists.
820 In 1.11 and 1.11.1, display math in lists rendered as a new list
821 item. Now it always appears centered, just as outside of lists,
822 and in proper display math style, no matter how far indented the
823 containing list item is (#784).
824 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
825 Previously we used `w:cr` (#873).
826 + Use Compact style for Plain block elements, to
827 differentiate between tight and loose lists (#775).
828 + Ignore most components of `reference.docx`.
829 We take the `word/styles.xml`, `docProps/app.xml`,
830 `word/theme/theme1.xml`, and `word/fontTable.xml` from
831 `reference.docx`, ignoring everything else. This should help
832 with the corruption problems caused when different versions of
833 Word resave the reference.docx and reorganize things.
834 + Made `--no-highlight` work properly.
838 + Don't add `dc:creator` tags if present in EPUB metadata.
839 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
840 + Don't put blank title page in reading sequence.
841 Set `linear="no"` if no title block. Addresses #797.
842 + Download webtex images and include as data URLs.
843 This allows you to use `--webtex` in creating EPUBs.
844 Math with `--webtex` is automatically made self-contained.
845 + In `data/epub.css`, removed highlighting styles (which
846 are no longer needed, since styles are added by the HTML
847 writer according to `--highlighting-style`). Simplified
849 + If resource not found, skip it, as in Docx writer (#916).
853 + Properly handle characters above the 0000-FFFF range.
854 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
855 + Fixed regression with RTF table of contents.
856 + Only autolink absolute URIs. This fixes a regression, #830.
860 + Only autolink absolute URIs. This fixes a regression, #830.
861 + Don't wrap attributes in fenced code blocks.
862 + Write full metadata in MMD style title blocks.
863 + Put multiple authors on separate lines in pandoc titleblock.
864 Also, don't wrap long author entries, as new lines get treated
867 * `Text.Pandoc.Templates`:
869 + Fixed bug retrieving default template for markdown variants.
870 + Templates can now contain "record lookups" in variables;
871 for example, `author.institution` will retrieve the `institution`
872 field of the `author` variable.
873 + More consistent behavior of `$for$`. When `foo` is not a list,
874 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
875 So if `foo` resolves to "", no output should be produced.
876 See pandoc-templates#39.
878 * Citation processing improvements (now part of pandoc-citeproc):
880 + Fixed `endWithPunct` The new version correctly sees a sentence
881 ending in '.)' as ending with punctuation. This fixes a bug which
882 led such sentences to receive an extra period at the end: '.).'.
883 Thanks to Steve Petersen for reporting.
884 + Don't interfere with Notes that aren't citation notes.
885 This fixes a bug in which notes not generated from citations were
886 being altered (e.g. first letter capitalized) (#898).
887 + Only capitalize footnote citations when they have a prefix.
888 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
889 inserted before it before passing to citeproc-hs, so that bare numbers
890 are treated as page numbers by default. A suffix not beginning with
891 punctuation has a space added at the beginning (rather than a comma and
892 space, as was done before for not-author-in-text citations).
893 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
894 properly, with '23' treated as a locator of type 'page'.
895 + Many improvements to citation rendering, due to fixes in citeproc-hs
896 (thanks to Andrea Rossato).
897 + Warnings are issued for undefined citations, which are rendered
899 + Fixed hanging behavior when locale files cannot be found.
903 * DocBook: Use DocBook 4.5 doctype.
905 * Org: '#+TITLE:' is inserted before the title.
906 Previously the writer did this.
908 * LaTeX: Changes to make mathfont work with xelatex.
909 We need the mathspec library, not just fontspec, for this.
910 We also need to set options for setmathfont (#734).
912 * LaTeX: Use `tex-ansi` mapping for `monofont`.
913 This ensures that straight quotes appear as straight, rather than
914 being treated as curly. See #889.
916 * Made `\includegraphics` more flexible in LaTeX template.
917 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
919 * LaTeX/Beamer: Added `classoption` variable.
920 This is intended for class options like `oneside`; it may
921 be repeated with different options. (Thanks to Oliver Matthews.)
923 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
925 * LaTeX: Added `biblio-style` variable (#920).
927 * DZSlides: title attribute on title section.
929 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
931 [under-the-hood improvements]
933 * Markdown reader:Improved strong/emph parsing, using the strategy of
934 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
935 no backtracking, and no keeping track of nesting levels. It will give
936 different results in some edge cases, but these should not affect normal
939 * Added `Text.Pandoc.Compat.Monoid`.
940 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
941 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
943 * Added `Text.Pandoc.Compat.TagSoupEntity`.
944 This allows pandoc to compile with `tagsoup` 0.13.x.
945 Thanks to Dirk Ullrich for the patch.
947 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
948 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
949 handle simple math in bibliography fields.)
951 * Added `Text.Pandoc.Writers.Shared` for shared functions used
952 only in writers. `metaToJSON` is used in writers to create a
953 JSON object for use in the templates from the pandoc metadata
954 and variables. `getField`, `setField`, and `defField` are
955 for working with JSON template contexts.
957 * Added `Text.Pandoc.Asciify` utility module.
958 This exports functions to create ASCII-only versions of identifiers.
960 * `Text.Pandoc.Parsing`
962 + Generalized state type on `readWith` (API change).
963 + Specialize readWith to `String` input. (API change).
964 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
965 with `stateMeta` and `stateMeta'`.
967 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
968 bytestrings seemed to cause problems using pandoc on 64-bit Windows
971 * Factored out `registerHeader` from markdown reader, added to
972 `Text.Pandoc.Parsing`.
974 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
975 Reason: < 0.5 does not provide a monoid instance for Attribute,
976 which is now needed by the HTML writer (#803).
978 * Added `http-conduit` flag, which allows fetching https resources.
979 It also brings in a large number of dependencies (`http-conduit`
980 and its dependencies), which is why for now it is an optional flag
983 * Added CONTRIBUTING.md.
985 * Improved INSTALL instructions.
987 * `make-windows-installer.bat`: Removed explicit paths for executables.
989 * `aeson` is now used instead of `json` for JSON.
991 * Set default stack size to 16M. This is needed for some large
992 conversions, esp. if pandoc is compiled with 64-bit ghc.
994 * Various small documentation improvements.
995 Thanks to achalddave and drothlis for patches.
997 * Removed comment that chokes recent versions of CPP (#933).
999 * Removed support for GHC version < 7.2, since pandoc-types now
1000 requires at least GHC 7.2 for GHC generics.
1007 + Fixed regression in which parentheses were lost in link URLs.
1008 Added tests. Closes #786.
1009 + Better handling of unmatched double quotes in `--smart` mode.
1010 These occur frequently in fiction, since it is customary not to
1011 close quotes in dialogue if the speaker does not change between
1012 paragraphs. The unmatched quotes now get turned into literal
1013 left double quotes. (No `Quoted` inline is generated, however.)
1016 * HTML writer: Fixed numbering mismatch between TOC and sections.
1017 `--number-offset` now affects TOC numbering as well
1018 as section numbering, as it should have all along. Closes #789.
1020 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
1021 as markdown citations, even if `--bibliography` was specified, unless
1022 `citation` extension is disabled. Now, formatted citations are always
1023 printed if `--bibliography` was specified. If you want to reformat
1024 markdown keeping pandoc markdown citations intact, don't use
1025 `--bibliography`. Note that citations parsed from LaTeX documents will
1026 be rendered as pandoc markdown citations when `--bibliography` is not
1029 * ODT writer: Fixed regression leading to corrupt ODTs.
1030 This was due to a change in the `Show` instance for
1031 `Text.Pandoc.Pretty.Doc`. Closes #780.
1033 * Fixed spacing bugs involving code block attributes in
1034 RST reader and Markdown writer. Closes #763.
1036 * Windows package: Various improvements due to Fyodor Sheremetyev.
1038 + Automatically set installation path (Program Files or Local App Data).
1039 + Set system PATH environment variable when installing for all users.
1040 + Pandoc can installed for all users using the following command.
1041 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
1043 * Bumped QuickCheck version bound.
1047 * Added `--number-offset` option. (See README for description.)
1049 * Added `--default-image-extension` option. (See README for description.)
1051 * `--number-sections` behavior change: headers with class `unnumbered`
1052 will not be numbered.
1054 * `--version` now reports the default data directory.
1056 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
1058 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
1060 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
1061 a field for `Attr` rather than just `String`. (API change.)
1063 * Added `markdown_github` as input format. This was an accidental
1066 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
1069 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
1073 + Fixed captions with longtable. Thanks to Joost Kremers.
1074 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
1078 + Load microtype after fonts. Microtype needs to know
1079 what fonts are being used. Thanks to dfc for the patch.
1080 + Set `secnumdepth` to 5 if `--number-sections` specified.
1081 This yields behavior equivalent to the other writers, numbering
1082 level 4 and 5 headers too. Closes #753.
1086 + Handle `<colgroup>` tag.
1087 + Preserve all header attributes.
1091 + Parse `\hrule` as `HorizontalRule`. Closes #746.
1092 + Parse starred variants of `\section` etc. as headers with
1093 attribute `unnumbered`.
1094 + Read optional attributes in `lstlisting` and `Verbatim` environments.
1095 We convert these to pandoc standard names, e.g. `numberLines`
1096 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
1097 + Handle language attribute for lstlistings.
1098 + Better support for Verbatim and minted environments. Closes #763.
1102 + `-` in an attribute context = `.unnumbered`. The point of this
1103 is to provide a way to specify unnumbered headers in non-English
1105 + Fixed bug parsing key/value attributes. Parsing failed if you
1106 had an unquoted attribute immediately before the final '}'.
1107 + Make backslash escape work in attributes.
1108 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
1109 pandoc will parse a MMD title block if it sees one, even if
1110 `pandoc_title_blocks` is enabled.
1111 + Refactoring: `litChar` now includes entities, so we don't need
1112 to use `fromEntities` e.g. on titles.
1113 + Allow spaces around borders in pipe tables. Closes #772.
1114 + Allow all punctuation in angle-bracket autolinks. Previously
1115 things like `----` were disallowed, because the uri parser
1116 treated them as trailing punctuation. Closes #768.
1117 + Make `implicit_header_references` work properly when
1118 headers are given explicit identifiers.
1119 + Check for tables before line blocks. Otherwise some pipe
1120 tables get treated as line blocks.
1121 + Allow `&` in emails (for entities).
1122 + Properly handle entities in titles and links. A markdown link
1123 `<http://göogle.com>` should be a link to `http://göogle.com`.
1128 + Handle attributes on headers.
1132 + Add `fig:` as title for images with captions.
1133 This is needed for them to be rendered as figures. Closes #766.
1134 + Never emit an empty paragraph. See #761.
1135 + Handle `\caption` for images in figures. Closes #766.
1136 + Parse `\section*`, etc. as unnumbered sections.
1140 + Support header attributes. The attributes go on
1141 the enclosing `section` or `div` tag if `--section-divs` is specified.
1142 + Fixed a regression (only now noticed) in html+lhs output.
1143 Previously the bird tracks were being omitted.
1147 + Omit lists with no items to avoid LaTeX errors.
1148 + Support line numbering with `--listings`.
1149 If `numberLines` class is present, we add `numbers=left`;
1150 if `startFrom` is present, we add `firstnumber=`. (#763)
1154 + Removed `\placecontent`. This produced a duplicate toc,
1155 in conjunction with `\placelist`.
1156 + Use `\title`, `\subject` etc. for headers with
1161 + Support header attributes.
1165 + Use grid tables when needed, and if enabled. Closes #740.
1166 + Render citations as pandoc-markdown citations.
1167 Previously citations were rendered as citeproc-formatted citations
1168 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
1169 unless the `citations` extension is disabled.
1170 If you still want formatted citations in your markdown output,
1171 use `pandoc -t markdown-citations`.
1175 + Support `:number-lines:` in code blocks.
1179 + Better treatment of display math. Display math inside a
1180 paragraph is now put in a separate paragraph, so it will render
1181 properly (centered and without extra blank lines around it).
1182 Partially addresses #742.
1183 + Content types and document rels xml files are now created from
1184 scratch, rather than being taken over from `reference.docx`.
1185 This fixes problems that arise when you edit the `reference.docx`
1187 + We also now encode mime types for each individual image rather
1188 than using defaults. This should allow us to handle a wider
1189 range of image types (including PDF). Closes #414.
1190 + Changed style names in `reference docx`.
1191 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
1192 The old names got changed by Word when the `reference.docx` was
1193 edited. Closes #414.
1197 + Fix section numbering. Previously the numbering restarted from 1
1198 in each chapter (with `--number-sections`), though the numbers in
1199 the table of contents were correct.
1200 + Headers with "unnumbered" attribute are not numbered. (Nor do they
1201 cause an increment in running numbering.) Section numbers now work
1202 properly, even when there is material before the first numbered section.
1203 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
1204 but `linear` is set to `no` unless the `--toc` option is specified.
1205 Include `<guide>` element in OPF. This should allow the TOC to
1206 be useable in Kindles when converted with kindlegen. Closes #773.
1208 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
1209 This dramatically reduces the speed penalty that comes from enabling the
1210 `autolink_bare_uris` extension. The penalty is still substantial (in one
1211 test, from 0.33s to 0.44s), but nowhere near what it used to be.
1212 The RST reader is also much faster now, as it autodetects URIs.
1214 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
1215 with class "unnumbered". Unnumbered sections get `[]` for their
1218 * `Text.Pandoc.Pretty`:
1220 + Fixed `chomp` so it works inside `Prefixed` elements.
1221 + Changed `Show` instance so it is better for debugging.
1223 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
1225 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
1227 * Windows installer improvements:
1229 + The installer is now signed with a certificate (thanks to
1230 Fyodor Sheremetyev).
1231 + WiX is used instead of InnoSetup. The installer is now a
1233 + The version number is now auto-detected, and need not be
1236 * OSX installer improvements:
1238 + The package and pandoc executable are now signed with a
1239 certificate (thanks to Fyodor Sheremetyev).
1240 + RTF version of license is used.
1241 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
1244 * Converted COPYING to markdown.
1246 * pandoc.cabal: Require latest versions of highlighting-kate,
1247 texmath, citeproc-hs, zip-archive.
1251 * Markdown reader: various optimizations, leading to a
1252 significant performance boost.
1254 * RST reader: Allow anonymous form of inline links:
1255 `` `hello <url>`__ `` Closes #724.
1257 * Mediawiki reader: Don't require newlines after tables.
1258 Thanks to jrunningen for the patch. Closes #733.
1260 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
1261 when output is LaTeX, and applied when it is another format.
1262 Partially addresses #730.
1264 * Markdown and RST readers: Added parser to `block` that skips blank
1265 lines. This fixes a subtle regression involving grid tables with
1266 empty cells. Also added test for grid table with empty cells.
1269 * RST writer: Use `.. code:: language` for code blocks with language.
1272 * DocBook writer: Fixed output for hard line breaks, adding a newline
1273 between `<literallayout>` tags.
1275 * Markdown writer: Use an autolink when link text matches url.
1276 Previously we also checked for a null title, but this
1277 test fails for links produced by citeproc-hs in bibliographies.
1278 So, if the link has a title, it will be lost on conversion
1279 to an autolink, but that seems okay.
1281 * Markdown writer: Set title, author, date variables as before.
1282 These are no longer used in the default template, since we use
1283 titleblock, but we set them anyway for those who use custom templates.
1285 * LaTeX writer: Avoid extra space at start/end of table cell.
1286 Thanks to Nick Bart for the suggestion of using @{}.
1288 * `Text.Pandoc.Parsing`:
1290 + More efficient version of `anyLine`.
1291 + Type of `macro` has changed; the parser now returns `Blocks`
1294 * Relaxed old-time version bound, allowing 1.0.*.
1296 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
1297 should create a symlink as described in the README.
1301 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
1302 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
1303 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
1305 * Markdown reader: Fixed bug with headerless grid tables.
1306 The 1.10 code assumed that each table header cell contains exactly one
1307 block. That failed for headerless tables (0) and also for tables with
1308 multiple blocks in a header cell. The code is fixed and tests provided.
1309 Thanks to Andrew Lee for pointing out the bug.
1311 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
1313 + Tilde code fences can again take a bare language string
1314 (`~~~ haskell`), not just curly-bracketed attributes
1316 + Backtick code blocks can take the curly-bracketed attributes.
1317 + Backtick code blocks don't *require* a language.
1318 + Consolidated code for the two kinds of fenced code blocks.
1320 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
1322 * Markdown writer: Use proportional font for email autolinks with
1323 obfuscation. Closes #714.
1325 * Corrected name of `blank_before_blockquote` in README. Closes #718.
1327 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
1328 The bug prevented an autolink at the end of a string (e.g.
1329 at the end of a line block line) from counting as a link. Closes #711.
1331 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
1332 This should work on Windows, unlike the TH solution with
1335 * Eliminated use of TH in test suite.
1337 * Added `Text.Pandoc.Data` (non-exported) to hold the association
1338 list of embedded data files, if the `embed_data_files` flag is selected.
1339 This isolates the code that needs special treatment with file-embed or
1342 * Changes to `make-windows-installer.bat`.
1344 + Exit batch file if any of the cabal-dev installs fail.
1345 + There's no longer any need to reinstall `highlighting-kate`.
1346 + Don't start with a `cabal update`; leave that to the user.
1347 + Force reinstall of pandoc.
1349 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
1354 * Fixed bug with escaped % in LaTeX reader. Closes #710.
1358 * Added further missing fb2 tests to cabal file.
1362 * Added fb2 tests to cabal file's extra-source-files.
1366 * Bump version bounds on test-framework packages.
1372 * New input formats: `mediawiki` (MediaWiki markup).
1374 * New output formats: `epub3` (EPUB v3 with MathML),
1375 `fb2` (FictionBook2 ebooks).
1377 * New `--toc-depth` option, specifying how many levels of
1378 headers to include in a table of contents.
1380 * New `--epub-chapter-level` option, specifying the header
1381 level at which to divide EPUBs into separate files.
1382 Note that this normally affects only performance, not the
1383 visual presentation of the EPUB in a reader.
1385 * Removed the `--strict` option. Instead of using `--strict`,
1386 one can now use the format name `markdown_strict` for either input
1387 or output. This gives more fine-grained control that `--strict`
1388 did, allowing one to convert from pandoc's markdown to strict
1389 markdown or vice versa.
1391 * It is now possible to enable or disable specific syntax
1392 extensions by appending them (with `+` or `-`) to the writer
1393 or reader name. For example,
1395 pandoc -f markdown-footnotes+hard_line_breaks
1397 disables footnotes and enables treating newlines as hard
1398 line breaks. The literate Haskell extensions are now implemented
1399 this way as well, using either `+lhs` or `+literate_haskell`.
1400 For a list of extension names, see the README under
1401 "Pandoc's Markdown."
1403 * The following aliases have been introduced for specific
1404 combinations of markdown extensions: `markdown_phpextra`,
1405 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
1406 work just like regular reader and writer names, and can be modified
1407 with extension modifiers as described above. (Note that conversion
1408 from one markdown dialect to another does not work perfectly,
1409 because there are differences in markdown parsers besides
1410 just the extensions, and because pandoc's internal document model is
1411 not rich enough to capture all of the extensions.)
1413 * New `--html-q-tags` option. The previous default was to use `<q>`
1414 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
1415 Moreover, they are not a robust way of typesetting quotes, since
1416 some user agents don't support them, and some CSS resets (e.g.
1417 bootstrap) prevent pandoc's quotes CSS from working properly.
1418 We now just insert literal quote characters by default in both
1419 `html` and `html5` output, but this option is provided for
1420 those who still want `<q>` tags.
1422 * The markdown reader now prints warnings (to stderr) about
1423 duplicate link and note references. Closes #375.
1425 * Markdown syntax extensions:
1427 + Added pipe tables. Thanks to François Gannaz for the initial patch.
1428 These conform to PHP Markdown Extra's pipe table syntax. A subset
1429 of org-mode table syntax is also supported, which means that you can
1430 use org-mode's nice table editor to create tables.
1432 + Added support for RST-style line blocks. These are
1433 useful for verse and addresses.
1435 + Attributes can now be specified for headers, using the same
1436 syntax as in code blocks. (However, currently only the
1437 identifier has any effect in most writers.) For example,
1441 See [the header above](#foo).
1443 + Pandoc will now act as if link references have been defined
1444 for all headers without explicit identifiers.
1445 So, you can do this:
1449 Link to [My header].
1450 Another link to [it][My header].
1456 + Command macros now work everywhere, including non-math.
1457 Environment macros still not supported.
1458 + `\input` now works, as well as `\include`. TEXINPUTS is used.
1459 Pandoc looks recursively into included files for more included files.
1463 * The Markdown reader no longer puts the text of autolinks in a
1464 `Code` inline. This means that autolinks will no longer appear
1465 in a monospace font.
1467 * The character `/` can now appear in markdown citation keys.
1469 * HTML blocks in strict_markdown are no longer required to begin
1470 at the left margin. Technically this is required, according to
1471 the markdown syntax document, but `Markdown.pl` and other markdown
1472 processors are more liberal.
1474 * The `-V` option has been changed so that if there are duplicate
1475 variables, those specified later on the command line take precedence.
1477 * Tight lists now work in LaTeX and ConTeXt output.
1479 * The LaTeX writer no longer relien on the `enumerate` package.
1480 Instead, it uses standard LaTeX commands to change the list numbering
1483 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
1484 tables to be split over page boundaries.
1486 * The RST writer now uses a line block to render paragraphs containing
1487 linebreaks (which previously weren't supported at all).
1489 * The markdown writer now applies the `--id-prefix` to footnote IDs.
1492 * The plain writer no longer uses backslash-escaped line breaks
1493 (which are not very "plain").
1495 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
1496 Read bytestring and use `Text`'s decodeUtf8 instead of using
1497 `System.IO.hGetContents`. This way you get a message saying
1498 "invalid UTF-8 stream" instead of "invalid byte sequence."
1499 You are also told which byte caused the problem.
1501 * Docx, ODT, and EPUB writers now download images specified by a URL
1502 instead of skipping them or raising an error.
1506 + The default CSS now left-aligns headers by default, instead of
1507 centering. This is more consistent with the rest of the writers.
1508 + A proper multi-level table of contents is now used in `toc.ncx`.
1509 There is no longer a subsidiary table of contents at the beginning
1511 + Code highlighting now works by default.
1512 + Section divs are used by default for better semantic markup.
1513 + The title is used instead of "Title Page" in the table of contents.
1514 Otherwise we have a hard-coded English string, which looks
1515 strange in ebooks written in other languages. Closes #572.
1519 + Put mathjax in span with class "math". Closes #562.
1520 + Put citations in a span with class "citation." In HTML5, also include
1521 a `data-cite` attribute with a space-separated list of citation
1524 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
1525 This treats both `\r\n` and `\n` as `\n` on input, no matter
1526 what platform we're running on.
1528 * Citation processing is now done in the Markdown and LaTeX
1529 readers, not in `pandoc.hs`. This makes it easier for library users
1534 * HTML: Added css to template to preserve spaces in `<code>` tags.
1535 Thanks to Dirk Laurie.
1537 * Beamer: Remove English-centric strings in section pages.
1538 Section pages used to have "Section" and a number as well as the
1539 section title. Now they just have the title. Similarly for part
1540 and subsection. Closes #566.
1542 * LaTeX, ConTeXt: Added papersize variable.
1544 * LaTeX, Beamer templates: Use longtable instead of ctable.
1546 * LaTeX, Beamer templates: Don't require 'float' package for tables.
1547 We don't actually seem to use the '[H]' option.
1549 * LaTeX: Use `upquote` package if it is available. This fixes
1550 straight quotes in verbatim environments.
1552 * Markdown, plain: Fixed titleblock so it is just a single string.
1553 Previously separate title, author, and date variables were used,
1554 but this didn't allow different kinds of title blocks.
1558 + Rationalized templates. Previously there were three different
1559 templates involved in epub production. There is now just one
1560 template, `default.epub` or `default.epub3`. It can now be
1561 overridden using `--template`, just like other templates.
1562 The titlepage is now folded into the default template.
1563 A `titlepage` variable selects it.
1564 + UTF-8, lang tag, meta tags, title element.
1566 * Added scale-to-width feature to beamer template
1570 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
1571 Previously header identifers were autogenerated by the writers.
1572 Now they are added in the readers (either automatically or explicitly).
1574 * `Text.Pandoc.Builder`:
1576 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
1577 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
1578 custom Monoid instances for `Many Inline` and `Many Block. This
1579 allows `Many` to be made an instance of `Foldable` and `Traversable`.
1580 + The old `Listable` class has been removed.
1581 + The module now exports `isNull`, `toList`, `fromList`.
1582 + The old `Read` and `Show` instances have been removed; derived
1583 instances are now used.
1584 + Added `headerWith`.
1586 * The readers now take a `ReaderOptions` rather than a `ParserState`
1587 as a parameter. Indeed, not all parsers use the `ParserState` type;
1588 some have a custom state. The motivation for this change was to separate
1589 user-specifiable options from the accounting functions of parser state.
1591 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
1592 formerly in `Text.Pandoc.Shared`, and its associated
1593 data types. It also includes a new type `ReaderOptions`, which
1594 contains many options formerly in `ParserState`, and its associated
1597 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
1598 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
1599 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
1600 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
1601 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
1602 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
1603 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
1604 + `ParserState.stateIndentedCodeClasses` ->
1605 `ReaderOptions.readerIndentedCodeClasses`.
1606 + Added `ReaderOptions.readerCitationStyle`.
1608 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
1609 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
1610 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
1611 been renamed `writerEpubMetadata` for consistency.
1613 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
1614 longer stylesheet, fonts, reference files as separate parameters.
1616 * Removed `writerLiterateHaskell` from `WriterOptions`, and
1617 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
1618 by an extension (`Ext_literate_haskell`).
1620 * Removed deprecated `writerXeTeX`.
1622 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
1623 Strict is now handled through extensions.
1625 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
1626 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
1627 and `multimarkdownExtensions`, as well as the `Extensions` type.
1629 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
1632 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
1633 (thanks to Sergey Astanin).
1637 + Added `getReader`, `getWriter` to `Text.Pandoc`.
1638 + `writers` is now an association list `(String, Writer)`.
1639 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
1640 an `IOByteStringWriter`. ALL writers are now in the 'writers'
1641 list, including the binary writers and FB2 writer. This allows
1642 code in `pandoc.hs` to be simplified.
1643 + Changed type of `readers`, so all readers are in IO.
1644 Users who want pure readers can still get them form the reader
1645 modules; this just affects the function `getReader` that looks up
1646 a reader based on the format name. The point of this change is to
1647 make it possible to print warnings from the parser.
1649 * `Text.Pandoc.Parsing`:
1651 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
1652 No other module directly imports Parsec. This will make it easier
1653 to change the parsing backend in the future, if we want to.
1654 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
1655 + Export the type synonym `Parser`.
1656 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
1657 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
1658 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
1659 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
1660 + `ParserState` is no longer an instance of `Show`.
1661 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
1662 + Generalized type of `withQuoteContext`.
1663 + Added `guardEnabled`, `guardDisabled`, `getOption`.
1664 + Removed `failIfStrict`.
1665 + `lookupKeySrc` and `fromKey` are no longer exported.
1667 * `Data.Default` instances are now provided for `ReaderOptions`,
1668 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
1669 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
1670 of `defaultWriterOptions` (which is still defined). Closes #546.
1672 * `Text.Pandoc.Shared`:
1675 + Renamed `removedLeadingTrailingSpace` to `trim`,
1676 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
1677 + Count `\r` as space in `trim` functions.
1678 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
1680 + Removed `failUnlessLHS`.
1681 + Export `compactify'`, formerly in Markdown reader.
1682 + Export `isTightList`.
1683 + Do not export `findDataFile`.
1684 + `readDataFile` now returns a strict ByteString.
1685 + Export `readDataFileUTF8` which returns a String, like the
1687 + Export `fetchItem` and `openURL`.
1689 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
1690 Removed `readImageSize`.
1692 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
1693 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
1696 * `Text.Pandoc.UTF8` is now an exposed module.
1698 * `Text.Pandoc.Biblio`:
1700 + csl parameter now a `String` rather than a `FilePath`.
1701 + Changed type of `processBiblio`. It is no longer in the IO monad.
1702 It now takes a `Maybe Style` argument rather than parameters for CSL
1703 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
1704 the style file and add abbreviations.)
1706 * Markdown reader now exports `readMarkdownWithWarnings`.
1708 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
1713 * Make `--ascii` work properly with `--self-contained`. Closes #568.
1717 + Fixed link parser to avoid exponential slowdowns. Closes #620.
1718 Previously the parser would hang on input like this:
1720 [[[[[[[[[[[[[[[[[[hi
1722 We fixed this by making the link parser parser characters
1723 between balanced brackets (skipping brackets in inline code spans),
1724 then parsing the result as an inline list. One change is that
1726 [hi *there]* bud](/url)
1728 is now no longer parsed as a link. But in this respect pandoc behaved
1729 differently from most other implementations anyway, so that seems okay.
1731 + Look for raw html/latex blocks before tables.
1732 Otherwise the following gets parsed as a table:
1743 + Added support for `:target:` on `.. image::` blocks
1747 - Fixed field lists items with body beginning after a new line
1749 - Allow any char but ':' in names of field lists in RST reader
1751 - Don't allow line breaks in field names.
1752 - Require whitespace after field list field names.
1753 - Don't create empty definition list for metadata field lists.
1754 Previously a field list consisting only of metadata fields (author,
1755 title, date) would be parsed as an empty DefinitionList, which is
1756 not legal in LaTeX and not needed in any format.
1758 + Don't recognize inline-markup starts inside words.
1759 For example, `2*2 = 4*1` should not contain an emphasized
1760 section. Added test case for "Literal symbols". Closes #569.
1761 + Allow dashes as separator in simple tables. Closes #555.
1762 + Added support for `container`, `compound`, `epigraph`,
1763 `rubric`, `highlights`, `pull-quote`.
1764 + Added support for `.. code::`.
1765 + Made directive labels case-insensitive.
1766 + Removed requirement that directives begin at left margin.
1767 This was (correctly) not in earlier releases; docutils doesn't
1768 make the requirement.
1769 + Added support for `replace::` and `unicode::` substitutions.
1770 + Ignore unknown interpreted roles.
1771 + Renamed image parser to `subst`, since it now handles all
1772 substitution references.
1776 + Allow newlines before pipes in table. Closes #654.
1777 + Fixed bug with list items containing line breaks.
1778 Now pandoc correctly handles hard line breaks inside list items.
1779 Previously they broke list parsing.
1780 + Implemented comment blocks.
1781 + Fixed bug affected words ending in hyphen.
1782 + Properly handle links with surrounding brackets.
1783 Square brackets need to be used when the link isn't surrounded by
1784 spaces or punctuation, or when the URL ending may be ambiguous.
1786 + Removed nullBlock. Better to know about parsing problems than
1787 to skip stuff when we get stuck.
1788 + Allow ID attributes on headers.
1789 + Textile reader: Avoid parsing dashes as strikeout.
1790 Previously the input
1797 would be parsed with strikeouts rather than dashes. This fixes
1798 the problem by requiring that a strikeout delimiting - not be
1799 followed by a -. Closes #631.
1800 + Expanded list of `stringBreakers`.
1801 This fixes a bug on input like "(_hello_)" which should
1802 be a parenthesized emphasized "hello".
1803 The new list is taken from the PHP source of textile 2.4.
1804 + Fixed autolinks. Previously the textile reader and writer
1805 incorrectly implented RST-style autolinks for URLs and email
1806 addresses. This has been fixed. Now an autolink is done this way:
1807 `"$":http://myurl.com`.
1808 + Fixed footnotes bug in textile. This affected notes occuring
1809 before punctuation, e.g. `foo[1].`. Closes #518.
1813 + Better handling of citation commands.
1814 + Better handling of `\noindent`.
1815 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
1817 + Made `rawLaTeXInline` try to parse block commands as well. This
1818 is usually what we want, given how `rawLaTeXInline` is used in
1819 the markdown and textile readers. If a block-level LaTeX command
1820 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
1821 we can treat it as raw inline LaTeX.
1822 + Handle \slash command. Closes #605.
1823 + Basic `\enquote` support.
1824 + Fixed parsing of paragraphs beginning with a group. Closes #606.
1825 + Use curly quotes for bare straight quotes.
1826 + Support obeylines environment. Closes #604.
1827 + Guard against "begin", "end" in inlineCommand and
1829 + Better error messages for environments. Now it should tell you that
1830 it was looking for \end{env}, instead of giving "unknown parse error."
1834 + Added HTML 5 tags to list of block-level tags.
1835 + HTML reader: Fixed bug in `htmlBalanced`, which
1836 caused hangs in parsing certain markdown input using
1838 + Parse `<q>` as `Quoted DoubleQuote`.
1839 + Handle nested `<q>` tags properly.
1840 + Modified `htmlTag` for fewer false positives.
1841 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
1842 This makes it more useful in the wikimedia and markdown parsers.
1844 * DocBook reader: Support title in "figure" element. Closes #650.
1848 + Remove newline after `<br/>` in translation of `LineBreak`
1849 There's no particular need for a newline (other than making the
1850 generated MediaWiki source look nice to a human), and in fact
1851 sometimes it is incorrect: in particular, inside an enumeration, list
1852 items cannot have embedded newline characters. (Brent Yorgey)
1853 + Use `<code>` not `<tt>` for Code.
1855 * Man writer: Escape `-` as `\-`.
1856 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
1857 signs. That is preferable for use with command-line options. See
1858 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
1859 to Andrea Bolognani for bringing the issue to our attention.
1863 + Improved line block output. Use nonbreaking spaces for
1864 initial indent (otherwise lost in HTML and LaTeX).
1865 Allow multiple paragraphs in a single line block.
1866 Allow soft breaks w continuations in line blocks.
1867 + Properly handle images with no alt text. Closes #678.
1868 + Fixed bug with links with duplicate text. We now (a) use anonymous
1869 links for links with inline URLs, and (b) use an inline link instead
1870 of a reference link if the reference link would require a label that
1871 has already been used for a different link. Closes #511.
1872 + Fixed hyperlinked images. Closes #611. Use `:target:`
1873 field when you have a simple linked image.
1874 + Don't add `:align: center` to figures.
1876 * Texinfo writer: Fixed internal cross-references.
1877 Now we insert anchors after each header, and use `@ref` instead of `@uref`
1878 for links. Commas are now escaped as `@comma{}` only when needed;
1879 previously all commas were escaped. (This change is needed, in part,
1880 because `@ref` commands must be followed by a real comma or period.) Also
1881 insert a blank line in from of `@verbatim` environments.
1885 + Made --id-prefix work in DocBook as well as HTML.
1887 + Don't include empty captions in figures. Closes #581.
1891 + Use `\hspace*` for nonbreaking space after line break,
1892 since `~` spaces after a line break are just ignored.
1894 + Don't escape `_` in URLs or hyperref identifiers.
1895 + Properly escape strings inside \url{}. Closes #576.
1896 + Use `[fragile]` only for slides containing code rendered
1897 using listings. Closes #649.
1898 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
1899 highlighting-kate's macros, which redefine `|` as a short verbatim
1900 delimiter. Thanks to Björn Peemöller for raising this issue.
1901 + Use minipage rather than parbox for block containers in tables.
1902 This allows verbatim code to be included in grid tables.
1904 + Prevent paragraphs containing only linebreaks or spaces.
1908 + Included `highlighting-css` for code spans, too.
1909 Previously it was only included if used in a code block. Closes #653.
1910 + Improved line breaks with `<dd>` tags. We now put a newline between
1911 `</dd>` and `<dd>` when there are multiple definitions.
1912 + Changed mathjax cdn url so it doesn't use https. (This caused
1913 problems when used with `--self-contained`.) See #609.
1917 + `--number-sections` now works properly.
1918 + Don't strip meta and link elements in epub metadata.
1919 Patch from aberrancy. Closes #589.
1920 + Fixed a couple validation bugs.
1921 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
1922 of chapters in some readers, which apparently sort ch2 after ch10.
1925 * ODT writer: properly set title property (Arlo O'Keeffe).
1929 + Fixed bug with nested lists. Previously a list like
1936 would come out with a bullet instead of "2."
1937 Thanks to Russell Allen for reporting the bug.
1938 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
1939 This seems to fix a problem viewing pandoc-generated
1940 docx files in LibreOffice.
1941 + Use integer ids for bookmarks. Closes #626.
1942 + Added nsid to abstractNum elements. This helps when merging
1943 word documents with numbered or bulleted lists. Closes #627.
1944 + Use separate footnotes.xml for notes.
1945 This seems to help LibreOffice convert the file, even though
1946 it was valid docx before. Closes #637.
1947 + Use rIdNN identifiers for r:embed in images.
1948 + Avoid reading image files again when we've already processed them.
1949 + Fixed typo in `referenc.docx` that prevented image captions from
1950 working. Thanks to Huashan Chen.
1952 * `Text.Pandoc.Parsing`:
1954 + Fixed bug in `withRaw`, which didn't correctly handle the case
1955 where nothing is parsed.
1956 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
1957 though it still doesn't implement quoted strings in email addresses.
1958 + Revised URI parser. It now allows many more schemes, allows
1959 uppercase URIs, and better handles trailing punctuation and
1960 trailing slashes in bare URIs. Added many tests.
1961 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
1962 etc. parse properly. Formerly we had some English-centric heuristics,
1963 but they are no longer needed. Closes #698.
1965 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
1966 This fixes bug with Chinese commas in markdown and reST tables, and
1967 a bug that caused combining characters to be dropped.
1969 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
1971 * `Text.Pandoc.Biblio`:
1973 + Run `mvPunc` and `deNote` on metadata too.
1974 This fixed a bug with notes on titles using footnote styles.
1975 + Fixed bug in fetching CSL files from CSL data directory.
1977 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
1978 is provided. It should be the URL up to the path.
1980 * Fixed/simplified diff output for tests.
1981 Biblio: Make sure mvPunc and deNote run on metadata too.
1982 This fixed a bug with notes on titles using footnote styles.
1984 [under the hood improvements]
1986 * We no longer depend on `utf8-string`. Instead we use functions
1987 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
1989 * Use `safeRead` instead of using `reads` directly (various modules).
1991 * "Implicit figures" (images alone in a paragraph) are now handled
1992 differently. The markdown reader gives their titles the prefix `fig:`; the
1993 writers look for this before treating the image as a figure. Though this
1994 is a bit of a hack, it has two advantages: (i) implicit figures can be
1995 limited to the markdown reader, and (ii) they can be deactivated by turning
1996 off the `implicit_figures` extension.
1998 * `catch` from `Control.Exception` is now used instead of the
1999 old Preface `catch`.
2001 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
2002 and `oneOfStrings` (which is now non-backtracking).
2004 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
2005 Now citeproc-hs is fixed upstream, so this is no longer needed.
2008 * Textile reader: Improved speed of `hyphenedWords`.
2009 This speeds up the textile reader by about a factor of 4.
2011 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
2012 better performance, and automatic normalization.
2014 * Major rewrite of markdown reader:
2016 + Use `Text.Pandoc.Builder` instead of lists. This also
2017 means that everything is normalized automatically.
2018 + Move to a one-pass parsing strategy, returning values in the reader
2019 monad, which are then run (at the end of parsing) against the final
2022 * In HTML writer, we now use `toHtml` instead of pre-escaping.
2023 We work around the problem that blaze-html unnecessarily escapes `'`
2024 by pre-escaping just the `'` characters, instead of the whole string.
2025 If blaze-html later stops escaping `'` characters, we can simplify
2026 `strToHtml` to `toHtml`. Closes #629.
2028 * Moved code for embedding images in RTFs from `pandoc.hs` to the
2029 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
2031 * Moved citation processing from `pandoc.hs` into the readers.
2032 This makes things more convenient for library users.
2034 * The man pages are now built by an executable `make-pandoc-man-pages`,
2035 which has its own stanza in the cabal file so that dependencies can be
2036 handled by Cabal. Special treatment in `Setup.hs` ensures that this
2037 executable never gets installed; it is only used to create the man pages.
2039 * The cabal file has been modified so that the pandoc library is used
2040 in building the pandoc executable. (This required moving `pandoc.hs`
2041 from `src` to `.`.) This cuts compile time in half.
2043 * `-O2` is no longer used in building pandoc. The performance improvement
2044 it yields is so slight that it is not worth it. (Measured with
2045 benchmarks on ghc 7.4.)
2047 * The `executable` and `library` flags have been removed.
2049 * `-threaded` has been removed from ghc-options.
2051 * Version bounds of dependencies have been raised, and the
2052 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
2055 * We now require base >= 4.2.
2057 * Integrated the benchmark program into cabal. One can now do:
2059 cabal configure --enable-benchmarks && cabal build
2060 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
2062 The benchmark now uses README + testsuite, so benchmark results
2063 from older versions aren't comparable.
2065 * Integrated test suite with cabal.
2066 To run tests, configure with `--enable-tests`, then `cabal test`.
2067 You can specify particular tests using `--test-options='-t markdown'`.
2068 No output is shown unless tests fail. The Haskell test modules
2069 have been moved from `src/` to `tests/`.
2071 * Moved all data files and templates to the `data/` subdirectory.
2073 * Added an `embed_data_files` cabal flag. This causes all
2074 data files to be embedded in the binary, so that the binary
2075 is self-sufficient and can be relocated anywhere, copied on
2076 a USB key, etc. The Windows installer now uses this.
2077 (Since we no longer have the option to build the executable
2078 without the library, this is the only way to get a relocatable
2081 * Removed pcre3.dll from windows package.
2082 It isn't needed unless highlighting-kate is compilled with the
2083 `pcre-light` flag. By default, regex-prce-builtin is used.
2088 * Don't encode/decode file paths if base >= 4.4.
2089 Prior to base 4.4, filepaths and command line arguments were treated
2090 as unencoded lists of bytes, not unicode strings, so we had to work
2091 around that by encoding and decoding them. This commit adds CPP
2092 checks for the base version that intelligibly enable encoding/decoding
2093 when needed. Fixes a bug with multilingual filenames when pandoc was
2094 compiled with ghc 7.4 (#540).
2096 * Don't generate an empty H1 after hrule slide breaks.
2097 We now use a slide-level header with contents `[Str "\0"]` to mark
2098 an hrule break. This avoids creation of an empty H1 in these
2099 contexts. Closes #484.
2101 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
2103 * In make_osx_package.sh, ensure citeproc-hs is built with the
2104 embed_data_files flag.
2106 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
2108 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
2109 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
2111 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
2114 * Added webm to mime types. Closes #543.
2116 * Added some missing exports and tests to the cabal file
2117 (Alexander V Vershilov).
2119 * Compile with `-rtsopts` and `-threaded` by default.
2123 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
2125 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
2126 variables. Make TOC links black.
2128 * LaTeX template improvements.
2130 + Don't print date unless one is given explicitly in the document.
2131 + Simplified templates.
2132 + Use fontenc [T1] by default, and lmodern.
2133 + Use microtype if available.
2137 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
2138 Motivation: `@item1 [50]` should be as close as possible to
2140 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
2141 beginning with a citation to be empty. Closes #531.
2143 * Fixed documentation on mixed lists. Closes #533.
2147 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
2148 footnotes and captions. We now handle note citations by inserting
2149 footnotes during initial citation processing, and doing a separate
2150 pass later to remove notes inside notes.
2152 * Added 'zenburn' highlight style from highlighting-kate.
2154 * Added Slideous writer. Slideous is an HTML + javascript slide show
2155 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
2159 + Ensure we don't have extra blank lines at ends of cells.
2160 This can cause LaTeX errors, as they are interpreted as new paragraphs.
2161 + More consistent interblock spacing.
2162 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
2163 code in LaTeX. Closes #527.
2164 + Ensure that a Verbatim at the end of a footnote is followed by
2165 a newline. (Fixes a regression in the previous version.)
2166 + In default template, use black for internal links and TOC.
2167 Added commented-out code to use footnotes for links, as would
2168 be suitable in print output.
2170 * Beamer writer: When `--incremental` is used, lists inside
2171 a block quote should appear all at once. (This makes Beamer
2172 output consistent with the HTML slide show formats.)
2176 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
2177 to avoid gobbling spaces after the `%` sign.
2178 + Ensure space after `\stopformula`.
2182 + Use `:` form instead of `~` in definition lists, for better
2183 compatibility with other markdown implementations.
2184 + Don't wrap the term, because it breaks definition lists.
2185 + Use a nonzero space to prevent false recognition
2186 of list marker in ordered lists. Closes #516.
2188 * Org writer: Add space before language name. Closes #523.
2190 * Docx writer: Simplified bullet characters so they work properly
2191 with Word 2007. Closes #520.
2193 * LaTeX reader: Support `\centerline`.
2195 * RST reader: handle figures. Closes #522.
2197 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
2202 * Fixed bug in `fromEntities`. The previous version would turn
2203 `hi & low you know;` into `hi &`.
2207 + Don't skip nonbreaking spaces.
2208 Previously a paragraph containing just ` ` would be rendered
2209 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
2210 + Support `<col>` and `<caption>` in tables. Closes #486.
2214 + Don't recognize references inside delimited code blocks.
2215 + Allow list items to begin with lists.
2217 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
2221 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
2222 + Control sequences can't be followed by a letter.
2223 This fixes a bug where `\begingroup` was parsed as `\begin`
2224 followed by `group`.
2225 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
2226 + Make `\label` and `\ref` sensitive to `--parse-raw`.
2227 If `--parse-raw` is selected, these will be parsed as raw latex
2228 inlines, rather than bracketed text.
2229 + Don't crash on unknown block commands (like `\vspace{10pt}`)
2230 inside `\author`; just skip them. Closes #505.
2234 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
2235 + Added support for LaTeX blocks and inlines (Paul Rivier).
2236 + Better conformance to RedCloth inline parsing (Paul Rivier).
2237 + Parse '+text+' as emphasized (should be underlined, but this
2238 is better than leaving literal plus characters in the output.
2240 * Docx writer: Fixed multi-paragraph list items. Previously they each
2241 got a list marker. Closes #457.
2245 + Added `--no-tex-ligatures` option to avoid replacing
2246 quotation marks and dashes with TeX ligatures.
2247 + Use `fixltx2e` package to provide '\textsubscript'.
2248 + Improve spacing around LaTeX block environments:
2249 quote, verbatim, itemize, description, enumerate.
2251 + Use blue instead of pink for URL links in latex/pdf output.
2253 * ConTeXt writer: Fixed escaping of `%`.
2254 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
2255 Inside URLs, `%` needs to be escaped as `\%`
2256 Thanks to jmarca and adityam for the fix. Closes #492.
2258 * Texinfo writer: Escape special characters in node titles.
2259 This fixes a problem pointed out by Joost Kremers. Pandoc used
2260 to escape an '@' in a chapter title, but not in the corresponding
2261 node title, leading to invalid texinfo.
2263 * Fixed document encoding in texinfo template.
2264 Resolves Debian Bug #667816.
2268 + Don't force delimited code blocks to be flush left.
2269 Fixes bug with delimited code blocks inside lists etc.
2270 + Escape `<` and `$`.
2272 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
2273 Previously we used `\href{\#ident}{text}`, which didn't work on
2274 all systems. Thanks to Dirk Laurie.
2276 * RST writer: Don't wrap link references. Closes #487.
2278 * Updated to use latest versions of blaze-html, mtl.
2285 + Made `lstlisting` work as a proper verbatim environment.
2286 + Fixed bug parsing LaTeX tables with one column.
2290 + Use `{}` around `ctable` caption, so that formatting can be used.
2291 + Don't require eurosym package unless document has a €.
2293 * LaTeX template: Added variables for `geometry`, `romanfont`,
2294 `sansfont`, `mathfont`, `mainfont` so users can more easily
2299 + Run latex engine at least two times, to ensure
2300 that PDFs will have hyperlinked bookmarks.
2301 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
2303 * Texinfo writer: retain directories in image paths. (Peter Wang)
2305 * RST writer: Better handling of inline formatting, in accord
2306 with docutils' "inline markup recognition rules" (though we don't
2307 implement the unicode rules fully). Now `hi*there*hi` gets
2308 rendered properly as `hi\ *there*\ hi`, and unnecessary
2309 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
2313 + Parse `\ ` as null, not escaped space.
2314 + Allow `` :math:`...` `` even when not followed by blank
2315 or `\`. This does not implement the complex rule docutils follows,
2316 but it should be good enough for most purposes.
2317 + Add support for the rST default-role directive. (Greg Maslov)
2319 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
2322 * Markdown reader: Properly handle citations nested in other inline
2325 * Markdown writer: don't replace empty alt in image with "image".
2327 * DZSlides: Updated template.html and styles in default template.
2328 Removed bizarre CSS for `q` in dzslides template.
2330 * Avoid repeated `id` attribute in section and header in HTML slides.
2332 * README improvements: new instructions on internal links,
2333 removed misleading note on reST math.
2337 + Fixed Windows installer so that dzslides works.
2338 + Removed stripansi.sh.
2339 + Added .travis.yml for Travis continuous integration support..
2340 + Fixed upper bound for zlib (Sergei Trofimovich).
2341 + Fixed upper bound for test-framework.
2342 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
2346 * Added `beamer+lhs` as output format.
2348 * Don't escape `<` in `<style>` tags with `--self-contained`.
2349 This fixes a bug which prevented highlighting from working
2350 when using `--self-contained`.
2352 * PDF: run latex engine three times if `--toc` specified.
2353 This fixes page numbers in the table of contents.
2355 * Docx writer: Added TableNormal style to tables.
2357 * LaTeX math environment fixes. `aligned` is now used instead of
2358 the nonexistent `aligned*`. `multline` instead of the nonexistent
2361 * LaTeX writer: Use `\textasciitilde` for literal `~`.
2363 * HTML writer: Don't escape contents of EQ tags with --gladtex.
2364 This fixes a regression from 1.8.
2366 * Use `<q>` tags for Quoted items for HTML5 output.
2367 The quote style can be changed by modifying the template
2368 or including a css file. A default quote style is included.
2370 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
2371 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
2373 * Updated LaTeX template for better language support.
2374 Use `polyglossia` instead of `babel` with xetex.
2375 Set `lang` as documentclass option.
2376 `\setmainlanguage` will use the last of a comma-separated
2377 list of languages. Thanks to François Gannaz.
2379 * Fixed default LaTeX template so `\euro` and `€` work. The
2380 `eurosym` package is needed if you are using pdflatex.
2382 * Fixed escaping of period in man writer (thanks to Michael Thompson).
2384 * Fixed list label positions in beamer.
2386 * Set `mainlang` variable in context writer.
2387 This parallels behavior of latex writer. `mainlang` is the last
2388 of a comma-separated list of languages in lang.
2390 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
2392 * Changed `-V` so that you can specify a key without a value.
2393 Such keys get the value `true`.
2395 * Fixed permissions on installed man pages - thanks Magnus Therning.
2397 * Windows installer: require XP or higher. The installer is
2398 now compiled on a Windows 7 machine, which fixes a problem
2399 using citation functions on Windows 7.
2401 * OSX package: Check for 64-bit Intel CPU before installing.
2405 * Better handling of raw latex environments in markdown. Now
2411 turns into a raw latex block as expected.
2413 * Improvements to LaTeX reader:
2415 + Skip options after block commands.
2416 + Correctly handle `{\\}` in braced.
2417 + Added a needed 'try'.
2418 + Citations: add `, ` to suffix if it doesn't start with space or
2419 punctuation. Otherwise we get no space between the year and the
2420 suffix in author-date styles.
2422 * Added two needed data files for S5. This fixes a problem with
2423 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
2424 which was no longer being used.
2426 * Fixed some minor problems in `reference.docx`:
2427 name on "Date" style, `xCs` instead of `xIs`.
2429 * Fixed a problem creating docx files using a reference docx
2430 modified using Word. The problem seems to be that Word
2431 modifies `_rels/.rels`, changing the Type of the Relationship to
2432 `docProps/core.xml`. Pandoc now changes this back to the correct
2433 value if it has been altered, fixing the problem.
2435 * Fixed html5 template so it works properly with highlighting.
2441 + Fixed regression in 1.9; properly handle escaped $ in latex math.
2442 + Put LaTeX verse environments in blockquotes.
2446 + Limit nesting of strong/emph. This avoids exponential lookahead
2447 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
2448 + Improved attributes syntax (inn code blocks/spans):
2449 (1) Attributes can contain line breaks. (2) Values in key-value
2450 attributes can be surrounded by either double or single quotes, or
2451 left unquoted if they contain no spaces.
2453 * Don't wrap headers in markdown or RST writers.
2455 * Added `stateMaxNestingLevel` to `ParserState`.
2456 We set this to 6, so you can still have `Emph` inside `Emph`,
2457 just not indefinitely.
2459 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
2461 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
2464 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
2468 * Changed cabal file so that build-depends for the test program
2469 are not required unless the tests flag is used.
2471 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
2472 form ligatures (dashes) in code spans.
2476 * Raised version bound on test-framework to avoid problems
2477 compiling tests on GHC 7.4.1.
2479 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
2480 so citations don't just disappear unless you process with
2481 citeproc. Ignore `\bibliographystyle`, `\nocite`.
2483 * Simplified tex2pdf; it will always run latex twice to
2484 resolve table of contents and hyperrefs.
2488 * Require Cabal >= 1.10.
2489 * Tweaked cabal file to meet Cabal 1.10 requirements.
2493 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
2500 * Added a Microsoft Word `docx` writer. The writer includes support
2501 for highlighted code and for math (which is converted from TeX to OMML,
2502 Office's native math markup language, using texmath's new OMML module).
2503 A new option `--reference-docx` allows the user to customize the
2506 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
2508 * Better support for slide shows:
2510 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
2511 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
2513 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
2514 slide presentations.
2516 + New, flexible rules for dividing documents into sections and slides
2517 (see the "Structuring the slide show" in the User's Guide). These
2518 are backward-compatible with the old rules, but they allow slide
2519 shows to be organized into sections and subsections containing
2522 + A new `--slide-level` option allows users to override defaults
2523 and select a slide level below the first header level with content.
2525 * A new `--self-contained` option produces HTML output that does not
2526 depend on an internet connection or the presence of any external
2527 files. Linked images, CSS, and javascript is downloaded (or fetched
2528 locally) and encoded in `data:` URIs. This is useful for making portable
2529 `HTML slide shows. The --offline` option has been deprecated and is now
2530 `treated as a synonym or --self-contained`.
2532 * Support for PDF output:
2534 + Removed the old `markdown2pdf`.
2535 + `pandoc` can now create PDFs (assuming you have latex and a set of
2536 appropriate packages installed): just specify an output file with the
2538 + A new option `--latex-engine` allows you to specify `pdflatex`,
2539 `xelatex`, or `lualatex` as the processor.
2541 * Highlighting changes:
2543 + Syntax highlighting is now a standard feature; the `highlighting`
2544 flag is no longer needed when compiling.
2545 + A new `--no-highlight` option allows highlighting to be disabled.
2546 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
2547 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
2548 + A new `--highlight-style` option selects between various highlighting
2551 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
2553 * LaTeX `\include` and `\usepackage` commands are now processed,
2554 provided the files are in the working directory.
2556 * EPUB improvements:
2558 + Internal and external links now work in EPUB.
2559 + Raw HTML is allowed.
2560 + New `--epub-embed-font` option.
2561 + Customizable templates for EPUB pages offer more control over
2562 formatting: `epub-page.html`, `epub-coverimage.html`,
2563 `epub-titlepage.html`.
2565 * `--mathml` now works with DocBook.
2567 * Added support for math in RST reader and writer. Inline math uses the
2568 `` :math:`...` `` construct. Display math uses
2572 or if the math is multiline,
2578 These constructions are now supported now by `rst2latex.py`.
2580 * Github syntax for fenced code blocks is supported in pandoc's
2581 markdown. You can now write
2593 * Easier scripting: a new `toJsonFilter` function makes it easier to
2594 write Haskell scripts to manipulate the Pandoc AST.
2598 * Fixed parsing of consecutive lists in markdown.
2599 Pandoc previously behaved like Markdown.pl for consecutive
2600 lists of different styles. Thus, the following would be parsed
2601 as a single ordered list, rather than an ordered list followed
2602 by an unordered list:
2610 This change makes pandoc behave more sensibly, parsing this as
2611 two lists. Any change in list type (ordered/unordered) or in
2612 list number style will trigger a new list. Thus, the following
2613 will also be parsed as two lists:
2621 Since we regard this as a bug in Markdown.pl, and not something
2622 anyone would ever rely on, we do not preserve the old behavior
2623 even when `--strict` is selected.
2625 * Dashes work differently with `--smart`: `---` is always em-dash,
2626 and `--` is always en-dash. Pandoc no longer tries to guess when
2627 `-` should be en-dash. *Note:* This may change how existing documents
2628 look when processed with pandoc. A new option, `--old-dashes`,
2629 is provided for legacy documents.
2631 * The markdown writer now uses setext headers for levels 1-2.
2632 The old behavior (ATX headers for all levels) can be restored
2633 using the new `--atx-headers` option.
2635 * Links are now allowed in markdown image captions. They are also
2636 allowed in links, but will appear there as regular text. So,
2638 [link with [link](/url)](/url)
2642 <p><a href="/url">link with link</a></p>
2644 * Improved handling of citations using `citeproc-hs-0.3.4`.
2645 Added `--citation-abbreviations` option.
2647 * Citation keys can no longer end with a punctuation character.
2648 This means that `@item1.` will be parsed as a citation with key
2649 'item1', followed by a period, instead of a citation with key
2650 'item1.', as was the case previously.
2652 * In HTML output, citations are now put in a span with class `citation`.
2654 * The markdown reader now recognizes DocBook block and inline tags.
2655 It was always possible to include raw DocBook tags in a markdown
2656 document, but now pandoc will be able to distinguish block from
2657 inline tags and behave accordingly. Thus, for example,
2663 will not be wrapped in `<para>` tags.
2665 * The LaTeX parser has been completely rewritten; it is now much more
2666 accurate, robust, and extensible. However, there are two important
2667 changes in how it treats unknown LaTeX. (1) Previously, unknown
2668 environments became BlockQuote elements; now, they are treated
2669 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
2670 same as `xyz`. (2) Previously, arguments of unknown commands
2671 were passed through with their braces; now the braces are stripped
2674 * `--smart` is no longer selected automatically with `man` output.
2676 * The deprecated `--xetex` option has been removed.
2678 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
2679 instead. `html5` and `html5+lhs` are now separate output formats.
2681 * Single quotes are no longer escaped in HTML output. They do not
2682 need to be escaped outside of attributes.
2684 * Pandoc will no longer transform leading newlines in code
2685 blocks to `<br/>` tags.
2687 * The ODT writer now sizes images appropriately, using the image
2688 size and DPI information embedded in the image.
2690 * `--standalone` is once again implicitly for a non-text output format
2691 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
2692 and get a standalone ODT file.
2694 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
2697 * The HTML writer now uses `<del>` for strikeout.
2699 * In HTML output with `--section-divs`, the classes `section` and
2700 `level[1,2,..6]` are put on the `div` tags so they can be styled.
2701 In HTML 5 output with `--section-divs`, the classes
2702 `level[1,2,...6]` are put on `section` tags.
2704 * EPUB writer changes:
2706 + The `lang` variable now sets the language
2707 in the metadata (if it is not set, we default to the locale).
2708 + EPUB: UTF-8 is used rather than decimal entities.
2710 * Added `titleslide` class to title slide in S5 template.
2712 * In HTML, EPUB, and docx metadata, the date is normalized into
2713 YYYY-MM-DD format if possible. (This is required for validation.)
2715 * Attributes in highlighted code blocks are now preserved in HTML.
2716 The container element will have the classes, id, and key-value attributes
2717 you specified in the delimited code block. Previously these were stripped
2720 * The reference backlink in the HTML writer no longer has a special
2721 `footnoteBacklink` class.
2723 * The HTML template has been split into `html` and `html5` templates.
2725 * Author and date are treated more consistently in HTML templates.
2726 Authors are now `<h2>`, date `<h3>`.
2728 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
2730 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
2734 * Better support for combining characters and East Asian wide characters
2735 in markdown and reST.
2737 * Better handling of single quotes with `--smart`.
2738 Previously `D'oh l'*aide*` would be parsed with left and right single
2739 quotes instead of apostrophes. This kind of error is now fixed.
2741 * Highlighting: Use `reads` instead of `read` for better error handling.
2742 Fixes crash on `startNum="abc"`.
2744 * Added blank comment after directives in rst template.
2746 * Unescape entities in citation `refId`. The `refId`s coming
2747 from citeproc contain XML numeric entities, and these don't match with the
2748 citation keys parsed by pandoc. Solution is to unescape them.
2750 * HTML reader: Fixed bug parsing tables with both thead and tbody.
2754 + Better handling of escapes in link URLs and titles.
2755 + Fixed backslash escapes in reference links.
2756 + Fixed bug in table/hrule parsing, by checking that the top
2757 line of a table is not followed by a blank line. This bug caused
2758 slowdowns on some files with hrules and tables, as pandoc tried to
2759 interpret the hrules as the tops of multiline tables.
2760 + Fixed bug in code block attribute parser. Previously the ID attribute
2761 got lost if it didn't come first. Now attributes can come in any order.
2763 * RST reader: allow footnotes followed by newline without space characters.
2767 + Ignore empty groups {}, { }.
2768 + LaTeX reader: Handle \@.
2769 + LaTeX reader: Don't crash on commands like `\itemsep`.
2770 + LaTeX reader: Better handling of letter environments.
2772 * RST writer: Fixed bug involving empty table cells. isSimple was being
2773 calculated in a way that assumed there were no non-empty cells.
2777 + Made `--toc` work even without `--number-sections`.
2778 + Escape # in link URLs.
2779 + Use buffering for footnotes containing code blocks.
2780 + Changed 'descr' to 'description', fixed alignment.
2784 + Escape euro character.
2785 + Don't escape ~ inside href{...}.
2786 + Escape # in href URLs.
2787 + Improved detection of book classes. We now check the
2788 `documentclass` variable, and if that is not set, we look through
2789 the template itself. Also, we have added the KOMA classes scrreprt
2790 and scrbook. You can now make a book using
2791 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
2792 + LHS files now set the "listings" variable, so that the definition
2793 of the `code` environment will be included in the template.
2794 + Links are colored blue by default (this can be changed by
2795 modifying `hyperref` settings in the template).
2796 + Added `lang` variable to LaTeX template.
2800 + Fixed bug in HTML template with html5 and mathml.
2801 + Don't use self-closing img, br, hr tags for HTML5.
2802 + Use `<section>` for footnotes if HTML5.
2803 + Update HTML templates to use Content-Style-Type meta tag.
2804 + Use separate variables for meta-date, meta-author.
2805 This makes footnotes work in author and date fields.
2806 + Use 'vertical-align:middle' in WebTeX math for better alignment.
2808 * S5/slidy writer: Make footnotes appear on separate slide at end.
2810 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
2811 META-INF/manifest.xml for ODT files will have everything it needs, so
2812 that ODT files modified by LibreOffice can be used as `--reference-odt`.
2814 * `Text.Pandoc.Templates`: Return empty string for json template.
2816 * `Text.Pandoc.Biblio`:
2818 + Expand citations recursively inside nested inlines.
2819 + Treat `\160` as space when parsing locator and suffix.
2820 This fixes a bug with "p. 33" when `--smart` is used. Previously
2821 the whole "p. 33" would be included in the suffix, with no locator.
2822 + Put whole author-in-text citation in a Cite. Previously just the
2823 date and other info went in the Cite.
2824 + Don't add comma+space to prefix if it ends in punctuation.
2826 * Updated chicago-author-date.csl. The old version did not work
2827 properly for edited volumes with no author.
2831 + Add date to EPUB titlepage and metadata.
2832 + Added TOC identifier in EPUB page template.
2833 + Don't generate superfluous file `cover-image.jpg`.
2835 [under the hood improvements]
2837 * Modified `make_osx_package.sh` to use cabal-dev.
2838 Items are no longer installed as root.
2839 Man pages are zipped and given proper permissions.
2841 * Modified windows installer generater to use cabal-dev.
2843 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
2844 Setup.hs we now invoke 'runghc' in a way that points it to the correct
2845 package databases, instead of always falling back to the default user
2848 * Updated to work with GHC 7.4.1.
2850 * Removed dependency on old-time.
2852 * Removed dependency on dlist.
2854 * New slidy directory for "self-contained."
2856 * TeXMath writer: Use unicode thin spaces for thin spaces.
2858 * Markdown citations: don't strip off initial space in locator.
2862 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
2863 from the native `Inline` type in pandoc-types. Now we use `Str`
2864 elements with unicode.
2866 * Improvements to `Text.Pandoc.Builder`:
2868 + `Inlines` and `Blocks` are now newtypes (not synonyms for
2870 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
2871 and a new `Listable` class, which allows these to be manipulated
2872 to some extent like lists. Monoid append includes automatic
2874 + `+++` has been replaced by `<>` (mappend).
2876 * Use blaze-html instead of xhtml for HTML generation.
2877 This changes the type of `writeHtml`.
2879 * `Text.Pandoc.Shared`:
2881 + Added `warn` and `err`.
2882 + Removed `unescapeURI`, modified `escapeURI`.
2883 (See under [behavior changes], above.)
2885 * Changes in URI escaping: Previously the readers escaped URIs by
2886 converting unicode characters to octets and then percent encoding.
2887 Now unicode characters are left as they are, and `escapeURI` only
2888 percent-encodes space characters. This gives more readable
2889 URIs, and works well with modern user agents. URIs are no longer unescaped
2890 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
2892 * New module `Text.Pandoc.SelfContained`.
2894 * New module `Text.Pandoc.Docx`.
2896 * New module `Text.Pandoc.PDF`.
2898 * Added `writerBeamer` to `WriterOptions`.
2900 * Added `normalizeDate` to `Text.Pandoc.Shared`.
2902 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
2903 This is like `splitWithIndices`, but it is sensitive to distinctions
2904 between wide, combining, and regular characters.
2906 * `Text.Pandoc.Pretty`:
2908 + Added `chomp` combinator.
2909 + Added `beforeNonBreak` combinator. This allows you to include
2910 something conditionally on it being before a nonblank.
2911 Used for RST inline math.
2912 + Added `charWidth` function. All characters marked W or F in the unicode
2913 spec EastAsianWidth.txt get width 2.
2914 + Added `realLength`, based on `charWidth`. `realLength` is now
2915 used in calculating offsets.
2917 * New module `Text.Pandoc.Slides`, for common functions for breaking
2918 a document into slides.
2920 * Removed `Text.Pandoc.S5`, which is no longer needed.
2922 * Removed `Text.Pandoc.CharacterReferences`. Moved
2923 `characterReference` to `Text.Pandoc.Parsing`.
2924 `decodeCharacterReferences` is replaced by `fromEntities`
2925 in `Text.Pandoc.XML`.
2927 * Added `Text.Pandoc.ImageSize`. This is intened for use
2928 in `docx` and `odt` writers, so the size and dpi of images
2931 * Removed `writerAscii` in `WriterOptions`.
2933 * Added `writerHighlight` to `WriterOptions`.
2935 * Added `DZSlides` to `HTMLSlideVariant`.
2937 * `writeEPUB` has a new argument for font files to embed.
2939 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
2940 of whether we're parsing the position immediately after a regular
2941 (non-space, non-symbol) string, which is useful for distinguishing
2942 apostrophes from single quote starts.
2944 * `Text.Pandoc.Parsing`:
2946 + `escaped` now returns a `Char`.
2947 + Removed `charsInBalanced'`, added a character parser as
2948 a parameter of `charsInBalanced`. This is needed for
2949 proper handling of escapes, etc.
2952 * Added `toEntities` to `Text.Pandoc.XML`.
2954 * `Text.Pandoc.Readers.LaTeX`:
2956 + Export `handleIncludes`.
2957 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
2959 * Added `ToJsonFilter` class and `toJsonFilter` function to
2960 `Text.Pandoc`, deprecating the old `jsonFilter` function.
2962 * `Text.Pandoc.Highlighting`:
2964 + Removed `highlightHtml`, `defaultHighlightingCss`.
2965 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
2966 key functions from highlighting-kate.
2967 + Changed types of highlighting function. `highlight` returns a
2968 `Maybe`, not an `Either`.
2972 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
2974 * Relaxed cabal constraints for pandoc-types.
2976 * Adjusted Arbitrary instance to help avoid timeouts in tests.
2978 * Added `Tests.Writers.Markdown` to cabal file.
2982 * Added script to produce OS X package.
2984 * Made `templates` directory a git submodule. This should make it
2985 easier for people to revise their custom templates when the default
2988 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
2989 **Note:** If you have existing templates in `~/.pandoc/templates`, you
2990 must rename them to conform to the new scheme!
2992 * Fixed smart quotes bug, now handling `'...hi'` properly.
2996 + Partial support for labeled footnotes.
2997 + Improved accuracy of `simpleReferenceName` parser.
3001 + Substitute correct unicode characters for
3002 characters in the 128..159 range, which are often found even in
3003 HTML that purports to be UTF-8.
3005 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
3006 to the title, after a colon and linebreak). Closes #280.
3008 * Leaner `reference.odt`.
3010 * Added unexported module `Text.Pandoc.MIME` for use in
3013 * ODT writer: Construct `manifest.xml` based on archive contents.
3014 This fixes a bug in ODTs containing images. Recent versions of
3015 LibreOffice would reject these as corrupt, because `manifest.xml`
3016 did not contain a reference to the image files.
3020 + Make verbatim environments flush to avoid spurious
3021 blank lines. Closes #277.
3022 + Use `\texttt` and escapes insntead of `\verb!...!`, which
3023 is too fragile (doesn't work in command arguments).
3024 + Use `\enquote{}` for quotes if the template includes
3025 the `csquotes` package. This provides better support for
3026 local quoting styles. (Thanks to Andreas Wagner for the idea.)
3028 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
3029 margin, preventing spurious blank lines.
3033 + Use non-minimized version of `slidy.css` with `--offline`
3034 option, so users can more easily edit it.
3035 + Also fixed a bug in the CSS that prevented proper centering
3036 of title (now reported and fixed upstream).
3040 + Replaced `s5/default/slides.js.{comment,packed}` with
3041 new compressed `s5/default/slides.min.js`.
3042 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
3043 when `--offline` is specified. Using inline CSS didn't
3044 work with Chrome or Safari. This fixes offline
3045 S5 on those browsers.
3047 * HTML writer: Removed English title on footnote backlinks.
3048 This is incongrous in non-English documents.
3052 + Use CALS tables. (Some older docbook software does not work
3053 well with XHTML tables.) Closes #77.
3054 + Use `programlisting` tags (instead of `screen`) for code blocks.
3058 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
3059 of `-interaction=batchmode`, which essentially just ignored errors,
3060 leading to bad results. Better to know when something is wrong.
3061 + Fixed issues with non-UTF-8 output of `pdflatex`.
3062 + Better error reporting.
3064 * `--mathjax` now takes an optional URL argument. If it is not
3065 provided, pandoc links directly to the (secure) mathjax CDN,
3066 as now recommended (thanks to dsanson).
3068 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
3069 since the LaTeX writer now produces a file that can be processed by
3070 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
3072 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
3073 to be used to create the PDF.
3075 * If a template specified with `--template` is not found, look for it
3076 in `datadir`. Also, if no extension is provided, supply one based
3077 on the writer. So now you can put your `special.latex` template in
3078 `~/.pandoc/templates`, and use it from any directory via
3079 `pandoc -t latex --template special`.
3081 * Default template improvements:
3083 + HTML: Display author and date after title.
3084 + HTML: Made table of contents more customizable. The container
3085 for the TOC is now in the template, so users can insert a header
3086 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
3087 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
3088 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
3089 hard-coding. If you want to put your slidy files in the slidy
3090 subdirectory, for example, you can do
3091 `pandoc -t slidy -V slidy-url=slidy -s`.
3092 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
3093 & writer). Closes #279.
3094 + LaTeX: Use different `hyperref` options for `xetex`, fixing
3095 problems with unicode bookmarks (thanks to CircleCode).
3096 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
3097 with `inputenc`. This covers fewer characters but is more
3098 robust with other packages, and `ucs` is unmaintained. Users
3099 who need better unicode support should use xelatex or lualatex.
3103 * Added `--epub-cover-image` option.
3105 * Documented `--biblatex` and `--natbib` options.
3107 * Allow `--section-divs` with slidy output. Resolves Issue #296.
3109 * Disallow notes within notes in reST and markdown.
3110 These previously caused infinite looping and stack overflows.
3117 Note references are allowed in reST notes, so this isn't a full
3118 implementation of reST. That can come later. For now we need to
3119 prevent the stack overflows. Partially resolves Issue #297.
3121 * EPUB writer: Allow non-plain math methods.
3123 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
3124 `(@item1; @item2)` because the final paren was being parsed as part of
3127 * Changed URI parser so it doesn't include trailing punctuation.
3128 So, in RST, `http://google.com.` should be parsed as a link followed by a
3129 period. The parser is smart enough to recognize balanced parentheses, as
3130 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
3132 * Markdown+lhs reader: Require space after inverse bird tracks, so that
3133 HTML tags can be used freely at the left margin of a markdown+lhs document.
3134 Thanks to Conal Elliot for the suggestion.
3138 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
3139 + Fixed bug in footnote order (reported by CircleCode).
3142 + Fixed bug in in field lists with multi-line items at the
3144 + Added parentheses to RST `specialChars`, so
3145 `(http://google.com)` will be parsed as a link in parens.
3146 Resolves Issue #291.
3147 + Allow `|` followed by newline in RST line block.
3151 + Gobble option & space after linebreak `\\[10pt]`.
3154 + Make it possible to have colons after links. (qerub)
3155 + Make it possible to have colons after links. (Christoffer Sawicki)
3158 + Skip spaces after `<b>`, `<emph>`, etc.
3159 + Handle tbody, thead in simple tables. Closes #274.
3160 + Implicit `Para`s instead of `Plains` in some contexts.
3162 * OpenDocument writer: Use special `First paragraph` style for
3163 first paragraph after most non-paragraph blocks. This allows users to
3164 specify e.g. that only paragraphs after the first paragraph of a block are
3165 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
3167 * LaTeX writer: use `deVerb` on table and picture captions.
3168 Otherwise LaTeX complains about `\verb` inside command argument.
3169 Thanks to bbanier for reporting the bug.
3171 * Markdown writer: Insert HTML comment btw list and indented code block.
3172 This prevents the code block from being interpreted as part of the list.
3174 * EPUB writer: Add a meta element specify the cover.
3175 Some EPUB e-readers, such as the Nook, require a meta element inside the
3176 OPF metadata block to ensure the cover image is properly displayed.
3179 * HTML writer: Use embed tag for images with non-image extensions.
3180 (e.g. PDFs). Closes #264.
3182 * LaTeX writer: Improved tables.
3184 + More space between lines, top-align cells.
3185 + Use ctable package, which allows footnotes and
3186 provides additional options.
3187 + Made cell alignments work in multiline tables.
3188 + Closes #271, #272.
3190 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
3191 Also do this when copying image files into EPUBs and ODTs.
3194 * Changed to github issue tracker.
3196 * Added failing emph/strong markdown test case due to Perry Wagle.
3198 * Slidy improvements:
3199 + Updated to use Slidy2.
3200 + Fixed bug, unclosed div tag.
3201 + Added `duration` variable in template.
3202 Setting this activates the timer.
3203 + Use 'titlepage' instead of 'cover' for title div.
3207 * `markdown2pdf`: Removed some debugging lines accidentally included
3208 in the 1.8.1 release. With those lines, the temp directory is created
3209 in the working directory, and it is not deleted. This fix restores
3210 the original behavior.
3214 * Added `--ascii` option. Currently supported only in HTML writer,
3215 which it causes to use numerical entities instead of UTF-8.
3217 * EPUB writer: `--toc` now works to provide a table of contents
3218 at the beginning of each chapter.
3220 * LaTeX writer: Change figure defaults to `htbp`.
3221 This prevents "too many unprocessed floats." Resolves
3224 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
3227 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
3228 Tanimoto. Resolves Issue #286.
3230 * HTML writer: Put line breaks in section divs.
3232 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
3236 * Fixed Source-repository stanza in cabal file.
3242 + Stringify alt text instead of converting to HTML.
3243 + Break lines after block elements, not inside tags.
3244 HTML output now closely resembles that of tidy. Resolves Issue #134.
3246 * Markdown reader: Fixed bug in footnote block parser (pointed out
3247 by Jesse Rosenthal). The problem arose when the blank line
3248 at the end of a footnote block contained indenting spaces.
3250 * Shared: Improved 'normalize' function so it normalizes Spaces too.
3251 In normal form, Space elements only occur to separate two non-Space
3252 elements. So, we never have [Space], or [, ..., Space].
3256 + Improved Arbitrary instance.
3257 + Added timeout for test instances.
3261 + Added section on four-space rule for lists. Resolves Issue #283.
3262 + Clarified optional arguments on math options.
3264 * markdown2pdf: Fixed bug with output file extensions.
3265 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
3266 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
3270 * Revised Interact.hs so that it works with the CPP macros
3273 * Revised Setup.hs so that we don't call MakeManPage.hs unless
3274 the man pages are out of date.
3280 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
3281 You can now write, for example,
3283 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
3285 and, when you process your document using `pandoc`, specifying
3286 a citation style using `--csl` and a bibliography using `--bibliography`,
3287 the citation will be replaced by an appropriately formatted
3288 citation, and a list of works cited will be added to the end
3291 This means that you can switch effortlessly between different citation
3292 and bibliography styles, including footnote, numerical, and author-date
3293 formats. The bibliography can be in any of the following formats: MODS,
3294 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
3295 See the README for further details.
3297 Citations are supported in the markdown reader, using a special
3298 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
3299 (Thanks to Nathan Gass for the natbib and biblatex support.)
3301 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
3302 the `textile` reader, an almost complete implementation of the textile
3303 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
3306 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
3308 * New `json` reader and writer, for reading and writing a JSON
3309 representation of the native Pandoc AST. These are much faster
3310 than the `native` reader and writer, and should be used for
3311 serializing Pandoc to text. To convert between the JSON representation
3312 and native Pandoc, use `encodeJSON` and `decodeJSON` from
3313 `Text.JSON.Generic`.
3315 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
3316 to write scripts that transform a JSON-encoded pandoc document.
3319 -- removelinks.hs - removes links from document
3321 main = interact $ jsonFilter $ bottomUp removeLink
3322 where removeLink (Link xs _) = Emph xs
3325 To use this to remove links while translating markdown to LaTeX:
3327 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
3329 * Attributes are now allowed in inline `Code` elements, for example:
3331 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
3333 The attribute syntax is the same as for delimited code blocks.
3334 `Code` inline has an extra argument place for attributes, just like
3335 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
3336 is compiled with highlighting support. Resolves Issue #119.
3338 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
3339 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
3340 scripts to transform Pandoc documents. Scripts can now change
3341 how each element is rendered in each output format.
3343 * You can now define LaTeX macros in markdown documents, and pandoc
3344 will apply them to TeX math. For example,
3346 \newcommand{\plus}[2]{#1 + #2}
3349 yields `3+4`. Since the macros are applied in the reader, they
3350 will work in every output format, not just LaTeX.
3352 * LaTeX macros can also be used in LaTeX documents (both in math
3353 and in non-math contexts).
3355 * A new `--mathjax` option has been added for displaying
3356 math in HTML using MathJax. Resolves issue #259.
3358 * Footnotes are now supported in the RST reader. (Note, however,
3359 that unlike docutils, pandoc ignores the numeral or symbol used in
3360 the note; footnotes are put in an auto-numbered ordered list.)
3361 Resolves Issue #258.
3363 * A new `--normalize` option causes pandoc to normalize the AST
3364 before writing the document. This means that, for example,
3365 `*hi**there*` will be rendered as `<em>hithere</em>`
3366 instead of `<em>hi</em><em>there</em>`. This is not the default,
3367 because there is a significant performance penalty.
3369 * A new `--chapters` command-line option causes headers
3370 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
3371 Resolves Issue #265.
3373 * In DocBook output, `<chapter>` is now used for top-level
3374 headers if the template contains `<book>`. Resolves Issue #265.
3376 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
3377 the LaTeX writer to use the listings package for code blocks.
3378 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
3379 Millon for the markdown2pdf patch.)
3381 * `markdown2pdf` now supports `--data-dir`.
3383 * URLs in autolinks now have class "url" so they can be styled.
3385 * Improved prettyprinting in most formats. Lines will be wrapped
3386 more evenly and duplicate blank lines avoided.
3388 * New `--columns` command-line option sets the column width for
3389 line wrapping and relative width calculations for tables.
3391 * Made `--smart` work in HTML, RST, and Textile readers, as well
3394 * Added `--html5` option for HTML5 output.
3396 * Added support for listings package in LaTeX reader
3399 * Added support for simple tables in the LaTeX reader.
3401 * Added support for simple tables in the HTML reader.
3403 * Significant performance improvements in many readers and writers.
3405 [API and program changes]
3407 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
3408 auxiliary package, `pandoc-types`. This will make it possible for other
3409 programs to supply output in Pandoc format, without depending on the whole
3412 * Added `Attr` field to `Code`.
3414 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
3415 `RawBlock` and `RawInline`.
3417 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
3418 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
3419 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
3421 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
3423 * `Text.Pandoc` now exports association lists `readers` and `writers`.
3425 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
3426 `readNative` can now read full pandoc documents, block lists, blocks,
3427 inline lists, or inlines. It will interpret `Str "hi"`
3428 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
3429 This should make testing easier.
3431 * Removed deprecated `-C/--custom-header` option.
3432 Use `--template` instead.
3434 * `--biblio-file` has been replaced by `--bibliography`.
3435 `--biblio-format` has been removed; pandoc now guesses the format
3436 from the file extension (see README).
3438 * pandoc will treat an argument as a URI only if it has an
3439 `http(s)` scheme. Previously pandoc would treat some
3440 Windows pathnames beginning with `C:/` as URIs.
3442 * The `--sanitize-html` option and the `stateSanitize` field in
3443 `ParserState` have been removed. Sanitization is better done in the
3444 resulting HTML using `xss-sanitize`, which is based on pandoc's
3445 sanitization, but improved.
3447 * pandoc now adds a newline to the end of its output in fragment
3448 mode (= not `--standalone`).
3450 * Added support for `lang` in `html` tag in the HTML template,
3451 so you can do `pandoc -s -V lang=es`, for example.
3453 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
3454 a boolean argument that selects between "inline" and
3457 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
3458 Images are embedded in RTF output when possible (png, jpeg).
3459 Resolves Issue #275.
3461 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
3462 `pretty` package. Changed all writers that used
3463 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
3465 * Rewrote `writeNative` using the new prettyprinting module. It is
3466 now much faster. The output has been made more consistent and compressed.
3467 `writeNative` is also now sensitive to writerStandalone`, and will simply
3468 `print a block list if writerStandalone` is False.
3470 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
3471 blocks and concatenate them, so a separate module is no longer needed.
3473 * `Text.Pandoc.Shared`:
3475 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
3477 + Added `normalize`.
3478 + Removed unneeded prettyprinting functions:
3479 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
3480 `BlockWrapper`, `wrappedBlocksToDoc`.
3481 + Made `splitBy` take a test instead of an element.
3482 + Added `findDataFile`, refactored `readDataFile`.
3483 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
3484 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
3486 * `Text.Pandoc.Readers.HTML`:
3488 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
3489 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
3490 `htmlBlockElement`, `htmlComment`
3491 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
3494 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
3495 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
3498 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
3500 * Ellipses are no longer allowed to contain spaces.
3501 Previously we allowed '. . .', ' . . . ', etc. This caused
3502 too many complications, and removed author's flexibility in
3503 combining ellipses with spaces and periods.
3505 * Allow linebreaks in URLs (treat as spaces). Also, a string of
3506 consecutive spaces or tabs is now parsed as a single space. If you have
3507 multiple spaces in your URL, use `%20%20`.
3509 * `Text.Pandoc.Parsing`:
3511 + Removed `refsMatch`.
3512 + Hid `Key` constructor.
3513 + Removed custom `Ord` and `Eq` instances for `Key`.
3514 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
3515 + Generalized type on `readWith`.
3517 * Small change in calculation of relative widths of table columns.
3518 If the size of the header > the specified column width, use
3519 the header size as 100% for purposes of calculating
3520 relative widths of columns.
3522 * Markdown writer now uses some pandoc-specific features when `--strict`
3523 is not specified: `\` newline is used for a hard linebreak instead of
3524 two spaces then a newline. And delimited code blocks are used when
3525 there are attributes.
3527 * HTML writer: improved gladTeX output by setting ENV appropriately
3528 for display or inline math (Jonathan Daugherty).
3530 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
3534 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
3535 + `\index{}` commands are skipped.
3537 * Added `fontsize` variable to default LaTeX template.
3538 This makes it easy to set the font size using `markdown2pdf`:
3539 `markdown2pdf -V fontsize=12pt input.txt`.
3541 * Fixed problem with strikeout in LaTeX headers when using
3542 hyperref, by adding a command to the default LaTeX template
3543 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
3546 * The `COLUMNS` environment variable no longer has any effect.
3548 [under-the-hood improvements]
3550 * Pandoc now compiles with GHC 7. (This alone leads to a
3551 significant performance improvement, 15-20%.)
3553 * Completely rewrote HTML reader using tagsoup as a lexer. The
3554 new reader is faster and more accurate. Unlike the
3555 old reader, it does not get bogged down on some input
3556 (Issues #277, 255). And it handles namespaces in tags
3559 * Replaced `escapeStringAsXML` with a faster version.
3561 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
3562 for a significant performance boost.
3564 * Improved performance of all readers by rewriting parsers.
3566 * Simplified Text.Pandoc.CharacterReferences by using
3567 entity lookup functions from TagSoup.
3569 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
3570 from `System.IO` if base >= 4.2. This gives support for
3571 windows line endings on windows.
3573 * Remove duplications in documentation by generating the
3574 pandoc man page from README, using `MakeManPage.hs`.
3576 * README now includes a full description of markdown syntax,
3577 including non-pandoc-specific parts. A new `pandoc_markdown`
3578 man page is extracted from this, so you can look up markdown
3579 syntax by doing `man pandoc_markdown`.
3581 * Completely revised test framework (with help from Nathan Gass).
3582 The new test framework is built when the `tests` Cabal flag is set. It
3583 includes the old integration tests, but also some new unit and quickcheck
3584 tests. Test output has been much improved, and you can now specify a glob
3585 pattern after `cabal test` to indicate which tests should be run;
3586 for example `cabal test citations` will run all the citation tests.
3588 * Added a shell script, `stripansi.sh`, for filtering ANSI control
3589 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
3591 * Added `Interact.hs` to make it easier to use ghci while developing.
3592 `Interact.hs` loads `ghci` from the `src` directory, specifying
3593 all the options needed to load pandoc modules (including
3594 specific package dependencies, which it gets by parsing
3597 * Added `Benchmark.hs`, testing all readers + writers using criterion.
3599 * Added `stats.sh`, to make it easier to collect and archive
3600 benchmark and lines-of-code stats.
3602 * Added upper bounds to all cabal dependencies.
3604 * Include man pages in extra-source-files. This allows users to
3605 install pandoc from the tarball without needing to build the man
3610 * Filenames are encoded as UTF8. Resolves Issue #252.
3612 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
3613 were just parsed literally, leading to problems in some output formats.
3614 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
3615 Resolves Issue #270.
3617 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
3618 Spaces at end of line were not being stripped properly,
3619 resulting in unintended LineBreaks.
3623 + Allow HTML comments as inline elements in markdown.
3624 So, `aaa <!-- comment --> bbb` can be a single paragraph.
3625 + Fixed superscripts with links: `^[link](/foo)^` gets
3626 recognized as a superscripted link, not an inline note followed by
3628 + Fixed regression, making markdown reference keys case-insensitive again.
3629 Resolves Issue #272.
3630 + Properly handle abbreviations (like `Mr.`) at the end of a line.
3631 + Better handling of intraword underscores, avoiding exponential
3632 slowdowns in some cases. Resolves Issue #182.
3633 + Fixed bug in alignments in tables with blank rows in the header.
3637 + Field lists now allow spaces in field names, and
3638 block content in field values. (Thanks to Lachlan Musicman
3639 for pointing out the bug.)
3640 + Definition list items are now always `Para` instead of
3641 `Plain`, matching behavior of `rst2xml.py`.
3642 + In image blocks, the description is parsed properly and
3643 used for the alt attribute, not also the title.
3644 + Skip blank lines at beginning of file. Resolves
3649 + Improved parsing of preamble.
3650 Previously you'd get unexpected behavior on a document that
3651 contained `\begin{document}` in, say, a verbatim block.
3652 + Allow spaces between `\begin` or `\end` and `{`.
3653 + Support `\L` and `\l`.
3654 + Skip comments inside paragraphs.
3658 + Escape strings in `\href{..}`.
3659 + In nonsimple tables, put cells in `\parbox`.
3661 * OpenDocument writer: don't print raw TeX.
3665 + Fixed bug in `Image`. URI was getting unescaped twice!
3666 + Avoid printing extra blank lines at the end if there are
3667 no notes or references.
3669 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
3670 This avoids unwanted interpretation as an optional argument.
3672 * ConTeXt writer: Fixed problem with inline code. Previously
3673 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
3674 If it contains neither, use `\type{}`; otherwise use `\mono{}`
3675 with an escaped version of the string.
3677 * `:` now allowed in HTML tags. Resolves Issue #274.
3683 * New EPUB and HTML Slidy writers. (Issue #122)
3685 - EPUB is a standard ebook format, used in Apple's iBooks for
3686 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
3687 reader, and many other devices.
3688 - Slidy, like S5, is a system for producing HTML+javascript slide
3691 * All input is assumed to be UTF-8, no matter what the locale and ghc
3692 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
3693 Also, a BOM, if present, is stripped from the input.
3695 * Markdown now supports grid tables, whose cells can contain
3696 arbitrary block elements. (Issue #43)
3698 * Sequentially numbered example lists in markdown with `@` marker.
3700 * Markdown table captions can begin with a bare colon and no longer need
3701 to include the English word "table." Also, a caption can now occur
3702 either before or after the table. (Issue #227)
3704 * New command-line options:
3706 - `--epub-stylesheet` allows you to specify a CSS file that will
3707 be used to style your ebook.
3708 - `--epub-metadata` allows you to specify metadata for the ebook.
3709 - `--offline` causes the generated HTML slideshow to include all
3710 needed scripts and stylesheets.
3711 - `--webtex` causes TeX math to be converted to images using the
3712 Google Charts API (unless a different URL is specified).
3713 - `--section-divs` causes div tags to be added around each section
3714 in an HTML document. (Issue #230, 239)
3716 * Default behavior of S5 writer in standalone mode has changed:
3717 previously, it would include all needed scripts and stylesheets
3718 in the generated HTML; now, only links are included unless
3719 the `--offline` option is used.
3721 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
3722 pandoc would enclose sections in div tags with identifiers on the
3723 div tags, so that the sections can be manipulated in javascript.
3724 This caused undesirable interactions with raw HTML div tags. So,
3725 starting with 1.6, the default is to put the identifiers directly
3726 on the header tags, and not to include the divs. The `--section-divs`
3727 option selects the 1.2-1.5 behavior.
3731 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
3732 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
3733 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
3734 `writerIncludeAfter`.
3735 - Added `headerShift` to `Text.Pandoc.Shared`.
3736 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
3737 to a new module, `Text.Pandoc.Parsing`.
3738 - Added `stateHasChapters` to `ParserState`.
3739 - Added `HTMLSlideVariant`.
3740 - Made `KeyTable` a map instead of an association list.
3741 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
3743 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
3745 - Reference keys now have a type of their own (`Key`), with its
3746 own `Ord` instance for case-insensitive comparison.
3747 - Added `Text.Pandoc.Writers.EPUB`.
3748 - Added `Text.Pandoc.UUID`.
3749 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
3750 Removed `saveOpenDocumentAsODT`, added `writeODT`.
3751 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
3752 Removed `prettyPandoc`.
3753 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
3754 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
3755 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
3756 To write S5, you now use `writeHtml` with `writerSlideVariant`
3757 set to `S5Slides` or `SlidySlides`.
3759 * Template changes. If you use custom templates, please update them,
3760 particularly if you use syntax highlighting with pandoc. The old HTML
3761 templates hardcoded highlighting CSS that will no longer work with
3762 the most recent version of highlighting-kate.
3764 - HTML template: avoid empty meta tag if no date.
3765 - HTML template: Use default highlighting CSS from highlighting-kate
3766 instead of hard-coding the CSS into the template.
3767 - HTML template: insert-before text goes before the title, and
3768 immediately after the <body> tag, as documented. (Issue #241)
3769 - Added slidy and s5 templates.
3770 - Added amssymb to preamble of latex template. (github Issue 1)
3772 * Removed excess newlines at the end of output. Note: because output
3773 will not contain an extra newline, you may need to make adjustments
3774 if you are inserting pandoc's output into a template.
3776 * In S5 and slidy, horizontal rules now cause a new slide, so you
3777 are no longer limited to one slide per section.
3779 * Improved handling of code in man writer. Inline code is now monospace,
3780 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
3782 * HTML reader parses `<tt>` as Code. (Issue #247)
3784 * html+lhs output now contains bird tracks, even when compiled without
3785 highlighting support. (Issue #242)
3787 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
3788 since they have a special meaning in XML.
3790 * Code improvements in ODT writer. Remote images are now replaced with
3791 their alt text rather than a broken link.
3793 * LaTeX reader improvements:
3795 - Made latex `\section`, `\chapter` parsers more forgiving of
3797 - Parse `\chapter{}` in latex.
3798 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
3799 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
3800 for use in markdown reader.
3801 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
3802 in markdown document.
3804 * LaTeX writer: images are automatically shrunk if they would extend
3805 beyond the page margin.
3807 * Plain, markdown, RST writers now use unicode for smart punctuation.
3809 * Man writer converts math to unicode when possible, as in other writers.
3811 * `markdown2pdf` can now recognize citeproc options.
3813 * Command-line arguments are converted to UTF-8. (Issue #234)
3815 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
3816 This allows it to handle a wider range of formulas. Also, if a formula
3817 cannot be converted, it is left in raw TeX; formulas are no longer
3818 partially converted.
3820 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
3823 * Cabal file changes:
3825 - Removed parsec < 3 restriction.
3826 - Added 'threaded' flag for architectures where GHC lacks a threaded
3828 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
3829 - Require highlighting-kate 0.2.7.
3831 * Use explicit imports from `Data.Generics`. Otherwise we have a
3832 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
3834 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
3840 * Fixed uniqueIdent in Shared so that header identifiers work as
3841 advertized in the README and are are valid XHTML names.
3847 * Fixed treatment of unicode characters in URIs.
3848 + Shared now exports escapeURI and unescapeURI. These handle
3849 UTF8 encoding and decoding as well as URI escaping/unescaping.
3850 + Shared: uri and emailAddress now return a pair of the original
3851 parsed text and the escaped URI (in the latter case, with
3852 the mailto: prefix).
3853 + HTML reader: unsanitaryURI has been modified to allow unicode
3854 high characters in a URI.
3855 + Readers: All link and image URIs are now escaped using
3857 + Markdown and RST writers: unescapeURI is used so that URIs
3858 in these formats are human-readable.
3860 * Setup.hs: Don't assume that the build directory is "dist".
3861 Instead, get it from localBuildInfo.
3863 * OpenDocument writer: Use a Map for stTextStyleAttr.
3864 This avoids duplicates (and invalid xml). Resolves Issue #222.
3870 * HTML writer: Fixed error in math writer (with MathML option)
3871 that caused an infinite loop for unparsable MathML.
3877 * Added --mathml option. When this is selected, pandoc will convert
3878 TeX math into MathML.
3879 + Added data/MathMLinHTML.js, which is included when no URL is
3880 provided for --mathml. This allows MathML to be displayed (in
3881 better browsers) as text/html.
3882 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
3883 necessary; it was replaced by two lines in pandoc.hs.
3884 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
3885 single combined file, LaTeXMathML.js.
3887 * Added --data-dir option.
3888 This specifies a user data directory. If not specified, will default
3889 to ~/.pandoc on unix or Application Data\pandoc on Windows.
3890 Files placed in the user data directory will override system default
3893 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
3894 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
3895 Nothing, no user directory is searched for an override.
3897 * Added 'plain' output format. This is similar to markdown, but
3898 removes links, pictures, inline formatting, and most anything that
3899 looks even vaguely markupish. The function writePlain is exported by
3900 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
3902 * Allow multi-line titles and authors in meta block.
3903 Titles may span multiple lines, provided continuation lines
3904 begin with a space character. Separate authors may be put on
3905 multiple lines, provided each line after the first begins with
3906 a space character. Each author must fit on one line. Multiple
3907 authors on a single line may still be separated by a semicolon.
3908 Based on a patch by Justin Bogner.
3910 * When given an absolute URI as parameter, pandoc will try to fetch
3911 the content via HTTP. So you can do:
3912 'pandoc -r html -w markdown http://www.fsf.org'
3913 Adds dependency on HTTP.
3915 * Made HTML reader much more forgiving.
3916 + Incorporated idea (from HXT) that an element can be closed
3917 by an open tag for another element.
3918 + Javascript is partially parsed to make sure that a <script>
3919 section is not closed by a </script> in a comment or string.
3920 + More lenient non-quoted attribute values.
3921 Now we accept anything but a space character, quote, or <>.
3922 This helps in parsing e.g. www.google.com!
3923 + Bare & signs are now parsed as a string. This is a common
3925 + Skip a bare < in malformed HTML.
3927 * Removed html2markdown and hsmarkdown.
3928 + html2markdown is no longer needed, since you can now pass URI
3929 arguments to pandoc and directly convert web pages. (Note,
3930 however, that pandoc assumes the pages are UTF8. html2markdown
3931 made an attempt to guess the encoding and convert them.)
3932 + hsmarkdown is pointless -- a large executable that could be
3933 replaced by 'pandoc --strict'.
3935 * In most writers, an image in a paragraph by itself is now rendered
3936 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
3937 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
3940 * Depend on extensible-exceptions. This allows pandoc to be compiled
3943 * Added --base-header-level option. For example, --base-header-level=2
3944 will change level 1 headers to level 2, level 2 to level 3, etc.
3945 Closes Debian #563416.
3947 * Incomplete support for RST tables (simple and grid).
3948 Thanks to Eric Kow. Colspans and rowspans not yet supported.
3950 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
3952 * MediaWiki writer: format links with relative URLs as wikilinks.
3953 The new rule: If the link target is an absolute URL, an external
3954 link is created. Otherwise, a wikilink is created.
3956 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
3957 identifier. Note: This may break links to sections that involve
3960 * Markdown(+lhs) reader: handle "inverse bird tracks."
3961 Inverse bird tracks (<) are used for haskell example code that is not
3962 part of the literate Haskell program. Resolves Issue #211.
3965 + Recognize '\ ' (interword space).
3966 + Recognize nonbreaking space '~'.
3967 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
3968 section headers. Don't treat \section as inline LaTeX.
3969 Resolves Issue #202.
3970 + LaTeX reader: allow any special character to be escaped.
3971 Resolves Issue #221.
3972 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
3973 headers. Resolves Issue #207.
3975 * Use template variables for include-before/after.
3976 + These options now imply -s; previously they worked also in fragment
3978 + Users can now adjust position of include-before and include-after
3979 text in the templates.
3980 + Default position of include-before moved back (as it was before 1.4)
3981 before table of contents.
3982 + Resolves Issue #217.
3984 * Don't print an empty table header: (all writers).
3985 Resolves Issue #210.
3987 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
3989 * HTML writer: Don't include TOC div if table of contents is empty.
3991 * Markdown writer: Fixed citations.
3992 Previously the markdown writer printed raw citation codes, e.g.
3993 [geach1970], rather than the expanded citations provided by
3994 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
3995 This means that the document produced can be processed as a markdown
3996 document without citeproc. Thanks to dsanson for reporting, and
3997 Andrea Rossato for the patch.
3999 * Improved and simplified title block in context template.
4000 Previously it caused an error if there was no title.
4001 This method should also be easier for users to customize.
4004 + Treat p., pp., sec., ch., as abbreviations in smart mode.
4005 + Disallow blank lines in inline code span.
4006 + Allow footnotes to be indented < 4 spaces.
4007 This fixes a regression. A test case has been added.
4008 + Escape spaces in URLs as %20. Previously they were incorrectly
4009 escaped as +, which is appropriate only for the query part of
4010 a URL. Resolves Issue #220.
4011 + Require two spaces after capital letter + period for list item.
4012 Otherwise "E. coli" starts a list. This might change the semantics
4013 of some existing documents, since previously the two-space
4014 requirement was only enforced when the second word started
4015 with a capital letter. But it is consistent with the existing
4016 documentation and follows the principle of least surprise.
4017 Resolves Issue #212.
4019 * LaTeX template: redefine labelwidth when using enumerate package.
4020 Otherwise the list labels (numbers) often extend past the left
4021 margin, which looks bad.
4023 * Mediawiki writer: Don't print a "== Notes ==" header before
4024 references. This is too English-centric. Writers can provide their
4025 own header at the end of the document.
4027 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
4028 level 2, etc. This seems to be correct; it's only by convention
4029 that wikipedia articles have level 2 headers at most.
4030 Patch due to Eric Kow.
4032 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
4033 data files don't need to have been installed. This removes the need to
4037 + Handle spaces before <html>. Resolves Issue #216.
4038 + Be forgiving in parsing a bare list within a list.
4039 The following is not valid xhtml, but the intent is clear:
4042 <ol><li>sub</li></ol>
4045 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
4047 * Updated INSTALL instructions. cabal method is now promoted.
4049 * Updated markdown2pdf man page. It no longer says all pandoc options
4052 * README/man pages: Removed advice to pipe through tidy before HTML
4053 reader. This is obsolete, now that we have a forgiving HTML parser.
4055 * LaTeX writer: set numbersections template variable, so
4056 the section numbering options work again.
4058 * Removed obsolete Makefile.
4060 * Website: renamed index.txt.in -> index.txt.
4062 * New batch file to make-windows-installer.
4063 + Removed old Makefile.windows
4064 + Added make-windows-installer.bat
4065 + Modified default installer name in pandoc-setup.iss
4067 * Removed freebsd and macports directories.
4068 They are no longer up to date.
4071 + Made man page building sensitive to build verbosity.
4072 + Improved detection of highlighting support in test hook.
4073 + Install wrapper scripts into cabal bin directory.
4074 + Also simplified installManpages.
4075 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
4077 * Changed default of writerXeTeX to False.
4079 * HTML writer: don't include empty UL if --toc but no sections.
4080 Resolves Issue #199.
4084 + If book, report, or memoir documentclass, use \chapter{}
4085 for first-level headers. Otherwise use \section{}.
4086 + Removed stLink, link template variable. Reason: we now always
4087 include hyperref in the template.
4091 + Only show \author if there are some.
4092 + Always include hyperref package. It is used not just for links but
4093 for toc, section heading bookmarks, footnotes, etc. Also added
4094 unicode=true on hyperref options.
4096 * markdown2pdf: always do at least two runs. hyperref bookmarks
4099 * cabal file: Removed unneeded dependency on template-haskell.
4101 * Windows installer - fixed bug in data file locations.
4102 Resolves Issue #197.
4104 * Deprecated --custom-header in documentation.
4105 Removed old "Custom Headers" section in README.
4111 * Pandoc will now compile with either GHC 6.10 or 6.12.
4112 + Don't use System.IO.UTF8 when compiling with 6.12
4113 + Use -fno-warn-unused-do-bind option when compiling with 6.12
4115 * Replaced old headers with templates. Now users have much more
4116 control over the way documents appear in --standalone mode,
4117 and writer code is simplified. Resolves Issues #59, 147.
4118 Every effort has been made to retain backwards compatibilty.
4119 So, the --custom-header option should still work as before.
4121 + Added Text.Pandoc.Templates. This provides functions for
4122 retrieving default templates and for rendering templates.
4123 + System templates (in the pandoc data directory) can be
4124 overridden by user templates in $HOME/.pandoc/templates.
4125 + Removed Text.Pandoc.DefaultHeaders.
4126 + Removed data/headers directory.
4127 + Added templates directory.
4128 + Added writerTemplate and writerVariables fields to WriterOptions.
4129 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
4130 + Changed --print-default-header to --print-default-template.
4131 + Added --template option.
4132 + Added -V/--variable option to set custom template variables.
4134 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
4136 + Removed need for TH in ODT module. Instead get reference.odt from
4137 data file at run time.
4138 + Removed TH dependency from S5 module. S5 module now exports
4139 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
4141 + Refactored LaTeXMathML not to use TH.
4143 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
4144 Meta [Inline] [String] String. Authors and date in Meta are now lists
4145 of Inline elements rather than raw strings. This means that they can
4146 be formatted and can include footnotes. NOTE: This may be a breaking
4147 change for those using pandoc as a library.
4149 * Added readDataFile to Text.Pandoc.Shared. This retrieves
4150 a data file from the user pandoc data directory (~/.pandoc
4151 on unix), or, if not found there, from the system data
4152 directory ($CABALDIR/shared/pandoc-VERSION/). All data
4153 files, including templates, LaTeXMathML.js, s5 styles,
4154 and reference.odt, can be overridden by the user.
4156 * s5 files moved from data/ui/default to s5/default.
4158 * Use unicode instead of entities in HTML and XML output. Resolves
4161 * Prettier HTML footnote references: put anchor inside sup,
4162 instead of other way. Resolves Issue #191. Thanks to
4165 * Added --xetex option to pandoc and markdown2pdf.
4166 If --xetex is specified, pandoc produces latex suitable for
4167 processing by xelatex, and markdown2pdf uses xelatex to create
4168 the PDF. Resolves Issue #185.
4170 * RTF writer: multiple authors now occupy multiple paragraphs rather
4171 than using a line break.
4173 * Man writer: now the "--after-body" will come after the "AUTHORS"
4174 section, whereas before it would come before it. This is a
4175 slight break from backwards compatibility.
4177 * Added --reference-odt option, so users may customize the styles
4178 used in pandoc-generated ODT files. Users may also place a
4179 default reference.odt in the ~\.pandoc directory.
4182 + Indented and line-broke styles.xml so it can be modified more easily.
4183 + Omitted some unnecessary style declarations.
4184 + Don't wrap text in OpenDocument writer. The tags are too long, making
4185 wrapping ugly and pointless.
4187 * LaTeX reader: use \\ to separate multiple authors.
4189 * Markdown reader: use ; as separator between authors.
4190 This allows you to use ',' within author names: e.g. "John Jones, Jr."
4192 * S5 writer: use linebreak to separate authors in title page.
4194 * RST reader: Allow :: before lhs code block. The RST spec requires the
4195 :: before verbatim blocks. This :: should not be treated as literal
4196 colons. Resolves Issue #189.
4198 * Documented pandoc 1.3's new definition list syntax in README.
4199 (An oversight in the last release.)
4202 + interpret ! in a log as an error line.
4203 + --toc now works properly.
4205 * Changes in RunTests.hs:
4206 + Use the Diff library rather than a local copy of Diff.hs.
4207 (This vastly increases performance.) This change means that 'cabal
4208 test' presupposes that the Diff library is installed.
4209 + Removed tests/Diff.hs from cabal file.
4210 + Changed RunTests to use local environment. We need at least HOME, so
4211 pandoc can find its data directory.
4213 * Updated windows installer to install data files in the app directory.
4215 * Windows installer now installs portable wrappers hsmarkdown and
4222 * Added --id-prefix option (Issue #41). This adds a prefix to all
4223 automatically generated HTML identifiers, which helps prevent
4224 duplicate identifiers when you're generating a fragment (say a blog
4227 * Added --indented-code-classes option. This specifies classes
4228 to use for indented code blocks. (Patch due to buttock; Issue #87.)
4230 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
4233 * Improved syntax for markdown definition lists (Issue #24).
4234 Definition lists are now more compatible with PHP Markdown Extra.
4235 + You can have multiple definitions for a term (but still not
4237 + Multi-block definitions no longer need a column before each block
4238 (indeed, this will now cause multiple definitions).
4239 + The marker no longer needs to be flush with the left margin,
4240 but can be indented at or two spaces. Also, ~ as well as :
4241 can be used as the marker (this suggestion due to David
4243 + There can now be a blank line between the term and the
4246 * Better looking simple tables. Resolves Issue #180.
4247 + Markdown reader: simple tables are now given column widths of 0.
4248 + Column width of 0 is interpreted as meaning: use default column width.
4249 + Writers now include explicit column width information only
4250 for multiline tables. (Exception: RTF writer, which requires
4251 column widths. In this case, columns are given equal widths,
4252 adding up to the text width.)
4253 + Simple tables should now look better in most output formats.
4255 * Allow markdown tables without headers (Issue #50).
4256 The new syntax is described in README. Also allow optional line of
4257 dashes at bottom of simple tables.
4259 * Compensate for width of final table column (Issue #144).
4261 * Treat a backslash followed by a newline as a hard line break
4262 in markdown. Resolves Issue #154. This is a nice alternative
4263 to markdown's "invisible" way of indicating hardline breaks
4264 using lines that end with two spaces.
4266 * Improved performance of markdown reader by ~10% by eliminating the
4267 need for a separate parsing pass for notes. Raw notes are now stored
4268 on the first pass (which parses references), then parsed when the
4269 note is inserted into the AST. The stateNotes field in ParserState
4270 is now a list of [(String, String)] pairs instead of [(String,
4273 * In markdown reader, treat 4 or more * or _ in a row as literal
4274 text. (Trying to parse long strings of * or _ as strong or emph
4275 leads to exponential performance problems.)
4277 * Markdown reader: Use + rather than %20 for spaces in URLs.
4279 * Fixed htmlComment parser, adding a needed 'try'.
4281 * Don't print raw HTML in man output.
4283 * Allow . _ and ~ in header identifiers.
4285 * Specially mark code blocks that were "literate" in the input.
4286 They can then be treated differently in the writers. This allows
4287 authors to distinguish bits of the literate program they are writing
4288 from source code examples, even if the examples are marked as
4289 Haskell for highlighting. (Issue #174.)
4291 * Modified html+lhs output to use "haskell" highlighter instead
4292 of "literateHaskell". The highlighting module now adds bird tracks
4293 after highlighting (for HTML output), if the code block has the
4294 "literate" class. This gives better results, because kate's
4295 haskell highlighter is much better than the literateHaskell
4298 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
4301 * Support for "..code-block" directive in RST reader. Not core
4302 RST, but used in Sphinx for code blocks annotated with syntax
4303 information. Thanks to Luke Plant for the patch.
4305 * Added "head" to list of block-level HTML tags. Resolves
4308 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
4310 * Set utf-8 encoding in texinfo headers.
4312 * Docbook writer: add ids to sections. Use link for internal links.
4315 * Blank lines after lists in MediaWiki writer.
4317 * Properly handle commented-out list items in markdown.
4318 Resolves Issue #142. Example:
4326 * Changed heuristic in compactify. compactify has to decide whether a
4327 Para that ends a list is a Para intentionally, or just because of
4328 the blank lines at the end of every list. In the latter case the
4329 Para is turned to a Plain. The old heuristic was: change final Para
4330 to Plain iff the other items all end in Plain. This produces bad
4331 results when, for example, an item contains just a Plain and an HTML
4332 comment, as it does in the list above. The new heuristic: change
4333 final Para to Plain iff the other items don't contain a Para.
4335 * Added % as an rst underline character. Resolves Issue #173.
4337 * Fix inline math parser so that \$ is allowed in math.
4338 Resolves Issue #169.
4340 * Translate \int (integral) into unicode when using unicode math
4341 method. Resolves Issue #177.
4343 * markdown2pdf.hs improvements:
4344 + Use System.IO.UTF8.
4345 + Print error messages on last attempt.
4346 + Do not create a backup when overwriting a PDF (Issue #166).
4347 + Accept --longopt=val options.
4348 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
4349 it is properly cleaned.
4351 * Added haddock comments warning that readers assume \n line endings.
4353 * Updated COPYRIGHT file.
4355 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
4356 markdown2pdf. Otherwise strip tries to strip shell scripts when you
4357 install using 'make'.
4359 * Changed Makefile so it doesn't build Haskell wrappers.
4361 * Fixed Makefile so it doesn't try to build man pages in build-doc.
4363 * Install pcre3.dll in Windows install script; this allows us to
4364 package a version of pandoc with highlighting support.
4370 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
4371 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
4372 side effect: strings of 0 spaces were interpreted as indentation.
4373 So, with --preserve-tabs, unindented paragraphs were treated as
4374 code. Resolves Issue #138.
4376 * HTML writer: wrap sections in divs. Resolves Issue #70.
4378 + hierarchicalize has been rationalized; it builds a hierarchical
4379 representation of the document from the headers, and simultaneously
4380 gives each section a unique identifier based on the heading title.
4381 + Identifiers are now attached to the divs rather than
4382 to the headers themselves.
4383 + Table of content backlinks go to the beginning of the table, rather
4384 than to the section reference that was clicked.
4385 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
4386 from the HTML writer, since it is now consumed only by
4388 + In --strict mode, pandoc just prints bare headings, as before
4389 (unless --toc has been specified).
4390 + In s5 output, it does not wrap sections in divs, as that seems to
4391 confuse the s5 javascript.
4393 * Man writer: break lines at end of each sentence. groff expects this
4394 and treats '.' and '?' differently when followed by line ending as
4395 opposed to ordinary space. Also, don't escape periods. Instead, use
4396 zero-width character \& to avoid unwanted interpretation of periods
4397 at start of line. Resolves Issue #148.
4399 * Markdown writer: Added '#' and '>' to list of characters to be
4400 escaped in markdown output. Removed '<', as it is not an officially
4401 escapable character. This partially resolves Issue #96.
4403 * Make --smart the default for man output format. Otherwise we have
4404 trouble dividing lists of endlines into sentences.
4406 * DocBook writer: Use language attribute to indicate source language
4411 + Allow # to continue list, even if the list was started with an
4412 explicit marker. For example:
4417 Resolves Issue #140.
4418 + Allow continuation lines in line blocks. Also added test cases for
4419 line blocks for RST reader. Resolves Issue #149.
4420 + Allow explicit links with spaces in URL: `link <to this>`_
4422 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
4423 (which is not in LaTeX) and recognize all the amsmath environments
4424 that are alternatives to eqnarray, namely equation, equation*,
4425 gather, gather*, gathered, multline, multline*, align, align*,
4426 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
4427 Thanks to shreevatsa.public for the patch.
4431 + Allow -, _, :, . in markdown attribute names. These are legal in
4432 XML attribute names.
4433 + Use non-breaking spaces in abbreviations.
4434 + Markdown reader: improved efficiency of abbreviation parsing.
4435 Instead of a separate abbrev parser, we just check for
4436 abbreviations each time we parse a string. This gives a huge
4437 performance boost with -S. Resolves Issue #141.
4439 * Improved efficiency of shared parsers: hexNum, htmlComment,
4440 whitespace, indentSpaces.
4442 * Export HTMLMathMethod in Text.Pandoc.
4444 * Export languagesByExtension in Text.Pandoc.Highlighting.
4446 * Added new Haskell version of markdown2pdf, due to
4447 Paulo Tanimoto. This should be more portable than the old
4450 * Made 'pandoc -v' more explicit about compiler options.
4451 Resolves Issue #139.
4453 * pandoc.hs: Made --strict compatible with --standalone, --toc.
4455 * Use Paths_pandoc to get version number, instead of hard-coding it
4456 into Text/Pandoc.hs.
4462 * Added support for literate Haskell. lhs support is triggered by
4463 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
4464 Haskell LaTeX. '.lhs' files are treated by default as literate
4467 + Added stateLiterateHaskell to parser state.
4468 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
4469 + Added parser for |inline lhs| to LaTeX reader.
4470 + Added writerLiterateHaskell to WriterOptions.
4471 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
4472 + Added definition of code environment to LaTeX header.
4473 + Added tests (run only if highlighting support compiled in).
4474 + Documented lhs features in man page and README.
4476 * In Text.Pandoc.Definition, added processWith, processWithM,
4477 and queryWith, and deprecated processPandoc and queryPandoc
4478 for these more general functions.
4480 * Fixed bug in mediawiki writer: improper closing tags in tables.
4481 Thanks to Benct Philip Jonsson for reporting the bug.
4483 * Added --email-obfuscation option.
4485 + Added writer option for email obfuscation.
4486 + Implemented email obfuscation options in HTML writer.
4487 + Added option to option parser.
4488 + Documented in README and pandoc man page.
4489 + Resolves Issue #97.
4491 * LaTeX writer: fixed bug with empty table cells.
4492 Resolves Issue #107. Thanks to rodja.trappe for the patch.
4494 * Fixed bug with header spacing in Markdown and RST writers.
4495 A null header (Meta [] [] []) should not cause a blank line
4496 at the beginning of output. But a blank line is needed between
4497 a non-null header and the main text.
4499 * Markdown reader: Relax spacing rules for $$ in display math. Now
4500 space and newlines are allowed after the opening $$ and before the
4501 closing $$. However, the display math cannot contain an entirely
4502 blank line. Resolves Issue #105.
4504 * Markdown reader: Gobble space after Plain blocks containing only
4505 raw html inline. Otherwise following header blocks are not parsed
4506 correctly, since the parser sees blank space before them. Resolves
4509 * Markdown reader: Allow " as well as '' to end a latex double-quote.
4511 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
4512 Resolves Issue #109.
4514 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
4516 + Added hang' function to Text.Pandoc.Shared; this will be used instead
4517 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
4518 is upgraded, we can go back to hang.
4519 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
4520 + Use hang' (and some different techniques) in RST and markdown writers.
4521 Some output is now a bit different.
4523 * Brought citeproc support up to date for citeproc-hs-0.2.
4524 (Patch by Andrea Rossato.)
4526 * Moved all haskell source to src subdirectory. Renamed Main.hs to
4529 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
4530 For now, keeping the old shell script too.
4532 * Added TemplateHaskell to Extensions for executable, removed
4533 -threaded for library. Thanks to duncan.coutts for the bug report.
4534 Resolves Issue #121.
4536 * Moved some Extra-Source-Files to Data-Files.
4538 * Moved tabFilter to Shared.
4540 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
4543 * Minor code cleanup based on hlint suggestions.
4551 + Changed date on copyright message in Main.hs.
4552 + Have the '-v' option print syntax highlighting languages
4553 separated by commas, and wrapped in lines, instead of in five
4556 * Added --jsmath option. Resolves Issue #68.
4558 + Added --jsmath option to Main.hs
4559 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
4560 + Handle math appropriately in HTML writer when JsMath selected.
4561 + Documented the option in README and man page.
4563 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
4564 for tight and loose lists. Final Para is changed to Plain if all
4565 other list items *end* with a Plain block. Addresses Issue #99.
4569 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
4570 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
4571 Added rawVerbatimBlock parser. Resolves Issue #94.
4575 + Allow URLs with spaces in them in links and references, but escape
4577 + Allow blank space at the end of horizontal rules.
4579 * RST reader: Modified 'unknownDirective' parser to handle comment
4580 blocks correctly, and added tests for comment blocks. Resolves Issue
4581 #86. Closes Debian Bug #500662.
4585 + Include classes on tr elements in HTML output:
4586 "header", "odd", "even". This allows tables to be styled with
4587 lines in alternating colors. Resolves Issue #91.
4588 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
4589 This prevents parts of the document that are not math from being
4590 interpreted as math by LaTeXMathML.js.
4592 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
4593 which were formerly ignored. Resolves Issue #95.
4595 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
4596 between a footnote and immediately following nonspace characters in
4597 LaTeX and ConTeXt output. (This gets interpreted as a space, which
4598 is not desired in cases like "text^[note]---".) Resolves Issue #93.
4600 * Windows installer: Don't require admin privileges to run
4601 installer. Modified pandoc-setup.iss, and changed modpath.iss to
4602 modify HKCU path if user lacks admin privileges. Also fixed case
4603 where oldpath is empty (previously this led to the new path
4604 beginning with a semicolon).
4606 * Updated INSTALL instructions for Arch packages and OS X install using
4609 * Removed the (now unneeded) debian directory.
4610 Removed empty Codec and System directories.
4612 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
4614 * Modified Setup.hs so that the "test" target returns an error status
4615 when tests fail, and "build" returns a success status if
4616 the build succeeds. Resolves Issue #100.
4618 * Added BUGS to files in tarball.
4625 * Removed spurious reference to pdf output format from pandoc(1) man page.
4631 * Added new OpenDocument writer.
4633 * Added support for SmallCaps inline element.
4635 * Added support for integrating pandoc with citeproc-hs.
4637 + Added Cite element to definition and writers.
4638 + Added Text.Pandoc.Biblio module
4639 + Note: This support is included only if the 'citeproc'
4640 Cabal configuration flag is set.
4642 * Made Pandoc data structure an instance of Typeable.
4643 Added new processPandoc and queryPandoc functions, to query
4644 or transform matching elements in a Pandoc structure.
4648 * Added new Texinfo writer.
4652 * Changes to Texinfo writer:
4654 + No space between paragraph and following @verbatim (provides more
4655 pleasing appearance in text formats)
4656 + Blank line consistently after list environments.
4658 + Use @code instead of @verb for inline code (this solves the character
4659 escaping problem for texi2dvi and texi2pdf).
4660 + Added news of Texinfo writer to README.
4661 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
4662 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
4663 default output extension.
4664 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
4666 * Added tests for OpenDocument writer.
4668 * Added ODT writer (using zip-archive library to package output of
4669 OpenDocument writer). Added odt-styles directory with default ODT styles.
4671 * Added new mediawiki writer and tests.
4673 * Markdown reader: Added support for delimited code blocks, with optional
4674 syntax highlighting using highlighting-kate (if the 'highlighting'
4675 configuration option is selected).
4677 + Currently highlighting is supported only in the HTML writer.
4678 + Delimited code blocks can have attributes; using the language name as
4679 class triggers highlighting.
4680 + New Attributes parameter in CodeBlock structure.
4681 + --version now indicates whether syntax highlighting support is compiled
4682 in, and prints a list of supported languages
4684 * Removed debian directory. Pandoc is no longer a native debian package.
4686 * Changes to build process: pandoc can now be built from the repository
4687 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
4690 + Include shell scripts themselves in repo, rather than generating from wrappers.
4691 Removed wrappers directory and wrappers Makefile target.
4692 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
4693 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
4694 from templates in the templates/ directory. Instead, they use template
4695 haskell to read data at compile time from the relevant files in data/.
4696 Template haskell functions go in a new module, Text.Pandoc.TH.
4697 + man pages are now generated in Setup.hs hook, not by Makefile
4698 + Makefile 'tarball' target now calls Cabal's 'sdist'
4699 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
4700 + Added "Build-Type" field to pandoc.cabal to avoid warning.
4701 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
4702 so 'sdist' and 'clean' will work properly.
4703 + Setup.hs now generates man pages in a postbuild hook.
4704 + Added dependency-checking to Setup.hs, so it only rebuilds things
4705 that need rebuilding.
4706 + Added 'library' and 'executable' configuration flags.
4707 Cabal can now be told to build just the library or just the executable.
4708 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
4709 For example: CABALOPTS=-fhighlighting make
4711 * Rewrote test suite so it doesn't depend on perl or unix tools.
4713 + Replaced old runtests.pl with a Haskell script RunTests.hs.
4714 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
4715 + Added test hook to Setup.hs, so tests may be run from cabal.
4716 + Changed Makefile's 'test' target to run tests via cabal.
4717 + Removed old generate.sh.
4718 + Since we no longer have 'sed' to filter out raw HTML sections
4719 from the docbook writer test, or raw LaTeX sections from the
4720 context writer test, we now just include these sections.
4721 They can be taken out if it is necessary to process the files.
4722 + Updated latex and context writer tests to remove extra spaces
4724 + Added a markdown table reader test.
4725 + Added markdown-reader-more.txt to test suite, for additional test cases
4726 for raw ConTeXt environments and more.
4728 * Compatibility fixes for CPP, Cabal, and haddock:
4730 + Use CPP in "Extensions" field in pandoc.cabal.
4731 + Removed use of backslash string continuations in source files.
4733 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
4736 * Require parsec < 3.
4737 The compatibility module in parsec 3.0.0 gives far worse performance than
4738 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
4739 version of parsec, and then we'll go to parsec 3.0.0.
4741 * Removed Text.Regex dependencies by rewriting using plain Haskell
4742 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
4744 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
4748 + Added 'configure' as dependency of 'uninstall-all'.
4749 (It uses the Cabal build program.)
4750 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
4751 Note that Cabal will automatically choose the ghc-pkg appropriate
4752 for the compiler selected, so normally specifying GHC by itself
4755 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
4756 its IO and conversion functions.
4758 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
4759 everything is -Wall clean.
4761 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
4762 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
4763 (These are caused by the Lift instance for ByteString.)
4765 * Changed the comment used to replace unsafe HTML if sanitize-html option
4768 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
4770 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
4772 * Escape '\160' as " ", not " " in XML.
4773 "nbsp" isn't a predefined XML entity.
4775 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
4776 Added some try's in ordered list parsers.
4778 * Man writer: don't escape " as \".
4780 * Allow newline before URL in markdown link references. Resolves Issue #81.
4781 Added tests for this issue in new "markdown-reader-more" tests.
4782 Changed RunTests.hs to run these tests.
4784 * Support for display math. Resolves Issue #47.
4786 + Added a DisplayMath/InlineMath selector to Math inlines.
4787 + Markdown parser yields DisplayMath for $$...$$.
4788 + LaTeX parser yields DisplayMath when appropriate. Removed
4789 mathBlock parsers, since the same effect is achieved by the math
4790 inline parsers, now that they handle display math.
4791 + Writers handle DisplayMath as appropriate for the format.
4792 + Modified tests accordingly; added new tests for display math.
4794 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
4795 to LaTeX in its display of math, and supports many non-math LaTeX environments.
4797 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
4798 + Modified HTML writer to print raw TeX when LaTeXMathML is
4799 being used instead of suppressing it.
4800 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
4801 + Replaced ASCIIMathML with LaTeXMathML in source files.
4802 + Modified README and pandoc man page source.
4803 + Added --latexmathml option (kept --asciimathml as a synonym
4804 for backwards compatibility)
4806 * Markdown reader: Parse setext headers before atx headers.
4810 parsed by Markdown.pl as an H1 header with contents "# hi".
4812 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
4813 The marker on the first list item determines the type of the whole
4814 list. Thus, a list like
4818 gets parsed as a single ordered list. (Previous versions of pandoc
4819 treated this as an ordered list with an unordered sublist.)
4821 * Markdown smart typography:
4823 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
4824 + Use nonbreaking spaces after known abbreviations in markdown parser.
4825 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
4826 not produce a sentence-separating space. Resolves Issue #75.
4828 * Markdown writer: Print unicode \160 literally, rather than as .
4830 * Treat '\ ' in (extended) markdown as nonbreaking space.
4831 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
4833 * The '--sanitize-html' option now examines URIs in markdown links
4834 and images, and in HTML href and src attributes. If the URI scheme
4835 is not on a whitelist of safe schemes, it is rejected. The main point
4836 is to prevent cross-site scripting attacks using 'javascript:' URIs.
4837 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
4838 and http://ha.ckers.org/xss.html. Resolves Issue #62.
4842 + Override Text.XHtml's stringToHtml function,
4843 so that characters below 0xff are not converted to numerical entity
4844 references. Also convert '\160' to " ". This should aid readability
4845 and editability of the HTML source. It does presuppose that the HTML
4846 will be served as UTF-8.
4847 + In code blocks, change leading newlines to <br /> tags.
4848 (Some browsers ignore them.) Resolves Issue #71.
4849 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
4850 + Use style attributes rather than css classes for strikethrough
4851 and ordered list styles. This works better when fragments, rather than
4852 standalone documents, are generated.
4854 * HTML reader: Count anything that isn't a known block (HTML) tag as an
4855 inline tag (rather than the other way around). Added "html", "head", and
4856 "body" to list of block tags. Resolves Issue #66, allowing
4857 <lj> to count as an inline tag.
4859 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
4860 boldface, and other inline elements. Resolves Issue #64.
4862 * LaTeX reader: improvements in raw LaTeX parsing.
4864 + "loose punctuation" (like {}) parsed as Space
4865 + Para elements must contain more than Str "" and Space elements
4866 + Added parser for "\ignore" command used in literate haskell.
4867 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
4868 mode, these parsers simply strip off the command part and allow
4869 the arguments to be parsed normally. So, for example,
4870 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
4872 + Parse lhs "code" environments as verbatim.
4873 Refactored parsers for verbatim environments.
4874 + Removed specialEnvironment parser.
4875 + parse '{}', if present, after \textless, \textgreater,
4876 \textbar, \textbackslash, \ldots.
4877 + Parse unescaped special characters verbatim rather than
4878 changing them to spaces. This way arguments of unknown
4879 commands will appear in braces.
4881 * Parse raw ConTeXt environments as TeX in markdown reader.
4884 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
4886 * Made some structural changes to parsing of raw LaTeX environments.
4887 Previously there was a special block parser for LaTeX environments.
4888 It returned a Para element containing the raw TeX inline. This has
4889 been removed, and the raw LaTeX environment parser is now used in the
4890 rawLaTeXInline parser. The effect is exactly the same, except that we
4891 can now handle consecutive LaTeX and ConTeXt environments not separated
4892 by spaces. This new flexibility is required by the example in
4895 \placeformula \startformula
4899 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
4900 returns a string) rather than rawLaTeXEnvironment (which returns a block
4901 element). This is more likely to be useful in other applications.
4903 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
4904 \textsubscript conflicts with a definition in the memoir class.
4907 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
4909 * Added amsmath package to default LaTeX header. Resolves Issue #48.
4911 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
4912 list introduction lines.
4914 * Changed Float to Double in definition of Table element.
4915 (Double is more efficient in GHC.)
4917 * Fixed bug in Markdown parser: regular $s triggering math mode.
4918 For example: "shoes ($20) and socks ($5)."
4919 The fix consists in two new restrictions:
4921 + the $ that ends a math span may not be directly followed by a digit.
4922 + no blank lines may be included within a math span.
4924 Thanks to Joseph Reagle for noticing the bug.
4926 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
4927 Removed 'joinWithSep' from Text.Pandoc.Shared.
4929 * Updated README and man pages. Acknowledge contributors in README.
4930 Added paragraph to README about producing S5 with separate CSS/javascript.
4932 * Updated INSTALL to reflect new build system (including configuration
4933 options) and document new dependencies. Added note to INSTALL that
4934 Cabal >= 1.2 is required for build. Resolves Issue #74.
4936 * Fixed some haddock documentation errors.
4938 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
4940pandoc (0.46) unstable; urgency=low
4944 * Made -H, -A, and -B options cumulative: if they are specified
4945 multiple times, multiple files will be included.
4947 * Added optional HTML sanitization using a whitelist.
4948 When this option is specified (--sanitize-html on the command line),
4949 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
4950 attributes will be removed. This option should be especially useful
4951 for those who want to use pandoc libraries in web applications, where
4952 users will provide the input.
4954 + Main.hs: Added --sanitize-html option.
4956 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
4958 + Text.Pandoc.Readers.HTML:
4959 - Added whitelists of sanitaryTags and sanitaryAttributes.
4960 - Added parsers to check these lists (and state) to see if a given
4961 tag or attribute should be counted unsafe.
4962 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
4964 - Modified htmlAttribute to remove unsafe attributes.
4965 - Modified htmlScript and htmlStyle to remove these elements if
4968 + Modified README and man pages to document new option.
4970 * Improved handling of email addresses in markdown and reStructuredText.
4971 Consolidated uri and email address parsers. (Resolves Issue #37.)
4973 + New emailAddress and uri parsers in Text.Pandoc.Shared.
4974 - uri parser uses parseURI from Network.URI.
4975 - emailAddress parser properly handles email addresses with periods
4978 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
4979 and Text.Pandoc.Readers.Markdown.
4983 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
4984 nested in an Emph. (A '*' is only recognized as the end of the
4985 emphasis if it's not the beginning of a strong emphasis.)
4987 + Moved blockQuote parser before list parsers for performance.
4989 + Modified 'source' parser to allow backslash-escapes in URLs.
4990 So, for example, [my](/url\(1\)) yields a link to /url(1).
4993 + Disallowed links within links. (Resolves Issue #35.)
4994 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
4995 instead of hard-coding the inline parser takes an inline parser
4997 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
4998 - Removed unneeded inlineString function.
4999 - Added inlineNonLink parser, which is now used in the definition of
5001 - Added inlineParsers list and redefined inline and inlineNonLink parsers
5003 - Added failIfLink parser.
5005 + Better handling of parentheses in URLs and quotation marks in titles.
5006 - 'source' parser first tries to parse URL with balanced parentheses;
5007 if that doesn't work, it tries to parse everything beginning with
5008 '(' and ending with ')'.
5009 - source parser now uses an auxiliary function source'.
5010 - linkTitle parser simplified and improved, under assumption that it
5011 will be called in context of source'.
5013 + Make 'block' conditional on strictness state, instead of using
5014 failIfStrict in block parsers. Use a different ordering of parsers
5015 in strict mode (raw HTML block before paragraph) for performance.
5016 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
5017 Simplified htmlBlock, since we know it's only called in strict
5020 + Improved handling of raw HTML. (Resolves Issue #36.)
5021 - Tags that can be either block or inline (e.g. <ins>) should
5022 be treated as block when appropriate and as inline when
5023 appropriate. Thus, for example,
5025 should be treated as a paragraph with inline <ins> tags, while
5029 should be treated as a paragraph within <ins> tags.
5030 - Moved htmlBlock after para in list of block parsers. This ensures
5031 that tags that can be either block or inline get parsed as inline
5033 - Modified rawHtmlInline' so that block elements aren't treated as
5035 - Modified para parser so that paragraphs containing only HTML tags and
5036 blank space are not allowed. Treat these as raw HTML blocks instead.
5038 + Fixed bug wherein HTML preceding a code block could cause it to
5039 be parsed as a paragraph. The problem is that the HTML parser
5040 used to eat all blank space after an HTML block, including the
5041 indentation of the code block. (Resolves Issue #39.)
5042 - In Text.Pandoc.Readers.HTML, removed parsing of following space
5044 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
5045 indentation is eaten *only* on the first line after the HTML
5046 block. This means that in
5050 the foo won't be treated as a code block, but in
5056 it will. This seems the right approach for least surprise.
5060 + Fixed bug in parsing explicit links (resolves Issue #44).
5061 The problem was that we were looking for inlines until a '<' character
5062 signaled the start of the URL; so, if you hit a reference-style link,
5063 it would keep looking til the end of the document. Fix: change
5064 inline => (notFollowedBy (char '`') >> inline). Note that this won't
5065 allow code inlines in links, but these aren't allowed in resT anyway.
5067 + Cleaned up parsing of reference names in key blocks and links.
5068 Allow nonquoted reference links to contain isolated '.', '-', '_', so
5069 so that strings like 'a_b_' count as links.
5071 + Removed unnecessary check for following link in str.
5072 This is unnecessary now that link is above str in the definition of
5077 + Modified rawHtmlBlock so it parses </html> and </body> tags.
5078 This allows these tags to be handled correctly in Markdown.
5079 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
5080 since these are handled in parseHtml. (Resolves Issue #38.)
5082 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
5084 + Don't interpret contents of style tags as markdown.
5085 (Resolves Issue #40.)
5086 - Added htmlStyle, analagous to htmlScript.
5087 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
5088 - Moved "script" from the list of tags that can be either block or
5089 inline to the list of block tags.
5091 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
5092 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
5093 inline tags would be included in raw HTML blocks.
5095 + Modified anyHtmlBlockTag to test for (not inline) rather than
5096 directly for block. This allows us to handle e.g. docbook in
5097 the markdown reader.
5099 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
5100 Updated LaTeX reader test to use --parse-raw.
5104 + Modified rules for automatic HTML header identifiers to
5105 ensure that identifiers begin with an alphabetic character.
5106 The new rules are described in README. (Resolves Issue #33.)
5108 + Changed handling of titles in HTML writer so you don't get
5109 "titleprefix - " followed by nothing.
5111 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
5112 spacing. Each block element is wrapped with either Pad or Reg.
5113 Pad'ed elements are guaranteed to have a blank line in between.
5117 + Refactored RST writer to use a record instead of a tuple for state,
5118 and to include options in state so it doesn't need to be passed as
5121 + Use an interpreted text role to render math in restructuredText.
5122 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
5127 * Debian packaging changes:
5129 + Remove the empty 'include' directory in -dev package, which lintian
5131 + Bump Standarts-Version to 3.7.3.
5132 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
5135 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
5137pandoc (0.45) unstable; urgency=low
5141 * Simplified parsing of reference keys and notes in markdown and RST
5142 readers: The Reference data structure from Text.Pandoc.Shared is no
5143 longer needed, since referenceKey and noteBlock parses return strings
5144 (as many blank lines as were occupied by the key or note) and update
5145 state themselves. getPosition and setPosition are now used to ensure
5146 that error messages will give the correct line number. This yields
5147 cleaner (and slightly faster) code, with more accurate parsing error
5150 * Added new Math inline element:
5152 + Markdown and LaTeX readers now convert TeX math into Math elements,
5154 + This allows math to be treated differently from raw TeX in output.
5155 TeX elements are no longer printed in output formats other than
5156 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
5158 * New default handling of math in writers:
5160 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
5161 parses raw TeX math and outputs a string of Pandoc inlines that
5162 tries to render it as far as possible using unicode characters,
5163 lapsing into literal TeX when needed.
5164 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
5165 and Docbook, if no other method for displaying math in HTML is
5166 specified. Enclosing $'s are no longer printed by default.
5167 + By default, math is put inside `<span class="math">`. This way it can be
5168 distinguished from the surrounding text, e.g. put in a different
5171 * New --gladtex and --mimetex options for display of math in HTML:
5173 + If --gladtex is specified, math is output between `<eq>` tags, so
5174 it can be processed by gladTeX.
5175 + If --mimetex is specified, math is put in `<img>` tags with a link
5176 to the mimetex CGI script (or any other script that takes TeX math
5177 as input and outputs an image). The URL of the script may be
5178 specified, but defaults to /cgi-bin/mimetex.cgi.
5179 + HTMLMathMethod structure in WriterOptions keeps track of how to
5180 display math in HTML output.
5181 + Updated README with a description of the four options for displaying
5186 + Fixed bug: parser for minimized attributes should not swallow
5188 + Simplified HTML attribute parsing.
5189 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
5190 longer needed. `<pre>` suffices. All HTML tags in the code block
5191 (e.g. for syntax highlighting) are skipped, because they are not
5192 portable to other output formats. A `<code>...</code>` block not
5193 surrounded by `<pre>` now counts as inline HTML, not a code block.
5194 + Remove just one leading and one trailing newline from contents of
5195 `<pre>...</pre>` in codeBlock parser.
5199 + Removed support for box-style block quotes.
5200 + Require space before title in links and references.
5201 This fixes a bug in parsing URLs like http://silly/url(withparen).
5202 + Improved and simplified setextHeader parser.
5203 + Fixed logic in smart quote parsing, adding some needed 'try'
5205 + Fixed smart quote parsing so that unicode characters 8216 and 8217
5206 are recognized as single quotes, and 8220 and 8221 as double quotes.
5210 + Fixed bug in parsing of code blocks. Previously a full tab indent
5211 was required, but RST allows code to be indented any amount.
5213 + Allow field lists to be indented.
5214 + Parse the contents of field lists instead of treating as a raw string.
5215 + Represent field lists as definition lists instead of blockquotes.
5216 + Fixed bug in which metadata would be overridden if the document
5217 contained multiple field lists.
5218 + Parse fields associated with '.. image::' blocks, and use 'alt'
5219 field, if given, for image alt and title attributes.
5223 + Modified specialChar so that '"' characters are parsed.
5224 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
5228 + Changes in handling of math (see above).
5229 + Don't produce HTML for table of contents if there are
5230 no headers. (This would be an empty list, which is invalid XHTML.)
5234 + Don't print title attribute if title is empty. (This differs from
5235 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
5236 Gruber has indicated that he prefers this behavior.) Adjusted test
5238 + Fixed incorrect line wrapping in paragraphs including hard line
5239 breaks. Resolves Issue #25.
5240 + Fixed bug in markdown writer: If an ordered list item began with
5241 a marker greater than 3 characters in width, and the item took more
5242 than one line, it would appear on the line after the list marker,
5249 Now it works as follows:
5256 + Fixed bug in RST writer's handling of ordered lists. Previously,
5257 list items with multiple lines would not always line up with
5258 single-line list items. Now, list items are nested the length of
5259 the list marker + 1. This looks better and ensures that list items
5260 all line up. (Note that list markers are padded to the length of
5261 the longest list marker in the series.)
5262 + Use 3-space indent for unordered lists.
5263 + If label for a link reference contains a colon, surround it by `
5264 signs so it won't be interpreted as the end of the link label.
5268 + Cleaner output for footnotes. Footnotes now always begin on a new
5269 line, and the final } is on a line by itself only when it needs to
5270 be (i.e. only when the note ends with a Verbatim environment).
5271 + Added writer options to state, so state doesn't need to be passed as
5273 + Text wrapping now provided, using wrapTeXIfNeeded.
5275 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
5276 (thanks to Idris Samawi Hamid for suggestions).
5278 + PrettyPrint module now used for output.
5279 + Writer options are now in state, so they don't have to be passed as
5281 + Text wrapping now provided, using wrapTeXIfNeeded.
5282 + Better treatment of footnotes: footnotes are always on lines by
5283 themselves, and the final } is on a line by itself only when
5284 it needs to be (after \stoptyping).
5285 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
5286 depending on whether --number-sections option is selected.
5287 + Extra blank line inserted after \stopitemize
5288 + Use new, "official" definition of blockquote environment. Also, use
5289 blank line after \startblockquote to balance blank line at the end.
5290 + Both itemized and enumerated lists are now generated using
5291 \start-stopitemize, with appropriate options. Removed definitions
5292 of ltxenum and ltxitem, which are no longer needed. Provided
5293 defaults for itemized lists in the preamble. State keeps track of
5294 ordered list level, so that when default numbering is specified,
5295 the appropriate scheme can be used.
5296 + Changed \useurl to \useURL.
5297 + Changed link color from red to blue.
5298 + Use \subsubsubsubsection etc., since these are supported
5299 (up to at least sub x 5).
5301 * Text.Pandoc.Shared:
5303 + Save and restore position in parseFromString, so that accurate
5304 error messages can be given.
5305 + Improved efficiency of romanNumeral parser.
5306 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
5307 that footnotes occur on lines by themselves (to make them
5308 easier to see and move) and do not screw up line wrapping.
5310 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
5311 if present. Windows Notepad and other applications insert a
5312 BOM at the beginning of a UTF8 file.
5314 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
5315 addition to "\r\n" and '\n').
5317 * Added a writer option for wrapped text and a command-line option
5318 '--no-wrap', which disables text wrapping and minimizes whitespace
5319 in HTML. (Resolves Issue #26.)
5321 + Added support for '--no-wrap' to Main.hs.
5322 + Added wrapIfNeeded function to Text.Pandoc.Shared.
5323 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
5325 + Added render and renderFragment helpers to HTML writer.
5327 * Modified html2markdown to run tidy only if the HTML cannot be
5328 parsed. Previously html2markdown piped all input through tidy
5329 before passing it to pandoc. This caused problems on certain pages
5330 (e.g. http://daringfireball.com/markdown) which have well-formed
5331 XHTML that causes tidy to choke. The solution is to pipe through
5332 tidy only if pandoc cannot parse the input by itself. This means
5333 that a temp file is now always used, even when input comes from a
5334 local file or standard input.
5336 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
5337 Text.Pandoc library.
5341 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
5342 6.8, pretty and containers must be added to Build-Depends, and it
5343 is desirable to use the -O2 compiler option.) Cabal configurations
5344 allows one to select options depending on the compiler version.
5345 For GHC 6.6, the splitBase option can be disabled.
5346 + pandoc.cabal.ghc66 is provided for users with older versions of
5347 Cabal, which do not support configurations.
5348 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
5349 '--enable-(executable|library)-profiling' is specified. Updated
5350 PROFILING instructions accordingly.
5354 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
5355 is copied to pandoc.cabal, and the old pandoc.cabal is copied
5356 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
5357 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
5358 will work properly with either GHC 6.6 or 6.8.
5359 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
5360 This is where current versions of Cabal put it.
5361 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
5362 + Removed dependency of templates on ./templates, which is circular
5363 now that templates is a subdirectory of the top-level.
5365 * MacPorts Portfile:
5367 + Modified to install the pandoc library in addition to programs.
5368 + Installation must be done manually rather than using Makefile's
5370 + Note that the library must be registered in the activate phase,
5371 after the library files have been copied out of the destroot.
5372 Cabal generates a 'register.sh' script that will do this.
5374 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
5375 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
5378 * debian/rules: Converted to UTF-8.
5380 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
5382 * Updated ASCIIMathML.js to latest version.
5384 * Directory structure:
5386 + Moved everything from src into the top-level directory.
5387 + Changed references to source directory in Makefile and
5389 + Moved ASCIIMathML.js, headers, and ui into templates directory.
5390 + Modified fillTemplates.pl to reflect new paths.
5394 * Makefile: Fixed the issue of having two copies of the library
5395 documentation under some usage scenarios.
5397 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
5398 and GHC_PKG configurable through the environment, to support
5399 unusual ghc installations. For example:
5400 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
5402 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
5404pandoc (0.44) unstable; urgency=low
5408 * Fixed bug in HTML writer: when --toc was used, anchors were put around
5409 headers, which is invalid XHTML (block content within inline element).
5410 Now the anchors are put inside the header tags. Resolves Issue #23.
5412 * Added xmlns attribute to html element in html writer tests.
5413 This attribute is added by more recent versions of the
5414 xhtml library (>= 3000), and is required for valid XHTML.
5418 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
5419 command instead of 'runhaskell', which, on some platforms (such as s390,
5420 alpha, m68k), throws the following error:
5422 runhaskell Setup.hs configure --prefix=/usr
5423 ghc-6.6.1: not built for interactive use
5425 This causes a serious FTBFS bug. Closes: #440668.
5427 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
5429pandoc (0.43) unstable; urgency=low
5433 * The focus of this release is performance. The markdown parser
5434 is about five times faster than in 0.42, based on benchmarks
5435 with the TextMate manual.
5437 * Main.hs: Replaced CRFilter and tabFilter with single function
5438 tabFilter, which operates on the whole string rather than breaking
5439 it into lines, and handles dos-style line-endings as well as tabs.
5441 * Added separate LaTeX reader and native reader tests; removed
5444 * Text.Pandoc.Shared:
5446 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
5447 + General code cleanup (to elimante warnings when compiling with -Wall.)
5448 + Added 'wrapped' function, which helps wrap text into paragraphs,
5449 using the prettyprinting library.
5450 + Rewrote charsInBalanced and charsInBalanced'.
5451 - Documented restriction: open and close must be distinct characters.
5452 - Rearranged options for greater efficiency.
5453 - Bug fix: Changed inner call to charsInBalanced inside
5454 charsInBalanced' to charsInBalanced'.
5455 + anyLine now requires that the line end with a newline (not eof).
5456 This is a harmless assumption, since we always add newlines to the
5457 end of a block before parsing with anyLine, and it yields a 10% speed
5459 + Removed unnecessary 'try' in anyLine.
5460 + Removed unneeded 'try' from romanNumeral parser.
5461 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
5462 + Removed unneeded 'try' in parseFromString.
5463 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
5465 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
5466 'try' is not automatically applied to the 'end' parser. Added
5467 'try' in calls to 'enclosed' where needed. Slight speed increase.
5471 + Replaced individual wrapping routines in RST, Man, and Markdown
5472 writers with 'wrapped' from Text.Pandoc.Shared.
5473 + Rewrote LaTeX writer to use the prettyprinting library,
5474 so we get word wrapping, etc.
5475 + Modified latex writer tests for new latex writer using prettyprinter.
5476 + Fixed bug in LaTeX writer: autolinks would not cause
5477 '\usepackage{url}' to be put in the document header. Also, changes
5478 to state in enumerated list items would be overwritten.
5479 + In Markdown writer, escape paragraphs that begin with ordered list
5480 markers, so they don't get interpreted as ordered lists.
5482 * Text.Pandoc.Reades.LaTeX:
5484 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
5485 numeral after "enum" in "setcounter" would consist entirely of
5486 "i"s. 'enumiv' is legitimate.
5487 + LaTeX command and environment names can't contain numbers.
5488 + Rearranged order of parsers in inline for slight speed improvement.
5489 + Added '`' to special characters and 'unescapedChar'.
5491 * Text.Pandoc.Readers.RST:
5493 + Removed unneeded try's in RST reader; also minor code cleanup.
5495 + Rearranged parsers in inline (doubled speed).
5497 * Text.Pandoc.Readers.Markdown:
5499 + Skip notes parsing if running in strict mode. (This yields a nice
5500 speed improvement in strict mode.)
5501 + Simplify autolink parsing code, using Network.URI to test for
5502 URIs. Added dependency on network library to debian/control and
5504 + More perspicuous definition of nonindentSpaces.
5505 + Removed unneeded 'try' in 'rawLine'.
5506 + Combined linebreak and whitespace into a new whitespace parser, to
5507 avoid unnecessary reparsing of space characters.
5508 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
5509 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
5510 + Use lookAhead in parsers for setext headers and definition lists
5511 to see if the next line begins appropriately; if not, don't waste
5512 any more time parsing.
5513 + Don't require blank lines after code block. (It's sufficient to
5514 end code block with a nonindented line.)
5515 + Changed definition of 'emph': italics with '_' must not
5516 be followed by an alphanumeric character. This is to help
5517 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
5518 `[LC<em>TYPE]:my</em>type`.
5519 + Improved Markdown.pl-compatibility in referenceLink: the two parts
5520 of a reference-style link may be separated by one space, but not
5521 more... [a] [link], [not] [a link].
5522 + Fixed markdown inline code parsing so it better accords with
5523 Markdown.pl: the marker for the end of the code section is a clump
5524 of the same number of `'s with which the section began, followed
5525 by a non-` character. So, for example,
5526 ` h ``` i ` -> `<code>h ``` i</code>`.
5527 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
5528 rules are slightly different.
5529 + Rewrote 'para' for greater efficiency.
5530 + Rewrote link parsers for greater efficiency.
5531 + Removed redundant 'referenceLink' in definition of inline (it's
5533 + Refactored escapeChar so it doesn't need 'try'.
5534 + Refactored hrule for performance in Markdown reader.
5535 + More intelligent rearranging of 'inline' so that most frequently
5536 used parsers are tried first.
5537 + Removed tabchar parser, as whitespace handles tabs anyway.
5539 * Text.Pandoc.CharacterReferences:
5542 + Removed unnecessary 'try's for a speed improvement.
5543 + Removed unnecessary '&' and ';' from the entity table.
5547 + Makefile: Get VERSION from cabal file, not Main.hs.
5548 + Modified MacPorts Portfile:
5550 - Build and install libraries and library documentation in
5551 addition to pandoc executable
5552 - Added template item for md5 sum in Portfile.in.
5553 - Incorporated changes from MacPorts repository (r28278).
5554 + FreeBSD port: Don't try to generate distinfo in Makefile.
5555 It can be made using 'make makesum' in FreeBSD.
5556 + Make both freebsd and macports targets depend on tarball.
5558 * Website and documentation:
5560 + Updated INSTALL instructions.
5561 + Added pandocwiki demo to website.
5562 + Removed local references to Portfile, since pandoc is now in the
5563 MacPorts repository.
5565 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
5567pandoc (0.42) unstable; urgency=low
5571 * Main.hs: Use utf8 conversion on the extra files loaded with
5572 the -H, -C, -B, and -A options. This fixes problems with unicode
5573 characters in these files.
5575 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
5576 Text.Pandoc.Readers.HTML and without it we get a linking error when
5581 + Added new rule for enhanced markdown ordered lists: if the list
5582 marker is a capital letter followed by a period (including a
5583 single-letter capital roman numeral), then it must be followed by
5584 at least two spaces. The point of this is to avoid accidentally
5585 treating people's initials as list markers: a paragraph might begin,
5586 "B. Russell was an English philosopher," and this shouldn't be
5587 treated as a list. Documented change in README.
5588 + Blocks that start with "p. " and a digit are no longer treated
5589 as ordered lists (it's a page number).
5590 + Added a needed 'try' to listItem.
5591 + Removed check for a following setext header in endline.
5592 A full test is too inefficient (doubles benchmark time), and the
5593 substitute we had before is not 100% accurate.
5594 + Don't use Code elements for autolinks if --strict specified.
5596 * LaTeX writer: When a footnote ends with a Verbatim environment, the
5597 close } of the footnote cannot occur on the same line or an error occurs.
5598 Fixed this by adding a newline before the closing } of every footnote.
5601 + Removed incorrect "{}" around style information in HTML tables.
5602 Column widths now work properly in HTML.
5603 + If --strict option is specified (and --toc is not), don't include
5604 identifiers in headers, for better Markdown compatibility.
5608 + Separated $(web_dest) and website targets.
5609 + In website, index.txt is now constructed from template index.txt.in.
5610 + Added freebsd target to Markefile. This creates the freebsd Makefile
5611 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
5612 from the repository.
5613 + Added macport target to Makefile. Portfile is built from template
5615 + Removed OSX package targets. (Too many difficulties involving
5616 dependencies on dynamic libraries.)
5617 + More complete INSTALL instructions for all architectures.
5620 + Added a programming demo, pandocwiki.
5624 * Do not forget to close pandoc's ITP. Closes: #391666
5626 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
5628pandoc (0.41) unstable; urgency=low
5632 * Fixed bugs in HTML reader:
5633 + Skip material at end *only if* `</html>` is present (previously,
5634 only part of the document would be parsed if an error was
5635 found; now a proper error message is given).
5636 + Added new constant eitherBlockOrInline with elements that may
5637 count either as block-level or as inline. Modified isInline and
5638 isBlock to take this into account.
5639 + Modified rawHtmlBlock to accept any tag (even an inline tag):
5640 this is innocuous, because rawHtmlBlock is tried only if a regular
5641 inline element can't be parsed.
5642 + Added a necessary 'try' in definition of 'para'.
5644 * Fixed bug in markdown ordered list parsing. The problem was that
5645 anyOrderedListStart did not check for a space following the
5646 ordered list marker. So in 'A.B. 2007' the parser would be
5647 expecting a list item, but would not find one, causing an error.
5648 Fixed a similar bug in the RST reader. Resolves Issue #22.
5650 * Refactored RST and Markdown readers using parseFromString.
5652 * LaTeX reader will now skip anything after \end{document}.
5654 * Fixed blockquote output in markdown writer: previously, block
5655 quotes in indented contexts would be indented only in the first
5658 * Added note to INSTALL about variations in versions of the xhtml
5659 library that can lead to failed tests (thanks to Leif LeBaron).
5661 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
5663pandoc (0.4) unstable; urgency=low
5667 * Added two new output formats: groff man pages and ConTeXt. By
5668 default, output files with extensions ".ctx" and ".context" are
5669 assumed to be ConTeXt, and output files with single-digit extensions
5670 are assumed to be man pages.
5672 * Enhanced ordered lists (documented in README, under Lists):
5673 + The OrderedList block element now stores information about
5674 list number style, list number delimiter, and starting number.
5675 + The readers parse this information when possible.
5676 + The writers use this information to style ordered lists.
5677 + The enhancement can be disabled using the --strict option.
5679 * Added support for tables (with a new Table block element). Two kinds
5680 of tables are supported: a simple table with one-line rows, and a
5681 more complex variety with multiline rows. All output formats are
5682 supported, but only markdown tables are parsed at the moment. The
5683 syntax is documented in README.
5685 * Added support for definition lists (with a new DefinitionList block
5686 element). All output and input formats are supported. The syntax is
5687 documented in README.
5689 * Added support for superscripts and subscripts (with new Superscript
5690 and Subscript inline elements). All input and output
5691 formats. The syntax is documented in README.
5693 * Added support for strikeout (with a new Strikeout inline element).
5694 All input and output formats are supported. Thanks to Bradley Kuhn,
5695 who contributed a patch. The syntax is documented in README. Resolves
5698 * Added a --toc|--table-of-contents option. This causes an automatically
5699 generated table of contents (or an instruction that creates one) to
5700 be inserted at the beginning of the document. Not supported in S5,
5701 DocBook, or man page writers.
5703 * Modified the -m|--asciimathml option:
5705 + If an optional URL argument is provided, a link is inserted
5706 instead of the contents of the ASCIIMathML.js script.
5707 + Nothing is inserted unless the document actually contains
5710 * Removed Blank block element as unnecessary.
5712 * Removed Key and Note blocks from the Pandoc data structure. All
5713 links are now stored as explicit links, and note contents are
5714 stored with the (inline) notes.
5716 + All link Targets are now explicit (URL, title) pairs; there
5717 is no longer a 'Ref' target.
5718 + Markdown and RST parsers now need to extract data from key and
5719 note blocks and insert them into the relevant inline elements.
5720 Other parsers have been simplified, since there is no longer any need
5721 to construct separate key and note blocks.
5722 + Markdown, RST, and HTML writers need to construct lists of
5723 notes; Markdown and RST writers need to construct lists of link
5724 references (when the --reference-links option is specified); and
5725 the RST writer needs to construct a list of image substitution
5726 references. All writers have been rewritten to use the State monad
5727 when state is required.
5728 + Several functions (generateReference, keyTable,
5729 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
5730 used by them) have been removed from Text.Pandoc.Shared, since
5731 they are no longer needed. New functions and data structures
5732 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
5733 added. The functions inTags, selfClosingTag, inTagsSimple, and
5734 inTagsIndented have been moved to the DocBook writer, since that
5735 is now the only module that uses them. NoteTable is now exported
5736 in Text.Pandoc.Shared.
5737 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
5738 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
5739 + Added writerNotes and writerReferenceLinks to WriterOptions.
5741 * Added Text.Pandoc module that exports basic readers, writers,
5742 definitions, and utility functions. This should export everything
5743 needed for most uses of Pandoc libraries. The haddock documentation
5744 includes a short example program.
5746 * Text.Pandoc.ASCIIMathML is no longer an exported module.
5748 * Added Text.Pandoc.Blocks module to help in printing markdown
5749 and RST tables. This module provides functions for working with
5750 fixed-width blocks of text--e.g., placing them side by side, as
5753 * Refactored to avoid reliance on Haskell's Text.Regex library, which
5754 (a) is slow, and (b) does not properly handle unicode. This fixed
5755 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
5757 + Replaced 'gsub' with a general list function 'substitute'
5758 that does not rely on Text.Regex.
5759 + Rewrote extractTagType in HTML reader so that it doesn't use
5761 + In Markdown reader, replaced email regex test with a custom email
5762 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
5763 with a custom function isSelfClosingTag.
5764 + Modified Docbook writer so that it doesn't rely on Text.Regex for
5765 detecting 'mailto' links.
5766 + Removed escapePreservingRegex and reamped entity-handling
5767 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
5768 avoid reliance on Text.Regex (see below on character reference
5771 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
5773 * Changed handling of XML entities. Entities are now parsed (and unicode
5774 characters returned) in the Markdown and HTML readers, rather than being
5775 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
5776 instead of entities for characters above 128. This makes the HTML and
5777 DocBook output much more readable and more easily editable.
5779 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
5780 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
5781 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
5782 Moved both functions to Text.Pandoc.Writers.Docbook.
5783 + Added characterReference parser to Text.Pandoc.CharacterReferences.
5784 This parses a string and return a unicode character.
5785 + Rewrote decodeCharacterReferences to use the new parser instead of
5787 + Added new charRef parser for Markdown and HTML, which replaces the
5788 old 'entity' parser. Added '&' as a special character in Markdown reader.
5789 + Modified HTML and Markdown readers to call decodeEntities on all raw
5790 strings (e.g. authors, dates, link titles), to ensure that no
5791 unprocessed entities are included in the native representation of
5792 the document. (In the HTML reader, most of this work is done by a
5793 change in extractAttributeName.)
5794 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
5795 since a unicode non-breaking space is impossible to distinguish visually
5796 from a regular space. (Resolves Issue #3.)
5797 + Removed encodeEntitiesNumerical.
5798 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
5799 slight performance boost over the old association list.
5800 + Removed unneeded decodeEntities from 'str' parser in HTML and
5803 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
5804 fromUTF8, for clarity.
5806 * Replaced old haskell98 module names replaced by hierarchical module
5807 names, e.g. List by Data.List. Removed haskell98 from dependencies
5808 in pandoc.cabal, and added mtl (needed for state monad). Substituted
5811 * Refactored and cleaned up character escaping in writers, using
5812 backslashEscapes and escapeStringUsing functions.
5814 * Instead of adding "\n\n" to the end of an input string in Main.hs,
5815 this is now done in the readers. This makes the libraries behave
5816 the way you'd expect from the pandoc program. Resolves Issue #10.
5818 * URLs and email addresses in autolinks are now typeset as Code.
5820 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
5821 doesn't display the whole output unless there's a line ending.
5823 * Major code cleanup in all modules, for greater consistency, concision,
5828 + Fixed several bugs (extractTagType, attribute parsing).
5829 + Remove Null blocks in lists of blocks when possible.
5830 + Allow HTML comments as raw HTML inline.
5834 + Ordered list items may no longer begin with uppercase letters, or
5835 letters greater than 'n'. (This prevents first initials and page
5836 reference, e.g. 'p. 400', from being parsed as beginning lists.)
5837 Also, numbers beginning list items may no longer end with ')',
5838 which is now allowed only after letters. Note: These changes
5839 may cause documents to be parsed differently. Users should take
5841 + Changed autoLink parsing to conform better to Markdown.pl's
5842 behavior. `<google.com>` is not treated as a link, but
5843 `<http://google.com>`, `<ftp://google.com>`, and
5844 `<mailto:google@google.com>` are.
5845 + Cleaned up handling of embedded quotes in link titles. Now these are
5846 stored as a '"' character, not as '"'.
5847 + Use lookAhead parser for the 'first pass' (looking for reference keys),
5848 instead of parsing normally, then using setInput to reset input. This
5849 yields a slight performance boost.
5850 + Fixed several bugs in smart quote recognition.
5851 + Fixed bug in indentSpaces (which didn't properly handle
5852 cases with mixed spaces and tabs).
5853 + Consolidated 'text', 'special', and 'inline' into 'inline'.
5854 + Fixed bug which allowed URL and title to be separated by multiple blank
5855 lines in links and reference keys. They can be on separate lines but
5856 can't have blank lines between them.
5857 + Correctly handle bracketed text inside inline footnotes and links,using
5858 new function inlinesInBalanced. Resolves Issue #14.
5859 + Fixed bug in footnotes: links in footnotes were not being
5860 processed. Solution: three-stage parse. First, get all the
5861 reference keys and add information to state. Next, get all the
5862 notes and add information to state. (Reference keys may be needed
5863 at this stage.) Finally, parse everything else.
5864 + Replaced named constants like 'emphStart' with literals.
5865 + Removed an extra occurance of escapedChar in definition of inline.
5869 + Allow the URI in a RST hyperlink target to start on the line
5870 after the reference key.
5871 + Added 'try' in front of 'string', where needed, or used a different
5872 parser. This fixes a bug where ````` would not be correctly parsed as
5874 + Fixed slow performance in parsing inline literals in RST reader. The
5875 problem was that ``#`` was seen by 'inline' as a potential link or image.
5876 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
5878 + Use lookAhead instead of getInput/setInput in RST reader. Removed
5879 unneeded getState call, since lookAhead automatically saves and
5880 restores the parser state.
5881 + Allow hyperlink target URIs to be split over multiple lines, and
5882 to start on the line after the reference. Resolves Issue #7.
5883 + Fixed handling of autolinks.
5887 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
5889 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
5890 caret is \^{}, not \^ as before.
5891 + Added parsing for \url.
5892 + Parse \texttt{} as code, provided there's nothing fancy inside.
5896 + Modified HTML writer to use the Text.XHtml library. This results
5897 in cleaner, faster code, and it makes it easier to use Pandoc in
5898 other projects, like wikis, which use Text.XHtml. Two functions are
5899 now provided, writeHtml and writeHtmlString: the former outputs an
5900 Html structure, the latter a rendered string. The S5 writer is also
5901 changed, in parallel ways (writeS5, writeS5String).
5902 + The Html header is now written programmatically, so it has been
5903 removed from the 'headers' directory. The S5 header is still
5904 needed, but the doctype and some of the meta declarations have
5905 been removed, since they are written programatically. This change
5906 introduces a new dependency on the xhtml package.
5907 + Fixed two bugs in email obfuscation involving improper escaping
5908 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
5910 + Fixed another bug in email obfuscation: If the text to be obfuscated
5911 contains an entity, this needs to be decoded before obfuscation.
5912 Thanks to thsutton for the patch. Resolves Issue #15.
5913 + Changed the way the backlink is displayed in HTML footnotes.
5914 Instead of appearing on a line by itself, it now generally
5915 appears on the last line of the note. (Exception: when the
5916 note does not end with a Plain or Para block.) This saves space
5918 + Added automatic unique identifiers to headers:
5919 - The identifier is derived from the header via a scheme
5920 documented in README.
5921 - WriterState now includes a list of header identifiers and a table
5922 of contents in addition to notes.
5923 - The function uniqueIdentifiers creates a list of unique identifiers
5924 from a list of inline lists (e.g. headers).
5925 - This list is part of WriterState and gets consumed by blockToHtml
5926 each time a header is encountered.
5927 + Include CSS for .strikethrough class in header only if strikethrough
5928 text appears in the document.
5929 + If the 'strict' option is specified, elements that do not appear in
5930 standard markdown (like definition lists) are passed through as
5932 + Simplified treatment of autolinks, using pattern matching instead of
5937 + Links in markdown output are now printed as inline links by default,
5938 rather than reference links. A --reference-links option has been added
5939 that forces links to be printed as reference links. Resolves Issue #4.
5940 + Use autolinks when possible. Instead of `[site.com](site.com)`,
5945 + Rewrote to use the State monad. The preamble now includes only those
5946 packages that are actually required, given the document's content.
5947 Thus, for example, if strikeout is not used, ulem is not required.
5948 Modified LaTeXHeader accordingly.
5949 + Modified LaTeX writer to insert '\,' between consecutive quotes.
5950 + Removed unused function tableRowColumnWidths.
5951 + Simplified code for escaping special characters.
5952 + Leave extra blank line after \maketitle.
5953 + Include empty '\author{}' when no author specified to avoid LaTeX
5955 + Include fancyvrb code in header only if needed -- that is, only
5956 if there is actually code in a footnote.
5957 + Use \url{} for autolinks.
5958 + Include [mathletters] option in ucs package, so that basic unicode
5959 Greek letters will work correctly.
5961 * RST writer: Force blank line before lists, so that sublists will
5962 be handled correctly.
5964 * Docbook writer: Fixed a bug: email links with text, like
5965 [foo](me@bar.baz), were being incorrectly treated as autolinks.
5967 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
5970 * Text.Pandoc.Shared:
5972 + Added defaultWriterOptions.
5973 + Added writerTableOfContents to WriterOptions.
5974 + Added writerIgnoreNotes option to WriterOptions. This is needed
5975 for processing header blocks for a table of contents, since notes on
5976 headers should not appear in the TOC.
5977 + Added prettyprinting for native Table format.
5978 + Removed some unneeded imports.
5979 + Moved escape and nullBlock parsers from
5980 Text.ParserCombinators.Pandoc, since the latter is for
5981 general-purpose parsers that don't depend on Text.Pandoc.Definition.
5982 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
5983 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
5984 writer, because HTML writer now uses these in constructing a table
5986 + Added clauses for new inline elements (Strikeout, Superscript,
5987 Subscript) to refsMatch.
5988 + Removed backslashEscape; added new functions escapeStringUsing and
5990 + Moved failIfStrict from markdown reader, since it is now used also
5992 + Added a 'try' to the definition of indentSpaces.
5993 + In definition of 'reference', added check to make sure it's not a note
5995 + Added functions: camelCaseToHyphenated, toRomanNumeral,
5996 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
5997 charsInBalanced', withHorizDisplacement, romanNumeral
5998 + Fixed a bug in the anyLine parser. Previously it would parse an empty
5999 string "", but it should fail on an empty string, or we get an error
6000 when it is used inside "many" combinators.
6001 + Removed followedBy' parser, replacing it with the lookAhead parser from
6003 + Added some needed 'try's before multicharacter parsers, especially in
6005 + Removed the 'try' from the 'end' parser in 'enclosed', so that
6006 'enclosed' behaves like 'option', 'manyTill', etc.
6007 + Added lineClump parser, which parses a raw line block up to and
6008 including any following blank lines.
6009 + Renamed parseFromStr to parseFromString.
6010 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
6011 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
6013 + Removed unneeded 'try' in blanklines.
6014 + Removed endsWith function and rewrote calling functions to use
6016 + Added >>~ combinator.
6017 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
6020 * Refactored runtests.pl; added separate tests for tables.
6024 + Added -asxhtml flag to tidy in html2markdown. This will
6025 perhaps help the parser, which expects closing tags.
6026 + Modified markdown2pdf to run pdflatex a second time if --toc or
6027 --table-of-contents was specified; otherwise the table of
6028 contents won't appear.
6029 + Modified markdown2pdf to print a helpful message if the 'ulem'
6030 LaTeX package is required and not found.
6032 * Changes to build process:
6034 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
6036 + Removed cabalize and Pandoc.cabal.in. The repository now contains
6037 pandoc.cabal itself.
6038 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
6039 likes the cabal file to have the same name as the tarball.
6040 + Expanded and revised the package description in pandoc.cabal.
6041 Revised the package synopsis.
6042 + The tarball built by 'make tarball' now contains files built from
6043 templates (including man pages and shell scripts), so pandoc can
6044 be built directly using Cabal tools, without preprocessing.
6045 + Executable binaries are now stripped before installing.
6046 + Man pages are now generated from markdown sources, using pandoc's
6048 + Use HTML version of README (instead of RTF) in Mac OS X installer.
6049 + Instead of testing for the existence of a pandoc symlink in build-exec,
6054 + Updated README and man pages with information on new features.
6055 + Updated INSTALL instructions with some useful clarifications and
6057 + Updated web content.
6059 * Added FreeBSD port.
6065 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
6066 libghc6-xhtml-dev. Removed libghc6-html-dev.
6067 + Suggest texlive-latex-recommended | tetex-extra instead of
6068 tetex-bin. This brings in fancyvrb and unicode support.
6070 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
6072pandoc (0.3) unstable; urgency=low
6076 * Changes in pandoc options:
6078 + Allow options to follow or precede arguments.
6079 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
6080 + Added '--strict' option.
6081 + Added '-o/--output' option.
6082 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
6083 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
6084 error conditions. This is helpful for writing wrappers.
6085 + Added copyright message to '-v' output, modeled after FSF messages.
6086 + Reformatted usage message so that it doesn't wrap illegibly.
6087 + Removed extra blanks after '-h' and '-D' output.
6089 * Added docbook writer.
6091 * Added implicit setting of default input and output format based
6092 on input and output filename extensions. These defaults are
6093 overridden if explicit input and output formats are specified using
6094 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
6097 * Allow ordered list items to begin with (single) letters, as well
6098 as numbers. The list item marker may now be terminated either by
6099 '.' or by ')'. This extension to standard markdown is documented
6102 * Revised footnote syntax. (See README for full details.) The
6103 '[^1]' format now standard in markdown extensions is supported,
6104 as are inline footnotes with this syntax: '^[My note.]'.
6105 The earlier footnote syntax '^(1)' is no longer supported.
6107 * Improved HTML representation of footnotes. All footnotes
6108 are now auto-numbered and appear in an ordered list at the
6109 end of the HTML document. Since the default appearance is now
6110 acceptable, the old footnote styles have been removed from the
6115 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
6116 These readers ran 'runParser' on processed chunks of text to handle
6117 embedded block lists in lists and quotation blocks. But then
6118 any changes made to the parser state in these chunks was lost,
6119 as the state is local to the parser. So, for example, footnotes
6120 didn't work in quotes or list items. The fix: instead of calling
6121 runParser on some raw text, use setInput to make it the input, then
6122 parse it, then use setInput to restore the input to what it was
6123 before. This is shorter and more elegant, and it fixes the problem.
6124 + Fixed bug in notFollowedBy' combinator (adding 'try' before
6125 'parser'). Adjusted code that uses this combinator accordingly.
6126 + Fixed bug in RTF writer that caused improper indentation on
6127 footnotes occurring in indented blocks like lists.
6128 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
6129 and date are parsed correctly. Everything else in the preamble
6131 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
6132 line to count as escaped whitespace.
6133 + Modified LaTeX reader to produce inline links rather than reference
6134 links. Otherwise, links in footnotes aren't handled properly.
6135 + Fixed handling of titles in links in Markdown reader, so that
6136 embedded quotation marks are now handled properly.
6137 + Fixed Markdown reader's handling of embedded brackets in links.
6138 + Fixed Markdown reader so that it only parses bracketed material
6139 as a reference link if there is actually a corresponding key.
6140 + Revised inline code parsing in Markdown reader to conform to
6141 markdown standard. Now any number of `s can begin inline code,
6142 which will end with the same number of `s. For example, to
6143 have two backticks as code, write ``` `` ```. Modified Markdown
6145 + Fixed bug in text-wrapping routine in Markdown and RST writers.
6146 Now LineBreaks no longer cause wrapping problems.
6147 + Supported hexadecimal numerical entity references as well as
6149 + Fixed bug in Markdown reader's handling of underscores and other
6150 inline formatting markers inside reference labels: for example,
6151 in '[A_B]: /url/a_b', the material between underscores was being
6152 parsed as emphasized inlines.
6153 + Changed Markdown reader's handling of backslash escapes so that
6154 only non-alphanumeric characters can be escaped. Strict mode
6155 follows Markdown.pl in only allowing a select group of punctuation
6156 characters to be escaped.
6157 + Modified HTML reader to skip a newline following a `<br>` tag.
6158 Otherwise the newline will be treated as a space at the beginning
6161 * Made handling of code blocks more consistent. Previously, some
6162 readers allowed trailing newlines, while others stripped them.
6163 Now, all readers strip trailing newlines in code blocks. Writers
6164 insert a newline at the end of code blocks as needed.
6166 * Modified readers to make spacing at the end of output more consistent.
6168 * Minor improvements to LaTeX reader:
6170 + '\thanks' now treated like a footnote.
6171 + Simplified parsing of LaTeX command arguments and options.
6172 commandArgs now returns a list of arguments OR options (in
6173 whatever order they appear). The brackets are included, and
6174 a new stripFirstAndLast function is provided to strip them off
6175 when needed. This fixes a problem in dealing with \newcommand
6176 and \newenvironment.
6178 * Revised RTF writer:
6180 + Default font is now Helvetica.
6181 + An '\f0' is added to each '\pard', so that font resizing works
6184 * Moved handling of "smart typography" from the writers to the Markdown
6185 and LaTeX readers. This allows great simplification of the writers
6186 and more accurate smart quotes, dashes, and ellipses. DocBook can
6187 now use `<quote>`. The '--smart' option now toggles an option in
6188 the parser state rather than a writer option. Several new kinds
6189 of inline elements have been added: Quoted, Ellipses, Apostrophe,
6192 * Changes in HTML writer:
6194 + Include title block in header even when title is null.
6195 + Made javascript obfuscation of emails even more obfuscatory,
6196 by combining it with entity obfuscation.
6198 * Changed default ASCIIMathML text color to black.
6202 + Added --strip-trailing-cr option to diff in runtests.pl, for
6203 compatibility with Windows.
6204 + Added regression tests with footnotes in quote blocks and lists.
6208 + osx-pkg target creates a Mac OS X package (directory). New osx
6209 directory contains files needed for construction of the package.
6210 + osx-dmg target creates a compressed disk image containing the package.
6211 + win-pkg target creates Windows binary package.
6212 + tarball target creates distribution source tarball.
6213 + website target generates pandoc's website automatically, including
6214 demos. New 'web' directory containts files needed for construction
6215 of the website (which will be created as the 'pandoc' subdirectory
6217 + Makefile checks to see if we're running Windows/Cygwin; if so,
6218 a '.exe' extension is added to each executable in EXECS.
6220 * Removed all wrappers except markdown2pdf and html2markdown.
6222 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
6223 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
6224 option and disables other options.
6226 * Added code to html2markdown that tries to determine the character
6227 encoding of an HTML file, by parsing the "Content-type" meta tag.
6229 + If the encoding can't be determined, then if the content is local,
6230 the local encoding is used; if it comes from a URL, UTF-8 is used
6232 + If input is from STDIN, don't try to determine character encoding.
6233 + Encoding can be specified explicitly using '-e' option.
6235 * Improved warning messages in wrappers:
6237 + Print warning if iconv not available
6238 + More user-friendly error messages in markdown2pdf, when
6243 + Renamed 'Text/Pandoc/HtmlEntities' module to
6244 'Text/Pandoc/Entities'. Also changed function names so as
6245 not to be HTML-specific.
6246 + Refactored SGML string escaping functions from HTML and Docbook
6247 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
6248 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
6250 + Removed splitBySpace and replaced it with a general, polymorphic
6252 + Refactored LaTeX reader for clarity (added isArg function).
6253 + Converted some CR's to LF's in src/ui/default/print.css.
6254 + Added license text to top of source files.
6255 + Added module data for haddock to source files.
6256 + Reformatted code for consistency.
6258 * Rewrote documentation and man pages. Split README into INSTALL
6261 * Split LICENSE into COPYING and COPYRIGHT.
6263 * Removed TODO, since we now maintain ToDo on the wiki.
6265 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
6270 * Revamped build process to conform to debian standards and created
6271 a proper debian package. Closes: #391666.
6273 * Modified build process to support GHC 6.6.
6275 + The package can still be compiled using GHC 6.4.2, though because
6276 of dependencies the "make deb" target works only with GHC 6.6+.
6277 + The script 'cabalize' is used to create an appropriate
6278 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
6281 * Refactored template processing (fillTemplates.pl).
6283 * Modified wrapper scripts to make them more robust and portable.
6284 To avoid code duplication and ensure consistency, wrappers are
6285 generated via a templating system from templates in src/wrappers.
6287 + Wrappers now accept multiple filenames, when appropriate.
6288 + Spaces and tabs allowed in filenames.
6289 + getopts shell builtin is used for portable option parsing.
6290 + Improved html2markdown's web grabber code, making it more robust,
6291 configurable and verbose. Added '-e', '-g' options.
6293 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
6295pandoc (0.2) unstable; urgency=low
6297 * Fixed unicode/utf-8 translation
6299 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
6301pandoc (0.1) unstable; urgency=low
6303 * Initial creation of debian package
6305 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list