Commit graph

  • 78ff2d2fee Modified html2x.pl URL validation regex: + allow port number in URL + allow : in URL path fiddlosopher 2007-09-17 19:55:22 +00:00
  • 65047e354a Remove just one leading and one trailing newline from contents of <pre>...</pre> in codeBlock parser. fiddlosopher 2007-09-17 03:08:14 +00:00
  • 6f16d52c11 Changed parsing of code blocks in HTML reader: + <code> tag is no longer needed. <pre> suffices. + all HTML tags in the code block (e.g. for syntax highlighting) are skipped, because they are not portable to other output formats. fiddlosopher 2007-09-17 02:49:28 +00:00
  • 2094534b3c Modified html2x webpage. fiddlosopher 2007-09-16 19:40:17 +00:00
  • e00b892bf6 Added Google analytics tracking to website. fiddlosopher 2007-09-16 16:58:04 +00:00
  • 9ed11f4500 Fixed URL regex in html2x.pl, and added a command to the pipe to truncate input pages to 100K. fiddlosopher 2007-09-15 21:30:31 +00:00
  • bf100f8276 Added security measures to html2x.pl. fiddlosopher 2007-09-15 03:15:27 +00:00
  • b5819b8ed6 Added html2x demo to the website. fiddlosopher 2007-09-15 01:53:49 +00:00
  • d5b7257d7f Simplified HTML attribute parsing (HTML reader). fiddlosopher 2007-09-15 00:44:32 +00:00
  • 28c2ee396c Fixed two bugs in HTML reader: + <code>...</code> not surrounded by <pre> should count as inline HTML, not code block. + parser for minimized attributes should not swallow trailing spaces fiddlosopher 2007-09-14 22:40:28 +00:00
  • 85f655c8cb Changed pandoc home page to http://johnmacfarlane.net/pandoc/. fiddlosopher 2007-09-13 17:26:01 +00:00
  • 9cadf53621 + Fixed bug in RST writer's handling of ordered lists. Previously, list items with multiple lines would not always line up with single-line list items. Now, list items are nested the length of the list marker + 1. This looks better and ensures that list items all line up. (Note that list markers are padded to the length of the longest list marker in the series.) + Use 3-space indent for unordered lists. fiddlosopher 2007-09-10 23:44:21 +00:00
  • 4b4060b8ef Simplified parsing of reference keys and notes in markdown and RST readers: + The Reference data structure from Text.Pandoc.Shared is no longer needed, since + referenceKey and noteBlock parses return strings (as many blank lines as are occuried by the key or note) and update state themselves. + getPosition and setPosition are now used to ensure that error messages will give the correct line number. + This yields cleaner (and slightly faster) code, with more accurate parsing error messages. fiddlosopher 2007-09-05 23:55:38 +00:00
  • d5e8ab71a4 HTML writer: Don't produce HTML for table of contents if there are no headers. (This would be an empty list, which is invalid XHTML.) fiddlosopher 2007-09-05 02:16:50 +00:00
  • 9726ec04f5 Bumped version to 0.45. fiddlosopher 2007-09-05 02:16:05 +00:00
  • 9ce29d2a67 Updated website with news of 0.43. fiddlosopher 2007-09-03 18:27:24 +00:00
  • 4088ef9d36 Updated debian/changelog. fiddlosopher 2007-09-03 18:17:05 +00:00
  • 175a7e27ee No need to add $(BUILDDIR) and $(BUILDCONF) to cleanup_files, because they are removed automatically by '$(BUILDCMD) clean'. fiddlosopher 2007-09-03 18:06:38 +00:00
  • 1142c88727 * The previous fix was wrong. Apply a proper fix and cross the fingers. :-) + On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build command instead of 'runhaskell', which, on some platforms (such as s390, alpha, m68k), throws the following error: runhaskell Setup.hs configure --prefix=/usr ghc-6.6.1: not built for interactive use This causes a serious FTBFS bug. Closes: #440668 (from Debian BTS). + Setup.hs: revert changes. roktas 2007-09-03 16:57:17 +00:00
  • b13e696c93 * Urgent fix to address the following issue: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440668 The below link of a similar bug explains things a bit more: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=431843#22 roktas 2007-09-03 15:31:47 +00:00
  • 2ea3e94957 Added xmlns attribute to html element in html writer tests. This attribute is added by more recent versions of the xhtml library, including the one that comes with GHC 6.6.1. fiddlosopher 2007-09-03 03:02:01 +00:00
  • bab51c6d44 Changed link to Arch PKGBUILD script on website. fiddlosopher 2007-09-02 17:52:55 +00:00
  • d87b226f1f Bump version numbers to 0.44, which will be the next bug-fix release (when enough bug fixes have accumulated). fiddlosopher 2007-09-02 17:23:26 +00:00
  • 4f3ad778ba HTML writer: put anchors around contents of headers, not around the header tags themselves, when producing backlinks to TOC. Resolves Issue #23. fiddlosopher 2007-09-02 17:22:22 +00:00
  • fcdbb7b058 Fixed CSS for website so headers linked back to TOC don't have lines under them. fiddlosopher 2007-09-02 17:21:09 +00:00
  • 8c2ceebd72 Added note about Arch linux PKGBUILD script. fiddlosopher 2007-09-02 16:57:29 +00:00
  • 4647f6482e Small changes in website. fiddlosopher 2007-09-02 15:03:18 +00:00
  • 65703dc39b Removed files no longer needed in website: + pandocwiki tarball + highlight.css fiddlosopher 2007-09-02 14:54:24 +00:00
  • 4466607760 Fixed formatting mistakes in 0.43 news on website. fiddlosopher 2007-09-02 14:53:55 +00:00
  • 7f8bac70d7 Added link to google code svn repository for pandocwiki, instead of tarball. fiddlosopher 2007-09-02 14:53:28 +00:00
  • ed85501529 Added '-font monospace' to highlight command, so wretched courier new won't be used in highlighted HTML and LaTeX in demos. fiddlosopher 2007-09-02 14:52:36 +00:00
  • 6a71ea1481 * debian/changelog: add signature roktas 2007-09-02 12:44:42 +00:00
  • e2675ffcd4 Updated website with news of 0.43... fiddlosopher 2007-09-02 05:40:30 +00:00
  • 4ddb156f4e Updated debian/changelog. fiddlosopher 2007-09-02 05:31:43 +00:00
  • a70c2b261e Markdown writer: escape paragraphs that begin with ordered list markers, so they don't get interpreted as ordered lists. fiddlosopher 2007-09-02 00:39:56 +00:00
  • 0982a67585 LaTeX command and environment names can't contain numbers. LaTeX reader updated accordingly. fiddlosopher 2007-09-02 00:36:44 +00:00
  • f6043ef7bf Added separate latex reader and native reader tests; removed round-trip tests. fiddlosopher 2007-09-01 20:54:39 +00:00
  • 25bbe134cb Skip notes parsing if running in strict mode. (This yields a nice speed improvement in strict mode.) fiddlosopher 2007-09-01 20:26:40 +00:00
  • 76d462c1cd Simplify autolink parsing code, using Network.URI to test for URIs. Added dependency on network library to debian/control and pandoc.cabal. fiddlosopher 2007-09-01 17:22:22 +00:00
  • f8f9fa49d6 More perspicuous definition of nonindentSpaces. fiddlosopher 2007-09-01 16:08:47 +00:00
  • 5c1632be5d Removed unneeded 'try' in 'rawLine'. fiddlosopher 2007-09-01 02:26:39 +00:00
  • 85d49ee936 Combined linebreak and whitespace into a new whitespace parser, to avoid unnecessary reparsing of space characters. fiddlosopher 2007-09-01 02:18:25 +00:00
  • 8d3bec3e4d Removed unnecessary 'try' in 'codeBlock'. fiddlosopher 2007-09-01 02:10:30 +00:00
  • bdf78fe33f Use lookAhead in parsers for setext headers and definition lists to see if the next line begins appropriately; if not, don't waste any more time parsing... fiddlosopher 2007-09-01 02:01:12 +00:00
  • f55d62c04a Don't require blank lines after code block. (It's sufficient to end code block with a nonindented line.) fiddlosopher 2007-08-31 22:21:41 +00:00
  • c206332558 Changed definition of 'emph': italics with '_' must not be followed by an alphanumeric character. This is to help prevent interpretation of e.g. [LC_TYPE]: my_type as '[LC<em>TYPE]:my</em>type'. fiddlosopher 2007-08-31 22:15:35 +00:00
  • 0c09f4c529 Makefile: Get VERSION from cabal file, not Main.hs. fiddlosopher 2007-08-31 06:25:00 +00:00
  • 89ec99c383 Cleanup up Text.Pandoc.Shared to eliminate warnings when compiling with -Wall. fiddlosopher 2007-08-31 03:32:47 +00:00
  • 1f9e61b95d Modified MacPorts Portfile: + depend on haddock + build and install libraries and library documentation in addition to the executable fiddlosopher 2007-08-30 23:28:22 +00:00
  • dcb1dd1ee4 Replaced individual wrapping routines in RST, Man, and Markdown writers with 'wrapped' from Text.Pandoc.Shared. fiddlosopher 2007-08-30 22:59:13 +00:00
  • 7ff2706838 Removed extra blank lines at end of LaTeX writer tests. fiddlosopher 2007-08-30 22:49:41 +00:00
  • 33d47ced76 Added 'wrapped' function to Text.Pandoc.Shared. This helps wrap text into paragraphs, using the prettyprinting library. fiddlosopher 2007-08-30 22:49:20 +00:00
  • 1827ab40c3 Rewrote LaTeX writer to use the prettyprinting library, so we get word wrapping, etc. fiddlosopher 2007-08-30 22:48:34 +00:00
  • 18f150c020 Modified latex writer tests for new latex writer using prettyprinter. fiddlosopher 2007-08-30 20:34:24 +00:00
  • 8919f20abe Version bump to 0.43. fiddlosopher 2007-08-30 19:16:12 +00:00
  • 3b790b80f3 Fixed bug in LaTeX reader, which wrongly assumed that the roman numeral after "enum" in "setcounter" would consist entirely of "i"s. enumiv is legitimate. fiddlosopher 2007-08-30 19:12:50 +00:00
  • 14dc520669 Cleaned up LaTeX reader. Rearranged order of parsers in inline for slight speed improvement. Added ` to special characters and 'unescapedChar'. fiddlosopher 2007-08-29 21:03:26 +00:00
  • 451b426fd6 Removed unneeded try's in RST reader; also minor code cleanup. fiddlosopher 2007-08-29 20:39:31 +00:00
  • 2a37d8d30a Efficiency improvements to RST reader (more than doubled speed): + removed tabchar + rearranged parsers in inline fiddlosopher 2007-08-29 20:22:24 +00:00
  • 015644b60e Purely stylistic change. fiddlosopher 2007-08-29 20:03:28 +00:00
  • 7f8ec9577e Removed unneeded 'try' in 'ellipses'. fiddlosopher 2007-08-29 19:59:08 +00:00
  • 60f700997c + Fixed bug introduced into referenceTitle by previous changes. Now it works as before. + Improved Markdown.pl-compatibility in referenceLink: the two parts of a reference-style link may be separated by one space, but not more... [a] [link], [not] [a link]. fiddlosopher 2007-08-29 19:57:01 +00:00
  • 845a658aff Fixed markdown inline code parsing so it better accords with Markdown.pl: the marker for the end of the code section is a clump of the same number of 's with which the section began, followed by a non- character. So, for example, fiddlosopher 2007-08-29 16:38:41 +00:00
  • 77f63605f5 Small change to referenceTitle: should end with line-end, not ')'. fiddlosopher 2007-08-29 01:53:50 +00:00
  • 21a2acaac9 Split 'title' into 'linkTitle' and 'referenceTitle', since the rules are slightly different. fiddlosopher 2007-08-29 01:51:03 +00:00
  • 86cc8c8bf2 Rewrote charsInBalanced and charsInBalanced'. - Documented restriction: open and close must be distinct characters. - Rearranged options for greater efficiency. - Changed inner call to charsInBalanced inside charsInBalanced' to charsInBalanced'. fiddlosopher 2007-08-29 01:50:36 +00:00
  • 64023d8ba8 Removed unneeded 'try' from noteMarker. fiddlosopher 2007-08-29 00:16:50 +00:00
  • 40b870375d Minor reformatting. fiddlosopher 2007-08-29 00:11:37 +00:00
  • 3edf5834e8 Rewrote 'para' for greater efficiency. fiddlosopher 2007-08-29 00:08:18 +00:00
  • 902d6c7115 Fixed bug in LaTeX writer: autolinks would not cause '\usepackage{url}' to be put in the document header. Also, changes to state in enumerated list items would be overwritten. fiddlosopher 2007-08-29 00:03:45 +00:00
  • 5bafe2c9fb Minor reformatting. fiddlosopher 2007-08-28 22:44:01 +00:00
  • fcb91e8e51 Rewrote link parsers for greater efficiency. fiddlosopher 2007-08-28 22:41:05 +00:00
  • e407279b35 anyLine now requires that the line end with a newline (not eof). This is a harmless assumption, since we always add newlines to the end of a block before parsing with anyLine. Yields a 10% speed boost! fiddlosopher 2007-08-28 21:17:08 +00:00
  • 365c349249 Main: Replaced tabsToSpacesInLine and tabFilter with single function tabFilter, which operates on the whole string rather than breaking it into lines. fiddlosopher 2007-08-28 19:54:16 +00:00
  • 8fdf8c1d4c + Removed tabsToSpaces and tabsInLine from Text.Pandoc.Shared. (They were used only in Main.) + Wrote new tabsToSpacesInLine function in Main that changes tabs to spaces and removes DOS line-endings in one pass, for a slight speed improvement. fiddlosopher 2007-08-28 19:33:47 +00:00
  • cda7e7ac21 Removed redundant 'referenceLink' in definition of inline (it's already in 'link'). fiddlosopher 2007-08-28 07:31:18 +00:00
  • 6906584f47 Refactored escapeChar so it doesn't need 'try'. fiddlosopher 2007-08-28 07:24:56 +00:00
  • 06a5a0e235 Removed unneeded 'try' in multilineRow. fiddlosopher 2007-08-28 07:22:21 +00:00
  • ce800f7121 Removed unneeded 'try' in dashedLine. fiddlosopher 2007-08-28 07:20:47 +00:00
  • 3e337eb9c8 Removed unneeded try in rawHtmlBlocks (Markdown parser). fiddlosopher 2007-08-28 07:19:07 +00:00
  • 74dc62e730 Refactored hrule for performance in Markdown reader. fiddlosopher 2007-08-28 07:04:47 +00:00
  • 8cf4971821 Minor reformatting. fiddlosopher 2007-08-28 06:59:57 +00:00
  • 0c475bfd47 Refactored setext header parsing in Markdown reader for greater speed. fiddlosopher 2007-08-28 06:58:20 +00:00
  • 18b379c1ca More rearranging in definition of inline. fiddlosopher 2007-08-28 06:44:47 +00:00
  • b6ebe75656 More intelligent rearranging of 'inline' for speed boosts in Text.Pandoc.Readers.Markdown. fiddlosopher 2007-08-28 06:38:38 +00:00
  • b94f541477 Removed unneeded 'try' from romanNumeral parser. fiddlosopher 2007-08-28 06:07:06 +00:00
  • 6765fadd12 Use notFollowedBy instead of notFollowedBy' in charsInBalanced. fiddlosopher 2007-08-28 06:04:57 +00:00
  • f10ac4359c Removed unneeded 'try' in 'parseFromString'. fiddlosopher 2007-08-28 06:02:12 +00:00
  • da9271c258 Removed unneeded 'try' from stringAnyCase. (Now it behaves like 'string'.) fiddlosopher 2007-08-28 06:00:51 +00:00
  • f04df62db1 Changed definition of 'enclosed' in Text.Pandoc.Shared so that 'try' is not automatically applied to the 'end' parser. Added 'try' in calls to 'enclosed' where needed. Slight speed increase. fiddlosopher 2007-08-28 05:58:21 +00:00
  • a6da87f484 Minor code cleanup in Text.Pandoc.Shared. fiddlosopher 2007-08-28 03:06:05 +00:00
  • 1d8fe2653a Performance improvements: + Rearranged parsers in definition of 'inline' so that the most frequently used would (by and large) be tried first. + Removed some unneeded 'try's. + Removed tabchar parser, as whitespace handles tabs anyway. + All in all, these changes, together with the last two commits, cut almost in half the time it takes pandoc to parse a large test file. fiddlosopher 2007-08-28 02:33:53 +00:00
  • 08fbfa37cc Removed unnecessary 'try' in 'anyLine' (Text.Pandoc.Shared). fiddlosopher 2007-08-28 02:31:17 +00:00
  • 583536a138 Refactored Text.Pandoc.CharacterReferences. Removed unnecessary 'try's for a speed improvement. Removed unnecessary '&' and ';' from the entity table. fiddlosopher 2007-08-28 02:30:38 +00:00
  • 1ca8887a90 Added template item for md5 sum in Portfile.in. fiddlosopher 2007-08-27 22:25:30 +00:00
  • 76f918ad9f Updated Portfile.in to match the version in the MacPorts repository (r28278 in MacPorts). fiddlosopher 2007-08-27 22:24:25 +00:00
  • 6bf82d8f29 Removed local references to Portfile, since pandoc is now in the MacPorts repository. Updated INSTALL instructions and website. fiddlosopher 2007-08-27 22:18:36 +00:00
  • 51c6c0a800 Changed link to README to README.html. fiddlosopher 2007-08-27 01:15:00 +00:00
  • f08af7723f * changelog: make sure to close pandoc's ITP bug. roktas 2007-08-26 19:49:31 +00:00
  • 72bdf7a171 Added note that Text.Pandoc.ASCIIMathML was exposed to 0.42 "News". fiddlosopher 2007-08-26 18:23:20 +00:00