5 * Added a slidy writer. Resolves Issue #122.
7 * Made a proper ODT writer.
8 + Transformed the old Text.Pandoc.ODT module into a proper
9 writer module, Text.Pandoc.Writers.ODT.
10 + Instead of saveOpenDocumentAsODT, we now have writeODT, which
11 takes a Pandoc document and produces a bytestring.
12 saveOpenDocumentAsODT has been removed.
13 + To extract the images and insert them into the ODT, we now use
14 processPandocM on the Pandoc document rather than a custom XML parser.
15 + Handle the case where the image is remote (or not found) by
16 converting the Image element into an Emph with the label.
17 + Plumbing in pandoc.hs changed slightly to accomodate this, and to
18 allow other writers that live in the IO monad.
20 * Added an EPUB writer.
21 + New writer module Text.Pandoc.Writers.EPUB
22 + Stylesheet in epub.css
23 + --epub-stylesheet command-line option.
24 + New utility module Text.Pandoc.UUID to generate
25 random UUIDs for EPUBs.
26 + Added writerEPUBMetadata field and --epub-metadata option.
28 * Moved Pandoc prettyprinting code from Shared to new Native writer.
29 + Text.Pandoc.Writers.Native
30 + The function prettyPandoc is now gone. Use writeNative instead.
32 * Added --section-divs option. Header identifiers now get attached to
33 the headers, unless --section-divs is specified, in which case they
34 are added to enclosing divs. By default, the divs are not added.
35 Resolves Issue #230, #239.
37 * Added --webtex option for HTML math.
38 + Added --webtex command-line option, with optional parameter.
39 (Defaults to using google charts API.)
40 + Added WebTeX HTMLMathMethod.
41 + Removed MimeTeX HTMLMathMethod. (WebTeX is generic and subsumes it.)
42 + Modified --mimetex option to use WebTeX.
43 + Thanks to lpeterse for the idea and some of the code.
45 * Made spacing at end of output more consistent. Previously some
46 of the writers added spurious whitespace. This has been removed,
49 NOTE: If your application combines pandoc's output with other
50 text, for example in a template, you may need to add spacing.
51 For example, a pandoc-generated markdown file will not have
52 a blank line after the final block element. If you are inserting
53 it into another markdown file, you will need to make sure there
54 is a blank line between it and the next block element.
56 * Added Text.Pandoc.UTF8 for portable UTF8 string IO.
57 + Pandoc no longer respects locale, even when compiled by GHC 6.12.
58 + Use new UTF8 module in Shared, ODT, and the executables.
59 + Modified readFile and getContents to strip BOM if present.
61 * Removed Text.Pandoc.Writers.S5 and writeS5 function.
62 Moved s5Includes to new module, Text.Pandoc.S5.
63 (Now s5 is handled in more or less the same way as slidy;
64 to write S5, you use writeHtml with writerSlideVariant set
65 to S5Slides or SlidySlides.)
67 * Added new --offline option for slidy and S5.
68 + The default for both is now to include links, rather than a full
69 copy of scripts and stylesheets. If you are relying on pandoc
70 to produce a self-contained slide show, you should specify
72 + Added slidy/slidy.min.{css,js}.
74 * Cause horizontal rules to start a new slide in s5 and slidy.
76 * Added grid tables for markdown.
77 + Moved generic grid table functions from RST reader -> Parsing.
78 Here they can be used by the Markdown reader as well.
81 * Allow language-neutral table captions.
82 + Captions may now begin simply with ':', instead of 'Table:'
83 + Captions may now appear either above or below the table.
84 + Resolves Issue #227.
86 * Added sequentially numbered example lists in markdown, using
87 (@) list markers. These are documented in README under
90 * Changes to WriterOptions:
91 + Added writerUserDataDir.
92 + Added writerSourceDirectory.
93 + Removed writerIncludeBefore & writerIncludeAfter (no
94 longer used with the new templating system).
96 * Added HTMLSlideVariant (Text.Pandoc.Parsing).
98 * Made KeyTable a map instead of an association list.
99 + This affects the RST and Markdown readers.
100 + The type for stateKeys in ParserState has also changed.
101 + Pandoc, Meta, Inline, and Block have been given Ord instances.
102 + Reference keys now have a type of their own (Key), with its
103 own Ord instance for case-insensitive comparison.
105 * Moved headerShift from pandoc.hs to Text.Pandoc.Shared.
107 * Moved parsing functions from Text.Pandoc.Shared to new module,
110 * Added amssymb to default latex template.
111 Resolves github Issue 1.
113 * Use default highlighting CSS rather than embedding CSS in templates.
115 * Updated pandoc to use highlighting-kate 0.2.7.
116 NOTE: Update any custom CSS or templates accordingly.
118 * Improved handling of code in man writer.
119 + Inline code is now in monoscpace, not bold.
120 + Code blocks now use .nf (no fill) and .IP (indented paragraph).
121 + Resolves Issue #247.
123 * HTML reader: parse <tt> as Code. Partially resolves Issue #247.
126 + Made inclusion of date meta tag conditional.
127 + Put insert-before text before the title h1 in HTML.
128 This is the documented behavior; the insert-before text
129 comes after the <body> tag. Resolves Issue #241.
131 * Add bird tracks to lhs in HTML when compiled wo -fhighlighting.
132 Resolves Issue #242. Previously the bird tracks would be stripped
133 off when pandoc was not compiled with highlighting support, even if
134 -t html+lhs was specified. Thanks to Nicholas Wu for pointing out
137 * Don't allow colon in autogenerated XML/HTML identifiers.
138 They have a special meaning in XML (e.g. in EPUB).
141 + Made latex \section, \chapter parsers more forgiving of whitespace.
142 + Added stateHasChapters to ParserState.
143 + Parse \chapter{} in latex. If a \chapter command is encountered,
144 this is set to True and subsequent \section commands (etc.) will
145 be bumped up one level.
146 + Changed rawLaTeXInline to accept '\section', '\begin', etc.
147 + Use new rawLaTeXInline' in LaTeX reader, and export rawLaTeXInline
148 for use in markdown reader.
149 + Fixes bug wherein '\section{foo}' was not recognized as raw TeX
150 in markdown document.
152 * LaTeX writer: Give images a maximum width using the prelude only.
154 * Plain, markdown, RST writers: Use unicode for smart punctuation.
156 * Man writer: convert math to unicode when possible, as in other
159 * Allow markdown2pdf to recognize citeproc options.
161 * Use explicit imports from Data.Generics. Otherwise we have a
162 conflict with the 'empty' symbol, introduced in syb >= 0.2. Thanks
163 to ddssff for pointing out the problem. Resolves Issue #237.
165 * Convert command-line arguments to UTF8. Resolves Issue #234.
167 * Use texmath's parser in TexMath module.
168 + This replaces a lot of custom parser code, and expands
169 the tex -> unicode conversion.
170 + The behavior has also changed: if the whole formula can't
171 be converted, the whole formula is left in raw TeX.
172 + Previously, pandoc converted parts of the formula to unicode
173 and left other parts in raw TeX.
174 + Added (but not yet exported) readTeXMath', which returns a Maybe.
177 * In parsing smart quotes, leave unicode curly quotes alone.
180 * Removed obsolete markdown2pdf script.
182 * Removed parsec < 3 restriction.
184 * Require texmath >= 0.3, highlighting-kate >= 0.2.7.1.
186 * Added 'threaded' cabal flag.
187 + GHC lacks a threaded runtime on some architectures.
188 Provide a 'threaded' flag that can be disabled for compiling
189 on these architectures.
190 + Removed '-threaded' from pandoc's ghc-options. '-threaded'
191 is only needed for markdown2pdf, due to its use of readProcess.
197 * Fixed uniqueIdent in Shared so that header identifiers work as
198 advertized in the README and are are valid XHTML names.
204 * Fixed treatment of unicode characters in URIs.
205 + Shared now exports escapeURI and unescapeURI. These handle
206 UTF8 encoding and decoding as well as URI escaping/unescaping.
207 + Shared: uri and emailAddress now return a pair of the original
208 parsed text and the escaped URI (in the latter case, with
210 + HTML reader: unsanitaryURI has been modified to allow unicode
211 high characters in a URI.
212 + Readers: All link and image URIs are now escaped using
214 + Markdown and RST writers: unescapeURI is used so that URIs
215 in these formats are human-readable.
217 * Setup.hs: Don't assume that the build directory is "dist".
218 Instead, get it from localBuildInfo.
220 * OpenDocument writer: Use a Map for stTextStyleAttr.
221 This avoids duplicates (and invalid xml). Resolves Issue #222.
227 * HTML writer: Fixed error in math writer (with MathML option)
228 that caused an infinite loop for unparsable MathML.
234 * Added --mathml option. When this is selected, pandoc will convert
235 TeX math into MathML.
236 + Added data/MathMLinHTML.js, which is included when no URL is
237 provided for --mathml. This allows MathML to be displayed (in
238 better browsers) as text/html.
239 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
240 necessary; it was replaced by two lines in pandoc.hs.
241 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
242 single combined file, LaTeXMathML.js.
244 * Added --data-dir option.
245 This specifies a user data directory. If not specified, will default
246 to ~/.pandoc on unix or Application Data\pandoc on Windows.
247 Files placed in the user data directory will override system default
250 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
251 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
252 Nothing, no user directory is searched for an override.
254 * Added 'plain' output format. This is similar to markdown, but
255 removes links, pictures, inline formatting, and most anything that
256 looks even vaguely markupish. The function writePlain is exported by
257 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
259 * Allow multi-line titles and authors in meta block.
260 Titles may span multiple lines, provided continuation lines
261 begin with a space character. Separate authors may be put on
262 multiple lines, provided each line after the first begins with
263 a space character. Each author must fit on one line. Multiple
264 authors on a single line may still be separated by a semicolon.
265 Based on a patch by Justin Bogner.
267 * When given an absolute URI as parameter, pandoc will try to fetch
268 the content via HTTP. So you can do:
269 'pandoc -r html -w markdown http://www.fsf.org'
270 Adds dependency on HTTP.
272 * Made HTML reader much more forgiving.
273 + Incorporated idea (from HXT) that an element can be closed
274 by an open tag for another element.
275 + Javascript is partially parsed to make sure that a <script>
276 section is not closed by a </script> in a comment or string.
277 + More lenient non-quoted attribute values.
278 Now we accept anything but a space character, quote, or <>.
279 This helps in parsing e.g. www.google.com!
280 + Bare & signs are now parsed as a string. This is a common
282 + Skip a bare < in malformed HTML.
284 * Removed html2markdown and hsmarkdown.
285 + html2markdown is no longer needed, since you can now pass URI
286 arguments to pandoc and directly convert web pages. (Note,
287 however, that pandoc assumes the pages are UTF8. html2markdown
288 made an attempt to guess the encoding and convert them.)
289 + hsmarkdown is pointless -- a large executable that could be
290 replaced by 'pandoc --strict'.
292 * In most writers, an image in a paragraph by itself is now rendered
293 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
294 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
297 * Depend on extensible-exceptions. This allows pandoc to be compiled
300 * Added --base-header-level option. For example, --base-header-level=2
301 will change level 1 headers to level 2, level 2 to level 3, etc.
302 Closes Debian #563416.
304 * Incomplete support for RST tables (simple and grid).
305 Thanks to Eric Kow. Colspans and rowspans not yet supported.
307 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
309 * MediaWiki writer: format links with relative URLs as wikilinks.
310 The new rule: If the link target is an absolute URL, an external
311 link is created. Otherwise, a wikilink is created.
313 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
314 identifier. Note: This may break links to sections that involve
317 * Markdown(+lhs) reader: handle "inverse bird tracks."
318 Inverse bird tracks (<) are used for haskell example code that is not
319 part of the literate Haskell program. Resolves Issue #211.
322 + Recognize '\ ' (interword space).
323 + Recognize nonbreaking space '~'.
324 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
325 section headers. Don't treat \section as inline LaTeX.
327 + LaTeX reader: allow any special character to be escaped.
329 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
330 headers. Resolves Issue #207.
332 * Use template variables for include-before/after.
333 + These options now imply -s; previously they worked also in fragment
335 + Users can now adjust position of include-before and include-after
336 text in the templates.
337 + Default position of include-before moved back (as it was before 1.4)
338 before table of contents.
339 + Resolves Issue #217.
341 * Don't print an empty table header: (all writers).
344 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
346 * HTML writer: Don't include TOC div if table of contents is empty.
348 * Markdown writer: Fixed citations.
349 Previously the markdown writer printed raw citation codes, e.g.
350 [geach1970], rather than the expanded citations provided by
351 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
352 This means that the document produced can be processed as a markdown
353 document without citeproc. Thanks to dsanson for reporting, and
354 Andrea Rossato for the patch.
356 * Improved and simplified title block in context template.
357 Previously it caused an error if there was no title.
358 This method should also be easier for users to customize.
361 + Treat p., pp., sec., ch., as abbreviations in smart mode.
362 + Disallow blank lines in inline code span.
363 + Allow footnotes to be indented < 4 spaces.
364 This fixes a regression. A test case has been added.
365 + Escape spaces in URLs as %20. Previously they were incorrectly
366 escaped as +, which is appropriate only for the query part of
367 a URL. Resolves Issue #220.
368 + Require two spaces after capital letter + period for list item.
369 Otherwise "E. coli" starts a list. This might change the semantics
370 of some existing documents, since previously the two-space
371 requirement was only enforced when the second word started
372 with a capital letter. But it is consistent with the existing
373 documentation and follows the principle of least surprise.
376 * LaTeX template: redefine labelwidth when using enumerate package.
377 Otherwise the list labels (numbers) often extend past the left
378 margin, which looks bad.
380 * Mediawiki writer: Don't print a "== Notes ==" header before
381 references. This is too English-centric. Writers can provide their
382 own header at the end of the document.
384 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
385 level 2, etc. This seems to be correct; it's only by convention
386 that wikipedia articles have level 2 headers at most.
387 Patch due to Eric Kow.
389 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
390 data files don't need to have been installed. This removes the need to
394 + Handle spaces before <html>. Resolves Issue #216.
395 + Be forgiving in parsing a bare list within a list.
396 The following is not valid xhtml, but the intent is clear:
399 <ol><li>sub</li></ol>
402 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
404 * Updated INSTALL instructions. cabal method is now promoted.
406 * Updated markdown2pdf man page. It no longer says all pandoc options
409 * README/man pages: Removed advice to pipe through tidy before HTML
410 reader. This is obsolete, now that we have a forgiving HTML parser.
412 * LaTeX writer: set numbersections template variable, so
413 the section numbering options work again.
415 * Removed obsolete Makefile.
417 * Website: renamed index.txt.in -> index.txt.
419 * New batch file to make-windows-installer.
420 + Removed old Makefile.windows
421 + Added make-windows-installer.bat
422 + Modified default installer name in pandoc-setup.iss
424 * Removed freebsd and macports directories.
425 They are no longer up to date.
428 + Made man page building sensitive to build verbosity.
429 + Improved detection of highlighting support in test hook.
430 + Install wrapper scripts into cabal bin directory.
431 + Also simplified installManpages.
432 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
434 * Changed default of writerXeTeX to False.
436 * HTML writer: don't include empty UL if --toc but no sections.
440 + If book, report, or memoir documentclass, use \chapter{}
441 for first-level headers. Otherwise use \section{}.
442 + Removed stLink, link template variable. Reason: we now always
443 include hyperref in the template.
446 + Only show \author if there are some.
447 + Always include hyperref package. It is used not just for links but
448 for toc, section heading bookmarks, footnotes, etc. Also added
449 unicode=true on hyperref options.
451 * markdown2pdf: always do at least two runs. hyperref bookmarks
454 * cabal file: Removed unneeded dependency on template-haskell.
456 * Windows installer - fixed bug in data file locations.
459 * Deprecated --custom-header in documentation.
460 Removed old "Custom Headers" section in README.
466 * Pandoc will now compile with either GHC 6.10 or 6.12.
467 + Don't use System.IO.UTF8 when compiling with 6.12
468 + Use -fno-warn-unused-do-bind option when compiling with 6.12
470 * Replaced old headers with templates. Now users have much more
471 control over the way documents appear in --standalone mode,
472 and writer code is simplified. Resolves Issues #59, 147.
473 Every effort has been made to retain backwards compatibilty.
474 So, the --custom-header option should still work as before.
476 + Added Text.Pandoc.Templates. This provides functions for
477 retrieving default templates and for rendering templates.
478 + System templates (in the pandoc data directory) can be
479 overridden by user templates in $HOME/.pandoc/templates.
480 + Removed Text.Pandoc.DefaultHeaders.
481 + Removed data/headers directory.
482 + Added templates directory.
483 + Added writerTemplate and writerVariables fields to WriterOptions.
484 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
485 + Changed --print-default-header to --print-default-template.
486 + Added --template option.
487 + Added -V/--variable option to set custom template variables.
489 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
491 + Removed need for TH in ODT module. Instead get reference.odt from
492 data file at run time.
493 + Removed TH dependency from S5 module. S5 module now exports
494 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
496 + Refactored LaTeXMathML not to use TH.
498 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
499 Meta [Inline] [String] String. Authors and date in Meta are now lists
500 of Inline elements rather than raw strings. This means that they can
501 be formatted and can include footnotes. NOTE: This may be a breaking
502 change for those using pandoc as a library.
504 * Added readDataFile to Text.Pandoc.Shared. This retrieves
505 a data file from the user pandoc data directory (~/.pandoc
506 on unix), or, if not found there, from the system data
507 directory ($CABALDIR/shared/pandoc-VERSION/). All data
508 files, including templates, LaTeXMathML.js, s5 styles,
509 and reference.odt, can be overridden by the user.
511 * s5 files moved from data/ui/default to s5/default.
513 * Use unicode instead of entities in HTML and XML output. Resolves
516 * Prettier HTML footnote references: put anchor inside sup,
517 instead of other way. Resolves Issue #191. Thanks to
520 * Added --xetex option to pandoc and markdown2pdf.
521 If --xetex is specified, pandoc produces latex suitable for
522 processing by xelatex, and markdown2pdf uses xelatex to create
523 the PDF. Resolves Issue #185.
525 * RTF writer: multiple authors now occupy multiple paragraphs rather
526 than using a line break.
528 * Man writer: now the "--after-body" will come after the "AUTHORS"
529 section, whereas before it would come before it. This is a
530 slight break from backwards compatibility.
532 * Added --reference-odt option, so users may customize the styles
533 used in pandoc-generated ODT files. Users may also place a
534 default reference.odt in the ~\.pandoc directory.
537 + Indented and line-broke styles.xml so it can be modified more easily.
538 + Omitted some unnecessary style declarations.
539 + Don't wrap text in OpenDocument writer. The tags are too long, making
540 wrapping ugly and pointless.
542 * LaTeX reader: use \\ to separate multiple authors.
544 * Markdown reader: use ; as separator between authors.
545 This allows you to use ',' within author names: e.g. "John Jones, Jr."
547 * S5 writer: use linebreak to separate authors in title page.
549 * RST reader: Allow :: before lhs code block. The RST spec requires the
550 :: before verbatim blocks. This :: should not be treated as literal
551 colons. Resolves Issue #189.
553 * Documented pandoc 1.3's new definition list syntax in README.
554 (An oversight in the last release.)
557 + interpret ! in a log as an error line.
558 + --toc now works properly.
560 * Changes in RunTests.hs:
561 + Use the Diff library rather than a local copy of Diff.hs.
562 (This vastly increases performance.) This change means that 'cabal
563 test' presupposes that the Diff library is installed.
564 + Removed tests/Diff.hs from cabal file.
565 + Changed RunTests to use local environment. We need at least HOME, so
566 pandoc can find its data directory.
568 * Updated windows installer to install data files in the app directory.
570 * Windows installer now installs portable wrappers hsmarkdown and
577 * Added --id-prefix option (Issue #41). This adds a prefix to all
578 automatically generated HTML identifiers, which helps prevent
579 duplicate identifiers when you're generating a fragment (say a blog
582 * Added --indented-code-classes option. This specifies classes
583 to use for indented code blocks. (Patch due to buttock; Issue #87.)
585 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
588 * Improved syntax for markdown definition lists (Issue #24).
589 Definition lists are now more compatible with PHP Markdown Extra.
590 + You can have multiple definitions for a term (but still not
592 + Multi-block definitions no longer need a column before each block
593 (indeed, this will now cause multiple definitions).
594 + The marker no longer needs to be flush with the left margin,
595 but can be indented at or two spaces. Also, ~ as well as :
596 can be used as the marker (this suggestion due to David
598 + There can now be a blank line between the term and the
601 * Better looking simple tables. Resolves Issue #180.
602 + Markdown reader: simple tables are now given column widths of 0.
603 + Column width of 0 is interpreted as meaning: use default column width.
604 + Writers now include explicit column width information only
605 for multiline tables. (Exception: RTF writer, which requires
606 column widths. In this case, columns are given equal widths,
607 adding up to the text width.)
608 + Simple tables should now look better in most output formats.
610 * Allow markdown tables without headers (Issue #50).
611 The new syntax is described in README. Also allow optional line of
612 dashes at bottom of simple tables.
614 * Compensate for width of final table column (Issue #144).
616 * Treat a backslash followed by a newline as a hard line break
617 in markdown. Resolves Issue #154. This is a nice alternative
618 to markdown's "invisible" way of indicating hardline breaks
619 using lines that end with two spaces.
621 * Improved performance of markdown reader by ~10% by eliminating the
622 need for a separate parsing pass for notes. Raw notes are now stored
623 on the first pass (which parses references), then parsed when the
624 note is inserted into the AST. The stateNotes field in ParserState
625 is now a list of [(String, String)] pairs instead of [(String,
628 * In markdown reader, treat 4 or more * or _ in a row as literal
629 text. (Trying to parse long strings of * or _ as strong or emph
630 leads to exponential performance problems.)
632 * Markdown reader: Use + rather than %20 for spaces in URLs.
634 * Fixed htmlComment parser, adding a needed 'try'.
636 * Don't print raw HTML in man output.
638 * Allow . _ and ~ in header identifiers.
640 * Specially mark code blocks that were "literate" in the input.
641 They can then be treated differently in the writers. This allows
642 authors to distinguish bits of the literate program they are writing
643 from source code examples, even if the examples are marked as
644 Haskell for highlighting. (Issue #174.)
646 * Modified html+lhs output to use "haskell" highlighter instead
647 of "literateHaskell". The highlighting module now adds bird tracks
648 after highlighting (for HTML output), if the code block has the
649 "literate" class. This gives better results, because kate's
650 haskell highlighter is much better than the literateHaskell
653 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
656 * Support for "..code-block" directive in RST reader. Not core
657 RST, but used in Sphinx for code blocks annotated with syntax
658 information. Thanks to Luke Plant for the patch.
660 * Added "head" to list of block-level HTML tags. Resolves
663 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
665 * Set utf-8 encoding in texinfo headers.
667 * Docbook writer: add ids to sections. Use link for internal links.
670 * Blank lines after lists in MediaWiki writer.
672 * Properly handle commented-out list items in markdown.
673 Resolves Issue #142. Example:
681 * Changed heuristic in compactify. compactify has to decide whether a
682 Para that ends a list is a Para intentionally, or just because of
683 the blank lines at the end of every list. In the latter case the
684 Para is turned to a Plain. The old heuristic was: change final Para
685 to Plain iff the other items all end in Plain. This produces bad
686 results when, for example, an item contains just a Plain and an HTML
687 comment, as it does in the list above. The new heuristic: change
688 final Para to Plain iff the other items don't contain a Para.
690 * Added % as an rst underline character. Resolves Issue #173.
692 * Fix inline math parser so that \$ is allowed in math.
695 * Translate \int (integral) into unicode when using unicode math
696 method. Resolves Issue #177.
698 * markdown2pdf.hs improvements:
699 + Use System.IO.UTF8.
700 + Print error messages on last attempt.
701 + Do not create a backup when overwriting a PDF (Issue #166).
702 + Accept --longopt=val options.
703 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
704 it is properly cleaned.
706 * Added haddock comments warning that readers assume \n line endings.
708 * Updated COPYRIGHT file.
710 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
711 markdown2pdf. Otherwise strip tries to strip shell scripts when you
712 install using 'make'.
714 * Changed Makefile so it doesn't build Haskell wrappers.
716 * Fixed Makefile so it doesn't try to build man pages in build-doc.
718 * Install pcre3.dll in Windows install script; this allows us to
719 package a version of pandoc with highlighting support.
725 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
726 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
727 side effect: strings of 0 spaces were interpreted as indentation.
728 So, with --preserve-tabs, unindented paragraphs were treated as
729 code. Resolves Issue #138.
731 * HTML writer: wrap sections in divs. Resolves Issue #70.
733 + hierarchicalize has been rationalized; it builds a hierarchical
734 representation of the document from the headers, and simultaneously
735 gives each section a unique identifier based on the heading title.
736 + Identifiers are now attached to the divs rather than
737 to the headers themselves.
738 + Table of content backlinks go to the beginning of the table, rather
739 than to the section reference that was clicked.
740 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
741 from the HTML writer, since it is now consumed only by
743 + In --strict mode, pandoc just prints bare headings, as before
744 (unless --toc has been specified).
745 + In s5 output, it does not wrap sections in divs, as that seems to
746 confuse the s5 javascript.
748 * Man writer: break lines at end of each sentence. groff expects this
749 and treats '.' and '?' differently when followed by line ending as
750 opposed to ordinary space. Also, don't escape periods. Instead, use
751 zero-width character \& to avoid unwanted interpretation of periods
752 at start of line. Resolves Issue #148.
754 * Markdown writer: Added '#' and '>' to list of characters to be
755 escaped in markdown output. Removed '<', as it is not an officially
756 escapable character. This partially resolves Issue #96.
758 * Make --smart the default for man output format. Otherwise we have
759 trouble dividing lists of endlines into sentences.
761 * DocBook writer: Use language attribute to indicate source language
766 + Allow # to continue list, even if the list was started with an
767 explicit marker. For example:
773 + Allow continuation lines in line blocks. Also added test cases for
774 line blocks for RST reader. Resolves Issue #149.
775 + Allow explicit links with spaces in URL: `link <to this>`_
777 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
778 (which is not in LaTeX) and recognize all the amsmath environments
779 that are alternatives to eqnarray, namely equation, equation*,
780 gather, gather*, gathered, multline, multline*, align, align*,
781 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
782 Thanks to shreevatsa.public for the patch.
786 + Allow -, _, :, . in markdown attribute names. These are legal in
788 + Use non-breaking spaces in abbreviations.
789 + Markdown reader: improved efficiency of abbreviation parsing.
790 Instead of a separate abbrev parser, we just check for
791 abbreviations each time we parse a string. This gives a huge
792 performance boost with -S. Resolves Issue #141.
794 * Improved efficiency of shared parsers: hexNum, htmlComment,
795 whitespace, indentSpaces.
797 * Export HTMLMathMethod in Text.Pandoc.
799 * Export languagesByExtension in Text.Pandoc.Highlighting.
801 * Added new Haskell version of markdown2pdf, due to
802 Paulo Tanimoto. This should be more portable than the old
805 * Made 'pandoc -v' more explicit about compiler options.
808 * pandoc.hs: Made --strict compatible with --standalone, --toc.
810 * Use Paths_pandoc to get version number, instead of hard-coding it
817 * Added support for literate Haskell. lhs support is triggered by
818 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
819 Haskell LaTeX. '.lhs' files are treated by default as literate
822 + Added stateLiterateHaskell to parser state.
823 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
824 + Added parser for |inline lhs| to LaTeX reader.
825 + Added writerLiterateHaskell to WriterOptions.
826 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
827 + Added definition of code environment to LaTeX header.
828 + Added tests (run only if highlighting support compiled in).
829 + Documented lhs features in man page and README.
831 * In Text.Pandoc.Definition, added processWith, processWithM,
832 and queryWith, and deprecated processPandoc and queryPandoc
833 for these more general functions.
835 * Fixed bug in mediawiki writer: improper closing tags in tables.
836 Thanks to Benct Philip Jonsson for reporting the bug.
838 * Added --email-obfuscation option.
840 + Added writer option for email obfuscation.
841 + Implemented email obfuscation options in HTML writer.
842 + Added option to option parser.
843 + Documented in README and pandoc man page.
844 + Resolves Issue #97.
846 * LaTeX writer: fixed bug with empty table cells.
847 Resolves Issue #107. Thanks to rodja.trappe for the patch.
849 * Fixed bug with header spacing in Markdown and RST writers.
850 A null header (Meta [] [] []) should not cause a blank line
851 at the beginning of output. But a blank line is needed between
852 a non-null header and the main text.
854 * Markdown reader: Relax spacing rules for $$ in display math. Now
855 space and newlines are allowed after the opening $$ and before the
856 closing $$. However, the display math cannot contain an entirely
857 blank line. Resolves Issue #105.
859 * Markdown reader: Gobble space after Plain blocks containing only
860 raw html inline. Otherwise following header blocks are not parsed
861 correctly, since the parser sees blank space before them. Resolves
864 * Markdown reader: Allow " as well as '' to end a latex double-quote.
866 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
869 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
871 + Added hang' function to Text.Pandoc.Shared; this will be used instead
872 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
873 is upgraded, we can go back to hang.
874 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
875 + Use hang' (and some different techniques) in RST and markdown writers.
876 Some output is now a bit different.
878 * Brought citeproc support up to date for citeproc-hs-0.2.
879 (Patch by Andrea Rossato.)
881 * Moved all haskell source to src subdirectory. Renamed Main.hs to
884 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
885 For now, keeping the old shell script too.
887 * Added TemplateHaskell to Extensions for executable, removed
888 -threaded for library. Thanks to duncan.coutts for the bug report.
891 * Moved some Extra-Source-Files to Data-Files.
893 * Moved tabFilter to Shared.
895 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
898 * Minor code cleanup based on hlint suggestions.
906 + Changed date on copyright message in Main.hs.
907 + Have the '-v' option print syntax highlighting languages
908 separated by commas, and wrapped in lines, instead of in five
911 * Added --jsmath option. Resolves Issue #68.
913 + Added --jsmath option to Main.hs
914 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
915 + Handle math appropriately in HTML writer when JsMath selected.
916 + Documented the option in README and man page.
918 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
919 for tight and loose lists. Final Para is changed to Plain if all
920 other list items *end* with a Plain block. Addresses Issue #99.
924 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
925 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
926 Added rawVerbatimBlock parser. Resolves Issue #94.
930 + Allow URLs with spaces in them in links and references, but escape
932 + Allow blank space at the end of horizontal rules.
934 * RST reader: Modified 'unknownDirective' parser to handle comment
935 blocks correctly, and added tests for comment blocks. Resolves Issue
936 #86. Closes Debian Bug #500662.
940 + Include classes on tr elements in HTML output:
941 "header", "odd", "even". This allows tables to be styled with
942 lines in alternating colors. Resolves Issue #91.
943 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
944 This prevents parts of the document that are not math from being
945 interpreted as math by LaTeXMathML.js.
947 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
948 which were formerly ignored. Resolves Issue #95.
950 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
951 between a footnote and immediately following nonspace characters in
952 LaTeX and ConTeXt output. (This gets interpreted as a space, which
953 is not desired in cases like "text^[note]---".) Resolves Issue #93.
955 * Windows installer: Don't require admin privileges to run
956 installer. Modified pandoc-setup.iss, and changed modpath.iss to
957 modify HKCU path if user lacks admin privileges. Also fixed case
958 where oldpath is empty (previously this led to the new path
959 beginning with a semicolon).
961 * Updated INSTALL instructions for Arch packages and OS X install using
964 * Removed the (now unneeded) debian directory.
965 Removed empty Codec and System directories.
967 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
969 * Modified Setup.hs so that the "test" target returns an error status
970 when tests fail, and "build" returns a success status if
971 the build succeeds. Resolves Issue #100.
973 * Added BUGS to files in tarball.
980 * Removed spurious reference to pdf output format from pandoc(1) man page.
986 * Added new OpenDocument writer.
988 * Added support for SmallCaps inline element.
990 * Added support for integrating pandoc with citeproc-hs.
992 + Added Cite element to definition and writers.
993 + Added Text.Pandoc.Biblio module
994 + Note: This support is included only if the 'citeproc'
995 Cabal configuration flag is set.
997 * Made Pandoc data structure an instance of Typeable.
998 Added new processPandoc and queryPandoc functions, to query
999 or transform matching elements in a Pandoc structure.
1003 * Added new Texinfo writer.
1007 * Changes to Texinfo writer:
1009 + No space between paragraph and following @verbatim (provides more
1010 pleasing appearance in text formats)
1011 + Blank line consistently after list environments.
1013 + Use @code instead of @verb for inline code (this solves the character
1014 escaping problem for texi2dvi and texi2pdf).
1015 + Added news of Texinfo writer to README.
1016 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
1017 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
1018 default output extension.
1019 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
1021 * Added tests for OpenDocument writer.
1023 * Added ODT writer (using zip-archive library to package output of
1024 OpenDocument writer). Added odt-styles directory with default ODT styles.
1026 * Added new mediawiki writer and tests.
1028 * Markdown reader: Added support for delimited code blocks, with optional
1029 syntax highlighting using highlighting-kate (if the 'highlighting'
1030 configuration option is selected).
1032 + Currently highlighting is supported only in the HTML writer.
1033 + Delimited code blocks can have attributes; using the language name as
1034 class triggers highlighting.
1035 + New Attributes parameter in CodeBlock structure.
1036 + --version now indicates whether syntax highlighting support is compiled
1037 in, and prints a list of supported languages
1039 * Removed debian directory. Pandoc is no longer a native debian package.
1041 * Changes to build process: pandoc can now be built from the repository
1042 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
1045 + Include shell scripts themselves in repo, rather than generating from wrappers.
1046 Removed wrappers directory and wrappers Makefile target.
1047 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
1048 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
1049 from templates in the templates/ directory. Instead, they use template
1050 haskell to read data at compile time from the relevant files in data/.
1051 Template haskell functions go in a new module, Text.Pandoc.TH.
1052 + man pages are now generated in Setup.hs hook, not by Makefile
1053 + Makefile 'tarball' target now calls Cabal's 'sdist'
1054 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
1055 + Added "Build-Type" field to pandoc.cabal to avoid warning.
1056 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
1057 so 'sdist' and 'clean' will work properly.
1058 + Setup.hs now generates man pages in a postbuild hook.
1059 + Added dependency-checking to Setup.hs, so it only rebuilds things
1060 that need rebuilding.
1061 + Added 'library' and 'executable' configuration flags.
1062 Cabal can now be told to build just the library or just the executable.
1063 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
1064 For example: CABALOPTS=-fhighlighting make
1066 * Rewrote test suite so it doesn't depend on perl or unix tools.
1068 + Replaced old runtests.pl with a Haskell script RunTests.hs.
1069 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
1070 + Added test hook to Setup.hs, so tests may be run from cabal.
1071 + Changed Makefile's 'test' target to run tests via cabal.
1072 + Removed old generate.sh.
1073 + Since we no longer have 'sed' to filter out raw HTML sections
1074 from the docbook writer test, or raw LaTeX sections from the
1075 context writer test, we now just include these sections.
1076 They can be taken out if it is necessary to process the files.
1077 + Updated latex and context writer tests to remove extra spaces
1079 + Added a markdown table reader test.
1080 + Added markdown-reader-more.txt to test suite, for additional test cases
1081 for raw ConTeXt environments and more.
1083 * Compatibility fixes for CPP, Cabal, and haddock:
1085 + Use CPP in "Extensions" field in pandoc.cabal.
1086 + Removed use of backslash string continuations in source files.
1088 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
1091 * Require parsec < 3.
1092 The compatibility module in parsec 3.0.0 gives far worse performance than
1093 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
1094 version of parsec, and then we'll go to parsec 3.0.0.
1096 * Removed Text.Regex dependencies by rewriting using plain Haskell
1097 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
1099 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
1103 + Added 'configure' as dependency of 'uninstall-all'.
1104 (It uses the Cabal build program.)
1105 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
1106 Note that Cabal will automatically choose the ghc-pkg appropriate
1107 for the compiler selected, so normally specifying GHC by itself
1110 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
1111 its IO and conversion functions.
1113 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
1114 everything is -Wall clean.
1116 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
1117 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
1118 (These are caused by the Lift instance for ByteString.)
1120 * Changed the comment used to replace unsafe HTML if sanitize-html option
1123 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
1125 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
1127 * Escape '\160' as " ", not " " in XML.
1128 "nbsp" isn't a predefined XML entity.
1130 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
1131 Added some try's in ordered list parsers.
1133 * Man writer: don't escape " as \".
1135 * Allow newline before URL in markdown link references. Resolves Issue #81.
1136 Added tests for this issue in new "markdown-reader-more" tests.
1137 Changed RunTests.hs to run these tests.
1139 * Support for display math. Resolves Issue #47.
1141 + Added a DisplayMath/InlineMath selector to Math inlines.
1142 + Markdown parser yields DisplayMath for $$...$$.
1143 + LaTeX parser yields DisplayMath when appropriate. Removed
1144 mathBlock parsers, since the same effect is achieved by the math
1145 inline parsers, now that they handle display math.
1146 + Writers handle DisplayMath as appropriate for the format.
1147 + Modified tests accordingly; added new tests for display math.
1149 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
1150 to LaTeX in its display of math, and supports many non-math LaTeX environments.
1152 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
1153 + Modified HTML writer to print raw TeX when LaTeXMathML is
1154 being used instead of suppressing it.
1155 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
1156 + Replaced ASCIIMathML with LaTeXMathML in source files.
1157 + Modified README and pandoc man page source.
1158 + Added --latexmathml option (kept --asciimathml as a synonym
1159 for backwards compatibility)
1161 * Markdown reader: Parse setext headers before atx headers.
1165 parsed by Markdown.pl as an H1 header with contents "# hi".
1167 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
1168 The marker on the first list item determines the type of the whole
1169 list. Thus, a list like
1173 gets parsed as a single ordered list. (Previous versions of pandoc
1174 treated this as an ordered list with an unordered sublist.)
1176 * Markdown smart typography:
1178 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
1179 + Use nonbreaking spaces after known abbreviations in markdown parser.
1180 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
1181 not produce a sentence-separating space. Resolves Issue #75.
1183 * Markdown writer: Print unicode \160 literally, rather than as .
1185 * Treat '\ ' in (extended) markdown as nonbreaking space.
1186 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
1188 * The '--sanitize-html' option now examines URIs in markdown links
1189 and images, and in HTML href and src attributes. If the URI scheme
1190 is not on a whitelist of safe schemes, it is rejected. The main point
1191 is to prevent cross-site scripting attacks using 'javascript:' URIs.
1192 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
1193 and http://ha.ckers.org/xss.html. Resolves Issue #62.
1197 + Override Text.XHtml's stringToHtml function,
1198 so that characters below 0xff are not converted to numerical entity
1199 references. Also convert '\160' to " ". This should aid readability
1200 and editability of the HTML source. It does presuppose that the HTML
1201 will be served as UTF-8.
1202 + In code blocks, change leading newlines to <br /> tags.
1203 (Some browsers ignore them.) Resolves Issue #71.
1204 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
1205 + Use style attributes rather than css classes for strikethrough
1206 and ordered list styles. This works better when fragments, rather than
1207 standalone documents, are generated.
1209 * HTML reader: Count anything that isn't a known block (HTML) tag as an
1210 inline tag (rather than the other way around). Added "html", "head", and
1211 "body" to list of block tags. Resolves Issue #66, allowing
1212 <lj> to count as an inline tag.
1214 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
1215 boldface, and other inline elements. Resolves Issue #64.
1217 * LaTeX reader: improvements in raw LaTeX parsing.
1219 + "loose punctuation" (like {}) parsed as Space
1220 + Para elements must contain more than Str "" and Space elements
1221 + Added parser for "\ignore" command used in literate haskell.
1222 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
1223 mode, these parsers simply strip off the command part and allow
1224 the arguments to be parsed normally. So, for example,
1225 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
1227 + Parse lhs "code" environments as verbatim.
1228 Refactored parsers for verbatim environments.
1229 + Removed specialEnvironment parser.
1230 + parse '{}', if present, after \textless, \textgreater,
1231 \textbar, \textbackslash, \ldots.
1232 + Parse unescaped special characters verbatim rather than
1233 changing them to spaces. This way arguments of unknown
1234 commands will appear in braces.
1236 * Parse raw ConTeXt environments as TeX in markdown reader.
1239 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
1241 * Made some structural changes to parsing of raw LaTeX environments.
1242 Previously there was a special block parser for LaTeX environments.
1243 It returned a Para element containing the raw TeX inline. This has
1244 been removed, and the raw LaTeX environment parser is now used in the
1245 rawLaTeXInline parser. The effect is exactly the same, except that we
1246 can now handle consecutive LaTeX and ConTeXt environments not separated
1247 by spaces. This new flexibility is required by the example in
1250 \placeformula \startformula
1254 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
1255 returns a string) rather than rawLaTeXEnvironment (which returns a block
1256 element). This is more likely to be useful in other applications.
1258 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
1259 \textsubscript conflicts with a definition in the memoir class.
1262 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
1264 * Added amsmath package to default LaTeX header. Resolves Issue #48.
1266 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
1267 list introduction lines.
1269 * Changed Float to Double in definition of Table element.
1270 (Double is more efficient in GHC.)
1272 * Fixed bug in Markdown parser: regular $s triggering math mode.
1273 For example: "shoes ($20) and socks ($5)."
1274 The fix consists in two new restrictions:
1276 + the $ that ends a math span may not be directly followed by a digit.
1277 + no blank lines may be included within a math span.
1279 Thanks to Joseph Reagle for noticing the bug.
1281 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
1282 Removed 'joinWithSep' from Text.Pandoc.Shared.
1284 * Updated README and man pages. Acknowledge contributors in README.
1285 Added paragraph to README about producing S5 with separate CSS/javascript.
1287 * Updated INSTALL to reflect new build system (including configuration
1288 options) and document new dependencies. Added note to INSTALL that
1289 Cabal >= 1.2 is required for build. Resolves Issue #74.
1291 * Fixed some haddock documentation errors.
1293 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
1295pandoc (0.46) unstable; urgency=low
1299 * Made -H, -A, and -B options cumulative: if they are specified
1300 multiple times, multiple files will be included.
1302 * Added optional HTML sanitization using a whitelist.
1303 When this option is specified (--sanitize-html on the command line),
1304 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
1305 attributes will be removed. This option should be especially useful
1306 for those who want to use pandoc libraries in web applications, where
1307 users will provide the input.
1309 + Main.hs: Added --sanitize-html option.
1311 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
1313 + Text.Pandoc.Readers.HTML:
1314 - Added whitelists of sanitaryTags and sanitaryAttributes.
1315 - Added parsers to check these lists (and state) to see if a given
1316 tag or attribute should be counted unsafe.
1317 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
1319 - Modified htmlAttribute to remove unsafe attributes.
1320 - Modified htmlScript and htmlStyle to remove these elements if
1323 + Modified README and man pages to document new option.
1325 * Improved handling of email addresses in markdown and reStructuredText.
1326 Consolidated uri and email address parsers. (Resolves Issue #37.)
1328 + New emailAddress and uri parsers in Text.Pandoc.Shared.
1329 - uri parser uses parseURI from Network.URI.
1330 - emailAddress parser properly handles email addresses with periods
1333 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
1334 and Text.Pandoc.Readers.Markdown.
1338 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
1339 nested in an Emph. (A '*' is only recognized as the end of the
1340 emphasis if it's not the beginning of a strong emphasis.)
1342 + Moved blockQuote parser before list parsers for performance.
1344 + Modified 'source' parser to allow backslash-escapes in URLs.
1345 So, for example, [my](/url\(1\)) yields a link to /url(1).
1348 + Disallowed links within links. (Resolves Issue #35.)
1349 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
1350 instead of hard-coding the inline parser takes an inline parser
1352 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
1353 - Removed unneeded inlineString function.
1354 - Added inlineNonLink parser, which is now used in the definition of
1356 - Added inlineParsers list and redefined inline and inlineNonLink parsers
1358 - Added failIfLink parser.
1360 + Better handling of parentheses in URLs and quotation marks in titles.
1361 - 'source' parser first tries to parse URL with balanced parentheses;
1362 if that doesn't work, it tries to parse everything beginning with
1363 '(' and ending with ')'.
1364 - source parser now uses an auxiliary function source'.
1365 - linkTitle parser simplified and improved, under assumption that it
1366 will be called in context of source'.
1368 + Make 'block' conditional on strictness state, instead of using
1369 failIfStrict in block parsers. Use a different ordering of parsers
1370 in strict mode (raw HTML block before paragraph) for performance.
1371 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
1372 Simplified htmlBlock, since we know it's only called in strict
1375 + Improved handling of raw HTML. (Resolves Issue #36.)
1376 - Tags that can be either block or inline (e.g. <ins>) should
1377 be treated as block when appropriate and as inline when
1378 appropriate. Thus, for example,
1380 should be treated as a paragraph with inline <ins> tags, while
1384 should be treated as a paragraph within <ins> tags.
1385 - Moved htmlBlock after para in list of block parsers. This ensures
1386 that tags that can be either block or inline get parsed as inline
1388 - Modified rawHtmlInline' so that block elements aren't treated as
1390 - Modified para parser so that paragraphs containing only HTML tags and
1391 blank space are not allowed. Treat these as raw HTML blocks instead.
1393 + Fixed bug wherein HTML preceding a code block could cause it to
1394 be parsed as a paragraph. The problem is that the HTML parser
1395 used to eat all blank space after an HTML block, including the
1396 indentation of the code block. (Resolves Issue #39.)
1397 - In Text.Pandoc.Readers.HTML, removed parsing of following space
1399 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
1400 indentation is eaten *only* on the first line after the HTML
1401 block. This means that in
1405 the foo won't be treated as a code block, but in
1411 it will. This seems the right approach for least surprise.
1415 + Fixed bug in parsing explicit links (resolves Issue #44).
1416 The problem was that we were looking for inlines until a '<' character
1417 signaled the start of the URL; so, if you hit a reference-style link,
1418 it would keep looking til the end of the document. Fix: change
1419 inline => (notFollowedBy (char '`') >> inline). Note that this won't
1420 allow code inlines in links, but these aren't allowed in resT anyway.
1422 + Cleaned up parsing of reference names in key blocks and links.
1423 Allow nonquoted reference links to contain isolated '.', '-', '_', so
1424 so that strings like 'a_b_' count as links.
1426 + Removed unnecessary check for following link in str.
1427 This is unnecessary now that link is above str in the definition of
1432 + Modified rawHtmlBlock so it parses </html> and </body> tags.
1433 This allows these tags to be handled correctly in Markdown.
1434 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
1435 since these are handled in parseHtml. (Resolves Issue #38.)
1437 + Fixed bug (emph parser was looking for <IT> tag, not <I>).
1439 + Don't interpret contents of style tags as markdown.
1440 (Resolves Issue #40.)
1441 - Added htmlStyle, analagous to htmlScript.
1442 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
1443 - Moved "script" from the list of tags that can be either block or
1444 inline to the list of block tags.
1446 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
1447 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
1448 inline tags would be included in raw HTML blocks.
1450 + Modified anyHtmlBlockTag to test for (not inline) rather than
1451 directly for block. This allows us to handle e.g. docbook in
1452 the markdown reader.
1454 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
1455 Updated LaTeX reader test to use --parse-raw.
1459 + Modified rules for automatic HTML header identifiers to
1460 ensure that identifiers begin with an alphabetic character.
1461 The new rules are described in README. (Resolves Issue #33.)
1463 + Changed handling of titles in HTML writer so you don't get
1464 "titleprefix - " followed by nothing.
1466 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
1467 spacing. Each block element is wrapped with either Pad or Reg.
1468 Pad'ed elements are guaranteed to have a blank line in between.
1472 + Refactored RST writer to use a record instead of a tuple for state,
1473 and to include options in state so it doesn't need to be passed as
1476 + Use an interpreted text role to render math in restructuredText.
1477 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
1482 * Debian packaging changes:
1484 + Remove the empty 'include' directory in -dev package, which lintian
1486 + Bump Standarts-Version to 3.7.3.
1487 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
1490 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
1492pandoc (0.45) unstable; urgency=low
1496 * Simplified parsing of reference keys and notes in markdown and RST
1497 readers: The Reference data structure from Text.Pandoc.Shared is no
1498 longer needed, since referenceKey and noteBlock parses return strings
1499 (as many blank lines as were occupied by the key or note) and update
1500 state themselves. getPosition and setPosition are now used to ensure
1501 that error messages will give the correct line number. This yields
1502 cleaner (and slightly faster) code, with more accurate parsing error
1505 * Added new Math inline element:
1507 + Markdown and LaTeX readers now convert TeX math into Math elements,
1509 + This allows math to be treated differently from raw TeX in output.
1510 TeX elements are no longer printed in output formats other than
1511 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
1513 * New default handling of math in writers:
1515 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
1516 parses raw TeX math and outputs a string of Pandoc inlines that
1517 tries to render it as far as possible using unicode characters,
1518 lapsing into literal TeX when needed.
1519 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
1520 and Docbook, if no other method for displaying math in HTML is
1521 specified. Enclosing $'s are no longer printed by default.
1522 + By default, math is put inside <span class="math">. This way it can be
1523 distinguished from the surrounding text, e.g. put in a different
1526 * New --gladtex and --mimetex options for display of math in HTML:
1528 + If --gladtex is specified, math is output between <eq> tags, so
1529 it can be processed by gladTeX.
1530 + If --mimetex is specified, math is put in <img> tags with a link
1531 to the mimetex CGI script (or any other script that takes TeX math
1532 as input and outputs an image). The URL of the script may be
1533 specified, but defaults to /cgi-bin/mimetex.cgi.
1534 + HTMLMathMethod structure in WriterOptions keeps track of how to
1535 display math in HTML output.
1536 + Updated README with a description of the four options for displaying
1541 + Fixed bug: parser for minimized attributes should not swallow
1543 + Simplified HTML attribute parsing.
1544 + Changed parsing of code blocks in HTML reader: <code> tag is no
1545 longer needed. <pre> suffices. All HTML tags in the code block
1546 (e.g. for syntax highlighting) are skipped, because they are not
1547 portable to other output formats. A <code>...</code> block not
1548 surrounded by <pre> now counts as inline HTML, not a code block.
1549 + Remove just one leading and one trailing newline from contents of
1550 <pre>...</pre> in codeBlock parser.
1554 + Removed support for box-style block quotes.
1555 + Require space before title in links and references.
1556 This fixes a bug in parsing URLs like http://silly/url(withparen).
1557 + Improved and simplified setextHeader parser.
1558 + Fixed logic in smart quote parsing, adding some needed 'try'
1560 + Fixed smart quote parsing so that unicode characters 8216 and 8217
1561 are recognized as single quotes, and 8220 and 8221 as double quotes.
1565 + Fixed bug in parsing of code blocks. Previously a full tab indent
1566 was required, but RST allows code to be indented any amount.
1568 + Allow field lists to be indented.
1569 + Parse the contents of field lists instead of treating as a raw string.
1570 + Represent field lists as definition lists instead of blockquotes.
1571 + Fixed bug in which metadata would be overridden if the document
1572 contained multiple field lists.
1573 + Parse fields associated with '.. image::' blocks, and use 'alt'
1574 field, if given, for image alt and title attributes.
1578 + Modified specialChar so that '"' characters are parsed.
1579 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
1583 + Changes in handling of math (see above).
1584 + Don't produce HTML for table of contents if there are
1585 no headers. (This would be an empty list, which is invalid XHTML.)
1589 + Don't print title attribute if title is empty. (This differs from
1590 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
1591 Gruber has indicated that he prefers this behavior.) Adjusted test
1593 + Fixed incorrect line wrapping in paragraphs including hard line
1594 breaks. Resolves Issue #25.
1595 + Fixed bug in markdown writer: If an ordered list item began with
1596 a marker greater than 3 characters in width, and the item took more
1597 than one line, it would appear on the line after the list marker,
1604 Now it works as follows:
1611 + Fixed bug in RST writer's handling of ordered lists. Previously,
1612 list items with multiple lines would not always line up with
1613 single-line list items. Now, list items are nested the length of
1614 the list marker + 1. This looks better and ensures that list items
1615 all line up. (Note that list markers are padded to the length of
1616 the longest list marker in the series.)
1617 + Use 3-space indent for unordered lists.
1618 + If label for a link reference contains a colon, surround it by `
1619 signs so it won't be interpreted as the end of the link label.
1623 + Cleaner output for footnotes. Footnotes now always begin on a new
1624 line, and the final } is on a line by itself only when it needs to
1625 be (i.e. only when the note ends with a Verbatim environment).
1626 + Added writer options to state, so state doesn't need to be passed as
1628 + Text wrapping now provided, using wrapTeXIfNeeded.
1630 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
1631 (thanks to Idris Samawi Hamid for suggestions).
1633 + PrettyPrint module now used for output.
1634 + Writer options are now in state, so they don't have to be passed as
1636 + Text wrapping now provided, using wrapTeXIfNeeded.
1637 + Better treatment of footnotes: footnotes are always on lines by
1638 themselves, and the final } is on a line by itself only when
1639 it needs to be (after \stoptyping).
1640 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
1641 depending on whether --number-sections option is selected.
1642 + Extra blank line inserted after \stopitemize
1643 + Use new, "official" definition of blockquote environment. Also, use
1644 blank line after \startblockquote to balance blank line at the end.
1645 + Both itemized and enumerated lists are now generated using
1646 \start-stopitemize, with appropriate options. Removed definitions
1647 of ltxenum and ltxitem, which are no longer needed. Provided
1648 defaults for itemized lists in the preamble. State keeps track of
1649 ordered list level, so that when default numbering is specified,
1650 the appropriate scheme can be used.
1651 + Changed \useurl to \useURL.
1652 + Changed link color from red to blue.
1653 + Use \subsubsubsubsection etc., since these are supported
1654 (up to at least sub x 5).
1656 * Text.Pandoc.Shared:
1658 + Save and restore position in parseFromString, so that accurate
1659 error messages can be given.
1660 + Improved efficiency of romanNumeral parser.
1661 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
1662 that footnotes occur on lines by themselves (to make them
1663 easier to see and move) and do not screw up line wrapping.
1665 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
1666 if present. Windows Notepad and other applications insert a
1667 BOM at the beginning of a UTF8 file.
1669 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
1670 addition to "\r\n" and '\n').
1672 * Added a writer option for wrapped text and a command-line option
1673 '--no-wrap', which disables text wrapping and minimizes whitespace
1674 in HTML. (Resolves Issue #26.)
1676 + Added support for '--no-wrap' to Main.hs.
1677 + Added wrapIfNeeded function to Text.Pandoc.Shared.
1678 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
1680 + Added render and renderFragment helpers to HTML writer.
1682 * Modified html2markdown to run tidy only if the HTML cannot be
1683 parsed. Previously html2markdown piped all input through tidy
1684 before passing it to pandoc. This caused problems on certain pages
1685 (e.g. http://daringfireball.com/markdown) which have well-formed
1686 XHTML that causes tidy to choke. The solution is to pipe through
1687 tidy only if pandoc cannot parse the input by itself. This means
1688 that a temp file is now always used, even when input comes from a
1689 local file or standard input.
1691 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
1692 Text.Pandoc library.
1696 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
1697 6.8, pretty and containers must be added to Build-Depends, and it
1698 is desirable to use the -O2 compiler option.) Cabal configurations
1699 allows one to select options depending on the compiler version.
1700 For GHC 6.6, the splitBase option can be disabled.
1701 + pandoc.cabal.ghc66 is provided for users with older versions of
1702 Cabal, which do not support configurations.
1703 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
1704 '--enable-(executable|library)-profiling' is specified. Updated
1705 PROFILING instructions accordingly.
1709 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
1710 is copied to pandoc.cabal, and the old pandoc.cabal is copied
1711 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
1712 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
1713 will work properly with either GHC 6.6 or 6.8.
1714 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
1715 This is where current versions of Cabal put it.
1716 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
1717 + Removed dependency of templates on ./templates, which is circular
1718 now that templates is a subdirectory of the top-level.
1720 * MacPorts Portfile:
1722 + Modified to install the pandoc library in addition to programs.
1723 + Installation must be done manually rather than using Makefile's
1725 + Note that the library must be registered in the activate phase,
1726 after the library files have been copied out of the destroot.
1727 Cabal generates a 'register.sh' script that will do this.
1729 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
1730 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
1733 * debian/rules: Converted to UTF-8.
1735 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
1737 * Updated ASCIIMathML.js to latest version.
1739 * Directory structure:
1741 + Moved everything from src into the top-level directory.
1742 + Changed references to source directory in Makefile and
1744 + Moved ASCIIMathML.js, headers, and ui into templates directory.
1745 + Modified fillTemplates.pl to reflect new paths.
1749 * Makefile: Fixed the issue of having two copies of the library
1750 documentation under some usage scenarios.
1752 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
1753 and GHC_PKG configurable through the environment, to support
1754 unusual ghc installations. For example:
1755 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
1757 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
1759pandoc (0.44) unstable; urgency=low
1763 * Fixed bug in HTML writer: when --toc was used, anchors were put around
1764 headers, which is invalid XHTML (block content within inline element).
1765 Now the anchors are put inside the header tags. Resolves Issue #23.
1767 * Added xmlns attribute to html element in html writer tests.
1768 This attribute is added by more recent versions of the
1769 xhtml library (>= 3000), and is required for valid XHTML.
1773 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
1774 command instead of 'runhaskell', which, on some platforms (such as s390,
1775 alpha, m68k), throws the following error:
1777 runhaskell Setup.hs configure --prefix=/usr
1778 ghc-6.6.1: not built for interactive use
1780 This causes a serious FTBFS bug. Closes: #440668.
1782 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
1784pandoc (0.43) unstable; urgency=low
1788 * The focus of this release is performance. The markdown parser
1789 is about five times faster than in 0.42, based on benchmarks
1790 with the TextMate manual.
1792 * Main.hs: Replaced CRFilter and tabFilter with single function
1793 tabFilter, which operates on the whole string rather than breaking
1794 it into lines, and handles dos-style line-endings as well as tabs.
1796 * Added separate LaTeX reader and native reader tests; removed
1799 * Text.Pandoc.Shared:
1801 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
1802 + General code cleanup (to elimante warnings when compiling with -Wall.)
1803 + Added 'wrapped' function, which helps wrap text into paragraphs,
1804 using the prettyprinting library.
1805 + Rewrote charsInBalanced and charsInBalanced'.
1806 - Documented restriction: open and close must be distinct characters.
1807 - Rearranged options for greater efficiency.
1808 - Bug fix: Changed inner call to charsInBalanced inside
1809 charsInBalanced' to charsInBalanced'.
1810 + anyLine now requires that the line end with a newline (not eof).
1811 This is a harmless assumption, since we always add newlines to the
1812 end of a block before parsing with anyLine, and it yields a 10% speed
1814 + Removed unnecessary 'try' in anyLine.
1815 + Removed unneeded 'try' from romanNumeral parser.
1816 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
1817 + Removed unneeded 'try' in parseFromString.
1818 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
1820 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
1821 'try' is not automatically applied to the 'end' parser. Added
1822 'try' in calls to 'enclosed' where needed. Slight speed increase.
1826 + Replaced individual wrapping routines in RST, Man, and Markdown
1827 writers with 'wrapped' from Text.Pandoc.Shared.
1828 + Rewrote LaTeX writer to use the prettyprinting library,
1829 so we get word wrapping, etc.
1830 + Modified latex writer tests for new latex writer using prettyprinter.
1831 + Fixed bug in LaTeX writer: autolinks would not cause
1832 '\usepackage{url}' to be put in the document header. Also, changes
1833 to state in enumerated list items would be overwritten.
1834 + In Markdown writer, escape paragraphs that begin with ordered list
1835 markers, so they don't get interpreted as ordered lists.
1837 * Text.Pandoc.Reades.LaTeX:
1839 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
1840 numeral after "enum" in "setcounter" would consist entirely of
1841 "i"s. 'enumiv' is legitimate.
1842 + LaTeX command and environment names can't contain numbers.
1843 + Rearranged order of parsers in inline for slight speed improvement.
1844 + Added '`' to special characters and 'unescapedChar'.
1846 * Text.Pandoc.Readers.RST:
1848 + Removed unneeded try's in RST reader; also minor code cleanup.
1850 + Rearranged parsers in inline (doubled speed).
1852 * Text.Pandoc.Readers.Markdown:
1854 + Skip notes parsing if running in strict mode. (This yields a nice
1855 speed improvement in strict mode.)
1856 + Simplify autolink parsing code, using Network.URI to test for
1857 URIs. Added dependency on network library to debian/control and
1859 + More perspicuous definition of nonindentSpaces.
1860 + Removed unneeded 'try' in 'rawLine'.
1861 + Combined linebreak and whitespace into a new whitespace parser, to
1862 avoid unnecessary reparsing of space characters.
1863 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
1864 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
1865 + Use lookAhead in parsers for setext headers and definition lists
1866 to see if the next line begins appropriately; if not, don't waste
1867 any more time parsing.
1868 + Don't require blank lines after code block. (It's sufficient to
1869 end code block with a nonindented line.)
1870 + Changed definition of 'emph': italics with '_' must not
1871 be followed by an alphanumeric character. This is to help
1872 prevent interpretation of e.g. [LC_TYPE]: my_type as
1873 '[LC<em>TYPE]:my</em>type'.
1874 + Improved Markdown.pl-compatibility in referenceLink: the two parts
1875 of a reference-style link may be separated by one space, but not
1876 more... [a] [link], [not] [a link].
1877 + Fixed markdown inline code parsing so it better accords with
1878 Markdown.pl: the marker for the end of the code section is a clump
1879 of the same number of `'s with which the section began, followed
1880 by a non-` character. So, for example,
1881 ` h ``` i ` -> <code>h ``` i</code>.
1882 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
1883 rules are slightly different.
1884 + Rewrote 'para' for greater efficiency.
1885 + Rewrote link parsers for greater efficiency.
1886 + Removed redundant 'referenceLink' in definition of inline (it's
1888 + Refactored escapeChar so it doesn't need 'try'.
1889 + Refactored hrule for performance in Markdown reader.
1890 + More intelligent rearranging of 'inline' so that most frequently
1891 used parsers are tried first.
1892 + Removed tabchar parser, as whitespace handles tabs anyway.
1894 * Text.Pandoc.CharacterReferences:
1897 + Removed unnecessary 'try's for a speed improvement.
1898 + Removed unnecessary '&' and ';' from the entity table.
1902 + Makefile: Get VERSION from cabal file, not Main.hs.
1903 + Modified MacPorts Portfile:
1905 - Build and install libraries and library documentation in
1906 addition to pandoc executable
1907 - Added template item for md5 sum in Portfile.in.
1908 - Incorporated changes from MacPorts repository (r28278).
1909 + FreeBSD port: Don't try to generate distinfo in Makefile.
1910 It can be made using 'make makesum' in FreeBSD.
1911 + Make both freebsd and macports targets depend on tarball.
1913 * Website and documentation:
1915 + Updated INSTALL instructions.
1916 + Added pandocwiki demo to website.
1917 + Removed local references to Portfile, since pandoc is now in the
1918 MacPorts repository.
1920 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
1922pandoc (0.42) unstable; urgency=low
1926 * Main.hs: Use utf8 conversion on the extra files loaded with
1927 the -H, -C, -B, and -A options. This fixes problems with unicode
1928 characters in these files.
1930 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
1931 Text.Pandoc.Readers.HTML and without it we get a linking error when
1936 + Added new rule for enhanced markdown ordered lists: if the list
1937 marker is a capital letter followed by a period (including a
1938 single-letter capital roman numeral), then it must be followed by
1939 at least two spaces. The point of this is to avoid accidentally
1940 treating people's initials as list markers: a paragraph might begin,
1941 "B. Russell was an English philosopher," and this shouldn't be
1942 treated as a list. Documented change in README.
1943 + Blocks that start with "p. " and a digit are no longer treated
1944 as ordered lists (it's a page number).
1945 + Added a needed 'try' to listItem.
1946 + Removed check for a following setext header in endline.
1947 A full test is too inefficient (doubles benchmark time), and the
1948 substitute we had before is not 100% accurate.
1949 + Don't use Code elements for autolinks if --strict specified.
1951 * LaTeX writer: When a footnote ends with a Verbatim environment, the
1952 close } of the footnote cannot occur on the same line or an error occurs.
1953 Fixed this by adding a newline before the closing } of every footnote.
1956 + Removed incorrect "{}" around style information in HTML tables.
1957 Column widths now work properly in HTML.
1958 + If --strict option is specified (and --toc is not), don't include
1959 identifiers in headers, for better Markdown compatibility.
1963 + Separated $(web_dest) and website targets.
1964 + In website, index.txt is now constructed from template index.txt.in.
1965 + Added freebsd target to Markefile. This creates the freebsd Makefile
1966 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
1967 from the repository.
1968 + Added macport target to Makefile. Portfile is built from template
1970 + Removed OSX package targets. (Too many difficulties involving
1971 dependencies on dynamic libraries.)
1972 + More complete INSTALL instructions for all architectures.
1975 + Added a programming demo, pandocwiki.
1979 * Do not forget to close pandoc's ITP. Closes: #391666
1981 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
1983pandoc (0.41) unstable; urgency=low
1987 * Fixed bugs in HTML reader:
1988 + Skip material at end *only if* </html> is present (previously,
1989 only part of the document would be parsed if an error was
1990 found; now a proper error message is given).
1991 + Added new constant eitherBlockOrInline with elements that may
1992 count either as block-level or as inline. Modified isInline and
1993 isBlock to take this into account.
1994 + Modified rawHtmlBlock to accept any tag (even an inline tag):
1995 this is innocuous, because rawHtmlBlock is tried only if a regular
1996 inline element can't be parsed.
1997 + Added a necessary 'try' in definition of 'para'.
1999 * Fixed bug in markdown ordered list parsing. The problem was that
2000 anyOrderedListStart did not check for a space following the
2001 ordered list marker. So in 'A.B. 2007' the parser would be
2002 expecting a list item, but would not find one, causing an error.
2003 Fixed a similar bug in the RST reader. Resolves Issue #22.
2005 * Refactored RST and Markdown readers using parseFromString.
2007 * LaTeX reader will now skip anything after \end{document}.
2009 * Fixed blockquote output in markdown writer: previously, block
2010 quotes in indented contexts would be indented only in the first
2013 * Added note to INSTALL about variations in versions of the xhtml
2014 library that can lead to failed tests (thanks to Leif LeBaron).
2016 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
2018pandoc (0.4) unstable; urgency=low
2022 * Added two new output formats: groff man pages and ConTeXt. By
2023 default, output files with extensions ".ctx" and ".context" are
2024 assumed to be ConTeXt, and output files with single-digit extensions
2025 are assumed to be man pages.
2027 * Enhanced ordered lists (documented in README, under Lists):
2028 + The OrderedList block element now stores information about
2029 list number style, list number delimiter, and starting number.
2030 + The readers parse this information when possible.
2031 + The writers use this information to style ordered lists.
2032 + The enhancement can be disabled using the --strict option.
2034 * Added support for tables (with a new Table block element). Two kinds
2035 of tables are supported: a simple table with one-line rows, and a
2036 more complex variety with multiline rows. All output formats are
2037 supported, but only markdown tables are parsed at the moment. The
2038 syntax is documented in README.
2040 * Added support for definition lists (with a new DefinitionList block
2041 element). All output and input formats are supported. The syntax is
2042 documented in README.
2044 * Added support for superscripts and subscripts (with new Superscript
2045 and Subscript inline elements). All input and output
2046 formats. The syntax is documented in README.
2048 * Added support for strikeout (with a new Strikeout inline element).
2049 All input and output formats are supported. Thanks to Bradley Kuhn,
2050 who contributed a patch. The syntax is documented in README. Resolves
2053 * Added a --toc|--table-of-contents option. This causes an automatically
2054 generated table of contents (or an instruction that creates one) to
2055 be inserted at the beginning of the document. Not supported in S5,
2056 DocBook, or man page writers.
2058 * Modified the -m|--asciimathml option:
2060 + If an optional URL argument is provided, a link is inserted
2061 instead of the contents of the ASCIIMathML.js script.
2062 + Nothing is inserted unless the document actually contains
2065 * Removed Blank block element as unnecessary.
2067 * Removed Key and Note blocks from the Pandoc data structure. All
2068 links are now stored as explicit links, and note contents are
2069 stored with the (inline) notes.
2071 + All link Targets are now explicit (URL, title) pairs; there
2072 is no longer a 'Ref' target.
2073 + Markdown and RST parsers now need to extract data from key and
2074 note blocks and insert them into the relevant inline elements.
2075 Other parsers have been simplified, since there is no longer any need
2076 to construct separate key and note blocks.
2077 + Markdown, RST, and HTML writers need to construct lists of
2078 notes; Markdown and RST writers need to construct lists of link
2079 references (when the --reference-links option is specified); and
2080 the RST writer needs to construct a list of image substitution
2081 references. All writers have been rewritten to use the State monad
2082 when state is required.
2083 + Several functions (generateReference, keyTable,
2084 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
2085 used by them) have been removed from Text.Pandoc.Shared, since
2086 they are no longer needed. New functions and data structures
2087 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
2088 added. The functions inTags, selfClosingTag, inTagsSimple, and
2089 inTagsIndented have been moved to the DocBook writer, since that
2090 is now the only module that uses them. NoteTable is now exported
2091 in Text.Pandoc.Shared.
2092 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
2093 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
2094 + Added writerNotes and writerReferenceLinks to WriterOptions.
2096 * Added Text.Pandoc module that exports basic readers, writers,
2097 definitions, and utility functions. This should export everything
2098 needed for most uses of Pandoc libraries. The haddock documentation
2099 includes a short example program.
2101 * Text.Pandoc.ASCIIMathML is no longer an exported module.
2103 * Added Text.Pandoc.Blocks module to help in printing markdown
2104 and RST tables. This module provides functions for working with
2105 fixed-width blocks of text--e.g., placing them side by side, as
2108 * Refactored to avoid reliance on Haskell's Text.Regex library, which
2109 (a) is slow, and (b) does not properly handle unicode. This fixed
2110 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
2112 + Replaced 'gsub' with a general list function 'substitute'
2113 that does not rely on Text.Regex.
2114 + Rewrote extractTagType in HTML reader so that it doesn't use
2116 + In Markdown reader, replaced email regex test with a custom email
2117 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
2118 with a custom function isSelfClosingTag.
2119 + Modified Docbook writer so that it doesn't rely on Text.Regex for
2120 detecting 'mailto' links.
2121 + Removed escapePreservingRegex and reamped entity-handling
2122 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
2123 avoid reliance on Text.Regex (see below on character reference
2126 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
2128 * Changed handling of XML entities. Entities are now parsed (and unicode
2129 characters returned) in the Markdown and HTML readers, rather than being
2130 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
2131 instead of entities for characters above 128. This makes the HTML and
2132 DocBook output much more readable and more easily editable.
2134 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
2135 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
2136 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
2137 Moved both functions to Text.Pandoc.Writers.Docbook.
2138 + Added characterReference parser to Text.Pandoc.CharacterReferences.
2139 This parses a string and return a unicode character.
2140 + Rewrote decodeCharacterReferences to use the new parser instead of
2142 + Added new charRef parser for Markdown and HTML, which replaces the
2143 old 'entity' parser. Added '&' as a special character in Markdown reader.
2144 + Modified HTML and Markdown readers to call decodeEntities on all raw
2145 strings (e.g. authors, dates, link titles), to ensure that no
2146 unprocessed entities are included in the native representation of
2147 the document. (In the HTML reader, most of this work is done by a
2148 change in extractAttributeName.)
2149 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
2150 since a unicode non-breaking space is impossible to distinguish visually
2151 from a regular space. (Resolves Issue #3.)
2152 + Removed encodeEntitiesNumerical.
2153 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
2154 slight performance boost over the old association list.
2155 + Removed unneeded decodeEntities from 'str' parser in HTML and
2158 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
2159 fromUTF8, for clarity.
2161 * Replaced old haskell98 module names replaced by hierarchical module
2162 names, e.g. List by Data.List. Removed haskell98 from dependencies
2163 in pandoc.cabal, and added mtl (needed for state monad). Substituted
2166 * Refactored and cleaned up character escaping in writers, using
2167 backslashEscapes and escapeStringUsing functions.
2169 * Instead of adding "\n\n" to the end of an input string in Main.hs,
2170 this is now done in the readers. This makes the libraries behave
2171 the way you'd expect from the pandoc program. Resolves Issue #10.
2173 * URLs and email addresses in autolinks are now typeset as Code.
2175 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
2176 doesn't display the whole output unless there's a line ending.
2178 * Major code cleanup in all modules, for greater consistency, concision,
2183 + Fixed several bugs (extractTagType, attribute parsing).
2184 + Remove Null blocks in lists of blocks when possible.
2185 + Allow HTML comments as raw HTML inline.
2189 + Ordered list items may no longer begin with uppercase letters, or
2190 letters greater than 'n'. (This prevents first initials and page
2191 reference, e.g. 'p. 400', from being parsed as beginning lists.)
2192 Also, numbers beginning list items may no longer end with ')',
2193 which is now allowed only after letters. Note: These changes
2194 may cause documents to be parsed differently. Users should take
2196 + Changed autoLink parsing to conform better to Markdown.pl's
2197 behavior. <google.com> is not treated as a link, but
2198 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
2200 + Cleaned up handling of embedded quotes in link titles. Now these are
2201 stored as a '"' character, not as '"'.
2202 + Use lookAhead parser for the 'first pass' (looking for reference keys),
2203 instead of parsing normally, then using setInput to reset input. This
2204 yields a slight performance boost.
2205 + Fixed several bugs in smart quote recognition.
2206 + Fixed bug in indentSpaces (which didn't properly handle
2207 cases with mixed spaces and tabs).
2208 + Consolidated 'text', 'special', and 'inline' into 'inline'.
2209 + Fixed bug which allowed URL and title to be separated by multiple blank
2210 lines in links and reference keys. They can be on separate lines but
2211 can't have blank lines between them.
2212 + Correctly handle bracketed text inside inline footnotes and links,using
2213 new function inlinesInBalanced. Resolves Issue #14.
2214 + Fixed bug in footnotes: links in footnotes were not being
2215 processed. Solution: three-stage parse. First, get all the
2216 reference keys and add information to state. Next, get all the
2217 notes and add information to state. (Reference keys may be needed
2218 at this stage.) Finally, parse everything else.
2219 + Replaced named constants like 'emphStart' with literals.
2220 + Removed an extra occurance of escapedChar in definition of inline.
2224 + Allow the URI in a RST hyperlink target to start on the line
2225 after the reference key.
2226 + Added 'try' in front of 'string', where needed, or used a different
2227 parser. This fixes a bug where ````` would not be correctly parsed as
2229 + Fixed slow performance in parsing inline literals in RST reader. The
2230 problem was that ``#`` was seen by 'inline' as a potential link or image.
2231 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
2233 + Use lookAhead instead of getInput/setInput in RST reader. Removed
2234 unneeded getState call, since lookAhead automatically saves and
2235 restores the parser state.
2236 + Allow hyperlink target URIs to be split over multiple lines, and
2237 to start on the line after the reference. Resolves Issue #7.
2238 + Fixed handling of autolinks.
2242 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
2244 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
2245 caret is \^{}, not \^ as before.
2246 + Added parsing for \url.
2247 + Parse \texttt{} as code, provided there's nothing fancy inside.
2251 + Modified HTML writer to use the Text.XHtml library. This results
2252 in cleaner, faster code, and it makes it easier to use Pandoc in
2253 other projects, like wikis, which use Text.XHtml. Two functions are
2254 now provided, writeHtml and writeHtmlString: the former outputs an
2255 Html structure, the latter a rendered string. The S5 writer is also
2256 changed, in parallel ways (writeS5, writeS5String).
2257 + The Html header is now written programmatically, so it has been
2258 removed from the 'headers' directory. The S5 header is still
2259 needed, but the doctype and some of the meta declarations have
2260 been removed, since they are written programatically. This change
2261 introduces a new dependency on the xhtml package.
2262 + Fixed two bugs in email obfuscation involving improper escaping
2263 of '&' in the <noscript> section and in --strict mode. Resolves
2265 + Fixed another bug in email obfuscation: If the text to be obfuscated
2266 contains an entity, this needs to be decoded before obfuscation.
2267 Thanks to thsutton for the patch. Resolves Issue #15.
2268 + Changed the way the backlink is displayed in HTML footnotes.
2269 Instead of appearing on a line by itself, it now generally
2270 appears on the last line of the note. (Exception: when the
2271 note does not end with a Plain or Para block.) This saves space
2273 + Added automatic unique identifiers to headers:
2274 - The identifier is derived from the header via a scheme
2275 documented in README.
2276 - WriterState now includes a list of header identifiers and a table
2277 of contents in addition to notes.
2278 - The function uniqueIdentifiers creates a list of unique identifiers
2279 from a list of inline lists (e.g. headers).
2280 - This list is part of WriterState and gets consumed by blockToHtml
2281 each time a header is encountered.
2282 + Include CSS for .strikethrough class in header only if strikethrough
2283 text appears in the document.
2284 + If the 'strict' option is specified, elements that do not appear in
2285 standard markdown (like definition lists) are passed through as
2287 + Simplified treatment of autolinks, using pattern matching instead of
2292 + Links in markdown output are now printed as inline links by default,
2293 rather than reference links. A --reference-links option has been added
2294 that forces links to be printed as reference links. Resolves Issue #4.
2295 + Use autolinks when possible. Instead of [site.com](site.com),
2300 + Rewrote to use the State monad. The preamble now includes only those
2301 packages that are actually required, given the document's content.
2302 Thus, for example, if strikeout is not used, ulem is not required.
2303 Modified LaTeXHeader accordingly.
2304 + Modified LaTeX writer to insert '\,' between consecutive quotes.
2305 + Removed unused function tableRowColumnWidths.
2306 + Simplified code for escaping special characters.
2307 + Leave extra blank line after \maketitle.
2308 + Include empty '\author{}' when no author specified to avoid LaTeX
2310 + Include fancyvrb code in header only if needed -- that is, only
2311 if there is actually code in a footnote.
2312 + Use \url{} for autolinks.
2313 + Include [mathletters] option in ucs package, so that basic unicode
2314 Greek letters will work correctly.
2316 * RST writer: Force blank line before lists, so that sublists will
2317 be handled correctly.
2319 * Docbook writer: Fixed a bug: email links with text, like
2320 [foo](me@bar.baz), were being incorrectly treated as autolinks.
2322 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
2325 * Text.Pandoc.Shared:
2327 + Added defaultWriterOptions.
2328 + Added writerTableOfContents to WriterOptions.
2329 + Added writerIgnoreNotes option to WriterOptions. This is needed
2330 for processing header blocks for a table of contents, since notes on
2331 headers should not appear in the TOC.
2332 + Added prettyprinting for native Table format.
2333 + Removed some unneeded imports.
2334 + Moved escape and nullBlock parsers from
2335 Text.ParserCombinators.Pandoc, since the latter is for
2336 general-purpose parsers that don't depend on Text.Pandoc.Definition.
2337 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
2338 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
2339 writer, because HTML writer now uses these in constructing a table
2341 + Added clauses for new inline elements (Strikeout, Superscript,
2342 Subscript) to refsMatch.
2343 + Removed backslashEscape; added new functions escapeStringUsing and
2345 + Moved failIfStrict from markdown reader, since it is now used also
2347 + Added a 'try' to the definition of indentSpaces.
2348 + In definition of 'reference', added check to make sure it's not a note
2350 + Added functions: camelCaseToHyphenated, toRomanNumeral,
2351 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
2352 charsInBalanced', withHorizDisplacement, romanNumeral
2353 + Fixed a bug in the anyLine parser. Previously it would parse an empty
2354 string "", but it should fail on an empty string, or we get an error
2355 when it is used inside "many" combinators.
2356 + Removed followedBy' parser, replacing it with the lookAhead parser from
2358 + Added some needed 'try's before multicharacter parsers, especially in
2360 + Removed the 'try' from the 'end' parser in 'enclosed', so that
2361 'enclosed' behaves like 'option', 'manyTill', etc.
2362 + Added lineClump parser, which parses a raw line block up to and
2363 including any following blank lines.
2364 + Renamed parseFromStr to parseFromString.
2365 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
2366 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
2368 + Removed unneeded 'try' in blanklines.
2369 + Removed endsWith function and rewrote calling functions to use
2371 + Added >>~ combinator.
2372 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
2375 * Refactored runtests.pl; added separate tests for tables.
2379 + Added -asxhtml flag to tidy in html2markdown. This will
2380 perhaps help the parser, which expects closing tags.
2381 + Modified markdown2pdf to run pdflatex a second time if --toc or
2382 --table-of-contents was specified; otherwise the table of
2383 contents won't appear.
2384 + Modified markdown2pdf to print a helpful message if the 'ulem'
2385 LaTeX package is required and not found.
2387 * Changes to build process:
2389 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
2391 + Removed cabalize and Pandoc.cabal.in. The repository now contains
2392 pandoc.cabal itself.
2393 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
2394 likes the cabal file to have the same name as the tarball.
2395 + Expanded and revised the package description in pandoc.cabal.
2396 Revised the package synopsis.
2397 + The tarball built by 'make tarball' now contains files built from
2398 templates (including man pages and shell scripts), so pandoc can
2399 be built directly using Cabal tools, without preprocessing.
2400 + Executable binaries are now stripped before installing.
2401 + Man pages are now generated from markdown sources, using pandoc's
2403 + Use HTML version of README (instead of RTF) in Mac OS X installer.
2404 + Instead of testing for the existence of a pandoc symlink in build-exec,
2409 + Updated README and man pages with information on new features.
2410 + Updated INSTALL instructions with some useful clarifications and
2412 + Updated web content.
2414 * Added FreeBSD port.
2420 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
2421 libghc6-xhtml-dev. Removed libghc6-html-dev.
2422 + Suggest texlive-latex-recommended | tetex-extra instead of
2423 tetex-bin. This brings in fancyvrb and unicode support.
2425 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
2427pandoc (0.3) unstable; urgency=low
2431 * Changes in pandoc options:
2433 + Allow options to follow or precede arguments.
2434 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
2435 + Added '--strict' option.
2436 + Added '-o/--output' option.
2437 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
2438 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
2439 error conditions. This is helpful for writing wrappers.
2440 + Added copyright message to '-v' output, modeled after FSF messages.
2441 + Reformatted usage message so that it doesn't wrap illegibly.
2442 + Removed extra blanks after '-h' and '-D' output.
2444 * Added docbook writer.
2446 * Added implicit setting of default input and output format based
2447 on input and output filename extensions. These defaults are
2448 overridden if explicit input and output formats are specified using
2449 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
2452 * Allow ordered list items to begin with (single) letters, as well
2453 as numbers. The list item marker may now be terminated either by
2454 '.' or by ')'. This extension to standard markdown is documented
2457 * Revised footnote syntax. (See README for full details.) The
2458 '[^1]' format now standard in markdown extensions is supported,
2459 as are inline footnotes with this syntax: '^[My note.]'.
2460 The earlier footnote syntax '^(1)' is no longer supported.
2462 * Improved HTML representation of footnotes. All footnotes
2463 are now auto-numbered and appear in an ordered list at the
2464 end of the HTML document. Since the default appearance is now
2465 acceptable, the old footnote styles have been removed from the
2470 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
2471 These readers ran 'runParser' on processed chunks of text to handle
2472 embedded block lists in lists and quotation blocks. But then
2473 any changes made to the parser state in these chunks was lost,
2474 as the state is local to the parser. So, for example, footnotes
2475 didn't work in quotes or list items. The fix: instead of calling
2476 runParser on some raw text, use setInput to make it the input, then
2477 parse it, then use setInput to restore the input to what it was
2478 before. This is shorter and more elegant, and it fixes the problem.
2479 + Fixed bug in notFollowedBy' combinator (adding 'try' before
2480 'parser'). Adjusted code that uses this combinator accordingly.
2481 + Fixed bug in RTF writer that caused improper indentation on
2482 footnotes occurring in indented blocks like lists.
2483 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
2484 and date are parsed correctly. Everything else in the preamble
2486 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
2487 line to count as escaped whitespace.
2488 + Modified LaTeX reader to produce inline links rather than reference
2489 links. Otherwise, links in footnotes aren't handled properly.
2490 + Fixed handling of titles in links in Markdown reader, so that
2491 embedded quotation marks are now handled properly.
2492 + Fixed Markdown reader's handling of embedded brackets in links.
2493 + Fixed Markdown reader so that it only parses bracketed material
2494 as a reference link if there is actually a corresponding key.
2495 + Revised inline code parsing in Markdown reader to conform to
2496 markdown standard. Now any number of `s can begin inline code,
2497 which will end with the same number of `s. For example, to
2498 have two backticks as code, write ``` `` ```. Modified Markdown
2500 + Fixed bug in text-wrapping routine in Markdown and RST writers.
2501 Now LineBreaks no longer cause wrapping problems.
2502 + Supported hexadecimal numerical entity references as well as
2504 + Fixed bug in Markdown reader's handling of underscores and other
2505 inline formatting markers inside reference labels: for example,
2506 in '[A_B]: /url/a_b', the material between underscores was being
2507 parsed as emphasized inlines.
2508 + Changed Markdown reader's handling of backslash escapes so that
2509 only non-alphanumeric characters can be escaped. Strict mode
2510 follows Markdown.pl in only allowing a select group of punctuation
2511 characters to be escaped.
2512 + Modified HTML reader to skip a newline following a <br> tag.
2513 Otherwise the newline will be treated as a space at the beginning
2516 * Made handling of code blocks more consistent. Previously, some
2517 readers allowed trailing newlines, while others stripped them.
2518 Now, all readers strip trailing newlines in code blocks. Writers
2519 insert a newline at the end of code blocks as needed.
2521 * Modified readers to make spacing at the end of output more consistent.
2523 * Minor improvements to LaTeX reader:
2525 + '\thanks' now treated like a footnote.
2526 + Simplified parsing of LaTeX command arguments and options.
2527 commandArgs now returns a list of arguments OR options (in
2528 whatever order they appear). The brackets are included, and
2529 a new stripFirstAndLast function is provided to strip them off
2530 when needed. This fixes a problem in dealing with \newcommand
2531 and \newenvironment.
2533 * Revised RTF writer:
2535 + Default font is now Helvetica.
2536 + An '\f0' is added to each '\pard', so that font resizing works
2539 * Moved handling of "smart typography" from the writers to the Markdown
2540 and LaTeX readers. This allows great simplification of the writers
2541 and more accurate smart quotes, dashes, and ellipses. DocBook can
2542 now use '<quote>'. The '--smart' option now toggles an option in
2543 the parser state rather than a writer option. Several new kinds
2544 of inline elements have been added: Quoted, Ellipses, Apostrophe,
2547 * Changes in HTML writer:
2549 + Include title block in header even when title is null.
2550 + Made javascript obfuscation of emails even more obfuscatory,
2551 by combining it with entity obfuscation.
2553 * Changed default ASCIIMathML text color to black.
2557 + Added --strip-trailing-cr option to diff in runtests.pl, for
2558 compatibility with Windows.
2559 + Added regression tests with footnotes in quote blocks and lists.
2563 + osx-pkg target creates a Mac OS X package (directory). New osx
2564 directory contains files needed for construction of the package.
2565 + osx-dmg target creates a compressed disk image containing the package.
2566 + win-pkg target creates Windows binary package.
2567 + tarball target creates distribution source tarball.
2568 + website target generates pandoc's website automatically, including
2569 demos. New 'web' directory containts files needed for construction
2570 of the website (which will be created as the 'pandoc' subdirectory
2572 + Makefile checks to see if we're running Windows/Cygwin; if so,
2573 a '.exe' extension is added to each executable in EXECS.
2575 * Removed all wrappers except markdown2pdf and html2markdown.
2577 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
2578 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
2579 option and disables other options.
2581 * Added code to html2markdown that tries to determine the character
2582 encoding of an HTML file, by parsing the "Content-type" meta tag.
2584 + If the encoding can't be determined, then if the content is local,
2585 the local encoding is used; if it comes from a URL, UTF-8 is used
2587 + If input is from STDIN, don't try to determine character encoding.
2588 + Encoding can be specified explicitly using '-e' option.
2590 * Improved warning messages in wrappers:
2592 + Print warning if iconv not available
2593 + More user-friendly error messages in markdown2pdf, when
2598 + Renamed 'Text/Pandoc/HtmlEntities' module to
2599 'Text/Pandoc/Entities'. Also changed function names so as
2600 not to be HTML-specific.
2601 + Refactored SGML string escaping functions from HTML and Docbook
2602 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
2603 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
2605 + Removed splitBySpace and replaced it with a general, polymorphic
2607 + Refactored LaTeX reader for clarity (added isArg function).
2608 + Converted some CR's to LF's in src/ui/default/print.css.
2609 + Added license text to top of source files.
2610 + Added module data for haddock to source files.
2611 + Reformatted code for consistency.
2613 * Rewrote documentation and man pages. Split README into INSTALL
2616 * Split LICENSE into COPYING and COPYRIGHT.
2618 * Removed TODO, since we now maintain ToDo on the wiki.
2620 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
2625 * Revamped build process to conform to debian standards and created
2626 a proper debian package. Closes: #391666.
2628 * Modified build process to support GHC 6.6.
2630 + The package can still be compiled using GHC 6.4.2, though because
2631 of dependencies the "make deb" target works only with GHC 6.6+.
2632 + The script 'cabalize' is used to create an appropriate
2633 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
2636 * Refactored template processing (fillTemplates.pl).
2638 * Modified wrapper scripts to make them more robust and portable.
2639 To avoid code duplication and ensure consistency, wrappers are
2640 generated via a templating system from templates in src/wrappers.
2642 + Wrappers now accept multiple filenames, when appropriate.
2643 + Spaces and tabs allowed in filenames.
2644 + getopts shell builtin is used for portable option parsing.
2645 + Improved html2markdown's web grabber code, making it more robust,
2646 configurable and verbose. Added '-e', '-g' options.
2648 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
2650pandoc (0.2) unstable; urgency=low
2652 * Fixed unicode/utf-8 translation
2654 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
2656pandoc (0.1) unstable; urgency=low
2658 * Initial creation of debian package
2660 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list