git.iko.soy/typeable/pandoc
on 1.5 help sign in
typeable/pandoc/changelog
2431 lines 106 kB history raw
1pandoc (1.5)
3 [ John MacFarlane ]
5 * Added --mathml option. When this is selected, pandoc will convert
6 TeX math into MathML.
7 + Added data/MathMLinHTML.js, which is included when no URL is
8 provided for --mathml. This allows MathML to be displayed (in
9 better browsers) as text/html.
10 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
11 necessary; it was replaced by two lines in pandoc.hs.
12 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
13 single combined file, LaTeXMathML.js.
15 * Added --data-dir option.
16 This specifies a user data directory. If not specified, will default
17 to ~/.pandoc on unix or Application Data\pandoc on Windows.
18 Files placed in the user data directory will override system default
19 data files.
21 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
22 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
23 Nothing, no user directory is searched for an override.
25 * Added 'plain' output format. This is similar to markdown, but
26 removes links, pictures, inline formatting, and most anything that
27 looks even vaguely markupish. The function writePlain is exported by
28 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
30 * Allow multi-line titles and authors in meta block.
31 Titles may span multiple lines, provided continuation lines
32 begin with a space character. Separate authors may be put on
33 multiple lines, provided each line after the first begins with
34 a space character. Each author must fit on one line. Multiple
35 authors on a single line may still be separated by a semicolon.
36 Based on a patch by Justin Bogner.
38 * When given an absolute URI as parameter, pandoc will try to fetch
39 the content via HTTP. So you can do:
40 'pandoc -r html -w markdown http://www.fsf.org'
41 Adds dependency on HTTP.
43 * Made HTML reader much more forgiving.
44 + Incorporated idea (from HXT) that an element can be closed
45 by an open tag for another element.
46 + Javascript is partially parsed to make sure that a <script>
47 section is not closed by a </script> in a comment or string.
48 + More lenient non-quoted attribute values.
49 Now we accept anything but a space character, quote, or <>.
50 This helps in parsing e.g. www.google.com!
51 + Bare & signs are now parsed as a string. This is a common
52 HTML mistake.
53 + Skip a bare < in malformed HTML.
55 * Removed html2markdown and hsmarkdown.
56 + html2markdown is no longer needed, since you can now pass URI
57 arguments to pandoc and directly convert web pages. (Note,
58 however, that pandoc assumes the pages are UTF8. html2markdown
59 made an attempt to guess the encoding and convert them.)
60 + hsmarkdown is pointless -- a large executable that could be
61 replaced by 'pandoc --strict'.
63 * In most writers, an image in a paragraph by itself is now rendered
64 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
65 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
66 rendered inline.
68 * Depend on extensible-exceptions. This allows pandoc to be compiled
69 on GHC 6.8.
71 * Added --base-header-level option. For example, --base-header-level=2
72 will change level 1 headers to level 2, level 2 to level 3, etc.
73 Closes Debian #563416.
75 * Incomplete support for RST tables (simple and grid).
76 Thanks to Eric Kow. Colspans and rowspans not yet supported.
78 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
80 * MediaWiki writer: format links with relative URLs as wikilinks.
81 The new rule: If the link target is an absolute URL, an external
82 link is created. Otherwise, a wikilink is created.
84 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
85 identifier. Note: This may break links to sections that involve
86 tildes.
88 * Markdown(+lhs) reader: handle "inverse bird tracks."
89 Inverse bird tracks (<) are used for haskell example code that is not
90 part of the literate Haskell program. Resolves Issue #211.
92 * LaTeX reader:
93 + Recognize '\ ' (interword space).
94 + Recognize nonbreaking space '~'.
95 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
96 section headers. Don't treat \section as inline LaTeX.
97 Resolves Issue #202.
98 + LaTeX reader: allow any special character to be escaped.
99 Resolves Issue #221.
100 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
101 headers. Resolves Issue #207.
103 * Use template variables for include-before/after.
104 + These options now imply -s; previously they worked also in fragment
105 mode.
106 + Users can now adjust position of include-before and include-after
107 text in the templates.
108 + Default position of include-before moved back (as it was before 1.4)
109 before table of contents.
110 + Resolves Issue #217.
112 * Don't print an empty table header: (all writers).
113 Resolves Issue #210.
115 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
117 * HTML writer: Don't include TOC div if table of contents is empty.
119 * Markdown writer: Fixed citations.
120 Previously the markdown writer printed raw citation codes, e.g.
121 [geach1970], rather than the expanded citations provided by
122 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
123 This means that the document produced can be processed as a markdown
124 document without citeproc. Thanks to dsanson for reporting, and
125 Andrea Rossato for the patch.
127 * Improved and simplified title block in context template.
128 Previously it caused an error if there was no title.
129 This method should also be easier for users to customize.
131 * Markdown reader:
132 + Treat p., pp., sec., ch., as abbreviations in smart mode.
133 + Disallow blank lines in inline code span.
134 + Allow footnotes to be indented < 4 spaces.
135 This fixes a regression. A test case has been added.
136 + Escape spaces in URLs as %20. Previously they were incorrectly
137 escaped as +, which is appropriate only for the query part of
138 a URL. Resolves Issue #220.
139 + Require two spaces after capital letter + period for list item.
140 Otherwise "E. coli" starts a list. This might change the semantics
141 of some existing documents, since previously the two-space
142 requirement was only enforced when the second word started
143 with a capital letter. But it is consistent with the existing
144 documentation and follows the principle of least surprise.
145 Resolves Issue #212.
147 * LaTeX template: redefine labelwidth when using enumerate package.
148 Otherwise the list labels (numbers) often extend past the left
149 margin, which looks bad.
151 * Mediawiki writer: Don't print a "== Notes ==" header before
152 references. This is too English-centric. Writers can provide their
153 own header at the end of the document.
155 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
156 level 2, etc. This seems to be correct; it's only by convention
157 that wikipedia articles have level 2 headers at most.
158 Patch due to Eric Kow.
160 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
161 data files don't need to have been installed. This removes the need to
162 set HOME.
164 * HTML reader:
165 + Handle spaces before <html>. Resolves Issue #216.
166 + Be forgiving in parsing a bare list within a list.
167 The following is not valid xhtml, but the intent is clear:
168 <ol>
169 <li>one</li>
170 <ol><li>sub</li></ol>
171 <li>two</li>
172 </ol>
173 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
175 * Updated INSTALL instructions. cabal method is now promoted.
177 * Updated markdown2pdf man page. It no longer says all pandoc options
178 are accepted.
180 * README/man pages: Removed advice to pipe through tidy before HTML
181 reader. This is obsolete, now that we have a forgiving HTML parser.
183 * LaTeX writer: set numbersections template variable, so
184 the section numbering options work again.
186 * Removed obsolete Makefile.
188 * Website: renamed index.txt.in -> index.txt.
190 * New batch file to make-windows-installer.
191 + Removed old Makefile.windows
192 + Added make-windows-installer.bat
193 + Modified default installer name in pandoc-setup.iss
195 * Removed freebsd and macports directories.
196 They are no longer up to date.
198 * Setup.hs:
199 + Made man page building sensitive to build verbosity.
200 + Improved detection of highlighting support in test hook.
201 + Install wrapper scripts into cabal bin directory.
202 + Also simplified installManpages.
203 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
205 * Changed default of writerXeTeX to False.
207 * HTML writer: don't include empty UL if --toc but no sections.
208 Resolves Issue #199.
210 * LaTeX writer:
211 + If book, report, or memoir documentclass, use \chapter{}
212 for first-level headers. Otherwise use \section{}.
213 + Removed stLink, link template variable. Reason: we now always
214 include hyperref in the template.
216 * Latex template:
217 + Only show \author if there are some.
218 + Always include hyperref package. It is used not just for links but
219 for toc, section heading bookmarks, footnotes, etc. Also added
220 unicode=true on hyperref options.
222 * markdown2pdf: always do at least two runs. hyperref bookmarks
223 require this.
225 * cabal file: Removed unneeded dependency on template-haskell.
227 * Windows installer - fixed bug in data file locations.
228 Resolves Issue #197.
230 * Deprecated --custom-header in documentation.
231 Removed old "Custom Headers" section in README.
233pandoc (1.4)
235 [ John MacFarlane ]
237 * Pandoc will now compile with either GHC 6.10 or 6.12.
238 + Don't use System.IO.UTF8 when compiling with 6.12
239 + Use -fno-warn-unused-do-bind option when compiling with 6.12
241 * Replaced old headers with templates. Now users have much more
242 control over the way documents appear in --standalone mode,
243 and writer code is simplified. Resolves Issues #59, 147.
244 Every effort has been made to retain backwards compatibilty.
245 So, the --custom-header option should still work as before.
247 + Added Text.Pandoc.Templates. This provides functions for
248 retrieving default templates and for rendering templates.
249 + System templates (in the pandoc data directory) can be
250 overridden by user templates in $HOME/.pandoc/templates.
251 + Removed Text.Pandoc.DefaultHeaders.
252 + Removed data/headers directory.
253 + Added templates directory.
254 + Added writerTemplate and writerVariables fields to WriterOptions.
255 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
256 + Changed --print-default-header to --print-default-template.
257 + Added --template option.
258 + Added -V/--variable option to set custom template variables.
260 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
262 + Removed need for TH in ODT module. Instead get reference.odt from
263 data file at run time.
264 + Removed TH dependency from S5 module. S5 module now exports
265 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
266 standalone.
267 + Refactored LaTeXMathML not to use TH.
269 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
270 Meta [Inline] [String] String. Authors and date in Meta are now lists
271 of Inline elements rather than raw strings. This means that they can
272 be formatted and can include footnotes. NOTE: This may be a breaking
273 change for those using pandoc as a library.
275 * Added readDataFile to Text.Pandoc.Shared. This retrieves
276 a data file from the user pandoc data directory (~/.pandoc
277 on unix), or, if not found there, from the system data
278 directory ($CABALDIR/shared/pandoc-VERSION/). All data
279 files, including templates, LaTeXMathML.js, s5 styles,
280 and reference.odt, can be overridden by the user.
282 * s5 files moved from data/ui/default to s5/default.
284 * Use unicode instead of entities in HTML and XML output. Resolves
285 Issue #163.
287 * Prettier HTML footnote references: put anchor inside sup,
288 instead of other way. Resolves Issue #191. Thanks to
289 infinity0x.
291 * Added --xetex option to pandoc and markdown2pdf.
292 If --xetex is specified, pandoc produces latex suitable for
293 processing by xelatex, and markdown2pdf uses xelatex to create
294 the PDF. Resolves Issue #185.
296 * RTF writer: multiple authors now occupy multiple paragraphs rather
297 than using a line break.
299 * Man writer: now the "--after-body" will come after the "AUTHORS"
300 section, whereas before it would come before it. This is a
301 slight break from backwards compatibility.
303 * Added --reference-odt option, so users may customize the styles
304 used in pandoc-generated ODT files. Users may also place a
305 default reference.odt in the ~\.pandoc directory.
307 * ODT writer:
308 + Indented and line-broke styles.xml so it can be modified more easily.
309 + Omitted some unnecessary style declarations.
310 + Don't wrap text in OpenDocument writer. The tags are too long, making
311 wrapping ugly and pointless.
313 * LaTeX reader: use \\ to separate multiple authors.
315 * Markdown reader: use ; as separator between authors.
316 This allows you to use ',' within author names: e.g. "John Jones, Jr."
318 * S5 writer: use linebreak to separate authors in title page.
320 * RST reader: Allow :: before lhs code block. The RST spec requires the
321 :: before verbatim blocks. This :: should not be treated as literal
322 colons. Resolves Issue #189.
324 * Documented pandoc 1.3's new definition list syntax in README.
325 (An oversight in the last release.)
327 * markdown2pdf.hs:
328 + interpret ! in a log as an error line.
329 + --toc now works properly.
331 * Changes in RunTests.hs:
332 + Use the Diff library rather than a local copy of Diff.hs.
333 (This vastly increases performance.) This change means that 'cabal
334 test' presupposes that the Diff library is installed.
335 + Removed tests/Diff.hs from cabal file.
336 + Changed RunTests to use local environment. We need at least HOME, so
337 pandoc can find its data directory.
339 * Updated windows installer to install data files in the app directory.
341 * Windows installer now installs portable wrappers hsmarkdown and
342 markdown2pdf.
344pandoc (1.3)
346 [ John MacFarlane ]
348 * Added --id-prefix option (Issue #41). This adds a prefix to all
349 automatically generated HTML identifiers, which helps prevent
350 duplicate identifiers when you're generating a fragment (say a blog
351 post).
353 * Added --indented-code-classes option. This specifies classes
354 to use for indented code blocks. (Patch due to buttock; Issue #87.)
356 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
357 (Issue #150).
359 * Improved syntax for markdown definition lists (Issue #24).
360 Definition lists are now more compatible with PHP Markdown Extra.
361 + You can have multiple definitions for a term (but still not
362 multiple terms).
363 + Multi-block definitions no longer need a column before each block
364 (indeed, this will now cause multiple definitions).
365 + The marker no longer needs to be flush with the left margin,
366 but can be indented at or two spaces. Also, ~ as well as :
367 can be used as the marker (this suggestion due to David
368 Wheeler.)
369 + There can now be a blank line between the term and the
370 definitions.
372 * Better looking simple tables. Resolves Issue #180.
373 + Markdown reader: simple tables are now given column widths of 0.
374 + Column width of 0 is interpreted as meaning: use default column width.
375 + Writers now include explicit column width information only
376 for multiline tables. (Exception: RTF writer, which requires
377 column widths. In this case, columns are given equal widths,
378 adding up to the text width.)
379 + Simple tables should now look better in most output formats.
381 * Allow markdown tables without headers (Issue #50).
382 The new syntax is described in README. Also allow optional line of
383 dashes at bottom of simple tables.
385 * Compensate for width of final table column (Issue #144).
387 * Treat a backslash followed by a newline as a hard line break
388 in markdown. Resolves Issue #154. This is a nice alternative
389 to markdown's "invisible" way of indicating hardline breaks
390 using lines that end with two spaces.
392 * Improved performance of markdown reader by ~10% by eliminating the
393 need for a separate parsing pass for notes. Raw notes are now stored
394 on the first pass (which parses references), then parsed when the
395 note is inserted into the AST. The stateNotes field in ParserState
396 is now a list of [(String, String)] pairs instead of [(String,
397 [Block])].
399 * In markdown reader, treat 4 or more * or _ in a row as literal
400 text. (Trying to parse long strings of * or _ as strong or emph
401 leads to exponential performance problems.)
403 * Markdown reader: Use + rather than %20 for spaces in URLs.
405 * Fixed htmlComment parser, adding a needed 'try'.
407 * Don't print raw HTML in man output.
409 * Allow . _ and ~ in header identifiers.
411 * Specially mark code blocks that were "literate" in the input.
412 They can then be treated differently in the writers. This allows
413 authors to distinguish bits of the literate program they are writing
414 from source code examples, even if the examples are marked as
415 Haskell for highlighting. (Issue #174.)
417 * Modified html+lhs output to use "haskell" highlighter instead
418 of "literateHaskell". The highlighting module now adds bird tracks
419 after highlighting (for HTML output), if the code block has the
420 "literate" class. This gives better results, because kate's
421 haskell highlighter is much better than the literateHaskell
422 highlighter.
424 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
425 (Issue #137.)
427 * Support for "..code-block" directive in RST reader. Not core
428 RST, but used in Sphinx for code blocks annotated with syntax
429 information. Thanks to Luke Plant for the patch.
431 * Added "head" to list of block-level HTML tags. Resolves
432 Issue #108.
434 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
436 * Set utf-8 encoding in texinfo headers.
438 * Docbook writer: add ids to sections. Use link for internal links.
439 (Issue #60.)
441 * Blank lines after lists in MediaWiki writer.
443 * Properly handle commented-out list items in markdown.
444 Resolves Issue #142. Example:
446 - a
447 <!--
448 - b
449 -->
450 - c
452 * Changed heuristic in compactify. compactify has to decide whether a
453 Para that ends a list is a Para intentionally, or just because of
454 the blank lines at the end of every list. In the latter case the
455 Para is turned to a Plain. The old heuristic was: change final Para
456 to Plain iff the other items all end in Plain. This produces bad
457 results when, for example, an item contains just a Plain and an HTML
458 comment, as it does in the list above. The new heuristic: change
459 final Para to Plain iff the other items don't contain a Para.
461 * Added % as an rst underline character. Resolves Issue #173.
463 * Fix inline math parser so that \$ is allowed in math.
464 Resolves Issue #169.
466 * Translate \int (integral) into unicode when using unicode math
467 method. Resolves Issue #177.
469 * markdown2pdf.hs improvements:
470 + Use System.IO.UTF8.
471 + Print error messages on last attempt.
472 + Do not create a backup when overwriting a PDF (Issue #166).
473 + Accept --longopt=val options.
474 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
475 it is properly cleaned.
477 * Added haddock comments warning that readers assume \n line endings.
479 * Updated COPYRIGHT file.
481 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
482 markdown2pdf. Otherwise strip tries to strip shell scripts when you
483 install using 'make'.
485 * Changed Makefile so it doesn't build Haskell wrappers.
487 * Fixed Makefile so it doesn't try to build man pages in build-doc.
489 * Install pcre3.dll in Windows install script; this allows us to
490 package a version of pandoc with highlighting support.
492pandoc (1.2.1)
494 [ John MacFarlane ]
496 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
497 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
498 side effect: strings of 0 spaces were interpreted as indentation.
499 So, with --preserve-tabs, unindented paragraphs were treated as
500 code. Resolves Issue #138.
502 * HTML writer: wrap sections in divs. Resolves Issue #70.
504 + hierarchicalize has been rationalized; it builds a hierarchical
505 representation of the document from the headers, and simultaneously
506 gives each section a unique identifier based on the heading title.
507 + Identifiers are now attached to the divs rather than
508 to the headers themselves.
509 + Table of content backlinks go to the beginning of the table, rather
510 than to the section reference that was clicked.
511 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
512 from the HTML writer, since it is now consumed only by
513 hierarchicalize.
514 + In --strict mode, pandoc just prints bare headings, as before
515 (unless --toc has been specified).
516 + In s5 output, it does not wrap sections in divs, as that seems to
517 confuse the s5 javascript.
519 * Man writer: break lines at end of each sentence. groff expects this
520 and treats '.' and '?' differently when followed by line ending as
521 opposed to ordinary space. Also, don't escape periods. Instead, use
522 zero-width character \& to avoid unwanted interpretation of periods
523 at start of line. Resolves Issue #148.
525 * Markdown writer: Added '#' and '>' to list of characters to be
526 escaped in markdown output. Removed '<', as it is not an officially
527 escapable character. This partially resolves Issue #96.
529 * Make --smart the default for man output format. Otherwise we have
530 trouble dividing lists of endlines into sentences.
532 * DocBook writer: Use language attribute to indicate source language
533 in code blocks.
535 * RST reader:
537 + Allow # to continue list, even if the list was started with an
538 explicit marker. For example:
540 A. my list
541 #. continued
543 Resolves Issue #140.
544 + Allow continuation lines in line blocks. Also added test cases for
545 line blocks for RST reader. Resolves Issue #149.
546 + Allow explicit links with spaces in URL: `link <to this>`_
548 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
549 (which is not in LaTeX) and recognize all the amsmath environments
550 that are alternatives to eqnarray, namely equation, equation*,
551 gather, gather*, gathered, multline, multline*, align, align*,
552 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
553 Thanks to shreevatsa.public for the patch.
555 * Markdown reader:
557 + Allow -, _, :, . in markdown attribute names. These are legal in
558 XML attribute names.
559 + Use non-breaking spaces in abbreviations.
560 + Markdown reader: improved efficiency of abbreviation parsing.
561 Instead of a separate abbrev parser, we just check for
562 abbreviations each time we parse a string. This gives a huge
563 performance boost with -S. Resolves Issue #141.
565 * Improved efficiency of shared parsers: hexNum, htmlComment,
566 whitespace, indentSpaces.
568 * Export HTMLMathMethod in Text.Pandoc.
570 * Export languagesByExtension in Text.Pandoc.Highlighting.
572 * Added new Haskell version of markdown2pdf, due to
573 Paulo Tanimoto. This should be more portable than the old
574 shell script.
576 * Made 'pandoc -v' more explicit about compiler options.
577 Resolves Issue #139.
579 * pandoc.hs: Made --strict compatible with --standalone, --toc.
581 * Use Paths_pandoc to get version number, instead of hard-coding it
582 into Text/Pandoc.hs.
584pandoc (1.2)
586 [ John MacFarlane ]
588 * Added support for literate Haskell. lhs support is triggered by
589 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
590 Haskell LaTeX. '.lhs' files are treated by default as literate
591 markdown.
593 + Added stateLiterateHaskell to parser state.
594 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
595 + Added parser for |inline lhs| to LaTeX reader.
596 + Added writerLiterateHaskell to WriterOptions.
597 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
598 + Added definition of code environment to LaTeX header.
599 + Added tests (run only if highlighting support compiled in).
600 + Documented lhs features in man page and README.
602 * In Text.Pandoc.Definition, added processWith, processWithM,
603 and queryWith, and deprecated processPandoc and queryPandoc
604 for these more general functions.
606 * Fixed bug in mediawiki writer: improper closing tags in tables.
607 Thanks to Benct Philip Jonsson for reporting the bug.
609 * Added --email-obfuscation option.
611 + Added writer option for email obfuscation.
612 + Implemented email obfuscation options in HTML writer.
613 + Added option to option parser.
614 + Documented in README and pandoc man page.
615 + Resolves Issue #97.
617 * LaTeX writer: fixed bug with empty table cells.
618 Resolves Issue #107. Thanks to rodja.trappe for the patch.
620 * Fixed bug with header spacing in Markdown and RST writers.
621 A null header (Meta [] [] []) should not cause a blank line
622 at the beginning of output. But a blank line is needed between
623 a non-null header and the main text.
625 * Markdown reader: Relax spacing rules for $$ in display math. Now
626 space and newlines are allowed after the opening $$ and before the
627 closing $$. However, the display math cannot contain an entirely
628 blank line. Resolves Issue #105.
630 * Markdown reader: Gobble space after Plain blocks containing only
631 raw html inline. Otherwise following header blocks are not parsed
632 correctly, since the parser sees blank space before them. Resolves
633 Issue #124.
635 * Markdown reader: Allow " as well as '' to end a latex double-quote.
637 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
638 Resolves Issue #109.
640 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
642 + Added hang' function to Text.Pandoc.Shared; this will be used instead
643 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
644 is upgraded, we can go back to hang.
645 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
646 + Use hang' (and some different techniques) in RST and markdown writers.
647 Some output is now a bit different.
649 * Brought citeproc support up to date for citeproc-hs-0.2.
650 (Patch by Andrea Rossato.)
652 * Moved all haskell source to src subdirectory. Renamed Main.hs to
653 pandoc.hs.
655 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
656 For now, keeping the old shell script too.
658 * Added TemplateHaskell to Extensions for executable, removed
659 -threaded for library. Thanks to duncan.coutts for the bug report.
660 Resolves Issue #121.
662 * Moved some Extra-Source-Files to Data-Files.
664 * Moved tabFilter to Shared.
666 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
667 preserve tabs.
669 * Minor code cleanup based on hlint suggestions.
671pandoc (1.1)
673 [ John MacFarlane ]
675 * Main.hs:
677 + Changed date on copyright message in Main.hs.
678 + Have the '-v' option print syntax highlighting languages
679 separated by commas, and wrapped in lines, instead of in five
680 columns as before.
682 * Added --jsmath option. Resolves Issue #68.
684 + Added --jsmath option to Main.hs
685 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
686 + Handle math appropriately in HTML writer when JsMath selected.
687 + Documented the option in README and man page.
689 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
690 for tight and loose lists. Final Para is changed to Plain if all
691 other list items *end* with a Plain block. Addresses Issue #99.
693 * HTML reader:
695 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
696 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
697 Added rawVerbatimBlock parser. Resolves Issue #94.
699 * Markdown reader:
701 + Allow URLs with spaces in them in links and references, but escape
702 them as "%20".
703 + Allow blank space at the end of horizontal rules.
705 * RST reader: Modified 'unknownDirective' parser to handle comment
706 blocks correctly, and added tests for comment blocks. Resolves Issue
707 #86. Closes Debian Bug #500662.
709 * HTML writer:
711 + Include classes on tr elements in HTML output:
712 "header", "odd", "even". This allows tables to be styled with
713 lines in alternating colors. Resolves Issue #91.
714 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
715 This prevents parts of the document that are not math from being
716 interpreted as math by LaTeXMathML.js.
718 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
719 which were formerly ignored. Resolves Issue #95.
721 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
722 between a footnote and immediately following nonspace characters in
723 LaTeX and ConTeXt output. (This gets interpreted as a space, which
724 is not desired in cases like "text^[note]---".) Resolves Issue #93.
726 * Windows installer: Don't require admin privileges to run
727 installer. Modified pandoc-setup.iss, and changed modpath.iss to
728 modify HKCU path if user lacks admin privileges. Also fixed case
729 where oldpath is empty (previously this led to the new path
730 beginning with a semicolon).
732 * Updated INSTALL instructions for Arch packages and OS X install using
733 cabal-install.
735 * Removed the (now unneeded) debian directory.
736 Removed empty Codec and System directories.
738 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
740 * Modified Setup.hs so that the "test" target returns an error status
741 when tests fail, and "build" returns a success status if
742 the build succeeds. Resolves Issue #100.
744 * Added BUGS to files in tarball.
747pandoc (1.0.0.1)
749 [ John MacFarlane ]
751 * Removed spurious reference to pdf output format from pandoc(1) man page.
753pandoc (1.0)
755 [ Andrea Rossato ]
757 * Added new OpenDocument writer.
759 * Added support for SmallCaps inline element.
761 * Added support for integrating pandoc with citeproc-hs.
763 + Added Cite element to definition and writers.
764 + Added Text.Pandoc.Biblio module
765 + Note: This support is included only if the 'citeproc'
766 Cabal configuration flag is set.
768 * Made Pandoc data structure an instance of Typeable.
769 Added new processPandoc and queryPandoc functions, to query
770 or transform matching elements in a Pandoc structure.
772 [ Peter Wang ]
774 * Added new Texinfo writer.
776 [ John MacFarlane ]
778 * Changes to Texinfo writer:
780 + No space between paragraph and following @verbatim (provides more
781 pleasing appearance in text formats)
782 + Blank line consistently after list environments.
783 + Removed deVerb.
784 + Use @code instead of @verb for inline code (this solves the character
785 escaping problem for texi2dvi and texi2pdf).
786 + Added news of Texinfo writer to README.
787 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
788 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
789 default output extension.
790 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
792 * Added tests for OpenDocument writer.
794 * Added ODT writer (using zip-archive library to package output of
795 OpenDocument writer). Added odt-styles directory with default ODT styles.
797 * Added new mediawiki writer and tests.
799 * Markdown reader: Added support for delimited code blocks, with optional
800 syntax highlighting using highlighting-kate (if the 'highlighting'
801 configuration option is selected).
803 + Currently highlighting is supported only in the HTML writer.
804 + Delimited code blocks can have attributes; using the language name as
805 class triggers highlighting.
806 + New Attributes parameter in CodeBlock structure.
807 + --version now indicates whether syntax highlighting support is compiled
808 in, and prints a list of supported languages
810 * Removed debian directory. Pandoc is no longer a native debian package.
812 * Changes to build process: pandoc can now be built from the repository
813 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
814 without Cygwin).
816 + Include shell scripts themselves in repo, rather than generating from wrappers.
817 Removed wrappers directory and wrappers Makefile target.
818 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
819 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
820 from templates in the templates/ directory. Instead, they use template
821 haskell to read data at compile time from the relevant files in data/.
822 Template haskell functions go in a new module, Text.Pandoc.TH.
823 + man pages are now generated in Setup.hs hook, not by Makefile
824 + Makefile 'tarball' target now calls Cabal's 'sdist'
825 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
826 + Added "Build-Type" field to pandoc.cabal to avoid warning.
827 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
828 so 'sdist' and 'clean' will work properly.
829 + Setup.hs now generates man pages in a postbuild hook.
830 + Added dependency-checking to Setup.hs, so it only rebuilds things
831 that need rebuilding.
832 + Added 'library' and 'executable' configuration flags.
833 Cabal can now be told to build just the library or just the executable.
834 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
835 For example: CABALOPTS=-fhighlighting make
837 * Rewrote test suite so it doesn't depend on perl or unix tools.
839 + Replaced old runtests.pl with a Haskell script RunTests.hs.
840 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
841 + Added test hook to Setup.hs, so tests may be run from cabal.
842 + Changed Makefile's 'test' target to run tests via cabal.
843 + Removed old generate.sh.
844 + Since we no longer have 'sed' to filter out raw HTML sections
845 from the docbook writer test, or raw LaTeX sections from the
846 context writer test, we now just include these sections.
847 They can be taken out if it is necessary to process the files.
848 + Updated latex and context writer tests to remove extra spaces
849 after '\\item'
850 + Added a markdown table reader test.
851 + Added markdown-reader-more.txt to test suite, for additional test cases
852 for raw ConTeXt environments and more.
854 * Compatibility fixes for CPP, Cabal, and haddock:
856 + Use CPP in "Extensions" field in pandoc.cabal.
857 + Removed use of backslash string continuations in source files.
859 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
860 base >= 3.
862 * Require parsec < 3.
863 The compatibility module in parsec 3.0.0 gives far worse performance than
864 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
865 version of parsec, and then we'll go to parsec 3.0.0.
867 * Removed Text.Regex dependencies by rewriting using plain Haskell
868 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
870 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
872 * Makefile:
874 + Added 'configure' as dependency of 'uninstall-all'.
875 (It uses the Cabal build program.)
876 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
877 Note that Cabal will automatically choose the ghc-pkg appropriate
878 for the compiler selected, so normally specifying GHC by itself
879 is sufficient.
881 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
882 its IO and conversion functions.
884 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
885 everything is -Wall clean.
887 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
888 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
889 (These are caused by the Lift instance for ByteString.)
891 * Changed the comment used to replace unsafe HTML if sanitize-html option
892 selected.
894 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
896 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
898 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
899 "nbsp" isn't a predefined XML entity.
901 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
902 Added some try's in ordered list parsers.
904 * Man writer: don't escape " as \".
906 * Allow newline before URL in markdown link references. Resolves Issue #81.
907 Added tests for this issue in new "markdown-reader-more" tests.
908 Changed RunTests.hs to run these tests.
910 * Support for display math. Resolves Issue #47.
912 + Added a DisplayMath/InlineMath selector to Math inlines.
913 + Markdown parser yields DisplayMath for $$...$$.
914 + LaTeX parser yields DisplayMath when appropriate. Removed
915 mathBlock parsers, since the same effect is achieved by the math
916 inline parsers, now that they handle display math.
917 + Writers handle DisplayMath as appropriate for the format.
918 + Modified tests accordingly; added new tests for display math.
920 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
921 to LaTeX in its display of math, and supports many non-math LaTeX environments.
923 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
924 + Modified HTML writer to print raw TeX when LaTeXMathML is
925 being used instead of suppressing it.
926 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
927 + Replaced ASCIIMathML with LaTeXMathML in source files.
928 + Modified README and pandoc man page source.
929 + Added --latexmathml option (kept --asciimathml as a synonym
930 for backwards compatibility)
932 * Markdown reader: Parse setext headers before atx headers.
933 Test case:
934 # hi
935 ====
936 parsed by Markdown.pl as an H1 header with contents "# hi".
938 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
939 The marker on the first list item determines the type of the whole
940 list. Thus, a list like
941 1. one
942 - two
943 * three
944 gets parsed as a single ordered list. (Previous versions of pandoc
945 treated this as an ordered list with an unordered sublist.)
947 * Markdown smart typography:
949 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
950 + Use nonbreaking spaces after known abbreviations in markdown parser.
951 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
952 not produce a sentence-separating space. Resolves Issue #75.
954 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
956 * Treat '\ ' in (extended) markdown as nonbreaking space.
957 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
959 * The '--sanitize-html' option now examines URIs in markdown links
960 and images, and in HTML href and src attributes. If the URI scheme
961 is not on a whitelist of safe schemes, it is rejected. The main point
962 is to prevent cross-site scripting attacks using 'javascript:' URIs.
963 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
964 and http://ha.ckers.org/xss.html. Resolves Issue #62.
966 * HTML writer:
968 + Override Text.XHtml's stringToHtml function,
969 so that characters below 0xff are not converted to numerical entity
970 references. Also convert '\160' to "&nbsp;". This should aid readability
971 and editability of the HTML source. It does presuppose that the HTML
972 will be served as UTF-8.
973 + In code blocks, change leading newlines to <br /> tags.
974 (Some browsers ignore them.) Resolves Issue #71.
975 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
976 + Use style attributes rather than css classes for strikethrough
977 and ordered list styles. This works better when fragments, rather than
978 standalone documents, are generated.
980 * HTML reader: Count anything that isn't a known block (HTML) tag as an
981 inline tag (rather than the other way around). Added "html", "head", and
982 "body" to list of block tags. Resolves Issue #66, allowing
983 <lj> to count as an inline tag.
985 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
986 boldface, and other inline elements. Resolves Issue #64.
988 * LaTeX reader: improvements in raw LaTeX parsing.
990 + "loose punctuation" (like {}) parsed as Space
991 + Para elements must contain more than Str "" and Space elements
992 + Added parser for "\ignore" command used in literate haskell.
993 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
994 mode, these parsers simply strip off the command part and allow
995 the arguments to be parsed normally. So, for example,
996 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
997 Str "{\\emph{hi}}".
998 + Parse lhs "code" environments as verbatim.
999 Refactored parsers for verbatim environments.
1000 + Removed specialEnvironment parser.
1001 + parse '{}', if present, after \textless, \textgreater,
1002 \textbar, \textbackslash, \ldots.
1003 + Parse unescaped special characters verbatim rather than
1004 changing them to spaces. This way arguments of unknown
1005 commands will appear in braces.
1007 * Parse raw ConTeXt environments as TeX in markdown reader.
1008 Resolves Issue #73.
1010 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
1012 * Made some structural changes to parsing of raw LaTeX environments.
1013 Previously there was a special block parser for LaTeX environments.
1014 It returned a Para element containing the raw TeX inline. This has
1015 been removed, and the raw LaTeX environment parser is now used in the
1016 rawLaTeXInline parser. The effect is exactly the same, except that we
1017 can now handle consecutive LaTeX and ConTeXt environments not separated
1018 by spaces. This new flexibility is required by the example in
1019 Issue #73:
1021 \placeformula \startformula
1022 L_{1} = L_{2}
1023 \stopformula
1025 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
1026 returns a string) rather than rawLaTeXEnvironment (which returns a block
1027 element). This is more likely to be useful in other applications.
1029 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
1030 \textsubscript conflicts with a definition in the memoir class.
1031 Resolves Issue #65.
1033 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
1035 * Added amsmath package to default LaTeX header. Resolves Issue #48.
1037 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
1038 list introduction lines.
1040 * Changed Float to Double in definition of Table element.
1041 (Double is more efficient in GHC.)
1043 * Fixed bug in Markdown parser: regular $s triggering math mode.
1044 For example: "shoes ($20) and socks ($5)."
1045 The fix consists in two new restrictions:
1047 + the $ that ends a math span may not be directly followed by a digit.
1048 + no blank lines may be included within a math span.
1050 Thanks to Joseph Reagle for noticing the bug.
1052 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
1053 Removed 'joinWithSep' from Text.Pandoc.Shared.
1055 * Updated README and man pages. Acknowledge contributors in README.
1056 Added paragraph to README about producing S5 with separate CSS/javascript.
1058 * Updated INSTALL to reflect new build system (including configuration
1059 options) and document new dependencies. Added note to INSTALL that
1060 Cabal >= 1.2 is required for build. Resolves Issue #74.
1062 * Fixed some haddock documentation errors.
1064 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
1066pandoc (0.46) unstable; urgency=low
1068 [ John MacFarlane ]
1070 * Made -H, -A, and -B options cumulative: if they are specified
1071 multiple times, multiple files will be included.
1073 * Added optional HTML sanitization using a whitelist.
1074 When this option is specified (--sanitize-html on the command line),
1075 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
1076 attributes will be removed. This option should be especially useful
1077 for those who want to use pandoc libraries in web applications, where
1078 users will provide the input.
1080 + Main.hs: Added --sanitize-html option.
1082 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
1084 + Text.Pandoc.Readers.HTML:
1085 - Added whitelists of sanitaryTags and sanitaryAttributes.
1086 - Added parsers to check these lists (and state) to see if a given
1087 tag or attribute should be counted unsafe.
1088 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
1089 with comments.
1090 - Modified htmlAttribute to remove unsafe attributes.
1091 - Modified htmlScript and htmlStyle to remove these elements if
1092 unsafe.
1094 + Modified README and man pages to document new option.
1096 * Improved handling of email addresses in markdown and reStructuredText.
1097 Consolidated uri and email address parsers. (Resolves Issue #37.)
1099 + New emailAddress and uri parsers in Text.Pandoc.Shared.
1100 - uri parser uses parseURI from Network.URI.
1101 - emailAddress parser properly handles email addresses with periods
1102 in them.
1104 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
1105 and Text.Pandoc.Readers.Markdown.
1107 * Markdown reader:
1109 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
1110 nested in an Emph. (A '*' is only recognized as the end of the
1111 emphasis if it's not the beginning of a strong emphasis.)
1113 + Moved blockQuote parser before list parsers for performance.
1115 + Modified 'source' parser to allow backslash-escapes in URLs.
1116 So, for example, [my](/url\(1\)) yields a link to /url(1).
1117 Resolves Issue #34.
1119 + Disallowed links within links. (Resolves Issue #35.)
1120 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
1121 instead of hard-coding the inline parser takes an inline parser
1122 as a parameter.
1123 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
1124 - Removed unneeded inlineString function.
1125 - Added inlineNonLink parser, which is now used in the definition of
1126 reference.
1127 - Added inlineParsers list and redefined inline and inlineNonLink parsers
1128 in terms of it.
1129 - Added failIfLink parser.
1131 + Better handling of parentheses in URLs and quotation marks in titles.
1132 - 'source' parser first tries to parse URL with balanced parentheses;
1133 if that doesn't work, it tries to parse everything beginning with
1134 '(' and ending with ')'.
1135 - source parser now uses an auxiliary function source'.
1136 - linkTitle parser simplified and improved, under assumption that it
1137 will be called in context of source'.
1139 + Make 'block' conditional on strictness state, instead of using
1140 failIfStrict in block parsers. Use a different ordering of parsers
1141 in strict mode (raw HTML block before paragraph) for performance.
1142 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
1143 Simplified htmlBlock, since we know it's only called in strict
1144 mode.
1146 + Improved handling of raw HTML. (Resolves Issue #36.)
1147 - Tags that can be either block or inline (e.g. <ins>) should
1148 be treated as block when appropriate and as inline when
1149 appropriate. Thus, for example,
1150 <ins>hi</ins>
1151 should be treated as a paragraph with inline <ins> tags, while
1152 <ins>
1153 hi
1154 </ins>
1155 should be treated as a paragraph within <ins> tags.
1156 - Moved htmlBlock after para in list of block parsers. This ensures
1157 that tags that can be either block or inline get parsed as inline
1158 when appropriate.
1159 - Modified rawHtmlInline' so that block elements aren't treated as
1160 inline.
1161 - Modified para parser so that paragraphs containing only HTML tags and
1162 blank space are not allowed. Treat these as raw HTML blocks instead.
1164 + Fixed bug wherein HTML preceding a code block could cause it to
1165 be parsed as a paragraph. The problem is that the HTML parser
1166 used to eat all blank space after an HTML block, including the
1167 indentation of the code block. (Resolves Issue #39.)
1168 - In Text.Pandoc.Readers.HTML, removed parsing of following space
1169 from rawHtmlBlock.
1170 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
1171 indentation is eaten *only* on the first line after the HTML
1172 block. This means that in
1173 <div>
1174 foo
1175 <div>
1176 the foo won't be treated as a code block, but in
1177 <div>
1179 foo
1181 </div>
1182 it will. This seems the right approach for least surprise.
1184 * RST reader:
1186 + Fixed bug in parsing explicit links (resolves Issue #44).
1187 The problem was that we were looking for inlines until a '<' character
1188 signaled the start of the URL; so, if you hit a reference-style link,
1189 it would keep looking til the end of the document. Fix: change
1190 inline => (notFollowedBy (char '`') >> inline). Note that this won't
1191 allow code inlines in links, but these aren't allowed in resT anyway.
1193 + Cleaned up parsing of reference names in key blocks and links.
1194 Allow nonquoted reference links to contain isolated '.', '-', '_', so
1195 so that strings like 'a_b_' count as links.
1197 + Removed unnecessary check for following link in str.
1198 This is unnecessary now that link is above str in the definition of
1199 'inline'.
1201 * HTML reader:
1203 + Modified rawHtmlBlock so it parses </html> and </body> tags.
1204 This allows these tags to be handled correctly in Markdown.
1205 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
1206 since these are handled in parseHtml. (Resolves Issue #38.)
1208 + Fixed bug (emph parser was looking for <IT> tag, not <I>).
1210 + Don't interpret contents of style tags as markdown.
1211 (Resolves Issue #40.)
1212 - Added htmlStyle, analagous to htmlScript.
1213 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
1214 - Moved "script" from the list of tags that can be either block or
1215 inline to the list of block tags.
1217 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
1218 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
1219 inline tags would be included in raw HTML blocks.
1221 + Modified anyHtmlBlockTag to test for (not inline) rather than
1222 directly for block. This allows us to handle e.g. docbook in
1223 the markdown reader.
1225 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
1226 Updated LaTeX reader test to use --parse-raw.
1228 * HTML writer:
1230 + Modified rules for automatic HTML header identifiers to
1231 ensure that identifiers begin with an alphabetic character.
1232 The new rules are described in README. (Resolves Issue #33.)
1234 + Changed handling of titles in HTML writer so you don't get
1235 "titleprefix - " followed by nothing.
1237 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
1238 spacing. Each block element is wrapped with either Pad or Reg.
1239 Pad'ed elements are guaranteed to have a blank line in between.
1241 * RST writer:
1243 + Refactored RST writer to use a record instead of a tuple for state,
1244 and to include options in state so it doesn't need to be passed as
1245 a parameter.
1247 + Use an interpreted text role to render math in restructuredText.
1248 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
1249 strategy.
1251 [ Recai Oktaş ]
1253 * Debian packaging changes:
1255 + Remove the empty 'include' directory in -dev package, which lintian
1256 complains about.
1257 + Bump Standarts-Version to 3.7.3.
1258 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
1259 lintian.
1261 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
1263pandoc (0.45) unstable; urgency=low
1265 [ John MacFarlane ]
1267 * Simplified parsing of reference keys and notes in markdown and RST
1268 readers: The Reference data structure from Text.Pandoc.Shared is no
1269 longer needed, since referenceKey and noteBlock parses return strings
1270 (as many blank lines as were occupied by the key or note) and update
1271 state themselves. getPosition and setPosition are now used to ensure
1272 that error messages will give the correct line number. This yields
1273 cleaner (and slightly faster) code, with more accurate parsing error
1274 messages.
1276 * Added new Math inline element:
1278 + Markdown and LaTeX readers now convert TeX math into Math elements,
1279 not TeX.
1280 + This allows math to be treated differently from raw TeX in output.
1281 TeX elements are no longer printed in output formats other than
1282 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
1284 * New default handling of math in writers:
1286 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
1287 parses raw TeX math and outputs a string of Pandoc inlines that
1288 tries to render it as far as possible using unicode characters,
1289 lapsing into literal TeX when needed.
1290 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
1291 and Docbook, if no other method for displaying math in HTML is
1292 specified. Enclosing $'s are no longer printed by default.
1293 + By default, math is put inside <span class="math">. This way it can be
1294 distinguished from the surrounding text, e.g. put in a different
1295 font.
1297 * New --gladtex and --mimetex options for display of math in HTML:
1299 + If --gladtex is specified, math is output between <eq> tags, so
1300 it can be processed by gladTeX.
1301 + If --mimetex is specified, math is put in <img> tags with a link
1302 to the mimetex CGI script (or any other script that takes TeX math
1303 as input and outputs an image). The URL of the script may be
1304 specified, but defaults to /cgi-bin/mimetex.cgi.
1305 + HTMLMathMethod structure in WriterOptions keeps track of how to
1306 display math in HTML output.
1307 + Updated README with a description of the four options for displaying
1308 math in HTML.
1310 * HTML reader:
1312 + Fixed bug: parser for minimized attributes should not swallow
1313 trailing spaces.
1314 + Simplified HTML attribute parsing.
1315 + Changed parsing of code blocks in HTML reader: <code> tag is no
1316 longer needed. <pre> suffices. All HTML tags in the code block
1317 (e.g. for syntax highlighting) are skipped, because they are not
1318 portable to other output formats. A <code>...</code> block not
1319 surrounded by <pre> now counts as inline HTML, not a code block.
1320 + Remove just one leading and one trailing newline from contents of
1321 <pre>...</pre> in codeBlock parser.
1323 * Markdown reader:
1325 + Removed support for box-style block quotes.
1326 + Require space before title in links and references.
1327 This fixes a bug in parsing URLs like http://silly/url(withparen).
1328 + Improved and simplified setextHeader parser.
1329 + Fixed logic in smart quote parsing, adding some needed 'try'
1330 statements.
1331 + Fixed smart quote parsing so that unicode characters 8216 and 8217
1332 are recognized as single quotes, and 8220 and 8221 as double quotes.
1334 * RST reader:
1336 + Fixed bug in parsing of code blocks. Previously a full tab indent
1337 was required, but RST allows code to be indented any amount.
1338 Resolves Issue #27.
1339 + Allow field lists to be indented.
1340 + Parse the contents of field lists instead of treating as a raw string.
1341 + Represent field lists as definition lists instead of blockquotes.
1342 + Fixed bug in which metadata would be overridden if the document
1343 contained multiple field lists.
1344 + Parse fields associated with '.. image::' blocks, and use 'alt'
1345 field, if given, for image alt and title attributes.
1347 * LaTeX reader:
1349 + Modified specialChar so that '"' characters are parsed.
1350 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
1352 * HTML writer:
1354 + Changes in handling of math (see above).
1355 + Don't produce HTML for table of contents if there are
1356 no headers. (This would be an empty list, which is invalid XHTML.)
1358 * Markdown writer:
1360 + Don't print title attribute if title is empty. (This differs from
1361 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
1362 Gruber has indicated that he prefers this behavior.) Adjusted test
1363 suite accordingly.
1364 + Fixed incorrect line wrapping in paragraphs including hard line
1365 breaks. Resolves Issue #25.
1366 + Fixed bug in markdown writer: If an ordered list item began with
1367 a marker greater than 3 characters in width, and the item took more
1368 than one line, it would appear on the line after the list marker,
1369 e.g.:
1371 (12)
1372 My list item.
1373 Multiline.
1375 Now it works as follows:
1377 (12) My list item.
1378 Multiline.
1380 * RST writer
1382 + Fixed bug in RST writer's handling of ordered lists. Previously,
1383 list items with multiple lines would not always line up with
1384 single-line list items. Now, list items are nested the length of
1385 the list marker + 1. This looks better and ensures that list items
1386 all line up. (Note that list markers are padded to the length of
1387 the longest list marker in the series.)
1388 + Use 3-space indent for unordered lists.
1389 + If label for a link reference contains a colon, surround it by `
1390 signs so it won't be interpreted as the end of the link label.
1392 * LaTeX writer:
1394 + Cleaner output for footnotes. Footnotes now always begin on a new
1395 line, and the final } is on a line by itself only when it needs to
1396 be (i.e. only when the note ends with a Verbatim environment).
1397 + Added writer options to state, so state doesn't need to be passed as
1398 a parameter.
1399 + Text wrapping now provided, using wrapTeXIfNeeded.
1401 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
1402 (thanks to Idris Samawi Hamid for suggestions).
1404 + PrettyPrint module now used for output.
1405 + Writer options are now in state, so they don't have to be passed as
1406 a parameter.
1407 + Text wrapping now provided, using wrapTeXIfNeeded.
1408 + Better treatment of footnotes: footnotes are always on lines by
1409 themselves, and the final } is on a line by itself only when
1410 it needs to be (after \stoptyping).
1411 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
1412 depending on whether --number-sections option is selected.
1413 + Extra blank line inserted after \stopitemize
1414 + Use new, "official" definition of blockquote environment. Also, use
1415 blank line after \startblockquote to balance blank line at the end.
1416 + Both itemized and enumerated lists are now generated using
1417 \start-stopitemize, with appropriate options. Removed definitions
1418 of ltxenum and ltxitem, which are no longer needed. Provided
1419 defaults for itemized lists in the preamble. State keeps track of
1420 ordered list level, so that when default numbering is specified,
1421 the appropriate scheme can be used.
1422 + Changed \useurl to \useURL.
1423 + Changed link color from red to blue.
1424 + Use \subsubsubsubsection etc., since these are supported
1425 (up to at least sub x 5).
1427 * Text.Pandoc.Shared:
1429 + Save and restore position in parseFromString, so that accurate
1430 error messages can be given.
1431 + Improved efficiency of romanNumeral parser.
1432 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
1433 that footnotes occur on lines by themselves (to make them
1434 easier to see and move) and do not screw up line wrapping.
1436 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
1437 if present. Windows Notepad and other applications insert a
1438 BOM at the beginning of a UTF8 file.
1440 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
1441 addition to "\r\n" and '\n').
1443 * Added a writer option for wrapped text and a command-line option
1444 '--no-wrap', which disables text wrapping and minimizes whitespace
1445 in HTML. (Resolves Issue #26.)
1447 + Added support for '--no-wrap' to Main.hs.
1448 + Added wrapIfNeeded function to Text.Pandoc.Shared.
1449 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
1450 Markdown writers.
1451 + Added render and renderFragment helpers to HTML writer.
1453 * Modified html2markdown to run tidy only if the HTML cannot be
1454 parsed. Previously html2markdown piped all input through tidy
1455 before passing it to pandoc. This caused problems on certain pages
1456 (e.g. http://daringfireball.com/markdown) which have well-formed
1457 XHTML that causes tidy to choke. The solution is to pipe through
1458 tidy only if pandoc cannot parse the input by itself. This means
1459 that a temp file is now always used, even when input comes from a
1460 local file or standard input.
1462 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
1463 Text.Pandoc library.
1465 * pandoc.cabal:
1467 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
1468 6.8, pretty and containers must be added to Build-Depends, and it
1469 is desirable to use the -O2 compiler option.) Cabal configurations
1470 allows one to select options depending on the compiler version.
1471 For GHC 6.6, the splitBase option can be disabled.
1472 + pandoc.cabal.ghc66 is provided for users with older versions of
1473 Cabal, which do not support configurations.
1474 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
1475 '--enable-(executable|library)-profiling' is specified. Updated
1476 PROFILING instructions accordingly.
1478 * Makefile:
1480 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
1481 is copied to pandoc.cabal, and the old pandoc.cabal is copied
1482 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
1483 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
1484 will work properly with either GHC 6.6 or 6.8.
1485 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
1486 This is where current versions of Cabal put it.
1487 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
1488 + Removed dependency of templates on ./templates, which is circular
1489 now that templates is a subdirectory of the top-level.
1491 * MacPorts Portfile:
1493 + Modified to install the pandoc library in addition to programs.
1494 + Installation must be done manually rather than using Makefile's
1495 install-all.
1496 + Note that the library must be registered in the activate phase,
1497 after the library files have been copied out of the destroot.
1498 Cabal generates a 'register.sh' script that will do this.
1500 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
1501 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
1502 Closes: #445235
1504 * debian/rules: Converted to UTF-8.
1506 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
1508 * Updated ASCIIMathML.js to latest version.
1510 * Directory structure:
1512 + Moved everything from src into the top-level directory.
1513 + Changed references to source directory in Makefile and
1514 pandoc.cabal.*.
1515 + Moved ASCIIMathML.js, headers, and ui into templates directory.
1516 + Modified fillTemplates.pl to reflect new paths.
1518 [ Recai Oktaş ]
1520 * Makefile: Fixed the issue of having two copies of the library
1521 documentation under some usage scenarios.
1523 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
1524 and GHC_PKG configurable through the environment, to support
1525 unusual ghc installations. For example:
1526 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
1528 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
1530pandoc (0.44) unstable; urgency=low
1532 [ John MacFarlane ]
1534 * Fixed bug in HTML writer: when --toc was used, anchors were put around
1535 headers, which is invalid XHTML (block content within inline element).
1536 Now the anchors are put inside the header tags. Resolves Issue #23.
1538 * Added xmlns attribute to html element in html writer tests.
1539 This attribute is added by more recent versions of the
1540 xhtml library (>= 3000), and is required for valid XHTML.
1542 [ Recai Oktaş ]
1544 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
1545 command instead of 'runhaskell', which, on some platforms (such as s390,
1546 alpha, m68k), throws the following error:
1548 runhaskell Setup.hs configure --prefix=/usr
1549 ghc-6.6.1: not built for interactive use
1551 This causes a serious FTBFS bug. Closes: #440668.
1553 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
1555pandoc (0.43) unstable; urgency=low
1557 [ John MacFarlane ]
1559 * The focus of this release is performance. The markdown parser
1560 is about five times faster than in 0.42, based on benchmarks
1561 with the TextMate manual.
1563 * Main.hs: Replaced CRFilter and tabFilter with single function
1564 tabFilter, which operates on the whole string rather than breaking
1565 it into lines, and handles dos-style line-endings as well as tabs.
1567 * Added separate LaTeX reader and native reader tests; removed
1568 round-trip tests.
1570 * Text.Pandoc.Shared:
1572 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
1573 + General code cleanup (to elimante warnings when compiling with -Wall.)
1574 + Added 'wrapped' function, which helps wrap text into paragraphs,
1575 using the prettyprinting library.
1576 + Rewrote charsInBalanced and charsInBalanced'.
1577 - Documented restriction: open and close must be distinct characters.
1578 - Rearranged options for greater efficiency.
1579 - Bug fix: Changed inner call to charsInBalanced inside
1580 charsInBalanced' to charsInBalanced'.
1581 + anyLine now requires that the line end with a newline (not eof).
1582 This is a harmless assumption, since we always add newlines to the
1583 end of a block before parsing with anyLine, and it yields a 10% speed
1584 boost.
1585 + Removed unnecessary 'try' in anyLine.
1586 + Removed unneeded 'try' from romanNumeral parser.
1587 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
1588 + Removed unneeded 'try' in parseFromString.
1589 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
1590 like 'string'.)
1591 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
1592 'try' is not automatically applied to the 'end' parser. Added
1593 'try' in calls to 'enclosed' where needed. Slight speed increase.
1595 * Writers:
1597 + Replaced individual wrapping routines in RST, Man, and Markdown
1598 writers with 'wrapped' from Text.Pandoc.Shared.
1599 + Rewrote LaTeX writer to use the prettyprinting library,
1600 so we get word wrapping, etc.
1601 + Modified latex writer tests for new latex writer using prettyprinter.
1602 + Fixed bug in LaTeX writer: autolinks would not cause
1603 '\usepackage{url}' to be put in the document header. Also, changes
1604 to state in enumerated list items would be overwritten.
1605 + In Markdown writer, escape paragraphs that begin with ordered list
1606 markers, so they don't get interpreted as ordered lists.
1608 * Text.Pandoc.Reades.LaTeX:
1610 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
1611 numeral after "enum" in "setcounter" would consist entirely of
1612 "i"s. 'enumiv' is legitimate.
1613 + LaTeX command and environment names can't contain numbers.
1614 + Rearranged order of parsers in inline for slight speed improvement.
1615 + Added '`' to special characters and 'unescapedChar'.
1617 * Text.Pandoc.Readers.RST:
1619 + Removed unneeded try's in RST reader; also minor code cleanup.
1620 + Removed tabchar.
1621 + Rearranged parsers in inline (doubled speed).
1623 * Text.Pandoc.Readers.Markdown:
1625 + Skip notes parsing if running in strict mode. (This yields a nice
1626 speed improvement in strict mode.)
1627 + Simplify autolink parsing code, using Network.URI to test for
1628 URIs. Added dependency on network library to debian/control and
1629 pandoc.cabal.
1630 + More perspicuous definition of nonindentSpaces.
1631 + Removed unneeded 'try' in 'rawLine'.
1632 + Combined linebreak and whitespace into a new whitespace parser, to
1633 avoid unnecessary reparsing of space characters.
1634 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
1635 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
1636 + Use lookAhead in parsers for setext headers and definition lists
1637 to see if the next line begins appropriately; if not, don't waste
1638 any more time parsing.
1639 + Don't require blank lines after code block. (It's sufficient to
1640 end code block with a nonindented line.)
1641 + Changed definition of 'emph': italics with '_' must not
1642 be followed by an alphanumeric character. This is to help
1643 prevent interpretation of e.g. [LC_TYPE]: my_type as
1644 '[LC<em>TYPE]:my</em>type'.
1645 + Improved Markdown.pl-compatibility in referenceLink: the two parts
1646 of a reference-style link may be separated by one space, but not
1647 more... [a] [link], [not] [a link].
1648 + Fixed markdown inline code parsing so it better accords with
1649 Markdown.pl: the marker for the end of the code section is a clump
1650 of the same number of `'s with which the section began, followed
1651 by a non-` character. So, for example,
1652 ` h ``` i ` -> <code>h ``` i</code>.
1653 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
1654 rules are slightly different.
1655 + Rewrote 'para' for greater efficiency.
1656 + Rewrote link parsers for greater efficiency.
1657 + Removed redundant 'referenceLink' in definition of inline (it's
1658 already in 'link').
1659 + Refactored escapeChar so it doesn't need 'try'.
1660 + Refactored hrule for performance in Markdown reader.
1661 + More intelligent rearranging of 'inline' so that most frequently
1662 used parsers are tried first.
1663 + Removed tabchar parser, as whitespace handles tabs anyway.
1665 * Text.Pandoc.CharacterReferences:
1667 + Refactored.
1668 + Removed unnecessary 'try's for a speed improvement.
1669 + Removed unnecessary '&' and ';' from the entity table.
1671 * Build process:
1673 + Makefile: Get VERSION from cabal file, not Main.hs.
1674 + Modified MacPorts Portfile:
1675 - Depend on haddock
1676 - Build and install libraries and library documentation in
1677 addition to pandoc executable
1678 - Added template item for md5 sum in Portfile.in.
1679 - Incorporated changes from MacPorts repository (r28278).
1680 + FreeBSD port: Don't try to generate distinfo in Makefile.
1681 It can be made using 'make makesum' in FreeBSD.
1682 + Make both freebsd and macports targets depend on tarball.
1684 * Website and documentation:
1686 + Updated INSTALL instructions.
1687 + Added pandocwiki demo to website.
1688 + Removed local references to Portfile, since pandoc is now in the
1689 MacPorts repository.
1691 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
1693pandoc (0.42) unstable; urgency=low
1695 [ John MacFarlane ]
1697 * Main.hs: Use utf8 conversion on the extra files loaded with
1698 the -H, -C, -B, and -A options. This fixes problems with unicode
1699 characters in these files.
1701 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
1702 Text.Pandoc.Readers.HTML and without it we get a linking error when
1703 using the library.
1705 * Markdown reader:
1707 + Added new rule for enhanced markdown ordered lists: if the list
1708 marker is a capital letter followed by a period (including a
1709 single-letter capital roman numeral), then it must be followed by
1710 at least two spaces. The point of this is to avoid accidentally
1711 treating people's initials as list markers: a paragraph might begin,
1712 "B. Russell was an English philosopher," and this shouldn't be
1713 treated as a list. Documented change in README.
1714 + Blocks that start with "p. " and a digit are no longer treated
1715 as ordered lists (it's a page number).
1716 + Added a needed 'try' to listItem.
1717 + Removed check for a following setext header in endline.
1718 A full test is too inefficient (doubles benchmark time), and the
1719 substitute we had before is not 100% accurate.
1720 + Don't use Code elements for autolinks if --strict specified.
1722 * LaTeX writer: When a footnote ends with a Verbatim environment, the
1723 close } of the footnote cannot occur on the same line or an error occurs.
1724 Fixed this by adding a newline before the closing } of every footnote.
1726 * HTML writer:
1727 + Removed incorrect "{}" around style information in HTML tables.
1728 Column widths now work properly in HTML.
1729 + If --strict option is specified (and --toc is not), don't include
1730 identifiers in headers, for better Markdown compatibility.
1732 * Build process:
1734 + Separated $(web_dest) and website targets.
1735 + In website, index.txt is now constructed from template index.txt.in.
1736 + Added freebsd target to Markefile. This creates the freebsd Makefile
1737 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
1738 from the repository.
1739 + Added macport target to Makefile. Portfile is built from template
1740 Portfile.in.
1741 + Removed OSX package targets. (Too many difficulties involving
1742 dependencies on dynamic libraries.)
1743 + More complete INSTALL instructions for all architectures.
1745 * Website:
1746 + Added a programming demo, pandocwiki.
1748 [ Recai Oktaş ]
1750 * Do not forget to close pandoc's ITP. Closes: #391666
1752 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
1754pandoc (0.41) unstable; urgency=low
1756 [ John MacFarlane ]
1758 * Fixed bugs in HTML reader:
1759 + Skip material at end *only if* </html> is present (previously,
1760 only part of the document would be parsed if an error was
1761 found; now a proper error message is given).
1762 + Added new constant eitherBlockOrInline with elements that may
1763 count either as block-level or as inline. Modified isInline and
1764 isBlock to take this into account.
1765 + Modified rawHtmlBlock to accept any tag (even an inline tag):
1766 this is innocuous, because rawHtmlBlock is tried only if a regular
1767 inline element can't be parsed.
1768 + Added a necessary 'try' in definition of 'para'.
1770 * Fixed bug in markdown ordered list parsing. The problem was that
1771 anyOrderedListStart did not check for a space following the
1772 ordered list marker. So in 'A.B. 2007' the parser would be
1773 expecting a list item, but would not find one, causing an error.
1774 Fixed a similar bug in the RST reader. Resolves Issue #22.
1776 * Refactored RST and Markdown readers using parseFromString.
1778 * LaTeX reader will now skip anything after \end{document}.
1780 * Fixed blockquote output in markdown writer: previously, block
1781 quotes in indented contexts would be indented only in the first
1782 line.
1784 * Added note to INSTALL about variations in versions of the xhtml
1785 library that can lead to failed tests (thanks to Leif LeBaron).
1787 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
1789pandoc (0.4) unstable; urgency=low
1791 [ John MacFarlane ]
1793 * Added two new output formats: groff man pages and ConTeXt. By
1794 default, output files with extensions ".ctx" and ".context" are
1795 assumed to be ConTeXt, and output files with single-digit extensions
1796 are assumed to be man pages.
1798 * Enhanced ordered lists (documented in README, under Lists):
1799 + The OrderedList block element now stores information about
1800 list number style, list number delimiter, and starting number.
1801 + The readers parse this information when possible.
1802 + The writers use this information to style ordered lists.
1803 + The enhancement can be disabled using the --strict option.
1805 * Added support for tables (with a new Table block element). Two kinds
1806 of tables are supported: a simple table with one-line rows, and a
1807 more complex variety with multiline rows. All output formats are
1808 supported, but only markdown tables are parsed at the moment. The
1809 syntax is documented in README.
1811 * Added support for definition lists (with a new DefinitionList block
1812 element). All output and input formats are supported. The syntax is
1813 documented in README.
1815 * Added support for superscripts and subscripts (with new Superscript
1816 and Subscript inline elements). All input and output
1817 formats. The syntax is documented in README.
1819 * Added support for strikeout (with a new Strikeout inline element).
1820 All input and output formats are supported. Thanks to Bradley Kuhn,
1821 who contributed a patch. The syntax is documented in README. Resolves
1822 Issue #18.
1824 * Added a --toc|--table-of-contents option. This causes an automatically
1825 generated table of contents (or an instruction that creates one) to
1826 be inserted at the beginning of the document. Not supported in S5,
1827 DocBook, or man page writers.
1829 * Modified the -m|--asciimathml option:
1831 + If an optional URL argument is provided, a link is inserted
1832 instead of the contents of the ASCIIMathML.js script.
1833 + Nothing is inserted unless the document actually contains
1834 LaTeX math.
1836 * Removed Blank block element as unnecessary.
1838 * Removed Key and Note blocks from the Pandoc data structure. All
1839 links are now stored as explicit links, and note contents are
1840 stored with the (inline) notes.
1842 + All link Targets are now explicit (URL, title) pairs; there
1843 is no longer a 'Ref' target.
1844 + Markdown and RST parsers now need to extract data from key and
1845 note blocks and insert them into the relevant inline elements.
1846 Other parsers have been simplified, since there is no longer any need
1847 to construct separate key and note blocks.
1848 + Markdown, RST, and HTML writers need to construct lists of
1849 notes; Markdown and RST writers need to construct lists of link
1850 references (when the --reference-links option is specified); and
1851 the RST writer needs to construct a list of image substitution
1852 references. All writers have been rewritten to use the State monad
1853 when state is required.
1854 + Several functions (generateReference, keyTable,
1855 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
1856 used by them) have been removed from Text.Pandoc.Shared, since
1857 they are no longer needed. New functions and data structures
1858 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
1859 added. The functions inTags, selfClosingTag, inTagsSimple, and
1860 inTagsIndented have been moved to the DocBook writer, since that
1861 is now the only module that uses them. NoteTable is now exported
1862 in Text.Pandoc.Shared.
1863 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
1864 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
1865 + Added writerNotes and writerReferenceLinks to WriterOptions.
1867 * Added Text.Pandoc module that exports basic readers, writers,
1868 definitions, and utility functions. This should export everything
1869 needed for most uses of Pandoc libraries. The haddock documentation
1870 includes a short example program.
1872 * Text.Pandoc.ASCIIMathML is no longer an exported module.
1874 * Added Text.Pandoc.Blocks module to help in printing markdown
1875 and RST tables. This module provides functions for working with
1876 fixed-width blocks of text--e.g., placing them side by side, as
1877 in a table row.
1879 * Refactored to avoid reliance on Haskell's Text.Regex library, which
1880 (a) is slow, and (b) does not properly handle unicode. This fixed
1881 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
1883 + Replaced 'gsub' with a general list function 'substitute'
1884 that does not rely on Text.Regex.
1885 + Rewrote extractTagType in HTML reader so that it doesn't use
1886 regexs.
1887 + In Markdown reader, replaced email regex test with a custom email
1888 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
1889 with a custom function isSelfClosingTag.
1890 + Modified Docbook writer so that it doesn't rely on Text.Regex for
1891 detecting 'mailto' links.
1892 + Removed escapePreservingRegex and reamped entity-handling
1893 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
1894 avoid reliance on Text.Regex (see below on character reference
1895 handling changes).
1897 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
1899 * Changed handling of XML entities. Entities are now parsed (and unicode
1900 characters returned) in the Markdown and HTML readers, rather than being
1901 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
1902 instead of entities for characters above 128. This makes the HTML and
1903 DocBook output much more readable and more easily editable.
1905 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
1906 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
1907 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
1908 Moved both functions to Text.Pandoc.Writers.Docbook.
1909 + Added characterReference parser to Text.Pandoc.CharacterReferences.
1910 This parses a string and return a unicode character.
1911 + Rewrote decodeCharacterReferences to use the new parser instead of
1912 Text.Regex.
1913 + Added new charRef parser for Markdown and HTML, which replaces the
1914 old 'entity' parser. Added '&' as a special character in Markdown reader.
1915 + Modified HTML and Markdown readers to call decodeEntities on all raw
1916 strings (e.g. authors, dates, link titles), to ensure that no
1917 unprocessed entities are included in the native representation of
1918 the document. (In the HTML reader, most of this work is done by a
1919 change in extractAttributeName.)
1920 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
1921 since a unicode non-breaking space is impossible to distinguish visually
1922 from a regular space. (Resolves Issue #3.)
1923 + Removed encodeEntitiesNumerical.
1924 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
1925 slight performance boost over the old association list.
1926 + Removed unneeded decodeEntities from 'str' parser in HTML and
1927 Markdown readers.
1929 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
1930 fromUTF8, for clarity.
1932 * Replaced old haskell98 module names replaced by hierarchical module
1933 names, e.g. List by Data.List. Removed haskell98 from dependencies
1934 in pandoc.cabal, and added mtl (needed for state monad). Substituted
1935 xhtml for html.
1937 * Refactored and cleaned up character escaping in writers, using
1938 backslashEscapes and escapeStringUsing functions.
1940 * Instead of adding "\n\n" to the end of an input string in Main.hs,
1941 this is now done in the readers. This makes the libraries behave
1942 the way you'd expect from the pandoc program. Resolves Issue #10.
1944 * URLs and email addresses in autolinks are now typeset as Code.
1946 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
1947 doesn't display the whole output unless there's a line ending.
1949 * Major code cleanup in all modules, for greater consistency, concision,
1950 and readability.
1952 * HTML reader:
1954 + Fixed several bugs (extractTagType, attribute parsing).
1955 + Remove Null blocks in lists of blocks when possible.
1956 + Allow HTML comments as raw HTML inline.
1958 * Markdown reader:
1960 + Ordered list items may no longer begin with uppercase letters, or
1961 letters greater than 'n'. (This prevents first initials and page
1962 reference, e.g. 'p. 400', from being parsed as beginning lists.)
1963 Also, numbers beginning list items may no longer end with ')',
1964 which is now allowed only after letters. Note: These changes
1965 may cause documents to be parsed differently. Users should take
1966 care in upgrading.
1967 + Changed autoLink parsing to conform better to Markdown.pl's
1968 behavior. <google.com> is not treated as a link, but
1969 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
1970 are.
1971 + Cleaned up handling of embedded quotes in link titles. Now these are
1972 stored as a '"' character, not as '&quot;'.
1973 + Use lookAhead parser for the 'first pass' (looking for reference keys),
1974 instead of parsing normally, then using setInput to reset input. This
1975 yields a slight performance boost.
1976 + Fixed several bugs in smart quote recognition.
1977 + Fixed bug in indentSpaces (which didn't properly handle
1978 cases with mixed spaces and tabs).
1979 + Consolidated 'text', 'special', and 'inline' into 'inline'.
1980 + Fixed bug which allowed URL and title to be separated by multiple blank
1981 lines in links and reference keys. They can be on separate lines but
1982 can't have blank lines between them.
1983 + Correctly handle bracketed text inside inline footnotes and links,using
1984 new function inlinesInBalanced. Resolves Issue #14.
1985 + Fixed bug in footnotes: links in footnotes were not being
1986 processed. Solution: three-stage parse. First, get all the
1987 reference keys and add information to state. Next, get all the
1988 notes and add information to state. (Reference keys may be needed
1989 at this stage.) Finally, parse everything else.
1990 + Replaced named constants like 'emphStart' with literals.
1991 + Removed an extra occurance of escapedChar in definition of inline.
1993 * RST reader:
1995 + Allow the URI in a RST hyperlink target to start on the line
1996 after the reference key.
1997 + Added 'try' in front of 'string', where needed, or used a different
1998 parser. This fixes a bug where ````` would not be correctly parsed as
1999 a verbatim `.
2000 + Fixed slow performance in parsing inline literals in RST reader. The
2001 problem was that ``#`` was seen by 'inline' as a potential link or image.
2002 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
2003 Resolves Issue #8.
2004 + Use lookAhead instead of getInput/setInput in RST reader. Removed
2005 unneeded getState call, since lookAhead automatically saves and
2006 restores the parser state.
2007 + Allow hyperlink target URIs to be split over multiple lines, and
2008 to start on the line after the reference. Resolves Issue #7.
2009 + Fixed handling of autolinks.
2011 * LaTeX reader:
2013 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
2014 for clarity.
2015 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
2016 caret is \^{}, not \^ as before.
2017 + Added parsing for \url.
2018 + Parse \texttt{} as code, provided there's nothing fancy inside.
2020 * HTML writer:
2022 + Modified HTML writer to use the Text.XHtml library. This results
2023 in cleaner, faster code, and it makes it easier to use Pandoc in
2024 other projects, like wikis, which use Text.XHtml. Two functions are
2025 now provided, writeHtml and writeHtmlString: the former outputs an
2026 Html structure, the latter a rendered string. The S5 writer is also
2027 changed, in parallel ways (writeS5, writeS5String).
2028 + The Html header is now written programmatically, so it has been
2029 removed from the 'headers' directory. The S5 header is still
2030 needed, but the doctype and some of the meta declarations have
2031 been removed, since they are written programatically. This change
2032 introduces a new dependency on the xhtml package.
2033 + Fixed two bugs in email obfuscation involving improper escaping
2034 of '&' in the <noscript> section and in --strict mode. Resolves
2035 Issue #9.
2036 + Fixed another bug in email obfuscation: If the text to be obfuscated
2037 contains an entity, this needs to be decoded before obfuscation.
2038 Thanks to thsutton for the patch. Resolves Issue #15.
2039 + Changed the way the backlink is displayed in HTML footnotes.
2040 Instead of appearing on a line by itself, it now generally
2041 appears on the last line of the note. (Exception: when the
2042 note does not end with a Plain or Para block.) This saves space
2043 and looks better.
2044 + Added automatic unique identifiers to headers:
2045 - The identifier is derived from the header via a scheme
2046 documented in README.
2047 - WriterState now includes a list of header identifiers and a table
2048 of contents in addition to notes.
2049 - The function uniqueIdentifiers creates a list of unique identifiers
2050 from a list of inline lists (e.g. headers).
2051 - This list is part of WriterState and gets consumed by blockToHtml
2052 each time a header is encountered.
2053 + Include CSS for .strikethrough class in header only if strikethrough
2054 text appears in the document.
2055 + If the 'strict' option is specified, elements that do not appear in
2056 standard markdown (like definition lists) are passed through as
2057 raw HTML.
2058 + Simplified treatment of autolinks, using pattern matching instead of
2059 conditionals.
2061 * Markdown writer:
2063 + Links in markdown output are now printed as inline links by default,
2064 rather than reference links. A --reference-links option has been added
2065 that forces links to be printed as reference links. Resolves Issue #4.
2066 + Use autolinks when possible. Instead of [site.com](site.com),
2067 use <site.com>.
2069 * LaTeX writer:
2071 + Rewrote to use the State monad. The preamble now includes only those
2072 packages that are actually required, given the document's content.
2073 Thus, for example, if strikeout is not used, ulem is not required.
2074 Modified LaTeXHeader accordingly.
2075 + Modified LaTeX writer to insert '\,' between consecutive quotes.
2076 + Removed unused function tableRowColumnWidths.
2077 + Simplified code for escaping special characters.
2078 + Leave extra blank line after \maketitle.
2079 + Include empty '\author{}' when no author specified to avoid LaTeX
2080 errors.
2081 + Include fancyvrb code in header only if needed -- that is, only
2082 if there is actually code in a footnote.
2083 + Use \url{} for autolinks.
2084 + Include [mathletters] option in ucs package, so that basic unicode
2085 Greek letters will work correctly.
2087 * RST writer: Force blank line before lists, so that sublists will
2088 be handled correctly.
2090 * Docbook writer: Fixed a bug: email links with text, like
2091 [foo](me@bar.baz), were being incorrectly treated as autolinks.
2093 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
2094 Text.Pandoc.Shared.
2096 * Text.Pandoc.Shared:
2098 + Added defaultWriterOptions.
2099 + Added writerTableOfContents to WriterOptions.
2100 + Added writerIgnoreNotes option to WriterOptions. This is needed
2101 for processing header blocks for a table of contents, since notes on
2102 headers should not appear in the TOC.
2103 + Added prettyprinting for native Table format.
2104 + Removed some unneeded imports.
2105 + Moved escape and nullBlock parsers from
2106 Text.ParserCombinators.Pandoc, since the latter is for
2107 general-purpose parsers that don't depend on Text.Pandoc.Definition.
2108 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
2109 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
2110 writer, because HTML writer now uses these in constructing a table
2111 of contents.
2112 + Added clauses for new inline elements (Strikeout, Superscript,
2113 Subscript) to refsMatch.
2114 + Removed backslashEscape; added new functions escapeStringUsing and
2115 backslashEscapes.
2116 + Moved failIfStrict from markdown reader, since it is now used also
2117 by the HTML reader.
2118 + Added a 'try' to the definition of indentSpaces.
2119 + In definition of 'reference', added check to make sure it's not a note
2120 reference.
2121 + Added functions: camelCaseToHyphenated, toRomanNumeral,
2122 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
2123 charsInBalanced', withHorizDisplacement, romanNumeral
2124 + Fixed a bug in the anyLine parser. Previously it would parse an empty
2125 string "", but it should fail on an empty string, or we get an error
2126 when it is used inside "many" combinators.
2127 + Removed followedBy' parser, replacing it with the lookAhead parser from
2128 Parsec.
2129 + Added some needed 'try's before multicharacter parsers, especially in
2130 'option' contexts.
2131 + Removed the 'try' from the 'end' parser in 'enclosed', so that
2132 'enclosed' behaves like 'option', 'manyTill', etc.
2133 + Added lineClump parser, which parses a raw line block up to and
2134 including any following blank lines.
2135 + Renamed parseFromStr to parseFromString.
2136 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
2137 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
2138 in calling code.
2139 + Removed unneeded 'try' in blanklines.
2140 + Removed endsWith function and rewrote calling functions to use
2141 isSuffixOf instead.
2142 + Added >>~ combinator.
2143 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
2144 Space.
2146 * Refactored runtests.pl; added separate tests for tables.
2148 * Shell scripts:
2150 + Added -asxhtml flag to tidy in html2markdown. This will
2151 perhaps help the parser, which expects closing tags.
2152 + Modified markdown2pdf to run pdflatex a second time if --toc or
2153 --table-of-contents was specified; otherwise the table of
2154 contents won't appear.
2155 + Modified markdown2pdf to print a helpful message if the 'ulem'
2156 LaTeX package is required and not found.
2158 * Changes to build process:
2160 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
2161 is now required.
2162 + Removed cabalize and Pandoc.cabal.in. The repository now contains
2163 pandoc.cabal itself.
2164 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
2165 likes the cabal file to have the same name as the tarball.
2166 + Expanded and revised the package description in pandoc.cabal.
2167 Revised the package synopsis.
2168 + The tarball built by 'make tarball' now contains files built from
2169 templates (including man pages and shell scripts), so pandoc can
2170 be built directly using Cabal tools, without preprocessing.
2171 + Executable binaries are now stripped before installing.
2172 + Man pages are now generated from markdown sources, using pandoc's
2173 man page writer.
2174 + Use HTML version of README (instead of RTF) in Mac OS X installer.
2175 + Instead of testing for the existence of a pandoc symlink in build-exec,
2176 use ln -f.
2178 * Documentation:
2180 + Updated README and man pages with information on new features.
2181 + Updated INSTALL instructions with some useful clarifications and
2182 links.
2183 + Updated web content.
2185 * Added FreeBSD port.
2187 [ Recai Oktaş ]
2189 * debian/control:
2191 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
2192 libghc6-xhtml-dev. Removed libghc6-html-dev.
2193 + Suggest texlive-latex-recommended | tetex-extra instead of
2194 tetex-bin. This brings in fancyvrb and unicode support.
2196 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
2198pandoc (0.3) unstable; urgency=low
2200 [ John MacFarlane ]
2202 * Changes in pandoc options:
2204 + Allow options to follow or precede arguments.
2205 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
2206 + Added '--strict' option.
2207 + Added '-o/--output' option.
2208 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
2209 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
2210 error conditions. This is helpful for writing wrappers.
2211 + Added copyright message to '-v' output, modeled after FSF messages.
2212 + Reformatted usage message so that it doesn't wrap illegibly.
2213 + Removed extra blanks after '-h' and '-D' output.
2215 * Added docbook writer.
2217 * Added implicit setting of default input and output format based
2218 on input and output filename extensions. These defaults are
2219 overridden if explicit input and output formats are specified using
2220 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
2221 and README.
2223 * Allow ordered list items to begin with (single) letters, as well
2224 as numbers. The list item marker may now be terminated either by
2225 '.' or by ')'. This extension to standard markdown is documented
2226 in README.
2228 * Revised footnote syntax. (See README for full details.) The
2229 '[^1]' format now standard in markdown extensions is supported,
2230 as are inline footnotes with this syntax: '^[My note.]'.
2231 The earlier footnote syntax '^(1)' is no longer supported.
2233 * Improved HTML representation of footnotes. All footnotes
2234 are now auto-numbered and appear in an ordered list at the
2235 end of the HTML document. Since the default appearance is now
2236 acceptable, the old footnote styles have been removed from the
2237 HTML header.
2239 * Bug fixes:
2241 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
2242 These readers ran 'runParser' on processed chunks of text to handle
2243 embedded block lists in lists and quotation blocks. But then
2244 any changes made to the parser state in these chunks was lost,
2245 as the state is local to the parser. So, for example, footnotes
2246 didn't work in quotes or list items. The fix: instead of calling
2247 runParser on some raw text, use setInput to make it the input, then
2248 parse it, then use setInput to restore the input to what it was
2249 before. This is shorter and more elegant, and it fixes the problem.
2250 + Fixed bug in notFollowedBy' combinator (adding 'try' before
2251 'parser'). Adjusted code that uses this combinator accordingly.
2252 + Fixed bug in RTF writer that caused improper indentation on
2253 footnotes occurring in indented blocks like lists.
2254 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
2255 and date are parsed correctly. Everything else in the preamble
2256 is skipped.
2257 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
2258 line to count as escaped whitespace.
2259 + Modified LaTeX reader to produce inline links rather than reference
2260 links. Otherwise, links in footnotes aren't handled properly.
2261 + Fixed handling of titles in links in Markdown reader, so that
2262 embedded quotation marks are now handled properly.
2263 + Fixed Markdown reader's handling of embedded brackets in links.
2264 + Fixed Markdown reader so that it only parses bracketed material
2265 as a reference link if there is actually a corresponding key.
2266 + Revised inline code parsing in Markdown reader to conform to
2267 markdown standard. Now any number of `s can begin inline code,
2268 which will end with the same number of `s. For example, to
2269 have two backticks as code, write ``` `` ```. Modified Markdown
2270 writer accordingly.
2271 + Fixed bug in text-wrapping routine in Markdown and RST writers.
2272 Now LineBreaks no longer cause wrapping problems.
2273 + Supported hexadecimal numerical entity references as well as
2274 decimal ones.
2275 + Fixed bug in Markdown reader's handling of underscores and other
2276 inline formatting markers inside reference labels: for example,
2277 in '[A_B]: /url/a_b', the material between underscores was being
2278 parsed as emphasized inlines.
2279 + Changed Markdown reader's handling of backslash escapes so that
2280 only non-alphanumeric characters can be escaped. Strict mode
2281 follows Markdown.pl in only allowing a select group of punctuation
2282 characters to be escaped.
2283 + Modified HTML reader to skip a newline following a <br> tag.
2284 Otherwise the newline will be treated as a space at the beginning
2285 of the next line.
2287 * Made handling of code blocks more consistent. Previously, some
2288 readers allowed trailing newlines, while others stripped them.
2289 Now, all readers strip trailing newlines in code blocks. Writers
2290 insert a newline at the end of code blocks as needed.
2292 * Modified readers to make spacing at the end of output more consistent.
2294 * Minor improvements to LaTeX reader:
2296 + '\thanks' now treated like a footnote.
2297 + Simplified parsing of LaTeX command arguments and options.
2298 commandArgs now returns a list of arguments OR options (in
2299 whatever order they appear). The brackets are included, and
2300 a new stripFirstAndLast function is provided to strip them off
2301 when needed. This fixes a problem in dealing with \newcommand
2302 and \newenvironment.
2304 * Revised RTF writer:
2306 + Default font is now Helvetica.
2307 + An '\f0' is added to each '\pard', so that font resizing works
2308 correctly.
2310 * Moved handling of "smart typography" from the writers to the Markdown
2311 and LaTeX readers. This allows great simplification of the writers
2312 and more accurate smart quotes, dashes, and ellipses. DocBook can
2313 now use '<quote>'. The '--smart' option now toggles an option in
2314 the parser state rather than a writer option. Several new kinds
2315 of inline elements have been added: Quoted, Ellipses, Apostrophe,
2316 EmDash, EnDash.
2318 * Changes in HTML writer:
2320 + Include title block in header even when title is null.
2321 + Made javascript obfuscation of emails even more obfuscatory,
2322 by combining it with entity obfuscation.
2324 * Changed default ASCIIMathML text color to black.
2326 * Test suite:
2328 + Added --strip-trailing-cr option to diff in runtests.pl, for
2329 compatibility with Windows.
2330 + Added regression tests with footnotes in quote blocks and lists.
2332 * Makefile changes:
2334 + osx-pkg target creates a Mac OS X package (directory). New osx
2335 directory contains files needed for construction of the package.
2336 + osx-dmg target creates a compressed disk image containing the package.
2337 + win-pkg target creates Windows binary package.
2338 + tarball target creates distribution source tarball.
2339 + website target generates pandoc's website automatically, including
2340 demos. New 'web' directory containts files needed for construction
2341 of the website (which will be created as the 'pandoc' subdirectory
2342 of 'web').
2343 + Makefile checks to see if we're running Windows/Cygwin; if so,
2344 a '.exe' extension is added to each executable in EXECS.
2346 * Removed all wrappers except markdown2pdf and html2markdown.
2348 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
2349 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
2350 option and disables other options.
2352 * Added code to html2markdown that tries to determine the character
2353 encoding of an HTML file, by parsing the "Content-type" meta tag.
2355 + If the encoding can't be determined, then if the content is local,
2356 the local encoding is used; if it comes from a URL, UTF-8 is used
2357 by default.
2358 + If input is from STDIN, don't try to determine character encoding.
2359 + Encoding can be specified explicitly using '-e' option.
2361 * Improved warning messages in wrappers:
2363 + Print warning if iconv not available
2364 + More user-friendly error messages in markdown2pdf, when
2365 pdflatex fails.
2367 * Code cleanup:
2369 + Renamed 'Text/Pandoc/HtmlEntities' module to
2370 'Text/Pandoc/Entities'. Also changed function names so as
2371 not to be HTML-specific.
2372 + Refactored SGML string escaping functions from HTML and Docbook
2373 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
2374 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
2375 used anywhere.
2376 + Removed splitBySpace and replaced it with a general, polymorphic
2377 splitBy function.
2378 + Refactored LaTeX reader for clarity (added isArg function).
2379 + Converted some CR's to LF's in src/ui/default/print.css.
2380 + Added license text to top of source files.
2381 + Added module data for haddock to source files.
2382 + Reformatted code for consistency.
2384 * Rewrote documentation and man pages. Split README into INSTALL
2385 and README.
2387 * Split LICENSE into COPYING and COPYRIGHT.
2389 * Removed TODO, since we now maintain ToDo on the wiki.
2391 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
2392 duplication.
2394 [ Recai Oktaş ]
2396 * Revamped build process to conform to debian standards and created
2397 a proper debian package. Closes: #391666.
2399 * Modified build process to support GHC 6.6.
2401 + The package can still be compiled using GHC 6.4.2, though because
2402 of dependencies the "make deb" target works only with GHC 6.6+.
2403 + The script 'cabalize' is used to create an appropriate
2404 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
2405 Cabal versions.
2407 * Refactored template processing (fillTemplates.pl).
2409 * Modified wrapper scripts to make them more robust and portable.
2410 To avoid code duplication and ensure consistency, wrappers are
2411 generated via a templating system from templates in src/wrappers.
2413 + Wrappers now accept multiple filenames, when appropriate.
2414 + Spaces and tabs allowed in filenames.
2415 + getopts shell builtin is used for portable option parsing.
2416 + Improved html2markdown's web grabber code, making it more robust,
2417 configurable and verbose. Added '-e', '-g' options.
2419 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
2421pandoc (0.2) unstable; urgency=low
2423 * Fixed unicode/utf-8 translation
2425 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
2427pandoc (0.1) unstable; urgency=low
2429 * Initial creation of debian package
2431 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400