git.iko.soy/typeable/pandoc
on master help sign in
Updated changelog.
fa25d95fiddlosopher
changelog+349−60
@@ -1,17 +1,306 @@
1pandoc (0.47) UNRELEASED; urgency=low
1pandoc (0.47) UNRELEASED; urgency=low
2
2
3− [ Recai Oktaş ]
3+ [ Andrea Rossato ]
4
4
5− * Debian packaging changes:
5+ * Added new OpenDocument writer.
6−
6+
7− + Migrate to GHC 6.8.2. Closes: #461606
7+ * Added support for SmallCaps inline element.
8− + Add new dependencies libghc6-regex-compat-dev and libghc6-uulib-dev.
8+
9− + Remove the code in debian/rules which attempts to remove empty ghc6.6
9+ * Added support for integrating pandoc with citeproc-hs.
10− include directory. This code may cause an installation failure for the
10+
11− -dev package. Closes: #460658
11+ + Added Cite element to definition and writers.
12− + Fix doc-base to prevent a lintian warning.
12+ + Added Text.Pandoc.Biblio module
13+ + Note: This support is included only if the 'citeproc'
14+ Cabal configuration flag is set.
15+
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.
19+
20+ [ Peter Wang ]
21+
22+ * Added new Texinfo writer.
23+
24+ [ John MacFarlane ]
25+
26+ * Changes to Texinfo writer:
27+
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.
39+
40+ * Added tests for OpenDocument writer.
41+
42+ * Added ODT writer (using zip-archive library to package output of
43+ OpenDocument writer). Added odt-styles directory with default ODT styles.
44+
45+ * Added new mediawiki writer and tests.
46+
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).
50+
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
57+
58+ * Removed debian directory. Pandoc is no longer a native debian package.
59+
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).
63+
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
84+
85+ * Rewrote test suite so it doesn't depend on perl or unix tools.
86+
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.
101+
102+ * Compatibility fixes for CPP, Cabal, and haddock:
103+
104+ + Use CPP in "Extensions" field in pandoc.cabal.
105+ + Removed use of backslash string continuations in source files.
106+
107+ * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
108+ base >= 3.
109+
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.
114+
115+ * Removed Text.Regex dependencies by rewriting using plain Haskell
116+ (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
117+
118+ * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
119+
120+ * Makefile:
121+
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.
128+
129+ * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
130+ its IO and conversion functions.
131+
132+ * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
133+ everything is -Wall clean.
134+
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.)
138+
139+ * Changed the comment used to replace unsafe HTML if sanitize-html option
140+ selected.
141+
142+ * Made -c/--css option repeatable on the command line (like -H, -A, -B).
143+
144+ * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
145+
146+ * Escape '\160' as "&#160;", not "&nbsp;" in XML.
147+ "nbsp" isn't a predefined XML entity.
148+
149+ * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
150+ Added some try's in ordered list parsers.
151+
152+ * Man writer: don't escape " as \".
153+
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.
157+
158+ * Support for display math. Resolves Issue #47.
159+
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.
167+
168+ * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
169+ to LaTeX in its display of math, and supports many non-math LaTeX environments.
170+
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)
179+
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".
185+
186+ * Markdown smart typography:
187+
188+ + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
189+ + Use nonbreaking spaces after known abbreviations in markdown parser.
190+ Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
191+ not produce a sentence-separating space. Resolves Issue #75.
192+
193+ * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
194+
195+ * Treat '\ ' in (extended) markdown as nonbreaking space.
196+ Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
197+
198+ * The '--sanitize-html' option now examines URIs in markdown links
199+ and images, and in HTML href and src attributes. If the URI scheme
200+ is not on a whitelist of safe schemes, it is rejected. The main point
201+ is to prevent cross-site scripting attacks using 'javascript:' URIs.
202+ See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
203+ and http://ha.ckers.org/xss.html. Resolves Issue #62.
204+
205+ * HTML writer:
206+
207+ + Override Text.XHtml's stringToHtml function,
208+ so that characters below 0xff are not converted to numerical entity
209+ references. Also convert '\160' to "&nbsp;". This should aid readability
210+ and editability of the HTML source. It does presuppose that the HTML
211+ will be served as UTF-8.
212+ + In code blocks, change leading newlines to <br /> tags.
213+ (Some browsers ignore them.) Resolves Issue #71.
214+ See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
215+ + Use style attributes rather than css classes for strikethrough
216+ and ordered list styles. This works better when fragments, rather than
217+ standalone documents, are generated.
13
218
14− -- Recai Oktaş <roktas@debian.org> Sat, 09 Feb 2008 04:41:46 +0200
219+ * HTML reader: Count anything that isn't a known block (HTML) tag as an
220+ inline tag (rather than the other way around). Added "html", "head", and
221+ "body" to list of block tags. Resolves Issue #66, allowing
222+ <lj> to count as an inline tag.
223+
224+ * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
225+ boldface, and other inline elements. Resolves Issue #64.
226+
227+ * LaTeX reader: improvements in raw LaTeX parsing.
228+
229+ + "loose punctuation" (like {}) parsed as Space
230+ + Para elements must contain more than Str "" and Space elements
231+ + Added parser for "\ignore" command used in literate haskell.
232+ + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
233+ mode, these parsers simply strip off the command part and allow
234+ the arguments to be parsed normally. So, for example,
235+ \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
236+ Str "{\\emph{hi}}".
237+ + Parse lhs "code" environments as verbatim.
238+ Refactored parsers for verbatim environments.
239+ + Removed specialEnvironment parser.
240+ + parse '{}', if present, after \textless, \textgreater,
241+ \textbar, \textbackslash, \ldots.
242+ + Parse unescaped special characters verbatim rather than
243+ changing them to spaces. This way arguments of unknown
244+ commands will appear in braces.
245+
246+ * Parse raw ConTeXt environments as TeX in markdown reader.
247+ Resolves Issue #73.
248+
249+ * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
250+
251+ * Made some structural changes to parsing of raw LaTeX environments.
252+ Previously there was a special block parser for LaTeX environments.
253+ It returned a Para element containing the raw TeX inline. This has
254+ been removed, and the raw LaTeX environment parser is now used in the
255+ rawLaTeXInline parser. The effect is exactly the same, except that we
256+ can now handle consecutive LaTeX and ConTeXt environments not separated
257+ by spaces. This new flexibility is required by the example in
258+ Issue #73:
259+
260+ \placeformula \startformula
261+ L_{1} = L_{2}
262+ \stopformula
263+
264+ API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
265+ returns a string) rather than rawLaTeXEnvironment (which returns a block
266+ element). This is more likely to be useful in other applications.
267+
268+ * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
269+ \textsubscript conflicts with a definition in the memoir class.
270+ Resolves Issue #65.
271+
272+ * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
273+
274+ * Added amsmath package to default LaTeX header. Resolves Issue #48.
275+
276+ * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
277+ list introduction lines.
278+
279+ * Changed Float to Double in definition of Table element.
280+ (Double is more efficient in GHC.)
281+
282+ * Fixed bug in Markdown parser: regular $s triggering math mode.
283+ For example: "shoes ($20) and socks ($5)."
284+ The fix consists in two new restrictions:
285+
286+ + the $ that ends a math span may not be directly followed by a digit.
287+ + no blank lines may be included within a math span.
288+
289+ Thanks to Joseph Reagle for noticing the bug.
290+
291+ * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
292+ Removed 'joinWithSep' from Text.Pandoc.Shared.
293+
294+ * Updated README and man pages. Acknowledge contributors in README.
295+ Added paragraph to README about producing S5 with separate CSS/javascript.
296+
297+ * Updated INSTALL to reflect new build system (including configuration
298+ options) and document new dependencies. Added note to INSTALL that
299+ Cabal >= 1.2 is required for build. Resolves Issue #74.
300+
301+ * Fixed some haddock documentation errors.
302+
303+ * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
15
304
16pandoc (0.46) unstable; urgency=low
305pandoc (0.46) unstable; urgency=low
17
306
@@ -26,7 +315,7 @@ pandoc (0.46) unstable; urgency=low
26 attributes will be removed. This option should be especially useful
315 attributes will be removed. This option should be especially useful
27 for those who want to use pandoc libraries in web applications, where
316 for those who want to use pandoc libraries in web applications, where
28 users will provide the input.
317 users will provide the input.
29−
318+
30 + Main.hs: Added --sanitize-html option.
319 + Main.hs: Added --sanitize-html option.
31
320
32 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
321 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
@@ -67,7 +356,7 @@ pandoc (0.46) unstable; urgency=low
67 Resolves Issue #34.
356 Resolves Issue #34.
68
357
69 + Disallowed links within links. (Resolves Issue #35.)
358 + Disallowed links within links. (Resolves Issue #35.)
70− - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
359+ - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
71 instead of hard-coding the inline parser takes an inline parser
360 instead of hard-coding the inline parser takes an inline parser
72 as a parameter.
361 as a parameter.
73 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
362 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
@@ -77,7 +366,7 @@ pandoc (0.46) unstable; urgency=low
77 - Added inlineParsers list and redefined inline and inlineNonLink parsers
366 - Added inlineParsers list and redefined inline and inlineNonLink parsers
78 in terms of it.
367 in terms of it.
79 - Added failIfLink parser.
368 - Added failIfLink parser.
80−
369+
81 + Better handling of parentheses in URLs and quotation marks in titles.
370 + Better handling of parentheses in URLs and quotation marks in titles.
82 - 'source' parser first tries to parse URL with balanced parentheses;
371 - 'source' parser first tries to parse URL with balanced parentheses;
83 if that doesn't work, it tries to parse everything beginning with
372 if that doesn't work, it tries to parse everything beginning with
@@ -125,9 +414,9 @@ pandoc (0.46) unstable; urgency=low
125 <div>
414 <div>
126 the foo won't be treated as a code block, but in
415 the foo won't be treated as a code block, but in
127 <div>
416 <div>
128−
417+
129 foo
418 foo
130−
419+
131 </div>
420 </div>
132 it will. This seems the right approach for least surprise.
421 it will. This seems the right approach for least surprise.
133
422
@@ -147,7 +436,7 @@ pandoc (0.46) unstable; urgency=low
147 + Removed unnecessary check for following link in str.
436 + Removed unnecessary check for following link in str.
148 This is unnecessary now that link is above str in the definition of
437 This is unnecessary now that link is above str in the definition of
149 'inline'.
438 'inline'.
150−
439+
151 * HTML reader:
440 * HTML reader:
152
441
153 + Modified rawHtmlBlock so it parses </html> and </body> tags.
442 + Modified rawHtmlBlock so it parses </html> and </body> tags.
@@ -197,7 +486,7 @@ pandoc (0.46) unstable; urgency=low
197 + Use an interpreted text role to render math in restructuredText.
486 + Use an interpreted text role to render math in restructuredText.
198 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
487 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
199 strategy.
488 strategy.
200−
489+
201 [ Recai Oktaş ]
490 [ Recai Oktaş ]
202
491
203 * Debian packaging changes:
492 * Debian packaging changes:
@@ -258,7 +547,7 @@ pandoc (0.45) unstable; urgency=low
258 math in HTML.
547 math in HTML.
259
548
260 * HTML reader:
549 * HTML reader:
261−
550+
262 + Fixed bug: parser for minimized attributes should not swallow
551 + Fixed bug: parser for minimized attributes should not swallow
263 trailing spaces.
552 trailing spaces.
264 + Simplified HTML attribute parsing.
553 + Simplified HTML attribute parsing.
@@ -269,7 +558,7 @@ pandoc (0.45) unstable; urgency=low
269 surrounded by <pre> now counts as inline HTML, not a code block.
558 surrounded by <pre> now counts as inline HTML, not a code block.
270 + Remove just one leading and one trailing newline from contents of
559 + Remove just one leading and one trailing newline from contents of
271 <pre>...</pre> in codeBlock parser.
560 <pre>...</pre> in codeBlock parser.
272−
561+
273 * Markdown reader:
562 * Markdown reader:
274
563
275 + Removed support for box-style block quotes.
564 + Removed support for box-style block quotes.
@@ -288,13 +577,13 @@ pandoc (0.45) unstable; urgency=low
288 Resolves Issue #27.
577 Resolves Issue #27.
289 + Allow field lists to be indented.
578 + Allow field lists to be indented.
290 + Parse the contents of field lists instead of treating as a raw string.
579 + Parse the contents of field lists instead of treating as a raw string.
291− + Represent field lists as definition lists instead of blockquotes.
580+ + Represent field lists as definition lists instead of blockquotes.
292 + Fixed bug in which metadata would be overridden if the document
581 + Fixed bug in which metadata would be overridden if the document
293 contained multiple field lists.
582 contained multiple field lists.
294 + Parse fields associated with '.. image::' blocks, and use 'alt'
583 + Parse fields associated with '.. image::' blocks, and use 'alt'
295− field, if given, for image alt and title attributes.
584+ field, if given, for image alt and title attributes.
296
585
297− * LaTeX reader:
586+ * LaTeX reader:
298
587
299 + Modified specialChar so that '"' characters are parsed.
588 + Modified specialChar so that '"' characters are parsed.
300 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
589 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
@@ -306,7 +595,7 @@ pandoc (0.45) unstable; urgency=low
306 no headers. (This would be an empty list, which is invalid XHTML.)
595 no headers. (This would be an empty list, which is invalid XHTML.)
307
596
308 * Markdown writer:
597 * Markdown writer:
309−
598+
310 + Don't print title attribute if title is empty. (This differs from
599 + Don't print title attribute if title is empty. (This differs from
311 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
600 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
312 Gruber has indicated that he prefers this behavior.) Adjusted test
601 Gruber has indicated that he prefers this behavior.) Adjusted test
@@ -317,18 +606,18 @@ pandoc (0.45) unstable; urgency=low
317 a marker greater than 3 characters in width, and the item took more
606 a marker greater than 3 characters in width, and the item took more
318 than one line, it would appear on the line after the list marker,
607 than one line, it would appear on the line after the list marker,
319 e.g.:
608 e.g.:
320−
609+
321 (12)
610 (12)
322 My list item.
611 My list item.
323 Multiline.
612 Multiline.
324−
613+
325 Now it works as follows:
614 Now it works as follows:
326−
615+
327 (12) My list item.
616 (12) My list item.
328 Multiline.
617 Multiline.
329−
618+
330 * RST writer
619 * RST writer
331−
620+
332 + Fixed bug in RST writer's handling of ordered lists. Previously,
621 + Fixed bug in RST writer's handling of ordered lists. Previously,
333 list items with multiple lines would not always line up with
622 list items with multiple lines would not always line up with
334 single-line list items. Now, list items are nested the length of
623 single-line list items. Now, list items are nested the length of
@@ -371,7 +660,7 @@ pandoc (0.45) unstable; urgency=low
371 the appropriate scheme can be used.
660 the appropriate scheme can be used.
372 + Changed \useurl to \useURL.
661 + Changed \useurl to \useURL.
373 + Changed link color from red to blue.
662 + Changed link color from red to blue.
374− + Use \subsubsubsubsection etc., since these are supported
663+ + Use \subsubsubsubsection etc., since these are supported
375 (up to at least sub x 5).
664 (up to at least sub x 5).
376
665
377 * Text.Pandoc.Shared:
666 * Text.Pandoc.Shared:
@@ -433,14 +722,14 @@ pandoc (0.45) unstable; urgency=low
433 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
722 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
434 will work properly with either GHC 6.6 or 6.8.
723 will work properly with either GHC 6.6 or 6.8.
435 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
724 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
436− This is where current versions of Cabal put it.
725+ This is where current versions of Cabal put it.
437 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
726 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
438 + Removed dependency of templates on ./templates, which is circular
727 + Removed dependency of templates on ./templates, which is circular
439 now that templates is a subdirectory of the top-level.
728 now that templates is a subdirectory of the top-level.
440
729
441 * MacPorts Portfile:
730 * MacPorts Portfile:
442
731
443− + Modified to install the pandoc library in addition to programs.
732+ + Modified to install the pandoc library in addition to programs.
444 + Installation must be done manually rather than using Makefile's
733 + Installation must be done manually rather than using Makefile's
445 install-all.
734 install-all.
446 + Note that the library must be registered in the activate phase,
735 + Note that the library must be registered in the activate phase,
@@ -508,7 +797,7 @@ pandoc (0.43) unstable; urgency=low
508
797
509 * The focus of this release is performance. The markdown parser
798 * The focus of this release is performance. The markdown parser
510 is about five times faster than in 0.42, based on benchmarks
799 is about five times faster than in 0.42, based on benchmarks
511− with the TextMate manual.
800+ with the TextMate manual.
512
801
513 * Main.hs: Replaced CRFilter and tabFilter with single function
802 * Main.hs: Replaced CRFilter and tabFilter with single function
514 tabFilter, which operates on the whole string rather than breaking
803 tabFilter, which operates on the whole string rather than breaking
@@ -667,7 +956,7 @@ pandoc (0.42) unstable; urgency=low
667 + Removed check for a following setext header in endline.
956 + Removed check for a following setext header in endline.
668 A full test is too inefficient (doubles benchmark time), and the
957 A full test is too inefficient (doubles benchmark time), and the
669 substitute we had before is not 100% accurate.
958 substitute we had before is not 100% accurate.
670− + Don't use Code elements for autolinks if --strict specified.
959+ + Don't use Code elements for autolinks if --strict specified.
671
960
672 * LaTeX writer: When a footnote ends with a Verbatim environment, the
961 * LaTeX writer: When a footnote ends with a Verbatim environment, the
673 close } of the footnote cannot occur on the same line or an error occurs.
962 close } of the footnote cannot occur on the same line or an error occurs.
@@ -750,7 +1039,7 @@ pandoc (0.4) unstable; urgency=low
750 list number style, list number delimiter, and starting number.
1039 list number style, list number delimiter, and starting number.
751 + The readers parse this information when possible.
1040 + The readers parse this information when possible.
752 + The writers use this information to style ordered lists.
1041 + The writers use this information to style ordered lists.
753− + The enhancement can be disabled using the --strict option.
1042+ + The enhancement can be disabled using the --strict option.
754
1043
755 * Added support for tables (with a new Table block element). Two kinds
1044 * Added support for tables (with a new Table block element). Two kinds
756 of tables are supported: a simple table with one-line rows, and a
1045 of tables are supported: a simple table with one-line rows, and a
@@ -811,7 +1100,7 @@ pandoc (0.4) unstable; urgency=low
811 is now the only module that uses them. NoteTable is now exported
1100 is now the only module that uses them. NoteTable is now exported
812 in Text.Pandoc.Shared.
1101 in Text.Pandoc.Shared.
813 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
1102 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
814− stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
1103+ stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
815 + Added writerNotes and writerReferenceLinks to WriterOptions.
1104 + Added writerNotes and writerReferenceLinks to WriterOptions.
816
1105
817 * Added Text.Pandoc module that exports basic readers, writers,
1106 * Added Text.Pandoc module that exports basic readers, writers,
@@ -849,7 +1138,7 @@ pandoc (0.4) unstable; urgency=low
849 * Changed handling of XML entities. Entities are now parsed (and unicode
1138 * Changed handling of XML entities. Entities are now parsed (and unicode
850 characters returned) in the Markdown and HTML readers, rather than being
1139 characters returned) in the Markdown and HTML readers, rather than being
851 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
1140 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
852− instead of entities for characters above 128. This makes the HTML and
1141+ instead of entities for characters above 128. This makes the HTML and
853 DocBook output much more readable and more easily editable.
1142 DocBook output much more readable and more easily editable.
854
1143
855 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
1144 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
@@ -858,16 +1147,16 @@ pandoc (0.4) unstable; urgency=low
858 Moved both functions to Text.Pandoc.Writers.Docbook.
1147 Moved both functions to Text.Pandoc.Writers.Docbook.
859 + Added characterReference parser to Text.Pandoc.CharacterReferences.
1148 + Added characterReference parser to Text.Pandoc.CharacterReferences.
860 This parses a string and return a unicode character.
1149 This parses a string and return a unicode character.
861− + Rewrote decodeCharacterReferences to use the new parser instead of
1150+ + Rewrote decodeCharacterReferences to use the new parser instead of
862 Text.Regex.
1151 Text.Regex.
863 + Added new charRef parser for Markdown and HTML, which replaces the
1152 + Added new charRef parser for Markdown and HTML, which replaces the
864 old 'entity' parser. Added '&' as a special character in Markdown reader.
1153 old 'entity' parser. Added '&' as a special character in Markdown reader.
865 + Modified HTML and Markdown readers to call decodeEntities on all raw
1154 + Modified HTML and Markdown readers to call decodeEntities on all raw
866− strings (e.g. authors, dates, link titles), to ensure that no
1155+ strings (e.g. authors, dates, link titles), to ensure that no
867 unprocessed entities are included in the native representation of
1156 unprocessed entities are included in the native representation of
868− the document. (In the HTML reader, most of this work is done by a
1157+ the document. (In the HTML reader, most of this work is done by a
869 change in extractAttributeName.)
1158 change in extractAttributeName.)
870− + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
1159+ + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
871 since a unicode non-breaking space is impossible to distinguish visually
1160 since a unicode non-breaking space is impossible to distinguish visually
872 from a regular space. (Resolves Issue #3.)
1161 from a regular space. (Resolves Issue #3.)
873 + Removed encodeEntitiesNumerical.
1162 + Removed encodeEntitiesNumerical.
@@ -915,10 +1204,10 @@ pandoc (0.4) unstable; urgency=low
915 may cause documents to be parsed differently. Users should take
1204 may cause documents to be parsed differently. Users should take
916 care in upgrading.
1205 care in upgrading.
917 + Changed autoLink parsing to conform better to Markdown.pl's
1206 + Changed autoLink parsing to conform better to Markdown.pl's
918− behavior. <google.com> is not treated as a link, but
1207+ behavior. <google.com> is not treated as a link, but
919 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
1208 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
920 are.
1209 are.
921− + Cleaned up handling of embedded quotes in link titles. Now these are
1210+ + Cleaned up handling of embedded quotes in link titles. Now these are
922 stored as a '"' character, not as '&quot;'.
1211 stored as a '"' character, not as '&quot;'.
923 + Use lookAhead parser for the 'first pass' (looking for reference keys),
1212 + Use lookAhead parser for the 'first pass' (looking for reference keys),
924 instead of parsing normally, then using setInput to reset input. This
1213 instead of parsing normally, then using setInput to reset input. This
@@ -931,7 +1220,7 @@ pandoc (0.4) unstable; urgency=low
931 lines in links and reference keys. They can be on separate lines but
1220 lines in links and reference keys. They can be on separate lines but
932 can't have blank lines between them.
1221 can't have blank lines between them.
933 + Correctly handle bracketed text inside inline footnotes and links,using
1222 + Correctly handle bracketed text inside inline footnotes and links,using
934− new function inlinesInBalanced. Resolves Issue #14.
1223+ new function inlinesInBalanced. Resolves Issue #14.
935 + Fixed bug in footnotes: links in footnotes were not being
1224 + Fixed bug in footnotes: links in footnotes were not being
936 processed. Solution: three-stage parse. First, get all the
1225 processed. Solution: three-stage parse. First, get all the
937 reference keys and add information to state. Next, get all the
1226 reference keys and add information to state. Next, get all the
@@ -947,7 +1236,7 @@ pandoc (0.4) unstable; urgency=low
947 + Added 'try' in front of 'string', where needed, or used a different
1236 + Added 'try' in front of 'string', where needed, or used a different
948 parser. This fixes a bug where ````` would not be correctly parsed as
1237 parser. This fixes a bug where ````` would not be correctly parsed as
949 a verbatim `.
1238 a verbatim `.
950− + Fixed slow performance in parsing inline literals in RST reader. The
1239+ + Fixed slow performance in parsing inline literals in RST reader. The
951 problem was that ``#`` was seen by 'inline' as a potential link or image.
1240 problem was that ``#`` was seen by 'inline' as a potential link or image.
952 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
1241 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
953 Resolves Issue #8.
1242 Resolves Issue #8.
@@ -974,7 +1263,7 @@ pandoc (0.4) unstable; urgency=low
974 other projects, like wikis, which use Text.XHtml. Two functions are
1263 other projects, like wikis, which use Text.XHtml. Two functions are
975 now provided, writeHtml and writeHtmlString: the former outputs an
1264 now provided, writeHtml and writeHtmlString: the former outputs an
976 Html structure, the latter a rendered string. The S5 writer is also
1265 Html structure, the latter a rendered string. The S5 writer is also
977− changed, in parallel ways (writeS5, writeS5String).
1266+ changed, in parallel ways (writeS5, writeS5String).
978 + The Html header is now written programmatically, so it has been
1267 + The Html header is now written programmatically, so it has been
979 removed from the 'headers' directory. The S5 header is still
1268 removed from the 'headers' directory. The S5 header is still
980 needed, but the doctype and some of the meta declarations have
1269 needed, but the doctype and some of the meta declarations have
@@ -1013,7 +1302,7 @@ pandoc (0.4) unstable; urgency=low
1013 + Links in markdown output are now printed as inline links by default,
1302 + Links in markdown output are now printed as inline links by default,
1014 rather than reference links. A --reference-links option has been added
1303 rather than reference links. A --reference-links option has been added
1015 that forces links to be printed as reference links. Resolves Issue #4.
1304 that forces links to be printed as reference links. Resolves Issue #4.
1016− + Use autolinks when possible. Instead of [site.com](site.com),
1305+ + Use autolinks when possible. Instead of [site.com](site.com),
1017 use <site.com>.
1306 use <site.com>.
1018
1307
1019 * LaTeX writer:
1308 * LaTeX writer:
@@ -1051,7 +1340,7 @@ pandoc (0.4) unstable; urgency=low
1051 for processing header blocks for a table of contents, since notes on
1340 for processing header blocks for a table of contents, since notes on
1052 headers should not appear in the TOC.
1341 headers should not appear in the TOC.
1053 + Added prettyprinting for native Table format.
1342 + Added prettyprinting for native Table format.
1054− + Removed some unneeded imports.
1343+ + Removed some unneeded imports.
1055 + Moved escape and nullBlock parsers from
1344 + Moved escape and nullBlock parsers from
1056 Text.ParserCombinators.Pandoc, since the latter is for
1345 Text.ParserCombinators.Pandoc, since the latter is for
1057 general-purpose parsers that don't depend on Text.Pandoc.Definition.
1346 general-purpose parsers that don't depend on Text.Pandoc.Definition.
@@ -1075,8 +1364,8 @@ pandoc (0.4) unstable; urgency=low
1075 string "", but it should fail on an empty string, or we get an error
1364 string "", but it should fail on an empty string, or we get an error
1076 when it is used inside "many" combinators.
1365 when it is used inside "many" combinators.
1077 + Removed followedBy' parser, replacing it with the lookAhead parser from
1366 + Removed followedBy' parser, replacing it with the lookAhead parser from
1078− Parsec.
1367+ Parsec.
1079− + Added some needed 'try's before multicharacter parsers, especially in
1368+ + Added some needed 'try's before multicharacter parsers, especially in
1080 'option' contexts.
1369 'option' contexts.
1081 + Removed the 'try' from the 'end' parser in 'enclosed', so that
1370 + Removed the 'try' from the 'end' parser in 'enclosed', so that
1082 'enclosed' behaves like 'option', 'manyTill', etc.
1371 'enclosed' behaves like 'option', 'manyTill', etc.
@@ -1093,18 +1382,18 @@ pandoc (0.4) unstable; urgency=low
1093 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
1382 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
1094 Space.
1383 Space.
1095
1384
1096− * Refactored runtests.pl; added separate tests for tables.
1385+ * Refactored runtests.pl; added separate tests for tables.
1097
1386
1098 * Shell scripts:
1387 * Shell scripts:
1099
1388
1100 + Added -asxhtml flag to tidy in html2markdown. This will
1389 + Added -asxhtml flag to tidy in html2markdown. This will
1101 perhaps help the parser, which expects closing tags.
1390 perhaps help the parser, which expects closing tags.
1102 + Modified markdown2pdf to run pdflatex a second time if --toc or
1391 + Modified markdown2pdf to run pdflatex a second time if --toc or
1103− --table-of-contents was specified; otherwise the table of
1392+ --table-of-contents was specified; otherwise the table of
1104 contents won't appear.
1393 contents won't appear.
1105 + Modified markdown2pdf to print a helpful message if the 'ulem'
1394 + Modified markdown2pdf to print a helpful message if the 'ulem'
1106 LaTeX package is required and not found.
1395 LaTeX package is required and not found.
1107−
1396+
1108 * Changes to build process:
1397 * Changes to build process:
1109
1398
1110 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
1399 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
@@ -1112,7 +1401,7 @@ pandoc (0.4) unstable; urgency=low
1112 + Removed cabalize and Pandoc.cabal.in. The repository now contains
1401 + Removed cabalize and Pandoc.cabal.in. The repository now contains
1113 pandoc.cabal itself.
1402 pandoc.cabal itself.
1114 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
1403 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
1115− likes the cabal file to have the same name as the tarball.
1404+ likes the cabal file to have the same name as the tarball.
1116 + Expanded and revised the package description in pandoc.cabal.
1405 + Expanded and revised the package description in pandoc.cabal.
1117 Revised the package synopsis.
1406 Revised the package synopsis.
1118 + The tarball built by 'make tarball' now contains files built from
1407 + The tarball built by 'make tarball' now contains files built from
@@ -1129,7 +1418,7 @@ pandoc (0.4) unstable; urgency=low
1129
1418
1130 + Updated README and man pages with information on new features.
1419 + Updated README and man pages with information on new features.
1131 + Updated INSTALL instructions with some useful clarifications and
1420 + Updated INSTALL instructions with some useful clarifications and
1132− links.
1421+ links.
1133 + Updated web content.
1422 + Updated web content.
1134
1423
1135 * Added FreeBSD port.
1424 * Added FreeBSD port.
@@ -1243,7 +1532,7 @@ pandoc (0.3) unstable; urgency=low
1243
1532
1244 * Minor improvements to LaTeX reader:
1533 * Minor improvements to LaTeX reader:
1245
1534
1246− + '\thanks' now treated like a footnote.
1535+ + '\thanks' now treated like a footnote.
1247 + Simplified parsing of LaTeX command arguments and options.
1536 + Simplified parsing of LaTeX command arguments and options.
1248 commandArgs now returns a list of arguments OR options (in
1537 commandArgs now returns a list of arguments OR options (in
1249 whatever order they appear). The brackets are included, and
1538 whatever order they appear). The brackets are included, and
@@ -1299,11 +1588,11 @@ pandoc (0.3) unstable; urgency=low
1299 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
1588 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
1300 option and disables other options.
1589 option and disables other options.
1301
1590
1302− * Added code to html2markdown that tries to determine the character
1591+ * Added code to html2markdown that tries to determine the character
1303 encoding of an HTML file, by parsing the "Content-type" meta tag.
1592 encoding of an HTML file, by parsing the "Content-type" meta tag.
1304
1593
1305 + If the encoding can't be determined, then if the content is local,
1594 + If the encoding can't be determined, then if the content is local,
1306− the local encoding is used; if it comes from a URL, UTF-8 is used
1595+ the local encoding is used; if it comes from a URL, UTF-8 is used
1307 by default.
1596 by default.
1308 + If input is from STDIN, don't try to determine character encoding.
1597 + If input is from STDIN, don't try to determine character encoding.
1309 + Encoding can be specified explicitly using '-e' option.
1598 + Encoding can be specified explicitly using '-e' option.
@@ -1316,7 +1605,7 @@ pandoc (0.3) unstable; urgency=low
1316
1605
1317 * Code cleanup:
1606 * Code cleanup:
1318
1607
1319− + Renamed 'Text/Pandoc/HtmlEntities' module to
1608+ + Renamed 'Text/Pandoc/HtmlEntities' module to
1320 'Text/Pandoc/Entities'. Also changed function names so as
1609 'Text/Pandoc/Entities'. Also changed function names so as
1321 not to be HTML-specific.
1610 not to be HTML-specific.
1322 + Refactored SGML string escaping functions from HTML and Docbook
1611 + Refactored SGML string escaping functions from HTML and Docbook
@@ -1357,7 +1646,7 @@ pandoc (0.3) unstable; urgency=low
1357 * Refactored template processing (fillTemplates.pl).
1646 * Refactored template processing (fillTemplates.pl).
1358
1647
1359 * Modified wrapper scripts to make them more robust and portable.
1648 * Modified wrapper scripts to make them more robust and portable.
1360− To avoid code duplication and ensure consistency, wrappers are
1649+ To avoid code duplication and ensure consistency, wrappers are
1361 generated via a templating system from templates in src/wrappers.
1650 generated via a templating system from templates in src/wrappers.
1362
1651
1363 + Wrappers now accept multiple filenames, when appropriate.
1652 + Wrappers now accept multiple filenames, when appropriate.
@@ -1376,6 +1665,6 @@ pandoc (0.2) unstable; urgency=low
1376
1665
1377pandoc (0.1) unstable; urgency=low
1666pandoc (0.1) unstable; urgency=low
1378
1667
1379− * Initial creation of debian package
1668+ * Initial creation of debian package
1380
1669
1381 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
1670 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400