git.iko.soy/typeable/pandoc
on 1.3 help sign in
typeable/pandoc/changelog
2088 lines 92 kB history raw
1pandoc (1.3)
3 [ John MacFarlane ]
5 * Added --id-prefix option (Issue #41). This adds a prefix to all
6 automatically generated HTML identifiers, which helps prevent
7 duplicate identifiers when you're generating a fragment (say a blog
8 post).
10 * Added --indented-code-classes option. This specifies classes
11 to use for indented code blocks. (Patch due to buttock; Issue #87.)
13 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
14 (Issue #150).
16 * Improved syntax for markdown definition lists (Issue #24).
17 Definition lists are now more compatible with PHP Markdown Extra.
18 + You can have multiple definitions for a term (but still not
19 multiple terms).
20 + Multi-block definitions no longer need a column before each block
21 (indeed, this will now cause multiple definitions).
22 + The marker no longer needs to be flush with the left margin,
23 but can be indented at or two spaces. Also, ~ as well as :
24 can be used as the marker (this suggestion due to David
25 Wheeler.)
26 + There can now be a blank line between the term and the
27 definitions.
29 * Better looking simple tables. Resolves Issue #180.
30 + Markdown reader: simple tables are now given column widths of 0.
31 + Column width of 0 is interpreted as meaning: use default column width.
32 + Writers now include explicit column width information only
33 for multiline tables. (Exception: RTF writer, which requires
34 column widths. In this case, columns are given equal widths,
35 adding up to the text width.)
36 + Simple tables should now look better in most output formats.
38 * Allow markdown tables without headers (Issue #50).
39 The new syntax is described in README. Also allow optional line of
40 dashes at bottom of simple tables.
42 * Compensate for width of final table column (Issue #144).
44 * Treat a backslash followed by a newline as a hard line break
45 in markdown. Resolves Issue #154. This is a nice alternative
46 to markdown's "invisible" way of indicating hardline breaks
47 using lines that end with two spaces.
49 * Improved performance of markdown reader by ~10% by eliminating the
50 need for a separate parsing pass for notes. Raw notes are now stored
51 on the first pass (which parses references), then parsed when the
52 note is inserted into the AST. The stateNotes field in ParserState
53 is now a list of [(String, String)] pairs instead of [(String,
54 [Block])].
56 * In markdown reader, treat 4 or more * or _ in a row as literal
57 text. (Trying to parse long strings of * or _ as strong or emph
58 leads to exponential performance problems.)
60 * Markdown reader: Use + rather than %20 for spaces in URLs.
62 * Fixed htmlComment parser, adding a needed 'try'.
64 * Don't print raw HTML in man output.
66 * Allow . _ and ~ in header identifiers.
68 * Specially mark code blocks that were "literate" in the input.
69 They can then be treated differently in the writers. This allows
70 authors to distinguish bits of the literate program they are writing
71 from source code examples, even if the examples are marked as
72 Haskell for highlighting. (Issue #174.)
74 * Modified html+lhs output to use "haskell" highlighter instead
75 of "literateHaskell". The highlighting module now adds bird tracks
76 after highlighting (for HTML output), if the code block has the
77 "literate" class. This gives better results, because kate's
78 haskell highlighter is much better than the literateHaskell
79 highlighter.
81 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
82 (Issue #137.)
84 * Support for "..code-block" directive in RST reader. Not core
85 RST, but used in Sphinx for code blocks annotated with syntax
86 information. Thanks to Luke Plant for the patch.
88 * Added "head" to list of block-level HTML tags. Resolves
89 Issue #108.
91 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
93 * Set utf-8 encoding in texinfo headers.
95 * Docbook writer: add ids to sections. Use link for internal links.
96 (Issue #60.)
98 * Blank lines after lists in MediaWiki writer.
100 * Properly handle commented-out list items in markdown.
101 Resolves Issue #142. Example:
103 - a
104 <!--
105 - b
106 -->
107 - c
109 * Changed heuristic in compactify. compactify has to decide whether a
110 Para that ends a list is a Para intentionally, or just because of
111 the blank lines at the end of every list. In the latter case the
112 Para is turned to a Plain. The old heuristic was: change final Para
113 to Plain iff the other items all end in Plain. This produces bad
114 results when, for example, an item contains just a Plain and an HTML
115 comment, as it does in the list above. The new heuristic: change
116 final Para to Plain iff the other items don't contain a Para.
118 * Added % as an rst underline character. Resolves Issue #173.
120 * Fix inline math parser so that \$ is allowed in math.
121 Resolves Issue #169.
123 * Translate \int (integral) into unicode when using unicode math
124 method. Resolves Issue #177.
126 * markdown2pdf.hs improvements:
127 + Use System.IO.UTF8.
128 + Print error messages on last attempt.
129 + Do not create a backup when overwriting a PDF (Issue #166).
130 + Accept --longopt=val options.
131 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
132 it is properly cleaned.
134 * Added haddock comments warning that readers assume \n line endings.
136 * Updated COPYRIGHT file.
138 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
139 markdown2pdf. Otherwise strip tries to strip shell scripts when you
140 install using 'make'.
142 * Changed Makefile so it doesn't build Haskell wrappers.
144 * Fixed Makefile so it doesn't try to build man pages in build-doc.
146 * Install pcre3.dll in Windows install script; this allows us to
147 package a version of pandoc with highlighting support.
149pandoc (1.2.1)
151 [ John MacFarlane ]
153 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
154 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
155 side effect: strings of 0 spaces were interpreted as indentation.
156 So, with --preserve-tabs, unindented paragraphs were treated as
157 code. Resolves Issue #138.
159 * HTML writer: wrap sections in divs. Resolves Issue #70.
161 + hierarchicalize has been rationalized; it builds a hierarchical
162 representation of the document from the headers, and simultaneously
163 gives each section a unique identifier based on the heading title.
164 + Identifiers are now attached to the divs rather than
165 to the headers themselves.
166 + Table of content backlinks go to the beginning of the table, rather
167 than to the section reference that was clicked.
168 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
169 from the HTML writer, since it is now consumed only by
170 hierarchicalize.
171 + In --strict mode, pandoc just prints bare headings, as before
172 (unless --toc has been specified).
173 + In s5 output, it does not wrap sections in divs, as that seems to
174 confuse the s5 javascript.
176 * Man writer: break lines at end of each sentence. groff expects this
177 and treats '.' and '?' differently when followed by line ending as
178 opposed to ordinary space. Also, don't escape periods. Instead, use
179 zero-width character \& to avoid unwanted interpretation of periods
180 at start of line. Resolves Issue #148.
182 * Markdown writer: Added '#' and '>' to list of characters to be
183 escaped in markdown output. Removed '<', as it is not an officially
184 escapable character. This partially resolves Issue #96.
186 * Make --smart the default for man output format. Otherwise we have
187 trouble dividing lists of endlines into sentences.
189 * DocBook writer: Use language attribute to indicate source language
190 in code blocks.
192 * RST reader:
194 + Allow # to continue list, even if the list was started with an
195 explicit marker. For example:
197 A. my list
198 #. continued
200 Resolves Issue #140.
201 + Allow continuation lines in line blocks. Also added test cases for
202 line blocks for RST reader. Resolves Issue #149.
203 + Allow explicit links with spaces in URL: `link <to this>`_
205 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
206 (which is not in LaTeX) and recognize all the amsmath environments
207 that are alternatives to eqnarray, namely equation, equation*,
208 gather, gather*, gathered, multline, multline*, align, align*,
209 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
210 Thanks to shreevatsa.public for the patch.
212 * Markdown reader:
214 + Allow -, _, :, . in markdown attribute names. These are legal in
215 XML attribute names.
216 + Use non-breaking spaces in abbreviations.
217 + Markdown reader: improved efficiency of abbreviation parsing.
218 Instead of a separate abbrev parser, we just check for
219 abbreviations each time we parse a string. This gives a huge
220 performance boost with -S. Resolves Issue #141.
222 * Improved efficiency of shared parsers: hexNum, htmlComment,
223 whitespace, indentSpaces.
225 * Export HTMLMathMethod in Text.Pandoc.
227 * Export languagesByExtension in Text.Pandoc.Highlighting.
229 * Added new Haskell version of markdown2pdf, due to
230 Paulo Tanimoto. This should be more portable than the old
231 shell script.
233 * Made 'pandoc -v' more explicit about compiler options.
234 Resolves Issue #139.
236 * pandoc.hs: Made --strict compatible with --standalone, --toc.
238 * Use Paths_pandoc to get version number, instead of hard-coding it
239 into Text/Pandoc.hs.
241pandoc (1.2)
243 [ John MacFarlane ]
245 * Added support for literate Haskell. lhs support is triggered by
246 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
247 Haskell LaTeX. '.lhs' files are treated by default as literate
248 markdown.
250 + Added stateLiterateHaskell to parser state.
251 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
252 + Added parser for |inline lhs| to LaTeX reader.
253 + Added writerLiterateHaskell to WriterOptions.
254 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
255 + Added definition of code environment to LaTeX header.
256 + Added tests (run only if highlighting support compiled in).
257 + Documented lhs features in man page and README.
259 * In Text.Pandoc.Definition, added processWith, processWithM,
260 and queryWith, and deprecated processPandoc and queryPandoc
261 for these more general functions.
263 * Fixed bug in mediawiki writer: improper closing tags in tables.
264 Thanks to Benct Philip Jonsson for reporting the bug.
266 * Added --email-obfuscation option.
268 + Added writer option for email obfuscation.
269 + Implemented email obfuscation options in HTML writer.
270 + Added option to option parser.
271 + Documented in README and pandoc man page.
272 + Resolves Issue #97.
274 * LaTeX writer: fixed bug with empty table cells.
275 Resolves Issue #107. Thanks to rodja.trappe for the patch.
277 * Fixed bug with header spacing in Markdown and RST writers.
278 A null header (Meta [] [] []) should not cause a blank line
279 at the beginning of output. But a blank line is needed between
280 a non-null header and the main text.
282 * Markdown reader: Relax spacing rules for $$ in display math. Now
283 space and newlines are allowed after the opening $$ and before the
284 closing $$. However, the display math cannot contain an entirely
285 blank line. Resolves Issue #105.
287 * Markdown reader: Gobble space after Plain blocks containing only
288 raw html inline. Otherwise following header blocks are not parsed
289 correctly, since the parser sees blank space before them. Resolves
290 Issue #124.
292 * Markdown reader: Allow " as well as '' to end a latex double-quote.
294 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
295 Resolves Issue #109.
297 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
299 + Added hang' function to Text.Pandoc.Shared; this will be used instead
300 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
301 is upgraded, we can go back to hang.
302 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
303 + Use hang' (and some different techniques) in RST and markdown writers.
304 Some output is now a bit different.
306 * Brought citeproc support up to date for citeproc-hs-0.2.
307 (Patch by Andrea Rossato.)
309 * Moved all haskell source to src subdirectory. Renamed Main.hs to
310 pandoc.hs.
312 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
313 For now, keeping the old shell script too.
315 * Added TemplateHaskell to Extensions for executable, removed
316 -threaded for library. Thanks to duncan.coutts for the bug report.
317 Resolves Issue #121.
319 * Moved some Extra-Source-Files to Data-Files.
321 * Moved tabFilter to Shared.
323 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
324 preserve tabs.
326 * Minor code cleanup based on hlint suggestions.
328pandoc (1.1)
330 [ John MacFarlane ]
332 * Main.hs:
334 + Changed date on copyright message in Main.hs.
335 + Have the '-v' option print syntax highlighting languages
336 separated by commas, and wrapped in lines, instead of in five
337 columns as before.
339 * Added --jsmath option. Resolves Issue #68.
341 + Added --jsmath option to Main.hs
342 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
343 + Handle math appropriately in HTML writer when JsMath selected.
344 + Documented the option in README and man page.
346 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
347 for tight and loose lists. Final Para is changed to Plain if all
348 other list items *end* with a Plain block. Addresses Issue #99.
350 * HTML reader:
352 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
353 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
354 Added rawVerbatimBlock parser. Resolves Issue #94.
356 * Markdown reader:
358 + Allow URLs with spaces in them in links and references, but escape
359 them as "%20".
360 + Allow blank space at the end of horizontal rules.
362 * RST reader: Modified 'unknownDirective' parser to handle comment
363 blocks correctly, and added tests for comment blocks. Resolves Issue
364 #86. Closes Debian Bug #500662.
366 * HTML writer:
368 + Include classes on tr elements in HTML output:
369 "header", "odd", "even". This allows tables to be styled with
370 lines in alternating colors. Resolves Issue #91.
371 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
372 This prevents parts of the document that are not math from being
373 interpreted as math by LaTeXMathML.js.
375 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
376 which were formerly ignored. Resolves Issue #95.
378 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
379 between a footnote and immediately following nonspace characters in
380 LaTeX and ConTeXt output. (This gets interpreted as a space, which
381 is not desired in cases like "text^[note]---".) Resolves Issue #93.
383 * Windows installer: Don't require admin privileges to run
384 installer. Modified pandoc-setup.iss, and changed modpath.iss to
385 modify HKCU path if user lacks admin privileges. Also fixed case
386 where oldpath is empty (previously this led to the new path
387 beginning with a semicolon).
389 * Updated INSTALL instructions for Arch packages and OS X install using
390 cabal-install.
392 * Removed the (now unneeded) debian directory.
393 Removed empty Codec and System directories.
395 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
397 * Modified Setup.hs so that the "test" target returns an error status
398 when tests fail, and "build" returns a success status if
399 the build succeeds. Resolves Issue #100.
401 * Added BUGS to files in tarball.
404pandoc (1.0.0.1)
406 [ John MacFarlane ]
408 * Removed spurious reference to pdf output format from pandoc(1) man page.
410pandoc (1.0)
412 [ Andrea Rossato ]
414 * Added new OpenDocument writer.
416 * Added support for SmallCaps inline element.
418 * Added support for integrating pandoc with citeproc-hs.
420 + Added Cite element to definition and writers.
421 + Added Text.Pandoc.Biblio module
422 + Note: This support is included only if the 'citeproc'
423 Cabal configuration flag is set.
425 * Made Pandoc data structure an instance of Typeable.
426 Added new processPandoc and queryPandoc functions, to query
427 or transform matching elements in a Pandoc structure.
429 [ Peter Wang ]
431 * Added new Texinfo writer.
433 [ John MacFarlane ]
435 * Changes to Texinfo writer:
437 + No space between paragraph and following @verbatim (provides more
438 pleasing appearance in text formats)
439 + Blank line consistently after list environments.
440 + Removed deVerb.
441 + Use @code instead of @verb for inline code (this solves the character
442 escaping problem for texi2dvi and texi2pdf).
443 + Added news of Texinfo writer to README.
444 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
445 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
446 default output extension.
447 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
449 * Added tests for OpenDocument writer.
451 * Added ODT writer (using zip-archive library to package output of
452 OpenDocument writer). Added odt-styles directory with default ODT styles.
454 * Added new mediawiki writer and tests.
456 * Markdown reader: Added support for delimited code blocks, with optional
457 syntax highlighting using highlighting-kate (if the 'highlighting'
458 configuration option is selected).
460 + Currently highlighting is supported only in the HTML writer.
461 + Delimited code blocks can have attributes; using the language name as
462 class triggers highlighting.
463 + New Attributes parameter in CodeBlock structure.
464 + --version now indicates whether syntax highlighting support is compiled
465 in, and prints a list of supported languages
467 * Removed debian directory. Pandoc is no longer a native debian package.
469 * Changes to build process: pandoc can now be built from the repository
470 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
471 without Cygwin).
473 + Include shell scripts themselves in repo, rather than generating from wrappers.
474 Removed wrappers directory and wrappers Makefile target.
475 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
476 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
477 from templates in the templates/ directory. Instead, they use template
478 haskell to read data at compile time from the relevant files in data/.
479 Template haskell functions go in a new module, Text.Pandoc.TH.
480 + man pages are now generated in Setup.hs hook, not by Makefile
481 + Makefile 'tarball' target now calls Cabal's 'sdist'
482 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
483 + Added "Build-Type" field to pandoc.cabal to avoid warning.
484 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
485 so 'sdist' and 'clean' will work properly.
486 + Setup.hs now generates man pages in a postbuild hook.
487 + Added dependency-checking to Setup.hs, so it only rebuilds things
488 that need rebuilding.
489 + Added 'library' and 'executable' configuration flags.
490 Cabal can now be told to build just the library or just the executable.
491 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
492 For example: CABALOPTS=-fhighlighting make
494 * Rewrote test suite so it doesn't depend on perl or unix tools.
496 + Replaced old runtests.pl with a Haskell script RunTests.hs.
497 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
498 + Added test hook to Setup.hs, so tests may be run from cabal.
499 + Changed Makefile's 'test' target to run tests via cabal.
500 + Removed old generate.sh.
501 + Since we no longer have 'sed' to filter out raw HTML sections
502 from the docbook writer test, or raw LaTeX sections from the
503 context writer test, we now just include these sections.
504 They can be taken out if it is necessary to process the files.
505 + Updated latex and context writer tests to remove extra spaces
506 after '\\item'
507 + Added a markdown table reader test.
508 + Added markdown-reader-more.txt to test suite, for additional test cases
509 for raw ConTeXt environments and more.
511 * Compatibility fixes for CPP, Cabal, and haddock:
513 + Use CPP in "Extensions" field in pandoc.cabal.
514 + Removed use of backslash string continuations in source files.
516 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
517 base >= 3.
519 * Require parsec < 3.
520 The compatibility module in parsec 3.0.0 gives far worse performance than
521 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
522 version of parsec, and then we'll go to parsec 3.0.0.
524 * Removed Text.Regex dependencies by rewriting using plain Haskell
525 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
527 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
529 * Makefile:
531 + Added 'configure' as dependency of 'uninstall-all'.
532 (It uses the Cabal build program.)
533 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
534 Note that Cabal will automatically choose the ghc-pkg appropriate
535 for the compiler selected, so normally specifying GHC by itself
536 is sufficient.
538 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
539 its IO and conversion functions.
541 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
542 everything is -Wall clean.
544 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
545 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
546 (These are caused by the Lift instance for ByteString.)
548 * Changed the comment used to replace unsafe HTML if sanitize-html option
549 selected.
551 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
553 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
555 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
556 "nbsp" isn't a predefined XML entity.
558 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
559 Added some try's in ordered list parsers.
561 * Man writer: don't escape " as \".
563 * Allow newline before URL in markdown link references. Resolves Issue #81.
564 Added tests for this issue in new "markdown-reader-more" tests.
565 Changed RunTests.hs to run these tests.
567 * Support for display math. Resolves Issue #47.
569 + Added a DisplayMath/InlineMath selector to Math inlines.
570 + Markdown parser yields DisplayMath for $$...$$.
571 + LaTeX parser yields DisplayMath when appropriate. Removed
572 mathBlock parsers, since the same effect is achieved by the math
573 inline parsers, now that they handle display math.
574 + Writers handle DisplayMath as appropriate for the format.
575 + Modified tests accordingly; added new tests for display math.
577 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
578 to LaTeX in its display of math, and supports many non-math LaTeX environments.
580 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
581 + Modified HTML writer to print raw TeX when LaTeXMathML is
582 being used instead of suppressing it.
583 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
584 + Replaced ASCIIMathML with LaTeXMathML in source files.
585 + Modified README and pandoc man page source.
586 + Added --latexmathml option (kept --asciimathml as a synonym
587 for backwards compatibility)
589 * Markdown reader: Parse setext headers before atx headers.
590 Test case:
591 # hi
592 ====
593 parsed by Markdown.pl as an H1 header with contents "# hi".
595 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
596 The marker on the first list item determines the type of the whole
597 list. Thus, a list like
598 1. one
599 - two
600 * three
601 gets parsed as a single ordered list. (Previous versions of pandoc
602 treated this as an ordered list with an unordered sublist.)
604 * Markdown smart typography:
606 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
607 + Use nonbreaking spaces after known abbreviations in markdown parser.
608 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
609 not produce a sentence-separating space. Resolves Issue #75.
611 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
613 * Treat '\ ' in (extended) markdown as nonbreaking space.
614 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
616 * The '--sanitize-html' option now examines URIs in markdown links
617 and images, and in HTML href and src attributes. If the URI scheme
618 is not on a whitelist of safe schemes, it is rejected. The main point
619 is to prevent cross-site scripting attacks using 'javascript:' URIs.
620 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
621 and http://ha.ckers.org/xss.html. Resolves Issue #62.
623 * HTML writer:
625 + Override Text.XHtml's stringToHtml function,
626 so that characters below 0xff are not converted to numerical entity
627 references. Also convert '\160' to "&nbsp;". This should aid readability
628 and editability of the HTML source. It does presuppose that the HTML
629 will be served as UTF-8.
630 + In code blocks, change leading newlines to <br /> tags.
631 (Some browsers ignore them.) Resolves Issue #71.
632 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
633 + Use style attributes rather than css classes for strikethrough
634 and ordered list styles. This works better when fragments, rather than
635 standalone documents, are generated.
637 * HTML reader: Count anything that isn't a known block (HTML) tag as an
638 inline tag (rather than the other way around). Added "html", "head", and
639 "body" to list of block tags. Resolves Issue #66, allowing
640 <lj> to count as an inline tag.
642 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
643 boldface, and other inline elements. Resolves Issue #64.
645 * LaTeX reader: improvements in raw LaTeX parsing.
647 + "loose punctuation" (like {}) parsed as Space
648 + Para elements must contain more than Str "" and Space elements
649 + Added parser for "\ignore" command used in literate haskell.
650 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
651 mode, these parsers simply strip off the command part and allow
652 the arguments to be parsed normally. So, for example,
653 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
654 Str "{\\emph{hi}}".
655 + Parse lhs "code" environments as verbatim.
656 Refactored parsers for verbatim environments.
657 + Removed specialEnvironment parser.
658 + parse '{}', if present, after \textless, \textgreater,
659 \textbar, \textbackslash, \ldots.
660 + Parse unescaped special characters verbatim rather than
661 changing them to spaces. This way arguments of unknown
662 commands will appear in braces.
664 * Parse raw ConTeXt environments as TeX in markdown reader.
665 Resolves Issue #73.
667 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
669 * Made some structural changes to parsing of raw LaTeX environments.
670 Previously there was a special block parser for LaTeX environments.
671 It returned a Para element containing the raw TeX inline. This has
672 been removed, and the raw LaTeX environment parser is now used in the
673 rawLaTeXInline parser. The effect is exactly the same, except that we
674 can now handle consecutive LaTeX and ConTeXt environments not separated
675 by spaces. This new flexibility is required by the example in
676 Issue #73:
678 \placeformula \startformula
679 L_{1} = L_{2}
680 \stopformula
682 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
683 returns a string) rather than rawLaTeXEnvironment (which returns a block
684 element). This is more likely to be useful in other applications.
686 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
687 \textsubscript conflicts with a definition in the memoir class.
688 Resolves Issue #65.
690 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
692 * Added amsmath package to default LaTeX header. Resolves Issue #48.
694 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
695 list introduction lines.
697 * Changed Float to Double in definition of Table element.
698 (Double is more efficient in GHC.)
700 * Fixed bug in Markdown parser: regular $s triggering math mode.
701 For example: "shoes ($20) and socks ($5)."
702 The fix consists in two new restrictions:
704 + the $ that ends a math span may not be directly followed by a digit.
705 + no blank lines may be included within a math span.
707 Thanks to Joseph Reagle for noticing the bug.
709 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
710 Removed 'joinWithSep' from Text.Pandoc.Shared.
712 * Updated README and man pages. Acknowledge contributors in README.
713 Added paragraph to README about producing S5 with separate CSS/javascript.
715 * Updated INSTALL to reflect new build system (including configuration
716 options) and document new dependencies. Added note to INSTALL that
717 Cabal >= 1.2 is required for build. Resolves Issue #74.
719 * Fixed some haddock documentation errors.
721 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
723pandoc (0.46) unstable; urgency=low
725 [ John MacFarlane ]
727 * Made -H, -A, and -B options cumulative: if they are specified
728 multiple times, multiple files will be included.
730 * Added optional HTML sanitization using a whitelist.
731 When this option is specified (--sanitize-html on the command line),
732 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
733 attributes will be removed. This option should be especially useful
734 for those who want to use pandoc libraries in web applications, where
735 users will provide the input.
737 + Main.hs: Added --sanitize-html option.
739 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
741 + Text.Pandoc.Readers.HTML:
742 - Added whitelists of sanitaryTags and sanitaryAttributes.
743 - Added parsers to check these lists (and state) to see if a given
744 tag or attribute should be counted unsafe.
745 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
746 with comments.
747 - Modified htmlAttribute to remove unsafe attributes.
748 - Modified htmlScript and htmlStyle to remove these elements if
749 unsafe.
751 + Modified README and man pages to document new option.
753 * Improved handling of email addresses in markdown and reStructuredText.
754 Consolidated uri and email address parsers. (Resolves Issue #37.)
756 + New emailAddress and uri parsers in Text.Pandoc.Shared.
757 - uri parser uses parseURI from Network.URI.
758 - emailAddress parser properly handles email addresses with periods
759 in them.
761 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
762 and Text.Pandoc.Readers.Markdown.
764 * Markdown reader:
766 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
767 nested in an Emph. (A '*' is only recognized as the end of the
768 emphasis if it's not the beginning of a strong emphasis.)
770 + Moved blockQuote parser before list parsers for performance.
772 + Modified 'source' parser to allow backslash-escapes in URLs.
773 So, for example, [my](/url\(1\)) yields a link to /url(1).
774 Resolves Issue #34.
776 + Disallowed links within links. (Resolves Issue #35.)
777 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
778 instead of hard-coding the inline parser takes an inline parser
779 as a parameter.
780 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
781 - Removed unneeded inlineString function.
782 - Added inlineNonLink parser, which is now used in the definition of
783 reference.
784 - Added inlineParsers list and redefined inline and inlineNonLink parsers
785 in terms of it.
786 - Added failIfLink parser.
788 + Better handling of parentheses in URLs and quotation marks in titles.
789 - 'source' parser first tries to parse URL with balanced parentheses;
790 if that doesn't work, it tries to parse everything beginning with
791 '(' and ending with ')'.
792 - source parser now uses an auxiliary function source'.
793 - linkTitle parser simplified and improved, under assumption that it
794 will be called in context of source'.
796 + Make 'block' conditional on strictness state, instead of using
797 failIfStrict in block parsers. Use a different ordering of parsers
798 in strict mode (raw HTML block before paragraph) for performance.
799 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
800 Simplified htmlBlock, since we know it's only called in strict
801 mode.
803 + Improved handling of raw HTML. (Resolves Issue #36.)
804 - Tags that can be either block or inline (e.g. <ins>) should
805 be treated as block when appropriate and as inline when
806 appropriate. Thus, for example,
807 <ins>hi</ins>
808 should be treated as a paragraph with inline <ins> tags, while
809 <ins>
810 hi
811 </ins>
812 should be treated as a paragraph within <ins> tags.
813 - Moved htmlBlock after para in list of block parsers. This ensures
814 that tags that can be either block or inline get parsed as inline
815 when appropriate.
816 - Modified rawHtmlInline' so that block elements aren't treated as
817 inline.
818 - Modified para parser so that paragraphs containing only HTML tags and
819 blank space are not allowed. Treat these as raw HTML blocks instead.
821 + Fixed bug wherein HTML preceding a code block could cause it to
822 be parsed as a paragraph. The problem is that the HTML parser
823 used to eat all blank space after an HTML block, including the
824 indentation of the code block. (Resolves Issue #39.)
825 - In Text.Pandoc.Readers.HTML, removed parsing of following space
826 from rawHtmlBlock.
827 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
828 indentation is eaten *only* on the first line after the HTML
829 block. This means that in
830 <div>
831 foo
832 <div>
833 the foo won't be treated as a code block, but in
834 <div>
836 foo
838 </div>
839 it will. This seems the right approach for least surprise.
841 * RST reader:
843 + Fixed bug in parsing explicit links (resolves Issue #44).
844 The problem was that we were looking for inlines until a '<' character
845 signaled the start of the URL; so, if you hit a reference-style link,
846 it would keep looking til the end of the document. Fix: change
847 inline => (notFollowedBy (char '`') >> inline). Note that this won't
848 allow code inlines in links, but these aren't allowed in resT anyway.
850 + Cleaned up parsing of reference names in key blocks and links.
851 Allow nonquoted reference links to contain isolated '.', '-', '_', so
852 so that strings like 'a_b_' count as links.
854 + Removed unnecessary check for following link in str.
855 This is unnecessary now that link is above str in the definition of
856 'inline'.
858 * HTML reader:
860 + Modified rawHtmlBlock so it parses </html> and </body> tags.
861 This allows these tags to be handled correctly in Markdown.
862 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
863 since these are handled in parseHtml. (Resolves Issue #38.)
865 + Fixed bug (emph parser was looking for <IT> tag, not <I>).
867 + Don't interpret contents of style tags as markdown.
868 (Resolves Issue #40.)
869 - Added htmlStyle, analagous to htmlScript.
870 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
871 - Moved "script" from the list of tags that can be either block or
872 inline to the list of block tags.
874 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
875 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
876 inline tags would be included in raw HTML blocks.
878 + Modified anyHtmlBlockTag to test for (not inline) rather than
879 directly for block. This allows us to handle e.g. docbook in
880 the markdown reader.
882 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
883 Updated LaTeX reader test to use --parse-raw.
885 * HTML writer:
887 + Modified rules for automatic HTML header identifiers to
888 ensure that identifiers begin with an alphabetic character.
889 The new rules are described in README. (Resolves Issue #33.)
891 + Changed handling of titles in HTML writer so you don't get
892 "titleprefix - " followed by nothing.
894 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
895 spacing. Each block element is wrapped with either Pad or Reg.
896 Pad'ed elements are guaranteed to have a blank line in between.
898 * RST writer:
900 + Refactored RST writer to use a record instead of a tuple for state,
901 and to include options in state so it doesn't need to be passed as
902 a parameter.
904 + Use an interpreted text role to render math in restructuredText.
905 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
906 strategy.
908 [ Recai Oktaş ]
910 * Debian packaging changes:
912 + Remove the empty 'include' directory in -dev package, which lintian
913 complains about.
914 + Bump Standarts-Version to 3.7.3.
915 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
916 lintian.
918 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
920pandoc (0.45) unstable; urgency=low
922 [ John MacFarlane ]
924 * Simplified parsing of reference keys and notes in markdown and RST
925 readers: The Reference data structure from Text.Pandoc.Shared is no
926 longer needed, since referenceKey and noteBlock parses return strings
927 (as many blank lines as were occupied by the key or note) and update
928 state themselves. getPosition and setPosition are now used to ensure
929 that error messages will give the correct line number. This yields
930 cleaner (and slightly faster) code, with more accurate parsing error
931 messages.
933 * Added new Math inline element:
935 + Markdown and LaTeX readers now convert TeX math into Math elements,
936 not TeX.
937 + This allows math to be treated differently from raw TeX in output.
938 TeX elements are no longer printed in output formats other than
939 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
941 * New default handling of math in writers:
943 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
944 parses raw TeX math and outputs a string of Pandoc inlines that
945 tries to render it as far as possible using unicode characters,
946 lapsing into literal TeX when needed.
947 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
948 and Docbook, if no other method for displaying math in HTML is
949 specified. Enclosing $'s are no longer printed by default.
950 + By default, math is put inside <span class="math">. This way it can be
951 distinguished from the surrounding text, e.g. put in a different
952 font.
954 * New --gladtex and --mimetex options for display of math in HTML:
956 + If --gladtex is specified, math is output between <eq> tags, so
957 it can be processed by gladTeX.
958 + If --mimetex is specified, math is put in <img> tags with a link
959 to the mimetex CGI script (or any other script that takes TeX math
960 as input and outputs an image). The URL of the script may be
961 specified, but defaults to /cgi-bin/mimetex.cgi.
962 + HTMLMathMethod structure in WriterOptions keeps track of how to
963 display math in HTML output.
964 + Updated README with a description of the four options for displaying
965 math in HTML.
967 * HTML reader:
969 + Fixed bug: parser for minimized attributes should not swallow
970 trailing spaces.
971 + Simplified HTML attribute parsing.
972 + Changed parsing of code blocks in HTML reader: <code> tag is no
973 longer needed. <pre> suffices. All HTML tags in the code block
974 (e.g. for syntax highlighting) are skipped, because they are not
975 portable to other output formats. A <code>...</code> block not
976 surrounded by <pre> now counts as inline HTML, not a code block.
977 + Remove just one leading and one trailing newline from contents of
978 <pre>...</pre> in codeBlock parser.
980 * Markdown reader:
982 + Removed support for box-style block quotes.
983 + Require space before title in links and references.
984 This fixes a bug in parsing URLs like http://silly/url(withparen).
985 + Improved and simplified setextHeader parser.
986 + Fixed logic in smart quote parsing, adding some needed 'try'
987 statements.
988 + Fixed smart quote parsing so that unicode characters 8216 and 8217
989 are recognized as single quotes, and 8220 and 8221 as double quotes.
991 * RST reader:
993 + Fixed bug in parsing of code blocks. Previously a full tab indent
994 was required, but RST allows code to be indented any amount.
995 Resolves Issue #27.
996 + Allow field lists to be indented.
997 + Parse the contents of field lists instead of treating as a raw string.
998 + Represent field lists as definition lists instead of blockquotes.
999 + Fixed bug in which metadata would be overridden if the document
1000 contained multiple field lists.
1001 + Parse fields associated with '.. image::' blocks, and use 'alt'
1002 field, if given, for image alt and title attributes.
1004 * LaTeX reader:
1006 + Modified specialChar so that '"' characters are parsed.
1007 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
1009 * HTML writer:
1011 + Changes in handling of math (see above).
1012 + Don't produce HTML for table of contents if there are
1013 no headers. (This would be an empty list, which is invalid XHTML.)
1015 * Markdown writer:
1017 + Don't print title attribute if title is empty. (This differs from
1018 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
1019 Gruber has indicated that he prefers this behavior.) Adjusted test
1020 suite accordingly.
1021 + Fixed incorrect line wrapping in paragraphs including hard line
1022 breaks. Resolves Issue #25.
1023 + Fixed bug in markdown writer: If an ordered list item began with
1024 a marker greater than 3 characters in width, and the item took more
1025 than one line, it would appear on the line after the list marker,
1026 e.g.:
1028 (12)
1029 My list item.
1030 Multiline.
1032 Now it works as follows:
1034 (12) My list item.
1035 Multiline.
1037 * RST writer
1039 + Fixed bug in RST writer's handling of ordered lists. Previously,
1040 list items with multiple lines would not always line up with
1041 single-line list items. Now, list items are nested the length of
1042 the list marker + 1. This looks better and ensures that list items
1043 all line up. (Note that list markers are padded to the length of
1044 the longest list marker in the series.)
1045 + Use 3-space indent for unordered lists.
1046 + If label for a link reference contains a colon, surround it by `
1047 signs so it won't be interpreted as the end of the link label.
1049 * LaTeX writer:
1051 + Cleaner output for footnotes. Footnotes now always begin on a new
1052 line, and the final } is on a line by itself only when it needs to
1053 be (i.e. only when the note ends with a Verbatim environment).
1054 + Added writer options to state, so state doesn't need to be passed as
1055 a parameter.
1056 + Text wrapping now provided, using wrapTeXIfNeeded.
1058 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
1059 (thanks to Idris Samawi Hamid for suggestions).
1061 + PrettyPrint module now used for output.
1062 + Writer options are now in state, so they don't have to be passed as
1063 a parameter.
1064 + Text wrapping now provided, using wrapTeXIfNeeded.
1065 + Better treatment of footnotes: footnotes are always on lines by
1066 themselves, and the final } is on a line by itself only when
1067 it needs to be (after \stoptyping).
1068 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
1069 depending on whether --number-sections option is selected.
1070 + Extra blank line inserted after \stopitemize
1071 + Use new, "official" definition of blockquote environment. Also, use
1072 blank line after \startblockquote to balance blank line at the end.
1073 + Both itemized and enumerated lists are now generated using
1074 \start-stopitemize, with appropriate options. Removed definitions
1075 of ltxenum and ltxitem, which are no longer needed. Provided
1076 defaults for itemized lists in the preamble. State keeps track of
1077 ordered list level, so that when default numbering is specified,
1078 the appropriate scheme can be used.
1079 + Changed \useurl to \useURL.
1080 + Changed link color from red to blue.
1081 + Use \subsubsubsubsection etc., since these are supported
1082 (up to at least sub x 5).
1084 * Text.Pandoc.Shared:
1086 + Save and restore position in parseFromString, so that accurate
1087 error messages can be given.
1088 + Improved efficiency of romanNumeral parser.
1089 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
1090 that footnotes occur on lines by themselves (to make them
1091 easier to see and move) and do not screw up line wrapping.
1093 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
1094 if present. Windows Notepad and other applications insert a
1095 BOM at the beginning of a UTF8 file.
1097 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
1098 addition to "\r\n" and '\n').
1100 * Added a writer option for wrapped text and a command-line option
1101 '--no-wrap', which disables text wrapping and minimizes whitespace
1102 in HTML. (Resolves Issue #26.)
1104 + Added support for '--no-wrap' to Main.hs.
1105 + Added wrapIfNeeded function to Text.Pandoc.Shared.
1106 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
1107 Markdown writers.
1108 + Added render and renderFragment helpers to HTML writer.
1110 * Modified html2markdown to run tidy only if the HTML cannot be
1111 parsed. Previously html2markdown piped all input through tidy
1112 before passing it to pandoc. This caused problems on certain pages
1113 (e.g. http://daringfireball.com/markdown) which have well-formed
1114 XHTML that causes tidy to choke. The solution is to pipe through
1115 tidy only if pandoc cannot parse the input by itself. This means
1116 that a temp file is now always used, even when input comes from a
1117 local file or standard input.
1119 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
1120 Text.Pandoc library.
1122 * pandoc.cabal:
1124 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
1125 6.8, pretty and containers must be added to Build-Depends, and it
1126 is desirable to use the -O2 compiler option.) Cabal configurations
1127 allows one to select options depending on the compiler version.
1128 For GHC 6.6, the splitBase option can be disabled.
1129 + pandoc.cabal.ghc66 is provided for users with older versions of
1130 Cabal, which do not support configurations.
1131 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
1132 '--enable-(executable|library)-profiling' is specified. Updated
1133 PROFILING instructions accordingly.
1135 * Makefile:
1137 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
1138 is copied to pandoc.cabal, and the old pandoc.cabal is copied
1139 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
1140 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
1141 will work properly with either GHC 6.6 or 6.8.
1142 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
1143 This is where current versions of Cabal put it.
1144 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
1145 + Removed dependency of templates on ./templates, which is circular
1146 now that templates is a subdirectory of the top-level.
1148 * MacPorts Portfile:
1150 + Modified to install the pandoc library in addition to programs.
1151 + Installation must be done manually rather than using Makefile's
1152 install-all.
1153 + Note that the library must be registered in the activate phase,
1154 after the library files have been copied out of the destroot.
1155 Cabal generates a 'register.sh' script that will do this.
1157 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
1158 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
1159 Closes: #445235
1161 * debian/rules: Converted to UTF-8.
1163 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
1165 * Updated ASCIIMathML.js to latest version.
1167 * Directory structure:
1169 + Moved everything from src into the top-level directory.
1170 + Changed references to source directory in Makefile and
1171 pandoc.cabal.*.
1172 + Moved ASCIIMathML.js, headers, and ui into templates directory.
1173 + Modified fillTemplates.pl to reflect new paths.
1175 [ Recai Oktaş ]
1177 * Makefile: Fixed the issue of having two copies of the library
1178 documentation under some usage scenarios.
1180 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
1181 and GHC_PKG configurable through the environment, to support
1182 unusual ghc installations. For example:
1183 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
1185 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
1187pandoc (0.44) unstable; urgency=low
1189 [ John MacFarlane ]
1191 * Fixed bug in HTML writer: when --toc was used, anchors were put around
1192 headers, which is invalid XHTML (block content within inline element).
1193 Now the anchors are put inside the header tags. Resolves Issue #23.
1195 * Added xmlns attribute to html element in html writer tests.
1196 This attribute is added by more recent versions of the
1197 xhtml library (>= 3000), and is required for valid XHTML.
1199 [ Recai Oktaş ]
1201 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
1202 command instead of 'runhaskell', which, on some platforms (such as s390,
1203 alpha, m68k), throws the following error:
1205 runhaskell Setup.hs configure --prefix=/usr
1206 ghc-6.6.1: not built for interactive use
1208 This causes a serious FTBFS bug. Closes: #440668.
1210 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
1212pandoc (0.43) unstable; urgency=low
1214 [ John MacFarlane ]
1216 * The focus of this release is performance. The markdown parser
1217 is about five times faster than in 0.42, based on benchmarks
1218 with the TextMate manual.
1220 * Main.hs: Replaced CRFilter and tabFilter with single function
1221 tabFilter, which operates on the whole string rather than breaking
1222 it into lines, and handles dos-style line-endings as well as tabs.
1224 * Added separate LaTeX reader and native reader tests; removed
1225 round-trip tests.
1227 * Text.Pandoc.Shared:
1229 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
1230 + General code cleanup (to elimante warnings when compiling with -Wall.)
1231 + Added 'wrapped' function, which helps wrap text into paragraphs,
1232 using the prettyprinting library.
1233 + Rewrote charsInBalanced and charsInBalanced'.
1234 - Documented restriction: open and close must be distinct characters.
1235 - Rearranged options for greater efficiency.
1236 - Bug fix: Changed inner call to charsInBalanced inside
1237 charsInBalanced' to charsInBalanced'.
1238 + anyLine now requires that the line end with a newline (not eof).
1239 This is a harmless assumption, since we always add newlines to the
1240 end of a block before parsing with anyLine, and it yields a 10% speed
1241 boost.
1242 + Removed unnecessary 'try' in anyLine.
1243 + Removed unneeded 'try' from romanNumeral parser.
1244 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
1245 + Removed unneeded 'try' in parseFromString.
1246 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
1247 like 'string'.)
1248 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
1249 'try' is not automatically applied to the 'end' parser. Added
1250 'try' in calls to 'enclosed' where needed. Slight speed increase.
1252 * Writers:
1254 + Replaced individual wrapping routines in RST, Man, and Markdown
1255 writers with 'wrapped' from Text.Pandoc.Shared.
1256 + Rewrote LaTeX writer to use the prettyprinting library,
1257 so we get word wrapping, etc.
1258 + Modified latex writer tests for new latex writer using prettyprinter.
1259 + Fixed bug in LaTeX writer: autolinks would not cause
1260 '\usepackage{url}' to be put in the document header. Also, changes
1261 to state in enumerated list items would be overwritten.
1262 + In Markdown writer, escape paragraphs that begin with ordered list
1263 markers, so they don't get interpreted as ordered lists.
1265 * Text.Pandoc.Reades.LaTeX:
1267 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
1268 numeral after "enum" in "setcounter" would consist entirely of
1269 "i"s. 'enumiv' is legitimate.
1270 + LaTeX command and environment names can't contain numbers.
1271 + Rearranged order of parsers in inline for slight speed improvement.
1272 + Added '`' to special characters and 'unescapedChar'.
1274 * Text.Pandoc.Readers.RST:
1276 + Removed unneeded try's in RST reader; also minor code cleanup.
1277 + Removed tabchar.
1278 + Rearranged parsers in inline (doubled speed).
1280 * Text.Pandoc.Readers.Markdown:
1282 + Skip notes parsing if running in strict mode. (This yields a nice
1283 speed improvement in strict mode.)
1284 + Simplify autolink parsing code, using Network.URI to test for
1285 URIs. Added dependency on network library to debian/control and
1286 pandoc.cabal.
1287 + More perspicuous definition of nonindentSpaces.
1288 + Removed unneeded 'try' in 'rawLine'.
1289 + Combined linebreak and whitespace into a new whitespace parser, to
1290 avoid unnecessary reparsing of space characters.
1291 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
1292 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
1293 + Use lookAhead in parsers for setext headers and definition lists
1294 to see if the next line begins appropriately; if not, don't waste
1295 any more time parsing.
1296 + Don't require blank lines after code block. (It's sufficient to
1297 end code block with a nonindented line.)
1298 + Changed definition of 'emph': italics with '_' must not
1299 be followed by an alphanumeric character. This is to help
1300 prevent interpretation of e.g. [LC_TYPE]: my_type as
1301 '[LC<em>TYPE]:my</em>type'.
1302 + Improved Markdown.pl-compatibility in referenceLink: the two parts
1303 of a reference-style link may be separated by one space, but not
1304 more... [a] [link], [not] [a link].
1305 + Fixed markdown inline code parsing so it better accords with
1306 Markdown.pl: the marker for the end of the code section is a clump
1307 of the same number of `'s with which the section began, followed
1308 by a non-` character. So, for example,
1309 ` h ``` i ` -> <code>h ``` i</code>.
1310 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
1311 rules are slightly different.
1312 + Rewrote 'para' for greater efficiency.
1313 + Rewrote link parsers for greater efficiency.
1314 + Removed redundant 'referenceLink' in definition of inline (it's
1315 already in 'link').
1316 + Refactored escapeChar so it doesn't need 'try'.
1317 + Refactored hrule for performance in Markdown reader.
1318 + More intelligent rearranging of 'inline' so that most frequently
1319 used parsers are tried first.
1320 + Removed tabchar parser, as whitespace handles tabs anyway.
1322 * Text.Pandoc.CharacterReferences:
1324 + Refactored.
1325 + Removed unnecessary 'try's for a speed improvement.
1326 + Removed unnecessary '&' and ';' from the entity table.
1328 * Build process:
1330 + Makefile: Get VERSION from cabal file, not Main.hs.
1331 + Modified MacPorts Portfile:
1332 - Depend on haddock
1333 - Build and install libraries and library documentation in
1334 addition to pandoc executable
1335 - Added template item for md5 sum in Portfile.in.
1336 - Incorporated changes from MacPorts repository (r28278).
1337 + FreeBSD port: Don't try to generate distinfo in Makefile.
1338 It can be made using 'make makesum' in FreeBSD.
1339 + Make both freebsd and macports targets depend on tarball.
1341 * Website and documentation:
1343 + Updated INSTALL instructions.
1344 + Added pandocwiki demo to website.
1345 + Removed local references to Portfile, since pandoc is now in the
1346 MacPorts repository.
1348 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
1350pandoc (0.42) unstable; urgency=low
1352 [ John MacFarlane ]
1354 * Main.hs: Use utf8 conversion on the extra files loaded with
1355 the -H, -C, -B, and -A options. This fixes problems with unicode
1356 characters in these files.
1358 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
1359 Text.Pandoc.Readers.HTML and without it we get a linking error when
1360 using the library.
1362 * Markdown reader:
1364 + Added new rule for enhanced markdown ordered lists: if the list
1365 marker is a capital letter followed by a period (including a
1366 single-letter capital roman numeral), then it must be followed by
1367 at least two spaces. The point of this is to avoid accidentally
1368 treating people's initials as list markers: a paragraph might begin,
1369 "B. Russell was an English philosopher," and this shouldn't be
1370 treated as a list. Documented change in README.
1371 + Blocks that start with "p. " and a digit are no longer treated
1372 as ordered lists (it's a page number).
1373 + Added a needed 'try' to listItem.
1374 + Removed check for a following setext header in endline.
1375 A full test is too inefficient (doubles benchmark time), and the
1376 substitute we had before is not 100% accurate.
1377 + Don't use Code elements for autolinks if --strict specified.
1379 * LaTeX writer: When a footnote ends with a Verbatim environment, the
1380 close } of the footnote cannot occur on the same line or an error occurs.
1381 Fixed this by adding a newline before the closing } of every footnote.
1383 * HTML writer:
1384 + Removed incorrect "{}" around style information in HTML tables.
1385 Column widths now work properly in HTML.
1386 + If --strict option is specified (and --toc is not), don't include
1387 identifiers in headers, for better Markdown compatibility.
1389 * Build process:
1391 + Separated $(web_dest) and website targets.
1392 + In website, index.txt is now constructed from template index.txt.in.
1393 + Added freebsd target to Markefile. This creates the freebsd Makefile
1394 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
1395 from the repository.
1396 + Added macport target to Makefile. Portfile is built from template
1397 Portfile.in.
1398 + Removed OSX package targets. (Too many difficulties involving
1399 dependencies on dynamic libraries.)
1400 + More complete INSTALL instructions for all architectures.
1402 * Website:
1403 + Added a programming demo, pandocwiki.
1405 [ Recai Oktaş ]
1407 * Do not forget to close pandoc's ITP. Closes: #391666
1409 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
1411pandoc (0.41) unstable; urgency=low
1413 [ John MacFarlane ]
1415 * Fixed bugs in HTML reader:
1416 + Skip material at end *only if* </html> is present (previously,
1417 only part of the document would be parsed if an error was
1418 found; now a proper error message is given).
1419 + Added new constant eitherBlockOrInline with elements that may
1420 count either as block-level or as inline. Modified isInline and
1421 isBlock to take this into account.
1422 + Modified rawHtmlBlock to accept any tag (even an inline tag):
1423 this is innocuous, because rawHtmlBlock is tried only if a regular
1424 inline element can't be parsed.
1425 + Added a necessary 'try' in definition of 'para'.
1427 * Fixed bug in markdown ordered list parsing. The problem was that
1428 anyOrderedListStart did not check for a space following the
1429 ordered list marker. So in 'A.B. 2007' the parser would be
1430 expecting a list item, but would not find one, causing an error.
1431 Fixed a similar bug in the RST reader. Resolves Issue #22.
1433 * Refactored RST and Markdown readers using parseFromString.
1435 * LaTeX reader will now skip anything after \end{document}.
1437 * Fixed blockquote output in markdown writer: previously, block
1438 quotes in indented contexts would be indented only in the first
1439 line.
1441 * Added note to INSTALL about variations in versions of the xhtml
1442 library that can lead to failed tests (thanks to Leif LeBaron).
1444 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
1446pandoc (0.4) unstable; urgency=low
1448 [ John MacFarlane ]
1450 * Added two new output formats: groff man pages and ConTeXt. By
1451 default, output files with extensions ".ctx" and ".context" are
1452 assumed to be ConTeXt, and output files with single-digit extensions
1453 are assumed to be man pages.
1455 * Enhanced ordered lists (documented in README, under Lists):
1456 + The OrderedList block element now stores information about
1457 list number style, list number delimiter, and starting number.
1458 + The readers parse this information when possible.
1459 + The writers use this information to style ordered lists.
1460 + The enhancement can be disabled using the --strict option.
1462 * Added support for tables (with a new Table block element). Two kinds
1463 of tables are supported: a simple table with one-line rows, and a
1464 more complex variety with multiline rows. All output formats are
1465 supported, but only markdown tables are parsed at the moment. The
1466 syntax is documented in README.
1468 * Added support for definition lists (with a new DefinitionList block
1469 element). All output and input formats are supported. The syntax is
1470 documented in README.
1472 * Added support for superscripts and subscripts (with new Superscript
1473 and Subscript inline elements). All input and output
1474 formats. The syntax is documented in README.
1476 * Added support for strikeout (with a new Strikeout inline element).
1477 All input and output formats are supported. Thanks to Bradley Kuhn,
1478 who contributed a patch. The syntax is documented in README. Resolves
1479 Issue #18.
1481 * Added a --toc|--table-of-contents option. This causes an automatically
1482 generated table of contents (or an instruction that creates one) to
1483 be inserted at the beginning of the document. Not supported in S5,
1484 DocBook, or man page writers.
1486 * Modified the -m|--asciimathml option:
1488 + If an optional URL argument is provided, a link is inserted
1489 instead of the contents of the ASCIIMathML.js script.
1490 + Nothing is inserted unless the document actually contains
1491 LaTeX math.
1493 * Removed Blank block element as unnecessary.
1495 * Removed Key and Note blocks from the Pandoc data structure. All
1496 links are now stored as explicit links, and note contents are
1497 stored with the (inline) notes.
1499 + All link Targets are now explicit (URL, title) pairs; there
1500 is no longer a 'Ref' target.
1501 + Markdown and RST parsers now need to extract data from key and
1502 note blocks and insert them into the relevant inline elements.
1503 Other parsers have been simplified, since there is no longer any need
1504 to construct separate key and note blocks.
1505 + Markdown, RST, and HTML writers need to construct lists of
1506 notes; Markdown and RST writers need to construct lists of link
1507 references (when the --reference-links option is specified); and
1508 the RST writer needs to construct a list of image substitution
1509 references. All writers have been rewritten to use the State monad
1510 when state is required.
1511 + Several functions (generateReference, keyTable,
1512 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
1513 used by them) have been removed from Text.Pandoc.Shared, since
1514 they are no longer needed. New functions and data structures
1515 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
1516 added. The functions inTags, selfClosingTag, inTagsSimple, and
1517 inTagsIndented have been moved to the DocBook writer, since that
1518 is now the only module that uses them. NoteTable is now exported
1519 in Text.Pandoc.Shared.
1520 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
1521 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
1522 + Added writerNotes and writerReferenceLinks to WriterOptions.
1524 * Added Text.Pandoc module that exports basic readers, writers,
1525 definitions, and utility functions. This should export everything
1526 needed for most uses of Pandoc libraries. The haddock documentation
1527 includes a short example program.
1529 * Text.Pandoc.ASCIIMathML is no longer an exported module.
1531 * Added Text.Pandoc.Blocks module to help in printing markdown
1532 and RST tables. This module provides functions for working with
1533 fixed-width blocks of text--e.g., placing them side by side, as
1534 in a table row.
1536 * Refactored to avoid reliance on Haskell's Text.Regex library, which
1537 (a) is slow, and (b) does not properly handle unicode. This fixed
1538 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
1540 + Replaced 'gsub' with a general list function 'substitute'
1541 that does not rely on Text.Regex.
1542 + Rewrote extractTagType in HTML reader so that it doesn't use
1543 regexs.
1544 + In Markdown reader, replaced email regex test with a custom email
1545 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
1546 with a custom function isSelfClosingTag.
1547 + Modified Docbook writer so that it doesn't rely on Text.Regex for
1548 detecting 'mailto' links.
1549 + Removed escapePreservingRegex and reamped entity-handling
1550 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
1551 avoid reliance on Text.Regex (see below on character reference
1552 handling changes).
1554 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
1556 * Changed handling of XML entities. Entities are now parsed (and unicode
1557 characters returned) in the Markdown and HTML readers, rather than being
1558 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
1559 instead of entities for characters above 128. This makes the HTML and
1560 DocBook output much more readable and more easily editable.
1562 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
1563 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
1564 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
1565 Moved both functions to Text.Pandoc.Writers.Docbook.
1566 + Added characterReference parser to Text.Pandoc.CharacterReferences.
1567 This parses a string and return a unicode character.
1568 + Rewrote decodeCharacterReferences to use the new parser instead of
1569 Text.Regex.
1570 + Added new charRef parser for Markdown and HTML, which replaces the
1571 old 'entity' parser. Added '&' as a special character in Markdown reader.
1572 + Modified HTML and Markdown readers to call decodeEntities on all raw
1573 strings (e.g. authors, dates, link titles), to ensure that no
1574 unprocessed entities are included in the native representation of
1575 the document. (In the HTML reader, most of this work is done by a
1576 change in extractAttributeName.)
1577 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
1578 since a unicode non-breaking space is impossible to distinguish visually
1579 from a regular space. (Resolves Issue #3.)
1580 + Removed encodeEntitiesNumerical.
1581 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
1582 slight performance boost over the old association list.
1583 + Removed unneeded decodeEntities from 'str' parser in HTML and
1584 Markdown readers.
1586 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
1587 fromUTF8, for clarity.
1589 * Replaced old haskell98 module names replaced by hierarchical module
1590 names, e.g. List by Data.List. Removed haskell98 from dependencies
1591 in pandoc.cabal, and added mtl (needed for state monad). Substituted
1592 xhtml for html.
1594 * Refactored and cleaned up character escaping in writers, using
1595 backslashEscapes and escapeStringUsing functions.
1597 * Instead of adding "\n\n" to the end of an input string in Main.hs,
1598 this is now done in the readers. This makes the libraries behave
1599 the way you'd expect from the pandoc program. Resolves Issue #10.
1601 * URLs and email addresses in autolinks are now typeset as Code.
1603 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
1604 doesn't display the whole output unless there's a line ending.
1606 * Major code cleanup in all modules, for greater consistency, concision,
1607 and readability.
1609 * HTML reader:
1611 + Fixed several bugs (extractTagType, attribute parsing).
1612 + Remove Null blocks in lists of blocks when possible.
1613 + Allow HTML comments as raw HTML inline.
1615 * Markdown reader:
1617 + Ordered list items may no longer begin with uppercase letters, or
1618 letters greater than 'n'. (This prevents first initials and page
1619 reference, e.g. 'p. 400', from being parsed as beginning lists.)
1620 Also, numbers beginning list items may no longer end with ')',
1621 which is now allowed only after letters. Note: These changes
1622 may cause documents to be parsed differently. Users should take
1623 care in upgrading.
1624 + Changed autoLink parsing to conform better to Markdown.pl's
1625 behavior. <google.com> is not treated as a link, but
1626 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
1627 are.
1628 + Cleaned up handling of embedded quotes in link titles. Now these are
1629 stored as a '"' character, not as '&quot;'.
1630 + Use lookAhead parser for the 'first pass' (looking for reference keys),
1631 instead of parsing normally, then using setInput to reset input. This
1632 yields a slight performance boost.
1633 + Fixed several bugs in smart quote recognition.
1634 + Fixed bug in indentSpaces (which didn't properly handle
1635 cases with mixed spaces and tabs).
1636 + Consolidated 'text', 'special', and 'inline' into 'inline'.
1637 + Fixed bug which allowed URL and title to be separated by multiple blank
1638 lines in links and reference keys. They can be on separate lines but
1639 can't have blank lines between them.
1640 + Correctly handle bracketed text inside inline footnotes and links,using
1641 new function inlinesInBalanced. Resolves Issue #14.
1642 + Fixed bug in footnotes: links in footnotes were not being
1643 processed. Solution: three-stage parse. First, get all the
1644 reference keys and add information to state. Next, get all the
1645 notes and add information to state. (Reference keys may be needed
1646 at this stage.) Finally, parse everything else.
1647 + Replaced named constants like 'emphStart' with literals.
1648 + Removed an extra occurance of escapedChar in definition of inline.
1650 * RST reader:
1652 + Allow the URI in a RST hyperlink target to start on the line
1653 after the reference key.
1654 + Added 'try' in front of 'string', where needed, or used a different
1655 parser. This fixes a bug where ````` would not be correctly parsed as
1656 a verbatim `.
1657 + Fixed slow performance in parsing inline literals in RST reader. The
1658 problem was that ``#`` was seen by 'inline' as a potential link or image.
1659 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
1660 Resolves Issue #8.
1661 + Use lookAhead instead of getInput/setInput in RST reader. Removed
1662 unneeded getState call, since lookAhead automatically saves and
1663 restores the parser state.
1664 + Allow hyperlink target URIs to be split over multiple lines, and
1665 to start on the line after the reference. Resolves Issue #7.
1666 + Fixed handling of autolinks.
1668 * LaTeX reader:
1670 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
1671 for clarity.
1672 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
1673 caret is \^{}, not \^ as before.
1674 + Added parsing for \url.
1675 + Parse \texttt{} as code, provided there's nothing fancy inside.
1677 * HTML writer:
1679 + Modified HTML writer to use the Text.XHtml library. This results
1680 in cleaner, faster code, and it makes it easier to use Pandoc in
1681 other projects, like wikis, which use Text.XHtml. Two functions are
1682 now provided, writeHtml and writeHtmlString: the former outputs an
1683 Html structure, the latter a rendered string. The S5 writer is also
1684 changed, in parallel ways (writeS5, writeS5String).
1685 + The Html header is now written programmatically, so it has been
1686 removed from the 'headers' directory. The S5 header is still
1687 needed, but the doctype and some of the meta declarations have
1688 been removed, since they are written programatically. This change
1689 introduces a new dependency on the xhtml package.
1690 + Fixed two bugs in email obfuscation involving improper escaping
1691 of '&' in the <noscript> section and in --strict mode. Resolves
1692 Issue #9.
1693 + Fixed another bug in email obfuscation: If the text to be obfuscated
1694 contains an entity, this needs to be decoded before obfuscation.
1695 Thanks to thsutton for the patch. Resolves Issue #15.
1696 + Changed the way the backlink is displayed in HTML footnotes.
1697 Instead of appearing on a line by itself, it now generally
1698 appears on the last line of the note. (Exception: when the
1699 note does not end with a Plain or Para block.) This saves space
1700 and looks better.
1701 + Added automatic unique identifiers to headers:
1702 - The identifier is derived from the header via a scheme
1703 documented in README.
1704 - WriterState now includes a list of header identifiers and a table
1705 of contents in addition to notes.
1706 - The function uniqueIdentifiers creates a list of unique identifiers
1707 from a list of inline lists (e.g. headers).
1708 - This list is part of WriterState and gets consumed by blockToHtml
1709 each time a header is encountered.
1710 + Include CSS for .strikethrough class in header only if strikethrough
1711 text appears in the document.
1712 + If the 'strict' option is specified, elements that do not appear in
1713 standard markdown (like definition lists) are passed through as
1714 raw HTML.
1715 + Simplified treatment of autolinks, using pattern matching instead of
1716 conditionals.
1718 * Markdown writer:
1720 + Links in markdown output are now printed as inline links by default,
1721 rather than reference links. A --reference-links option has been added
1722 that forces links to be printed as reference links. Resolves Issue #4.
1723 + Use autolinks when possible. Instead of [site.com](site.com),
1724 use <site.com>.
1726 * LaTeX writer:
1728 + Rewrote to use the State monad. The preamble now includes only those
1729 packages that are actually required, given the document's content.
1730 Thus, for example, if strikeout is not used, ulem is not required.
1731 Modified LaTeXHeader accordingly.
1732 + Modified LaTeX writer to insert '\,' between consecutive quotes.
1733 + Removed unused function tableRowColumnWidths.
1734 + Simplified code for escaping special characters.
1735 + Leave extra blank line after \maketitle.
1736 + Include empty '\author{}' when no author specified to avoid LaTeX
1737 errors.
1738 + Include fancyvrb code in header only if needed -- that is, only
1739 if there is actually code in a footnote.
1740 + Use \url{} for autolinks.
1741 + Include [mathletters] option in ucs package, so that basic unicode
1742 Greek letters will work correctly.
1744 * RST writer: Force blank line before lists, so that sublists will
1745 be handled correctly.
1747 * Docbook writer: Fixed a bug: email links with text, like
1748 [foo](me@bar.baz), were being incorrectly treated as autolinks.
1750 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
1751 Text.Pandoc.Shared.
1753 * Text.Pandoc.Shared:
1755 + Added defaultWriterOptions.
1756 + Added writerTableOfContents to WriterOptions.
1757 + Added writerIgnoreNotes option to WriterOptions. This is needed
1758 for processing header blocks for a table of contents, since notes on
1759 headers should not appear in the TOC.
1760 + Added prettyprinting for native Table format.
1761 + Removed some unneeded imports.
1762 + Moved escape and nullBlock parsers from
1763 Text.ParserCombinators.Pandoc, since the latter is for
1764 general-purpose parsers that don't depend on Text.Pandoc.Definition.
1765 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
1766 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
1767 writer, because HTML writer now uses these in constructing a table
1768 of contents.
1769 + Added clauses for new inline elements (Strikeout, Superscript,
1770 Subscript) to refsMatch.
1771 + Removed backslashEscape; added new functions escapeStringUsing and
1772 backslashEscapes.
1773 + Moved failIfStrict from markdown reader, since it is now used also
1774 by the HTML reader.
1775 + Added a 'try' to the definition of indentSpaces.
1776 + In definition of 'reference', added check to make sure it's not a note
1777 reference.
1778 + Added functions: camelCaseToHyphenated, toRomanNumeral,
1779 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
1780 charsInBalanced', withHorizDisplacement, romanNumeral
1781 + Fixed a bug in the anyLine parser. Previously it would parse an empty
1782 string "", but it should fail on an empty string, or we get an error
1783 when it is used inside "many" combinators.
1784 + Removed followedBy' parser, replacing it with the lookAhead parser from
1785 Parsec.
1786 + Added some needed 'try's before multicharacter parsers, especially in
1787 'option' contexts.
1788 + Removed the 'try' from the 'end' parser in 'enclosed', so that
1789 'enclosed' behaves like 'option', 'manyTill', etc.
1790 + Added lineClump parser, which parses a raw line block up to and
1791 including any following blank lines.
1792 + Renamed parseFromStr to parseFromString.
1793 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
1794 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
1795 in calling code.
1796 + Removed unneeded 'try' in blanklines.
1797 + Removed endsWith function and rewrote calling functions to use
1798 isSuffixOf instead.
1799 + Added >>~ combinator.
1800 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
1801 Space.
1803 * Refactored runtests.pl; added separate tests for tables.
1805 * Shell scripts:
1807 + Added -asxhtml flag to tidy in html2markdown. This will
1808 perhaps help the parser, which expects closing tags.
1809 + Modified markdown2pdf to run pdflatex a second time if --toc or
1810 --table-of-contents was specified; otherwise the table of
1811 contents won't appear.
1812 + Modified markdown2pdf to print a helpful message if the 'ulem'
1813 LaTeX package is required and not found.
1815 * Changes to build process:
1817 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
1818 is now required.
1819 + Removed cabalize and Pandoc.cabal.in. The repository now contains
1820 pandoc.cabal itself.
1821 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
1822 likes the cabal file to have the same name as the tarball.
1823 + Expanded and revised the package description in pandoc.cabal.
1824 Revised the package synopsis.
1825 + The tarball built by 'make tarball' now contains files built from
1826 templates (including man pages and shell scripts), so pandoc can
1827 be built directly using Cabal tools, without preprocessing.
1828 + Executable binaries are now stripped before installing.
1829 + Man pages are now generated from markdown sources, using pandoc's
1830 man page writer.
1831 + Use HTML version of README (instead of RTF) in Mac OS X installer.
1832 + Instead of testing for the existence of a pandoc symlink in build-exec,
1833 use ln -f.
1835 * Documentation:
1837 + Updated README and man pages with information on new features.
1838 + Updated INSTALL instructions with some useful clarifications and
1839 links.
1840 + Updated web content.
1842 * Added FreeBSD port.
1844 [ Recai Oktaş ]
1846 * debian/control:
1848 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
1849 libghc6-xhtml-dev. Removed libghc6-html-dev.
1850 + Suggest texlive-latex-recommended | tetex-extra instead of
1851 tetex-bin. This brings in fancyvrb and unicode support.
1853 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
1855pandoc (0.3) unstable; urgency=low
1857 [ John MacFarlane ]
1859 * Changes in pandoc options:
1861 + Allow options to follow or precede arguments.
1862 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
1863 + Added '--strict' option.
1864 + Added '-o/--output' option.
1865 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
1866 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
1867 error conditions. This is helpful for writing wrappers.
1868 + Added copyright message to '-v' output, modeled after FSF messages.
1869 + Reformatted usage message so that it doesn't wrap illegibly.
1870 + Removed extra blanks after '-h' and '-D' output.
1872 * Added docbook writer.
1874 * Added implicit setting of default input and output format based
1875 on input and output filename extensions. These defaults are
1876 overridden if explicit input and output formats are specified using
1877 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
1878 and README.
1880 * Allow ordered list items to begin with (single) letters, as well
1881 as numbers. The list item marker may now be terminated either by
1882 '.' or by ')'. This extension to standard markdown is documented
1883 in README.
1885 * Revised footnote syntax. (See README for full details.) The
1886 '[^1]' format now standard in markdown extensions is supported,
1887 as are inline footnotes with this syntax: '^[My note.]'.
1888 The earlier footnote syntax '^(1)' is no longer supported.
1890 * Improved HTML representation of footnotes. All footnotes
1891 are now auto-numbered and appear in an ordered list at the
1892 end of the HTML document. Since the default appearance is now
1893 acceptable, the old footnote styles have been removed from the
1894 HTML header.
1896 * Bug fixes:
1898 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
1899 These readers ran 'runParser' on processed chunks of text to handle
1900 embedded block lists in lists and quotation blocks. But then
1901 any changes made to the parser state in these chunks was lost,
1902 as the state is local to the parser. So, for example, footnotes
1903 didn't work in quotes or list items. The fix: instead of calling
1904 runParser on some raw text, use setInput to make it the input, then
1905 parse it, then use setInput to restore the input to what it was
1906 before. This is shorter and more elegant, and it fixes the problem.
1907 + Fixed bug in notFollowedBy' combinator (adding 'try' before
1908 'parser'). Adjusted code that uses this combinator accordingly.
1909 + Fixed bug in RTF writer that caused improper indentation on
1910 footnotes occurring in indented blocks like lists.
1911 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
1912 and date are parsed correctly. Everything else in the preamble
1913 is skipped.
1914 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
1915 line to count as escaped whitespace.
1916 + Modified LaTeX reader to produce inline links rather than reference
1917 links. Otherwise, links in footnotes aren't handled properly.
1918 + Fixed handling of titles in links in Markdown reader, so that
1919 embedded quotation marks are now handled properly.
1920 + Fixed Markdown reader's handling of embedded brackets in links.
1921 + Fixed Markdown reader so that it only parses bracketed material
1922 as a reference link if there is actually a corresponding key.
1923 + Revised inline code parsing in Markdown reader to conform to
1924 markdown standard. Now any number of `s can begin inline code,
1925 which will end with the same number of `s. For example, to
1926 have two backticks as code, write ``` `` ```. Modified Markdown
1927 writer accordingly.
1928 + Fixed bug in text-wrapping routine in Markdown and RST writers.
1929 Now LineBreaks no longer cause wrapping problems.
1930 + Supported hexadecimal numerical entity references as well as
1931 decimal ones.
1932 + Fixed bug in Markdown reader's handling of underscores and other
1933 inline formatting markers inside reference labels: for example,
1934 in '[A_B]: /url/a_b', the material between underscores was being
1935 parsed as emphasized inlines.
1936 + Changed Markdown reader's handling of backslash escapes so that
1937 only non-alphanumeric characters can be escaped. Strict mode
1938 follows Markdown.pl in only allowing a select group of punctuation
1939 characters to be escaped.
1940 + Modified HTML reader to skip a newline following a <br> tag.
1941 Otherwise the newline will be treated as a space at the beginning
1942 of the next line.
1944 * Made handling of code blocks more consistent. Previously, some
1945 readers allowed trailing newlines, while others stripped them.
1946 Now, all readers strip trailing newlines in code blocks. Writers
1947 insert a newline at the end of code blocks as needed.
1949 * Modified readers to make spacing at the end of output more consistent.
1951 * Minor improvements to LaTeX reader:
1953 + '\thanks' now treated like a footnote.
1954 + Simplified parsing of LaTeX command arguments and options.
1955 commandArgs now returns a list of arguments OR options (in
1956 whatever order they appear). The brackets are included, and
1957 a new stripFirstAndLast function is provided to strip them off
1958 when needed. This fixes a problem in dealing with \newcommand
1959 and \newenvironment.
1961 * Revised RTF writer:
1963 + Default font is now Helvetica.
1964 + An '\f0' is added to each '\pard', so that font resizing works
1965 correctly.
1967 * Moved handling of "smart typography" from the writers to the Markdown
1968 and LaTeX readers. This allows great simplification of the writers
1969 and more accurate smart quotes, dashes, and ellipses. DocBook can
1970 now use '<quote>'. The '--smart' option now toggles an option in
1971 the parser state rather than a writer option. Several new kinds
1972 of inline elements have been added: Quoted, Ellipses, Apostrophe,
1973 EmDash, EnDash.
1975 * Changes in HTML writer:
1977 + Include title block in header even when title is null.
1978 + Made javascript obfuscation of emails even more obfuscatory,
1979 by combining it with entity obfuscation.
1981 * Changed default ASCIIMathML text color to black.
1983 * Test suite:
1985 + Added --strip-trailing-cr option to diff in runtests.pl, for
1986 compatibility with Windows.
1987 + Added regression tests with footnotes in quote blocks and lists.
1989 * Makefile changes:
1991 + osx-pkg target creates a Mac OS X package (directory). New osx
1992 directory contains files needed for construction of the package.
1993 + osx-dmg target creates a compressed disk image containing the package.
1994 + win-pkg target creates Windows binary package.
1995 + tarball target creates distribution source tarball.
1996 + website target generates pandoc's website automatically, including
1997 demos. New 'web' directory containts files needed for construction
1998 of the website (which will be created as the 'pandoc' subdirectory
1999 of 'web').
2000 + Makefile checks to see if we're running Windows/Cygwin; if so,
2001 a '.exe' extension is added to each executable in EXECS.
2003 * Removed all wrappers except markdown2pdf and html2markdown.
2005 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
2006 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
2007 option and disables other options.
2009 * Added code to html2markdown that tries to determine the character
2010 encoding of an HTML file, by parsing the "Content-type" meta tag.
2012 + If the encoding can't be determined, then if the content is local,
2013 the local encoding is used; if it comes from a URL, UTF-8 is used
2014 by default.
2015 + If input is from STDIN, don't try to determine character encoding.
2016 + Encoding can be specified explicitly using '-e' option.
2018 * Improved warning messages in wrappers:
2020 + Print warning if iconv not available
2021 + More user-friendly error messages in markdown2pdf, when
2022 pdflatex fails.
2024 * Code cleanup:
2026 + Renamed 'Text/Pandoc/HtmlEntities' module to
2027 'Text/Pandoc/Entities'. Also changed function names so as
2028 not to be HTML-specific.
2029 + Refactored SGML string escaping functions from HTML and Docbook
2030 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
2031 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
2032 used anywhere.
2033 + Removed splitBySpace and replaced it with a general, polymorphic
2034 splitBy function.
2035 + Refactored LaTeX reader for clarity (added isArg function).
2036 + Converted some CR's to LF's in src/ui/default/print.css.
2037 + Added license text to top of source files.
2038 + Added module data for haddock to source files.
2039 + Reformatted code for consistency.
2041 * Rewrote documentation and man pages. Split README into INSTALL
2042 and README.
2044 * Split LICENSE into COPYING and COPYRIGHT.
2046 * Removed TODO, since we now maintain ToDo on the wiki.
2048 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
2049 duplication.
2051 [ Recai Oktaş ]
2053 * Revamped build process to conform to debian standards and created
2054 a proper debian package. Closes: #391666.
2056 * Modified build process to support GHC 6.6.
2058 + The package can still be compiled using GHC 6.4.2, though because
2059 of dependencies the "make deb" target works only with GHC 6.6+.
2060 + The script 'cabalize' is used to create an appropriate
2061 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
2062 Cabal versions.
2064 * Refactored template processing (fillTemplates.pl).
2066 * Modified wrapper scripts to make them more robust and portable.
2067 To avoid code duplication and ensure consistency, wrappers are
2068 generated via a templating system from templates in src/wrappers.
2070 + Wrappers now accept multiple filenames, when appropriate.
2071 + Spaces and tabs allowed in filenames.
2072 + getopts shell builtin is used for portable option parsing.
2073 + Improved html2markdown's web grabber code, making it more robust,
2074 configurable and verbose. Added '-e', '-g' options.
2076 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
2078pandoc (0.2) unstable; urgency=low
2080 * Fixed unicode/utf-8 translation
2082 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
2084pandoc (0.1) unstable; urgency=low
2086 * Initial creation of debian package
2088 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400