git.iko.soy/typeable/pandoc
on 1.0.0.1 help sign in
typeable/pandoc/changelog
1679 lines 76 kB history raw
1pandoc (1.0)
3 [ Andrea Rossato ]
5 * Added new OpenDocument writer.
7 * Added support for SmallCaps inline element.
9 * Added support for integrating pandoc with citeproc-hs.
11 + Added Cite element to definition and writers.
12 + Added Text.Pandoc.Biblio module
13 + Note: This support is included only if the 'citeproc'
14 Cabal configuration flag is set.
16 * Made Pandoc data structure an instance of Typeable.
17 Added new processPandoc and queryPandoc functions, to query
18 or transform matching elements in a Pandoc structure.
20 [ Peter Wang ]
22 * Added new Texinfo writer.
24 [ John MacFarlane ]
26 * Changes to Texinfo writer:
28 + No space between paragraph and following @verbatim (provides more
29 pleasing appearance in text formats)
30 + Blank line consistently after list environments.
31 + Removed deVerb.
32 + Use @code instead of @verb for inline code (this solves the character
33 escaping problem for texi2dvi and texi2pdf).
34 + Added news of Texinfo writer to README.
35 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
36 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
37 default output extension.
38 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
40 * Added tests for OpenDocument writer.
42 * Added ODT writer (using zip-archive library to package output of
43 OpenDocument writer). Added odt-styles directory with default ODT styles.
45 * Added new mediawiki writer and tests.
47 * Markdown reader: Added support for delimited code blocks, with optional
48 syntax highlighting using highlighting-kate (if the 'highlighting'
49 configuration option is selected).
51 + Currently highlighting is supported only in the HTML writer.
52 + Delimited code blocks can have attributes; using the language name as
53 class triggers highlighting.
54 + New Attributes parameter in CodeBlock structure.
55 + --version now indicates whether syntax highlighting support is compiled
56 in, and prints a list of supported languages
58 * Removed debian directory. Pandoc is no longer a native debian package.
60 * Changes to build process: pandoc can now be built from the repository
61 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
62 without Cygwin).
64 + Include shell scripts themselves in repo, rather than generating from wrappers.
65 Removed wrappers directory and wrappers Makefile target.
66 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
67 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
68 from templates in the templates/ directory. Instead, they use template
69 haskell to read data at compile time from the relevant files in data/.
70 Template haskell functions go in a new module, Text.Pandoc.TH.
71 + man pages are now generated in Setup.hs hook, not by Makefile
72 + Makefile 'tarball' target now calls Cabal's 'sdist'
73 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
74 + Added "Build-Type" field to pandoc.cabal to avoid warning.
75 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
76 so 'sdist' and 'clean' will work properly.
77 + Setup.hs now generates man pages in a postbuild hook.
78 + Added dependency-checking to Setup.hs, so it only rebuilds things
79 that need rebuilding.
80 + Added 'library' and 'executable' configuration flags.
81 Cabal can now be told to build just the library or just the executable.
82 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
83 For example: CABALOPTS=-fhighlighting make
85 * Rewrote test suite so it doesn't depend on perl or unix tools.
87 + Replaced old runtests.pl with a Haskell script RunTests.hs.
88 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
89 + Added test hook to Setup.hs, so tests may be run from cabal.
90 + Changed Makefile's 'test' target to run tests via cabal.
91 + Removed old generate.sh.
92 + Since we no longer have 'sed' to filter out raw HTML sections
93 from the docbook writer test, or raw LaTeX sections from the
94 context writer test, we now just include these sections.
95 They can be taken out if it is necessary to process the files.
96 + Updated latex and context writer tests to remove extra spaces
97 after '\\item'
98 + Added a markdown table reader test.
99 + Added markdown-reader-more.txt to test suite, for additional test cases
100 for raw ConTeXt environments and more.
102 * Compatibility fixes for CPP, Cabal, and haddock:
104 + Use CPP in "Extensions" field in pandoc.cabal.
105 + Removed use of backslash string continuations in source files.
107 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
108 base >= 3.
110 * Require parsec < 3.
111 The compatibility module in parsec 3.0.0 gives far worse performance than
112 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
113 version of parsec, and then we'll go to parsec 3.0.0.
115 * Removed Text.Regex dependencies by rewriting using plain Haskell
116 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
118 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
120 * Makefile:
122 + Added 'configure' as dependency of 'uninstall-all'.
123 (It uses the Cabal build program.)
124 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
125 Note that Cabal will automatically choose the ghc-pkg appropriate
126 for the compiler selected, so normally specifying GHC by itself
127 is sufficient.
129 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
130 its IO and conversion functions.
132 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
133 everything is -Wall clean.
135 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
136 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
137 (These are caused by the Lift instance for ByteString.)
139 * Changed the comment used to replace unsafe HTML if sanitize-html option
140 selected.
142 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
144 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
146 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
147 "nbsp" isn't a predefined XML entity.
149 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
150 Added some try's in ordered list parsers.
152 * Man writer: don't escape " as \".
154 * Allow newline before URL in markdown link references. Resolves Issue #81.
155 Added tests for this issue in new "markdown-reader-more" tests.
156 Changed RunTests.hs to run these tests.
158 * Support for display math. Resolves Issue #47.
160 + Added a DisplayMath/InlineMath selector to Math inlines.
161 + Markdown parser yields DisplayMath for $$...$$.
162 + LaTeX parser yields DisplayMath when appropriate. Removed
163 mathBlock parsers, since the same effect is achieved by the math
164 inline parsers, now that they handle display math.
165 + Writers handle DisplayMath as appropriate for the format.
166 + Modified tests accordingly; added new tests for display math.
168 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
169 to LaTeX in its display of math, and supports many non-math LaTeX environments.
171 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
172 + Modified HTML writer to print raw TeX when LaTeXMathML is
173 being used instead of suppressing it.
174 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
175 + Replaced ASCIIMathML with LaTeXMathML in source files.
176 + Modified README and pandoc man page source.
177 + Added --latexmathml option (kept --asciimathml as a synonym
178 for backwards compatibility)
180 * Markdown reader: Parse setext headers before atx headers.
181 Test case:
182 # hi
183 ====
184 parsed by Markdown.pl as an H1 header with contents "# hi".
186 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
187 The marker on the first list item determines the type of the whole
188 list. Thus, a list like
189 1. one
190 - two
191 * three
192 gets parsed as a single ordered list. (Previous versions of pandoc
193 treated this as an ordered list with an unordered sublist.)
195 * Markdown smart typography:
197 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
198 + Use nonbreaking spaces after known abbreviations in markdown parser.
199 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
200 not produce a sentence-separating space. Resolves Issue #75.
202 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
204 * Treat '\ ' in (extended) markdown as nonbreaking space.
205 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
207 * The '--sanitize-html' option now examines URIs in markdown links
208 and images, and in HTML href and src attributes. If the URI scheme
209 is not on a whitelist of safe schemes, it is rejected. The main point
210 is to prevent cross-site scripting attacks using 'javascript:' URIs.
211 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
212 and http://ha.ckers.org/xss.html. Resolves Issue #62.
214 * HTML writer:
216 + Override Text.XHtml's stringToHtml function,
217 so that characters below 0xff are not converted to numerical entity
218 references. Also convert '\160' to "&nbsp;". This should aid readability
219 and editability of the HTML source. It does presuppose that the HTML
220 will be served as UTF-8.
221 + In code blocks, change leading newlines to <br /> tags.
222 (Some browsers ignore them.) Resolves Issue #71.
223 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
224 + Use style attributes rather than css classes for strikethrough
225 and ordered list styles. This works better when fragments, rather than
226 standalone documents, are generated.
228 * HTML reader: Count anything that isn't a known block (HTML) tag as an
229 inline tag (rather than the other way around). Added "html", "head", and
230 "body" to list of block tags. Resolves Issue #66, allowing
231 <lj> to count as an inline tag.
233 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
234 boldface, and other inline elements. Resolves Issue #64.
236 * LaTeX reader: improvements in raw LaTeX parsing.
238 + "loose punctuation" (like {}) parsed as Space
239 + Para elements must contain more than Str "" and Space elements
240 + Added parser for "\ignore" command used in literate haskell.
241 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
242 mode, these parsers simply strip off the command part and allow
243 the arguments to be parsed normally. So, for example,
244 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
245 Str "{\\emph{hi}}".
246 + Parse lhs "code" environments as verbatim.
247 Refactored parsers for verbatim environments.
248 + Removed specialEnvironment parser.
249 + parse '{}', if present, after \textless, \textgreater,
250 \textbar, \textbackslash, \ldots.
251 + Parse unescaped special characters verbatim rather than
252 changing them to spaces. This way arguments of unknown
253 commands will appear in braces.
255 * Parse raw ConTeXt environments as TeX in markdown reader.
256 Resolves Issue #73.
258 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
260 * Made some structural changes to parsing of raw LaTeX environments.
261 Previously there was a special block parser for LaTeX environments.
262 It returned a Para element containing the raw TeX inline. This has
263 been removed, and the raw LaTeX environment parser is now used in the
264 rawLaTeXInline parser. The effect is exactly the same, except that we
265 can now handle consecutive LaTeX and ConTeXt environments not separated
266 by spaces. This new flexibility is required by the example in
267 Issue #73:
269 \placeformula \startformula
270 L_{1} = L_{2}
271 \stopformula
273 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
274 returns a string) rather than rawLaTeXEnvironment (which returns a block
275 element). This is more likely to be useful in other applications.
277 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
278 \textsubscript conflicts with a definition in the memoir class.
279 Resolves Issue #65.
281 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
283 * Added amsmath package to default LaTeX header. Resolves Issue #48.
285 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
286 list introduction lines.
288 * Changed Float to Double in definition of Table element.
289 (Double is more efficient in GHC.)
291 * Fixed bug in Markdown parser: regular $s triggering math mode.
292 For example: "shoes ($20) and socks ($5)."
293 The fix consists in two new restrictions:
295 + the $ that ends a math span may not be directly followed by a digit.
296 + no blank lines may be included within a math span.
298 Thanks to Joseph Reagle for noticing the bug.
300 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
301 Removed 'joinWithSep' from Text.Pandoc.Shared.
303 * Updated README and man pages. Acknowledge contributors in README.
304 Added paragraph to README about producing S5 with separate CSS/javascript.
306 * Updated INSTALL to reflect new build system (including configuration
307 options) and document new dependencies. Added note to INSTALL that
308 Cabal >= 1.2 is required for build. Resolves Issue #74.
310 * Fixed some haddock documentation errors.
312 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
314pandoc (0.46) unstable; urgency=low
316 [ John MacFarlane ]
318 * Made -H, -A, and -B options cumulative: if they are specified
319 multiple times, multiple files will be included.
321 * Added optional HTML sanitization using a whitelist.
322 When this option is specified (--sanitize-html on the command line),
323 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
324 attributes will be removed. This option should be especially useful
325 for those who want to use pandoc libraries in web applications, where
326 users will provide the input.
328 + Main.hs: Added --sanitize-html option.
330 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
332 + Text.Pandoc.Readers.HTML:
333 - Added whitelists of sanitaryTags and sanitaryAttributes.
334 - Added parsers to check these lists (and state) to see if a given
335 tag or attribute should be counted unsafe.
336 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
337 with comments.
338 - Modified htmlAttribute to remove unsafe attributes.
339 - Modified htmlScript and htmlStyle to remove these elements if
340 unsafe.
342 + Modified README and man pages to document new option.
344 * Improved handling of email addresses in markdown and reStructuredText.
345 Consolidated uri and email address parsers. (Resolves Issue #37.)
347 + New emailAddress and uri parsers in Text.Pandoc.Shared.
348 - uri parser uses parseURI from Network.URI.
349 - emailAddress parser properly handles email addresses with periods
350 in them.
352 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
353 and Text.Pandoc.Readers.Markdown.
355 * Markdown reader:
357 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
358 nested in an Emph. (A '*' is only recognized as the end of the
359 emphasis if it's not the beginning of a strong emphasis.)
361 + Moved blockQuote parser before list parsers for performance.
363 + Modified 'source' parser to allow backslash-escapes in URLs.
364 So, for example, [my](/url\(1\)) yields a link to /url(1).
365 Resolves Issue #34.
367 + Disallowed links within links. (Resolves Issue #35.)
368 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
369 instead of hard-coding the inline parser takes an inline parser
370 as a parameter.
371 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
372 - Removed unneeded inlineString function.
373 - Added inlineNonLink parser, which is now used in the definition of
374 reference.
375 - Added inlineParsers list and redefined inline and inlineNonLink parsers
376 in terms of it.
377 - Added failIfLink parser.
379 + Better handling of parentheses in URLs and quotation marks in titles.
380 - 'source' parser first tries to parse URL with balanced parentheses;
381 if that doesn't work, it tries to parse everything beginning with
382 '(' and ending with ')'.
383 - source parser now uses an auxiliary function source'.
384 - linkTitle parser simplified and improved, under assumption that it
385 will be called in context of source'.
387 + Make 'block' conditional on strictness state, instead of using
388 failIfStrict in block parsers. Use a different ordering of parsers
389 in strict mode (raw HTML block before paragraph) for performance.
390 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
391 Simplified htmlBlock, since we know it's only called in strict
392 mode.
394 + Improved handling of raw HTML. (Resolves Issue #36.)
395 - Tags that can be either block or inline (e.g. <ins>) should
396 be treated as block when appropriate and as inline when
397 appropriate. Thus, for example,
398 <ins>hi</ins>
399 should be treated as a paragraph with inline <ins> tags, while
400 <ins>
401 hi
402 </ins>
403 should be treated as a paragraph within <ins> tags.
404 - Moved htmlBlock after para in list of block parsers. This ensures
405 that tags that can be either block or inline get parsed as inline
406 when appropriate.
407 - Modified rawHtmlInline' so that block elements aren't treated as
408 inline.
409 - Modified para parser so that paragraphs containing only HTML tags and
410 blank space are not allowed. Treat these as raw HTML blocks instead.
412 + Fixed bug wherein HTML preceding a code block could cause it to
413 be parsed as a paragraph. The problem is that the HTML parser
414 used to eat all blank space after an HTML block, including the
415 indentation of the code block. (Resolves Issue #39.)
416 - In Text.Pandoc.Readers.HTML, removed parsing of following space
417 from rawHtmlBlock.
418 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
419 indentation is eaten *only* on the first line after the HTML
420 block. This means that in
421 <div>
422 foo
423 <div>
424 the foo won't be treated as a code block, but in
425 <div>
427 foo
429 </div>
430 it will. This seems the right approach for least surprise.
432 * RST reader:
434 + Fixed bug in parsing explicit links (resolves Issue #44).
435 The problem was that we were looking for inlines until a '<' character
436 signaled the start of the URL; so, if you hit a reference-style link,
437 it would keep looking til the end of the document. Fix: change
438 inline => (notFollowedBy (char '`') >> inline). Note that this won't
439 allow code inlines in links, but these aren't allowed in resT anyway.
441 + Cleaned up parsing of reference names in key blocks and links.
442 Allow nonquoted reference links to contain isolated '.', '-', '_', so
443 so that strings like 'a_b_' count as links.
445 + Removed unnecessary check for following link in str.
446 This is unnecessary now that link is above str in the definition of
447 'inline'.
449 * HTML reader:
451 + Modified rawHtmlBlock so it parses </html> and </body> tags.
452 This allows these tags to be handled correctly in Markdown.
453 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
454 since these are handled in parseHtml. (Resolves Issue #38.)
456 + Fixed bug (emph parser was looking for <IT> tag, not <I>).
458 + Don't interpret contents of style tags as markdown.
459 (Resolves Issue #40.)
460 - Added htmlStyle, analagous to htmlScript.
461 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
462 - Moved "script" from the list of tags that can be either block or
463 inline to the list of block tags.
465 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
466 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
467 inline tags would be included in raw HTML blocks.
469 + Modified anyHtmlBlockTag to test for (not inline) rather than
470 directly for block. This allows us to handle e.g. docbook in
471 the markdown reader.
473 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
474 Updated LaTeX reader test to use --parse-raw.
476 * HTML writer:
478 + Modified rules for automatic HTML header identifiers to
479 ensure that identifiers begin with an alphabetic character.
480 The new rules are described in README. (Resolves Issue #33.)
482 + Changed handling of titles in HTML writer so you don't get
483 "titleprefix - " followed by nothing.
485 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
486 spacing. Each block element is wrapped with either Pad or Reg.
487 Pad'ed elements are guaranteed to have a blank line in between.
489 * RST writer:
491 + Refactored RST writer to use a record instead of a tuple for state,
492 and to include options in state so it doesn't need to be passed as
493 a parameter.
495 + Use an interpreted text role to render math in restructuredText.
496 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
497 strategy.
499 [ Recai Oktaş ]
501 * Debian packaging changes:
503 + Remove the empty 'include' directory in -dev package, which lintian
504 complains about.
505 + Bump Standarts-Version to 3.7.3.
506 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
507 lintian.
509 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
511pandoc (0.45) unstable; urgency=low
513 [ John MacFarlane ]
515 * Simplified parsing of reference keys and notes in markdown and RST
516 readers: The Reference data structure from Text.Pandoc.Shared is no
517 longer needed, since referenceKey and noteBlock parses return strings
518 (as many blank lines as were occupied by the key or note) and update
519 state themselves. getPosition and setPosition are now used to ensure
520 that error messages will give the correct line number. This yields
521 cleaner (and slightly faster) code, with more accurate parsing error
522 messages.
524 * Added new Math inline element:
526 + Markdown and LaTeX readers now convert TeX math into Math elements,
527 not TeX.
528 + This allows math to be treated differently from raw TeX in output.
529 TeX elements are no longer printed in output formats other than
530 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
532 * New default handling of math in writers:
534 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
535 parses raw TeX math and outputs a string of Pandoc inlines that
536 tries to render it as far as possible using unicode characters,
537 lapsing into literal TeX when needed.
538 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
539 and Docbook, if no other method for displaying math in HTML is
540 specified. Enclosing $'s are no longer printed by default.
541 + By default, math is put inside <span class="math">. This way it can be
542 distinguished from the surrounding text, e.g. put in a different
543 font.
545 * New --gladtex and --mimetex options for display of math in HTML:
547 + If --gladtex is specified, math is output between <eq> tags, so
548 it can be processed by gladTeX.
549 + If --mimetex is specified, math is put in <img> tags with a link
550 to the mimetex CGI script (or any other script that takes TeX math
551 as input and outputs an image). The URL of the script may be
552 specified, but defaults to /cgi-bin/mimetex.cgi.
553 + HTMLMathMethod structure in WriterOptions keeps track of how to
554 display math in HTML output.
555 + Updated README with a description of the four options for displaying
556 math in HTML.
558 * HTML reader:
560 + Fixed bug: parser for minimized attributes should not swallow
561 trailing spaces.
562 + Simplified HTML attribute parsing.
563 + Changed parsing of code blocks in HTML reader: <code> tag is no
564 longer needed. <pre> suffices. All HTML tags in the code block
565 (e.g. for syntax highlighting) are skipped, because they are not
566 portable to other output formats. A <code>...</code> block not
567 surrounded by <pre> now counts as inline HTML, not a code block.
568 + Remove just one leading and one trailing newline from contents of
569 <pre>...</pre> in codeBlock parser.
571 * Markdown reader:
573 + Removed support for box-style block quotes.
574 + Require space before title in links and references.
575 This fixes a bug in parsing URLs like http://silly/url(withparen).
576 + Improved and simplified setextHeader parser.
577 + Fixed logic in smart quote parsing, adding some needed 'try'
578 statements.
579 + Fixed smart quote parsing so that unicode characters 8216 and 8217
580 are recognized as single quotes, and 8220 and 8221 as double quotes.
582 * RST reader:
584 + Fixed bug in parsing of code blocks. Previously a full tab indent
585 was required, but RST allows code to be indented any amount.
586 Resolves Issue #27.
587 + Allow field lists to be indented.
588 + Parse the contents of field lists instead of treating as a raw string.
589 + Represent field lists as definition lists instead of blockquotes.
590 + Fixed bug in which metadata would be overridden if the document
591 contained multiple field lists.
592 + Parse fields associated with '.. image::' blocks, and use 'alt'
593 field, if given, for image alt and title attributes.
595 * LaTeX reader:
597 + Modified specialChar so that '"' characters are parsed.
598 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
600 * HTML writer:
602 + Changes in handling of math (see above).
603 + Don't produce HTML for table of contents if there are
604 no headers. (This would be an empty list, which is invalid XHTML.)
606 * Markdown writer:
608 + Don't print title attribute if title is empty. (This differs from
609 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
610 Gruber has indicated that he prefers this behavior.) Adjusted test
611 suite accordingly.
612 + Fixed incorrect line wrapping in paragraphs including hard line
613 breaks. Resolves Issue #25.
614 + Fixed bug in markdown writer: If an ordered list item began with
615 a marker greater than 3 characters in width, and the item took more
616 than one line, it would appear on the line after the list marker,
617 e.g.:
619 (12)
620 My list item.
621 Multiline.
623 Now it works as follows:
625 (12) My list item.
626 Multiline.
628 * RST writer
630 + Fixed bug in RST writer's handling of ordered lists. Previously,
631 list items with multiple lines would not always line up with
632 single-line list items. Now, list items are nested the length of
633 the list marker + 1. This looks better and ensures that list items
634 all line up. (Note that list markers are padded to the length of
635 the longest list marker in the series.)
636 + Use 3-space indent for unordered lists.
637 + If label for a link reference contains a colon, surround it by `
638 signs so it won't be interpreted as the end of the link label.
640 * LaTeX writer:
642 + Cleaner output for footnotes. Footnotes now always begin on a new
643 line, and the final } is on a line by itself only when it needs to
644 be (i.e. only when the note ends with a Verbatim environment).
645 + Added writer options to state, so state doesn't need to be passed as
646 a parameter.
647 + Text wrapping now provided, using wrapTeXIfNeeded.
649 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
650 (thanks to Idris Samawi Hamid for suggestions).
652 + PrettyPrint module now used for output.
653 + Writer options are now in state, so they don't have to be passed as
654 a parameter.
655 + Text wrapping now provided, using wrapTeXIfNeeded.
656 + Better treatment of footnotes: footnotes are always on lines by
657 themselves, and the final } is on a line by itself only when
658 it needs to be (after \stoptyping).
659 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
660 depending on whether --number-sections option is selected.
661 + Extra blank line inserted after \stopitemize
662 + Use new, "official" definition of blockquote environment. Also, use
663 blank line after \startblockquote to balance blank line at the end.
664 + Both itemized and enumerated lists are now generated using
665 \start-stopitemize, with appropriate options. Removed definitions
666 of ltxenum and ltxitem, which are no longer needed. Provided
667 defaults for itemized lists in the preamble. State keeps track of
668 ordered list level, so that when default numbering is specified,
669 the appropriate scheme can be used.
670 + Changed \useurl to \useURL.
671 + Changed link color from red to blue.
672 + Use \subsubsubsubsection etc., since these are supported
673 (up to at least sub x 5).
675 * Text.Pandoc.Shared:
677 + Save and restore position in parseFromString, so that accurate
678 error messages can be given.
679 + Improved efficiency of romanNumeral parser.
680 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
681 that footnotes occur on lines by themselves (to make them
682 easier to see and move) and do not screw up line wrapping.
684 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
685 if present. Windows Notepad and other applications insert a
686 BOM at the beginning of a UTF8 file.
688 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
689 addition to "\r\n" and '\n').
691 * Added a writer option for wrapped text and a command-line option
692 '--no-wrap', which disables text wrapping and minimizes whitespace
693 in HTML. (Resolves Issue #26.)
695 + Added support for '--no-wrap' to Main.hs.
696 + Added wrapIfNeeded function to Text.Pandoc.Shared.
697 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
698 Markdown writers.
699 + Added render and renderFragment helpers to HTML writer.
701 * Modified html2markdown to run tidy only if the HTML cannot be
702 parsed. Previously html2markdown piped all input through tidy
703 before passing it to pandoc. This caused problems on certain pages
704 (e.g. http://daringfireball.com/markdown) which have well-formed
705 XHTML that causes tidy to choke. The solution is to pipe through
706 tidy only if pandoc cannot parse the input by itself. This means
707 that a temp file is now always used, even when input comes from a
708 local file or standard input.
710 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
711 Text.Pandoc library.
713 * pandoc.cabal:
715 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
716 6.8, pretty and containers must be added to Build-Depends, and it
717 is desirable to use the -O2 compiler option.) Cabal configurations
718 allows one to select options depending on the compiler version.
719 For GHC 6.6, the splitBase option can be disabled.
720 + pandoc.cabal.ghc66 is provided for users with older versions of
721 Cabal, which do not support configurations.
722 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
723 '--enable-(executable|library)-profiling' is specified. Updated
724 PROFILING instructions accordingly.
726 * Makefile:
728 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
729 is copied to pandoc.cabal, and the old pandoc.cabal is copied
730 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
731 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
732 will work properly with either GHC 6.6 or 6.8.
733 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
734 This is where current versions of Cabal put it.
735 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
736 + Removed dependency of templates on ./templates, which is circular
737 now that templates is a subdirectory of the top-level.
739 * MacPorts Portfile:
741 + Modified to install the pandoc library in addition to programs.
742 + Installation must be done manually rather than using Makefile's
743 install-all.
744 + Note that the library must be registered in the activate phase,
745 after the library files have been copied out of the destroot.
746 Cabal generates a 'register.sh' script that will do this.
748 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
749 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
750 Closes: #445235
752 * debian/rules: Converted to UTF-8.
754 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
756 * Updated ASCIIMathML.js to latest version.
758 * Directory structure:
760 + Moved everything from src into the top-level directory.
761 + Changed references to source directory in Makefile and
762 pandoc.cabal.*.
763 + Moved ASCIIMathML.js, headers, and ui into templates directory.
764 + Modified fillTemplates.pl to reflect new paths.
766 [ Recai Oktaş ]
768 * Makefile: Fixed the issue of having two copies of the library
769 documentation under some usage scenarios.
771 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
772 and GHC_PKG configurable through the environment, to support
773 unusual ghc installations. For example:
774 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
776 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
778pandoc (0.44) unstable; urgency=low
780 [ John MacFarlane ]
782 * Fixed bug in HTML writer: when --toc was used, anchors were put around
783 headers, which is invalid XHTML (block content within inline element).
784 Now the anchors are put inside the header tags. Resolves Issue #23.
786 * Added xmlns attribute to html element in html writer tests.
787 This attribute is added by more recent versions of the
788 xhtml library (>= 3000), and is required for valid XHTML.
790 [ Recai Oktaş ]
792 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
793 command instead of 'runhaskell', which, on some platforms (such as s390,
794 alpha, m68k), throws the following error:
796 runhaskell Setup.hs configure --prefix=/usr
797 ghc-6.6.1: not built for interactive use
799 This causes a serious FTBFS bug. Closes: #440668.
801 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
803pandoc (0.43) unstable; urgency=low
805 [ John MacFarlane ]
807 * The focus of this release is performance. The markdown parser
808 is about five times faster than in 0.42, based on benchmarks
809 with the TextMate manual.
811 * Main.hs: Replaced CRFilter and tabFilter with single function
812 tabFilter, which operates on the whole string rather than breaking
813 it into lines, and handles dos-style line-endings as well as tabs.
815 * Added separate LaTeX reader and native reader tests; removed
816 round-trip tests.
818 * Text.Pandoc.Shared:
820 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
821 + General code cleanup (to elimante warnings when compiling with -Wall.)
822 + Added 'wrapped' function, which helps wrap text into paragraphs,
823 using the prettyprinting library.
824 + Rewrote charsInBalanced and charsInBalanced'.
825 - Documented restriction: open and close must be distinct characters.
826 - Rearranged options for greater efficiency.
827 - Bug fix: Changed inner call to charsInBalanced inside
828 charsInBalanced' to charsInBalanced'.
829 + anyLine now requires that the line end with a newline (not eof).
830 This is a harmless assumption, since we always add newlines to the
831 end of a block before parsing with anyLine, and it yields a 10% speed
832 boost.
833 + Removed unnecessary 'try' in anyLine.
834 + Removed unneeded 'try' from romanNumeral parser.
835 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
836 + Removed unneeded 'try' in parseFromString.
837 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
838 like 'string'.)
839 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
840 'try' is not automatically applied to the 'end' parser. Added
841 'try' in calls to 'enclosed' where needed. Slight speed increase.
843 * Writers:
845 + Replaced individual wrapping routines in RST, Man, and Markdown
846 writers with 'wrapped' from Text.Pandoc.Shared.
847 + Rewrote LaTeX writer to use the prettyprinting library,
848 so we get word wrapping, etc.
849 + Modified latex writer tests for new latex writer using prettyprinter.
850 + Fixed bug in LaTeX writer: autolinks would not cause
851 '\usepackage{url}' to be put in the document header. Also, changes
852 to state in enumerated list items would be overwritten.
853 + In Markdown writer, escape paragraphs that begin with ordered list
854 markers, so they don't get interpreted as ordered lists.
856 * Text.Pandoc.Reades.LaTeX:
858 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
859 numeral after "enum" in "setcounter" would consist entirely of
860 "i"s. 'enumiv' is legitimate.
861 + LaTeX command and environment names can't contain numbers.
862 + Rearranged order of parsers in inline for slight speed improvement.
863 + Added '`' to special characters and 'unescapedChar'.
865 * Text.Pandoc.Readers.RST:
867 + Removed unneeded try's in RST reader; also minor code cleanup.
868 + Removed tabchar.
869 + Rearranged parsers in inline (doubled speed).
871 * Text.Pandoc.Readers.Markdown:
873 + Skip notes parsing if running in strict mode. (This yields a nice
874 speed improvement in strict mode.)
875 + Simplify autolink parsing code, using Network.URI to test for
876 URIs. Added dependency on network library to debian/control and
877 pandoc.cabal.
878 + More perspicuous definition of nonindentSpaces.
879 + Removed unneeded 'try' in 'rawLine'.
880 + Combined linebreak and whitespace into a new whitespace parser, to
881 avoid unnecessary reparsing of space characters.
882 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
883 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
884 + Use lookAhead in parsers for setext headers and definition lists
885 to see if the next line begins appropriately; if not, don't waste
886 any more time parsing.
887 + Don't require blank lines after code block. (It's sufficient to
888 end code block with a nonindented line.)
889 + Changed definition of 'emph': italics with '_' must not
890 be followed by an alphanumeric character. This is to help
891 prevent interpretation of e.g. [LC_TYPE]: my_type as
892 '[LC<em>TYPE]:my</em>type'.
893 + Improved Markdown.pl-compatibility in referenceLink: the two parts
894 of a reference-style link may be separated by one space, but not
895 more... [a] [link], [not] [a link].
896 + Fixed markdown inline code parsing so it better accords with
897 Markdown.pl: the marker for the end of the code section is a clump
898 of the same number of `'s with which the section began, followed
899 by a non-` character. So, for example,
900 ` h ``` i ` -> <code>h ``` i</code>.
901 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
902 rules are slightly different.
903 + Rewrote 'para' for greater efficiency.
904 + Rewrote link parsers for greater efficiency.
905 + Removed redundant 'referenceLink' in definition of inline (it's
906 already in 'link').
907 + Refactored escapeChar so it doesn't need 'try'.
908 + Refactored hrule for performance in Markdown reader.
909 + More intelligent rearranging of 'inline' so that most frequently
910 used parsers are tried first.
911 + Removed tabchar parser, as whitespace handles tabs anyway.
913 * Text.Pandoc.CharacterReferences:
915 + Refactored.
916 + Removed unnecessary 'try's for a speed improvement.
917 + Removed unnecessary '&' and ';' from the entity table.
919 * Build process:
921 + Makefile: Get VERSION from cabal file, not Main.hs.
922 + Modified MacPorts Portfile:
923 - Depend on haddock
924 - Build and install libraries and library documentation in
925 addition to pandoc executable
926 - Added template item for md5 sum in Portfile.in.
927 - Incorporated changes from MacPorts repository (r28278).
928 + FreeBSD port: Don't try to generate distinfo in Makefile.
929 It can be made using 'make makesum' in FreeBSD.
930 + Make both freebsd and macports targets depend on tarball.
932 * Website and documentation:
934 + Updated INSTALL instructions.
935 + Added pandocwiki demo to website.
936 + Removed local references to Portfile, since pandoc is now in the
937 MacPorts repository.
939 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
941pandoc (0.42) unstable; urgency=low
943 [ John MacFarlane ]
945 * Main.hs: Use utf8 conversion on the extra files loaded with
946 the -H, -C, -B, and -A options. This fixes problems with unicode
947 characters in these files.
949 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
950 Text.Pandoc.Readers.HTML and without it we get a linking error when
951 using the library.
953 * Markdown reader:
955 + Added new rule for enhanced markdown ordered lists: if the list
956 marker is a capital letter followed by a period (including a
957 single-letter capital roman numeral), then it must be followed by
958 at least two spaces. The point of this is to avoid accidentally
959 treating people's initials as list markers: a paragraph might begin,
960 "B. Russell was an English philosopher," and this shouldn't be
961 treated as a list. Documented change in README.
962 + Blocks that start with "p. " and a digit are no longer treated
963 as ordered lists (it's a page number).
964 + Added a needed 'try' to listItem.
965 + Removed check for a following setext header in endline.
966 A full test is too inefficient (doubles benchmark time), and the
967 substitute we had before is not 100% accurate.
968 + Don't use Code elements for autolinks if --strict specified.
970 * LaTeX writer: When a footnote ends with a Verbatim environment, the
971 close } of the footnote cannot occur on the same line or an error occurs.
972 Fixed this by adding a newline before the closing } of every footnote.
974 * HTML writer:
975 + Removed incorrect "{}" around style information in HTML tables.
976 Column widths now work properly in HTML.
977 + If --strict option is specified (and --toc is not), don't include
978 identifiers in headers, for better Markdown compatibility.
980 * Build process:
982 + Separated $(web_dest) and website targets.
983 + In website, index.txt is now constructed from template index.txt.in.
984 + Added freebsd target to Markefile. This creates the freebsd Makefile
985 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
986 from the repository.
987 + Added macport target to Makefile. Portfile is built from template
988 Portfile.in.
989 + Removed OSX package targets. (Too many difficulties involving
990 dependencies on dynamic libraries.)
991 + More complete INSTALL instructions for all architectures.
993 * Website:
994 + Added a programming demo, pandocwiki.
996 [ Recai Oktaş ]
998 * Do not forget to close pandoc's ITP. Closes: #391666
1000 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
1002pandoc (0.41) unstable; urgency=low
1004 [ John MacFarlane ]
1006 * Fixed bugs in HTML reader:
1007 + Skip material at end *only if* </html> is present (previously,
1008 only part of the document would be parsed if an error was
1009 found; now a proper error message is given).
1010 + Added new constant eitherBlockOrInline with elements that may
1011 count either as block-level or as inline. Modified isInline and
1012 isBlock to take this into account.
1013 + Modified rawHtmlBlock to accept any tag (even an inline tag):
1014 this is innocuous, because rawHtmlBlock is tried only if a regular
1015 inline element can't be parsed.
1016 + Added a necessary 'try' in definition of 'para'.
1018 * Fixed bug in markdown ordered list parsing. The problem was that
1019 anyOrderedListStart did not check for a space following the
1020 ordered list marker. So in 'A.B. 2007' the parser would be
1021 expecting a list item, but would not find one, causing an error.
1022 Fixed a similar bug in the RST reader. Resolves Issue #22.
1024 * Refactored RST and Markdown readers using parseFromString.
1026 * LaTeX reader will now skip anything after \end{document}.
1028 * Fixed blockquote output in markdown writer: previously, block
1029 quotes in indented contexts would be indented only in the first
1030 line.
1032 * Added note to INSTALL about variations in versions of the xhtml
1033 library that can lead to failed tests (thanks to Leif LeBaron).
1035 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
1037pandoc (0.4) unstable; urgency=low
1039 [ John MacFarlane ]
1041 * Added two new output formats: groff man pages and ConTeXt. By
1042 default, output files with extensions ".ctx" and ".context" are
1043 assumed to be ConTeXt, and output files with single-digit extensions
1044 are assumed to be man pages.
1046 * Enhanced ordered lists (documented in README, under Lists):
1047 + The OrderedList block element now stores information about
1048 list number style, list number delimiter, and starting number.
1049 + The readers parse this information when possible.
1050 + The writers use this information to style ordered lists.
1051 + The enhancement can be disabled using the --strict option.
1053 * Added support for tables (with a new Table block element). Two kinds
1054 of tables are supported: a simple table with one-line rows, and a
1055 more complex variety with multiline rows. All output formats are
1056 supported, but only markdown tables are parsed at the moment. The
1057 syntax is documented in README.
1059 * Added support for definition lists (with a new DefinitionList block
1060 element). All output and input formats are supported. The syntax is
1061 documented in README.
1063 * Added support for superscripts and subscripts (with new Superscript
1064 and Subscript inline elements). All input and output
1065 formats. The syntax is documented in README.
1067 * Added support for strikeout (with a new Strikeout inline element).
1068 All input and output formats are supported. Thanks to Bradley Kuhn,
1069 who contributed a patch. The syntax is documented in README. Resolves
1070 Issue #18.
1072 * Added a --toc|--table-of-contents option. This causes an automatically
1073 generated table of contents (or an instruction that creates one) to
1074 be inserted at the beginning of the document. Not supported in S5,
1075 DocBook, or man page writers.
1077 * Modified the -m|--asciimathml option:
1079 + If an optional URL argument is provided, a link is inserted
1080 instead of the contents of the ASCIIMathML.js script.
1081 + Nothing is inserted unless the document actually contains
1082 LaTeX math.
1084 * Removed Blank block element as unnecessary.
1086 * Removed Key and Note blocks from the Pandoc data structure. All
1087 links are now stored as explicit links, and note contents are
1088 stored with the (inline) notes.
1090 + All link Targets are now explicit (URL, title) pairs; there
1091 is no longer a 'Ref' target.
1092 + Markdown and RST parsers now need to extract data from key and
1093 note blocks and insert them into the relevant inline elements.
1094 Other parsers have been simplified, since there is no longer any need
1095 to construct separate key and note blocks.
1096 + Markdown, RST, and HTML writers need to construct lists of
1097 notes; Markdown and RST writers need to construct lists of link
1098 references (when the --reference-links option is specified); and
1099 the RST writer needs to construct a list of image substitution
1100 references. All writers have been rewritten to use the State monad
1101 when state is required.
1102 + Several functions (generateReference, keyTable,
1103 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
1104 used by them) have been removed from Text.Pandoc.Shared, since
1105 they are no longer needed. New functions and data structures
1106 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
1107 added. The functions inTags, selfClosingTag, inTagsSimple, and
1108 inTagsIndented have been moved to the DocBook writer, since that
1109 is now the only module that uses them. NoteTable is now exported
1110 in Text.Pandoc.Shared.
1111 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
1112 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
1113 + Added writerNotes and writerReferenceLinks to WriterOptions.
1115 * Added Text.Pandoc module that exports basic readers, writers,
1116 definitions, and utility functions. This should export everything
1117 needed for most uses of Pandoc libraries. The haddock documentation
1118 includes a short example program.
1120 * Text.Pandoc.ASCIIMathML is no longer an exported module.
1122 * Added Text.Pandoc.Blocks module to help in printing markdown
1123 and RST tables. This module provides functions for working with
1124 fixed-width blocks of text--e.g., placing them side by side, as
1125 in a table row.
1127 * Refactored to avoid reliance on Haskell's Text.Regex library, which
1128 (a) is slow, and (b) does not properly handle unicode. This fixed
1129 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
1131 + Replaced 'gsub' with a general list function 'substitute'
1132 that does not rely on Text.Regex.
1133 + Rewrote extractTagType in HTML reader so that it doesn't use
1134 regexs.
1135 + In Markdown reader, replaced email regex test with a custom email
1136 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
1137 with a custom function isSelfClosingTag.
1138 + Modified Docbook writer so that it doesn't rely on Text.Regex for
1139 detecting 'mailto' links.
1140 + Removed escapePreservingRegex and reamped entity-handling
1141 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
1142 avoid reliance on Text.Regex (see below on character reference
1143 handling changes).
1145 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
1147 * Changed handling of XML entities. Entities are now parsed (and unicode
1148 characters returned) in the Markdown and HTML readers, rather than being
1149 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
1150 instead of entities for characters above 128. This makes the HTML and
1151 DocBook output much more readable and more easily editable.
1153 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
1154 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
1155 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
1156 Moved both functions to Text.Pandoc.Writers.Docbook.
1157 + Added characterReference parser to Text.Pandoc.CharacterReferences.
1158 This parses a string and return a unicode character.
1159 + Rewrote decodeCharacterReferences to use the new parser instead of
1160 Text.Regex.
1161 + Added new charRef parser for Markdown and HTML, which replaces the
1162 old 'entity' parser. Added '&' as a special character in Markdown reader.
1163 + Modified HTML and Markdown readers to call decodeEntities on all raw
1164 strings (e.g. authors, dates, link titles), to ensure that no
1165 unprocessed entities are included in the native representation of
1166 the document. (In the HTML reader, most of this work is done by a
1167 change in extractAttributeName.)
1168 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
1169 since a unicode non-breaking space is impossible to distinguish visually
1170 from a regular space. (Resolves Issue #3.)
1171 + Removed encodeEntitiesNumerical.
1172 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
1173 slight performance boost over the old association list.
1174 + Removed unneeded decodeEntities from 'str' parser in HTML and
1175 Markdown readers.
1177 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
1178 fromUTF8, for clarity.
1180 * Replaced old haskell98 module names replaced by hierarchical module
1181 names, e.g. List by Data.List. Removed haskell98 from dependencies
1182 in pandoc.cabal, and added mtl (needed for state monad). Substituted
1183 xhtml for html.
1185 * Refactored and cleaned up character escaping in writers, using
1186 backslashEscapes and escapeStringUsing functions.
1188 * Instead of adding "\n\n" to the end of an input string in Main.hs,
1189 this is now done in the readers. This makes the libraries behave
1190 the way you'd expect from the pandoc program. Resolves Issue #10.
1192 * URLs and email addresses in autolinks are now typeset as Code.
1194 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
1195 doesn't display the whole output unless there's a line ending.
1197 * Major code cleanup in all modules, for greater consistency, concision,
1198 and readability.
1200 * HTML reader:
1202 + Fixed several bugs (extractTagType, attribute parsing).
1203 + Remove Null blocks in lists of blocks when possible.
1204 + Allow HTML comments as raw HTML inline.
1206 * Markdown reader:
1208 + Ordered list items may no longer begin with uppercase letters, or
1209 letters greater than 'n'. (This prevents first initials and page
1210 reference, e.g. 'p. 400', from being parsed as beginning lists.)
1211 Also, numbers beginning list items may no longer end with ')',
1212 which is now allowed only after letters. Note: These changes
1213 may cause documents to be parsed differently. Users should take
1214 care in upgrading.
1215 + Changed autoLink parsing to conform better to Markdown.pl's
1216 behavior. <google.com> is not treated as a link, but
1217 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
1218 are.
1219 + Cleaned up handling of embedded quotes in link titles. Now these are
1220 stored as a '"' character, not as '&quot;'.
1221 + Use lookAhead parser for the 'first pass' (looking for reference keys),
1222 instead of parsing normally, then using setInput to reset input. This
1223 yields a slight performance boost.
1224 + Fixed several bugs in smart quote recognition.
1225 + Fixed bug in indentSpaces (which didn't properly handle
1226 cases with mixed spaces and tabs).
1227 + Consolidated 'text', 'special', and 'inline' into 'inline'.
1228 + Fixed bug which allowed URL and title to be separated by multiple blank
1229 lines in links and reference keys. They can be on separate lines but
1230 can't have blank lines between them.
1231 + Correctly handle bracketed text inside inline footnotes and links,using
1232 new function inlinesInBalanced. Resolves Issue #14.
1233 + Fixed bug in footnotes: links in footnotes were not being
1234 processed. Solution: three-stage parse. First, get all the
1235 reference keys and add information to state. Next, get all the
1236 notes and add information to state. (Reference keys may be needed
1237 at this stage.) Finally, parse everything else.
1238 + Replaced named constants like 'emphStart' with literals.
1239 + Removed an extra occurance of escapedChar in definition of inline.
1241 * RST reader:
1243 + Allow the URI in a RST hyperlink target to start on the line
1244 after the reference key.
1245 + Added 'try' in front of 'string', where needed, or used a different
1246 parser. This fixes a bug where ````` would not be correctly parsed as
1247 a verbatim `.
1248 + Fixed slow performance in parsing inline literals in RST reader. The
1249 problem was that ``#`` was seen by 'inline' as a potential link or image.
1250 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
1251 Resolves Issue #8.
1252 + Use lookAhead instead of getInput/setInput in RST reader. Removed
1253 unneeded getState call, since lookAhead automatically saves and
1254 restores the parser state.
1255 + Allow hyperlink target URIs to be split over multiple lines, and
1256 to start on the line after the reference. Resolves Issue #7.
1257 + Fixed handling of autolinks.
1259 * LaTeX reader:
1261 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
1262 for clarity.
1263 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
1264 caret is \^{}, not \^ as before.
1265 + Added parsing for \url.
1266 + Parse \texttt{} as code, provided there's nothing fancy inside.
1268 * HTML writer:
1270 + Modified HTML writer to use the Text.XHtml library. This results
1271 in cleaner, faster code, and it makes it easier to use Pandoc in
1272 other projects, like wikis, which use Text.XHtml. Two functions are
1273 now provided, writeHtml and writeHtmlString: the former outputs an
1274 Html structure, the latter a rendered string. The S5 writer is also
1275 changed, in parallel ways (writeS5, writeS5String).
1276 + The Html header is now written programmatically, so it has been
1277 removed from the 'headers' directory. The S5 header is still
1278 needed, but the doctype and some of the meta declarations have
1279 been removed, since they are written programatically. This change
1280 introduces a new dependency on the xhtml package.
1281 + Fixed two bugs in email obfuscation involving improper escaping
1282 of '&' in the <noscript> section and in --strict mode. Resolves
1283 Issue #9.
1284 + Fixed another bug in email obfuscation: If the text to be obfuscated
1285 contains an entity, this needs to be decoded before obfuscation.
1286 Thanks to thsutton for the patch. Resolves Issue #15.
1287 + Changed the way the backlink is displayed in HTML footnotes.
1288 Instead of appearing on a line by itself, it now generally
1289 appears on the last line of the note. (Exception: when the
1290 note does not end with a Plain or Para block.) This saves space
1291 and looks better.
1292 + Added automatic unique identifiers to headers:
1293 - The identifier is derived from the header via a scheme
1294 documented in README.
1295 - WriterState now includes a list of header identifiers and a table
1296 of contents in addition to notes.
1297 - The function uniqueIdentifiers creates a list of unique identifiers
1298 from a list of inline lists (e.g. headers).
1299 - This list is part of WriterState and gets consumed by blockToHtml
1300 each time a header is encountered.
1301 + Include CSS for .strikethrough class in header only if strikethrough
1302 text appears in the document.
1303 + If the 'strict' option is specified, elements that do not appear in
1304 standard markdown (like definition lists) are passed through as
1305 raw HTML.
1306 + Simplified treatment of autolinks, using pattern matching instead of
1307 conditionals.
1309 * Markdown writer:
1311 + Links in markdown output are now printed as inline links by default,
1312 rather than reference links. A --reference-links option has been added
1313 that forces links to be printed as reference links. Resolves Issue #4.
1314 + Use autolinks when possible. Instead of [site.com](site.com),
1315 use <site.com>.
1317 * LaTeX writer:
1319 + Rewrote to use the State monad. The preamble now includes only those
1320 packages that are actually required, given the document's content.
1321 Thus, for example, if strikeout is not used, ulem is not required.
1322 Modified LaTeXHeader accordingly.
1323 + Modified LaTeX writer to insert '\,' between consecutive quotes.
1324 + Removed unused function tableRowColumnWidths.
1325 + Simplified code for escaping special characters.
1326 + Leave extra blank line after \maketitle.
1327 + Include empty '\author{}' when no author specified to avoid LaTeX
1328 errors.
1329 + Include fancyvrb code in header only if needed -- that is, only
1330 if there is actually code in a footnote.
1331 + Use \url{} for autolinks.
1332 + Include [mathletters] option in ucs package, so that basic unicode
1333 Greek letters will work correctly.
1335 * RST writer: Force blank line before lists, so that sublists will
1336 be handled correctly.
1338 * Docbook writer: Fixed a bug: email links with text, like
1339 [foo](me@bar.baz), were being incorrectly treated as autolinks.
1341 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
1342 Text.Pandoc.Shared.
1344 * Text.Pandoc.Shared:
1346 + Added defaultWriterOptions.
1347 + Added writerTableOfContents to WriterOptions.
1348 + Added writerIgnoreNotes option to WriterOptions. This is needed
1349 for processing header blocks for a table of contents, since notes on
1350 headers should not appear in the TOC.
1351 + Added prettyprinting for native Table format.
1352 + Removed some unneeded imports.
1353 + Moved escape and nullBlock parsers from
1354 Text.ParserCombinators.Pandoc, since the latter is for
1355 general-purpose parsers that don't depend on Text.Pandoc.Definition.
1356 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
1357 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
1358 writer, because HTML writer now uses these in constructing a table
1359 of contents.
1360 + Added clauses for new inline elements (Strikeout, Superscript,
1361 Subscript) to refsMatch.
1362 + Removed backslashEscape; added new functions escapeStringUsing and
1363 backslashEscapes.
1364 + Moved failIfStrict from markdown reader, since it is now used also
1365 by the HTML reader.
1366 + Added a 'try' to the definition of indentSpaces.
1367 + In definition of 'reference', added check to make sure it's not a note
1368 reference.
1369 + Added functions: camelCaseToHyphenated, toRomanNumeral,
1370 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
1371 charsInBalanced', withHorizDisplacement, romanNumeral
1372 + Fixed a bug in the anyLine parser. Previously it would parse an empty
1373 string "", but it should fail on an empty string, or we get an error
1374 when it is used inside "many" combinators.
1375 + Removed followedBy' parser, replacing it with the lookAhead parser from
1376 Parsec.
1377 + Added some needed 'try's before multicharacter parsers, especially in
1378 'option' contexts.
1379 + Removed the 'try' from the 'end' parser in 'enclosed', so that
1380 'enclosed' behaves like 'option', 'manyTill', etc.
1381 + Added lineClump parser, which parses a raw line block up to and
1382 including any following blank lines.
1383 + Renamed parseFromStr to parseFromString.
1384 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
1385 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
1386 in calling code.
1387 + Removed unneeded 'try' in blanklines.
1388 + Removed endsWith function and rewrote calling functions to use
1389 isSuffixOf instead.
1390 + Added >>~ combinator.
1391 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
1392 Space.
1394 * Refactored runtests.pl; added separate tests for tables.
1396 * Shell scripts:
1398 + Added -asxhtml flag to tidy in html2markdown. This will
1399 perhaps help the parser, which expects closing tags.
1400 + Modified markdown2pdf to run pdflatex a second time if --toc or
1401 --table-of-contents was specified; otherwise the table of
1402 contents won't appear.
1403 + Modified markdown2pdf to print a helpful message if the 'ulem'
1404 LaTeX package is required and not found.
1406 * Changes to build process:
1408 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
1409 is now required.
1410 + Removed cabalize and Pandoc.cabal.in. The repository now contains
1411 pandoc.cabal itself.
1412 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
1413 likes the cabal file to have the same name as the tarball.
1414 + Expanded and revised the package description in pandoc.cabal.
1415 Revised the package synopsis.
1416 + The tarball built by 'make tarball' now contains files built from
1417 templates (including man pages and shell scripts), so pandoc can
1418 be built directly using Cabal tools, without preprocessing.
1419 + Executable binaries are now stripped before installing.
1420 + Man pages are now generated from markdown sources, using pandoc's
1421 man page writer.
1422 + Use HTML version of README (instead of RTF) in Mac OS X installer.
1423 + Instead of testing for the existence of a pandoc symlink in build-exec,
1424 use ln -f.
1426 * Documentation:
1428 + Updated README and man pages with information on new features.
1429 + Updated INSTALL instructions with some useful clarifications and
1430 links.
1431 + Updated web content.
1433 * Added FreeBSD port.
1435 [ Recai Oktaş ]
1437 * debian/control:
1439 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
1440 libghc6-xhtml-dev. Removed libghc6-html-dev.
1441 + Suggest texlive-latex-recommended | tetex-extra instead of
1442 tetex-bin. This brings in fancyvrb and unicode support.
1444 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
1446pandoc (0.3) unstable; urgency=low
1448 [ John MacFarlane ]
1450 * Changes in pandoc options:
1452 + Allow options to follow or precede arguments.
1453 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
1454 + Added '--strict' option.
1455 + Added '-o/--output' option.
1456 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
1457 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
1458 error conditions. This is helpful for writing wrappers.
1459 + Added copyright message to '-v' output, modeled after FSF messages.
1460 + Reformatted usage message so that it doesn't wrap illegibly.
1461 + Removed extra blanks after '-h' and '-D' output.
1463 * Added docbook writer.
1465 * Added implicit setting of default input and output format based
1466 on input and output filename extensions. These defaults are
1467 overridden if explicit input and output formats are specified using
1468 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
1469 and README.
1471 * Allow ordered list items to begin with (single) letters, as well
1472 as numbers. The list item marker may now be terminated either by
1473 '.' or by ')'. This extension to standard markdown is documented
1474 in README.
1476 * Revised footnote syntax. (See README for full details.) The
1477 '[^1]' format now standard in markdown extensions is supported,
1478 as are inline footnotes with this syntax: '^[My note.]'.
1479 The earlier footnote syntax '^(1)' is no longer supported.
1481 * Improved HTML representation of footnotes. All footnotes
1482 are now auto-numbered and appear in an ordered list at the
1483 end of the HTML document. Since the default appearance is now
1484 acceptable, the old footnote styles have been removed from the
1485 HTML header.
1487 * Bug fixes:
1489 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
1490 These readers ran 'runParser' on processed chunks of text to handle
1491 embedded block lists in lists and quotation blocks. But then
1492 any changes made to the parser state in these chunks was lost,
1493 as the state is local to the parser. So, for example, footnotes
1494 didn't work in quotes or list items. The fix: instead of calling
1495 runParser on some raw text, use setInput to make it the input, then
1496 parse it, then use setInput to restore the input to what it was
1497 before. This is shorter and more elegant, and it fixes the problem.
1498 + Fixed bug in notFollowedBy' combinator (adding 'try' before
1499 'parser'). Adjusted code that uses this combinator accordingly.
1500 + Fixed bug in RTF writer that caused improper indentation on
1501 footnotes occurring in indented blocks like lists.
1502 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
1503 and date are parsed correctly. Everything else in the preamble
1504 is skipped.
1505 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
1506 line to count as escaped whitespace.
1507 + Modified LaTeX reader to produce inline links rather than reference
1508 links. Otherwise, links in footnotes aren't handled properly.
1509 + Fixed handling of titles in links in Markdown reader, so that
1510 embedded quotation marks are now handled properly.
1511 + Fixed Markdown reader's handling of embedded brackets in links.
1512 + Fixed Markdown reader so that it only parses bracketed material
1513 as a reference link if there is actually a corresponding key.
1514 + Revised inline code parsing in Markdown reader to conform to
1515 markdown standard. Now any number of `s can begin inline code,
1516 which will end with the same number of `s. For example, to
1517 have two backticks as code, write ``` `` ```. Modified Markdown
1518 writer accordingly.
1519 + Fixed bug in text-wrapping routine in Markdown and RST writers.
1520 Now LineBreaks no longer cause wrapping problems.
1521 + Supported hexadecimal numerical entity references as well as
1522 decimal ones.
1523 + Fixed bug in Markdown reader's handling of underscores and other
1524 inline formatting markers inside reference labels: for example,
1525 in '[A_B]: /url/a_b', the material between underscores was being
1526 parsed as emphasized inlines.
1527 + Changed Markdown reader's handling of backslash escapes so that
1528 only non-alphanumeric characters can be escaped. Strict mode
1529 follows Markdown.pl in only allowing a select group of punctuation
1530 characters to be escaped.
1531 + Modified HTML reader to skip a newline following a <br> tag.
1532 Otherwise the newline will be treated as a space at the beginning
1533 of the next line.
1535 * Made handling of code blocks more consistent. Previously, some
1536 readers allowed trailing newlines, while others stripped them.
1537 Now, all readers strip trailing newlines in code blocks. Writers
1538 insert a newline at the end of code blocks as needed.
1540 * Modified readers to make spacing at the end of output more consistent.
1542 * Minor improvements to LaTeX reader:
1544 + '\thanks' now treated like a footnote.
1545 + Simplified parsing of LaTeX command arguments and options.
1546 commandArgs now returns a list of arguments OR options (in
1547 whatever order they appear). The brackets are included, and
1548 a new stripFirstAndLast function is provided to strip them off
1549 when needed. This fixes a problem in dealing with \newcommand
1550 and \newenvironment.
1552 * Revised RTF writer:
1554 + Default font is now Helvetica.
1555 + An '\f0' is added to each '\pard', so that font resizing works
1556 correctly.
1558 * Moved handling of "smart typography" from the writers to the Markdown
1559 and LaTeX readers. This allows great simplification of the writers
1560 and more accurate smart quotes, dashes, and ellipses. DocBook can
1561 now use '<quote>'. The '--smart' option now toggles an option in
1562 the parser state rather than a writer option. Several new kinds
1563 of inline elements have been added: Quoted, Ellipses, Apostrophe,
1564 EmDash, EnDash.
1566 * Changes in HTML writer:
1568 + Include title block in header even when title is null.
1569 + Made javascript obfuscation of emails even more obfuscatory,
1570 by combining it with entity obfuscation.
1572 * Changed default ASCIIMathML text color to black.
1574 * Test suite:
1576 + Added --strip-trailing-cr option to diff in runtests.pl, for
1577 compatibility with Windows.
1578 + Added regression tests with footnotes in quote blocks and lists.
1580 * Makefile changes:
1582 + osx-pkg target creates a Mac OS X package (directory). New osx
1583 directory contains files needed for construction of the package.
1584 + osx-dmg target creates a compressed disk image containing the package.
1585 + win-pkg target creates Windows binary package.
1586 + tarball target creates distribution source tarball.
1587 + website target generates pandoc's website automatically, including
1588 demos. New 'web' directory containts files needed for construction
1589 of the website (which will be created as the 'pandoc' subdirectory
1590 of 'web').
1591 + Makefile checks to see if we're running Windows/Cygwin; if so,
1592 a '.exe' extension is added to each executable in EXECS.
1594 * Removed all wrappers except markdown2pdf and html2markdown.
1596 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
1597 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
1598 option and disables other options.
1600 * Added code to html2markdown that tries to determine the character
1601 encoding of an HTML file, by parsing the "Content-type" meta tag.
1603 + If the encoding can't be determined, then if the content is local,
1604 the local encoding is used; if it comes from a URL, UTF-8 is used
1605 by default.
1606 + If input is from STDIN, don't try to determine character encoding.
1607 + Encoding can be specified explicitly using '-e' option.
1609 * Improved warning messages in wrappers:
1611 + Print warning if iconv not available
1612 + More user-friendly error messages in markdown2pdf, when
1613 pdflatex fails.
1615 * Code cleanup:
1617 + Renamed 'Text/Pandoc/HtmlEntities' module to
1618 'Text/Pandoc/Entities'. Also changed function names so as
1619 not to be HTML-specific.
1620 + Refactored SGML string escaping functions from HTML and Docbook
1621 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
1622 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
1623 used anywhere.
1624 + Removed splitBySpace and replaced it with a general, polymorphic
1625 splitBy function.
1626 + Refactored LaTeX reader for clarity (added isArg function).
1627 + Converted some CR's to LF's in src/ui/default/print.css.
1628 + Added license text to top of source files.
1629 + Added module data for haddock to source files.
1630 + Reformatted code for consistency.
1632 * Rewrote documentation and man pages. Split README into INSTALL
1633 and README.
1635 * Split LICENSE into COPYING and COPYRIGHT.
1637 * Removed TODO, since we now maintain ToDo on the wiki.
1639 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
1640 duplication.
1642 [ Recai Oktaş ]
1644 * Revamped build process to conform to debian standards and created
1645 a proper debian package. Closes: #391666.
1647 * Modified build process to support GHC 6.6.
1649 + The package can still be compiled using GHC 6.4.2, though because
1650 of dependencies the "make deb" target works only with GHC 6.6+.
1651 + The script 'cabalize' is used to create an appropriate
1652 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
1653 Cabal versions.
1655 * Refactored template processing (fillTemplates.pl).
1657 * Modified wrapper scripts to make them more robust and portable.
1658 To avoid code duplication and ensure consistency, wrappers are
1659 generated via a templating system from templates in src/wrappers.
1661 + Wrappers now accept multiple filenames, when appropriate.
1662 + Spaces and tabs allowed in filenames.
1663 + getopts shell builtin is used for portable option parsing.
1664 + Improved html2markdown's web grabber code, making it more robust,
1665 configurable and verbose. Added '-e', '-g' options.
1667 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
1669pandoc (0.2) unstable; urgency=low
1671 * Fixed unicode/utf-8 translation
1673 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
1675pandoc (0.1) unstable; urgency=low
1677 * Initial creation of debian package
1679 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400