Commit graph

  • 804756dd1f Removed note about public mimetex server from README. fiddlosopher 2007-12-02 16:29:07 +00:00
  • f8a257589b Updated test suite -- no italics for digits. fiddlosopher 2007-12-02 08:35:24 +00:00
  • defe18242b TeXMath parser: use emphasis only for letters, not numbers. fiddlosopher 2007-12-02 08:35:16 +00:00
  • c15dfb2cf9 Updated HTML and S5 writer tests for new span tags in math. fiddlosopher 2007-12-02 02:58:07 +00:00
  • d411b10438 Put math in HTML inside <span class="math">. This way it can be distinguished from the surrounding text, e.g. put in a different font. Updated README accordingly. fiddlosopher 2007-12-02 02:50:41 +00:00
  • d1832da9e1 Added Text.Pandoc.Readers.TeXMath and changed default handling of math. + Text.Pandoc.Readers.TeXMath exports readTeXMath, which reads raw TeX math and outputs a string of pandoc inlines that tries to render it as far as possible, lapsing into literal TeX when needed. + Added Text.Pandoc.Readers.TeXMath to pandoc.cabal + ghc66 version. + Modified writers so that readTeXMath is used for default HTMl output in HTML, S5, RTF, Docbook. + Updated README with information about how math is rendered in all formats. + Updated test suite. fiddlosopher 2007-12-02 00:36:32 +00:00
  • 8e872f9f7d Website: Added note about inclusion in Ubuntu Hardy Heron. fiddlosopher 2007-12-02 00:36:09 +00:00
  • 882c1bf66a Removed TODO. fiddlosopher 2007-12-01 03:12:01 +00:00
  • ac133dcba0 Updated tests with new way of displaying math in HTML (with no enclosing $'s). fiddlosopher 2007-12-01 03:11:59 +00:00
  • ef028fee59 Added --gladtex and --mimetex options. + New HTMLMathMethod structure in WriterOptions keeps track of how to display math in HTML output. + If none of the special options are selected, default to displaying TeX math verbatim, with no enclosing $'s, in HTML. fiddlosopher 2007-12-01 03:11:52 +00:00
  • 6e079a67e8 Documented new --gladtex and --mimetex options, and new treatment of TeX math. fiddlosopher 2007-12-01 03:11:47 +00:00
  • 0b15448d64 Added HTMLMathMethod writer option. This selects between asciimathml, mimetex, gladtex, and plain math. fiddlosopher 2007-12-01 03:11:44 +00:00
  • 7ddd01eb3a Modified s5 fancy test to include new ASCIIMathML.js. fiddlosopher 2007-12-01 03:11:38 +00:00
  • b6f1ccc90b Small change to wording in README. fiddlosopher 2007-12-01 03:11:35 +00:00
  • 0814ee0e77 New version of ASCIIMathML.js. fiddlosopher 2007-12-01 03:11:32 +00:00
  • b008e5d347 Modified writer tests for new Math and TeX output. fiddlosopher 2007-11-29 08:09:37 +00:00
  • 03f4a665ff Changed all writers to handle new Math block element. This allows TeX element to be handled differently (and in many output formats, simply ignored). fiddlosopher 2007-11-29 08:09:31 +00:00
  • 132186e6b0 Revised s5.native test with Math block. fiddlosopher 2007-11-29 08:09:23 +00:00
  • 55b31b708e Fixed small error in testsuite.native. fiddlosopher 2007-11-29 08:09:20 +00:00
  • 576ddc1b99 Modified markdown reader for new Math block. fiddlosopher 2007-11-29 08:09:17 +00:00
  • 7f4fd9ab3d Modified LaTeX reader for new Math blocks. fiddlosopher 2007-11-29 08:09:13 +00:00
  • 53964297b5 Modified refsMatch for new Math block element. fiddlosopher 2007-11-29 08:09:10 +00:00
  • f795a1219b Added new Math block element. fiddlosopher 2007-11-29 08:09:07 +00:00
  • dc42600081 Changed tests to use new Math block element. fiddlosopher 2007-11-29 08:09:04 +00:00
  • e9f16683f2 Added TODO for math branch notes. fiddlosopher 2007-11-29 08:08:59 +00:00
  • 91ee26d332 Removed src, headers, ui from top-level -- git-svn didn't do this. fiddlosopher 2007-11-29 03:58:13 +00:00
  • 8589f118d8 Makefile changes: BUILDCONF and CABAL_BKP. + Changed BUILDCONF to point to dist/setup-config, not .setup-config. This is where current versions of Cabal put it. 'make clean' works again! + Do not clean up CABAL_BKP, because it might need to be recovered for a new build with a different GHC version. fiddlosopher 2007-11-29 02:03:09 +00:00
  • ae5697e3b4 Small improvements in Makefile: + Added $(BUILDCMD) target, so setup doesn't get compiled every time. + Removed (now circular) dependency of templates on ./templates. fiddlosopher 2007-11-29 02:03:07 +00:00
  • b2fa8c7dd2 Moved ASCIIMathML.js, headers, and ui into templates. Adjusted templates/Makefile and fillTemplates.pl as needed. fiddlosopher 2007-11-29 02:03:04 +00:00
  • 2b52241928 Changed references to source directory in Makefile and pandoc.cabal.*. fiddlosopher 2007-11-29 02:02:38 +00:00
  • 9a67a486c2 Moved everything from src into the top-level directory. fiddlosopher 2007-11-29 02:02:34 +00:00
  • 47a4a3ab89 Removed Text directory. This is a remnant of an experiment moving the contents of src/ to the top level, and should have been deleted long ago. fiddlosopher 2007-11-28 21:01:17 +00:00
  • 3dfe4cb708 Makefile: Add .exe extension to BUILDCMD if building on Windows. fiddlosopher 2007-11-26 21:27:59 +00:00
  • 99d8d45b74 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66 is copied to pandoc.cabal, and the old pandoc.cabal is copied to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to pandoc.cabal.orig but otherwise unmodified. This way, the Makefile will work properly with either GHC 6.6 or 6.8. + The changes in debian/rules from r1066 have been reverted, since they are no longer needed. Also, debian/rules has been converted to UTF-8. + INSTALL instructions have been updated accordingly. fiddlosopher 2007-11-25 01:51:36 +00:00
  • 3703f625be Updated debian/changelog. fiddlosopher 2007-11-25 00:38:08 +00:00
  • 7deee9c874 Reverted changes in r1086 (implicit section header references). This caused too much of a performance hit. fiddlosopher 2007-11-23 03:51:21 +00:00
  • 66efec1670 Improved and simplified setextHeader parser in markdown reader. fiddlosopher 2007-11-22 19:09:38 +00:00
  • 7e540720aa Updated PROFILING instructions. It is no longer necessary to insert -auto-all by hand, since Ghc-Prof-Options takes care of that. fiddlosopher 2007-11-22 19:09:10 +00:00
  • a4e0b97bf8 Use Ghc-Prof-Options to ensure that '-auto-all' is used when '--enable-*-profiling' is specified. fiddlosopher 2007-11-22 19:08:34 +00:00
  • 5a0179d0a0 Improved efficiency of romanNumeral parser (in Text.Pandoc.Shared) for a big speed boost in (non-strict) markdown parsing. fiddlosopher 2007-11-22 18:17:29 +00:00
  • f957c6ef32 Changes to testsuite for new \useURL in context writer. fiddlosopher 2007-11-22 18:16:39 +00:00
  • fb07803be6 + Changed \useurl to \useURL in ConTeXt output. + Changed links from red to blue in ConTeXt output. fiddlosopher 2007-11-22 17:33:12 +00:00
  • f7b705b44c Implemented implicit reference-style links to section headers in markdown. For example, if you have a header '# Supported architectures', you can link to it with '[Supported architectures]'. If there are multiple headers with this label, the link will point to the first of them. Implicit references are always overridden by explicitly specified references. Addresses Issue . fiddlosopher 2007-11-22 17:14:21 +00:00
  • 8d334b84cc Fixed some haddock documentation bugs in Shared.hs. fiddlosopher 2007-11-18 01:44:08 +00:00
  • f4a1fa4b8d More improvements to ConTeXt writer: + writer options are now in state, so they don't have to be passed as a parameter + state also keeps track of ordered list level, so the right default numbering scheme can be used + extra blank line after \stopitemize + removed definitions of ltxenum and ltxitem from the preamble + both kinds of lists are now generated using \start-stopitemize, with appropriate options + in the case of bulleted lists, no options need be specified, because defaults are given in the preamble + test suite updated accordingly fiddlosopher 2007-11-18 01:24:43 +00:00
  • 5fa78695bc ConTeXt writer: + Don't use \(sub)+subject if header level > 5. + Modified tests to conform to new treatment of level 4 and 5 headers. fiddlosopher 2007-11-17 23:34:16 +00:00
  • 4c9a85b821 Modified ConTeXt writer to use \subsubsubsubsection etc., since these are supported (up to at least sub x 5). fiddlosopher 2007-11-17 23:26:51 +00:00
  • 5b5d9bcd76 Use $(GHC) instead of ghc and make them user configurable through environment to support unusual ghc installations, for example: roktas 2007-11-17 21:01:34 +00:00
  • 09b57fcf9c Adjusted formatting of LaTeX and ConTeXt footnotes: - in ConTeXt, % is not needed at end of line before note, since space is gobbled. - beginning of footnote indented four spaces. - this required an additional parameter in wrappedTeX and wrapTeXIfNeeded, in Text.Pandoc.Shared. fiddlosopher 2007-11-17 18:42:11 +00:00
  • 780b77c147 ConTeXt writer: Use itemize options, not sym{}, to produce ordered lists with custom numbering styles. fiddlosopher 2007-11-16 06:20:25 +00:00
  • 13d8a75060 New, "official" definition of blockquote environment in ConTeXt header. Also, use blank line after \startblockquote to balance blank line at the end. fiddlosopher 2007-11-16 04:04:53 +00:00
  • 87d6d0d069 Fixed logic in markdown smart quote parsing: + Added some needed 'try' statements. + Unicode right single-quote can double as apostrophe, so treat it as a quote-end only when not followed by an alphanumeric character. fiddlosopher 2007-11-15 17:29:24 +00:00
  • ccb5fbb209 Fixed smart quote parsing in markdown reader so that unicode characters 8216 and 8217 are recognized as single quotes, and 8220 and 8221 as double quotes. fiddlosopher 2007-11-15 03:55:58 +00:00
  • 506bf38bcb Updated documentation to reflect the fact that LaTeX and ConTeXt writers now wrap text by default. fiddlosopher 2007-11-15 03:23:02 +00:00
  • a487bbb5a9 Updated tests for changes in LaTeX and ConTeXt writers. fiddlosopher 2007-11-15 03:21:10 +00:00
  • ea5e945470 Changes to ConTeXt writer: + PrettyPrint module now used for output. + Text wrapping now provided, using wrapTeXIfNeeded. + Better treatment of footnotes: footnotes are always on lines by themselves. + Use \subject, \subsubject, ... or \section, \subsection, ... for headings, depending on whether --number-sections option is selected. fiddlosopher 2007-11-15 03:20:05 +00:00
  • 851c04dfcd Improved footnote handling in LaTeX writer: + use wrapTeXIfNeeded instead of wrapIfNeeded + make sure footnotes occur on lines by themselves, with a % at the end of the preceding line to prevent unwanted spaces + added writer options to state, so it can be accessed by wrapTeXIfNeeded fiddlosopher 2007-11-15 03:11:33 +00:00
  • e73c3d3561 Added wrappedTeX and wrapTeXIfNeeded functions to Text.Pandoc.Shared. These ensure that footnotes occur on lines by themselves (to make them easier to move around), and that they don't screw up text wrapping. fiddlosopher 2007-11-15 03:09:31 +00:00
  • 1ba0c8f483 Modified debian/changelog -- include last bugfix. fiddlosopher 2007-11-10 21:52:25 +00:00
  • bd7f5f3f7c Fixed bug in LaTeX reader (pointed out by Mark Eli Kalderon): needed a "try" before "string" in parser for \[ math blocks. fiddlosopher 2007-11-10 21:44:05 +00:00
  • 466b75d997 Remove a duplicate comment line. roktas 2007-11-06 01:35:22 +00:00
  • 8a057e77af Modified build procedure to allow compilation with GHC 6.8: + pandoc.cabal now uses Cabal configurations and requires Cabal >=1.2. + An alternative pandoc.cabal.ghc66 is provided for those who have older versions of Cabal. + Debian build process has been modified to use pandoc.cabal.ghc66, as a temporary measure until GHC 6.8 gets into debian unstable. + INSTALL instructions have been updated. + Makefile has been updated to accommodate changes in pandoc.cabal. + pandoc.cabal.ghc68 has been removed, since the default version now works with GHC 6.8. fiddlosopher 2007-11-06 00:07:17 +00:00
  • 8d8639711d Added a version of pandoc.cabal that works with GHC 6.8.1. fiddlosopher 2007-11-04 00:36:41 +00:00
  • fe684764e6 Reverted back to state as of r1062. The template haskell changes are more trouble than they're worth. fiddlosopher 2007-11-03 23:27:58 +00:00
  • 4a841bfc54 Use template haskell to avoid the need for templates: + Added library Text.Pandoc.Include, with a template haskell function $(includeStrFrom fname) to include a file as a string constant at compile time. + This removes the need for the 'templates' directory or Makefile target. These have been removed. + The base source directory has been changed from src to . + A new 'data' directory has been added, containing the ASCIIMathML.js script, writer headers, and S5 files. + The src/wrappers directory has been moved to 'wrappers'. + The Text.Pandoc.ASCIIMathML library is no longer needed, since Text.Pandoc.Writers.HTML can use includeStrFrom to include the ASCIIMathML.js code directly. It has been removed. fiddlosopher 2007-11-03 22:14:03 +00:00
  • 3116d30133 Updated changelog in light of last change. fiddlosopher 2007-11-01 17:35:00 +00:00
  • 40fa01765b Cleaned up LaTeX footnotes: + Footnotes start on a separate line. A comment % is used at the end of the previous line to prevent unwanted spaces. This makes footnotes easier to see, delete, and move around. + The final } now only appears on a separate line if it needs to (i.e. if the note ends with a Verbatim environment). fiddlosopher 2007-11-01 17:32:59 +00:00
  • d5adbcb774 Fixed bug in parsing files that begin with blank lines. + In Text.Pandoc.Shared: rewrote lineClump to parse EITHER a string of blank lines OR a string of nonblanks. Removed code for parsing eof. + In Markdown and RST readers, use 'manyTill (... <|> lineClump) eof' instead of many, since lineClump no longer parses eof. fiddlosopher 2007-10-29 21:00:48 +00:00
  • 63dfc3abf2 Modified specialChar in LaTeX reader so that '"' characters are parsed and do not cause an error. fiddlosopher 2007-10-28 23:30:29 +00:00
  • 27ea29a906 Updated changelog to reflect change to fromUTF8. fiddlosopher 2007-10-27 22:57:36 +00:00
  • 65a5db2d41 Modified fromUTF8 to strip out the BOM (byte order marker) wherever it is present. See http://en.wikipedia.org/wiki/Byte_Order_Mark and http://six.pairlist.net/pipermail/markdown-discuss/2007-October/000874.html. fiddlosopher 2007-10-27 22:55:40 +00:00
  • 447b99e35d '--no-wrap' option now prevents the addition of structural whitespace in HTML output, minimizing the file size. fiddlosopher 2007-10-18 15:36:51 +00:00
  • a81613df34 Removed 'version' constant from Main.hs; added 'pandocVersion' to Text.Pandoc. This way all programs that use pandoc libraries will have access to the version number. fiddlosopher 2007-10-15 21:21:52 +00:00
  • d6d49db5be Updated changelog. fiddlosopher 2007-10-13 21:39:44 +00:00
  • 8144c54f82 Improvements to RST reader: + Allow field lists to be indented. + Parse the contents of field lists instead of treating them as raw strings. + Represent field lists as definition lists rather than blockquotes. + Fixed bug in which metadata would be overridden if the document contained more than one field list. + Parse fields associated with ..image: blocks, and use the 'alt' field, if present, for image alt text and title. fiddlosopher 2007-10-13 21:39:17 +00:00
  • 11e7ad2259 Save and restore position in parseFromString, so that it doesn't mess up accurate error location reporting. fiddlosopher 2007-10-13 21:37:06 +00:00
  • 403f5f4728 Undid last change: instead of blocking the internal links in the writers, it makes more sense to block them in the HTML reader. fiddlosopher 2007-10-12 03:03:29 +00:00
  • 4928045915 Man writer: Don't print link source for internal links (#...). fiddlosopher 2007-10-11 22:54:01 +00:00
  • ad9603231f Fixed bug in RST reader: previously, code blocks had to be indented a full tabstop, but RST allows any amount of indentation. Resolves Issue . fiddlosopher 2007-10-11 05:50:28 +00:00
  • 175ddc3f6e Makefile: roktas 2007-10-07 21:43:44 +00:00
  • ea0d5663be Changes in debian/changelog: roktas 2007-10-07 17:56:20 +00:00
  • 068f94a51f Changes in Makefile: roktas 2007-10-07 17:49:45 +00:00
  • 1ea1665955 Updated debian/changelog. fiddlosopher 2007-10-06 16:23:15 +00:00
  • 5e4a0c8b9d New MacPorts Portfile template. Installs pandoc programs and libraries. Note that 'make install-all' cannot be used to install the libraries, because registration must be done after the files are copied out of the destroot. So a custom install procedure is included in the Portfile. fiddlosopher 2007-10-06 16:06:37 +00:00
  • 3fef30c48c Added libghc6-network-dev, libghc6-xhtml-dev, and libghc6-mtl-dev as dependencies for libghc6-pandoc-dev. Addresses Debian Bug . fiddlosopher 2007-10-04 23:47:33 +00:00
  • a1ad3b4e5f Modified html2markdown. Previously html2markdown piped all input through html tidy before passing it to pandoc. This causes problems on certain sites (e.g. daringfireball.com/markdown) which have well-formed xhtml that causes tidy to choke. Solution is to try pandoc on the original HTML, and run it through tidy only if that fails. fiddlosopher 2007-10-02 02:08:52 +00:00
  • 5f64258a4e Add default value for URL in html2x.txt. fiddlosopher 2007-09-30 04:16:39 +00:00
  • 6e2bc67512 Added link to /pandoc/try on web page. fiddlosopher 2007-09-29 20:43:59 +00:00
  • 27d3657eef Fixed bug in markdown writer: If an ordered list item began with a marker greater than 3 characters in width, and the item took more than one line, it would appear on the line after the list marker, e.g.: fiddlosopher 2007-09-27 18:52:39 +00:00
  • 7a32ad72e3 Documented '--no-wrap' option in README and man pages. fiddlosopher 2007-09-27 01:28:28 +00:00
  • 5b888e8b3b Added a writer option for wrapped text and a command-line option '--no-wrap', which disables text wrapping. (Resolves Issue #26.) fiddlosopher 2007-09-27 01:23:44 +00:00
  • fa45b970c9 Changed ref to MacPorts to point to the MacPorts DB entry for pandoc. fiddlosopher 2007-09-27 01:20:05 +00:00
  • 4f9814087e Fixed a bug in the Markdown writer: incorrect line wrapping in paragraphs including hard line breaks. Resolves Issue . fiddlosopher 2007-09-25 05:43:38 +00:00
  • b0ef5b5b65 Updated html2x.txt to reflect new location of script (in /cgi-bin instead of /pandoc). fiddlosopher 2007-09-19 03:12:37 +00:00
  • 47f847e71f Removed html2x.pl -- it belongs in its own repository. fiddlosopher 2007-09-19 03:11:59 +00:00
  • d9dedf0813 RST writer: If label for a link reference contains a colon, surround by ` signs so the colon won't be interpreted as the end of the link label. fiddlosopher 2007-09-19 01:15:20 +00:00
  • 2b429e980e Fixed macports Portfile: + Do installation manually rather than using Makefile's install-all. (There appears to be a problem with the Makefile's handling of DESTDIR.) + Note that the library must be registered in the activate phase, after the library files have been copied out of the destroot. Cabal generates a 'register.sh' script that will do this. fiddlosopher 2007-09-18 15:23:20 +00:00
  • 87fb10a316 Main (tabFilter): Treat '\r' at end of line as newline (in addition to '\r\n' and '\n'). fiddlosopher 2007-09-18 06:48:36 +00:00
  • f8eac5b377 Markdown writer: Don't print title attribute if title is empty. (This differs from the behavior of Markdown.pl, and agrees with PHP Markdown. But John Gruber has indicated that he prefers this behavior.) Adjusted test suite accordingly. fiddlosopher 2007-09-18 01:35:50 +00:00
  • fbb048238e Markdown reader: require space before title in links and references. This fixes a bug in parsing URLs like http://silly/url(withparen). fiddlosopher 2007-09-18 01:34:36 +00:00