git.iko.soy/typeable/pandoc
on pseudopod help sign in
typeable/pandoc/changelog
4025 lines 167 kB history raw
1pandoc (1.9.2)
3 * LaTeX reader:
5 + Made `lstlisting` work as a proper verbatim environment.
6 + Fixed bug parsing LaTeX tables with one column.
8 * LaTeX writer:
10 + Use `{}` around `ctable` caption, so that formatting can be used.
11 + Don't require eurosym package unless document has a €.
13 * LaTeX template: Added variables for `geometry`, `romanfont`,
14 `sansfont`, `mathfont`, `mainfont` so users can more easily
15 customize fonts.
17 * PDF writer:
19 + Run latex engine at least two times, to ensure
20 that PDFs will have hyperlinked bookmarks.
21 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
23 * Texinfo writer: retain directories in image paths. (Peter Wang)
25 * RST writer: Better handling of inline formatting, in accord
26 with docutils' "inline markup recognition rules" (though we don't
27 implement the unicode rules fully). Now `hi*there*hi` gets
28 rendered properly as `hi\ *there*\ hi`, and unnecessary
29 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
31 * RST reader:
33 + Parse `\ ` as null, not escaped space.
34 + Allow `` :math:`...` `` even when not followed by blank
35 or `\`. This does not implement the complex rule docutils follows,
36 but it should be good enough for most purposes.
37 + Add support for the rST default-role directive. (Greg Maslov)
39 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
40 (Greg Maslov)
42 * Markdown reader: Properly handle citations nested in other inline
43 elements.
45 * Markdown writer: don't replace empty alt in image with "image".
47 * DZSlides: Updated template.html and styles in default template.
48 Removed bizarre CSS for `q` in dzslides template.
50 * Avoid repeated `id` attribute in section and header in HTML slides.
52 * README improvements: new instructions on internal links,
53 removed misleading note on reST math.
55 * Build system:
57 + Fixed Windows installer so that dzslides works.
58 + Removed stripansi.sh.
59 + Added .travis.yml for Travis continuous integration support..
60 + Fixed upper bound for zlib (Sergei Trofimovich).
61 + Fixed upper bound for test-framework.
62 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
64pandoc (1.9.1.2)
66 * Added `beamer+lhs` as output format.
68 * Don't escape `<` in `<style>` tags with `--self-contained`.
69 This fixes a bug which prevented highlighting from working
70 when using `--self-contained`.
72 * PDF: run latex engine three times if `--toc` specified.
73 This fixes page numbers in the table of contents.
75 * Docx writer: Added TableNormal style to tables.
77 * LaTeX math environment fixes. `aligned` is now used instead of
78 the nonexistent `aligned*`. `multline` instead of the nonexistent
79 `multiline`.
81 * LaTeX writer: Use `\textasciitilde` for literal `~`.
83 * HTML writer: Don't escape contents of EQ tags with --gladtex.
84 This fixes a regression from 1.8.
86 * Use `<q>` tags for Quoted items for HTML5 output.
87 The quote style can be changed by modifying the template
88 or including a css file. A default quote style is included.
90 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
91 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
93 * Updated LaTeX template for better language support.
94 Use `polyglossia` instead of `babel` with xetex.
95 Set `lang` as documentclass option.
96 `\setmainlanguage` will use the last of a comma-separated
97 list of languages. Thanks to François Gannaz.
99 * Fixed default LaTeX template so `\euro` and `€` work. The
100 `eurosym` package is needed if you are using pdflatex.
102 * Fixed escaping of period in man writer (thanks to Michael Thompson).
104 * Fixed list label positions in beamer.
106 * Set `mainlang` variable in context writer.
107 This parallels behavior of latex writer. `mainlang` is the last
108 of a comma-separated list of languages in lang.
110 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
112 * Changed `-V` so that you can specify a key without a value.
113 Such keys get the value `true`.
115 * Fixed permissions on installed man pages - thanks Magnus Therning.
117 * Windows installer: require XP or higher. The installer is
118 now compiled on a Windows 7 machine, which fixes a problem
119 using citation functions on Windows 7.
121 * OSX package: Check for 64-bit Intel CPU before installing.
123pandoc (1.9.1.1)
125 * Better handling of raw latex environments in markdown. Now
127 \begin{equation}
128 a_1
129 \end{equation}
131 turns into a raw latex block as expected.
133 * Improvements to LaTeX reader:
135 + Skip options after block commands.
136 + Correctly handle `{\\}` in braced.
137 + Added a needed 'try'.
138 + Citations: add `, ` to suffix if it doesn't start with space or
139 punctuation. Otherwise we get no space between the year and the
140 suffix in author-date styles.
142 * Added two needed data files for S5. This fixes a problem with
143 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
144 which was no longer being used.
146 * Fixed some minor problems in `reference.docx`:
147 name on "Date" style, `xCs` instead of `xIs`.
149 * Fixed a problem creating docx files using a reference docx
150 modified using Word. The problem seems to be that Word
151 modifies `_rels/.rels`, changing the Type of the Relationship to
152 `docProps/core.xml`. Pandoc now changes this back to the correct
153 value if it has been altered, fixing the problem.
155 * Fixed html5 template so it works properly with highlighting.
157pandoc (1.9.1)
159 * LaTeX reader:
161 + Fixed regression in 1.9; properly handle escaped $ in latex math.
162 + Put LaTeX verse environments in blockquotes.
164 * Markdown reader:
166 + Limit nesting of strong/emph. This avoids exponential lookahead
167 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
168 + Improved attributes syntax (inn code blocks/spans):
169 (1) Attributes can contain line breaks. (2) Values in key-value
170 attributes can be surrounded by either double or single quotes, or
171 left unquoted if they contain no spaces.
173 * Don't wrap headers in markdown or RST writers.
175 * Added `stateMaxNestingLevel` to `ParserState`.
176 We set this to 6, so you can still have `Emph` inside `Emph`,
177 just not indefinitely.
179 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
181 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
182 is present.
184 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
186pandoc (1.9.0.5)
188 * Changed cabal file so that build-depends for the test program
189 are not required unless the tests flag is used.
191 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
192 form ligatures (dashes) in code spans.
194pandoc (1.9.0.4)
196 * Raised version bound on test-framework to avoid problems
197 compiling tests on GHC 7.4.1.
199 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
200 so citations don't just disappear unless you process with
201 citeproc. Ignore `\bibliographystyle`, `\nocite`.
203 * Simplified tex2pdf; it will always run latex twice to
204 resolve table of contents and hyperrefs.
206pandoc (1.9.0.3)
208 * Require Cabal >= 1.10.
209 * Tweaked cabal file to meet Cabal 1.10 requirements.
211pandoc (1.9.0.2)
213 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
214 ghc 6.12.
216pandoc (1.9)
218 [new features]
220 * Added a Microsoft Word `docx` writer. The writer includes support
221 for highlighted code and for math (which is converted from TeX to OMML,
222 Office's native math markup language, using texmath's new OMML module).
223 A new option `--reference-docx` allows the user to customize the
224 styles.
226 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
228 * Better support for slide shows:
230 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
231 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
233 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
234 slide presentations.
236 + New, flexible rules for dividing documents into sections and slides
237 (see the "Structuring the slide show" in the User's Guide). These
238 are backward-compatible with the old rules, but they allow slide
239 shows to be organized into sections and subsections containing
240 multiple slides.
242 + A new `--slide-level` option allows users to override defaults
243 and select a slide level below the first header level with content.
245 * A new `--self-contained` option produces HTML output that does not
246 depend on an internet connection or the presence of any external
247 files. Linked images, CSS, and javascript is downloaded (or fetched
248 locally) and encoded in `data:` URIs. This is useful for making portable
249 `HTML slide shows. The --offline` option has been deprecated and is now
250 `treated as a synonym or --self-contained`.
252 * Support for PDF output:
254 + Removed the old `markdown2pdf`.
255 + `pandoc` can now create PDFs (assuming you have latex and a set of
256 appropriate packages installed): just specify an output file with the
257 `.pdf` extension.
258 + A new option `--latex-engine` allows you to specify `pdflatex`,
259 `xelatex`, or `lualatex` as the processor.
261 * Highlighting changes:
263 + Syntax highlighting is now a standard feature; the `highlighting`
264 flag is no longer needed when compiling.
265 + A new `--no-highlight` option allows highlighting to be disabled.
266 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
267 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
268 + A new `--highlight-style` option selects between various highlighting
269 color themes.
271 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
273 * LaTeX `\include` and `\usepackage` commands are now processed,
274 provided the files are in the working directory.
276 * EPUB improvements:
278 + Internal and external links now work in EPUB.
279 + Raw HTML is allowed.
280 + New `--epub-embed-font` option.
281 + Customizable templates for EPUB pages offer more control over
282 formatting: `epub-page.html`, `epub-coverimage.html`,
283 `epub-titlepage.html`.
285 * `--mathml` now works with DocBook.
287 * Added support for math in RST reader and writer. Inline math uses the
288 `` :math:`...` `` construct. Display math uses
290 .. math:: ...
292 or if the math is multiline,
294 .. math::
296 ...
298 These constructions are now supported now by `rst2latex.py`.
300 * Github syntax for fenced code blocks is supported in pandoc's
301 markdown. You can now write
303 ```ruby
304 x = 2
305 ```
307 instead of
309 ~~~ {.ruby}
310 x = 2
311 ~~~~
313 * Easier scripting: a new `toJsonFilter` function makes it easier to
314 write Haskell scripts to manipulate the Pandoc AST.
316 [behavior changes]
318 * Fixed parsing of consecutive lists in markdown.
319 Pandoc previously behaved like Markdown.pl for consecutive
320 lists of different styles. Thus, the following would be parsed
321 as a single ordered list, rather than an ordered list followed
322 by an unordered list:
324 1. one
325 2. two
327 - one
328 - two
330 This change makes pandoc behave more sensibly, parsing this as
331 two lists. Any change in list type (ordered/unordered) or in
332 list number style will trigger a new list. Thus, the following
333 will also be parsed as two lists:
335 1. one
336 2. two
338 a. one
339 b. two
341 Since we regard this as a bug in Markdown.pl, and not something
342 anyone would ever rely on, we do not preserve the old behavior
343 even when `--strict` is selected.
345 * Dashes work differently with `--smart`: `---` is always em-dash,
346 and `--` is always en-dash. Pandoc no longer tries to guess when
347 `-` should be en-dash. *Note:* This may change how existing documents
348 look when processed with pandoc. A new option, `--old-dashes`,
349 is provided for legacy documents.
351 * The markdown writer now uses setext headers for levels 1-2.
352 The old behavior (ATX headers for all levels) can be restored
353 using the new `--atx-headers` option.
355 * Links are now allowed in markdown image captions. They are also
356 allowed in links, but will appear there as regular text. So,
358 [link with [link](/url)](/url)
360 will turn into
362 <p><a href="/url">link with link</a></p>
364 * Improved handling of citations using `citeproc-hs-0.3.4`.
365 Added `--citation-abbreviations` option.
367 * Citation keys can no longer end with a punctuation character.
368 This means that `@item1.` will be parsed as a citation with key
369 'item1', followed by a period, instead of a citation with key
370 'item1.', as was the case previously.
372 * In HTML output, citations are now put in a span with class `citation`.
374 * The markdown reader now recognizes DocBook block and inline tags.
375 It was always possible to include raw DocBook tags in a markdown
376 document, but now pandoc will be able to distinguish block from
377 inline tags and behave accordingly. Thus, for example,
379 <sidebar>
380 hello
381 </sidebar>
383 will not be wrapped in `<para>` tags.
385 * The LaTeX parser has been completely rewritten; it is now much more
386 accurate, robust, and extensible. However, there are two important
387 changes in how it treats unknown LaTeX. (1) Previously, unknown
388 environments became BlockQuote elements; now, they are treated
389 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
390 same as `xyz`. (2) Previously, arguments of unknown commands
391 were passed through with their braces; now the braces are stripped
392 off.
394 * `--smart` is no longer selected automatically with `man` output.
396 * The deprecated `--xetex` option has been removed.
398 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
399 instead. `html5` and `html5+lhs` are now separate output formats.
401 * Single quotes are no longer escaped in HTML output. They do not
402 need to be escaped outside of attributes.
404 * Pandoc will no longer transform leading newlines in code
405 blocks to `<br/>` tags.
407 * The ODT writer now sizes images appropriately, using the image
408 size and DPI information embedded in the image.
410 * `--standalone` is once again implicitly for a non-text output format
411 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
412 and get a standalone ODT file.
414 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
415 `<section>`.
417 * The HTML writer now uses `<del>` for strikeout.
419 * In HTML output with `--section-divs`, the classes `section` and
420 `level[1,2,..6]` are put on the `div` tags so they can be styled.
421 In HTML 5 output with `--section-divs`, the classes
422 `level[1,2,...6]` are put on `section` tags.
424 * EPUB writer changes:
426 + The `lang` variable now sets the language
427 in the metadata (if it is not set, we default to the locale).
428 + EPUB: UTF-8 is used rather than decimal entities.
430 * Added `titleslide` class to title slide in S5 template.
432 * In HTML, EPUB, and docx metadata, the date is normalized into
433 YYYY-MM-DD format if possible. (This is required for validation.)
435 * Attributes in highlighted code blocks are now preserved in HTML.
436 The container element will have the classes, id, and key-value attributes
437 you specified in the delimited code block. Previously these were stripped
438 off.
440 * The reference backlink in the HTML writer no longer has a special
441 `footnoteBacklink` class.
443 * The HTML template has been split into `html` and `html5` templates.
445 * Author and date are treated more consistently in HTML templates.
446 Authors are now `<h2>`, date `<h3>`.
448 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
450 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
452 [bug fixes]
454 * Better support for combining characters and East Asian wide characters
455 in markdown and reST.
457 * Better handling of single quotes with `--smart`.
458 Previously `D'oh l'*aide*` would be parsed with left and right single
459 quotes instead of apostrophes. This kind of error is now fixed.
461 * Highlighting: Use `reads` instead of `read` for better error handling.
462 Fixes crash on `startNum="abc"`.
464 * Added blank comment after directives in rst template.
466 * Unescape entities in citation `refId`. The `refId`s coming
467 from citeproc contain XML numeric entities, and these don't match with the
468 citation keys parsed by pandoc. Solution is to unescape them.
470 * HTML reader: Fixed bug parsing tables with both thead and tbody.
472 * Markdown reader:
474 + Better handling of escapes in link URLs and titles.
475 + Fixed backslash escapes in reference links.
476 + Fixed bug in table/hrule parsing, by checking that the top
477 line of a table is not followed by a blank line. This bug caused
478 slowdowns on some files with hrules and tables, as pandoc tried to
479 interpret the hrules as the tops of multiline tables.
480 + Fixed bug in code block attribute parser. Previously the ID attribute
481 got lost if it didn't come first. Now attributes can come in any order.
483 * RST reader: allow footnotes followed by newline without space characters.
485 * LaTeX reader:
487 + Ignore empty groups {}, { }.
488 + LaTeX reader: Handle \@.
489 + LaTeX reader: Don't crash on commands like `\itemsep`.
490 + LaTeX reader: Better handling of letter environments.
492 * RST writer: Fixed bug involving empty table cells. isSimple was being
493 calculated in a way that assumed there were no non-empty cells.
495 * ConTeXt writer:
497 + Made `--toc` work even without `--number-sections`.
498 + Escape # in link URLs.
499 + Use buffering for footnotes containing code blocks.
500 + Changed 'descr' to 'description', fixed alignment.
502 * LaTeX writer:
504 + Escape euro character.
505 + Don't escape ~ inside href{...}.
506 + Escape # in href URLs.
507 + Improved detection of book classes. We now check the
508 `documentclass` variable, and if that is not set, we look through
509 the template itself. Also, we have added the KOMA classes scrreprt
510 and scrbook. You can now make a book using
511 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
512 + LHS files now set the "listings" variable, so that the definition
513 of the `code` environment will be included in the template.
514 + Links are colored blue by default (this can be changed by
515 modifying `hyperref` settings in the template).
516 + Added `lang` variable to LaTeX template.
518 * HTML writer:
520 + Fixed bug in HTML template with html5 and mathml.
521 + Don't use self-closing img, br, hr tags for HTML5.
522 + Use `<section>` for footnotes if HTML5.
523 + Update HTML templates to use Content-Style-Type meta tag.
524 + Use separate variables for meta-date, meta-author.
525 This makes footnotes work in author and date fields.
526 + Use 'vertical-align:middle' in WebTeX math for better alignment.
528 * S5/slidy writer: Make footnotes appear on separate slide at end.
530 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
531 META-INF/manifest.xml for ODT files will have everything it needs, so
532 that ODT files modified by LibreOffice can be used as `--reference-odt`.
534 * `Text.Pandoc.Templates`: Return empty string for json template.
536 * `Text.Pandoc.Biblio`:
538 + Expand citations recursively inside nested inlines.
539 + Treat `\160` as space when parsing locator and suffix.
540 This fixes a bug with "p. 33" when `--smart` is used. Previously
541 the whole "p. 33" would be included in the suffix, with no locator.
542 + Put whole author-in-text citation in a Cite. Previously just the
543 date and other info went in the Cite.
544 + Don't add comma+space to prefix if it ends in punctuation.
546 * Updated chicago-author-date.csl. The old version did not work
547 properly for edited volumes with no author.
549 * EPUB writer:
551 + Add date to EPUB titlepage and metadata.
552 + Added TOC identifier in EPUB page template.
553 + Don't generate superfluous file `cover-image.jpg`.
555 [under the hood improvements]
557 * Modified `make_osx_package.sh` to use cabal-dev.
558 Items are no longer installed as root.
559 Man pages are zipped and given proper permissions.
561 * Modified windows installer generater to use cabal-dev.
563 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
564 Setup.hs we now invoke 'runghc' in a way that points it to the correct
565 package databases, instead of always falling back to the default user
566 package db.
568 * Updated to work with GHC 7.4.1.
570 * Removed dependency on old-time.
572 * Removed dependency on dlist.
574 * New slidy directory for "self-contained."
576 * TeXMath writer: Use unicode thin spaces for thin spaces.
578 * Markdown citations: don't strip off initial space in locator.
580 [API changes]
582 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
583 from the native `Inline` type in pandoc-types. Now we use `Str`
584 elements with unicode.
586 * Improvements to `Text.Pandoc.Builder`:
588 + `Inlines` and `Blocks` are now newtypes (not synonyms for
589 sequences).
590 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
591 and a new `Listable` class, which allows these to be manipulated
592 to some extent like lists. Monoid append includes automatic
593 normalization.
594 + `+++` has been replaced by `<>` (mappend).
596 * Use blaze-html instead of xhtml for HTML generation.
597 This changes the type of `writeHtml`.
599 * `Text.Pandoc.Shared`:
601 + Added `warn` and `err`.
602 + Removed `unescapeURI`, modified `escapeURI`.
603 (See under [behavior changes], above.)
605 * Changes in URI escaping: Previously the readers escaped URIs by
606 converting unicode characters to octets and then percent encoding.
607 Now unicode characters are left as they are, and `escapeURI` only
608 percent-encodes space characters. This gives more readable
609 URIs, and works well with modern user agents. URIs are no longer unescaped
610 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
612 * New module `Text.Pandoc.SelfContained`.
614 * New module `Text.Pandoc.Docx`.
616 * New module `Text.Pandoc.PDF`.
618 * Added `writerBeamer` to `WriterOptions`.
620 * Added `normalizeDate` to `Text.Pandoc.Shared`.
622 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
623 This is like `splitWithIndices`, but it is sensitive to distinctions
624 between wide, combining, and regular characters.
626 * `Text.Pandoc.Pretty`:
628 + Added `chomp` combinator.
629 + Added `beforeNonBreak` combinator. This allows you to include
630 something conditionally on it being before a nonblank.
631 Used for RST inline math.
632 + Added `charWidth` function. All characters marked W or F in the unicode
633 spec EastAsianWidth.txt get width 2.
634 + Added `realLength`, based on `charWidth`. `realLength` is now
635 used in calculating offsets.
637 * New module `Text.Pandoc.Slides`, for common functions for breaking
638 a document into slides.
640 * Removed `Text.Pandoc.S5`, which is no longer needed.
642 * Removed `Text.Pandoc.CharacterReferences`. Moved
643 `characterReference` to `Text.Pandoc.Parsing`.
644 `decodeCharacterReferences` is replaced by `fromEntities`
645 in `Text.Pandoc.XML`.
647 * Added `Text.Pandoc.ImageSize`. This is intened for use
648 in `docx` and `odt` writers, so the size and dpi of images
649 can be calculated.
651 * Removed `writerAscii` in `WriterOptions`.
653 * Added `writerHighlight` to `WriterOptions`.
655 * Added `DZSlides` to `HTMLSlideVariant`.
657 * `writeEPUB` has a new argument for font files to embed.
659 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
660 of whether we're parsing the position immediately after a regular
661 (non-space, non-symbol) string, which is useful for distinguishing
662 apostrophes from single quote starts.
664 * `Text.Pandoc.Parsing`:
666 + `escaped` now returns a `Char`.
667 + Removed `charsInBalanced'`, added a character parser as
668 a parameter of `charsInBalanced`. This is needed for
669 proper handling of escapes, etc.
670 + Added `withRaw`.
672 * Added `toEntities` to `Text.Pandoc.XML`.
674 * `Text.Pandoc.Readers.LaTeX`:
676 + Export `handleIncludes`.
677 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
679 * Added `ToJsonFilter` class and `toJsonFilter` function to
680 `Text.Pandoc`, deprecating the old `jsonFilter` function.
682 * `Text.Pandoc.Highlighting`:
684 + Removed `highlightHtml`, `defaultHighlightingCss`.
685 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
686 key functions from highlighting-kate.
687 + Changed types of highlighting function. `highlight` returns a
688 `Maybe`, not an `Either`.
690pandoc (1.8.2.1)
692 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
694 * Relaxed cabal constraints for pandoc-types.
696 * Adjusted Arbitrary instance to help avoid timeouts in tests.
698 * Added `Tests.Writers.Markdown` to cabal file.
700pandoc (1.8.2)
702 * Added script to produce OS X package.
704 * Made `templates` directory a git submodule. This should make it
705 easier for people to revise their custom templates when the default
706 templates change.
708 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
709 **Note:** If you have existing templates in `~/.pandoc/templates`, you
710 must rename them to conform to the new scheme!
712 * Fixed smart quotes bug, now handling `'...hi'` properly.
714 * RST reader:
716 + Partial support for labeled footnotes.
717 + Improved accuracy of `simpleReferenceName` parser.
719 * HTML reader:
721 + Substitute correct unicode characters for
722 characters in the 128..159 range, which are often found even in
723 HTML that purports to be UTF-8.
725 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
726 to the title, after a colon and linebreak). Closes #280.
728 * Leaner `reference.odt`.
730 * Added unexported module `Text.Pandoc.MIME` for use in
731 the ODT writer.
733 * ODT writer: Construct `manifest.xml` based on archive contents.
734 This fixes a bug in ODTs containing images. Recent versions of
735 LibreOffice would reject these as corrupt, because `manifest.xml`
736 did not contain a reference to the image files.
738 * LaTeX writer:
740 + Make verbatim environments flush to avoid spurious
741 blank lines. Closes #277.
742 + Use `\texttt` and escapes insntead of `\verb!...!`, which
743 is too fragile (doesn't work in command arguments).
744 + Use `\enquote{}` for quotes if the template includes
745 the `csquotes` package. This provides better support for
746 local quoting styles. (Thanks to Andreas Wagner for the idea.)
748 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
749 margin, preventing spurious blank lines.
751 * Slidy writer:
753 + Use non-minimized version of `slidy.css` with `--offline`
754 option, so users can more easily edit it.
755 + Also fixed a bug in the CSS that prevented proper centering
756 of title (now reported and fixed upstream).
758 * S5 writer:
760 + Replaced `s5/default/slides.js.{comment,packed}` with
761 new compressed `s5/default/slides.min.js`.
762 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
763 when `--offline` is specified. Using inline CSS didn't
764 work with Chrome or Safari. This fixes offline
765 S5 on those browsers.
767 * HTML writer: Removed English title on footnote backlinks.
768 This is incongrous in non-English documents.
770 * Docbook writer:
772 + Use CALS tables. (Some older docbook software does not work
773 well with XHTML tables.) Closes #77.
774 + Use `programlisting` tags (instead of `screen`) for code blocks.
776 * `markdown2pdf`:
778 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
779 of `-interaction=batchmode`, which essentially just ignored errors,
780 leading to bad results. Better to know when something is wrong.
781 + Fixed issues with non-UTF-8 output of `pdflatex`.
782 + Better error reporting.
784 * `--mathjax` now takes an optional URL argument. If it is not
785 provided, pandoc links directly to the (secure) mathjax CDN,
786 as now recommended (thanks to dsanson).
788 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
789 since the LaTeX writer now produces a file that can be processed by
790 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
792 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
793 to be used to create the PDF.
795 * If a template specified with `--template` is not found, look for it
796 in `datadir`. Also, if no extension is provided, supply one based
797 on the writer. So now you can put your `special.latex` template in
798 `~/.pandoc/templates`, and use it from any directory via
799 `pandoc -t latex --template special`.
801 * Default template improvements:
803 + HTML: Display author and date after title.
804 + HTML: Made table of contents more customizable. The container
805 for the TOC is now in the template, so users can insert a header
806 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
807 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
808 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
809 hard-coding. If you want to put your slidy files in the slidy
810 subdirectory, for example, you can do
811 `pandoc -t slidy -V slidy-url=slidy -s`.
812 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
813 & writer). Closes #279.
814 + LaTeX: Use different `hyperref` options for `xetex`, fixing
815 problems with unicode bookmarks (thanks to CircleCode).
816 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
817 with `inputenc`. This covers fewer characters but is more
818 robust with other packages, and `ucs` is unmaintained. Users
819 who need better unicode support should use xelatex or lualatex.
821pandoc (1.8.1.2)
823 * Added `--epub-cover-image` option.
825 * Documented `--biblatex` and `--natbib` options.
827 * Allow `--section-divs` with slidy output. Resolves Issue #296.
829 * Disallow notes within notes in reST and markdown.
830 These previously caused infinite looping and stack overflows.
831 For example:
833 [^1]
835 [^1]: See [^1]
837 Note references are allowed in reST notes, so this isn't a full
838 implementation of reST. That can come later. For now we need to
839 prevent the stack overflows. Partially resolves Issue #297.
841 * EPUB writer: Allow non-plain math methods.
843 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
844 `(@item1; @item2)` because the final paren was being parsed as part of
845 the item key.
847 * Changed URI parser so it doesn't include trailing punctuation.
848 So, in RST, `http://google.com.` should be parsed as a link followed by a
849 period. The parser is smart enough to recognize balanced parentheses, as
850 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
852 * Markdown+lhs reader: Require space after inverse bird tracks, so that
853 HTML tags can be used freely at the left margin of a markdown+lhs document.
854 Thanks to Conal Elliot for the suggestion.
856 * Markdown reader:
858 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
859 + Fixed bug in footnote order (reported by CircleCode).
861 * RST reader:
862 + Fixed bug in in field lists with multi-line items at the
863 end of the list.
864 + Added parentheses to RST `specialChars`, so
865 `(http://google.com)` will be parsed as a link in parens.
866 Resolves Issue #291.
867 + Allow `|` followed by newline in RST line block.
869 * LaTeX reader:
870 + Support `\dots`.
871 + Gobble option & space after linebreak `\\[10pt]`.
873 * Textile reader:
874 + Make it possible to have colons after links. (qerub)
875 + Make it possible to have colons after links. (Christoffer Sawicki)
877 * HTML reader:
878 + Skip spaces after `<b>`, `<emph>`, etc.
879 + Handle tbody, thead in simple tables. Closes #274.
880 + Implicit `Para`s instead of `Plains` in some contexts.
882 * OpenDocument writer: Use special `First paragraph` style for
883 first paragraph after most non-paragraph blocks. This allows users to
884 specify e.g. that only paragraphs after the first paragraph of a block are
885 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
887 * LaTeX writer: use `deVerb` on table and picture captions.
888 Otherwise LaTeX complains about `\verb` inside command argument.
889 Thanks to bbanier for reporting the bug.
891 * Markdown writer: Insert HTML comment btw list and indented code block.
892 This prevents the code block from being interpreted as part of the list.
894 * EPUB writer: Add a meta element specify the cover.
895 Some EPUB e-readers, such as the Nook, require a meta element inside the
896 OPF metadata block to ensure the cover image is properly displayed.
897 (Kelsey Hightower)
899 * HTML writer: Use embed tag for images with non-image extensions.
900 (e.g. PDFs). Closes #264.
902 * LaTeX writer: Improved tables.
904 + More space between lines, top-align cells.
905 + Use ctable package, which allows footnotes and
906 provides additional options.
907 + Made cell alignments work in multiline tables.
908 + Closes #271, #272.
910 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
911 Also do this when copying image files into EPUBs and ODTs.
912 Closes #263.
914 * Changed to github issue tracker.
916 * Added failing emph/strong markdown test case due to Perry Wagle.
918 * Slidy improvements:
919 + Updated to use Slidy2.
920 + Fixed bug, unclosed div tag.
921 + Added `duration` variable in template.
922 Setting this activates the timer.
923 + Use 'titlepage' instead of 'cover' for title div.
925pandoc (1.8.1.1)
927 * `markdown2pdf`: Removed some debugging lines accidentally included
928 in the 1.8.1 release. With those lines, the temp directory is created
929 in the working directory, and it is not deleted. This fix restores
930 the original behavior.
932pandoc (1.8.1)
934 * Added `--ascii` option. Currently supported only in HTML writer,
935 which it causes to use numerical entities instead of UTF-8.
937 * EPUB writer: `--toc` now works to provide a table of contents
938 at the beginning of each chapter.
940 * LaTeX writer: Change figure defaults to `htbp`.
941 This prevents "too many unprocessed floats." Resolves
942 Issue #285.
944 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
945 base.
947 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
948 Tanimoto. Resolves Issue #286.
950 * HTML writer: Put line breaks in section divs.
952 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
954pandoc (1.8.0.3)
956 * Fixed Source-repository stanza in cabal file.
958pandoc (1.8.0.2)
960 * HTML writer:
962 + Stringify alt text instead of converting to HTML.
963 + Break lines after block elements, not inside tags.
964 HTML output now closely resembles that of tidy. Resolves Issue #134.
966 * Markdown reader: Fixed bug in footnote block parser (pointed out
967 by Jesse Rosenthal). The problem arose when the blank line
968 at the end of a footnote block contained indenting spaces.
970 * Shared: Improved 'normalize' function so it normalizes Spaces too.
971 In normal form, Space elements only occur to separate two non-Space
972 elements. So, we never have [Space], or [, ..., Space].
974 * Tests:
976 + Improved Arbitrary instance.
977 + Added timeout for test instances.
979 * README:
981 + Added section on four-space rule for lists. Resolves Issue #283.
982 + Clarified optional arguments on math options.
984 * markdown2pdf: Fixed bug with output file extensions.
985 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
986 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
988pandoc (1.8.0.1)
990 * Revised Interact.hs so that it works with the CPP macros
991 in the UTF8 module.
993 * Revised Setup.hs so that we don't call MakeManPage.hs unless
994 the man pages are out of date.
996pandoc (1.8)
998 [new features]
1000 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
1001 You can now write, for example,
1003 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
1005 and, when you process your document using `pandoc`, specifying
1006 a citation style using `--csl` and a bibliography using `--bibliography`,
1007 the citation will be replaced by an appropriately formatted
1008 citation, and a list of works cited will be added to the end
1009 of the document.
1011 This means that you can switch effortlessly between different citation
1012 and bibliography styles, including footnote, numerical, and author-date
1013 formats. The bibliography can be in any of the following formats: MODS,
1014 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
1015 See the README for further details.
1017 Citations are supported in the markdown reader, using a special
1018 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
1019 (Thanks to Nathan Gass for the natbib and biblatex support.)
1021 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
1022 the `textile` reader, an almost complete implementation of the textile
1023 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
1024 Resolves Issue #51.
1026 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
1028 * New `json` reader and writer, for reading and writing a JSON
1029 representation of the native Pandoc AST. These are much faster
1030 than the `native` reader and writer, and should be used for
1031 serializing Pandoc to text. To convert between the JSON representation
1032 and native Pandoc, use `encodeJSON` and `decodeJSON` from
1033 `Text.JSON.Generic`.
1035 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
1036 to write scripts that transform a JSON-encoded pandoc document.
1037 For example:
1039 -- removelinks.hs - removes links from document
1040 import Text.Pandoc
1041 main = interact $ jsonFilter $ bottomUp removeLink
1042 where removeLink (Link xs _) = Emph xs
1043 removeLink x = x
1045 To use this to remove links while translating markdown to LaTeX:
1047 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
1049 * Attributes are now allowed in inline `Code` elements, for example:
1051 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
1053 The attribute syntax is the same as for delimited code blocks.
1054 `Code` inline has an extra argument place for attributes, just like
1055 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
1056 is compiled with highlighting support. Resolves Issue #119.
1058 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
1059 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
1060 scripts to transform Pandoc documents. Scripts can now change
1061 how each element is rendered in each output format.
1063 * You can now define LaTeX macros in markdown documents, and pandoc
1064 will apply them to TeX math. For example,
1066 \newcommand{\plus}[2]{#1 + #2}
1067 $\plus{3}{4}$
1069 yields `3+4`. Since the macros are applied in the reader, they
1070 will work in every output format, not just LaTeX.
1072 * LaTeX macros can also be used in LaTeX documents (both in math
1073 and in non-math contexts).
1075 * A new `--mathjax` option has been added for displaying
1076 math in HTML using MathJax. Resolves issue #259.
1078 * Footnotes are now supported in the RST reader. (Note, however,
1079 that unlike docutils, pandoc ignores the numeral or symbol used in
1080 the note; footnotes are put in an auto-numbered ordered list.)
1081 Resolves Issue #258.
1083 * A new `--normalize` option causes pandoc to normalize the AST
1084 before writing the document. This means that, for example,
1085 `*hi**there*` will be rendered as `<em>hithere</em>`
1086 instead of `<em>hi</em><em>there</em>`. This is not the default,
1087 because there is a significant performance penalty.
1089 * A new `--chapters` command-line option causes headers
1090 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
1091 Resolves Issue #265.
1093 * In DocBook output, `<chapter>` is now used for top-level
1094 headers if the template contains `<book>`. Resolves Issue #265.
1096 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
1097 the LaTeX writer to use the listings package for code blocks.
1098 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
1099 Millon for the markdown2pdf patch.)
1101 * `markdown2pdf` now supports `--data-dir`.
1103 * URLs in autolinks now have class "url" so they can be styled.
1105 * Improved prettyprinting in most formats. Lines will be wrapped
1106 more evenly and duplicate blank lines avoided.
1108 * New `--columns` command-line option sets the column width for
1109 line wrapping and relative width calculations for tables.
1111 * Made `--smart` work in HTML, RST, and Textile readers, as well
1112 as markdown.
1114 * Added `--html5` option for HTML5 output.
1116 * Added support for listings package in LaTeX reader
1117 (Puneeth Chaganti).
1119 * Added support for simple tables in the LaTeX reader.
1121 * Added support for simple tables in the HTML reader.
1123 * Significant performance improvements in many readers and writers.
1125 [API and program changes]
1127 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
1128 auxiliary package, `pandoc-types`. This will make it possible for other
1129 programs to supply output in Pandoc format, without depending on the whole
1130 pandoc package.
1132 * Added `Attr` field to `Code`.
1134 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
1135 `RawBlock` and `RawInline`.
1137 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
1138 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
1139 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
1141 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
1143 * `Text.Pandoc` now exports association lists `readers` and `writers`.
1145 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
1146 `readNative` can now read full pandoc documents, block lists, blocks,
1147 inline lists, or inlines. It will interpret `Str "hi"`
1148 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
1149 This should make testing easier.
1151 * Removed deprecated `-C/--custom-header` option.
1152 Use `--template` instead.
1154 * `--biblio-file` has been replaced by `--bibliography`.
1155 `--biblio-format` has been removed; pandoc now guesses the format
1156 from the file extension (see README).
1158 * pandoc will treat an argument as a URI only if it has an
1159 `http(s)` scheme. Previously pandoc would treat some
1160 Windows pathnames beginning with `C:/` as URIs.
1162 * The `--sanitize-html` option and the `stateSanitize` field in
1163 `ParserState` have been removed. Sanitization is better done in the
1164 resulting HTML using `xss-sanitize`, which is based on pandoc's
1165 sanitization, but improved.
1167 * pandoc now adds a newline to the end of its output in fragment
1168 mode (= not `--standalone`).
1170 * Added support for `lang` in `html` tag in the HTML template,
1171 so you can do `pandoc -s -V lang=es`, for example.
1173 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
1174 a boolean argument that selects between "inline" and
1175 "block" HTML.
1177 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
1178 Images are embedded in RTF output when possible (png, jpeg).
1179 Resolves Issue #275.
1181 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
1182 `pretty` package. Changed all writers that used
1183 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
1185 * Rewrote `writeNative` using the new prettyprinting module. It is
1186 now much faster. The output has been made more consistent and compressed.
1187 `writeNative` is also now sensitive to writerStandalone`, and will simply
1188 `print a block list if writerStandalone` is False.
1190 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
1191 blocks and concatenate them, so a separate module is no longer needed.
1193 * `Text.Pandoc.Shared`:
1195 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
1196 `WriterOptions`.
1197 + Added `normalize`.
1198 + Removed unneeded prettyprinting functions:
1199 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
1200 `BlockWrapper`, `wrappedBlocksToDoc`.
1201 + Made `splitBy` take a test instead of an element.
1202 + Added `findDataFile`, refactored `readDataFile`.
1203 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
1204 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
1206 * `Text.Pandoc.Readers.HTML`:
1208 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
1209 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
1210 `htmlBlockElement`, `htmlComment`
1211 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
1212 `isTextTag`
1214 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
1215 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
1216 an inline parser.
1218 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
1220 * Ellipses are no longer allowed to contain spaces.
1221 Previously we allowed '. . .', ' . . . ', etc. This caused
1222 too many complications, and removed author's flexibility in
1223 combining ellipses with spaces and periods.
1225 * Allow linebreaks in URLs (treat as spaces). Also, a string of
1226 consecutive spaces or tabs is now parsed as a single space. If you have
1227 multiple spaces in your URL, use `%20%20`.
1229 * `Text.Pandoc.Parsing`:
1231 + Removed `refsMatch`.
1232 + Hid `Key` constructor.
1233 + Removed custom `Ord` and `Eq` instances for `Key`.
1234 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
1235 + Generalized type on `readWith`.
1237 * Small change in calculation of relative widths of table columns.
1238 If the size of the header > the specified column width, use
1239 the header size as 100% for purposes of calculating
1240 relative widths of columns.
1242 * Markdown writer now uses some pandoc-specific features when `--strict`
1243 is not specified: `\` newline is used for a hard linebreak instead of
1244 two spaces then a newline. And delimited code blocks are used when
1245 there are attributes.
1247 * HTML writer: improved gladTeX output by setting ENV appropriately
1248 for display or inline math (Jonathan Daugherty).
1250 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
1252 * LaTeX reader:
1254 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
1255 + `\index{}` commands are skipped.
1257 * Added `fontsize` variable to default LaTeX template.
1258 This makes it easy to set the font size using `markdown2pdf`:
1259 `markdown2pdf -V fontsize=12pt input.txt`.
1261 * Fixed problem with strikeout in LaTeX headers when using
1262 hyperref, by adding a command to the default LaTeX template
1263 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
1264 for the fix.
1266 * The `COLUMNS` environment variable no longer has any effect.
1268 [under-the-hood improvements]
1270 * Pandoc now compiles with GHC 7. (This alone leads to a
1271 significant performance improvement, 15-20%.)
1273 * Completely rewrote HTML reader using tagsoup as a lexer. The
1274 new reader is faster and more accurate. Unlike the
1275 old reader, it does not get bogged down on some input
1276 (Issues #277, 255). And it handles namespaces in tags
1277 (Issue #274).
1279 * Replaced `escapeStringAsXML` with a faster version.
1281 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
1282 for a significant performance boost.
1284 * Improved performance of all readers by rewriting parsers.
1286 * Simplified Text.Pandoc.CharacterReferences by using
1287 entity lookup functions from TagSoup.
1289 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
1290 from `System.IO` if base >= 4.2. This gives support for
1291 windows line endings on windows.
1293 * Remove duplications in documentation by generating the
1294 pandoc man page from README, using `MakeManPage.hs`.
1296 * README now includes a full description of markdown syntax,
1297 including non-pandoc-specific parts. A new `pandoc_markdown`
1298 man page is extracted from this, so you can look up markdown
1299 syntax by doing `man pandoc_markdown`.
1301 * Completely revised test framework (with help from Nathan Gass).
1302 The new test framework is built when the `tests` Cabal flag is set. It
1303 includes the old integration tests, but also some new unit and quickcheck
1304 tests. Test output has been much improved, and you can now specify a glob
1305 pattern after `cabal test` to indicate which tests should be run;
1306 for example `cabal test citations` will run all the citation tests.
1308 * Added a shell script, `stripansi.sh`, for filtering ANSI control
1309 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
1311 * Added `Interact.hs` to make it easier to use ghci while developing.
1312 `Interact.hs` loads `ghci` from the `src` directory, specifying
1313 all the options needed to load pandoc modules (including
1314 specific package dependencies, which it gets by parsing
1315 dist/setup-config).
1317 * Added `Benchmark.hs`, testing all readers + writers using criterion.
1319 * Added `stats.sh`, to make it easier to collect and archive
1320 benchmark and lines-of-code stats.
1322 * Added upper bounds to all cabal dependencies.
1324 * Include man pages in extra-source-files. This allows users to
1325 install pandoc from the tarball without needing to build the man
1326 pages.
1328 [bug fixes]
1330 * Filenames are encoded as UTF8. Resolves Issue #252.
1332 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
1333 were just parsed literally, leading to problems in some output formats.
1334 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
1335 Resolves Issue #270.
1337 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
1338 Spaces at end of line were not being stripped properly,
1339 resulting in unintended LineBreaks.
1341 * Markdown reader:
1343 + Allow HTML comments as inline elements in markdown.
1344 So, `aaa <!-- comment --> bbb` can be a single paragraph.
1345 + Fixed superscripts with links: `^[link](/foo)^` gets
1346 recognized as a superscripted link, not an inline note followed by
1347 garbage.
1348 + Fixed regression, making markdown reference keys case-insensitive again.
1349 Resolves Issue #272.
1350 + Properly handle abbreviations (like `Mr.`) at the end of a line.
1351 + Better handling of intraword underscores, avoiding exponential
1352 slowdowns in some cases. Resolves Issue #182.
1353 + Fixed bug in alignments in tables with blank rows in the header.
1355 * RST reader:
1357 + Field lists now allow spaces in field names, and
1358 block content in field values. (Thanks to Lachlan Musicman
1359 for pointing out the bug.)
1360 + Definition list items are now always `Para` instead of
1361 `Plain`, matching behavior of `rst2xml.py`.
1362 + In image blocks, the description is parsed properly and
1363 used for the alt attribute, not also the title.
1364 + Skip blank lines at beginning of file. Resolves
1365 Debian #611328.
1367 * LaTeX reader:
1369 + Improved parsing of preamble.
1370 Previously you'd get unexpected behavior on a document that
1371 contained `\begin{document}` in, say, a verbatim block.
1372 + Allow spaces between `\begin` or `\end` and `{`.
1373 + Support `\L` and `\l`.
1374 + Skip comments inside paragraphs.
1376 * LaTeX writer:
1378 + Escape strings in `\href{..}`.
1379 + In nonsimple tables, put cells in `\parbox`.
1381 * OpenDocument writer: don't print raw TeX.
1383 * Markdown writer:
1385 + Fixed bug in `Image`. URI was getting unescaped twice!
1386 + Avoid printing extra blank lines at the end if there are
1387 no notes or references.
1389 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
1390 This avoids unwanted interpretation as an optional argument.
1392 * ConTeXt writer: Fixed problem with inline code. Previously
1393 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
1394 If it contains neither, use `\type{}`; otherwise use `\mono{}`
1395 with an escaped version of the string.
1397 * `:` now allowed in HTML tags. Resolves Issue #274.
1399pandoc (1.6)
1401 [ John MacFarlane ]
1403 * New EPUB and HTML Slidy writers. (Issue #122)
1405 - EPUB is a standard ebook format, used in Apple's iBooks for
1406 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
1407 reader, and many other devices.
1408 - Slidy, like S5, is a system for producing HTML+javascript slide
1409 shows.
1411 * All input is assumed to be UTF-8, no matter what the locale and ghc
1412 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
1413 Also, a BOM, if present, is stripped from the input.
1415 * Markdown now supports grid tables, whose cells can contain
1416 arbitrary block elements. (Issue #43)
1418 * Sequentially numbered example lists in markdown with `@` marker.
1420 * Markdown table captions can begin with a bare colon and no longer need
1421 to include the English word "table." Also, a caption can now occur
1422 either before or after the table. (Issue #227)
1424 * New command-line options:
1426 - `--epub-stylesheet` allows you to specify a CSS file that will
1427 be used to style your ebook.
1428 - `--epub-metadata` allows you to specify metadata for the ebook.
1429 - `--offline` causes the generated HTML slideshow to include all
1430 needed scripts and stylesheets.
1431 - `--webtex` causes TeX math to be converted to images using the
1432 Google Charts API (unless a different URL is specified).
1433 - `--section-divs` causes div tags to be added around each section
1434 in an HTML document. (Issue #230, 239)
1436 * Default behavior of S5 writer in standalone mode has changed:
1437 previously, it would include all needed scripts and stylesheets
1438 in the generated HTML; now, only links are included unless
1439 the `--offline` option is used.
1441 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
1442 pandoc would enclose sections in div tags with identifiers on the
1443 div tags, so that the sections can be manipulated in javascript.
1444 This caused undesirable interactions with raw HTML div tags. So,
1445 starting with 1.6, the default is to put the identifiers directly
1446 on the header tags, and not to include the divs. The `--section-divs`
1447 option selects the 1.2-1.5 behavior.
1449 * API changes:
1451 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
1452 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
1453 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
1454 `writerIncludeAfter`.
1455 - Added `headerShift` to `Text.Pandoc.Shared`.
1456 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
1457 to a new module, `Text.Pandoc.Parsing`.
1458 - Added `stateHasChapters` to `ParserState`.
1459 - Added `HTMLSlideVariant`.
1460 - Made `KeyTable` a map instead of an association list.
1461 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
1462 `docDate`).
1463 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
1464 instances.
1465 - Reference keys now have a type of their own (`Key`), with its
1466 own `Ord` instance for case-insensitive comparison.
1467 - Added `Text.Pandoc.Writers.EPUB`.
1468 - Added `Text.Pandoc.UUID`.
1469 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
1470 Removed `saveOpenDocumentAsODT`, added `writeODT`.
1471 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
1472 Removed `prettyPandoc`.
1473 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
1474 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
1475 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
1476 To write S5, you now use `writeHtml` with `writerSlideVariant`
1477 set to `S5Slides` or `SlidySlides`.
1479 * Template changes. If you use custom templates, please update them,
1480 particularly if you use syntax highlighting with pandoc. The old HTML
1481 templates hardcoded highlighting CSS that will no longer work with
1482 the most recent version of highlighting-kate.
1484 - HTML template: avoid empty meta tag if no date.
1485 - HTML template: Use default highlighting CSS from highlighting-kate
1486 instead of hard-coding the CSS into the template.
1487 - HTML template: insert-before text goes before the title, and
1488 immediately after the <body> tag, as documented. (Issue #241)
1489 - Added slidy and s5 templates.
1490 - Added amssymb to preamble of latex template. (github Issue 1)
1492 * Removed excess newlines at the end of output. Note: because output
1493 will not contain an extra newline, you may need to make adjustments
1494 if you are inserting pandoc's output into a template.
1496 * In S5 and slidy, horizontal rules now cause a new slide, so you
1497 are no longer limited to one slide per section.
1499 * Improved handling of code in man writer. Inline code is now monospace,
1500 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
1502 * HTML reader parses `<tt>` as Code. (Issue #247)
1504 * html+lhs output now contains bird tracks, even when compiled without
1505 highlighting support. (Issue #242)
1507 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
1508 since they have a special meaning in XML.
1510 * Code improvements in ODT writer. Remote images are now replaced with
1511 their alt text rather than a broken link.
1513 * LaTeX reader improvements:
1515 - Made latex `\section`, `\chapter` parsers more forgiving of
1516 whitespace.
1517 - Parse `\chapter{}` in latex.
1518 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
1519 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
1520 for use in markdown reader.
1521 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
1522 in markdown document.
1524 * LaTeX writer: images are automatically shrunk if they would extend
1525 beyond the page margin.
1527 * Plain, markdown, RST writers now use unicode for smart punctuation.
1529 * Man writer converts math to unicode when possible, as in other writers.
1531 * `markdown2pdf` can now recognize citeproc options.
1533 * Command-line arguments are converted to UTF-8. (Issue #234)
1535 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
1536 This allows it to handle a wider range of formulas. Also, if a formula
1537 cannot be converted, it is left in raw TeX; formulas are no longer
1538 partially converted.
1540 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
1541 #143)
1543 * Cabal file changes:
1545 - Removed parsec < 3 restriction.
1546 - Added 'threaded' flag for architectures where GHC lacks a threaded
1547 runtime.
1548 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
1549 - Require highlighting-kate 0.2.7.
1551 * Use explicit imports from `Data.Generics`. Otherwise we have a
1552 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
1554 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
1556pandoc (1.5.1.1)
1558 [ John MacFarlane ]
1560 * Fixed uniqueIdent in Shared so that header identifiers work as
1561 advertized in the README and are are valid XHTML names.
1563pandoc (1.5.1)
1565 [ John MacFarlane ]
1567 * Fixed treatment of unicode characters in URIs.
1568 + Shared now exports escapeURI and unescapeURI. These handle
1569 UTF8 encoding and decoding as well as URI escaping/unescaping.
1570 + Shared: uri and emailAddress now return a pair of the original
1571 parsed text and the escaped URI (in the latter case, with
1572 the mailto: prefix).
1573 + HTML reader: unsanitaryURI has been modified to allow unicode
1574 high characters in a URI.
1575 + Readers: All link and image URIs are now escaped using
1576 escapeURI.
1577 + Markdown and RST writers: unescapeURI is used so that URIs
1578 in these formats are human-readable.
1580 * Setup.hs: Don't assume that the build directory is "dist".
1581 Instead, get it from localBuildInfo.
1583 * OpenDocument writer: Use a Map for stTextStyleAttr.
1584 This avoids duplicates (and invalid xml). Resolves Issue #222.
1586pandoc (1.5.0.1)
1588 [ John MacFarlane ]
1590 * HTML writer: Fixed error in math writer (with MathML option)
1591 that caused an infinite loop for unparsable MathML.
1593pandoc (1.5)
1595 [ John MacFarlane ]
1597 * Added --mathml option. When this is selected, pandoc will convert
1598 TeX math into MathML.
1599 + Added data/MathMLinHTML.js, which is included when no URL is
1600 provided for --mathml. This allows MathML to be displayed (in
1601 better browsers) as text/html.
1602 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
1603 necessary; it was replaced by two lines in pandoc.hs.
1604 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
1605 single combined file, LaTeXMathML.js.
1607 * Added --data-dir option.
1608 This specifies a user data directory. If not specified, will default
1609 to ~/.pandoc on unix or Application Data\pandoc on Windows.
1610 Files placed in the user data directory will override system default
1611 data files.
1613 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
1614 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
1615 Nothing, no user directory is searched for an override.
1617 * Added 'plain' output format. This is similar to markdown, but
1618 removes links, pictures, inline formatting, and most anything that
1619 looks even vaguely markupish. The function writePlain is exported by
1620 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
1622 * Allow multi-line titles and authors in meta block.
1623 Titles may span multiple lines, provided continuation lines
1624 begin with a space character. Separate authors may be put on
1625 multiple lines, provided each line after the first begins with
1626 a space character. Each author must fit on one line. Multiple
1627 authors on a single line may still be separated by a semicolon.
1628 Based on a patch by Justin Bogner.
1630 * When given an absolute URI as parameter, pandoc will try to fetch
1631 the content via HTTP. So you can do:
1632 'pandoc -r html -w markdown http://www.fsf.org'
1633 Adds dependency on HTTP.
1635 * Made HTML reader much more forgiving.
1636 + Incorporated idea (from HXT) that an element can be closed
1637 by an open tag for another element.
1638 + Javascript is partially parsed to make sure that a <script>
1639 section is not closed by a </script> in a comment or string.
1640 + More lenient non-quoted attribute values.
1641 Now we accept anything but a space character, quote, or <>.
1642 This helps in parsing e.g. www.google.com!
1643 + Bare & signs are now parsed as a string. This is a common
1644 HTML mistake.
1645 + Skip a bare < in malformed HTML.
1647 * Removed html2markdown and hsmarkdown.
1648 + html2markdown is no longer needed, since you can now pass URI
1649 arguments to pandoc and directly convert web pages. (Note,
1650 however, that pandoc assumes the pages are UTF8. html2markdown
1651 made an attempt to guess the encoding and convert them.)
1652 + hsmarkdown is pointless -- a large executable that could be
1653 replaced by 'pandoc --strict'.
1655 * In most writers, an image in a paragraph by itself is now rendered
1656 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
1657 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
1658 rendered inline.
1660 * Depend on extensible-exceptions. This allows pandoc to be compiled
1661 on GHC 6.8.
1663 * Added --base-header-level option. For example, --base-header-level=2
1664 will change level 1 headers to level 2, level 2 to level 3, etc.
1665 Closes Debian #563416.
1667 * Incomplete support for RST tables (simple and grid).
1668 Thanks to Eric Kow. Colspans and rowspans not yet supported.
1670 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
1672 * MediaWiki writer: format links with relative URLs as wikilinks.
1673 The new rule: If the link target is an absolute URL, an external
1674 link is created. Otherwise, a wikilink is created.
1676 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
1677 identifier. Note: This may break links to sections that involve
1678 tildes.
1680 * Markdown(+lhs) reader: handle "inverse bird tracks."
1681 Inverse bird tracks (<) are used for haskell example code that is not
1682 part of the literate Haskell program. Resolves Issue #211.
1684 * LaTeX reader:
1685 + Recognize '\ ' (interword space).
1686 + Recognize nonbreaking space '~'.
1687 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
1688 section headers. Don't treat \section as inline LaTeX.
1689 Resolves Issue #202.
1690 + LaTeX reader: allow any special character to be escaped.
1691 Resolves Issue #221.
1692 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
1693 headers. Resolves Issue #207.
1695 * Use template variables for include-before/after.
1696 + These options now imply -s; previously they worked also in fragment
1697 mode.
1698 + Users can now adjust position of include-before and include-after
1699 text in the templates.
1700 + Default position of include-before moved back (as it was before 1.4)
1701 before table of contents.
1702 + Resolves Issue #217.
1704 * Don't print an empty table header: (all writers).
1705 Resolves Issue #210.
1707 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
1709 * HTML writer: Don't include TOC div if table of contents is empty.
1711 * Markdown writer: Fixed citations.
1712 Previously the markdown writer printed raw citation codes, e.g.
1713 [geach1970], rather than the expanded citations provided by
1714 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
1715 This means that the document produced can be processed as a markdown
1716 document without citeproc. Thanks to dsanson for reporting, and
1717 Andrea Rossato for the patch.
1719 * Improved and simplified title block in context template.
1720 Previously it caused an error if there was no title.
1721 This method should also be easier for users to customize.
1723 * Markdown reader:
1724 + Treat p., pp., sec., ch., as abbreviations in smart mode.
1725 + Disallow blank lines in inline code span.
1726 + Allow footnotes to be indented < 4 spaces.
1727 This fixes a regression. A test case has been added.
1728 + Escape spaces in URLs as %20. Previously they were incorrectly
1729 escaped as +, which is appropriate only for the query part of
1730 a URL. Resolves Issue #220.
1731 + Require two spaces after capital letter + period for list item.
1732 Otherwise "E. coli" starts a list. This might change the semantics
1733 of some existing documents, since previously the two-space
1734 requirement was only enforced when the second word started
1735 with a capital letter. But it is consistent with the existing
1736 documentation and follows the principle of least surprise.
1737 Resolves Issue #212.
1739 * LaTeX template: redefine labelwidth when using enumerate package.
1740 Otherwise the list labels (numbers) often extend past the left
1741 margin, which looks bad.
1743 * Mediawiki writer: Don't print a "== Notes ==" header before
1744 references. This is too English-centric. Writers can provide their
1745 own header at the end of the document.
1747 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
1748 level 2, etc. This seems to be correct; it's only by convention
1749 that wikipedia articles have level 2 headers at most.
1750 Patch due to Eric Kow.
1752 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
1753 data files don't need to have been installed. This removes the need to
1754 set HOME.
1756 * HTML reader:
1757 + Handle spaces before <html>. Resolves Issue #216.
1758 + Be forgiving in parsing a bare list within a list.
1759 The following is not valid xhtml, but the intent is clear:
1760 <ol>
1761 <li>one</li>
1762 <ol><li>sub</li></ol>
1763 <li>two</li>
1764 </ol>
1765 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
1767 * Updated INSTALL instructions. cabal method is now promoted.
1769 * Updated markdown2pdf man page. It no longer says all pandoc options
1770 are accepted.
1772 * README/man pages: Removed advice to pipe through tidy before HTML
1773 reader. This is obsolete, now that we have a forgiving HTML parser.
1775 * LaTeX writer: set numbersections template variable, so
1776 the section numbering options work again.
1778 * Removed obsolete Makefile.
1780 * Website: renamed index.txt.in -> index.txt.
1782 * New batch file to make-windows-installer.
1783 + Removed old Makefile.windows
1784 + Added make-windows-installer.bat
1785 + Modified default installer name in pandoc-setup.iss
1787 * Removed freebsd and macports directories.
1788 They are no longer up to date.
1790 * Setup.hs:
1791 + Made man page building sensitive to build verbosity.
1792 + Improved detection of highlighting support in test hook.
1793 + Install wrapper scripts into cabal bin directory.
1794 + Also simplified installManpages.
1795 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
1797 * Changed default of writerXeTeX to False.
1799 * HTML writer: don't include empty UL if --toc but no sections.
1800 Resolves Issue #199.
1802 * LaTeX writer:
1804 + If book, report, or memoir documentclass, use \chapter{}
1805 for first-level headers. Otherwise use \section{}.
1806 + Removed stLink, link template variable. Reason: we now always
1807 include hyperref in the template.
1809 * LaTeX template:
1811 + Only show \author if there are some.
1812 + Always include hyperref package. It is used not just for links but
1813 for toc, section heading bookmarks, footnotes, etc. Also added
1814 unicode=true on hyperref options.
1816 * markdown2pdf: always do at least two runs. hyperref bookmarks
1817 require this.
1819 * cabal file: Removed unneeded dependency on template-haskell.
1821 * Windows installer - fixed bug in data file locations.
1822 Resolves Issue #197.
1824 * Deprecated --custom-header in documentation.
1825 Removed old "Custom Headers" section in README.
1827pandoc (1.4)
1829 [ John MacFarlane ]
1831 * Pandoc will now compile with either GHC 6.10 or 6.12.
1832 + Don't use System.IO.UTF8 when compiling with 6.12
1833 + Use -fno-warn-unused-do-bind option when compiling with 6.12
1835 * Replaced old headers with templates. Now users have much more
1836 control over the way documents appear in --standalone mode,
1837 and writer code is simplified. Resolves Issues #59, 147.
1838 Every effort has been made to retain backwards compatibilty.
1839 So, the --custom-header option should still work as before.
1841 + Added Text.Pandoc.Templates. This provides functions for
1842 retrieving default templates and for rendering templates.
1843 + System templates (in the pandoc data directory) can be
1844 overridden by user templates in $HOME/.pandoc/templates.
1845 + Removed Text.Pandoc.DefaultHeaders.
1846 + Removed data/headers directory.
1847 + Added templates directory.
1848 + Added writerTemplate and writerVariables fields to WriterOptions.
1849 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
1850 + Changed --print-default-header to --print-default-template.
1851 + Added --template option.
1852 + Added -V/--variable option to set custom template variables.
1854 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
1856 + Removed need for TH in ODT module. Instead get reference.odt from
1857 data file at run time.
1858 + Removed TH dependency from S5 module. S5 module now exports
1859 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
1860 standalone.
1861 + Refactored LaTeXMathML not to use TH.
1863 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
1864 Meta [Inline] [String] String. Authors and date in Meta are now lists
1865 of Inline elements rather than raw strings. This means that they can
1866 be formatted and can include footnotes. NOTE: This may be a breaking
1867 change for those using pandoc as a library.
1869 * Added readDataFile to Text.Pandoc.Shared. This retrieves
1870 a data file from the user pandoc data directory (~/.pandoc
1871 on unix), or, if not found there, from the system data
1872 directory ($CABALDIR/shared/pandoc-VERSION/). All data
1873 files, including templates, LaTeXMathML.js, s5 styles,
1874 and reference.odt, can be overridden by the user.
1876 * s5 files moved from data/ui/default to s5/default.
1878 * Use unicode instead of entities in HTML and XML output. Resolves
1879 Issue #163.
1881 * Prettier HTML footnote references: put anchor inside sup,
1882 instead of other way. Resolves Issue #191. Thanks to
1883 infinity0x.
1885 * Added --xetex option to pandoc and markdown2pdf.
1886 If --xetex is specified, pandoc produces latex suitable for
1887 processing by xelatex, and markdown2pdf uses xelatex to create
1888 the PDF. Resolves Issue #185.
1890 * RTF writer: multiple authors now occupy multiple paragraphs rather
1891 than using a line break.
1893 * Man writer: now the "--after-body" will come after the "AUTHORS"
1894 section, whereas before it would come before it. This is a
1895 slight break from backwards compatibility.
1897 * Added --reference-odt option, so users may customize the styles
1898 used in pandoc-generated ODT files. Users may also place a
1899 default reference.odt in the ~\.pandoc directory.
1901 * ODT writer:
1902 + Indented and line-broke styles.xml so it can be modified more easily.
1903 + Omitted some unnecessary style declarations.
1904 + Don't wrap text in OpenDocument writer. The tags are too long, making
1905 wrapping ugly and pointless.
1907 * LaTeX reader: use \\ to separate multiple authors.
1909 * Markdown reader: use ; as separator between authors.
1910 This allows you to use ',' within author names: e.g. "John Jones, Jr."
1912 * S5 writer: use linebreak to separate authors in title page.
1914 * RST reader: Allow :: before lhs code block. The RST spec requires the
1915 :: before verbatim blocks. This :: should not be treated as literal
1916 colons. Resolves Issue #189.
1918 * Documented pandoc 1.3's new definition list syntax in README.
1919 (An oversight in the last release.)
1921 * markdown2pdf.hs:
1922 + interpret ! in a log as an error line.
1923 + --toc now works properly.
1925 * Changes in RunTests.hs:
1926 + Use the Diff library rather than a local copy of Diff.hs.
1927 (This vastly increases performance.) This change means that 'cabal
1928 test' presupposes that the Diff library is installed.
1929 + Removed tests/Diff.hs from cabal file.
1930 + Changed RunTests to use local environment. We need at least HOME, so
1931 pandoc can find its data directory.
1933 * Updated windows installer to install data files in the app directory.
1935 * Windows installer now installs portable wrappers hsmarkdown and
1936 markdown2pdf.
1938pandoc (1.3)
1940 [ John MacFarlane ]
1942 * Added --id-prefix option (Issue #41). This adds a prefix to all
1943 automatically generated HTML identifiers, which helps prevent
1944 duplicate identifiers when you're generating a fragment (say a blog
1945 post).
1947 * Added --indented-code-classes option. This specifies classes
1948 to use for indented code blocks. (Patch due to buttock; Issue #87.)
1950 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
1951 (Issue #150).
1953 * Improved syntax for markdown definition lists (Issue #24).
1954 Definition lists are now more compatible with PHP Markdown Extra.
1955 + You can have multiple definitions for a term (but still not
1956 multiple terms).
1957 + Multi-block definitions no longer need a column before each block
1958 (indeed, this will now cause multiple definitions).
1959 + The marker no longer needs to be flush with the left margin,
1960 but can be indented at or two spaces. Also, ~ as well as :
1961 can be used as the marker (this suggestion due to David
1962 Wheeler.)
1963 + There can now be a blank line between the term and the
1964 definitions.
1966 * Better looking simple tables. Resolves Issue #180.
1967 + Markdown reader: simple tables are now given column widths of 0.
1968 + Column width of 0 is interpreted as meaning: use default column width.
1969 + Writers now include explicit column width information only
1970 for multiline tables. (Exception: RTF writer, which requires
1971 column widths. In this case, columns are given equal widths,
1972 adding up to the text width.)
1973 + Simple tables should now look better in most output formats.
1975 * Allow markdown tables without headers (Issue #50).
1976 The new syntax is described in README. Also allow optional line of
1977 dashes at bottom of simple tables.
1979 * Compensate for width of final table column (Issue #144).
1981 * Treat a backslash followed by a newline as a hard line break
1982 in markdown. Resolves Issue #154. This is a nice alternative
1983 to markdown's "invisible" way of indicating hardline breaks
1984 using lines that end with two spaces.
1986 * Improved performance of markdown reader by ~10% by eliminating the
1987 need for a separate parsing pass for notes. Raw notes are now stored
1988 on the first pass (which parses references), then parsed when the
1989 note is inserted into the AST. The stateNotes field in ParserState
1990 is now a list of [(String, String)] pairs instead of [(String,
1991 [Block])].
1993 * In markdown reader, treat 4 or more * or _ in a row as literal
1994 text. (Trying to parse long strings of * or _ as strong or emph
1995 leads to exponential performance problems.)
1997 * Markdown reader: Use + rather than %20 for spaces in URLs.
1999 * Fixed htmlComment parser, adding a needed 'try'.
2001 * Don't print raw HTML in man output.
2003 * Allow . _ and ~ in header identifiers.
2005 * Specially mark code blocks that were "literate" in the input.
2006 They can then be treated differently in the writers. This allows
2007 authors to distinguish bits of the literate program they are writing
2008 from source code examples, even if the examples are marked as
2009 Haskell for highlighting. (Issue #174.)
2011 * Modified html+lhs output to use "haskell" highlighter instead
2012 of "literateHaskell". The highlighting module now adds bird tracks
2013 after highlighting (for HTML output), if the code block has the
2014 "literate" class. This gives better results, because kate's
2015 haskell highlighter is much better than the literateHaskell
2016 highlighter.
2018 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
2019 (Issue #137.)
2021 * Support for "..code-block" directive in RST reader. Not core
2022 RST, but used in Sphinx for code blocks annotated with syntax
2023 information. Thanks to Luke Plant for the patch.
2025 * Added "head" to list of block-level HTML tags. Resolves
2026 Issue #108.
2028 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
2030 * Set utf-8 encoding in texinfo headers.
2032 * Docbook writer: add ids to sections. Use link for internal links.
2033 (Issue #60.)
2035 * Blank lines after lists in MediaWiki writer.
2037 * Properly handle commented-out list items in markdown.
2038 Resolves Issue #142. Example:
2040 - a
2041 <!--
2042 - b
2043 -->
2044 - c
2046 * Changed heuristic in compactify. compactify has to decide whether a
2047 Para that ends a list is a Para intentionally, or just because of
2048 the blank lines at the end of every list. In the latter case the
2049 Para is turned to a Plain. The old heuristic was: change final Para
2050 to Plain iff the other items all end in Plain. This produces bad
2051 results when, for example, an item contains just a Plain and an HTML
2052 comment, as it does in the list above. The new heuristic: change
2053 final Para to Plain iff the other items don't contain a Para.
2055 * Added % as an rst underline character. Resolves Issue #173.
2057 * Fix inline math parser so that \$ is allowed in math.
2058 Resolves Issue #169.
2060 * Translate \int (integral) into unicode when using unicode math
2061 method. Resolves Issue #177.
2063 * markdown2pdf.hs improvements:
2064 + Use System.IO.UTF8.
2065 + Print error messages on last attempt.
2066 + Do not create a backup when overwriting a PDF (Issue #166).
2067 + Accept --longopt=val options.
2068 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
2069 it is properly cleaned.
2071 * Added haddock comments warning that readers assume \n line endings.
2073 * Updated COPYRIGHT file.
2075 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
2076 markdown2pdf. Otherwise strip tries to strip shell scripts when you
2077 install using 'make'.
2079 * Changed Makefile so it doesn't build Haskell wrappers.
2081 * Fixed Makefile so it doesn't try to build man pages in build-doc.
2083 * Install pcre3.dll in Windows install script; this allows us to
2084 package a version of pandoc with highlighting support.
2086pandoc (1.2.1)
2088 [ John MacFarlane ]
2090 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
2091 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
2092 side effect: strings of 0 spaces were interpreted as indentation.
2093 So, with --preserve-tabs, unindented paragraphs were treated as
2094 code. Resolves Issue #138.
2096 * HTML writer: wrap sections in divs. Resolves Issue #70.
2098 + hierarchicalize has been rationalized; it builds a hierarchical
2099 representation of the document from the headers, and simultaneously
2100 gives each section a unique identifier based on the heading title.
2101 + Identifiers are now attached to the divs rather than
2102 to the headers themselves.
2103 + Table of content backlinks go to the beginning of the table, rather
2104 than to the section reference that was clicked.
2105 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
2106 from the HTML writer, since it is now consumed only by
2107 hierarchicalize.
2108 + In --strict mode, pandoc just prints bare headings, as before
2109 (unless --toc has been specified).
2110 + In s5 output, it does not wrap sections in divs, as that seems to
2111 confuse the s5 javascript.
2113 * Man writer: break lines at end of each sentence. groff expects this
2114 and treats '.' and '?' differently when followed by line ending as
2115 opposed to ordinary space. Also, don't escape periods. Instead, use
2116 zero-width character \& to avoid unwanted interpretation of periods
2117 at start of line. Resolves Issue #148.
2119 * Markdown writer: Added '#' and '>' to list of characters to be
2120 escaped in markdown output. Removed '<', as it is not an officially
2121 escapable character. This partially resolves Issue #96.
2123 * Make --smart the default for man output format. Otherwise we have
2124 trouble dividing lists of endlines into sentences.
2126 * DocBook writer: Use language attribute to indicate source language
2127 in code blocks.
2129 * RST reader:
2131 + Allow # to continue list, even if the list was started with an
2132 explicit marker. For example:
2134 A. my list
2135 #. continued
2137 Resolves Issue #140.
2138 + Allow continuation lines in line blocks. Also added test cases for
2139 line blocks for RST reader. Resolves Issue #149.
2140 + Allow explicit links with spaces in URL: `link <to this>`_
2142 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
2143 (which is not in LaTeX) and recognize all the amsmath environments
2144 that are alternatives to eqnarray, namely equation, equation*,
2145 gather, gather*, gathered, multline, multline*, align, align*,
2146 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
2147 Thanks to shreevatsa.public for the patch.
2149 * Markdown reader:
2151 + Allow -, _, :, . in markdown attribute names. These are legal in
2152 XML attribute names.
2153 + Use non-breaking spaces in abbreviations.
2154 + Markdown reader: improved efficiency of abbreviation parsing.
2155 Instead of a separate abbrev parser, we just check for
2156 abbreviations each time we parse a string. This gives a huge
2157 performance boost with -S. Resolves Issue #141.
2159 * Improved efficiency of shared parsers: hexNum, htmlComment,
2160 whitespace, indentSpaces.
2162 * Export HTMLMathMethod in Text.Pandoc.
2164 * Export languagesByExtension in Text.Pandoc.Highlighting.
2166 * Added new Haskell version of markdown2pdf, due to
2167 Paulo Tanimoto. This should be more portable than the old
2168 shell script.
2170 * Made 'pandoc -v' more explicit about compiler options.
2171 Resolves Issue #139.
2173 * pandoc.hs: Made --strict compatible with --standalone, --toc.
2175 * Use Paths_pandoc to get version number, instead of hard-coding it
2176 into Text/Pandoc.hs.
2178pandoc (1.2)
2180 [ John MacFarlane ]
2182 * Added support for literate Haskell. lhs support is triggered by
2183 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
2184 Haskell LaTeX. '.lhs' files are treated by default as literate
2185 markdown.
2187 + Added stateLiterateHaskell to parser state.
2188 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
2189 + Added parser for |inline lhs| to LaTeX reader.
2190 + Added writerLiterateHaskell to WriterOptions.
2191 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
2192 + Added definition of code environment to LaTeX header.
2193 + Added tests (run only if highlighting support compiled in).
2194 + Documented lhs features in man page and README.
2196 * In Text.Pandoc.Definition, added processWith, processWithM,
2197 and queryWith, and deprecated processPandoc and queryPandoc
2198 for these more general functions.
2200 * Fixed bug in mediawiki writer: improper closing tags in tables.
2201 Thanks to Benct Philip Jonsson for reporting the bug.
2203 * Added --email-obfuscation option.
2205 + Added writer option for email obfuscation.
2206 + Implemented email obfuscation options in HTML writer.
2207 + Added option to option parser.
2208 + Documented in README and pandoc man page.
2209 + Resolves Issue #97.
2211 * LaTeX writer: fixed bug with empty table cells.
2212 Resolves Issue #107. Thanks to rodja.trappe for the patch.
2214 * Fixed bug with header spacing in Markdown and RST writers.
2215 A null header (Meta [] [] []) should not cause a blank line
2216 at the beginning of output. But a blank line is needed between
2217 a non-null header and the main text.
2219 * Markdown reader: Relax spacing rules for $$ in display math. Now
2220 space and newlines are allowed after the opening $$ and before the
2221 closing $$. However, the display math cannot contain an entirely
2222 blank line. Resolves Issue #105.
2224 * Markdown reader: Gobble space after Plain blocks containing only
2225 raw html inline. Otherwise following header blocks are not parsed
2226 correctly, since the parser sees blank space before them. Resolves
2227 Issue #124.
2229 * Markdown reader: Allow " as well as '' to end a latex double-quote.
2231 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
2232 Resolves Issue #109.
2234 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
2236 + Added hang' function to Text.Pandoc.Shared; this will be used instead
2237 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
2238 is upgraded, we can go back to hang.
2239 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
2240 + Use hang' (and some different techniques) in RST and markdown writers.
2241 Some output is now a bit different.
2243 * Brought citeproc support up to date for citeproc-hs-0.2.
2244 (Patch by Andrea Rossato.)
2246 * Moved all haskell source to src subdirectory. Renamed Main.hs to
2247 pandoc.hs.
2249 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
2250 For now, keeping the old shell script too.
2252 * Added TemplateHaskell to Extensions for executable, removed
2253 -threaded for library. Thanks to duncan.coutts for the bug report.
2254 Resolves Issue #121.
2256 * Moved some Extra-Source-Files to Data-Files.
2258 * Moved tabFilter to Shared.
2260 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
2261 preserve tabs.
2263 * Minor code cleanup based on hlint suggestions.
2265pandoc (1.1)
2267 [ John MacFarlane ]
2269 * Main.hs:
2271 + Changed date on copyright message in Main.hs.
2272 + Have the '-v' option print syntax highlighting languages
2273 separated by commas, and wrapped in lines, instead of in five
2274 columns as before.
2276 * Added --jsmath option. Resolves Issue #68.
2278 + Added --jsmath option to Main.hs
2279 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
2280 + Handle math appropriately in HTML writer when JsMath selected.
2281 + Documented the option in README and man page.
2283 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
2284 for tight and loose lists. Final Para is changed to Plain if all
2285 other list items *end* with a Plain block. Addresses Issue #99.
2287 * HTML reader:
2289 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
2290 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
2291 Added rawVerbatimBlock parser. Resolves Issue #94.
2293 * Markdown reader:
2295 + Allow URLs with spaces in them in links and references, but escape
2296 them as "%20".
2297 + Allow blank space at the end of horizontal rules.
2299 * RST reader: Modified 'unknownDirective' parser to handle comment
2300 blocks correctly, and added tests for comment blocks. Resolves Issue
2301 #86. Closes Debian Bug #500662.
2303 * HTML writer:
2305 + Include classes on tr elements in HTML output:
2306 "header", "odd", "even". This allows tables to be styled with
2307 lines in alternating colors. Resolves Issue #91.
2308 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
2309 This prevents parts of the document that are not math from being
2310 interpreted as math by LaTeXMathML.js.
2312 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
2313 which were formerly ignored. Resolves Issue #95.
2315 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
2316 between a footnote and immediately following nonspace characters in
2317 LaTeX and ConTeXt output. (This gets interpreted as a space, which
2318 is not desired in cases like "text^[note]---".) Resolves Issue #93.
2320 * Windows installer: Don't require admin privileges to run
2321 installer. Modified pandoc-setup.iss, and changed modpath.iss to
2322 modify HKCU path if user lacks admin privileges. Also fixed case
2323 where oldpath is empty (previously this led to the new path
2324 beginning with a semicolon).
2326 * Updated INSTALL instructions for Arch packages and OS X install using
2327 cabal-install.
2329 * Removed the (now unneeded) debian directory.
2330 Removed empty Codec and System directories.
2332 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
2334 * Modified Setup.hs so that the "test" target returns an error status
2335 when tests fail, and "build" returns a success status if
2336 the build succeeds. Resolves Issue #100.
2338 * Added BUGS to files in tarball.
2341pandoc (1.0.0.1)
2343 [ John MacFarlane ]
2345 * Removed spurious reference to pdf output format from pandoc(1) man page.
2347pandoc (1.0)
2349 [ Andrea Rossato ]
2351 * Added new OpenDocument writer.
2353 * Added support for SmallCaps inline element.
2355 * Added support for integrating pandoc with citeproc-hs.
2357 + Added Cite element to definition and writers.
2358 + Added Text.Pandoc.Biblio module
2359 + Note: This support is included only if the 'citeproc'
2360 Cabal configuration flag is set.
2362 * Made Pandoc data structure an instance of Typeable.
2363 Added new processPandoc and queryPandoc functions, to query
2364 or transform matching elements in a Pandoc structure.
2366 [ Peter Wang ]
2368 * Added new Texinfo writer.
2370 [ John MacFarlane ]
2372 * Changes to Texinfo writer:
2374 + No space between paragraph and following @verbatim (provides more
2375 pleasing appearance in text formats)
2376 + Blank line consistently after list environments.
2377 + Removed deVerb.
2378 + Use @code instead of @verb for inline code (this solves the character
2379 escaping problem for texi2dvi and texi2pdf).
2380 + Added news of Texinfo writer to README.
2381 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
2382 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
2383 default output extension.
2384 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
2386 * Added tests for OpenDocument writer.
2388 * Added ODT writer (using zip-archive library to package output of
2389 OpenDocument writer). Added odt-styles directory with default ODT styles.
2391 * Added new mediawiki writer and tests.
2393 * Markdown reader: Added support for delimited code blocks, with optional
2394 syntax highlighting using highlighting-kate (if the 'highlighting'
2395 configuration option is selected).
2397 + Currently highlighting is supported only in the HTML writer.
2398 + Delimited code blocks can have attributes; using the language name as
2399 class triggers highlighting.
2400 + New Attributes parameter in CodeBlock structure.
2401 + --version now indicates whether syntax highlighting support is compiled
2402 in, and prints a list of supported languages
2404 * Removed debian directory. Pandoc is no longer a native debian package.
2406 * Changes to build process: pandoc can now be built from the repository
2407 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
2408 without Cygwin).
2410 + Include shell scripts themselves in repo, rather than generating from wrappers.
2411 Removed wrappers directory and wrappers Makefile target.
2412 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
2413 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
2414 from templates in the templates/ directory. Instead, they use template
2415 haskell to read data at compile time from the relevant files in data/.
2416 Template haskell functions go in a new module, Text.Pandoc.TH.
2417 + man pages are now generated in Setup.hs hook, not by Makefile
2418 + Makefile 'tarball' target now calls Cabal's 'sdist'
2419 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
2420 + Added "Build-Type" field to pandoc.cabal to avoid warning.
2421 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
2422 so 'sdist' and 'clean' will work properly.
2423 + Setup.hs now generates man pages in a postbuild hook.
2424 + Added dependency-checking to Setup.hs, so it only rebuilds things
2425 that need rebuilding.
2426 + Added 'library' and 'executable' configuration flags.
2427 Cabal can now be told to build just the library or just the executable.
2428 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
2429 For example: CABALOPTS=-fhighlighting make
2431 * Rewrote test suite so it doesn't depend on perl or unix tools.
2433 + Replaced old runtests.pl with a Haskell script RunTests.hs.
2434 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
2435 + Added test hook to Setup.hs, so tests may be run from cabal.
2436 + Changed Makefile's 'test' target to run tests via cabal.
2437 + Removed old generate.sh.
2438 + Since we no longer have 'sed' to filter out raw HTML sections
2439 from the docbook writer test, or raw LaTeX sections from the
2440 context writer test, we now just include these sections.
2441 They can be taken out if it is necessary to process the files.
2442 + Updated latex and context writer tests to remove extra spaces
2443 after '\\item'
2444 + Added a markdown table reader test.
2445 + Added markdown-reader-more.txt to test suite, for additional test cases
2446 for raw ConTeXt environments and more.
2448 * Compatibility fixes for CPP, Cabal, and haddock:
2450 + Use CPP in "Extensions" field in pandoc.cabal.
2451 + Removed use of backslash string continuations in source files.
2453 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
2454 base >= 3.
2456 * Require parsec < 3.
2457 The compatibility module in parsec 3.0.0 gives far worse performance than
2458 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
2459 version of parsec, and then we'll go to parsec 3.0.0.
2461 * Removed Text.Regex dependencies by rewriting using plain Haskell
2462 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
2464 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
2466 * Makefile:
2468 + Added 'configure' as dependency of 'uninstall-all'.
2469 (It uses the Cabal build program.)
2470 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
2471 Note that Cabal will automatically choose the ghc-pkg appropriate
2472 for the compiler selected, so normally specifying GHC by itself
2473 is sufficient.
2475 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
2476 its IO and conversion functions.
2478 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
2479 everything is -Wall clean.
2481 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
2482 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
2483 (These are caused by the Lift instance for ByteString.)
2485 * Changed the comment used to replace unsafe HTML if sanitize-html option
2486 selected.
2488 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
2490 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
2492 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
2493 "nbsp" isn't a predefined XML entity.
2495 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
2496 Added some try's in ordered list parsers.
2498 * Man writer: don't escape " as \".
2500 * Allow newline before URL in markdown link references. Resolves Issue #81.
2501 Added tests for this issue in new "markdown-reader-more" tests.
2502 Changed RunTests.hs to run these tests.
2504 * Support for display math. Resolves Issue #47.
2506 + Added a DisplayMath/InlineMath selector to Math inlines.
2507 + Markdown parser yields DisplayMath for $$...$$.
2508 + LaTeX parser yields DisplayMath when appropriate. Removed
2509 mathBlock parsers, since the same effect is achieved by the math
2510 inline parsers, now that they handle display math.
2511 + Writers handle DisplayMath as appropriate for the format.
2512 + Modified tests accordingly; added new tests for display math.
2514 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
2515 to LaTeX in its display of math, and supports many non-math LaTeX environments.
2517 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
2518 + Modified HTML writer to print raw TeX when LaTeXMathML is
2519 being used instead of suppressing it.
2520 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
2521 + Replaced ASCIIMathML with LaTeXMathML in source files.
2522 + Modified README and pandoc man page source.
2523 + Added --latexmathml option (kept --asciimathml as a synonym
2524 for backwards compatibility)
2526 * Markdown reader: Parse setext headers before atx headers.
2527 Test case:
2528 # hi
2529 ====
2530 parsed by Markdown.pl as an H1 header with contents "# hi".
2532 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
2533 The marker on the first list item determines the type of the whole
2534 list. Thus, a list like
2535 1. one
2536 - two
2537 * three
2538 gets parsed as a single ordered list. (Previous versions of pandoc
2539 treated this as an ordered list with an unordered sublist.)
2541 * Markdown smart typography:
2543 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
2544 + Use nonbreaking spaces after known abbreviations in markdown parser.
2545 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
2546 not produce a sentence-separating space. Resolves Issue #75.
2548 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
2550 * Treat '\ ' in (extended) markdown as nonbreaking space.
2551 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
2553 * The '--sanitize-html' option now examines URIs in markdown links
2554 and images, and in HTML href and src attributes. If the URI scheme
2555 is not on a whitelist of safe schemes, it is rejected. The main point
2556 is to prevent cross-site scripting attacks using 'javascript:' URIs.
2557 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
2558 and http://ha.ckers.org/xss.html. Resolves Issue #62.
2560 * HTML writer:
2562 + Override Text.XHtml's stringToHtml function,
2563 so that characters below 0xff are not converted to numerical entity
2564 references. Also convert '\160' to "&nbsp;". This should aid readability
2565 and editability of the HTML source. It does presuppose that the HTML
2566 will be served as UTF-8.
2567 + In code blocks, change leading newlines to <br /> tags.
2568 (Some browsers ignore them.) Resolves Issue #71.
2569 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
2570 + Use style attributes rather than css classes for strikethrough
2571 and ordered list styles. This works better when fragments, rather than
2572 standalone documents, are generated.
2574 * HTML reader: Count anything that isn't a known block (HTML) tag as an
2575 inline tag (rather than the other way around). Added "html", "head", and
2576 "body" to list of block tags. Resolves Issue #66, allowing
2577 <lj> to count as an inline tag.
2579 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
2580 boldface, and other inline elements. Resolves Issue #64.
2582 * LaTeX reader: improvements in raw LaTeX parsing.
2584 + "loose punctuation" (like {}) parsed as Space
2585 + Para elements must contain more than Str "" and Space elements
2586 + Added parser for "\ignore" command used in literate haskell.
2587 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
2588 mode, these parsers simply strip off the command part and allow
2589 the arguments to be parsed normally. So, for example,
2590 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
2591 Str "{\\emph{hi}}".
2592 + Parse lhs "code" environments as verbatim.
2593 Refactored parsers for verbatim environments.
2594 + Removed specialEnvironment parser.
2595 + parse '{}', if present, after \textless, \textgreater,
2596 \textbar, \textbackslash, \ldots.
2597 + Parse unescaped special characters verbatim rather than
2598 changing them to spaces. This way arguments of unknown
2599 commands will appear in braces.
2601 * Parse raw ConTeXt environments as TeX in markdown reader.
2602 Resolves Issue #73.
2604 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
2606 * Made some structural changes to parsing of raw LaTeX environments.
2607 Previously there was a special block parser for LaTeX environments.
2608 It returned a Para element containing the raw TeX inline. This has
2609 been removed, and the raw LaTeX environment parser is now used in the
2610 rawLaTeXInline parser. The effect is exactly the same, except that we
2611 can now handle consecutive LaTeX and ConTeXt environments not separated
2612 by spaces. This new flexibility is required by the example in
2613 Issue #73:
2615 \placeformula \startformula
2616 L_{1} = L_{2}
2617 \stopformula
2619 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
2620 returns a string) rather than rawLaTeXEnvironment (which returns a block
2621 element). This is more likely to be useful in other applications.
2623 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
2624 \textsubscript conflicts with a definition in the memoir class.
2625 Resolves Issue #65.
2627 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
2629 * Added amsmath package to default LaTeX header. Resolves Issue #48.
2631 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
2632 list introduction lines.
2634 * Changed Float to Double in definition of Table element.
2635 (Double is more efficient in GHC.)
2637 * Fixed bug in Markdown parser: regular $s triggering math mode.
2638 For example: "shoes ($20) and socks ($5)."
2639 The fix consists in two new restrictions:
2641 + the $ that ends a math span may not be directly followed by a digit.
2642 + no blank lines may be included within a math span.
2644 Thanks to Joseph Reagle for noticing the bug.
2646 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
2647 Removed 'joinWithSep' from Text.Pandoc.Shared.
2649 * Updated README and man pages. Acknowledge contributors in README.
2650 Added paragraph to README about producing S5 with separate CSS/javascript.
2652 * Updated INSTALL to reflect new build system (including configuration
2653 options) and document new dependencies. Added note to INSTALL that
2654 Cabal >= 1.2 is required for build. Resolves Issue #74.
2656 * Fixed some haddock documentation errors.
2658 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
2660pandoc (0.46) unstable; urgency=low
2662 [ John MacFarlane ]
2664 * Made -H, -A, and -B options cumulative: if they are specified
2665 multiple times, multiple files will be included.
2667 * Added optional HTML sanitization using a whitelist.
2668 When this option is specified (--sanitize-html on the command line),
2669 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
2670 attributes will be removed. This option should be especially useful
2671 for those who want to use pandoc libraries in web applications, where
2672 users will provide the input.
2674 + Main.hs: Added --sanitize-html option.
2676 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
2678 + Text.Pandoc.Readers.HTML:
2679 - Added whitelists of sanitaryTags and sanitaryAttributes.
2680 - Added parsers to check these lists (and state) to see if a given
2681 tag or attribute should be counted unsafe.
2682 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
2683 with comments.
2684 - Modified htmlAttribute to remove unsafe attributes.
2685 - Modified htmlScript and htmlStyle to remove these elements if
2686 unsafe.
2688 + Modified README and man pages to document new option.
2690 * Improved handling of email addresses in markdown and reStructuredText.
2691 Consolidated uri and email address parsers. (Resolves Issue #37.)
2693 + New emailAddress and uri parsers in Text.Pandoc.Shared.
2694 - uri parser uses parseURI from Network.URI.
2695 - emailAddress parser properly handles email addresses with periods
2696 in them.
2698 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
2699 and Text.Pandoc.Readers.Markdown.
2701 * Markdown reader:
2703 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
2704 nested in an Emph. (A '*' is only recognized as the end of the
2705 emphasis if it's not the beginning of a strong emphasis.)
2707 + Moved blockQuote parser before list parsers for performance.
2709 + Modified 'source' parser to allow backslash-escapes in URLs.
2710 So, for example, [my](/url\(1\)) yields a link to /url(1).
2711 Resolves Issue #34.
2713 + Disallowed links within links. (Resolves Issue #35.)
2714 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
2715 instead of hard-coding the inline parser takes an inline parser
2716 as a parameter.
2717 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
2718 - Removed unneeded inlineString function.
2719 - Added inlineNonLink parser, which is now used in the definition of
2720 reference.
2721 - Added inlineParsers list and redefined inline and inlineNonLink parsers
2722 in terms of it.
2723 - Added failIfLink parser.
2725 + Better handling of parentheses in URLs and quotation marks in titles.
2726 - 'source' parser first tries to parse URL with balanced parentheses;
2727 if that doesn't work, it tries to parse everything beginning with
2728 '(' and ending with ')'.
2729 - source parser now uses an auxiliary function source'.
2730 - linkTitle parser simplified and improved, under assumption that it
2731 will be called in context of source'.
2733 + Make 'block' conditional on strictness state, instead of using
2734 failIfStrict in block parsers. Use a different ordering of parsers
2735 in strict mode (raw HTML block before paragraph) for performance.
2736 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
2737 Simplified htmlBlock, since we know it's only called in strict
2738 mode.
2740 + Improved handling of raw HTML. (Resolves Issue #36.)
2741 - Tags that can be either block or inline (e.g. <ins>) should
2742 be treated as block when appropriate and as inline when
2743 appropriate. Thus, for example,
2744 <ins>hi</ins>
2745 should be treated as a paragraph with inline <ins> tags, while
2746 <ins>
2747 hi
2748 </ins>
2749 should be treated as a paragraph within <ins> tags.
2750 - Moved htmlBlock after para in list of block parsers. This ensures
2751 that tags that can be either block or inline get parsed as inline
2752 when appropriate.
2753 - Modified rawHtmlInline' so that block elements aren't treated as
2754 inline.
2755 - Modified para parser so that paragraphs containing only HTML tags and
2756 blank space are not allowed. Treat these as raw HTML blocks instead.
2758 + Fixed bug wherein HTML preceding a code block could cause it to
2759 be parsed as a paragraph. The problem is that the HTML parser
2760 used to eat all blank space after an HTML block, including the
2761 indentation of the code block. (Resolves Issue #39.)
2762 - In Text.Pandoc.Readers.HTML, removed parsing of following space
2763 from rawHtmlBlock.
2764 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
2765 indentation is eaten *only* on the first line after the HTML
2766 block. This means that in
2767 <div>
2768 foo
2769 <div>
2770 the foo won't be treated as a code block, but in
2771 <div>
2773 foo
2775 </div>
2776 it will. This seems the right approach for least surprise.
2778 * RST reader:
2780 + Fixed bug in parsing explicit links (resolves Issue #44).
2781 The problem was that we were looking for inlines until a '<' character
2782 signaled the start of the URL; so, if you hit a reference-style link,
2783 it would keep looking til the end of the document. Fix: change
2784 inline => (notFollowedBy (char '`') >> inline). Note that this won't
2785 allow code inlines in links, but these aren't allowed in resT anyway.
2787 + Cleaned up parsing of reference names in key blocks and links.
2788 Allow nonquoted reference links to contain isolated '.', '-', '_', so
2789 so that strings like 'a_b_' count as links.
2791 + Removed unnecessary check for following link in str.
2792 This is unnecessary now that link is above str in the definition of
2793 'inline'.
2795 * HTML reader:
2797 + Modified rawHtmlBlock so it parses </html> and </body> tags.
2798 This allows these tags to be handled correctly in Markdown.
2799 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
2800 since these are handled in parseHtml. (Resolves Issue #38.)
2802 + Fixed bug (emph parser was looking for <IT> tag, not <I>).
2804 + Don't interpret contents of style tags as markdown.
2805 (Resolves Issue #40.)
2806 - Added htmlStyle, analagous to htmlScript.
2807 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
2808 - Moved "script" from the list of tags that can be either block or
2809 inline to the list of block tags.
2811 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
2812 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
2813 inline tags would be included in raw HTML blocks.
2815 + Modified anyHtmlBlockTag to test for (not inline) rather than
2816 directly for block. This allows us to handle e.g. docbook in
2817 the markdown reader.
2819 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
2820 Updated LaTeX reader test to use --parse-raw.
2822 * HTML writer:
2824 + Modified rules for automatic HTML header identifiers to
2825 ensure that identifiers begin with an alphabetic character.
2826 The new rules are described in README. (Resolves Issue #33.)
2828 + Changed handling of titles in HTML writer so you don't get
2829 "titleprefix - " followed by nothing.
2831 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
2832 spacing. Each block element is wrapped with either Pad or Reg.
2833 Pad'ed elements are guaranteed to have a blank line in between.
2835 * RST writer:
2837 + Refactored RST writer to use a record instead of a tuple for state,
2838 and to include options in state so it doesn't need to be passed as
2839 a parameter.
2841 + Use an interpreted text role to render math in restructuredText.
2842 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
2843 strategy.
2845 [ Recai Oktaş ]
2847 * Debian packaging changes:
2849 + Remove the empty 'include' directory in -dev package, which lintian
2850 complains about.
2851 + Bump Standarts-Version to 3.7.3.
2852 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
2853 lintian.
2855 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
2857pandoc (0.45) unstable; urgency=low
2859 [ John MacFarlane ]
2861 * Simplified parsing of reference keys and notes in markdown and RST
2862 readers: The Reference data structure from Text.Pandoc.Shared is no
2863 longer needed, since referenceKey and noteBlock parses return strings
2864 (as many blank lines as were occupied by the key or note) and update
2865 state themselves. getPosition and setPosition are now used to ensure
2866 that error messages will give the correct line number. This yields
2867 cleaner (and slightly faster) code, with more accurate parsing error
2868 messages.
2870 * Added new Math inline element:
2872 + Markdown and LaTeX readers now convert TeX math into Math elements,
2873 not TeX.
2874 + This allows math to be treated differently from raw TeX in output.
2875 TeX elements are no longer printed in output formats other than
2876 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
2878 * New default handling of math in writers:
2880 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
2881 parses raw TeX math and outputs a string of Pandoc inlines that
2882 tries to render it as far as possible using unicode characters,
2883 lapsing into literal TeX when needed.
2884 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
2885 and Docbook, if no other method for displaying math in HTML is
2886 specified. Enclosing $'s are no longer printed by default.
2887 + By default, math is put inside <span class="math">. This way it can be
2888 distinguished from the surrounding text, e.g. put in a different
2889 font.
2891 * New --gladtex and --mimetex options for display of math in HTML:
2893 + If --gladtex is specified, math is output between <eq> tags, so
2894 it can be processed by gladTeX.
2895 + If --mimetex is specified, math is put in <img> tags with a link
2896 to the mimetex CGI script (or any other script that takes TeX math
2897 as input and outputs an image). The URL of the script may be
2898 specified, but defaults to /cgi-bin/mimetex.cgi.
2899 + HTMLMathMethod structure in WriterOptions keeps track of how to
2900 display math in HTML output.
2901 + Updated README with a description of the four options for displaying
2902 math in HTML.
2904 * HTML reader:
2906 + Fixed bug: parser for minimized attributes should not swallow
2907 trailing spaces.
2908 + Simplified HTML attribute parsing.
2909 + Changed parsing of code blocks in HTML reader: <code> tag is no
2910 longer needed. <pre> suffices. All HTML tags in the code block
2911 (e.g. for syntax highlighting) are skipped, because they are not
2912 portable to other output formats. A <code>...</code> block not
2913 surrounded by <pre> now counts as inline HTML, not a code block.
2914 + Remove just one leading and one trailing newline from contents of
2915 <pre>...</pre> in codeBlock parser.
2917 * Markdown reader:
2919 + Removed support for box-style block quotes.
2920 + Require space before title in links and references.
2921 This fixes a bug in parsing URLs like http://silly/url(withparen).
2922 + Improved and simplified setextHeader parser.
2923 + Fixed logic in smart quote parsing, adding some needed 'try'
2924 statements.
2925 + Fixed smart quote parsing so that unicode characters 8216 and 8217
2926 are recognized as single quotes, and 8220 and 8221 as double quotes.
2928 * RST reader:
2930 + Fixed bug in parsing of code blocks. Previously a full tab indent
2931 was required, but RST allows code to be indented any amount.
2932 Resolves Issue #27.
2933 + Allow field lists to be indented.
2934 + Parse the contents of field lists instead of treating as a raw string.
2935 + Represent field lists as definition lists instead of blockquotes.
2936 + Fixed bug in which metadata would be overridden if the document
2937 contained multiple field lists.
2938 + Parse fields associated with '.. image::' blocks, and use 'alt'
2939 field, if given, for image alt and title attributes.
2941 * LaTeX reader:
2943 + Modified specialChar so that '"' characters are parsed.
2944 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
2946 * HTML writer:
2948 + Changes in handling of math (see above).
2949 + Don't produce HTML for table of contents if there are
2950 no headers. (This would be an empty list, which is invalid XHTML.)
2952 * Markdown writer:
2954 + Don't print title attribute if title is empty. (This differs from
2955 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
2956 Gruber has indicated that he prefers this behavior.) Adjusted test
2957 suite accordingly.
2958 + Fixed incorrect line wrapping in paragraphs including hard line
2959 breaks. Resolves Issue #25.
2960 + Fixed bug in markdown writer: If an ordered list item began with
2961 a marker greater than 3 characters in width, and the item took more
2962 than one line, it would appear on the line after the list marker,
2963 e.g.:
2965 (12)
2966 My list item.
2967 Multiline.
2969 Now it works as follows:
2971 (12) My list item.
2972 Multiline.
2974 * RST writer
2976 + Fixed bug in RST writer's handling of ordered lists. Previously,
2977 list items with multiple lines would not always line up with
2978 single-line list items. Now, list items are nested the length of
2979 the list marker + 1. This looks better and ensures that list items
2980 all line up. (Note that list markers are padded to the length of
2981 the longest list marker in the series.)
2982 + Use 3-space indent for unordered lists.
2983 + If label for a link reference contains a colon, surround it by `
2984 signs so it won't be interpreted as the end of the link label.
2986 * LaTeX writer:
2988 + Cleaner output for footnotes. Footnotes now always begin on a new
2989 line, and the final } is on a line by itself only when it needs to
2990 be (i.e. only when the note ends with a Verbatim environment).
2991 + Added writer options to state, so state doesn't need to be passed as
2992 a parameter.
2993 + Text wrapping now provided, using wrapTeXIfNeeded.
2995 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
2996 (thanks to Idris Samawi Hamid for suggestions).
2998 + PrettyPrint module now used for output.
2999 + Writer options are now in state, so they don't have to be passed as
3000 a parameter.
3001 + Text wrapping now provided, using wrapTeXIfNeeded.
3002 + Better treatment of footnotes: footnotes are always on lines by
3003 themselves, and the final } is on a line by itself only when
3004 it needs to be (after \stoptyping).
3005 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
3006 depending on whether --number-sections option is selected.
3007 + Extra blank line inserted after \stopitemize
3008 + Use new, "official" definition of blockquote environment. Also, use
3009 blank line after \startblockquote to balance blank line at the end.
3010 + Both itemized and enumerated lists are now generated using
3011 \start-stopitemize, with appropriate options. Removed definitions
3012 of ltxenum and ltxitem, which are no longer needed. Provided
3013 defaults for itemized lists in the preamble. State keeps track of
3014 ordered list level, so that when default numbering is specified,
3015 the appropriate scheme can be used.
3016 + Changed \useurl to \useURL.
3017 + Changed link color from red to blue.
3018 + Use \subsubsubsubsection etc., since these are supported
3019 (up to at least sub x 5).
3021 * Text.Pandoc.Shared:
3023 + Save and restore position in parseFromString, so that accurate
3024 error messages can be given.
3025 + Improved efficiency of romanNumeral parser.
3026 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
3027 that footnotes occur on lines by themselves (to make them
3028 easier to see and move) and do not screw up line wrapping.
3030 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
3031 if present. Windows Notepad and other applications insert a
3032 BOM at the beginning of a UTF8 file.
3034 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
3035 addition to "\r\n" and '\n').
3037 * Added a writer option for wrapped text and a command-line option
3038 '--no-wrap', which disables text wrapping and minimizes whitespace
3039 in HTML. (Resolves Issue #26.)
3041 + Added support for '--no-wrap' to Main.hs.
3042 + Added wrapIfNeeded function to Text.Pandoc.Shared.
3043 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
3044 Markdown writers.
3045 + Added render and renderFragment helpers to HTML writer.
3047 * Modified html2markdown to run tidy only if the HTML cannot be
3048 parsed. Previously html2markdown piped all input through tidy
3049 before passing it to pandoc. This caused problems on certain pages
3050 (e.g. http://daringfireball.com/markdown) which have well-formed
3051 XHTML that causes tidy to choke. The solution is to pipe through
3052 tidy only if pandoc cannot parse the input by itself. This means
3053 that a temp file is now always used, even when input comes from a
3054 local file or standard input.
3056 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
3057 Text.Pandoc library.
3059 * pandoc.cabal:
3061 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
3062 6.8, pretty and containers must be added to Build-Depends, and it
3063 is desirable to use the -O2 compiler option.) Cabal configurations
3064 allows one to select options depending on the compiler version.
3065 For GHC 6.6, the splitBase option can be disabled.
3066 + pandoc.cabal.ghc66 is provided for users with older versions of
3067 Cabal, which do not support configurations.
3068 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
3069 '--enable-(executable|library)-profiling' is specified. Updated
3070 PROFILING instructions accordingly.
3072 * Makefile:
3074 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
3075 is copied to pandoc.cabal, and the old pandoc.cabal is copied
3076 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
3077 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
3078 will work properly with either GHC 6.6 or 6.8.
3079 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
3080 This is where current versions of Cabal put it.
3081 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
3082 + Removed dependency of templates on ./templates, which is circular
3083 now that templates is a subdirectory of the top-level.
3085 * MacPorts Portfile:
3087 + Modified to install the pandoc library in addition to programs.
3088 + Installation must be done manually rather than using Makefile's
3089 install-all.
3090 + Note that the library must be registered in the activate phase,
3091 after the library files have been copied out of the destroot.
3092 Cabal generates a 'register.sh' script that will do this.
3094 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
3095 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
3096 Closes: #445235
3098 * debian/rules: Converted to UTF-8.
3100 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
3102 * Updated ASCIIMathML.js to latest version.
3104 * Directory structure:
3106 + Moved everything from src into the top-level directory.
3107 + Changed references to source directory in Makefile and
3108 pandoc.cabal.*.
3109 + Moved ASCIIMathML.js, headers, and ui into templates directory.
3110 + Modified fillTemplates.pl to reflect new paths.
3112 [ Recai Oktaş ]
3114 * Makefile: Fixed the issue of having two copies of the library
3115 documentation under some usage scenarios.
3117 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
3118 and GHC_PKG configurable through the environment, to support
3119 unusual ghc installations. For example:
3120 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
3122 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
3124pandoc (0.44) unstable; urgency=low
3126 [ John MacFarlane ]
3128 * Fixed bug in HTML writer: when --toc was used, anchors were put around
3129 headers, which is invalid XHTML (block content within inline element).
3130 Now the anchors are put inside the header tags. Resolves Issue #23.
3132 * Added xmlns attribute to html element in html writer tests.
3133 This attribute is added by more recent versions of the
3134 xhtml library (>= 3000), and is required for valid XHTML.
3136 [ Recai Oktaş ]
3138 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
3139 command instead of 'runhaskell', which, on some platforms (such as s390,
3140 alpha, m68k), throws the following error:
3142 runhaskell Setup.hs configure --prefix=/usr
3143 ghc-6.6.1: not built for interactive use
3145 This causes a serious FTBFS bug. Closes: #440668.
3147 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
3149pandoc (0.43) unstable; urgency=low
3151 [ John MacFarlane ]
3153 * The focus of this release is performance. The markdown parser
3154 is about five times faster than in 0.42, based on benchmarks
3155 with the TextMate manual.
3157 * Main.hs: Replaced CRFilter and tabFilter with single function
3158 tabFilter, which operates on the whole string rather than breaking
3159 it into lines, and handles dos-style line-endings as well as tabs.
3161 * Added separate LaTeX reader and native reader tests; removed
3162 round-trip tests.
3164 * Text.Pandoc.Shared:
3166 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
3167 + General code cleanup (to elimante warnings when compiling with -Wall.)
3168 + Added 'wrapped' function, which helps wrap text into paragraphs,
3169 using the prettyprinting library.
3170 + Rewrote charsInBalanced and charsInBalanced'.
3171 - Documented restriction: open and close must be distinct characters.
3172 - Rearranged options for greater efficiency.
3173 - Bug fix: Changed inner call to charsInBalanced inside
3174 charsInBalanced' to charsInBalanced'.
3175 + anyLine now requires that the line end with a newline (not eof).
3176 This is a harmless assumption, since we always add newlines to the
3177 end of a block before parsing with anyLine, and it yields a 10% speed
3178 boost.
3179 + Removed unnecessary 'try' in anyLine.
3180 + Removed unneeded 'try' from romanNumeral parser.
3181 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
3182 + Removed unneeded 'try' in parseFromString.
3183 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
3184 like 'string'.)
3185 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
3186 'try' is not automatically applied to the 'end' parser. Added
3187 'try' in calls to 'enclosed' where needed. Slight speed increase.
3189 * Writers:
3191 + Replaced individual wrapping routines in RST, Man, and Markdown
3192 writers with 'wrapped' from Text.Pandoc.Shared.
3193 + Rewrote LaTeX writer to use the prettyprinting library,
3194 so we get word wrapping, etc.
3195 + Modified latex writer tests for new latex writer using prettyprinter.
3196 + Fixed bug in LaTeX writer: autolinks would not cause
3197 '\usepackage{url}' to be put in the document header. Also, changes
3198 to state in enumerated list items would be overwritten.
3199 + In Markdown writer, escape paragraphs that begin with ordered list
3200 markers, so they don't get interpreted as ordered lists.
3202 * Text.Pandoc.Reades.LaTeX:
3204 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
3205 numeral after "enum" in "setcounter" would consist entirely of
3206 "i"s. 'enumiv' is legitimate.
3207 + LaTeX command and environment names can't contain numbers.
3208 + Rearranged order of parsers in inline for slight speed improvement.
3209 + Added '`' to special characters and 'unescapedChar'.
3211 * Text.Pandoc.Readers.RST:
3213 + Removed unneeded try's in RST reader; also minor code cleanup.
3214 + Removed tabchar.
3215 + Rearranged parsers in inline (doubled speed).
3217 * Text.Pandoc.Readers.Markdown:
3219 + Skip notes parsing if running in strict mode. (This yields a nice
3220 speed improvement in strict mode.)
3221 + Simplify autolink parsing code, using Network.URI to test for
3222 URIs. Added dependency on network library to debian/control and
3223 pandoc.cabal.
3224 + More perspicuous definition of nonindentSpaces.
3225 + Removed unneeded 'try' in 'rawLine'.
3226 + Combined linebreak and whitespace into a new whitespace parser, to
3227 avoid unnecessary reparsing of space characters.
3228 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
3229 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
3230 + Use lookAhead in parsers for setext headers and definition lists
3231 to see if the next line begins appropriately; if not, don't waste
3232 any more time parsing.
3233 + Don't require blank lines after code block. (It's sufficient to
3234 end code block with a nonindented line.)
3235 + Changed definition of 'emph': italics with '_' must not
3236 be followed by an alphanumeric character. This is to help
3237 prevent interpretation of e.g. [LC_TYPE]: my_type as
3238 '[LC<em>TYPE]:my</em>type'.
3239 + Improved Markdown.pl-compatibility in referenceLink: the two parts
3240 of a reference-style link may be separated by one space, but not
3241 more... [a] [link], [not] [a link].
3242 + Fixed markdown inline code parsing so it better accords with
3243 Markdown.pl: the marker for the end of the code section is a clump
3244 of the same number of `'s with which the section began, followed
3245 by a non-` character. So, for example,
3246 ` h ``` i ` -> <code>h ``` i</code>.
3247 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
3248 rules are slightly different.
3249 + Rewrote 'para' for greater efficiency.
3250 + Rewrote link parsers for greater efficiency.
3251 + Removed redundant 'referenceLink' in definition of inline (it's
3252 already in 'link').
3253 + Refactored escapeChar so it doesn't need 'try'.
3254 + Refactored hrule for performance in Markdown reader.
3255 + More intelligent rearranging of 'inline' so that most frequently
3256 used parsers are tried first.
3257 + Removed tabchar parser, as whitespace handles tabs anyway.
3259 * Text.Pandoc.CharacterReferences:
3261 + Refactored.
3262 + Removed unnecessary 'try's for a speed improvement.
3263 + Removed unnecessary '&' and ';' from the entity table.
3265 * Build process:
3267 + Makefile: Get VERSION from cabal file, not Main.hs.
3268 + Modified MacPorts Portfile:
3269 - Depend on haddock
3270 - Build and install libraries and library documentation in
3271 addition to pandoc executable
3272 - Added template item for md5 sum in Portfile.in.
3273 - Incorporated changes from MacPorts repository (r28278).
3274 + FreeBSD port: Don't try to generate distinfo in Makefile.
3275 It can be made using 'make makesum' in FreeBSD.
3276 + Make both freebsd and macports targets depend on tarball.
3278 * Website and documentation:
3280 + Updated INSTALL instructions.
3281 + Added pandocwiki demo to website.
3282 + Removed local references to Portfile, since pandoc is now in the
3283 MacPorts repository.
3285 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
3287pandoc (0.42) unstable; urgency=low
3289 [ John MacFarlane ]
3291 * Main.hs: Use utf8 conversion on the extra files loaded with
3292 the -H, -C, -B, and -A options. This fixes problems with unicode
3293 characters in these files.
3295 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
3296 Text.Pandoc.Readers.HTML and without it we get a linking error when
3297 using the library.
3299 * Markdown reader:
3301 + Added new rule for enhanced markdown ordered lists: if the list
3302 marker is a capital letter followed by a period (including a
3303 single-letter capital roman numeral), then it must be followed by
3304 at least two spaces. The point of this is to avoid accidentally
3305 treating people's initials as list markers: a paragraph might begin,
3306 "B. Russell was an English philosopher," and this shouldn't be
3307 treated as a list. Documented change in README.
3308 + Blocks that start with "p. " and a digit are no longer treated
3309 as ordered lists (it's a page number).
3310 + Added a needed 'try' to listItem.
3311 + Removed check for a following setext header in endline.
3312 A full test is too inefficient (doubles benchmark time), and the
3313 substitute we had before is not 100% accurate.
3314 + Don't use Code elements for autolinks if --strict specified.
3316 * LaTeX writer: When a footnote ends with a Verbatim environment, the
3317 close } of the footnote cannot occur on the same line or an error occurs.
3318 Fixed this by adding a newline before the closing } of every footnote.
3320 * HTML writer:
3321 + Removed incorrect "{}" around style information in HTML tables.
3322 Column widths now work properly in HTML.
3323 + If --strict option is specified (and --toc is not), don't include
3324 identifiers in headers, for better Markdown compatibility.
3326 * Build process:
3328 + Separated $(web_dest) and website targets.
3329 + In website, index.txt is now constructed from template index.txt.in.
3330 + Added freebsd target to Markefile. This creates the freebsd Makefile
3331 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
3332 from the repository.
3333 + Added macport target to Makefile. Portfile is built from template
3334 Portfile.in.
3335 + Removed OSX package targets. (Too many difficulties involving
3336 dependencies on dynamic libraries.)
3337 + More complete INSTALL instructions for all architectures.
3339 * Website:
3340 + Added a programming demo, pandocwiki.
3342 [ Recai Oktaş ]
3344 * Do not forget to close pandoc's ITP. Closes: #391666
3346 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
3348pandoc (0.41) unstable; urgency=low
3350 [ John MacFarlane ]
3352 * Fixed bugs in HTML reader:
3353 + Skip material at end *only if* </html> is present (previously,
3354 only part of the document would be parsed if an error was
3355 found; now a proper error message is given).
3356 + Added new constant eitherBlockOrInline with elements that may
3357 count either as block-level or as inline. Modified isInline and
3358 isBlock to take this into account.
3359 + Modified rawHtmlBlock to accept any tag (even an inline tag):
3360 this is innocuous, because rawHtmlBlock is tried only if a regular
3361 inline element can't be parsed.
3362 + Added a necessary 'try' in definition of 'para'.
3364 * Fixed bug in markdown ordered list parsing. The problem was that
3365 anyOrderedListStart did not check for a space following the
3366 ordered list marker. So in 'A.B. 2007' the parser would be
3367 expecting a list item, but would not find one, causing an error.
3368 Fixed a similar bug in the RST reader. Resolves Issue #22.
3370 * Refactored RST and Markdown readers using parseFromString.
3372 * LaTeX reader will now skip anything after \end{document}.
3374 * Fixed blockquote output in markdown writer: previously, block
3375 quotes in indented contexts would be indented only in the first
3376 line.
3378 * Added note to INSTALL about variations in versions of the xhtml
3379 library that can lead to failed tests (thanks to Leif LeBaron).
3381 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
3383pandoc (0.4) unstable; urgency=low
3385 [ John MacFarlane ]
3387 * Added two new output formats: groff man pages and ConTeXt. By
3388 default, output files with extensions ".ctx" and ".context" are
3389 assumed to be ConTeXt, and output files with single-digit extensions
3390 are assumed to be man pages.
3392 * Enhanced ordered lists (documented in README, under Lists):
3393 + The OrderedList block element now stores information about
3394 list number style, list number delimiter, and starting number.
3395 + The readers parse this information when possible.
3396 + The writers use this information to style ordered lists.
3397 + The enhancement can be disabled using the --strict option.
3399 * Added support for tables (with a new Table block element). Two kinds
3400 of tables are supported: a simple table with one-line rows, and a
3401 more complex variety with multiline rows. All output formats are
3402 supported, but only markdown tables are parsed at the moment. The
3403 syntax is documented in README.
3405 * Added support for definition lists (with a new DefinitionList block
3406 element). All output and input formats are supported. The syntax is
3407 documented in README.
3409 * Added support for superscripts and subscripts (with new Superscript
3410 and Subscript inline elements). All input and output
3411 formats. The syntax is documented in README.
3413 * Added support for strikeout (with a new Strikeout inline element).
3414 All input and output formats are supported. Thanks to Bradley Kuhn,
3415 who contributed a patch. The syntax is documented in README. Resolves
3416 Issue #18.
3418 * Added a --toc|--table-of-contents option. This causes an automatically
3419 generated table of contents (or an instruction that creates one) to
3420 be inserted at the beginning of the document. Not supported in S5,
3421 DocBook, or man page writers.
3423 * Modified the -m|--asciimathml option:
3425 + If an optional URL argument is provided, a link is inserted
3426 instead of the contents of the ASCIIMathML.js script.
3427 + Nothing is inserted unless the document actually contains
3428 LaTeX math.
3430 * Removed Blank block element as unnecessary.
3432 * Removed Key and Note blocks from the Pandoc data structure. All
3433 links are now stored as explicit links, and note contents are
3434 stored with the (inline) notes.
3436 + All link Targets are now explicit (URL, title) pairs; there
3437 is no longer a 'Ref' target.
3438 + Markdown and RST parsers now need to extract data from key and
3439 note blocks and insert them into the relevant inline elements.
3440 Other parsers have been simplified, since there is no longer any need
3441 to construct separate key and note blocks.
3442 + Markdown, RST, and HTML writers need to construct lists of
3443 notes; Markdown and RST writers need to construct lists of link
3444 references (when the --reference-links option is specified); and
3445 the RST writer needs to construct a list of image substitution
3446 references. All writers have been rewritten to use the State monad
3447 when state is required.
3448 + Several functions (generateReference, keyTable,
3449 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
3450 used by them) have been removed from Text.Pandoc.Shared, since
3451 they are no longer needed. New functions and data structures
3452 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
3453 added. The functions inTags, selfClosingTag, inTagsSimple, and
3454 inTagsIndented have been moved to the DocBook writer, since that
3455 is now the only module that uses them. NoteTable is now exported
3456 in Text.Pandoc.Shared.
3457 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
3458 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
3459 + Added writerNotes and writerReferenceLinks to WriterOptions.
3461 * Added Text.Pandoc module that exports basic readers, writers,
3462 definitions, and utility functions. This should export everything
3463 needed for most uses of Pandoc libraries. The haddock documentation
3464 includes a short example program.
3466 * Text.Pandoc.ASCIIMathML is no longer an exported module.
3468 * Added Text.Pandoc.Blocks module to help in printing markdown
3469 and RST tables. This module provides functions for working with
3470 fixed-width blocks of text--e.g., placing them side by side, as
3471 in a table row.
3473 * Refactored to avoid reliance on Haskell's Text.Regex library, which
3474 (a) is slow, and (b) does not properly handle unicode. This fixed
3475 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
3477 + Replaced 'gsub' with a general list function 'substitute'
3478 that does not rely on Text.Regex.
3479 + Rewrote extractTagType in HTML reader so that it doesn't use
3480 regexs.
3481 + In Markdown reader, replaced email regex test with a custom email
3482 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
3483 with a custom function isSelfClosingTag.
3484 + Modified Docbook writer so that it doesn't rely on Text.Regex for
3485 detecting 'mailto' links.
3486 + Removed escapePreservingRegex and reamped entity-handling
3487 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
3488 avoid reliance on Text.Regex (see below on character reference
3489 handling changes).
3491 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
3493 * Changed handling of XML entities. Entities are now parsed (and unicode
3494 characters returned) in the Markdown and HTML readers, rather than being
3495 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
3496 instead of entities for characters above 128. This makes the HTML and
3497 DocBook output much more readable and more easily editable.
3499 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
3500 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
3501 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
3502 Moved both functions to Text.Pandoc.Writers.Docbook.
3503 + Added characterReference parser to Text.Pandoc.CharacterReferences.
3504 This parses a string and return a unicode character.
3505 + Rewrote decodeCharacterReferences to use the new parser instead of
3506 Text.Regex.
3507 + Added new charRef parser for Markdown and HTML, which replaces the
3508 old 'entity' parser. Added '&' as a special character in Markdown reader.
3509 + Modified HTML and Markdown readers to call decodeEntities on all raw
3510 strings (e.g. authors, dates, link titles), to ensure that no
3511 unprocessed entities are included in the native representation of
3512 the document. (In the HTML reader, most of this work is done by a
3513 change in extractAttributeName.)
3514 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
3515 since a unicode non-breaking space is impossible to distinguish visually
3516 from a regular space. (Resolves Issue #3.)
3517 + Removed encodeEntitiesNumerical.
3518 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
3519 slight performance boost over the old association list.
3520 + Removed unneeded decodeEntities from 'str' parser in HTML and
3521 Markdown readers.
3523 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
3524 fromUTF8, for clarity.
3526 * Replaced old haskell98 module names replaced by hierarchical module
3527 names, e.g. List by Data.List. Removed haskell98 from dependencies
3528 in pandoc.cabal, and added mtl (needed for state monad). Substituted
3529 xhtml for html.
3531 * Refactored and cleaned up character escaping in writers, using
3532 backslashEscapes and escapeStringUsing functions.
3534 * Instead of adding "\n\n" to the end of an input string in Main.hs,
3535 this is now done in the readers. This makes the libraries behave
3536 the way you'd expect from the pandoc program. Resolves Issue #10.
3538 * URLs and email addresses in autolinks are now typeset as Code.
3540 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
3541 doesn't display the whole output unless there's a line ending.
3543 * Major code cleanup in all modules, for greater consistency, concision,
3544 and readability.
3546 * HTML reader:
3548 + Fixed several bugs (extractTagType, attribute parsing).
3549 + Remove Null blocks in lists of blocks when possible.
3550 + Allow HTML comments as raw HTML inline.
3552 * Markdown reader:
3554 + Ordered list items may no longer begin with uppercase letters, or
3555 letters greater than 'n'. (This prevents first initials and page
3556 reference, e.g. 'p. 400', from being parsed as beginning lists.)
3557 Also, numbers beginning list items may no longer end with ')',
3558 which is now allowed only after letters. Note: These changes
3559 may cause documents to be parsed differently. Users should take
3560 care in upgrading.
3561 + Changed autoLink parsing to conform better to Markdown.pl's
3562 behavior. <google.com> is not treated as a link, but
3563 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
3564 are.
3565 + Cleaned up handling of embedded quotes in link titles. Now these are
3566 stored as a '"' character, not as '&quot;'.
3567 + Use lookAhead parser for the 'first pass' (looking for reference keys),
3568 instead of parsing normally, then using setInput to reset input. This
3569 yields a slight performance boost.
3570 + Fixed several bugs in smart quote recognition.
3571 + Fixed bug in indentSpaces (which didn't properly handle
3572 cases with mixed spaces and tabs).
3573 + Consolidated 'text', 'special', and 'inline' into 'inline'.
3574 + Fixed bug which allowed URL and title to be separated by multiple blank
3575 lines in links and reference keys. They can be on separate lines but
3576 can't have blank lines between them.
3577 + Correctly handle bracketed text inside inline footnotes and links,using
3578 new function inlinesInBalanced. Resolves Issue #14.
3579 + Fixed bug in footnotes: links in footnotes were not being
3580 processed. Solution: three-stage parse. First, get all the
3581 reference keys and add information to state. Next, get all the
3582 notes and add information to state. (Reference keys may be needed
3583 at this stage.) Finally, parse everything else.
3584 + Replaced named constants like 'emphStart' with literals.
3585 + Removed an extra occurance of escapedChar in definition of inline.
3587 * RST reader:
3589 + Allow the URI in a RST hyperlink target to start on the line
3590 after the reference key.
3591 + Added 'try' in front of 'string', where needed, or used a different
3592 parser. This fixes a bug where ````` would not be correctly parsed as
3593 a verbatim `.
3594 + Fixed slow performance in parsing inline literals in RST reader. The
3595 problem was that ``#`` was seen by 'inline' as a potential link or image.
3596 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
3597 Resolves Issue #8.
3598 + Use lookAhead instead of getInput/setInput in RST reader. Removed
3599 unneeded getState call, since lookAhead automatically saves and
3600 restores the parser state.
3601 + Allow hyperlink target URIs to be split over multiple lines, and
3602 to start on the line after the reference. Resolves Issue #7.
3603 + Fixed handling of autolinks.
3605 * LaTeX reader:
3607 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
3608 for clarity.
3609 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
3610 caret is \^{}, not \^ as before.
3611 + Added parsing for \url.
3612 + Parse \texttt{} as code, provided there's nothing fancy inside.
3614 * HTML writer:
3616 + Modified HTML writer to use the Text.XHtml library. This results
3617 in cleaner, faster code, and it makes it easier to use Pandoc in
3618 other projects, like wikis, which use Text.XHtml. Two functions are
3619 now provided, writeHtml and writeHtmlString: the former outputs an
3620 Html structure, the latter a rendered string. The S5 writer is also
3621 changed, in parallel ways (writeS5, writeS5String).
3622 + The Html header is now written programmatically, so it has been
3623 removed from the 'headers' directory. The S5 header is still
3624 needed, but the doctype and some of the meta declarations have
3625 been removed, since they are written programatically. This change
3626 introduces a new dependency on the xhtml package.
3627 + Fixed two bugs in email obfuscation involving improper escaping
3628 of '&' in the <noscript> section and in --strict mode. Resolves
3629 Issue #9.
3630 + Fixed another bug in email obfuscation: If the text to be obfuscated
3631 contains an entity, this needs to be decoded before obfuscation.
3632 Thanks to thsutton for the patch. Resolves Issue #15.
3633 + Changed the way the backlink is displayed in HTML footnotes.
3634 Instead of appearing on a line by itself, it now generally
3635 appears on the last line of the note. (Exception: when the
3636 note does not end with a Plain or Para block.) This saves space
3637 and looks better.
3638 + Added automatic unique identifiers to headers:
3639 - The identifier is derived from the header via a scheme
3640 documented in README.
3641 - WriterState now includes a list of header identifiers and a table
3642 of contents in addition to notes.
3643 - The function uniqueIdentifiers creates a list of unique identifiers
3644 from a list of inline lists (e.g. headers).
3645 - This list is part of WriterState and gets consumed by blockToHtml
3646 each time a header is encountered.
3647 + Include CSS for .strikethrough class in header only if strikethrough
3648 text appears in the document.
3649 + If the 'strict' option is specified, elements that do not appear in
3650 standard markdown (like definition lists) are passed through as
3651 raw HTML.
3652 + Simplified treatment of autolinks, using pattern matching instead of
3653 conditionals.
3655 * Markdown writer:
3657 + Links in markdown output are now printed as inline links by default,
3658 rather than reference links. A --reference-links option has been added
3659 that forces links to be printed as reference links. Resolves Issue #4.
3660 + Use autolinks when possible. Instead of [site.com](site.com),
3661 use <site.com>.
3663 * LaTeX writer:
3665 + Rewrote to use the State monad. The preamble now includes only those
3666 packages that are actually required, given the document's content.
3667 Thus, for example, if strikeout is not used, ulem is not required.
3668 Modified LaTeXHeader accordingly.
3669 + Modified LaTeX writer to insert '\,' between consecutive quotes.
3670 + Removed unused function tableRowColumnWidths.
3671 + Simplified code for escaping special characters.
3672 + Leave extra blank line after \maketitle.
3673 + Include empty '\author{}' when no author specified to avoid LaTeX
3674 errors.
3675 + Include fancyvrb code in header only if needed -- that is, only
3676 if there is actually code in a footnote.
3677 + Use \url{} for autolinks.
3678 + Include [mathletters] option in ucs package, so that basic unicode
3679 Greek letters will work correctly.
3681 * RST writer: Force blank line before lists, so that sublists will
3682 be handled correctly.
3684 * Docbook writer: Fixed a bug: email links with text, like
3685 [foo](me@bar.baz), were being incorrectly treated as autolinks.
3687 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
3688 Text.Pandoc.Shared.
3690 * Text.Pandoc.Shared:
3692 + Added defaultWriterOptions.
3693 + Added writerTableOfContents to WriterOptions.
3694 + Added writerIgnoreNotes option to WriterOptions. This is needed
3695 for processing header blocks for a table of contents, since notes on
3696 headers should not appear in the TOC.
3697 + Added prettyprinting for native Table format.
3698 + Removed some unneeded imports.
3699 + Moved escape and nullBlock parsers from
3700 Text.ParserCombinators.Pandoc, since the latter is for
3701 general-purpose parsers that don't depend on Text.Pandoc.Definition.
3702 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
3703 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
3704 writer, because HTML writer now uses these in constructing a table
3705 of contents.
3706 + Added clauses for new inline elements (Strikeout, Superscript,
3707 Subscript) to refsMatch.
3708 + Removed backslashEscape; added new functions escapeStringUsing and
3709 backslashEscapes.
3710 + Moved failIfStrict from markdown reader, since it is now used also
3711 by the HTML reader.
3712 + Added a 'try' to the definition of indentSpaces.
3713 + In definition of 'reference', added check to make sure it's not a note
3714 reference.
3715 + Added functions: camelCaseToHyphenated, toRomanNumeral,
3716 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
3717 charsInBalanced', withHorizDisplacement, romanNumeral
3718 + Fixed a bug in the anyLine parser. Previously it would parse an empty
3719 string "", but it should fail on an empty string, or we get an error
3720 when it is used inside "many" combinators.
3721 + Removed followedBy' parser, replacing it with the lookAhead parser from
3722 Parsec.
3723 + Added some needed 'try's before multicharacter parsers, especially in
3724 'option' contexts.
3725 + Removed the 'try' from the 'end' parser in 'enclosed', so that
3726 'enclosed' behaves like 'option', 'manyTill', etc.
3727 + Added lineClump parser, which parses a raw line block up to and
3728 including any following blank lines.
3729 + Renamed parseFromStr to parseFromString.
3730 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
3731 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
3732 in calling code.
3733 + Removed unneeded 'try' in blanklines.
3734 + Removed endsWith function and rewrote calling functions to use
3735 isSuffixOf instead.
3736 + Added >>~ combinator.
3737 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
3738 Space.
3740 * Refactored runtests.pl; added separate tests for tables.
3742 * Shell scripts:
3744 + Added -asxhtml flag to tidy in html2markdown. This will
3745 perhaps help the parser, which expects closing tags.
3746 + Modified markdown2pdf to run pdflatex a second time if --toc or
3747 --table-of-contents was specified; otherwise the table of
3748 contents won't appear.
3749 + Modified markdown2pdf to print a helpful message if the 'ulem'
3750 LaTeX package is required and not found.
3752 * Changes to build process:
3754 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
3755 is now required.
3756 + Removed cabalize and Pandoc.cabal.in. The repository now contains
3757 pandoc.cabal itself.
3758 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
3759 likes the cabal file to have the same name as the tarball.
3760 + Expanded and revised the package description in pandoc.cabal.
3761 Revised the package synopsis.
3762 + The tarball built by 'make tarball' now contains files built from
3763 templates (including man pages and shell scripts), so pandoc can
3764 be built directly using Cabal tools, without preprocessing.
3765 + Executable binaries are now stripped before installing.
3766 + Man pages are now generated from markdown sources, using pandoc's
3767 man page writer.
3768 + Use HTML version of README (instead of RTF) in Mac OS X installer.
3769 + Instead of testing for the existence of a pandoc symlink in build-exec,
3770 use ln -f.
3772 * Documentation:
3774 + Updated README and man pages with information on new features.
3775 + Updated INSTALL instructions with some useful clarifications and
3776 links.
3777 + Updated web content.
3779 * Added FreeBSD port.
3781 [ Recai Oktaş ]
3783 * debian/control:
3785 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
3786 libghc6-xhtml-dev. Removed libghc6-html-dev.
3787 + Suggest texlive-latex-recommended | tetex-extra instead of
3788 tetex-bin. This brings in fancyvrb and unicode support.
3790 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
3792pandoc (0.3) unstable; urgency=low
3794 [ John MacFarlane ]
3796 * Changes in pandoc options:
3798 + Allow options to follow or precede arguments.
3799 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
3800 + Added '--strict' option.
3801 + Added '-o/--output' option.
3802 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
3803 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
3804 error conditions. This is helpful for writing wrappers.
3805 + Added copyright message to '-v' output, modeled after FSF messages.
3806 + Reformatted usage message so that it doesn't wrap illegibly.
3807 + Removed extra blanks after '-h' and '-D' output.
3809 * Added docbook writer.
3811 * Added implicit setting of default input and output format based
3812 on input and output filename extensions. These defaults are
3813 overridden if explicit input and output formats are specified using
3814 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
3815 and README.
3817 * Allow ordered list items to begin with (single) letters, as well
3818 as numbers. The list item marker may now be terminated either by
3819 '.' or by ')'. This extension to standard markdown is documented
3820 in README.
3822 * Revised footnote syntax. (See README for full details.) The
3823 '[^1]' format now standard in markdown extensions is supported,
3824 as are inline footnotes with this syntax: '^[My note.]'.
3825 The earlier footnote syntax '^(1)' is no longer supported.
3827 * Improved HTML representation of footnotes. All footnotes
3828 are now auto-numbered and appear in an ordered list at the
3829 end of the HTML document. Since the default appearance is now
3830 acceptable, the old footnote styles have been removed from the
3831 HTML header.
3833 * Bug fixes:
3835 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
3836 These readers ran 'runParser' on processed chunks of text to handle
3837 embedded block lists in lists and quotation blocks. But then
3838 any changes made to the parser state in these chunks was lost,
3839 as the state is local to the parser. So, for example, footnotes
3840 didn't work in quotes or list items. The fix: instead of calling
3841 runParser on some raw text, use setInput to make it the input, then
3842 parse it, then use setInput to restore the input to what it was
3843 before. This is shorter and more elegant, and it fixes the problem.
3844 + Fixed bug in notFollowedBy' combinator (adding 'try' before
3845 'parser'). Adjusted code that uses this combinator accordingly.
3846 + Fixed bug in RTF writer that caused improper indentation on
3847 footnotes occurring in indented blocks like lists.
3848 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
3849 and date are parsed correctly. Everything else in the preamble
3850 is skipped.
3851 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
3852 line to count as escaped whitespace.
3853 + Modified LaTeX reader to produce inline links rather than reference
3854 links. Otherwise, links in footnotes aren't handled properly.
3855 + Fixed handling of titles in links in Markdown reader, so that
3856 embedded quotation marks are now handled properly.
3857 + Fixed Markdown reader's handling of embedded brackets in links.
3858 + Fixed Markdown reader so that it only parses bracketed material
3859 as a reference link if there is actually a corresponding key.
3860 + Revised inline code parsing in Markdown reader to conform to
3861 markdown standard. Now any number of `s can begin inline code,
3862 which will end with the same number of `s. For example, to
3863 have two backticks as code, write ``` `` ```. Modified Markdown
3864 writer accordingly.
3865 + Fixed bug in text-wrapping routine in Markdown and RST writers.
3866 Now LineBreaks no longer cause wrapping problems.
3867 + Supported hexadecimal numerical entity references as well as
3868 decimal ones.
3869 + Fixed bug in Markdown reader's handling of underscores and other
3870 inline formatting markers inside reference labels: for example,
3871 in '[A_B]: /url/a_b', the material between underscores was being
3872 parsed as emphasized inlines.
3873 + Changed Markdown reader's handling of backslash escapes so that
3874 only non-alphanumeric characters can be escaped. Strict mode
3875 follows Markdown.pl in only allowing a select group of punctuation
3876 characters to be escaped.
3877 + Modified HTML reader to skip a newline following a <br> tag.
3878 Otherwise the newline will be treated as a space at the beginning
3879 of the next line.
3881 * Made handling of code blocks more consistent. Previously, some
3882 readers allowed trailing newlines, while others stripped them.
3883 Now, all readers strip trailing newlines in code blocks. Writers
3884 insert a newline at the end of code blocks as needed.
3886 * Modified readers to make spacing at the end of output more consistent.
3888 * Minor improvements to LaTeX reader:
3890 + '\thanks' now treated like a footnote.
3891 + Simplified parsing of LaTeX command arguments and options.
3892 commandArgs now returns a list of arguments OR options (in
3893 whatever order they appear). The brackets are included, and
3894 a new stripFirstAndLast function is provided to strip them off
3895 when needed. This fixes a problem in dealing with \newcommand
3896 and \newenvironment.
3898 * Revised RTF writer:
3900 + Default font is now Helvetica.
3901 + An '\f0' is added to each '\pard', so that font resizing works
3902 correctly.
3904 * Moved handling of "smart typography" from the writers to the Markdown
3905 and LaTeX readers. This allows great simplification of the writers
3906 and more accurate smart quotes, dashes, and ellipses. DocBook can
3907 now use '<quote>'. The '--smart' option now toggles an option in
3908 the parser state rather than a writer option. Several new kinds
3909 of inline elements have been added: Quoted, Ellipses, Apostrophe,
3910 EmDash, EnDash.
3912 * Changes in HTML writer:
3914 + Include title block in header even when title is null.
3915 + Made javascript obfuscation of emails even more obfuscatory,
3916 by combining it with entity obfuscation.
3918 * Changed default ASCIIMathML text color to black.
3920 * Test suite:
3922 + Added --strip-trailing-cr option to diff in runtests.pl, for
3923 compatibility with Windows.
3924 + Added regression tests with footnotes in quote blocks and lists.
3926 * Makefile changes:
3928 + osx-pkg target creates a Mac OS X package (directory). New osx
3929 directory contains files needed for construction of the package.
3930 + osx-dmg target creates a compressed disk image containing the package.
3931 + win-pkg target creates Windows binary package.
3932 + tarball target creates distribution source tarball.
3933 + website target generates pandoc's website automatically, including
3934 demos. New 'web' directory containts files needed for construction
3935 of the website (which will be created as the 'pandoc' subdirectory
3936 of 'web').
3937 + Makefile checks to see if we're running Windows/Cygwin; if so,
3938 a '.exe' extension is added to each executable in EXECS.
3940 * Removed all wrappers except markdown2pdf and html2markdown.
3942 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
3943 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
3944 option and disables other options.
3946 * Added code to html2markdown that tries to determine the character
3947 encoding of an HTML file, by parsing the "Content-type" meta tag.
3949 + If the encoding can't be determined, then if the content is local,
3950 the local encoding is used; if it comes from a URL, UTF-8 is used
3951 by default.
3952 + If input is from STDIN, don't try to determine character encoding.
3953 + Encoding can be specified explicitly using '-e' option.
3955 * Improved warning messages in wrappers:
3957 + Print warning if iconv not available
3958 + More user-friendly error messages in markdown2pdf, when
3959 pdflatex fails.
3961 * Code cleanup:
3963 + Renamed 'Text/Pandoc/HtmlEntities' module to
3964 'Text/Pandoc/Entities'. Also changed function names so as
3965 not to be HTML-specific.
3966 + Refactored SGML string escaping functions from HTML and Docbook
3967 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
3968 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
3969 used anywhere.
3970 + Removed splitBySpace and replaced it with a general, polymorphic
3971 splitBy function.
3972 + Refactored LaTeX reader for clarity (added isArg function).
3973 + Converted some CR's to LF's in src/ui/default/print.css.
3974 + Added license text to top of source files.
3975 + Added module data for haddock to source files.
3976 + Reformatted code for consistency.
3978 * Rewrote documentation and man pages. Split README into INSTALL
3979 and README.
3981 * Split LICENSE into COPYING and COPYRIGHT.
3983 * Removed TODO, since we now maintain ToDo on the wiki.
3985 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
3986 duplication.
3988 [ Recai Oktaş ]
3990 * Revamped build process to conform to debian standards and created
3991 a proper debian package. Closes: #391666.
3993 * Modified build process to support GHC 6.6.
3995 + The package can still be compiled using GHC 6.4.2, though because
3996 of dependencies the "make deb" target works only with GHC 6.6+.
3997 + The script 'cabalize' is used to create an appropriate
3998 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
3999 Cabal versions.
4001 * Refactored template processing (fillTemplates.pl).
4003 * Modified wrapper scripts to make them more robust and portable.
4004 To avoid code duplication and ensure consistency, wrappers are
4005 generated via a templating system from templates in src/wrappers.
4007 + Wrappers now accept multiple filenames, when appropriate.
4008 + Spaces and tabs allowed in filenames.
4009 + getopts shell builtin is used for portable option parsing.
4010 + Improved html2markdown's web grabber code, making it more robust,
4011 configurable and verbose. Added '-e', '-g' options.
4013 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
4015pandoc (0.2) unstable; urgency=low
4017 * Fixed unicode/utf-8 translation
4019 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
4021pandoc (0.1) unstable; urgency=low
4023 * Initial creation of debian package
4025 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400